/* Passyble account pages (account.passyble.com). The passyble.com look (Website/assets/style.css and
   the apps' Core/docs/BRAND.md): flat and calm, greys, near-black and near-white do the work. White
   cards on a light grey page, set apart by tone alone (no outlines, no accent bars), pill buttons, big
   rounded corners. Lime is a tiny signal only (the logo key, status dots, keyboard focus), never a
   fill or body text; danger red only for destructive things. Same colour tokens, font and buttons as
   the site, trimmed to what these pages use.
   Light: page #f6f6f6, cards #ffffff, insets #f0f0f0 / #ececec, text #111111, secondary #555555,
     hairlines #e4e4e4, control borders #cfcfcf, primary #111111, lime #6e9a00.
   Dark: page #0f0f10, surfaces #18181a / #212124 / #2a2a2e, text #ededed, secondary #b4b4b8,
     hairlines #2a2a2d, strong borders #3a3a3e, primary #ededed with #111111 text, lime #c6f432.
   Light and dark follow the system setting (prefers-color-scheme) unless the person picked one under
   Preferences: the server then sets data-theme="light" or "dark" on <html>. The dark values are
   written twice (the media query and [data-theme="dark"]) and must stay identical.
   Font: Space Grotesk, self-hosted, SIL OFL 1.1 (fonts/OFL-SpaceGrotesk.txt).
   No inline styles and no inline scripts (the CSP forbids both): everything is in this file.
   Layout: no horizontal scrolling from 320 px up, tap targets of 44 px or more.
   Two shells: the solo pages (sign-in, codes, sign-up, consent, deletion, messages, the welcome
   flow) are one centered white card under the wordmark; the signed-in pages (account, plans, team,
   support) have the floating pill header and a 1200 px column. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --raised: #ffffff;
  --surface: #f0f0f0;
  --tint: #ececec;
  --tint-hover: #e4e4e4;
  --fg: #111111;
  --muted: #555555;
  --caption: #6b6b6b;
  --line: #e4e4e4;
  --control: #cfcfcf;
  --primary: #111111;
  --primary-hover: #2a2a2a;
  --on-primary: #ffffff;
  --link: #111111;
  --link-hover: #2a2a2a;
  --lime-mark: #6e9a00;
  --lime-ink: #4f6b00;
  --focus-ring: #111111;
  --focus-halo: rgba(198, 244, 50, 0.55);
  --selection: #c6f432;
  --on-selection: #111111;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #9a4a06;
  --warn-soft: #fdf1d6;
  --ok-soft: rgba(79, 107, 0, 0.09);
  --neutral-soft: rgba(17, 17, 17, 0.045);
  --sheet: #ffffff;
  --sheet-line: #ffffff;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --field-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);

  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --r-sm: 8px;
  --r: 16px;
  --r-box: 24px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wide: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark: the system setting, unless Light was picked under Preferences. Keep in sync with the block
   below. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f10;
    --raised: #18181a;
    --surface: #212124;
    --tint: #2a2a2e;
    --tint-hover: #3a3a3e;
    --fg: #ededed;
    --muted: #b4b4b8;
    --caption: #8e8e93;
    --line: #2a2a2d;
    --control: #3a3a3e;
    --primary: #ededed;
    --primary-hover: #ffffff;
    --on-primary: #111111;
    --link: #ededed;
    --link-hover: #ffffff;
    --lime-mark: #c6f432;
    --lime-ink: #c6f432;
    --focus-ring: #c6f432;
    --focus-halo: transparent;
    --selection: #c6f432;
    --on-selection: #111111;
    --danger: #f97066;
    --danger-soft: #3a1d1b;
    --warn: #f5c35b;
    --warn-soft: #3a2f14;
    --ok-soft: rgba(198, 244, 50, 0.08);
    --neutral-soft: rgba(237, 237, 237, 0.05);
    --sheet: #212124;
    --sheet-line: #2a2a2d;
    --scrim: rgba(0, 0, 0, 0.75);
    --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --field-shadow: none;
  }
}
/* Dark picked under Preferences. Same values as above. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f10;
  --raised: #18181a;
  --surface: #212124;
  --tint: #2a2a2e;
  --tint-hover: #3a3a3e;
  --fg: #ededed;
  --muted: #b4b4b8;
  --caption: #8e8e93;
  --line: #2a2a2d;
  --control: #3a3a3e;
  --primary: #ededed;
  --primary-hover: #ffffff;
  --on-primary: #111111;
  --link: #ededed;
  --link-hover: #ffffff;
  --lime-mark: #c6f432;
  --lime-ink: #c6f432;
  --focus-ring: #c6f432;
  --focus-halo: transparent;
  --selection: #c6f432;
  --on-selection: #111111;
  --danger: #f97066;
  --danger-soft: #3a1d1b;
  --warn: #f5c35b;
  --warn-soft: #3a2f14;
  --ok-soft: rgba(198, 244, 50, 0.08);
  --neutral-soft: rgba(237, 237, 237, 0.05);
  --sheet: #212124;
  --sheet-line: #2a2a2d;
  --scrim: rgba(0, 0, 0, 0.75);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --field-shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: 1.3125rem; line-height: 1.2; }
h3 { font-size: 1.0625rem; line-height: 1.3; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.small { font-size: 0.9375rem; }
.muted { color: var(--muted); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

/* Focus: a 2px ink ring with a soft lime halo in light, a 2px lime ring in dark. */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 6px var(--focus-halo); }
.btn:focus-visible, .pill:focus-visible, .hd a:focus-visible, .hd summary:focus-visible, .back:focus-visible { border-radius: 999px; }
::selection { background: var(--selection); color: var(--on-selection); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--on-primary); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The content column: 1200px wide at most, with a 24px gutter on each side. */
.wrap { width: min(var(--wide), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* The wordmark: "Pass", the lime key as the "y", "ble". */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--fg); text-decoration: none; }
.brand-y { width: 22px; height: 26px; margin: 6px -1px 0; fill: var(--lime-mark); flex: none; }

