/* ============================================================
   JuicyTTS Player — desktop app redesign
   Inherits design tokens from styles.css
   ============================================================ */

.player-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-0);
}

/* ---- Title bar (fake OS chrome) --------------------------- */
.titlebar {
  grid-column: 1 / -1;
  height: 38px;
  background: linear-gradient(180deg, #0d0420 0%, #07020f 100%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px;
  gap: 12px;
  -webkit-app-region: drag;
  position: sticky; top: 0; z-index: 30;
}
.titlebar .traffic {
  display: flex; gap: 8px;
}
.titlebar .traffic i {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
}
.titlebar .traffic i:nth-child(1) { background: #ff5f57; }
.titlebar .traffic i:nth-child(2) { background: #febc2e; }
.titlebar .traffic i:nth-child(3) { background: #28c840; }
.titlebar .title {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em;
  flex: 1; text-align: center;
  color: var(--ink-2);
}
.titlebar .ver { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

/* ---- Sidebar ---------------------------------------------- */
.player-shell { grid-template-rows: 38px 1fr; }
.sidebar {
  grid-row: 2;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 24px 14px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 80%);
  position: relative;
}
.sidebar-brand .mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 4px; background: var(--bg-1);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.sidebar-brand .name {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0 10px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.nav-item.active {
  background: rgba(57, 255, 136, 0.10);
  color: var(--accent);
  font-weight: 500;
}
.nav-item .icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  flex: 0 0 18px;
}
.nav-item .badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; border-radius: 999px;
  background: var(--accent); color: #042;
  font-weight: 700; letter-spacing: 0.04em;
}
.nav-item .dot {
  margin-left: auto;
  width: 8px; height: 8px; border-radius: 50%;
}
.nav-item .dot.green { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-item .dot.red { background: #ef4444; }
.nav-item .dot.gray { background: var(--ink-4); }
.nav-item .dot.amber { background: #f59e0b; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  background: var(--bg-2);
  border-radius: 12px;
  font-size: 12px; color: var(--ink-3);
}
.sidebar-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar-footer .row + .row { margin-top: 8px; }
.sidebar-footer .label { color: var(--ink-4); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-footer .val { color: var(--ink); font-family: var(--font-mono); font-size: 11px; }

/* ---- Main pane -------------------------------------------- */
.main {
  grid-row: 2;
  padding: 32px 40px 80px;
  overflow-y: auto;
  position: relative;
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 40px; letter-spacing: -0.03em; line-height: 1;
  margin: 0;
}
.page-head h1 em { font-style: italic; color: var(--ink-3); font-weight: 400; }
.page-head .sub {
  color: var(--ink-3); font-size: 14px; margin-top: 8px; max-width: 56ch;
}
.page-head .actions { display: flex; gap: 10px; align-items: center; }

/* ---- Cards / panels --------------------------------------- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.panel-head h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  margin: 0; letter-spacing: -0.015em;
}
.panel-head .meta {
  color: var(--ink-3); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.06em;
}

/* ---- Status grid (Home dashboard) -------------------------- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) { .status-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .status-grid { grid-template-columns: 1fr; } }

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
}
.status-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex: 0 0 40px;
}
.status-card .stat-icon.ok { background: rgba(57, 255, 136, 0.12); color: var(--accent); }
.status-card .stat-icon.warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-card .stat-icon.err { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.status-card .stat-icon.idle { background: rgba(255,255,255,0.05); color: var(--ink-4); }
.status-card .stat-meta { min-width: 0; }
.status-card .label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.status-card .val {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.015em;
}
.status-card .sub {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}

/* ---- Quick actions ---------------------------------------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .quick-actions { grid-template-columns: 1fr 1fr; } }
.quick-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
}
.quick-action:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.quick-action .qa-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.quick-action .qa-title { font-weight: 600; font-size: 14px; }
.quick-action .qa-desc { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ---- Welcome / first-time setup banner -------------------- */
.first-time {
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.first-time::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(57, 255, 136, 0.15), transparent 70%);
  pointer-events: none;
}
.first-time .ft-content { flex: 1; position: relative; z-index: 1; }
.first-time h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em;
}
.first-time p { margin: 0; color: var(--ink-2); font-size: 14px; }
.first-time .ft-cta {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: flex; gap: 10px;
}

/* ---- Voices tab ------------------------------------------- */
.voice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.voice-card:hover { border-color: var(--border-strong); }
.voice-card.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(57,255,136,0.05), var(--bg-card));
}
.voice-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.voice-card .v-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: #042;
}
.voice-card h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.015em;
  margin: 12px 0 2px;
}
.voice-card .v-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.voice-card .v-actions { display: flex; gap: 6px; margin-top: 6px; }

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  background: rgba(255,255,255,0.02);
  margin-top: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover {
  border-color: var(--accent);
  background: rgba(57, 255, 136, 0.04);
}
.dropzone h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; margin: 12px 0 6px;
  color: var(--ink);
}

/* ---- Synthesize ------------------------------------------- */
.synth-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
@media (max-width: 1100px) { .synth-grid { grid-template-columns: 1fr; } }

