/* voronin.app · Сигнал — component styles. Every value comes from tokens.css. */

body { margin: 0; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 24px; }

/* Mark: brand colours are fixed in both themes; the wordmark follows ink/accent. */
.vo-mark { display: block; flex: none; }
.vo-f-tile { fill: var(--brand-tile); }
.vo-s-tileline { stroke: var(--brand-tile-line); }
.vo-f-ice { fill: var(--brand-ice); }
.vo-f-frost { fill: var(--brand-frost); }
.vo-s-ink { stroke: var(--ink); }
.vo-f-ink { fill: var(--ink); }
.vo-f-accent { fill: var(--accent); }

/* Buttons */
.vo-btn { font: 500 15px/20px var(--font-sans); height: var(--control-height); padding: 0 var(--space-4); border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.vo-btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.vo-btn-primary:hover { filter: brightness(1.08); }
.vo-btn-secondary { background: transparent; color: var(--ink); border-color: var(--field-line); }
.vo-btn-secondary:hover { background: var(--surface-raised); }
.vo-btn-ghost { background: transparent; color: var(--ink-muted); border-color: transparent; }
.vo-btn-ghost:hover { color: var(--ink); background: var(--surface-raised); }
.vo-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.vo-full { width: 100%; }
.vo-btn:focus-visible, .vo-idp:focus-visible, .vo-login a:focus-visible, .vo-footer a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Provider buttons: Google's dark button, Telegram in the same neutral form. */
.vo-idp { height: var(--control-height); padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--idp-line);
  background: var(--idp-bg); color: var(--idp-ink); font: 500 14px/20px var(--font-provider); display: inline-flex; align-items: center;
  justify-content: center; gap: var(--space-3); cursor: pointer; }
.vo-idp:hover { box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vo-idp-logo { width: var(--idp-logo); height: var(--idp-logo); flex: none; }

/* Notice */
.vo-notice { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); align-items: flex-start; }
.vo-notice-icon { flex: none; margin-top: 2px; }
.vo-notice-body { display: grid; gap: var(--space-1); min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.vo-notice-title { margin: 0; font-weight: 600; }
.vo-notice-text p { margin: 0; }
.vo-notice-info { background: var(--accent-soft); } .vo-notice-info .vo-notice-icon { stroke: var(--accent-text); } .vo-notice-info .vo-notice-title { color: var(--ink); }
.vo-notice-error { background: var(--danger-soft); } .vo-notice-error .vo-notice-icon { stroke: var(--danger); } .vo-notice-error .vo-notice-title { color: var(--danger); }
.vo-notice-ok { background: var(--ok-soft); } .vo-notice-ok .vo-notice-icon { stroke: var(--ok); } .vo-notice-ok .vo-notice-title { color: var(--ok); }
.vo-notice-warn { background: var(--warn-soft); } .vo-notice-warn .vo-notice-icon { stroke: var(--warn); } .vo-notice-warn .vo-notice-title { color: var(--warn); }

/* Service badge: the project's own colour appears only as the dot. */
.vo-svc { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--ink); font: 400 13px/18px var(--font-mono); }
.vo-svc-host { overflow-wrap: anywhere; }
.vo-svc-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

