/* Client portal: light, squared dashboard layout. Phone first. Everything is scoped to .portal
   (and body.is-home), so the questionnaire's own look in intake.css is untouched. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fraunces.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-tight.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --p-paper: #F8F7F7;
  --p-white: #FFFFFF;
  --p-stone: #EEECE9;
  --p-stone-2: #F4F2EF;
  --p-ink: #23201E;
  --p-muted: #6E645D;
  --p-rule: #DED9D3;
  --p-red: #8B0000;
  --p-red-dk: #730000;
  --p-ok: #2F6B47;
  --p-wait: #A86A12;
  --p-need: #B4231F;
  --p-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --p-sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --p-gap: 16px;
  --p-pad: 22px;
}
body.is-home { background: var(--p-paper); color: var(--p-ink); }
body.is-home > header { display: none; }
.home-link { background: none; border: 1px solid #555; color: #fff; border-radius: 4px; min-height: 36px; padding: 0 14px; font: inherit; font-size: 14px; cursor: pointer; margin-left: auto; }

.portal { font: 400 15px/1.5 var(--p-sans); color: var(--p-ink); -webkit-font-smoothing: antialiased; }
.portal .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.portal h1, .portal h2, .portal p { margin: 0; }
.portal a { color: inherit; }
.portal [data-fill]:empty:not(i) { display: none; }
.portal .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portal .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.portal .eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1.3 var(--p-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--p-muted);
}
.portal .eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--p-muted); opacity: .55; flex: none; }
.portal .label { font: 500 11px/1.35 var(--p-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); }
.portal .display { font: 400 48px/1.02 var(--p-serif); letter-spacing: -.025em; color: var(--p-ink); }
.portal .title { font: 400 24px/1.15 var(--p-serif); letter-spacing: -.01em; color: var(--p-ink); }
.portal .lede { color: var(--p-muted); font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.portal .small { color: var(--p-muted); font-size: 14px; }
.portal .none { color: var(--p-muted); font-size: 14px; padding-top: 16px; }

/* app bar */
.portal .appbar { background: var(--p-white); border-bottom: 1px solid var(--p-rule); }
.appbar-in { max-width: 1520px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.appbar .logo img { height: 32px; width: auto; display: block; }
.appbar .who { text-align: right; line-height: 1.25; min-width: 0; }
.appbar .who .label { display: block; }
.appbar .who strong { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

.portal .wrap { max-width: 1520px; margin: 0 auto; padding: 32px 16px 24px; }
.portal .stack { display: grid; gap: var(--p-gap); align-content: start; min-width: 0; }
.portal .section { margin-top: var(--p-gap); }

/* panels */
.portal .panel { background: var(--p-white); border: 1px solid var(--p-rule); border-radius: 2px; padding: var(--p-pad); min-width: 0; }
.portal .panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--p-rule); }
.portal .panel-head .title { margin-top: 12px; }
.portal .panel-head .meta { color: var(--p-muted); font-size: 13px; white-space: nowrap; }

/* buttons */
.portal .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid var(--p-rule); border-radius: 4px;
  background: var(--p-white); color: var(--p-ink); font: 500 15px/1.2 var(--p-sans);
  text-decoration: none; cursor: pointer; flex: none;
}
.portal .btn:hover { border-color: var(--p-ink); }
.portal .btn.primary { background: var(--p-red); border-color: var(--p-red); color: #fff; }
.portal .btn.primary:hover { background: var(--p-red-dk); border-color: var(--p-red-dk); }
.portal .btn.wide { width: 100%; }
.portal .btn.go { justify-content: space-between; }
.portal .btn.go::after { content: "\2192"; font-size: 17px; line-height: 1; }
.portal .btn[disabled] { opacity: .45; cursor: not-allowed; }
.portal .btn:focus-visible, .portal summary:focus-visible, .portal input:focus-visible, .portal a:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }

