/* Orivon ID is drawn as one of the browser's own pages: the palette, the radii and the rows of its Settings page, in Inter and JetBrains Mono. */
@font-face { font-family: 'Inter'; src: url(fonts/inter-normal-100-900.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-normal-100-800.woff2) format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --wbg: #f4f4f8;
  --wbg-2: #e7e7f1;
  --wpanel: #ffffff;
  --wsurface: #ebebf1;
  --wborder: color-mix(in srgb, var(--wbg) 82%, black);
  --wfield: #7c7c88;
  --wink: rgba(0, 0, 0, 0.90);
  --wink-strong: rgba(0, 0, 0, 0.96);
  --wink-dim: rgba(0, 0, 0, 0.60);
  --whover: rgba(0, 0, 0, 0.06);
  --waccent: #4f46e5;
  --waccent-text: #4338ca;
  --waccent-ink: #ffffff;
  --waccent-wash: color-mix(in srgb, var(--waccent-text) 12%, transparent);
  --wdanger: #dc2626;
  --wdanger-text: #b91c1c;
  --wdanger-wash: color-mix(in srgb, var(--wdanger) 10%, transparent);
  --wok: #00a848;
  --wok-text: #036a47;
  --wok-wash: color-mix(in srgb, var(--wok) 14%, transparent);
  --wwarn: #f97316;
  --wwarn-text: #9a3412;
  --wwarn-mark: #c2410c;
  --wwarn-wash: color-mix(in srgb, var(--wwarn) 14%, transparent);
  --wradius: 10px;
  --wfont: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wmono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --lift: 0 -8px 12px -10px rgb(0 0 0 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --wbg: #17181c;
    --wbg-2: #202129;
    --wpanel: #1e1f24;
    --wsurface: #2b2c31;
    --wborder: #3b3c42;
    --wfield: #757683;
    --wink: #e6e7e8;
    --wink-strong: #f5f6f7;
    --wink-dim: #a4a5af;
    --whover: rgba(255, 255, 255, 0.07);
    --waccent-text: #8b93f8;
    --wdanger-text: #f87171;
    --wok: #00c950;
    --wok-text: #4ade80;
    --wwarn-text: #fb923c;
    --wwarn-mark: #f97316;
    --lift: 0 -8px 14px -10px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--wbg) 0%, var(--wbg-2) 100%) fixed;
  color: var(--wink);
  font: 14px/1.45 var(--wfont);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; color: var(--wink-strong); }
h2 { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--wink-strong); }
h3 { font-size: 15px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; color: var(--wink-strong); }
a { color: var(--waccent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--waccent-text); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
code, pre, .hex { font-family: var(--wmono); font-size: 12.5px; }
.hex { overflow-wrap: anywhere; word-break: break-all; color: var(--wink); }
.muted { color: var(--wink-dim); }
.hint { color: var(--wink-dim); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { flex: none; }

/* The frame: a slim sidebar and the column beside it. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--wpanel); color: var(--wink); border: 2px solid var(--waccent-text); border-radius: 8px; padding: 8px 14px; font: inherit; }
.skip:focus { top: 8px; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.top { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--wborder); background: color-mix(in srgb, var(--wpanel) 82%, transparent); }
/* The account follows the brand in the page, so a narrow bar reads brand, account, links; the sidebar draws the links above it, and its reading order follows what is drawn. */
.top-inner { display: flex; flex-direction: column; gap: 22px; height: 100%; padding: 20px 12px 16px; overflow-y: auto; reading-flow: flex-visual; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--wink-strong); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 8px; display: block; }
.top nav { display: grid; gap: 2px; order: 1; }
.top nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--wink-dim); font-weight: 500; text-decoration: none; transition: background-color 0.12s, color 0.12s; }
.top nav a:hover { background: var(--whover); color: var(--wink); }
.top nav a[aria-current='page'] { background: var(--waccent-wash); color: var(--waccent-text); font-weight: 600; }
.top-foot { display: grid; gap: 10px; margin-top: auto; order: 2; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--wborder); border-radius: var(--wradius); background: var(--wpanel); }
.account > .button { flex: 1 1 auto; }
.account-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--wsurface); color: var(--wink-dim); }
.account-text { min-width: 0; display: grid; gap: 1px; }
.account-state { display: flex; align-items: center; gap: 6px; }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wok); box-shadow: 0 0 0 3px var(--wok-wash); }
.account-label { color: var(--wink-dim); font-size: 12px; }
.account-failure { color: var(--wdanger-text); font-size: 12.5px; }
.address-chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.address-chip .hex { font-size: 12.5px; color: var(--wink-strong); }
.reading { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: var(--wradius); border: 1px solid var(--wborder); background: var(--wsurface); color: var(--wink-dim); font-size: 12.5px; line-height: 1.4; }
.reading .icon { margin-top: 1px; }
.reading[data-tone='ok'] { background: var(--wok-wash); border-color: color-mix(in srgb, var(--wok) 32%, var(--wborder)); color: var(--wink); }
.reading[data-tone='ok'] .icon { color: var(--wok-text); }
.reading[data-tone='warn'] { background: var(--wwarn-wash); border-color: color-mix(in srgb, var(--wwarn) 38%, var(--wborder)); color: var(--wink); }
.reading[data-tone='warn'] .icon { color: var(--wwarn-text); }

