/* The application shell: a rail of areas (kinds of work) with, beside it, the pages of the open area. Wide: both. Medium: the rail alone until an area is pressed. Narrow: both, in a drawer
   behind a button. The state lives on html[data-nav] ("full" = column shown, "rail" = column tucked away); shell.js sets it from the window width and the person's last choice. Tokens only. */
.app { min-height: calc(100vh - var(--env-banner-h)); min-height: calc(100dvh - var(--env-banner-h)); display: grid; grid-template-columns: auto minmax(0, 1fr); }

.sidenav {
  position: sticky; top: 0; height: calc(100vh - var(--env-banner-h)); height: calc(100dvh - var(--env-banner-h)); display: flex; z-index: 30; background: var(--sidebar-bg); color: var(--sidebar-text);
  border-right: 1px solid color-mix(in srgb, var(--sidebar-text) 10%, transparent); overflow: hidden;
}
.sidenav .brand { color: var(--sidebar-active-text); font-size: 1.35rem; }
.sidenav .brand-b { color: var(--sidebar-accent); }
.sidenav .mark-pulse, .sidenav .mark-tail { stroke: var(--sidebar-accent); }
.sidenav .mark-dot { fill: var(--sidebar-accent); }
.sidenav .iconbtn { color: var(--sidebar-text); }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.menu-link {
  position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: .55rem var(--space-3); border-radius: var(--radius-md);
  color: var(--sidebar-text); text-decoration: none; font: inherit; font-weight: 550; background: transparent; border: 0; cursor: pointer; text-align: left;
  transition: background var(--motion) var(--ease), color var(--motion) var(--ease);
}
.menu-link .icon { font-size: 1.15rem; flex: none; }
.menu-link:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-active-text); }
.menu-link[aria-current="page"] {
  background: color-mix(in srgb, var(--color-accent) 20%, var(--sidebar-bg)); color: var(--sidebar-active-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 40%, transparent);
}
.menu-link:focus-visible, .rail-btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -1px; }
.menu-form { margin: 0; }
.menu-badge { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; font-size: .75rem; line-height: 1.4rem; text-align: center; background: var(--color-accent); color: var(--color-on-accent); }

/* the one navigation: the rail (areas) and the column (pages) side by side, the account buttons under the rail; the column is last-but-one in the reading order, the account buttons last */
.menu-nav { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: var(--rail-width) calc(var(--nav-width) - var(--rail-width)); grid-template-rows: minmax(0, 1fr) auto; }
html[data-nav="rail"] .menu-nav { grid-template-columns: var(--rail-width); }
.menu-nav > .rail { grid-column: 1; grid-row: 1; min-height: 0; }
.menu-nav > .ctx { grid-column: 2; grid-row: 1 / 3; }
.menu-nav > .rail-foot { grid-column: 1; grid-row: 2; padding: var(--space-2) 0 var(--space-3); border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 12%, transparent); margin-inline: .35rem; }

/* the rail: an icon over a short word for each area, the account buttons at the foot */
.rail { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3) .2rem var(--space-2); overflow-y: auto; overflow-x: hidden; }
.rail-mark { align-self: center; padding: .4rem; }
.rail-mark .brand-mark { width: 2rem; height: 2rem; color: var(--sidebar-active-text); }
.rail-nav { display: grid; gap: var(--space-2); align-content: start; flex: 1 1 auto; }
.rail .menu { gap: .15rem; }
.rail-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 100%; min-height: 2.9rem; padding: .35rem 0; border-radius: var(--radius-md);
  color: var(--sidebar-text); text-decoration: none; font: inherit; font-size: .7rem; line-height: 1.15; font-weight: 600; text-align: center; background: transparent; border: 0; cursor: pointer;
  transition: background var(--motion) var(--ease), color var(--motion) var(--ease);
}
.rail-btn .icon { font-size: 1.35rem; }
.rail-btn:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-active-text); }
.rail .menu-text { display: block; max-width: 100%; }
.menu-nav .palette-key { display: none; }
.area-btn[aria-current="true"] { background: color-mix(in srgb, var(--color-accent) 24%, var(--sidebar-bg)); color: var(--sidebar-active-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent); }
.area-btn[aria-current="true"]::before { content: ""; position: absolute; left: -.2rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-accent); }
.rail-btn[aria-current="page"] { color: var(--sidebar-active-text); background: color-mix(in srgb, var(--color-accent) 20%, var(--sidebar-bg)); }
.rail-btn.primary, .rail-btn.primary:hover { background: var(--color-accent); color: var(--color-on-accent); }
.menu.new-exam { margin: 0; }