/* status: a small square, then the words */
.portal .status, .portal .pill, .portal .when {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--p-ink); white-space: nowrap;
}
.portal .status::before, .portal .pill::before, .portal .when::before { content: ""; width: 7px; height: 7px; background: var(--p-muted); flex: none; }
.portal .status.ok::before, .portal .pill.done::before { background: var(--p-ok); }
.portal .status.wait::before, .portal .pill::before { background: var(--p-wait); }
.portal .status.need::before { background: var(--p-need); }
.portal .pill.lock { color: var(--p-muted); }
.portal .pill.lock::before { background: transparent; box-shadow: inset 0 0 0 1px var(--p-muted); }

/* intro + next up */
.intro { display: grid; gap: var(--p-gap); }
.greet { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 4px 0; }
.greet .display { margin-top: 18px; }
.greet .lede { margin: 16px 0 0; font-size: 16px; max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--p-rule); }
.facts div { padding: 14px 12px 0 0; }
.facts div + div { border-left: 1px solid var(--p-rule); padding-left: 12px; }
.facts dt { font: 500 11px/1.2 var(--p-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); }
.facts dd { margin: 6px 0 0; font-size: 13px; font-weight: 500; }
.portal .next { display: flex; flex-direction: column; }
.portal .next .title { font-size: 26px; margin-top: 14px; }
.portal .next .body { margin-top: 10px; color: var(--p-muted); font-size: 15px; max-width: 44ch; }
.portal .next .act { margin-top: auto; padding-top: 24px; }
.portal .next .btn { width: 100%; min-height: 52px; padding: 0 22px; }

/* stat strip: the hairlines are a 1px grid gap */
.portal .stats {
  margin-top: var(--p-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--p-rule); border: 1px solid var(--p-rule); border-radius: 2px; overflow: hidden;
}
.portal .stat { position: relative; background: var(--p-white); padding: 20px 18px 18px; display: flex; flex-direction: column; min-width: 0; }
.portal .stat .value { font: 400 30px/1.05 var(--p-serif); letter-spacing: -.02em; margin-top: auto; padding-top: 16px; overflow-wrap: anywhere; }
.portal .stat .value small { font: 400 15px/1 var(--p-sans); letter-spacing: 0; color: var(--p-muted); margin-left: 6px; white-space: nowrap; }
.portal .stat .sub { margin-top: 10px; font-size: 12px; color: var(--p-muted); }
.portal .stat .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--p-stone); }
.portal .bar > i, .portal .meter > i { display: block; height: 100%; width: 0; background: var(--p-ink); transition: width .3s; }

/* the five phases: a column on a phone, a row of five on a wide screen */
.phases { list-style: none; margin: 0; padding: 0; counter-reset: ph; }
.phases li { position: relative; counter-increment: ph; padding: 0 0 26px 34px; }
.phases li:last-of-type { padding-bottom: 0; }
.phases li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--p-rule); }
.phases li:last-of-type::before { display: none; }
.phases li.done::before { background: var(--p-ink); }
.phases .mk { position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border: 1px solid var(--p-rule); background: var(--p-white); }
.phases li.done .mk { background: var(--p-ink); border-color: var(--p-ink); }
.phases li.now .mk { border-color: var(--p-red); }
.phases li.now .mk::after { content: ""; position: absolute; inset: 3px; background: var(--p-red); }
.phases b { display: block; font-size: 15px; font-weight: 500; }
.phases b::before { content: counter(ph, decimal-leading-zero); font: 500 11px/1 var(--p-sans); letter-spacing: .16em; color: var(--p-muted); margin-right: 10px; }
.phases li:not(.done):not(.now) b { color: var(--p-muted); }
.phases .what { display: block; color: var(--p-muted); font-size: 13px; margin-top: 4px; max-width: 52ch; }
.phases .when { margin-top: 8px; }
.phases .when:empty { display: none; }
.phases li.done .when::before { background: var(--p-ok); }
.phases li.now .when::before { background: var(--p-wait); }
.phases li:not(.done):not(.now) .when { color: var(--p-muted); }
.phases li:not(.done):not(.now) .when::before { background: transparent; box-shadow: inset 0 0 0 1px var(--p-muted); }