.column { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.banner-host:empty { display: none; }
.banner-host .banner { padding: 16px 48px 0; }
main { display: block; flex: 1 1 auto; padding: 40px 48px 48px; }
.foot { display: grid; gap: 4px; padding: 18px 48px 28px; border-top: 1px solid var(--wborder); color: var(--wink-dim); font-size: 12.5px; }
.no-script { padding: 16px; }

/* Pages */
.page { max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.page.search-page { max-width: 980px; }
.lede { max-width: 62ch; margin-top: -6px; color: var(--wink-dim); font-size: 14.5px; }
.search-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.search-main { display: grid; gap: 16px; min-width: 0; }
.eyebrow { color: var(--wink-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Buttons and links that act */
.button { font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--wborder); background: var(--wsurface); color: var(--wink); cursor: pointer; text-decoration: none; text-align: center; transition: background-color 0.12s, border-color 0.12s, filter 0.12s; }
.button:hover:not(:disabled) { background: color-mix(in srgb, var(--wink) 9%, var(--wsurface)); }
.button:active:not(:disabled) { background: color-mix(in srgb, var(--wink) 14%, var(--wsurface)); }
.button.primary { background: var(--waccent); border-color: var(--waccent); color: var(--waccent-ink); }
.button.primary:hover:not(:disabled) { background: var(--waccent); filter: brightness(1.1); }
.button.primary:active:not(:disabled) { background: var(--waccent); filter: brightness(0.94); }
.button.quiet { background: transparent; }
.button.quiet:hover:not(:disabled) { background: var(--whover); }
.button.danger { background: var(--wdanger); border-color: var(--wdanger); color: #fff; }
.button.danger:hover:not(:disabled) { background: var(--wdanger); filter: brightness(1.08); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.link-button { font: inherit; font-size: 12.5px; background: none; border: 0; padding: 1px 4px; border-radius: 6px; color: var(--waccent-text); cursor: pointer; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Forms */
label { font-weight: 500; }
input[type='text'] { font: inherit; width: 100%; min-height: 36px; padding: 6px 10px; color: var(--wink); background: var(--wsurface); border: 1px solid var(--wfield); border-radius: 8px; }
input[type='text']::placeholder { color: var(--wink-dim); opacity: 1; }
input[aria-invalid='true'], .name-field:has(input[aria-invalid='true']) { border-color: var(--wdanger); box-shadow: inset 0 0 0 1px var(--wdanger); }
input:disabled { opacity: 0.6; }
input[type='checkbox'], input[type='radio'] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--wink-dim); border-radius: 5px; background: var(--wsurface); cursor: pointer; transition: background-color 0.12s, border-color 0.12s; }
input[type='radio'] { border-radius: 50%; }
input[type='checkbox']:checked, input[type='radio']:checked { background: var(--waccent); border-color: var(--waccent); }
input[type='checkbox']:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid var(--waccent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type='radio']:checked::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--waccent-ink); }
input:disabled { cursor: default; }
.search { display: grid; gap: 14px; padding: 20px; background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); }
.search > label { color: var(--wink-dim); font-size: 13px; }
.name-row { display: flex; flex-wrap: wrap; gap: 10px; }
.name-field { display: flex; align-items: center; flex: 1 1 18rem; min-width: 0; height: 48px; padding: 0 14px; background: var(--wsurface); border: 1px solid var(--wfield); border-radius: 10px; }
.name-field:focus-within { outline: 2px solid var(--waccent-text); outline-offset: 2px; }
.name-field input { flex: 1 1 5rem; min-width: 4rem; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; outline: none; font-size: 18px; font-weight: 500; }
.suffix { color: var(--wink-dim); font-family: var(--wmono); font-size: 13px; white-space: nowrap; }
.name-row .button { min-height: 48px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.verdict { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.verdict-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--wsurface); color: var(--wink-dim); }
.verdict-text { flex: 1 1 auto; min-width: 0; align-self: center; }
.verdict-title { font-weight: 600; color: var(--wink-strong); overflow-wrap: anywhere; }
.verdict-words { color: var(--wink-dim); font-size: 13px; }
.verdict .badge { flex: none; align-self: center; background: var(--wpanel); }
.verdict[data-tone='ok'], .verdict[data-tone='warn'], .verdict[data-tone='bad'] { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--wborder); }
.verdict[data-tone='ok'] { background: var(--wok-wash); border-color: color-mix(in srgb, var(--wok) 32%, var(--wborder)); }
.verdict[data-tone='ok'] .verdict-mark { background: var(--wok-wash); color: var(--wok-text); }
.verdict[data-tone='warn'] { background: var(--wwarn-wash); border-color: color-mix(in srgb, var(--wwarn) 38%, var(--wborder)); }
.verdict[data-tone='warn'] .verdict-mark { background: var(--wwarn-wash); color: var(--wwarn-text); }
.verdict[data-tone='bad'] { background: var(--wdanger-wash); border-color: color-mix(in srgb, var(--wdanger) 38%, var(--wborder)); }
.verdict[data-tone='bad'] .verdict-mark { background: var(--wdanger-wash); color: var(--wdanger-text); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--wborder); }
.prices > div { display: flex; flex-direction: column; justify-content: flex-end; }
.prices dt { color: var(--wink-dim); font-size: 12px; }
.prices dd { margin-top: 1px; color: var(--wink-strong); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sales { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--wink-dim); font-size: 12.5px; }
.sales:empty { display: none; }
.sales .button { min-height: 28px; padding: 2px 12px; font-size: 12.5px; }
.advice { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--waccent-text); }
.advice .icon { margin-top: 2px; }
.more > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--wink-dim); font-size: 13px; list-style: none; border-radius: 6px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.12s; }
.more[open] > summary::before { transform: rotate(45deg); }
.more > summary:hover { color: var(--wink); }
.more > p { margin-top: 8px; }

