/* ---------------------------------------------------------------
   components.css — buttons, fields, cards, task rows, modal, toast
   --------------------------------------------------------------- */

/* ---------------- icons ----------------
   Inline SVGs carry a viewBox but no intrinsic size, so without this they
   stretch to fill their flex container. Everything below overrides it. */

svg {
  width: 15px;
  height: 15px;
  flex: none;
  vertical-align: middle;
}

.card__title > svg { width: 17px; height: 17px; }
.empty > span > svg { width: 26px; height: 26px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn--ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn--danger { color: var(--danger); border-color: var(--border); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn--sm { padding: 4px 9px; font-size: 12px; border-radius: var(--radius-sm); }
.btn--icon { padding: 7px; }
.btn--icon.btn--sm { padding: 4px; }
.btn--block { width: 100%; }

.btn-group { display: inline-flex; gap: 0; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group .btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.btn-group .btn.is-on {
  background: var(--accent-soft); color: var(--accent-text);
  border-color: var(--accent-line); z-index: 1;
}

/* ---------------- fields ---------------- */

.field { display: grid; gap: 5px; }
.field__label {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.field__hint { font-size: 11.5px; color: var(--text-faint); }

.input, .textarea, .select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.select { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  cursor: pointer; font-size: 13.5px;
}
.check input { margin: 2px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }

/* the big quick-add bar in the topbar */
.quickadd { position: relative; flex: 1; max-width: 460px; }
.quickadd__input {
  width: 100%;
  padding: 8px 13px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13.5px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quickadd__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.quickadd__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-faint); pointer-events: none;
}
.quickadd__preview {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  display: none;
}
.quickadd__preview.is-open { display: block; }
.quickadd__preview .row--wrap { gap: 5px; margin-top: 6px; }

/* ---------------- cards ---------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: var(--space-5); }
.card__title { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.card__title h2, .card__title h3 { margin-right: auto; }

.stat { display: grid; gap: 2px; }
.stat__num { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* the four counters plus the action buttons at the top of Today */
.statbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}
@media (max-width: 640px) {
  .statbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .statbar .spacer { display: none; }
  .statbar > .row { grid-column: 1 / -1; }
  .statbar > .row .btn { flex: 1; }
}

.empty {
  display: grid; gap: var(--space-2); justify-items: center;
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty h3 { color: var(--text-dim); }
.empty p { max-width: 380px; font-size: 13px; margin: 0; }

/* ---------------- chips + badges ---------------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 550;
  color: var(--text-dim);
  white-space: nowrap;
  max-width: 100%;
}
.chip > span { overflow: hidden; text-overflow: ellipsis; }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.chip--urgent { background: var(--urgent-soft); border-color: var(--urgent); color: var(--urgent); }
.chip--danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.chip--warn   { background: var(--warn-soft);   border-color: var(--warn);   color: var(--warn); }
.chip--ok     { background: var(--ok-soft);     border-color: var(--ok);     color: var(--ok); }
.chip--btn { cursor: pointer; border-style: dashed; }
.chip--btn:hover { background: var(--surface-hover); color: var(--text); }
.chip svg { width: 12px; height: 12px; margin-left: -1px; }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; }
.chip__x { margin-right: -3px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: inherit; opacity: 0.6; font-size: 13px; line-height: 1; }
.chip__x:hover { opacity: 1; }

/* person avatar */
.avatar {
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff;
  border: 1.5px solid var(--surface);
}
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.avatar--sm { width: 19px; height: 19px; font-size: 8.5px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -7px; }

/* ---------------- task list ---------------- */

.tasklist { display: grid; gap: 6px; }

.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-3);
  padding: 11px var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.task:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.task.is-urgent { border-left: 3px solid var(--urgent); padding-left: calc(var(--space-4) - 2px); }
.task.is-done { opacity: 0.55; }
.task.is-done .task__title { text-decoration: line-through; text-decoration-thickness: 1px; }
.task.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.task__check {
  width: 18px; height: 18px; margin-top: 1px;
  flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  color: transparent;
  transition: all var(--dur) var(--ease);
}
.task__check:hover { border-color: var(--accent); background: var(--accent-soft); }
.task__check svg { width: 11px; height: 11px; }
.task.is-done .task__check {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.task.is-doing .task__check { border-color: var(--accent); border-style: dashed; }

.task__body { min-width: 0; display: grid; gap: 4px; }
.task__title {
  font-size: 13.5px; font-weight: 500; line-height: 1.4;
  overflow-wrap: anywhere;
}
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.task__side { display: flex; align-items: center; gap: 6px; }

/* the panel that unfolds under a row when you click it */
.task__toggle {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.task__toggle:hover { color: var(--text); background: var(--surface-hover); }
.task__toggle svg { width: 13px; height: 13px; }
.task.is-open .task__toggle { transform: rotate(90deg); color: var(--text-dim); }

.task__expand {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 2px 30px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  cursor: default;
  animation: unfold 160ms var(--ease);
}
@keyframes unfold { from { opacity: 0; transform: translateY(-3px); } }

.task__notes {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.task__steps { display: grid; gap: 1px; }

.inline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}
.inline-step:hover { background: var(--surface-hover); }
.inline-step input { margin-top: 3px; accent-color: var(--accent); width: 14px; height: 14px; flex: none; }
.inline-step span { overflow-wrap: anywhere; }
.inline-step.is-done span { text-decoration: line-through; color: var(--text-faint); }

.step-add {
  width: 100%;
  padding: 5px 9px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12.5px;
}
.step-add::placeholder { color: var(--text-faint); }
.step-add:focus {
  outline: none;
  border-style: solid;
  border-color: var(--accent);
  background: var(--surface);
}

/* mini step progress bar */
.progress {
  height: 4px; border-radius: var(--radius-pill);
  background: var(--surface-2); overflow: hidden;
  border: 1px solid var(--border);
}
.progress__fill {
  height: 100%; background: var(--accent);
  transition: width 260ms var(--ease);
}
.progress--inline {
  width: 34px;
  height: 4px;
  border: 0;
  background: var(--border-strong);
}

/* group colour rail */
.rail { width: 3px; align-self: stretch; border-radius: var(--radius-pill); flex: none; }

/* ---------------- overlay scrim ---------------- */

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 20, 18, 0.32);
  backdrop-filter: blur(2px);
  animation: fade var(--dur) var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.dsection { display: grid; gap: var(--space-3); }
.dsection__label {
  font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint);
  display: flex; align-items: center; gap: var(--space-2);
}
.dsection__label .spacer { flex: 1; }

.title-input {
  width: 100%; border: 0; background: transparent;
  font-size: 18px; font-weight: 600; line-height: 1.3;
  padding: 0; letter-spacing: -0.01em;
}
.title-input:focus { outline: none; }

/* steps */
.step {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: 6px 8px; border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease);
}
.step:hover { background: var(--surface-2); }
.step input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); width: 14px; height: 14px; flex: none; }
.step__text { flex: 1; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.step.is-done .step__text { text-decoration: line-through; color: var(--text-faint); }
.step__drag { cursor: grab; color: var(--text-faint); opacity: 0; padding-top: 2px; }
.step:hover .step__drag { opacity: 1; }
.step.is-dragging { opacity: 0.4; }
.step.is-dragover { box-shadow: inset 0 2px 0 var(--accent); }

/* ---------------- task editor window ---------------- */

.editor {
  position: fixed;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 40px));
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: pop 180ms var(--ease);
}