/* Sign-in method row (account page) */
.vo-method { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); }
.vo-method + .vo-method { margin-top: var(--space-2); }
.vo-method-main { flex: 1; min-width: 0; }
.vo-method-name { margin: 0; font-weight: 600; font-size: 16px; line-height: 22px; }
.vo-method-detail { margin: 0; color: var(--ink-muted); font: 400 13px/18px var(--font-mono); overflow-wrap: anywhere; }
.vo-method-state { color: var(--ok); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.vo-method-state::before { content: "● "; }

/* Login card */
.vo-login { box-sizing: border-box; width: 100%; max-width: var(--login-width); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); display: grid; gap: var(--space-4); }
.vo-login-brand { margin-bottom: var(--space-2); }
.vo-login-for { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.vo-eyebrow { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.vo-login-title { margin: 0; font: 600 32px/38px var(--font-sans); letter-spacing: -.01em; }
.vo-login-lead { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.vo-login-idps { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.vo-login-fine { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.vo-login a, .vo-footer a { color: var(--link); text-underline-offset: 2px; }
@media (max-width: 420px) { .vo-login { padding: var(--space-5) var(--space-4); } }

/* Footer */
.vo-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.vo-footer-home { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.vo-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.vo-footer-links a { color: var(--ink-muted); text-decoration: none; }
.vo-footer-links a:hover { color: var(--ink); text-decoration: underline; }
.vo-footer-owner { margin-left: auto; }
.vo-footer-sig { border-top: 0; padding: var(--space-3) var(--space-4); justify-content: center; }
.vo-footer-sig-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted) !important; text-decoration: none; font: 400 13px/18px var(--font-mono); }
.vo-footer-sig-link:hover { color: var(--ink) !important; }


/* ───────────────────────── UI kit ─────────────────────────
 * Shared by every service of the family. Shape (radius-*), heading face (--font-display,
 * --display-weight, --display-tracking) and the accents come from tokens.css + css/projects/<slug>.css,
 * so the same markup looks like dnd, lol or id depending on which project file is loaded.
 * Signature: the «signal line». Selection and the current place are marked by a 2 px bar of `accent`
 * (the I of the mark): under the active tab and nav link, at the left of the current section and the
 * selected row. Restricted (owner-only) zones are drawn with a dashed `field-line` frame, nothing else is.
 */

/* Type */
.vo-h1, .vo-h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); margin: 0; text-wrap: balance; color: var(--ink); }
.vo-h1 { font-size: 32px; line-height: 38px; }
.vo-h2 { font-size: 24px; line-height: 30px; }
.vo-h3 { font: 600 18px/24px var(--font-sans); margin: 0; color: var(--ink); }
.vo-lead { margin: 0; max-width: var(--measure); color: var(--ink-muted); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.vo-muted { color: var(--ink-muted); }
.vo-mono { font: 400 13px/18px var(--font-mono); }
.vo-num { font-variant-numeric: tabular-nums; }
.vo-term { color: var(--accent-2); }
.vo-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.vo-link:hover { text-decoration-thickness: 2px; }

/* Layout */
.vo-page { box-sizing: border-box; width: 100%; max-width: var(--page-width); margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-8); }
@media (min-width: 640px) { .vo-page { padding-inline: var(--space-5); } }
.vo-page-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-7); }
.vo-stack { display: grid; gap: var(--space-4); align-content: start; }
.vo-stack-sm { gap: var(--space-2); }
.vo-stack-lg { gap: var(--space-5); }
.vo-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.vo-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Sections of one page (account, settings) */
.vo-section { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
.vo-section + .vo-section { margin-top: var(--space-7); }
.vo-section-head { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.vo-section-head .vo-lead { font-size: 15px; line-height: 22px; }
.vo-with-toc { display: grid; gap: var(--space-5); }
@media (min-width: 880px) { .vo-with-toc { grid-template-columns: var(--nav-width) minmax(0, 1fr); gap: var(--space-7); } }

/* Section nav: vertical with the signal line on wide screens, a scrolling row on narrow ones */
.vo-toc { display: flex; gap: var(--space-1); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.vo-toc a { flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); color: var(--ink-muted); text-decoration: none;
  font: 500 14px/20px var(--font-sans); box-shadow: inset 0 -2px 0 transparent; }
.vo-toc a:hover { color: var(--ink); }
.vo-toc a[aria-current="true"], .vo-toc a[aria-current="location"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (min-width: 880px) {
  .vo-toc { position: sticky; top: calc(var(--header-height) + var(--space-5)); align-self: start; flex-direction: column; gap: 0; border-bottom: 0;
    border-left: 1px solid var(--line); overflow: visible; }
  .vo-toc a { min-height: 36px; margin-left: -1px; padding-left: var(--space-4); box-shadow: inset 2px 0 0 transparent; }
  .vo-toc a[aria-current="true"], .vo-toc a[aria-current="location"] { box-shadow: inset 2px 0 0 var(--accent); }
}

/* Site header: project mark 28 px + name + .voronin.app, nav, account */
.vo-header { position: relative; display: flex; align-items: center; gap: var(--space-5); height: var(--header-height); padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line); background: var(--bg); }
.vo-header-sticky { position: sticky; top: 0; z-index: 10; }
.vo-header-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; flex: none; }
.vo-header-brand img, .vo-header-brand svg { width: 28px; height: 28px; display: block; }
.vo-header-name { font: 600 16px/20px var(--font-sans); }
.vo-header-domain { font: 400 13px/18px var(--font-mono); color: var(--ink-muted); margin-left: -6px; }
.vo-nav { display: flex; align-self: stretch; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.vo-nav a { display: flex; align-items: center; padding: 0 var(--space-3); color: var(--ink-muted); text-decoration: none; font: 500 14px/20px var(--font-sans);
  white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.vo-nav a:hover { color: var(--ink); }
.vo-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.vo-header-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); flex: none; }
@media (max-width: 640px) { .vo-header { gap: var(--space-3); } .vo-header-domain { display: none; } }
/* .vo-header-stack: on phones (≤ 480 px) the nav takes its own row under the brand and the account, tabs share the width.
 * For services with 3+ tabs; the account menu is a popover (.vo-header-menu) under the avatar. */
@media (max-width: 480px) {
  .vo-header-stack { flex-wrap: wrap; height: auto; row-gap: 0; }
  .vo-header-stack .vo-header-brand, .vo-header-stack .vo-header-end { height: var(--header-height); }
  .vo-header-stack .vo-nav { order: 3; flex: 1 0 100%; height: 44px; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-2);
    border-top: 1px solid var(--line); gap: 0; }
  .vo-header-stack .vo-nav a { flex: 1 1 auto; justify-content: center; padding: 0 var(--space-2); }
}
.vo-header-menu[popover] { position: fixed; inset: calc(var(--header-height) - 4px) var(--space-3) auto auto; margin: 0; }

/* Tabs (switch views in place; .vo-toc is for anchors on one page, .vo-nav for pages) */
.vo-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vo-tab { flex: none; height: var(--control-height); padding: 0 var(--space-3); border: 0; background: none; cursor: pointer; color: var(--ink-muted);
  font: 500 15px/20px var(--font-sans); box-shadow: inset 0 -2px 0 transparent; }
