/* Vex ID console pages.
   Built from api.arioron.com's own page patterns (the hm-* bands on its home page):
   eyebrow + title with prose beside it, hairline rows, numbered link rows, bordered
   panels and ar-spec lists. Tokens come from vendor/vexapi/style.css. */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vx { max-width: 1180px; margin: 0 auto; }
.vx--narrow { max-width: 760px; }
:where(.vx) a { color: inherit; }
.vx :is(h1, h2, h3, h4) { font-weight: 600; }
.vx h1 .ar-serif, .vx h2.ar-serif, .vx .ar-serif { font-weight: 400; }
.vx code:not(pre code) { font-size: .85em; padding: .08em .36em; border-radius: var(--r-xs); background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.vx-mono { font-family: var(--font-mono); font-size: .8125rem; }
.vx-muted { color: var(--text-muted); }
.vx-faint { color: var(--text-faint); }

/* ── page head: eyebrow + title left, prose and actions right ── */
.vx-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: end; padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.vx-head--solo { grid-template-columns: minmax(0, 1fr); }
.vx-head h1 { margin: .9rem 0 0; font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: var(--track-title); font-weight: 600; }
.vx-head h1 .ar-serif { font-weight: 400; }
.vx-head-side p { margin: 0 0 1.25rem; color: var(--text-muted); line-height: var(--leading-body); max-width: 52ch; }
.vx-head-side p:last-child { margin-bottom: 0; }
.vx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.vx-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 500; color: var(--text-faint); text-decoration: none; }
.vx-back:hover { color: var(--text); }
.vx-eyebrow-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── sections ── */
.vx-sec { margin-top: clamp(2.5rem, 5vw, 4rem); }
.vx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.vx-sec-head h2 { margin: .5rem 0 0; font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
.vx-sec-head p { margin: .45rem 0 0; color: var(--text-muted); font-size: var(--step-small); max-width: 60ch; }
.vx-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 500; color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color var(--dur-fast) var(--ease); white-space: nowrap; }
.vx-link:hover { border-color: var(--text); }

/* ── figures strip (hm-trust) ── */
.vx-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.vx-stat { padding: 1.6rem 1.5rem 1.5rem 0; min-width: 0; text-decoration: none; color: inherit; display: block; transition: background var(--dur-fast) var(--ease); }
.vx-stat + .vx-stat { padding-left: 1.5rem; border-left: 1px solid var(--line-soft); }
a.vx-stat:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line); }
.vx-stat b { display: block; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: .85rem 0 .55rem; font-variant-numeric: tabular-nums; }
.vx-stat b.is-word { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.vx-stat p { margin: 0; font-size: var(--step-small); color: var(--text-muted); line-height: 1.5; }

/* ── numbered link rows (hm-row) ── */
.vx-rows { border-top: 1px solid var(--line); }
.vx-row { display: grid; grid-template-columns: 3.25rem minmax(0, 15rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
    padding: 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding var(--dur-mid) var(--ease-out); }
a.vx-row:hover { padding-left: .5rem; }
.vx-row-n { font-family: var(--font-mono); font-size: var(--step-meta); color: var(--text-faint); }
.vx-row h3 { font-size: 1.125rem; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.vx-row p { margin: 0; font-size: var(--step-small); line-height: 1.55; color: var(--text-muted); }
.vx-row-end { display: flex; align-items: center; gap: .75rem; justify-self: end; font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint); }
.vx-arrow { width: 2rem; height: 2rem; border-radius: var(--r-full); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-muted);
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); flex-shrink: 0; }
a:hover > .vx-row-end .vx-arrow, a:hover > .vx-arrow { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── item lists: sessions, activity, apps ── */
.vx-list { border-top: 1px solid var(--line); }
.vx-item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .9rem 1.25rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.vx-item--top { align-items: start; }
.vx-ico { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--bg-sunken);
    display: grid; place-items: center; color: var(--text-muted); font-size: 1.05rem; overflow: hidden; flex-shrink: 0; }