/* Notices */
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--wradius); border: 1px solid var(--wborder); background: var(--wpanel); font-size: 13.5px; }
.notice > .icon { margin-top: 1px; }
.notice-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.notice-title { font-weight: 600; color: var(--wink-strong); }
.notice-title:only-child { font-weight: 500; }
.notice.info { background: var(--waccent-wash); border-color: color-mix(in srgb, var(--waccent-text) 35%, var(--wborder)); }
.notice.info > .icon { color: var(--waccent-text); }
.notice.ok { background: var(--wok-wash); border-color: color-mix(in srgb, var(--wok) 35%, var(--wborder)); }
.notice.ok > .icon { color: var(--wok-text); }
.notice.warn { background: var(--wwarn-wash); border-color: color-mix(in srgb, var(--wwarn) 38%, var(--wborder)); }
.notice.warn > .icon { color: var(--wwarn-text); }
.notice.bad { background: var(--wdanger-wash); border-color: color-mix(in srgb, var(--wdanger) 38%, var(--wborder)); }
.notice.bad > .icon { color: var(--wdanger-text); }
.notice .actions { margin-top: 2px; }
.detail summary { cursor: pointer; color: var(--wink-dim); font-size: 13px; }
.detail pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Working */
.spinner { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--wink) 22%, transparent); border-top-color: var(--waccent-text); animation: turn 0.8s linear infinite; }
.working { display: flex; align-items: center; gap: 10px; color: var(--wink-dim); }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .spinner { animation-duration: 3s; } }

