/* The BBCA app console (/admin) and the plain pages (not found, the front door), in the section-colours look (app 0.18.0).
   The same tokens as the app's own pages (modules/letters/assets/css/app.css), with the console's navy. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../modules/letters/assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../modules/letters/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --n-25: #fbfbfc; --n-50: #f4f5f7; --n-100: #eceef2; --n-200: #dde0e6; --n-300: #c5cad3; --n-400: #9aa1ae; --n-500: #687183; --n-600: #535b6b; --n-700: #3d4452; --n-800: #2a303b; --n-900: #151922;
  --navy-50: #eef0fb; --navy-100: #dfe2f6; --navy-200: #c3c8ee; --navy-600: #34357a; --navy-700: #262769; --navy-900: #1b1740;
  --success-50: #ebf7ef; --success-200: #b8e2c5; --success-600: #18794e; --success-900: #0b3d27;
  --warning-50: #fff8e6; --warning-200: #f6d98b; --warning-600: #b45309; --warning-900: #6a3a05;
  --error-50: #fdecea; --error-200: #f3c1bb; --error-600: #c2261b; --error-700: #a11d14; --error-900: #5e120c;
  --line: #e2e5ea; --line-strong: #c9ced6; --line-soft: #eef0f3;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;
  --e-1: 0 1px 2px rgba(21, 25, 34, .05), 0 1px 3px rgba(21, 25, 34, .04);
  --e-2: 0 2px 4px rgba(21, 25, 34, .05), 0 6px 16px rgba(21, 25, 34, .07);
  --focus: #4545d6; --focus-ring: 0 0 0 3px rgba(69, 69, 214, .22);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* old names, still read by some markup */
  --ink: var(--n-900); --brand: var(--navy-600); --muted: var(--n-600); --ground: var(--n-50); --gold: #f5c76b;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { background: var(--n-50); color: var(--n-900); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-bottom: 56px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--navy-600); text-underline-offset: 2px; }
a:hover { color: var(--navy-900); }
.ic { flex: none; vertical-align: -3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.wrap.narrow, .narrow { max-width: 520px; }
main.wrap { padding-top: 26px; }

/* ---- the navy bar ---- */
.console-top { background: var(--navy-900); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.console-top .ct-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; min-height: 64px; }
.ct-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.ct-brand:hover { color: #fff; }
.ct-brand .emb { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.ct-brand .emb img { display: block; width: 36px; height: 36px; }
.ct-brand small { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.ct-brand b { display: block; font-size: 17px; line-height: 1.25; }
.ct-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 10px; }
.ct-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-md); color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 15px; text-decoration: none; }
.ct-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ct-nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.console-top :focus-visible { outline-color: var(--gold); }
.ct-me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ct-me form { margin: 0; }
.me-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: var(--r-full); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 650; font-size: 15px; min-height: 44px; text-decoration: none; line-height: 1.25; }
.me-chip:hover, .me-chip.on { background: rgba(255, 255, 255, .08); color: #fff; }
.me-chip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; font-size: 12px; font-weight: 750; flex: none; }
.me-chip .me-t { display: flex; flex-direction: column; }
.me-chip small { display: block; font-weight: 500; color: rgba(255, 255, 255, .7); font-size: 12px; }
.ct-out { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: none; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 15px; cursor: pointer; }
.ct-out:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---- page ---- */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--n-600); font-size: 14px; margin-bottom: 10px; }
.crumbs a { color: var(--n-700); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--navy-600); text-decoration: underline; }
.crumbs .ic { color: var(--n-400); }
h1 { font-size: 1.75rem; font-weight: 750; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 18px; overflow-wrap: break-word; }
h2 { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--n-600); }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; margin: 0 0 8px; }
form h3 { margin-top: 22px; }
form h3:first-of-type, .card > h3:first-child, .card-head h3 { margin-top: 0; }
p { margin: 0 0 10px; }
small { font-size: 13px; }
b, strong { font-weight: 650; }
code, .mono { font-family: var(--mono); font-size: max(.86em, 12px); }
code { background: var(--n-100); padding: 1px 6px; border-radius: 4px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px 24px; margin: 0 0 18px; box-shadow: var(--e-1); display: block; }
.card.danger { border-color: var(--error-200); }
.card.danger h3 { color: var(--error-700); }
.card > :last-child, .card > form > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head form { margin: 0; }
.card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-title .sub { color: var(--n-600); font-size: 14px; margin-top: 1px; }
.card-ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.card.warnbox { border-color: var(--warning-200); background: var(--warning-50); }
.card.warnbox .card-ic { background: #fff; color: var(--warning-600); }
details.card > summary { cursor: pointer; font-size: 1.0625rem; font-weight: 650; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); font-weight: 700; }
details.card[open] > summary::before { content: "–"; }
details.card[open] > summary { margin-bottom: 14px; }
.card > label.f:first-child, .card > form > label.f:first-child, form > label.f:first-child, input[type=hidden]:first-child + label.f, .card-head + label.f, .card-head + p + label.f { margin-top: 0; }