.vx-ico img { width: 100%; height: 100%; object-fit: cover; }
.vx-ico.is-success { color: var(--success); background: var(--success-soft); border-color: transparent; }
.vx-ico.is-danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.vx-ico.is-warning { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.vx-item h3 { font-size: .9375rem; font-weight: 600; margin: 0; letter-spacing: -.005em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vx-item p { margin: .3rem 0 0; font-size: var(--step-small); color: var(--text-muted); line-height: 1.5; }
.vx-meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .35rem; font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint); }
.vx-item-end { display: flex; align-items: center; gap: .6rem; justify-self: end; text-align: right; }
.vx-when { font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint); white-space: nowrap; line-height: 1.6; }
.vx-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.vx-chip { font-family: var(--font-mono); font-size: .6875rem; padding: .16rem .5rem; border-radius: var(--r-xs); background: var(--bg-sunken);
    border: 1px solid var(--line-soft); color: var(--text-muted); white-space: nowrap; }

/* ── panels (hm-diff) ── */
.vx-panel { border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; min-width: 0; }
.vx-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.vx-panel-head strong { font-weight: 600; font-size: .9375rem; }
.vx-panel-body { padding: 1.25rem; }
.vx-panel-body > .ar-spec:first-child { border-top: 0; }
.vx-panel-body > .ar-spec dt:last-of-type, .vx-panel-body > .ar-spec dd:last-of-type { border-bottom: 0; }
.vx-panel-foot { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .85rem 1.25rem;
    border-top: 1px solid var(--line-soft); background: var(--bg-sunken); }
.vx-panel-foot .vx-faint { margin-right: auto; font-size: .8125rem; }
.vx-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }

/* ── settings split: number + title + prose left, controls right ── */
.vx-split { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.vx-split > div:first-child h2 { margin: .55rem 0 .55rem; font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.2; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.vx-split > div:first-child p { margin: 0; font-size: var(--step-small); color: var(--text-muted); line-height: 1.6; }
.vx-split-body { min-width: 0; max-width: 40rem; }

/* ── forms ── */
.vx-field { display: grid; gap: .45rem; margin-bottom: 1.15rem; min-width: 0; }
.vx-field > label, .vx-label { font-size: .8125rem; font-weight: 500; color: var(--text-faint); }
/* Text fields (api.arioron.com sizes them per element; this is its auth-page field, console-sized) */
.vx :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]):not([type=hidden]), select, textarea),
.vx-modal :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]):not([type=hidden]), select, textarea) {
    width: 100%; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-raised);
    color: var(--text); font-size: .9375rem; line-height: 1.4; box-shadow: var(--shadow-xs); appearance: none; -webkit-appearance: none; }
.vx select { padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; }
.vx :is(input, select, textarea):disabled, .vx input[readonly] { background-color: var(--bg-sunken); color: var(--text-muted); }
.vx input[type=color] { width: 2.75rem; height: 2.4rem; padding: .2rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-raised); cursor: pointer; }
.vx-field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.55; }
.vx-hint { margin: 0; font-size: .8125rem; color: var(--text-faint); line-height: 1.5; }
.vx-err { margin: 0; font-size: .8125rem; color: var(--danger); }
.vx-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.vx-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--text); cursor: pointer; line-height: 1.45; }
.vx-check input { margin-top: .2rem; flex-shrink: 0; }
.vx-check small { display: block; color: var(--text-faint); font-size: .8125rem; }
.vx-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.vx-otp { font-family: var(--font-mono) !important; letter-spacing: .45em; text-align: center; font-size: 1.35rem !important; padding: .8rem 1rem !important; }
.vx-copy { display: flex; gap: .5rem; align-items: stretch; }
.vx-copy input, .vx-copy code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .8125rem; }
.vx-copy code { display: flex; align-items: center; padding: .55rem .8rem; border-radius: var(--r-sm); background: var(--bg-sunken); border: 1px solid var(--line-soft);
    overflow-x: auto; white-space: nowrap; }