/* Badges: the browser's status chips */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--wsurface); color: var(--wink-dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--wok-wash); color: var(--wok-text); }
.badge.warn { background: var(--wwarn-wash); color: var(--wwarn-text); }
.badge.danger, .badge.bad { background: color-mix(in srgb, var(--wdanger) 14%, transparent); color: var(--wdanger-text); }
.badge.info { background: var(--waccent-wash); color: var(--waccent-text); }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--wsurface); color: var(--wink-dim); }

/* The registration panel: one card of rows */
.panel { background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.panel-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--waccent-wash); color: var(--waccent-text); }
.panel[data-tone='ok'] .panel-mark { background: var(--wok-wash); color: var(--wok-text); }
.panel[data-tone='bad'] .panel-mark { background: var(--wdanger-wash); color: var(--wdanger-text); }
.panel-title { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.panel h2 { overflow-wrap: anywhere; font-size: 15.5px; }
.panel-status { color: var(--wink-dim); font-size: 13px; }
.panel-head .badge { align-self: flex-start; margin-top: 2px; }
.panel-body > :not(.notice) { padding: 14px 20px; border-top: 1px solid var(--wborder); }
.panel-body > .notice { margin: 14px 20px; }
/* The buttons stay at the foot of the window while any of the panel is in view, so the one that starts or retries is never below the fold. */
.panel-foot { position: sticky; bottom: 0; z-index: 1; padding: 12px 20px; background: var(--wpanel); border-top: 1px solid var(--wborder); border-radius: 0 0 var(--wradius) var(--wradius); box-shadow: var(--lift); }
.panel-foot:empty { display: none; }
.panel .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.facts > div { padding: 14px 20px; }
.facts > div + div { border-left: 1px solid var(--wborder); }
.facts dt { color: var(--wink-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin-top: 3px; color: var(--wink-strong); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wait-hint { display: flex; align-items: flex-start; gap: 10px; }
.wait-hint .icon { margin-top: 2px; }
.steps { list-style: none; padding: 0; display: grid; }
.panel-body > .steps { padding-block: 2px; }
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--wborder); }
.step:first-child { border-top: 0; }
.step-group { padding: 12px 0 2px; border-top: 1px solid var(--wborder); color: var(--wink-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.step-group + .step { border-top: 0; }
.step.wait { padding-left: 14px; margin-left: 12px; border-left: 2px solid var(--wborder); border-top: 0; padding-top: 10px; padding-bottom: 10px; }
.step-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wsurface); color: var(--wink-dim); border: 1px solid var(--wborder); font-size: 12px; font-weight: 600; }
.step[data-state='done'] .step-mark { background: var(--wok-wash); border-color: color-mix(in srgb, var(--wok) 45%, transparent); color: var(--wok-text); }
.step[data-state='active'] .step-mark { background: var(--waccent-wash); border-color: var(--waccent-text); }
.step[data-state='failed'] .step-mark { background: var(--wdanger-wash); border-color: var(--wdanger); color: var(--wdanger-text); }
.step-title { font-weight: 600; color: var(--wink-strong); }
.step[data-state='pending'] .step-title { color: var(--wink-dim); }
.step-detail { color: var(--wink-dim); font-size: 13px; }
.step[data-state='done'] .step-detail { display: none; }
.step-hash { margin-top: 4px; color: var(--wink-dim); font-size: 12.5px; }
.timer { display: flex; align-items: center; gap: 20px; }
.timer-dial { position: relative; width: 84px; height: 84px; flex: none; }
.ring { display: block; transform: rotate(-90deg); }
.ring-track { stroke: var(--wsurface); }
.ring-arc { stroke: var(--waccent-text); transition: stroke-dashoffset 0.4s linear; }
.timer-text { position: absolute; inset: 0; display: grid; place-items: center; color: var(--wink-strong); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.timer-copy { display: grid; gap: 2px; min-width: 0; }
.timer-title { font-weight: 600; color: var(--wink-strong); }
.timer-caption { color: var(--wink-dim); font-size: 13px; }
.timer-copy .hint { margin-top: 6px; font-size: 12.5px; }
.plan > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.plan > summary::-webkit-details-marker { display: none; }
.plan-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--wsurface); color: var(--wink-dim); }
.plan-text { display: grid; flex: 1 1 auto; min-width: 0; }
.plan-title { font-weight: 600; color: var(--wink-strong); }
.plan-names { color: var(--wink-dim); font-size: 13px; }
.plan-open { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--waccent-text); font-size: 13px; font-weight: 500; }
.plan-open .icon { transition: transform 0.12s; }
.plan[open] .plan-open .icon { transform: rotate(90deg); }
.plan[open] > summary { margin-bottom: 8px; }

