/* Bridge between the portal's existing form behaviour and the design language.
   The page keeps its own validation script, which paints a field with .vis-control--error, sets aria-invalid on it
   and shows the message paragraph that carries [data-vis-msg]. These rules give those states the look the design
   language gives .is-error and .error, and nothing else. Every rule sits under .portal. */
.portal .input.vis-control--error,
.portal .input[aria-invalid="true"] { border-color: var(--red-earth-ink); background: var(--red-earth-soft); }
.portal .error[hidden] { display: none; }
.portal .roster > li[hidden] { display: none; }
.portal .vh-focusable:not(:focus):not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portal .skip { position: absolute; left: var(--space-3); top: var(--space-3); z-index: 100; background: var(--yellow-zest); color: var(--ink); padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); font-weight: 700; }
.portal .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
/* On a phone the design keeps the initials and an icon-only sign-out on the brand row (undoing the library's
   wrapped session row); "Signed in as" and the button's words stay readable to a screen reader. */
@media (max-width: 680px) {
  .portal .hdr-in { flex-wrap: nowrap; row-gap: 0; }
  /* mockup .hdr-brand .hdr-name on a phone: 13 px, so the product name keeps to two lines beside the 44 px button */
  .portal .hdr-name { font-size: 13px; line-height: 18px; }
  .portal .hdr-who { flex: none; flex-wrap: nowrap; margin-left: auto; gap: var(--space-2); }
  .portal .hdr-who .w { display: block; position: absolute; flex: none; width: 1px; min-width: 0; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .portal .hdr .btn { width: var(--target-min); margin-left: 0; padding: 0; }
  .portal .hdr .btn span { display: none; }
}

/* several day lines inside one visit fact each get their own line */
.portal .visit-facts dd strong { display: block; font-weight: 600; }
/* on wider screens the facts sit in columns instead of one narrow strip down the left */
@media (min-width: 700px) {
  .portal .visit-facts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3) var(--space-6); align-items: start; }
}

/* long values (an email address) break inside their read-only box rather than outside it */
.portal .ro dd strong { overflow-wrap: anywhere; }

/* medical declaration: a question's follow-up sits under its own row; a chosen medicine is one bordered row */
.portal .q [data-follow-up] { flex: 1 0 100%; }
.portal .q [data-follow-up][hidden] { display: none; }
.portal .medrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3h) var(--space-4); border: 1.5px solid var(--line-mid); border-radius: var(--portal-radius); background: var(--surface); }
.portal .medrow-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* induction: the portal's own player keeps its saving and its no-skip rule; its frame, bar and notes take the design's */
.portal .vis-video { display: flex; flex-direction: column; gap: var(--space-3); }
.portal .vis-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--rail); border-radius: var(--portal-radius-lg); }
.portal .vis-progress { height: 10px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.portal .vis-progress__bar { height: 100%; border-radius: inherit; background: var(--portal-veridian); }
.portal .vis-video [data-progress-meta], .portal .vis-video [data-video-resynced] { color: var(--portal-muted); font-size: var(--text-support-size); line-height: var(--text-support-line); }
.portal .vis-video [data-video-stalled], .portal .vis-video [data-video-unsaved] { color: var(--red-earth-ink); }
.portal .vis-video [hidden] { display: none; }
.portal .vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2h); }
.portal .vrow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-mid); border-radius: var(--portal-radius); background: var(--surface); color: inherit; text-decoration: none; }
.portal .vrow span { color: var(--portal-muted); font-size: var(--text-support-size); line-height: var(--text-support-line); }
.portal a.vrow:hover { border-color: var(--ink); }

/* shell below 941 px: the design's journey bar sticks under the header and folds the visit card, the step list and
   the journey's links behind it. The layout's script adds .can-fold, so without it everything stays on screen. */
