/* MyWillKey — visual system.
   One calm surface, one accent, clear status colours. Logical properties
   throughout, so Hebrew (right to left) and English share every rule. */
:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --surface2: #F8FAFC; --ink: #0E1A2B; --ink2: #516079; --ink3: #7C899E;
  --line: #E2E7EF; --line2: #CFD6E2;
  --act: #0B6B60; --act-hover: #08574E; --act-soft: #E3F3F0; --on-act: #FFFFFF;
  --nav: #0E1A2B; --nav-ink: #C9D3E2; --nav-on: #FFFFFF; --nav-on-bg: rgba(255, 255, 255, .10);
  --ok: #17703F; --ok-bg: #E5F5EB; --wait: #8A5600; --wait-bg: #FFF3D6; --stop: #B3261E; --stop-bg: #FDECEA;
  --shadow: 0 1px 2px rgba(14, 26, 43, .05), 0 4px 16px rgba(14, 26, 43, .06);
  --shadow-lg: 0 12px 48px rgba(14, 26, 43, .22);
  --r: 14px; --r-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Noto Sans Hebrew", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B121C; --surface: #131C29; --surface2: #18222F; --ink: #EEF2F7; --ink2: #A9B5C6; --ink3: #7F8CA0;
    --line: #243042; --line2: #33415A;
    --act: #35B5A5; --act-hover: #4CC7B7; --act-soft: #123630; --on-act: #06201C;
    --nav: #0A1019; --nav-ink: #A9B5C6; --nav-on: #FFFFFF; --nav-on-bg: rgba(255, 255, 255, .08);
    --ok: #5FD08C; --ok-bg: #11301F; --wait: #F0BB55; --wait-bg: #33270C; --stop: #FF8A80; --stop-bg: #3A1614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 650; margin: 0 0 8px; }
h2.section { margin: 32px 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--act); }
.sub { color: var(--ink2); font-size: 15.5px; margin: 0 0 16px; max-width: 68ch; }
.muted { color: var(--ink3); font-size: 14px; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--act) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 60px;
  padding: 8px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .mark { width: 28px; height: 28px; color: var(--act); }
