/* ==========================================================================
   VT CRM - temos, akcentai, mastelis, tankis
   Krauna po styles.css ir perrasinėja tik dizaino zetonus (tokens).
   ========================================================================== */

/* ------------------------------------------------------------------ MASTELIS */
:root { --ui-scale: 1; }
body { zoom: var(--ui-scale); }

/* --------------------------------------------------------------------- TANKIS */
:root[data-density="compact"] {
  --topbar-h: 52px;
}
:root[data-density="compact"] body { font-size: 12.8px; }
:root[data-density="compact"] table.tbl td { padding: 5px 10px; }
:root[data-density="compact"] table.tbl th { padding: 6px 10px; }
:root[data-density="compact"] .card-body { padding: 12px; }
:root[data-density="compact"] .card-head { padding: 10px 12px; min-height: 42px; }
:root[data-density="compact"] .content { padding: 14px 16px 44px; }
:root[data-density="compact"] .kpi { padding: 8px 12px; }
:root[data-density="compact"] .kpi-value { font-size: 20px; }
:root[data-density="compact"] .list-item { padding: 7px 12px; }
:root[data-density="compact"] .nav-item { padding: 5px 9px; }
:root[data-density="compact"] .grid { gap: 10px; }

/* =========================================================== SVIESIOS TEMOS */
/* Kiekvienos temos --text-3 ir --text-4 parinkti taip, kad ant tos temos pacios
   surface / surface-2 / surface-3 / ivory-100 kontrastas butu >=4,5:1. Atspalvis
   (vesus melynas, siltas smelio, zalsvas) paliktas, keistas tik sviesumas. */

/* --- Šiaurietiška (vėsi pilkai mėlyna) --- */
:root[data-theme="nordic"] {
  --ivory-50:#FBFCFD; --ivory-100:#F4F6F9; --ivory-200:#EDF1F5; --ivory-300:#E3E8EF;
  --surface:#FFFFFF; --surface-2:#F8FAFC; --surface-3:#F1F5F9;
  --line:#DDE3EA; --line-soft:#EAEFF4; --line-strong:#C6CFDA;
  --text:#182230; --text-2:#4A5768; --text-3:#5D697C; --text-4:#617086;
}

/* --- Smėlio (šilta, vario akcentas) --- */
:root[data-theme="sand"] {
  --ivory-50:#FFFDFA; --ivory-100:#F8F3EA; --ivory-200:#F2ECE1; --ivory-300:#E9E0D0;
  --surface:#FFFDF9; --surface-2:#FBF7F0; --surface-3:#F5EFE4;
  --line:#E4D9C7; --line-soft:#EFE8DA; --line-strong:#D2C3A9;
  --text:#2A2318; --text-2:#5D5343; --text-3:#6D6558; --text-4:#756A57;
}

/* --- Mėtų (švelniai žalsva) --- */
:root[data-theme="mint"] {
  --ivory-50:#FBFDFC; --ivory-100:#F1F6F3; --ivory-200:#EAF1EC; --ivory-300:#DFE9E2;
  --surface:#FFFFFF; --surface-2:#F7FBF8; --surface-3:#EFF5F1;
  --line:#D9E4DC; --line-soft:#E7EFEA; --line-strong:#BFCFC5;
  --text:#152420; --text-2:#45574F; --text-3:#5D6B63; --text-4:#617269;
}

/* --- Padidintas kontrastas (prieinamumui) --- */
:root[data-theme="contrast"] {
  --ivory-50:#FFFFFF; --ivory-100:#FFFFFF; --ivory-200:#F2F2F2; --ivory-300:#E4E4E4;
  --surface:#FFFFFF; --surface-2:#FAFAFA; --surface-3:#F0F0F0;
  --line:#8A8A8A; --line-soft:#B5B5B5; --line-strong:#2B2B2B;
  --text:#000000; --text-2:#1E1E1E; --text-3:#3D3D3D; --text-4:#5A5A5A;
  --shadow-xs:0 0 0 1px rgba(0,0,0,.10);
  --shadow-sm:0 0 0 1px rgba(0,0,0,.14);
  --radius:6px; --radius-lg:8px; --radius-sm:4px;
}
:root[data-theme="contrast"] .card { border-width: 1.5px; }
:root[data-theme="contrast"] table.tbl th { color: var(--text); }
:root[data-theme="contrast"] .badge { outline: 1px solid rgba(0,0,0,.30); outline-offset: -1px; }
:root[data-theme="contrast"] .btn { border-width: 1.5px; font-weight: 700; }
:root[data-theme="contrast"] .nav-item.active { outline: 2px solid var(--violet); outline-offset: -2px; }
:root[data-theme="contrast"] a:focus-visible, :root[data-theme="contrast"] button:focus-visible,
:root[data-theme="contrast"] input:focus-visible, :root[data-theme="contrast"] select:focus-visible {
  outline: 3px solid var(--violet); outline-offset: 1px;
}

/* ============================================================ TAMSIOS TEMOS */
/* Tamsiose temose --text-3/--text-4 buvo per tamsus (2,6-4,4:1). Pakelti tiek,
   kad laikytusi >=4,5:1 net ant sviesiausio tos temos pavirsiaus (surface-3). */
:root[data-theme="dark"], :root[data-theme="midnight"], :root[data-theme="graphite"] {
  --shadow-xs:0 1px 2px rgba(0,0,0,.36);
  --shadow-sm:0 1px 3px rgba(0,0,0,.42), 0 1px 2px rgba(0,0,0,.30);
  --shadow-md:0 6px 20px rgba(0,0,0,.46), 0 2px 6px rgba(0,0,0,.30);
  --shadow-lg:0 20px 54px rgba(0,0,0,.62), 0 4px 12px rgba(0,0,0,.40);

  /* tonai tamsiam fonui: prisodrintas tekstas, prislopintas fonas */
  --t-slate-bg:#232A38;  --t-slate-fg:#A9BAD4;  --t-slate-dot:#7C90B4;
  --t-grey-bg:#292731;   --t-grey-fg:#B0AABC;   --t-grey-dot:#8B8497;
  --t-blue-bg:#182A4A;   --t-blue-fg:#8CB4FF;   --t-blue-dot:#5A8CF0;
  --t-indigo-bg:#221F45; --t-indigo-fg:#A9A2FF; --t-indigo-dot:#7B72F0;
  --t-violet-bg:#2A2044; --t-violet-fg:#BFA3FF; --t-violet-dot:#9B72F5;
  --t-teal-bg:#123330;   --t-teal-fg:#6FD8C6;   --t-teal-dot:#2CBFA8;
  --t-green-bg:#14321F;  --t-green-fg:#7BD99A;  --t-green-dot:#3FBF6A;
  --t-amber-bg:#3A2A11;  --t-amber-fg:#F2BE63;  --t-amber-dot:#DE9B2C;
  --t-red-bg:#3A1D1C;    --t-red-fg:#FF9A94;    --t-red-dot:#EE6A63;
  --t-pink-bg:#3A1B2A;   --t-pink-fg:#FF9CC6;   --t-pink-dot:#EE6BA5;
  --t-dark-bg:#2E2C36;   --t-dark-fg:#D6D2DE;   --t-dark-dot:#9C97A8;

  /* Uzrasu spalvos (views/notes.js) - Google Keep tamsioji palete. */
  --nk-red:#77172E; --nk-orange:#692B17; --nk-yellow:#7C4A03; --nk-green:#264D3B;
  --nk-teal:#0C625D; --nk-blue:#256377; --nk-darkblue:#284255; --nk-purple:#472E5B;
  --nk-pink:#6C394F; --nk-brown:#4B443A; --nk-gray:#232427;
}

