/* Portal (lane C): the contact menu (#p-menu) as the artifact draws it: a small modal at the top right of the page, over the portal. No inline style (CSP). */
.shade.pt-menu { justify-content: flex-end; align-items: flex-start; padding: 60px 16px 0; position: fixed; }
.shade.pt-menu .modal { width: min(320px, 96%); }
.shade.pt-menu .opt { margin: 4px 0; min-height: 44px; align-items: center; }
.shade.pt-menu .cap { margin: 0 0 8px; }
.shade.pt-menu .pt-push { margin-left: auto; }
.shade.pt-menu .foot .btn { min-height: 44px; }

/* The documents card (#ptDoc): "I do not have this" sits beside the file press and opens its short box in place, with no script (a hidden checkbox and its label). */
.pt-na { position: relative; display: grid; gap: 12px; }
.pt-na-t:not(:checked) ~ .pt-na-box { display: none; }
.pt-na-t:focus-visible + .pt-row2 label[for] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-na-t:checked + .pt-row2 label[for] { border-color: var(--accent); }
.pt-row2 > form { display: contents; }

/* B3 (persona review 30 Oct 2026): core.css answers to a container named "spec"; on the portal the whole window is that container, as on the firm pages (.nd-frame). */
.pt-frame { container-type: inline-size; container-name: spec; }

/* B4 (persona review 31 Oct 2026): in the artifact .app is one screen tall, so the toast's `position: absolute; bottom: 14px` is the bottom of the screen. On the portal .app is as tall as the page,
   so the answer to a press must sit in the WINDOW: fixed, centred, above the payments bar (as `.app.has-float .toast` lifts it, core.css:373). Portal only; core.css and the firm app are untouched. */
.pt-frame .toast { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: fit-content; max-width: min(520px, calc(100vw - 24px)); margin-inline: auto; transform: none; z-index: 60; overflow-wrap: anywhere; }
.pt-frame .app:has(.pt-dock) .toast { bottom: calc(var(--pt-toast-b, 84px) + env(safe-area-inset-bottom, 0px)); }
/* the page can scroll up past the line, so it never hides a button (Write to the firm) at the foot of a short page */
.pt-frame .app:has(.toast.show) .pt-wrap { padding-bottom: 96px; }

/* ---- Mobile review 31 Oct 2026 (docs/CLIENT-PORTAL-MOBILE-REVIEW-2026-10-31.md): portal only; core.css and the firm app are untouched ---- */

/* B6: four tabs on a 360 px phone. The short labels (the artifact's .pt-s) already show under 700 px; under 400 px the side padding and the gap shrink so Home, Payments, Documents and Messages
   all fit, and the page never scrolls sideways. A tab is never cut. */
@container spec (max-width: 400px) {
  .brand .pnav.pt-nav { padding: 0 6px; gap: 0; }
  .brand .pnav.pt-nav a { padding: 12px 6px 10px; gap: 3px; font-size: 14px; }
  .brand .pnav.pt-nav .bubble { min-width: 18px; padding-inline: 5px; }
  /* portal fix 5 (item 4): with a month published the row has five tabs (401 px at 360). The row scrolls INSIDE itself; the page never scrolls sideways. */
  .brand .pnav.pt-nav { overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain; }
  .brand .pnav.pt-nav::-webkit-scrollbar { display: none; }
  .brand .pnav.pt-nav a { flex: none; }
}

/* B2 + N1: while a field has the focus, or the keyboard has shrunk the visual viewport (portal.js sets html.pt-kbd), the bar leaves the foot of the window and sits in the page, so it never covers
   the field being typed in; the field and its Save keep clear of the foot of the window. */
.pt-frame:has(:is(textarea, input:not([type=file], [type=checkbox], [type=radio])):focus) .pt-dock,
html.pt-kbd .pt-dock { position: static; }
.pt-field textarea { scroll-margin-bottom: 72px; }
.pt-dock .pt-unsent { flex: 1 1 auto; }
.pt-dock .pt-sent, .pt-dock .pt-unsent { min-height: 0; }

