/* FinTelli new site: one stylesheet for the firm's pages (index.html) and the client's phone link (client.html). */
:root {
  --ink: #2c1c42; --text: #2a2533; --muted: #5d566a; --paper: #f7f2e7; --card: #fffdfa; --line: #ddd5c4;
  --yellow: #ffc91f; --pale: #fff0bd; --lilac: #efe9f6; --green: #17734a; --violet: #62518b;
  --rail-hover: #493769; --rail-text: #c9bedb; --dash: #b9aecb; --red: #a3321d;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--text); font-family: 'Figtree', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--violet); }
button { font: inherit; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.hidden { display: none !important; }

/* ---- shell: left column, content column ---- */
.shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.rail { flex: 0 0 272px; width: 272px; background: var(--ink); color: var(--card); height: 100%; overflow-y: auto; padding: 18px 12px 24px; display: flex; flex-direction: column; gap: 2px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.view { flex: 1; min-height: 0; overflow-y: auto; }
.view.fill { overflow: hidden; }
.vbox.fill { height: 100%; }
.topbar { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 3px solid var(--ink); background: var(--paper); flex: 0 0 auto; }
.scrim { display: none; border: none; padding: 0; cursor: pointer; }
.brand, .brand:hover { color: var(--card); }
.brand { font: inherit; background: none; border: none; padding: 4px 10px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; color: var(--card); }
.brand b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand span { font-size: 12px; font-weight: 600; color: var(--rail-text); letter-spacing: .06em; }
.rbtn { text-align: left; width: 100%; background: transparent; border: none; color: var(--card); padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; }
.rbtn.on { background: rgba(255, 253, 250, .16); color: var(--card); }
.rbtn .n, .rgroup .n { font-size: 13px; font-weight: 700; color: var(--rail-text); }
.rbtn .chev, .rgroup .chev { font-size: 11px; color: var(--rail-text); width: 12px; text-align: center; }
.rbtn.sub { padding-left: 22px; font-size: 14px; font-weight: 500; min-height: 40px; }
.rbtn .grow { flex: 1; }
.count { min-width: 24px; height: 24px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.rlabel { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--rail-text); padding: 14px 10px 4px; }
.rgroup { font: inherit; font-size: 14px; font-weight: 700; color: var(--card); background: transparent; border: none; border-radius: 10px; padding: 8px 10px; min-height: 40px; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.rgroup .grow { flex: 1; }
.crow { text-align: left; width: 100%; background: transparent; border: none; color: var(--card); padding: 7px 10px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-height: 44px; }
.crow.on { background: rgba(255, 253, 250, .16); color: var(--card); }
.crow .top { display: flex; align-items: center; gap: 6px; width: 100%; font-size: 14px; font-weight: 700; }
.crow .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .sub { font-size: 12px; color: var(--rail-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.crow { padding-left: 22px; }
/* Deleting a client (design constitution rule 11): a quiet × on hover, Delete after a swipe, the row's menu, one
   question on the row for what cannot be taken back, a few seconds of Undo at the foot of the column. */
.cwrap { position: relative; touch-action: pan-y; }
.cdel { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 28px; height: 28px; padding: 0 8px;
  border: none; border-radius: 8px; background: transparent; color: var(--rail-text); font-size: 16px; cursor: pointer; opacity: 0; }
.cwrap:focus-within .cdel { opacity: 1; }
.cwrap.swiped .cdel { opacity: 1; background: var(--red); color: var(--card); font-size: 13px; font-weight: 700; height: 34px; }
.cwrap.swiped .crow { padding-right: 84px; }
.cmenu { display: flex; gap: 6px; padding: 4px 10px 8px 22px; }
.cask { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 10px 22px; border-radius: 10px;
  background: var(--rail-hover); color: var(--card); font-size: 13px; line-height: 1.35; }
.cask .acts { display: flex; gap: 6px; }
.trashbtn { background: transparent; border: none; text-align: left; cursor: pointer; color: var(--rail-text); }
.trashbtn .tcount { font-size: 12px; color: var(--rail-text); }
.trow { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 22px; color: var(--rail-text); font-size: 13px; }
.trow .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo { position: fixed; left: 12px; bottom: 16px; width: 248px; max-width: calc(100vw - 24px); z-index: 60; display: flex;
  align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--ink);
  font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.ydot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: 0 0 9px; display: inline-block; }
.search { font: inherit; font-size: 14px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 2px solid #6b5a8a; background: #3a2955; color: var(--card); outline: none; margin: 8px 0 2px; }
.search::placeholder { color: var(--rail-text); }
.rmuted { font-size: 13px; color: var(--rail-text); padding: 6px 10px; }
.me { margin-top: auto; padding: 16px 10px 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: 0 0 34px; }
.topbar .avatar { border: 2.5px solid var(--ink); font-size: 12px; }
.topbar .word { font-size: 20px; font-weight: 800; color: var(--ink); }

/* ---- buttons and rows ---- */
.btn { font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.solid { background: var(--ink); color: var(--card); box-shadow: 4px 4px 0 var(--yellow); }
.btn.solid:hover { box-shadow: 5px 5px 0 var(--yellow); color: var(--card); }
.btn.quiet { border: 2px solid var(--line); box-shadow: none; font-weight: 600; color: var(--text); }
.btn.quiet:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { min-height: 34px; font-size: 13px; padding: 0 12px; }
.btn.mid { min-height: 38px; font-size: 14px; }
.row { width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--text); text-decoration: none; }
.row:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.row .who { font-weight: 800; font-size: 15px; color: var(--ink); flex: 1 1 200px; min-width: 0; }
.row .what { font-size: 15px; flex: 2 1 280px; min-width: 0; }
.row .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 7px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); background: var(--card); letter-spacing: .06em; white-space: nowrap; }
.tag.pale { background: var(--pale); }
.field { font: inherit; font-size: 17px; border: none; outline: none; background: transparent; color: var(--text); flex: 1; min-width: 0; min-height: 44px; }
.err { font-size: 14px; font-weight: 700; color: var(--red); }
.muted { color: var(--muted); }
.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- pages ---- */
.page { width: 100%; max-width: 880px; margin: 0 auto; padding: 44px max(16px, 3vw) 64px; display: flex; flex-direction: column; gap: 18px; }
.page.tight { padding-top: 32px; gap: 14px; }
.h1 { margin: 0; font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.h1.mid { font-size: 36px; letter-spacing: -.02em; }
.h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lead { font-size: 17px; line-height: 1.5; margin: 0; }
.folds { display: flex; flex-direction: column; margin-top: 18px; }
.fold-row { font: inherit; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 4px; background: none; border: none; border-bottom: 2px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.fold-row .grow, .srow .grow { flex: 1; min-width: 0; }
.fold-row .n { min-width: 28px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--lilac); color: var(--ink); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fold-row .n.hot { background: var(--yellow); }
.fold-row .chev { width: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.fold-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 16px; }
.srow { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 2px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.srow .n { font-weight: 800; color: var(--muted); }
.back { align-self: flex-start; }
.form { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 18px; box-shadow: 6px 6px 0 var(--ink); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.input { font: inherit; font-size: 17px; min-height: 48px; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--text); width: 100%; }
.md { background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 20px 18px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.md h1, .md h2, .md h3, .md h4 { color: var(--ink); margin: 18px 0 6px; line-height: 1.2; }
.md h1 { font-size: 26px; } .md h2 { font-size: 21px; } .md h3 { font-size: 17px; } .md h4 { font-size: 15px; }
.md p { margin: 8px 0; }
.md ul { margin: 6px 0; padding-left: 22px; }
.md code { font-family: var(--mono); font-size: 13px; background: var(--paper); padding: 1px 4px; border-radius: 4px; }
.md .tbl { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.md th, .md td { border: 1.5px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--paper); }
/* Hover only where a pointer hovers, and lighter than the selected row (the selected row is the case on screen). */
@media (hover: hover) {
  .cwrap:hover .cdel { opacity: 1; }
  .cdel:hover { background: rgba(255, 253, 250, .12); color: var(--card); }
  a:hover { color: var(--ink); }
  .rbtn:not(.on):hover, .crow:not(.on):hover, .rgroup:hover { background: rgba(255, 253, 250, .08); color: var(--card); }
}
.rbtn:focus:not(:focus-visible), .crow:focus:not(:focus-visible), .rgroup:focus:not(:focus-visible) { outline: none; }
.invite { flex: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; text-align: center; background: var(--paper); }
.invite-word { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.invite-line { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 420px; }
.invite-why { color: var(--ink); font-weight: 700; }
.invite-help { font-size: 15px; }
.signin { max-width: 520px; margin: 0 auto; padding: 80px 16px; display: flex; flex-direction: column; gap: 16px; }

/* ---- the composer (one input at the bottom, or the overview's input) ---- */
.compose { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; }
.compose.big { padding: 8px 8px 8px 18px; border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); }
.many { position: relative; display: flex; flex-direction: column; gap: 10px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.chip { font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border: 2px dashed var(--dash); border-radius: 999px; background: transparent; color: var(--rail-hover); cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-style: solid; border-color: var(--violet); background: var(--lilac); }
.chip.on { border-style: solid; border-color: var(--ink); background: var(--lilac); color: var(--ink); }
.picker { background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; box-shadow: 4px 4px 0 var(--ink); }
.picker .head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.picker label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.picker label:hover { background: var(--lilac); }
.picker input { width: 20px; height: 20px; accent-color: var(--ink); flex: 0 0 20px; }
.picker .nm { font-weight: 700; font-size: 15px; color: var(--ink); }
.picker .ln { font-size: 13px; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 14px; }

/* ---- one line of a conversation ---- */
.msgs { display: flex; flex-direction: column; gap: 14px; }
.m-you { align-self: flex-end; max-width: min(560px, 88%); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.m-said { align-self: flex-start; max-width: min(600px, 92%); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.who-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.bubble-you { background: var(--lilac); border: 2.5px solid var(--ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-agent { align-self: flex-start; max-width: min(600px, 92%); }
.m-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.m-steps { align-self: flex-start; width: min(520px, 100%); background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.step { display: flex; align-items: center; gap: 10px; }
.m-steps .rows { display: flex; flex-direction: column; gap: 9px; }
.m-run .run-ttl { font-weight: 800; font-size: 15px; }
.m-run .run-why { font-size: 13px; color: var(--muted); }
.m-run .run-res { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-top: 1.5px solid var(--line); padding-top: 8px; }
.step .t { font-size: 15px; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.stime { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 8px; align-self: flex-start; margin-top: 3px; }
.step.live .stime { color: var(--ink); font-weight: 700; }
.step.now .t { font-weight: 700; }
.dot { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.dot.done { background: var(--green); color: var(--card); }
.dot.now { background: var(--yellow); border: 2.5px solid var(--ink); }
.dot.later { border: 2px dashed var(--dash); }
.dot.off { border: 2.5px solid var(--muted); color: var(--muted); }
.ellip { font-weight: 800; color: var(--violet); }
.receipt { font-size: 15px; line-height: 1.5; border-top: 1.5px solid var(--line); padding-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.clock { font-family: var(--mono); font-size: 12px; color: var(--muted); align-self: flex-end; }
.m-version { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.band { background: var(--pale); border-bottom: 2px solid var(--ink); padding: 6px 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.vbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.vdoc { font-size: 18px; font-weight: 800; color: var(--ink); }
.vchange { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.src { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.fields { border: 2px solid var(--line); border-radius: 10px; background: var(--paper); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.frow { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 14px; }
.frow .k { min-width: 150px; font-weight: 700; color: var(--muted); }
.frow .v { flex: 1 1 200px; overflow-wrap: anywhere; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m-card { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.m-card.folded { border-width: 1.5px; padding: 8px 12px; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-card.folded .lbl { color: var(--muted); }
.m-card .lbl { font-size: 13px; font-weight: 700; color: var(--violet); }
.m-card .q { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.hint { font-size: 13px; color: var(--muted); }
.ok { font-size: 15px; color: var(--green); font-weight: 700; overflow-wrap: anywhere; }
.m-approve { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--yellow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-approve .ttl { font-size: 20px; font-weight: 800; color: var(--ink); }
.m-approve .body { font-size: 16px; line-height: 1.5; white-space: pre-line; }
/* the chase's "later": a note with nothing to do, one shade quieter than the cards that wait on her */
.m-approve.later { border: 1px solid var(--line); box-shadow: none; }
.m-approve.later .ttl { font-size: 16px; font-weight: 700; }
.spot { outline: 4px solid var(--yellow); outline-offset: 3px; }

/* ---- the client page ---- */
.case { display: flex; height: 100%; min-width: 0; }
.case-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.case-head { padding: 18px max(16px, 2.5vw) 10px; display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.case-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.case-title h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; overflow-wrap: anywhere; }
.case-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pill { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--lilac); color: var(--ink); white-space: nowrap; }
.pill.you { background: var(--yellow); }
.track { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; }
.dots { display: flex; align-items: flex-start; }
.track-now { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); border-top: 1.5px solid var(--line); padding-top: 9px; }
.track-now b { color: var(--ink); font-weight: 800; }
.tlink { font: inherit; font-size: 14px; font-weight: 700; color: var(--violet); background: none; border: none; padding: 0 2px; min-height: 36px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; flex: 0 0 76px; text-align: center; }
.circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--card); color: var(--muted); border: 2.5px dashed var(--dash); }
.circle.done { background: var(--ink); color: var(--card); border: 3px solid var(--ink); }
.circle.current { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--pale); }
.circle.waiting { background: var(--lilac); color: var(--ink); border: 2.5px dashed var(--ink); }
.circle.started { background: var(--lilac); color: var(--ink); border: 2.5px solid var(--violet); }
.stage .sl { font-size: 12px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.link { flex: 1 1 8px; min-width: 6px; margin-top: 16px; border-top: 3px dashed var(--dash); }
.link.done { border-top: 3px solid var(--ink); }
.panel { border: 2.5px solid var(--ink); border-radius: 14px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.agent { width: 100%; text-align: left; background: transparent; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.agent:hover { border-color: var(--ink); }
.agent .nm { font-weight: 800; color: var(--ink); font-size: 15px; }
.agent .dd { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-head .panel { max-height: 42vh; overflow-y: auto; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin-top: 6px; background: var(--dash); }
.sdot.working { background: #22a565; }
.sdot.waiting { background: var(--yellow); }
.convo { flex: 1; min-height: 0; overflow-y: auto; padding: 8px max(16px, 2.5vw) 20px; }
.dock { flex: 0 0 auto; padding: 10px max(16px, 2.5vw) 16px; border-top: 2px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.aim { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.aim .q { flex: 1 1 200px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs { flex: 0 0 300px; width: 300px; border-left: 3px solid var(--ink); background: var(--card); height: 100%; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.docs .ttl, .narrow-files .ttl { font-size: 18px; font-weight: 800; color: var(--ink); }
.sec { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--violet); padding-top: 6px; letter-spacing: .06em; }
.dcard { border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.dcard .nm { font-weight: 800; font-size: 15px; color: var(--ink); }
.dline { font-size: 13px; color: var(--muted); }
.frow2 { font-size: 14px; padding: 6px 0; border-bottom: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.docsbtn { display: none; }
.narrow-files { display: none; }

/* ---- the client's phone link ---- */
.cl { max-width: 560px; margin: 0 auto; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.cl-head { padding: 14px 16px; border-bottom: 3px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-head .w { display: flex; flex-direction: column; }
.cl-head .w b { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.cl-head .w span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.cl-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.cl-track { display: flex; align-items: flex-start; }
.cl-track .stage { width: 56px; flex: 0 0 56px; gap: 4px; }
.cl-track .circle { width: 30px; height: 30px; font-size: 13px; }
.cl-track .sl { font-size: 11px; font-weight: 700; }
.cl-track .link { flex: 1 1 4px; min-width: 4px; margin-top: 14px; }
.cl-sign { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); }
.cl-sign .nm { font-weight: 600; }
.cl-now { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cl-now b { color: var(--ink); }
.cl h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.cl-file { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cl-file .nm { flex: 1; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.cl-dock { padding: 10px 12px; border-top: 2px solid var(--line); display: flex; gap: 8px; align-items: center; background: var(--paper); }
.cl-dock .input { min-height: 44px; font-size: 16px; }
.big-btn { font-weight: 800; font-size: 17px; min-height: 52px; width: 100%; }

/* ---- the firm card, the client's questions, the forms to confirm (design originals of 2026-11-13) ---- */
.meter { height: 10px; border-radius: 6px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; flex: 1 1 120px; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); }
.mrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.mrow .n { white-space: nowrap; }

/* ---- the firm card ---- */
.m-firm { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.m-firm .top { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 2px solid var(--line); }
.m-firm .ttl { font-size: 20px; font-weight: 800; color: var(--ink); }
.m-firm .line { font-size: 15px; line-height: 1.5; color: var(--text); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 4px 16px 14px; }
.fcol { display: flex; flex-direction: column; }
.fgroup { display: flex; flex-direction: column; }
.fgroup .sec { padding: 12px 0 2px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.fact .k { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fact .box { font: inherit; font-size: 15px; min-height: 40px; padding: 0 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); width: 100%; }
.fact .box:focus { outline: none; border-color: var(--ink); }
.fact.empty .box { border: 2px dashed var(--dash); background: var(--paper); }
.fact.empty .box::placeholder { color: var(--violet); }
.fact .src { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.fact .src.new { color: var(--green); font-weight: 700; }
.mark { align-self: flex-start; font-size: 12.5px; line-height: 1.4; background: var(--pale); border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 7px; color: var(--ink); overflow-wrap: anywhere; }
.fact .tick { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; }
.fact .tick input { width: 22px; height: 22px; accent-color: var(--ink); }
.composer-plus { flex: 0 0 auto; }

/* ---- the client's questions ---- */
.cl-convo { display: flex; flex-direction: column; gap: 14px; }
.m-ask { align-self: flex-start; max-width: 94%; display: flex; flex-direction: column; gap: 4px; }
.m-ask .bubble { font-size: 16px; }
.rec { font-family: var(--mono); font-size: 11.5px; color: var(--green); font-weight: 700; align-self: flex-end; text-align: right; }
.fromdoc { align-self: stretch; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.fromdoc .band { font-size: 11px; }
.fromdoc .in { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.fromdoc .q { font-size: 14px; color: var(--muted); font-weight: 700; }
.fromdoc .a { font-size: 17px; font-weight: 800; color: var(--ink); }
.qcard { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.qcard .q { font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { font: inherit; text-align: left; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 12px; font-size: 16px; display: flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; }
.opt .bx { width: 22px; height: 22px; flex: 0 0 22px; border: 2.5px solid var(--ink); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.opt.on { border-color: var(--ink); background: var(--lilac); color: var(--ink); font-weight: 700; }
.opt.on .bx { background: var(--ink); color: var(--card); }
.fold-mini { font: inherit; align-self: center; font-size: 14px; font-weight: 700; color: var(--violet); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 36px; cursor: pointer; }
.cl-dock .plus { min-width: 44px; padding: 0 12px; font-size: 20px; }

/* ---- the CPA's answers and the forms to confirm ---- */
.m-forms { align-self: stretch; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--yellow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-forms .ttl { font-size: 20px; font-weight: 800; color: var(--ink); }
.frm { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.frm .f { font-size: 16px; font-weight: 800; color: var(--ink); flex: 0 1 260px; }
.frm .why { font-size: 14px; color: var(--muted); flex: 1 1 260px; }
.callq { background: var(--pale); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.callq .lbl { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.ans { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(180px, 1.3fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1.5px solid var(--line); font-size: 14px; }
.arow .qq { font-weight: 700; color: var(--muted); }
.arow .aa { font-weight: 700; color: var(--ink); }
.arow .ww { color: var(--text); }
.arow .ww .src { display: block; margin-top: 2px; }

/* ---- v2: main chat, client chat, the right panel (design originals v2, 2026-11-13) ---- */
.p2 { flex: 0 0 440px; width: 440px; border-left: 3px solid var(--ink); background: var(--card); height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.p2.hidden { display: none; }
.p2 .ph { position: sticky; top: 0; background: var(--card); padding: 14px 16px 10px; border-bottom: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.p2 .t1 { display: flex; align-items: center; gap: 8px; }
.p2 .back { font: inherit; font-size: 13px; font-weight: 700; color: var(--violet); background: none; border: none; padding: 0; cursor: pointer; min-height: 32px; }
.p2 .ttl { font-size: 18px; font-weight: 800; color: var(--ink); flex: 1; min-width: 0; }
.vers { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.vers span { padding: 3px 8px; }
.vers .a { font: inherit; border: none; background: var(--paper); color: var(--ink); padding: 3px 8px; cursor: pointer; min-height: 28px; }
.vers .a:disabled { color: var(--dash); cursor: default; }
.pdfl { font-size: 13px; font-weight: 800; color: var(--violet); text-underline-offset: 3px; white-space: nowrap; }
.p2 .lead2 { font-size: 15px; color: var(--ink); font-weight: 700; }
.p2 .body { padding: 6px 16px 18px; display: flex; flex-direction: column; }
.grp { border-bottom: 2px solid var(--line); padding: 10px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.grp .gh { display: flex; align-items: baseline; gap: 8px; font-weight: 800; color: var(--ink); font-size: 15px; }
.grp .gh .ln { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 700; }
.grp .gh .n { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.grp .gh .n.ok { color: var(--green); }
.rw { display: grid; grid-template-columns: 120px 1fr; gap: 2px 10px; font-size: 14px; padding: 3px 0; }
.rw .k { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.rw .v { color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.rw .meta { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rw.gap { background: var(--pale); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; grid-template-columns: 1fr; margin: 2px 0; }
.rw.gap .k { color: var(--ink); font-weight: 800; }
.editv { font: inherit; text-align: left; background: none; border: none; padding: 0; cursor: text; }
.rw .box { font: inherit; font-size: 14px; min-height: 34px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; width: 100%; }
.srcc { font-family: var(--mono); font-size: 11px; color: var(--violet); border: 1.5px solid var(--dash); border-radius: 6px; padding: 1px 6px; background: var(--paper); }
.rmark { grid-column: 2; display: block; font-size: 12px; color: var(--ink); background: var(--pale); border-left: 3px solid var(--yellow); padding: 2px 8px; border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.para + .rmark { margin: -2px 0 6px; }
.newt { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); background: var(--pale); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 6px; }
.taps { display: flex; flex-wrap: wrap; gap: 8px; }
.tap { font: inherit; font-size: 14px; font-weight: 700; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--lilac); color: var(--ink); cursor: pointer; }
.collapsed { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.frow3 { font: inherit; width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 9px 4px; border: none; border-bottom: 1.5px solid var(--line); background: none; font-size: 14px; cursor: pointer; color: var(--text); }
.frow3 .nm { font-weight: 800; color: var(--ink); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.frow3 .st { color: var(--muted); font-size: 13px; white-space: nowrap; }
.frow3 .open { font-weight: 800; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.pagetext { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; margin: 0; background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.para { margin: 0; font-size: 14px; line-height: 1.5; }
.para.new { background: #e8f5ee; border-radius: 6px; padding: 4px 6px; }
.art { align-self: flex-start; font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); min-width: min(300px, 100%); max-width: 100%; cursor: pointer; color: var(--text); }
.art.on { outline: 3px solid var(--yellow); outline-offset: 2px; }
.art .ic { width: 30px; height: 36px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); flex: 0 0 30px; }
.art .nm { font-weight: 800; color: var(--ink); font-size: 15px; display: block; }
.art .st { font-size: 13px; color: var(--muted); display: block; }
.art .go { margin-left: auto; font-weight: 800; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.fold1 { font: inherit; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; max-width: 100%; text-align: left; }
.fold1 .ok2 { color: var(--green); font-weight: 800; }
.fold1 .t { font-family: var(--mono); font-size: 12px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sg { font: inherit; font-size: 13.5px; font-weight: 600; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.ctxpill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 2px 2px 2px 10px; border-radius: 8px; background: var(--lilac); border: 1.5px solid var(--violet); color: var(--ink); white-space: nowrap; }
.ctxpill .x { font: inherit; width: 26px; height: 26px; border: none; background: none; color: var(--muted); cursor: pointer; }
.pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); max-height: 300px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pop .row2 { font: inherit; text-align: left; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border: none; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 14px; }
.pop .row2:hover, .pop .row2.on { background: var(--lilac); }
.pop .row2 .grow { flex: 1; min-width: 0; }
.pop .hd { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--violet); padding: 6px 8px 2px; letter-spacing: .06em; }
.headline { padding: 14px max(16px, 2.5vw) 8px; display: flex; flex-direction: column; gap: 6px; border-bottom: 2px solid var(--line); flex: 0 0 auto; }
.headline .row1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.headline h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; overflow-wrap: anywhere; }
.headline .topic { font-size: 14px; color: var(--muted); }
.bar8 { display: flex; gap: 3px; }
.bar8 i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.bar8 i.d { background: var(--ink); }
.bar8 i.c { background: var(--yellow); border: 1.5px solid var(--ink); }
.stageline { font-size: 13px; color: var(--muted); }
.stageline b { color: var(--ink); }
.results { align-self: stretch; display: flex; flex-direction: column; gap: 4px; }
.res { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.res .nm { font-weight: 800; color: var(--ink); flex: 1; min-width: 0; }
.res:has(.said), .res:has(.made) { flex-direction: column; align-items: stretch; gap: 4px; }
.res .line { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.res .said { color: var(--text); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.res .made { color: var(--muted); font-size: 13px; }
.mc-head { padding: 22px max(16px, 2.5vw) 6px; display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.mc-head h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mc-head .sub { font-size: 14px; color: var(--muted); }
.me.prof { border-radius: 10px; padding: 10px; text-decoration: none; color: var(--card); }
.me.prof.on { background: rgba(255, 253, 250, .16); }
.me.prof .psub { font-size: 12px; color: var(--rail-text); font-weight: 700; display: block; }
.me.prof .psub.hot { color: var(--yellow); }
.firmmenu { display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px 10px; }

@media (max-width: 1180px) {
  .docs { display: none; }
  .docsbtn { display: inline-flex; }
  .narrow-files.open { display: flex; }
}
@media (max-width: 900px) {
  .p2 { display: none; }
  .p2.sheet { display: flex; position: fixed; inset: 0; width: auto; border-left: none; z-index: 40; }
  .fgrid { grid-template-columns: 1fr; }
  .arow { grid-template-columns: 1fr; gap: 2px; }
  .rail { display: none; }
  .rail.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: min(300px, 86vw); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(44, 28, 66, .4); z-index: 25; }
  .topbar { display: flex; }
  .h1 { font-size: 30px; }
  .h1.mid { font-size: 28px; }
}
@media (max-width: 480px) {
  .page { padding-top: 20px; gap: 14px; }
  .case-head { padding-top: 12px; gap: 10px; }
  .case-title { gap: 8px; }
  .case-title h1 { font-size: 24px; }
  .case-sub { font-size: 13px; margin-top: 4px; }
  .case-title .acts .btn { min-height: 34px; font-size: 13px; padding: 0 10px; }
  .pill { font-size: 12px; padding: 4px 8px; }
  .dock { padding: 8px 12px 12px; }
  .track { padding: 10px 10px 10px; gap: 8px; }
  .dots .stage { width: 28px; flex: 0 0 28px; }
  .dots .stage .sl { display: none; }
  .circle { width: 28px; height: 28px; font-size: 12px; }
  .link { margin-top: 13px; min-width: 4px; }
  .track-now { font-size: 13px; padding-top: 7px; }
  .compose .btn { padding: 0 14px; }
  .row .who, .row .what { flex-basis: 100%; }
  .frow .k { min-width: 0; flex-basis: 100%; }
}
.m-card .qlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.m-card .qlist b { font-weight: 700; }
.m-card .qlist .why { opacity: .65; }
/* The briefing at the top of the main chat, and an answer about clients: one row per next task (design originals v2,
   10-briefing-*; newsite/briefing.py) */
.m2.wide { max-width: min(760px, 100%); }
.brief { display: flex; flex-direction: column; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.brief .bh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; border-bottom: 2px solid var(--line); }
.brief .bh b { font-size: 16px; color: var(--ink); }
.brief .bh .when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.brief .g { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
.brief .g:last-child { border-bottom: none; }
.brief .g .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.brief .g .task { font-weight: 800; font-size: 15px; color: var(--ink); }
.brief .g .task .n { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.brief .g .who { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14.5px; }
.brief .g .who a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; border: none; padding: 0; background: none; }
.brief .g .why { font-size: 13px; color: var(--muted); }
.brief .g .who.each { flex-direction: column; gap: 4px; }
.brief .g .who.each .one { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.brief .g .who .fact { font-size: 13px; color: var(--muted); font-weight: 400; }
.brief .g .btn { flex: 0 0 auto; min-height: 40px; font-size: 14px; }
.brief .g.quiet .task { color: var(--muted); }
/* The briefing pinned under the main chat's header (11-pinned-*): only the conversation under it scrolls */
.todo { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px max(16px, 2.5vw) 10px; border-bottom: 2px solid var(--line); background: var(--paper); position: relative; z-index: 3; }
.todo .tchip { font: inherit; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; white-space: nowrap; cursor: pointer; min-height: 36px; }
.todo .tchip .n { font-family: var(--mono); font-size: 12.5px; background: var(--yellow); border-radius: 999px; padding: 1px 7px; }
.todo .tchip.on { background: var(--lilac); border-color: var(--violet); box-shadow: 2px 2px 0 var(--violet); }
.todo .tchip.quiet { color: var(--muted); border-color: var(--line); font-weight: 700; }
.todo .tchip.quiet .n { background: var(--line); color: var(--muted); }
.todo .when { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.drop { position: absolute; left: max(16px, 2.5vw); top: calc(100% + 6px); width: min(620px, calc(100% - 32px)); z-index: 5; }
.drop .brief { box-shadow: 5px 5px 0 var(--ink); max-height: calc(100vh - 280px); overflow-y: auto; }
.drop .all { font: inherit; text-align: left; background: none; border: none; border-top: 1.5px solid var(--line); padding: 10px 16px 12px; font-size: 14px; font-weight: 700; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.case-main { position: relative; }
.mc-head.compact { padding-top: 14px; padding-bottom: 4px; }
.mc-head.compact h1 { font-size: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills:empty { display: none; }
.cpill { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--lilac); border: 2px solid var(--violet); border-radius: 999px; padding: 1px 2px 1px 10px; white-space: nowrap; max-width: 100%; }
.cpill .x { font: inherit; width: 26px; height: 26px; border: none; background: none; color: var(--muted); cursor: pointer; }
@media (max-width: 600px) {
  .brief .g { flex-wrap: wrap; gap: 8px; }
  .brief .g .btn { margin-left: auto; }
  .todo { gap: 6px; padding: 8px 12px 10px; }
  .todo .tchip { font-size: 13px; padding: 4px 10px; }
  .todo .when { margin-left: 4px; }
  .mc-head.compact .sub { display: none; }
  .drop { left: 12px; width: calc(100% - 24px); }
}
.brand.brandbtn { flex-direction: row; align-items: center; gap: 8px; width: 100%; }
.brand.brandbtn .caret { font-size: 13px; color: var(--rail-text); }
.m2 { align-self: flex-start; max-width: min(640px, 94%); display: flex; flex-direction: column; gap: 4px; }

/* Sign in as a client, for test only (newsite/test_clients.py) */
.tc-band { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--pale); border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--text); }
.tc-band b { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tc-list { display: flex; flex-direction: column; gap: 10px; }
.tc-row { min-height: 64px; }
.tc-row .who { flex: 1 1 100%; }
.tc-row .tc-stage { flex: 1 1 auto; font-size: 14px; color: var(--muted); min-width: 0; }
.tc-back { align-self: flex-start; }
.tc-slot:not(:empty) { padding: 10px 16px 0; flex: 0 0 auto; }
.tc-slot .tc-band { padding: 8px 12px; }

/* The main chat's answer about clients: each client it names opens its chat */
.m2 .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.agent-client { border-style: solid; border-color: var(--line); color: var(--ink); text-decoration: none; }

.linkbox { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; }
.linkbox .acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Two threads on a client's page, Internal and Client (newsite/threads.py; the old app's tabs, Chat.jsx:271-274) */
.threads { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px max(16px, 2.5vw) 4px; }
.thr { font: inherit; font-size: 14px; font-weight: 700; min-height: 36px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.thr.on { border-color: var(--ink); background: var(--lilac); color: var(--ink); }
.thr .count { min-width: 20px; height: 20px; font-size: 12px; padding: 0 5px; }
.thr-lock { font-size: 13px; color: var(--muted); }
.aim .to b { color: var(--ink); }
.field.reply { resize: none; padding: 10px 0; line-height: 1.4; max-height: 168px; font-family: inherit; }
.m-agentwrap { align-self: flex-start; max-width: min(600px, 92%); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.m-agentwrap .m-agent { max-width: 100%; }
/* Her client reminders card (js/reminders.js): one line per client; a struck line stays readable, crossed out. */
.m-reminders .rem-line { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1.5px solid var(--line, #e6dfcf); cursor: pointer; }
.m-reminders .rem-line .rem-client { font-size: 15px; color: var(--ink); }
.m-reminders .rem-line .rem-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.m-reminders .rem-line.open .rem-text { display: block; -webkit-line-clamp: unset; }
.m-reminders .rem-line .rem-more { align-self: flex-start; }
.m-reminders .rem-line.struck .quote, .m-reminders .rem-line.struck .rem-client { text-decoration: line-through; opacity: .55; }
.m-reminders .rem-line.sent { cursor: default; }