.editor__head {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.editor__bar { display: flex; align-items: center; gap: var(--space-2); }
.editor__flags { display: flex; gap: var(--space-2); }

.editor__title {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}
.editor__title:focus { outline: none; }
.editor__title::placeholder { color: var(--text-faint); font-weight: 500; }

.editor__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.editor__main {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-5);
  min-width: 0;
}
.editor__side {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  min-width: 0;
}

/* the whole point of the window: room to write */
.editor__notes {
  width: 100%;
  min-height: 190px;
  max-height: 420px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}
.editor__notes:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.editor__foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.editor .dsection__label { margin-bottom: -4px; }

@media (max-width: 760px) {
  .editor { width: calc(100vw - 20px); max-height: 92vh; }
  .editor__body { grid-template-columns: 1fr; }
  .editor__side { border-left: 0; border-top: 1px solid var(--border); }
  .editor__notes { min-height: 130px; }

  /* status + close on the first line, the flags on their own below,
     so the close button can never be pushed off the edge */
  .editor__bar { flex-wrap: wrap; }
  .editor__bar .btn-group { flex: 1; }
  .editor__bar .spacer { display: none; }
  .editor__flags { order: 3; width: 100%; }
  .editor__flags .btn { flex: 1; justify-content: center; }
}

/* ---------------- modal ---------------- */

