[hidden] { display: none !important; }

/* quantumdev.io/admin — the owner's console, on top of site.css and the Quantum Design System tokens.
   The sign-in reuses the list sign-up's parts from site.css: the ket's bars and focus treatment (.ket), the circuit row
   (.capture-circuit), the label (.capture-label), the satin button (.capture-button) and the plain text action
   (.text-action). Every value is a token; the literal numbers are the sign-up's own ket geometry (10px inset, 8px chevron,
   22px bracket strip) and the QR's module size. DESIGN.md records the console. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Sign in: one 360px column, one step at a time ---------- */

.signin { min-height: 100vh; min-height: 100svh; padding: clamp(var(--space-12), 16vh, 160px) var(--space-5) var(--space-16); }
.signin-col { width: 100%; max-width: 360px; margin: 0 auto; }
/* The sign-up dialog's bar: the mark and the domain in mono over a hairline. */
.signin-bar { display: flex; align-items: center; gap: var(--space-3); height: 48px; border-bottom: var(--line-thin) solid var(--border-hairline); }
/* While a stored session is being restored the steps wait unseen, so a signed-in reload never flashes the form. */
.signin[aria-busy="true"] .signin-steps, .signin[aria-busy="true"] .signin-message { visibility: hidden; }

.step { padding-top: var(--space-8); }
.step-lead { margin: 0 0 var(--space-6); font: var(--type-body); color: var(--text-secondary); text-wrap: pretty; }
.step-lead:focus { outline: none; box-shadow: none; }
.step-actions { margin: var(--space-6) 0 0; }
.step-buttons { display: flex; align-items: center; gap: var(--space-6); }
.step-who { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-6); }
.step-who p { margin: 0; min-width: 0; font: var(--type-body); color: var(--text-secondary); overflow-wrap: anywhere; }

/* One line for every step, after the panels; it keeps its height so a message never moves the form. */
.signin-message { margin: var(--space-4) 0 0; min-height: calc(var(--text-sm) * var(--leading-normal)); font: var(--type-body-sm); color: var(--text-primary); text-wrap: pretty; }

/* ---------- The ket ----------
   site.css draws the opening bar, the ink and doubled bar in focus, and the field (.ket, .ket input). The closing chevron
   and the wire are drawn here instead: a trace laid over the field holds an invisible copy of the text, then the chevron,
   then the wire, so the chevron follows the text with no measuring and no style written at run time. The chevron is an
   inline SVG, not the sign-up's data: mask. A long entry scrolls inside the field and the copy is clipped, so the chevron
   waits in the strip the field leaves at its right edge, as in the sign-up. */

