/* Setype ID: one light, neutral style for every page.
   Tokens first; the landing (.home) and the form pages (.panel) share them. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --ink: #16191f;
  --muted: #5c6370;
  --line: #e1e4e9;
  --accent: #1d5bff;      /* the blue of the Setype S */
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --danger: #b42318;
  --ok: #1e6b3a;
  --radius-s: 8px;
  --radius-m: 14px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--font); font-feature-settings: "ss01"; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

/* Buttons: one shape for every action on every page. They answer the
pointer: a lift and a shadow on hover, a press on click, a light sweeping
across the dark ones, a spinner while the form is on its way. */
.button, button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font: 560 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .22s, transform .22s cubic-bezier(.2,.8,.2,1); }
.button.primary, button:not(.secondary):not(.danger):not(.link) { background: var(--ink); color: #fff; }
.button.primary:hover, button:not(.secondary):not(.danger):not(.link):hover { background: #262b35; box-shadow: 0 10px 22px -12px #16191fb3; }
.button.secondary, button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover, button.secondary:hover { border-color: #b9c0ca; box-shadow: 0 8px 18px -14px #1a2b4a80; }
button.danger { background: var(--danger); color: #fff; }
button.danger:hover { background: #9a1d13; box-shadow: 0 10px 22px -12px #b42318b3; }
button.link { background: none; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; overflow: visible; }
.button:hover, button:not(.link):hover { transform: translateY(-1px); }
.button:active, button:not(.link):active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
/* The sweep: a soft band of light crosses dark buttons on hover. */
.button.primary::after, button:not(.secondary):not(.link)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, #ffffff38 50%, transparent 70%);
  transform: translateX(-120%); }
.button.primary:hover::after, button:not(.secondary):not(.link):hover::after { transform: translateX(120%); transition: transform .7s cubic-bezier(.3,.6,.2,1); }
/* Busy: the label gives way to a spinner (set by ui.js on submit). */
button.busy { color: transparent !important; pointer-events: none; }
button.busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid #ffffff55; border-top-color: #fff; animation: spin .7s linear infinite; }
button.secondary.busy::before { border-color: #16191f33; border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .button, button { transition: background-color .18s, border-color .18s, color .18s; }
  .button:hover, button:hover, .button:active, button:active { transform: none; }
  .button::after, button::after { display: none; }
  button.busy::before { animation-duration: 2s; }
}

/* Language: a menu in the home page's header, a row of links elsewhere. */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-top: 1.25rem; }
.langs a { padding: 0.3rem 0.7rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; transition: background-color .18s, color .18s; }
.langs a:hover { color: var(--ink); background: #e7e9ee; }
.langs a[aria-current] { color: var(--ink); font-weight: 560; }
.foot .langs { margin-top: 0; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; color: var(--muted); font-size: 15px; padding: 0.4rem 0.6rem; border-radius: 999px; transition: background-color .18s, color .18s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: #e7e9ee; }
.lang-menu summary svg { width: 17px; height: 17px; }
.lang-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 9.5rem; padding: 0.35rem; display: grid;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 14px 32px -18px #1a2b4a59;
  transform-origin: top right; animation: pop .16s cubic-bezier(.2,.8,.2,1); }
.lang-menu > div a { padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu > div a:hover { background: var(--canvas); }
.lang-menu > div a[aria-current] { font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* The wordmark: the one place the brand speaks. */
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 640; font-size: 17px; letter-spacing: -0.01em; }
.wordmark img { width: 30px; height: 30px; display: block; }
.wordmark span { color: var(--muted); font-weight: 480; }

/* ---------- Landing ---------- */
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav > a:not(.button) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav > a:not(.button):hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding: 4.5rem 0 5.5rem; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; font-size: 19px; color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .note { margin-top: 1rem; font-size: 14px; color: var(--muted); }

/* The memorable thing: one account card, three products hanging off it. */
.ring { position: relative; aspect-ratio: 1 / 0.86; }
.ring svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring svg.links path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ring .account-card { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); width: min(78%, 330px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem;
  box-shadow: 0 1px 0 #00000008, 0 12px 32px -18px #1a2b4a33; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.85rem; align-items: center; }
.ring .avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 640; font-size: 18px; }
.ring .account-card b { font-weight: 600; }
.ring .account-card small { color: var(--muted); font-size: 13.5px; }
.ring .product { position: absolute; bottom: 4%; width: 25%; display: grid; justify-items: center; gap: 0.55rem; text-align: center; font-size: 14px; font-weight: 560; }
.ring .p1 { left: 0; }
.ring .p2 { left: 25%; }
.ring .p3 { left: 50%; }
.ring .p4 { left: 75%; }
.ring a.product { color: var(--ink); text-decoration: none; }
.ring a.product:hover .mark { transform: translateY(-2px); }
.ring .mark { transition: transform 0.15s; }
.mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.mark img { width: 100%; height: 100%; display: block; }
.mark.proxyhat { background: #0a0a0f; }
.mark.proxyhat img { width: 74%; height: auto; filter: invert(1); }
.mark.vaulthat { background: #1f6b4a; }
.mark.vaulthat svg { width: 58%; height: 58%; }
.mark.numsgo { background: #b09cfb; }
.mark.numsgo svg { width: 66%; height: 66%; }
@media (prefers-reduced-motion: no-preference) {
  .ring svg.links { clip-path: inset(0 0 100% 0); animation: draw 1s 0.25s cubic-bezier(.3,.7,.2,1) forwards; }
  @keyframes draw { to { clip-path: inset(0 0 0 0); } }
}

/* Products: rows, one per product, not a card grid. */
.products { border-top: 1px solid var(--line); }
.section-head { padding: 4.5rem 0 1rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { margin-top: 0.9rem; color: var(--muted); font-size: 17px; }
.product-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.product-row:last-child { border-bottom: 0; }
.product-row h3 { font-size: 1.6rem; }
.product-row h3 a { color: inherit; text-decoration: none; }
.product-row h3 a:hover { color: var(--accent); }
.product-row .what { margin-top: 0.5rem; color: var(--muted); font-size: 17px; max-width: 26rem; }
.product-row .state { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 14.5px; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; align-content: start; }
.facts-list li { padding-left: 1.6rem; position: relative; }
.facts-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Security: plain two-column list on the page itself. */
.security { border-top: 1px solid var(--line); padding-bottom: 4.5rem; }
.security .section-head { padding-bottom: 2.25rem; }
.security dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; margin: 0; }
.security dt { font-weight: 600; font-size: 17.5px; }
.security dd { margin: 0.4rem 0 0; color: var(--muted); max-width: 30rem; }

.closing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; }
.closing h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 30ch; }
.foot { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 2.5rem; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 2.5rem 0 3.5rem; }
  .ring { max-width: 440px; width: 100%; margin-inline: auto; }
  .product-row { grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; }
  .product-row .facts-list { grid-column: 1 / -1; }
  .mark { width: 48px; height: 48px; border-radius: 12px; }
  .security dl { grid-template-columns: 1fr; gap: 1.6rem; }
  .closing .wrap { flex-direction: column; align-items: flex-start; }
  .top nav > a:not(.button) { display: none; }
}

/* ---------- Every other page ----------
   Sign-in and the like: a brand side and the form side by side. Account
   pages: the same frame without the brand side, tabs as a sidebar. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--surface); }
.brand-pane { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2.5rem 3rem; color: #e9eeff; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, #1c2c66 0%, #0f1733 55%, #0b1024 100%); }
/* A fine grid and one slow glow: the only motion on the page. */
.brand-pane::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 80%); }
.brand-pane::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: 40%; top: 45%; border-radius: 50%;
  background: radial-gradient(circle, #2f6bffb0 0%, #2f6bff33 40%, transparent 70%); filter: blur(20px); }
@media (prefers-reduced-motion: no-preference) {
  .brand-pane::after { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(-30%, -40%) scale(1); } to { transform: translate(-60%, -65%) scale(1.15); } }
}
.brand-pane .wordmark { color: #fff; }
.brand-pane .wordmark span { color: #a9b6dc; }
.brand-pane .wordmark img { background: #fff; border-radius: 8px; padding: 2px; }
.brand-title { font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 640; letter-spacing: -0.03em; line-height: 1.08; color: #fff; max-width: 14ch; text-wrap: balance; }
.brand-copy ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.brand-copy li { display: flex; align-items: center; gap: 0.75rem; color: #c9d3f2; font-size: 16px; }
.brand-copy li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: #2f6bff40 url(/static/icons/tick-light.svg) center / 14px no-repeat; box-shadow: inset 0 0 0 1px #6f97ff66; }
.brand-foot { color: #8190bd; font-size: 13.5px; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-top { display: none; }
.panel { width: 100%; max-width: 25rem; }
@media (prefers-reduced-motion: no-preference) {
  .panel { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
.panel h1 { font-size: 2rem; letter-spacing: -0.03em; }
.panel h2 { font-size: 1.15rem; margin-top: 2rem; }
.panel h1 + p, .panel h2 + p { margin-top: 0.6rem; }
.panel p { color: var(--muted); }
.panel p + p { margin-top: 0.75rem; }
.panel form { margin-top: 1.75rem; }
.panel label { display: block; font-weight: 560; font-size: 14px; margin: 1.1rem 0 0.45rem; color: var(--ink); }
.panel label > input, .panel label > select { margin-top: 0.45rem; }

/* Fields: soft and filled at rest, white with a ring when in use. */
.panel input[type=email], .panel input[type=text], .panel input:not([type]), .panel select {
  display: block; width: 100%; height: 52px; padding: 0 1rem; border: 1px solid transparent; border-radius: 12px;
  font: 450 16px var(--font); color: var(--ink); background-color: #f2f4f7;
  transition: background-color .18s, border-color .18s, box-shadow .18s; }
.panel input::placeholder { color: #9aa1ab; }
.panel input:hover, .panel select:hover { border-color: #dde1e7; }
.panel input:focus, .panel select:focus { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px #1d5bff26; }
/* A field with an icon: the icon sits on a wrapper, not in the field's own
   background, which browsers drop when they autofill the field. */
.panel .field { position: relative; display: block; }
.panel label > .field { margin-top: 0.45rem; }
.panel label > .field > input { margin-top: 0; }
.panel .field::before { content: ""; position: absolute; z-index: 1; left: 1rem; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: center / 20px no-repeat; pointer-events: none; }
.panel .field.mail::before { background-image: url(/static/icons/mail.svg); }
.panel .field.mail > input { padding-left: 2.9rem; }
.panel select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url(/static/icons/chevron.svg); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; }
/* The open list of a select: a panel like the language menu where the
browser lets CSS draw it (appearance: base-select); elsewhere the system's
own list, the closed field looks the same either way. */
@supports (appearance: base-select) {
  .panel select, .panel select::picker(select) { appearance: base-select; }
  .panel select { display: flex; align-items: center; }
  .panel select::picker-icon { display: none; }
  .panel select::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    box-shadow: 0 18px 40px -20px #1a2b4a66; opacity: 1; transform: none; transition: opacity .16s, transform .16s cubic-bezier(.2,.8,.2,1), overlay .16s allow-discrete, display .16s allow-discrete; }
  @starting-style { .panel select:open::picker(select) { opacity: 0; transform: translateY(-4px) scale(.98); } }
  .panel select option { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.8rem; border-radius: 8px; font: 450 15.5px var(--font); color: var(--ink); cursor: pointer; }
  .panel select option:hover, .panel select option:focus-visible { background: #f2f4f7; outline: none; }
  .panel select option:checked { font-weight: 600; }
  .panel select option::checkmark { order: 1; margin-left: auto; content: ""; width: 16px; height: 16px; background: url(/static/icons/tick.svg) center / 16px no-repeat; }
}
.panel input[autocomplete="one-time-code"] { font-size: 20px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }

/* The six-digit code as six cells (ui.js draws them over the one real field,
   so paste and autofill keep working). */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 3.25rem)); gap: 0.5rem; width: max-content; max-width: 100%; margin-top: 0.45rem; }
.otp input { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; cursor: text; }
.otp .cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #f2f4f7; border: 1px solid transparent;
  font: 600 24px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.otp .cell.filled { background: #fff; border-color: #d5dae2; }
.otp.focus .cell.active { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px #1d5bff26; }
.otp.focus .cell.active:not(.filled)::after { content: ""; width: 2px; height: 26px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.otp .cell.filled { animation: pop-in .18s cubic-bezier(.2,.8,.2,1); }
/* A recovery code: the real field, no cells. */
.otp.plain { display: block; width: auto; }
.otp.plain .cell { display: none; }
.otp.plain input { position: static !important; height: 52px !important; opacity: 1; cursor: auto; letter-spacing: 0.08em; }
@keyframes pop-in { from { transform: scale(.9); } }

/* Choices (which second factor): segments instead of bare radios. */
.panel fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; min-width: 0; }
.panel legend { font-weight: 560; font-size: 14px; padding: 0; margin-bottom: 0.45rem; }
/* The methods sit in one row; a very narrow screen may wrap them. */
.panel .methods { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.panel .methods label { margin: 0 !important; white-space: nowrap; }
.panel fieldset:not(.step-up) > label, .panel .methods label {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0.4rem 0.4rem 0; padding: 0.6rem 0.9rem; border-radius: 10px;
  background: #f2f4f7; border: 1px solid transparent; font-weight: 520; font-size: 14.5px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.panel fieldset:not(.step-up) > label:has(input:checked), .panel .methods label:has(input:checked) { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px #1d5bff1f; }
.panel input[type=radio], .panel input[type=checkbox] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
.panel button { margin-top: 1.5rem; }
.panel section:not(.account) form > button[type=submit] { width: 100%; min-height: 52px; font-size: 16px; }
.panel section > p:last-child { margin-top: 1.5rem; font-size: 14.5px; }
.panel code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.95em; }
.qr { margin: 1rem 0; padding: 0.85rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: max-content; box-shadow: 0 12px 30px -20px #1a2b4a59; }
.qr svg { display: block; width: 11rem; height: 11rem; }
.secret { display: inline-block; margin-top: 0.3rem; padding: 0.4rem 0.6rem; background: #f2f4f7; border-radius: 8px; word-break: break-all; color: var(--ink); }
.codes { columns: 2; gap: 1.5rem; margin: 1rem 0 0; padding: 1rem 1rem 1rem 2.25rem; background: #f2f4f7; border-radius: 12px; font-size: 1.05rem; }
.codes li { padding: 0.15rem 0; }

/* Messages: an icon and a tint. */
.error { color: var(--danger); }
.notice { color: var(--ok); }
.panel p.error, .panel p.notice { margin-top: 1.1rem; padding: 0.75rem 0.9rem 0.75rem 2.6rem; border-radius: 12px; font-size: 14.5px;
  background-repeat: no-repeat; background-position: 0.85rem 0.8rem; background-size: 18px; }
.panel p.error { background-color: #fdf0ef; background-image: url(/static/icons/alert.svg); color: var(--danger); }
.panel p.notice { background-color: #edf7f0; background-image: url(/static/icons/check.svg); color: var(--ok); }
.panel p.error[hidden] { display: none; }
.auth-main > .langs { margin-top: 2rem; }

/* ---------- Account pages: no brand side, tabs as a sidebar ---------- */
.auth:has(.account) { grid-template-columns: 1fr; background: var(--canvas); }
.auth:has(.account) .brand-pane { display: none; }
.auth:has(.account) .auth-main { justify-content: flex-start; padding-top: 1.75rem; }
.auth:has(.account) .auth-top { display: block; width: 100%; max-width: 58rem; margin-bottom: 2rem; }
.auth:has(.account) .panel { max-width: 58rem; animation: none; }
.account { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
.account-nav { position: sticky; top: 1.5rem; display: grid; gap: 0.2rem; }
.account-nav a { display: block; padding: 0.6rem 0.85rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 520; transition: background-color .15s, color .15s; }
.account-nav a:hover { color: var(--ink); background: #e7e9ee; }
.account-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 0 #00000008, 0 6px 16px -12px #1a2b4a59; }
.account-nav a[href="/account/delete"] { margin-top: 0.75rem; }
.account-nav a[href="/account/delete"]:not([aria-current]) { color: #a1453d; }
.account-card { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border-radius: 18px; padding: 1.75rem 2rem 2rem; box-shadow: 0 1px 0 #00000006, 0 18px 40px -30px #1a2b4a59; }
.who { font-size: 14px; margin: 0; }
.panel .who { color: var(--muted); }
.account h1 { margin: 0.4rem 0 0.25rem; }
.account-card > h2 { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.account .button, .account button { margin-top: 1.25rem; }
.account-card > form { max-width: 30rem; }
.account-card > p:last-child { margin-top: 1.25rem; font-size: 14.5px; }
.facts { margin: 1.25rem 0 0; }
.facts dt { font-weight: 560; font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: 17px; font-weight: 520; }
.items { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.items > li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.items > li:has(> .device) { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.items > li > .device { min-width: 0; flex: 1; }
.items > li > form { flex: none; }
.device strong { font-weight: 600; }
.device small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 13.5px; }
.items em { display: inline-block; margin-left: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 12.5px; font-weight: 560; vertical-align: 0.1em; }
.items > li:last-child { border-bottom: 0; }
.items form { display: inline; margin: 0; }
.items button { margin-top: 0; min-height: 36px; font-size: 14px; }
.items > li:not(:has(> .device)) button { margin-top: 0.6rem; }
/* Security sections fold: the title and its state in a row, the body
   below. A form that was just sent keeps its section open (server). */
.fold { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.fold + .fold { margin-top: 0; }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold > summary { display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; flex: 1; font-size: 17px; }
.fold > summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin: 0 0.3rem 0.2rem; border: solid var(--muted);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -0.2rem; }
.fold > summary:hover h2 { color: var(--accent); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.fold .state { flex: none; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eef0f4; color: var(--muted); font-size: 12.5px; font-weight: 560; }
.fold .state.on { background: var(--accent-soft); color: var(--accent); }
.fold > summary + * { margin-top: 0; }
.fold[open] { padding-bottom: 1.5rem; }
.fold .items { margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }

/* "Confirm it is you": a tinted box with room inside. The selectors carry
   .panel so they outrank ".panel fieldset", which zeroes the padding. */
.panel fieldset.step-up { margin: 1.5rem 0 0; padding: 1.15rem 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fb; }
.panel fieldset.step-up > legend { float: left; width: 100%; padding: 0; margin: 0 0 0.4rem; font-size: 15px; }
.panel fieldset.step-up > legend + * { clear: both; margin-top: 0; }
.panel fieldset.step-up .methods { margin-top: 0.85rem; }
.panel fieldset.step-up .methods label:not(:has(input:checked)) { background: #fff; border-color: var(--line); }
.panel fieldset.step-up input[name=code]:not(:focus) { background-color: #fff; border-color: var(--line); }
.panel fieldset.step-up .otp .cell:not(.filled) { background: #fff; border-color: var(--line); }
.panel fieldset.step-up > button { margin-top: 1rem; }

@media (max-width: 480px) {
  /* Phones: one column with room. The methods stack, each a full-width
     row; the account's buttons span the card, so a long name wraps with
     padding around it instead of touching the edge. */
  .panel .methods { flex-direction: column; gap: 0.5rem; }
  .panel .methods label { display: flex; width: 100%; padding: 0.8rem 1rem; font-size: 15px; white-space: normal; }
  .account form > button { width: 100%; min-height: 50px; padding: 0.8rem 1.25rem; white-space: normal; line-height: 1.3; text-align: center; }
  .account .items form > button { width: auto; min-height: 36px; padding: 0 1rem; white-space: nowrap; }
  .panel fieldset.step-up { padding: 1.15rem 1.1rem 1.25rem; }
  .panel fieldset.step-up > p { line-height: 1.5; }
  .fold > summary { padding: 1.15rem 0; }
  .fold > summary h2 { line-height: 1.3; }
  .fold[open] > p + form > p, .fold[open] > p { line-height: 1.55; }
}

@media (max-width: 960px) {
  /* The scrollbar's reserved strip (against jumps between pages on a
     computer) would leave a wider margin on the right of a narrow screen. */
  html { scrollbar-gutter: auto; }
  .auth { grid-template-columns: 1fr; }
  .brand-pane { display: none; }
  .auth-main { justify-content: flex-start; padding: 1.5rem 1.25rem 2.5rem; }
  .auth-top { display: block; width: 100%; max-width: 25rem; margin-bottom: 2.5rem; }
  .auth:has(.account) .auth-top { max-width: 100%; margin-bottom: 1.25rem; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-nav { position: static; display: flex; gap: 0.25rem; overflow-x: auto; margin: 0 -1.25rem 1rem; padding: 0 1.25rem; scrollbar-width: none; }
  .account-nav a { white-space: nowrap; }
  .account-nav a[href="/account/delete"] { margin-top: 0; }
  .account-card { padding: 1.25rem 1.25rem 1.5rem; border-radius: 16px; }
}
@media (max-width: 420px) {
  .otp { gap: 0.35rem; }
  .otp .cell { font-size: 21px; }
  .panel h1 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