.vo-tab:hover { color: var(--ink); }
.vo-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.vo-tab-count { margin-left: var(--space-1); color: var(--ink-muted); font: 400 13px/18px var(--font-mono); }
.vo-tabpanel { padding-top: var(--space-5); }

/* Segmented control: one of 2–4 short options */
.vo-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--field-line); border-radius: var(--radius-md); background: var(--bg); }
.vo-seg button { height: calc(var(--control-height) - 8px); padding: 0 var(--space-3); border: 0; border-radius: max(0px, calc(var(--radius-md) - 3px));
  background: none; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.vo-seg button:hover { color: var(--ink); }
.vo-seg button[aria-pressed="true"], .vo-seg button[aria-checked="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
/* Segments as links: a filter that changes the URL (works without JS, crawlers follow it); the chosen one has aria-current */
.vo-seg a { display: inline-flex; align-items: center; height: calc(var(--control-height) - 8px); padding: 0 var(--space-3);
  border-radius: max(0px, calc(var(--radius-md) - 3px)); color: var(--ink-muted); font: 500 14px/20px var(--font-sans); text-decoration: none; white-space: nowrap; }
.vo-seg a:hover { color: var(--ink); }
.vo-seg a:is([aria-current="page"], [aria-current="true"]) { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* Buttons: extra variants and sizes */
.vo-btn { transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out); text-decoration: none; box-sizing: border-box; }
.vo-btn-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.vo-btn-danger:hover { border-color: var(--danger); }
.vo-btn-link { height: auto; padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.vo-btn-sm { height: var(--control-height-sm); padding: 0 var(--space-3); font-size: 14px; }
.vo-btn-icon { width: var(--control-height); padding: 0; }
.vo-btn-icon.vo-btn-sm { width: var(--control-height-sm); }
.vo-btn svg { width: 20px; height: 20px; flex: none; }
.vo-btn-sm svg { width: 16px; height: 16px; }
.vo-btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.vo-btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink); animation: vo-spin .8s linear infinite; }
.vo-btn-primary[aria-busy="true"]::after { border-color: transparent; border-top-color: var(--on-accent); border-right-color: var(--on-accent); }

/* Fields */
.vo-field { display: grid; gap: 6px; min-width: 0; }
.vo-label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.vo-label-note { font-weight: 400; color: var(--ink-muted); }
.vo-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vo-error { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--danger); }
.vo-error::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 .8 13.4 12.6H.6z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M7 5v3.6M7 10.2v.1' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 .8 13.4 12.6H.6z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M7 5v3.6M7 10.2v.1' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.vo-input, .vo-textarea, .vo-select { box-sizing: border-box; width: 100%; min-height: var(--control-height); padding: 0 var(--space-3); margin: 0;
  border: 1px solid var(--field-line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink);
  font: 400 16px/24px var(--font-sans); transition: border-color var(--motion-fast) var(--ease-out); }
.vo-input::placeholder, .vo-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.vo-input:hover, .vo-textarea:hover, .vo-select:hover { border-color: var(--ink-muted); }
.vo-input:focus-visible, .vo-textarea:focus-visible, .vo-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--ink-muted); }
.vo-input[aria-invalid="true"], .vo-textarea[aria-invalid="true"], .vo-select[aria-invalid="true"] { border-color: var(--danger); }
.vo-input:disabled, .vo-textarea:disabled, .vo-select:disabled { opacity: .5; cursor: not-allowed; }
.vo-input[readonly] { background: transparent; border-style: dashed; border-color: var(--line); }
.vo-input-mono { font: 400 15px/24px var(--font-mono); }
.vo-textarea { padding-block: 9px; min-height: 96px; resize: vertical; }
.vo-select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238e9ab0' stroke-width='1.75'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.vo-input-wrap { position: relative; }
.vo-input-wrap .vo-input { padding-right: calc(var(--control-height) + 4px); }
.vo-input-btn { position: absolute; top: 4px; right: 4px; width: calc(var(--control-height) - 8px); height: calc(var(--control-height) - 8px);
  display: grid; place-items: center; padding: 0; border: 0; border-radius: max(0px, calc(var(--radius-md) - 2px)); background: none; color: var(--ink-muted); cursor: pointer; }
.vo-input-btn:hover { color: var(--ink); background: var(--bg); }
.vo-input-btn svg { width: 20px; height: 20px; }
.vo-form { display: grid; gap: var(--space-4); max-width: 420px; }
.vo-form .vo-actions { margin-top: var(--space-2); }
.vo-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0; min-width: 0; }
.vo-fieldset > legend { padding: 0; margin-bottom: var(--space-1); font: 500 14px/20px var(--font-sans); }

/* Checkbox, radio, switch: native inputs, restyled */
.vo-check { display: flex; gap: var(--space-3); align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 15px; line-height: 22px; }
.vo-check-text { display: grid; gap: 2px; }
.vo-checkbox, .vo-radio { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; display: grid; place-content: center;
  border: 1.5px solid var(--field-line); background: var(--surface-raised); cursor: pointer; }
