/* =====================================================================
   7th Airedale group tools: shared look
   ---------------------------------------------------------------------
   Taken from the Invoices tool so every group tool looks like part of
   one portal. Keep this file identical in each app; put anything that
   only one tool needs in that tool's own styles.css.
   Fonts: Bricolage Grotesque (headings) + Public Sans (text), from Google Fonts.
   ===================================================================== */
:root {
  --ground: #f2f3f6;
  --surface: #ffffff;
  --ink: #1a1f2c;
  --muted: #5d6478;
  --line: #dcdfe7;
  --accent: #5a27b0;
  --accent-soft: #efe9fb;
  --accent-ink: #ffffff;
  --good: #17694a;
  --good-soft: #e3f3ec;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 8px;
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #12141b; --surface: #1b1e28; --ink: #e8eaf1; --muted: #a0a6b8; --line: #2e3242;
    --accent: #a98bf0; --accent-soft: #2a2242; --accent-ink: #160d2b;
    --good: #6fd3a6; --good-soft: #173328; --warn: #f0b85a; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3a1a18;
    --logo-filter: invert(1) brightness(1.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #12141b; --surface: #1b1e28; --ink: #e8eaf1; --muted: #a0a6b8; --line: #2e3242;
  --accent: #a98bf0; --accent-soft: #2a2242; --accent-ink: #160d2b;
  --good: #6fd3a6; --good-soft: #173328; --warn: #f0b85a; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3a1a18;
  --logo-filter: invert(1) brightness(1.1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { color-scheme: light; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 20px; padding-block: 0 48px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Header: logo | tool name | role badge   tabs   who ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px 18px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; filter: var(--logo-filter); display: block; }
.brand .sep { width: 1px; align-self: stretch; background: var(--line); }
.brand .home { display: block; border-radius: 6px; }
.brand .home:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: center; }
.brand h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
nav.tabs button, nav.tabs a { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
nav.tabs button[aria-current="page"], nav.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
nav.tabs button:focus-visible, nav.tabs a:focus-visible, .btn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Small count on a tab, e.g. claims waiting for you */
.tab-count { font-size: .72rem; font-weight: 700; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
nav.tabs [aria-current="page"] .tab-count { background: var(--accent-ink); color: var(--accent); }
.who { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.who a { color: var(--accent); font-weight: 600; text-decoration: none; }
.who a:hover { text-decoration: underline; }

/* ---------- Messages ---------- */
.banner { background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }
.banner.err { background: var(--bad-soft); color: var(--bad); }
.note { background: var(--accent-soft); color: var(--ink); border-radius: var(--r); padding: 10px 14px; font-size: .9rem; }
.msg { font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.msg.ok { color: var(--good); } .msg.err { color: var(--bad); }
.loading { text-align: center; color: var(--muted); padding: 60px 16px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- Panels and layout ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.panel h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.panel + .panel { margin-top: 20px; }
.stack { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 12px; }
/* Line the boxes up along the bottom, so a field with a hint above its box doesn't push it out of line with its neighbour. */
.row2, .row3 { align-items: end; }
@media (max-width: 520px) { .row2, .row3 { grid-template-columns: 1fr; } }
/* List on the left, form on the right */
.clientgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.clientgrid > .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .clientgrid { grid-template-columns: 1fr; } }
.cname { font-weight: 600; }
.csub { color: var(--muted); font-size: .85rem; }
.fieldbox, .sched { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0; display: grid; gap: 12px; }

/* ---------- Forms ---------- */
label.f { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
label.f > span.hint, .f-legend .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.f-legend { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; display: grid; gap: 2px; }
input[type=text], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--ground); border-radius: 6px; padding: 8px 10px; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
}
/* Same height for text boxes, dates and drop-downs in every browser (Safari draws
   its own smaller drop-downs and taller date boxes unless told otherwise). */
input[type=text], input[type=email], input[type=number], input[type=date], select { height: 40px; line-height: 1.2; }
input[type=date] { -webkit-appearance: none; appearance: none; display: block; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6478' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 8px;
}
select::-ms-expand { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a0a6b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a0a6b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input:disabled { opacity: .7; }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.money input { padding-left: 20px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check.start { align-items: flex-start; font-weight: 500; }
.check.start input { margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; }
a.btn { text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; font-size: .9rem; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions .spacer { flex: 1; }

/* ---------- Lists (become cards on phones) ---------- */
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.list th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list .r { text-align: right; }
table.list .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--ground); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad); color: var(--surface); }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.pill.muted { background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input { max-width: 260px; }
.filters select { width: auto; }
.summary { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.summary div { display: grid; }
.summary span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.summary strong { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* ---------- Dialogs ---------- */
dialog.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(10,12,20,.25); }
dialog.dlg::backdrop { background: rgba(15,18,28,.45); }
dialog.dlg h2 { font-size: 1.2rem; }

/* ---------- Toast (short confirmations) ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--r); font-weight: 600; font-size: .9rem; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(10,12,20,.2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--bad); color: #fff; }

/* ---------- Sign-in page ---------- */
.gate { max-width: 440px; margin: 10vh auto 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.gate img { width: min(300px, 80%); filter: var(--logo-filter); }
.gate h1 { font-size: 1.5rem; }
.gate p { color: var(--muted); margin: 0; }
.gate .btns { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.gate .btn { padding: 11px 16px; font-size: .95rem; text-decoration: none; }

/* ---------- "Built with love" footer ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .wrap { flex: 1 0 auto; width: 100%; }
.site-foot { border-top: 1px solid var(--line); background: var(--ground); color: var(--muted); text-align: center; font-size: .92rem; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); padding-inline: 16px; }
.site-foot a { color: var(--muted); font-weight: 500; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--accent); text-decoration: underline; }
.site-foot .app-version { margin-left: 8px; padding-left: 9px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: .85em; }
.site-foot .app-version:empty { display: none; }
.site-foot .app-version.mismatch { color: var(--warn); }
.site-foot .heart { color: #d9452b; vertical-align: -2px; margin-inline: 1px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===================== Phones and small tablets (under 760px) =====================
   App-style bottom tab bar, slim sticky header, lists as cards, 16px text boxes. */
.mnav, .msheet { display: none; }
@media (max-width: 760px) {
  .wrap { padding-inline: 14px; padding-block: 0 24px; }
  .top { padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); margin-inline: -14px; padding-inline: 14px; margin-bottom: 14px; }
  .brand { gap: 10px; flex-wrap: nowrap; }
  .brand img { height: 34px; }
  .brand h1 { font-size: 1.25rem; }
  .brand .sep { display: none; }
  nav.tabs, .who { display: none !important; }

  .mnav:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(10, 12, 20, .06); }
  .mnav button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 6px 2px; border-radius: 10px; min-height: 52px; cursor: pointer; position: relative; }
  .mnav button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .mnav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .mnav .tab-count { position: absolute; top: 3px; left: calc(50% + 6px); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  .msheet:not([hidden]) { display: flex; align-items: flex-end; position: fixed; inset: 0; z-index: 40; background: rgba(15, 18, 28, .45); }
  .msheet-panel { width: 100%; background: var(--surface); border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
  .msheet-items { display: grid; gap: 10px; }
  .msheet-items:empty { display: none; }
  .msheet-panel .btn { width: 100%; min-height: 48px; font-size: 1rem; }
  .msheet-who { display: grid; gap: 2px; padding: 8px 2px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
  .msheet-who strong { color: var(--ink); font-weight: 600; }

  .banner, .note { font-size: .88rem; padding: 10px 12px; margin-bottom: 12px; }
  .panel { padding: 16px; border-radius: 12px; }
  .panel + .panel { margin-top: 14px; }
  .clientgrid { gap: 14px; }
  input[type=text], input[type=email], input[type=number], input[type=date], select, textarea { font-size: 16px; padding: 10px 12px; min-height: 44px; }
  input[type=text], input[type=email], input[type=number], input[type=date], select { height: 44px; }
  select { padding-right: 34px; }
  .btn { min-height: 44px; padding: 10px 16px; }
  .btn.sm { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
  .actions .btn.primary { flex: 1 1 100%; }
  .actions .spacer { display: none; }

  .tablewrap { overflow: visible; }
  table.list thead { display: none; }
  table.list, table.list tbody { display: block; }
  table.list tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.list tr:last-child { border-bottom: 0; }
  table.list td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
  table.list td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
  table.list td:first-child { grid-column: 1 / -1; font-size: 1.02rem; }
  table.list td:first-child::before { display: none; }
  table.list td:has(.acts) { grid-column: 1 / -1; }
  table.list .acts { justify-content: flex-start; }
  table.list .r { text-align: left; }
  table.list tr.click:hover td { background: none; }

  .summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .summary strong { font-size: 1.15rem; }
  .filters { display: grid; grid-template-columns: 1fr; }
  .filters input, .filters select { max-width: none; width: 100% !important; }

  dialog.dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .site-foot { padding-block: 14px; font-size: .85rem; }
  .gate { margin-top: 6vh; }
}

/* ---------- In-app Help (the quick guides). Shared since Expenses 1.7.1 / Invoices 1.2.1 ---------- */
.help-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.help-head .spacer { flex: 1; }
.seg { display: inline-flex; gap: 4px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 12px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 4px rgba(10,12,20,.07); }
.help-toc::before { content: "Jump to a section"; flex-basis: 100%; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.help-toc .linkbtn, .help-toc a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.help-toc .linkbtn:hover, .help-toc a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.help-note { margin: 6px 0 0; }
.help-body { max-width: 880px; }
.help-body .hsec { padding: 22px 0 10px; border-bottom: 1px solid var(--line); }
.help-body .hsec:last-child { border-bottom: 0; }
.help-body h2 { font-family: var(--font-display, inherit); font-size: 1.3rem; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 90px; }
.help-body h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.help-body h3 { font-size: 1rem; margin: 16px 0 6px; }
.help-body p { margin: 0 0 10px; }
.help-body .intro { font-size: 1rem; color: var(--muted); margin: 6px 0 18px; }
.help-body .url { display: block; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.help-body .shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 6px 0 14px; background: #fff; }
.help-body .shot img { display: block; width: 100%; height: auto; }
.help-body .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0 0 12px; }
.help-body .steps.one { grid-template-columns: 1fr; }
.help-body .step { display: flex; gap: 10px; align-items: flex-start; }
.help-body .step .d { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e0242e; color: #fff; font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.help-body .step > div { flex: 1; }
.help-body .chip { display: inline-block; padding: 0 7px; border-radius: 6px; font-weight: 700; font-size: .85rem; line-height: 1.6; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.help-body .chip.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.help-body .chip.r { color: var(--bad); }
.help-body .box { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.help-body .box .t { color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.help-body .box p:last-child { margin-bottom: 0; }
.help-body .small { font-size: .85rem; color: var(--muted); }
.help-body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.help-body .cols.wide { grid-template-columns: 1.15fr 1fr; }
.help-body .cols.narrow { grid-template-columns: .85fr 1fr; }
.help-body .center { display: flex; justify-content: center; }
.help-body .center .shot, .help-body .shot[style*="width"] { max-width: 360px; }
.help-body table.st { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.help-body table.st td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-body table.st td:first-child { width: 40%; padding-left: 0; }
.help-body .flow { display: flex; align-items: stretch; margin: 6px 0 14px; }
.help-body .flow .node { flex: none; width: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface); text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: .85rem; }
.help-body .flow .node .pill { white-space: normal; }
.help-body .flow .arrow { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 8px; font-size: .82rem; text-align: center; }
.help-body .flow .arrow b { color: var(--accent); }
.help-body .flow .arrow .line { width: 100%; border-top: 2px solid var(--accent); position: relative; margin: 6px 0; }
.help-body .flow .arrow .line:after { content: ''; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left: 8px solid var(--accent); }
.help-body .side { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.help-body .side > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.help-body .side .pill { margin-bottom: 6px; }
.help-body .faq h3 { margin: 0 0 2px; }
@media (max-width: 760px) {
  .help-body .steps, .help-body .cols, .help-body .cols.wide, .help-body .cols.narrow, .help-body .side { grid-template-columns: 1fr; }
  .help-body .flow { flex-direction: column; align-items: center; }
  .help-body .flow .node { width: 100%; max-width: 280px; }
  .help-body .flow .arrow { padding: 8px 0; }
  .help-body .flow .arrow .line { width: 2px; height: 18px; border-top: 0; border-left: 2px solid var(--accent); }
  .help-body .flow .arrow .line:after { display: none; }
  .help-body table.st tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .help-body table.st td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .help-toc { gap: 6px; }
}
