/* Generated by website/build.py from the design tokens in /tokens.css (docs/design-system.md). Values live there, not here. */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(/fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-700.woff2) format("woff2"); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* hidden always wins over a component's display */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 var(--text-site)/1.6 var(--font); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.app { font-size: var(--text-m); background: var(--color-bg-page); }
body > main { flex: 1; }
body > header, body > footer, body > .page-band { flex-shrink: 0; }
a { color: var(--color-primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); color: var(--color-text); }
h1 { font-size: var(--text-h1); } h2 { font-size: var(--text-h2); } h3 { font-size: var(--text-h3); }
.w { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--space-5); padding-right: var(--space-5); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sr-only, .countdown { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 12px; clip-path: none; background: #fff; z-index: 100; }
.muted, .hint, .none { color: var(--color-text-muted); }
.hint, .none { font-size: var(--text-s); margin: var(--space-1) 0 var(--space-2); }
time { font-variant-numeric: tabular-nums; }

/* buttons: one system. Default = secondary (white, line border); .btn/.public-btn/.primary = primary; .danger outlined, .danger.solid filled */
.btn, .public-btn, .mini, .signin-btn, .lock-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-h); padding: 0 var(--space-4); border-radius: var(--radius-m); border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-primary); font: 600 var(--text-s)/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; text-align: center; }
.mini:hover, .mini:focus-visible, .secondary:hover, .secondary:focus-visible { background: var(--color-bg-soft); border-color: var(--color-line-strong); }
.btn, .public-btn, .primary, .signin-btn { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn:hover, .btn:focus-visible, .public-btn:hover, .public-btn:focus-visible, .primary:hover, .primary:focus-visible, .signin-btn:hover, .signin-btn:focus-visible { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
.secondary, .btn.secondary, .public-btn.secondary { background: var(--color-bg); border-color: var(--color-line); color: var(--color-primary); }
.danger, .mini.danger, .public-btn.danger, .btn.danger { background: var(--color-bg); border-color: var(--color-line-strong); color: var(--color-danger); }  /* as GitHub: grey border, red text, red on hover */
.danger:hover, .danger:focus-visible { background: var(--color-danger-soft); border-color: var(--color-danger); color: var(--color-danger); }
.danger.solid { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
.danger.solid:hover, .danger.solid:focus-visible { background: var(--color-danger-hover); border-color: var(--color-danger-hover); color: #fff; }
.page-content .public-btn, .card .btn, .card input:not([type=checkbox]), .card textarea { min-height: var(--control-h-site); }
.card .btn { font-size: var(--text-m); }
body.app .page-content .public-btn { min-height: var(--control-h); }
td .mini, .acts .mini, .devices .public-btn, .req-actions .mini { min-height: var(--control-h-compact); padding: 0 var(--space-3); font-size: var(--text-xs); }
button[disabled], .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.text-button { border: 0; padding: 0; background: none; color: var(--color-primary); font: inherit; text-decoration: underline; cursor: pointer; }

/* header: one component, two densities (site, and .app-head for applications) */
.fh { background: var(--color-bg); border-bottom: 1px solid var(--color-line); position: relative; z-index: 10; }
.fh-main { display: flex; align-items: center; gap: var(--space-5); padding-top: var(--space-3); padding-bottom: var(--space-3); min-height: 76px; }
.fh-logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); min-width: 0; }
.fh-logo img { width: 56px; height: 56px; flex: none; }
.fh-logo b { display: block; font-size: 1.35rem; line-height: 1; font-weight: 800; letter-spacing: .01em; color: var(--color-text-muted); }
.fh-logo .fh-portal { display: block; margin-top: 4px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.fh-nav { display: flex; gap: var(--space-1); margin-left: auto; }
.dd { position: relative; }
.dd > a, .fh-nav > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-s); border-radius: var(--radius-s); }
.chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dd > a:hover, .dd:focus-within > a, .fh-nav > a:hover { color: var(--color-primary); }
.fh-nav a[aria-current], .burger-menu a[aria-current] { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fh-logo[aria-current] { text-decoration: none; }
.dd-menu, .user-menu, .burger-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 270px; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: var(--space-2) 0; z-index: 30; }
.dd-menu { display: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a, .user-menu a, .user-menu button, .burger-menu a { display: block; width: 100%; text-align: left; padding: 10px 16px; color: var(--color-text); text-decoration: none; font: 400 var(--text-s)/1.35 var(--font); background: none; border: 0; cursor: pointer; }
.dd-menu a:hover, .dd-menu a:focus-visible, .user-menu a:hover, .user-menu a:focus-visible, .user-menu button:hover, .user-menu button:focus-visible, .burger-menu a:hover, .burger-menu a:focus-visible { background: var(--color-bg-soft); color: var(--color-primary); }
.account { position: relative; flex: none; }
.user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-s); color: var(--color-text); min-height: var(--control-h); padding: 0 var(--space-2); border-radius: var(--radius-m); }
.user summary::-webkit-details-marker, .burger summary::-webkit-details-marker, .admin-nav summary::-webkit-details-marker { display: none; }
.user summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.user summary:hover, .user[open] summary { color: var(--color-primary); background: var(--color-bg-soft); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; object-fit: cover; flex: none; }
.user-menu .who { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-4) var(--space-3); border-bottom: 1px solid var(--color-line-soft); margin-bottom: var(--space-2); }
.user-menu .who .avatar { width: 40px; height: 40px; font-size: var(--text-s); }
.user-menu .who strong { display: block; font-size: var(--text-m); }
.user-menu .who div span { display: block; color: var(--color-text-muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.user-menu form { margin: var(--space-2) 0 0; border-top: 1px solid var(--color-line-soft); padding-top: var(--space-2); }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 0 10px; border: 1px solid var(--color-line); border-radius: var(--radius-m); }
.burger summary span { display: block; height: 2px; background: var(--color-text); }
.burger[open] summary { border-color: var(--color-primary); }
.burger-menu { width: min(300px, 86vw); max-height: 70vh; overflow-y: auto; }
.menu-section > p { margin: 14px 16px 5px; font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); text-transform: uppercase; }
.app-head { position: sticky; top: 0; z-index: 20; }
.app-head .fh-main { min-height: 56px; padding: 8px 20px; gap: 14px; max-width: none; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--color-primary); flex: none; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-text { font-size: var(--text-l); font-weight: 600; color: var(--color-primary); white-space: nowrap; line-height: 1.2; }
.brand:hover .brand-text { color: var(--color-primary-hover); }
.apps-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: var(--control-h-compact); padding: 0 10px; border-radius: var(--radius-m); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-s); white-space: nowrap; flex: none; }
.apps-link:hover, .apps-link:focus-visible { background: var(--color-bg-soft); color: var(--color-primary); }
.apps-link svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* footers: the site's dark block; one line on application pages */
.fh-foot { background: var(--color-text); color: #c9cdd1; font-size: var(--text-s); }
.fh-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); padding-top: var(--space-7); padding-bottom: var(--space-6); }
.fh-foot img { width: 64px; height: 64px; margin-bottom: 10px; }
.fh-foot p { margin: 0 0 var(--space-2); line-height: 1.6; }
.fh-foot ul { list-style: none; margin: 0; padding: 0; }
.fh-foot li { margin: 0 0 9px; }
.fh-foot .ft { color: #fff; font-weight: 700; font-size: var(--text-site); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.fh-foot a { color: #c9cdd1; text-decoration: none; }
.fh-foot a:hover, .fh-foot a:focus-visible { color: #fff; text-decoration: underline; }
.fh-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--space-4); padding-bottom: var(--space-5); font-size: var(--text-xs); color: #c9cdd1; }
.app-foot { border-top: 1px solid var(--color-line); background: var(--color-bg); font-size: var(--text-xs); color: var(--color-text-muted); }
.app-foot .w { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-3); padding-bottom: var(--space-3); max-width: 1560px; }
.app-foot a { color: inherit; }