.vo-checkbox { border-radius: var(--radius-sm); }
.vo-radio { border-radius: 50%; }
.vo-checkbox::before { content: ""; width: 14px; height: 14px; background: var(--on-accent); transform: scale(0); transition: transform var(--motion-fast) var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l3 3 6-6.3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l3 3 6-6.3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.vo-checkbox:checked { background: var(--accent); border-color: var(--accent); }
.vo-checkbox:checked::before { transform: scale(1); }
.vo-radio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform var(--motion-fast) var(--ease-out); }
.vo-radio:checked { background: var(--accent); border-color: var(--accent); }
.vo-radio:checked::before { transform: scale(1); }
.vo-switch { appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border: 1.5px solid var(--field-line);
  border-radius: var(--radius-sm); background: var(--surface-raised); cursor: pointer; transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
.vo-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: max(1px, calc(var(--radius-sm) - 2px));
  background: var(--ink-muted); transition: transform var(--motion-fast) var(--ease-in-out); }
.vo-switch:checked { background: var(--accent); border-color: var(--accent); }
.vo-switch:checked::before { transform: translateX(16px); background: var(--on-accent); }
.vo-checkbox:focus-visible, .vo-radio:focus-visible, .vo-switch:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vo-checkbox:disabled, .vo-radio:disabled, .vo-switch:disabled { opacity: .5; cursor: not-allowed; }

/* Tags (static labels: roles, kinds, states) and chips (toggle filters) */
.vo-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); box-sizing: border-box; border-radius: var(--radius-sm);
  background: var(--surface-raised); color: var(--ink); font: 500 13px/18px var(--font-sans); white-space: nowrap; }
.vo-tag-accent { background: var(--accent-soft); }
.vo-tag-term { background: var(--accent-2-soft); color: var(--accent-2); }
.vo-tag-ok { background: var(--ok-soft); color: var(--ok); }
.vo-tag-warn { background: var(--warn-soft); color: var(--warn); }
.vo-tag-danger { background: var(--danger-soft); color: var(--danger); }
.vo-tag-quiet { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.vo-tag-owner { background: transparent; color: var(--ink-muted); outline: 1px dashed var(--field-line); outline-offset: -1px; font: 500 12px/16px var(--font-mono); }
.vo-tag-owner::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='1.5' y='5' width='9' height='6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M3.5 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='1.5' y='5' width='9' height='6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M3.5 5V3.5a2.5 2.5 0 0 1 5 0V5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.vo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vo-chip { display: inline-flex; align-items: center; gap: 6px; height: var(--control-height-sm); padding: 0 var(--space-3); border: 1px solid var(--field-line);
  border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.vo-chip:hover { color: var(--ink); }
.vo-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-text); color: var(--ink); }