.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n t" "m t"; align-items: center; align-content: center; column-gap: 12px; row-gap: 2px;
  min-height: 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 18px; margin-bottom: 8px; color: inherit; text-decoration: none; box-shadow: var(--e-1); }
.item:hover { border-color: var(--line-strong); box-shadow: var(--e-2); color: inherit; }
.item b { grid-area: n; min-width: 0; font-size: 16px; font-weight: 650; line-height: 1.3; overflow-wrap: break-word; }
.item small { grid-area: m; min-width: 0; color: var(--n-600); font-weight: 500; overflow-wrap: anywhere; }
.item .tag { grid-area: t; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-full); background: var(--n-100); color: var(--n-700); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }

label.f { display: block; font-size: 14px; font-weight: 600; color: var(--n-700); margin: 16px 0 6px; }
.in, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 9px 12px; background: #fff; font-size: 16px; color: var(--n-900);
  box-shadow: inset 0 1px 1px rgba(21, 25, 34, .03); }
textarea.in { min-height: 88px; line-height: 1.5; display: block; resize: vertical; }
.in::placeholder { color: var(--n-500); opacity: 1; }
.in:hover { border-color: var(--n-300); }
.in:focus, input:focus, select:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--focus); box-shadow: var(--focus-ring); }
.in:disabled, .in[readonly] { background: var(--n-50); color: var(--n-600); border-color: var(--line); }
.in.mono { font-family: var(--mono); font-size: 14px; background: var(--n-25); border-color: var(--line); color: var(--n-900); }
select.in { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23687183' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.fields-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.hint { color: var(--n-600); font-size: 14px; margin: 8px 0; }
.none { color: var(--n-600); font-size: 14px; }
label.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 4px; font-size: 15px; min-height: 24px; cursor: pointer; }
label.check input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy-600); }
.acts { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--n-800);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center; box-shadow: 0 1px 2px rgba(21, 25, 34, .05); }
.btn:hover { background: var(--n-50); border-color: var(--n-300); color: var(--n-900); }
.btn:active { background: var(--n-100); }
.btn .ic { color: var(--n-600); }
.btn.primary { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.btn.primary:hover, .btn.primary:active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn.primary .ic { color: currentColor; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--n-700); }
.btn.ghost:hover { background: var(--n-100); }
.btn:disabled { opacity: .5; cursor: default; }
.flash { border-radius: var(--r-lg); padding: 12px 16px; margin: 0 0 16px; font-size: 15px; border: 1px solid; font-weight: 550; }
.flash.ok { background: var(--success-50); border-color: var(--success-200); color: var(--success-900); }
.flash.err { background: var(--error-50); border-color: var(--error-200); color: var(--error-900); }
.ok { color: var(--success-600); font-weight: 650; }
.bad { color: var(--error-700); font-weight: 650; }
.warn { color: var(--warning-900); font-weight: 650; }
.muted { color: var(--n-600); }
.checks { margin: 0; padding-left: 22px; font-size: 15px; }
.checks li { margin: 4px 0; }
.stats { margin: 0 0 8px; font-size: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; font-size: 15px; }
.row small { color: var(--n-600); }
.rowacts { display: flex; gap: 8px; }
.rowacts form { margin: 0; }
table.kv { border-collapse: collapse; width: 100%; font-size: 15px; }
table.kv td, table.kv th { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.kv td:first-child, table.kv th:first-child { padding-left: 0; }
table.kv td:last-child, table.kv th:last-child { padding-right: 0; }
table.kv tr:last-child td { border-bottom: 0; }
table.kv th { font-size: 12px; font-weight: 700; color: var(--n-600); text-transform: uppercase; letter-spacing: .04em; }
table.kv td.num { text-align: right; font-variant-numeric: tabular-nums; }
.iconrow { display: flex; gap: 16px; align-items: center; }
.iconrow img { border-radius: 16px; border: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.iconrow > div { min-width: 0; }
input[type=file] { font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 4px 12px; margin-right: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--n-50); color: var(--n-800); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--n-300); }
.cardnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 14px; }
.cardnames .card { margin: 0; }
.cardnames .card h3 { margin-top: 0; }