/* terms + deposit */
.points { list-style: none; margin: 0 0 18px; padding: 0; color: var(--p-muted); font-size: 14px; }
.points li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--p-rule); }
.points li:first-child { border-top: 0; padding-top: 0; }
.points li:first-child::before { top: 8px; }
.points li[hidden]:first-child + li { border-top: 0; padding-top: 0; }
.points li[hidden]:first-child + li::before { top: 8px; }
.points li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--p-ink); }
.portal .terms-link { margin: 0 0 18px; font-size: 14px; font-weight: 500; }
.terms-link a { text-decoration: underline; text-decoration-color: var(--p-rule); text-underline-offset: 4px; }
.terms-link a:hover { text-decoration-color: var(--p-ink); }
.terms-date { font-weight: 400; color: var(--p-muted); font-size: 13px; margin-left: 6px; }
.portal .accepted { margin: 12px 0 0; font-size: 13px; color: var(--p-muted); }
.portal .offer-note b { font-weight: 500; color: var(--p-ink); }

.accept { display: grid; gap: 10px; }
.accept .lbl { font: 500 11px/1.3 var(--p-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); }
.portal .accept input[type=text] { border: 1px solid var(--p-rule); border-radius: 2px; background: var(--p-white); font: 400 16px/1.3 var(--p-sans); padding: 12px 14px; }
.portal .accept input[type=text]:focus { border-color: var(--p-ink); outline: none; }
.portal .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.portal .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--p-ink); flex: none; }
.code summary { cursor: pointer; font-size: 14px; font-weight: 500; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-decoration-color: var(--p-rule); text-underline-offset: 4px; }
.code[open] { display: grid; gap: 8px; }
.portal .err-box { margin: 0; border-radius: 2px; background: #FBF1F0; border: 1px solid #EBCFCB; border-left: 2px solid var(--p-need); color: #6E1A14; font-size: 14px; }

/* the questionnaire step */
.meter { height: 2px; background: var(--p-stone); margin: 4px 0 10px; }
.portal .meter-label { margin: 0 0 18px; font-size: 13px; color: var(--p-muted); }

/* access steps */
.portal .intro-note { margin: -4px 0 4px; }
.checks { list-style: none; margin: 0; padding: 0; counter-reset: ck; }
.checks > li { counter-increment: ck; border-bottom: 1px solid var(--p-rule); padding: 18px 0; display: grid; gap: 8px; }
.checks > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ck { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "no what" ". st"; gap: 6px 12px; align-items: start; }
.ck .no { grid-area: no; font: 400 15px/1.5 var(--p-serif); color: var(--p-muted); font-variant-numeric: tabular-nums; }
.ck .no::before { content: counter(ck, decimal-leading-zero); }
.ck .check { grid-area: what; }
.ck .check b { font-weight: 500; }
.ck .status { grid-area: st; }
.ck .status[hidden] { display: none; }
.checks .how { display: block; color: var(--p-muted); font-size: 14px; padding-left: 42px; }

/* the "how to do it" under each step */
.howto { margin-left: 42px; }
.howto > summary { cursor: pointer; font-size: 14px; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; color: var(--p-ink); list-style: none; border: 1px solid var(--p-ink); padding: 0 14px; margin-top: 10px; }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::after { content: "\2193"; font-size: 13px; }
.howto[open] > summary { color: var(--p-ink); }
.howto[open] > summary::after { content: "\2191"; }
.howto[open] { background: var(--p-stone-2); border-left: 2px solid var(--p-ink); padding: 4px 16px 12px; margin-left: 0; }
.howto .sub { border-top: 1px solid var(--p-rule); }
.howto .sub > summary { cursor: pointer; font-size: 14px; font-weight: 500; min-height: 44px; display: flex; align-items: center; color: var(--p-ink); }
.howto ol { counter-reset: s; list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.howto ol li { counter-increment: s; position: relative; padding-left: 24px; font-size: 14px; }
.howto ol li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.howto .note { margin: 8px 0 8px; font-size: 13px; color: var(--p-muted); }
.howto .note b { color: var(--p-ink); font-weight: 500; }
.howto .ae { font-weight: 500; overflow-wrap: anywhere; }
.howto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

/* "Why it all happens here": folded on a phone */
.why { padding: 0; }
.why > summary { cursor: pointer; list-style: none; min-height: 48px; padding: 14px var(--p-pad); display: flex; flex-direction: column; gap: 2px; }
.why > summary::-webkit-details-marker { display: none; }
.why > summary::after { content: "\2193"; position: absolute; right: var(--p-pad); font-size: 14px; }
.why { position: relative; }
.why[open] > summary::after { content: "\2191"; }
.why .why-p { padding: 0 var(--p-pad) 14px; margin: 0; max-width: 70ch; }
.why .why-p[hidden] { display: none; }

/* the "Stuck?" help line block, on the welcome and above the access steps */
.helpline { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--p-rule); border-left: 2px solid var(--p-red); background: var(--p-white); font-size: 15px; }
.helpline[hidden] { display: none; }
.helpline .hl-num { font-weight: 600; color: var(--p-red); white-space: nowrap; }
.howto .foldername { font-weight: 600; overflow-wrap: anywhere; }
.howto .bm-dl { margin: 8px 0 4px; }
.howto .bm-dl[hidden] { display: none; }
.howto .bm-dl .err-box { margin-top: 8px; padding: 10px 12px; }

/* the contact card in the phone step */
.vcard { margin-left: 42px; border: 1px solid var(--p-rule); padding: 16px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
.vc-mark { width: 48px; height: 48px; object-fit: contain; background: var(--p-stone); padding: 8px; display: block; }
.vc-text strong { display: block; font: 400 19px/1.2 var(--p-serif); }
.vc-text .vc-num { display: block; font-size: 13px; color: var(--p-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.vc-text p { font-size: 14px; color: var(--p-muted); margin-top: 8px; }
.vcard .vc-btn { grid-column: 1 / -1; justify-self: start; }
.vcard .err-box { grid-column: 1 / -1; }

/* contact */
.person { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; margin: 20px 0 16px; }
.person .face { width: 76px; height: 76px; object-fit: cover; object-position: 50% 25%; border-radius: 2px; background: var(--p-stone); }
.person .nm { font: 400 24px/1.1 var(--p-serif); letter-spacing: -.01em; }
.person .rl { color: var(--p-muted); font-size: 13px; margin-top: 6px; }
.contact .links { margin: 18px 0 0; border-top: 1px solid var(--p-rule); }
.contact .links a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--p-rule); text-decoration: none; font-size: 14px; min-width: 0; }
.contact .links a:last-child { border-bottom: 0; padding-bottom: 0; }
.contact .links a span { overflow-wrap: anywhere; }
.contact .links .ico { color: var(--p-muted); }
.contact .links a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--p-rule); }