/* Status: a square dot + words, never colour alone */
.vo-status { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 14px/20px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.vo-status::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex: none; }
.vo-status-ok { color: var(--ok); }
.vo-status-warn { color: var(--warn); }
.vo-status-danger { color: var(--danger); }
.vo-status-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Cards */
.vo-card { box-sizing: border-box; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.vo-card:not(.vo-stack, .vo-form) > * + * { margin-top: var(--space-3); }
.vo-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.vo-card-head .vo-h3 { flex: 1; min-width: 0; }
.vo-card-owner { background: transparent; border: 1px dashed var(--field-line); }
@media (max-width: 480px) { .vo-card { padding: var(--space-4); } }

/* Rows: a bordered group of lines (sign-in methods, roles per service, security settings, files).
 * MethodRow (.vo-method) is the older single-card form of the same idea and stays for compatibility. */
.vo-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.vo-row { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; box-sizing: border-box; padding: var(--space-3) var(--space-4); }
.vo-row + .vo-row, .vo-rows > li + li { border-top: 1px solid var(--line); }
.vo-row-lead { flex: none; display: grid; place-items: center; width: 20px; color: var(--ink-muted); }
.vo-row-lead svg, .vo-row-lead img { width: 20px; height: 20px; display: block; }
.vo-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vo-row-title { margin: 0; font: 600 16px/22px var(--font-sans); color: var(--ink); }
.vo-row-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vo-row-detail { margin: 0; font: 400 13px/18px var(--font-mono); color: var(--ink-muted); overflow-wrap: anywhere; }
.vo-row-end { flex: none; box-sizing: border-box; display: flex; align-items: center; gap: var(--space-3); }
a.vo-row { color: inherit; text-decoration: none; }
a.vo-row:hover, button.vo-row:hover { background: var(--surface-raised); }
button.vo-row { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vo-row[aria-current="true"], .vo-row[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 520px) {
  .vo-row { flex-wrap: wrap; }
  .vo-row-end { flex-basis: 100%; justify-content: space-between; padding-left: calc(20px + var(--space-3)); }
  .vo-row-main + .vo-row-end { padding-left: 0; }
  .vo-row-lead ~ .vo-row-end { padding-left: calc(20px + var(--space-3)); }
}

/* Table */
/* contain: a wide table scrolls inside its wrap instead of widening the grid or flex parent (and the whole page) */
.vo-table-wrap { contain: inline-size; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.vo-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.vo-table th { padding: var(--space-2) var(--space-4); text-align: left; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.vo-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.vo-table tr:last-child td { border-bottom: 0; }
.vo-table tbody tr:hover { background: var(--surface-raised); }
.vo-table .vo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vo-table caption { caption-side: top; text-align: left; padding: var(--space-3) var(--space-4) 0; color: var(--ink-muted); font-size: 14px; }
/* Fit: a table that has to fit a phone. Tighter cells and 14 px under 480 px; .vo-hide-sm (end of file) drops a secondary column */
@media (max-width: 480px) {
  .vo-table-fit { font-size: 14px; line-height: 20px; }
  .vo-table-fit th, .vo-table-fit td { padding-left: var(--space-2); padding-right: var(--space-2); }
  .vo-table-fit :is(th, td):first-child { padding-left: var(--space-3); }
  .vo-table-fit :is(th, td):last-child { padding-right: var(--space-3); }
}

/* Dialog: native <dialog>, opened with showModal() */
.vo-dialog { box-sizing: border-box; width: min(480px, calc(100vw - 2 * var(--space-4))); max-height: calc(100dvh - 2 * var(--space-4)); padding: 0; margin: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.vo-dialog::backdrop { background: var(--scrim); }
.vo-dialog-head { display: grid; gap: var(--space-2); padding: var(--space-5) var(--space-5) 0; }
.vo-dialog-head .vo-h2 { font-size: 22px; line-height: 28px; }
.vo-dialog-body { padding: var(--space-4) var(--space-5); color: var(--ink); font-size: 15px; line-height: 22px; }
.vo-dialog-body > p { margin: 0 0 var(--space-3); }
.vo-dialog-body > p:last-child { margin-bottom: 0; }
.vo-dialog-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-5) var(--space-5); }
@media (max-width: 480px) { .vo-dialog-actions > * { flex: 1 1 100%; } }

/* Menu: a list of actions in a popover */
.vo-menu { box-sizing: border-box; min-width: 200px; padding: var(--space-1); margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); color: var(--ink); list-style: none; }
.vo-menu-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 40px; padding: 0 var(--space-3); box-sizing: border-box;
  border: 0; border-radius: max(0px, calc(var(--radius-md) - 2px)); background: none; color: var(--ink); font: 400 15px/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.vo-menu-item:hover { background: var(--line); }
.vo-menu-item svg { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }
.vo-menu-item-danger, .vo-menu-item-danger svg { color: var(--danger); }
.vo-menu-sep { height: 1px; margin: var(--space-1) calc(-1 * var(--space-1)); background: var(--line); border: 0; }
.vo-menu-label { padding: var(--space-2) var(--space-3) var(--space-1); font: 400 13px/18px var(--font-mono); color: var(--ink-muted); }

/* Toast: short confirmation of what just happened, bottom of the screen */
.vo-toasts { position: fixed; left: 50%; bottom: var(--space-4); transform: translateX(-50%); z-index: 50; display: grid; gap: var(--space-2);
  width: min(420px, calc(100vw - 2 * var(--space-4))); margin: 0; padding: 0; list-style: none; }
.vo-toast { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; box-sizing: border-box; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  font-size: 15px; line-height: 20px; color: var(--ink); }
.vo-toast-text { flex: 1; min-width: 0; }

/* Empty state: what is missing and the one action that fills it */
.vo-empty { display: grid; justify-items: start; gap: var(--space-2); padding: var(--space-6) var(--space-5); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); }
.vo-empty-icon { width: 32px; height: 32px; color: var(--ink-muted); margin-bottom: var(--space-1); }
.vo-empty .vo-lead { font-size: 15px; line-height: 22px; }
.vo-empty .vo-actions { margin-top: var(--space-2); }

/* Avatar: picture or initials, in the project's shape */
.vo-avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 13px/1 var(--font-sans); text-transform: uppercase; }
.vo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vo-avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.vo-avatar-lg { width: 48px; height: 48px; font-size: 18px; }
button.vo-avatar { padding: 0; border: 0; cursor: pointer; }

/* Breadcrumbs */
.vo-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vo-crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--field-line); }
.vo-crumbs a { color: var(--ink-muted); text-decoration: none; }
.vo-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.vo-crumbs [aria-current="page"] { color: var(--ink); }

/* Loading: spinner, skeleton, progress */
.vo-spinner { display: inline-block; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent-text);
  animation: vo-spin .8s linear infinite; vertical-align: middle; }
.vo-spinner-lg { width: 32px; height: 32px; border-width: 3px; }
.vo-skel { display: block; height: 1em; border-radius: var(--radius-sm); background: var(--surface-raised); }
.vo-progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 0; background: var(--surface-raised); overflow: hidden; }
.vo-progress::-webkit-progress-bar { background: var(--surface-raised); }
.vo-progress::-webkit-progress-value { background: var(--accent); }
.vo-progress::-moz-progress-bar { background: var(--accent); }

/* Live state and data over time (first used by home.voronin.app; any service may use them).
 * Status colours keep their meaning: ok = works / on, warn = soon / planned, danger = alarm,
 * neutral ink = off without alarm. The project accent never paints a state. */