/* Send privately: a row with a switch, and the Web2 mark (drawn as the Orivon browser draws its Web2 level mark) */
.private { display: grid; gap: 6px; }
.private .hint, .private .advice { padding-left: 42px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--wink-strong); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--wsurface); color: var(--wink-dim); }
.track { position: relative; order: 9; width: 38px; height: 22px; flex: none; margin-left: auto; border: 1px solid var(--wfield); border-radius: 11px; background: var(--wsurface); transition: background-color 0.15s, border-color 0.15s; }
.track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--wink-dim); transition: transform 0.15s, background-color 0.15s; }
.switch input:checked + .track { background: var(--waccent); border-color: var(--waccent); }
.switch input:checked + .track::after { background: #fff; transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--waccent-text); outline-offset: 2px; }
.web2-mark { --tone: #f97316; --mark-ink: #c2410c; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 7px; border-radius: 999px; flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; color: var(--mark-ink); background: color-mix(in srgb, var(--tone) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.web2-mark::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 22%, transparent); }
@media (prefers-color-scheme: dark) { .web2-mark { --mark-ink: #fdba74; } }

/* The how-to beside the search */
.how { background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); }
.how h2 { padding: 14px 18px 10px; color: var(--wink-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.how ol { list-style: none; padding: 0; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 1px 12px; padding: 12px 18px; border-top: 1px solid var(--wborder); color: var(--wink-dim); font-size: 13px; }
.how li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--waccent-wash); color: var(--waccent-text); font-size: 12px; font-weight: 600; }
.how strong { color: var(--wink-strong); font-size: 14px; font-weight: 600; }

/* My IDs */
.ids { display: grid; gap: 16px; }
.holder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--wborder); border-radius: var(--wradius); background: var(--wpanel); }
.holder > .icon { color: var(--wink-dim); }
.id-card { background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); overflow: clip; }
.id-card > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.id-tile { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--waccent-wash); color: var(--waccent-text); }
.id-card[data-ok='false'] .id-tile { background: var(--wwarn-wash); color: var(--wwarn-text); }
.id-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.id-label { color: var(--wink-strong); }
.id-suffix { color: var(--wink-dim); font-weight: 450; }
.id-card .badge { flex: none; }
.id-card > .why { margin: -6px 20px 14px; padding: 8px 12px; border-left: 3px solid var(--wwarn-mark); border-radius: 4px; background: var(--wwarn-wash); color: var(--wink); font-size: 13px; }
.id-card > .notice { margin: 0 20px 14px; }
.id-card > .notice:last-child, .id-card > .actions + .notice { margin: 14px 20px; }
.id-card > .working { padding: 0 20px 16px; }
.record-list { border-top: 1px solid var(--wborder); }
.record-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; padding: 11px 20px; border-top: 1px solid var(--wborder); }
.record-list > div:first-child { border-top: 0; }
.record-list dt { display: flex; align-items: center; gap: 8px; min-height: 22px; color: var(--wink-dim); font-size: 13px; }
.record-list dd { min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }
.record-list .row-action { align-self: start; }
.record-list .link-button { padding: 2px 10px; border: 1px solid var(--wborder); background: var(--wsurface); color: var(--wink); }
.record-list .link-button:hover { background: var(--whover); text-decoration: none; }
.records { list-style: none; padding: 0; display: grid; gap: 3px; }
.records li { display: flex; flex-wrap: wrap; gap: 0 10px; }
.record-key { color: var(--wink-dim); font-family: var(--wmono); font-size: 12.5px; }
.id-card > .actions { padding: 12px 20px; border-top: 1px solid var(--wborder); }
.edit, .confirm, .move { display: grid; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--wborder); background: color-mix(in srgb, var(--wsurface) 45%, transparent); }
.confirm { background: var(--wdanger-wash); border-top-color: color-mix(in srgb, var(--wdanger) 40%, var(--wborder)); }
.move-host:empty { display: none; }
.move h4:focus { outline: none; }
.bullets { padding-left: 1.2rem; display: grid; gap: 6px; }
.copy { display: grid; gap: 4px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.field, .add-key { display: grid; gap: 4px; }
.field label { color: var(--wink-dim); font-family: var(--wmono); font-size: 12px; font-weight: 500; }
.add-key label { color: var(--wink-dim); font-size: 13px; }
.inline { display: flex; gap: 8px; }
.good { background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); padding: 12px 18px; }
.good summary { cursor: pointer; font-weight: 500; color: var(--wink-dim); }
.good ul { padding-left: 1.2rem; display: grid; gap: 8px; margin-top: 10px; color: var(--wink-dim); }