/* ── buttons ── */
.vx-btn-danger { color: var(--danger) !important; }
.vx-btn-danger:hover { background: var(--danger-soft) !important; border-color: transparent !important; }
.vx-btn-text { background: none; border: 0; padding: .3rem 0; font-size: .875rem; font-weight: 500; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.vx-btn-text:hover { color: var(--text); }
.vx-btn-text.is-danger { color: var(--danger); }
.vx-btn-text.is-danger:hover { opacity: .8; }
form.vx-inline { display: inline; margin: 0; }

/* ── tables ── */
.vx-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.vx-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.vx-table th { text-align: left; font-weight: 500; font-size: .8125rem; color: var(--text-faint); padding: .85rem 1.25rem .85rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vx-table td { padding: .95rem 1.25rem .95rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.vx-table tbody tr { transition: background var(--dur-fast) var(--ease); }
.vx-table tbody tr:hover { background: var(--bg-hover); }
.vx-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vx-table th:last-child, .vx-table td:last-child { padding-right: 0; }
.vx-who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.vx-who .vx-ico { width: 2.1rem; height: 2.1rem; border-radius: var(--r-full); font-size: .8125rem; font-weight: 600; color: var(--text); }
.vx-who b { display: block; font-weight: 600; font-size: .875rem; }
.vx-who div > span { display: block; font-size: .8125rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── notes and empty states ── */
.vx-note { display: flex; gap: .75rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: var(--r-md); background: var(--bg-sunken);
    border: 1px solid var(--line-soft); font-size: .875rem; color: var(--text-muted); line-height: 1.55; }
.vx-note > i { font-size: 1rem; line-height: 1.4; color: var(--text-faint); }
.vx-note strong { color: var(--text); font-weight: 600; }
.vx-note.is-warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.vx-note.is-warning > i, .vx-note.is-warning strong { color: var(--warning); }
.vx-note.is-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.vx-note.is-danger > i, .vx-note.is-danger strong { color: var(--danger); }
.vx-empty { padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.vx-empty svg { width: 7.5rem; height: auto; color: var(--text-faint); margin-bottom: 1.25rem; }
.vx-empty h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.vx-empty p { margin: 0 auto; max-width: 42ch; color: var(--text-muted); font-size: var(--step-small); line-height: 1.6; }
.vx-empty .vx-actions { justify-content: center; margin-top: 1.25rem; }

/* ── feature card (hm-feature) ── */
.vx-feature { border-radius: var(--r-xl); border: 1px solid var(--line-soft); background: var(--bg-raised); overflow: hidden;
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.vx-feature-art { border-right: 1px solid var(--line-soft); min-height: 19rem; display: grid; place-items: center; background: var(--bg-sunken); position: relative; overflow: hidden; }
.vx-feature-art .ar-mesh { position: absolute; inset: 0; }
.vx-feature-art svg { position: relative; width: 74%; max-width: 20rem; height: auto; color: var(--text-faint); }
.vx-feature-body { padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.vx-feature-body .ar-serif { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin: 1rem 0 1rem; }
.vx-feature-body > p { color: var(--text-muted); line-height: var(--leading-body); margin: 0 0 1.5rem; }
.vx-feature-body .ar-spec { margin-bottom: 1.5rem; }
.vx-feature-body .ar-spec dd { text-align: right; }
.vx-ok { color: var(--success); } .vx-bad { color: var(--danger); } .vx-warn { color: var(--warning); }

/* ── profile identity block ── */
.vx-avatar { width: 4.75rem; height: 4.75rem; border-radius: var(--r-full); display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--text) 82%, transparent), var(--text)); color: var(--bg); font-size: 1.75rem; font-weight: 600; }
.vx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vx-identity { display: flex; align-items: center; gap: 1.25rem; }
.vx-identity h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.vx-identity p { margin: .2rem 0 0; color: var(--text-faint); font-size: .875rem; }

/* ── pager ── */
.vx-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font-size: .8125rem; color: var(--text-faint); }
.vx-pager .vx-actions { gap: .4rem; }

/* ── tabs (anchor nav inside a page) ── */
.vx-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vx-tabs a, .vx-tabs button { padding: .9rem 0; font-size: .875rem; font-weight: 500; color: var(--text-faint); text-decoration: none; border-bottom: 1.5px solid transparent;
    margin-bottom: -1px; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.vx-tabs a:hover, .vx-tabs button:hover { color: var(--text); }
.vx-tabs .is-active { color: var(--text); border-bottom-color: var(--text); }

/* ── modal ── */
.vx-modal { position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(10, 10, 14, .36); backdrop-filter: blur(4px); }
.vx-modal.hidden { display: none !important; }
.vx-modal-box { width: min(32rem, 100%); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: var(--r-xl); background: var(--bg-raised);
    border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); padding: 1.6rem; }
.vx-modal-box h2 { margin: 0 0 .5rem; font-size: 1.25rem; letter-spacing: -.015em; }
.vx-modal-box > p { margin: 0 0 1.25rem; color: var(--text-muted); font-size: var(--step-small); line-height: 1.6; }

/* ── bars (usage, analytics) ── */
.vx-bar { height: 6px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.vx-bar i { display: block; height: 100%; background: var(--text); border-radius: 99px; }
.vx-chart { display: flex; align-items: flex-end; gap: 4px; height: 11rem; padding-top: 1rem; }
.vx-chart > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .45rem; height: 100%; justify-content: flex-end; }
.vx-chart > div > i { display: block; width: 100%; max-width: 2.25rem; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--text) 82%, transparent); min-height: 2px; }
.vx-chart > div:hover > i { background: var(--text); }
.vx-chart > div > span { font-family: var(--font-mono); font-size: .625rem; color: var(--text-faint); white-space: nowrap; }

@media (max-width: 1100px) {
    .vx-feature { grid-template-columns: minmax(0, 1fr); }
    .vx-feature-art { border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 13rem; }
}
@media (max-width: 900px) {
    .vx-head, .vx-split { grid-template-columns: minmax(0, 1fr); }
    .vx-head { align-items: start; }
    .vx-split { gap: 1.25rem; }
    .vx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-stat:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
    .vx-stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
    .vx-row { grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .3rem 1rem; }
    .vx-row p { grid-column: 2; grid-row: 2; }
    .vx-row-end { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
    .vx-grid2 { grid-template-columns: minmax(0, 1fr); }
    .vx-item { grid-template-columns: 2.5rem minmax(0, 1fr); }
    .vx-item-end { grid-column: 2; justify-self: start; text-align: left; }
    .vx-row-end .vx-mono-hide { display: none; }
}
@media print {
    .sh-side, .sh-top, .vx-actions, .vx-form-actions { display: none !important; }
    .sh-main { margin: 0; border: 0; box-shadow: none; }
}

/* ── code window (hm-code) ── */
.vx-code-window { border-radius: var(--r-lg); overflow: hidden; background: var(--code-bg); border: 1px solid rgba(241, 241, 244, .09); box-shadow: var(--shadow-md); }
.vx-code-bar { display: flex; align-items: center; gap: .25rem; padding: .55rem .7rem; border-bottom: 1px solid rgba(241, 241, 244, .09); }
.vx-code-bar button { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; padding: .35rem .75rem; border-radius: var(--r-full);
    border: 0; background: none; color: rgba(241, 241, 244, .45); cursor: pointer; }
.vx-code-bar button:hover { color: #F1F1F4; }
.vx-code-bar button[aria-selected="true"] { background: rgba(241, 241, 244, .09); color: #F1F1F4; }
.vx-code-bar .vx-code-copy { margin-left: auto; }
.vx-code-window pre { margin: 0; padding: 1.15rem 1.35rem 1.35rem; background: none; border-radius: 0; font-size: .8rem; line-height: 1.75; color: #EEF0F2; overflow-x: auto; }
.vx-code-window pre[hidden] { display: none; }
.vx-endpoints dd { overflow-wrap: anywhere; }

/* ── docs: sticky contents + long-form body ── */
.vx-doc { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2rem; }
.vx-doc-nav { position: sticky; top: 1.5rem; align-self: start; display: grid; gap: .1rem; }
.vx-doc-nav .ar-eyebrow { margin-bottom: .6rem; }
.vx-doc-nav a { font-size: .875rem; color: var(--text-muted); text-decoration: none; padding: .32rem 0 .32rem .85rem; border-left: 1px solid var(--line); }
.vx-doc-nav a:hover { color: var(--text); }
.vx-doc-nav a.is-active { color: var(--text); border-left-color: var(--text); font-weight: 500; }
.vx-doc-body { min-width: 0; max-width: 50rem; }
.vx-doc-sec { padding: 0 0 clamp(2.25rem, 4vw, 3.25rem); margin-bottom: clamp(2.25rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.vx-doc-sec h2 { margin: .5rem 0 1rem; font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -.022em; }
.vx-doc-sec h3 { margin: 2rem 0 .75rem; font-size: 1.05rem; letter-spacing: -.01em; }
.vx-doc-sec p { color: var(--text-muted); line-height: var(--leading-body); margin: 0 0 1rem; }
.vx-doc-sec pre { margin: 0 0 1rem; font-size: .8rem; line-height: 1.7; border: 1px solid rgba(241, 241, 244, .06); }
.vx-doc-sec .vx-table-wrap { margin-bottom: 1rem; }
.vx-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.vx-steps li { counter-increment: s; position: relative; padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--line); color: var(--text-muted); line-height: 1.6; }
.vx-steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 1.15rem; font-family: var(--font-mono); font-size: var(--step-meta); color: var(--text-faint); }
.vx-steps b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
    .vx-doc { grid-template-columns: minmax(0, 1fr); }
    .vx-doc-nav { position: static; grid-auto-flow: column; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line); }
    .vx-doc-nav .ar-eyebrow { display: none; }
    .vx-doc-nav a { border-left: 0; border-bottom: 1.5px solid transparent; padding: .7rem .9rem; white-space: nowrap; }
    .vx-doc-nav a.is-active { border-bottom-color: var(--text); }
}
.vx-doc-sec .vx-code-window pre { margin: 0; border: 0; }
.vx-chart > div > .vx-chart-v { font-size: .6875rem; color: var(--text-muted); }
.vx-meter { display: grid; gap: .6rem; }
.vx-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; font-weight: 500; }
.vx-meter-top b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── docs code blocks + Prism (prism-tomorrow tokens, api.arioron.com's choice) ── */
.vx-code-block { margin: 0 0 1rem; box-shadow: none; }
.vx-code-label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; color: rgba(241, 241, 244, .5); padding: .35rem .45rem; }
.vx-code-window pre[class*="language-"], .vx-doc-sec .vx-code-window pre[class*="language-"] { margin: 0; padding: 1.1rem 1.3rem 1.25rem; background: none; border: 0; border-radius: 0;
    font-size: .8rem; line-height: 1.75; text-shadow: none; overflow-x: auto; tab-size: 2; }
.vx-code-window code[class*="language-"] { font-family: var(--font-mono); font-size: inherit; text-shadow: none; color: #EEF0F2; background: none; white-space: pre; }
.vx-code-window .token.comment { color: rgba(241, 241, 244, .38); font-style: italic; }
.vx-step-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .5rem; border-radius: var(--r-full); border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; color: var(--text-muted); vertical-align: 2px; }
.vx-endpoint { grid-template-columns: 6.5rem minmax(0, 1fr); }
.vx-endpoint h3 { font-weight: 500 !important; font-size: .875rem !important; margin: 0 !important; overflow-wrap: anywhere; }
.vx-methods { display: flex; gap: .3rem; flex-wrap: wrap; }
.vx-method { font-family: var(--font-mono); font-size: .625rem; font-weight: 600; letter-spacing: .04em; padding: .2rem .45rem; border-radius: var(--r-xs); }
.vx-method--get { color: var(--info); background: var(--info-soft); }
.vx-method--post { color: var(--success); background: var(--success-soft); }
.vx-doc-sec .vx-table-wrap { border-top: 1px solid var(--line); }
.vx-doc-nav { max-height: calc(100dvh - 8rem); overflow-y: auto; }
@media (max-width: 900px) { .vx-doc-nav { max-height: none; position: sticky; top: 0; z-index: 3; background: var(--bg); } }
@media (max-width: 640px) { .vx-doc-sec .vx-table { min-width: 34rem; } }
.vx-doc-sec .ar-spec dd { overflow-wrap: anywhere; min-width: 0; }

/* ── account switcher (sidebar foot) ── */
.sh-acct { position: relative; }
.sh-acct-btn { width: 100%; text-align: left; cursor: pointer; transition: border-color var(--dur-fast) var(--ease); }
.sh-acct-btn:hover { border-color: var(--line); }
.sh-acct-chev { color: var(--text-faint); font-size: .85rem; margin-left: auto; }
.sh-acct-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + .4rem); z-index: 50; padding: .35rem; border-radius: var(--r-md);
    background: var(--bg-raised); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); }