/* title row: breadcrumb, h1, the page's primary action; navy band on site pages, a white row on application pages */
.page-band { background: linear-gradient(115deg, var(--band1, var(--color-primary)), var(--band2, var(--color-primary-hover))); color: #fff; padding: var(--space-5) 0 var(--space-6); }
.page-band .w { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.page-band h1 { margin: var(--space-3) 0 0; max-width: 950px; color: inherit; font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.page-band ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; font-size: var(--text-s); }
.page-band li + li::before { content: '/'; margin-right: 10px; opacity: .7; }
.page-band a { color: inherit; }
.page-band [aria-current="page"] { text-decoration: none; }
.title-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
body.app .page-band { background: var(--color-bg); color: var(--color-text); border-bottom: 1px solid var(--color-line); padding: var(--space-4) 0; }
body.app .page-band .w { max-width: 1560px; }
body.app .page-band h1 { font-size: var(--text-h1); margin-top: var(--space-1); }
body.app .page-band ol { color: var(--color-text-muted); }
body.app .page-band a { color: var(--color-primary); }
body.app .page-band .title-actions .public-btn { color: #fff; }
body.app .page-band .title-actions .public-btn.secondary { color: var(--color-primary); }
body.app .page-content { padding-top: var(--space-5); padding-bottom: var(--space-7); max-width: 1180px; }

/* box / card, table, form field, pill, alert, tabs, dialog */
.box, .admin section, .account-content section, .side-card, .req-card, .admin .filters, .cta-band, .application-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-m); }
.table-wrap, .table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-scroll table, .account-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-s); }
th { text-align: left; font-size: var(--text-s); font-weight: 600; color: var(--color-text-muted); background: var(--color-bg-soft); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); white-space: nowrap; }
td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.admin tbody tr:hover { background: var(--color-bg-soft); }
th a { color: inherit; text-decoration: none; }
th[aria-sort=ascending] a::after { content: " \25B2"; color: var(--color-primary); font-size: .7em; }
th[aria-sort=descending] a::after { content: " \25BC"; color: var(--color-primary); font-size: .7em; }
td small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }
td.nowrap, td.device, .admin td:last-child { white-space: nowrap; }
td.path { overflow-wrap: anywhere; min-width: 180px; }
.failed td { background: var(--color-danger-soft); color: var(--color-danger); }
.session-id { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.empty-state { padding: var(--space-6) var(--space-5); text-align: center; color: var(--color-text-muted); }
.empty-state h3 { margin-bottom: var(--space-1); }
.empty-state p { margin: 0; }
label { display: block; font-size: var(--text-s); font-weight: 600; color: var(--color-text); margin: var(--space-3) 0 var(--space-1); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; max-width: 100%; min-height: var(--control-h); padding: 8px 12px; font: inherit; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-line-strong); border-radius: var(--radius-m); }
input[type=file] { font: inherit; padding: var(--space-2) 0; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--color-primary); }
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
[aria-invalid=true] { border-color: var(--color-danger); }
.check { display: flex; gap: var(--space-2); align-items: center; margin: var(--space-2) 0; font-weight: 400; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--color-primary); }
/* Terms: the plain-words summary first, the acceptance at the end of the full text */
.terms-summary { background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6); }
.terms-summary h2 { margin-top: 0; }
.terms-summary ul { margin: 0; padding-left: var(--space-5); }
.terms-summary li + li { margin-top: var(--space-2); }
.terms-accept { border-top: 1px solid var(--color-line); margin-top: var(--space-6); padding-top: var(--space-4); }
.terms-accept .acts { margin-top: var(--space-3); }
.terms-accept .check { font-size: var(--text-m); }
fieldset { border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-1) var(--space-4) var(--space-2); margin: var(--space-3) 0; min-width: 0; }
legend { font-size: var(--text-s); font-weight: 600; padding: 0 var(--space-1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 var(--space-4); align-items: end; }
.form-row > div { min-width: 0; }
.form-row .acts { margin-bottom: 1px; }
.err, .ok, .notice, .box.warn, .box.ok { border: 1px solid; border-radius: var(--radius-m); padding: 10px 14px; font-size: var(--text-s); line-height: 1.5; margin: 0 0 var(--space-4); }
.err { background: var(--color-danger-soft); border-color: var(--color-danger-line); color: var(--color-danger); }
.ok, .box.ok { background: var(--color-ok-soft); border-color: #bfe3cc; color: var(--color-ok); }
.notice, .box.warn { background: var(--color-warn-soft); border-color: #ecdcb4; color: var(--color-warn); }
.box.ok { padding: var(--space-4) var(--space-5); margin: var(--space-5) 0 0; }
.box p { margin: 0 0 var(--space-2); }
.box .link { font-family: ui-monospace, Consolas, monospace; font-size: var(--text-s); }
.st, .pill, .status { display: inline-block; font-size: var(--text-xs); font-weight: 600; line-height: 1.6; border-radius: var(--radius-pill); padding: 2px 10px; white-space: nowrap; background: var(--color-neutral-soft); color: var(--color-neutral); }
.st.active, .pill.on, .status.available { background: var(--color-ok-soft); color: var(--color-ok); }
/* how many account requests are waiting, next to Requests in the console menu */
.nav-count { margin-left: auto; min-width: 1.4rem; padding: 0 6px; border-radius: 999px; background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: 700; text-align: center; line-height: 1.4rem; }
.admin-nav a:has(.nav-count) { display: flex; align-items: center; }
/* a role inside a list, next to a name (e.g. a group's managers) */
.badge.admin { background: var(--color-primary-soft); color: var(--color-primary); border: 1px solid rgba(0, 74, 128, .25); }
/* the super administrator mark: deep navy with a gold crown and edge, unmistakable next to "Admin" */
.badge.super { position: relative; padding: 1px 6px; background: linear-gradient(135deg, #0b2440, #163a63); color: #f3d27a; border: 1px solid #c9a24a; cursor: default; }
/* its name appears at once on hover or keyboard focus, in the platform's style (a title tooltip waits half a second) */
.badge.super[data-tip]:hover::after, .badge.super[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: #0b2440; color: #fff; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-2); z-index: 10; pointer-events: none; }
.badge.super:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.badge { display: inline-block; white-space: nowrap; margin-left: var(--space-2); padding: 1px 8px; border-radius: 999px; background: var(--color-bg-soft); color: var(--color-text-muted); border: 1px solid var(--color-line); font-size: var(--text-xs); font-weight: 600; vertical-align: 1px; }
.st.approved, .st.pending, .status.development { background: var(--color-warn-soft); color: var(--color-warn); }
.admin tr:has(.pill.on) { box-shadow: inset 3px 0 var(--color-ok); }
.access-box { border: 1px solid var(--color-line); border-radius: var(--radius-m); }
.access-box > form:not(.filters), .access-box > h3, .access-box > p { margin: var(--space-4); }
.admin .access-box > .filters { margin: var(--space-4); }
.access-box > .pagination { margin: 0 var(--space-4); }
.pill.me { background: var(--color-primary-soft); color: var(--color-primary); }
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; border-bottom: 1px solid var(--color-line); margin: var(--space-4) 0; }
.tabs a { flex: none; scroll-snap-align: start; color: var(--color-text-muted); padding: 12px 16px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 600; font-size: var(--text-s); }
.tabs a:hover { color: var(--color-primary); }
.tabs a[aria-current=page] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
dialog.confirm { border: 1px solid var(--color-line); border-radius: var(--radius-l); padding: var(--space-5); max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-2); color: var(--color-text); font: 400 var(--text-m)/1.6 var(--font); }
dialog.confirm::backdrop { background: rgba(16, 24, 40, .45); }
dialog.confirm h2 { font-size: var(--text-h3); }
dialog.confirm p { margin: 0 0 var(--space-5); }
dialog.confirm .acts { justify-content: flex-end; }
/* "Add …" forms opened from a title action */
dialog.form-dialog { border: 1px solid var(--color-line); border-radius: var(--radius-l); padding: var(--space-5); max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow-2); color: var(--color-text); font: 400 var(--text-m)/1.6 var(--font); }
dialog.form-dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog.form-dialog h2 { font-size: var(--text-h3); margin: 0 0 var(--space-4); }
.box-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.box-heading h2 { margin: 0; }
[data-picker-results] { max-height: 320px; overflow-y: auto; }
[data-picker] .check { display: flex; gap: var(--space-2); align-items: baseline; padding: var(--space-2) 0; }
[data-picker] input[type="checkbox"] { width: auto; }
button:disabled { opacity: .5; cursor: default; }
dialog.form-dialog form > div { margin-bottom: var(--space-3); }
/* Reset password: the password fields belong to "Set a password now" only (pure CSS, works without script) */
.reset-mode:has(input[value="link"]:checked) + .reset-set { display: none; }
/* a short note beside a field's label, on the same line, so showing it never moves the form */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.label-row .hint { margin: 0; font-size: var(--text-s); }
/* the action comes first in the form so Enter performs it; it still shows on the right, Cancel on its left */
dialog.form-dialog form > .acts { flex-direction: row-reverse; justify-content: flex-start; margin-top: var(--space-4); }
/* the two-step code dialog that opens over it keeps its own order: Cancel, then Confirm on the right */
dialog.confirm .acts { flex-direction: row; justify-content: flex-end; }
.form-dialog hr{border:0;border-top:1px solid var(--line, #dde3ea);margin:20px 0 16px}
.admin td form{display:inline-block;margin-right:8px}
.acts { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.acts form { margin: 0; }
td .acts { justify-content: flex-end; }
td .acts.role-row { justify-content: flex-start; }  /* under the left-aligned Actions header, same place on every row */
/* a form's button never sits on the field above it */
main.admin form > :is(div, section, select, textarea, .hint, input:not([type=hidden])) + :is(button, .acts), .form-row > .acts { margin-top: var(--space-3); }

/* the sign-in family: a card inside the standard header and footer */
body.signin { background: var(--color-bg-page); }
.stage { display: flex; flex-direction: column; align-items: center; padding: var(--space-7) var(--space-4); }
.card { width: 100%; max-width: 440px; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-1); }
.band { display: flex; align-items: center; gap: var(--space-3); background: var(--accent, var(--color-primary)); color: #fff; padding: 10px 22px; font-size: var(--text-s); font-weight: 600; line-height: 1.3; }
.band .code { flex: none; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-s); padding: 2px 8px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; }
.card-in { padding: var(--space-5) var(--space-6) var(--space-6); }
.card h1 { font-size: var(--text-h2); margin: 0 0 var(--space-2); }
.app-to { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--space-4); color: var(--color-text-muted); font-size: var(--text-s); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--color-primary)); }
.lead { margin: 0 0 var(--space-5); }
.card label { margin-top: var(--space-4); }
.card .btn { width: 100%; margin-top: var(--space-5); }
.card .btn.secondary, .card form + form .btn { margin-top: var(--space-2); }
.card .btn:not(.secondary) { background: var(--accent, var(--color-primary)); border-color: var(--accent, var(--color-primary)); }
.card .btn:not(.secondary):hover, .card .btn:not(.secondary):focus-visible { background: var(--hover, var(--color-primary-hover)); border-color: var(--hover, var(--color-primary-hover)); }
.sso { margin: var(--space-4) 0 0; text-align: center; font-size: var(--text-s); color: var(--color-text-muted); }
.sso a { color: var(--color-primary); font-weight: 600; }
.card .notice, .card .err { margin-bottom: var(--space-3); }

/* the home page */
.fh-hero { position: relative; height: 420px; overflow: hidden; background: var(--color-primary); }
.fh-hero-art { position: absolute; inset: 0 0 0 30%; background: var(--color-primary-hover) var(--art) center / cover no-repeat; }
.fh-hero-panel { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 74, 128, .96), rgba(0, 74, 128, .96)), url(/img/hero.svg) center / cover; clip-path: polygon(0 0, 52% 0, 36% 100%, 0 100%); }
.fh-hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.fh-hero-text { max-width: 620px; color: #fff; text-shadow: 0 1px 12px rgba(0, 30, 60, .55); }
.fh-hero-text p { margin: 0 0 12px; font-size: var(--text-s); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9d8e6; }
.fh-hero-text h1 { margin: 4px 0 0; color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1.1; }
.fh-hero-text h1 + .fh-hero-sub { margin: 18px 0 0; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; color: #dbe6f0; letter-spacing: 0; text-transform: none; font-weight: 400; max-width: 520px; }
.fh-hero.compact { height: 220px; }
.fh-hero.compact .fh-hero-sub { display: none; }
.start-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.start-head h2 { margin: 0; }
.start-head p { margin: 0; color: var(--color-text-muted); }

/* public content */
.page-content { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.page-content h2 { color: var(--color-primary); margin: 0 0 var(--space-5); }
/* text pages (Terms, Privacy, About): a heading sits close to its own text and well apart from the section before */
.page-content > h2, .prose h2 { margin: var(--space-6) 0 var(--space-2); }
.page-content > h2:first-child, .prose > h2:first-child, .terms-summary + h2 { margin-top: 0; }
.page-content > p { margin: 0 0 var(--space-3); }
.page-content p, .page-content li { line-height: 1.8; }
.page-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--space-7); }
.prose { max-width: 780px; }
.prose section { margin-bottom: var(--space-6); }
.prose p { margin: 0 0 var(--space-5); }
.prose li { margin-bottom: 10px; }
.contact-card { display: block; font-style: normal; line-height: 1.7; padding: var(--space-5); border: 1px solid var(--color-line); border-radius: var(--radius-m); background: var(--color-bg); margin: 0 0 var(--space-5); max-width: 720px; }
.contact-card .contact-name { display: block; font-size: var(--text-l); color: var(--color-primary); }
.contact-card .contact-full { display: block; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.side-card { position: sticky; top: var(--space-5); padding: var(--space-5); }
.side-card .app-pic { display: block; margin-bottom: var(--space-5); border-radius: var(--radius-s); }
.side-card img { width: 100%; height: auto; display: block; border-radius: var(--radius-s); }
.app-pic { display: block; overflow: hidden; }
.app-pic img { transition: transform .2s; }
.app-pic:hover img, .app-pic:focus-visible img { transform: scale(1.03); }
.application-card .app-pic:focus-visible { outline-offset: -3px; }
.side-card .public-btn { display: flex; margin-top: var(--space-4); }
.application-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.other-applications { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.application-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s; }
.application-card:hover { box-shadow: var(--shadow-2); }
.application-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.application-copy { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.application-copy h3 { font-size: var(--text-l); margin: var(--space-2) 0; }
.application-copy h3 a { text-decoration: none; color: var(--color-text); }
.application-copy h3 a:hover { text-decoration: underline; }
.application-copy p { font-size: var(--text-s); margin: 0 0 var(--space-3); }
.application-copy > .status { margin-top: auto; align-self: flex-start; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; color: var(--color-text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }
.fh-more { color: var(--color-primary); font-weight: 600; font-size: var(--text-s); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); padding: var(--space-5) var(--space-6); margin-top: var(--space-7); }
.cta-band strong { margin-right: auto; }
.cta-band a { font-weight: 600; }
.access-steps { list-style: none; counter-reset: step; padding: 0; }
.access-steps li { counter-increment: step; position: relative; padding: 0 0 var(--space-5) 68px; }
.access-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; background: var(--color-primary-soft); color: var(--color-primary); width: 44px; height: 44px; border-radius: var(--radius-m); display: grid; place-items: center; font-weight: 700; }
.access-steps h3 { margin-bottom: var(--space-2); }
.lost-head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-3); }
.lost-head .big { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1; color: var(--color-primary); }
.broken { width: 132px; height: 110px; flex: none; }
.broken .rib { fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.broken .gone { stroke: #a9915d; stroke-dasharray: 4 7; animation: gone 2.4s ease-in-out infinite; }
.broken circle { fill: #a9915d; }
@keyframes gone { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* My account: cards; every action has its own focused page */
.account-content section { padding: var(--space-5) var(--space-6); margin: 0 0 var(--space-5); min-width: 0; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-bottom: var(--space-5); }
.acct-grid > section { margin: 0; display: flex; flex-direction: column; }
.acct-grid > section > .acct-actions, .acct-grid > section > .hint:last-child { margin-top: auto; padding-top: var(--space-3); }
.acct-focus { max-width: 680px; margin: auto; }
.account-content h2 { font-size: var(--text-h3); color: var(--color-text); margin: 0 0 var(--space-3); }
.account-content h3 { font-size: var(--text-m); color: var(--color-primary); margin: var(--space-1) 0 var(--space-1); }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-3); min-height: var(--control-h); }
.acct-head h2 { margin: 0; }
.account-content p { margin: 0 0 var(--space-3); line-height: 1.7; }
.account-content .err, .account-content .ok { margin-bottom: var(--space-5); }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.acct-profile { display: flex; gap: var(--space-5); align-items: flex-start; }
.account-photo, .acct-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-avatar { background: var(--color-primary); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.acct-profile > div { flex: 1; min-width: 0; }
.acct-profile dl, .key, .facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-content: start; }
.acct-profile dt, .key dt, .facts dt { color: var(--color-text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; padding-top: 3px; }
.acct-profile dd, .key dd, .facts dd { margin: 0; overflow-wrap: anywhere; }
/* Two-step sign-in card: facts in rows, a calm note for administrators with its help inside */
.acct-facts { margin: var(--space-4) 0; }
.warn-text { color: var(--color-danger); }
.acct-note { background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; }
.acct-note > p { margin: 0; }
.acct-note details.help { margin: var(--space-2) 0 0; }
.acct-note details.help > summary { min-height: 0; padding: var(--space-1) 0; }
.help-list { margin: var(--space-2) 0 0; }
.help-list dt { font-weight: 600; margin-top: var(--space-3); }
.help-list dt:first-child { margin-top: 0; }
.help-list dd { margin: var(--space-1) 0 0; }
.acct-note details.help > .hint { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-line-soft); }
.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--color-line-soft); }
.devices li:first-child { border-top: 0; padding-top: 0; }
.devices li > div { min-width: 0; }
.devices strong { display: block; overflow-wrap: anywhere; }
.devices small { display: block; color: var(--color-text-muted); font-size: var(--text-s); }
.devices form { margin: 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--space-5) 54px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.acct-card details { margin: var(--space-3) 0; }
.acct-card details > summary { cursor: pointer; min-height: var(--control-h); padding: var(--space-2) 0; color: var(--color-primary); font-weight: 600; }
.qr { width: 196px; border: 1px solid var(--color-line); border-radius: var(--radius-m); overflow: hidden; margin: var(--space-3) 0; }
.qr svg { display: block; width: 100%; height: auto; }
.key code, .codes code { font-family: ui-monospace, Consolas, monospace; font-size: var(--text-site); letter-spacing: .06em; }
.codes { columns: 2; column-gap: var(--space-5); list-style: none; margin: 0 0 var(--space-2); padding: var(--space-4) var(--space-5); background: var(--color-bg-soft); border-radius: var(--radius-m); }
.codes li { padding: 5px 0; break-inside: avoid; }
.account-content td.nowrap { white-space: nowrap; }
.account-content .danger-zone { border-color: var(--color-danger); }
.account-content .danger-zone h2 { color: var(--color-danger); }
.step-label { color: var(--color-text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 0 0 var(--space-2); }
.flow-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.flow-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--color-line); }
.flow-steps li.done { background: var(--color-primary); }
.what { margin: 0 0 6px; }
.what dt { font-weight: 700; margin-top: var(--space-3); }
.what dd { margin: 0; line-height: 1.7; }
.choices { border: 0; padding: 0; margin: 0; }
.alt { background: var(--color-bg-soft); border-radius: var(--radius-m); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0 var(--space-1); }
.alt h3 { margin: 0 0 var(--space-2); }
.alt ul { margin: 0; padding-left: 20px; }
.alt li { margin: 6px 0; line-height: 1.6; }
/* Delete my account, final step: the button is disabled (pointer-events, plus the server's own three-second check) while a CSS countdown ticks inside it */
.delete-final { pointer-events: none; opacity: .6; animation: arm 0s linear 3s forwards; }
.delete-final .count { display: inline-grid; }
.delete-final .count > .n { grid-area: 1 / 1; visibility: hidden; animation: tick 1s steps(1, end) forwards; }
.delete-final .count > .n:nth-child(2) { animation-delay: 1s; }
.delete-final .count > .n:nth-child(3) { animation-delay: 2s; }
.delete-final .count { animation: conceal 0s linear 3s forwards; }
.countdown .n { position: absolute; visibility: hidden; animation: tick 1s steps(1, end) forwards; }
.countdown .n:nth-child(2) { animation-delay: 1s; }
.countdown .n:nth-child(3) { animation-delay: 2s; }
.countdown .ready { visibility: hidden; animation: reveal 0s linear 3s forwards; }
@keyframes arm { to { pointer-events: auto; opacity: 1; } }
@keyframes tick { from { visibility: visible; } to { visibility: hidden; } }
@keyframes reveal { to { visibility: visible; } }
@keyframes conceal { to { visibility: hidden; display: none; } }