/* the availability switch (a provider's on/off), directly under the Q: green "Online" with a check, red "Offline" with a slash, amber "Away" with a clock; a mini switch (track and knob) says it again by shape. The colors are the
   --color-live-* tokens the Visits desk's big switch uses. In the plain list (few entries) it is a row; the old look draws its own (looks/old.css). */
.rail-presence { margin: 0; }
.rail-presence-form { margin: 0; }
.rail-btn.presence-rail-btn { gap: .15rem; min-height: 3.4rem; color: var(--color-live-fg); background: var(--color-live-off); box-shadow: var(--shadow-card); }
.rail-presence-online .presence-rail-btn { background: var(--color-live-on); }
.rail-presence-offline .presence-rail-btn { background: var(--color-live-off); }
.rail-presence-away .presence-rail-btn { background: var(--color-live-away); }
.rail-btn.presence-rail-btn:hover { color: var(--color-live-fg); filter: brightness(1.12); }
.rail-presence-online .presence-rail-btn:hover { background: var(--color-live-on); }
.rail-presence-offline .presence-rail-btn:hover { background: var(--color-live-off); }
.rail-presence-away .presence-rail-btn:hover { background: var(--color-live-away); }
.rail-btn.presence-rail-btn:disabled { cursor: not-allowed; filter: saturate(.6); opacity: .85; }
.presence-rail-icon { display: inline-flex; }
.presence-rail-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.presence-rail-word { font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.presence-rail-track { display: flex; align-items: center; flex: none; width: 1.7rem; height: .9rem; padding: 2px; border: 2px solid currentColor; border-radius: 999px; }
.presence-rail-knob { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.rail-presence-online .presence-rail-track { justify-content: flex-end; }
.presence-rail-note { margin: .15rem 0 0; font-size: .65rem; text-align: center; color: var(--sidebar-active-text); }
.rail-presence { padding-inline: 0; }
.sidenav[data-menu="flat"] .rail-presence { padding: 0 var(--space-3); }
.sidenav[data-menu="flat"] .presence-rail-btn { min-height: 2.8rem; }
@media (max-height: 52rem) { .rail-btn.presence-rail-btn { min-height: 3rem; } }
@media (prefers-reduced-motion: reduce) { .rail-btn.presence-rail-btn { transition: none; } }

/* the column: the pages of the open area, a little lighter than the rail */
.ctx { display: flex; flex-direction: column; min-height: 0; padding: var(--space-3) var(--space-3) var(--space-4);
       background: color-mix(in srgb, var(--sidebar-text) 6%, var(--sidebar-bg)); border-left: 1px solid color-mix(in srgb, var(--sidebar-text) 8%, transparent); overflow-y: auto; overflow-x: hidden; }
.ctx-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-1) 0 var(--space-3); margin-bottom: var(--space-2); }
.ctx-hint { margin: .2rem 1rem 1rem; font-size: .85rem; color: var(--sidebar-text); opacity: .8; }
.ctx:has(.ctx-panel:not([hidden])) .ctx-hint { display: none; }
.ctx-head h2 { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sidebar-text); font-weight: 650; }
.ctx-panel[hidden] { display: none; }
.ctx-panel .menu-link[aria-current="page"]::before { content: ""; position: absolute; left: calc(-1 * var(--space-3)); top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-accent); }
details.more { margin-top: var(--space-2); }
details.more > summary { cursor: pointer; list-style: none; padding: .45rem var(--space-3); border-radius: var(--radius-md); font-size: .85rem; font-weight: 600; color: var(--sidebar-text); opacity: .8; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "\2212 "; }
details.more > summary:hover { background: var(--sidebar-hover-bg); opacity: 1; }
details.more > summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -1px; }
html[data-nav="rail"] .ctx { display: none; }
.collapse .icon { transition: transform var(--motion) var(--ease); }

/* a short window: the rail tightens so every area stays in view */
@media (max-height: 52rem) {
  .rail { gap: .25rem; padding-top: var(--space-2); }
  .rail-btn { min-height: 2.5rem; padding: .25rem 0; }
  .rail-btn .icon { font-size: 1.2rem; }
  .rail-mark .brand-mark { width: 1.7rem; height: 1.7rem; }
  .rail-nav { gap: .25rem; }
}