.modal {
  position: fixed; z-index: 100;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: pop 180ms var(--ease);
}
@keyframes pop { from { transform: translate(-50%, -48%) scale(0.98); opacity: 0; } }
.modal--wide { width: min(760px, calc(100vw - 32px)); }
.modal__head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border);
}
.modal__head h2 { margin-right: auto; }
.modal__body { flex: 1; overflow-y: auto; padding: var(--space-5); display: grid; gap: var(--space-4); }
.modal__foot {
  display: flex; gap: var(--space-2); justify-content: flex-end;
  padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* command palette */
.palette-modal { top: 14%; transform: translate(-50%, 0); }
@keyframes pop-top { from { transform: translate(-50%, -8px); opacity: 0; } }
.palette-modal { animation: pop-top 180ms var(--ease); }
.cmd-list { display: grid; gap: 2px; max-height: 380px; overflow-y: auto; }
.cmd {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px 11px; border-radius: var(--radius);
  cursor: pointer; font-size: 13.5px; border: 0; background: transparent;
  color: var(--text); text-align: left; width: 100%;
}
.cmd:hover, .cmd.is-active { background: var(--accent-soft); color: var(--accent-text); }
.cmd__hint { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.cmd svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }

kbd {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 1px 5px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---------------- toast ---------------- */

.toasts {
  position: fixed; z-index: 200; bottom: var(--space-5); left: 50%;
  transform: translateX(-50%);
  display: grid; gap: var(--space-2); justify-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  pointer-events: auto;
  animation: toast-in 200ms var(--ease);
}
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.toast.is-out { animation: toast-out 160ms var(--ease) forwards; }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }
.toast button {
  border: 0; background: none; cursor: pointer; padding: 0;
  color: inherit; font-weight: 650; text-decoration: underline;
  font-size: 13px;
}

/* ---------------- palette picker (settings) ---------------- */

.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.palette-card {
  padding: var(--space-3); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: left; display: grid; gap: var(--space-3);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.palette-card:hover { border-color: var(--border-strong); }
.palette-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.palette-card__name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.swatches { display: flex; gap: 4px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); }

/* ---------------- copilot ---------------- */

.copilot-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: var(--space-3); }
.copilot-action {
  display: grid; gap: 4px; padding: var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; text-align: left;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.copilot-action:hover { border-color: var(--accent); background: var(--accent-soft); }
.copilot-action__name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.copilot-action__desc { font-size: 12px; color: var(--text-dim); line-height: 1.45; }

.suggestion {
  display: grid; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.suggestion.is-applied { opacity: 0.5; }
.suggestion__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.suggestion__text { flex: 1; min-width: 0; }
.suggestion__why { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.suggestion__why b { font-weight: 600; color: var(--text); }

.rank {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* focus timer widget */
.timer { display: grid; gap: var(--space-2); }
.timer__clock {
  font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1;
}
.timer__task {
  font-size: 12px; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.timer.is-running .timer__clock { color: var(--accent-text); }

/* people */
.person-card { display: grid; gap: var(--space-3); }
.person-card__head { display: flex; align-items: center; gap: var(--space-3); }
.person-card__name { font-size: 14px; font-weight: 600; }
.person-card__role { font-size: 12px; color: var(--text-faint); }

/* group cards */
.group-card { display: grid; gap: var(--space-3); position: relative; overflow: hidden; }
.group-card__bar { position: absolute; inset: 0 auto 0 0; width: 3px; }

.dot-lg { width: 11px; height: 11px; border-radius: 50%; flex: none; }

/* tables used in settings + review lists */
.list-rows { display: grid; gap: 6px; }
.list-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px var(--space-3); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}

.divider { height: 1px; background: var(--border); margin: var(--space-2) 0; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

.banner {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius); font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
}
.banner--warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.banner--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