/* ---- a department ---- */
.dept-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dept-head .emb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--e-1); flex: none; }
.dept-head .emb img { display: block; width: 56px; height: 56px; }
.dept-head > div { flex: 1 1 260px; min-width: 0; }
.dept-head h1 { margin: 0; }
.dept-head p { margin: 2px 0 0; color: var(--n-600); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.glance > div { padding: 14px 16px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--e-1); }
.glance b { display: block; font-size: 1.5rem; color: var(--n-900); font-variant-numeric: tabular-nums; line-height: 1.25; }
.glance small { color: var(--n-600); font-size: 14px; }
.okline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--success-600); font-weight: 650; font-size: 14px; margin: 0 0 18px; }
.okline .muted { font-weight: 500; }
.link-box { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--n-25); font-family: var(--mono); font-size: 14px; color: var(--n-800); }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-box .btn { font-family: var(--font); }
.dept-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.backup-list { list-style: none; margin: 0 0 6px; padding: 0; }
.backup-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.backup-list li:first-child { border-top: 0; padding-top: 2px; }
.backup-list li > .ic { color: var(--n-400); }
.backup-list li > span { flex: 1; min-width: 0; }
.backup-list li b { display: block; font-size: 15px; }
.backup-list small { color: var(--n-600); }
.backup-list form { margin: 0; }

/* ---- plain pages (before 0.19.0) ---- */
body.plain main.wrap { padding-top: 56px; }
body.plain main.wrap h1 { margin-bottom: 16px; }