/* The IDs the page may not have found itself */
.not-offered, .add-id-section { display: grid; gap: 10px; padding: 16px 20px; background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); }
.not-offered h2, .add-id-section h2 { font-size: 15px; }
.not-offered ul { list-style: none; padding: 0; display: grid; }
.not-offered li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--wborder); }
.not-offered li:first-child { border-top: 0; padding-top: 4px; }
.name-off { overflow-wrap: anywhere; font-weight: 600; color: var(--wink-strong); }
.not-offered li .button { justify-self: start; }
.add-id { display: grid; gap: 6px; }
.add-id label { color: var(--wink-dim); font-size: 13px; }
#add-id-result[data-tone='bad'] { color: var(--wdanger-text); font-weight: 500; }
.add-id .actions input { flex: 1 1 12rem; width: auto; }

/* The sign-in sheet: the browser's permission sheet, in a page */
.sheet { display: block; width: 100%; max-width: 600px; margin: 0 auto; background: var(--wpanel); border: 1px solid var(--wborder); border-radius: 12px; }
.sheet-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px; }
.sheet-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--wsurface); color: var(--wink-dim); }
.sheet-head[data-mark='alert'] { align-items: center; }
.sheet-head[data-mark='alert'] .sheet-mark { background: var(--wdanger-wash); color: var(--wdanger-text); }
.sheet-title { min-width: 0; display: grid; gap: 3px; }
.sheet-title h1 { font-size: 20px; }
.sheet-title .audience { margin: 2px 0 2px; font-size: clamp(1.45rem, 6.5vw, 1.95rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; word-break: break-word; color: var(--wink-strong); }
.sheet-title .muted { font-size: 13px; }
.step-line { color: var(--wink); }
.sheet > .step-line, .connect-body > section, .connect-body > fieldset, .connect-body > .hint, .connect-body > .working, .sheet > .actions { padding: 14px 20px; border-top: 1px solid var(--wborder); }
.sheet > .notice, .connect-body > .notice { margin: 14px 20px; }
/* Its parts are laid out by the page itself (the same gap), so the bar at the foot sticks within the whole page and not just within the part below the introduction. */
.connect-body { display: contents; }
.connect-body > .not-offered, .connect-body > .add-id-section { gap: 8px; border: 0; border-radius: 0; border-top: 1px solid var(--wborder); background: none; padding: 14px 20px; }
.connect-body > .not-offered h2, .connect-body > .add-id-section h2, .terms h2, legend { color: var(--wink-dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.who { display: grid; gap: 8px; }
.who-row { display: flex; align-items: flex-start; gap: 10px; }
.who-row > .icon { margin-top: 2px; color: var(--wink-dim); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; }
legend + * { clear: both; }
.pick, .choice { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 4px 10px; margin: 0 -10px; border-radius: 8px; }
.pick:hover, .choice:hover { background: var(--whover); }
.pick label, .choice label { flex: 1; overflow-wrap: anywhere; cursor: pointer; font-weight: 500; }
.pick.off { flex-wrap: wrap; color: var(--wink-dim); }
.choices { display: grid; gap: 0; }
.terms { display: grid; gap: 8px; }
.terms ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.terms li { position: relative; padding-left: 26px; color: var(--wink); }
.terms li::before { content: ''; position: absolute; left: 8px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--wink-dim); }
.wallet-warning { margin: 0; padding: 9px 12px; border-left: 3px solid var(--wwarn-mark); border-radius: 4px; background: var(--wwarn-wash); color: var(--wink); font-size: 14px; line-height: 1.4; }
/* Sign in and Cancel stay at the foot of the window while any of the screen is in view, so they are never below the fold; the wallet's warning is the bar's first line, so it is read before the button is pressed. */
.sign-bar { display: grid; gap: 10px; }
.connect-body > .actions, .connect-body > .sign-bar { position: sticky; bottom: 0; z-index: 1; padding: 12px 20px 14px; background: var(--wpanel); border-top: 1px solid var(--wborder); border-radius: 0 0 12px 12px; box-shadow: var(--lift); }

/* Developers */
.prose { gap: 16px; }
.prose section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 20px; background: var(--wpanel); border: 1px solid var(--wborder); border-radius: var(--wradius); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.prose li strong { color: var(--wink-strong); }
.code { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.code figcaption { color: var(--wink-dim); font-size: 12px; font-weight: 600; }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; background: var(--wsurface); border: 1px solid var(--wborder); border-radius: 8px; line-height: 1.55; }
.refusals { background: var(--wsurface); border-radius: 8px; padding: 10px 14px; }
.refusals summary { cursor: pointer; font-weight: 500; }
.refusals dl { display: grid; gap: 12px; margin-top: 12px; }
.refusals dd { color: var(--wink-dim); overflow-wrap: anywhere; }
.refusals dt code { color: var(--wink-strong); }

/* While a registration runs, the panel is what matters: the form keeps only the name. */
.search[data-locked='true'] .verdict, .search[data-locked='true'] .prices, .search[data-locked='true'] .sales, .search[data-locked='true'] .name-row .button,
.search[data-locked='true'] .more { display: none; }
/* Once the name is free and the panel offers to register it, the form keeps the name and the verdict, so the button is in sight. */
.search[data-compact='true'] .prices, .search[data-compact='true'] .sales, .search[data-compact='true'] .name-row .button, .search[data-compact='true'] .more { display: none; }

@media (min-width: 1180px) {
  .search-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* A narrow window: the sidebar becomes the bar across the top. */
@media (max-width: 820px) {
  .layout { display: block; }
  .top { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--wborder); }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; height: auto; padding: 12px 16px 10px; overflow: visible; reading-flow: normal; }
  .brand { padding: 0; }
  .top nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; margin: 0 -6px; }
  .top nav a { flex: 1 1 0; justify-content: center; padding: 7px 8px; }
  .top-foot { display: contents; }
  .account { grid-column: 2; grid-row: 1; padding: 0; border: 0; background: none; }
  .account-icon, .account-label { display: none; }
  .account-state { gap: 0; }
  .account-dot { position: absolute; margin: 0; width: 0; height: 0; opacity: 0; box-shadow: none; }
  .reading { grid-column: 1 / -1; grid-row: 3; padding: 8px 10px; }
  .column { min-height: 0; }
  main { padding: 24px 16px 40px; }
  .banner-host .banner { padding: 12px 16px 0; }
  .foot { padding: 16px 16px 28px; }
}