/* State card: the one answer to «what's going on right now» */
.vo-state { box-sizing: border-box; display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface); }
.vo-state-word { margin: 0; display: flex; align-items: center; gap: var(--space-3); font: 600 32px/38px var(--font-sans); letter-spacing: -.01em; color: var(--ink); }
.vo-state-word::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: currentColor; }
.vo-state-since { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.vo-state-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin-top: var(--space-2);
  padding-top: var(--space-3); border-top: 1px solid var(--line); }
.vo-state-on { background: var(--ok-soft); border-color: transparent; } .vo-state-on .vo-state-word { color: var(--ok); }
.vo-state-soon { background: var(--warn-soft); border-color: transparent; } .vo-state-soon .vo-state-word { color: var(--warn); }
.vo-state-alert { background: var(--danger-soft); border-color: transparent; } .vo-state-alert .vo-state-word { color: var(--danger); }
.vo-state-off .vo-state-word::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.vo-state-unknown .vo-state-word { color: var(--ink-muted); }
.vo-state-unknown .vo-state-word::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; border-radius: 50%; }
.vo-state-on .vo-state-next, .vo-state-soon .vo-state-next, .vo-state-alert .vo-state-next { border-top-color: rgba(230, 236, 245, .12); }
@media (max-width: 480px) { .vo-state { padding: var(--space-4); } .vo-state-word { font-size: 28px; line-height: 34px; } }

/* Countdown: time left to the next event, as words people say («1 год 20 хв») */
.vo-countdown { font: 600 24px/30px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.vo-countdown-lg { font-size: 40px; line-height: 44px; letter-spacing: -.01em; }
@media (max-width: 480px) { .vo-countdown-lg { font-size: 30px; line-height: 36px; white-space: normal; } }
.vo-countdown-label { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* Stats: big value + short label, in a grid */
.vo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); margin: 0; }
.vo-stat { display: grid; gap: 2px; margin: 0; min-width: 0; }
.vo-stat-value { order: 1; margin: 0; font: 600 28px/34px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.vo-stat-label { order: 2; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Big stats: the numbers are the point of the screen; value in the project's display face */
.vo-stats-lg { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.vo-stats-lg .vo-stat-value { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 32px; line-height: 38px; }
@media (max-width: 480px) { .vo-stats-lg .vo-stat-value { font-size: 28px; line-height: 34px; } }

/* Distribution: how a count splits over a few values (places 1-6). Per row: label, bar (aria-hidden, --value = share), count */
.vo-dist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; font-size: 14px; line-height: 20px; }
.vo-dist-label { color: var(--ink-muted); white-space: nowrap; }
.vo-dist .vo-meter-bar { min-width: 0; }
.vo-dist-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }

/* Meter: a level (battery charge, disk). role="meter" with aria-value*; --value is the fill */
.vo-meter { display: grid; gap: var(--space-2); }
.vo-meter-bar { position: relative; height: 12px; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line); }
.vo-meter-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value, 0%); background: var(--ink-muted); }
.vo-meter-ok .vo-meter-bar::before { background: var(--ok); }
.vo-meter-warn .vo-meter-bar::before { background: var(--warn); }
.vo-meter-danger .vo-meter-bar::before { background: var(--danger); }
.vo-meter-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vo-meter-text strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Timeline: one day, 24 h, several rows of spans (plan, fact, alerts) on the same hours.
 * Spans: style="--from: 6; --to: 9.5" in hours. .vo-timeline-today draws «now» at --now. */
.vo-timeline { margin: 0; display: grid; gap: var(--space-2); }
.vo-timeline-cap { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.vo-timeline-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: var(--space-3); }
.vo-timeline-label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vo-timeline-track { position: relative; height: 20px; border-radius: var(--radius-sm); background: var(--surface-raised); overflow: hidden; }
.vo-span { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / 24 * 100%); width: calc((var(--to) - var(--from)) / 24 * 100%); }
.vo-span-on { background: var(--ok); }
.vo-span-off { background: var(--bg); box-shadow: inset 0 0 0 1px var(--field-line); }
.vo-span-plan { background: repeating-linear-gradient(135deg, var(--warn) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--warn); }
.vo-span-alert { background: var(--danger); }
/* Alert at the yellow threat level: «be ready», not «go to the shelter» (no message, no siren) — solid warn.
 * Solid, so it never reads as the hatched «за графіком»; the level is also said in the legend and title. */
.vo-span-alert-yellow { background: var(--warn); }
.vo-timeline-axis { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-3); }
.vo-timeline-axis ol { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; font: 400 11px/14px var(--font-mono); color: var(--ink-muted); }
.vo-timeline-today .vo-timeline-track::after { content: ""; position: absolute; top: -2px; bottom: -2px; width: 2px; left: calc(var(--now) / 24 * 100% - 1px);
  background: var(--ink); box-shadow: 0 0 0 2px var(--bg); }
.vo-timeline-today .vo-timeline-past .vo-timeline-track::after { content: none; }
@media (max-width: 480px) {
  .vo-timeline-row, .vo-timeline-axis { grid-template-columns: 1fr; gap: var(--space-1); }
  .vo-timeline-axis > :first-child { display: none; }
}

