/* Expat Tax Amnesty client portal (prototype). Same tokens, fonts and dark mode as the website. */
:root{
  --blue:#0B4FF0; --blue-hover:#0840C8; --blue-soft:#E8EFFF; --cyan:#1EC8E8;
  --navy:#15202E; --teal:#0E7490; --teal-soft:#E2F7FB;
  --bg:#F6F8FC; --surface:#FFFFFF; --fg:#15202E; --muted:#556172; --line:#E1E6EF;
  --note:#FFE98A; --note-fg:#3D3420; --tint-blue:#EEF3FF; --tint-cyan:#E6F8FC; --tint-yellow:#FFF6D6;
  --success:#16A34A; --ok:#15803D; --ok-soft:#E7F6EC; --amber:#9A5B00; --amber-soft:#FFF1D6; --red:#C62828; --red-soft:#FDECEC;
  --display:"Poppins",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Public Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 1px 0 rgba(16,24,40,.04),0 18px 40px -32px rgba(16,24,40,.42);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --blue:#4D7DFF; --blue-hover:#6E95FF; --blue-soft:#18264A; --cyan:#3DD6F0;
  --navy:#E8EDF5; --teal:#5ED8EE; --teal-soft:#0F2C36;
  --bg:#0E141E; --surface:#161F2D; --fg:#E8EDF5; --muted:#9AA6B8; --line:#263245;
  --note:#4A4122; --note-fg:#FBEFC4; --tint-blue:#121C33; --tint-cyan:#0E2430; --tint-yellow:#2A2514;
  --success:#22C55E; --ok:#34D27A; --ok-soft:#0F2A1A; --amber:#F2B45A; --amber-soft:#2E2412; --red:#FF8A80; --red-soft:#3A1A1A;
  --shadow:0 1px 0 rgba(0,0,0,.2),0 18px 40px -30px rgba(0,0,0,.7);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --blue:#4D7DFF; --blue-hover:#6E95FF; --blue-soft:#18264A; --cyan:#3DD6F0;
  --navy:#E8EDF5; --teal:#5ED8EE; --teal-soft:#0F2C36;
  --bg:#0E141E; --surface:#161F2D; --fg:#E8EDF5; --muted:#9AA6B8; --line:#263245;
  --note:#4A4122; --note-fg:#FBEFC4; --tint-blue:#121C33; --tint-cyan:#0E2430; --tint-yellow:#2A2514;
  --success:#22C55E; --ok:#34D27A; --ok-soft:#0F2A1A; --amber:#F2B45A; --amber-soft:#2E2412; --red:#FF8A80; --red-soft:#3A1A1A;
  --shadow:0 1px 0 rgba(0,0,0,.2),0 18px 40px -30px rgba(0,0,0,.7);
  color-scheme:dark}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--display);line-height:1.2;margin:0;letter-spacing:-.01em;color:var(--fg)}
p{margin:0}
a{color:var(--blue)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
ul,ol{margin:0;padding:0;list-style:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 14px;border-radius:10px;background:var(--blue);color:#fff;text-decoration:none;font-weight:600}
.skip:focus{top:12px}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.muted{color:var(--muted)}
.small{font-size:.88rem}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--display);font-weight:700;font-size:.98rem;border-radius:999px;padding:12px 22px;border:2px solid transparent;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-hover)}
.btn-primary:disabled{opacity:.45;cursor:not-allowed}
.btn-ghost{background:var(--surface);color:var(--fg);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-block{width:100%}
.btn-mini{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;background:var(--blue);color:#fff;font-family:var(--display);font-weight:700;font-size:.86rem;white-space:nowrap}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);background:var(--surface);color:var(--muted)}
.icon-btn:hover{color:var(--blue);border-color:var(--blue)}
.more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-weight:700;font-size:.92rem;text-decoration:none}
.more:hover{text-decoration:underline;text-underline-offset:3px}

/* logo */
.logo{display:inline-grid;justify-items:start;text-decoration:none;font-family:var(--display);line-height:.92}
.lg-top{display:flex;align-items:flex-end;font-weight:800;font-size:1.75rem;letter-spacing:-.045em;color:var(--blue)}
.lg-top i{width:.24em;height:.24em;border-radius:50%;background:var(--cyan);margin:0 0 .08em .05em}
.lg-sub{font-weight:600;font-size:.94rem;letter-spacing:-.01em;color:var(--navy);margin-top:2px}

/* top bar */
.pt-top{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.pt-top-in{max-width:1200px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:16px}
.pt-chip{padding:4px 10px;border-radius:999px;background:var(--tint-blue);color:var(--blue);font-family:var(--display);font-weight:700;font-size:.74rem;letter-spacing:.04em;white-space:nowrap}
/* an admin seeing a client's portal as the client sees it: a bar across the top of every page says whose it is, that
   it's read-only, and leads back to the workspace */
.view-as{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;padding:9px 16px;background:var(--amber-soft);color:var(--fg);border-bottom:1px solid color-mix(in srgb,var(--amber) 35%,var(--line));font-size:.9rem}
.view-as p{display:flex;align-items:flex-start;gap:8px;margin:0;min-width:0}
.view-as svg{flex:none;margin-top:2px;color:var(--amber)}
.view-as .btn-mini{border:0;cursor:pointer;padding:7px 14px}
/* Save for them: once saved, the bar says so; the window lists each answer that changed, and asks why */
.view-saved{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--ok)}
.view-as .view-saved svg{margin-top:0;color:var(--ok)}
.vs-list{display:grid;gap:6px;margin:8px 0 14px;padding:0;list-style:none}
.vs-list li{display:grid;gap:2px;padding:9px 12px;border-radius:10px;background:var(--surface);font-size:.9rem;overflow-wrap:anywhere}
.vs-list li span{color:var(--muted)}
.vs-form{display:grid;gap:10px;margin-top:6px}
.vs-form textarea{width:100%;resize:vertical}
.vs-form textarea.bad{border-color:var(--red)}
.vs-err{color:var(--red);font-weight:600;font-size:.88rem}
.vs-note{font-size:.84rem;color:var(--muted)}
/* staff: the answers an admin changed for a client, with why */
.ed-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ed-list > li{padding:10px 14px;border-radius:12px;background:var(--surface);font-size:.92rem;overflow-wrap:anywhere}
.ed-list > li > p:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.ed-list small{color:var(--muted);font-size:.8rem}
.ed-ch{margin:6px 0 0 18px;padding:0}
.ed-why{margin-top:6px;white-space:pre-line}
.pt-nav{display:flex;gap:2px;margin-left:auto}
.pt-nav a{position:relative;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;color:var(--muted);text-decoration:none;font-weight:600;font-size:.94rem;white-space:nowrap}
.pt-nav a:hover{color:var(--fg);background:var(--bg)}
.pt-nav a[aria-current="page"]{background:var(--blue-soft);color:var(--blue)}
.pt-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:.72rem;font-weight:700;display:inline-grid;place-items:center;line-height:1}
.pt-me{position:relative}
.pt-me-btn{display:flex;align-items:center;gap:10px;padding:4px 10px 4px 4px;border-radius:999px;border:1px solid var(--line);background:var(--surface)}
.pt-me-name{font-weight:600;font-size:.92rem;white-space:nowrap}
.av{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--tint-blue);color:var(--blue);font-family:var(--display);font-weight:800;font-size:.8rem}
.av-team{position:relative;background:var(--blue);color:#fff;font-size:1.05rem;padding-bottom:2px}
.av-team i{position:absolute;right:7px;bottom:9px;width:5px;height:5px;border-radius:50%;background:var(--cyan)}
.pt-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;padding:6px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);z-index:40}
.pt-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--fg);text-decoration:none;font-weight:600;font-size:.94rem}
.pt-menu a:hover{background:var(--bg)}

/* layout */
.pt-main{max-width:1200px;margin:0 auto;padding:28px 24px 140px;outline:none}
.pt-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.pt-col{display:grid;gap:22px;min-width:0}
.card{background:var(--surface);border-radius:24px;box-shadow:var(--shadow);padding:24px;min-width:0}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.card h2{font-size:1.15rem}
.count-pill{padding:4px 10px;border-radius:999px;background:var(--bg);color:var(--muted);font-size:.78rem;font-weight:700;white-space:nowrap}
.count-pill.blue{background:var(--blue);color:#fff}
.pg-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin-bottom:22px}
.pg-head h1{font-size:clamp(1.6rem,3vw,2.1rem)}
.pg-head p{color:var(--muted);margin-top:6px;display:flex;align-items:flex-start;gap:8px}
.pg-head p svg{flex:none;margin-top:4px}
/* the foreign accounts page: what to list, and what to give for each one */
.acc-need{display:grid;gap:6px;margin-top:8px;padding:0;color:var(--muted)}
.acc-need b,.pg-head p b{color:var(--fg)}

/* overview: hello */
.ov-hello{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:22px}
.ov-day{color:var(--muted);font-weight:600;margin-bottom:6px}
.ov-hello h1{font-size:clamp(1.55rem,3.2vw,2.2rem);max-width:30ch}

/* status tracker */
.k{display:block;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:4px}
.trk-card{padding:18px 24px}
.trk-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:14px 32px;align-items:center}
.trk-top h2{font-size:1.2rem}
.trk-now-name{display:none}
.trk{--p:0;--n:6;position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));margin:0}
.trk::before,.trk::after{content:"";position:absolute;top:11px;left:calc(50% / var(--n));height:3px;border-radius:2px}
.trk::before{right:calc(50% / var(--n));background:var(--line)}
.trk::after{width:calc((100% - 100% / var(--n)) * var(--p) / 100);background:linear-gradient(90deg,var(--blue),var(--cyan));transition:width .7s cubic-bezier(.2,.8,.2,1)}
.trk li{position:relative;z-index:1;display:grid;justify-items:center;gap:6px;text-align:center;padding:0 2px}
.trk-dot{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:.74rem;background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 2px var(--line)}
.trk b{font-family:var(--display);font-size:.78rem;line-height:1.2;color:var(--muted)}
.trk-done b{color:var(--fg)}
.trk-done .trk-dot{background:var(--blue);color:#fff;box-shadow:none}
.trk-now .trk-dot{color:var(--blue);box-shadow:inset 0 0 0 2.5px var(--blue),0 0 0 4px color-mix(in srgb,var(--blue) 16%,transparent)}
.trk-now b{color:var(--blue)}
.trk-next{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.92rem;color:var(--muted)}
.trk-next b{font-family:var(--display);color:var(--fg)}
@media (max-width:900px){.trk-top{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){
  .trk-card{padding:16px 18px}
  .trk-now-name{display:inline}
  .trk-k-long{display:none}
  .trk b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* tasks */
.tasks{display:grid;gap:8px}
.task{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border-radius:18px;border:1.5px solid var(--line);background:var(--surface);text-align:left;transition:border-color .15s,transform .15s,box-shadow .15s}
.task:hover{border-color:var(--blue);transform:translateY(-1px);box-shadow:0 12px 24px -20px rgba(16,24,40,.5)}
.task-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--tint-blue);color:var(--blue)}
.task-t{display:grid;gap:2px;min-width:0}
.task-t b{font-family:var(--display);font-weight:700;font-size:1rem;line-height:1.3}
.task-t small{color:var(--muted);font-size:.88rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.task-fix{border-color:color-mix(in srgb,var(--amber) 45%,var(--line));background:color-mix(in srgb,var(--amber-soft) 55%,var(--surface))}
.task-fix .task-ic{background:var(--amber-soft);color:var(--amber)}
.task-fix .task-t small{color:var(--amber)}
.task-review .task-ic{background:var(--tint-cyan);color:var(--teal)}
.task-done .task-ic{background:var(--ok-soft);color:var(--ok)}
.task-done .task-t b{color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}
.chip-todo{background:var(--blue-soft);color:var(--blue)}
.chip-fix{background:var(--amber-soft);color:var(--amber)}
.chip-review{background:var(--tint-cyan);color:var(--teal)}
.chip-done{background:var(--ok-soft);color:var(--ok)}
.chip-missing{background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line)}
.empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:26px 16px}
.empty-ic{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--ok-soft);color:var(--ok)}
.empty h3{font-size:1.1rem}
.empty p{color:var(--muted);max-width:42ch}

/* filing plan */
.yrs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.yrs li{display:grid;justify-items:center;gap:2px;padding:12px 4px 10px;border-radius:14px;text-align:center}
.yrs b{font-family:var(--display);font-weight:800;font-size:1.05rem;line-height:1}
.yrs small{font-size:.68rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}
/* "Amended return" (Streamlined Domestic) is longer than a tile on the narrowest phones: there it takes two lines. */
.yrs small.yrs-2l{white-space:normal}
.y-ret{background:var(--blue);color:#fff}
.y-fb{background:var(--tint-cyan);color:var(--teal);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--teal) 30%,transparent)}
.yrs-st{display:flex;align-items:center;gap:10px;margin-top:14px;font-weight:600}
.dot{width:10px;height:10px;border-radius:50%;background:var(--muted);flex:none}
.dot-docs{background:#D9480F}.dot-prep{background:var(--blue)}.dot-sign{background:var(--cyan)}.dot-filed{background:var(--ok)}
.yrs-note{margin-top:6px;font-size:.86rem;color:var(--muted)}

/* message preview */
.mp{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px}
.mp b{font-family:var(--display);font-size:.95rem}
.mp small{margin-left:8px;color:var(--muted);font-size:.8rem}
.mp p{margin-top:4px;color:var(--fg);font-size:.94rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.msg-prev .btn{margin-top:16px}

/* package */
.pkg-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:.95rem}
.pkg-row b{font-family:var(--display);color:var(--blue)}
.pkg-row.ok b{color:var(--ok)}
.pkg-row.ok{color:var(--ok)}
.pkg-st{display:flex;align-items:center;gap:8px;margin-top:12px;font-weight:700;color:var(--ok)}
.pkg-st.due{color:var(--amber)}

/* activity */
.act{display:grid;gap:0}
.act li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.94rem}
.act li:last-child{border-bottom:0}
.act time{color:var(--muted);font-size:.84rem;padding-top:1px}

/* banners */
.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:18px 22px;border-radius:20px;margin-bottom:22px;background:linear-gradient(120deg,var(--ok-soft),var(--tint-cyan))}
.banner b{font-family:var(--display);font-size:1.05rem}
.banner p{color:var(--muted);margin-top:2px}

/* to-do tabs */
.tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:18px}
.tabs button{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;border:0;background:none;color:var(--muted);font-weight:600;font-size:.94rem}
.tabs button[aria-pressed="true"]{background:var(--blue);color:#fff}
.tabs button[aria-pressed="true"] .pt-count{background:#fff;color:var(--blue)}

/* documents */
.drop{position:relative;display:grid;justify-items:center;gap:6px;padding:26px 16px;border-radius:20px;border:2px dashed color-mix(in srgb,var(--blue) 35%,var(--line));background:color-mix(in srgb,var(--tint-blue) 60%,var(--surface));text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.drop:hover,.drop.over{border-color:var(--blue);background:var(--tint-blue)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--blue);box-shadow:var(--shadow)}
.drop b{font-family:var(--display);font-size:1.02rem}
.drop u{color:var(--blue);text-underline-offset:3px}
.drop small{color:var(--muted);font-size:.84rem}
.docs-groups{display:grid;gap:18px;margin-top:18px}
.dl{display:grid}
.dl>li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.dl>li:last-child{border-bottom:0}
.dl-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--bg);color:var(--muted)}
.dl-ok .dl-ic{background:var(--ok-soft);color:var(--ok)}
.dl-fix .dl-ic{background:var(--amber-soft);color:var(--amber)}
.dl-rec .dl-ic{background:var(--tint-cyan);color:var(--teal)}
.dl-t{display:grid;gap:2px;min-width:0}
.dl-t b{font-weight:600;line-height:1.35}
.dl-t small{color:var(--muted);font-size:.86rem}
.dl-t .note{color:var(--amber);font-weight:600}
.files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.file{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:8px;background:var(--bg);font-size:.8rem;color:var(--muted);max-width:100%}
.file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-act{display:flex;align-items:center;gap:8px}
.link-btn{border:0;background:none;padding:6px 8px;border-radius:8px;color:var(--blue);font-weight:700;font-size:.9rem}
.link-btn:hover{background:var(--tint-blue)}
.meter{height:10px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:12px}
.meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--cyan));transition:width .6s ease}

/* messages */
.card.chat{display:flex;flex-direction:column;padding:0;overflow:hidden}
.thread{display:flex;flex-direction:column;gap:14px;padding:24px;max-height:min(62vh,640px);overflow-y:auto;background-color:var(--surface);background-image:radial-gradient(color-mix(in srgb,var(--blue) 8%,transparent) 1px,transparent 1.6px);background-size:20px 20px}
.m{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;max-width:min(78%,620px)}
.m-body{display:grid;gap:4px}
.m-meta{font-size:.78rem;color:var(--muted)}
.m-meta b{color:var(--fg);font-weight:700;margin-right:6px}
.bubble{padding:12px 16px;border-radius:20px 20px 20px 6px;background:var(--tint-blue);line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}   /* pre-line: a message keeps the line breaks and empty lines it was written with (they ran together until November 18, 2026) */
.m-me{align-self:flex-end;grid-template-columns:minmax(0,1fr)}
.m-me .m-meta{text-align:right}
.m-me .bubble{border-radius:20px 20px 6px 20px;background:var(--blue);color:#fff}
.m-sys{align-self:center;max-width:none;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--bg);color:var(--muted);font-size:.82rem}
.composer{display:flex;align-items:flex-end;gap:10px;padding:14px;border-top:1px solid var(--line);background:var(--surface)}
.composer textarea{flex:1;min-height:46px;max-height:160px;resize:none;padding:12px 16px;border-radius:22px;border:1.5px solid var(--line);background:var(--bg);line-height:1.4}
.composer textarea:focus{outline:none;border-color:var(--blue)}
.composer-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;padding:0 14px 10px;font-size:.78rem;color:var(--muted);background:var(--surface)}
.composer-hint .send-as{font-weight:700;color:var(--fg)}
.composer-hint select{max-width:100%;padding:5px 8px;border-radius:8px;border:1.5px solid var(--line);background:var(--bg);font:inherit;color:var(--fg)}
.composer-hint select:focus{outline:none;border-color:var(--blue)}
.m-wrote{margin-right:6px}