.portal .jtoggle { display: none; }
.portal .jsum-t { flex: 1 1 0; min-width: 0; }
.portal .jsum-t strong { display: block; font-size: var(--text-card-title-size); line-height: var(--text-card-title-line); font-weight: 700; overflow-wrap: anywhere; }
.portal .jsum-t span { font-size: var(--text-support-size); line-height: var(--text-support-line); font-weight: 600; color: var(--portal-subtle); }
@media (max-width: 940px) {
  /* a closed visit has no journey to fold: its visit card follows the notice, as before */
  .portal .shell > .side.is-closed { order: 2; }
  .portal .shell > .side.can-fold { position: sticky; top: 67px; z-index: calc(var(--z-portal-header) - 1); gap: 0; }
  /* an open panel taller than the screen scrolls inside itself, so its foot is never stuck below the fold */
  .portal .shell > .side.can-fold.open { max-height: calc(100dvh - 67px); overflow-y: auto; overscroll-behavior: contain; }
  .portal .side.can-fold .jtoggle { display: flex; align-items: center; gap: var(--space-2h); width: 100%; min-height: var(--target-min); padding: 0 2px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .portal .side.can-fold .jtoggle > .icon { flex: none; transition: transform var(--motion-base); }
  .portal .side.can-fold.open .jtoggle > .icon { transform: rotate(180deg); }
  .portal .side.can-fold .journey-h { display: none; }
  .portal .side.can-fold .seg-bar { margin: var(--space-2) 2px 2px; }
  .portal .side.can-fold:not(.open) > .visit,
  .portal .side.can-fold:not(.open) .tl,
  .portal .side.can-fold:not(.open) .journey-foot { display: none; }
  .portal .side.can-fold.open > .visit { order: 2; margin-top: var(--space-2h); }
}
@media (max-width: 680px) {
  .portal .shell > .side.can-fold { top: 71px; }
  .portal .shell > .side.can-fold.open { max-height: calc(100dvh - 71px); }
}
@media (min-width: 941px) {
  .portal .shell > .side { grid-column: 1; grid-row: 1; }
  .portal .shell > .main { grid-column: 2; grid-row: 1; }
}
.portal .main { display: flex; flex-direction: column; }
.portal .main-in { display: flex; flex-direction: column; }
.portal .screen > .bar { margin-top: auto; }

/* journey states the library does not draw: a step still to do, and approval in progress */
.portal .st.avail .st-s { color: var(--azure-ink); }
.portal .st.lock { cursor: default; }
.portal .gate.wait .gate-m { background: var(--ochre-soft); border: 1.5px solid var(--ochre); color: var(--ochre-ink); }
.portal .gate.wait span { color: var(--ochre-ink); }
.portal .journey-foot .btn[aria-disabled="true"] { background: var(--disabled-fill); border-color: var(--disabled-edge); color: var(--disabled-ink); cursor: not-allowed; }
.portal .journey-foot .btn[aria-current="page"] { background: var(--zest-soft); }
.portal .journey-h span.wait { color: var(--ochre-ink); }

/* step layout: two columns from 1121 px as the design has them. The "still needed" card leads the source, so it
   leads when they stack and is read first; from 1121 px the grid draws it on the right. */
@media (max-width: 1120px) {
  .portal .cols { display: flex; flex-direction: column; }
  .portal .cols > .first-narrow { position: static; }
}
@media (min-width: 1121px) {
  .portal .cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .portal .cols > .sticky { position: sticky; top: 87px; align-self: start; }
  .portal .cols > .first-narrow { grid-column: 2; grid-row: 1; }
  .portal .cols > .first-narrow ~ * { grid-column: 1; grid-row: 1; }
}
/* an in-page jump lands below the sticky header (and, below 941 px, the sticky journey bar) with the field's label in view */
html:has(> body.portal) { scroll-padding-top: 196px; }
@media (min-width: 941px) { html:has(> body.portal) { scroll-padding-top: 108px; } }
.portal .hero-pill .pill { background: var(--surface); }

/* the pass's "always available" provenance line under the visit reference */
.portal .pass-facts .pass-prov { font-weight: 400; color: var(--rail-ink); font-size: var(--text-support-size); line-height: var(--text-support-line); }

/* a finished step's card: the design's large round tile and 24 px head */
.portal .done-h { padding: var(--space-6); }
.portal .big-tile { width: 52px; height: 52px; border-radius: var(--radius-pill); }
.portal .big-tile .icon { width: 24px; height: 24px; }
.portal .done-h p { font-size: var(--text-label-size); line-height: var(--text-label-line); }
.portal .consent-body { white-space: pre-line; color: var(--graphite); font-size: var(--text-label-size); line-height: var(--text-label-line); }
.portal .cam-act { flex-wrap: wrap; gap: var(--space-2); }

/* step-hero: the kinds of thing a step covers */
.portal .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2h); }
.portal .chips span { display: inline-flex; align-items: center; gap: var(--space-1h); height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--tint-line); font-size: var(--text-support-size); font-weight: 600; color: var(--graphite); }