.ket::after { content: none; }
.ket-trace { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 10px; pointer-events: none; }
.ket-echo { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: pre; font: 400 15px/1 var(--font-mono); color: transparent; }
.ket-close { flex: none; width: 8px; height: calc(100% - 20px); margin: 0 6px 0 2px; overflow: visible; }
.ket-close path { fill: none; stroke: var(--ket-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ket-line { position: relative; flex: 1 1 0; min-width: 6px; height: var(--line-thin); background: var(--wire); }
/* The sign-up's run: the wire draws in ink over 320ms while the step is with Cognito or the browser's passkey prompt, and
   holds there; it never loops. */
.ket-line::after {
  content: ""; position: absolute; inset: 0; background: var(--text-primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out);
}
.ket.is-running .ket-line::after { transform: scaleX(1); }

/* The passkey step's ket is a reading, not a field: the handle in ink, then the wire into a measurement gate. */
.ket-read .ket-echo { color: var(--text-primary); text-overflow: ellipsis; }
.gate {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--control-h-lg); height: var(--control-h-lg); border: var(--line-thin) solid var(--border-strong); border-radius: var(--radius-xs);
  color: var(--text-primary);
}
.gate .meter { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; overflow: visible; }
.gate .needle { transform-box: view-box; transform-origin: 12px 18px; transform: rotate(40deg); transition: transform var(--dur-slow) var(--ease-out); }
.ket.is-running + .gate .needle { transform: rotate(-40deg); }

/* A handle inside a sentence, written as a ket: the sign-up's confirmation ket, with an inline chevron. */
.ket-inline {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding-left: 4px; border-left: var(--line-thin) solid currentColor;
  font: 400 0.94em/1 var(--font-mono); color: var(--text-primary); vertical-align: -0.1em;
}
.ket-inline svg { flex: none; width: 6px; height: 1.1em; }
.ket-inline path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ket-inline > span:empty { display: none; }

/* While a step is with Cognito every action waits; the filled button keeps its ink, as Join does. */
.capture-button:disabled { cursor: progress; }
.text-action:disabled { color: var(--text-disabled); cursor: default; }
.text-action:disabled:hover { color: var(--text-disabled); }
/* A link drawn as a text action wraps as text, its underline under each line. */
a.text-action { display: inline; line-height: var(--leading-normal); text-decoration: none; }
a.text-action:hover { text-decoration: none; }

/* ---------- Authenticator setup: the QR on a white tile, the key in mono ---------- */

.totp { display: flex; align-items: flex-start; gap: var(--space-5); margin-bottom: var(--space-6); }
/* Dark modules on white in both themes, as scanners expect; admin.js sets the size to 3px a module. */
.qr { display: block; flex: none; border-radius: var(--radius-xs); }
.qr-ground { fill: var(--q-pure-white); }
.qr-module { fill: var(--q-satin); }
.totp-key { display: grid; gap: var(--space-3); min-width: 0; }
.totp-key p { margin: 0; }
.totp-key p:last-child { font: var(--type-body-sm); text-wrap: balance; }
.totp-label { font: var(--type-caption); color: var(--text-secondary); }
/* Groups of four, as spans with no spaces between them, so a copy of the key pastes clean. */
.totp-secret { display: flex; flex-wrap: wrap; gap: var(--space-1) 0.6em; font: var(--weight-regular) var(--text-sm)/var(--leading-normal) var(--font-mono); color: var(--text-primary); user-select: all; }

/* ---------- Show password: a gate on the ket's wire ----------
   The site's ghost icon button, boxed as a gate the field's wire runs through: the ket's wire meets its left edge, and a
   short wire leaves its right edge for the step's button, drawing in ink with the ket's while the step is with Cognito.
   One label, "Show password"; aria-pressed carries the state. Pressed, the gate is in ink and the eye is struck through. */

.reveal { position: relative; margin-right: var(--space-3); border-color: var(--border-strong); border-radius: var(--radius-xs); }
.reveal svg { width: 16px; height: 16px; overflow: visible; }
.reveal .reveal-slash { display: none; }
.reveal[aria-pressed="true"] { color: var(--text-primary); border-color: var(--text-primary); }
.reveal[aria-pressed="true"] .reveal-slash { display: inline; }
.reveal:disabled { cursor: progress; }
.reveal::before, .reveal::after {
  content: ""; position: absolute; top: calc(50% - var(--line-thin) / 2); left: 100%;
  width: calc(var(--space-3) + var(--line-thin)); height: var(--line-thin); pointer-events: none;
}
.reveal::before { background: var(--wire); }
.reveal::after { background: var(--text-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.ket.is-running + .reveal::after { transform: scaleX(1); }

/* ---------- The password rules ----------
   A ket per rule, drawn as the sign-in's handle ket: a bar, the digit in mono, a stroked chevron. Unmet reads |0> in
   --rule-unmet, met reads |1> in --rule-met, the state measured. The flip is a 160 ms cross-fade of the digit and its
   colour, and is instant under reduced motion. These two tokens are the console's only hues; each passes 4.5:1 on its
   theme's canvas (light #B32D37 6.27:1 and #13794A 5.44:1 on #FFFFFF; dark #F47A79 7.28:1 and #53BD83 8.26:1 on #0B0E13). */
:root { --rule-unmet: #F47A79; --rule-met: #53BD83; }
[data-theme="light"] { --rule-unmet: #B32D37; --rule-met: #13794A; }
.rules { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.rule { --rule-ink: var(--rule-unmet); display: flex; align-items: baseline; gap: 10px; font: var(--type-body-sm); color: var(--text-body); }
.rule[data-met="true"] { --rule-ink: var(--rule-met); }
.rule:focus { outline: none; }
.rule:focus-visible { border-radius: var(--radius-xs); box-shadow: var(--shadow-focus); }
.rule-ket {
  display: inline-flex; align-items: center; flex: none; gap: 3px; height: 16px; padding-left: 4px;
  border-left: var(--line-thin) solid currentColor; font: 400 13px/1 var(--font-mono); color: var(--rule-ink);
}
.rule-bit { display: inline-grid; }
.rule-bit > span { grid-area: 1 / 1; }
.rule[data-met="true"] .rule-zero, .rule:not([data-met="true"]) .rule-one { opacity: 0; }
.rule-ket svg { flex: none; width: 6px; height: 100%; overflow: visible; }
.rule-ket path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .rule-ket { transition: color 160ms var(--ease-out); }
  .rule-bit > span { transition: opacity 160ms var(--ease-out); }
}

/* While its field is empty a rule list is unmeasured: every row reads |0> in secondary ink, with no hue. The hues come
   with the first character, or with a submit the rules refuse; admin.js sets .is-lit. */
.rules:not(.is-lit) .rule { --rule-ink: var(--text-secondary); }

/* ---------- The console: strip, rail, pane ---------- */

.console { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

/* The strip: the nav's height and hairline on a solid canvas, everything on one line. */
.strip {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--space-6);
  height: var(--nav-height); padding: 0 var(--space-8); white-space: nowrap;
  background: var(--bg-canvas); border-bottom: var(--line-thin) solid var(--border-hairline);
}
.strip-home { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.strip-message { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font: var(--type-body-sm); color: var(--text-primary); }
.strip-tools { display: flex; align-items: center; gap: var(--space-6); flex: none; margin-left: auto; }
.strip .nav-theme { margin-left: 0; }
/* As the nav's Join the list: padding-top matches the underline below, so the label sits on the strip's centre line. */
.strip .text-action { padding-top: 3px; }

.console-body { flex: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }

/* The rail: labels in secondary ink; the active one in ink, with the rail's hairline turned to ink beside it, as the nav
   underlines its current page. Focus is the system's ring drawn inside the link, which meets the window's edge. */
.rail { border-right: var(--line-thin) solid var(--border-hairline); padding: var(--space-6) 0; }
.rail ul { position: sticky; top: calc(var(--nav-height) + var(--space-6)); display: grid; margin: 0; padding: 0; list-style: none; }
.rail a {
  display: flex; align-items: center; height: var(--control-h-md); padding: 0 var(--space-8); margin-right: -1px;
  font: var(--type-label); color: var(--text-secondary); text-decoration: none;
  border-right: var(--line-thin) solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.rail a:hover { color: var(--text-primary); text-decoration: none; }
.rail a[aria-current="page"] { color: var(--text-primary); border-right-color: var(--accent); }
.rail a:focus-visible { box-shadow: inset 0 0 0 2px var(--bg-canvas), inset 0 0 0 3.5px var(--border-focus); }

/* ---------- The rail collapses to its icons ----------
   A ghost IconButton at the top of the rail, named "Sidebar" with aria-expanded for the state (ruling R22). Its glyph is
   a bra, a chevron then a bar, which faces the other way once the rail is collapsed: the ket |> that opens it again.
   Collapsed, the rail is exactly as wide as the strip's padding either side of a 20 px icon, so the icons stay in the
   column under the mark. The labels stay in the links for screen readers; a tooltip (site.css's, with its own show rule)
   names each icon on hover and focus. Under 720 px (at the end of this file) the toggle and the tooltips go, the labels
   stay, and the row's links close to gap: var(--space-2). */
.rail-toggle { display: flex; margin: 0 0 var(--space-3) calc(var(--space-8) - 4px); }
.rail-toggle[aria-expanded="false"] svg { transform: scaleX(-1); }
.rail a { position: relative; gap: var(--space-3); }
.rail .tooltip { display: none; top: 50%; left: calc(100% + var(--space-2)); transform: translateY(-50%); }
.console-body.is-rail-collapsed { grid-template-columns: calc(2 * var(--space-8) + 20px) minmax(0, 1fr); }
.is-rail-collapsed .rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-rail-collapsed .rail .tooltip { display: block; }
.is-rail-collapsed .rail a:is(:hover, :focus-visible) .tooltip { opacity: 1; }

/* ---------- The rail icons ----------
   Each icon is drawn on a 24-unit grid and shown at 20 px in currentColor, so it takes its link's ink: secondary at
   rest, primary on hover and on the current page. Lines are 1.5 units (1.25 px), round, as the sign-in's meter glyph.
   An icon runs one two-second animation when its link is hovered or focused from the keyboard, once, and ends where it
   began; under prefers-reduced-motion nothing runs. Each moving part carries .q-anim and names its keyframes in
   --q-anim (and its curve in --q-ease when it is not the system's ease-in-out), so one rule starts them all. That rule
   keys on .is-playing, which admin.js puts on the link on pointerenter and on keyboard focus and takes off when the
   icon's longest-running part ends: a started animation plays its full two seconds, however soon the pointer leaves. */
.q-icon {
  flex: none; width: 20px; height: 20px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.q-icon .q-fill { fill: currentColor; stroke: none; }
/* Parts that scale unevenly as they turn keep a 1.25 px line whatever their scale. */
.q-icon .q-fine { stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.q-icon .q-hand, .q-icon .q-vector, .q-icon .q-key { transform-box: view-box; transform-origin: 12px 12px; }

/* Events: a clock face read as a phase gate. The hand turns once, 2 pi, painting the phase it gains, and rests at 12. */
.q-events .q-trace { stroke-width: 1; stroke-dasharray: 1 2; stroke-dashoffset: 1.01; opacity: 0; }
.q-events .q-hand { --q-anim: q-events-hand; }
.q-events .q-trace { --q-anim: q-events-trace; }
/* Content: the ket |psi>. The opening bar draws down, then the closing bracket draws in. */
.q-content .q-bar, .q-content .q-close { stroke-dasharray: 1 2; --q-ease: var(--ease-out); }
.q-content .q-bar { --q-anim: q-content-bar; }
.q-content .q-close { --q-anim: q-content-close; }
/* List: a register of three wires. A pulse leaves each wire's dot in turn and runs to its end. */
.q-list .q-pulse-1 { --q-anim: q-list-pulse-1; }
.q-list .q-pulse-2 { --q-anim: q-list-pulse-2; }
.q-list .q-pulse-3 { --q-anim: q-list-pulse-3; }
/* Site: a Bloch sphere, the equator's far side dotted. The state vector precesses once about the vertical axis. */
.q-site .q-back { stroke-dasharray: 0 3; }
.q-site .q-vector { --q-anim: q-site-vector; --q-ease: linear; }
.q-site .q-tip { --q-anim: q-site-tip; --q-ease: linear; }
/* Account: a key. It turns once in the lock, so its bit flips over and back. */
.q-account .q-key { --q-anim: q-account-key; --q-ease: linear; }

@media (prefers-reduced-motion: no-preference) {
  .rail a.is-playing .q-anim { animation: var(--q-anim) 2s var(--q-ease, var(--ease-in-out)) 1; }
}

@keyframes q-events-hand {
  0% { transform: rotate(0deg); }
  75%, 100% { transform: rotate(360deg); }
}
@keyframes q-events-trace {
  0% { opacity: .5; stroke-dashoffset: 1.01; }
  75% { opacity: .5; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes q-content-bar {
  0% { stroke-dashoffset: 1.01; }
  35%, 100% { stroke-dashoffset: 0; }
}
@keyframes q-content-close {
  0%, 35% { stroke-dashoffset: 1.01; }
  80%, 100% { stroke-dashoffset: 0; }
}
@keyframes q-list-pulse-1 {
  0% { transform: translateX(0); }
  32% { opacity: 1; }
  40%, 100% { transform: translateX(17px); opacity: 0; }
}
@keyframes q-list-pulse-2 {
  0%, 30% { transform: translateX(0); }
  62% { opacity: 1; }
  70%, 100% { transform: translateX(17px); opacity: 0; }
}
@keyframes q-list-pulse-3 {
  0%, 60% { transform: translateX(0); }
  92% { opacity: 1; }
  100% { transform: translateX(17px); opacity: 0; }
}
/* Site and Account: a sine ease is set into the keyframes' times, and the steps between them are linear. */
@keyframes q-site-vector {
  0% { transform: scaleX(1) skewY(0deg); }
  16.1% { transform: scaleX(0.924) skewY(7.27deg); }
  23% { transform: scaleX(0.707) skewY(13.26deg); }
  28.5% { transform: scaleX(0.383) skewY(17.12deg); }
  33.3% { transform: scaleX(0.04) skewY(18.43deg); }
  37.8% { transform: scaleX(-0.383) skewY(17.12deg); }
  42% { transform: scaleX(-0.707) skewY(13.26deg); }
  46% { transform: scaleX(-0.924) skewY(7.27deg); }
  50% { transform: scaleX(-1) skewY(0deg); }
  54% { transform: scaleX(-0.924) skewY(-7.27deg); }
  58% { transform: scaleX(-0.707) skewY(-13.26deg); }
  62.2% { transform: scaleX(-0.383) skewY(-17.12deg); }
  66.7% { transform: scaleX(-0.04) skewY(-18.43deg); }
  71.5% { transform: scaleX(0.383) skewY(-17.12deg); }
  77% { transform: scaleX(0.707) skewY(-13.26deg); }
  83.9% { transform: scaleX(0.924) skewY(-7.27deg); }
  100% { transform: scaleX(1) skewY(0deg); }
}
@keyframes q-site-tip {
  0% { transform: translate(0px, 0px); }
  16.1% { transform: translate(-0.44px, 0.74px); }
  23% { transform: translate(-1.7px, 1.37px); }
  28.5% { transform: translate(-3.58px, 1.79px); }
  33.3% { transform: translate(-5.8px, 1.93px); }
  37.8% { transform: translate(-8.02px, 1.79px); }
  42% { transform: translate(-9.9px, 1.37px); }
  46% { transform: translate(-11.16px, 0.74px); }
  50% { transform: translate(-11.6px, 0px); }
  54% { transform: translate(-11.16px, -0.74px); }
  58% { transform: translate(-9.9px, -1.37px); }
  62.2% { transform: translate(-8.02px, -1.79px); }
  66.7% { transform: translate(-5.8px, -1.93px); }
  71.5% { transform: translate(-3.58px, -1.79px); }
  77% { transform: translate(-1.7px, -1.37px); }
  83.9% { transform: translate(-0.44px, -0.74px); }
  100% { transform: translate(0px, 0px); }
}
@keyframes q-account-key {
  0% { transform: scaleY(1); }
  16.1% { transform: scaleY(0.924); }
  23% { transform: scaleY(0.707); }
  28.5% { transform: scaleY(0.383); }
  33.3% { transform: scaleY(0.04); }
  37.8% { transform: scaleY(-0.383); }
  42% { transform: scaleY(-0.707); }
  46% { transform: scaleY(-0.924); }
  50% { transform: scaleY(-1); }
  54% { transform: scaleY(-0.924); }
  58% { transform: scaleY(-0.707); }
  62.2% { transform: scaleY(-0.383); }
  66.7% { transform: scaleY(-0.04); }
  71.5% { transform: scaleY(0.383); }
  77% { transform: scaleY(0.707); }
  83.9% { transform: scaleY(0.924); }
  100% { transform: scaleY(1); }
}

/* The toggle and the links both stick under the strip as the pane scrolls, the links a toggle's height lower. */
.rail-toggle { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }
/* The toggle's tooltip, as the theme toggle's: shown on hover and keyboard focus, beside the toggle as the links' are, and
   reading what a press does, "Collapse sidebar" while the rail is expanded and "Expand sidebar" while it is collapsed. */
.rail-toggle .tooltip { display: block; }
.rail-toggle:is(:hover, :focus-visible) .tooltip { opacity: 1; }
.rail-toggle[aria-expanded="true"] .tooltip-expand, .rail-toggle[aria-expanded="false"] .tooltip-collapse { display: none; }
.rail ul { top: calc(var(--nav-height) + var(--space-6) + var(--control-h-sm) + var(--space-3)); }


.pane { min-width: 0; padding: var(--space-10) var(--space-8) var(--space-16); }
.pane-section { max-width: var(--container-md); }
.pane-head { display: grid; gap: var(--space-3); padding-bottom: var(--space-8); border-bottom: var(--line-thin) solid var(--border-hairline); }
.pane-head h1 { margin: 0; font: 400 clamp(18px, 1.6vw, 24px)/1.2 var(--font-hero); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-primary); }
.pane-head h1:focus { outline: none; box-shadow: none; }
.pane-head p { margin: 0; max-width: 40em; font: var(--type-body); color: var(--text-secondary); text-wrap: pretty; }

/* A link out, as the home page's product rows: name, one line, the domain in mono. */
.pane-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--space-8); align-items: baseline;
  padding: var(--space-6) 0; border-bottom: var(--line-thin) solid var(--border-hairline); color: inherit; text-decoration: none;
}
.pane-row:hover { color: inherit; text-decoration: none; }
.pane-row-name { font: var(--type-label); color: var(--text-primary); }
.pane-row-line { font: var(--type-body-sm); color: var(--text-secondary); transition: color var(--dur-fast) var(--ease-out); }
.pane-row .mono { transition: color var(--dur-fast) var(--ease-out); }
.pane-row:hover .pane-row-line { color: var(--text-primary); }
.pane-row:hover .mono { color: var(--text-primary); }
.pane-row:focus-visible { border-radius: var(--radius-xs); }

/* Account: the passkeys as a table on hairlines, then the two actions and their one-line result. */
.pane-block { max-width: var(--container-sm); padding-top: var(--space-8); }
.pane-block h2 { margin: 0 0 var(--space-4); font: var(--weight-medium) var(--text-md)/var(--leading-snug) var(--font-body); color: var(--text-primary); }
.pane-block h2:focus { outline: none; box-shadow: none; }
.passkeys { width: 100%; border-collapse: collapse; font: var(--type-body-sm); }
.passkeys th { padding: 0 var(--space-4) var(--space-2) 0; text-align: left; font: var(--type-caption); color: var(--text-secondary); border-bottom: var(--line-thin) solid var(--border-hairline); }
.passkeys thead td { border-bottom: var(--line-thin) solid var(--border-hairline); }
.passkeys tbody td { padding: var(--space-3) var(--space-4) var(--space-3) 0; color: var(--text-primary); border-bottom: var(--line-thin) solid var(--border-hairline); overflow-wrap: anywhere; }
.passkeys .passkey-added { font: var(--type-mono-sm); color: var(--text-secondary); white-space: nowrap; }
.passkeys tbody td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.pane-note { margin: var(--space-3) 0 0; font: var(--type-body-sm); color: var(--text-secondary); }
.pane-note:empty { display: none; }
.pane-actions { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-6); }
.pane-message { margin: var(--space-4) 0 0; min-height: calc(var(--text-sm) * var(--leading-normal)); font: var(--type-body-sm); color: var(--text-primary); }
/* Authenticator app follows the passkeys, opened by space and its heading. A line asking the owner to sign in again has
   Sign out right under it. */
.pane-block + .pane-block { padding-top: var(--space-12); }
.pane-reauth { margin-top: var(--space-3); }

/* Replace: the setup step's panel and circuit at the sign-in's 360px, under the Replace action it stands in for. */
.replace { max-width: 360px; margin-top: var(--space-6); }

/* ---------- Below 720px ---------- */

@media (max-width: 720px) {
  /* 16px stops iOS zooming into a field; the trace's copy follows, so the chevron stays on the text. */
  .ket input, .ket-echo { font-size: 16px; }
  .totp { gap: var(--space-4); }

  .strip { gap: var(--space-4); padding: 0 var(--space-5); }
  .strip-tools { gap: var(--space-4); }
  #who { display: none; }
  /* The strip's line drops under it as a one-line band, so the strip itself never wraps; the console moves down by the
     band's height while it shows, so the band covers nothing. */
  .strip-message {
    position: absolute; top: 100%; left: 0; right: 0; height: var(--control-h-md); line-height: var(--control-h-md);
    padding: 0 var(--space-5); background: var(--bg-canvas); border-bottom: var(--line-thin) solid var(--border-hairline);
  }
  .strip-message:empty { display: none; }
  .console:has(.strip-message:not(:empty)) .console-body { margin-top: var(--control-h-md); }

  .console-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { border-right: 0; border-bottom: var(--line-thin) solid var(--border-hairline); padding: 0; }
  .rail ul { position: static; display: flex; gap: var(--space-5); padding: 0 var(--space-5); overflow-x: auto; scrollbar-width: none; }
  /* The list scrolls sideways on the narrowest phones, which would clip a -1px overlap, so the underline sits on the hairline. */
  .rail a { height: var(--control-h-lg); padding: 0; margin: 0; border-right: 0; border-bottom: var(--line-thin) solid transparent; white-space: nowrap; }
  .rail a[aria-current="page"] { border-bottom-color: var(--accent); }

  .pane { padding: var(--space-8) var(--space-5) var(--space-12); }
  .pane-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }

  /* The row keeps its labels beside the icons. The toggle and the tooltips belong to the column, and a rail collapsed in
     a wider window opens again as the row. */
  .rail-toggle, .rail .tooltip, .is-rail-collapsed .rail .tooltip { display: none; }
  .rail a { gap: var(--space-2); }
  .console-body.is-rail-collapsed { grid-template-columns: minmax(0, 1fr); }
  .is-rail-collapsed .rail-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