/* Legend for timelines and charts */
.vo-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vo-legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.vo-legend .vo-span { position: static; display: inline-block; width: 16px; height: 12px; border-radius: 2px; }

/* Bars: a week (or any few periods) of two values each, plan vs fact. --plan/--fact/--max in the same unit */
.vo-bars { margin: 0; display: grid; gap: var(--space-3); }
.vo-bars-cap { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.vo-bars-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.vo-bars-item { display: grid; gap: var(--space-1); justify-items: center; min-width: 0; }
.vo-bars-plot { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 120px; border-bottom: 1px solid var(--field-line); }
.vo-bar { width: min(14px, 40%); border-radius: 2px 2px 0 0; }
.vo-bar-plan { height: calc(var(--plan) / var(--max) * 100%); background: repeating-linear-gradient(135deg, var(--warn) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--warn); }
.vo-bar-fact { height: calc(var(--fact) / var(--max) * 100%); background: var(--ink-muted); }
.vo-bars-label { font: 500 13px/18px var(--font-sans); color: var(--ink); }
.vo-bars-value { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Meter marks: reference values on the same scale (usual alert length: median, every fourth longer).
 * <span class="vo-meter-mark" style="--at: 40%"> inside .vo-meter-bar; the text under the bar says what they are. */
.vo-meter-mark { position: absolute; top: 0; bottom: 0; left: calc(var(--at) - 1px); width: 2px; background: var(--ink); opacity: .7; }

/* Tags row with a quiet lead label («По країні») */
.vo-tags-label { display: inline-flex; align-items: center; height: 24px; margin-right: var(--space-1); font-size: 13px; color: var(--ink-muted); }

/* Bars, month: one thin bar per day (fact only), labels on days 1, 8, 15, 22 and today, dashed average line (--avg),
 * today outlined (aria-current="date"), .vo-bars-long = a day with an unusually long event (brighter bar) */
.vo-bars-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-3); }
.vo-bars-note { font: 400 13px/18px var(--font-mono); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.vo-bars-month .vo-bars-list { gap: 2px; }
.vo-bars-month .vo-bars-plot { position: relative; height: 96px; }
.vo-bars-month .vo-bars-plot::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: calc(var(--avg) / var(--max) * 100%);
  border-top: 1px dashed var(--ink-muted); opacity: .6; pointer-events: none; }
.vo-bars-month .vo-bar { width: 100%; }
.vo-bars-month .vo-bars-label { font: 400 11px/14px var(--font-mono); color: var(--ink-muted); visibility: hidden; }
.vo-bars-month .vo-bars-item:is(:nth-child(1), :nth-child(8), :nth-child(15), :nth-child(22)) .vo-bars-label, .vo-bars-month .vo-bars-item[aria-current="date"] .vo-bars-label { visibility: visible; }
.vo-bars-month .vo-bars-item[aria-current="date"] .vo-bars-plot { outline: 1px solid var(--ink); outline-offset: 1px; border-radius: 2px; }
.vo-bars-month .vo-bars-item[aria-current="date"] .vo-bars-label { color: var(--ink); }
.vo-bars-long .vo-bar-fact { background: var(--ink); }
/* Split bar: one day's total (--fact) in two parts, bottom --red, top --yellow (threat levels), muted so history stays quieter than «now».
 * <span class="vo-bar vo-bar-split"><span class="vo-bar-part vo-bar-yellow"></span><span class="vo-bar-part vo-bar-red"></span></span> */
.vo-bar-split { display: flex; flex-direction: column; height: calc(var(--fact) / var(--max) * 100%); }
.vo-bar-part { flex: none; }
.vo-bar-red { height: calc(var(--red) / var(--fact) * 100%); background: color-mix(in srgb, var(--danger) 60%, var(--surface)); }
.vo-bar-yellow { height: calc(var(--yellow) / var(--fact) * 100%); background: color-mix(in srgb, var(--warn) 60%, var(--surface)); }
.vo-bars-long .vo-bar-split { box-shadow: 0 -3px 0 var(--ink); }

