/* The admin pages (only for SCAVA_ADMIN_EMAILS), the overview of an account (/overview, 19.10.2026) and the plan page
   (/billing, 07.11.2026) with the panels of the start page (Stefan, 17.10.2026): calm and tidy. Every table cell keeps
   to one line; long texts end with "…" and show in full when hovered, details fold out. Everything hangs on
   <html class="admin">, which static/dashboard.js sets on these pages only; the sign-in page (static/login.html) and
   the two-step page have it in their HTML. Light or dark comes from the colours in static/scava.css (html[data-theme]),
   like on every account page (Stefan, 15.11.2026): no colour is written here directly, except white on petrol.
   test/admin-browser.test.js, test/overview-browser.test.js and test/plans-browser.test.js check in both looks that
   nothing wraps or runs over an edge. */

html.admin .bar { box-shadow: 0 1px 0 var(--line-faint); }
html.admin main { max-width: 1240px; padding-top: 1.6rem; }
html.admin main a { color: var(--link); text-decoration: none; }
html.admin main a:hover { text-decoration: underline; }
html.admin .dim { color: var(--dim); }

/* Title and tabs */
html.admin .a-head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
html.admin .a-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
html.admin .a-tabs { position: relative; display: flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 99px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
/* The highlight is one pill that glides from tab to tab (static/dashboard.js, movePill). */
html.admin .a-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); pointer-events: none; transition: transform .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1); }
html.admin .a-tabs.still .a-pill { transition: none; }
html.admin .a-tabs a { position: relative; flex: none; padding: .42rem .95rem; border-radius: 99px; color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s, color .25s; }
html.admin .a-tabs a:hover { color: var(--ink); background: var(--hover); }
html.admin .a-tabs a.active { color: var(--sel-ink); background: none; }
@media (prefers-reduced-motion: reduce) { html.admin .a-pill { transition: none; } }
html.admin .a-loading { color: var(--dim); }

/* Figures */
html.admin .a-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
/* Six figures (costs): two rows of three instead of five and one left over. */
html.admin .a-stats.six { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
html.admin .a-stat,
html.admin .a-panel { min-width: 0; border-radius: 16px; background: linear-gradient(180deg, var(--raised-2), var(--raised)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
html.admin .a-stat { padding: 15px 17px 14px; }
html.admin .a-label,
html.admin .a-value,
html.admin .a-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.admin .a-label { font-size: .78rem; font-weight: 500; color: var(--dim); }
html.admin .a-value { margin: 4px 0 2px; font-size: 1.65rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
html.admin .a-of { font-size: .95rem; font-weight: 500; color: var(--dim); }
html.admin .a-sub { font-size: .82rem; color: var(--muted); }
html.admin .a-bar { margin: 8px 0 6px; }
html.admin .a-bar .meter { width: 100%; }

/* Panels */
html.admin .a-panel { margin-bottom: 14px; padding: 18px 20px; }
html.admin .a-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
html.admin .a-panel-title { min-width: 0; }
html.admin .a-panel h2 { margin: 0; font-size: 1.02rem; }
html.admin .a-note { margin: 3px 0 0; font-size: .82rem; line-height: 1.45; color: var(--dim); }
html.admin .a-count { flex: none; min-width: 28px; padding: 2px 9px; border-radius: 99px; text-align: center; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
html.admin .a-empty { margin: 0; font-size: .9rem; color: var(--dim); }
html.admin .a-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; gap: 14px; margin-bottom: 14px; }
html.admin .a-cols > .a-panel { margin: 0; }

/* Tables: one line per cell */
html.admin .a-scroll { margin: 0 -20px; padding: 0 20px; overflow-x: auto; }
html.admin .a-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
html.admin .a-table th { padding: 0 10px 9px; text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--dim); border-bottom: 1px solid var(--line); user-select: none; }
html.admin .a-table th[data-col] { cursor: pointer; }
html.admin .a-table th[data-col]:hover { color: var(--muted); }
html.admin .a-table th[data-dir="asc"]::after { content: " \25B2"; color: var(--link); }
html.admin .a-table th[data-dir="desc"]::after { content: " \25BC"; color: var(--link); }
html.admin .a-table td { height: 40px; padding: 8px 10px; white-space: nowrap; vertical-align: middle; color: var(--ink); border-bottom: 1px solid var(--line-faint); }
html.admin .a-table tbody tr:last-child td { border-bottom: 0; }
html.admin .a-table tbody tr:hover td { background: var(--wash); }
html.admin .a-table th:first-child,
html.admin .a-table td:first-child { padding-left: 0; }
html.admin .a-table th:last-child,
html.admin .a-table td:last-child { padding-right: 0; }
html.admin .a-table .num { text-align: right; font-variant-numeric: tabular-nums; }
html.admin .a-table.a-kv td:first-child { width: 46%; color: var(--muted); }
html.admin .clip { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }

/* Small marks */
html.admin .a-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 600; line-height: 1.55; white-space: nowrap; vertical-align: 1px; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
html.admin .a-badge.live { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 32%, transparent); }
html.admin .a-badge.hi { color: var(--tint-ink); background: color-mix(in srgb, var(--petrol) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 38%, transparent); }
html.admin .a-badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 32%, transparent); }
html.admin .a-badge.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); }
html.admin .a-code { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
html.admin .a-hint { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; font-size: .66rem; font-weight: 700; vertical-align: 1px; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); cursor: help; }