/* a plain list, for someone with only a few entries: one column, no areas */
.sidenav[data-menu="flat"] { flex-direction: column; width: calc(var(--nav-width) - 1rem); gap: var(--space-3); padding: var(--space-4) var(--space-3); overflow-y: auto; }
.sidenav-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-1) var(--space-2) var(--space-3); min-height: 3.5rem; }
.sidenav[data-menu="flat"] #menu { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sidenav[data-menu="flat"] .menu.foot { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 12%, transparent); }
.sidenav[data-menu="flat"] .rail-btn { flex-direction: row; justify-content: flex-start; gap: var(--space-3); padding: .55rem var(--space-3); font-size: 1rem; text-align: left; min-height: 0; }
.sidenav[data-menu="flat"] .rail-btn .icon { font-size: 1.15rem; }
.sidenav[data-menu="flat"] .palette-key { display: inline; }
.sidenav[data-menu="flat"] .menu.new-exam { margin-bottom: var(--space-3); }

/* the page */
.page-wrap { min-width: 0; }
main { display: block; outline: none; }
#page { padding: var(--space-6) clamp(var(--space-4), 4vw, var(--space-6)); max-width: var(--content-max); margin-inline: auto; animation: fade 260ms var(--ease) both; }
.page-head { margin-bottom: var(--space-5); }
.page-head h1 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-size-h1); margin: 0; }
.page-head h1 .icon { font-size: 1.5rem; color: var(--color-accent); }
.page-head p { color: var(--color-text-muted); margin: var(--space-1) 0 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-text) 5%, transparent), 0 12px 28px -18px color-mix(in srgb, var(--color-text) 25%, transparent);
}
.panel + .panel { margin-top: var(--space-4); }
.panel h2 { font-size: 1.1rem; display: flex; align-items: center; gap: var(--space-2); }
.panel h2 .icon { color: var(--color-accent); }

/* the welcome screen */
.welcome { min-height: calc(100dvh - 2 * var(--space-6) - var(--env-banner-h)); display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--space-4); position: relative; isolation: isolate; }
.welcome::before {
  content: ""; position: absolute; inset: 8% 0 auto; margin-inline: auto; width: min(44rem, 90%); aspect-ratio: 1.7; z-index: -1; filter: blur(8px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 72%);
}
.welcome h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: var(--space-3) 0 0; }
.welcome p { color: var(--color-text-muted); max-width: 34rem; font-size: 1.05rem; margin: 0; }
.welcome .brand.large { animation: rise 600ms var(--ease) both; }
.welcome h1, .welcome p { animation: rise 600ms var(--ease) 90ms both; }
.welcome .hello { font-weight: 600; color: var(--color-accent-text); font-size: .95rem; letter-spacing: .02em; }

/* segmented control (settings): real radio buttons, so the keyboard and screen readers work with no script */
fieldset.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; font-weight: 650; margin-bottom: var(--space-1); }
.seg-help { color: var(--color-text-muted); margin: 0 0 var(--space-3); font-size: .95em; }
.seg-options { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: calc(var(--radius-md) + .25rem); background: var(--color-surface-2); border: 1px solid var(--color-border); max-width: 100%; }
.seg-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-options label {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: var(--space-2); padding: .55rem 1.1rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 600;
  color: var(--color-text-muted); transition: background var(--motion) var(--ease), color var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}
.seg-options label:hover { color: var(--color-text); }
.seg-options input:checked + label { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-text) 14%, transparent), 0 0 0 1px var(--color-border); }
.seg-options input:checked + label .icon { color: var(--color-accent); }
.seg-options input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.save-note { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 1.6rem; margin-top: var(--space-3); font-size: .92em; color: var(--color-text-muted); }
.save-note .icon { color: var(--color-accent); }
.save-note.error { color: var(--color-danger-text); }
.save-note.flash { animation: fade 260ms var(--ease) both; }

