/* Shopping Butler — mobile-first styles. Phones first; wider layouts at the bottom. */
:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --text: #17211b;
  --muted: #5d6b63;
  --line: #dbe2dc;
  --accent: #1f7a4d;
  --accent-strong: #17603c;
  --accent-soft: #e2f3e9;
  --on-accent: #ffffff;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a5a00;
  --warn-soft: #fdf1d3;
  --info: #1d5fa8;
  --info-soft: #e3eefb;
  --heart: #d6336c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  --radius: 14px;
  --tap: 48px;
  --tabs-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512;
    --surface: #1a211d;
    --surface-2: #232c27;
    --text: #e8eeea;
    --muted: #9caba3;
    --line: #2f3a34;
    --accent: #4cc38a;
    --accent-strong: #6ad3a0;
    --accent-soft: #1d3a2c;
    --on-accent: #06281a;
    --danger: #ff8a80;
    --danger-soft: #45201d;
    --warn: #f2c666;
    --warn-soft: #3d3115;
    --info: #8ab8f0;
    --info-soft: #1b2e45;
    --heart: #ff6b9d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; margin-top: 4px; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.icon { display: inline-flex; width: 24px; height: 24px; flex: none; }
.icon.sm, .icon.sm svg { width: 18px; height: 18px; }
.error-text { color: var(--danger); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ form controls */
input[type="text"], input[type="password"], input[type="email"], input[type="search"],
input[type="number"], input[type="date"], select {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 16px;                      /* 16px stops iOS zooming in on focus */
}
select { appearance: auto; }
input:disabled { opacity: .6; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline > span { flex: none; max-width: 45%; }
.field-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; }
.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; min-width: 0; }
.fieldset legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input, .bigbox { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin: 0; }
.radio-row, .filters, .btn-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }
.details > * + * { margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-weight: 600; text-decoration: none; color: var(--text);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.danger-text { color: var(--danger); border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn.heart.on { color: var(--heart); }
.icon-btn.cart.on { color: var(--accent); background: var(--accent-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .9rem;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block; padding: 2px 8px; margin-left: 6px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap;
}
td > .badge:first-child, dd > .badge:first-child { margin-left: 0; }
.badge.ok { background: var(--accent-soft); color: var(--accent-strong); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }

/* quantity stepper: big − / + around an editable number */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.step-btn {
  width: var(--tap); min-height: var(--tap); padding: 0; border: 0; background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.step-btn:active { background: var(--accent-soft); }
.stepper .qty-input {
  width: 58px; min-height: 0; padding: 0 2px; border: 0; border-radius: 0; text-align: center;
  font-weight: 700; font-size: 1.1rem; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.compact .step-btn { width: 42px; min-height: 42px; }
.stepper.compact .qty-input { width: 44px; font-size: 1rem; }

/* ------------------------------------------------------------------- shell */
.offline.syncing { background: var(--info-soft); color: var(--info); }
.conflict-bar {
  display: block; width: 100%; padding: 10px 16px; border: 0;
  background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: .92rem; text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare { display: grid; gap: 8px; margin: 0; }
.compare > div { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 12px; }
.compare dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.compare .was dd { font-weight: 400; color: var(--muted); }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choices .btn { white-space: normal; text-align: center; padding: 10px 14px; height: auto; }
.choice-note { font-size: .82rem; font-weight: 400; display: block; opacity: .85; }
.lot-row { display: flex; align-items: center; gap: 10px; }
.lot-qty { flex: none; min-width: 56px; font-weight: 700; text-align: right; }
.offline { padding: 8px 16px; background: var(--warn-soft); color: var(--warn); font-size: .9rem; text-align: center; }
.view {
  padding: 16px 16px calc(var(--tabs-h) + var(--safe-b) + 24px);
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  padding-top: max(16px, env(safe-area-inset-top));
  max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
}
.view-title { font-size: 1.5rem; line-height: 1.2; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row > .muted { min-width: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-direction: column; gap: 10px; }
.view-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabs .brand { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; min-width: 0;
}
.tab.on { color: var(--accent); }

.action-bar { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); z-index: 10; }
.action-bar .btn { box-shadow: var(--shadow); min-height: 54px; font-size: 1.05rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
details.card { display: block; }
details.card > summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
details.card[open] > summary { margin-bottom: 10px; }
details.card > * + * { margin-top: 10px; }

.segmented { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.segmented button { flex: 1; min-height: 44px; padding: 0 8px; border: 0; background: transparent; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.segmented button:last-child { border-right: 0; }
.segmented button.on { background: var(--accent); color: var(--on-accent); }

/* -------------------------------------------------------------------- rows */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 4px 2px; border: 0; background: transparent; text-align: left; min-height: 44px; justify-content: center;
}
.row-main.static { cursor: default; }
.row-name { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.rows.compact .row { padding: 2px 6px 2px 12px; }
.rows.compact .row-name { font-size: 1rem; font-weight: 500; }

.aisle-sep {
  display: flex; align-items: baseline; gap: 10px; margin: 12px 2px 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong);
}
.aisle-sep::after { content: ""; flex: 1; height: 2px; background: var(--accent); opacity: .35; align-self: center; order: 2; }
.aisle-note { order: 3; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* shopping list row: [check] [name] [heart] / second line: buying stepper, Hide, more */
.list-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; column-gap: 6px; }
.list-row .row-extra { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; padding-bottom: 4px; }
.buy-label { font-size: .8rem; color: var(--muted); }
.list-row .row-extra .btn { margin-left: auto; }
.bigcheck {
  width: 44px; height: 44px; padding: 0; border: 2.5px solid var(--muted); border-radius: 12px; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
}
.bigcheck .icon, .bigcheck svg { width: 30px; height: 30px; }
.bigcheck svg { stroke-width: 3; }
.bigcheck.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.list-row.checked .row-name { text-decoration: line-through; color: var(--muted); }
.list-row.checked { background: var(--surface-2); }
.list-row.is-hidden .row-main { opacity: .55; }

/* inventory row: [name] [heart] [cart] / second line: two labelled steppers */
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; align-items: center; column-gap: 4px; }
.inv-row .row-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 2px 0 6px; }
.inv-row .qty-input { width: 48px; }
.qty-group { display: flex; flex-direction: column; gap: 2px; }
.qty-group > span { font-size: .75rem; font-weight: 600; color: var(--muted); }
.inv-row.low .stepper { border-color: var(--warn); }
.inv-row.low .qty-group:first-child .qty-input { color: var(--warn); }

/* add box + suggestions */
.add-box { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 15;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.suggest-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: var(--tap);
  padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left;
}
.suggest-row:last-child { border-bottom: 0; }
.suggest-row.new { justify-content: flex-start; color: var(--accent-strong); font-weight: 600; }
.suggest-row:active { background: var(--surface-2); }

/* ---------------------------------------------------------- sheets (dialog) */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: var(--bg); color: var(--text); box-shadow: var(--shadow); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet.tall { height: 92dvh; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 6px 18px; flex: none; }
.sheet-head h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
.sheet-body { padding: 8px 18px 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sheet-foot {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 14px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--surface);
}
.confirm-text { font-size: 1.05rem; }
.menu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-weight: 500; }
.menu-row:last-child { border-bottom: 0; }
.menu-row.danger { color: var(--danger); }
.menu-row.selected { color: var(--accent-strong); font-weight: 700; }

/* drag-to-order aisle list */
.sort-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sort-row { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 2px 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sort-row:last-child { border-bottom: 0; }
.sort-row.dragging { background: var(--accent-soft); box-shadow: var(--shadow); position: relative; z-index: 2; }
.grip { width: 48px; height: 48px; flex: none; border: 0; background: transparent; color: var(--muted); cursor: grab; touch-action: none; display: inline-flex; align-items: center; justify-content: center; }
.sort-num { width: 26px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.sort-name { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sort-list .empty { padding: 16px; }

/* ------------------------------------------------------------------- admin */
.facts { margin: 0; display: grid; gap: 10px; }
.fact dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .nowrap { white-space: nowrap; }
.table .wide { min-width: 220px; overflow-wrap: anywhere; }
.table .center { text-align: center; }

/* ------------------------------------------------------------------ toasts */
.toasts {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + var(--safe-b) + 12px); z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
dialog .toasts { bottom: calc(var(--safe-b) + 84px); }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 480px; padding: 12px 16px; border-radius: 12px;
  background: #1c2620; color: #fff; box-shadow: var(--shadow); pointer-events: auto; font-size: .95rem;
}
.toast.error { background: #8c1d18; }
.toast-action { border: 0; background: transparent; color: #8fe0b5; font-weight: 700; padding: 4px; white-space: nowrap; }

/* ------------------------------------------------------------------- login */
.login-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow);
}
.login-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 8px; }
.login-logo { align-self: center; border-radius: 18px; }

/* --------------------------------------------------- tablets and desktops */
@media (min-width: 600px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .toolbar .filters { flex-wrap: nowrap; }
  .facts { grid-template-columns: 1fr 1fr; }
  dialog.sheet { width: min(600px, calc(100% - 32px)); margin: auto; border-radius: 20px; max-height: 88dvh; }
  dialog.sheet.tall { height: auto; min-height: min(560px, 88dvh); }
  .list-row { grid-template-columns: 52px minmax(0, 1fr) auto 44px; }
  .list-row .row-extra { grid-column: 3; grid-row: 1; padding: 0; }
  .list-row .icon-btn.heart { grid-column: 4; grid-row: 1; }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto 44px 44px; }
  .inv-row .row-extra { grid-column: 2; grid-row: 1; padding: 0; flex-wrap: nowrap; }
}
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
  .tabs {
    position: sticky; top: 0; height: 100dvh; flex-direction: column; gap: 4px; padding: 16px 12px;
    border-top: 0; border-right: 1px solid var(--line);
  }
  .tabs .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; white-space: nowrap; min-width: 0; padding: 4px 8px 16px; }
  .tabs .brand img { border-radius: 8px; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; border-radius: 12px; font-size: 1rem; }
  .tab.on { background: var(--accent-soft); color: var(--accent-strong); }
  .view { padding-bottom: 32px; width: 100%; }
  .action-bar { bottom: 16px; }
  .toasts { bottom: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .18s ease-out; }
  @keyframes rise { from { opacity: 0; translate: 0 8px; } }
}

/* filter dropdowns sit side by side when there is room */
.filters select { flex: 1 1 150px; width: auto; }

/* platform console + hints */
textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; resize: vertical;
}
.hint { font-size: .8rem; font-weight: 400 !important; color: var(--muted); }
.platform { max-width: 820px; }
.platform > h2 { margin-top: 8px; }

/* household bar: always on screen, so it is clear which household you are in */
.top-stack { position: sticky; top: 0; z-index: 30; }
.hh-bar {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; border: 0;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-align: left;
}
.hh-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.hh-switch { flex: none; font-size: .85rem; font-weight: 600; opacity: .9; }
.hh-option { display: flex; flex-direction: column; min-width: 0; }
.view { padding-top: 16px; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.member-row:last-of-type { border-bottom: 0; }
.member-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* who else is here */
.presence {
  padding: 6px 16px; background: var(--info-soft); color: var(--info); font-size: .88rem; font-weight: 600;
  text-align: center; border-bottom: 1px solid var(--line);
}
/* brand */
.wordmark { font-size: clamp(1.4rem, 7.6vw, 1.85rem); letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.tagline { font-size: .95rem; }
.wordmark span { font-weight: 400; color: var(--accent); }
.btn.link { border-color: transparent; background: transparent; color: var(--accent); min-height: 40px; font-weight: 600; }
.form-note { background: var(--info-soft); color: var(--info); padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.version-line { text-align: center; }
.link-box { display: flex; gap: 8px; align-items: center; }
.link-box input { flex: 1; min-width: 0; font-size: .85rem; }
.tabs-scroll { overflow-x: auto; }
.tabs-scroll .segmented { min-width: max-content; }
.tabs-scroll .segmented button { padding: 0 14px; }
