:root {
  --navy: #13233a;
  --navy-2: #1d3557;
  --accent: #f28c28;
  --accent-ink: #1a1203;
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #17202c;
  --muted: #5d6878;
  --line: #d8dee6;
  --ok: #1d7a46;
  --ok-bg: #e3f4ea;
  --warn: #9a5b00;
  --warn-bg: #fff2dc;
  --bad: #b3261e;
  --bad-bg: #fde7e6;
  --info: #1f5fa8;
  --info-bg: #e5effa;
  --surface: #ffffff;      /* inputs, buttons, list rows */
  --input-line: #b9c3cf;
  --row-alt: #f8fafc;
  --head-bg: #e8edf3;
  --ink-2: #3b4452;
  --choice-on: #e8eef6;
  --sticky-bg: rgba(243,245,248,.96);
  --primary: #13233a;
  --primary-ink: #13233a;
  --ok-ink: #0f4a2a;
  --warn-ink: #5c3700;
  --bad-ink: #6d1712;
  --info-ink: #163e6b;
  --sent: #5b2ca0;
  --sent-bg: #efe7fb;
  --pre-line: #86c79c;
  --pre-ink: #14532d;
  --radius: 12px;
  --tap: 48px;
  --nav-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: var(--info); }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.12rem; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* ---------- top bar & nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand small { font-weight: 400; opacity: .75; }
.sync-pill {
  border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; min-height: 34px;
}
.sync-pill.offline { background: #4b5563; }
.sync-pill.pending { background: var(--accent); color: var(--accent-ink); }
.sync-pill.error { background: var(--bad); }
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .74rem; position: relative;
}
.bottomnav a .ico { font-size: 1.35rem; line-height: 1; }
.bottomnav a.active { color: var(--primary-ink); font-weight: 700; }
.bottomnav a.active::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.badge {
  position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700;
}
.banner { background: var(--accent); color: var(--accent-ink); padding: 10px 14px; text-align: center; font-weight: 600; }
.banner button { margin-left: 8px; }