/* Reading: one big measured value with its sentence on the same baseline (temperature, power) */
.vo-reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0; }
.vo-reading-value { font: 600 40px/44px var(--font-sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.vo-reading-text { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.vo-reading-text strong { font-weight: 600; color: var(--ink); }
@media (max-width: 480px) { .vo-reading-value { font-size: 34px; line-height: 40px; } }

/* Hourly: a few time points in a row, time above, value below (forecast) */
.vo-hourly { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.vo-hourly li { display: grid; gap: 2px; justify-items: center; padding: var(--space-2) 0; border-radius: var(--radius-sm); background: var(--surface-raised); }
.vo-hourly-time { font: 400 12px/16px var(--font-mono); color: var(--ink-muted); }
.vo-hourly-value { font: 600 16px/22px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.vo-hourly-note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* Thumb: a small picture of a thing (champion, item, game piece), 24 px, project radius; alt or title gives its name */
.vo-thumb { display: inline-block; width: 24px; height: 24px; flex: none; border-radius: var(--radius-sm); vertical-align: middle; object-fit: cover; background: var(--surface-raised); }
.vo-thumbs { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); vertical-align: middle; }
/* Thumb + name in one line: the picture stays left, the name wraps beside it, not under it */
.vo-thumb-label { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; vertical-align: middle; }
.vo-thumb-label .vo-thumbs { flex: none; flex-wrap: nowrap; }

/* Cards side by side: equal cards that are compared (three pairs); one column on phones */
.vo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-5); align-items: start; }
.vo-cards .vo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Visually hidden, read by screen readers (the table behind a chart) */
.vo-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Status pages: errors (400…504) and «updating» during a deploy. One column, left-aligned, the
 * project's header and signature footer; the signal line says what kind of page it is:
 * still = the request was fine, the address wasn't; broken = something failed on our side;
 * live = an update is running (the accent segment travels). docs/guide/errors.md. */
.vo-status-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.vo-status-main { box-sizing: border-box; width: 100%; max-width: 600px; margin: 0 auto; padding: clamp(48px, 14vh, 160px) var(--space-4) var(--space-8);
  display: grid; gap: var(--space-4); align-content: start; }
.vo-status-main .vo-actions { margin-top: var(--space-2); }
.vo-signal { position: relative; width: 240px; max-width: 100%; height: 2px; margin-bottom: var(--space-2); overflow: hidden;
  background: linear-gradient(90deg, var(--accent) 0 48px, var(--line) 48px); }
.vo-signal-still { background: linear-gradient(90deg, var(--accent) 0 48px, var(--line) 48px); }
.vo-signal-broken { background: linear-gradient(90deg, var(--accent) 0 48px, transparent 48px 64px, var(--line) 64px); }
.vo-signal-live { background: var(--line); }
.vo-signal-live::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 48px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .vo-signal-live::before { animation: vo-signal 1.6s var(--ease-in-out) infinite; }
}
@keyframes vo-signal { from { transform: translateX(-48px); } to { transform: translateX(240px); } }
.vo-status-check { margin: 0; display: flex; align-items: center; gap: var(--space-2); font: 400 13px/18px var(--font-mono); color: var(--ink-muted); }
.vo-status-check[hidden] { display: none; }
.vo-status-details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-4); margin: var(--space-5) 0 0; padding-top: var(--space-4);
  border-top: 1px solid var(--line); font: 400 13px/18px var(--font-mono); color: var(--ink-muted); }
.vo-status-details dt { color: var(--ink-muted); }
.vo-status-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* Consent: the analytics cookie banner (components/consent.js). Bottom of the screen, not a modal;
 * both choices look the same — saying no is as easy as saying yes. Reopened from the footer. */
.vo-consent { position: fixed; z-index: 60; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); box-sizing: border-box;
  max-width: 560px; margin: 0 auto; padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.vo-consent[hidden] { display: none; }
.vo-consent-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
@media (max-width: 480px) { .vo-consent .vo-actions > * { flex: 1 1 100%; } }
@media (prefers-reduced-motion: no-preference) { .vo-consent:not([hidden]) { animation: vo-rise var(--motion-base) var(--ease-out); } }
.vo-footer-btn { padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; cursor: pointer; text-decoration: none; }
.vo-footer-btn:hover { color: var(--ink); text-decoration: underline; }
.vo-footer-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vo-footer-sig .vo-footer-btn { font: 400 13px/18px var(--font-mono); }

/* Backgrounds. The page is flat `bg`; depth comes from surfaces and lines. One exception per page:
 * the project's glow at the top of a landing or hero area (docs/guide/layout.md). */
.vo-glow { background: radial-gradient(900px 320px at 50% -120px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%), var(--bg); }
@media print { .vo-glow { background: none; } }

/* Divider */
.vo-sep { height: 1px; margin: var(--space-5) 0; border: 0; background: var(--line); }

/* Focus for every interactive part of the kit */
.vo-link:focus-visible, .vo-header-brand:focus-visible, .vo-seg button:focus-visible, .vo-seg a:focus-visible, .vo-chip:focus-visible, .vo-input-btn:focus-visible,
.vo-crumbs a:focus-visible, button.vo-avatar:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vo-toc a:focus-visible, .vo-nav a:focus-visible, .vo-tab:focus-visible, .vo-menu-item:focus-visible, a.vo-row:focus-visible, button.vo-row:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: -2px; }

@keyframes vo-spin { to { transform: rotate(360deg); } }
@keyframes vo-pulse { 50% { opacity: .5; } }
@keyframes vo-rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .vo-dialog[open], .vo-toast { animation: vo-rise var(--motion-base) var(--ease-out); }
  .vo-skel { animation: vo-pulse 1.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .vo-spinner, .vo-btn[aria-busy="true"]::after { animation-duration: 2.4s; }
  .vo-btn, .vo-input, .vo-textarea, .vo-select, .vo-switch, .vo-switch::before, .vo-checkbox::before, .vo-radio::before { transition: none; }
}

/* Hidden on phones: a secondary column or label (see Table). Last in the file so no component display rule overrides it */
@media (max-width: 480px) { .vo-hide-sm { display: none; } }