/* files */
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--p-rule); }
.flist li:first-child { padding-top: 0; }
.flist li:last-child { border-bottom: 0; padding-bottom: 0; }
.flist .ft { width: 40px; height: 40px; background: var(--p-stone); display: grid; place-items: center; color: var(--p-muted); border-radius: 2px; }
.flist .nm { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist .sm { display: block; color: var(--p-muted); font-size: 12px; margin-top: 2px; }
.flist .dl { width: 40px; min-height: 40px; padding: 0; color: var(--p-muted); }

/* the handover waits, greyed, until the job is actually handed over */
.panel.locked .panel-body { opacity: .45; }
.panel.locked .btn { pointer-events: none; }

/* invoices */
.portal .table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.portal .table th { text-align: left; font: 500 11px/1 var(--p-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p-muted); padding: 4px 16px 14px 0; border-bottom: 1px solid var(--p-rule); }
.portal .table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--p-rule); vertical-align: middle; font-size: 14px; }
.portal .table tr:last-child td { border-bottom: 0; padding-bottom: 4px; }
.portal .table .r { text-align: right; padding-right: 0; }
.inv .amt { font: 400 20px/1 var(--p-serif); letter-spacing: -.01em; }
.inv .c-no strong { font-weight: 500; }
.inv .for-m { display: none; color: var(--p-muted); font-size: 13px; }
.inv .c-for, .inv .c-date { color: var(--p-muted); }
.inv .link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--p-rule); text-underline-offset: 4px; }
.inv .link:hover { text-decoration-color: var(--p-ink); }