.proto { font-size: 12px; font-weight: 600; color: var(--wait); background: var(--wait-bg); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ctx { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 14px; min-width: 0; }
.ctx #ctx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx b { color: var(--ink); font-weight: 650; }
.top .ghost:first-of-type { margin-inline-start: auto; }
.ctx:not([hidden]) ~ .ghost:first-of-type { margin-inline-start: 0; }

/* ---------- controls ---------- */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin: 0 0 6px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 10px 12px; min-height: 46px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 4px color-mix(in srgb, var(--act) 18%, transparent); }
input[type=number] { max-width: 130px; }
input[type=file] { padding: 8px; background: var(--surface2); border-style: dashed; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--act); flex: none; }
textarea { min-height: 0; resize: vertical; }
button { font: inherit; cursor: pointer; }
.pri, .sec, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--r-sm); font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.pri { background: var(--act); color: var(--on-act); box-shadow: 0 1px 2px rgba(14, 26, 43, .15); }
.pri:hover { background: var(--act-hover); }
.pri:active, .sec:active { transform: translateY(1px); }
.pri:disabled { opacity: .45; cursor: not-allowed; }
.sec { background: var(--surface); color: var(--ink); border-color: var(--line2); }
.sec:hover { background: var(--surface2); border-color: var(--ink3); }
.ghost { min-height: 38px; padding: 6px 12px; background: transparent; color: var(--ink2); font-weight: 550; font-size: 14.5px; }
.ghost:hover { background: var(--surface2); color: var(--ink); }
.link { background: none; border: none; color: var(--act); font-weight: 600; padding: 8px 6px; min-height: 40px; border-radius: 8px; text-decoration: none; }
.link:hover { background: var(--act-soft); }
.wide { width: 100%; }
.form { display: grid; gap: 4px; }
.form > label { margin-top: 12px; }
.form > label:first-child { margin-top: 0; }
.form > .pri { margin-top: 18px; justify-self: start; }
.form > .sec { margin-top: 18px; }
.form > .pri.wide { justify-self: stretch; }
.form > .link { justify-self: center; margin-top: 4px; }
.rowform { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rowform .grow { flex: 1 1 260px; min-width: 0; }
.rowform > .pri { margin: 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 450; color: var(--ink); font-size: 15.5px; min-height: 44px; margin: 4px 0; cursor: pointer; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.inline .pri, .inline .sec { min-height: 40px; padding: 6px 16px; }
.inline > span { color: var(--ink2); font-size: 14.5px; }

/* ---------- first steps ---------- */
main { display: block; }
.auth { max-width: 520px; margin: 0 auto; padding: 40px 20px 72px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
.auth-card h1 { font-size: 28px; }
/* The first screen: what the service is on one side, the two doors on the other. */
.auth-split { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; padding-top: 56px; }
.auth-side { min-width: 0; padding-top: 44px; }
.auth-side h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; text-wrap: balance; margin: 18px 0 12px; }
.auth-side .sub { font-size: 17px; max-width: 46ch; }
.auth-mark { display: inline-flex; width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--act-soft); color: var(--act); }
.auth-mark svg, .door-icon svg { width: 100%; height: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 28px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; }
.seg button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font-weight: 600; font-size: 15.5px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--act); box-shadow: 0 1px 3px rgb(0 0 0 / .14), 0 0 0 1px var(--line); }
.door-icon { display: inline-flex; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--act-soft); color: var(--act); margin: 0 0 14px; }
.auth-card h2 + .sub { margin-bottom: 22px; }
.big { min-height: 54px; font-size: 17px; }
.swap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; }
#pane-new .form { margin-top: 4px; }
#pane-new .form .big { margin-top: 14px; }
@media (max-width: 880px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 28px; padding-top: 20px; }
  .auth-split .auth-card { order: -1; }
  .auth-side { padding-top: 0; }
  .auth-side h1 { margin-top: 14px; }
}
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; counter-reset: s; }
.stepper li { flex: 1; counter-increment: s; font-size: 13px; font-weight: 600; color: var(--ink3); padding-top: 10px; border-top: 3px solid var(--line); }
.stepper li::before { content: counter(s) ". "; }
.stepper li.on { color: var(--act); border-color: var(--act); }
.stepper li.done { color: var(--ink2); border-color: color-mix(in srgb, var(--act) 45%, var(--line)); }
.stepper li.done::before { content: "✓ "; }
.code { margin: 0 0 14px; padding: 16px; border: 1px dashed var(--line2); border-radius: var(--r-sm); background: var(--surface2); font: 650 19px/1.7 var(--mono); letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; user-select: all; }
.code.small { font-size: 13px; font-weight: 450; letter-spacing: 0; text-align: start; }
.otp { font: 650 24px/1.2 var(--mono); letter-spacing: .4em; text-align: center; }
.trust { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); font-size: 14.5px; min-width: 0; }
.trust li > span:last-child { min-width: 0; }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink3); font-size: 14px; margin: 24px 0 20px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card h2 { font-size: 19px; }
.trust.row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.ti, .ni, .si { display: inline-flex; flex: none; }
.ti svg { width: 20px; height: 20px; color: var(--act); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; background: var(--nav); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--nav-ink); text-decoration: none; font-size: 15px; font-weight: 550; }
.side a:hover { background: var(--nav-on-bg); color: var(--nav-on); }
.side a[aria-current=page] { background: var(--nav-on-bg); color: var(--nav-on); box-shadow: inset 3px 0 0 var(--act); }
[dir=rtl] .side a[aria-current=page] { box-shadow: inset -3px 0 0 #35B5A5; }
[dir=ltr] .side a[aria-current=page] { box-shadow: inset 3px 0 0 #35B5A5; }
.side svg { width: 20px; height: 20px; }
.side a:focus-visible { outline-color: #fff; }
.content { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 96px; max-width: 1040px; width: 100%; }
.page-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { margin-bottom: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin: 0 0 16px; }
.panel.slim { padding: 16px 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.say { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); font-size: 14.5px; }
.note.warn { background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait) 30%, transparent); color: var(--wait); }
.callout { background: var(--surface); border: 1px solid var(--act); border-radius: var(--r); box-shadow: 0 0 0 4px var(--act-soft); padding: 22px; margin: 0 0 20px; }
.callout.ok { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.callout.ok .okmark { color: var(--ok); }
#cn-list > li.idle { opacity: .7; }
#b-cn-clear { margin-top: 12px; }
.callout.danger { border-color: var(--stop); box-shadow: 0 0 0 4px var(--stop-bg); }
.callout h2 { margin-top: 0; }

/* overview */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .1s; }
.tile:hover { border-color: var(--act); transform: translateY(-1px); }
.tile .lbl { color: var(--ink2); font-size: 14px; font-weight: 550; }
.tile .num { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .hint { color: var(--ink3); font-size: 13.5px; }
.tile .hint.ok { color: var(--ok); } .tile .hint.bad { color: var(--stop); }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--act); transition: width .4s ease; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 8px; }
.steps-list li:first-child a { border-top: none; }
.steps-list a:hover { background: var(--surface2); }
.steps-list .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: transparent; }
.steps-list .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-list .txt { flex: 1; min-width: 0; display: grid; }
.steps-list .txt b { font-weight: 600; }
.steps-list .txt span { color: var(--ink2); font-size: 14px; }
.steps-list .done .txt b { color: var(--ink2); }
.steps-list .go { color: var(--ink3); font-size: 20px; }
[dir=rtl] .steps-list .go { transform: scaleX(-1); }