/* ---- 0.19.0: the console's other pages, its sign-in and the plain pages (approved mockups, page 8) ---- */
.stackc { display: flex; flex-direction: column; gap: 18px; }
.stackc > .card, .dept-cols > .card { margin: 0; }
.dept-head .emb.navy { background: var(--navy-900); display: grid; place-items: center; }
.dept-head .emb.navy img { width: 40px; height: 40px; border-radius: 10px; }
.dept-head .tag { margin-left: auto; }
.list-plain { display: grid; gap: 8px; }
.list-plain .item { margin: 0; }
.item .i-emb { width: 44px; height: 44px; border-radius: 12px; background: #fff; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--line); order: 0; }
.item .i-emb img { display: block; width: 44px; height: 44px; }
.item > svg.ic { grid-area: t; color: var(--n-400); order: 4; flex: none; justify-self: end; }
.tag.ok { background: var(--success-50); color: var(--success-900); box-shadow: inset 0 0 0 1px var(--success-200); }
.tag.bad { background: var(--error-50); color: var(--error-900); box-shadow: inset 0 0 0 1px var(--error-200); }
.tag.warn { background: var(--warning-50); color: var(--warning-900); box-shadow: inset 0 0 0 1px var(--warning-200); }
details.add-in { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 4px; }
details.add-in > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; color: var(--n-800); }
details.add-in > summary::-webkit-details-marker { display: none; }
details.add-in > summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); font-weight: 700; flex: none; }
details.add-in[open] > summary::before { content: "–"; }
details.add-in h3 { font-size: 15px; margin: 20px 0 4px; }
.kv-rows { display: grid; }
.kv-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.kv-rows > div:first-child { border-top: 0; padding-top: 2px; }
.kv-rows > div > span:first-child { color: var(--n-600); }
.kv-rows .why { display: block; color: var(--n-600); font-size: 13px; font-weight: 500; margin-top: 2px; text-align: right; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.kv-grid > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.kv-grid > div > span { color: var(--n-600); }
.kv-grid b { font-variant-numeric: tabular-nums; }
.code-box { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: var(--r-lg); background: var(--navy-900); color: #e5e7eb; font-family: var(--mono); font-size: 13px; margin: 0 0 6px; }
.code-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; color: inherit; padding: 0; }
.code-box .btn { font-family: var(--font); flex: none; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); background: var(--n-50); border: 1px solid var(--line-soft); color: var(--n-700); font-size: 14px; margin: 14px 0 0; }
.note .ic { color: var(--n-500); margin-top: 2px; }
.note.ok { background: var(--success-50); border-color: var(--success-200); color: var(--success-900); }
.note.ok .ic { color: var(--success-600); }
.note.warn { background: var(--warning-50); border-color: var(--warning-200); color: var(--warning-900); }
.note.warn .ic { color: var(--warning-600); }
.btn.danger { background: var(--error-600); border-color: var(--error-600); color: #fff; }
.btn.danger:hover, .btn.danger:active { background: var(--error-700); border-color: var(--error-700); color: #fff; }
.btn.danger .ic { color: currentColor; }
.acts.end { justify-content: flex-end; }
.card.danger .card-ic { background: var(--error-50); color: var(--error-700); }
table.kv.jobs { margin-top: 14px; }

/* the sign-in pages: the console's and the site's own front door */
body.door-body { padding-bottom: 0; background: var(--n-50); }
.door { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.door-l { background: var(--navy-900); color: #fff; padding: 56px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.door-l .emb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: #fff; flex: none; }
.door-l .emb img { display: block; width: 56px; height: 56px; }
.door-l small { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.door-l h1 { margin: 0; color: #fff; font-size: 2.25rem; line-height: 1.15; max-width: 14em; }
.door-l p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 30em; }
.door-l ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 30em; }
.door-l li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.door-l li .ic { color: var(--gold); margin-top: 2px; }
.door-l .test-strip { margin-top: auto; }
.door-r { padding: 56px; display: grid; place-items: center; background: var(--n-50); }
.door-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--e-2); }
.door-card .dc-h { display: block; margin: 0 0 4px; font-size: 1.375rem; text-transform: none; letter-spacing: -.01em; color: var(--n-900); font-weight: 750; }
.door-card .dc-h::after { display: none; }
.door-card .lede { color: var(--n-600); margin: 0 0 18px; }
.door-card .acts .btn { width: 100%; }
.door-card .alt { display: block; margin-top: 14px; font-weight: 650; text-align: center; line-height: 1.4; }
.door-card .alt .ic { vertical-align: -4px; margin-right: 4px; }
.door-card .alt .muted { display: block; font-weight: 500; font-size: 13px; }
.door-card .depts { display: grid; gap: 8px; margin-top: 4px; }
.test-strip { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-lg); background: var(--warning-50); border: 1px solid var(--warning-200); color: var(--warning-900); font-size: 14px; }
.test-strip .ic { color: var(--warning-600); }
@media (max-width: 860px) {
  .door { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .door-l { padding: 32px 20px 28px; gap: 12px; }
  .door-l h1 { font-size: 1.6rem; }
  .door-l .test-strip { margin-top: 8px; }
  .door-r { padding: 24px 16px 40px; place-items: start center; }
  .door-card { padding: 22px 18px; }
}

/* plain pages: not found, switched off, something went wrong, first-time setup */
body.plain { padding-bottom: 0; }
.notice-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.notice-card { width: 100%; max-width: 440px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 26px 26px; box-shadow: var(--e-2); }
.notice-card .nic { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--n-100); color: var(--n-600); margin-bottom: 14px; }
.notice-card .nic .ic { width: 30px; height: 30px; }
.notice-card .nic.warn { background: var(--warning-50); color: var(--warning-600); }
.notice-card .nic.danger { background: var(--error-50); color: var(--error-700); }
.notice-card h1 { font-size: 1.5rem; margin: 0 0 6px; }
.notice-card p { color: var(--n-600); margin: 0 0 18px; }
.notice-card .acts { justify-content: center; margin-top: 0; }
.notice-card .acts .btn { min-width: 60%; }
.notice-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: var(--n-700); font-weight: 650; }
.notice-brand img { width: 32px; height: 32px; border-radius: 9px; }
.setup-page { max-width: 760px; margin: 0 auto; padding: 48px 16px 56px; }
.setup-page .notice-brand { justify-content: flex-start; }
.setup-page h1 { margin-bottom: 18px; }
.setup-page .acts { justify-content: flex-end; }