/* Pill buttons (the site's): primary (filled ink), secondary (outlined), danger (red text). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { color: var(--fg); background: var(--surface); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-soft); }
.btn.wide { width: 100%; }
.btn .ico, .btn > svg { width: 18px; height: 18px; flex: none; }
/* The small pill on a row ("Remove", "Revoke", "Manage"). */
.btn.small, .pill {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.pill:hover { background: var(--surface); color: var(--fg); text-decoration: none; }
.btn:active, .pill:active { transform: translateY(1px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions form, form.inline { margin: 0; }

/* A standalone text link: bold, with a thick underline set below the text. */
.ul, .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.ul { min-height: 0; padding: 4px 0; border-bottom: 2px solid currentColor; }
.ul:hover, .link:hover { color: var(--muted); text-decoration: none; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.link.danger { color: var(--danger); }

/* --- The signed-in shell: the floating pill header, the column and the footer ------------------ */

header.site { position: relative; z-index: 20; padding: 20px var(--gutter) 0; }
.hd {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  height: 64px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hd::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 999px; background: var(--raised); }
.hd-left, .hd-user, .hd-me > summary, .hd > .pill { position: relative; z-index: 2; }
.hd-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.hd-links { display: flex; align-items: center; gap: 4px; font-size: 1rem; font-weight: 500; }
.hd-links a, .me-sheet nav a { color: var(--fg); text-decoration: none; transition: background-color 0.2s ease; }
.hd-links a { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
.hd-links a:hover { background: var(--surface); color: var(--fg); }
.hd-links a[aria-current] { background: var(--tint); font-weight: 700; }
.hd-user { display: flex; align-items: center; gap: 16px; min-width: 0; font-size: 0.9375rem; color: var(--muted); }
.hd-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.hd-user form, .me-sheet form { margin: 0; flex: none; }
/* Phones: the initial in a round button opens a sheet with the address and Sign out. */
.hd-me { display: none; }
.hd-me > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hd-me > summary::-webkit-details-marker { display: none; }
.hd-scrim { position: fixed; inset: 0; z-index: 0; background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.me-sheet {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 14px 8px 14px 20px;
  border: 1px solid var(--sheet-line);
  border-radius: var(--r-lg);
  background: var(--sheet);
  box-shadow: var(--shadow-pop);
  font-size: 0.9375rem;
  color: var(--muted);
}
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-row > span { min-width: 0; overflow-wrap: anywhere; }
/* The section links move into the sheet on the narrowest phones. */
.me-sheet nav { display: none; flex-direction: column; gap: 2px; margin: -6px 0 10px -12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.me-sheet nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r); font-size: 1.0625rem; font-weight: 500; }
.me-sheet nav a:hover { background: var(--surface); }
.me-sheet nav a[aria-current] { background: var(--tint); font-weight: 700; }

@media (max-width: 899px) {
  .hd { height: 60px; padding: 8px 8px 8px 16px; }
  .hd-user { display: none; }
  .hd-me { display: block; }
  .hd-left { gap: 12px; }
  .hd-links a { padding: 0 9px; font-size: 0.9375rem; }
  .brand { font-size: 1.375rem; }
  .brand-y { width: 20px; height: 24px; }
}
@media (max-width: 759px) {
  header.site { padding-top: 12px; }
}
/* Signed out (support): no Sign in pill on phones, the Account link leads to sign-in. */
@media (max-width: 499px) {
  .hd-sign-in { display: none; }
}
@media (max-width: 379px) {
  .hd.signed .hd-links { display: none; }
  .me-sheet nav { display: flex; }
}

main { flex: 1; width: 100%; }
.shell-wide main { padding: 56px 0 0; }
@media (max-width: 759px) {
  body { font-size: 1rem; }
  .shell-wide main { padding-top: 32px; }
  h1 { font-size: 2.5rem; }
}

/* The page heading block: a big heading and a lead line. */
.ph { min-width: 0; }
h1.h1-sm { font-size: 2.75rem; letter-spacing: -0.035em; overflow-wrap: anywhere; }
@media (max-width: 759px) { h1.h1-sm { font-size: 2rem; } }
.ph-lead { margin: 14px 0 0; color: var(--muted); max-width: 45rem; overflow-wrap: anywhere; }
.ph-notes { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ph-notes > * { margin: 0; }
.crumbs { margin: 0 0 12px; font-size: 0.9375rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* Footer: the company line and Support, Privacy, Terms. */
footer.ft {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 32px;
  padding: 72px 0 32px;
  font-size: 0.875rem;
  color: var(--muted);
}
.ft nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 500; }
.ft nav a { display: inline-block; padding: 12px 0; color: var(--fg); text-decoration: none; }
.ft nav a:hover { text-decoration: underline; }
.ft nav a[aria-current] { font-weight: 700; }
.shell-solo footer.ft { padding: 24px 0 28px; }
@media (max-width: 759px) {
  footer.ft { flex-direction: column; gap: 4px; padding: 56px 0 24px; }
  .shell-solo footer.ft { padding: 24px 0; }
}

/* --- The solo shell: "Back to passyble.com", the wordmark and one centered white card --------- */

.solo-top { padding-top: 20px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  margin-left: -12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { background: var(--tint); color: var(--fg); text-decoration: none; }
.back .ico { width: 18px; height: 18px; }
.shell-solo main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px var(--gutter) 48px;
}
.shell-solo main > .brand { font-size: 1.875rem; }
.shell-solo main > .brand .brand-y { width: 27px; height: 32px; margin-top: 8px; }
.page.solo { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.page.solo:has(.welcome-card) { max-width: 500px; }
.page.solo > .notice, .page.solo > .error, .page.solo > .hint, .page.solo > .warn { margin: 0; }
.solo-card {
  background: var(--raised);
  border-radius: var(--r-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.solo-card > * { margin: 0; }
.solo-card h1 { font-size: 2.5rem; line-height: 1.02; letter-spacing: -0.035em; text-align: center; overflow-wrap: anywhere; }
.solo-card h2 { font-size: 1.0625rem; margin-top: 8px; }
.card-lead { margin: -2px 0 8px; color: var(--muted); font-size: 0.9375rem; text-align: center; overflow-wrap: anywhere; }
.card-lead span { display: block; }
.solo-card .card-foot { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 1rem; }
.card-foot .ul { margin-top: 4px; }
.solo-card .btn { min-height: 52px; font-size: 1.0625rem; }
.solo-card .btn .ico { width: 20px; height: 20px; }
@media (max-width: 759px) {
  .solo-top { padding-top: 12px; }
  .back { margin-left: 0; padding: 0; }
  .back:hover { background: none; }
  .shell-solo main { justify-content: flex-start; padding: 16px var(--gutter) 40px; gap: 20px; }
  .shell-solo main > .brand { font-size: 1.625rem; }
  .shell-solo main > .brand .brand-y { width: 24px; height: 28px; }
  .solo-card { padding: 28px 20px; border-radius: var(--r-lg); }
  .solo-card h1 { font-size: 2rem; }
}

/* "or" between the other ways to sign in and the e-mail form; shown only when one of them is
   visible (the passkey button appears only where the browser supports passkeys). */
.or { display: none; align-items: center; gap: 14px; margin: 8px 0; color: var(--muted); font-size: 0.875rem; line-height: 1; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt { display: flex; flex-direction: column; gap: 12px; }
.alt:has(> .btn:not([hidden])) + .or { display: flex; }
.alt:not(:has(> :not([hidden]))) { display: none; }

/* --- Forms -------------------------------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * { margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-help { margin: 0; color: var(--muted); font-size: 0.9375rem; }

label, .lbl { font-size: 0.9375rem; font-weight: 600; }
label.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 4px 0;
}
label.check input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--primary); cursor: pointer; }

input[type="email"], input[type="text"], input:not([type]), textarea, select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--control);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.4 var(--sans);
  box-shadow: var(--field-shadow);
  transition: border-color 0.2s ease;
}
input::placeholder, textarea::placeholder { color: var(--caption); opacity: 1; }
input[type="email"]:hover, input[type="text"]:hover, input:not([type]):hover, textarea:hover, select:hover { border-color: var(--muted); }
textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
input.code {
  min-height: 60px;
  font-family: var(--mono);
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-inline: 8px;
}
@media (max-width: 359px) { input.code { font-size: 1.35rem; letter-spacing: 0.25em; } }
/* A drop-down with the site's chevron. */
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.sel select:invalid { color: var(--caption); }
.sel select option { color: var(--fg); }
.sel .ico { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; color: var(--muted); }

/* --- Messages: icon and text on a soft tinted fill, no border and no edge stripe ----------------- */

.notice, .hint, .warn, .error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.notice .ico, .hint .ico, .warn .ico, .error .ico { width: 20px; height: 20px; margin-top: 1px; }
.notice > span, .hint > span, .warn > span, .error > span { min-width: 0; }
.notice { background: var(--ok-soft); }
.notice .ico { color: var(--lime-ink); }
.hint { background: var(--neutral-soft); color: var(--fg); }
.hint .ico { color: var(--muted); }
.warn { background: var(--warn-soft); color: var(--fg); }
.warn .ico { color: var(--warn); }
.error { background: var(--danger-soft); color: var(--danger); font-weight: 500; }
.hint a, .notice a, .warn a { font-weight: 600; }
/* "Staff never ask for your master password": the page background inside a card, a lime shield. */
.hint.safety { background: var(--bg); color: var(--muted); }
.hint.safety .ico { color: var(--lime-mark); }

/* --- The account page: a section menu from 900px, sections of rows in white boxes -------------- */

.acct { display: flex; gap: 32px 56px; align-items: flex-start; }
.side { display: none; }
.acct-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
@media (min-width: 900px) {
  .side { position: sticky; top: 24px; margin-top: 6px; flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
  .side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 12px; color: var(--fg); text-decoration: none; transition: background-color 0.2s ease; }
  .side a:hover { background: var(--tint); color: var(--fg); }
  .side a[aria-current] { font-weight: 600; background: var(--surface); }
  /* Each entry's icon in a small white tile; ink for the section in view. */
  .side .ic-tile { width: 28px; height: 28px; border-radius: 8px; background: var(--raised); }
  .side .ic-tile .ico { width: 16px; height: 16px; }
  .side a:hover .ic-tile { background: var(--raised); }
  .side a[aria-current] .ic-tile { background: var(--primary); color: var(--on-primary); }
}
@media (max-width: 759px) {
  .acct-main { gap: 48px; }
}

/* A section: a heading, a lead line, then a white box of rows. */
.sect { min-width: 0; scroll-margin-top: 24px; }
.sect > h2 { margin: 0 0 6px; font-size: 1.875rem; letter-spacing: -0.025em; line-height: 1.1; }
/* The heading's icon in a white tile on the page background. */
.sect > h2.sect-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sect-title .ic-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); }
.sect-title .ic-tile .ico { width: 20px; height: 20px; }
.sect-lead { margin: 0 0 20px; color: var(--muted); }
.sect > .notice, .sect > .hint, .sect > .warn, .sect > .error { margin-top: 12px; }
.sect > .box + .box, .sect > .box + .formcard, .sect > .formcard + .formcard { margin-top: 16px; }
.sect-after { margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; }
.sect-actions { margin-top: 16px; }
@media (max-width: 759px) {
  .sect > h2 { font-size: 1.625rem; }
  .sect > h2.sect-title { gap: 12px; }
  .sect-title .ic-tile { width: 36px; height: 36px; border-radius: 11px; }
  .sect-title .ic-tile .ico { width: 18px; height: 18px; }
}

.box { background: var(--raised); border-radius: var(--r-box); padding: 0 24px; }
.box > * + * { border-top: 1px solid var(--line); }
.box.plan > * + * { border-top: 0; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 80px;
  padding: 16px 0;
}
.row > div { flex: 1 1 9rem; min-width: 0; }
.row b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.row small { display: block; font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }
.row > form, .row > .btn, .row > .tag, .row > .row-actions { flex: none; margin: 0; }
.row.compact { min-height: 64px; padding: 12px 0; }
.row.compact b { font-weight: 500; }
.row.empty { color: var(--muted); font-size: 0.9375rem; }
.row .live { display: flex; align-items: center; gap: 8px; }
.row .live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--lime-mark); flex: none; }
/* Several small buttons on one row (the team page: send again, withdraw, roles, remove). */
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { margin: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
b .tag, .row-title .tag { margin-left: 8px; vertical-align: 2px; }
@media (max-width: 759px) {
  .box { padding: 0 20px; }
  .row { gap: 12px 16px; }
}
/* The "No passkeys yet" row only while the "Add a passkey" row is hidden (no passkey support). */
.box:has(> [data-passkey-only]:not([hidden])) > .pk-empty { display: none; }

/* The Plan box: the plan's name big, the button on the right (full width on phones). */
.plan { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 24px; }
.plan-info { flex: 1 1 320px; min-width: 0; }
.plan-name { margin: 0 0 4px; font-size: 1.75rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.plan-info p { margin: 0; color: var(--muted); max-width: 500px; }
.plan .actions { flex: none; }
@media (max-width: 759px) {
  .plan { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .plan-info { flex: none; }
  .plan .actions { flex-direction: column; align-items: stretch; }
  .plan .actions .btn, .plan .actions form { width: 100%; }
}

/* "Your data": the buttons side by side, full width on phones. */
@media (max-width: 759px) {
  .data-actions { flex-direction: column; align-items: stretch; }
  .data-actions .btn { width: 100%; min-height: 52px; }
}

/* "Finish setting up" and the welcome card for a new account. */
.setup-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--raised); border-radius: var(--r-box); padding: 20px 24px; }
.setup-note p { margin: 0; flex: 1 1 18rem; }
.welcome { display: grid; gap: 16px 24px; align-items: center; background: var(--raised); border-radius: var(--r-box); padding: 24px; }
.welcome h2 { margin-bottom: 6px; }
.welcome p { color: var(--muted); margin-bottom: 16px; }
.welcome .art img { width: 8rem; }
@media (min-width: 560px) { .welcome { grid-template-columns: 9rem minmax(0, 1fr); } .welcome .art img { width: 9rem; } }

/* Preferences: rows that open (<details>) to show their field; one Save button below. */
.prow > summary { list-style: none; cursor: pointer; flex-wrap: nowrap; }
.prow > summary::-webkit-details-marker { display: none; }
.prow > summary > span { flex: 1 1 auto; min-width: 0; }
.prow > summary:hover b { text-decoration: underline; }
.prow > summary small { font-size: 0.875rem; }
.prow > summary > .ico { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s ease; }
.prow[open] > summary > .ico { transform: rotate(90deg); }
.prow > summary:focus-visible { border-radius: var(--r-sm); }
.prow-body { padding: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.prow-body > * { margin: 0; }

/* Big options (how you use Passyble, the look): a soft fill, darker when picked, with a tick. */
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px; border-radius: var(--r); background: var(--neutral-soft);
  font-size: 1rem; font-weight: 400; cursor: pointer; transition: background-color 0.2s ease;
}
.choice:hover { background: var(--tint); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.choice-title { font-weight: 600; }
.choice-text { color: var(--muted); font-size: 0.9375rem; }
.choice-tick { flex: none; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--control); color: transparent; }
.choice:has(input:checked) { background: var(--tint); }
.choice:has(input:checked) .choice-tick { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.choice-tick .ico { width: 14px; height: 14px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
.plans-note { display: none; margin: 0; }
.choices:has(input[value="family"]:checked, input[value="team"]:checked) + .plans-note { display: block; }
@media (min-width: 720px) {
  .prow-body .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prow-body .choice { align-items: flex-start; }
}

/* Device chips: picked = an ink pill with a tick. */
.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips + .chips { margin-top: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; font-size: 1rem; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--control); color: var(--fg); transition: background-color 0.2s ease;
}
.chip:hover span { background: var(--surface); }
.chip span .ico { display: none; width: 16px; height: 16px; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip input:checked + span .ico { display: inline-block; }
.chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }

/* The quieter end of a section: deleting the account, closing a ticket, leaving a team. */
.danger-zone { margin-top: 16px; background: var(--raised); border-radius: var(--r-box); padding: 20px 24px; }
.danger-zone h3 { margin: 0 0 4px; }
.danger-zone p { color: var(--muted); margin-bottom: 14px; }
.danger-zone form { margin: 0; }

/* Lists with a small dot before each line (what is deleted). */
ul.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.marks li { position: relative; padding-left: 22px; }
ul.marks li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
ul.marks.danger li::before { background: var(--danger); }
ul.marks.ok li::before { background: var(--lime-mark); }

/* --- Plans (/billing/plans) --------------------------------------------------------------------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; background: var(--raised); border-radius: var(--r-box); padding: 24px; min-width: 0; scroll-margin-top: 24px; }
.tile h2 { font-size: 1.5rem; }
.tile .price { margin: 0; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); }
.tile form { margin-top: auto; padding-top: 10px; }
.tile .btn { width: 100%; }
.tile .trial-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--fg); font-weight: 600; font-size: 0.875rem; }
.tile .intervals { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.tile .intervals legend { padding: 0; margin-bottom: 4px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.tile .save-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--ok-soft); color: var(--fg); font-weight: 600; font-size: 0.875rem; }

/* --- A lifetime offer's page (/offers/...): the solo card, a little wider ------------------------ */

.page.solo:has(.offer-card) { max-width: 520px; }
.offer-card .offer-tag { align-self: center; padding: 2px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--fg); font-weight: 600; font-size: 0.875rem; }
.offer-card .offer-price { text-align: center; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.offer-card .offer-plan { text-align: center; color: var(--muted); }
.offer-card .offer-window { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); font-size: 0.9375rem; }
.offer-card .offer-window .ico { width: 18px; height: 18px; flex: none; }
.offer-card .offer-left { padding: 0 10px; border-radius: 999px; background: var(--ok-soft); font-weight: 600; }
.offer-card ul.marks { margin: 4px 0 8px; }
.offer-card .stack { margin: 4px 0 0; }
@media (max-width: 759px) {
  .offer-card .offer-price { font-size: 1.5rem; }
}

/* --- The banner while the account is scheduled for deletion (every page) ----------------------- */

.deletion-banner { background: var(--warn-soft); color: var(--fg); }
.deletion-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; }
.deletion-banner .ico { width: 20px; height: 20px; color: var(--warn); flex: none; }
.deletion-banner p { margin: 0; flex: 1 1 14rem; font-weight: 600; }
.deletion-banner form { margin: 0; }

/* --- Maintenance and news notices from Sensyble (every page, src/notices.rs) ------------------- */

.notice-banner { background: var(--neutral-soft); color: var(--fg); }
.notice-banner.sev-warning { background: var(--warn-soft); }
.notice-banner.sev-critical { background: var(--danger-soft); }
.notice-banner .wrap { display: flex; align-items: flex-start; gap: 8px 12px; padding: 12px 0; }
.notice-banner .ico { width: 20px; height: 20px; color: var(--muted); flex: none; margin-top: 2px; }
.notice-banner.sev-warning .ico { color: var(--warn); }
.notice-banner.sev-critical .ico { color: var(--danger); }
.notice-banner p { margin: 0; flex: 1 1 14rem; overflow-wrap: anywhere; }
.notice-banner .notice-window { color: var(--muted); }

/* --- Forms in a card (support, team invitations) ------------------------------------------------ */

.formcard { background: var(--raised); border-radius: var(--r-box); padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.formcard > h2, .formcard > h3 { margin: 0 0 4px; font-size: 1.3125rem; letter-spacing: -0.02em; line-height: 1.2; }
.formcard > p { margin: 0; }
.formcard form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.formcard form > * { margin: 0; }
.formcard .field + .field { margin-top: 8px; }
.formcard .form-lead { color: var(--muted); font-size: 0.9375rem; margin-bottom: 6px; }
.formcard .send { align-self: flex-start; margin-top: 10px; }
@media (max-width: 759px) {
  .formcard { padding: 20px; }
  .formcard .send { align-self: stretch; min-height: 52px; }
}

/* --- Support (/support, /support/tickets, a ticket) -------------------------------------------- */

.cols {
  padding-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "form guides" "form tickets" "form ways";
  grid-template-rows: auto auto 1fr;
  gap: 16px 72px;
  align-items: start;
}
.cols > #ticket { grid-area: form; }
.cols > .guides { grid-area: guides; }
.cols > #tickets { grid-area: tickets; }
.cols > .ways { grid-area: ways; }
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tickets" "guides" "form" "ways"; grid-template-rows: auto; }
}
@media (max-width: 759px) {
  .cols { padding-top: 32px; gap: 24px; }
  .panel, .ways { padding-inline: 20px; }
}
.panel { background: var(--raised); border-radius: var(--r-box); padding: 20px 24px 8px; min-width: 0; }
.panel h2 { margin: 0; font-size: 1.3125rem; letter-spacing: -0.02em; line-height: 1.2; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head span { font-size: 0.875rem; color: var(--muted); }
.panel-lead { margin: 4px 0 14px; font-size: 0.9375rem; color: var(--muted); }
.guides { padding-bottom: 10px; }
.guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.guide:hover { color: var(--fg); text-decoration: underline; }
.guide .ico, .tk-more .ico { width: 16px; height: 16px; color: var(--muted); }

/* A ticket row: the subject and its reference, the status with a dot on the right. */
.tk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  min-height: 72px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}
.tk:hover { color: var(--fg); text-decoration: none; }
.tk:hover .tk-t { text-decoration: underline; }
.tk-body { flex: 1 1 auto; min-width: 0; }
.tk-t { display: block; overflow-wrap: anywhere; }
.tk-new .tk-t { font-weight: 700; }
.tk-m { display: block; font-size: 0.875rem; color: var(--muted); }
.tk-more { min-height: 52px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.tk-more:hover { color: var(--fg); }
.list-box { padding-bottom: 0; }
.list-box > .tk:first-child { border-top: 0; }
.list-box .empty { padding: 20px 0; color: var(--muted); }

/* Status: a dot and a word. Lime for "Waiting for you" (a reply from us), grey otherwise. */
.status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }
.status.st-waiting_on_customer::before { background: var(--lime-mark); }
.status.st-closed { color: var(--muted); }
.status.st-closed::before { background: var(--control); }
.status.st-staff, .status.st-current { padding: 2px 10px; border-radius: 999px; background: var(--surface); }
.status.st-current::before { background: var(--lime-mark); }

/* Other ways to reach us: a round icon, a title and a line, an arrow. */
.ways { padding: 20px 24px 6px; }
.ways h2 { margin-bottom: 6px; }
.way {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 32px 14px 0;
  border-top: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}
.way:hover { color: var(--fg); text-decoration: none; }
.way:hover b { text-decoration: underline; }
.way-ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.way-ic .ico { width: 18px; height: 18px; }
.way-go { position: absolute; top: 50%; right: 0; display: flex; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.way-go .ico { width: 18px; height: 18px; }
.way b { font-size: 1.0625rem; line-height: 1.3; }
.way span:not(.way-ic) { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

/* A ticket's page: the thread in a white box, the reply form, Close. */
.ticket-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
ol.thread { list-style: none; margin: 0; padding: 0; }
ol.thread li { padding: 20px 0; }
ol.thread li + li { border-top: 1px solid var(--line); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.msg-body { max-width: 48rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.thread-cols { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; max-width: 52rem; }
.thread-cols > * { margin: 0; }
.thread-cols .danger-zone { margin-top: 0; }

/* --- The welcome flow: the centered card with a slim progress bar, one question per step ------- */

.welcome-card { gap: 14px; }
.progress { height: 4px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--fg); }
.progress-fill.s1 { width: 14.3%; }
.progress-fill.s2 { width: 28.6%; }
.progress-fill.s3 { width: 42.9%; }
.progress-fill.s4 { width: 57.1%; }
.progress-fill.s5 { width: 71.4%; }
.progress-fill.s6 { width: 85.7%; }
.progress-fill.s7 { width: 100%; }
.step-count { margin: 0; text-align: center; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.welcome-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.welcome-nav .link { font-weight: 500; color: var(--muted); text-decoration: none; }
.welcome-nav .link:hover { color: var(--fg); text-decoration: underline; }
.skip-all { display: flex; justify-content: center; margin: 4px 0 0; }
.link-btn {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.link-btn:hover { color: var(--fg); background: var(--tint); }

/* The setup checklist: rows with hairlines, a tick when done. */
.checklist { list-style: none; margin: 4px 0 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.ci-mark { flex: none; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--control); }
.ci-mark .ico { width: 14px; height: 14px; }
.checklist li.done .ci-mark { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ci-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ci-text .row-title { font-weight: 600; }
.checklist li.soon .row-title { color: var(--muted); font-weight: 500; }
.checklist .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.checklist .btn .ico { width: 16px; height: 16px; }

/* --- Icons, badges and illustrations ------------------------------------------------------------ */

/* An icon in a small tinted rounded tile: rows, ticket rows, the guides link (section headings and
   the section menu size and colour it above). */
.ic-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ic-tile .ico { width: 20px; height: 20px; }

/* A row led by an icon tile or a small picture: the tile, the text, then the button or tag. On
   narrow phones the button moves under the text. */
.row.ri { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 16px; }
.row.ri > div, .row.ri > span:not(.ic-tile):not(.art), .row.ri > p { min-width: 0; margin: 0; }
.row.ri-art { grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: 20px; }
.row.compact.ri { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
.row.compact .ic-tile { width: 32px; height: 32px; border-radius: 10px; }
.row.compact .ic-tile .ico { width: 16px; height: 16px; }
@media (max-width: 479px) {
  .row.ri { column-gap: 14px; }
  .row.ri > :nth-child(3):not(.ico) { grid-column: 2 / -1; justify-self: start; }
  .row.ri > .ic-tile, .row.ri > .art { align-self: start; }
  .row.ri-art { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 14px; }
}

/* Hover: a soft rounded fill behind the rows that open something (Preferences, tickets, the
   guides link) and a darker tile. Plain rows with a button on them stay still. */
.prow > summary.row, .tk, .guide { position: relative; isolation: isolate; }
.prow > summary.row::before, .tk::before, .guide::before {
  content: "";
  position: absolute;
  inset: 4px -12px;
  z-index: -1;
  border-radius: 14px;
  background: var(--neutral-soft);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.prow > summary.row:hover::before, .tk:hover::before, .guide:hover::before { opacity: 1; }
.prow > summary.row:hover .ic-tile, .tk:hover .ic-tile, .guide:hover .ic-tile { background: var(--tint); }

/* Ticket rows and the guides link: a slightly smaller tile. */
.tk .ic-tile, .guide .ic-tile { width: 36px; height: 36px; border-radius: 11px; }
.tk .ic-tile .ico, .guide .ic-tile .ico { width: 18px; height: 18px; color: var(--fg); }
.guide-l { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.guides .guide { min-height: 60px; }
@media (max-width: 419px) {
  .tk { flex-wrap: wrap; }
  .tk-body { flex-basis: calc(100% - 50px); }
  .tk > .status { margin-left: 50px; }
}

/* Illustrations (passyble.com's, light and dark): sized by a class. */
.art { display: block; flex: none; }
.art img { width: 100%; height: auto; }
.row-art { width: 96px; }
@media (max-width: 479px) { .row-art { width: 72px; } }
.plan-art { width: 112px; align-self: center; }
@media (max-width: 759px) { .plan-art { width: 88px; align-self: flex-start; } }
.card-art { width: 168px; align-self: center; margin: 4px 0 2px; }
.empty-pic { width: 168px; }
.list-box .empty-art { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 0 36px; text-align: center; }
.empty-art p { margin: 0; max-width: 26rem; }

/* The icon badge above a solo card's heading: a tinted rounded square with a lime dot (red, without
   the dot, for deleting the account). */
.badge {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--fg);
}
.badge .ico { width: 28px; height: 28px; }
.badge::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-mark); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.danger::after { display: none; }
@media (max-width: 759px) {
  .badge { width: 56px; height: 56px; border-radius: 18px; }
  .badge .ico { width: 24px; height: 24px; }
}

/* Images with a light and a dark version (the illustrations): both are in the page and CSS shows
   one, following the theme picked under Preferences or the system setting. */
:root[data-theme="light"] .on-dark,
:root[data-theme="dark"] .on-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .on-dark { display: none !important; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }

/* The Firebase SDK's helper iframe (Continue with Google): out of sight even if its own inline style is blocked by the CSP. */
body > iframe[src*="/__/auth/iframe"] { position: absolute; top: -100px; left: 0; width: 1px; height: 1px; border: 0; }

/* --- The organisation console's access matrix (people down, vaults across) ----------------------- */

.table-wrap { overflow-x: auto; background: var(--raised); border-radius: var(--r-box); margin-bottom: 16px; }
.matrix { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.matrix th, .matrix td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.matrix thead th { color: var(--muted); font-weight: 600; }
.matrix tbody tr + tr { border-top: 1px solid var(--line); }
.matrix tbody th { font-weight: 500; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.formcard details summary { cursor: pointer; font-weight: 500; }
.formcard h3 .tag { margin-left: 8px; vertical-align: 2px; }
/* Support: the one-time code for the app, and the diagnostics a ticket carries. */
.app-code { text-align: center; }
.app-code code { display: inline-block; font-size: 1.75rem; letter-spacing: 0.12em; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; user-select: all; }
.box.diag { margin-top: 12px; padding: 12px 16px; }
.box.diag summary { cursor: pointer; font-weight: 500; }
.box.diag pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; }

/* pass-help's own rules, served after Accounts/static/style.css as one /static/style.css (the
   account pages' look: colours, type, header, buttons and the rest come from there). */

/* --- The help center and news (help.passyble.com, pass-help) ----------------------------------------
   The header bar of the wide shell without an account: Help center and News, a pill back to
   passyble.com (hidden on narrow phones, the footer has the link). Lists are white boxes of rows;
   articles are a reading column with the table of contents beside it on wide screens. */

.help .hd > .hd-home { position: relative; z-index: 2; gap: 8px; min-height: 44px; padding: 0 16px; }
.help .hd-home .ico { width: 16px; height: 16px; }
@media (max-width: 519px) {
  .help .hd > .hd-home { display: none; }
  .help .hd-links a { padding: 0 12px; }
}

.help-hero .ph-lead { margin-bottom: 0; }
.help-search { display: flex; gap: 10px; margin-top: 28px; max-width: 40rem; }
.help-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 13px 18px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--raised);
  color: var(--fg);
  font: 400 1.0625rem/1.4 var(--sans);
  box-shadow: var(--field-shadow);
}
.help-search input:hover { border-color: var(--muted); }
.help-search input::placeholder { color: var(--caption); opacity: 1; }
.help-search .btn { flex: none; min-height: 52px; }
@media (max-width: 419px) {
  .help-search { flex-direction: column; }
}

.help-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; margin-top: 48px; }
.help-sect { background: var(--raised); border-radius: var(--r-box); padding: 22px 24px 10px; min-width: 0; scroll-margin-top: 24px; }
.help-sect h2 { font-size: 1.3125rem; }
.help-sect-lead { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.help-list { list-style: none; margin: 12px 0 0; padding: 0; }
.help-list li + li { border-top: 1px solid var(--line); }
.help-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; color: var(--fg); text-decoration: none; }
.help-list a:hover .help-item b { text-decoration: underline; }
.help-list .ico { width: 16px; height: 16px; color: var(--muted); margin-left: auto; }
.help-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-item b { font-weight: 600; overflow-wrap: anywhere; }
.help-item small, .help-item time { color: var(--muted); font-size: 0.9375rem; }
.help-list .tag { flex: none; }

.help-news { margin-top: 48px; background: var(--raised); border-radius: var(--r-box); padding: 22px 24px 10px; }
.help-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.help-news-page, .help-search-results { margin-top: 32px; background: var(--raised); border-radius: var(--r-box); padding: 10px 24px; }
.help-search-results > p { margin: 14px 0; }
.help-results { font-size: 1.0625rem; margin: 14px 0 0; color: var(--muted); font-weight: 600; }
.help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; }

.help-article { margin-top: 32px; display: grid; gap: 24px; }
@media (min-width: 960px) {
  .help-article.with-toc { grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; }
  .help-article.with-toc .help-toc { order: 2; position: sticky; top: 24px; }
}
.help-toc { background: var(--raised); border-radius: var(--r-box); padding: 18px 22px; font-size: 0.9375rem; }
.help-toc h2 { font-size: 0.9375rem; color: var(--muted); }
.help-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.help-toc .toc-l3 { padding-left: 14px; }
.help-toc a { color: var(--fg); text-decoration: none; }
.help-toc a:hover { text-decoration: underline; }

/* Staff Markdown: a calm reading column. */
.prose { background: var(--raised); border-radius: var(--r-box); padding: 28px 32px; min-width: 0; max-width: 48rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.1875rem; margin: 1.5rem 0 0.5rem; scroll-margin-top: 24px; }
.prose h4 { font-size: 1.0625rem; margin: 1.25rem 0 0.5rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin: 0.25rem 0; }
.prose li > p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 0.2em; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.prose pre { background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 1rem; }
.prose pre code { background: none; padding: 0; overflow-wrap: normal; }
.prose blockquote { margin: 0 0 1rem; padding: 4px 0 4px 16px; border-left: 3px solid var(--control); color: var(--muted); }
.prose img { border-radius: var(--r-sm); margin: 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
@media (max-width: 759px) {
  .prose { padding: 22px 20px; }
  .help-sect, .help-news { padding: 20px 20px 8px; }
  .help-news-page, .help-search-results { padding: 8px 20px; }
}

.help-stuck { display: flex; align-items: center; gap: 10px; margin: 32px 0 0; color: var(--muted); }
.help-stuck .ico { width: 20px; height: 20px; }
.help-stuck a { font-weight: 600; }