/* medical: the answered meter, then the other condition and the medication in the same card */
.portal .meter { display: flex; align-items: center; gap: var(--space-2h); font-size: var(--text-support-size); font-weight: 700; color: var(--graphite); white-space: nowrap; }
.portal .meter i { display: block; width: 120px; height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.portal .meter i b { display: block; width: 0; height: 100%; border-radius: var(--radius-pill); background: var(--portal-veridian); transition: width var(--motion-slow); }
.portal .m-other { display: grid; gap: var(--space-4h); margin-top: var(--space-5); }
.portal .m-meds { padding-top: var(--space-4h); border-top: 1px solid var(--line); }
.portal .m-sub { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); font-size: var(--text-body-size); line-height: var(--text-body-line); font-weight: 700; }
.portal .m-sub .icon { color: var(--azure-ink); }
.portal .m-help { margin: 0 0 var(--space-3); color: var(--graphite); font-size: var(--text-label-size); line-height: var(--text-label-line); }

/* induction: the design's player (C-PRT-10) around the portal's own player. The page's script swaps the browser's
   controls for the design's, moves the player's progress into the control row and its notes under it. */
.portal .ind-player { display: flex; flex-direction: column; }
.portal .ind-player [hidden] { display: none; }
.portal .ind-player .pl-screen > .vis-video { position: absolute; inset: 0; }
.portal .ind-player .pl-screen video { border-radius: 0; }
.portal .ind-player .pl-screen .vis-video__bar { display: none; } /* until the script moves it under the controls */
.portal .ind-player .pl-bar .vis-progress { flex: 1; min-width: 0; height: 8px; background: color-mix(in srgb, var(--on-ink) 20%, transparent); }
.portal .ind-player .vis-progress__bar { background: var(--yellow-zest); }
.portal .ind-player a.pl-btn { text-decoration: none; }
.portal .ind-player > .vis-video__bar { display: flex; flex-direction: column; padding: 0 18px; }
.portal .ind-player > .vis-video__bar > p { margin: 0 0 var(--space-3); }
.portal .ind-player [data-progress-meta] { display: none; }
.portal .ind-player [data-video-resynced] { color: var(--rail-ink-hover); font-weight: 600; }
.portal .ind-player [data-video-stalled], .portal .ind-player [data-video-unsaved] { color: var(--on-ink); font-weight: 700; }
/* mockup #i-again: an outline button on the dark screen */
.portal .pl-again { background: none; border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); color: var(--on-ink); }
.portal .pl-again:hover { background: color-mix(in srgb, var(--on-ink) 8%, transparent); border-color: var(--yellow-zest); }
.portal .ind-player .pl-again:focus-visible { outline-color: var(--focus-ring-on-dark); outline-offset: 2px; }
.portal .todo-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3h) var(--space-4); border-top: 1px solid var(--line); font-size: var(--text-label-size); line-height: var(--text-label-line); }
.portal .todo-list .todo-t { flex: 1; min-width: 0; }
.portal .todo-list strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.portal .todo-list a { display: flex; flex-direction: column; justify-content: center; min-height: var(--target-min); color: inherit; text-decoration: none; }
.portal .todo-list a strong { text-decoration: underline; text-underline-offset: 3px; }
.portal .todo-list .s { color: var(--portal-muted); font-size: var(--text-support-size); }
@media (min-width: 681px) { .portal .todo-list li { padding-left: var(--space-6); padding-right: var(--space-6); } }

/* property: the add form's quantity keeps the design's narrow box; a quantity rides beside the item's name */
.portal .qty-field { max-width: 150px; }
.portal .req-b { color: var(--red-earth-ink); border-color: var(--red-earth-edge); background: var(--red-earth-soft); font-weight: 600; }
.portal .qty { display: inline-grid; place-items: center; min-width: 24px; height: 22px; margin-left: var(--space-2); padding: 0 7px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-size: var(--text-small-size); font-weight: 700; vertical-align: 1px; }
.portal .prohibited-b { margin-bottom: var(--space-4); }
.portal .prohibited-b p { margin-top: var(--space-1); }
.portal form.card { margin: 0; }