@media (max-width: 900px) {
  .dept-cols { grid-template-columns: minmax(0, 1fr); }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .console-top .ct-in { padding: 10px 14px; gap: 8px 10px; }
  .ct-nav { order: 3; width: 100%; margin: 0 -4px; }
  .ct-nav a { white-space: nowrap; }
  .me-chip { padding: 4px; }
  .me-chip .me-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ct-out span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .card { padding: 16px; }
  h1 { font-size: 1.5rem; }
  .fields-2 { grid-template-columns: minmax(0, 1fr); }
  .in.mono { font-size: 16px; }
  .backup-list li { flex-wrap: wrap; }
  .backup-list li > span { flex-basis: calc(100% - 30px); }
}
@media (pointer: coarse) {
  .btn.small { min-height: 44px; }
  input[type=file]::file-selector-button { min-height: 44px; }
}
@media (min-width: 700px) {
  .item { display: flex; gap: 12px; }
  .item b { flex: 1; order: 1; }
  .item small { flex: 0 1 auto; order: 2; text-align: right; }
  .item .tag { order: 3; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.kv-rows > div > span:last-child { display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 62%; }

/* 0.30.0: the phone code (setup picture, key, spare codes) and a department administrator's sign-in PIN */
.qr-box { display: flex; justify-content: center; margin: 16px 0 8px; min-height: 200px; }
.qr-box img, .qr-box canvas { border: 8px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line, #e3e3ec); }
.totp-key { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.steps { margin: 0 0 8px; padding-left: 20px; line-height: 1.6; }
.spare-codes { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.spare-codes code { display: block; padding: 8px 10px; border: 1px dashed #c9c9d6; border-radius: 8px; text-align: center; font-size: 1rem; letter-spacing: .06em; }
.pin-big { font-size: 1.6rem; letter-spacing: .15em; font-family: ui-monospace, monospace; }
@media print { .console-top, .acts { display: none !important; } }
/* 0.55.0: a label only screen readers read (Console ▸ Wages ▸ People link) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* 0.75.0 (B6): Console ▸ Backups */
table.kv.backups td:last-child { text-align: right; white-space: nowrap; }
table.kv.backups td:last-child > form, table.kv.backups td:last-child > details { display: inline-block; vertical-align: middle; }
table.kv.backups td:last-child > * { margin: 2px 0 2px 4px; vertical-align: middle; }
details.dl { position: relative; }
details.dl > summary { list-style: none; cursor: pointer; }
details.dl > summary::-webkit-details-marker { display: none; }
details.dl[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--e-2); text-align: left; white-space: normal; }
details.dl[open] > form .btn { margin-top: 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
ol.steps { margin: 4px 0 14px; padding-left: 20px; font-size: 15px; }
ol.steps li { margin: 4px 0; }
@media (max-width: 760px) {
  table.kv.backups tr { display: grid; grid-template-columns: 1fr auto; }
  table.kv.backups th { display: none; }
  table.kv.backups td:nth-child(3) { grid-column: 1 / -1; }
  table.kv.backups td:last-child { grid-column: 1 / -1; text-align: left; }
  details.dl[open] > form { left: 0; right: auto; }
}
/* 0.77.0: choosing an administrator for a first PIN after bringing an organisation back */
.radio-row { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.radio-row:last-of-type { border-bottom: 0; }
