/* The client's organizer. Computer first (most clients use one), one column on a phone. Plain and calm.
   Colors from The Beacon's logo green #1B5E44 (Dov 2026-11-19); the title uses a serif like the logo. */
:root {
  --ink: #1f2a25; --muted: #5b6862; --line: #d4ddd8; --soft: #f1f5f3; --card: #ffffff; --bg: #edf2ef;
  --band: #1b5e44; --band-ink: #ffffff; --accent: #1b5e44; --accent-soft: #e2eee8;
  --ok: #17803d; --bad: #a4262c; --bad-soft: #fde7e9; --lock: #1b5e44; --on-file: #f0f4f2;
  --picked: #e6f2ec; --picked-line: #b9d4c6;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
[hidden] { display: none !important; }

/* The top: the logo on white, the title in the logo's green, a green line under it. */
.band { background: #fff; color: var(--band); border-bottom: 4px solid var(--band); }
.band-inner, .wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band-inner { padding-block: 14px 12px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.band .logo { height: 60px; width: auto; display: block; }
.band-text { display: grid; gap: 2px; min-width: 0; }
.band h1 { font-family: var(--serif); font-style: italic; font-size: 1.65rem; font-weight: 400; letter-spacing: 0.01em; }
.band p { color: var(--muted); font-size: 0.95rem; }
.wrap { padding-block: 20px 60px; }
.loading { color: var(--muted); padding: 30px 0; }

.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.nav { position: sticky; top: 16px; display: grid; gap: 2px; font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 6px; display: flex; justify-content: space-between; gap: 6px; }
.nav a:hover { background: var(--accent-soft); }
.nav a.done::after { content: "✓"; color: var(--ok); }
.main { display: grid; gap: 16px; min-width: 0; }

.banner { background: var(--accent-soft); border-radius: 8px; padding: 12px 14px; font-size: 0.95rem; }
.section { background: var(--card); border-radius: 10px; padding: 20px 22px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); scroll-margin-top: 16px; }
.section h2 { font-size: 1.12rem; }
.help { color: var(--muted); font-size: 0.92rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.field { display: grid; gap: 4px; font-size: 0.9rem; color: var(--muted); min-width: 0; align-content: start; }
.field input, .field select, .field textarea { color: var(--ink); background: #fff; border: 1px solid #b9bec7; border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0; font-size: 1rem; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.number { font-family: var(--mono); letter-spacing: 0.04em; }
.msg { font-size: 0.82rem; min-height: 1.1em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); font-weight: 600; }
.msg.hint { color: var(--muted); }

.onfile { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1.6fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.onfile > * { padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.onfile > .h { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--soft); }
.onfile > .have { background: var(--on-file); font-family: var(--mono); font-size: 0.9rem; }
.onfile > .new { padding: 4px 6px; }
.onfile > .new input { width: 100%; border: 1px solid transparent; border-radius: 4px; padding: 6px 8px; background: #fff; }
.onfile > .new input:focus { border-color: var(--accent); outline: none; }
.onfile > .new input:not(:placeholder-shown) { background: var(--picked); }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dep { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 10px; }
.dep:first-child { border-top: 0; padding-top: 0; }
.dep h3 { font-size: 0.95rem; color: var(--muted); }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 0.95rem; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.docs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.docs li .from { color: var(--muted); }
.ask { font-size: 0.85rem; color: var(--muted); }
/* The new address in Beacon Desk's own boxes; the document checklist; a follow-up after "yes" (2026-11-19). */
.onfile > .new select { border: 1px solid transparent; border-radius: 4px; padding: 6px 4px; background: #fff; }
.onfile > .new select:focus { border-color: var(--accent); outline: none; }
.addr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 4px; }
.addr .addr-street { grid-column: span 2; }
.addr > select, .addr .addr-zip { min-width: 0; }
.addr .msg { grid-column: 1 / -1; }
.onfile > .new .msg { display: block; padding: 2px 8px 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.4fr); align-items: center; gap: 6px 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; }
.checklist li.on { background: var(--picked); border-color: var(--picked-line); }
.checklist .count { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.checklist .step { width: 30px; height: 30px; border: 1px solid #b9bec7; background: #fff; border-radius: 6px; font-size: 1.05rem; line-height: 1; cursor: pointer; color: var(--ink); }
.checklist .step:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.checklist .n { width: 44px; text-align: center; border: 1px solid #b9bec7; border-radius: 6px; padding: 5px 4px; font-size: 1rem; }
.checklist input.from { min-width: 0; border: 1px solid #b9bec7; border-radius: 6px; padding: 6px 8px; font-size: 0.92rem; }
.then { display: grid; gap: 6px; margin-left: 4px; padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.then:empty { display: none; }
.q { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q .text { font-weight: 600; }

.send { display: grid; gap: 12px; }
.problems { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 14px; font-size: 0.92rem; }
.problems ul { margin: 6px 0 0; padding-left: 1.2rem; }
.problems a { color: var(--bad); }
/* Dov 2026-11-22: a new client sending without the bank account is told first; "I confirm" with a typed name. */
.problems.warn { background: #fff4dd; color: #6b4500; }
.problems.warn .more { margin-top: 8px; }
.confirm { display: grid; gap: 8px; margin: 4px 0 12px; max-width: 520px; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 11px 22px; font-weight: 600; cursor: pointer; justify-self: start; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.light { background: #fff; color: var(--accent); border: 1px solid #b9bec7; }
.lockline { display: flex; align-items: center; gap: 8px; color: var(--lock); font-size: 0.88rem; }
.lockline svg { width: 16px; height: 16px; flex: none; }
.center { text-align: center; background: var(--card); border-radius: 10px; padding: 40px 20px; display: grid; gap: 10px; max-width: 620px; margin: 20px auto; }
.center h2 { font-size: 1.3rem; }

/* The upload page (Dov 2026-11-20): one card, name (and last 4 on the general link), files, Send. */
.upload { max-width: 680px; margin: 0 auto; }
.grid-name { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.drop { display: block; border: 2px dashed #9fb9ac; border-radius: 10px; padding: 22px 16px; text-align: center; color: var(--muted); background: #f7faf8; cursor: pointer; }
.drop strong { color: var(--accent); }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
#up-files:focus-visible + .drop { outline: 3px solid #f2b705; outline-offset: 2px; }
.upfiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.upfiles:empty { display: none; }
.upfiles li { display: flex; gap: 10px; align-items: center; background: var(--picked); border-radius: 6px; padding: 7px 10px; min-width: 0; }
.upfiles .fname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; font-size: 0.88rem; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.6rem; justify-self: center; }
.btn.centered { justify-self: center; }
.more.centered { justify-content: center; }
/* A new client's next step, and the upload pop-in (Dov 2026-11-22: not a new window). */
.center .lead { color: var(--muted); }
.nc-next { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 20px; display: grid; gap: 14px; text-align: left; }
.nc-next h3 { margin: 0; font-size: 1.1rem; text-align: center; color: var(--ink); }
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); }
.doc-row.single { grid-template-columns: minmax(0, 1fr) auto; }
.doc-row + .doc-row { border-top: 1px solid var(--line); }
.doc-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc-title { font-weight: 600; color: var(--ink); }
.doc-sub { color: var(--muted); font-size: 0.88rem; }
.doc-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
.doc-tag.opt { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.doc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nc-next .lockline { justify-content: center; font-size: 0.84rem; }
.doc-status { text-align: center; color: var(--muted); margin: 0; }
.doc-status:empty { display: none; }
.doc-status.ok { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .doc-row { grid-template-columns: 28px minmax(0, 1fr); } .doc-tag { grid-column: 2; justify-self: start; } .doc-row.single { grid-template-columns: minmax(0, 1fr); } .doc-row.single .doc-tag { grid-column: 1; } }
.pop { border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.pop::backdrop { background: rgba(20, 30, 25, 0.45); }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e3e7ea; }
.pop-head h2 { margin: 0; font-size: 1.15rem; }
.pop-x { border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.pop-x:hover { background: #eef2f0; }
.pop-body { padding: 4px 6px 10px; }
.pop-body .center { margin: 10px auto; padding: 24px 16px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .nav { display: none; }
  .section { padding: 16px; }
  .grid4, .grid3 { grid-template-columns: 1fr 1fr; }
  .onfile { grid-template-columns: 1fr; }
  .onfile > .h { display: none; }
  .onfile > .label { font-weight: 600; border-bottom: 0; padding-bottom: 0; }
  .onfile > .have { border-bottom: 0; }
  .checklist li { grid-template-columns: 1fr; }
  .addr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .addr .addr-street { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .grid4, .grid3, .grid-name { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