/* B7: the presses on a payment card are 44 px high (the artifact draws "Add a note" and "Not mine" as .btn); the whole grey line opens them. */
details.pt-step { display: block; padding: 0; }
details.pt-step > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; padding: 0 10px; border-radius: var(--r-ctl); }
details.pt-step > :not(summary) { margin: 8px 10px 0; }
details.pt-step[open] { padding-bottom: 10px; }
.pt-step > summary::-webkit-details-marker { display: none; }

/* N6 (Card 6: now one form): "Something else" is a chip (the artifact's data-pt="else"); its field opens behind it, inside the answer's form. A hidden checkbox and its label, no script needed. */
.pt-wrap:not(:has(.pt-else-t:checked)) .pt-else-form { display: none; }
.pt-chip-else { position: relative; }
.pt-else-t { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }          /* the chip is the press; the box is its own state (checked = the field is open) */
.pt-chip-else:has(.pt-else-t:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pt-chip-else:has(.pt-else-t:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-pick input[type=file] { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); min-height: 0; padding: 0; border: 0; }          /* the file chooser covers its press: one 44 px target */
details.pt-qd > :not(summary) { margin: 8px 16px 0; }
details.pt-qd[open] { padding-bottom: 16px; }
details.pt-qd .pt-field input:not([type=radio]) { min-height: 44px; }
details.pt-qd fieldset label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
details.pt-qd fieldset input[type=radio] { width: 22px; height: 44px; }
.pt-else-form textarea { font-size: 16px; min-height: 88px; }          /* 16 px so a phone does not zoom in on the field */
label.btn.pt-chip { cursor: pointer; }

/* N7: the Home head. Under 420 px the firm's name takes its own row and the two facts sit under it, so a long firm name never wraps to five lines beside "n to do" and the due date. */
@container spec (max-width: 420px) { .pt-phead > b { flex: 1 1 100%; } }

/* the public entry /clientportal/ (owner asked 1 Nov 2026): the press sits one step under the field, like the code page */
.pt-entry .pt-row2 { margin-top: 12px; }
/* .pt-logo moved to core.css (settings-s3: one logo part) */

/* ---- Card 6 (owner, 5 Nov 2026; mock p45): the short list and one question alone. Portal only. ---- */
.pt-start { width: 100%; justify-content: center; min-height: 48px; }
.pt-qhead { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.pt-qhead .btn { min-height: 44px; }
.pt-ans { display: grid; gap: 12px; }
.pt-check { position: relative; display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-size: 14px; cursor: pointer; }
.pt-check input { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); margin: 0; opacity: 0; cursor: pointer; }          /* the whole line is the press; the box below is only its picture */
.pt-tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 4px; color: transparent; background: var(--bg); }
.pt-tick .i { width: 14px; height: 14px; }
.pt-check input:checked + .pt-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.pt-check input:focus-visible + .pt-tick { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-wrap:has(.pt-ans) .btn, .pt-wrap:has(.pt-ans) label.btn { min-height: 44px; }
.pt-quiet { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-start; }
.pt-quiet > .btn { min-height: 44px; }
.pt-quiet > details.pt-qd { flex: 0 1 auto; }
.pt-quiet > details.pt-qd[open] { flex: 1 1 100%; }
.pt-quiet details.pt-qd > summary.btn { list-style: none; }
details.pt-fold { background: var(--bg); }
details.pt-fold > .pt-item > div > .listbtn { padding-left: 16px; padding-right: 16px; }
details.pt-fold > .pt-item:last-child > div > .listbtn { padding-bottom: 16px; }
details.pt-fold > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
details.pt-fold > summary::-webkit-details-marker { display: none; }
details.pt-fold[open] > summary .i { transform: rotate(90deg); }
.pt-dock .btn { min-height: 44px; }
@container spec (max-width: 480px) { .pt-dock { gap: 8px; } .pt-dock .pt-prog { flex: 1 1 100%; } }          /* a phone: the progress takes the first row, Skip for now and Send my answers sit together under it */

/* ---- Portal redesign (owner p50 + p51, 5 Nov 2026; docs/mocks/portal-redesign/PLAN.md). Portal only; core.css and the firm app are untouched. ---- */

/* The page parts: one column on a phone (the artifact's order); the side card follows the work; the rail of questions is a wide-screen part. */
.pt-lay, .pt-main { display: grid; gap: 12px; min-width: 0; align-content: start; }
.pt-lay { gap: 16px; }
.pt-rail { display: none; }
.pt-side .pt-paper { gap: 12px; }
.pt-side .pt-phead > b { flex: 1 1 100%; }          /* the card's name on its own line, the due date under it */
.pt-frame main .btn, .pt-frame main label.btn, .pt-frame main summary.btn { min-height: 44px; }          /* every press in the portal is a 44 px target (COMPONENTS.md), not only on one question */

/* "How this works" and "Here you can": a small heading, then one icon and one line per item (owner rule 17: organised, never a paragraph). */
.pt-does { display: grid; gap: 8px; }
.pt-does-h { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pt-does ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-does li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink); }
.pt-does li .i { flex: none; margin-top: 2px; color: var(--accent); }