.sh-acct-menu form { margin: 0; }
.sh-acct-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: .3rem 0; }
.sh-acct-item { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: var(--r-sm); font-size: .8125rem;
    color: var(--text-muted); text-decoration: none; text-align: left; background: none; cursor: pointer; }
.sh-acct-item:hover { background: var(--bg-hover); color: var(--text); }
.sh-acct-item > i { width: 1rem; text-align: center; opacity: .75; }
.sh-acct-who { min-width: 0; display: grid; }
.sh-acct-who b { font-weight: 500; color: var(--text); }
.sh-acct-who span { font-size: .75rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── docs layout: api.arioron.com /docs (dx-*), copied rule for rule ── */
.dx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; min-height: var(--sh-content-h); }
@media (max-width: 1279px) { .dx-layout { grid-template-columns: minmax(0, 1fr); } .dx-toc { display: none; } }
.dx-toc { position: sticky; top: 0; align-self: start; max-height: var(--sh-content-h); overflow-y: auto; padding: 1.25rem 1rem 2rem; border-left: 1px solid var(--line-soft); }
.dx-nav-label { font-size: .75rem; font-weight: 500; color: var(--text-tertiary); margin: 0 0 .35rem .5rem; }
#dx-toc-links a { display: block; padding: .32rem .6rem; font-size: .8125rem; color: var(--text-secondary); border-radius: var(--r-sm); text-decoration: none; }
#dx-toc-links a:hover { color: var(--text-primary); background: var(--bg-subtle); }
#dx-toc-links a.is-active { color: var(--text-primary); font-weight: 600; }
.dx-content { min-width: 0; max-width: 52rem; width: 100%; margin: 0 auto; padding: 2.5rem 2.5rem 4rem; }
@media (max-width: 640px) { .dx-content { padding: 1.25rem 1rem 3rem; } }
.dx-section { scroll-margin-top: 1.5rem; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line-soft); }
.dx-section h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .75rem; }
.dx-section h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin: 0 0 .9rem; }
.dx-section h3 { font-size: 1.0625rem; font-weight: 700; margin: 2rem 0 .6rem; scroll-margin-top: 1.5rem; }
.dx-section p, .dx-list { font-size: .9375rem; line-height: 1.75; color: var(--text-secondary); margin: 0 0 1rem; }
.dx-section a:not(.dx-card):not(.dx-nav-link):not(.ar-btn) { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-strong); }
.dx-section :not(pre) > code, .dx-table code { font-size: .8125em; padding: .1rem .35rem; border-radius: 5px; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-primary); }
.dx-list { padding-left: 1.2rem; list-style: disc; }
.dx-list li { margin-bottom: .35rem; }
ol.dx-list { list-style: decimal; }
.dx-eyebrow { font-size: .8125rem !important; font-weight: 500; color: var(--text-tertiary) !important; margin-bottom: .5rem !important; }
.dx-lead { font-size: 1.0625rem !important; color: var(--text-secondary); max-width: 42rem; }
.dx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .75rem; margin: 1.75rem 0 1rem; }
.dx-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    background: var(--bg-surface); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dx-card:hover { border-color: var(--line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dx-card i { font-size: 1rem; color: var(--text-primary); }
.dx-card strong { font-size: .875rem; color: var(--text-primary); }
.dx-card span { font-size: .8125rem; color: var(--text-tertiary); line-height: 1.5; }
.dx-inline-copy { display: flex; align-items: center; gap: .75rem; padding: .6rem .6rem .6rem .9rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-sunken); margin-bottom: 1rem; }
.dx-inline-copy code { flex: 1; font-size: .875rem; overflow-x: auto; white-space: nowrap; background: none !important; border: 0 !important; padding: 0 !important; }
.dx-inline-copy .dx-copy { color: var(--text-secondary); border-color: var(--border); background: var(--bg-raised); }
.dx-code { border-radius: var(--r-lg); overflow: hidden; background: var(--code-bg); margin: 1rem 0 1.25rem; border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-sm); }
.dx-code-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .55rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.dx-tabs { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.dx-tab { padding: .3rem .65rem; font-size: .75rem; font-weight: 500; color: #9a9a9e; border-radius: 7px; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.dx-tab:hover { color: #eef0f2; }
.dx-tab.is-active { color: #fafaff; background: #2a2b2e; }
.dx-copy { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; font-size: .75rem; color: #9a9a9e; background: none;
    border: 1px solid rgba(255,255,255,.08); border-radius: 7px; flex-shrink: 0; cursor: pointer; }
.dx-copy:hover { color: #fafaff; }
.dx-pre, pre.dx-pre[class*="language-"] { margin: 0; padding: 1rem 1.1rem; border-radius: 0; background: transparent; font-size: .8125rem; line-height: 1.65; overflow-x: auto; text-shadow: none; }
.dx-pre code, .dx-pre code[class*="language-"] { background: none !important; color: #eef0f2; font-family: 'JetBrains Mono', ui-monospace, monospace; text-shadow: none; font-size: inherit; white-space: pre; }
.dx-pre[hidden] { display: none; }
.dx-pre .token.comment { color: #7d7d84; font-style: italic; }
.dx-endpoint { display: inline-flex; align-items: center; gap: .6rem; margin: 0 .5rem .6rem 0; padding: .35rem .7rem .35rem .4rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); max-width: 100%; }
.dx-endpoint code { font-size: .8125rem; color: var(--text-primary); overflow-x: auto; white-space: nowrap; background: none !important; border: 0 !important; padding: 0 !important; }
.dx-method { font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; padding: .15rem .45rem; border-radius: 6px; background: var(--bg-muted); color: var(--text-primary); }
.dx-post { background: var(--text-primary); color: var(--bg-page); }
.dx-params { border-top: 1px solid var(--border); margin: .5rem 0 1.25rem; }
.dx-param { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.dx-param-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.dx-param-head code { font-size: .8125rem; font-weight: 700; color: var(--text-primary); background: none !important; border: 0 !important; padding: 0 !important; }
.dx-type { font-size: .75rem; color: var(--text-tertiary); }
.dx-req { font-size: .75rem; font-weight: 500; color: var(--warning); }
.dx-param p { font-size: .875rem !important; margin: 0 !important; line-height: 1.6 !important; }
.dx-table-wrap { overflow-x: auto; margin: .75rem 0 1.25rem; border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.dx-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.dx-table th { text-align: left; font-size: .8125rem; font-weight: 500; color: var(--text-secondary); padding: .6rem .9rem; background: var(--bg-subtle); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dx-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.55; }
.dx-table tr:last-child td { border-bottom: none; }
.dx-pill { display: inline-block; font-size: .75rem; font-weight: 500; padding: .1rem .5rem; margin: 0 .25rem .25rem 0; border-radius: 999px; color: var(--text-secondary); background: var(--bg-subtle); white-space: nowrap; }
.dx-pill-live { color: var(--success); background: var(--success-soft); }
.dx-callout { display: flex; gap: .7rem; padding: .9rem 1.05rem; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--bg-subtle);
    font-size: .875rem; line-height: 1.6; color: var(--text-secondary); margin: 1rem 0; }
.dx-callout > i { margin-top: .15rem; color: var(--text-primary); }
.dx-callout strong { color: var(--text-primary); }
.dx-warn > i { color: var(--warning); }
.dx-foot { display: flex; gap: 1.25rem; font-size: .8125rem; color: var(--text-tertiary); }
.dx-foot a { color: var(--text-secondary); }
.dx-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: var(--r-lg); margin: 1rem 0 1.25rem; }
.dx-demo-out { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; flex-basis: 100%; margin: 0; }
.dx-demo-out:empty { display: none; }
.sh-search kbd { pointer-events: none; }
.dx-pre code, .vx-code-window code { font-variant-ligatures: none; }