:root[data-theme="dark"] {
  --ivory-50:#1A191F; --ivory-100:#1B1A20; --ivory-200:#131217; --ivory-300:#2A2833;
  --surface:#1E1D23; --surface-2:#24222B; --surface-3:#2B2933;
  --line:#322F3B; --line-soft:#282631; --line-strong:#453F52;
  --text:#EDEBF1; --text-2:#B5B0C0; --text-3:#9E99A9; --text-4:#9690A2;
}

:root[data-theme="midnight"] {
  --ivory-50:#141B29; --ivory-100:#131A28; --ivory-200:#0D1420; --ivory-300:#1F2A3D;
  --surface:#161D2C; --surface-2:#1C2435; --surface-3:#222B3E;
  --line:#28334A; --line-soft:#1F2839; --line-strong:#3A4762;
  --text:#E7EDF8; --text-2:#A9B6CC; --text-3:#919DB2; --text-4:#8894AB;
}

:root[data-theme="graphite"] {
  --ivory-50:#1A1A1A; --ivory-100:#181818; --ivory-200:#121212; --ivory-300:#282828;
  --surface:#1F1F1F; --surface-2:#252525; --surface-3:#2C2C2C;
  --line:#333333; --line-soft:#292929; --line-strong:#464646;
  --text:#EDEDED; --text-2:#B3B3B3; --text-3:#9D9D9D; --text-4:#959595;
}

/* tamsiose temose sviesus elementai reikalauja korekciju */
:root[data-theme="dark"] .topbar,
:root[data-theme="midnight"] .topbar,
:root[data-theme="graphite"] .topbar { background: rgba(27,26,32,.86); }
:root[data-theme="midnight"] .topbar { background: rgba(19,26,40,.86); }
:root[data-theme="graphite"] .topbar { background: rgba(24,24,24,.86); }