/* the design's small button: 44 px tall on a phone, 38 px from 681 px */
.portal .btn-sm { min-height: var(--target-min); padding: 0 var(--space-3h); font-size: var(--text-label-size); line-height: var(--text-label-line); }
@media (min-width: 681px) { .portal .btn-sm { min-height: var(--portal-control-height-sm); } }
/* a side card's pill stays on its title line */
.portal .sticky .card-h .grow { flex: 1 1 0; }
/* the visit hub when every step is done: the pass, and any note about its code, take the pass's own width */
.portal .pass-slot { display: flex; flex-direction: column; gap: var(--space-3); width: var(--pass-width); max-width: 100%; }
/* mockup .ready-hero text box: flex 1, at least 240 px, so on a phone the tick sits above the title */
.portal .ready-hero > div { flex: 1 1 0; min-width: 240px; }
/* mockup: the pill stays on the card's title line */
.portal .ready-cols .card-h .grow { flex: 1 1 0; min-width: 0; }
/* mockup: one centred column up to 1120 px */
@media (max-width: 1120px) {
  .portal .ready-cols { display: flex; flex-direction: column; align-items: center; }
}

/* the pass page: the pass beside how to use it */
.portal .pass-cols { display: flex; flex-direction: column; gap: var(--space-5); align-items: center; }
.portal .pass-cols > .card { width: 100%; }
@media (min-width: 941px) {
  .portal .pass-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-6); }
}
.portal .pass-who div span { display: block; }
.portal .pass-qr #pass-qr svg { display: block; width: 176px; height: 176px; fill: var(--ink); }

/* a step page answered without its visit (a refused post): the step's own column, centred */
.portal .solo-b { max-width: calc(var(--portal-main-max) + 2 * var(--space-8)); margin: 0 auto; padding: var(--space-3h) var(--portal-gutter-phone) var(--space-7); }
@media (min-width: 941px) { .portal .solo-b { padding: var(--space-5) var(--space-8) var(--space-10); } }

/* a carried-over confirmation sits one page gap above the page's own .narrow column */
.portal .notice-b { padding-bottom: 0; }
/* a request reference on the error page is one unbroken string */
.portal .hero-t .mono-b { overflow-wrap: anywhere; }
/* a long medicine name breaks between syllables, not at any letter */
.portal .med-name { overflow-wrap: break-word; hyphens: auto; }
.portal .med-na .medlist { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* the journey's way back to the visit sits above the pass */
.portal .journey-foot { display: grid; gap: var(--space-2); }

/* a field the server refused keeps the error look on the re-rendered page (the tag helper's own class) */
.portal .input.input-validation-error { border-color: var(--red-earth-ink); background: var(--red-earth-soft); }
.portal .error { align-items: flex-start; }
.portal .error .icon { margin-top: 2px; }

/* ==== portal parity: interactions from the binding mockup (portal.html), owner ruling 2026-10-15 ==== */

/* motion: the screen rises in; the ring, segments and markers ease. The reduced-motion rule in styles.css stops all of it.
   Fill backwards only: a transform kept after the end would trap the fixed dialogs inside .screen (medication list). */
@keyframes portal-rise { from { opacity: 0; transform: translateY(8px); } }
.portal .main-in > .screen { animation: portal-rise 0.28s ease backwards; }
.portal .ring .fg { transition: stroke-dashoffset 0.45s ease; }
.portal .seg-bar i { transition: background-color 0.35s ease; }
.portal .tl li + li::before { transition: background-color 0.35s; }
.portal .st-m { transition: background-color 0.3s, border-color 0.3s, transform 0.3s; }
.portal .mk { transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.portal .items li { animation: portal-rise 0.25s ease backwards; }

/* fit: the content area fills the window (--fit, set by portal-parity.js) so a short step's bar ends at its bottom */
.portal .shell .main-in { min-height: var(--fit, auto); }
.portal .main-in > .screen { flex: 1 0 auto; }
.portal .screen > .screen:has(> .bar) { flex: 1 0 auto; }

/* toasts: top centre pill with a check, one at a time */
.portal .toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: calc(var(--z-portal-scrim) + 10); display: flex; flex-direction: column; gap: var(--space-2); width: max-content; max-width: calc(100vw - 24px); pointer-events: none; }
.portal .toasts:empty { display: none; }
.portal .toast { display: flex; align-items: center; gap: var(--space-3); max-width: 380px; padding: var(--space-3) var(--space-4h); border: 2px solid var(--portal-veridian); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-portal-lg); font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: 600; pointer-events: auto; animation: portal-rise 0.25s ease backwards; }
.portal .toast .icon { flex: none; color: var(--veridian-ink); }

/* the primary pulses twice once a step is finished (induction) */
@keyframes portal-pulse {
  0%, 100% { box-shadow: 0 2px 0 var(--zest-deep), 0 0 0 0 rgba(234, 218, 36, 0.7); }
  50% { box-shadow: 0 2px 0 var(--zest-deep), 0 0 0 10px rgba(234, 218, 36, 0); }
}
.portal .btn-p.pulse { animation: portal-pulse 1.2s ease 2; }