/* "add" disclosure: a button that opens its form in place */
.adders { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.adders .adder { margin: 0; }
.adder { margin: 0 0 16px; }
.adder > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; border-radius: var(--r-sm); background: var(--act); color: var(--on-act); font-weight: 600; cursor: pointer; user-select: none; box-shadow: 0 1px 2px rgba(14, 26, 43, .15); }
.adder > summary::-webkit-details-marker { display: none; }
.adder > summary:hover { background: var(--act-hover); }
.adder.alt > summary { background: var(--surface); color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
.adder.alt > summary:hover { background: var(--surface2); }
.adder .plus { font-size: 20px; line-height: 1; font-weight: 500; }
.adder[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.adder[open] { flex: 1 1 100%; }
.adder > .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-start-start-radius: 0; box-shadow: var(--shadow); padding: 22px; max-width: 560px; }

/* ---------- lists of cards ---------- */
.assets { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.assets > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 10px; }
.assets.compact { gap: 10px; }
.assets.compact > li { padding: 14px 18px; gap: 6px; }
.assets.flat > li { box-shadow: none; background: var(--surface2); }
.assets .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.assets .head strong { font-size: 17px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.assets .kind { color: var(--ink2); font-size: 14px; font-weight: 450; }
.assets .line { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface2); font-size: 15px; overflow-wrap: anywhere; }
.assets .line b { font-weight: 600; color: var(--ink2); margin-inline-end: 4px; }
.assets .line .chip { margin: 0; }
.assets .empty { color: var(--ink2); text-align: center; padding: 28px 16px; background: transparent; border: 1.5px dashed var(--line2); }
.assets > li:has(> .empty:only-child) { background: transparent; border: none; box-shadow: none; padding: 0; }
.assets .sub { margin: 0; font-size: 14.5px; }
.line.stop { color: var(--stop); background: var(--stop-bg); }
.line.warn { color: var(--wait); background: var(--wait-bg); }
.filerow { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.filerow .link { min-height: 34px; padding: 4px 10px; font-size: 14.5px; }
.upload { cursor: pointer; display: inline-flex; align-items: center; }
.upload:focus-within { outline: 3px solid color-mix(in srgb, var(--act) 55%, transparent); outline-offset: 2px; }
.lock { color: var(--wait); }
.chip { display: inline-flex; align-items: center; margin: 0; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.chip.wait { background: var(--wait-bg); color: var(--wait); }
.chip.bad { background: var(--stop-bg); color: var(--stop); }
.chip.off { background: var(--surface2); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.head > span { display: inline-flex; gap: 6px; flex-wrap: wrap; }

details.rule { border-top: 1px solid var(--line); padding-top: 10px; }
details.rule > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--act); font-weight: 600; font-size: 15px; min-height: 36px; padding: 4px 8px; border-radius: 8px; }
details.rule > summary::-webkit-details-marker { display: none; }
details.rule > summary::after { content: "⌄"; font-size: 18px; line-height: 1; transition: transform .15s; }
details.rule[open] > summary::after { transform: rotate(180deg); }
details.rule > summary:hover { background: var(--act-soft); }
details.rule form, .assets form.card { display: grid; gap: 4px; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); }
details.rule form > label { margin-top: 10px; }
details.rule form > label:first-child { margin-top: 0; }
details.rule form > .pri { margin-top: 14px; justify-self: start; }
details.rule .checks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px; margin: 10px 0 0; background: var(--surface); }
details.rule .checks legend { font-size: 14px; font-weight: 600; color: var(--ink2); padding: 0 6px; }