/* the narrow layout: the menu is a drawer behind a button; nothing else on the page changes */
.mobilebar { display: none; }
.scrim { display: none; }
@media (max-width: 43.75rem) {
  .app { grid-template-columns: minmax(0, 1fr); }
  html.js .mobilebar {
    display: flex; align-items: center; gap: var(--space-3); position: sticky; top: 0; z-index: 20; padding: var(--space-2) var(--space-3);
    background: color-mix(in srgb, var(--color-bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border);
  }
  html.js .mobilebar .brand { font-size: 1.25rem; }
  html.js .sidenav {
    position: fixed; inset: 0 auto var(--env-banner-h) 0; width: min(21rem, 90vw); height: calc(100dvh - var(--env-banner-h)); transform: translateX(-102%); visibility: hidden; box-shadow: none;
    transition: transform var(--motion) var(--ease), visibility 0s linear var(--motion);
  }
  html.js .sidenav[data-menu="flat"] { width: min(19rem, 86vw); }
  html.js .app[data-drawer="open"] .sidenav { transform: none; visibility: visible; box-shadow: 0 0 60px color-mix(in srgb, var(--sidebar-bg) 70%, transparent); transition-delay: 0s; }
  html.js .app[data-drawer="open"] .scrim { display: block; position: fixed; inset: 0 0 var(--env-banner-h) 0; z-index: 25; background: color-mix(in srgb, var(--sidebar-bg) 62%, transparent); animation: fade 200ms ease both; }
  html.js .collapse { display: none; }
  html[data-nav="rail"] .ctx { display: flex; }          /* in the drawer the column is always there */
  html[data-nav="rail"] .menu-nav { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  html:not(.js) .sidenav { position: static; height: auto; width: auto; flex-wrap: wrap; }
}
@media (min-width: 43.76rem) { .drawer-only { display: none; } }
html.js .app[data-drawer="open"] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #page, .welcome .brand.large, .welcome h1, .welcome p { animation: none; } }
.save-slot { margin: var(--space-3) 0 0; min-height: 1.7rem; }
.save-slot .save-note { margin-top: 0; }

/* ---- the user editor: uses the whole width of the screen it is given; tiles are small and flow into as many columns as fit */
#page.wide { max-width: none; }
.editor-grid { display: grid; grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@media (max-width: 62rem) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }
.people-panel { position: sticky; top: var(--space-4); }
@media (max-width: 62rem) { .people-panel { position: static; } }
.people-panel .field { margin-bottom: var(--space-2); }
.result-count { margin: 0 0 var(--space-3); font-size: .9em; min-height: 1.4em; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; max-height: calc(100dvh - 17rem - var(--env-banner-h)); min-height: 12rem; overflow: auto; }
.person-btn {
  appearance: none; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "a m" "a c"; column-gap: var(--space-3); row-gap: .15rem; align-items: center; text-align: left;
  padding: .45rem var(--space-3); border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer;
  transition: background var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.person-btn:hover { background: var(--color-surface-2); }
.person-btn[aria-current="true"] { background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface)); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.person-btn .avatar { grid-area: a; }
.person-main { grid-area: m; display: grid; min-width: 0; }
.person-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-email { font-size: .85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { grid-area: c; display: flex; flex-wrap: wrap; gap: .25rem; }
.chip { padding: 0 .5rem; border-radius: 999px; font-size: .74rem; line-height: 1.3rem; font-weight: 600; background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); }
.chip.none, .chip.more { background: var(--color-surface-2); border-color: var(--color-border); color: var(--color-text-muted); font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font-weight: 700; font-size: .8rem; background: color-mix(in srgb, var(--color-accent) 22%, var(--color-surface)); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); }
.avatar.big { width: 2.75rem; height: 2.75rem; font-size: .95rem; }
.empty-note { padding: var(--space-4) 0; margin: 0; }
.admin-status { min-height: 1.5rem; margin: 0 0 var(--space-2); font-size: .95em; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.admin-status .note-error { color: var(--color-danger-text); background: var(--color-danger-soft); padding: .2rem .6rem; border-radius: var(--radius-sm); }
.admin-status .note-ok { color: var(--color-text); }
.admin-status form { margin: 0; }
.linkbtn { appearance: none; background: none; border: 0; padding: .1rem .3rem; display: inline-flex; align-items: center; gap: .3rem; color: var(--color-accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; border-radius: var(--radius-sm); }
.editor-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.editor-head h3 { margin: 0; font-size: 1.15rem; outline: none; }
.editor-head p { margin: 0; }
.editor-panel { container-type: inline-size; min-width: 0; }
.editor-grid > .panel { margin: 0; padding: var(--space-4); }
/* two columns (roles held | roles to add) whenever the panel is wide enough for both; otherwise one under the other */
.zones { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@container (min-width: 44rem) { .zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.zone { padding: var(--space-2) var(--space-3) var(--space-3); border-radius: var(--radius-lg); border: 2px dashed var(--color-border); background: color-mix(in srgb, var(--color-surface-2) 55%, var(--color-surface)); transition: border-color var(--motion) var(--ease), background var(--motion) var(--ease), transform var(--motion) var(--ease); }
.zone h4 { margin: 0 0 var(--space-2); font-size: .9rem; color: var(--color-text-muted); font-weight: 650; }
.zone .count { color: var(--color-text); }
.zone.accepting { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface)); }
.zone.over { border-style: solid; background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)); transform: scale(1.005); }
.drop-hint { visibility: hidden; margin: var(--space-2) 0 0; text-align: center; font-weight: 600; font-size: .9rem; color: var(--color-accent-text); }       /* its space is always reserved: nothing may move when a drag starts, or the browser drops the drag */
.zone.accepting .drop-hint { visibility: visible; }
/* the tiles: as many columns as fit, each a compact two-line card */
.role-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .4rem; }
.role-card { display: flex; align-items: center; gap: .35rem; padding: .3rem .45rem; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-text) 6%, transparent); transition: box-shadow var(--motion) var(--ease), transform var(--motion) var(--ease), opacity var(--motion) var(--ease); min-width: 0; }
.role-card[draggable="true"] { cursor: grab; }
.role-card[draggable="true"]:hover { box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--color-text) 40%, transparent); transform: translateY(-1px); }
.role-card.dragging { opacity: .45; cursor: grabbing; }
.role-card .grip { color: var(--color-text-muted); display: inline-flex; font-size: .9rem; }
.role-main { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.role-main strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-main .muted { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-main .desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }       /* read by screen readers, shown on hover (title), not drawn */
.role-card form { margin: 0; display: flex; align-items: center; gap: .3rem; }
.role-card .place { font-size: .78rem; white-space: nowrap; }
.role-card select { max-width: 9rem; padding: .15rem .3rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: .8rem; }
.role-card .iconbtn { width: 1.6rem; height: 1.6rem; font-size: .9rem; }
.btn.small { padding: .2rem .55rem; min-height: 1.6rem; font-size: .8rem; display: inline-flex; align-items: center; gap: .2rem; }
.empty-slot { padding: var(--space-2); text-align: center; list-style: none; grid-column: 1 / -1; }
/* an available tile: the name above, "at <place> [Add]" below */
.role-card.avail { flex-wrap: wrap; row-gap: .1rem; }
.role-card.avail .role-main { flex: 1 1 6rem; }
.role-card.avail form { flex: 1 1 100%; justify-content: flex-end; padding-left: 1.2rem; }

/* tabs under a person's profile */
.tabs { margin-top: var(--space-2); }
.tablist { display: flex; gap: .15rem; border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3); overflow-x: auto; }
.tablist [role=tab] {
  appearance: none; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent; color: var(--color-text-muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color var(--motion) var(--ease), background var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.tablist [role=tab] .icon { font-size: 1.05rem; }
.tablist [role=tab]:hover { color: var(--color-text); background: var(--color-surface-2); }
.tablist [role=tab][aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); }
.tablist [role=tab][aria-selected="true"] .icon { color: var(--color-accent); }
.tab-count { min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; font-size: .75rem; line-height: 1.3rem; text-align: center; background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); font-weight: 600; }
.tabpanel { outline: none; }
.tabpanel:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .5rem; }
.link-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i m" "i c"; column-gap: var(--space-3); row-gap: .25rem; align-items: center; padding: .55rem var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.link-ic { grid-area: i; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)); color: var(--color-accent); font-size: 1.15rem; }
.link-main { grid-area: m; display: grid; min-width: 0; line-height: 1.25; }
.link-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-main .muted { font-size: .8rem; }
.link-card .chips { grid-area: c; }
.tab-note { margin: var(--space-3) 0 0; font-size: .85rem; }