/* the admin console: the navigation beside the content, boxes with shaded headers, dense tables */
.admin .admin-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.admin-nav { grid-row: 1 / -1; position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow-y: auto; background: var(--color-bg-page); border-right: 1px solid var(--color-line); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; }
.admin-nav .admin-menu { display: flex; flex-direction: column; flex: 1; }
.admin-nav .nav-sections { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav summary { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 8px 12px; cursor: pointer; list-style: none; color: var(--color-primary); font-weight: 700; font-size: var(--text-s); background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-m); }
.admin-nav details[open] summary { margin-bottom: var(--space-3); }
.admin-nav summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.admin-nav details[open] summary::after { transform: rotate(-135deg) translateY(2px); }
.admin-nav .nav-here { margin-left: auto; color: var(--color-text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.admin-nav h3 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin: 14px 10px 4px; }
.admin-nav a { display: flex; align-items: center; min-height: 38px; padding: 6px 13px; border-radius: var(--radius-m); color: var(--color-text); text-decoration: none; font-size: var(--text-s); }
.admin-nav a:hover, .admin-nav a:focus-visible { background: var(--color-neutral-soft); color: var(--color-primary); }
.admin-nav a[aria-current=page] { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 700; }  /* a calm pill, as Google Admin and the Drive: no side bar */
.admin-nav a:last-of-type { margin-bottom: var(--space-3); }
.admin-nav .nav-lock { margin: auto 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
.admin-nav .lock-btn { width: 100%; justify-content: flex-start; min-height: 38px; padding: 6px 10px; background: none; border: 0; color: var(--color-danger); }
.admin-nav .lock-btn:hover, .admin-nav .lock-btn:focus-visible { background: var(--color-danger-soft); color: var(--color-danger); }
.admin-nav .lock-btn svg { flex: none; width: 16px; height: 16px; }
/* Wide screens: the menu is always shown; the closed <details> is forced visible, so phones alone get the disclosure. */
@supports selector(details::details-content) { @media (min-width: 901px) { .admin-nav summary { display: none; } .admin-nav details::details-content { content-visibility: visible; display: flex; flex-direction: column; flex: 1; } } }
.admin-content { min-width: 0; width: 100%; max-width: 1200px; padding: var(--space-5) var(--space-6) var(--space-6); }
/* lists of data use the screen (Google Admin, Entra) so columns do not wrap; reading pages keep a comfortable measure */
.admin-content.wide { max-width: 1600px; }
.admin-head { margin-bottom: var(--space-4); }
.admin-head ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--space-1); font-size: var(--text-s); color: var(--color-text-muted); }
.admin-head li + li::before { content: "/"; margin-right: 6px; color: var(--color-text-faint); }
.admin-head nav a { color: var(--color-text-muted); text-decoration: none; }
.admin-head nav a:hover, .admin-head nav a:focus-visible { color: var(--color-primary); text-decoration: underline; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.admin-title h1 { font-size: var(--text-h2); color: var(--color-primary); font-weight: 700; margin: 0; }
.title-actions:empty { display: none; }
.admin .app-foot { grid-column: 2; }
.admin .app-foot .w { max-width: 1200px; margin: 0; padding-left: var(--space-6); padding-right: var(--space-6); }
.admin section { padding: var(--space-4) var(--space-5); margin-top: var(--space-5); }
.admin section > h2 { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-line); padding: var(--space-3) var(--space-5); margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-5)) var(--space-4); font-size: var(--text-m); font-weight: 600; color: var(--color-text); border-radius: 7px 7px 0 0; display: flex; align-items: center; gap: var(--space-2); }
.admin section:has(> .table-scroll) { padding: 0; overflow: hidden; }  /* a table card only; a card that merely holds one keeps its padding */
.admin section:has(> .table-scroll) > h2 { margin: 0; border-radius: 0; }
/* a table box whose header carries its Add button: the same shaded strip as other box headers */
.admin section > .box-heading { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-line); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-5); margin: 0; border-radius: 7px 7px 0 0; }
.admin section > .box-heading h2 { font-size: var(--text-m); font-weight: 600; color: var(--color-text); }
.admin section > .box-heading .mini { min-height: var(--control-h-compact); }
/* picker results: the name, with e-mail and group underneath */
.picker-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) 0; border-top: 1px solid var(--color-line-soft); }
.picker-option:first-child { border-top: 0; }
.picker-option input { margin-top: 3px; }
.picker-option small { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }
.admin .admin-content > :first-child, .admin .admin-head + * { margin-top: 0; }  /* the content starts level with the menu */
.admin .metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.admin .metrics section { display: flex; flex-direction: column; min-height: 140px; margin-top: 0; }
.admin .metrics strong { margin-top: auto; color: var(--color-primary); font-size: 2rem; }
.admin .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); align-items: end; padding: var(--space-4); margin-top: var(--space-5); }
.admin .filters > div { min-width: 0; }
.admin .filters label { margin-top: 0; }
.filter-actions { grid-column: -2 / -1; align-self: end; display: flex; gap: var(--space-3); align-items: center; justify-content: flex-end; }
.filter-actions > * { min-height: var(--control-h); display: inline-flex; align-items: center; }
.admin .filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.filter-chips a { border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 6px 12px; font-size: var(--text-xs); text-decoration: none; background: var(--color-bg); color: var(--color-primary); }
.admin .pagination { display: flex; gap: var(--space-4); justify-content: flex-end; align-items: center; padding: var(--space-3) var(--space-1) 0; font-size: var(--text-s); }  /* the next card brings its own top margin */
.admin :is(input:not([type=checkbox], [type=radio], [type=file], [type=hidden]), select) { height: var(--control-h); }  /* same height, so labels line up in a filter row */
.admin .bulk-bar { display: flex; min-height: 4.25rem; margin: var(--space-4) 0 var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-m); gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.admin .bulk-form:has(input[name^="sel_"]:checked) .bulk-bar { background: var(--color-primary-soft); }
/* nothing ticked: the bar only says how to start */
.admin .bulk-bar.empty > :not([data-bulk-count]) { display: none; }
.admin .bulk-bar.empty [data-bulk-count] { border: 0; font-weight: 400; color: var(--color-text-muted); }
.admin .bulk-bar select { min-width: 13rem; max-width: 28rem; }
/* one centred row, as Google Admin: each list names itself ("Choose action"), the labels stay for screen readers */
.admin .bulk-bar div > label:not(.check) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin .bulk-bar div, .admin .bulk-bar select { margin: 0; }
.admin .bulk-bar [data-bulk-count] { padding-right: var(--space-3); border-right: 1px solid var(--color-line); align-self: stretch; display: flex; align-items: center; }
.admin .bulk-bar.danger [data-bulk-count] { border-color: rgba(180, 35, 24, .3); }
.admin .bulk-bar [data-bulk-for="delete"] { flex: 0 1 26rem; min-width: 14rem; }
.admin .bulk-bar [data-bulk-for="delete"] .check { margin: 0; align-items: center; color: var(--color-danger); font-size: var(--text-s); line-height: 1.35; }
.admin .bulk-bar .hint { margin: 0; flex-basis: 100%; }
.admin .bulk-bar .bulk-why { color: var(--color-text-muted); font-size: var(--text-s); }
.admin .bulk-bar button.primary:disabled { opacity: .45; cursor: not-allowed; }
.admin .bulk-bar option[value="delete"], .admin .bulk-bar.danger select[name="operation"] { color: var(--color-danger); }
.admin .bulk-bar.danger select[name="operation"] option:not([value="delete"]) { color: var(--color-text); }
.admin tr:has(.row-select input:checked) { background: var(--color-primary-soft); }
.admin .row-select { margin: 0; display: flex; align-items: center; justify-content: center; min-width: 28px; min-height: 30px; cursor: pointer; }
/* the whole cell ticks the box (Gmail pattern): the label fills the cell, so a click near the box never misses */
.admin td:has(> .row-select), .admin th:has(> .row-select) { position: relative; padding: 0; width: 3.5rem; height: 3.25rem; }
.admin td > .row-select, .admin th > .row-select { position: absolute; inset: 0; }
.admin .row-select input { width: 18px; height: 18px; cursor: pointer; }
/* while the bar is open the list ends above it, so the last rows are never hidden behind it */

