.rs-wrap { max-width: 880px; margin: 24px auto; }
.rs-head h1 { margin: 0 0 6px; }
.rs-head p { opacity: .85; margin: 0 0 16px; }

.rs-form { display: grid; gap: 16px; }
.rs-card { border: 1px solid var(--border, #242424); border-radius: 12px; padding: 16px; background: var(--panel, #0f0f14); }
.rs-card > legend { font-weight: 700; padding: 0 6px; }
.rs-card > summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }

.rs-grid { display: grid; gap: 12px; }
.rs-grid-3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.rs-field { display: grid; gap: 6px; }
.rs-field > span { font-size: .9rem; opacity: .85; }
.rs-field input, .rs-field select {
  width: 100%;
  height: 44px;               /* <-- same height for all controls */
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border,#2a2a2a);
  background: var(--surface,#121218);
  color: inherit;
  box-sizing: border-box;
}
.rs-row-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.rs-check { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.rs-check input { transform: translateY(1px); }

.rs-actions { display: flex; align-items: center; gap: 12px; }
.rs-btn { position: relative; border: 1px solid var(--border,#2a2a2a); background: var(--btn-bg,#0b0b0f); color: var(--btn-fg,#fff); padding: 12px 16px; border-radius: 10px; cursor: pointer; }
.rs-btn[disabled] { opacity: .6; cursor: not-allowed; }
.rs-btn .rs-spinner { display: none; width: 16px; height: 16px; border: 2px solid #999; border-top-color: transparent; border-radius: 50%; margin-left: 8px; }
.rs-btn.loading .rs-spinner { display: inline-block; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.rs-meter { width: 180px; height: 8px; border-radius: 999px; }
.rs-hint { font-size: .9rem; opacity: .75; }
.rs-err { color: #ff6b6b; font-style: normal; }
.rs-alert { border: 1px solid #ff6b6b; background: #251a1a; padding: 10px 12px; border-radius: 10px; }
.rs-link { text-decoration: underline; font-size: .95rem; }

@media (prefers-color-scheme: light) {
  .rs-card { background: #fff; border-color: #e5e5e5; }
  .rs-field input, .rs-field select { background: #fff; border-color: #ddd; }
}

@media (max-width: 980px) { .rs-grid-3 { grid-template-columns: repeat(2, minmax(220px,1fr)); } }
@media (max-width: 640px) { .rs-grid-3 { grid-template-columns: 1fr; } }
.rs-spacer { visibility: hidden; }