.searchbar { position: relative; margin: 4px 0 10px; }
.searchbar .si { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.searchbar .si svg { width: 18px; height: 18px; }
.searchbar input { padding-inline-start: 42px; border-radius: 999px; }
ul.plain { list-style: none; margin: 0 0 8px; padding: 0; }
ul.plain .sub { margin: 0; font-size: 14px; }
#dg-list code { display: block; white-space: pre-wrap; font: 15px/1.6 var(--mono); overflow-wrap: anywhere; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface2); border: 1px dashed var(--line2); }
#dg-list .line:has(code[hidden]) { display: none; }
#dg-list .line:has(code) { padding: 0; background: none; }
#cn-code { width: 100%; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; background: var(--surface2); margin-bottom: 12px; }

/* sync guide */
.guide { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 12px; }
.guide li { counter-increment: g; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.guide li::before { content: counter(g); width: 28px; height: 28px; border-radius: 50%; background: var(--act-soft); color: var(--act); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.guide .cmd { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.guide code { direction: ltr; unicode-bidi: isolate; font: 13.5px/1.5 var(--mono); background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.guide .copy { min-height: 34px; padding: 4px 12px; font-size: 13.5px; }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.dl { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.dl:hover { border-color: var(--act); background: var(--act-soft); }
.dl.top { flex: none; align-self: center; padding: 10px 14px; }
#cp-panel.first { border-color: var(--act); }
#cp-panel.first .dl { background: var(--act); border-color: var(--act); color: var(--on-act, #fff); }
.choice { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* activity */
.log { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: 14.5px; overflow: hidden; }
.log li { padding: 11px 18px; border-top: 1px solid var(--line); }
.log li:first-child { border-top: none; }
.log .denied { color: var(--stop); background: color-mix(in srgb, var(--stop-bg) 60%, transparent); }
.log time { color: var(--ink3); font-variant-numeric: tabular-nums; }

/* ---------- approval dialog ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8, 14, 24, .55); backdrop-filter: blur(3px); animation: fade .15s ease; }
.sheet { width: min(480px, 100%); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; text-align: center; animation: rise .2s ease; }
.sheet-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--act-soft); color: var(--act); margin-bottom: 12px; }
.sheet-ico svg { width: 26px; height: 26px; }
.sheet h2 { font-size: 15px; color: var(--ink2); font-weight: 600; }
.sheet .say { font-size: 18.5px; line-height: 1.5; font-weight: 600; margin: 4px 0 12px; text-wrap: balance; }
.sheet-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- notices ---------- */
.toast { position: fixed; z-index: 60; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0 auto; width: fit-content; max-width: min(620px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 12px; background: #0E1A2B; color: #fff; font-size: 15px; font-weight: 550; box-shadow: var(--shadow-lg); cursor: pointer; animation: rise .2s ease; border-inline-start: 4px solid #5FD08C; }
.toast.err { border-inline-start-color: #FF8A80; }
@media (prefers-color-scheme: dark) { .toast { background: #EEF2F7; color: #0E1A2B; border-inline-start-color: #17703F; } .toast.err { border-inline-start-color: #B3261E; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- narrow screens: navigation becomes a strip of tabs ---------- */
@media (max-width: 880px) {
  .app { display: block; }
  .side { position: sticky; top: 60px; z-index: 15; height: auto; flex-direction: row; gap: 4px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex: none; padding: 8px 12px; font-size: 14px; gap: 8px; }
  .side a[aria-current=page] { box-shadow: none !important; background: rgba(255, 255, 255, .16); }
  .content { padding: 20px 16px 96px; }
  h1 { font-size: 23px; }
  .proto { display: none; }
  .auth { padding: 20px 16px 64px; }
  .auth-card { padding: 22px; }
  .ctx #ctx { display: none; }
}

/* --- asset card: a title and a few plain rows; each row opens its own editor --- */
.assets > li.asset { padding: 18px 20px 6px; gap: 12px; }
.asset .rows { border-top: 1px solid var(--line); }
.asset .row { border-bottom: 1px solid var(--line); }
.asset .row:last-child { border-bottom: none; }
.asset .rowline { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 13px 0; list-style: none; }
.asset summary.rowline { cursor: pointer; border-radius: 8px; }
.asset summary.rowline::-webkit-details-marker { display: none; }
.asset .k { color: var(--ink2); font-size: 14px; font-weight: 600; }
.asset .v { font-size: 15px; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.asset .dim { color: var(--ink2); }
.asset .acts { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.asset .act { display: inline-flex; align-items: center; gap: 4px; color: var(--act); font-weight: 600; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.asset .act::after { content: "⌄"; font-size: 17px; line-height: 1; transition: transform .15s; }
.asset details[open] > summary .act::after { transform: rotate(180deg); }
.asset summary.rowline:hover .act, .asset details[open] > summary .act { background: var(--act-soft); }
.asset .who { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 13.5px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.asset .who.you { background: var(--act-soft); color: var(--act); box-shadow: none; font-weight: 600; }
.asset .v .inline, .asset .v > .sub { flex-basis: 100%; }
.asset .editor { padding: 2px 0 18px; padding-inline-start: 138px; display: grid; gap: 10px; }
.asset .editor > .sub { margin: 0; }
.asset form.acc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface2); }
.asset form.acc .nm { font-size: 15px; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.asset form.acc select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.asset form.acc .pri { min-height: 40px; padding: 6px 16px; }
.asset form.acc .pri:disabled { opacity: .4; cursor: default; }
.asset .ruleform { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-sm); background: var(--surface2); }
.asset .field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.asset .lbl { font-size: 14px; font-weight: 600; color: var(--ink2); padding: 0; }
.asset .ruleform .checks { gap: 2px; }
.asset .ruleform .checks .sub { margin: 4px 0 0; font-size: 13.5px; }
.asset .ruleform > .pri { justify-self: start; }
.asset .seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); justify-self: start; }
.asset .seg label { margin: 0; cursor: pointer; position: relative; }
.asset .seg input { position: absolute; inset-inline-start: 0; top: 0; width: 1px; min-width: 0; max-width: 1px; height: 1px; min-height: 0; clip-path: inset(50%); padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.asset .seg span { display: block; padding: 8px 18px; border-radius: 9px; font-size: 15px; font-weight: 550; color: var(--ink2); }
.asset .seg input:checked + span { background: var(--act); color: #fff; }
.asset .seg input:focus-visible + span { outline: 2px solid var(--act); outline-offset: 2px; }
.asset details.more > summary { cursor: pointer; color: var(--act); font-weight: 600; font-size: 14.5px; }
.asset details.more[open] { display: grid; gap: 14px; }
.asset details.more .sub { margin: 0; font-size: 13.5px; }
@media (max-width: 640px) {
  .asset .rowline { grid-template-columns: minmax(0, 1fr) auto; }
  .asset .k { grid-column: 1 / -1; }
  .asset .editor { padding-inline-start: 0; }
  .asset form.acc { grid-template-columns: minmax(0, 1fr) auto; }
  .asset form.acc .nm { grid-column: 1 / -1; }
}

/* what went wrong, right under the button that was pressed */
.btn-note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--stop-bg); color: var(--stop); font-size: 14.5px; }
button.pri:disabled { cursor: progress; }
.btn-hint { margin: 10px 0 0; font-size: 14px; }

/* sync: the connection code, and a device's own controls */
.callout .code { font: 700 30px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; margin: 6px 0 14px; color: var(--act); }
#cn-list form.rowform { margin: 4px 0 0; align-items: end; }
#cn-list form.rowform label { margin: 0; display: grid; gap: 6px; }
#cn-list .muted { margin: 0; font-size: 13.5px; }
#cn-list button:disabled { opacity: .45; cursor: default; }

/* sync: searching the accounts found on the computer and ticking what to sync */
#cn-list > li { display: grid; gap: 12px; }
.picker { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--surface2); min-width: 0; }
.picker .pk-head { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; }
.picker .pk-q { width: 100%; }
.picker .pk-tools { gap: 6px 18px; }
.picker .pk-onlyl { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-size: 14.5px; }
.picker input[type=checkbox] { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; accent-color: var(--act); }
.pk-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.pk-list li + li { border-top: 1px solid var(--line2); }
.pk-list label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; margin: 0; padding: 9px 12px; cursor: pointer; }
.pk-list label:hover { background: var(--surface2); }
.pk-list .nm { font-weight: 600; overflow-wrap: anywhere; }
.pk-list .sub { grid-column: 2; color: var(--ink2); font-size: 13.5px; overflow-wrap: anywhere; text-align: start; }
.pk-list .none { padding: 14px; color: var(--ink2); }
.picker .pk-count { color: var(--ink2); font-size: 14.5px; }
.picker.everything .pk-q, .picker.everything .pk-tools { opacity: .45; pointer-events: none; }
.picker .pk-alll { font-weight: 600; }
#cn-list .ver { flex-basis: 100%; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; color: var(--ink2); font-size: 14px; }
#cn-list .ver .pk-onlyl { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
#cn-list .ver input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--act); }
#cn-list .ver .bad { color: var(--stop); }
.ca-all { flex-basis: 100%; display: flex; gap: 10px; align-items: center; margin: 0; }
.ca-all input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; accent-color: var(--act); }

/* sync: where a computer stands, in three steps */
.sync-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sync-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.sync-steps .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--surface2); color: var(--ink2); box-shadow: inset 0 0 0 2px var(--line2); }
.sync-steps .done .dot { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.sync-steps .ask .dot { background: var(--wait-bg); color: var(--wait); box-shadow: none; }
.sync-steps .now .dot { background: transparent; box-shadow: none; border: 3px solid var(--line2); border-top-color: var(--act); animation: steps-turn 1s linear infinite; }
@keyframes steps-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-steps .now .dot { animation: none; border-color: var(--act); } }
.sync-steps strong { display: block; font-size: 16.5px; }
.sync-steps p { margin: 2px 0 0; color: var(--ink2); font-size: 15px; }
.sync-steps .wait strong { color: var(--ink2); font-weight: 600; }
.sync-steps .now p, .sync-steps .ask p { color: var(--ink); font-weight: 600; }
.sy-bar { display: block; width: 100%; height: 10px; margin-top: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); accent-color: var(--act); appearance: none; -webkit-appearance: none; }
.sy-bar::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.sy-bar::-webkit-progress-value { background: var(--act); border-radius: 999px; }
.sy-bar::-moz-progress-bar { background: var(--act); border-radius: 999px; }
.sy-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sy-totals div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface2); }
.sy-totals b { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sy-totals span { color: var(--ink2); font-size: 14px; }
.sy-all { display: grid; gap: 8px; justify-items: start; }
.sy-all .sy-bar { height: 12px; margin: 0; }
.sy-all p { margin: 0; font-weight: 600; }
.as-digital { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--act-soft); color: var(--ink); font-weight: 600; }
.as-digital a { white-space: nowrap; }
.sy-all a.pri { text-decoration: none; }

/* menu: the Sync icon turns while a computer is loading or saving accounts */
.ni.turning svg { animation: steps-turn 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ni.turning svg { animation: none; } .ni.turning { color: var(--act); } }

/* digital assets: paging */
.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }
.pager .nums { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.pager .nums button { min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.pager .nums button:hover { background: var(--surface2); border-color: var(--line2); }
.pager .nums button[aria-current=page] { background: var(--act); color: var(--on-act); }
.pager .gap { color: var(--ink3); padding: 0 2px; }
.pager .sec:disabled { opacity: .4; cursor: default; }

/* overview: the readiness tank */
.ready { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-bottom: 18px; }
.tank { flex: none; width: 132px; height: auto; --water: #D9534F; }
.tank.l1 { --water: #E0802F; } .tank.l2 { --water: #D9A21B; } .tank.l3 { --water: #8FB32E; } .tank.l4 { --water: #3FA95C; } .tank.l5 { --water: #17A05A; }
.tank .glass { fill: var(--surface2); }
.tank .rim { fill: none; stroke: var(--line2); stroke-width: 3; }
.tank.l5 .rim { stroke: var(--water); }
.tank .cap { fill: var(--line2); }
.tank.l5 .cap { fill: var(--water); }
.tank .marks { stroke: var(--ink3); stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.tank .level { transform: translateY(136px); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.tank.l1 .level { transform: translateY(115px); } .tank.l2 .level { transform: translateY(86px); } .tank.l3 .level { transform: translateY(58px); } .tank.l4 .level { transform: translateY(29px); } .tank.l5 .level { transform: translateY(4px); }
.tank .wave { fill: var(--water); transition: fill 1.2s; animation: tank-wave 4s linear infinite; }
@keyframes tank-wave { to { transform: translateX(120px); } }
@media (prefers-reduced-motion: reduce) { .tank .wave { animation: none; } .tank .level { transition: none; } }
.ready-text { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.ready-text p { margin: 0; }
.score-lbl { color: var(--ink2); font-weight: 600; }
.score b { font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.score span { color: var(--ink2); }
.cheer { font-size: 17px; font-weight: 600; margin-top: 6px !important; }
.nextup { color: var(--ink2); }
.nextup a { font-weight: 600; }

/* assets: the kinds of real estate, each with its drawing */
.kindset { border: 0; padding: 0; margin: 0; min-width: 0; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kind-tile { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14.5px; min-width: 0; }
.kind-tile input { position: absolute; inset: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.kind-tile .ki { display: inline-flex; flex: none; width: 26px; height: 26px; color: var(--ink2); }
.kind-tile:hover { border-color: var(--ink3); }
.kind-tile:has(input:checked) { border-color: var(--act); background: var(--act-soft); box-shadow: 0 0 0 1px var(--act); }
.kind-tile:has(input:checked) .ki { color: var(--act); }
.kind-tile:has(input:focus-visible) { outline: 2px solid var(--act); outline-offset: 2px; }
.assets .head strong .ai { display: inline-flex; vertical-align: -6px; width: 26px; height: 26px; margin-inline-end: 8px; color: var(--act); }

/* assets: details and documents */
.detform { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: end; }
.detform > .sub, .detform > button, .detform > .field:has(textarea) { grid-column: 1 / -1; }
.detform > button { justify-self: start; }
.detform .field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.detform input, .detform textarea { width: 100%; }
.detlist { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.detlist dt { color: var(--ink2); } .detlist dd { margin: 0; overflow-wrap: anywhere; }
.docgroup { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface2); display: grid; gap: 6px; }
.docgroup.has { box-shadow: inset 3px 0 0 var(--ok); }
[dir=rtl] .docgroup.has { box-shadow: inset -3px 0 0 var(--ok); }
.dghead { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.dghead .dgname { font-weight: 600; flex: 1; min-width: 140px; }
.docfiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docfiles li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.docfiles .dfn { flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.link.quiet { color: var(--ink2); } .link.warn { color: var(--stop); }
.exbox { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--act-soft); }
.exbox > span { flex: 1; min-width: 200px; font-weight: 600; }
.exbox .upload { cursor: pointer; }
.exask { flex-basis: 100%; display: grid; gap: 10px; }
.exask p { margin: 0; }
.detform .filled { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }

/* assets: purchases found in the mail */
.mailscan { display: grid; gap: 12px; }
.mailscan h2, .mailscan > .sub { margin: 0; }
.ms-status { display: grid; gap: 10px; justify-items: start; }
.ms-status p { margin: 0; } .ms-status .sy-bar { margin: 0; }
.ms-list { display: grid; gap: 12px; }
.ms-list .pk-list input[type=checkbox] { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; accent-color: var(--act); }
.ms-list .nm .ai { display: inline-flex; vertical-align: -5px; width: 22px; height: 22px; margin-inline-end: 6px; color: var(--act); }

/* Credit for the features that use the model. */
.credit { margin: 0 0 12px; }
.credit .sub { margin: 0; }
.credit.out { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 2px solid var(--act); background: var(--act-soft); }
.credit.out h2 { margin: 0; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pack { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.pack strong { font-size: 1.6rem; }
.pack span { color: var(--ink2); }

/* Links to the terms, privacy and refund documents. */
.legal-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 18px 16px 28px; }
.legal-foot a { color: var(--ink3); font-size: 14px; }

/* Deleting an asset, and reading attached documents. */
.asset .head-end { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; }
.rm-asset { min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
.rm-asset:hover { color: var(--stop); background: var(--stop-bg); }
.exbox > .exauto { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.exbox > .exauto > span { flex: 1; min-width: 0; font-weight: 500; }
.sheet .say.small { font-size: 16px; font-weight: 500; }
.detform .exauto input { width: 20px; }

/* The card's own summary: main details, then what the asset has so far. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 24px; margin: 4px 0 0; }
.facts > div { min-width: 0; }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--ink3); margin: 0 0 2px; }
.facts dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.facts-more { justify-self: start; align-self: start; min-height: 32px; padding: 4px 6px; font-size: 14px; }
.facts-none { margin: 0; color: var(--ink2); font-size: 14.5px; }
.have { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface2); }
.have-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.have-t { font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-inline-end: 4px; }
.hv { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 11px; border-radius: 999px; border: 1px dashed var(--line2); background: transparent; color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; text-align: start; }
.hv:hover { border-color: var(--ink3); color: var(--ink); }
.hv.ok { border: 1px solid transparent; background: var(--ok-bg); color: var(--ok); }
.hv svg { width: 13px; height: 13px; flex: none; }

/* Tabs by kind of asset: one kind on screen at a time. */
.atabs { position: sticky; top: 60px; z-index: 12; display: flex; gap: 6px; margin: 0 -4px 14px; padding: 8px 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.atabs::-webkit-scrollbar { display: none; }
.atabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.atabs button:hover { background: var(--surface2); color: var(--ink); }
.atabs button[aria-selected="true"] { background: var(--act-soft); color: var(--act); border-color: color-mix(in srgb, var(--act) 40%, transparent); }
.atabs .ti { display: inline-flex; width: 20px; height: 20px; }
.atabs .ti svg { width: 100%; height: 100%; }
.atabs .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface2); color: var(--ink2); font-size: 12.5px; font-weight: 700; text-align: center; }
.atabs button[aria-selected="true"] .n { background: var(--surface); color: var(--act); }
@media (max-width: 880px) { .atabs { top: 116px; } }