/* The preview line under the brand bar: one line, the eye, the words. */
.pt-preview { display: flex; align-items: center; gap: 8px; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.pt-preview .i { flex: none; }

/* /clientportal: one card. The firm's mark (its logo, or its first letter in the firm's colour), the title, what this page is, what you can do, one field, one press. */
.pt-wrap:has(> .pt-sign) { max-width: 520px; padding-top: 24px; }
.pt-sign { display: grid; gap: 16px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm, 0 1px 3px rgba(20, 20, 40, .06)); }
.pt-sign-firm { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pt-firmmono { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 700; font-size: 18px; }
.pt-firmlogo { flex: none; height: 40px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; background: #fff; }
.pt-sign .pt-title { font-size: 22px; letter-spacing: -.01em; }
.pt-sign .pt-entry { display: grid; gap: 4px; }
.pt-sign .pt-field { justify-items: stretch; }
.pt-sign .pt-field input { min-height: 44px; font-size: 16px; }
.pt-sign .pt-row2 .btn { min-height: 44px; }
.pt-sign-answer { display: flex; min-height: 0; padding: 10px 12px; margin: 0; font-size: 13px; }
.pt-sign-trust { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-2); }

/* Add a file: the press, then the kit's dialog with the kit's file control. It opens with the script (portal.js: .show, moved into one host so no container clips it) and
   without it (#id, :target). The press is one 44 px target. */
.pt-upbtn { min-height: 44px; }
.pt-upform { display: contents; }
.pt-upform .shade, .pt-host .shade { position: fixed; inset: 0; z-index: 100; padding: 16px; padding-top: 8vh; overflow: auto; align-items: flex-start; }
.pt-upform .shade:target { display: flex; }
.pt-upform .modal .drop { margin: 8px 0 0; }
.pt-upform .modal .drop .btn { min-height: 44px; margin-top: 8px; }
.pt-upform .modal .foot .btn, .pt-upform .modal .mhead .iconbtn { min-height: 44px; min-width: 44px; justify-content: center; }
.pt-upform .modal .drop-file { margin-top: 8px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pt-host { position: static; background: none; min-height: 0; }
.pt-upform .drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; z-index: 1; }          /* the whole drop zone is the press: a tap anywhere opens the chooser, a file dropped on it is taken */
.pt-upform .drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* one primary per scene: while "Something else" is open its Save is the step, so Add a receipt reads as a secondary press until it closes */
.pt-main:has(.pt-else-t:checked) .pt-upbtn.pri { background: var(--bg); color: var(--ink); border-color: var(--line-2); }

/* A wide screen (the portal is the "spec" container): ONE inner width of 1120 px for the brand bar, the preview line, the tabs, the page and the bar at the foot,
   so the firm's name, the tabs and the work share one left edge and the bar ends on the work's right edge (rule 14). */
@container spec (min-width: 1024px) {
  .pt-frame .brandbar, .pt-frame .pt-preview, .brand .pnav.pt-nav, .pt-frame .pt-dock { padding-inline: max(24px, calc((100% - 1120px) / 2)); }
  /* Owner note 4c (check 160, 10 Nov 2026): on a laptop "Send my answers" sat at the far right, away from the work. The bar's button now ends on the work column's right edge (the 720 px column every page uses), not the side card's. */
  .pt-frame .pt-dock { padding-inline-end: max(24px, calc(100% - max(24px, (100% - 1120px) / 2) - 720px)); }
  .pt-wrap:has(> .pt-lay-side), .pt-wrap:has(> .pt-lay-rail) { max-width: calc(1120px + 48px); padding: 28px 24px 32px; }
  /* F3 (owner, 10 Nov 2026, Check 138): every page that has no side card (Financials, the empty and state pages, Documents with nothing to do) sat centred in the 640 px phone column while the menu sat on the 1120 px grid.
     Now they sit on the same grid: the same left edge as the menu, the same 720 px work column as the pages with a side card. A phone is untouched (this block is the wide screen only). */
  .pt-wrap:not(:has(> .pt-sign)):not(:has(> .pt-lay-side)):not(:has(> .pt-lay-rail)) { max-width: calc(1120px + 48px); padding: 28px 24px 32px; }
  .pt-wrap:not(:has(> .pt-sign)):not(:has(> .pt-lay-side)):not(:has(> .pt-lay-rail)) > * { max-width: 720px; width: 100%; justify-self: start; }
  .pt-lay-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .pt-lay-rail { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; }
  .pt-lay-side > .pt-main, .pt-lay-rail > .pt-main { max-width: 720px; width: 100%; }
  .pt-side, .pt-rail { position: sticky; top: 16px; align-self: start; }
  .pt-rail { display: grid; gap: 8px; }
  .pt-rail-h { font-size: 13px; color: var(--ink-2); padding: 0 2px; }
  .pt-rail .pt-list { max-height: calc(100vh - 230px); overflow: auto; }
  .pt-rail .listbtn.pt-line { align-items: center; min-height: 52px; }
  .pt-rail .pt-item.is-open > .listbtn { box-shadow: inset 3px 0 0 var(--accent); }
  .pt-rail-ok { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
  .pt-title { font-size: 22px; letter-spacing: -.01em; }
  .pt-lead { font-size: 15px; }
  .pt-q { font-size: 17px; }
  .pt-wrap:has(> .pt-sign) { padding-top: 56px; }
  .pt-sign { padding: 28px; }
  .pt-does li { padding: 16px; }
}

/* ---- Portal redesign follow-up (client persona review 5 Nov 2026) ---- */

/* The firm card is one part and shows ONCE on a phone (Home); the other tabs keep their own work and Write to <firm> stays on Messages. A wide screen keeps it beside every page. */
@container spec (max-width: 1023px) { .pt-side:not(.pt-side-home) { display: none; } }

/* The bar sits at the foot of the window, not under short content: the page is as tall as the window, the work takes the room, the bar ends it (it stays sticky when the page is longer). */
.pt-frame .app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pt-frame .app > main { flex: 1 0 auto; display: flex; flex-direction: column; }
.pt-frame .app > main > .pt-wrap { flex: 1 0 auto; width: 100%; }
.pt-frame .app > main > .pt-dock { flex: none; }

/* the client's own note under an answer in the answered list */
.pt-note { display: block; margin-top: 2px; color: var(--ink-2); font-style: normal; overflow-wrap: anywhere; }

/* the preview line's way back */
.pt-preview .lnk { margin-left: auto; font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
/* the code screen: the resend form holds only a hidden input (its press sits in the row under the field), so it takes no room in the card's grid */
.pt-sign > #pt-resend-form { display: none; }
.pt-sign > #pt-code-form .pt-field { gap: 6px; }

/* Owner check 65 (5 Nov 2026): the question is what the eye lands on. The question and its choices are ONE panel on the accent tint (the firm's colour), the payment above it a quiet fact line. Same on the phone and the wide screen. */
.pt-payline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; color: var(--ink-2); }
.pt-payline b { font-weight: 600; color: var(--ink); }
.pt-ask { display: grid; gap: 10px; padding: 16px; background: var(--accent-soft); border-radius: var(--r-card); min-width: 0; }
.pt-ask-l { font-size: 12px; font-weight: 600; color: var(--accent); }
.pt-ask .pt-q { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.pt-ask .pt-ask-h { color: var(--ink-2); font-size: 13px; }
.pt-ask .btn.pt-chip:not(.on) { background: var(--surface); }
@media (min-width: 900px) { .pt-ask { padding: 20px; } .pt-ask .pt-q { font-size: 22px; } }

/* ONE composer (owner, 5 Nov 2026): a card with a label, a textarea with room, one foot row 12 px under it (hint left, the primary right). */
.pt-compose { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.pt-compose .pt-field { justify-items: stretch; }
.pt-compose textarea { min-height: 96px; padding: 10px 12px; font-size: 16px; line-height: 1.45; resize: vertical; }
.pt-compose-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pt-compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-compose-foot .sp { flex: 1; }
.pt-compose-foot .btn { min-height: 44px; }
@media (max-width: 520px) { .pt-compose { padding: 12px; } .pt-compose-foot .pt-meta { flex: 1 1 100%; } .pt-compose-foot .btn { margin-left: auto; } }

/* Check 73 (owner, 7 Nov 2026) as a class: a portal page's wrap fills the window (flex: 1 0 auto above), but its rows and every state card (.pt-empty: "That is everything", paused, closed,
   nothing to answer) sit at the top at their own height; nothing is stretched into tall empty gaps. */
.pt-frame .app > main > .pt-wrap { align-content: start; }
.pt-empty { align-content: start; }
/* Check 73: an answered line leads with the answer at full strength (the portal's own bold line), the payment under it as the quieter small line */
.pt-item.is-done > .listbtn.pt-ans .pt-what > b, .listbtn.pt-ans .pt-what > b { color: var(--ink); font-weight: 600; }
/* Check 104: the portal's "type this first" line under a box (portal.js ptNeed) */
.need-line { color: var(--bad); font-size: 13px; line-height: 18px; margin: 4px 0 0; flex-basis: 100%; }

/* Financials (ON-05, artifact #p-fin): the published month inside the portal. The artifact's own classes (.ctrls .tabs .sel2 .docprev .t) come from core.css. */
.pt-fin { padding: 0 0 16px; }
.pt-fin .ctrls { flex-wrap: wrap; }
.pt-fin .pf-cover { padding: 28px; background: var(--bg); min-height: 200px; margin-bottom: 12px; }
.pt-fin .pf-n { font-size: 18px; }
.pt-fin .pf-t1 { font-size: 36px; font-weight: 700; color: var(--accent); margin: 10px 0; }
.pt-fin .pf-m { font-size: 16px; }
.pt-fin .pf-page { padding: 20px; background: var(--bg); margin-bottom: 12px; }
.pt-fin .pf-h { font-size: 22px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.pt-fin .pf-h2 { margin: 12px 16px 8px; }
.pt-fin .pf-m2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 16px; }
.pt-fin .pf-m2 > div { background: var(--surface-2); border-radius: var(--r-ctl); padding: 10px 12px; }
.pt-fin .pf-m2 dt { font-size: 13px; }
.pt-fin .pf-m2 dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.pt-fin .pf-t th.r, .pt-fin .pf-t td.r { text-align: right; }
/* PORTAL-PL item 3 (design audit 11 Nov 2026): core.css gives every .tscroll table a 760 px floor, but this table has three columns and sits in the 720 px work column (less the box's padding), so on a laptop the last column was cut ("A$2,98")
   while the page had free room. Its natural width is a name and two figures: no floor here; the box still scrolls inside itself (core.css .tscroll overflow-x) if a long name ever needs the room. */
.pt-fin .tscroll table.t.pf-t { min-width: 0; width: 100%; }
.pt-fin .pf-t tr.is-head th { text-align: left; font-weight: 600; color: var(--accent); padding-top: 14px; border-bottom: 1px solid var(--line); }
.pt-fin .pf-tabs { flex-wrap: wrap; max-width: 100%; }      /* N8: the tab row never runs past a phone's width */
.pt-fin .pf-t tr.is-total td { font-weight: 600; border-top: 1px solid var(--line); }
.pt-fin .pf-cap { padding: 6px 16px; }
@media (max-width: 640px) { .pt-fin .pf-t1 { font-size: 28px; } .pt-fin .sel2 { max-width: 100%; } }
.pt-fin .pf-tabs a { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--bg); height: 26px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; line-height: 18px; }
.pt-fin .pf-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) { .pt-fin .pf-tabs a { min-height: 44px; height: auto; } }

/* q117 item 7 (owner note on Decisions card 117, 11 Nov 2026: "7 to do on home screen is not visible; maybe some glow"): the count of what is still open is the first thing the eye lands on.
   It uses the product's own gentle highlight (nd.css .nd-glow: three soft pulses when the page opens, no loop; a still ring with reduced motion) in the accent colour the chip already has,
   a little larger than the other facts, and keeps a quiet ring afterwards. Light, dark and 390 px share these tokens; nothing new in colour. */
.nd-glow[data-glow="attn"] { --glow: var(--accent); }
.pt-lead-count { font-size: 14px; min-height: 32px; padding: 4px 12px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
/* q117: a note's link is a plain inline link inside the grey item and may be a long address */
.pt-does a { overflow-wrap: anywhere; min-height: 0; }
/* F0 (design audit D, 11 Nov 2026): the firm's legal line is the foot of the page column: the last child of .pt-wrap, over the bar's own hairline, the quiet .pt-meta line with the firm's name in bold.
   On a short page it sits at the bottom of the window, on a long one right after the content; with a bar under the column it sits above the bar (the column's 96 px padding). Nothing set: no foot. */
.pt-frame .app > main > .pt-wrap:has(> .pt-foot) { display: flex; flex-direction: column; }
.pt-frame .app > main > .pt-wrap > .pt-foot { margin-top: auto; width: 100%; max-width: none; flex: none; border-top: 1px solid var(--line); padding-top: 12px; }
.pt-frame .app > main > .pt-wrap:has(> .pt-foot) > :not(.pt-foot) { flex: none; }
.pt-wrap > .pt-foot .pt-meta b { color: var(--ink); font-weight: 600; }
/* core.css gives every page 80 px under it for the artifact's own page; the portal ends where its column ends, so a short page no longer scrolls */
body:has(.pt-frame) { padding-bottom: 0; }
/* F7 (design audit D, 11 Nov 2026): the person's initials open the menu (Sign out, WhatsApp): a 44 px press with readable letters, drawn as the artifact draws it (initials on the bar). The margin gives the extra room back so the bar keeps its height. */
.pt-frame .brandbar button.who { width: 44px; height: 44px; margin: -12px -12px -12px 0; font-size: 13px; border-radius: var(--r-ctl); }
/* F9 (design audit D, 11 Nov 2026): status words on the soft fills read at 4.5:1 or more. The green ink is the kit's --ok stepped toward --ink (tokens only, light and dark); the grey notes use --ink-2, not the faint --ink-3. */
.pt-frame { --pt-ok-ink: color-mix(in srgb, var(--ok) 55%, var(--ink)); }
.pt-frame .pt-ok, .pt-frame .cmp.eq, .pt-frame .pt-file.is-ok b, .pt-frame .pt-rail-ok, .pt-frame .pt-mark:not(.is-off) { color: var(--pt-ok-ink); }
.pt-frame .pt-ask .pt-ask-h { color: color-mix(in srgb, var(--ink-2) 50%, var(--ink)); }
.pt-fin .pf-cap { color: var(--ink-2); }
/* F10 (design audit D, 11 Nov 2026; rule 14): on a question page (the rail layout) the bar's right edge is the work column's right edge: the left edge of the grid + the 320 px rail + the 32 px gap + the 720 px column. */
@container spec (min-width: 1024px) { .pt-frame .app:has(.pt-lay-rail) .pt-dock { padding-inline-end: max(24px, calc(100% - max(24px, (100% - 1120px) / 2) - 352px - 720px)); } }