.portal .foot { max-width: 1520px; margin: 0 auto; padding: 20px 16px 32px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--p-muted); font-size: 12px; }
.portal .foot .rule { flex-basis: 100%; height: 1px; background: var(--p-rule); margin-bottom: 8px; }

/* phone: invoices become stacked rows */
@media (max-width: 860px) {
  .inv thead { display: none; }
  .inv tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--p-rule); }
  .inv tr:first-child { padding-top: 0; }
  .inv tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .portal .inv td { padding: 0; border: 0; }
  .inv td.c-no { grid-column: 1; grid-row: 1; }
  .inv td.c-amt { grid-column: 2; grid-row: 1; text-align: right; }
  .inv td.c-st { grid-column: 1; grid-row: 2; }
  .inv td.c-pay { grid-column: 2; grid-row: 2; text-align: right; }
  .inv td.c-date { grid-column: 1 / -1; grid-row: 3; font-size: 13px; }
  .inv td.c-date:empty { display: none; }
  .inv td.c-for { display: none; }
  .inv .for-m { display: block; }
}

@media (min-width: 640px) {
  .ck { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "no what st"; }
  .ck .status { justify-self: end; }
  .howto[open] { margin-left: 42px; }
}

@media (min-width: 861px) {
  :root { --p-gap: 24px; --p-pad: 32px; }
  .appbar-in { height: 76px; padding: 0 48px; }
  .appbar .logo img { height: 44px; }
  .appbar .who strong { max-width: 420px; }
  .portal .wrap { padding: 56px 48px 40px; }
  .portal .display { font-size: 64px; }
  .greet .lede { font-size: 18px; }
  .facts { display: flex; flex-wrap: wrap; }
  .facts div { padding: 16px 32px 0 0; margin-right: 32px; }
  .facts div + div { padding-left: 32px; }
  .facts dd { font-size: 14px; }
  .portal .next .title { font-size: 30px; }
  .portal .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal .stat { padding: 28px 32px 26px; }
  .portal .stat .value { font-size: 44px; padding-top: 22px; white-space: nowrap; overflow-wrap: normal; }
  .portal .stat .value small { font-size: 18px; }
  .portal .stat .sub { font-size: 13px; }
  .phases { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .phases li { padding: 34px 24px 0 0; }
  .phases li::before { left: 14px; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .phases .mk { top: 0; }
  .phases b::before { display: block; margin: 0 0 10px; }
  .inv .c-for { width: 30%; }
  .portal .table .c-amt { padding-right: 48px; }
  .vcard { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; }
  .vcard .vc-btn { grid-column: auto; }
  .portal .foot { padding: 28px 48px 40px; }
}

@media (min-width: 1100px) {
  .intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--p-gap); margin-top: var(--p-gap); align-items: start; }
}
@media (max-width: 1099px) {
  .cols { display: grid; gap: var(--p-gap); margin-top: var(--p-gap); }
}
@media (prefers-reduced-motion: reduce) { .portal .bar > i, .portal .meter > i { transition: none; } }