/* the logo is a link to the welcome page: no underline, no extra color, a clear focus ring */
.brand-link { color: inherit; text-decoration: none; display: inline-flex; border-radius: var(--radius-md); }
.brand-link:hover .brand-word { opacity: .9; }
.brand-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* All Patients: a wide table beside the profile */
.patients-grid { grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr); }
@media (max-width: 62rem) { .patients-grid { grid-template-columns: minmax(0, 1fr); } }
.patient-filters { display: grid; grid-template-columns: minmax(10rem, 2fr) minmax(8rem, 1.2fr) minmax(8rem, 1.2fr) auto; gap: var(--space-3); align-items: center; margin-bottom: var(--space-2); }
@media (max-width: 40rem) { .patient-filters { grid-template-columns: minmax(0, 1fr); } }
.select-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; font-size: .85rem; color: var(--color-text-muted); }       /* the column may shrink: a select is as wide as its longest option unless it is told otherwise */
.action-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }       /* a button and its explanation: each wraps as a whole instead of running past the edge */
.select-field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; padding: .55rem .6rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; }
.table-wrap { overflow-x: auto; position: relative; }      /* position: so the screen-reader-only header text is clipped with the table instead of widening the page */
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .5rem var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.data-table thead th { font-size: .8rem; color: var(--color-text-muted); font-weight: 650; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--color-surface-2); }
.data-table .num { font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.data-table th.who { font-weight: 650; display: flex; align-items: center; gap: var(--space-2); border-bottom: 0; }
.data-table tbody tr > * { border-bottom: 1px solid var(--color-border); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }       /* wraps: three buttons do not fit one 320 px line in a wider fallback font (Linux) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: var(--space-3); margin: 0; }
.facts > div { min-width: 0; }                                  /* a grid cell is as wide as its longest word unless told it may shrink: a long address then ran into the next cell */
.facts dt { font-size: .8rem; color: var(--color-text-muted); }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }       /* a long value (an email address) breaks inside its own cell */
.facts .inline-edit { display: inline-flex; align-items: baseline; gap: .3em; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }       /* the pencil stays beside the text, which wraps next to it */
.facts .inline-edit::after { flex: none; }
.exam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.exam { display: grid; gap: .2rem; padding: .5rem var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }

