/* Revokerie Anywhere dashboard (app.revokerie.com/account/). The revokerie.com tokens and Inter are copied from
   /site/site.css (not imported: that file also styles the homepage sections). Light only. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/site/fonts/inter-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; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/site/fonts/inter-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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/site/fonts/inter-greek.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/site/fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --soft-2: #eef1f8;
  --ink: #0b1020;
  --ink-2: #283047;
  --muted: #5b6479;
  --line: #e6e8f0;
  --line-2: #d8dce8;
  --brand: #2f5bff;
  --brand-2: #7b5cff;
  --brand-soft: #eef2ff;
  --ok: #0f8a5f;
  --ok-soft: #e6f7f0;
  --warn: #b45309;
  --warn-soft: #fdf3e4;
  --bad: #c62a3a;
  --bad-soft: #fdecee;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06);
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 8px 24px -6px rgba(11, 16, 32, 0.1);
  --shadow-lg: 0 2px 4px rgba(11, 16, 32, 0.04), 0 24px 64px -12px rgba(33, 44, 99, 0.25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; }
h2 { font-size: 18px; line-height: 1.3; }
h3 { font-size: 15.5px; line-height: 1.35; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); }
code, pre { font-family: var(--mono); font-size: 13px; }

/* ---------- Buttons, tags (as on revokerie.com) ---------- */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: #fff; font: 600 14.5px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; text-align: center; }
.btn:hover { box-shadow: 0 8px 20px -8px rgba(11, 16, 32, 0.45); }
.btn.brand { --b: var(--brand); }
.btn.danger { --b: var(--bad); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { box-shadow: var(--shadow); }
.btn.ghost.danger { color: var(--bad); border-color: #f1c4ca; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 999px; background: var(--soft-2); color: var(--ink-2); line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.tag.basic, .tag.new { background: var(--brand-soft); color: var(--brand); }
.tag.grow { background: #f3edff; color: #6a3fe0; }
.tag.free, .tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: var(--bad); font-weight: 600; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=date], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; font: 15px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; }
textarea { min-height: 0; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235b6479' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47, 91, 255, 0.35); outline-offset: 0; border-color: var(--brand); }
input:disabled, select:disabled, textarea:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.check input:disabled { cursor: not-allowed; }
.check span { color: var(--ink-2); }
.check small { display: block; color: var(--muted); font-size: 13px; }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; }
.prefix:focus-within { outline: 3px solid rgba(47, 91, 255, 0.35); border-color: var(--brand); }
.prefix span { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--muted); background: var(--soft); border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; padding-right: 10px; }
.prefix input { border: 0; border-radius: 0; min-width: 0; }
.prefix input:focus-visible { outline: 0; }
.color { display: flex; gap: 8px; }
.color input[type=color] { flex: none; width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.lock { font-size: 13.5px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background:
  radial-gradient(60% 50% at 85% 0%, rgba(123, 92, 255, 0.14), transparent 70%),
  radial-gradient(50% 50% at 10% 0%, rgba(47, 91, 255, 0.12), transparent 70%), var(--soft); }
.auth-box { width: min(460px, 100%); }
.auth-box.wide { width: min(560px, 100%); }
.auth .logo { margin: 0 auto 20px; display: flex; width: fit-content; }
.auth .card { padding: 32px; box-shadow: var(--shadow-lg); border-radius: var(--r-lg); }
.auth h1 { margin-bottom: 6px; }
.auth form { margin-top: 24px; }
.auth .alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.sent { text-align: center; }
.sent .ic { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sent p { margin-top: 8px; }
.avail { font-size: 13px; font-weight: 600; }
.avail.ok { color: var(--ok); }
.avail.bad { color: var(--bad); }
.preview-url { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.preview-url b { color: var(--ink-2); font-weight: 600; }

/* ---------- Dashboard shell ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo img { width: 28px; height: 28px; }
.logo b { color: var(--brand); font-weight: inherit; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 16px; height: 60px; }
.site-pick select { min-height: 38px; border-radius: 999px; font-weight: 600; font-size: 14px; max-width: 240px; padding: 6px 34px 6px 14px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.ui-lang { min-height: 34px; border-radius: 999px; font-size: 13.5px; color: var(--muted); padding: 4px 30px 4px 12px; width: auto; background-position: right 10px center; }
.auth-lang { text-align: center; margin: 18px 0 0; }
.who .email { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.mainnav { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; padding: 10px 14px 12px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
main { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 28px 0 96px; }
main:focus { outline: none; }
main h1:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; }
.page-head p { margin-top: 2px; }
.back { display: inline-flex; margin-bottom: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.loading { color: var(--muted); padding: 40px 0; }

/* ---------- Cards, banners ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.card + .card, .card + .cols, .cols + .card, .banner + .card { margin-top: 16px; }
.card > h2 { margin-bottom: 4px; }
.card > h2 + .muted, .card > h2 + p { margin-bottom: 16px; }
.card > h2 + .stack { margin-top: 12px; }
.stack > .card + .card, .stack > .banner + .card { margin-top: 0; }
#settings, .subnav + #settings { max-width: 860px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 20px 24px 0; }
.card.danger-zone { border-color: #f1c4ca; }
.banner { border-radius: 12px; padding: 12px 16px; background: var(--brand-soft); color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.banner.bad { background: var(--bad-soft); color: #7d1a26; }
.banner.warn { background: var(--warn-soft); color: #7a3d06; }
.banner.ok { background: var(--ok-soft); color: #0b5c40; }
.banner .x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cols > div { display: grid; gap: 16px; min-width: 0; }
.cols .card + .card { margin-top: 0; }
.quote { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Home: numbers, setup guide ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: grid; gap: 2px; }
a.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat b { font-size: 28px; letter-spacing: -0.03em; line-height: 1.2; }
.stat b.warn { color: var(--warn); }
.guide > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after, .builders summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform 0.2s; }
.guide[open] > summary::after, .builders details[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.steps > li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.steps > li.done::before { content: ""; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.steps > li > div { display: grid; gap: 12px; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.opts .check { grid-template-columns: 20px auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.seg label, .seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: 600 13.5px var(--font); color: var(--ink-2); padding: 8px 12px; border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked), .seg a[aria-current="page"], .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 1px; }
.seg label:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.code { position: relative; }
.code pre { margin: 0; padding: 14px 16px; padding-right: 88px; background: #0f1426; color: #e3e8f7; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; min-height: 50px; }
.code .btn { position: absolute; top: 7px; right: 7px; min-height: 34px; padding: 0 12px; font-size: 13px; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.code .btn:hover { background: rgba(255, 255, 255, 0.2); }
.code.light pre { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); font-family: var(--font); font-size: 14.5px; }
.code.light .btn { background: #fff; color: var(--ink); border-color: var(--line-2); }
.mock { position: relative; height: 170px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(#fff 0 36px, #fbfbfd 36px); }
.mock i { position: absolute; left: 16px; height: 8px; border-radius: 4px; background: var(--line); }
.mock .foot { position: absolute; inset: auto 0 0; height: 44px; background: #f1f2f6; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px; font-size: 12px; color: var(--muted); }
.mock .wf { font: 600 12.5px/1.2 var(--font); color: #fff; background: #1a1a1a; border-radius: 999px; padding: 9px 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); white-space: nowrap; }
.mock .wf.float { position: absolute; bottom: 56px; }
.mock .wf.float.left { left: 12px; }
.mock .wf.float.right { right: 12px; }
.mock .wf.inline { position: absolute; left: 16px; top: 96px; border-radius: 8px; }
.mock .wf.link { background: none; color: var(--ink-2); padding: 0; box-shadow: none; text-decoration: underline; font-weight: 500; font-size: 12px; }
.builders { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; }
.builders > .label { grid-column: 1 / -1; }
.builders details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.builders summary { list-style: none; cursor: pointer; padding: 11px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.builders summary::-webkit-details-marker { display: none; }
.builders ol { margin: 0; padding: 0 16px 14px 34px; color: var(--ink-2); display: grid; gap: 4px; }
.builders .note { padding: 0 16px 14px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.list td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #fafbff; }
.list tbody tr:last-child td { border-bottom: 0; }
.list td a { font-weight: 600; text-decoration: none; font-family: var(--mono); font-size: 13.5px; }
.list td a:hover { text-decoration: underline; }
.empty { padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; padding: 16px 24px 20px; }
.list-top { padding: 20px 24px 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }

/* ---------- Detail ---------- */
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.activity li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.activity time { color: var(--muted); }
.notes { display: grid; gap: 8px; }
.notes div { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; overflow-wrap: anywhere; }
.notes small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
dl.kv { margin: 0; display: grid; gap: 2px; }
dl.kv dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0 0 8px; overflow-wrap: anywhere; }
.frame { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #f3f3f3; }

/* ---------- Settings ---------- */
.subnav { margin-bottom: 20px; }
.savebar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; width: min(620px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14.5px; }
.savebar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.preview-wrap { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
.preview-wrap iframe { display: block; margin: 0 auto; max-width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- Billing ---------- */
.billing-switch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--ink-2); margin: 28px 0 20px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--line-2); border: 0; cursor: pointer; transition: background 0.2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform 0.2s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.save { font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 4px 10px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; position: relative; }
.plan.current { border: 1.5px solid var(--brand); box-shadow: 0 24px 48px -30px rgba(47, 91, 255, 0.55); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 19px; }
.plan .for { color: var(--muted); font-size: 14px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price b { font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 14.5px; }
.bill { font-size: 13px; color: var(--muted); min-height: 20px; margin-bottom: 16px; }
.plan .btn { width: 100%; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f8a5f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks li.lead { grid-template-columns: 1fr; font-weight: 700; color: var(--ink); }
.ticks li.lead::before { display: none; }
.fine { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }

/* ---------- Dialogs, toasts ---------- */
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--r-lg); padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.lg { width: min(760px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(11, 16, 32, 0.45); }
dialog form { display: grid; gap: 16px; padding: 24px; }
/* The actions stay in view while a long dialog (email preview) scrolls. */
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 1; background: #fff; margin: 0 -24px -24px; padding: 12px 24px 24px; border-top: 1px solid var(--line); }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: up 0.2s ease both; }
.toast.bad { background: var(--bad); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .who .email, .who .ui-lang { display: none; }
  .bar { gap: 10px; }
  .bar .logo span { display: none; }
  .site-pick { min-width: 0; flex: 1; }
  .site-pick select { max-width: 100%; }
  .grid2, .filters { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 22px; }
  .card { padding: 18px; }
  .card.flush > .card-head, .list-top { padding: 16px 18px 0; }
  .filters { padding: 12px 18px 16px; }
  .pager { padding: 12px 18px; }
  /* The step number sits beside the title; the body uses the full width. */
  .steps > li { display: block; position: relative; padding: 14px; }
  .steps > li::before { position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .steps > li > div > h3 { padding-left: 38px; min-height: 28px; display: flex; align-items: center; }
  .activity li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  h1 { font-size: 22px; }
  .auth .card { padding: 24px 20px; }
  /* The table becomes a list of cards: reference and status on top, the rest below. */
  table.list, .list tbody, .list tr, .list td { display: block; }
  .list thead { display: none; }
  .list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .list tbody tr:last-child { border-bottom: 0; }
  .list td { padding: 0; border: 0; font-size: 14px; }
  .list .c-ref { order: 1; }
  .list .c-status { order: 2; text-align: right; }
  .list .c-name { order: 3; }
  .list .c-when { order: 4; text-align: right; color: var(--muted); font-size: 13px; }
  .list .c-order, .list .c-ack { display: none; }
  .code pre { padding-right: 16px; padding-bottom: 50px; }
  .code .btn { top: auto; bottom: 7px; }
  dialog form { padding: 20px; }
  dialog .actions { margin: 0 -20px -20px; padding: 12px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