/* Used of allowed */
html.admin .meter { display: inline-block; width: 84px; height: 6px; margin: 0; overflow: hidden; vertical-align: middle; border-radius: 99px; background: var(--track); }
html.admin .meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--petrol), var(--link)); }
html.admin .meter.high i { background: var(--warn); }
html.admin .meter.full i { background: var(--danger); }
html.admin .a-storage { display: inline-flex; align-items: center; gap: 10px; }
/* In a row of a table the meter is shorter: the accounts table fits a computer screen with all its buttons (15.11.2026). */
html.admin .a-table .meter { width: 64px; }
html.admin .a-pct { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Alerts and reports: one line each, the full text folds out */
html.admin .a-list { display: flex; flex-direction: column; }
html.admin .a-item { border-top: 1px solid var(--line-faint); }
html.admin .a-item:first-child { border-top: 0; }
html.admin .a-item summary { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 0; white-space: nowrap; list-style: none; cursor: pointer; }
html.admin .a-item summary::-webkit-details-marker { display: none; }
html.admin .a-item summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px 0 1px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(-45deg); transition: transform .2s; }
html.admin .a-item[open] summary::before { transform: rotate(45deg); }
html.admin .a-item summary > .a-badge { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.admin .a-time { flex: none; width: 112px; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--dim); }
html.admin .a-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.admin .a-mailed { flex: none; font-size: .74rem; color: var(--dim); }
html.admin .a-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px 22px; }
html.admin .a-detail { margin: 0 0 12px 22px; padding: 10px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; color: var(--muted); background: var(--sunk); }