/* the access checker's buttons (Test my setup, Send test email), photo notes, and the video box */
.atest, .vid { margin: 12px 0 0 42px; border: 1px solid var(--p-rule); background: var(--p-white); padding: 14px 16px; display: grid; gap: 8px; justify-items: start; }
.atest[hidden], .vid[hidden] { display: none; }
.atest .at-h, .vid .at-h { margin: 0; font-size: 15px; }
.atest .note, .vid .note { margin: 0; font-size: 14px; color: var(--p-muted); max-width: 62ch; }
.atest .small { margin: 0; font-size: 13px; color: var(--p-muted); }
.atest .small:empty { display: none; }
.atest.ok { border-left: 2px solid var(--p-ok); }
.atest.wait { border-left: 2px solid var(--p-wait); }
.atest.need { border-left: 2px solid var(--p-need); }
.atest[data-state="confirmed"] .btn, .atest[data-state="waiting"] .btn, .atest[data-state="clicked"] .btn,
.atest[data-state="limit"] .btn, .atest[data-state="no-number"] .btn, .atest[data-state="no-address"] .btn { display: none; }
.at-notes { margin: 0; padding-left: 18px; font-size: 14px; color: var(--p-ink); display: grid; gap: 4px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.vlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--p-rule); }
.vlist .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlist .sm { color: var(--p-muted); font-size: 12px; display: block; }
.vlist .rm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.vprog { display: grid; gap: 6px; width: 100%; }
.vprog[hidden] { display: none; }
.vprog .nm { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vprog .btn { justify-self: start; min-height: 36px; font-size: 13px; padding: 0 12px; }
.vid .btn { cursor: pointer; }
.vid .err-box { width: 100%; padding: 10px 12px; }
.vid .err-box[hidden] { display: none; }

/* the preview and the handover pack */
.preview .pv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.preview .pv-actions .btn { flex: 1 1 180px; }
.preview .pv-confirm { border-left: 2px solid var(--p-red); background: var(--p-stone-2); padding: 12px 16px; margin: 10px 0 0; }
.preview .pv-confirm .lede { margin: 0 0 10px; }
.preview .pv-changes { margin-top: 14px; }
.preview .pv-changes textarea { border: 1px solid var(--p-rule); border-radius: 2px; background: var(--p-white); font: 400 16px/1.45 var(--p-sans); padding: 12px 14px; width: 100%; resize: vertical; }
.preview .pv-changes textarea:focus { border-color: var(--p-ink); outline: none; }
.preview .pv-changes label { font-weight: 500; font-size: 14px; }
.preview .pv-changes .small { margin: 0; color: var(--p-muted); font-size: 13px; }
.preview .pv-pay { margin: 0 0 12px; color: var(--p-ink); }
.preview .pv-said { margin: 0; padding: 10px 14px; border-left: 2px solid var(--p-rule); color: var(--p-muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview .pv-said:empty { display: none; }
.preview [hidden] { display: none; }
.preview .pv-monthly { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--p-rule); }
.preview .pv-monthly .sub-title { margin: 0 0 6px; font: 600 16px/1.3 var(--p-sans); color: var(--p-ink); }
.preview .pv-monthly .lede { margin: 0 0 10px; }
.preview .pv-monthly .small { margin: 8px 0 0; font-size: 13px; }
.preview .pv-monthly .err-box { margin-top: 10px; padding: 10px 12px; }
.pack-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pack-list > li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--p-rule); font-size: 14px; color: var(--p-muted); justify-items: start; }
.pack-list > li:first-child { border-top: 0; padding-top: 0; }
.pack-list > li > b { color: var(--p-ink); font-weight: 600; font-size: 15px; }
.pack-list a { color: var(--p-ink); overflow-wrap: anywhere; }
.pack-list .bm-dl[hidden] { display: none; }
.gotit { display: grid; gap: 14px; justify-items: start; padding-top: 40px; }
.gotit .display { font-size: 40px; }

/* the quote (terms and Pay steps) */
.quote-box { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--p-rule); border-radius: 10px; font-variant-numeric: tabular-nums; }
.quote-box .eyebrow { margin: 10px 0 6px; }
.quote-box .eyebrow:first-child { margin-top: 0; }
.quote-box .qrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--p-rule); font-size: 14px; }
.quote-box .qrow b { font-weight: 500; white-space: nowrap; }
.quote-box .qtotal { font-weight: 600; }
.quote-box .qtotal b { font-weight: 600; }