.admin .facts { margin: 0 0 var(--space-4); align-items: center; }
.bulk-bar.danger { background: var(--color-danger-soft, #fdecec); border-color: var(--color-danger, #b42318); }
.bulk-bar.danger button.primary { background: var(--color-danger, #b42318); border-color: var(--color-danger, #b42318); }
.detail-rows { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-5)) calc(-1 * var(--space-4)); }
.detail-rows > div { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) 2.5rem; align-items: center; gap: var(--space-4); min-height: 3.25rem; padding: var(--space-1) var(--space-3) var(--space-1) var(--space-5); border-top: 1px solid var(--color-line-soft); }
.detail-rows > div:first-child { border-top: 0; }
.detail-rows > div:has(.icon-btn):hover { background: var(--color-bg-soft); }
.detail-rows dt { color: var(--color-text-muted); font-size: var(--text-s); }
.detail-rows dd { margin: 0; overflow-wrap: anywhere; }
.detail-action { justify-self: end; }
.icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--color-text-muted); }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--color-primary-soft, #e6eef5); color: var(--color-primary); }
.admin .facts dd { line-height: 1.5; }
.add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); align-items: start; }
.add > .sign-in-kind { grid-column: 1 / -1; border: 0; padding: 0; }
.sign-in-kind label, .segmented label { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--color-line); padding: var(--space-2) var(--space-4); background: var(--color-bg-soft); cursor: pointer; }
.sign-in-kind label:has(input:checked), .segmented label:has(input:checked) { background: var(--color-primary-soft); color: var(--color-primary); }
.sign-in-kind input, .segmented input { width: auto; margin: 0; }
.segmented { border: 0; padding: 0; margin: 0 0 var(--space-3); }
.add > div { min-width: 0; }
.add fieldset { margin: var(--space-3) 0; }
.add > .acts { grid-column: 1 / -1; margin-top: var(--space-3); }
.req-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.req-card { padding: var(--space-4) var(--space-5); }
.req-head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; }
.req-head h3 { margin: 0; font-size: var(--text-l); }
.req-meta { color: var(--color-text-muted); font-size: var(--text-s); margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.req-note { margin: var(--space-3) 0 0; white-space: pre-line; }
.req-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 var(--space-4); align-items: start; border-top: 1px solid var(--color-line-soft); padding-top: var(--space-2); margin-top: var(--space-3); }
.req-form fieldset, .req-form label { margin-top: var(--space-3); }
.req-form .check { margin: var(--space-1) 0; }
.req-form fieldset { grid-column: 1 / -1; }
.admin tr:has([data-delete-row]) input[name^="reason_"] { min-width: 12rem; width: 100%; }
.admin tr:has([data-delete-row]:not(:checked)) td:not(:first-child) { opacity: .45; }
.req-form > div:has(> .check) { align-self: end; padding-bottom: var(--space-2); }
.req-said { margin: var(--space-3) 0 0; font-size: var(--text-s, .875rem); color: var(--color-muted, #5b6672); font-weight: 600; }
.req-said + .req-note { margin-top: var(--space-1); }
.req-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.role-row input { width: auto; min-width: 0; flex: 1 1 140px; }
.role-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 1100px) { .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-columns { gap: var(--space-6); } .dd > a, .fh-nav > a { padding: 10px 8px; } }
@media (max-width: 900px) {
  .app-head .fh-main { padding: 8px 12px; gap: 10px; }
  .apps-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .apps-link { padding: 0; width: var(--control-h-compact); justify-content: center; }
  .admin .admin-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .admin-nav { grid-row: auto; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--color-line); padding: var(--space-3) var(--space-4); }
  .admin-content { padding: var(--space-5) var(--space-4); }
  .admin .app-foot { grid-column: auto; }
  .admin .app-foot .w { padding-left: var(--space-4); padding-right: var(--space-4); }
  .admin .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .fh:not(.app-head) .fh-nav { display: none; } .burger { display: block; }
  .page-columns { grid-template-columns: 1fr; } .side-card { position: static; } .side-card > img { max-width: 320px; }
  .page-content { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .fh-hero { height: 320px; } .fh-hero-panel { clip-path: none; background: linear-gradient(90deg, #004a80f5, #004a8080); } .fh-hero-text h1 { font-size: 1.7rem; }
  .fh-cols { grid-template-columns: 1fr; gap: var(--space-5); }
  .acct-grid { grid-template-columns: 1fr; } .account-content section { padding: var(--space-5) var(--space-4); } .codes { columns: 1; } .acct-head { min-height: 0; }
}
@media (max-width: 560px) {
  .w { padding-left: var(--space-4); padding-right: var(--space-4); }
  .fh-main { gap: var(--space-3); min-height: 64px; } .fh-logo img { width: 44px; height: 44px; } .fh-logo b { font-size: 1.1rem; } .fh-logo .fh-portal { white-space: nowrap; } .user-name { display: none; } .signin-btn { padding: 0 var(--space-3); }
  .page-band { padding-bottom: var(--space-5); }
  .application-grid, .other-applications { grid-template-columns: 1fr; }
  .lost-head { gap: var(--space-4); } .broken { width: 90px; height: 75px; } .lost-head .big { font-size: 3rem; }
  .cta-band { padding: var(--space-5); align-items: flex-start; flex-direction: column; }
  .acct-profile { flex-direction: column; } .acct-profile dl { grid-template-columns: 1fr; gap: 2px; } .acct-profile dt { margin-top: 10px; } .devices li { flex-direction: column; align-items: flex-start; } .acct-actions > * { flex: 1 1 auto; } .steps > li { padding-left: 48px; } .qr { width: 100%; max-width: 260px; }
  .admin .filters { grid-template-columns: 1fr; }  .add { grid-template-columns: 1fr; }
  .lo { display: none; }
  .card-in { padding: var(--space-5) var(--space-4); } .stage { padding: var(--space-5) var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .broken .gone { animation: none; opacity: .7; } .application-card, .app-pic img { transition: none; }
  .delete-final { animation: none; pointer-events: auto; opacity: 1; } .delete-final .count { display: none; }
}
@media print { .fh, .admin-nav, footer, .admin form, .admin .filters { display: none; } .admin .admin-layout { display: block; max-width: none; padding: 0; } .admin section { box-shadow: none; padding: 8px 0; overflow: visible; } .admin table { font-size: 9pt; } .admin a { color: #000; text-decoration: none; } .admin tr { break-inside: avoid; } }