/* phone action bar: the back control is a 48 px icon, the primary fills the row; a secondary takes its own row above */
@media (max-width: 680px) {
  .portal .bar-actions { flex-wrap: wrap; row-gap: var(--space-2); }
  .portal .bar-actions .btn-t { flex: none; width: var(--portal-control-height); padding: 0; justify-content: center; border-color: var(--line-mid); }
  .portal .bar-actions .btn-t span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .portal .bar-actions .btn-p { flex: 1 1 0; min-width: 0; }
  .portal .bar-actions .btn:not(.btn-t):not(.btn-p) { order: -1; flex: 1 1 100%; }
}

/* journey: the current step's empty status line takes no room */
.portal .st-t .st-s:empty { display: none; }

/* medical declaration: Mark all as No beside the meter, and its note */
.portal .med-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3h); }
.portal .mark-all-note { margin-bottom: var(--space-4); }

/* medication list: both lists on view, as the clinic's poster has them */
.portal .mi-dialog { max-width: 1040px; }
.portal .mi-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-3); }
.portal .mi-tools .field { flex: 1 1 280px; min-width: 0; }
.portal .mi-tools > .btn { margin-top: 30px; }
.portal .mi-lists { display: flex; flex-direction: column; gap: var(--space-6); }
.portal .mi-lists:focus-visible { outline-offset: 4px; border-radius: var(--portal-radius); }
.portal .mi-sec { display: flex; flex-direction: column; gap: var(--space-3); }
.portal .mi-head { display: flex; align-items: center; gap: var(--space-3); }
.portal .mi-head h3 { margin: 0; font-size: var(--text-card-title-size); line-height: var(--text-card-title-line); font-weight: 700; }
.portal .mi-head p { margin: 0; color: var(--portal-muted); font-size: var(--text-support-size); line-height: var(--text-support-line); }
.portal .mi-none { margin: 0; color: var(--portal-muted); font-size: var(--text-support-size); line-height: var(--text-support-line); }
.portal .mi-note ol { margin: var(--space-1) 0 0; padding-left: 18px; list-style: decimal; }
.portal .mi-note li { margin: 2px 0; }
.portal .mi-safe { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.portal .mi-cat h4 { margin: 0; padding: var(--space-2) var(--space-3); background: var(--portal-veridian); color: var(--on-ink); font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 681px) { .portal .mi-safe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .portal .mi-safe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 680px) { .portal .mi-tools > .btn { margin-top: 0; width: 100%; } }
/* the sent declaration: the list and the poster side by side, stacked full width on a phone */
.portal .mi-open { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
@media (max-width: 680px) { .portal .mi-open > * { flex: 1 1 100%; } .portal .mi-open > .btn { justify-content: flex-start; } }

/* induction: the list beside the one player chooses it */
.portal .todo-list li:has(a[aria-current="true"]) { background: var(--zest-soft); }

/* property: an item open in the form above is marked in the list */
.portal .items li.is-editing { background: var(--zest-soft); }

/* ---- vendor contact (mockup scenario B) ---- */
.portal .vc-eyebrow { margin-top: var(--space-3h); }
.portal .vc-foot { display: block; }
.portal .vc-foot .eyebrow { margin: 0 var(--space-1h) var(--space-1h); }
.portal .vseg i.c { background: var(--yellow-zest); box-shadow: inset 0 0 0 1.5px var(--zest-ink); }
.portal button.st { width: 100%; border: 1.5px solid transparent; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.portal button.st:disabled { cursor: default; }
.portal .vprog { display: flex; flex-direction: column; gap: var(--space-1h); min-width: 230px; }
.portal .vprog strong { font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: 700; }
.portal .vprog .seg-bar { margin: 0; }
.portal .vav { position: relative; width: 44px; height: 44px; border-radius: var(--radius-pill); display: grid; place-items: center; flex: none; background: var(--amethyst); color: var(--on-ink); font-size: var(--text-label-size); font-weight: 800; }
.portal .vav.none { background: var(--surface-sunken); color: var(--portal-muted); border: 2px dashed var(--line-mid); }
.portal .vav i { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--line-mid); color: var(--graphite); font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.portal .vav-lg { width: 56px; height: 56px; font-size: 18px; box-shadow: var(--shadow-portal); }
.portal .vrows > li { border-top: 1px solid var(--line); }
.portal .vrows > li.attn { background: var(--zest-soft); }
.portal .vrow-b { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: var(--space-2h) var(--space-3); align-items: center; width: 100%; padding: var(--space-3h) var(--space-4); border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.portal button.vrow-b { cursor: pointer; transition: background-color 0.15s; }
.portal button.vrow-b:hover { background: var(--surface-sunken); }
.portal .vrow-t strong { display: block; font-size: var(--text-card-title-size); line-height: var(--text-card-title-line); font-weight: 700; overflow-wrap: anywhere; }
.portal .vrow-t span { display: block; font-size: var(--text-support-size); line-height: var(--text-support-line); color: var(--portal-muted); }
.portal .vrow-t .vrow-mail { overflow-wrap: anywhere; }
.portal .vrow-m { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-2h); font-size: var(--text-support-size); line-height: var(--text-support-line); color: var(--graphite); }
.portal .vrow-go { grid-column: 3; grid-row: 1; display: grid; place-items: center; color: var(--graphite); }
@media (min-width: 1121px) {
  .portal .vrow-b { grid-template-columns: 44px minmax(150px, 1.1fr) minmax(0, 1.5fr) 24px; gap: var(--space-4); padding: var(--space-3h) var(--space-6); }
  .portal .vrow-m { grid-column: 3; grid-row: 1; }
  .portal .vrow-go { grid-column: 4; }
}
.portal .vstats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.portal .vstats > div { display: flex; align-items: center; gap: var(--space-3h); padding: var(--space-3h) var(--space-4h); border-radius: var(--portal-radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-portal); }
.portal .vstats b { font-size: 26px; line-height: 30px; font-weight: 800; }
.portal .vstats b small { font-size: var(--text-label-size); font-weight: 700; color: var(--portal-subtle); }
.portal .vstats span > span { display: block; font-size: var(--text-support-size); line-height: var(--text-support-line); font-weight: 600; color: var(--portal-muted); }
@media (min-width: 681px) { .portal .vstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portal .vmini { display: flex; flex-direction: column; gap: 2px; }
.portal .vmini button { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--space-2h); align-items: center; width: 100%; min-height: var(--target-min); padding: var(--space-1) var(--space-2); border: 1.5px solid transparent; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: 600; }
.portal .vmini button:hover { background: var(--surface-sunken); }
.portal .vmini button.cur { background: var(--zest-soft); border-color: var(--ink); }
.portal .vmini .mk { width: 24px; height: 24px; font-size: 11px; font-weight: 800; }
.portal .vmini .is-prov .mk { border: 2px solid var(--portal-veridian); background: var(--portal-veridian); color: var(--on-ink); }
.portal .vmini .is-prog .mk { border: 2px solid var(--zest-ink); background: var(--yellow-zest); color: var(--ink); }
.portal .vmini small { font-size: var(--text-small-size); font-weight: 700; color: var(--portal-subtle); }
.portal .vmini .is-prov small { color: var(--veridian-ink); }
.portal .vmini .is-prog small { color: var(--zest-ink); }
.portal .vmini .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal .vtabs { display: flex; gap: var(--space-2); overflow-x: auto; padding: 2px 2px var(--space-1h); }
.portal .vtab { display: flex; align-items: center; gap: var(--space-2h); min-height: var(--target-min); padding: var(--space-2) var(--space-3h) var(--space-2) var(--space-2); border-radius: var(--radius-pill); border: 1.5px solid var(--line-mid); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-label-size); font-weight: 700; white-space: nowrap; flex: none; cursor: pointer; }
.portal .vtab:hover { border-color: var(--ink); }
.portal .vtab .vav { width: 30px; height: 30px; font-size: 11px; }
.portal .vtab .mk { width: 20px; height: 20px; }
.portal .vtab.is-prov .mk { border: 2px solid var(--portal-veridian); background: var(--portal-veridian); color: var(--on-ink); }
.portal .vtab.is-prog .mk { border: 2px solid var(--zest-ink); background: var(--yellow-zest); }
.portal .vtab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-portal-tab); }
.portal .miss button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; width: 100%; min-height: var(--target-min); padding: var(--space-3) var(--space-4); border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: 600; }
.portal .miss button:hover { background: var(--surface-sunken); }
@media (min-width: 681px) { .portal .miss button { padding-left: var(--space-6); padding-right: var(--space-6); } }
.portal .input[readonly] { background: var(--surface-sunken); }
.portal .vc-list-h .vprog { flex: 0 1 260px; }
@media (max-width: 680px) { .portal .vc-list-h .vprog { min-width: 0; width: 100%; flex-basis: 100%; } }