@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .page { gap: 14px; }
  .button { min-height: 44px; }
  .actions .button { flex: 1 1 100%; }
  .connect-body > .actions .button, .sign-bar .actions .button { flex: 1 1 0; min-width: 8rem; }
  .inline .button, .sales .button { width: auto; flex: none; }
  .search { padding: 16px; }
  .verdict { flex-wrap: wrap; }
  .verdict-text { flex: 1 1 calc(100% - 40px); }
  .verdict .badge { order: 3; margin-left: 36px; }
  .name-field { flex-basis: 100%; }
  .name-row .button { flex: 1 1 100%; }
  .suffix { font-size: 12px; }
  .panel-head, .panel-foot { padding-left: 16px; padding-right: 16px; }
  .panel-body > :not(.notice) { padding-left: 16px; padding-right: 16px; }
  .panel-body > .notice { margin-left: 16px; margin-right: 16px; }
  .panel .facts { padding-left: 0; padding-right: 0; }
  .facts > div { padding: 12px 10px; }
  .facts > div:first-child { padding-left: 16px; }
  .facts dt { font-size: 10.5px; letter-spacing: 0.03em; }
  .facts dd { font-size: 16px; }
  .panel-head .badge { display: none; }
  .plan > summary { flex-wrap: wrap; }
  .plan-text { flex-basis: calc(100% - 44px); }
  .plan-open { padding-left: 44px; }
  .timer { gap: 14px; }
  .id-card > header, .id-card > .actions, .edit, .confirm, .move { padding-left: 16px; padding-right: 16px; }
  .id-card > header { flex-wrap: wrap; }
  .id-card > .why, .id-card > .notice { margin-left: 16px; margin-right: 16px; }
  .id-card > .actions .button { flex: 1 1 0; min-width: 8rem; }
  .record-list > div { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 16px; }
  .record-list dt { grid-column: 1 / -1; }
  .record-list dd { grid-column: 1; }
  .record-list .row-action { grid-column: 2; grid-row: 2; }
  .sheet-head, .sheet-head[data-mark='alert'] { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sheet-head, .sheet > .step-line, .connect-body > section, .connect-body > fieldset, .connect-body > .hint, .connect-body > .working, .sheet > .actions { padding-left: 16px; padding-right: 16px; }
  .connect-body > .not-offered, .connect-body > .add-id-section, .connect-body > .actions, .connect-body > .sign-bar { padding-left: 16px; padding-right: 16px; }
  .sheet > .notice, .connect-body > .notice { margin-left: 16px; margin-right: 16px; }
  .pick, .choice { margin: 0 -8px; padding: 4px 8px; min-height: 44px; }
  .prose section, .not-offered, .add-id-section { padding: 16px; }
}