.select-field.compact select { padding: .35rem .5rem; font-size: .85rem; }
.data-table .code, .facts .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; white-space: nowrap; }
.data-table.clickable-rows tbody tr { cursor: pointer; }
.data-table.clickable-rows tbody tr.unreadable { cursor: default; }          /* a patient whose sealed name could not be opened has no profile to open */
.rowlink { appearance: none; background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; font-weight: 650; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.rowlink:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* the full patient page */
.crumbs { margin: 0 0 var(--space-2); font-size: .9rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--color-accent-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.patient-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.patient-head > div { flex: 1 1 12rem; min-width: 0; }
.patient-head h1 { overflow-wrap: anywhere; }
.patient-head .btn { white-space: nowrap; }
.patient-head h1 { margin: 0; }
.patient-head p { margin: 0; }
.open-full { margin: 0 0 var(--space-2); }
.details-form .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-3); }
.fld { display: grid; gap: .25rem; align-content: start; min-width: 0; }      /* a long option or value shrinks inside its cell; it never pushes into the next one */
.fld label { font-size: .85rem; color: var(--color-text-muted); }
.fld input, .fld select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; padding: .55rem .6rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; }
.fld input:focus-visible, .fld select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.fld.has-error input, .fld.has-error select { border-color: var(--color-danger-text); }
.fld.reason { margin-top: var(--space-3); max-width: 36rem; }
.field-error { margin: 0; color: var(--color-danger-text); font-size: .85rem; }
.req { color: var(--color-danger-text); }
.small { font-size: .85rem; margin: 0; }
.note-area { min-height: 1.5rem; margin: 0 0 var(--space-2); }
.note-area .note-ok { color: var(--color-text); }
.note-area .note-error { color: var(--color-danger-text); background: var(--color-danger-soft); padding: .2rem .6rem; border-radius: var(--radius-sm); }

/* the full user profile: the same editor with room to breathe */
.open-full { margin-left: auto; align-self: flex-start; text-decoration: none; }
.full-profile { padding: var(--space-5); }
.full-profile .zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 52rem) { .full-profile .zones { grid-template-columns: minmax(0, 1fr); } }
.full-profile .role-list { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.chip-form { display: inline-flex; align-items: center; gap: .15rem; margin: 0; }
.chip-form .iconbtn.small { width: 1.4rem; height: 1.4rem; font-size: .8rem; }

/* emergency (break-glass) access */
.emergency-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); border-radius: var(--radius-md);
  border: 2px solid var(--color-danger-text); background: var(--color-danger-soft); color: var(--color-text); }
.emergency-banner strong { display: inline-flex; align-items: center; gap: .35rem; color: var(--color-danger-text); }
.emergency-banner form { margin: 0 0 0 auto; }
.emergency-note { margin: 0 0 var(--space-2); font-size: .85rem; color: var(--color-danger-text); display: flex; align-items: center; gap: .3rem; }
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.checks legend { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .25rem; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: .35rem; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.review-item { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); display: grid; gap: .35rem; }
.review-item.overdue { border-color: var(--color-danger-text); }
.review-item h2 { margin: 0; font-size: 1rem; }
.review-form { display: grid; gap: var(--space-2); max-width: 40rem; margin-top: var(--space-2); }