/* Forms and buttons */
html.admin input,
html.admin select,
html.admin textarea { color: var(--ink); background: var(--field); border: 1px solid var(--line); }
html.admin input::placeholder { color: var(--dim); }
/* The open list of a select is styled for every page in static/scava.css (solid rows in the colours of the page). */
html.admin input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
html.admin .a-filter { flex: none; width: 220px; padding: .38rem .8rem; border-radius: 99px; font-size: .84rem; }
html.admin button,
html.admin .button { color: var(--ink); background: var(--button); border: 1px solid var(--line); }
html.admin button:hover { border-color: var(--hover-line); }
html.admin button.primary { color: #fff; background: var(--petrol); border-color: var(--petrol); }
html.admin button.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
/* A switch inside a table row (server code on the Apps tab) keeps the row as low as the others. */
html.admin .a-table td button { padding: 1px 9px; font-size: 12px; line-height: 1.5; border-radius: 7px; margin-left: 4px; }
html.admin .a-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html.admin .a-row > input { flex: 1; min-width: 14rem; }

/* People (Accounts tab): add a person; the role is a choice in its row (Stefan, 07.11.2026). */
html.admin .a-check { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); white-space: nowrap; }
html.admin .a-check input { width: auto; margin: 0; }
html.admin .a-table td select { display: inline-flex; width: auto; min-width: 6.4rem; padding: 1px 8px; font-size: 12px; line-height: 1.5; border-radius: 7px; }
html.admin #add-person { flex-wrap: nowrap; }
html.admin #add-person input[type=email] { flex: 1; width: auto; min-width: 12rem; }
html.admin #add-person select { flex: none; width: auto; }
@media (max-width: 760px) { html.admin #add-person { flex-wrap: wrap; } }

/* Server code (System tab): a status, then one row per thing you can do, what it does on the left, the control on
   the right (Stefan, 07.11.2026: the old box was too hard to read). */
html.admin .a-ctl { margin-top: 14px; border-top: 1px solid var(--line-faint); }
html.admin .a-ctl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-faint); }
html.admin .a-ctl-row:last-child { border-bottom: 0; padding-bottom: 2px; }
html.admin .a-ctl-row h3 { margin: 0; font-size: .92rem; }
html.admin .a-ctl-row p { margin: 2px 0 0; font-size: .84rem; color: var(--dim); }
html.admin .a-ctl-row .a-row > input { min-width: 15rem; }
@media (max-width: 640px) { html.admin .a-ctl-row { grid-template-columns: minmax(0, 1fr); } }

/* Sign-ups per day */

/* The overview of an account (/overview, static/dashboard.js renderOverview): house rules as rows, each with
   a choice of a few options; the list of partner domains or services folds in below its rule. */
html.admin .o-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 22px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-faint); }
html.admin .o-rule:first-child { border-top: 0; padding-top: 2px; }
html.admin .o-rule h3 { margin: 0; font-size: .92rem; }
html.admin .o-rule p { margin: 3px 0 0; font-size: .82rem; line-height: 1.45; color: var(--dim); }
html.admin .o-seg { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 100%; padding: 4px; border-radius: 12px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
html.admin .o-seg label { position: relative; display: block; margin: 0; font-weight: 500; }
html.admin .o-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html.admin .o-seg span { display: block; padding: .34rem .8rem; border-radius: 9px; font-size: .84rem; font-weight: 600; white-space: nowrap; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
html.admin .o-seg span:hover { color: var(--ink); background: var(--hover); }
html.admin .o-seg input:checked + span { color: var(--sel-ink); background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); }
html.admin .o-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
html.admin .o-seg input:disabled + span { opacity: .45; cursor: default; }
html.admin .o-more { grid-column: 1 / -1; }
html.admin .o-more input { width: 100%; padding: .5rem .8rem; border-radius: 10px; font-size: .88rem; }
html.admin .o-save { margin-top: 10px; }
html.admin #o-signins .a-row .dim { font-size: .86rem; }

/* Groups of the account (/overview, 19.10.2026, static/dashboard.js groupsPanel): one row per group with its people
   as chips; a long address ends with "…" (whole in the tooltip), nothing runs over the edge. */
html.admin .o-groups { display: flex; flex-direction: column; min-width: 0; }
html.admin .o-group { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line-faint); }
html.admin .o-group:first-child { border-top: 0; padding-top: 2px; }
html.admin .o-group-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
html.admin .o-group-head h3 { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .9rem var(--mono); }
html.admin .o-group-head .a-badge { flex: none; }
html.admin .o-group-head .a-note { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.admin .o-group-head button { flex: none; padding: 1px 10px; font-size: 12px; line-height: 1.5; border-radius: 7px; }
html.admin .o-people { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 10px 0; }
html.admin .o-person { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; padding: 2px 3px 2px 10px; border-radius: 99px; font-size: .8rem; color: var(--muted); background: var(--button); box-shadow: inset 0 0 0 1px var(--line); }
html.admin .o-person span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.admin .o-person button { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; line-height: 1; color: var(--dim); background: none; }
html.admin .o-person button:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
html.admin .o-add,
html.admin .o-new { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
html.admin .o-add input,
html.admin .o-new input { flex: 1 1 14rem; min-width: 0; padding: .45rem .8rem; border-radius: 10px; font-size: .86rem; }
html.admin .o-new { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-faint); }
html.admin .o-new input[name="name"] { flex: 0 1 12rem; }
html.admin .o-missing { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 25%, transparent); }
html.admin .o-missing button { margin-left: 6px; padding: 1px 10px; font-size: 12px; line-height: 1.5; border-radius: 7px; }
/* Roles of a member in a group (12.11.2026): small marks in the chip; a form below picks the member and sets them. */
html.admin .o-person .o-role { flex: none; margin-left: 4px; padding: 0 6px; border-radius: 99px; font: 600 .7rem var(--mono); color: var(--sel-ink); background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); }
html.admin .o-roles { margin-top: 8px; }
html.admin .o-roles select { flex: 0 1 16rem; min-width: 0; max-width: 100%; padding: .45rem .8rem; border-radius: 10px; font-size: .86rem; }