main { max-width: 860px; margin: 0 auto; padding: 16px 14px; outline: none; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.06); border: 1px solid var(--line); margin-bottom: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.form-tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px; cursor: pointer; font: inherit; color: inherit; min-height: 88px;
  align-items: flex-start; justify-content: flex-start;
}
.form-tile:active { transform: scale(.99); }
.form-tile strong { font-size: 1.05rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a, .list .row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px; text-decoration: none; color: inherit; min-height: var(--tap);
}
.list .main { min-width: 0; }
.list .title { font-weight: 600; }
.list .sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { flex: 1 1 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 1.5rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.section-head h2 { margin: 0; }

/* ---------- status chips ---------- */
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.chip.pending { background: var(--info-bg); color: var(--info); }
.chip.approved { background: var(--ok-bg); color: var(--ok); }
.chip.rejected, .chip.error, .chip.conflict { background: var(--bad-bg); color: var(--bad); }
.chip.draft { background: var(--head-bg); color: var(--ink-2); }
.chip.queued { background: var(--warn-bg); color: var(--warn); }
.chip.sent { background: var(--sent-bg); color: var(--sent); }

/* ---------- buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.btn-link { border: 0; background: none; color: var(--info); padding: 0 6px; min-height: 36px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions.sticky {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: var(--sticky-bg);
  padding: 10px 0; margin: 0; border-top: 1px solid var(--line); z-index: 5;
}
.actions.sticky button { flex: 1; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--bad); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(242,140,40,.45); outline-offset: 1px; border-color: var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .sig-wrap, .field.invalid .choices { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: .85rem; margin-top: 4px; }
.field .help { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--input-line);
  border-radius: 10px; background: var(--surface); cursor: pointer; user-select: none; font-weight: 500;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary-ink); background: var(--choice-on); }
.yesno .choice { flex: 1; justify-content: center; }
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.form-section > h2 { border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 14px; }
.note { background: var(--info-bg); color: var(--info-ink); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }
.subhead { font-weight: 700; margin: 6px 0 10px; }

/* table rows as cards */
.trow { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--row-alt); }
.trow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; color: var(--muted); font-size: .85rem; }
.trow .field { margin-bottom: 10px; }
.trow-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* grid (fixed-row checklist) */
.grid-rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.grow { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.grow:nth-child(even) { background: var(--row-alt); }
.grow:last-child { border-bottom: 0; }
.grow-label { font-weight: 600; margin-bottom: 6px; }
.grow-cells { display: grid; gap: 8px 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.grow-col { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.grow .choices { flex-wrap: nowrap; gap: 6px; }
.grow .choice { min-height: 42px; padding: 0 8px; gap: 6px; flex: 1; min-width: 0; justify-content: center; }
.grow .choice input { width: 18px; height: 18px; }
.grow input[type=text], .grow input[type=number] { min-height: 42px; }
@media (min-width: 720px) {
  .grow { display: grid; grid-template-columns: 34% 1fr; gap: 12px; align-items: center; }
  .grow-label { margin: 0; }
}

/* signature */
.sig-wrap { border: 1px dashed #8a97a8; border-radius: 10px; background: #fff; position: relative; overflow: hidden; }
.sig-wrap canvas { display: block; width: 100%; height: 180px; touch-action: none; }
.sig-wrap img { display: block; width: 100%; height: 180px; object-fit: contain; }
.sig-hint { position: absolute; left: 12px; bottom: 8px; color: #9aa5b3; font-size: .8rem; pointer-events: none; }
.sig-line { position: absolute; left: 12px; right: 12px; bottom: 30px; border-bottom: 1px solid #c8d0da; pointer-events: none; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo input { border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 40px; font-size: .85rem; }
.photo .remove { position: absolute; top: 6px; right: 6px; min-height: 32px; padding: 0 10px; background: rgba(0,0,0,.65); color: #fff; border: 0; }
.photo-add { border: 2px dashed var(--input-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; cursor: pointer; color: var(--muted); font-weight: 600; text-align: center; padding: 8px; }
.photo-add input { display: none; }

/* read-only view */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ro-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 12px; }
.ro-table th, .ro-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.ro-table th { background: var(--head-bg); }
.ro-sig { max-width: 280px; max-height: 110px; border-bottom: 1px solid #999; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-2); }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.alert.bad { background: var(--bad-bg); color: var(--bad-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.info { background: var(--info-bg); color: var(--info-ink); }

/* tabs & toolbar */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.tabs button { min-height: 40px; border-radius: 999px; white-space: nowrap; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input { flex: 1; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(10,18,30,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); color: var(--ink); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 16px; } }

/* toasts */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 520px; pointer-events: auto; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* auth */
.auth { max-width: 420px; margin: 6vh auto 0; }
.auth .logo { display: block; margin: 0 auto 12px; width: 72px; height: 72px; }
.auth h1 { text-align: center; }

@media print {
  .topbar, .bottomnav, .actions, #toasts { display: none !important; }
  body { background: #fff; padding: 0; }
  :root[data-theme=dark] { --bg: #fff; --card: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; --row-alt: #f6f6f6; --head-bg: #eee; color-scheme: light; }
}

/* ---------- compact (paper-style) form layout ---------- */
:root { --pre: #15803d; --pre-bg: #effaf2; }
main:has(.form-cols) { max-width: 1320px; }
.form-section.compact { padding: 12px; margin-bottom: 12px; }
.form-section.compact > h2 { font-size: 1rem; margin-bottom: 10px; padding-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; }
.fgrid { display: grid; gap: 8px 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: end; }
.fgrid > .span-all { grid-column: 1 / -1; }
.fgrid > .span-2 { grid-column: span 2; }
.fgrid > .field { margin-bottom: 0; }
.fgrid > .subhead { grid-column: 1 / -1; margin: 6px 0 0; font-size: .9rem; }
.compact .field > label, .compact .field > .label { font-size: .78rem; margin-bottom: 3px; color: var(--ink-2); }
.compact input[type=text], .compact input[type=number], .compact input[type=date], .compact input[type=time],
.compact input[type=email], .compact input[type=tel], .compact select {
  min-height: 40px; padding: 6px 8px; font-size: .95rem; border-radius: 8px;
}
.compact textarea { min-height: 72px; padding: 8px; border-radius: 8px; }
.compact .choice { min-height: 40px; padding: 0 10px; border-radius: 8px; }
.compact .choices { gap: 6px; }
@media (min-width: 1000px) {
  .form-cols { columns: 2; column-gap: 12px; }
  .form-cols > .form-section, .form-cols > .prefill-legend { break-inside: avoid; display: block; }
}

/* checklist table */
.ctable { border: 1px solid var(--input-line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.ct-row { display: grid; gap: 6px; align-items: center; padding: 4px 8px; border-top: 1px solid var(--line); }
.ct-row:nth-child(odd):not(.ct-head) { background: var(--row-alt); }
.ct-head { border-top: 0; background: var(--head-bg); padding-top: 6px; padding-bottom: 6px; align-items: end; }
.ct-title { font-weight: 700; font-size: .85rem; }
.ct-colhead { font-size: .66rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; line-height: 1.15; text-align: center; }
.ct-label { font-size: .88rem; line-height: 1.2; }
.ct-cell input, .ct-cell select { min-height: 36px !important; padding: 4px 6px !important; font-size: .9rem !important; border-radius: 6px !important; width: 100%; }
.ct-cell { display: flex; justify-content: center; min-width: 0; }
.yn {
  width: 42px; min-height: 36px; padding: 0; border-radius: 6px; font-weight: 800; font-size: .95rem;
  border: 1px solid var(--input-line); background: var(--surface); color: var(--muted);
}
.yn[data-v=yes] { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.yn[data-v=no] { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }

/* values carried over from equipment history */
.prefilled input, .prefilled select, .prefilled textarea { color: var(--pre) !important; font-weight: 600; background: var(--pre-bg) !important; border-color: var(--pre-line) !important; }
.prefilled .yn { outline: 2px solid var(--pre-line); }
dd.prefilled, td.prefilled { color: var(--pre); font-weight: 600; }
.prefill-legend { display: flex; align-items: center; gap: 8px; background: var(--pre-bg); color: var(--pre-ink); border: 1px solid var(--pre-line); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: .88rem; }
.prefill-legend .swatch { flex: 0 0 14px; height: 14px; border-radius: 3px; background: var(--pre); }
.lookup-row { display: flex; gap: 8px; }
.lookup-row > :first-child { flex: 1; min-width: 0; }
.lookup-row button { white-space: nowrap; min-height: 40px; }
.lookup-status { font-size: .82rem; margin-top: 4px; }
.lookup-status:empty { display: none; }
.ok-text { color: var(--ok); }
.with-list { display: block; }

.ct-cell.has-hint { flex-direction: column; align-items: stretch; }
.ct-hint { font-size: .68rem; color: var(--muted); font-weight: 600; line-height: 1.1; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* help */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.help-btn { min-height: 34px; width: 34px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: 1rem; }
.help-topic { border-bottom: 1px solid var(--line); padding: 4px 0; }
.help-topic:last-of-type { border-bottom: 0; }
.help-topic summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.help-body { padding: 0 0 10px; }
.help-body p { margin: 6px 0; }
.help-body ul { margin: 6px 0; padding-left: 20px; }
.help-body li { margin: 5px 0; }

/* client locations */
.loc-list { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 8px; max-height: 220px; overflow: auto; }
.loc-list li { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; border-bottom: 1px solid var(--line); }
.loc-list li:last-child { border-bottom: 0; }
.loc-list li.muted { padding: 10px; }

/* clients & locations screen */
.client-card h2 { font-size: 1.1rem; }
.loc-head { margin: 10px 0 6px; }
.loc-rows { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.loc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line); min-height: 48px; }
.loc-row:last-child { border-bottom: 0; }
.loc-row:nth-child(even) { background: var(--row-alt); }
.loc-name { display: flex; flex-direction: column; min-width: 0; }
.loc-name > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.loc-actions { display: flex; flex-shrink: 0; }
.btn-link.danger { color: var(--bad); }
.modal p { white-space: pre-line; }

/* ---------- dark theme (Account → Appearance; light is the default) ---------- */
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0e141c;
  --card: #17202b;
  --surface: #111923;
  --ink: #e5eaf0;
  --ink-2: #c3ccd7;
  --muted: #98a5b5;
  --line: #2a3544;
  --input-line: #3b4859;
  --row-alt: #1b2531;
  --head-bg: #223042;
  --choice-on: #213450;
  --sticky-bg: rgba(14,20,28,.96);
  --primary: #3f74b5;
  --primary-ink: #8db8ee;
  --info: #8bb8ee;  --info-bg: #15283f;  --info-ink: #cfe2fa;
  --ok: #5fd08c;    --ok-bg: #11301e;    --ok-ink: #c5f0d6;
  --warn: #f2b65c;  --warn-bg: #33260f;  --warn-ink: #f7dfb5;
  --bad: #ff8a80;   --bad-bg: #3a1714;   --bad-ink: #ffd0cb;
  --sent: #c9a8ff;  --sent-bg: #2a1f40;
  --pre: #6ee39b;   --pre-bg: #0f2a1a;   --pre-line: #2f7a4c; --pre-ink: #bff0d1;
}
:root[data-theme=dark] .btn-ok { color: #08210f; }
:root[data-theme=dark] .badge,
:root[data-theme=dark] .toast.bad { color: #2a0906; }
:root[data-theme=dark] .toast { background: #2a3a52; }
:root[data-theme=dark] .toast.ok { background: #1f6b3e; color: #fff; }
:root[data-theme=dark] .form-tile { border-left-color: var(--accent); }
:root[data-theme=dark] img.ro-sig, :root[data-theme=dark] .sig-wrap { background: #fff; } /* signatures stay on "paper" */
:root[data-theme=dark] .modal-back { background: rgba(0,0,0,.7); }
.theme-choices .choice { flex: 1; justify-content: center; }

/* returned-form notices */
.notice-banner { color: #fff; }
.notice.returned { background: #b3261e; }
.notice.awaiting { background: #1f5fa8; }
.notice { display: flex; align-items: center; gap: 10px; padding: 8px max(8px, calc((100% - 1320px) / 2)) 8px max(14px, calc((100% - 1320px) / 2)); border-bottom: 1px solid rgba(255,255,255,.25); }
.notice:last-child { border-bottom: 0; }
.notice a { color: #fff; }
.notice-icon { font-size: 1.1rem; }
.notice-text { flex: 1; min-width: 0; text-decoration: none; font-size: .92rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-open { font-weight: 700; white-space: nowrap; }
.notice-close { min-height: 40px; width: 40px; padding: 0; border: 0; background: rgba(0,0,0,.18); color: #fff; font-size: 1.4rem; line-height: 1; border-radius: 8px; flex-shrink: 0; }
.notice.more { justify-content: center; font-size: .85rem; }
:root[data-theme=dark] .notice.returned { background: #8f1f18; }
:root[data-theme=dark] .notice.awaiting { background: #1d4a80; }
.push-prompt { border-left: 5px solid var(--info); }

.pause-box { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.pause-choices button { min-width: 56px; }

.os-steps h4 { margin: 12px 0 2px; font-size: .95rem; }

.notice.info { background: #8a5a00; }
:root[data-theme=dark] .notice.info { background: #6b4600; }
.list .sub.notify-off { color: var(--bad); white-space: normal; }
