:root {
  --c-bg: #f8f9fa;
  --c-fg: #212529;
  --c-muted: #6c757d;
  --c-primary: #0d6efd;
  --c-success: #198754;
  --c-warning: #ffc107;
  --c-danger: #dc3545;
  --c-border: #dee2e6;
  --c-card: #fff;
  --c-pending: #6c757d;
  --c-processing: #0d6efd;
  --c-hover: #f1f3f5;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --topbar-h: 44px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font); color: var(--c-fg);
  background: var(--c-bg);
  overflow-x: hidden;
}

/* ─── Top bar ─────────────────────────────────────────────────────
   Single sticky bar across all authenticated pages.
   Layout: brand · (record-kit on dashboard) · spacer · nav links. */

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 14px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s, border-color .15s;
}
.topbar[data-state="preparing"] { background: #fff8e6; border-bottom-color: var(--c-warning); border-bottom-width: 2px; }
.topbar[data-state="recording"] { background: #fff5f5; border-bottom-color: var(--c-danger); border-bottom-width: 2px; }
.topbar[data-state="uploading"],
.topbar[data-state="transcribing"] { background: #e7f1ff; border-bottom-color: var(--c-primary); border-bottom-width: 2px; }
.topbar[data-state="succeeded"] { background: #d4edda; border-bottom-color: var(--c-success); border-bottom-width: 2px; }
.topbar[data-state="failed"] { background: #f8d7da; border-bottom-color: var(--c-danger); border-bottom-width: 2px; }

/* Brand / home link */
.topbar-brand {
  font-weight: 700; font-size: 15px;
  color: var(--c-fg); text-decoration: none;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.topbar-brand:hover { color: var(--c-primary); background: var(--c-hover); }

/* Recording kit (only on dashboard) — sits between brand and nav */
.topbar-kit {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}

/* Record button */
.topbar-rec {
  padding: 6px 14px;
  background: var(--c-danger);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .12s, transform .08s, box-shadow .12s;
  box-shadow: 0 1px 3px rgba(220, 53, 69, 0.35);
  flex-shrink: 0;
}
.topbar-rec:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(220, 53, 69, 0.45); }
.topbar-rec:focus { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.topbar-rec.recording { background: #495057; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.topbar-rec.recording::before {
  content: '■ '; font-size: 10px;
}
.topbar-rec:not(.recording)::before {
  content: '● '; color: white;
}
.topbar-rec.busy { background: var(--c-primary); cursor: wait; }

/* Mode segmented pill */
.topbar-mode {
  display: inline-flex;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 2px;
  font-size: 12px;
  flex-shrink: 0;
}
.topbar-mode .mode-seg {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  color: var(--c-muted); cursor: pointer;
  user-select: none;
}
.topbar-mode .mode-seg input { position: absolute; opacity: 0; pointer-events: none; }
.topbar-mode .mode-seg:has(input:checked) {
  background: var(--c-card); color: var(--c-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-weight: 600;
}

/* Level meter — only visible while recording */
.topbar-meter {
  display: none;
  vertical-align: middle;
  flex-shrink: 0;
}
.topbar[data-state="recording"] .topbar-meter { display: inline-block; }

/* Status (dot · label · meta) */
.topbar-status {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1;
  font-size: 13px;
  overflow: hidden; white-space: nowrap;
}
.topbar-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.topbar-dot.dot-idle { background: var(--c-muted); }
.topbar-dot.dot-preparing { background: var(--c-warning); animation: pulse 0.7s infinite; }
.topbar-dot.dot-recording { background: var(--c-danger); animation: pulse 1s infinite; }
.topbar-dot.dot-uploading,
.topbar-dot.dot-transcribing { background: var(--c-primary); animation: pulse 1s infinite; }
.topbar-dot.dot-succeeded { background: var(--c-success); }
.topbar-dot.dot-failed { background: var(--c-danger); }
.topbar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.topbar-meta {
  font-family: ui-monospace, monospace; opacity: 0.7; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Folder target select — sits in the kit, controls where new recordings land */
.topbar-folder {
  padding: 3px 6px;
  background: var(--c-card);
  color: var(--c-fg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font);
  max-width: 130px;
  flex-shrink: 0;
  cursor: pointer;
  text-overflow: ellipsis;
}
.topbar-folder:hover { border-color: var(--c-primary); }
.topbar-folder:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }

/* Recopy button — shown after a result is available */
.topbar-recopy {
  padding: 5px 10px;
  background: var(--c-card);
  color: var(--c-fg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}
.topbar-recopy:hover { background: var(--c-hover); border-color: var(--c-primary); color: var(--c-primary); }
.topbar-recopy[hidden] { display: none !important; }

/* Nav (right side) — text labels */
.topbar-nav {
  display: flex; gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.topbar-nav a {
  padding: 6px 12px;
  color: var(--c-fg);
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px; font-weight: 500;
}
.topbar-nav a:hover { background: var(--c-hover); color: var(--c-primary); }
.topbar-nav a.active { background: var(--c-primary); color: white; }

/* Width-responsive collapsing — text labels are wider than icons,
   so we tuck items at narrow widths in a deliberate order. */
@media (max-width: 800px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar-nav a { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 700px) {
  .topbar-status { display: none; }
}
@media (max-width: 600px) {
  .topbar-meter { display: none !important; }
  .topbar-recopy { display: none; }
}
@media (max-width: 500px) {
  .topbar-mode { display: none; }
}
@media (max-width: 420px) {
  .topbar-folder { display: none; }
}
@media (max-width: 400px) {
  .topbar-nav a { padding: 4px 7px; font-size: 12px; }
}

/* ─── Container & dashboard body layout ──────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(8px, 3vw, 24px);
}

/* Dashboard body is a flex column: topbar at top, transcript box fills rest. */
body[data-page="dashboard"] {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-page="dashboard"] .container {
  flex: 1; min-height: 0;
  padding: 0;
  display: flex; flex-direction: column;
  max-width: none;
}

/* ─── Transcript box (dashboard) ─────────────────────────────────── */
/* Box is a flex container; the empty placeholder is centered, the active
   transcript text fills from the top and scrolls internally. The box
   itself never shows a scrollbar — only the inner .transcript-text does
   when content exists. */

.transcript-box {
  flex: 1; min-height: 0;
  margin: 10px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--c-fg);
  font-family: ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.55;
}

/* Empty state: centered placeholder, no inner scroll */
.transcript-box[data-empty="true"] {
  align-items: center;
  justify-content: center;
}
.transcript-empty {
  color: var(--c-muted);
  font-family: var(--font);
  font-size: 14px;
  text-align: center;
  margin: 0;
  padding: 8px 14px;
}
.transcript-empty kbd {
  background: var(--c-border); padding: 1px 6px;
  border-radius: 3px; font-family: ui-monospace, monospace; font-size: 12px;
}

/* Active state: text fills the box, internally scrollable */
.transcript-text {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 14px 18px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.transcript-box[data-empty="true"] .transcript-text { display: none; }
.transcript-box[data-empty="false"] .transcript-empty { display: none; }

/* While preparing / recording / transcribing, the box gets a faint tint. */
.transcript-box[data-state="preparing"] { background: #fffcf2; }
.transcript-box[data-state="recording"] { background: #fffafa; }
.transcript-box[data-state="transcribing"] { background: #f8fbff; }
.transcript-box[data-state="failed"] .transcript-text { color: var(--c-danger); }

/* ─── Upload page ────────────────────────────────────────────────── */

.upload-page { max-width: 720px; margin: 0 auto; }
.upload-h { font-size: 20px; margin: 8px 0 16px; }

.upload-options {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 14px; margin: 12px 0;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 13px; color: var(--c-muted);
}
.upload-options label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.upload-options input[type=number] { width: 56px; padding: 3px 6px; border: 1px solid var(--c-border); border-radius: 4px; margin-left: 4px; }
.upload-options select { padding: 3px 6px; border: 1px solid var(--c-border); border-radius: 4px; margin-left: 4px; }

.drop-zone {
  border: 2px dashed var(--c-border); border-radius: var(--radius);
  padding: 36px 18px; text-align: center;
  background: var(--c-card); transition: background .15s, border-color .15s;
}
.drop-zone.dragover { background: #d1e7dd; border-color: var(--c-success); }
.drop-zone input[type=file] { display: none; }
.drop-zone .link { color: var(--c-primary); text-decoration: underline; cursor: pointer; }
.drop-headline { margin: 0 0 8px; font-size: 17px; }
.selected-file { font-weight: 600; color: var(--c-success); margin: 8px 0 0; }
.hint { color: var(--c-muted); font-size: 12px; text-align: center; margin: 0; }

/* ─── Login ──────────────────────────────────────────────────────── */

.login-box {
  max-width: 360px; margin: 80px auto; padding: 24px;
  background: var(--c-card); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.login-box h1 { margin-top: 0; font-size: 24px; }
.login-box label { display: block; margin: 12px 0; font-size: 14px; color: var(--c-muted); }
.login-box input[type=text], .login-box input[type=password] {
  width: 100%; padding: 8px 10px; font-size: 15px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
}
.login-box button {
  width: 100%; padding: 10px; font-size: 15px;
  background: var(--c-primary); color: white; border: none;
  border-radius: var(--radius); cursor: pointer; margin-top: 8px;
}
.login-box .error {
  padding: 8px 12px; background: #f8d7da; color: #842029;
  border-radius: var(--radius); margin-bottom: 12px;
}

/* ─── History ───────────────────────────────────────────────────── */

.history-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.history-sidebar { background: var(--c-card); padding: 16px; border-radius: var(--radius); }
.history-sidebar h3 { font-size: 13px; text-transform: uppercase; color: var(--c-muted); margin-top: 16px; margin-bottom: 8px; }
.history-sidebar h3:first-child { margin-top: 0; }
.folder-list, .tag-list { list-style: none; padding: 0; margin: 0; }
.folder-list li, .tag-list li { margin: 4px 0; }
.folder-list a { display: block; padding: 4px 8px; color: var(--c-fg); text-decoration: none; border-radius: 4px; font-size: 14px; }
.folder-list a:hover { background: var(--c-hover); }
.folder-list a.active { background: var(--c-primary); color: white; }
.folder-list ul { list-style: none; padding-left: 12px; margin: 4px 0; }

/* Inline delete button next to each user folder. Hidden by default; shown
   on hover of the row. Clicking confirms then DELETEs the folder. */
.folder-item { position: relative; display: flex; align-items: center; gap: 4px; }
.folder-item .folder-link { flex: 1; min-width: 0; }
.folder-del {
  background: transparent; border: 0; cursor: pointer;
  color: var(--c-muted); font-size: 16px; line-height: 1;
  padding: 2px 6px; border-radius: 4px;
  visibility: hidden;
}
.folder-item:hover .folder-del { visibility: visible; }
.folder-del:hover { color: var(--c-danger); background: var(--c-hover); }

.tag-list .tag-chip { display: inline-block; padding: 2px 8px; border-left: 3px solid; background: var(--c-hover); border-radius: 4px; font-size: 12px; text-decoration: none; color: var(--c-fg); margin-bottom: 4px; }
.tag-list .tag-chip:hover { background: #e9ecef; }
.tag-list .tag-chip.active { background: var(--c-primary); color: white; }
.new-folder-form { display: flex; gap: 4px; margin-top: 8px; }
.new-folder-form input { flex: 1; padding: 4px 6px; font-size: 12px; border: 1px solid var(--c-border); border-radius: 4px; }

.history-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] {
  flex: 1; padding: 8px 12px; font-size: 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  min-width: 0;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--c-muted); }
.filter-chips .chip {
  padding: 4px 10px; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 12px; text-decoration: none; color: var(--c-fg); font-size: 12px;
}
.filter-chips .chip.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.filter-chips .chip a { color: inherit; text-decoration: none; }

.history-table { width: 100%; border-collapse: collapse; background: var(--c-card); border-radius: var(--radius); overflow: hidden; }
.history-table th, .history-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.history-table th { background: #f1f3f5; font-size: 13px; color: var(--c-muted); }
.history-table th a { color: inherit; text-decoration: none; }
.history-table tr:hover { background: var(--c-hover); }
.history-table tr.row-focused { background: #e7f1ff; outline: 2px solid var(--c-primary); }
.check-cell { width: 32px; }

/* Inline title editing */
.title-edit {
  display: inline-block;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color .1s, background .1s;
  cursor: text;
  outline: none;
  min-width: 80px;
}
.title-edit:hover {
  border-color: var(--c-border);
  background: var(--c-card);
}
.title-edit:focus {
  border-color: var(--c-primary);
  background: var(--c-card);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}
.title-edit-hint {
  display: inline-block;
  margin-left: 4px;
  color: var(--c-muted);
  opacity: 0;
  transition: opacity .1s;
  font-size: 12px;
  pointer-events: none;
}
.history-table td.title:hover .title-edit-hint { opacity: 0.6; }
.modal-header h2.title-edit {
  flex: 1; min-width: 0;
}

.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.dot.pending { background: var(--c-pending); }
.dot.processing { background: var(--c-processing); animation: pulse 1s infinite; }
.dot.succeeded { background: var(--c-success); }
.dot.failed { background: var(--c-danger); }

.btn {
  padding: 6px 12px; font-size: 13px; border: 1px solid var(--c-border);
  background: var(--c-card); border-radius: 4px; cursor: pointer;
  margin-right: 4px;
}
.btn:hover { background: var(--c-hover); }
.btn-primary { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.btn-primary:hover { background: #0b5ed7; }
.btn-warn { background: var(--c-warning); color: #212529; border-color: var(--c-warning); }
.btn-quiet { color: var(--c-muted); border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--c-hover); }
.btn-danger { color: var(--c-danger); border-color: var(--c-danger); background: var(--c-card); }
.btn-danger:hover { background: #f8d7da; }

.row-error-detail td { padding-top: 0; padding-bottom: 12px; }
.error { color: var(--c-danger); }

.row-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; background: var(--c-hover); border-left: 3px solid var(--c-primary);
  border-radius: 4px; font-size: 12px;
}
.tag-x { background: transparent; border: 0; cursor: pointer; color: var(--c-muted); font-size: 14px; padding: 0; }
.tag-x:hover { color: var(--c-danger); }
.add-tag-form { display: inline-flex; }
.add-tag-input { padding: 2px 6px; font-size: 12px; border: 1px dashed var(--c-border); border-radius: 4px; width: 60px; }
.row-notes-preview { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

.empty { text-align: center; color: var(--c-muted); padding: 40px; }

.bulk-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: #212529; color: white; padding: 10px 16px;
  border-radius: var(--radius); margin-bottom: 12px;
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar input, .bulk-bar select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--c-border); font-size: 13px; }
.bulk-bar .btn { background: white; }
.bulk-bar #bulk-count { font-weight: 600; padding: 0 6px 0 2px; }

.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 12px;
  color: var(--c-muted); font-size: 13px;
  flex-wrap: wrap; gap: 8px;
}
.pagination-bottom { margin-top: 12px; }
.pagination .btn { padding: 4px 10px; font-size: 12px; margin: 0; }
.pagination .pag-info strong { color: var(--c-fg); font-weight: 600; }
.pagination .pag-controls { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pagination .pag-page { padding: 0 6px; color: var(--c-muted); }

/* History table — collapse to cards on small screens */
@media (max-width: 700px) {
  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar { order: 2; }
  .history-table thead { display: none; }
  .history-table, .history-table tbody { display: block; }
  .history-table tr {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-card);
  }
  .history-table tr:hover { background: var(--c-card); }
  .history-table td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
  }
  .history-table td.check-cell { display: inline-block; margin-right: 8px; }
  .history-table td.status { display: inline-block; margin-right: 8px; }
  .history-table td.datetime { display: inline-block; font-size: 12px; color: var(--c-muted); }
  .history-table td.title { font-weight: 600; font-size: 15px; padding-top: 8px; }
  .history-table td.meta { font-size: 13px; color: var(--c-muted); }
  .history-table td.actions { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 8px; }
  .history-table .actions .btn { margin-right: 0; }
}

/* ─── Modal ──────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 12px;
}
.modal {
  background: var(--c-card); border-radius: var(--radius);
  max-width: 800px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; padding: 0;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--c-border);
  gap: 8px;
}
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-close {
  background: none; border: none; font-size: 24px; color: var(--c-muted);
  cursor: pointer; line-height: 1;
}
.modal-meta { padding: 8px 20px; color: var(--c-muted); font-size: 13px; }
.modal-tags { padding: 0 20px 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.modal-actions { padding: 8px 20px; border-bottom: 1px solid var(--c-border); }
.modal-body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  background: #f8f9fa; margin: 0;
  font-family: ui-monospace, monospace; font-size: 14px; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.modal-body.modal-body-empty {
  color: var(--c-muted); font-family: var(--font); font-style: italic;
  text-align: center; padding: 28px 24px;
}
.modal-comments {
  display: block; padding: 16px 20px; border-top: 1px solid var(--c-border);
  font-size: 13px; color: var(--c-muted);
}
.modal-comments textarea {
  width: 100%; padding: 8px; border: 1px solid var(--c-border);
  border-radius: 4px; font-family: var(--font);
}

/* ─── Cheatsheet ─────────────────────────────────────────────────── */

.cheatsheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 16px;
}
.cheatsheet {
  background: var(--c-card); padding: 24px; border-radius: var(--radius);
  max-width: 500px; max-height: 90vh; overflow-y: auto;
  width: 100%;
}
.cheatsheet h2 { margin-top: 0; }
.cheatsheet table { width: 100%; border-collapse: collapse; }
.cheatsheet td { padding: 6px 8px; }
.cheatsheet td:first-child { width: 100px; }

/* ─── Toast ──────────────────────────────────────────────────────── */

#toast-host {
  position: fixed; top: calc(var(--topbar-h) + 8px); right: 12px;
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--c-success); color: white;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: opacity .5s;
  pointer-events: auto;
}
.toast.fade-out { opacity: 0; }

/* ─── Settings ───────────────────────────────────────────────────── */

.settings-form { max-width: 480px; background: var(--c-card); padding: 24px;
  border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.settings-form fieldset { border: none; padding: 0; margin: 0 0 16px; }
.settings-form legend { font-weight: 600; margin-bottom: 12px; font-size: 14px; color: var(--c-muted); }
.settings-form label { display: block; margin: 12px 0; font-size: 14px; }
.settings-form input[type=number], .settings-form select, .settings-form input[type=text] {
  margin-left: 8px; padding: 4px 8px; border: 1px solid var(--c-border); border-radius: 4px;
}