.text-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.text-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.text-toolbar .voice-picker {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 13px;
}
.text-toolbar .voice-picker select {
  background: transparent; border: none; color: var(--ink);
  font-family: inherit; font-size: 13px; padding: 4px 8px;
  cursor: pointer;
}
.text-toolbar .voice-picker select option { background: var(--bg-2); }

.text-input {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  min-height: 220px;
  resize: vertical;
  width: 100%;
}
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.1);
}

.text-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.text-foot .char-count {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-4);
}

.synth-side .panel + .panel { margin-top: 14px; }
.style-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.style-row:last-child { border-bottom: none; }
.style-row label { font-size: 13px; color: var(--ink-2); }
.style-row .val { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.slider {
  width: 100%; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-top: 6px; position: relative;
  -webkit-appearance: none; appearance: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.2);
}
.slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
}

.history-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex; gap: 10px; align-items: center;
}
.history-item:last-child { border-bottom: none; }
.history-item .play-mini {
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.06);
  color: var(--accent); cursor: pointer;
  display: grid; place-items: center; flex: 0 0 26px;
}
.history-item .h-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .h-time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }

/* ---- Setup Wizard ----------------------------------------- */
.wizard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.wizard-steps {
  display: flex; gap: 0; margin-bottom: 32px;
  position: relative;
}
.wizard-steps::before {
  content: ""; position: absolute;
  top: 14px; left: 14px; right: 14px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.wizard-step {
  flex: 1;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.wizard-step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--ink-3);
  transition: all 0.2s;
}
.wizard-step .label {
  font-size: 12px; color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.wizard-step.done .num { background: var(--accent); color: #042; border-color: var(--accent); }
.wizard-step.done .label { color: var(--ink-2); }
.wizard-step.current .num {
  background: var(--bg-card); border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.15);
}
.wizard-step.current .label { color: var(--accent); }

.wizard-body { flex: 1; }
.wizard-body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; letter-spacing: -0.025em; margin: 0 0 12px;
}
.wizard-body p.intro {
  color: var(--ink-2); font-size: 15px; margin: 0 0 24px; max-width: 56ch;
  line-height: 1.55;
}

.instructions {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.instructions li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.instructions li .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(57, 255, 136, 0.12); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  flex: 0 0 28px;
  margin-top: -2px;
}
.instructions li .step-body { min-width: 0; }
.instructions li h5 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; margin: 0 0 6px; letter-spacing: -0.01em;
}
.instructions li p {
  margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.5;
}
.instructions code, .code-inline {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 4px;
  color: var(--accent);
}

.copy-row {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
}
.copy-row code {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: none; padding: 0;
  color: var(--ink-2);
}
.copy-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 11px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: var(--accent); color: #042; }
.copy-btn.copied { background: var(--accent); color: #042; }

.wizard-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---- Integration tab layout ------------------------------- */
.tab-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
@media (max-width: 1100px) { .tab-grid { grid-template-columns: 1fr; } }

.tab-config { display: flex; flex-direction: column; gap: 16px; }
.tab-side { display: flex; flex-direction: column; gap: 16px; }

.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label {
  display: block;
  font-size: 12px; color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.1);
}
.form-row .hint {
  font-size: 11px; color: var(--ink-4); margin-top: 6px;
  font-family: var(--font-mono);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle:last-child { border-bottom: none; }
.toggle .t-label {
  flex: 1;
}
.toggle .t-label .t-title {
  font-size: 13.5px; color: var(--ink);
  margin-bottom: 2px;
}
.toggle .t-label .t-desc {
  font-size: 12px; color: var(--ink-4);
}
.switch {
  width: 36px; height: 20px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex: 0 0 36px;
}
.switch::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-3);
  top: 2px; left: 2px;
  transition: left 0.2s, background 0.2s;
}
.switch.on { background: rgba(57, 255, 136, 0.15); border-color: var(--accent); }
.switch.on::after { left: 18px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.status-pill.ok { background: rgba(57, 255, 136, 0.1); color: var(--accent); }
.status-pill.warn { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.status-pill.err { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.status-pill.idle { background: rgba(255,255,255,0.05); color: var(--ink-3); }
.status-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.alert.info {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--ink-2);
}
.alert.success {
  background: rgba(57, 255, 136, 0.06);
  border: 1px solid rgba(57, 255, 136, 0.25);
  color: var(--ink-2);
}
.alert.warn {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--ink-2);
}
.alert .alert-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 22px;
  font-size: 12px; font-weight: 700;
}
.alert.info .alert-icon { background: rgba(167, 139, 250, 0.2); color: var(--violet); }
.alert.success .alert-icon { background: rgba(57, 255, 136, 0.2); color: var(--accent); }
.alert.warn .alert-icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.alert h5 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; margin: 0 0 4px; color: var(--ink);
  letter-spacing: -0.01em;
}
.alert p { margin: 0; }

/* ---- Section visibility ---------------------------------- */
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Custom scrollbar (subtle) ---------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* small util */
.row { display: flex; gap: 10px; align-items: center; }
.gap-sm { gap: 8px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.flex-1 { flex: 1; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