/* Companies on the Overview (12.11.2026): the account and each company as a tab; who builds for the company and the
   people added to it as chips like the members of a group. */
html.admin .o-scope { margin: 0 0 14px; min-width: 0; }
html.admin .o-scope .a-tabs { width: fit-content; }
html.admin .o-scope .a-tabs a.active { color: var(--sel-ink); background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); }
html.admin .o-scope .o-missing { margin: 10px 0 0; }
html.admin .o-company-new { margin-top: 10px; }
html.admin .o-company-new input[name="name"] { flex: 0 1 14rem; }
html.admin .o-sub { margin: 14px 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
html.admin .o-person .o-tag { flex: none; margin-left: 4px; font-size: .72rem; color: var(--dim); }
html.admin #o-company .a-panel-head > button { flex: none; white-space: nowrap; }

html.admin .a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html.admin .a-chip { padding: 3px 10px; border-radius: 99px; font: .78rem var(--mono); color: var(--muted); background: var(--button); box-shadow: inset 0 0 0 1px var(--line); }

/* The plan page (/billing, Stefan 07.11.2026: "the full package"): the plans as on the start page, dark like it. Three
   cards side by side, one below the other on a phone; the buttons of all three end on one line. */
html.admin .p-head { max-width: 46rem; margin: .6rem auto 1.6rem; text-align: center; }
html.admin .p-eyebrow { margin: 0 0 .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
html.admin .p-head h1 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; }
html.admin .p-sub { margin: .65rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
html.admin .p-notice { max-width: 46rem; margin: 0 auto 1.3rem; padding: 12px 16px; border-radius: 12px; font-size: .92rem; line-height: 1.55; color: var(--muted); background: color-mix(in srgb, var(--petrol) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 35%, transparent); }
html.admin .p-notice b { color: var(--ink); font-weight: 600; }
/* "Email me when they open" / "Don't email me" (server/billing.js, payments_mail): a link in the sentence, not a box. */
html.admin .p-notice button.link { padding: 0; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 2px; }
html.admin .p-current { max-width: 46rem; margin: 0 auto 1.6rem; }
html.admin .p-current-head { display: flex; align-items: center; gap: 10px; }
html.admin .p-current-head h2 { margin: 0; font-size: 1.05rem; }
html.admin .p-sub-line { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
html.admin .p-portal { margin: 12px 0 0; font-size: .84rem; }
/* The storage of the account against the plan (17.11.2026): one line, the bar across the panel, one line below. */
html.admin .p-storage { margin: 14px 0 0; }
html.admin .p-storage-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 0 0 7px; font-size: .9rem; white-space: nowrap; }
html.admin .p-storage-line b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-variant-numeric: tabular-nums; }
html.admin .p-storage-line .dim { margin-left: auto; font-variant-numeric: tabular-nums; }
html.admin .p-storage .meter { display: block; width: 100%; }
html.admin .p-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto 1.3rem; }
html.admin .p-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
html.admin .p-seg button { padding: .45rem 1.05rem; border: 0; border-radius: 99px; font-size: .9rem; font-weight: 600; white-space: nowrap; color: var(--muted); background: none; cursor: pointer; transition: background .2s, color .2s; }
html.admin .p-seg button:hover { color: var(--ink); background: var(--hover); }
html.admin .p-seg button[aria-pressed="true"] { color: var(--sel-ink); background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); }
html.admin .p-seg button span { margin-left: .35rem; font-size: .8rem; font-weight: 500; color: var(--tint-ink); }
html.admin .p-seg button[aria-pressed="true"] span { color: var(--sel-ink); opacity: .8; }
html.admin .p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; }
html.admin .p-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 22px; border-radius: 18px; background: linear-gradient(180deg, var(--raised-2), var(--raised)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
html.admin .p-card.chosen { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--link) 80%, transparent), 0 0 0 4px color-mix(in srgb, var(--petrol) 14%, transparent), var(--shadow); }
html.admin .p-card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
html.admin .p-price { margin: .55rem 0 0; font-size: 2.4rem; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
html.admin .p-price span { font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
html.admin .p-alt { margin: .3rem 0 0; font-size: .88rem; color: var(--dim); }
html.admin .p-card ul { flex: 1; display: grid; align-content: start; gap: .5rem; margin: 1.15rem 0 1.35rem; padding: 0; list-style: none; font-size: .93rem; line-height: 1.4; color: var(--muted); }
html.admin .p-card li { position: relative; padding-left: 1.45rem; }
html.admin .p-card li::before { content: ""; position: absolute; left: 0; top: .22em; width: 14px; height: 14px; background: var(--link); --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); -webkit-mask: var(--tick) no-repeat center/contain; mask: var(--tick) no-repeat center/contain; }
html.admin .p-card li b { color: var(--ink); font-weight: 600; }
html.admin .p-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: .74rem 1rem; text-align: center; border-radius: 99px; font-size: .96rem; font-weight: 600; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
html.admin .p-btn:hover:not(:disabled) { background: var(--hover); }
html.admin .p-btn.primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2A8EB3, #1F7A99); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px -10px rgba(37, 134, 167, .85); }
html.admin .p-btn.primary:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(180deg, #2F96BC, #2181A1); }
html.admin .p-btn:disabled { opacity: .5; cursor: default; }
html.admin .p-mine,
html.admin .p-other { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: .86rem; color: var(--dim); }
html.admin .p-msg { max-width: 46rem; margin: 1.1rem auto 0; padding: 11px 16px; border-radius: 12px; text-align: center; font-size: .92rem; line-height: 1.5; color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 28%, transparent); }
html.admin .p-facts { max-width: 46rem; margin: 1.7rem auto 0; text-align: center; font-size: .93rem; line-height: 1.5; color: var(--muted); }
html.admin .p-note { max-width: 46rem; margin: .5rem auto 0; text-align: center; font-size: .84rem; line-height: 1.5; color: var(--dim); }

/* The sign-in page (static/login.html, 07.11.2026) is dark too: it sits between the start page and the plan page. */
html.admin .narrow main { max-width: 460px; margin: 8vh auto; padding: 2rem; border: 0; border-radius: 18px; background: linear-gradient(180deg, var(--raised-2), var(--raised)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
html.admin .narrow main h1 { letter-spacing: -.01em; }
html.admin .muted { color: var(--muted); }
html.admin .notice { color: var(--muted); background: color-mix(in srgb, var(--petrol) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--link) 35%, transparent); }
html.admin .error { color: var(--danger); }
html.admin .divider { color: var(--dim); }
html.admin .divider::before,
html.admin .divider::after { border-top-color: var(--line); }
html.admin .narrow .button.google { color: var(--ink); background: var(--button); border-color: var(--line); }
html.admin .narrow .button.google:hover { border-color: var(--hover-line); }
html.admin .narrow button.primary,
html.admin .narrow .button.primary { background: linear-gradient(180deg, #2A8EB3, #1F7A99); border-color: transparent; }
/* The page for an address that leads nowhere (static/404.html, 18.11.2026, Stefan): dark like the sign-in, the sign
   and a large 404 above the title, one way back and a few quiet links. */
html.admin .not-found { text-align: center; }
html.admin .not-found .nf-mark { display: block; margin: .4rem auto 1rem; }
html.admin .not-found .nf-code { margin: 0 0 .4rem; font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--link); }
html.admin .not-found h1 { margin-top: 0; }
html.admin .not-found #nf-why { margin: .4rem 0 1.4rem; }
html.admin .not-found .nf-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; color: var(--dim); }
/* Two-step sign-in (static/two-step.html, 10.11.2026): the QR code on white with its quiet zone, the key and the
   recovery codes in the mono font, nothing wider than the card. */
html.admin .two-step .steps { margin: .6rem 0 1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.6; }
html.admin .two-step .qr { width: min(240px, 100%); margin: 0 auto 1rem; border-radius: 10px; overflow: hidden; background: #fff; }
html.admin .two-step .qr svg { display: block; width: 100%; height: auto; }
html.admin .two-step .key { color: var(--ink); overflow-wrap: anywhere; letter-spacing: .04em; }
/* The key to type in by hand (15.11.2026, Stefan): in a lightly marked box of its own, not lost in the text. */
html.admin .two-step .key-box { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1.2rem; padding: .7rem .8rem .7rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--petrol) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petrol) 45%, transparent); }
html.admin .two-step .key-box .key { font: 600 1rem/1.5 var(--mono); min-width: 0; }
html.admin .two-step .key-box button { flex: none; }
html.admin .two-step .recovery { margin: 1rem 0; padding: .9rem 1rem; border-radius: 10px; background: var(--button); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 1rem/1.7 var(--mono); columns: 2; white-space: pre; }