/* audit log */
.audit-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-3); align-items: end; }
.audit-filters .kind-picks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-4); border: 0; padding: 0; margin: 0; }
.audit-filters .kind-picks legend { font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.audit-filters .check { display: inline-flex; gap: .4rem; align-items: center; }
.audit-filters .field { display: flex; flex-direction: column; gap: .25rem; }
.audit-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); }
.audit-table th, .audit-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.audit-table th { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; }
.audit-row.emergency td { background: var(--color-danger-bg, transparent); }
.audit-row.failure td:first-child { box-shadow: inset 3px 0 0 var(--color-danger-text); }
.audit-detail summary { cursor: pointer; color: var(--color-text-muted); }
.audit-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem var(--space-3); margin: var(--space-2) 0 0; font-size: .85rem; }
.audit-detail dt { color: var(--color-text-muted); }
.audit-detail dd { margin: 0; overflow-wrap: anywhere; }
.chip.danger { background: var(--color-danger-bg, var(--color-surface-2)); color: var(--color-danger-text); border-color: var(--color-danger-text); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.rec-player { width: 100%; max-width: 960px; max-height: 70vh; background: var(--color-surface-2); border-radius: var(--radius-2, 8px); }
.rec-indicator { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.table-scroll.cq-scroll { position: relative; }      /* the hidden text in a cell sits inside the scroller, not off to the right of the page (call quality's tables are wide) */

/* a search or a profile is on its way: the result dims and says so (htmx adds .htmx-request to the element named by hx-indicator while the request runs) */
.busy-note { display: none; margin: 0 0 var(--space-2); color: var(--color-text-muted); font-weight: 600; }
.busy-note::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1em; animation: busy-spin .8s linear infinite; }
section:has(#patient-results.htmx-request) > .busy-note:not(.profile-busy), section:has(#patient-profile.htmx-request) > .profile-busy { display: block; }
#patient-results.htmx-request, #patient-profile.htmx-request { opacity: .45; transition: opacity .15s; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-note::before { animation: none; } }

/* clinics */
.clinic-filters { display: grid; gap: var(--space-3); }
.state-filter summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .25rem var(--space-2); border: 0; padding: var(--space-2) 0 0; margin: 0; max-height: 14rem; overflow-y: auto; }
.state-grid .check { display: inline-flex; gap: .3rem; align-items: center; }
.block { display: block; }
.plain-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }

/* A menu entry that is not built yet: greyed out, not clickable */
.menu-link.soon, .rail-btn.soon { opacity: .45; cursor: not-allowed; pointer-events: none; }

.menu-link.primary { background: var(--color-accent); color: var(--color-on-accent); font-weight: 600; }
.menu-link.primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

/* Admin > Ledger: the verification status, the proof page. Hashes are 64 characters: they wrap anywhere so a phone never scrolls sideways. */
.lg-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: var(--space-2) 0 var(--space-3); }
.lg-facts dt { font-weight: 600; }
.lg-facts dd { margin: 0; min-width: 0; }
.lg-facts code, .lg-path code, .lg-table code, .lg-checks code { overflow-wrap: anywhere; word-break: break-all; }
.lg-path { padding-left: var(--space-4); }
.lg-path li, .lg-checks li { margin-bottom: var(--space-1); min-width: 0; }
.lg-checks { padding-left: var(--space-4); }
.lg-find { display: grid; gap: var(--space-2); max-width: 32rem; }
.lg-find select, .lg-find input { max-width: 100%; }
@media (max-width: 40rem) { .lg-facts { grid-template-columns: minmax(0, 1fr); } .lg-facts dd { margin-bottom: var(--space-2); } }

/* ---- the Go-to palette (Ctrl/Cmd+K) */
.palette { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 12vh var(--space-3) var(--space-3); background: color-mix(in srgb, var(--color-text) 45%, transparent); }
.palette[hidden] { display: none; }
.palette-box { width: min(36rem, 100%); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg, var(--radius-md)); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--color-text) 60%, transparent); overflow: hidden; }
.palette-box input { width: 100%; box-sizing: border-box; padding: var(--space-3); font-size: 1.05rem; border: 0; border-bottom: 1px solid var(--color-border); background: transparent; color: inherit; }
.palette-box input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
#palette-list { list-style: none; margin: 0; padding: var(--space-1); max-height: 50vh; overflow-y: auto; }
.palette-opt { display: grid; grid-template-columns: 6.5rem 1fr; gap: .1rem var(--space-2); align-items: baseline; padding: .5rem var(--space-2); border-radius: var(--radius-md); cursor: pointer; }
.palette-opt[aria-selected="true"] { background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)); }
.palette-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.palette-detail { grid-column: 2; }
.palette-none, .palette-hint { padding: var(--space-2) var(--space-3); margin: 0; }
.palette-key { font: inherit; font-size: .72rem; border: 1px solid currentColor; border-radius: 4px; padding: 0 .3rem; opacity: .7; margin-left: .35rem; }
@media (prefers-reduced-motion: reduce) { .palette-opt { transition: none; } }