/* billing receipt */
.bill-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.receipt{position:relative;background:#FFFEFA;color:#15202E;border-radius:20px 20px 0 0;padding:26px 26px 36px;box-shadow:var(--shadow);margin-bottom:14px}
.receipt::after{content:"";position:absolute;left:0;right:0;bottom:-13px;height:14px;background:linear-gradient(135deg,#FFFEFA 50%,transparent 50%) 0 0/20px 14px repeat-x,linear-gradient(225deg,#FFFEFA 50%,transparent 50%) 0 0/20px 14px repeat-x}
.receipt h2{color:#15202E}
.rc-lines{display:grid;gap:10px;margin:18px 0;padding:16px 0;border-block:2px dashed rgba(21,32,46,.16);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem}
.rc-lines li{display:flex;align-items:baseline;gap:8px}
.rc-lines li span{flex:1;display:flex;align-items:baseline;gap:6px;min-width:0}
.rc-lines li span::after{content:"";flex:1;border-bottom:2px dotted rgba(21,32,46,.2);transform:translateY(-3px);min-width:12px}
.rc-lines .ok{color:#15803D}
.rc-total{display:flex;justify-content:space-between;align-items:baseline}
.rc-total span{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;font-size:.84rem;color:#556172}
.rc-total b{font-family:var(--display);font-weight:800;font-size:2.2rem;color:#0B4FF0;letter-spacing:-.02em}
.rc-stamp{position:absolute;right:22px;top:22px;padding:6px 12px;border:2.5px solid #15803D;border-radius:10px;box-shadow:inset 0 0 0 2px #FFFEFA,inset 0 0 0 3.5px #15803D;color:#15803D;font-family:var(--display);font-weight:800;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;transform:rotate(-8deg);opacity:.85}
.rc-stamp.due{border-color:#9A5B00;color:#9A5B00;box-shadow:inset 0 0 0 2px #FFFEFA,inset 0 0 0 3.5px #9A5B00}
.rc-meta{margin-top:10px;font-size:.88rem;color:#556172}

/* account */
.acc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.kv{display:grid;gap:0}
.kv li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.kv li:last-child{border-bottom:0}
.kv span{color:var(--muted)}
.kv b{font-weight:600;text-align:right}
.sw{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}
.sw:last-child{border-bottom:0}
.sw input{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:28px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background .2s}
.sw input::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(16,24,40,.25);transition:transform .2s}
.sw input:checked{background:var(--blue)}
.sw input:checked::after{transform:translateX(18px)}
.sec-ok{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--ok-soft);color:var(--ok);font-weight:700;margin-bottom:8px}

/* drawer */
.drawer-bg{position:fixed;inset:0;z-index:60;background:rgba(10,15,23,.38);opacity:0;pointer-events:none;transition:opacity .25s}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:61;width:min(540px,100%);display:flex;flex-direction:column;background:var(--surface);box-shadow:-30px 0 60px -30px rgba(10,15,23,.5);transform:translateX(102%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s linear .3s}
.drawer-open .drawer-bg{opacity:1;pointer-events:auto}
.drawer-open .drawer{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s}
.dr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid var(--line)}
.dr-head h2{font-size:1.3rem;margin-top:8px;outline:none}
.dr-body{flex:1;overflow-y:auto;padding:20px 24px 28px;display:grid;align-content:start;gap:18px}
.dr-why{font-size:1rem;line-height:1.6}
.dr-note{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px 16px;border-radius:16px;background:var(--amber-soft)}
.dr-note b{display:block;font-family:var(--display);font-size:.92rem;color:var(--amber)}
.dr-tip{padding:14px 16px;border-radius:16px;background:var(--bg)}
.dr-tip b{display:block;font-family:var(--display);font-size:.92rem;margin-bottom:2px}
/* "It's included in another document": instead of uploading the same thing again */
.cover{display:grid;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid var(--line)}
.dr-help{font-size:.92rem;color:var(--muted)}
.up-list{display:grid;gap:8px}
.up-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--bg)}
.up-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:.92rem}
.up-bar{grid-column:2/4;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.up-bar i{display:block;height:100%;width:0;background:var(--blue);border-radius:inherit;transition:width 1.1s cubic-bezier(.3,.7,.2,1)}
.up-row.done .up-bar i{background:var(--ok)}
.up-row em{font-style:normal;font-size:.8rem;color:var(--muted)}
/* Real uploads: a file can be taken off until Send, and its bar shows only while it's going. */
.up-row.real{grid-template-columns:34px minmax(0,1fr) auto auto}
.up-row.real .up-bar{grid-column:2/5;display:none}
.up-row.real.going .up-bar{display:block}
.up-row.real .up-bar i{transition:width .25s linear}
.up-x{width:32px;height:32px;margin:-4px -4px -4px 0}
.up-err{color:var(--red);font-weight:600;font-size:.88rem}
.q{display:grid;gap:8px}
form.q{gap:22px}
/* a part of the company questionnaire (Form 5471) drawn by the follow-up engine */
form.q>[data-fbox]{display:grid;gap:22px}
.q legend .muted{font-family:var(--body);font-weight:500;font-size:.88rem}
.q legend{font-family:var(--display);font-weight:700;font-size:1rem;margin-bottom:6px;padding:0}
.q fieldset{border:0;margin:0;padding:0}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opt{position:relative}
.opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.opt span{display:inline-block;padding:10px 16px;border-radius:999px;border:1.5px solid var(--line);font-weight:600;font-size:.92rem;background:var(--surface)}
.opt input:checked+span{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
.opt input:focus-visible+span{outline:3px solid var(--cyan);outline-offset:2px}
.doc-prev{position:relative;padding:22px 22px 18px;border-radius:14px;background:#FFFEFA;color:#15202E;box-shadow:inset 0 0 0 1px rgba(21,32,46,.1)}
.doc-prev b{font-family:var(--display)}
.doc-prev i{display:block;height:8px;border-radius:4px;background:rgba(21,32,46,.1);margin-top:10px}
.doc-prev i:nth-child(odd){width:86%}
.doc-prev .open{display:inline-block;margin-top:14px;padding-left:0;color:#0B4FF0}
.field{display:grid;gap:6px}
.field label{font-weight:700;font-size:.92rem}
.field input,.field select,.field textarea{padding:12px 14px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue)}
.sig{font-family:"Caveat","Segoe Print",cursive;font-size:1.6rem!important}
.chk{display:flex;gap:10px;align-items:flex-start;font-size:.92rem}
.chk input{width:20px;height:20px;margin-top:2px;accent-color:var(--blue)}
.demo-note{font-size:.82rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.sum{display:grid;gap:0;border-radius:16px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.sum li{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:.92rem}
.sum li:last-child{border-bottom:0}
.sum b{font-family:var(--display)}
.sum em{font-style:normal;font-family:var(--display);font-weight:800;color:var(--blue);white-space:nowrap}
.sum em.ok{color:var(--ok)}
.dr-done{display:grid;justify-items:start;gap:8px;padding:16px;border-radius:16px;background:var(--ok-soft);color:var(--ok);font-weight:700}

/* demo stage switcher */
.demo{position:relative;flex:none}
.demo-btn{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 12px;border-radius:999px;border:0;background:var(--note);color:var(--note-fg);font-size:.8rem;font-weight:600;white-space:nowrap}
.demo-btn b{font-weight:800}
.demo-btn svg{flex:none}
.demo-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.demo-short{display:none}
.demo-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:45;width:min(290px,calc(100vw - 32px));padding:10px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.demo-menu p{padding:6px 8px 10px;font-size:.84rem;color:var(--muted)}
.demo-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 10px;border-radius:12px;border:0;background:none;text-align:left;font-weight:600;font-size:.94rem}
.demo-menu button:hover{background:var(--bg)}
.demo-menu button i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--bg);font-style:normal;font-size:.78rem;font-weight:800;color:var(--muted)}
.demo-menu button[aria-current="true"]{background:var(--blue-soft);color:var(--blue)}
.demo-menu button[aria-current="true"] i{background:var(--blue);color:#fff}
.demo-menu .demo-reset{margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 12px 12px;color:var(--muted);font-size:.86rem}
.demo-menu .demo-chk{display:flex;align-items:center;gap:8px;padding:10px;border-top:1px solid var(--line);font-size:.86rem;color:var(--muted);cursor:pointer}

/* toast */
.toast{position:fixed;left:50%;bottom:28px;z-index:80;max-width:min(92vw,460px);padding:12px 18px;border-radius:14px;background:var(--navy);color:var(--bg);font-weight:600;font-size:.94rem;box-shadow:0 18px 40px -16px rgba(10,15,23,.6);transform:translate(-50%,30px);opacity:0;pointer-events:none;transition:transform .3s,opacity .3s}
.toast.show{transform:translate(-50%,0);opacity:1}

/* sign-in */
.si{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(55% 60% at 80% 20%,var(--tint-cyan),transparent 70%),radial-gradient(50% 60% at 10% 90%,var(--tint-blue),transparent 70%),var(--bg)}
.si-card{width:min(440px,100%);display:grid;gap:18px;padding:34px 30px 28px;border-radius:28px;background:var(--surface);box-shadow:var(--shadow)}
.si-card h1{font-size:1.6rem}
.si-card p{color:var(--muted)}
.code{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.code input{width:100%;aspect-ratio:1/1.15;text-align:center;font-family:var(--display);font-weight:700;font-size:1.4rem;border-radius:12px;border:1.5px solid var(--line);background:var(--surface)}
.code input:focus{outline:none;border-color:var(--blue)}
.si-card .si-msg{padding:10px 12px;border-radius:12px;background:var(--red-soft);color:var(--red);font-weight:600;font-size:.92rem}
.si-card .si-msg.ok{background:var(--ok-soft);color:var(--ok)}
.si-card .si-hint{font-size:.84rem;margin-top:-6px}
.si-sec{display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--muted)}

/* portal additions */
[hidden]{display:none!important}
body.drawer-open{overflow:hidden}
.btn-block{white-space:normal;text-align:center}
.mt{margin-top:12px}
.card p+p{margin-top:8px}
.count-pill.ok{background:var(--ok-soft);color:var(--ok)}
.empty-ic.blue{background:var(--tint-blue);color:var(--blue)}
.grp{font-family:var(--body);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 2px}
.kv b{overflow-wrap:anywhere}
.field textarea{resize:vertical;min-height:84px;line-height:1.45}
.si-form,.up-form{display:grid;gap:14px}
.up-list:empty{display:none}
.up-ic{grid-row:1/3;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface);color:var(--blue)}
.up-row.done .up-ic{color:var(--ok)}
.composer .send{background:var(--blue);border-color:var(--blue);color:#fff}
.composer .send:hover{background:var(--blue-hover);color:#fff}
.m-meta .ok{color:var(--ok);font-weight:600}
.promise li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.95rem}
.promise li:last-child{border-bottom:0}
.promise svg{color:var(--ok);margin-top:2px}
.demo-note .link-btn{padding:2px 4px;font-size:inherit}
.pt-foot{margin-top:44px;display:grid;gap:4px;text-align:center;font-size:.8rem;color:var(--muted)}
.pt-main>.card+.card{margin-top:22px}

/* bottom navigation (phones) */
.pt-bottom{display:none}
@media (max-width:1060px){.pt-me-name{display:none}.demo-long{display:none}.demo-short{display:inline}}
@media (max-width:900px){
  .pt-nav{display:none}
  .pt-top-in{padding:10px 16px}
  .pt-chip{display:none}
  .pt-main{padding:20px 16px 150px}
  .pt-grid,.bill-grid,.acc-grid{grid-template-columns:minmax(0,1fr)}
  .pt-bottom{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line)}
  .pt-bottom a{position:relative;display:grid;justify-items:center;gap:2px;padding:6px 2px;border-radius:12px;color:var(--muted);text-decoration:none;font-size:.7rem;font-weight:600}
  .pt-bottom a[aria-current="page"]{color:var(--blue)}
  .pt-bottom .pt-count{position:absolute;top:2px;left:calc(50% + 6px);min-width:18px;height:18px;font-size:.66rem}
  .demo{margin-left:auto}
  .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .m{max-width:92%}
  .thread{max-height:none;padding:18px 14px}
}
@media (max-width:560px){
  .task{grid-template-columns:40px minmax(0,1fr);row-gap:10px}
  .task-ic{width:40px;height:40px}
  .task-go{grid-column:2}
  .dl>li{grid-template-columns:36px minmax(0,1fr)}
  .dl-act{grid-column:2}
  .tabs{display:flex;width:100%}
  .tabs button{flex:1;justify-content:center;padding:9px 8px;font-size:.86rem}
  .ov-hello .btn{width:100%}
  .card{padding:20px 18px;border-radius:20px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* documents tabs, previews, details form, pay-at-the-end */
.t-short{display:none}
button.file{border:0;cursor:pointer;font:inherit;font-size:.8rem}
button.file:hover{color:var(--blue);background:var(--tint-blue)}
.dl-act em{font-style:normal;font-family:var(--display);font-weight:800;color:var(--ok);font-size:.9rem;white-space:nowrap}
.rc-stamp.later{border-color:#556172;color:#556172;box-shadow:inset 0 0 0 2px #FFFEFA,inset 0 0 0 3.5px #556172}
.pkg-st.later{color:var(--muted);font-weight:600}
.promise.xs svg{color:var(--blue)}
.row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fs{display:grid;gap:12px}
.hint{display:flex;align-items:flex-start;gap:6px;font-size:.84rem;color:var(--muted)}
.hint svg{flex:none;margin-top:3px}
.q-hint{display:block;font-family:var(--body);font-weight:500;font-size:.86rem;color:var(--muted);margin-top:3px}
.dr-body .back{justify-self:start;padding-left:0}
.paper{position:relative;display:grid;align-content:start;gap:9px;min-height:420px;padding:30px 26px;border-radius:12px;background:#FFFEFA;color:#15202E;box-shadow:inset 0 0 0 1px rgba(21,32,46,.1),0 18px 40px -30px rgba(16,24,40,.5)}
.paper small{padding-right:96px;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#556172;font-weight:700}
.paper b{font-family:var(--display);font-size:1.15rem;line-height:1.25;max-width:24ch}
.paper-name{font-size:.92rem;color:#556172;margin-bottom:10px}
.paper i{display:block;height:8px;border-radius:4px;background:rgba(21,32,46,.09)}
.paper i:nth-of-type(3n){width:70%}
.paper i:nth-of-type(3n+1){width:92%}
.paper-stamp{position:absolute;right:18px;top:18px;padding:5px 10px;border:2.5px solid #15803D;border-radius:8px;color:#15803D;font-family:var(--display);font-weight:800;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;transform:rotate(-8deg)}
.paper-stamp.draft{border-color:#9A5B00;color:#9A5B00}
/* a client's own engagement letter and receipt: the text itself on the paper, the signature at the end */
.paper-text{min-height:0;gap:10px;font-size:.95rem;line-height:1.55}
.paper-text p{margin:0}
.paper-text h4{margin:8px 0 0;font-family:var(--display);font-size:1rem}
.paper-text a{color:#0B4FF0}
.paper-text b{max-width:none;font-size:inherit;font-family:inherit}
.paper-text>b{font-family:var(--display);font-size:1.15rem}
.paper-sig{margin-top:14px;padding-top:12px;border-top:1px solid rgba(21,32,46,.15)}
.paper-sig b{display:block;font-family:'Segoe Script','Brush Script MT',cursive;font-size:1.35rem}
.paper-sig small,.paper-sig.unsigned small{display:block;padding-right:0;margin-top:4px;text-transform:none;letter-spacing:normal;font-size:.82rem;font-weight:500}
.paper-sig.unsigned small{font-style:italic}
.paper-file{place-items:center;align-content:center;text-align:center;min-height:300px;color:#556172}
.paper-file small{padding-right:0}
.paper-file span{font-weight:600;color:#15202E;overflow-wrap:anywhere}
/* A file she really sent, shown in the panel: a photo at the panel's width, a PDF in the browser's viewer. */
.paper-view{padding:0;min-height:0;overflow:hidden;place-items:stretch}
.paper-view img{display:block;width:100%;height:auto}
.paper-view object{display:block;width:100%;height:min(70vh,680px);border:0}
.paper-view p{padding:30px 26px}
@media (max-width:560px){.t-long{display:none}.t-short{display:inline}}
@media (max-width:400px){.row2{grid-template-columns:minmax(0,1fr)}}
.steps{display:grid;gap:16px;counter-reset:st}
.steps>li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;counter-increment:st}
.steps>li::before{content:counter(st);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-family:var(--display);font-weight:800;font-size:.9rem}
.steps>li>div{display:grid;gap:4px;min-width:0}
.steps b{font-family:var(--display);font-size:1rem}
.steps p{color:var(--muted);font-size:.92rem}
.steps .btn,.steps form{margin-top:8px;justify-self:start}
.steps form{justify-self:stretch}
.field input,.field select,.field textarea{width:100%;min-width:0}

/* named tax preparer */
.av-prep{background:var(--blue);color:#fff}
.av-lg{width:48px;height:48px;font-size:1rem}
.prep-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.prep-head h2{font-size:1.1rem}
.prep-head p{color:var(--muted);font-size:.86rem}
.prep-head .count-pill{margin-left:auto}
.mp-q{padding:12px 14px;border-radius:14px;background:var(--tint-blue)}
.mp-q small{color:var(--muted);font-size:.8rem}
.mp-q p{margin-top:4px;font-size:.94rem;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.msg-prev .btn{margin-top:14px}
.demo-menu .demo-link{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:12px 10px 6px;border-top:1px solid var(--line);color:var(--blue);font-weight:700;font-size:.9rem;text-decoration:none}

/* staff workspace */
.st-viewas{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:.84rem;color:var(--muted);font-weight:600;white-space:nowrap}
/* who's signed in as staff, the real clients above the samples, and setting up the authenticator app */
/* The staff top bar is as wide as the staff pages under it (st-main), so an admin's, with the Binder button too, fits; in a
   window narrower than what it holds, the address is cut shorter, down to nothing, so Sign out stays in reach. Who's
   signed in sits at the right end (margin-left:auto), since "Clients of" left the bar for the Clients page. */
.pt-top-in:has(.st-me){max-width:1440px}
.st-me{display:flex;align-items:center;gap:4px;min-width:0;margin-left:auto;font-size:.84rem;color:var(--muted);font-weight:600;white-space:nowrap}
.st-me-email{max-width:220px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.st-me button{flex:none}
/* the Clients page's head: an admin's "Clients of" beside Invite a client */
.st-head-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
/* on a phone the staff top bar's yellow buttons go onto a second line rather than widening the page */
@media (max-width:700px){.st-top .pt-top-in{flex-wrap:wrap;row-gap:8px}}
.st-sample-head{margin-top:30px}
.st-sample-head h2{font-size:1.25rem}
.si-steps{display:grid;gap:6px;padding-left:1.3em;list-style:decimal;color:var(--muted);font-size:.92rem}
.si-key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;color:var(--fg);background:var(--bg);padding:2px 6px;border-radius:6px;word-break:break-all}
.si-qr{width:200px;max-width:100%;justify-self:center;padding:8px;border-radius:12px;background:#fff}
.si-qr svg{display:block;width:100%;height:auto}
@media (max-width:900px){.st-me-email{display:none}}
.st-viewas select,.st-prep select{padding:8px 10px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font-weight:600;font-size:.9rem}
a.demo-btn{text-decoration:none}
.st-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.stat{display:grid;gap:4px;padding:16px 18px;border-radius:18px;border:1.5px solid var(--line);background:var(--surface);text-align:left}
.stat b{font-family:var(--display);font-size:1.7rem;line-height:1}
.stat span{color:var(--muted);font-size:.86rem;font-weight:600}
.stat.need b{color:var(--amber)}
.stat[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft)}
/* the staff workspace is a desk tool: wider than the client's portal, so the summary and every column fit */
.pt-main.st-main{max-width:1440px}
/* the summary down the left of the client list: who needs what, then every step with its count */
.st-wrap{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}
.st-sum{padding:16px 12px;position:sticky;top:84px}
.st-sum h3{margin:2px 10px 8px;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.st-sum ul+h3{margin-top:18px}
.st-sum ul{display:grid;gap:2px}
.st-sum-i{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:0;border-radius:10px;background:none;color:var(--fg);font:inherit;font-size:.92rem;font-weight:600;text-align:left;cursor:pointer}
.st-sum-i:hover{background:var(--bg)}
.st-sum-i b{font-family:var(--display);font-size:1rem}
.st-sum-i.need b{color:var(--amber)}
.st-sum-i[aria-pressed="true"]{background:var(--tint-blue);color:var(--blue)}
.st-note{display:flex;align-items:center;gap:8px;padding:8px 14px 2px;color:var(--muted);font-size:.86rem}
.st-card{padding:10px 10px 6px}
/* the client list: a row is two short lines (Lewis, November 24, 2026: "I don't like that each client takes up so much
   space from top to bottom"), with the engagement's amount before the tax preparer */
.st-headrow,.st-row{display:grid;grid-template-columns:minmax(0,1.2fr) 136px minmax(0,1.8fr) minmax(0,1fr) 100px 104px 96px;gap:14px;align-items:center}
.st-card.admin .st-headrow,.st-card.admin .st-row{grid-template-columns:minmax(0,1.2fr) 136px minmax(0,1.8fr) minmax(0,1fr) 100px 104px 150px}
.st-headrow{padding:10px 14px;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.st-row{position:relative;padding:8px 14px;border-top:1px solid var(--line);border-radius:12px;line-height:1.35}
.st-row .st-who small .brand-tag{margin:0 6px 0 0;vertical-align:.08em}
.st-row .st-prep select{padding:6px 8px;font-size:.86rem}
.st-row:hover{background:var(--bg)}
.st-who{display:flex;align-items:center;gap:12px;min-width:0;color:var(--fg);text-decoration:none}
.st-who::after{content:"";position:absolute;inset:0;border-radius:12px}
.st-who>span:last-child{min-width:0}
.st-who b{display:block;font-family:var(--display);font-size:.98rem}
.st-who small{display:block;color:var(--muted);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-live{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:var(--note);color:var(--note-fg);font-family:var(--body);font-size:.66rem;font-weight:800;vertical-align:2px}
.stage{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:.88rem;white-space:nowrap}
.st-wait{display:grid;gap:2px;min-width:0;font-size:.88rem}
.st-wait b{color:var(--amber);font-weight:700}
.st-wait small{color:var(--muted)}
/* the step, with the day the client got there under it; what they last did, and our last reminder */
.st-stage{display:grid;gap:3px;min-width:0}
.st-stage small{color:var(--muted);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-act,.st-rem,.st-fee{display:grid;gap:2px;min-width:0;font-size:.86rem}
.st-act b,.st-rem b,.st-fee b{font-weight:600}
.st-act small,.st-rem small,.st-fee small{color:var(--muted);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-lab{display:none}
/* how long a staff job has waited, once that's getting long */
.age{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:.72rem;font-weight:700;vertical-align:1px;white-space:nowrap}
.age.warn{background:color-mix(in srgb,var(--amber) 14%,transparent);color:var(--amber)}
.age.late{background:var(--red-soft);color:var(--red)}
/* My work: one row per client, their jobs beside the name, the longest waiting first (Lewis, November 15, 2026: a client
   with two jobs was listed twice). Each job is a line of its own, in the row's own columns: what to do, how long it has
   waited, its button; the client's name spans those lines. Unanswered messages uses the same row, one line each. */
.wq-head,.wq-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.7fr) 130px 100px;gap:14px;align-items:center}
.wq-c{row-gap:10px}
.wq-c .wq-item{display:contents}
.wq-n2>.st-who{grid-row:span 2}
.wq-n3>.st-who{grid-row:span 3}
.wq-n4>.st-who{grid-row:span 4}
.wq-n5>.st-who{grid-row:span 5}
.wq-row{position:relative;padding:14px;border-top:1px solid var(--line);border-radius:12px}
.wq-row:hover{background:var(--bg)}
.wq-job{display:grid;gap:2px;min-width:0;font-size:.9rem}
.wq-job small{color:var(--muted);font-size:.8rem}
.wq-age{display:grid;gap:2px;font-size:.86rem}
.wq-age small{color:var(--muted);font-size:.78rem}
.wq-age.warn b{color:var(--amber)}
.wq-age.late b{color:var(--red)}
.wq-go{position:relative;z-index:1;justify-self:end}
/* On my desk (the Clients page's first list) and the report of statuses in the summary: a status's heading in the
   list, a row from the binder, a quiet Open for a return that has no job; in the summary every status under whose desk
   it is on, a zero in grey. */
.dkq .wq-head,.dkq .wq-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.7fr) 120px 170px}
.dk .dk-kind{display:flex;align-items:center;gap:10px;padding:14px 14px 2px;font-size:.95rem}
.dk .dk-kind:not(:first-child){margin-top:6px;border-top:1px solid var(--line)}
.dk .dk-kind+.wq-row{border-top:0}
.dk .dk-kind.dk-shut{padding-bottom:12px}
.dk .dk-kind .link-btn{margin-left:auto;font-size:.86rem}
.dk .dk-note{padding:10px 14px;font-size:.88rem}
.dk .dk-loadmore{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px;font-size:.88rem}
.dk .wq-job small{display:block;margin-top:2px;color:var(--muted);font-size:.84rem;font-weight:400}
.wq-go a.btn-mini{display:inline-flex;align-items:center;gap:6px;text-decoration:none;white-space:nowrap}
.wq-go a.dk-open{background:var(--surface);color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--line)}
.st-sum .dk-subs{margin:0 0 6px 14px;padding-left:6px;border-left:2px solid var(--line)}
.st-sum-i.dk-main{font-weight:700}
.st-sum.dk-rep{max-height:calc(100vh - 100px);overflow-y:auto}
.st-sum .dk-desk{grid-column:1/-1}
.st-sum .dk-desk ul{margin:2px 0 4px 20px}
/* a desk's line, as in the organizer's menu: the arrow that folds its kinds, then its name, which lists them all */
.st-sum .dk-dline{display:flex;align-items:center}
.st-sum .dk-chev{flex:none;display:grid;place-items:center;width:24px;height:32px;margin-right:-6px;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.st-sum .dk-chev:hover{background:var(--bg);color:var(--fg)}
.st-sum .dk-chev svg{transition:transform .12s}
.st-sum .dk-chev[aria-expanded="true"] svg{transform:rotate(90deg)}
.st-sum .st-sum-i.dk-dname{flex:1;min-width:0;font-weight:600}
/* (the organizer's two groups of a desk's kinds, Organizer and Return, each named over its first kind) */
.st-sum .dk-grp{grid-column:1/-1;padding:6px 10px 1px;font-size:.8rem;font-weight:800;color:var(--fg)}
.st-sum .dk-grp~.dk-grp{margin-top:4px;padding-top:8px;border-top:1px solid var(--line)}
.st-sum-i.dk-sub{padding:5px 10px;font-size:.86rem;font-weight:500}
.st-sum-i.dk-sub b{font-size:.84rem;color:var(--fg)}
.st-sum-i.dk-sub.todo b{color:var(--amber)}
.st-sum-i.zero b{color:var(--muted);font-weight:500;opacity:.55}
@media (max-width:760px){
  .dkq .wq-row{grid-template-columns:minmax(0,1fr) auto}
}
.wq-ai{padding-bottom:10px}
/* above the client list: search, and a reminder for quiet clients */
.st-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:6px 14px 10px}
.st-search{flex:1 1 260px;max-width:380px;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted)}
.st-search:focus-within{border-color:var(--blue)}
.st-search input{flex:1;min-width:0;border:0;background:none;color:var(--fg);font:inherit;font-size:.92rem;outline:none}
.st-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.88rem;color:var(--amber);font-weight:600}
.st-none{padding:14px}
/* column headings sort the list */
.st-sort{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;text-align:left}
.st-sort:hover,.st-sort.on{color:var(--fg)}
.st-remind{justify-self:start;padding:0;font-size:.82rem;position:relative;z-index:1;white-space:nowrap}
/* how many staff notes a client has */
.st-nn{display:inline-flex;align-items:center;gap:3px;margin-left:8px;color:var(--muted);font-family:var(--body);font-size:.74rem;font-weight:700;vertical-align:1px}
.st-auto{margin:16px 6px 2px;font-size:.84rem;color:var(--muted)}
/* staff's internal notes on a client, at the top of the Return review: a grey box marked Staff only, unlike the
   review notes' yellow one; the notes, newest first, grow up to a point, then scroll */
.rv-int{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 16px;padding:14px 16px 16px;border-radius:16px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}
.rv-int h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:1rem}
.nt-list{display:grid;gap:8px;max-height:min(36vh,320px);overflow-y:auto;overscroll-behavior:contain}
.nt-list li{padding:10px 14px;border-radius:12px;background:var(--surface);font-size:.92rem}
.nt-list p{white-space:pre-line;overflow-wrap:anywhere}
.nt-list small{display:block;margin-top:4px;color:var(--muted);font-size:.8rem}
/* a note's day to follow up on (rvNotes): the day, red once it has come, with Done; or who followed up, with Undo */
.nt-list .nt-fu{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:6px;font-size:.86rem;font-weight:600;white-space:normal}
.nt-fu > svg{flex:none;color:var(--muted)}
.nt-list .nt-fu.due,.nt-fu.due > svg{color:var(--red)}
.nt-list .nt-fu.done{font-weight:400;color:var(--muted)}
.nt-list .nt-fu small{display:inline;margin:0}
.nt-list li.nt-hot{box-shadow:inset 3px 0 0 var(--red)}
.rv-cform .nt-side{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex:none}
.nt-due{display:grid;gap:3px;font-size:.78rem;font-weight:600;color:var(--muted)}
.nt-due small{font-weight:400}
.nt-due input{padding:5px 8px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:.86rem;font-weight:400}
/* A note's writer and when, with Edit and Delete beside them, and the box that changes a note in its place (rvNotes). */
.nt-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;margin-top:4px}
.nt-list .nt-foot small{margin-top:0}
.nt-foot .nt-acts{margin-left:auto}
.nt-edited{font-style:italic}
.nt-list li.nt-editing{box-shadow:inset 0 0 0 1.5px var(--line)}
.nt-edit textarea{min-height:70px;padding:10px 12px;border-radius:12px}
.nt-edit-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 14px}
.nt-list .nt-due small{display:inline;margin:0;font-size:inherit}
.nt-edit-row .m-acts{margin-left:auto}
/* the manager's review of the returns, on the right of a client's page */
.rv{margin-bottom:18px}
/* a client's page: their messages, their other tabs and the Return review side by side, with a divider between each
   pair to drag (the widths are set on the element, each grip stays mid-screen); stacked in that order on narrower
   screens. Each section is a container, so what's in it fits the width it has. */
.cd-split{display:grid;align-items:start}
.cd-pane{min-width:0;container-type:inline-size}
.cd-pane>.card+.card{margin-top:22px}
.cd-cl .tabs{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;border-radius:24px}
.cd-cl .tabs button{white-space:nowrap}
.cd-pane .rv{margin-bottom:0}
/* the Binder box: a line per tax year */
.bx-years{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.bx-years li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.bx-years b{min-width:40px}
.bx-make{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
/* on a client's page the Binder box is a strip across the top of the three sections: its name, each year in a row, and its note at the end */
.bx-row{margin-bottom:18px}
.bx-row .bx{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;padding:12px 20px}
.bx-row .bx .card-head{margin:0}
.bx-row .bx-years{flex-direction:row;flex-wrap:wrap;gap:8px 24px}
.bx-row .bx-make,.bx-row .bx>p{margin:0}
.bx-row .bx>.hint{margin-left:auto}
.cd-rv .btn,.cd-cl .rv .btn{white-space:normal;text-align:center}
.cd-gutter{align-self:stretch;position:relative;cursor:col-resize;touch-action:none;outline:none}
.cd-gutter::before{content:"";position:absolute;inset:0 9px;border-radius:2px;background:var(--line)}
.cd-gutter::after{content:"";position:sticky;top:calc(50vh - 24px);display:block;width:10px;height:48px;margin:0 auto;border:2px solid var(--line);border-radius:999px;background:var(--surface)}
.cd-gutter:hover::before,.cd-gutter:focus-visible::before,.cd-dragging .cd-gutter::before{background:var(--blue)}
.cd-gutter:hover::after,.cd-gutter:focus-visible::after,.cd-dragging .cd-gutter::after{border-color:var(--blue);background:var(--blue)}
.cd-dragging,.cd-dragging *{cursor:col-resize!important;user-select:none}
/* inside the binder's tabs (portal.js, IN_BINDER) a client's page is its three sections alone, across the whole frame,
   and on half a screen they stay side by side (each at least 200px), one under the other only below 720px */
html.in-binder .pt-main.st-main{max-width:none;padding:16px 16px 40px}
@media (max-width:720px){
  html.in-binder .cd-split{grid-template-columns:minmax(0,1fr)!important;row-gap:20px}
  html.in-binder .cd-gutter{display:none}
}
/* on a narrow window the sections go one under the other, as they stand: the dialogue, then the emails */
@media (max-width:1000px){
  html:not(.in-binder) .cd-split{grid-template-columns:minmax(0,1fr)!important;row-gap:20px}
  html:not(.in-binder) .cd-gutter{display:none}
}
/* a client's page has two tabs at the top (Lewis, November 24, 2026), a little larger than the page's other tabs:
   Client Communication, the dialogue and the emails side by side, and Client Information, a list down the left that
   stays in view under the top bar, with the part picked beside it. Under 1000px the list runs across the top. */
.cd-sides{margin-bottom:18px}
.cd-sides button{padding:11px 22px;font-size:1rem}
.cd-info{display:grid;grid-template-columns:232px minmax(0,1fr);gap:24px;align-items:start}
.cd-list{position:sticky;top:72px;display:flex;flex-direction:column;gap:2px;padding:8px}
.cd-list button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 14px;border:0;border-radius:14px;background:none;color:var(--muted);font-weight:600;font-size:.94rem;text-align:left}
.cd-list button svg{flex:none}
.cd-list button span:first-of-type{flex:1;min-width:0}
.cd-list button:hover{background:var(--bg);color:var(--fg)}
.cd-list button[aria-pressed="true"]{background:var(--blue);color:#fff}
.cd-list button[aria-pressed="true"] .pt-count{background:#fff;color:var(--blue)}
@media (max-width:1000px){
  .cd-info{grid-template-columns:minmax(0,1fr);gap:18px}
  .cd-list{position:static;flex-direction:row;flex-wrap:wrap}
  .cd-list button{width:auto}
}
/* The arrows to the client before and after this one in the list the page was opened from: a lead's window's large
   plain arrows (Lewis's pick, November 18, 2026), in the page's grey, beside the page from 1100px wide (the page
   leaves them 80px a side), and small ones by the client's name on a narrower screen. By the name too, where the
   client is in that list. */
.cn-arrow{position:fixed;top:50%;z-index:20;display:none;place-items:center;width:64px;height:110px;margin-top:-55px;padding:0;border:0;border-radius:14px;background:none;color:var(--muted)}
.cn-arrow svg{stroke-width:2.6}
.cn-arrow:hover:not(:disabled){background:var(--blue-soft);color:var(--blue)}
.cn-arrow:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.cn-arrow:disabled{opacity:.25;cursor:default}
.cn-arrow-prev{left:calc(max(80px,(100vw - 1440px) / 2) - 72px)}
.cn-arrow-next{right:calc(max(80px,(100vw - 1440px) / 2) - 72px)}
.cn-arrow-prev svg,.cn-head .icon-btn:first-child svg{transform:scaleX(-1)}
.cd-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.cn-head{display:inline-flex;align-items:center;gap:6px}
.cn-pos{color:var(--muted);font-size:.86rem;font-weight:600;white-space:nowrap}
.cn-head .icon-btn:disabled{opacity:.4;cursor:default}
@media (min-width:1100px){
  .cn-arrow{display:grid}
  .cn-head .icon-btn{display:none}
  .pt-main.st-main:has(>.cn-arrow){max-width:min(1440px,calc(100vw - 160px))}
}
/* A client's page in a window of its own (Lewis, December 4, 2026: "when you click on a client, it pops up? It takes
   like 90% of the space, and you could X out of it"): a lead's window's size, 90% of the screen's width and 92% of its
   height, with at least 90px a side left for the arrows from 1208px wide (the whole screen on a phone), over the page
   it was opened from, dimmed. The X in its top corner; the page scrolls inside the window (cw-box), with what stayed
   in view under the top bar (the list of parts, the divider's handle) staying in view in the window, and the binder
   filling it. The arrows to the client before and after are a lead's: white on the dimmed page beside the window, by
   the name under 1208px. (Inside the binder's tabs there is no window: a client's page is the whole page there.) */
.cw-bg{position:fixed;inset:0;z-index:50;background:rgba(10,15,23,.38);opacity:0;pointer-events:none;transition:opacity .2s}
.cw{--cw-h:100vh;position:fixed;inset:0;z-index:51;display:flex;flex-direction:column;background:var(--bg);visibility:hidden;opacity:0}
body.cw-open{overflow:hidden}
body.cw-open .cw-bg{opacity:1;pointer-events:auto}
body.cw-open .cw{visibility:visible;opacity:1;transition:opacity .18s}
.cw-box{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;outline:none}
.cw-x{position:absolute;top:14px;right:24px;z-index:9;box-shadow:0 4px 14px -6px rgba(10,15,23,.35)}
.cw-x:hover{color:var(--fg);border-color:var(--muted)}
.cw .pt-main.st-main.cw-main{max-width:none;margin:0;padding:22px 28px 36px}
.cw .cd-head,.cw .cd-siderow{padding-right:60px}   /* (the rows that can be at the window's top, its head and the tabs with the organizer's year and Create: clear of the X) */
.cw .cw-main>.ai-warn{margin-right:60px}
.cw .cd-list{top:12px}
.cw .cd-gutter::after{top:calc(var(--cw-h) / 2 - 24px)}
.cw .bx-slot:not(.flow){height:max(540px,calc(var(--cw-h) - 100px))}
.cw .cn-arrow{display:none;color:#fff}
.cw .cn-arrow svg{filter:drop-shadow(0 2px 6px rgba(10,15,23,.55))}
.cw .cn-arrow:hover:not(:disabled){background:rgba(255,255,255,.18);color:#fff}
.cw .cn-arrow:focus-visible{outline-color:#fff}
.cw .cn-arrow:disabled{opacity:.3}
.cw .cn-arrow-prev{left:calc(max(5vw,90px) - 78px)}
.cw .cn-arrow-next{right:calc(max(5vw,90px) - 78px)}
.cw .cn-head .icon-btn{display:inline-grid}
@media (max-width:640px){
  .cw .pt-main.st-main.cw-main{padding:16px 14px 28px}
  .cw-x{top:10px;right:12px}
}
@media (min-width:901px){
  .cw{--cw-h:92vh;top:4vh;bottom:4vh;left:5vw;right:5vw;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 40px 90px -40px rgba(10,15,23,.6)}
}
@media (min-width:1208px){
  .cw{left:max(5vw,90px);right:max(5vw,90px)}
  .cw .cn-arrow{display:grid}
  .cw .cn-head .icon-btn{display:none}
}
/* A client's page, later on November 24, 2026: Hide details / Show details under the name (the chevron points the way
   the details go), Request new item by the dialogue and its box, the message box made big, and Delete this client. */
.cd-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.cd-fold-btn{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;font-size:.86rem;color:var(--muted)}
.cd-fold-btn:hover{color:var(--blue);background:var(--blue-soft)}
.cd-fold-btn svg{transform:rotate(-90deg)}
.cd-folded .cd-fold-btn svg{transform:rotate(90deg)}
.cd-folded{margin-bottom:14px}
.st-msgs-r{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.ask-req-btn{display:inline-flex;align-items:center;gap:6px}
.ask-req-btn[aria-expanded="true"]{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
.ask-req{padding:14px 20px 16px;border-bottom:1px solid var(--line);background:var(--surface)}
.ask-req-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-family:var(--display)}
.ask-req .hint{margin:0}
.ask-req .hint .link-btn{padding:0 2px;font-size:inherit}
/* the message box on a client's page: pulled taller (or shorter) by its corner, past the 160px it grows to by itself */
.st-msgs .composer textarea{resize:vertical;max-height:none;border-radius:16px}
/* the AI Suggested Response folded to its heading, saying why; and, in the portal, its words as one button that puts
   them in the message box */
.ai-folded .cd-fold-btn svg{transform:rotate(90deg)}
.ai-folded .ai-head{border-bottom:0}
.ai-fold-note{display:inline-flex;align-items:center;gap:5px;color:var(--teal);font-size:.86rem;font-weight:700}
.ai-fold-note svg{flex:none}
.aim-use{display:block;width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--bg);color:var(--fg);font:inherit;font-size:.95rem;line-height:1.5;text-align:left;cursor:pointer}
.aim-use:hover{border-color:var(--blue)}
.aim-use:disabled{color:var(--muted);cursor:default}
.aim-use:disabled:hover{border-color:var(--line)}
.aim-words{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
.aim-use-tip{display:flex;align-items:center;gap:6px;margin-top:10px;color:var(--blue);font-size:.84rem;font-weight:700}
.aim-use-tip svg{flex:none}
.aim-use:disabled .aim-use-tip{visibility:hidden}
.cd-facts .cd-del-btn{color:var(--red)}
.cd-facts .cd-del-btn:hover{background:var(--red-soft)}
.cd-delform{max-width:640px;margin:0 0 18px}
@container (max-width:760px){
  .cd-pane .acc-grid{grid-template-columns:minmax(0,1fr)}
  .cd-pane .acc-headrow{display:none}
  .cd-pane .acc-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cd-pane .acc-main{grid-column:1 / -1}
  .cd-pane .acc-yl{display:block;margin-bottom:3px;font-size:.72rem;font-weight:700;color:var(--muted)}
}
/* the dialogue on a client's page has its newest message on top, so the box to write in sits above the messages */
.st-msgs .composer{flex-wrap:wrap;border-top:0}
.st-msgs .composer-hint{flex-wrap:nowrap}
.st-msgs .composer-hint select{flex:1;min-width:0}
.st-msgs .thread{border-top:1px solid var(--line)}
/* their messages still waiting for a reply: how many, the button that clears them, and a mark on each. (Only in the
   dialogue: from November 16 to 24, 2026 these rules also reached the client list's What's waiting, which shares the
   class, and squeezed "Reply to 1 message" into a word a line on an amber block.) */
.st-msgs .st-wait{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:8px 16px;border-bottom:1px solid var(--line);background:var(--amber-soft)}
.st-msgs .st-wait p{display:flex;align-items:center;gap:8px;margin:0;color:var(--amber)}
.st-msgs .st-wait p svg{flex:none}
.m-waiting{justify-self:start;padding:2px 9px;border-radius:999px;background:var(--amber-soft);color:var(--amber);font-size:.72rem;font-weight:700}
/* a reply to one message in particular: Reply on each message, the message's first words over the reply, and over the box while it is written */
/* under each written message: the mark that it still waits, Reply, and No reply required for that message alone */
.m-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:.78rem}
.m-me .m-acts{justify-content:flex-end}
.m-act{display:inline-flex;align-items:center;gap:4px;margin:0 -6px;padding:2px 6px;font-size:inherit;font-weight:600}
.m-act svg{flex:none}
.m-act:disabled{opacity:.5;cursor:default}
.m-quote{display:block;margin:0 0 8px;padding:6px 10px;border-left:3px solid var(--blue);border-radius:8px;background:var(--surface);color:var(--fg);font-size:.86rem;line-height:1.4;overflow-wrap:anywhere}
.m-quote b{display:block;font-size:.76rem}
.m-me .bubble .m-quote{border-left-color:#fff;background:rgba(255,255,255,.18);color:#fff}
.m-quoting{flex:1 0 100%;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0;background:var(--tint-blue)}
.m-quoting .icon-btn{flex:none;width:28px;height:28px}
/* a client's messages there: marked as theirs, with a blue edge, apart from the staff comments */
.st-msgs-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:14px 20px;border-top:4px solid var(--blue);border-bottom:1px solid var(--line);background:var(--tint-blue)}
/* their emails, as the binder read them, in the section on the right: for staff only, so an amber edge where the client's own dialogue has a blue one;
   the list is as tall as the dialogue's, so the two sections are the same size */
.cm-head{border-top-color:var(--amber);background:var(--amber-soft)}
.cm .cm-mail{max-height:min(62vh,640px);border:0;border-radius:0}
.cm-none{margin:0;padding:16px 20px}
/* over a client's emails while the whole look in the mailbox is still out: what shows meanwhile (the newest few, or the last look's) */
.cm-early{display:flex;align-items:center;gap:10px;margin:0;padding:9px 20px;border-bottom:1px solid var(--line);background:var(--bg);color:var(--muted);font-size:.84rem;line-height:1.45}
.cm-early svg{flex:none}
.cm-asof{display:flex;gap:8px;margin:0;padding:10px 20px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem;line-height:1.45}
.cm-asof svg{flex:none;margin-top:2px}
.cm-asof a{white-space:nowrap}
/* A client's other email addresses, over their emails (oeLine) */
.oe-line{display:flex;gap:8px;margin:0;padding:9px 20px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.84rem;line-height:1.45}
.oe-line svg{flex:none;margin-top:2px}
.oe-line b{color:var(--fg);font-weight:600}
.oe-box{margin:0;padding:12px 20px 14px;border-bottom:1px solid var(--line);background:var(--bg)}
.oe-h{margin:0 0 8px;font-size:.88rem}
.oe-rows{display:grid;gap:6px}
.oe-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:8px;align-items:center}
.oe-row input{min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:6px;font:inherit;font-size:.88rem;background:var(--surface);color:var(--fg)}
.oe-btns{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0 0;flex-wrap:wrap}
.oe-box .up-err{margin:8px 0 0}
@media (max-width:560px){.oe-row{grid-template-columns:1fr auto}.oe-row input[name=oe-note]{grid-column:1}}
/* The AI Suggested Response, over the dialogue and the emails: staff only, with its own teal edge (the dialogue's is blue, the
   emails' amber). The suggestion shows whole in a box staff can change in place (.aim-text, below), then what to
   check, the buttons, the box to ask for another, and a line saying what it was written from. */
.ai-head{border-top-color:var(--teal);background:var(--teal-soft)}
.ai-head h2{display:flex;align-items:center;gap:8px}
.ai-head h2 svg{flex:none;color:var(--teal)}
.ai-check{margin:0 20px 14px;padding:10px 14px;border-radius:12px;background:var(--amber-soft);font-size:.86rem;line-height:1.45}
.ai-check p{display:flex;align-items:center;gap:6px;margin:0 0 4px;color:var(--amber)}
.ai-check p svg{flex:none}
.ai-check ul{margin:0;padding-left:20px}
.ai-check li+li{margin-top:4px}
.ai-acts{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 12px}
.ai-acts .btn{padding:8px 16px;font-size:.9rem}
.ai-again{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 20px 14px}
.ai-again input{flex:1 1 200px;min-width:0;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-size:.88rem}
.ai-again input:focus{outline:none;border-color:var(--blue)}
.ai-again input:disabled{background:var(--bg);color:var(--muted)}
.ai-again .btn-mini:disabled{opacity:.55;cursor:default}
.ai-sug .up-err{margin:0;padding:12px 20px}
.ai-sug .up-err small{color:var(--muted)}
.ai-none{margin:0;padding:14px 20px 10px}
.ai-wait{display:flex;align-items:center;gap:10px;margin:0;padding:16px 20px;color:var(--muted);font-size:.9rem;line-height:1.45}
.ai-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--teal);animation:ai-pulse 1.2s ease-in-out infinite}
@keyframes ai-pulse{0%,100%{opacity:.25;transform:scale(.75)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.ai-dot{animation:none}}
.ai-foot{display:flex;gap:8px;margin:0;padding:10px 20px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;line-height:1.45}
.ai-foot svg{flex:none;margin-top:2px}
/* The words in a box staff can change before they go out (it grows to show them whole): the AI Suggested Response's
   reply, as a message or an email; and, for an email, the lead window's ask before Send directly. */
.aim-body{padding:14px 20px 12px}
.aim-text{display:block;width:100%;min-height:120px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--bg);color:var(--fg);font:inherit;font-size:.95rem;line-height:1.5;resize:none;overflow:hidden}
.aim-text:focus{outline:none;border-color:var(--blue)}
.aim-text[readonly]{color:var(--muted)}
.ai-sug .ld-send-ask{margin:0 20px 12px}
.ai-sug .ai-done{margin:14px 20px 12px}
.ai-sug .ai-act-err{margin:0;padding:0 20px 12px}
/* One AI Suggested Response across the top of Client Communication, over the dialogue and the emails: on a wide
   screen the words on the left, and what to check, the buttons and Suggest again beside them; in the binder's narrow
   dialogue, one under the other. Send it (in the portal or by email) as two small buttons over the words. */
.ai-row{margin-bottom:18px}
.ai-chan{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:14px 20px 0;font-size:.88rem}
.ai-chan>span{margin-right:4px;color:var(--muted);font-weight:600}
.ai-chan button{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-weight:600;cursor:pointer}
.ai-chan button svg{flex:none}
.ai-chan button[aria-pressed="true"]{border-color:var(--teal);background:var(--teal-soft);color:var(--teal)}
.ai-chan button:disabled{opacity:.55;cursor:default}
.ai-chan button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.ai-chan+.aim-body{padding-top:10px}
@media (min-width:1000px){
  .ai-row .ai-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(300px,2fr);align-items:start}
  .ai-row .ai-side{padding-top:14px}
}
/* Nothing suggested (Claude wasn't sure enough of anything to write), and the boxes paused at the month's AI budget. */
.ai-blank{display:flex;gap:8px;margin:0;padding:14px 20px 12px;font-size:.92rem;line-height:1.45}
.ai-blank svg{flex:none;margin-top:2px;color:var(--teal)}
.ai-paused{padding:12px 20px 14px}
.ai-paused svg{flex:none;align-self:flex-start;margin-top:2px}
/* Admins: a line over the staff pages while the month's AI use is on pace to pass its budget, or once it has stopped
   the suggestions; and AI settings on the Staff page. */
.ai-warn{display:flex;gap:8px;margin:0 0 18px;padding:10px 14px;border-radius:12px;background:var(--amber-soft);color:var(--amber);font-size:.9rem;font-weight:600;line-height:1.45}
.ai-warn svg{flex:none;margin-top:2px}
.ai-warn a{color:inherit;white-space:nowrap}
.ai-warn-stop{background:var(--red-soft);color:var(--red)}
#aic-h svg{vertical-align:-3px;margin-right:6px;color:var(--teal)}
.ai-cfg-body{display:grid;gap:12px}
.ai-cfg-now{margin:0;font-size:.95rem;line-height:1.5}
.ai-cfg-say{display:flex;gap:8px;margin:0;padding:10px 14px;border-radius:12px;background:var(--ok-soft);color:var(--ok);font-size:.9rem;line-height:1.45}
.ai-cfg-say svg{flex:none;margin-top:2px}
.ai-cfg-over{background:var(--amber-soft);color:var(--amber)}
.ai-cfg-stop{background:var(--red-soft);color:var(--red)}
.ai-cfg-uses{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ai-cfg-uses li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;padding:8px 12px;border-radius:10px;background:var(--bg);font-size:.9rem}
.ai-cfg-uses small{color:var(--muted)}
.ai-cfg-uses-none{margin:0}
.ai-cfg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;align-items:start;max-width:960px;padding-top:12px;border-top:1px solid var(--line)}
@media (max-width:760px){.ai-cfg{grid-template-columns:1fr}}
.ai-cfg .field{margin:0}
.ai-cfg-btns{grid-column:1/-1}
/* a client's questionnaires on the staff's Client questionnaire tab: each drawn as the client's own, with their answers in it and
   every box switched off (asAnswered). The answers keep their full colour; an answer that wasn't picked steps back */
.qa-filled{display:grid;gap:22px}
.q-ro>[data-fbox]{display:grid;gap:22px}
.q-ro.q-ans>.field>label{font-family:var(--display);font-size:1rem}
.q-ro>.q-group:first-child{margin-top:0;padding-top:0;border-top:0}
.q-ro .field input:disabled,.q-ro .field select:disabled,.q-ro .field textarea:disabled,.q-ro .sch input:disabled{background:var(--bg);color:var(--fg);-webkit-text-fill-color:var(--fg);opacity:1;cursor:default}
.q-ro .opt input,.q-ro .chk input{cursor:default}
.q-ro .opt span{color:var(--muted)}
.q-ro .opt input:checked+span{color:var(--blue)}
.rv-p{color:var(--muted)}
.rv-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:14px}
.rv-who{font-weight:700}
.rv-acts .muted{font-size:.92rem}
.rv-items{display:grid;gap:14px;margin-top:14px;padding-left:22px;list-style:decimal}
.rv-items>li::marker{font-family:var(--display);font-weight:800;color:var(--amber)}
.rv-item{display:grid;gap:8px}
.rv-q{font-weight:700}
.rv-item textarea{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--fg);font:inherit;resize:vertical}
.rv-save{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.rv-save small{display:inline-flex;align-items:center;gap:4px;color:var(--ok);font-size:.82rem;font-weight:600}
.rv-file{display:flex;align-items:center;gap:10px;flex:1 1 100%;min-width:0}
.rv-file svg{flex:none;color:var(--muted)}
.rv-file>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.rv-file small{color:var(--muted);font-size:.84rem}
.rv-up{position:relative;cursor:pointer}
.rv-up input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.rv-up:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.rv-done{display:grid;gap:8px;margin-top:12px}
.rv-done li{display:grid;gap:4px;padding:10px 14px;border-radius:12px;background:var(--bg);font-size:.92rem}
.rv-done small{color:var(--muted);font-size:.84rem}
/* the review's history: every status change, oldest first, on a line down the side */
.rv-log{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.rv-log h3{font-size:1rem}
.rv-log ol{display:grid;margin:0;padding:0;list-style:none}
.rv-log li{position:relative;display:grid;gap:2px;padding:0 0 12px 22px;font-size:.92rem;overflow-wrap:anywhere}
.rv-log li::before{content:"";position:absolute;left:3px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--blue)}
.rv-log li::after{content:"";position:absolute;left:7px;top:17px;bottom:2px;width:1px;background:var(--line)}
.rv-log li:last-child{padding-bottom:0}
.rv-log li:last-child::after{display:none}
.rv-log small{color:var(--muted);font-size:.8rem}
/* a client's timeline, newest first: a dot each on a line down the side, blue for what they did, grey for staff's,
   amber for the return review's */
.tl{display:grid;margin:14px 0 0;padding:0;list-style:none}
.tl li{position:relative;display:grid;gap:2px;padding:0 0 14px 24px;font-size:.92rem;overflow-wrap:anywhere}
.tl li::before{content:"";position:absolute;left:3px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--muted)}
.tl li::after{content:"";position:absolute;left:7.5px;top:18px;bottom:2px;width:1px;background:var(--line)}
.tl li:last-child{padding-bottom:0}
.tl li:last-child::after{display:none}
.tl .tl-client::before{background:var(--blue)}
.tl .tl-review::before{background:var(--amber)}
.tl small{color:var(--muted);font-size:.8rem}
/* the comments the preparer and the managers write each other: under the review's step, and in the review notes */
/* the staff comments: a yellow box marked Staff only, unlike the client's messages */
.rv-talk{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:18px;padding:14px 16px 16px;border-radius:16px;background:var(--tint-yellow);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--amber) 25%,transparent)}
.rv-talk h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:1rem}
.chip-staff{margin-left:auto;background:var(--surface);color:var(--amber);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--amber) 45%,transparent)}
.rv-talk .rv-c:not(.mgr){background:var(--surface)}
/* the review notes grow like the dialog with the client: up to the same height, then they scroll, at the latest */
.rv-cm{position:relative;display:grid;gap:8px;max-height:min(62vh,640px);overflow-y:auto;overscroll-behavior:contain}
@media (max-width:900px){.rv-cm{max-height:none}}
.rv-c{padding:10px 14px;border-radius:12px;background:var(--bg);font-size:.92rem}
.rv-c.mgr{background:var(--tint-blue)}
.rv-c.new,.rv-replies li.new{box-shadow:inset 3px 0 0 var(--amber)}
/* a review note cleared (a green edge), the replies under it, and its Cleared box and Reply */
.rv-c.cleared{box-shadow:inset 3px 0 0 var(--ok)}
.rv-replies{display:grid;gap:6px;margin-top:8px;padding-left:10px;border-left:2px solid color-mix(in srgb,var(--fg) 12%,transparent)}
.rv-replies li{padding:8px 12px;border-radius:10px;background:var(--surface)}
.rv-c:not(.mgr) .rv-replies li{background:var(--bg)}
.rv-replies li>p+p{white-space:pre-line;overflow-wrap:anywhere}
.rv-c-acts{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:6px}
.rv-c-acts .link-btn{margin-left:auto;padding:2px 4px;font-size:.84rem}
.rv-clear{display:inline-flex;align-items:center;gap:6px;font-size:.84rem;font-weight:600;color:var(--muted);cursor:pointer}
.rv-clear input{width:16px;height:16px;margin:0;accent-color:var(--ok);cursor:pointer}
.rv-c.cleared .rv-clear{color:var(--ok)}
.rv-rform{display:grid;gap:6px;margin-top:8px}
.rv-rform textarea{width:100%;padding:8px 10px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:.9rem;resize:vertical}
.rv-rform>span{display:flex;align-items:center;gap:8px}
/* the client's Lacerte number, and the preparer's note for the manager, at the top of the review */
.rv-lac{margin:-4px 0 10px;font-size:.92rem}
.rv-lac .link-btn{margin-left:4px}
.rv-note{margin:12px 0 0;padding:10px 14px;border-left:3px solid var(--blue);border-radius:0 12px 12px 0;background:var(--tint-blue)}
.rv-note p{white-space:pre-line;overflow-wrap:anywhere}
.rv-note small{display:block;margin-top:4px;color:var(--muted);font-size:.82rem}
.rv-c-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin-bottom:4px}
.rv-c-meta small{color:var(--muted);font-size:.8rem}
.rv-role{padding:1px 8px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:.72rem;font-weight:700}
.rv-c>p+p{white-space:pre-line;overflow-wrap:anywhere}
.rv-cform{display:flex;align-items:flex-end;gap:10px}
.rv-cform textarea{flex:1;min-width:0;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--fg);font:inherit;resize:vertical}
/* in a narrow review section the comment box has the whole width, with Send under it */
@container (max-width:460px){
  .cd-pane .rv-cform{flex-direction:column;align-items:stretch}
  .cd-pane .rv-cform .btn-mini{align-self:flex-end}
  .cd-pane .rv-cform .nt-side{flex-direction:row;align-items:flex-end;justify-content:space-between}
}
/* Real clients: the account count and Invite a client, in the card's head; Resend invitation on a client's page */
.rc-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 10px}
.rc-resend{padding:2px 4px;font-size:inherit}
.st-noprep{color:var(--amber);font-weight:600}
/* an engagement's years, picked as chips */
.yr-f{border:0;margin:0;padding:0;min-width:0}
.yr-f legend{font-weight:700;font-size:.92rem;padding:0;margin-bottom:8px}
.yr-f .opts{gap:6px}
.yr-f .opt span{padding:6px 12px;font-size:.88rem}
/* Other, typed in, under the transcripts tick (trPick) */
.yr-f .eng-other{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.88rem}
.yr-f .eng-other span{font-weight:600}
.yr-f .eng-other input{flex:1;min-width:0;padding:8px 12px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);font:inherit}
.yr-f .eng-other input:focus{outline:none;border-color:var(--blue)}
/* admins: the Staff page, the header's Staff link and Admin badge */
.dl-off .dl-t b,.dl-off .dl-ic{opacity:.55}
.st-admin{padding:2px 8px;font-size:.7rem;vertical-align:1px}
/* The Staff page's tick for who sees the Google part of a lead, under each person's line. */
.st-gpart{justify-self:start;align-items:center;gap:8px;margin-top:6px;font-size:.88rem;cursor:pointer}
.st-gpart input{width:18px;height:18px;margin-top:0;cursor:pointer}
.st-gpart input:disabled,.st-gpart input:disabled+span{cursor:default}
.st-gpart input:disabled+span{color:var(--muted)}
.st-team{display:inline-flex;align-items:center;gap:6px}
/* admins: the Access log, a day's entries in four columns (time, who, what, client) */
.al-row{display:grid;grid-template-columns:76px minmax(0,1fr) minmax(0,2.4fr) minmax(0,1fr);gap:14px;align-items:center}
.st-list>.al-row{padding:10px 14px;border-top:1px solid var(--line);font-size:.92rem}
.al-t{color:var(--muted);font-variant-numeric:tabular-nums}
.al-by{font-weight:600;overflow-wrap:anywhere}
.al-what{overflow-wrap:anywhere}
.al-c a{font-weight:600}
.al-tools{gap:8px 12px}
.al-day input{padding:7px 10px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:.9rem}
.al-q{flex:1 1 200px;max-width:300px}
.al-who{margin-left:0}
@media (max-width:760px){
  .al-row{grid-template-columns:64px minmax(0,1fr);gap:4px 12px}
  .st-list>.al-row .al-what,.st-list>.al-row .al-c{grid-column:2}
  .st-headrow.al-row span:nth-child(n+3){display:none}
}
/* the unanswered-messages inbox */
.ib-msg{font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ib-go{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ib-go .link-btn{font-size:.8rem;padding:0}
/* admin: each preparer's load */
.wl-row{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(8,minmax(0,1fr));gap:10px;align-items:center;padding:14px;border-top:1px solid var(--line)}
.wl-who{display:grid;gap:2px}
.wl-who .link-btn{padding:0;justify-self:start;font-size:.98rem;font-weight:700}
.wl-who small,.wl-n small{color:var(--muted);font-size:.76rem}
.wl-n{display:grid;gap:1px}
.wl-n b{font-family:var(--display);font-size:1.05rem}
.wl-n.warn b{color:var(--amber)}
.wl-n.late b{color:var(--red)}
@media (max-width:900px){
  .wl-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wl-who{grid-column:1 / -1}
}
/* what AI's document check found, at the top of the client's checklist */
.ai-box{display:flex;gap:12px;align-items:flex-start;margin:4px 0 14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--bg)}
.ai-box svg{flex:none;margin-top:2px}
.ai-box>div{display:grid;gap:6px;min-width:0}
.ai-box p{color:var(--muted);font-size:.9rem}
.ai-box ul{display:grid;gap:8px}
.ai-box li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;font-size:.92rem}
.ai-acts{display:flex;align-items:center;gap:10px}
.ai-box.run svg{color:var(--blue)}
.ai-box.ok svg{color:var(--ok)}
.ai-box.flag{border-color:color-mix(in srgb,var(--amber) 40%,var(--line))}
.ai-box.flag svg{color:var(--amber)}
.ai-note{display:flex;align-items:center;gap:6px;margin-top:6px;color:var(--amber);font-weight:600}
.st-prep{position:relative;z-index:1}
.st-prep select{width:100%}
.st-prep select.unassigned{border-color:var(--amber);color:var(--amber)}
.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;font-weight:700;font-size:.92rem;text-decoration:none}
.back-link:hover{text-decoration:underline;text-underline-offset:3px}
.cd-head{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-bottom:18px}
.cd-head h1{font-size:clamp(1.5rem,3vw,2rem)}
.cd-head p{color:var(--muted)}
/* a client's name, and beside it their details, a line each: in two columns (who and what; their account and step)
   on a wide screen, one under the name on a narrow one */
.cd-name{display:grid;gap:4px;justify-items:start}
.cd-head .cd-email{font-size:.94rem;overflow-wrap:anywhere}
.cd-facts{display:flex;flex-wrap:wrap;gap:3px 32px;padding-left:18px;border-left:1px solid var(--line);color:var(--muted);font-size:.94rem;line-height:1.45}
.cd-facts ul{display:grid;gap:3px;align-content:start}
.cd-facts li{overflow-wrap:anywhere}
.cd-facts b{color:var(--fg);font-weight:600}
.cd-facts .link-btn{padding:0 4px;font-size:inherit}
.cd-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-bottom:18px}
.cd-status h2{font-size:1.2rem}
.cd-status p{color:var(--muted);margin-top:4px}
.cd-status .you{color:var(--amber);font-weight:700}
.qa{display:grid}
.qa li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.qa li:last-child{border-bottom:0}
.qa b{font-weight:700;text-align:right;max-width:46vw}
.qa b.flag{color:var(--amber)}
button.btn-mini{border:0}
.btn-mini.ok{background:var(--ok)}
.st-unread:empty{display:none}
/* the new-messages count opens the client's latest messages, with a reply box: a bigger target than it looks */
.st-badge{position:relative;z-index:1;display:inline-grid;place-items:center;min-width:36px;min-height:36px;margin:-8px;padding:0;border:0;border-radius:999px;background:none;cursor:pointer}
.st-badge .pt-count{transition:transform .15s,background .15s}
.st-badge:hover .pt-count{background:var(--blue-hover);transform:scale(1.12)}
/* on a phone the column's heading is gone, so the count says what it is */
.st-badge-t{display:none}
@media (max-width:900px){
  .st-badge{display:inline-flex;align-items:center;gap:8px;margin:2px 0 0;padding:4px 14px 4px 6px;background:var(--blue-soft);color:var(--blue);font-size:.86rem;font-weight:700}
  .st-badge-t{display:inline}
}
/* the quick reply, in the middle of the screen */
.qr .thread{max-height:min(40vh,360px);padding:16px;border:1px solid var(--line);border-radius:16px}
.qr .si-form{gap:12px}
/* under a client's messages: what's still waiting for a reply, with "No reply required" */
/* under a sample client's messages, what else their page is for */
.st-sample-note{margin-top:24px}
/* narrower: the summary goes above the list, its buttons side by side */
@media (max-width:1100px){
  .st-wrap{grid-template-columns:minmax(0,1fr)}
  .st-sum{position:static}
  .st-sum.dk-rep{max-height:none;overflow:visible}
  .st-sum ul{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
}
@media (max-width:900px){
  .st-headrow{display:none}
  .st-row,.st-card.admin .st-row{grid-template-columns:minmax(0,1fr);gap:6px 12px}
  .st-row>*{grid-column:1 / -1}
  .wq-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  .wq-row .st-who,.wq-row .wq-job{grid-column:1}
  .wq-row .wq-age{grid-column:2;grid-row:1;text-align:right}
  .wq-row .wq-go{grid-column:2;grid-row:2}
  /* My work on a narrow screen: the client on top, then each job as its own block (what to do, how long, its button) */
  .wq-row.wq-c{grid-template-columns:minmax(0,1fr);gap:10px}
  .wq-row.wq-c>.st-who{grid-row:auto}
  .wq-c .wq-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center}
  .wq-c .wq-item .wq-job{grid-column:1;grid-row:1}
  .wq-c .wq-item .wq-age{grid-column:1;grid-row:2;display:flex;align-items:baseline;gap:6px;text-align:left}
  .wq-c .wq-item .wq-go{grid-column:2;grid-row:1 / span 2}
  /* with no column headings, the activity and reminder say what they are */
  .st-act,.st-rem,.st-fee{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
  .st-act small,.st-rem small,.st-fee small{white-space:normal}
  .st-lab{display:inline;color:var(--muted);font-weight:600}
  .st-sum ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-sum-i{padding:8px;font-size:.86rem}
  .st-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .st-viewas span{display:none}
  .st-viewas select{max-width:150px}
  .cd-facts{flex-direction:column;width:100%;padding-left:0;border-left:0}
}
.logo{flex:none}
@media (max-width:560px){
  .pt-top-in{gap:10px}
  .st-viewas select{max-width:132px;padding:7px 8px;font-size:.84rem}
  /* with Sign out in the staff header too, the preparer picker takes what room is left rather than widening the page */
  .st-viewas{min-width:0}
  .st-viewas select{min-width:0;width:100%}
  .tabs{overflow-x:auto;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:1 0 auto;white-space:nowrap}
}

/* whole rows and year tiles are clickable */
.dl>li{position:relative}
.dl-open{all:unset;cursor:pointer;font-weight:600;line-height:1.35;color:inherit;overflow-wrap:anywhere}
.dl-open::after{content:"";position:absolute;inset:0;border-radius:12px}
.dl-open:hover{color:var(--blue)}
.dl-open:focus-visible{outline:none}
.dl-open:focus-visible::after{outline:3px solid var(--cyan);outline-offset:2px}
.dl .files,.dl .dl-act{position:relative;z-index:1}
.yrs li{display:block;padding:0}
.yrs a{display:grid;justify-items:center;gap:2px;padding:12px 4px 10px;border-radius:14px;text-align:center;text-decoration:none;transition:transform .15s,box-shadow .15s}
.yrs a:hover{transform:translateY(-1px);box-shadow:0 10px 20px -14px rgba(16,24,40,.5)}

/* your info */
a.btn-mini{text-decoration:none}
.card-head>div{min-width:0}
.pt-menu .menu-phone{display:none}
@media (max-width:1060px){.pt-chip{display:none}.pt-nav a{padding:9px 10px}}
@media (max-width:900px){.pt-menu .menu-phone{display:flex}}

/* question groups, follow-ups, trips to the U.S. and children */
.q-group{margin:10px 0 -6px;padding-top:14px;border-top:1px solid var(--line);font-family:var(--body);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
form.q>.q-group:first-child{margin-top:0;padding-top:0;border-top:0}
.sub-q{margin-top:-10px;padding:14px 16px;border-radius:14px;background:var(--bg)}
/* questions that a Yes above them brings up (About you: living abroad), spaced as the form's own */
.q-more{display:grid;gap:8px}
.sub-h b{display:block;font-family:var(--display);font-size:.95rem}
.trips,.kids{display:grid}
.trip,.kid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.trip:first-child,.kid:first-child{border-top:0;padding-top:4px}
.trip .field>span,.kid .field>span{font-weight:700;font-size:.82rem;color:var(--muted)}
.trip .chk,.kid .chk{font-size:.88rem}
.trip [data-trip-remove],.kid [data-kid-remove]{justify-self:end}
.trip.bad input[type=date]{border-color:var(--red)}
.trip-err{color:var(--red);font-weight:600;font-size:.86rem}
[data-when="trips"] [data-trip-add],[data-when="kids"] [data-kid-add]{justify-self:start}
@media (max-width:420px){.trip,.kid{gap:8px}.trip input[type=date],.kid input[type=date]{padding:10px 8px}}
.field input.bad{border-color:var(--red)}
.field input:disabled{background:var(--bg);color:var(--muted)}

/* foreign accounts table: details once, one column per year */
.acc-card{padding:10px 12px}
.acc-headrow,.acc-row{display:grid;grid-template-columns:minmax(230px,1.7fr) repeat(var(--ny,6),minmax(76px,1fr));gap:8px;align-items:center}
/* as many year columns as she is asked for; none when her accounts are only listed for her return */
[data-noyrs] .acc-headrow{display:none}
[data-noyrs] .acc-row{grid-template-columns:minmax(0,1fr)}
.acc-headrow{padding:8px 4px;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.acc-headrow span:not(:first-child){text-align:right;padding-right:10px}
.acc-row{padding:12px 4px;border-top:1px solid var(--line)}
.acc-main{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.acc-name{display:grid;gap:3px;min-width:0;flex:1}
.acc-name b{font-family:var(--display);font-size:1rem}
.acc-bank{box-sizing:border-box;width:100%;padding:4px 6px;margin-left:-6px;border:1.5px solid transparent;border-radius:8px;background:none;font-family:var(--display);font-weight:700;font-size:1rem;color:var(--fg)}
.acc-bank:hover{border-color:var(--line)}
.acc-bank:focus{outline:none;border-color:var(--blue);background:var(--surface)}
/* An account without a name shows a real box to type it in (Mary Ann couldn't find where, November 12, 2026). */
.acc-bank.need{border:1.5px dashed color-mix(in srgb,var(--red) 55%,var(--line));background:color-mix(in srgb,var(--red-soft) 70%,var(--surface));font-weight:600}
.acc-bank.need::placeholder{color:var(--red);opacity:.9}
.acc-details select.need{border:1.5px dashed color-mix(in srgb,var(--red) 55%,var(--line));background:color-mix(in srgb,var(--red-soft) 70%,var(--surface))}
.acc-btns{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.acc-cap{display:flex;align-items:flex-start;gap:8px;margin:0 0 6px;padding:10px 12px;border-radius:12px;background:var(--blue-soft);color:var(--fg);font-size:.9rem;line-height:1.45}
.acc-cap svg{flex:none;margin-top:3px;color:var(--blue)}
.acc-name small{color:var(--muted);font-size:.8rem;line-height:1.35}
.acc-main .link-btn{flex:none}
.acc-y{display:grid;min-width:0}
.acc-y input{width:100%;min-width:0;padding:9px 10px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);text-align:right;font-variant-numeric:tabular-nums}
.acc-y input:focus{outline:none;border-color:var(--blue)}
.acc-y.off i{display:block;padding:9px 10px;border-radius:10px;background:var(--bg);color:var(--muted);text-align:right;font-style:normal;font-size:.76rem}
.acc-y.ro b{display:block;padding:9px 10px;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.acc-y.ro em{font-style:normal;font-weight:500;font-size:.76rem;color:var(--muted)}
.acc-yl{display:none}
.acc-details{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:6px;padding:14px;border-radius:14px;background:var(--bg)}
.acc-details .wide{grid-column:span 2}
.acc-remove{grid-column:1 / -1}
.link-btn.danger{color:var(--amber)}
.acc-none{padding:14px 4px}
.acc-add{padding:12px 4px 4px;border-top:1px solid var(--line)}
.acc-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 16px;margin-top:16px}
@media (max-width:900px){
  .acc-headrow{display:none}
  .acc-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .acc-main{grid-column:1 / -1}
  .acc-yl{display:block;margin-bottom:3px;font-size:.72rem;font-weight:700;color:var(--muted)}
  .acc-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){.acc-details{grid-template-columns:minmax(0,1fr)}.acc-details .wide{grid-column:auto}}
.acc-sub{grid-column:1 / -1;margin-top:6px;font-family:var(--display);font-weight:700;font-size:.92rem}
.acc-sub:first-child{margin-top:0}
.acc-sub span{font-family:var(--body);font-weight:600;font-size:.78rem;color:var(--red)}
.acc-check{grid-column:1 / -1;display:flex;align-items:center;gap:8px;font-size:.9rem;cursor:pointer}
.acc-check input{width:18px;height:18px;accent-color:var(--blue)}
.acc-name .acc-miss{color:var(--red);font-weight:600}
.acc-name .acc-ok{color:var(--ok);font-weight:600}

/* your info: one column, each label beside its value */
.info-stack{display:grid;gap:22px}
.info-stack .kv li,.info-stack .qa li{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:4px 28px;align-items:baseline}
.info-stack .qa li{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.info-stack .kv b,.info-stack .qa b{text-align:left;max-width:none}
.acc-mini li{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:6px 28px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.acc-mini li:last-child{border-bottom:0}
.am-name{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.am-name svg{color:var(--muted)}
.am-name b{display:block;font-weight:600}
.am-name small{display:block;color:var(--muted);font-size:.82rem}
.am-st{display:flex;align-items:flex-start;gap:6px;font-weight:600;font-size:.9rem}
.am-st svg{flex:none;margin-top:2px}
.am-st.ok{color:var(--ok)}
.am-st.miss{color:var(--red)}
@media (max-width:560px){
  .info-stack .kv li,.info-stack .qa li,.acc-mini li{grid-template-columns:minmax(0,1fr)}
  .am-st{padding-left:32px}
}

/* FBAR balances: still open, or all in */
.fb-st{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;padding:14px 16px;border-radius:16px;margin-bottom:14px}
.fb-st b{display:block;font-family:var(--display);font-size:.98rem}
.fb-st small{display:block;margin-top:2px;color:var(--muted);font-size:.86rem;line-height:1.45}
.fb-st.open{background:var(--red-soft)}
.fb-st.open>svg,.fb-st.open b{color:var(--red)}
.fb-st.done{background:var(--ok-soft)}
.fb-st.done>svg,.fb-st.done b{color:var(--ok)}
.pg-head+.fb-st{margin:-4px 0 18px}
.acc-y.need input{border-color:color-mix(in srgb,var(--red) 55%,var(--line));background:color-mix(in srgb,var(--red-soft) 70%,var(--surface))}
.acc-y.ro em.miss{color:var(--red);font-weight:700}

/* "These are all my foreign accounts" */
.acc-confirm{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;margin-top:16px;padding:16px 18px;border-radius:16px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer}
.acc-confirm:has(input:checked){border-color:color-mix(in srgb,var(--ok) 45%,var(--line));background:var(--ok-soft)}
.acc-confirm input{width:20px;height:20px;margin-top:1px;accent-color:var(--blue)}
.acc-confirm b{display:block;font-family:var(--display);font-size:.98rem}
.acc-confirm small{display:block;margin-top:2px;color:var(--muted);font-size:.86rem;line-height:1.45}

/* what decides whether each child is a dependent */
.kid{align-items:start}
.kid-ssn{display:grid;gap:8px;min-width:0}
.kid .kid-wide{grid-column:1 / -1}
.kid-older{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.kid-older-h{width:100%;font-weight:700;font-size:.82rem;color:var(--muted)}
.kid [data-kid-remove]{grid-column:1 / -1}
.kid-qs{margin-top:4px;padding-top:14px;border-top:1px solid var(--line)}
.field select.bad{border-color:var(--red)}
.kv-line{display:block}
.kv-line+.kv-line{margin-top:8px}

/* overview: the questionnaire, right under the tracker */
.qn-card{margin-top:22px}
.qn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.qn{all:unset;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto;gap:10px;min-width:0;padding:16px;border-radius:18px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.qn:hover{border-color:var(--blue);transform:translateY(-1px);box-shadow:0 10px 20px -14px rgba(16,24,40,.5)}
.qn:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.qn-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue)}
.qn-done .qn-ic{background:var(--ok-soft);color:var(--ok)}
.qn-open{border-color:color-mix(in srgb,var(--amber) 45%,var(--line))}
.qn-open .qn-ic{background:var(--amber-soft);color:var(--amber)}
.qn-t{min-width:0}
.qn-t b{display:block;font-family:var(--display);font-size:1rem}
.qn-t small{display:block;margin-top:3px;font-size:.84rem;line-height:1.4;color:var(--muted)}
.qn-open .qn-t small{color:var(--amber);font-weight:600}
/* sent with something missing: red, so it's easy to find */
.qn-miss{border-color:color-mix(in srgb,var(--red) 45%,var(--line))}
.qn-miss .qn-ic{background:var(--red-soft);color:var(--red)}
.qn-miss .qn-t small{color:var(--red)}
.qn-go{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.88rem;color:var(--blue)}
@media (max-width:640px){
  .qn-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .qn{grid-template-columns:38px minmax(0,1fr) auto;grid-template-rows:none;align-items:center;gap:12px;padding:12px 14px}
}
.info-sub{margin:22px 0 4px;font-family:var(--display);font-size:1rem}
.info-stack .info-sub+.qa li{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.info-sub+.qa span{color:var(--muted)}
.info-sub+.qa b{font-weight:600}
/* a follow-up answer sits indented under its question */
.qa .qa-f span{padding-left:16px;color:var(--muted)}
/* a comment she wrote, or a list like her employers, reads under its label */
.qa li.qa-t{grid-template-columns:minmax(0,1fr);gap:4px}
.qa li.qa-t b{text-align:left;max-width:none;padding-left:16px}
.field input.short{max-width:180px}
/* a written-answer question looks like the other numbered questions */
form[data-answer] > .field > label{font-family:var(--display);font-size:1rem}
.kv b.flag{color:var(--amber)}

/* edits save as she goes */
.as-foot{display:grid;gap:12px}
.as-st{display:flex;align-items:center;gap:8px;font-size:.9rem;font-weight:600;color:var(--muted)}
.as-st svg{flex:none}
.as-st.ok{color:var(--ok)}
.as-st.open{color:var(--red)}
.as-st .link-btn{padding:2px 4px;font-size:inherit}
.as-notes{display:grid;gap:10px}
.as-notes:empty{display:none}
/* "Show me" outlines the missing answer for a moment */
.need-it{outline:2px solid var(--red);outline-offset:6px;border-radius:10px}

/* the long questionnaires open wide, with their sections down the side */
.drawer.wide{width:min(1040px,100%)}
/* A lead's window: the arrows to the previous and the next lead. Beside the window on a screen wide enough for them
   (the window is 90% of the screen, leaving at least 90px a side: each arrow is 64px with 14px between it and the
   window and a little to spare): large plain arrows with no circle, white on the dimmed page (Lewis's pick of five
   styles, November 18, 2026). In the window's head, by the close button, on a narrower screen. And where the lead is
   in the list it was opened from. */
.ld-arrow{position:fixed;top:50%;z-index:62;display:none;place-items:center;width:64px;height:110px;margin-top:-55px;padding:0;border:0;border-radius:14px;background:none;color:#fff}
.ld-arrow svg{stroke-width:2.6;filter:drop-shadow(0 2px 6px rgba(10,15,23,.55))}
.ld-arrow:hover:not(:disabled){background:rgba(255,255,255,.18)}
.ld-arrow:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ld-arrow:disabled{opacity:.3;cursor:default}
.ld-headnav .icon-btn:disabled{opacity:.4;color:var(--muted);cursor:default}
.ld-arrow-prev{left:calc(max(5vw,90px) - 78px)}
.ld-arrow-next{right:calc(max(5vw,90px) - 78px)}
.ld-arrow-prev svg,.ld-headnav .icon-btn:first-child svg{transform:scaleX(-1)}
.ld-headbtns{display:inline-flex;align-items:center;gap:8px;flex:none}
.ld-headnav{display:inline-flex;gap:8px}
.ld-navpos{margin-left:10px;color:var(--muted);font-size:.82rem;font-weight:600}
@media (min-width:1208px){
  body.drawer-open.lead-nav .ld-arrow{display:grid}
  .ld-headnav{display:none}
}
/* Delete this lead: a quiet link at the foot of the window's side, and the question it opens. */
.ld-del{margin:0;padding-top:4px;border-top:1px solid var(--line)}
.ld-del-btn{color:var(--red);padding-left:0}
.ld-del-btn:hover{background:var(--red-soft)}
.ld-delform{border-color:color-mix(in srgb,var(--red) 45%,var(--line))}
/* Spam and Not spam, in a lead's head by the close button (leadSpamBtn): a small, quiet button, grey with a thin line,
   red only when pointed at (Lewis, November 27, 2026, of the 44-pixel red pill it was: "I want the spam button not to be
   so big on top like that"). */
.ld-spam-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line);font-family:var(--display);font-weight:600;font-size:.76rem;white-space:nowrap}
.ld-spam-btn svg{width:13px;height:13px}
.ld-spam-btn:hover:not(:disabled){background:var(--red-soft);color:var(--red)}
.ld-spam-btn.on:hover:not(:disabled){background:var(--bg);color:var(--blue)}
.ld-spam-btn:disabled{opacity:.5;cursor:default}
/* (on a phone, a small round button with its sign only, so the name keeps its room) */
@media (max-width:640px){.ld-spam-btn{width:32px;height:32px;padding:0;justify-content:center}.ld-spam-t{display:none}}
.ld-delform>b{font-family:var(--display);font-size:1rem}
.ld-del-who{margin:0;font-weight:700;overflow-wrap:anywhere}
.ld-del-who small{display:block;font-weight:500;color:var(--muted)}
.ld-del-what{margin:0;font-size:.9rem}
.ld-delform input{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:var(--bg);color:var(--fg)}
.ld-delform .ld-draft-btns{flex-wrap:wrap}
.btn-danger{background:var(--red);color:#fff}
.btn-danger:hover:not(:disabled){filter:brightness(.92)}
.btn-danger:disabled{opacity:.45;cursor:not-allowed}
/* An invitation made from a lead: the whole screen, their emails in the left half and the invitation in the right,
   each scrolling on its own; one above the other on a narrow screen. */
.drawer.split{left:0;width:100%}
.dr-pair{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.dr-side{min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:22px 24px 28px;border-right:1px solid var(--line);background:var(--bg);outline-offset:-3px}
.dr-side .ld-mail{max-height:none;overflow:visible}
.dr-main{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface)}
.drawer.split .dr-body>*{width:100%;max-width:680px}
@media (max-width:899px){
  .dr-pair{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,38vh) minmax(0,1fr)}
  .dr-side{padding:14px 16px 18px;border-right:0;border-bottom:1px solid var(--line)}
}
.dr-cols{flex:1;min-height:0;display:flex}
.dr-cols>.dr-body{flex:1;min-width:0;padding-left:40px;padding-right:40px}
.drawer.wide .dr-body>*{width:100%;max-width:680px}
.q-nav{flex:none;width:248px;overflow-y:auto;padding:20px 16px 24px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:24px}
.q-nav ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.q-nav button{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:10px;background:none;color:var(--fg);font:inherit;font-size:.93rem;font-weight:600;text-align:left;cursor:pointer}
.q-nav button:hover{background:var(--bg)}
.q-nav button[aria-current]{background:var(--tint-blue);color:var(--blue)}
.q-nav-ic{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center}
.q-nav button.done .q-nav-ic{border-color:var(--ok-soft);background:var(--ok-soft);color:var(--ok)}
/* a section with something missing, once she's sent the form */
.q-nav button.miss{color:var(--red)}
.q-nav button.miss .q-nav-ic{border-color:var(--red);background:var(--red-soft);color:var(--red)}
.q-nav-foot{margin-top:auto;display:grid;gap:10px}
.q-nav-foot .as-st{align-items:flex-start;font-size:.86rem}
.q-nav-foot .as-st svg{margin-top:2px}
.drawer.wide .q-group{scroll-margin-top:12px}
.q-group[tabindex]:focus{outline:none}
@media (max-width:900px){
  .q-nav{display:none}
  .dr-cols>.dr-body{padding-left:24px;padding-right:24px}
  .drawer.wide .dr-body>*{margin-inline:auto}
}
/* on a computer they open in the middle of the screen, as a dialog, rather than from the side */
@media (min-width:901px){
  .drawer.center{top:4vh;bottom:4vh;left:50%;right:auto;width:min(1040px,calc(100% - 64px));border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 40px 90px -40px rgba(10,15,23,.6);
    opacity:0;transform:translate(-50%,16px) scale(.985);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s linear .3s}
  .drawer-open .drawer.center{opacity:1;transform:translate(-50%,0);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s}
  /* what follows Send stays in the middle, sized to fit */
  .drawer.center:not(.wide){top:50%;bottom:auto;width:min(540px,calc(100% - 64px));max-height:92vh;transform:translate(-50%,-50%) translateY(16px) scale(.985)}
  .drawer-open .drawer.center:not(.wide){transform:translate(-50%,-50%)}
  .drawer.center:not(.wide) .dr-body{min-height:0}
  /* A lead's window (Lewis, November 24, 2026: "opens up much more to the right and to the left, so you could see much
     more without having to scroll. I would say kind of like 90% total real estate"): 90% of the screen's width. */
  .drawer.center.lead{width:min(90vw,calc(100% - 64px))}
}
/* (where the arrows show beside it, at least 90px is left on each side for them) */
@media (min-width:1208px){
  .drawer.center.lead{width:min(90vw,calc(100% - 180px))}
}
/* A document opens in the same large window (full screen on a phone): what it is and Download along the top, then
   the document itself filling the rest. */
.drawer.viewer .dr-body{display:flex;flex-direction:column;gap:14px;overflow:hidden;padding-bottom:20px}
.drawer.viewer .dr-body>*{flex:none;width:100%;max-width:none;margin-inline:0}
.drawer.viewer .dr-body>.back{width:auto;align-self:flex-start}
.view-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px}
.view-bar .dr-why{flex:1 1 300px}
.drawer.viewer .dr-body>.paper{flex:1 1 auto;min-height:0}
.drawer.viewer .paper-view{position:relative}
.drawer.viewer .paper-view object,.drawer.viewer .paper-view img,.drawer.viewer .paper-view iframe{position:absolute;inset:0;width:100%;height:100%}
.paper-view iframe{border:0;background:#fff}
/* a message in place of a file that can't be shown, in sentence case */
.paper small.view-msg{text-transform:none;letter-spacing:normal;font-size:.92rem;font-weight:500;padding-right:0;max-width:46ch;line-height:1.5}
.drawer.viewer .paper-view img{object-fit:contain;background:#EEF1F6}
/* a spreadsheet: a tab for each sheet along the top, then the cells, scrolling both ways under sticky headings */
.paper-sheet{background:var(--surface);color:var(--fg);text-align:left}
.sheet-view{position:absolute;inset:0;display:flex;flex-direction:column}
.sheet-tabs{flex:none;display:flex;gap:4px;overflow-x:auto;padding:8px 8px 0;border-bottom:1px solid var(--line);background:var(--bg)}
.sheet-tabs button{flex:none;padding:7px 14px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:none;color:var(--muted);font:inherit;font-size:.86rem;font-weight:600;white-space:nowrap;cursor:pointer}
.sheet-tabs button[aria-pressed="true"]{background:var(--surface);border-color:var(--line);color:var(--fg);margin-bottom:-1px}
.sheet-wrap{flex:1;min-height:0;overflow:auto}
.sheet-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.sheet{border-collapse:separate;border-spacing:0;font-size:.84rem;font-variant-numeric:tabular-nums}
.sheet th,.sheet td{padding:5px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis;text-align:left}
.sheet td.n{text-align:right}
.sheet thead th{position:sticky;top:0;z-index:2;background:var(--bg);color:var(--muted);font-weight:600;text-align:center}
.sheet tbody th{position:sticky;left:0;z-index:1;background:var(--bg);color:var(--muted);font-weight:600;text-align:right}
.sheet thead th:first-child{left:0;z-index:3}
.sheet-more{flex:none;padding:8px 12px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted)}

/* Schedule C and E: a row for each line, a column for each year */
.field select.short{max-width:180px}
.sch-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.sch{width:100%;border-collapse:collapse;font-size:.92rem}
.sch th,.sch td{padding:6px;border-bottom:1px solid var(--line);vertical-align:middle}
.sch thead th{font-size:.78rem;font-weight:700;color:var(--muted);text-align:right;white-space:nowrap}
.sch thead th:first-child{text-align:left}
/* Schedule C: the currency is picked right where the amounts go */
.sch-curpick{display:inline-flex;align-items:center;gap:8px;color:var(--fg)}
.sch-curpick select{padding:6px 10px;border-radius:10px;border:1.5px solid var(--blue);background:var(--surface);color:var(--fg);font:inherit;font-weight:700;cursor:pointer}
.sch tbody th,.sch tfoot th{text-align:left;font-weight:600;min-width:190px}
.sch tbody th small{display:block;margin-top:2px;font-weight:400;font-size:.8rem;color:var(--muted)}
.sch td{width:118px}
.sch td input,.sch-oth input{width:100%;min-width:92px;padding:9px 10px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;text-align:right;font-variant-numeric:tabular-nums}
.sch td input:focus,.sch-oth input:focus{outline:none;border-color:var(--blue)}
.sch td input.bad{border-color:var(--red)}
.sch-oth{display:flex;align-items:center;gap:6px}
.sch-oth input{text-align:left;min-width:120px}
.sch-oth .link-btn{flex:none;padding:6px}
.sch-price{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.sch-price .field:first-child{flex:1;min-width:150px;max-width:260px}
.sch-read td{text-align:right;font-variant-numeric:tabular-nums}
.sch-read tfoot th,.sch-read tfoot td{font-weight:700;border-bottom:0}
.sch-none:not([hidden])+.sch-wrap{display:none}
/* on narrow screens the years scroll sideways, and the line names stay put */
.sch tbody th,.sch tfoot th,.sch thead th:first-child{position:sticky;left:0;z-index:1;background:var(--surface)}
@media (max-width:640px){
  .sch tbody th,.sch tfoot th{min-width:132px;font-size:.86rem}
  .sch td input{min-width:84px}
}

/* several rental properties or businesses: a bar along the top goes to each one, scrolling sideways when there are many */
.many-bar{display:flex;gap:8px;overflow-x:auto;padding:10px 24px;border-bottom:1px solid var(--line);scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.many-i{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.many-i:hover{border-color:var(--blue)}
.many-i.on{border-color:var(--blue);background:var(--tint-blue)}
.many-i b{display:block;font-size:.88rem}
.many-i small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;color:var(--muted)}
.many-i .q-nav-ic.ok{border-color:var(--ok-soft);background:var(--ok-soft);color:var(--ok)}
/* the preparer's call on Form 5471 */
.xs-act{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.xs-st{display:block;margin-top:4px;color:var(--ok);font-weight:600}

/* filing jointly: a fourth tile, for the spouse's income */
.qn-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.qn-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.qn-grid.four{grid-template-columns:minmax(0,1fr)}}

/* the company she owns part of: a share as a percentage, and a row for each other owner */
.pct-in{display:flex;align-items:center;gap:8px}
[data-follow] .row2{align-items:end}
.pct-in input{max-width:96px}
.li-rows{display:grid;gap:10px}
.li-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:end}
.li-row [data-li-remove]{margin-bottom:6px}
@media (max-width:640px){.li-row{grid-template-columns:auto minmax(0,1fr)}.li-row .field:first-child{grid-column:1/-1}.li-row [data-li-remove]{justify-self:start}}
/* a gift: who it was from, when, what it was and what it was worth */
.li-block{display:grid;gap:12px;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface)}
.li-block>[data-li-remove]{justify-self:start}
/* a child's full-time student years, when it counts */
.kid-stu.bad legend{color:var(--red)}
/* Schedule C: another business, or one fewer */
.biz-more{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding-top:14px;border-top:1px solid var(--line)}
.biz-more p{flex-basis:100%;margin:0}
/* Work outside the package on the invite, engagement and fee forms: a line each (what, and its fee), with "Add a
   line" and the engagement letter's preview under them. */
.field-label{font-weight:700;font-size:.92rem}
.field-label small{font-weight:500;color:var(--muted)}
.extras-list{display:grid;gap:8px}
.extras-list:empty{display:none}
.row-extra{display:grid;grid-template-columns:minmax(0,1fr) 88px auto;gap:8px;align-items:center}
.row-extra input{min-width:0}
.row-extra .link-btn{padding:4px 10px;font-size:1.15rem;line-height:1;color:var(--muted)}
/* State returns: − and + beside a small box, and what they come to */
.states-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.states-row input{width:64px;text-align:center}
.btn-step{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);font-size:1.25rem;font-weight:700;line-height:1;cursor:pointer}
.btn-step:hover{border-color:var(--blue);color:var(--blue)}
.btn-step:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.states-sum{font-size:.92rem;color:var(--muted)}
.states-sum b{color:var(--fg)}
.letter-pv{margin:0;display:flex;gap:4px 14px;flex-wrap:wrap}
.letter-pv .link-btn{padding-left:0;padding-right:0}
.letter-box{margin-top:6px}
/* Staff's window for a client's letter is a document window, whose page doesn't scroll: the letter scrolls in its
   paper, so the whole of it can be read and typed in, with Save the letter staying in sight above it. */
.drawer.viewer .dr-body[data-letter-for]>.paper{overflow-y:auto;overscroll-behavior:contain}
/* The engagement letter's words (letter-body), spaced as its paragraphs always were. Where staff may change a client's
   letter, they type in it (Lewis, November 20, 2026): then it's outlined, and the words that fill in by themselves
   (their first name, fee and years) are shaded. Italic in it is italic, not the sketch's grey line (.paper i). */
.letter-body{display:grid;gap:10px}
.paper .letter-body i:nth-of-type(n){display:inline;width:auto;height:auto;border-radius:0;background:none}
.letter-body[contenteditable="true"]{margin:-8px -10px;padding:8px 10px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(11,79,240,.3);outline:none;cursor:text;caret-color:#0B4FF0}
.letter-body[contenteditable="true"]:focus{box-shadow:inset 0 0 0 2px rgba(11,79,240,.65)}
/* Words the browser moves as it joins a heading and a paragraph come in a span with the type they had: in a letter
   being typed in, everything is in the letter's own type, as it's kept (letterTrimSel in portal.js). */
.letter-body[contenteditable="true"] [style]:not([data-fill]),.letter-body[contenteditable="true"] font{font:inherit!important;color:inherit!important;background:none!important;letter-spacing:inherit!important;text-transform:inherit!important}
.letter-body [data-fill][contenteditable="false"]{padding:0 3px;border-radius:4px;background:rgba(11,79,240,.11);cursor:default;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.letter-hint{margin:0}
.letter-hint .link-btn{padding:0 0 0 4px;font-size:inherit}
.letter-note{margin:0;color:#9A5B00;font-size:.9rem;font-weight:600}
.letter-pv[hidden]{display:none}
/* A document's box in a to-do's window opens the document wherever it's clicked, not only on its link (Lewis's
   wish of November 6, 2026). */
.doc-prev[data-preview]{cursor:pointer;transition:box-shadow .15s}
.doc-prev[data-preview]:hover{box-shadow:inset 0 0 0 1.5px rgba(11,79,240,.5)}
/* A client's engagement letter, to read and sign: in the middle of the screen like a questionnaire, a little
   narrower, with the letter in full and the signature under it. The letter's own "Not signed yet" line is left out
   (the signature field follows), and min-height is auto, not the 0 of .paper-text, so the window scrolls past the
   whole letter and nothing runs over the signature field. */
.drawer.letter .dr-body>*{margin-inline:auto}
.sign-letter{min-height:auto;padding:30px 32px}
.sign-letter .paper-sig{display:none}
@media (min-width:901px){
  .drawer.center.letter{width:min(820px,calc(100% - 64px))}
}
@media (max-width:560px){
  .sign-letter{padding:22px 18px}
}
/* Leads, in the staff workspace: every request from the website's form and the ones staff add, a row each (who,
   what they need, when, its status, who's handling it), and a lead's own window (what they sent, staff's notes,
   its history). */
.st-leads{position:relative}
.st-leads .pt-count{margin-left:2px}
.ld-tabs{padding:0 14px 6px;flex-wrap:wrap}
/* The rows: who, what they need (with its value, notes and letters small under it), when it came in, its status, the
   Emails and Portal columns (Lewis's wishes of November 7, 2026) and who's handling it. */
.ld-row{display:grid;grid-template-columns:minmax(0,1.25fr) 76px 112px minmax(0,1.2fr) minmax(0,.85fr) minmax(0,.9fr) minmax(0,1.05fr);gap:12px;align-items:center}
/* For someone who isn't to see a lead's Google part, the list has no Found us through column: six columns, its room
   given to what they need (on a wide screen; a narrow one stacks the rows either way). */
@media (min-width:901px){.ld-row.ld-nogp{grid-template-columns:minmax(0,1.25fr) 76px 112px minmax(0,1.2fr) minmax(0,.85fr) minmax(0,1.95fr)}}
/* The statuses' colours (Lewis, November 8, 2026: green is good, red is bad), on the chips and on the Status box. */
.chip-lost{background:var(--red-soft);color:var(--red)}
select[data-lead-status][data-st="new"]{background:var(--blue-soft);color:var(--blue);font-weight:700}
select[data-lead-status][data-st="contacted"]{background:var(--amber-soft);color:var(--amber);font-weight:700}
select[data-lead-status][data-st="quoted"]{background:var(--tint-cyan);color:var(--teal);font-weight:700}
select[data-lead-status][data-st="signed"]{background:var(--ok-soft);color:var(--ok);font-weight:700}
select[data-lead-status][data-st="lost"]{background:var(--red-soft);color:var(--red);font-weight:700}
.ld-list>li{border-top:1px solid var(--line)}
.ld-list>li.empty{padding:18px 14px}
.ld-list button.ld-row{width:100%;padding:12px 14px;border:0;background:none;color:var(--fg);font:inherit;font-size:.92rem;text-align:left;cursor:pointer}
.ld-list button.ld-row:hover{background:var(--bg)}
.ld-name,.ld-need,.ld-emails{display:grid;gap:2px;min-width:0}
.ld-name b,.ld-name small,.ld-need>span,.ld-owner,.ld-via{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ld-name small,.ld-when,.ld-more,.ld-emails small{color:var(--muted);font-size:.84rem}
.ld-emails .ld-mailst{margin:0;font-size:.9rem}
.ld-emails small{font-size:.8rem}
.ld-test{align-items:center}
.ld-test input{margin-top:0}
/* The summary beside the leads (Lewis, November 13, 2026): a period's leads, each status as a number and a share of
   them, like the summary beside the clients. The page goes wider so the list keeps its columns. */
.pt-main.st-main:has(.ld-wrap){max-width:1700px}
.st-wrap.ld-wrap{grid-template-columns:262px minmax(0,1fr)}
/* boxes of their own (Lewis, November 13, 2026: "three separate white things"): what to do now, then where the leads
   of a period stand (the last 7 days and the last 30 until November 26, 2026), by day and, since November 24, all
   time. Together they stay in view beside the list where the screen is high enough to show them all; on a lower
   screen they scroll with the page instead (ld-sum-tall, below), so the last box is never cut off. */
.ld-sum{display:grid;gap:14px;align-content:start;position:sticky;top:84px}
.ld-sum .st-sum{position:static}
.ld-sum ul{gap:0}
/* Which company's leads (Lewis, November 24, 2026: "some type of button that you could select only ETAs, only CPAs, or
   all, and have the same reports on the left side"): All, ETA, CPAs on top of the boxes, as wide as they are. */
.ld-sum .ld-cos{display:flex;margin:0}
.ld-cos button{flex:1;justify-content:center;padding:8px 10px}
.ld-sum-i{gap:8px;padding:4px 10px;font-size:.9rem;line-height:1.25}
.ld-sum-l{flex:1;min-width:0;display:flex;align-items:center;gap:8px}
.ld-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--muted)}
.ld-dot.new{background:var(--blue)}
.ld-dot.contacted{background:var(--amber)}
.ld-dot.quoted{background:var(--teal)}
.ld-dot.signed{background:var(--ok)}
.ld-dot.lost{background:var(--red)}
.ld-pct{flex:none;width:36px;text-align:right;font-size:.82rem;font-weight:600;color:var(--muted)}
.st-sum-i[aria-pressed="true"] .ld-pct{color:inherit}
/* under a category in To do now (No reply received, Active dialog): the reminder or reach-out that's due, a smaller line
   of its own; the ones with someone in them stand out */
.ld-sum-sub .ld-sum-i{padding:1px 10px 1px 28px;font-size:.84rem;font-weight:500;color:var(--muted)}
.ld-sum-sub .ld-sum-i b{font-size:.9rem;color:var(--fg)}
.ld-sum-sub .ld-sum-i[aria-pressed="true"],.ld-sum-sub .ld-sum-i[aria-pressed="true"] b{color:var(--blue)}
.ld-sum-do .ld-sum-sub .ld-sum-i{padding-top:3px;padding-bottom:3px}
.ld-sum-sub.has .ld-sum-i:not([aria-pressed="true"]){color:var(--fg);font-weight:600}
/* a line of To do now, Google approval or By day with nothing in it: no number, not even 0, and lighter (Lewis,
   November 24, 2026: "Don't even put zero if there's nothing there. If it's nothing there, then it's lighter, and
   it's obvious that it's zero") */
.ld-sum-zero .ld-sum-i:not([aria-pressed="true"]){color:var(--muted);font-weight:500}
/* To do now's categories (Lewis, November 24, 2026), headings in bold and a little larger, with no number ("make that
   the headings are bold, or perhaps slightly larger letters"), each a little apart from the lines before it; Following
   up later set off under them all, since nothing is due for it yet */
.ld-sum-cat .ld-sum-i{font-size:1rem;font-weight:800}
.ld-sum-do .ld-sum-cat,.ld-sum-do .ld-sum-sub + :not(.ld-sum-sub){margin-top:6px}
.ld-sum-apart{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.ld-sum-note.ld-sum-foot{margin:0 12px}
/* Google approval (Lewis, November 24, 2026) is a box under To do now for those who see a lead's Google part: the
   website's requests whose Google OK isn't Yes yet. Where they came from (Lewis, November 25, 2026: "where the leads
   came from ... last 7 days or last 14 days") is one under By day, with its periods under its heading as a row of
   buttons as wide as the box, 7D, 30D, 90D, 365D and YTD ("Make more buttons", that day), sharing the row equally;
   Where they stand has the same row, 7D, 30D, 60D and 90D (November 26, 2026), and By day 7D and 14D ("You could click
   7 days, 14 days", that day). The boxes' height changes with the boxes there are, By day's period and the places the
   leads came from, so the page measures whether they fit under the top bar (ldSumFit in portal.js): taller than the
   window, they scroll with the page (ld-sum-tall). */
.ld-box-head{display:grid;gap:8px;margin:0 0 8px}
.ld-box-head h3{margin:2px 10px 0}
.ld-days{display:flex;margin:0 4px;padding:3px;gap:2px;background:var(--bg);box-shadow:none}
.ld-days button{flex:1;min-width:0;justify-content:center;padding:4px 0;font-size:.78rem;white-space:nowrap}
.ld-sum.ld-sum-tall{position:static}
/* Whose leads each box counts (Lewis, November 26, 2026: "in each report, it should just be clear which one was
   selected on top"): while the company buttons are there, the one picked (ETA, CPAs or All) ends every box's heading,
   in the company's colours as in the list, and All outlined. The heading stays on one line, its mark's right edge on
   the period buttons' (4px in): the longest, Where they came from, then has just room for CPAs beside it. */
.ld-sum-co .st-sum h3{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;margin-right:4px;white-space:nowrap}
.ld-co-mark{flex:none;margin:0;padding:1px 6px;text-transform:none;vertical-align:0}
.ld-co-all{background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.ld-sum-note{margin:14px 10px 2px;font-size:.78rem;line-height:1.45;color:var(--muted)}
.ld-span{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;font-size:.86rem;color:var(--muted)}
/* The to-do list for whoever works the leads (Lewis, November 13, 2026): who, what to do, how long it has waited, and
   a way in. "To do now" tops the summary; its count is amber while anything waits. */
.ld-row.ld-do{grid-template-columns:minmax(0,1.15fr) minmax(0,1.6fr) 132px minmax(0,.75fr) minmax(0,1fr) 84px}
.ld-step{display:grid;gap:5px;min-width:0;justify-items:start}
.ld-step small{color:var(--muted);font-size:.8rem}
.ld-wait{font-size:.86rem;font-weight:700;color:var(--amber)}
.ld-wait.late{color:var(--red)}
.ld-go{justify-self:end;display:inline-flex;align-items:center;gap:4px;font-size:.84rem;font-weight:700;color:var(--blue);white-space:nowrap}
/* not wide enough for both: the summary goes above the list, its boxes side by side */
@media (max-width:1500px){
  .st-wrap.ld-wrap{grid-template-columns:minmax(0,1fr)}
  .ld-sum{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}
  .ld-sum ul{grid-template-columns:minmax(0,1fr);gap:0}
  .ld-sum-i{padding:3px 10px}
  .ld-sum-foot{grid-column:1 / -1}
  .ld-sum.ld-sum-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ld-sum.ld-sum-5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ld-sum-gok{align-self:start}
  .ld-sum .ld-cos{grid-column:1 / -1;justify-self:start;width:262px}
  /* (with Where they came from: three in a row, five or six boxes in two rows) */
  .ld-sum.ld-sum-4.ld-sum-src,.ld-sum.ld-sum-5.ld-sum-src{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* five boxes in a row need about 1440px to keep each line on one line: under it, three and two */
@media (max-width:1440px){
  .ld-sum.ld-sum-5{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1180px){
  .ld-sum.ld-sum-4,.ld-sum.ld-sum-5,.ld-sum.ld-sum-4.ld-sum-src,.ld-sum.ld-sum-5.ld-sum-src{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .ld-row.ld-do{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .ld-do .ld-step,.ld-do .ld-owner,.ld-do .ld-need{grid-column:1 / -1}
  .ld-do .ld-wait{grid-row:1;grid-column:2;text-align:right}
  .ld-do .ld-go{grid-column:1 / -1;justify-self:start}
}
@media (max-width:760px){
  .ld-sum,.ld-sum.ld-sum-4,.ld-sum.ld-sum-5,.ld-sum.ld-sum-4.ld-sum-src,.ld-sum.ld-sum-5.ld-sum-src{grid-template-columns:minmax(0,1fr)}
  .ld-sum .ld-cos{width:auto;justify-self:stretch}
}
.ld-test small{display:block;margin-top:2px;color:var(--muted);font-size:.8rem;font-weight:500}
.chip-test{background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line)}
.chip-spam{background:var(--surface);color:var(--red);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--red) 45%,transparent)}
/* Which brand a client is with (ETA, DTR), right after their name in the workspace's lists and on their page. */
.brand-tag{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:999px;font-family:var(--body);font-size:.68rem;font-weight:700;line-height:1.5;letter-spacing:.04em;vertical-align:.18em;white-space:nowrap}
.brand-eta{background:var(--blue-soft);color:var(--blue)}
.brand-dtr{background:var(--teal-soft);color:var(--teal)}
.brand-cfe{background:color-mix(in srgb,var(--navy) 9%,var(--surface));color:var(--navy)}   /* CPAs for Expats: a company of leads, and of clients from Podio, with no client portal */
h1 .brand-tag{margin-left:10px;font-size:.8rem;vertical-align:.3em}
/* CPAs for Expats' clients brought in from Podio (Lewis, November 27, 2026): Not invited after the company's mark; on a
   client's page their returns, a card a tax year, with the picked one's eight steps (a line of ticks, the step it's on
   in orange, what's known under each), its facts and the step to move it to; and the Bring in from Podio window. */
.tag-ni{background:var(--amber-soft);color:var(--amber)}
.st-row .st-who small .tag-ni{margin:0 6px 0 0;vertical-align:.08em}
.yr-band{padding:16px 20px 18px}
.yr-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;margin-bottom:12px}
.yr-head h2{display:flex;align-items:center;gap:8px;font-size:1.05rem}
.yr-head .muted{font-size:.86rem}
.yr-cards{display:flex;flex-wrap:wrap;gap:10px}
.yr-card{display:grid;align-content:start;gap:4px;min-width:176px;max-width:300px;padding:10px 14px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.yr-card:hover{border-color:color-mix(in srgb,var(--blue) 55%,var(--line))}
.yr-card>b{font:700 1.05rem var(--display)}
.yr-card small{color:var(--muted);font-size:.76rem;line-height:1.35}
.yr-card[aria-pressed="true"]{border-color:var(--blue);background:var(--tint-blue)}
.yr-stg{display:flex;align-items:center;gap:6px;font-size:.84rem;font-weight:600}
.yr-track{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));margin:22px 0 0;padding:0;list-style:none}
.yr-track li{position:relative;display:grid;align-content:start;gap:3px;padding:32px 12px 0 0;font-size:.84rem}
.yr-track li::before{content:'';position:absolute;top:9px;left:0;right:0;height:3px;background:var(--line)}
.yr-track li.done::before{background:var(--ok)}
.yr-track li:last-child::before{display:none}
.yr-tk{position:absolute;top:0;left:0;z-index:1;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2.5px var(--line);color:#fff}
.yr-track li.done .yr-tk{background:var(--ok);box-shadow:none}
.yr-track li.now .yr-tk{background:#D9480F;box-shadow:0 0 0 5px color-mix(in srgb,#D9480F 22%,transparent)}
.yr-track b{font-size:.88rem}
.yr-track li:not(.done):not(.now) b{color:var(--muted);font-weight:600}
.yr-track small{color:var(--muted);font-size:.77rem;line-height:1.35;overflow-wrap:anywhere}
.yr-track small.warn{color:var(--amber);font-weight:700}
.yr-facts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin-top:18px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}
.yr-facts b{color:var(--fg)}
.yr-facts .link-btn{display:inline-flex;align-items:center;gap:5px;padding:2px 4px}
.yr-moves{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 30px;margin:14px 0 8px}
.yr-move{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:.9rem}
.yr-move label{font-weight:600}
.yr-move select{padding:8px 10px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font-weight:600;font-size:.9rem}
.yr-hist{display:grid;gap:3px;font-size:.84rem}
.yr-hist small{color:var(--muted)}
.yr-notes .rv-int{margin:0;padding:0;background:none;box-shadow:none}
.yr-notes .nt-list{max-height:none;overflow:visible}   /* whole, not in a box of its own (staff pages are read whole) */
/* A client who isn't invited yet has the page every client has (Lewis, December 1, 2026: "I wanted to have the same
   view"): their returns are its Returns part, with a line over the steps saying where the picked one stands; the parts
   of Client Information that wait for the invitation are lighter in its list; and where the Dialogue with the client
   will be, its heading is grey, with the team's notes under it. */
.yr-now{margin:16px 0 0;font-size:.95rem}
.cd-list button.cd-later:not([aria-pressed="true"]){color:color-mix(in srgb,var(--muted) 60%,transparent)}
.st-ni .st-msgs-head{border-top-color:var(--line);background:var(--bg)}
.ni-card .card-head{flex-wrap:wrap;gap:8px 12px}
.ni-card>p{max-width:72ch;line-height:1.55}
@media (max-width:760px){
  .yr-track{grid-template-columns:minmax(0,1fr);margin-top:18px}
  .yr-track li{min-height:44px;padding:1px 0 14px 34px}
  .yr-track li::before{top:0;bottom:0;left:9px;right:auto;width:3px;height:auto}
  .yr-card{min-width:0;flex:1 1 140px}
}
.drawer.wide .pd-body>*{max-width:none}   /* (the list of returns takes the window's width) */
.pd-pick{align-items:start}
.drawer.wide .pd-body>.pd-pick,.drawer.wide .pd-body>.dr-why{max-width:760px}
.pd-sum{margin:6px 0 10px;font-size:.92rem}
.pd-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:12px}
.pd-run p,.pd-run,.pd-done p{display:flex;align-items:flex-start;gap:8px}
.pd-run,.pd-done{margin-bottom:12px;padding:12px 14px;border-radius:14px;background:var(--tint-blue);font-size:.9rem}
.pd-done{display:grid;gap:8px;background:var(--ok-soft)}
.pd-done ul{display:grid;gap:4px;padding-left:24px;list-style:disc;font-size:.86rem}
.pd-run svg,.pd-done svg{flex:none;margin-top:2px}
.pd-wrap{overflow-x:auto;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line)}
.pd-table{width:100%;border-collapse:collapse;font-size:.88rem}
.pd-table th{position:sticky;top:0;z-index:1;padding:8px 10px;border-bottom:1px solid var(--line);background:var(--bg);color:var(--muted);font-size:.8rem;font-weight:700;text-align:left;white-space:nowrap}
.pd-table td{padding:8px 10px;border-top:1px solid var(--line);vertical-align:top}
.pd-table td small{display:block;margin-top:2px;color:var(--muted);font-size:.78rem}
.pd-table td:first-child,.pd-table th:first-child{width:34px}
.pd-table input[type="checkbox"]{width:16px;height:16px}
.pd-table tr.pd-no td{color:var(--muted)}
.pd-table tr.pd-no b{font-weight:600}
.pd-table td:nth-child(3),.pd-table td:nth-child(n+5){white-space:nowrap}
/* One client (Bring in from Podio, everyone's): an admin's two ways at the top, the name box with Find beside it, then
   what Podio found, each return with Bring in (or In the portal, or why it stays in Podio) at the end of its row. */
.pd-modes{margin-bottom:14px}
.pd-find{margin-bottom:14px}
.drawer.wide .pd-body>.pd-find{max-width:560px}
.pd-qrow{display:flex;gap:8px}
.pd-qrow input{flex:1}
.pd-qrow .btn{padding:10px 22px}
.pd-find-t td:first-child,.pd-find-t th:first-child{width:auto}
.pd-find-t td:nth-child(2){white-space:nowrap}
.pd-find-t td.pd-acts{text-align:right}
.pd-find-t td.pd-acts>*+*{margin-left:10px}
.pd-find-t td.pd-acts small{white-space:normal;text-align:right;max-width:220px;margin-left:auto}
.pd-find-t .pd-why{color:var(--red)}
.pd-find-t .btn-mini:disabled{opacity:.45;cursor:not-allowed}
.pd-find-t .pd-prep1{max-width:210px;padding:6px 8px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font-weight:600;font-size:.86rem}
.pd-in{display:inline-flex;align-items:center;gap:4px;color:var(--ok);font-weight:700}
.pd-more{margin-top:10px;font-size:.88rem}
/* A client's page: the admin's "A test, not a real client" tick among the account's lines, a size down from a lead's. */
.rc-test{gap:8px;font-size:inherit}
.rc-test input{width:16px;height:16px}
.ld-body{gap:16px}
.ld-who{display:grid;gap:2px;margin:0}
.ld-who>span{overflow-wrap:anywhere}
.ld-who>span>a:first-child{font-weight:700}
.ld-who small{color:var(--muted);font-size:.84rem;overflow-wrap:anywhere}
.ld-client{display:flex;align-items:center;gap:8px;margin:0;padding:12px 14px;border-radius:12px;background:var(--ok-soft);color:var(--ok);font-weight:600}
.ld-noinvite{margin:0;padding:10px 14px;border-radius:12px;background:var(--surface);border:1px dashed var(--line);font-size:.86rem}
.ld-client a{color:inherit;text-decoration:underline}
.ld-sec{display:grid;gap:10px}
.ld-sec h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:1rem}
.ld-dl{display:grid;gap:10px;margin:0}
.ld-dl dt{color:var(--muted);font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ld-dl dd{margin:2px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.ld-dl dd .ld-was{color:var(--muted);font-size:.84em}   /* beside a name staff corrected: what the person wrote */
/* The lead's window, large in the middle like a questionnaire: two columns on a wide screen, what they sent, their
   letters and their emails on the left, and the status, notes and history on the right; one column on a phone. */
.drawer.wide .ld-body>*{max-width:none}
.ld-body[data-wide]{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-content:start}
.ld-main,.ld-side,.ld-mailcol,.ld-info{display:grid;gap:18px;min-width:0;align-content:start}
.ld-mailcol:empty{display:none}
/* With the window at 90% of a wide screen, three columns: their emails, then what they sent (their letters, their
   visit and the figures under it), then the status, notes and history; so all three start at the top, with no
   scrolling down to what they sent. */
@media (min-width:1600px){
  .drawer.lead .ld-main{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px 32px;align-items:start}
}
.ld-side .ld-sec h3 .link-btn{margin-left:auto}
.ld-files{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ld-files li{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.ld-files small{color:var(--muted)}
/* The emails as a chat (Lewis, November 7, 2026): theirs on the left in amber, ours on the right in blue, the whole
   own words in each, the time under it, a divider at each new day. The panel scrolls; the newest is at the top. */
.ld-mail{list-style:none;margin:0;padding:12px;display:flex;flex-direction:column;gap:8px;max-height:min(60vh,640px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.ld-bubble{max-width:86%;padding:8px 12px;border-radius:14px;display:grid;gap:4px;min-width:0}
.ld-bubble.in{align-self:flex-start;background:var(--amber-soft);border-bottom-left-radius:4px}
.ld-bubble.out{align-self:flex-end;background:var(--tint-blue);border-bottom-right-radius:4px}
.ld-bubble pre{margin:0;padding:0;background:none;font:inherit;font-size:.92rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.ld-subj{color:var(--muted);font-size:.78rem;font-weight:700}
.ld-bubblemeta{color:var(--muted);font-size:.76rem;text-align:right;display:flex;justify-content:flex-end;align-items:center;gap:4px}
.ld-day{align-self:center;margin:4px 0;color:var(--muted);font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.ld-mailst{display:block;margin-top:4px;color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.ld-mailst.theirs{color:var(--amber);font-weight:600}
.ld-mailst.ours{color:var(--ok);font-weight:600}
.ld-mailst.wait{color:var(--blue);font-weight:600}
.ld-mailst.cold{color:var(--red);font-weight:600}
/* Follow up later: a lead set aside until a day, in the lists and in its window. */
.ld-mailst.later{color:var(--muted);font-weight:600}
.ld-later-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.ld-later-row input{width:5.5rem;padding:8px 10px;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:var(--bg);color:var(--fg)}
.ld-later-row input[type=date]{width:auto;min-width:9.5rem}
.ld-later-on{margin:0;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:.92rem}
.ld-later-on .link-btn{margin-left:6px}
.ld-sec h3 .ld-mailst{display:inline;margin:0;font-weight:500}
/* Draft a follow-up (Lewis, November 8, 2026): the words, a Save to Drafts button, and the saved line. */
.ld-draft{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.ld-draft label{font-weight:700;font-size:.9rem}
.ld-draft textarea{width:100%;min-height:150px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;font:inherit;font-size:.95rem;line-height:1.45;background:var(--bg);color:var(--fg)}
.ld-draft-btns{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
/* Send directly's question, in place of the buttons, and a reply that couldn't be sent */
.ld-send-ask{display:grid;gap:8px;padding:10px 12px;border:1.5px solid var(--blue);border-radius:12px;background:var(--tint-blue)}
.ld-send-ask p{margin:0;font-weight:600}
.ld-draft-done.ld-unsent{background:var(--amber-soft);color:var(--fg)}
.ld-draft-done{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 14px;border-radius:12px;background:var(--ok-soft);color:var(--ok);font-weight:600}
.ld-draft-done>svg{flex:none;margin-top:3px}
/* The source after review, under a lead's Their visit: what was found, then an admin's form to record it */
.ld-rev-btn{margin:0}
.ld-rev textarea{min-height:64px}
.ld-rev-row{display:grid;grid-template-columns:minmax(0,1fr) 7.5rem;gap:10px}
.ld-rev-pctin{display:flex;align-items:center;gap:6px}
.ld-rev-pctin input{flex:1}
.ld-rev-clk{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ld-rev-clk select{width:auto}
.ld-rev select:disabled{opacity:.75;cursor:not-allowed}
/* In the lead list's Found us through: the source after review, a small "reviewed" mark under it (hovering shows their browser's) */
.ld-via.ld-via-rev{display:grid;gap:3px;justify-items:start;min-width:0}
.ld-via-rev>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ld-rev-mark{padding:1px 7px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:.7rem;font-weight:700;letter-spacing:.02em}
@media (max-width:900px){.ld-via-rev>span{white-space:normal}}
.ld-figures{margin-top:8px;padding-top:16px;border-top:1px dashed var(--line)}
.ld-figures .ld-value{max-width:260px}
@media (min-width:900px){
  .ld-body[data-wide]{grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:20px 32px;align-items:start}
  .ld-body[data-wide]>.ld-who{grid-column:1/-1}
  /* The rows read like the email's table: the label on the left, the answer beside it. */
  .ld-main .ld-dl{gap:8px}
  .ld-main .ld-dl>div{display:grid;grid-template-columns:minmax(150px,190px) minmax(0,1fr);gap:2px 14px;align-items:baseline}
  .ld-main .ld-dl dd{margin:0}
}
@media (max-width:900px){
  .ld-bubble{max-width:94%}
  .st-headrow.ld-row{display:none}
  .ld-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .ld-need,.ld-emails,.ld-via{grid-column:1/-1}
  .ld-need>span,.ld-via{white-space:normal}
  .ld-when{grid-row:1;grid-column:2;text-align:right}
}
/* For the firm's figures in a lead's window: the lead's quality beside its value, then the Google line (what Google
   got, or why not) with its buttons; a dry run's two requests in a box under it (Lewis's brief of November 15, 2026). */
.ld-fig-row{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:flex-start}
.ld-fig-row .ld-value{margin:0}
.ld-fig-l{display:block;margin-bottom:6px;font-size:.86rem;font-weight:700;color:var(--fg)}
.ld-quality .ld-fig-v{display:flex;align-items:center;gap:10px;min-height:44px}
/* under the label: the sentence the rating gave for it, or where the rating stands (red when a call failed) */
.ld-quality{flex:1 1 240px;max-width:460px}
.ld-quality .q-hint{overflow-wrap:anywhere}
.ld-qbad{color:var(--red)}
/* The Leads page's buttons, side by side. The admin's Rating rules window: where rating stands, the rules in a tall
   box, how blanks are written, and the versions before. */
.pg-btns{display:flex;flex-wrap:wrap;gap:10px}
/* above the leads list: the leads whose rating failed for good, by name */
.ld-ratefail{display:flex;align-items:flex-start;gap:8px;margin:-6px 0 18px;padding:10px 14px;border-radius:12px;background:var(--surface);font-size:.92rem;color:var(--fg)}
.ld-ratefail svg{flex:none;margin-top:4px;color:var(--amber)}
.ld-ratefail .link-btn{padding:0 2px}
.rr-state{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:.95rem}
.rr-state li{display:flex;align-items:flex-start;gap:8px}
.rr-state li svg{flex:none;margin-top:4px;color:var(--ok)}
.rr-state li.no{font-weight:600}
.rr-state li.no svg{color:var(--amber)}
#rr-text{min-height:300px;line-height:1.55;resize:vertical}
/* The dollar table beside the rules: a short box in the code font, so the numbers line up, and under it what the
   portal reads from the saved one. */
#rr-values{min-height:215px;line-height:1.6;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem}
.field .q-hint code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82em;white-space:nowrap}
.rr-read{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;font-size:.9rem;line-height:1.55}
.rr-read svg{flex:none;margin-top:4px;color:var(--ok)}
.rr-read.rr-none{color:var(--muted)}
.rr-read.rr-none svg{color:var(--muted)}
.rr-blanks{font-size:.88rem;color:var(--muted)}
.rr-blanks summary{cursor:pointer;font-weight:700;color:var(--blue)}
.rr-blanks p{margin-top:8px;line-height:1.7}
.rr-blanks code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;white-space:nowrap}
.rr-before ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rr-before li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px;font-size:.9rem}
/* Google OK and Sent to Google: a label, and beside it the line, its notes and its button */
.ld-google{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:10px 16px;margin-top:16px}
.ld-google .ld-fig-l{margin:0}
.ld-gtext{min-width:0}
.ld-gline{margin:0;font-size:.92rem;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.ld-gline.ok{color:var(--ok)}
.ld-gline.warn{color:var(--amber)}
.ld-gline.bad{color:var(--red)}
.ld-gnote{display:block;margin-top:2px;font-size:.86rem;font-weight:500;color:var(--muted);overflow-wrap:anywhere}
.ld-gbtns{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:6px}
button.btn-mini:disabled{opacity:.55;cursor:default}
.ld-side .ld-first{margin-top:8px}
.ld-side .ld-first-again{display:block;margin-top:4px;padding:4px 0}
/* a client's whole ID numbers on the staff's Client questionnaire tab: the card over the questionnaires, and a whole number once shown
   (one click selects it, to copy) */
.ids-card{margin-bottom:22px}
.ids-card .card-head{flex-wrap:wrap}
.ids-card .card-head h2{white-space:nowrap}
.ids-card .kv b{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 8px}
.ids-no{font-variant-numeric:tabular-nums;letter-spacing:.03em;user-select:all;-webkit-user-select:all}
.q-ro .field input.id-whole{font-variant-numeric:tabular-nums}
/* a staff message on a client's page: changed ("edited"), being changed (the box in its place), or taken back (a line where it was) */
.m-edited{margin-left:6px;font-style:italic}
.m-editing{width:min(78%,620px)}
.m-edit{display:grid;gap:8px;width:100%}
.m-edit textarea{width:100%;min-height:90px;max-height:min(60vh,520px);resize:vertical;padding:12px 16px;border-radius:16px;border:1.5px solid var(--blue);background:var(--surface);line-height:1.5;font:inherit}
.m-edit textarea:focus{outline:none}
.m-edit .m-acts{justify-content:flex-end;gap:8px 14px}
.m-gone{font-style:italic}
/* open items staff add for a client: the box and list on the staff's Open items tab, and the item in the client's own window */
.ask-card{margin-bottom:22px}
.ask-form{display:grid;gap:10px}
.ask-form textarea{width:100%;min-height:64px;resize:vertical;padding:12px 16px;border-radius:16px;border:1.5px solid var(--line);background:var(--bg);line-height:1.5;font:inherit}
.ask-form textarea:focus{outline:none;border-color:var(--blue)}
.ask-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.ask-list{margin-top:16px}
.ask-li{align-items:flex-start}
.ask-t{display:grid;gap:6px;min-width:0}
.ask-text{white-space:pre-line;overflow-wrap:anywhere}
.ask-t .ask-text{font-weight:600}
/* an item cleared as not relevant: still listed for staff, greyed, with a grey chip */
.ask-off .ask-text{color:var(--muted)}
.ask-off .dl-ic{opacity:.55}
.chip-off{background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line)}
.ask-ans{white-space:pre-line;overflow-wrap:anywhere;padding:10px 14px;border-radius:14px;background:var(--bg);font-weight:400}
.ask-q{background:var(--tint-blue)}
.ask-q b{color:var(--blue)}
.ask-q .ask-text{display:block}
.ask-answer textarea{width:100%;min-height:120px;resize:vertical;padding:12px 16px;border-radius:16px;border:1.5px solid var(--line);background:var(--surface);line-height:1.5;font:inherit}
.ask-answer textarea:focus{outline:none;border-color:var(--blue)}
.ask-answer textarea.bad{border-color:var(--red)}
/* a client's Docs tab: the card to add a document they sent another way (by email, say) */
.add-card{margin-bottom:22px}
.add-form{display:grid;gap:12px}
.add-form .field{margin:0;display:grid;gap:6px;max-width:560px}
.add-form .field label{font-weight:600;font-size:.92rem}
.add-form select{width:100%;padding:11px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--bg);font:inherit}
.add-form select:focus{outline:none;border-color:var(--blue)}
.add-form .drop{padding:18px 16px}
.add-form .btn-mini{justify-self:start}
/* Podio, the portal and the binder in step (December 1, 2026): what the binder did about a return's status in Podio,
   under the return's steps; whether Podio follows the client's binder, on the Binder strip, on a line of its own so it
   is read whole; and, in Bring in from Podio, when Podio was last read. */
.yr-binder,.bx-podio,.pd-sync{display:flex;align-items:flex-start;gap:6px;font-size:.88rem;line-height:1.5;color:var(--muted)}
.yr-binder svg,.bx-podio svg,.pd-sync svg{flex:none;margin-top:3px}
.yr-binder{margin:8px 0 0}
.bx-podio{margin:10px 0 0}
.bx-podio svg{color:var(--ok)}
.bx-podio.no{color:var(--amber);font-weight:600}
.bx-podio.no svg{color:inherit}
.bx-row .bx>.bx-podio{flex:0 0 100%;margin:0}
.pd-sync{margin:0 0 14px}
.pd-sync svg{color:var(--ok)}
.drawer.wide .pd-body>.pd-sync{max-width:760px}
.pd-sync.bad{color:var(--red);font-weight:600}
.pd-sync.bad svg{color:inherit}
/* The Clients page's main list, one line a client (December 1, 2026): a column for each thing (the client, their
   company when every company is listed, the status, the notes, their tax preparer when everyone's are listed, when
   they last changed), and every other row grey, "to make it easier on the eye". The notes have most of the room, on
   up to two lines (Lewis, December 3, 2026: "make that so you see more of the notes ... I think the column should be
   wider"; then "I think the notes need to wrap into two lines, and it needs to be wider still. Maybe take a return
   column away so that it gives more space"): no Waiting or Return column. December 4, 2026: "Could you take away the
   open button? See if you can make the notes a little wider, and also maybe a 'date since last update' column": no
   button column (the client's name opens their page), the notes five times the client's share where they were four
   times, the client, the status and the tax preparer's menu a little narrower (Podio's two longest statuses take two
   lines, as they did), and Last update at the end (once the program says when each client's things were last saved:
   the heading's .up). A column that a list may not have is a width of its own (--dk-co, --dk-pp, --dk-up), and no
   column at all when it isn't set. */
.dkq.one .wq-head,.dkq.one .wq-row{grid-template-columns:minmax(130px,1fr) var(--dk-co,) 200px minmax(0,5fr) var(--dk-pp,) var(--dk-up,);gap:10px}
.dkq.one.co{--dk-co:66px}
.dkq.one.pp{--dk-pp:104px}
/* (an admin's All clients: the tax preparer column is the menu that changes it) */
.dkq.one.pp.psel{--dk-pp:150px}
.dkq.one:has(>.wq-head.up){--dk-up:104px}
.dkq.one.psel .wq-prep select{padding:4px 6px;font-size:.84rem;border-radius:8px}
/* (Last update: the day, and under it how long ago; its heading on one line, its sort arrow included) */
.dkq.one .wq-head [data-dsort="upd"]{white-space:nowrap}
.dkq.one .wq-upd{display:grid;gap:1px;min-width:0;font-size:.86rem;line-height:1.25;white-space:nowrap}
.dkq.one .wq-upd b{font-weight:600}
.dkq.one .wq-upd small{color:var(--muted);font-size:.78rem}
.dkq.one .wq-row{padding:8px 14px;border-top:0;border-radius:8px;font-size:.9rem;line-height:1.35}
.dkq.one .wq-row:nth-child(even of .wq-row:not([hidden])){background:color-mix(in srgb,var(--fg) 5%,transparent)}
.dkq.one .wq-row:hover{background:color-mix(in srgb,var(--blue) 9%,transparent)}
.dkq.one .wq-row .st-who b{font-size:.94rem}
.dkq.one .wq-job{display:block}
.dkq.one .wq-job b{font-weight:600}
.dkq.one .dk .wq-job small{display:inline;margin:0;font-size:.86rem}
.dkq.one .wq-prep{color:var(--muted);min-width:0}
/* (a year from the organizer: its year beside the client's name, since a client can have two years in work) */
.dkq.one .st-who .wq-yr{flex:none}
/* the Notes column (deskView): the newest note, on up to two lines, cut with … when it's longer (all of it on a hover) */
.dkq.one .wq-note{min-width:0}
.dkq.one .wq-note b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:400;overflow-wrap:anywhere}
/* (and under it, the client's next follow-up: its day, red once it has come) */
.dkq.one .dk .wq-note .nt-chip{display:flex;align-items:center;gap:4px;margin-top:2px;font-size:.8rem;font-weight:600;color:var(--muted)}
.dkq.one .dk .wq-note .nt-chip.due{color:var(--red)}
.wq-note .nt-chip svg{flex:none}
.dkq.one .wq-st{min-width:0;font-weight:600;font-size:.88rem}
.dkq.one .wq-row[hidden]{display:none}
.dk-more{display:flex;align-items:flex-start;gap:6px;margin:10px 14px 4px;font-size:.88rem;color:var(--muted)}
.dk-more svg{flex:none;margin-top:3px}
.dk-more b{color:var(--fg)}
.dk-more .link-btn{padding:0 2px;font-size:inherit}
.dkq.one .wq-co .brand-tag{margin:0}
.dkq.one .wq-head span{white-space:nowrap}
@media (max-width:900px){
  .dkq.one .wq-head{display:none}
  .dkq.one .wq-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .dkq.one .wq-job{grid-column:1 / -1}
}
/* A return's status as the menu that changes it (statusCtl; December 1, 2026): in the Status column of the Clients
   page's list and under a client's name. The button is the status in Podio's own words; the menu lists Podio's
   statuses, the one it has ticked, the binder's four greyed where the binder sets them. */
.stm{position:relative;display:inline-block;max-width:100%;vertical-align:baseline}
.stm-txt{font-weight:600}
.stm-btn{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);font:inherit;font-weight:600;text-align:left;line-height:1.3;cursor:pointer}
.stm-btn i{flex:none;font-style:normal;font-size:.72em;color:var(--muted)}
.stm-btn:hover,.stm.open .stm-btn{border-color:var(--blue);color:var(--blue)}
.stm-btn:focus-visible,.stm-opt:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.stm-menu{position:absolute;left:0;top:calc(100% + 5px);z-index:45;display:flex;flex-direction:column;width:max-content;min-width:250px;max-width:min(330px,86vw);max-height:min(72vh,640px);overflow-y:auto;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow),0 12px 34px -12px rgba(0,0,0,.35);font-size:.9rem;font-weight:400;line-height:1.35;color:var(--fg);white-space:normal;text-align:left}
.stm-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 10px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
button.stm-opt:hover{background:color-mix(in srgb,var(--blue) 11%,transparent)}
.stm-opt.on{font-weight:700}
.stm-opt i{display:inline-flex;color:var(--blue)}
.stm-opt.lock{color:var(--muted);cursor:default}
.stm-opt.lock small{flex:none;font-size:.78rem}
.stm-foot{margin-top:5px;padding:8px 10px 4px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.stm-foot a{color:var(--blue);font-weight:700;white-space:nowrap}
.stm-note{padding:8px 10px;color:var(--muted)}
.stm-ask{display:flex;flex-direction:column;gap:7px;padding:9px 10px}
.stm-ask small{color:var(--muted)}
.stm-yn{display:flex;align-items:center;gap:10px}
/* (the invoice's fee, asked for before "Send invoice to client" goes: invAsk) */
.stm-fee{display:flex;align-items:center;gap:10px;font-weight:600}
.stm-fee-in{display:inline-flex;align-items:center;gap:4px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.stm-fee-in:focus-within{border-color:var(--blue);outline:2px solid color-mix(in srgb,var(--blue) 30%,transparent)}
.stm-fee-in i{font-style:normal;color:var(--muted)}
.stm-fee-in input{width:9em;padding:6px 0;border:0;background:none;color:inherit;font:inherit;font-weight:600;outline:0}
/* (more lines on the invoice through Stripe, after the fee: invLinesPart) */
.stm-menu:has(.stm-line){min-width:min(380px,92vw);max-width:min(420px,92vw)}
.stm-line{display:flex;align-items:center;gap:6px}
.stm-line>input{flex:1;min-width:0;width:9em;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:inherit;font:inherit}
.stm-line>input:focus{border-color:var(--blue);outline:2px solid color-mix(in srgb,var(--blue) 30%,transparent)}
.stm-line .stm-fee-in{flex:none}
.stm-line .stm-fee-in input{width:4.5em}
.stm-line-del{flex:none;display:inline-flex;padding:4px;color:var(--muted)}
.stm-line-add{align-self:flex-start;font-size:.86rem}
.stm-total{font-weight:600}
.dkq.one .wq-st .stm-btn{font-size:.86rem}
.dkq.one .wq-row:has(.stm.open){z-index:3;position:relative}
/* The binder on the client's page: the Binder tab (binderPart; December 1, 2026). A button a year with the year's
   status in the binder, and under them that year's binder, the binder's own page in a frame (bx-frame) that is kept
   beside the page and laid over the place this keeps for it (bx-slot). The place is as tall as the window under the
   top bar and the tabs, so the binder fills the screen once the tabs are at the top of it. Beside the tabs
   (cd-siderow): Start the binder for a year that has none, and the way to the binder's own page. */
.cd-siderow{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:18px}
.cd-siderow .cd-sides{margin-bottom:0}
.bxp-acts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-left:auto}
.bxp-out{font-size:.86rem;white-space:nowrap}
.bxp-other{display:flex;align-items:center;gap:6px;margin:0 0 10px;font-size:.9rem;color:var(--amber)}
.bxp-other .link-btn{padding:2px 6px}
.bxp-none{margin:6px 2px 0}
.bxp .bx-podio{margin:0 0 10px}
.bx-slot{position:relative;overflow:hidden;display:grid;place-items:center;height:max(540px,calc(100vh - 156px));border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.bx-frame{position:absolute;z-index:5;border:0;border-radius:16px;background:#f4f5f9}
.bx-frame.off{visibility:hidden;pointer-events:none}
/* One of the page's own parts, picked in the binder's Appendix (the client's questionnaire, their checklist, the
   timeline ...): drawn over the binder's main area, at the place the binder keeps for it (binderPartSaid). */
.bx-part{position:absolute;z-index:6;overflow:auto;box-sizing:border-box;padding:16px 18px 28px;background:var(--bg);text-align:left}
.bx-part>.cd-pane{min-width:0}
/* In a narrow window the binder's list and its page are one column, with no place that stays put to draw over: the
   part then has the binder's place (bx-flow), the binder kept out of sight (its place folded to nothing), with the
   way back to it and the other parts over the part. */
.bx-slot.flow{height:0;min-height:0;box-shadow:none;visibility:hidden}
.bx-flow-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:14px}
.bx-flow-top .tabs{margin-bottom:0;flex-wrap:wrap;border-radius:22px}
/* A return's invoice through Stripe (invPanel, invAskStripe; December 2, 2026): a line under the return's steps with
   where it stands and, while it's open, Paid by Zelle, Wise…, Check payment, Email it again and Void; the other ways
   to pay as the invoice prints them. */
.yr-inv{display:flex;gap:8px;align-items:flex-start;margin:12px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.yr-inv>svg{flex:none;margin-top:3px;color:var(--muted)}
.inv-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.inv-st{font-weight:700}
.inv-st.inv-paid{color:var(--green,#15803d)}
.inv-st.inv-void{color:var(--muted)}
.inv-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.inv-lines{color:var(--muted)}
.inv-form{display:flex;flex-direction:column;gap:8px;max-width:420px}
.inv-form label{display:flex;align-items:center;gap:10px;font-weight:600}
.inv-form select,.inv-form input{padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:inherit;font:inherit}
.inv-form small{color:var(--muted)}