/* The apps of the overview never scroll sideways (15.11.2026, Stefan): on a phone each app is a card of its own, with
   the name of each column in front of its value. */
@media (max-width: 760px) {
  html.admin .a-scroll:has(> #o-apps) { overflow-x: visible; }
  html.admin #o-apps thead { display: none; }
  html.admin #o-apps, html.admin #o-apps tbody, html.admin #o-apps tr { display: block; width: 100%; }
  html.admin #o-apps tr { padding: 10px 0; border-bottom: 1px solid var(--line-faint); }
  html.admin #o-apps tbody tr:last-child { border-bottom: 0; }
  html.admin #o-apps td { display: flex; gap: 10px; height: auto; padding: 2px 0; border: 0; text-align: left; white-space: nowrap; }
  html.admin #o-apps td[data-label]::before { content: attr(data-label); flex: none; width: 6.6rem; color: var(--dim); font-size: .78rem; }
  html.admin #o-apps td:first-child { font-weight: 600; }
  html.admin #o-apps td:first-child::before { content: none; }
  html.admin #o-apps td .clip { max-width: calc(100vw - 9.5rem) !important; }
}
@media (max-width: 860px) {
  html.admin .p-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}
@media (max-width: 640px) {
  html.admin .narrow main { margin: 4vh 1rem; padding: 1.4rem; }
  html.admin .p-head { margin-top: 0; }
  html.admin .p-card { padding: 20px; }
  html.admin .p-price { font-size: 2.1rem; }
  html.admin .a-head { flex-direction: column; align-items: stretch; }
  html.admin .a-tabs { border-radius: 14px; }
  html.admin .a-panel { padding: 14px; }
  html.admin .a-scroll { margin: 0 -14px; padding: 0 14px; }
  html.admin .a-panel-head { flex-wrap: wrap; }
  html.admin .a-filter { width: 100%; }
  html.admin .a-time { width: auto; }
  html.admin .a-item summary > .a-badge { max-width: 42%; }
  html.admin .a-mailed { display: none; }
  html.admin .a-cols { grid-template-columns: 1fr; }
  html.admin .o-rule { grid-template-columns: 1fr; }
  html.admin .o-seg { justify-content: flex-start; }
}