/* Arranging tiles: the panel (keyboard and no-script path) and the drag feedback. */
.arrange { margin: 0 0 1rem; }
.arrange > summary { cursor: pointer; width: fit-content; color: var(--color-text-muted); font-size: .85rem; padding: .2rem 0; }
.arrange-list { list-style: none; display: grid; gap: .35rem; padding: 0; margin: .6rem 0; max-width: 40rem; }
.arrange-list li { display: flex; gap: .5rem; align-items: center; }
.arrange-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
[data-arrange] > [draggable="true"] { cursor: grab; }
[data-arrange] > .dragging { opacity: .45; }
[data-arrange] > .drop-before, [data-arrange] > .drop-after { box-shadow: 0 0 0 2px var(--color-accent); border-radius: var(--radius-md); }
[data-arrange][data-flow="row"] > .drop-before { box-shadow: -6px 0 0 0 var(--color-accent); border-radius: 0; }
[data-arrange][data-flow="row"] > .drop-after { box-shadow: 6px 0 0 0 var(--color-accent); border-radius: 0; }
[data-arrange][data-flow="column"] > .drop-before { box-shadow: 0 -4px 0 0 var(--color-accent); border-radius: 0; }
[data-arrange][data-flow="column"] > .drop-after { box-shadow: 0 4px 0 0 var(--color-accent); border-radius: 0; }

/* Prescriptions (pharmacy): the status groups as a row of links with counts */
.rx-groups ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; }
.chip-link { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); }
.chip-link:hover { background: var(--color-surface-2); }
.chip-link[aria-current="page"] { background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)); border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border)); }
.chip-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* the white-label preview on a clinic page: the portal header as a banner, never wider than a header is */
.brand-preview { margin: var(--space-3) 0; }
.brand-preview svg { display: block; width: 100%; max-width: 30rem; height: auto; }
.brand-preview .brand-default { fill: var(--color-accent); }
.brand-preview .brand-default-text { fill: var(--color-on-accent); }

/* ---- the inactivity warning (static/idle.js): a modal alert dialog, shown only in the last minute before an automatic sign-out; every colour comes from the theme, so it follows light, dark and the old look */
.idle-dialog { width: min(26rem, calc(100vw - 2rem)); padding: var(--space-4, 1.5rem); border: 1px solid var(--color-border); border-radius: var(--radius-lg, var(--radius-md)); background: var(--color-surface); color: var(--color-text); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--color-text) 60%, transparent); }
.idle-dialog::backdrop { background: color-mix(in srgb, var(--color-text) 55%, transparent); }
.idle-dialog h2 { margin: 0 0 var(--space-2, .5rem); font-size: 1.2rem; }
.idle-dialog p { margin: 0 0 var(--space-3, 1rem); line-height: 1.5; }
.idle-dialog .idle-problem { color: var(--color-danger-text, var(--color-text)); font-weight: 600; }
.idle-dialog .btn { width: 100%; }

/* Settings > Notices (2026-10-22): one fieldset for each kind of notice, an email and a text message choice in it; each saves itself */
.notice-kind { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); margin: 0 0 var(--space-3); min-width: 0; }
.notice-kind legend { padding: 0 .4rem; font-weight: 650; }
.notice-kind p { margin: 0 0 var(--space-2); }
.notice-choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.notice-choice { display: inline-flex; align-items: center; gap: .5rem; }
.notice-choice input { width: 1.1rem; height: 1.1rem; margin: 0; }
/* the paused-exams callout at the top of a page (credit control; v1's red "New exams are paused"): words say what it is, colour is only the third cue */
.credit-banners { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); }
.credit-banner { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-danger-text); border-left-width: .35rem; border-radius: var(--radius-md); background: var(--color-danger-soft); color: var(--color-danger-text); }
.credit-banner p { margin: 0; }
.credit-banner p + p { margin-top: var(--space-1); }
.credit-banner-title { font-size: 1.05rem; }
.credit-banner-title .icon { margin-right: .4rem; vertical-align: -.15em; }
.credit-banner-clinic { font-weight: 400; }
.credit-banner a { color: inherit; text-decoration: underline; }
.credit-banner-resolve { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.credit-resolve { padding: .4rem .9rem; border: 1px solid currentColor; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; font-weight: 600; }
.credit-resolve[disabled] { opacity: .75; cursor: not-allowed; }
.credit-banner-more { margin: 0; font-size: .92rem; }
/* a warning the person may go past (credit control: a balance is unpaid but below every limit, before the invitation form) */
.credit-warning { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-left-width: .35rem; border-radius: var(--radius-md); background: var(--color-surface-2); }
.credit-warning p { margin: 0; }
.credit-warning p + p { margin-top: var(--space-2); }