:root[data-theme="dark"] .toast,
:root[data-theme="midnight"] .toast,
:root[data-theme="graphite"] .toast { background: #34313D; border: 1px solid var(--line-strong); }

:root[data-theme="dark"] .avatar-stack .avatar,
:root[data-theme="midnight"] .avatar-stack .avatar,
:root[data-theme="graphite"] .avatar-stack .avatar { border-color: var(--surface); }

:root[data-theme="dark"] .obj-cover .id-chip,
:root[data-theme="midnight"] .obj-cover .id-chip,
:root[data-theme="graphite"] .obj-cover .id-chip { background: rgba(20,19,24,.86); color: var(--text); }

:root[data-theme="dark"] .select,
:root[data-theme="midnight"] .select,
:root[data-theme="graphite"] .select {
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B8598' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .overlay,
:root[data-theme="midnight"] .overlay,
:root[data-theme="graphite"] .overlay { background: rgba(6,5,9,.58); }

/* nuotrauku vietos zenklai tamsoje neturi svytėti */
:root[data-theme="dark"] .obj-cover, :root[data-theme="dark"] .record-cover,
:root[data-theme="midnight"] .obj-cover, :root[data-theme="midnight"] .record-cover,
:root[data-theme="graphite"] .obj-cover, :root[data-theme="graphite"] .record-cover { filter: saturate(.72) brightness(.72); }

/* ==================================================== WHITE VISION GROUP
   The brand theme, and the default since 2026-10-03 (owner: "add Default
   Color Scheme ... new theme and make it default in CRM").

   THE BRAND TOKENS are defined once, on :root, so any theme or page may read
   them. One name differs from the brief: its row-divider colour "--line" is
   --rule here, because --line is already this stylesheet's border token and
   every theme redefines it.

   Unlike the other light themes, this one adds rules as well as tokens: the
   brief asks for things a token cannot say -- a dark sidebar and top bar, a
   serif page title, uppercase labels, a focus ring on everything, pill
   chips. They are all below, in one block, and nowhere else.

   FONTS are self-hosted (assets/*.woff2, SIL Open Font License): the CSP
   allows fonts from 'self' only and nothing is fetched from Google. Jost is
   shipped in 400 and 500; the 500 file also answers for 600-900, so the
   browser never fakes a bold. Bodoni Moda 400 is for the page title only.

   Jost is ONE file per weight, Latin and Latin Extended together (2026-10-24).
   Google's split pair broke "ū" and "Ū": the Latin half has "u" and the
   combining macron U+0304 but not "ū", so the browser drew "u" + a loose
   macron over the next letter instead of asking the other half. Built from
   google/fonts ofl/jost/Jost[wght].ttf (instanced at 400 and 500, subset to
   the same two ranges). Bodoni Moda keeps the pair: its Latin half positions
   the macron itself. */
@font-face {
  font-family:'Jost'; font-style:normal; font-weight:400; font-display:swap;
  src:url('jost-400.woff2') format('woff2');
}
@font-face {
  font-family:'Jost'; font-style:normal; font-weight:500 900; font-display:swap;
  src:url('jost-500.woff2') format('woff2');
}
@font-face {
  font-family:'Bodoni Moda'; font-style:normal; font-weight:400; font-display:swap;
  src:url('bodoni-moda-latin-ext-400.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family:'Bodoni Moda'; font-style:normal; font-weight:400; font-display:swap;
  src:url('bodoni-moda-latin-400.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --plum-900:#291A21;   /* main dark: sidebar, top bar, body text */
  --plum-700:#4C3035;   /* primary buttons, links, selected states, focus ring */
  --plum-500:#5B3C42;   /* secondary dark bands only */
  --plum-100:#EDE3E5;   /* selected rows, selected filters, Active status */
  --gold:#C4A879;       /* accents on dark backgrounds only */
  --gold-700:#75602F;   /* gold text/icons on light backgrounds */
  --gold-100:#F1E8D6;   /* Reserved status, callouts */
  --forest-900:#1B271E; /* Academy only */
  --forest-700:#445545; /* Academy only */
  --forest-100:#E4E9E1; /* Academy only */
  --ivory:#F3F0EB;      /* page background */
  --white:#FFFFFF;      /* cards, tables, inputs */
  --stone:#E3D9CF;      /* card borders, image placeholders */
  --rule:#EEE8E2;       /* table row dividers (the brief's "--line") */
  --taupe:#9C8472;      /* chip/toggle borders only, never text */
  --ink-muted:#6E5A60;  /* secondary text, placeholders, input borders */
  --on-plum:#C9BCBF;    /* secondary text on plum backgrounds */
  --on-forest:#B8C2B3;  /* secondary text on forest backgrounds */
  --danger:#A3312B;     /* errors, destructive actions */
  --danger-100:#F7E4E1; /* error message backgrounds */
}

:root[data-theme="wvg"] {
  --ivory-50:#FBFAF8; --ivory-100:#F8F6F2; --ivory-200:var(--ivory); --ivory-300:#EAE4DD;
  --surface:var(--white); --surface-2:#FAF8F5; --surface-3:var(--ivory);
  --line:var(--stone); --line-soft:var(--rule); --line-strong:var(--taupe);
  --text:var(--plum-900); --text-2:var(--plum-700); --text-3:var(--ink-muted); --text-4:var(--ink-muted);

  --violet:var(--plum-700); --violet-600:var(--plum-900); --violet-700:var(--plum-900);
  --violet-soft:var(--plum-100); --violet-soft-2:#E2D3D7; --violet-line:#C9B5BA;
  --violet-fill:var(--plum-700); --violet-fill-2:var(--plum-900); --violet-on:var(--ivory);

  --radius-sm:2px; --radius:8px; --radius-lg:8px;
  /* No drop shadows. A zero shadow, not `none`: some rules list a ring
     before the token, and `none` inside a list voids the whole declaration. */
  --shadow-xs:0 0 0 0 transparent; --shadow-sm:0 0 0 0 transparent;
  --shadow-md:0 0 0 0 transparent; --shadow-lg:0 0 0 0 transparent;

  /* Avatar colours a person can tell apart (2026-10-04): at 16 % the twelve
     choices in "Mano paskyra" were one pale grey. Still pastel; the text
     keeps 7:1 or better on its own tint. */
  --av-bg-s:34%; --av-bg-l:86%; --av-fg-s:42%; --av-fg-l:24%;

  --font:'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif:'Bodoni Moda', 'Bodoni 72', 'Bodoni MT', Didot, Georgia, 'Times New Roman', serif;

  /* Tones. The four listing statuses are the brief's: Active (green) plum,
     Reserved (violet) gold, Draft/Archive (slate, grey) neutral with a hollow
     dot, Sold (dark) plum-900 with a check. The rest fall into the same five
     looks -- see below, at blue. */
  --t-green-bg:var(--plum-100);  --t-green-fg:var(--plum-700);  --t-green-dot:var(--plum-700);
  --t-violet-bg:var(--gold-100); --t-violet-fg:var(--gold-700); --t-violet-dot:var(--gold);
  --t-slate-bg:var(--rule);      --t-slate-fg:var(--ink-muted); --t-slate-dot:var(--taupe);
  --t-grey-bg:var(--rule);       --t-grey-fg:var(--ink-muted);  --t-grey-dot:var(--taupe);
  --t-dark-bg:var(--plum-900);   --t-dark-fg:var(--ivory);      --t-dark-dot:var(--plum-900);
  --t-red-bg:var(--danger-100);  --t-red-fg:var(--danger);      --t-red-dot:var(--danger);
  /* The -dot colours are what charts draw with (core/ui.js refreshTones):
     one family -- taupe, two plum tints, plum, gold -- so a row of stage
     bars reads as a set, lightest at the start of the pipeline. */
  --t-amber-bg:#F5EADB;  --t-amber-fg:#7A4A12;  --t-amber-dot:#A8854A;
  /* FIVE LOOKS, all from the brand colours (2026-10-04, UI-SUGGESTIONS.md 31):
       new, draft          outline, hollow dot     slate, grey
       in progress, active pale plum, plum dot     green, blue, indigo, teal, pink
       waiting, reserved   pale gold, gold dot     violet, amber
       closed well         dark plum, a tick       dark, done
       problem             pale red                red
     Blue, indigo, teal and pink used to keep a muted hue of their own; teal
     came out as one more tan next to gold and amber, and three different
     statuses looked alike. Now the hue says which of five things a status
     is, and the word says which status. The dots stay apart -- charts draw
     with them. */
  --t-blue-bg:var(--plum-100);   --t-blue-fg:var(--plum-700);   --t-blue-dot:#A58A91;
  --t-indigo-bg:var(--plum-100); --t-indigo-fg:var(--plum-700); --t-indigo-dot:#7E626A;
  --t-teal-bg:var(--plum-100);   --t-teal-fg:var(--plum-700);   --t-teal-dot:var(--plum-500);
  --t-pink-bg:var(--plum-100);   --t-pink-fg:var(--plum-700);   --t-pink-dot:#B0708A;
  --t-done-bg:var(--plum-900);   --t-done-fg:var(--ivory);      --t-done-dot:var(--plum-900);
}

/* --- text size: Jost runs lighter and narrower than the system face the
   sizes were tuned for, so reading text is a step larger here --- */
:root[data-theme="wvg"] body { font-size:14.5px; }
:root[data-theme="wvg"][data-density="compact"] body { font-size:13.5px; }
:root[data-theme="wvg"] .small, :root[data-theme="wvg"] .page-sub, :root[data-theme="wvg"] .breadcrumbs,
:root[data-theme="wvg"] .empty-sub { font-size:13px; }
:root[data-theme="wvg"] .xsmall, :root[data-theme="wvg"] .card-sub, :root[data-theme="wvg"] .li-sub,
:root[data-theme="wvg"] .kpi-foot, :root[data-theme="wvg"] .set-desc,
:root[data-theme="wvg"] .field label { font-size:12.5px; }
:root[data-theme="wvg"] .nav-item, :root[data-theme="wvg"] .li-title, :root[data-theme="wvg"] .set-name,
:root[data-theme="wvg"] .meta-value, :root[data-theme="wvg"] .empty-title { font-size:14px; }
:root[data-theme="wvg"] .btn, :root[data-theme="wvg"] .input, :root[data-theme="wvg"] .select,
:root[data-theme="wvg"] textarea.input { font-size:13.5px; }
:root[data-theme="wvg"] .btn.sm { font-size:12.5px; }
:root[data-theme="wvg"] .card-title { font-size:15px; }
:root[data-theme="wvg"] .meta-label, :root[data-theme="wvg"] .nav-group-label, :root[data-theme="wvg"] .brand-sub,
:root[data-theme="wvg"] .set-nav-label { font-size:12px; letter-spacing:.1em; font-weight:500; }
/* Tables are where people read most, and they had stayed at the old size
   (2026-10-04): cells 13.5, the second line of a cell 12.5. */
:root[data-theme="wvg"] table.tbl { font-size:13.5px; }
:root[data-theme="wvg"][data-density="compact"] table.tbl { font-size:13px; }
:root[data-theme="wvg"] .cell-sub, :root[data-theme="wvg"] .kpi-label, :root[data-theme="wvg"] .obj-addr,
:root[data-theme="wvg"] .obj-specs, :root[data-theme="wvg"] .sp-sub, :root[data-theme="wvg"] .sug-sub,
:root[data-theme="wvg"] .legend-item, :root[data-theme="wvg"] .int-flow, :root[data-theme="wvg"] .scope-note,
:root[data-theme="wvg"] .chip-filter, :root[data-theme="wvg"] .fsel-name, :root[data-theme="wvg"] .fswitch,
:root[data-theme="wvg"] .nf-meta, :root[data-theme="wvg"] .peek-sub { font-size:12.5px; }
/* Nothing a person reads is under 12 px (the brief). What stays smaller is a
   mark, not text: the initials in an avatar, the count on the bell, a file's
   type tile, a step's number. */
:root[data-theme="wvg"] .id-chip, :root[data-theme="wvg"] .nav-count, :root[data-theme="wvg"] .filter-tab .n,
:root[data-theme="wvg"] .tab .n, :root[data-theme="wvg"] .tag, :root[data-theme="wvg"] .user-chip-role,
:root[data-theme="wvg"] .nf-head, :root[data-theme="wvg"] .tl-time, :root[data-theme="wvg"] .pipe-n,
:root[data-theme="wvg"] .pipe-sum, :root[data-theme="wvg"] .menu-label, :root[data-theme="wvg"] .sp-group-label,
:root[data-theme="wvg"] .sug-tag, :root[data-theme="wvg"] .sug-note, :root[data-theme="wvg"] .folder-item .n,
:root[data-theme="wvg"] .bchart-val, :root[data-theme="wvg"] .bchart-lbl, :root[data-theme="wvg"] .lchart-lbl,
:root[data-theme="wvg"] .cal-dow, :root[data-theme="wvg"] .cal-time, :root[data-theme="wvg"] .cal-ev,
:root[data-theme="wvg"] .cal-ev b, :root[data-theme="wvg"] .cal-ev .ev-sub, :root[data-theme="wvg"] .cal-mnum,
:root[data-theme="wvg"] .cal-pill, :root[data-theme="wvg"] .mini-cal .mc-dow, :root[data-theme="wvg"] .mini-cal button,
:root[data-theme="wvg"] .record-cover .ph-count, :root[data-theme="wvg"] .wiz-step button,
:root[data-theme="wvg"] .feat-group-head, :root[data-theme="wvg"] .wiz-review-title, :root[data-theme="wvg"] .wiz-ph-name,
:root[data-theme="wvg"] .wiz-rail-note, :root[data-theme="wvg"] .wiz-sum-fact span, :root[data-theme="wvg"] .wiz-sum-h,
:root[data-theme="wvg"] .social-tag, :root[data-theme="wvg"] .nk-section, :root[data-theme="wvg"] .nk-meta,
:root[data-theme="wvg"] .nk-chip, :root[data-theme="wvg"] .su-count, :root[data-theme="wvg"] .su-note,
:root[data-theme="wvg"] .soc-legend, :root[data-theme="wvg"] .kbd { font-size:12px; }
/* The same floor for the styles that pages bring with them (views/*.js). */
:root[data-theme="wvg"] .gm-note, :root[data-theme="wvg"] .gd-eyebrow, :root[data-theme="wvg"] .gd-wait,
:root[data-theme="wvg"] .gd-lost, :root[data-theme="wvg"] .qa-pick-sub, :root[data-theme="wvg"] .sel-sub,
:root[data-theme="wvg"] .tour-eyebrow, :root[data-theme="wvg"] .cal-team-head, :root[data-theme="wvg"] .chat-sec,
:root[data-theme="wvg"] .chat-conv-time, :root[data-theme="wvg"] .chat-conv-prev, :root[data-theme="wvg"] .chat-note,
:root[data-theme="wvg"] .chat-topic, :root[data-theme="wvg"] .chat-day-label, :root[data-theme="wvg"] .chat-time-mini,
:root[data-theme="wvg"] .chat-at, :root[data-theme="wvg"] .chat-edited, :root[data-theme="wvg"] .chat-pop-h,
:root[data-theme="wvg"] .chat-info-h, :root[data-theme="wvg"] .chat-seen, :root[data-theme="wvg"] .chat-count,
:root[data-theme="wvg"] .chat-emoji-h, :root[data-theme="wvg"] .chat-thread-new, :root[data-theme="wvg"] .chat-thread-count,
:root[data-theme="wvg"] .chat-voice-len, :root[data-theme="wvg"] .chat-card-sub, :root[data-theme="wvg"] .dsh-feat-s,
:root[data-theme="wvg"] .dsh-step-s, :root[data-theme="wvg"] .dsh-note, :root[data-theme="wvg"] .fz-sum-l,
:root[data-theme="wvg"] .hlp-plus, :root[data-theme="wvg"] .hlp-sub-row .hlp-mark, :root[data-theme="wvg"] .hlp-sub-s,
:root[data-theme="wvg"] .hlp-tour-n, :root[data-theme="wvg"] .hlp-step-s, :root[data-theme="wvg"] .hlp-group,
:root[data-theme="wvg"] .auth-or, :root[data-theme="wvg"] .auth-help code, :root[data-theme="wvg"] .auth-note,
:root[data-theme="wvg"] .auth-brand-sub, :root[data-theme="wvg"] .auth-eyebrow, :root[data-theme="wvg"] .ph-name,
:root[data-theme="wvg"] .set-theme-d, :root[data-theme="wvg"] .int-snip, :root[data-theme="wvg"] .soc-dow,
:root[data-theme="wvg"] .soc-more, :root[data-theme="wvg"] .soc-table th, :root[data-theme="wvg"] .soc-ph { font-size:12px; }
:root[data-theme="wvg"] .bchart-val { height:16px; line-height:16px; }
:root[data-theme="wvg"] .lchart-lbls { height:18px; }

/* --- text, title, links --- */
:root[data-theme="wvg"] h1, :root[data-theme="wvg"] h2, :root[data-theme="wvg"] h3,
:root[data-theme="wvg"] h4, :root[data-theme="wvg"] h5 { font-weight:500; letter-spacing:0; }
:root[data-theme="wvg"] .page-title {
  font-family:var(--serif); font-size:36px; font-weight:400; letter-spacing:0; line-height:1.15;
}
:root[data-theme="wvg"] .card-title { font-weight:500; letter-spacing:0; }
:root[data-theme="wvg"] ::selection { background:var(--plum-100); }

/* --- focus: one ring everywhere --- */
:root[data-theme="wvg"] :focus-visible { outline:2px solid var(--plum-700); outline-offset:2px; }
:root[data-theme="wvg"] .sidebar :focus-visible,
:root[data-theme="wvg"] .topbar :focus-visible { outline-color:var(--gold); }

/* --- buttons --- */
:root[data-theme="wvg"] .btn { border-radius:2px; border-color:var(--ink-muted); font-weight:500; }
:root[data-theme="wvg"] .btn:hover { background:var(--surface-3); border-color:var(--plum-900); }
:root[data-theme="wvg"] .btn.primary { background:var(--violet-fill); border-color:var(--violet-fill); color:var(--violet-on); box-shadow:none; }
:root[data-theme="wvg"] .btn.primary:hover { background:var(--violet-fill-2); border-color:var(--violet-fill-2); }
:root[data-theme="wvg"] .btn.ghost { border-color:transparent; }
:root[data-theme="wvg"] .btn.ghost:hover { background:var(--ivory-300); border-color:transparent; }
:root[data-theme="wvg"] .btn.danger { background:var(--danger); border-color:var(--danger); color:var(--white); }
:root[data-theme="wvg"] .btn.danger:hover { background:#8A2924; border-color:#8A2924; filter:none; }
:root[data-theme="wvg"] .btn.sm { border-radius:2px; }
:root[data-theme="wvg"] .btn-group .btn:first-child { border-radius:2px 0 0 2px; }
:root[data-theme="wvg"] .btn-group .btn:last-child { border-radius:0 2px 2px 0; }
:root[data-theme="wvg"] .icon-btn { border-radius:2px; }

/* --- inputs --- */
:root[data-theme="wvg"] .input, :root[data-theme="wvg"] .select, :root[data-theme="wvg"] textarea.input {
  border-radius:2px; border-color:var(--ink-muted); background-color:var(--white); color:var(--plum-900);
}
:root[data-theme="wvg"] .input::placeholder, :root[data-theme="wvg"] textarea.input::placeholder { color:var(--ink-muted); opacity:1; }
:root[data-theme="wvg"] .input:focus, :root[data-theme="wvg"] .select:focus, :root[data-theme="wvg"] textarea.input:focus {
  border-color:var(--plum-700); box-shadow:none;
}
:root[data-theme="wvg"] .checkbox { border-radius:2px; border-color:var(--ink-muted); }
:root[data-theme="wvg"] .switch { background:var(--taupe); }
:root[data-theme="wvg"] .switch.on { background:var(--plum-700); }
/* Filters are not form fields (2026-10-04): a row of them in the brief's dark
   field border was the heaviest thing on the page. At rest they take the
   lighter taupe (3.5:1 on white, enough for a control's edge); the one in use
   is plum, with its name in front (core/ui.js filterControl). */
:root[data-theme="wvg"] .toolbar .select, :root[data-theme="wvg"] .toolbar .search-input .input,
:root[data-theme="wvg"] .pager .select { border-color:var(--taupe); }
:root[data-theme="wvg"] .toolbar .select:hover, :root[data-theme="wvg"] .toolbar .search-input .input:hover { border-color:var(--ink-muted); }
:root[data-theme="wvg"] .toolbar .select:focus, :root[data-theme="wvg"] .toolbar .search-input .input:focus { border-color:var(--plum-700); }
:root[data-theme="wvg"] .fsel { border-radius:2px; border-color:var(--plum-700); background:var(--plum-100); }
:root[data-theme="wvg"] .fsel-name { color:var(--plum-700); font-weight:500; }
:root[data-theme="wvg"] .toolbar .fsel .select { border:0; font-weight:500; color:var(--plum-900); }
:root[data-theme="wvg"] .more-filters .n { border-radius:9999px; }
:root[data-theme="wvg"] .toolbar .btn.sm { border-color:var(--taupe); }
:root[data-theme="wvg"] .toolbar .btn.sm.ghost { border-color:transparent; }
/* A round tick for "done" beside the square one that selects a row. */
:root[data-theme="wvg"] .checkbox.round { border-radius:50%; }

/* --- tables --- */
/* Header letters closer (2026-10-04): at .14em "PRIORITETAS" was wider than
   the values under it and widened the whole table. The wide spacing stays
   where labels are short -- the menu groups. */
:root[data-theme="wvg"] table.tbl th {
  font-size:12px; font-weight:500; letter-spacing:.06em; color:var(--ink-muted); background:var(--white);
}
:root[data-theme="wvg"] table.tbl th.sorted { color:var(--plum-900); }
:root[data-theme="wvg"] table.tbl tbody tr.selected td { background:var(--plum-100); }

/* --- labels, badges, chips --- */
:root[data-theme="wvg"] .badge {
  border-radius:9999px; font-size:12px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; height:22px; padding:0 9px;
}
:root[data-theme="wvg"] .badge.lg { height:26px; font-size:12px; }
:root[data-theme="wvg"] .badge .dot { opacity:1; }
/* Draft and archive: a hollow dot. Sold: a check instead of a dot. */
:root[data-theme="wvg"] .badge.t-slate .dot, :root[data-theme="wvg"] .badge.t-grey .dot {
  background:transparent; box-shadow:inset 0 0 0 1.5px currentColor;
}
:root[data-theme="wvg"] .badge.t-dark .dot, :root[data-theme="wvg"] .badge.t-done .dot {
  width:9px; height:9px; border-radius:0; background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root[data-theme="wvg"] .chip-filter {
  border-radius:9999px; background:var(--plum-100); color:var(--plum-700); border-color:var(--plum-700); font-weight:500;
}
:root[data-theme="wvg"] .wiz-chip { border-radius:9999px; border-color:var(--taupe); }
:root[data-theme="wvg"] .wiz-chip.on { background:var(--plum-100); border-color:var(--plum-700); color:var(--plum-700); }
:root[data-theme="wvg"] .seg { border-radius:2px; border-color:var(--taupe); }
:root[data-theme="wvg"] .seg button { border-radius:2px; }
:root[data-theme="wvg"] .seg button.on { background:var(--plum-100); color:var(--plum-700); }
:root[data-theme="wvg"] .nav-group-label, :root[data-theme="wvg"] .brand-sub, :root[data-theme="wvg"] .meta-label,
:root[data-theme="wvg"] .nf-head, :root[data-theme="wvg"] .wiz-review-title, :root[data-theme="wvg"] .wiz-sum-h { font-weight:500; }

/* --- cards and layers: a border, never a shadow --- */
:root[data-theme="wvg"] .menu, :root[data-theme="wvg"] .modal, :root[data-theme="wvg"] .drawer { border:1px solid var(--stone); }
:root[data-theme="wvg"] .toast { background:var(--plum-900); color:var(--ivory); border-radius:2px; }
:root[data-theme="wvg"] .toast .ico { color:var(--gold); }
/* Which kind of message it is: a failure has a red edge and a red icon, a
   warning a gold edge; success stays as it was. */
:root[data-theme="wvg"] .toast.is-error { box-shadow:inset 4px 0 0 #D9665F; }
:root[data-theme="wvg"] .toast.is-error > .ico { color:#F0A7A1; }
:root[data-theme="wvg"] .toast.is-warn { box-shadow:inset 4px 0 0 var(--gold); }
:root[data-theme="wvg"] .toast .toast-x .ico { color:var(--on-plum); }
:root[data-theme="wvg"] .notice { border-radius:2px; }
:root[data-theme="wvg"] .notice.is-warn { background:var(--gold-100); color:var(--plum-900); border-color:var(--gold); }
:root[data-theme="wvg"] .notice.is-warn > .ico { color:var(--gold-700); }
:root[data-theme="wvg"] .notice.is-danger { background:var(--danger-100); color:var(--plum-900); border-color:var(--danger); }
:root[data-theme="wvg"] .notice.is-danger > .ico { color:var(--danger); }
/* A link inside a sentence looks like one. */
:root[data-theme="wvg"] .text-link, :root[data-theme="wvg"] .notice-text a, :root[data-theme="wvg"] .mail-note a {
  color:var(--plum-700); text-decoration:underline; text-underline-offset:2px; font-weight:500;
}
:root[data-theme="wvg"] .overlay { background:rgba(41,26,33,.46); }
:root[data-theme="wvg"] .obj-cover, :root[data-theme="wvg"] .record-cover, :root[data-theme="wvg"] .wiz-sum-cover { background-color:var(--stone); }
:root[data-theme="wvg"] .obj-cover img, :root[data-theme="wvg"] .wiz-ph-img, :root[data-theme="wvg"] .wiz-ph-mini { border-radius:2px; }

/* --- no gradients: the sign-in panel is flat, a listing without a photo is stone.
   The placeholder's gradient is an inline style (core/ui.js), hence !important. --- */
/* The sign-in panel is the sidebar's plum (2026-10-24): before, a pale pink
   that matched nothing else in the brand. Gold only for the mark, as in the
   sidebar. */
:root[data-theme="wvg"] .auth-side { background-image:none; background-color:var(--plum-900); border-right-color:var(--plum-900); color:var(--on-plum); }
:root[data-theme="wvg"] .auth-side .auth-glow { border-color:var(--plum-500); opacity:.6; }
:root[data-theme="wvg"] .auth-side .brand-mark { background:transparent; color:var(--gold); box-shadow:inset 0 0 0 1px var(--plum-500); border-radius:2px; }
:root[data-theme="wvg"] .auth-side .auth-brand-name, :root[data-theme="wvg"] .auth-side .auth-lead h1,
:root[data-theme="wvg"] .auth-side .auth-feat-t { color:var(--ivory); }
:root[data-theme="wvg"] .auth-side .auth-brand-sub, :root[data-theme="wvg"] .auth-side .auth-lead p,
:root[data-theme="wvg"] .auth-side .auth-feat-s, :root[data-theme="wvg"] .auth-side .auth-side-foot { color:var(--on-plum); }
:root[data-theme="wvg"] .auth-side .auth-feat-ico { background:transparent; border-color:var(--plum-500); color:var(--ivory); box-shadow:none; border-radius:2px; }
:root[data-theme="wvg"] .auth-side .auth-lead h1 { font-family:var(--serif); font-weight:400; font-size:32px; line-height:1.2; }
:root[data-theme="wvg"] .auth-top .brand-mark { background:transparent; color:var(--plum-900); box-shadow:inset 0 0 0 1px var(--line-strong); border-radius:2px; }
:root[data-theme="wvg"] .obj-cover, :root[data-theme="wvg"] .record-cover { background:var(--stone) !important; }

/* --- sidebar: plum-900, gold for the small accents --- */
:root[data-theme="wvg"] .sidebar { background:var(--plum-900); border-right-color:var(--plum-900); color:var(--on-plum); }
:root[data-theme="wvg"] .brand-mark { background:transparent; color:var(--gold); box-shadow:inset 0 0 0 1px var(--plum-500); border-radius:2px; }
:root[data-theme="wvg"] .brand-name { color:var(--ivory); }
:root[data-theme="wvg"] .brand-sub, :root[data-theme="wvg"] .sidebar .nav-group-label { color:var(--on-plum); }
:root[data-theme="wvg"] .sidebar .nav-item { color:var(--on-plum); border-radius:2px; }
/* Hover is a faint tint, lighter than the open page (2026-10-04): it used to
   be the brighter of the two, and the item under the mouse looked selected. */
:root[data-theme="wvg"] .sidebar .nav-item:hover { background:rgba(243,240,235,.07); color:var(--ivory); }
:root[data-theme="wvg"] .sidebar .nav-item.active {
  background:var(--plum-700); color:var(--ivory); font-weight:500; box-shadow:inset 3px 0 0 var(--gold);
}
:root[data-theme="wvg"] .sidebar .nav-count { background:transparent; border-color:var(--plum-500); color:var(--on-plum); }
:root[data-theme="wvg"] .sidebar .nav-item.active .nav-count { background:transparent; border-color:var(--gold); color:var(--ivory); }
:root[data-theme="wvg"] .sidebar .nav-count.alert { background:var(--danger); border-color:var(--danger); color:var(--white); }
:root[data-theme="wvg"] .sidebar .nav-dot { background:var(--gold); box-shadow:0 0 0 2px var(--plum-900); }
:root[data-theme="wvg"] .sidebar .nav-dot.alert { background:#E0685F; }
:root[data-theme="wvg"] .sidebar .nav-link-ico { color:var(--on-plum); border-radius:2px; }
:root[data-theme="wvg"] .sidebar .nav-link-ico:hover { background:rgba(243,240,235,.07); color:var(--ivory); }
:root[data-theme="wvg"] .sidebar-foot { border-top-color:var(--plum-500); }
:root[data-theme="wvg"] .sidebar .collapse-btn { color:var(--on-plum); border-radius:2px; }
:root[data-theme="wvg"] .sidebar .collapse-btn:hover { background:rgba(243,240,235,.07); color:var(--ivory); }

/* The menu's scrollbar: thin and plum, not the system's white track. */
:root[data-theme="wvg"] .sidebar .nav { scrollbar-width:thin; scrollbar-color:var(--plum-500) transparent; }
:root[data-theme="wvg"] .sidebar .nav::-webkit-scrollbar { width:8px; }
:root[data-theme="wvg"] .sidebar .nav::-webkit-scrollbar-track { background:transparent; }
:root[data-theme="wvg"] .sidebar .nav::-webkit-scrollbar-thumb { background:var(--plum-500); border-radius:9999px; }

/* --- top bar: the same plum; what sits on it reads in ivory --- */
:root[data-theme="wvg"] .topbar { background:var(--plum-900); border-bottom-color:var(--plum-900); color:var(--on-plum); backdrop-filter:none; }
:root[data-theme="wvg"] .topbar .global-search input { border-radius:2px; border-color:var(--plum-500); background:var(--white); color:var(--plum-900); }
:root[data-theme="wvg"] .topbar .global-search input:focus { border-color:var(--gold); box-shadow:none; }
:root[data-theme="wvg"] .topbar .icon-btn { color:var(--on-plum); }
:root[data-theme="wvg"] .topbar .icon-btn:hover { background:var(--plum-500); color:var(--ivory); }
:root[data-theme="wvg"] .topbar .icon-btn .dot, :root[data-theme="wvg"] .topbar .icon-btn .bell-count { border-color:var(--plum-900); background:var(--danger); }
:root[data-theme="wvg"] .topbar .sep { background:var(--plum-500); }
:root[data-theme="wvg"] .topbar .btn { background:transparent; border-color:var(--on-plum); color:var(--ivory); }
:root[data-theme="wvg"] .topbar .btn:hover { background:var(--plum-500); border-color:var(--ivory); }
:root[data-theme="wvg"] .topbar .btn.primary { background:var(--plum-700); border-color:var(--gold); color:var(--ivory); }
:root[data-theme="wvg"] .topbar .btn.primary:hover { background:var(--plum-500); border-color:var(--gold); }
:root[data-theme="wvg"] .topbar .user-chip { background:transparent; border-color:var(--plum-500); border-radius:2px; color:var(--ivory); }
:root[data-theme="wvg"] .topbar .user-chip:hover { border-color:var(--on-plum); }
:root[data-theme="wvg"] .topbar .user-chip-role { color:var(--on-plum); }

/* --- touch: 44 px where a finger is the pointer --- */
@media (pointer:coarse) {
  :root[data-theme="wvg"] .btn, :root[data-theme="wvg"] .input, :root[data-theme="wvg"] .select { min-height:44px; }
  :root[data-theme="wvg"] .icon-btn, :root[data-theme="wvg"] .icon-btn.xs { min-width:44px; min-height:44px; }
  :root[data-theme="wvg"] .sidebar .nav-item { min-height:44px; }
}
@media (max-width:760px) {
  :root[data-theme="wvg"] .page-title { font-size:28px; }
}

/* Another accent on the brand theme: white on its fill, as that accent was
   measured for (ivory on teal, green, amber or rose falls to 4.1:1). */
:root[data-theme="wvg"]:not([data-accent="brand"]) { --violet-on:#FFFFFF; }

/* The violet accent, when somebody picks it while on the brand theme. */
:root[data-theme="wvg"][data-accent="violet"] {
  --violet:#6B3BF2; --violet-600:#5B2EDC; --violet-700:#4C25BC;
  --violet-soft:#F3EEFE; --violet-soft-2:#E8DFFD; --violet-line:#DACCFB;
  --violet-fill:#6B3BF2; --violet-fill-2:#5B2EDC; --violet-on:#FFFFFF;
}

/* ================================================================= AKCENTAI
   SVARBU del --violet: si zyme naudojama DVIEM vaidmenim - kaip uzpildas
   (baltas tekstas ANT jos) ir kaip TEKSTO spalva ant sviesaus --violet-soft
   fono (.nav-item.active, .tab.on, .chip-filter ir dar ~16 vietu).
   Antrasis vaidmuo yra griezciausias: sviesiose temose teal/green/amber/rose
   ties standartinemis reiksmemis duodavo tik 2,98-4,07:1. Todel cia jos
   patamsintos iki >= 4,8:1 ant --violet-soft, o baltam tekstui ant uzpildo
   naudojama atskira --violet-fill. Keiciant atspalvi butina tikrinti ABU
   vaidmenis: python scripts/diag-contrast.py */
:root[data-accent="blue"] {
  /* Kodel ne #2563EB: ant siltos "sand" temos pavirsiaus jis duoda 4,40:1,
     t.y. trupuciu maziau nei reikia. #2159D8 praeina ant visu temu (min 5,12). */
  --violet:#2159D8; --violet-600:#1D4ED8; --violet-700:#1E40AF;
  --violet-soft:#EAF1FE; --violet-soft-2:#D6E4FD; --violet-line:#BBD2FB;
}
:root[data-accent="teal"] {
  --violet:#0A7469; --violet-600:#0B7F75; --violet-700:#0A6960;
  --violet-soft:#E6F6F3; --violet-soft-2:#CCEDE7; --violet-line:#A9DFD6;
  /* Kodel gilesnis uzpildas: balta ant #0D9488 duoda tik 3,74:1. */
  --violet-fill:#0B8378; --violet-fill-2:#0A776E;
}
:root[data-accent="green"] {
  --violet:#147B3B; --violet-600:#15803D; --violet-700:#136B34;
  --violet-soft:#E8F7EE; --violet-soft-2:#D2EFDD; --violet-line:#B2E3C5;
  /* Kodel gilesnis uzpildas: balta ant #16A34A duoda tik 3,30:1. */
  --violet-fill:#12863D; --violet-fill-2:#147A3A;
}
:root[data-accent="amber"] {
  --violet:#9B5B08; --violet-600:#A66209; --violet-700:#8A5107;
  --violet-soft:#FCF3E2; --violet-soft-2:#F8E6C2; --violet-line:#F0D399;
  /* Kodel gilesnis uzpildas: balta ant #C2740B duoda tik 3,88:1. */
  --violet-fill:#A8650A; --violet-fill-2:#9B5B08;
}
:root[data-accent="rose"] {
  --violet:#C21E63; --violet-600:#BE185D; --violet-700:#9D174D;
  --violet-soft:#FDEDF4; --violet-soft-2:#FBDAE8; --violet-line:#F7BFD6;
  /* Kodel gilesnis uzpildas: balta ant #DB2777 duoda tik 4,48:1. */
  --violet-fill:#DB2475; --violet-fill-2:#BE185D;
}
:root[data-accent="slate"] {
  --violet:#475569; --violet-600:#374151; --violet-700:#2A3441;
  --violet-soft:#EEF1F5; --violet-soft-2:#DDE3EB; --violet-line:#C7D0DC;
}

/* Akcentai tamsiose temose — sviesesni, kad islaikytu kontrasta kaip TEKSTAS
   (nav-item.active, tab.on, chip-filter ant --violet-soft). Uzpildui mygtukuose
   naudojamas atskiras, tamsesnis --violet-fill, ant kurio balta duoda >=4,5:1. */
:root[data-theme="dark"][data-accent="violet"], :root[data-theme="midnight"][data-accent="violet"], :root[data-theme="graphite"][data-accent="violet"] {
  --violet:#A884F6; --violet-600:#8B5CF6; --violet-700:#7C4DEE;
  --violet-soft:#2A2044; --violet-soft-2:#382A58; --violet-line:#4B3A76;
  --violet-fill:#7C4DEE; --violet-fill-2:#6F3BEC;
}
:root[data-theme="dark"][data-accent="blue"], :root[data-theme="midnight"][data-accent="blue"], :root[data-theme="graphite"][data-accent="blue"] {
  --violet:#6997F1; --violet-600:#4A7CE4; --violet-700:#3C6CD2;
  --violet-soft:#182A4A; --violet-soft-2:#1F3862; --violet-line:#2C4C80;
  --violet-fill:#3C6CD2; --violet-fill-2:#2E60C8;
}
:root[data-theme="dark"][data-accent="teal"], :root[data-theme="midnight"][data-accent="teal"], :root[data-theme="graphite"][data-accent="teal"] {
  --violet:#2CBFA8; --violet-600:#22A891; --violet-700:#1B8F7B;
  --violet-soft:#123330; --violet-soft-2:#17453F; --violet-line:#1F5C53;
  --violet-fill:#198371; --violet-fill-2:#167666;
}
:root[data-theme="dark"][data-accent="green"], :root[data-theme="midnight"][data-accent="green"], :root[data-theme="graphite"][data-accent="green"] {
  --violet:#3FBF6A; --violet-600:#34A85B; --violet-700:#2B8F4C;
  --violet-soft:#14321F; --violet-soft-2:#1A442A; --violet-line:#245C39;
  --violet-fill:#288547; --violet-fill-2:#247840;
}
:root[data-theme="dark"][data-accent="amber"], :root[data-theme="midnight"][data-accent="amber"], :root[data-theme="graphite"][data-accent="amber"] {
  --violet:#DE9B2C; --violet-600:#C98A25; --violet-700:#AC751E;
  --violet-soft:#3A2A11; --violet-soft-2:#4C3717; --violet-line:#654A1F;
  --violet-fill:#9C6A1B; --violet-fill-2:#8C6018;
}
:root[data-theme="dark"][data-accent="rose"], :root[data-theme="midnight"][data-accent="rose"], :root[data-theme="graphite"][data-accent="rose"] {
  --violet:#EE6BA5; --violet-600:#DE5A95; --violet-700:#C64B80;
  --violet-soft:#3A1B2A; --violet-soft-2:#4E2438; --violet-line:#6B314C;
  --violet-fill:#C4467C; --violet-fill-2:#B63A6F;
}
:root[data-theme="dark"][data-accent="slate"], :root[data-theme="midnight"][data-accent="slate"], :root[data-theme="graphite"][data-accent="slate"] {
  --violet:#94A3B8; --violet-600:#8494AB; --violet-700:#748498;
  --violet-soft:#232A38; --violet-soft-2:#2E3849; --violet-line:#3E4A5F;
  --violet-fill:#66768A; --violet-fill-2:#5C6A7C;
}

/* Prekes zenklas - WG monograma ant juodo pagrindo, kaip programos ikona
   (assets/icon-192.png). Juodas ir tamsiose temose: taip atrodo zenklas. */
.brand-mark { background: #000; color: #fff; }

/* ===================================================== DIAGRAMU PATAISYMAI */
/* Zenkleliai (legend) po ratu — dvieju stulpeliu tinklelis, ne suspaustas srautas */
.legend.legend-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 4px 14px; align-content: start;
}
.legend-item { min-width: 0; }
.legend-item .legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-item .legend-val { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: auto; }
.legend-item .legend-pct { color: var(--text-3); font-size: 11px; width: 34px; text-align: right; }

/* Horizontalios juostos: etikete tesiasi, o ne fiksuota 132px */
.meter-row { gap: 12px; }
.meter-label { width: auto; min-width: 108px; max-width: 190px; flex: 0 1 auto; }
.meter-track { min-width: 60px; }
.meter-value { width: 74px; }

/* Piltuvo eilutes — vientisas blokas su etikete kaireje */
.funnel-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.funnel-name { width: 148px; flex: none; font-size: 12px; font-weight: 600; }
.funnel-bar { flex: 1 1 auto; height: 22px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.funnel-bar > span { display: block; height: 100%; border-radius: 6px; }
.funnel-bar .funnel-in {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 8px;
  font-size: 11px; font-weight: 700; color: var(--text-2);
}
.funnel-meta { width: 128px; flex: none; text-align: right; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Korteles turinys lygiuojamas i virsu, o ne isteciamas */
.card.fill { display: flex; flex-direction: column; }
.card.fill > .card-body { flex: 1 1 auto; }
.card-body.scroll-y { max-height: 420px; overflow-y: auto; }

/* ================================================== KALENDORIAUS PATAISYMAI */
/* The hour's height comes from views/calendar.js fitSlot (--cal-slot). */
.cal-cell, .cal-time { height: var(--cal-slot, 58px); }
.cal-ev {
  border-radius: 6px; padding: 3px 6px; font-size: 11px; line-height: 1.3;
  border-left-width: 3px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.cal-ev b { font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .ev-sub { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .78; }
.cal-ev.tiny { padding: 1px 5px; }
.cal-ev.tiny b { font-size: 10px; }
.cal-ev.tiny .ev-sub { display: none; }
.cal-more {
  position: absolute; border-radius: 5px; padding: 1px 5px; font-size: 10px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
  cursor: pointer; z-index: 2; white-space: nowrap;
}
.cal-more:hover { background: var(--violet-soft); color: var(--violet); border-color: var(--violet-line); }
.cal-nowline { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--t-red-dot); z-index: 4; pointer-events: none; }
.cal-nowline::before { content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--t-red-dot); }
/* Dalyba is --ui-scale - zr. paaiskinima styles.css ties .app. */
.cal-scroll { overflow: auto; max-height: calc(100vh / var(--ui-scale, 1) - 260px); }
.cal-side { position: sticky; top: calc(var(--topbar-h) + 14px); align-self: start; }

/* ============================================================== SPAUSDINIMAS */
@media print {
  body { zoom: 1; }
  :root[data-theme="dark"], :root[data-theme="midnight"], :root[data-theme="graphite"] {
    --surface:#fff; --surface-2:#fff; --text:#000; --text-2:#333; --line:#ccc;
    /* Prislopintas tekstas ir busenos zenkleliai kitaip liktu tamsios temos
       spalvomis - sviesus tekstas ant tamsaus zenklelio fono, kuris cia
       nebeperspausdinamas, arba vos matomas pilkas tekstas ant balto lapo. */
    --text-3:#6B6673; --text-4:#736C7C;
    --t-slate-fg:#465269; --t-grey-fg:#6B6672; --t-blue-fg:#1D4ED8; --t-indigo-fg:#4338CA;
    --t-violet-fg:#6B3BF2; --t-teal-fg:#0F766E; --t-green-fg:#147B3B; --t-amber-fg:#AD5009;
    --t-red-fg:#BE2F2A; --t-pink-fg:#BE185D; --t-dark-fg:#33303A;
  }
}

/* ------------------------------------------------- judesio mazinimo pageidavimas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Avataru tonai tamsiosiose temose ----
   Sviesi pastele tamsiame fone virstu rysia deme, todel cia atvirksciai:
   tamsus tonuotas fonas ir sviesus to paties atspalvio tekstas.
   Blogiausias kontrastas 6,51:1 (tikrinta visiems 360 laipsniu). */
:root[data-theme="dark"], :root[data-theme="midnight"], :root[data-theme="graphite"] {
  --av-bg-s:55%; --av-bg-l:22%;
  --av-fg-s:60%; --av-fg-l:86%;
}
