/* ==========================================================================
   VT CRM - dizaino sistema
   Dramblio kaulo baze, balti darbo blokai, violetiniai akcentai.
   ========================================================================== */

/* ------------------------------------------------------------------ TOKENS */
:root {
  --ivory-50:#FDFCFA;
  --ivory-100:#FAF7F1;
  --ivory-200:#F5F1E8;
  --ivory-300:#EFEADF;

  --surface:#FFFFFF;
  --surface-2:#FBF9F5;
  --surface-3:#F7F4EE;

  --line:#E7E1D5;
  --line-soft:#F0ECE3;
  --line-strong:#D9D2C4;

  --text:#24222A;
  --text-2:#55515E;
  /* Kodel tamsesni nei anksciau: --text-3 (#8A8593) ant balto dave 3,59:1, o
     --text-4 (#ABA6B2) — 2,22:1, t. y. neperskaitoma pagal WCAG AA. Dabar
     --text-3 laikosi >=4,9:1 ant visu fonu, ant kuriu realiai gula (surface,
     surface-2, surface-3, ivory-100/200, violet-soft), o --text-4 >=4,5:1 ant
     tu, kur ji naudojama (surface, surface-2, surface-3, ivory-100). Atspalvis
     tas pats violetiskai pilkas, pakeistas tik sviesumas — sistema lieka rami. */
  --text-3:#6B6673;
  --text-4:#736C7C;

  --violet:#6B3BF2;
  --violet-600:#5B2EDC;
  --violet-700:#4C25BC;
  --violet-soft:#F3EEFE;
  --violet-soft-2:#E8DFFD;
  --violet-line:#DACCFB;

  /* Kodel atskiri zetonai uzpildui: tamsiose temose --violet turi buti SVIESUS,
     kad butu iskaitomas kaip tekstas ant tamsaus fono (nav-item.active, tab.on),
     bet tada balta ant jo mygtuke duoda vos 3,43:1. Todel mygtuku, avataru ir
     zymekliu uzpildas imamas is --violet-fill, kuris kiekvienoje temoje yra
     pakankamai tamsus baltam tekstui (>=4,5:1). Sviesiose temose jis sutampa su
     akcentu, todel vaizdas nesikeicia. */
  --violet-fill:var(--violet);
  --violet-fill-2:var(--violet-600);
  --violet-on:#FFFFFF;

  --radius-sm:6px;
  --radius:10px;
  --radius-lg:14px;

  --shadow-xs:0 1px 2px rgba(36,34,42,.05);
  --shadow-sm:0 1px 3px rgba(36,34,42,.06), 0 1px 2px rgba(36,34,42,.04);
  --shadow-md:0 4px 16px rgba(36,34,42,.08), 0 1px 3px rgba(36,34,42,.04);
  --shadow-lg:0 18px 48px rgba(36,34,42,.16), 0 2px 8px rgba(36,34,42,.06);

  /* Avataru tonai: sviesus fonas + tamsus to paties atspalvio tekstas.
     Blogiausias kontrastas 4,94:1 (tikrinta visiems atspalviams). */
  --av-bg-s:45%; --av-bg-l:92%;
  --av-fg-s:80%; --av-fg-l:22%;

  --sidebar-w:246px;
  --sidebar-w-collapsed:68px;
  --topbar-h:60px;

  /* Sriftai NEIMAMI is Google Fonts: kiekvienas puslapio atidarymas butu
     perdaves naudotojo IP treciajai saliai be sutikimo (BDAR). 'Inter'
     naudojamas, jei jis idiegtas sistemoje arba savarankiskai priglobtas
     (zr. README); kitu atveju krenta i Segoe UI / SF Pro, kuriu metrika
     artima. Jokiu tinklo uzklausu nera nei vienu atveju. */
  --font:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;

  /* tonai */
  --t-slate-bg:#EEF1F6;  --t-slate-fg:#465269;  --t-slate-dot:#7387A8;
  --t-grey-bg:#F1EFEA;   --t-grey-fg:#6B6672;   --t-grey-dot:#9C96A3;
  --t-blue-bg:#E8F0FE;   --t-blue-fg:#1D4ED8;   --t-blue-dot:#3B82F6;
  --t-indigo-bg:#EAE9FD; --t-indigo-fg:#4338CA; --t-indigo-dot:#6366F1;
  --t-violet-bg:#F2EDFE; --t-violet-fg:#6B3BF2; --t-violet-dot:#8B5CF6;
  --t-teal-bg:#E1F5F1;   --t-teal-fg:#0F766E;   --t-teal-dot:#14B8A6;
  --t-green-bg:#E6F6EC;  --t-green-fg:#147B3B;  --t-green-dot:#22C55E;
  --t-amber-bg:#FDF3DE;  --t-amber-fg:#AD5009;  --t-amber-dot:#F59E0B;
  --t-red-bg:#FDECEB;    --t-red-fg:#BE2F2A;    --t-red-dot:#EF4444;
  --t-pink-bg:#FCEAF2;   --t-pink-fg:#BE185D;   --t-pink-dot:#EC4899;
  --t-dark-bg:#E8E6E1;   --t-dark-fg:#33303A;   --t-dark-dot:#4B4753;
  /* "Closed well" (done, signed, paid): the theme's green, unless a theme
     gives it a look of its own -- the brand theme does (assets/themes.css). */
  --t-done-bg:var(--t-green-bg); --t-done-fg:var(--t-green-fg); --t-done-dot:var(--t-green-dot);
}

/* ------------------------------------------------------------------- BASE */
*, *::before, *::after { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  background:var(--ivory-200);
  color:var(--text);
  font-family:var(--font);
  font-size:13.5px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5 { margin:0; font-weight:600; letter-spacing:-.01em; color:var(--text); }
p { margin:0; }
a { color:inherit; text-decoration:none; }
button, input, select, textarea { font:inherit; color:inherit; }
ul, ol { margin:0; padding:0; list-style:none; }
table { border-collapse:collapse; width:100%; }
::selection { background:var(--violet-soft-2); }

.ico { display:inline-flex; align-items:center; justify-content:center; flex:none; }
.ico svg { display:block; width:16px; height:16px; stroke-width:1.6; }
.ico-14 svg { width:14px; height:14px; }
.ico-18 svg { width:18px; height:18px; }
.ico-20 svg { width:20px; height:20px; }
.ico-24 svg { width:24px; height:24px; }

.mono { font-family:var(--mono); font-size:.92em; letter-spacing:-.01em; }
.num { font-variant-numeric:tabular-nums; }
.muted { color:var(--text-3); }
.muted-2 { color:var(--text-2); }
.small { font-size:12px; }
.xsmall { font-size:11px; }
.strong { font-weight:600; }
.nowrap { white-space:nowrap; }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.right { text-align:right; }
.center { text-align:center; }
.hidden { display:none !important; }
.grow { flex:1 1 auto; min-width:0; }
.row { display:flex; align-items:center; gap:8px; }
.row-tight { display:flex; align-items:center; gap:5px; }
.col { display:flex; flex-direction:column; gap:4px; min-width:0; }
.wrap { flex-wrap:wrap; }
.sep { width:1px; height:18px; background:var(--line); flex:none; }

/* ------------------------------------------------------------------ SHELL */
/* body { zoom: --ui-scale } sumazina/padidina visa islieta, taciau 100vh
   ir toliau reiskia NEmastelinta lango auksti. Todel esant 0,85 sonine
   juosta uzimdavo tik 85 % ekrano, o esant 1,35 — islisdavo. Dalyba is
   mastelio grazina tikra ekrano auksti bet kuriuo masteliu. */
.app { display:flex; min-height:calc(100vh / var(--ui-scale, 1)); }

.sidebar {
  width:var(--sidebar-w); flex:none;
  background:var(--ivory-100);
  border-right:1px solid var(--line);
  display:flex; flex-direction:column;
  position:sticky; top:0; height:calc(100vh / var(--ui-scale, 1));
  transition:width .18s ease;
}
.app.collapsed .sidebar { width:var(--sidebar-w-collapsed); }

.brand { display:flex; align-items:center; gap:10px; padding:16px 16px 14px; }
.brand-mark {
  width:32px; height:32px; border-radius:8px; flex:none;
  background:#000; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.08);
}
/* The WG monogram (core/ui.js logoMark): drawn in currentColor. */
.logo-mark { display:inline-flex; line-height:0; }
.logo-mark svg { display:block; width:100%; height:auto; }
.brand-mark .logo-mark { width:62%; }
.brand-text { min-width:0; }
.brand-name { font-size:13px; font-weight:700; color:var(--text); }
.brand-sub { font-size:10px; letter-spacing:.11em; text-transform:uppercase; color:var(--text-3); font-weight:600; }
.app.collapsed .brand-text { display:none; }

.nav { flex:1 1 auto; overflow-y:auto; padding:4px 10px 12px; }
.nav-group-label {
  font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-4); padding:14px 8px 6px;
}
.app.collapsed .nav-group-label { opacity:0; height:14px; padding:6px 0 0; overflow:hidden; }
.nav-item {
  display:flex; align-items:center; gap:10px;
  padding:7px 9px; border-radius:8px; margin-bottom:1px;
  color:var(--text-2); font-weight:500; font-size:13px;
  cursor:pointer; position:relative; white-space:nowrap;
}
.nav-item:hover { background:var(--ivory-300); color:var(--text); }
.nav-item.active { background:var(--violet-soft); color:var(--violet); font-weight:600; }
.nav-item.active .ico svg { stroke-width:2; }
.nav-item .ico { color:currentColor; }
.nav-count {
  margin-left:auto; font-size:11px; font-weight:600; color:var(--text-3);
  background:var(--surface); border:1px solid var(--line); border-radius:20px;
  padding:0 6px; min-width:20px; text-align:center; line-height:17px;
}
/* NE #fff: tamsioje temoje tai virsdavo rysku baltu langeliu soninėje juostoje.
   --surface sviesioje temoje ir taip yra baltas, todel vaizdas nepasikeicia. */
.nav-item.active .nav-count { background:var(--surface); border-color:var(--violet-line); color:var(--violet); }
.nav-count.alert { background:var(--t-red-bg); border-color:transparent; color:var(--t-red-fg); }
/* Pokalbiai: yra neperskaitytu - taskas, ne skaicius (core/app.js renderNav). */
.nav-dot { width:8px; height:8px; border-radius:50%; flex:none; background:var(--violet); box-shadow:0 0 0 2px var(--surface); }
.app.collapsed .nav-item { position:relative; }
.app.collapsed .nav-dot { position:absolute; top:6px; right:8px; }
.app.collapsed .nav-label, .app.collapsed .nav-count, .app.collapsed .nav-ext { display:none; }
.nav-ext { display:inline-flex; opacity:.45; }
/* The outside links are one row: the word and four icons (core/app.js
   renderQuickLinks). In the narrow menu they stand in a column. */
.nav-links { display:flex; align-items:center; gap:2px; padding:12px 4px 2px 8px; }
.nav-links .nav-group-label { padding:0; flex:1 1 auto; min-width:0; }
.nav-link-ico {
  width:30px; height:30px; border-radius:8px; flex:none; display:inline-flex; align-items:center; justify-content:center;
  color:var(--text-2);
}
.nav-link-ico:hover { background:var(--ivory-300); color:var(--text); }
button.nav-link-ico { border:0; background:none; padding:0; cursor:pointer; font:inherit; }
.app.collapsed .nav-links { flex-direction:column; padding:8px 0 0; }
.app.collapsed .nav-links .nav-group-label { display:none; }
/* A red dot: the mailbox behind this entry has stopped. */
.nav-dot.alert { background:var(--t-red-dot); }
.nav-link-out:hover .nav-ext, .nav-link-out:focus-visible .nav-ext { opacity:.9; }
.app.collapsed .nav-item { justify-content:center; padding:9px; }

.sidebar-foot { border-top:1px solid var(--line); padding:10px; }
.collapse-btn {
  display:flex; align-items:center; gap:10px; width:100%;
  background:none; border:0; padding:7px 9px; border-radius:8px;
  color:var(--text-3); cursor:pointer; font-size:12.5px; font-weight:500;
}
.collapse-btn:hover { background:var(--ivory-300); color:var(--text); }
.app.collapsed .collapse-btn span:not(.ico) { display:none; }
.app.collapsed .collapse-btn { justify-content:center; }

.main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }

/* ----------------------------------------------------------------- TOPBAR */
.topbar {
  height:var(--topbar-h); flex:none;
  background:rgba(250,247,241,.88); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:12px; padding:0 20px;
  position:sticky; top:0; z-index:60;
}
.global-search { position:relative; flex:1 1 auto; max-width:460px; }
.global-search .ico { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:var(--text-3); pointer-events:none; }
.global-search input {
  width:100%; height:34px; border-radius:8px; border:1px solid var(--line);
  background:var(--surface); padding:0 74px 0 32px; font-size:13px; outline:none;
}
.global-search input::placeholder { color:var(--text-4); }
.global-search input:focus { border-color:var(--violet-line); box-shadow:0 0 0 3px var(--violet-soft); }
.kbd {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  font-size:10.5px; font-weight:600; color:var(--text-4);
  border:1px solid var(--line); border-radius:5px; padding:1px 5px; background:var(--surface-2);
  font-family:var(--mono);
}
.topbar-spacer { flex:1 1 auto; }

.icon-btn {
  width:34px; height:34px; border-radius:8px; border:1px solid transparent;
  background:none; color:var(--text-2); display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; position:relative; flex:none;
}
.icon-btn:hover { background:var(--ivory-300); color:var(--text); }
.icon-btn.xs { width:26px; height:26px; }
.icon-btn .dot {
  position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%;
  background:var(--t-red-dot); border:1.5px solid var(--ivory-100);
}
/* Varpelio skaicius - neperskaityti pranesimai (core/app.js drawBell). */
.icon-btn .bell-count {
  position:absolute; top:1px; right:0; min-width:17px; height:17px; padding:0 4px;
  border-radius:9px; background:var(--t-red-dot); color:#fff; border:1.5px solid var(--ivory-100);
  font-size:10px; font-weight:700; line-height:14px; text-align:center; font-variant-numeric:tabular-nums;
  pointer-events:none;
}

/* ------------------------------------------------ PRANESIMU SRAUTAS (varpelis) */
.nf-bar { display:flex; align-items:center; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
/* "This device gets no notifications while the CRM is closed" (core/app.js drawDevice). */
.nf-device {
  display:flex; gap:10px; align-items:flex-start; margin-bottom:12px; padding:10px 12px;
  border:1px solid var(--violet-line); border-radius:10px; background:var(--violet-soft); color:var(--text-2);
}
.nf-device > .ico { color:var(--violet); flex:none; margin-top:1px; }
.nf-seg { display:inline-flex; padding:2px; border-radius:8px; background:var(--ivory-300); }
.nf-seg button {
  border:0; background:transparent; color:var(--text-2); font:inherit; font-size:12px; font-weight:600;
  padding:5px 11px; border-radius:6px; cursor:pointer;
}
.nf-seg button.on { background:var(--surface); color:var(--text); box-shadow:var(--shadow-xs); }
.nf-head {
  font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-3); margin:14px 2px 6px;
}
.nf-list .nf-head:first-child { margin-top:2px; }
.nf-empty { padding:18px 4px; }
.nf-item {
  display:flex; align-items:flex-start; gap:11px; width:100%; text-align:left;
  padding:10px 10px; margin:0 0 2px; border:0; border-radius:10px;
  background:transparent; color:var(--text); font:inherit; cursor:pointer;
}
.nf-item:hover { background:var(--surface-2); }
.nf-item.unread { background:var(--violet-soft); }
.nf-item.unread:hover { background:var(--violet-soft-2); }
.nf-item:focus-visible { outline:2px solid var(--violet); outline-offset:1px; }
.nf-lead { position:relative; flex:none; width:34px; height:34px; }
.nf-lead .avatar { width:34px; height:34px; font-size:12px; }
.nf-ico { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.nf-kind {
  position:absolute; right:-4px; bottom:-3px; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 2px var(--surface);
}
.nf-kind .ico svg { width:11px; height:11px; stroke-width:2; }
.nf-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.nf-line { font-size:12.5px; line-height:1.4; color:var(--text-2); }
.nf-line b { color:var(--text); font-weight:650; }
.nf-title { font-size:12.5px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nf-sub {
  font-size:12px; color:var(--text-3); overflow:hidden; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.nf-meta { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-3); margin-top:1px; }
.nf-count { font-weight:600; color:var(--text-2); }
.nf-dot { flex:none; width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--violet); }
.nf-attention { margin-top:6px; }
.nf-attention .list { border:1px solid var(--line-soft); border-radius:10px; overflow:hidden; }

.user-chip {
  display:flex; align-items:center; gap:9px; padding:4px 9px 4px 4px;
  border-radius:9px; border:1px solid var(--line); background:var(--surface);
  cursor:pointer; max-width:230px;
}
.user-chip:hover { border-color:var(--line-strong); }
.user-chip-meta { min-width:0; line-height:1.25; }
.user-chip-name { font-size:12.5px; font-weight:600; }
.user-chip-role { font-size:10.5px; color:var(--text-3); }

/* ---------------------------------------------------------------- AVATARS */
/* Sizes a step larger since 2026-10-24 (owner: "Make Users Logos Larger and
   much larger when opening there profile"): 32 / sm 24 / lg 48 / xl 88, and
   xxl 144 for a person's own profile. */
.avatar {
  width:32px; height:32px; border-radius:50%; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:11.5px; font-weight:700; letter-spacing:.01em;
  /* Atspalvi (--av-h) nustato JS pagal zmogu, sodruma ir sviesuma - tema.
     Fonas ir tekstas yra to paties atspalvio, tik priesinguose sviesumo
     galuose; taip inicialai iskaitomi visais 360 laipsniu (zr. core/ui.js). */
  --av-h:265;
  background:hsl(var(--av-h), var(--av-bg-s), var(--av-bg-l));
  color:hsl(var(--av-h), var(--av-fg-s), var(--av-fg-l));
  user-select:none;
}
.avatar.sm { width:24px; height:24px; font-size:9.5px; }
/* Profilio nuotrauka virs inicialu (core/ui.js avatar, migracija 055). */
.avatar { position:relative; overflow:hidden; }
.avatar .avatar-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.avatar.lg { width:48px; height:48px; font-size:16px; }
.avatar.xl { width:88px; height:88px; font-size:30px; border-radius:22px; }
.avatar.xxl { width:144px; height:144px; font-size:48px; border-radius:34px; }
.avatar.zoomable { cursor:zoom-in; }
.avatar-stack { display:inline-flex; }
.avatar-stack .avatar { border:2px solid var(--surface); margin-left:-7px; }
.avatar-stack .avatar:first-child { margin-left:0; }
.avatar-more {
  background:var(--surface-3); color:var(--text-2); font-size:9.5px;
  border:2px solid var(--surface); margin-left:-7px;
}

/* --------------------------------------------------------------- CONTENT */
.content { flex:1 1 auto; padding:20px 24px 56px; max-width:1720px; width:100%; }
/* core/app.js router.render: kiekvieno perpiesimo konteineris. Dezutes
   neturi - puslapio dalys isdestomos taip, lyg butu tiesiai .content viduje. */
.view-host { display:contents; }
.page-head { display:flex; align-items:flex-start; gap:16px; margin-bottom:18px; }
.page-head .grow { min-width:0; }
.breadcrumbs { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-3); margin-bottom:5px; }
.breadcrumbs a:hover { color:var(--violet); }
.page-title { font-size:21px; font-weight:650; letter-spacing:-.02em; }
.page-sub { font-size:12.5px; color:var(--text-3); margin-top:3px; }
.page-actions { display:flex; align-items:center; gap:8px; flex:none; }

/* Uzblokuotas klientas (migracija 065): kortele, uzklausa, forma. */
.blocked-note {
  display:flex; align-items:flex-start; gap:8px; font-size:12.5px; line-height:1.5;
  color:var(--t-red-fg); background:var(--t-red-bg); border-radius:10px; padding:10px 12px;
}
.blocked-note > .ico-14 { flex:none; margin-top:2px; }
.blocked-note .strong { font-weight:600; }
.scope-note {
  display:inline-flex; align-items:center; gap:6px; font-size:11.5px;
  color:var(--text-3); background:var(--surface-3); border:1px solid var(--line-soft);
  border-radius:20px; padding:2px 10px 2px 8px;
}

/* --------------------------------------------------------------- BUTTONS */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:32px; padding:0 12px; border-radius:8px; font-size:12.5px; font-weight:600;
  border:1px solid var(--line); background:var(--surface); color:var(--text);
  cursor:pointer; white-space:nowrap; transition:background .12s, border-color .12s;
}
.btn:hover { background:var(--surface-2); border-color:var(--line-strong); }
.btn:active { transform:translateY(.5px); }
.btn.primary { background:var(--violet-fill); border-color:var(--violet-fill); color:var(--violet-on); box-shadow:0 1px 2px rgba(107,59,242,.24); }
.btn.primary:hover { background:var(--violet-fill-2); border-color:var(--violet-fill-2); }
.btn.ghost { background:transparent; border-color:transparent; color:var(--text-2); }
.btn.ghost:hover { background:var(--ivory-300); color:var(--text); }
.btn.danger { color:var(--t-red-fg); border-color:var(--t-red-bg); background:var(--t-red-bg); }
/* Ne fiksuota hex spalva: ta buvo visada sviesiai rozine, tad tamsioje temoje
   --t-red-fg (sviesi lasisos spalva, skirta tamsiam fonui) ant jos duodavo
   ~1,6:1. --t-red-bg jau yra fonas, ant kurio --t-red-fg garantuotai skaitomas
   kiekvienoje temoje (zr. .t-red), todel hover tik paryskina ji, o ne keicia. */
.btn.danger:hover { background:var(--t-red-bg); filter:brightness(1.08); border-color:var(--t-red-dot); }
.btn.sm { height:27px; padding:0 9px; font-size:11.5px; border-radius:7px; }
.btn.btn-more { width:32px; padding:0; flex:none; color:var(--text-2); }
.btn.lg { height:36px; padding:0 15px; font-size:13px; }
.btn[disabled] { opacity:.5; pointer-events:none; }
.btn-group { display:inline-flex; }
.btn-group .btn { border-radius:0; margin-left:-1px; }
.btn-group .btn:first-child { border-radius:8px 0 0 8px; margin-left:0; }
.btn-group .btn:last-child { border-radius:0 8px 8px 0; }

.seg { display:inline-flex; background:var(--surface-3); border:1px solid var(--line); border-radius:8px; padding:2px; gap:2px; }
.seg button {
  border:0; background:none; padding:0 10px; height:26px; border-radius:6px;
  font-size:12px; font-weight:600; color:var(--text-3); cursor:pointer; display:inline-flex; align-items:center; gap:5px;
}
.seg button:hover { color:var(--text); }
.seg button.on { background:var(--surface); color:var(--violet); box-shadow:var(--shadow-xs); }

/* ---------------------------------------------------------------- INPUTS */
.field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.field label { font-size:11.5px; font-weight:600; color:var(--text-2); }
.input, .select, textarea.input {
  height:32px; border-radius:8px; border:1px solid var(--line); background:var(--surface);
  padding:0 10px; font-size:12.5px; outline:none; color:var(--text); width:100%;
}
textarea.input { height:auto; padding:8px 10px; resize:vertical; line-height:1.5; }
.input:focus, .select:focus, textarea.input:focus { border-color:var(--violet-line); box-shadow:0 0 0 3px var(--violet-soft); }
/* Halo virs yra tik dekoratyvus (~1,1:1 kontrastas) - tikras klaviaturos
   fokuso ziedas su pakankamu kontrastu visose temose: */
.input:focus-visible, .select:focus-visible, textarea.input:focus-visible, .global-search input:focus-visible {
  outline:2px solid var(--violet); outline-offset:1px;
}
.select {
  appearance:none; padding-right:26px; cursor:pointer;
  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='%238A8593' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 7px center; background-size:14px;
}
.select.sm, .input.sm { height:28px; font-size:12px; }
.search-input { position:relative; }
.search-input .ico { position:absolute; left:9px; top:50%; transform:translateY(-50%); color:var(--text-3); }
.search-input input { padding-left:30px; }
.checkbox {
  width:15px; height:15px; border-radius:4px; border:1.5px solid var(--line-strong);
  background:var(--surface); cursor:pointer; flex:none; display:inline-flex;
  align-items:center; justify-content:center; color:transparent; padding:0;
}
.checkbox:hover { border-color:var(--violet); }
.checkbox.on, .checkbox.mixed { background:var(--violet-fill); border-color:var(--violet-fill); color:var(--violet-on); }
.checkbox svg { width:11px; height:11px; stroke-width:3; }

.switch { width:34px; height:19px; border-radius:20px; background:var(--line-strong); position:relative; cursor:pointer; border:0; flex:none; transition:background .15s; padding:0; }
.switch::after { content:''; position:absolute; top:2px; left:2px; width:15px; height:15px; border-radius:50%; background:var(--violet-on); transition:transform .15s; box-shadow:var(--shadow-xs); }
.switch.on { background:var(--violet-fill); }
.switch.on::after { transform:translateX(15px); }

/* ---------------------------------------------------------------- BADGES */
.badge {
  display:inline-flex; align-items:center; gap:5px; height:21px; padding:0 8px;
  border-radius:6px; font-size:11.5px; font-weight:600; white-space:nowrap; letter-spacing:-.005em;
}
.badge .dot { width:6px; height:6px; border-radius:50%; background:currentColor; flex:none; opacity:.85; }
.badge.lg { height:25px; font-size:12px; padding:0 10px; }
.badge.plain { background:var(--surface-3); color:var(--text-2); }
.badge.outline { background:transparent; border:1px solid var(--line); color:var(--text-2); }

.t-slate  { background:var(--t-slate-bg);  color:var(--t-slate-fg); }
.t-grey   { background:var(--t-grey-bg);   color:var(--t-grey-fg); }
.t-blue   { background:var(--t-blue-bg);   color:var(--t-blue-fg); }
.t-indigo { background:var(--t-indigo-bg); color:var(--t-indigo-fg); }
.t-violet { background:var(--t-violet-bg); color:var(--t-violet-fg); }
.t-teal   { background:var(--t-teal-bg);   color:var(--t-teal-fg); }
.t-green  { background:var(--t-green-bg);  color:var(--t-green-fg); }
.t-amber  { background:var(--t-amber-bg);  color:var(--t-amber-fg); }
.t-red    { background:var(--t-red-bg);    color:var(--t-red-fg); }
.t-pink   { background:var(--t-pink-bg);   color:var(--t-pink-fg); }
.t-dark   { background:var(--t-dark-bg);   color:var(--t-dark-fg); }
/* "Closed well" (done, signed, paid): green unless the theme says otherwise. */
.t-done   { background:var(--t-done-bg, var(--t-green-bg)); color:var(--t-done-fg, var(--t-green-fg)); }
.t-muted  { background:transparent;        color:var(--text-3); }

/* Uzduoties rusis (migracija 061): maza spalvota ikona prie pavadinimo. */
.task-kind { width:22px; height:22px; border-radius:6px; flex:none; display:inline-flex; align-items:center; justify-content:center; }
.task-kind .ico svg { width:13px; height:13px; }
/* Uzduotys pagal objekto etapa (views/tasks.js): stulpeliai slenka i sona. */
.tk-stage-board { display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; align-items:flex-start; }
.tk-stage-col { flex:0 0 236px; background:var(--surface-2); border:1px solid var(--line-soft); border-radius:12px; padding:8px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.tk-stage-head { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:2px 2px 4px; }
.tk-stage-list { display:flex; flex-direction:column; gap:6px; }
.tk-stage-card { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:8px 9px; display:flex; flex-direction:column; gap:6px; cursor:pointer; }
.tk-stage-card:hover { border-color:var(--line-strong); }
/* Objekto darbo eiga (views/object-detail.js, migracija 061). */
.wf-steps { display:flex; flex-wrap:wrap; gap:6px; }
.wf-step { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-size:12px; font-weight:600; color:var(--text-3); cursor:pointer; }
.wf-step.past { color:var(--t-green-fg); border-color:var(--t-green-bg); background:var(--t-green-bg); }
.wf-step.now { color:var(--t-violet-fg); border-color:var(--violet); background:var(--t-violet-bg); }
.wf-step.open { box-shadow:0 0 0 2px var(--violet-soft); }
.wf-row { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid var(--line-soft); min-width:0; }
.wf-row:last-child { border-bottom:0; }
.wf-row .grow { min-width:0; }
.wf-doc-acts { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
button.link-plain { background:none; border:0; padding:0; font:inherit; color:var(--violet); cursor:pointer; text-align:left; display:inline-flex; align-items:center; gap:3px; }
button.link-plain:hover { text-decoration:underline; text-underline-offset:2px; }
@media (max-width: 640px) { .wf-row { flex-wrap:wrap; } .wf-doc-acts { width:100%; justify-content:flex-start; } }

.prio { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; white-space:nowrap; }
.prio .bar { width:3px; height:13px; border-radius:2px; background:currentColor; flex:none; }
.prio.p-low { color:var(--t-grey-fg); }
.prio.p-mid { color:var(--t-blue-fg); }
.prio.p-high { color:var(--t-amber-fg); }
.prio.p-critical { color:var(--t-red-fg); }

.tag {
  display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 7px;
  border-radius:5px; font-size:11px; font-weight:500;
  background:var(--surface-3); color:var(--text-2); border:1px solid var(--line-soft);
}
.id-chip {
  font-family:var(--mono); font-size:11.5px; font-weight:600; color:var(--text-2);
  background:var(--surface-3); border:1px solid var(--line-soft);
  border-radius:5px; padding:1px 6px; white-space:nowrap;
}
a.id-chip:hover, .id-chip.link:hover { color:var(--violet); border-color:var(--violet-line); background:var(--violet-soft); }

/* ----------------------------------------------------------------- CARDS */
.card {
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-xs);
}
.card-head {
  display:flex; align-items:center; gap:10px; padding:13px 16px;
  border-bottom:1px solid var(--line-soft); min-height:48px;
}
.card-title { font-size:13.5px; font-weight:650; letter-spacing:-.01em; }
.card-sub { font-size:11.5px; color:var(--text-3); }
.card-actions { margin-left:auto; display:flex; align-items:center; gap:6px; }
.card-body { padding:16px; }
.card-body.tight { padding:10px 16px; }
.card-body.flush { padding:0; }
.card-foot { padding:10px 16px; border-top:1px solid var(--line-soft); display:flex; align-items:center; gap:8px; }
.link-more { font-size:12px; font-weight:600; color:var(--violet); cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.link-more:hover { color:var(--violet-600); }
button.link-more { border:0; background:none; padding:0; font-family:inherit; }
/* Text as it was written: paragraphs, lines, lists (a property's
   description, the agent's note). */
.prose-text { font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
/* A person or a record that opens on a click, without looking like a link
   until pointed at. */
a.person-link, a.link-plain { color:inherit; text-decoration:none; min-width:0; }
a.person-link:hover, a.link-plain:hover { color:var(--violet); text-decoration:underline; text-underline-offset:2px; }
a.link-plain.li-title { display:block; }
.open-slot:empty { display:none; }

.grid { display:grid; gap:14px; }
.g-2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns:repeat(4, minmax(0,1fr)); }
.g-6 { grid-template-columns:repeat(6, minmax(0,1fr)); }
/* minmax(0,...) yra butinas, o ne puosybinis: plikas „1fr“ reiskia
   minmax(auto,1fr), o „auto“ neleidzia stulpeliui susitraukti maziau uz
   turinio min-content ploti. Idejus placia lentele, toks stulpelis atsisako
   mazeti, isstumia tinkleli uz puslapio ribu, o gretimas stulpelis suspaudziamas
   iki vieno zodzio eiluteje. Zemiau esantys g-2/g-3/g-4/g-6 tai jau daro
   teisingai — cia truko. */
.g-2-1 { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
.g-1-2 { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
.g-3-2 { grid-template-columns:minmax(0,3fr) minmax(0,2fr); }
.span-2 { grid-column:span 2; }
.span-3 { grid-column:span 3; }
.span-full { grid-column:1 / -1; }

/* ------------------------------------------------------------------- KPI */
/* A slim tile (2026-10-04): the number and its label on one line, the note
   under them -- about 66 px tall, not 96, so the list below starts higher.
   The markup is unchanged (core/ui.js ui.kpi); .kpi-top lends its two
   children to the grid. */
.kpi {
  padding:10px 14px; display:grid; grid-template-columns:auto minmax(0, 1fr) auto;
  grid-template-areas:"value label ico" "foot foot foot"; column-gap:10px; row-gap:3px;
  align-items:center; align-content:center; min-width:0;
}
.kpi-top { display:contents; }
.kpi-label {
  grid-area:label; font-size:12px; font-weight:600; color:var(--text-3); line-height:1.25;
  min-width:0; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.kpi-ico { grid-area:ico; width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; }
.kpi-value { grid-area:value; font-size:23px; font-weight:660; letter-spacing:-.03em; line-height:1.15; font-variant-numeric:tabular-nums; white-space:nowrap; }
.kpi-value .unit { font-size:13px; font-weight:600; color:var(--text-3); margin-left:3px; letter-spacing:0; }
.kpi-foot { grid-area:foot; display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-3); min-width:0; }
.kpi-foot > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kpi-delta { display:inline-flex; align-items:center; gap:3px; font-weight:600; }
.kpi-delta.up { color:var(--t-green-fg); }
.kpi-delta.down { color:var(--t-red-fg); }
.kpi.clickable { cursor:pointer; }
/* A zero is quiet; a number that needs attention is not. */
.kpi.is-zero .kpi-value { color:var(--text-3); font-weight:500; }
.kpi.is-zero .kpi-ico { opacity:.55; }
.kpi.is-alert { border-color:var(--t-red-dot); }
.kpi.is-alert .kpi-value, .kpi.foot-alert .kpi-foot { color:var(--t-red-fg); }
.kpi.foot-alert .kpi-foot { font-weight:600; }
/* "Worth a look": amber, a step below the red of "late". */
.kpi.is-warn { border-color:var(--t-amber-dot); }
.kpi.is-warn .kpi-value, .kpi.foot-warn .kpi-foot { color:var(--t-amber-fg); }
.kpi.foot-warn .kpi-foot { font-weight:600; }
.kpi.clickable:hover { background:var(--surface-2); }
a.kpi { color:inherit; text-decoration:none; }
.kpi.clickable:focus-visible { outline:2px solid var(--violet); outline-offset:2px; }

/* ---------------------------------------------------------------- TABLES */
/* max-height + overflow:auto (ne vien overflow-x) - kitaip .table-wrap
   niekad netampa realiu slinkties konteineriu, o th{position:sticky} zemiau
   niekada nepasilieka matomas slenkant. */
.table-wrap { max-height:calc(100vh / var(--ui-scale, 1) - 220px); overflow:auto; }
table.tbl { font-size:12.5px; }
table.tbl th {
  text-align:left; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-3); padding:8px 12px; background:var(--surface-2);
  border-bottom:1px solid var(--line); white-space:nowrap; position:sticky; top:0; z-index:2;
}
table.tbl th.sortable { cursor:pointer; user-select:none; }
table.tbl th .th-sort {
  all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center;
  font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit; border-radius:4px;
}
table.tbl th .th-sort:focus-visible { outline:2px solid var(--violet); outline-offset:2px; }
table.tbl th.sortable:hover { color:var(--text); }
table.tbl th .sort-ico { display:inline-flex; margin-left:4px; opacity:.35; vertical-align:-2px; }
table.tbl th.sorted { color:var(--violet); }
table.tbl th.sorted .sort-ico { opacity:1; }
table.tbl td { padding:9px 12px; border-bottom:1px solid var(--line-soft); vertical-align:middle; }
table.tbl tbody tr:hover td { background:var(--surface-2); }
table.tbl tbody tr.clickable { cursor:pointer; }
table.tbl tbody tr.selected td { background:var(--violet-soft); }
table.tbl tbody tr:last-child td { border-bottom:0; }
table.tbl td.right, table.tbl th.right { text-align:right; }
table.tbl td.center, table.tbl th.center { text-align:center; }
table.tbl .col-check { width:36px; padding-left:14px; padding-right:0; }
table.tbl.dense td { padding:6px 12px; }
.cell-main { font-weight:600; color:var(--text); }
.cell-sub { font-size:11.5px; color:var(--text-3); }
.cell-2 { display:flex; flex-direction:column; gap:1px; min-width:0; }
/* An ID in a two-line cell is as wide as its text, not as the column. */
.cell-2 > .id-chip, .cell-2 > .badge, .cell-2 > .copy-link { align-self:flex-start; }
.kpi-foot .text-link { color:inherit; font-weight:inherit; }
.meter-zero { padding:6px 0 2px; }
/* Eiluciu veiksmai: PRIBLESKINTI, ne nematomi.

   Buvo opacity:0 ir pilnas rysklumas tik uzvedus pele. Tai reiske tris
   dalykus: pele nenaudojantis zmogus ju nerasdavo niekada, klaviatura
   pasiekiamas mygtukas buvo fokusuojamas ir NEMATOMAS, o naujas naudotojas
   apskritai nezinojo, kad eilute turi veiksmu - klausimas "kodel peržiūros
   mygtukas atsiranda tik uzvedus?" yra butent apie sita.

   .45 uztenka, kad eilute liktu rami, bet mygtukas butu matomas. :focus-within
   yra ne papuosimas: be jo Tab nuvestu i mygtuka, kurio nesimato. */
.row-actions { display:flex; gap:2px; opacity:.45; transition:opacity .12s ease; }
tr:hover .row-actions,
.list-item:hover .row-actions,
.row-actions:focus-within { opacity:1; }

/* filtru juosta */
.toolbar {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:10px 14px; border-bottom:1px solid var(--line-soft); background:var(--surface);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}
.toolbar .search-input { width:250px; }
.toolbar .select { width:auto; min-width:120px; }
.filter-tabs { display:flex; gap:2px; padding:8px 14px 0; border-bottom:1px solid var(--line-soft); background:var(--surface); border-radius:var(--radius-lg) var(--radius-lg) 0 0; overflow-x:auto; }
.filter-tab {
  padding:6px 11px 9px; font-size:12.5px; font-weight:600; color:var(--text-3);
  cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; display:flex; align-items:center; gap:6px;
}
.filter-tab:hover { color:var(--text); }
.filter-tab.on { color:var(--violet); border-bottom-color:var(--violet); }
.filter-tab .n { font-size:11px; background:var(--surface-3); border-radius:10px; padding:0 6px; color:var(--text-3); font-weight:600; }
.filter-tab.on .n { background:var(--violet-soft); color:var(--violet); }

.active-filters { display:flex; gap:6px; flex-wrap:wrap; padding:0 14px 10px; background:var(--surface); }
.chip-filter {
  display:inline-flex; align-items:center; gap:5px; height:23px; padding:0 4px 0 9px;
  border-radius:6px; font-size:11.5px; font-weight:600;
  background:var(--violet-soft); color:var(--violet); border:1px solid var(--violet-line);
}
.chip-filter button { border:0; background:none; cursor:pointer; color:inherit; display:flex; padding:2px; border-radius:4px; }
.chip-filter button:hover { background:var(--violet-soft-2); }

/* masiniai veiksmai */
.bulk-bar {
  display:flex; align-items:center; gap:10px; padding:9px 14px;
  /* --violet-700, ne --violet: siame fone tekstas naudoja zenkla, kuris
     assets/themes.css garantuotas >=4,8:1 ant --violet-soft KIEKVIENOJE
     temoje (zr. temos komentara ties AKCENTAI) - --violet-700 tokios
     garantijos neturi ir tamsiose temose duoda tik ~2,9-3,5:1. */
  background:var(--violet-soft); border-bottom:1px solid var(--violet-line); color:var(--violet);
  font-size:12.5px; font-weight:600;
}
.bulk-bar .select { height:28px; font-size:12px; background-color:var(--surface); }

/* puslapiavimas */
.pager { display:flex; align-items:center; gap:10px; padding:10px 14px; border-top:1px solid var(--line-soft); font-size:12px; color:var(--text-3); flex-wrap:wrap; }
.pager .pages { display:flex; gap:3px; margin-left:auto; align-items:center; }
.page-btn {
  min-width:27px; height:27px; padding:0 7px; border-radius:7px; border:1px solid transparent;
  background:none; color:var(--text-2); font-size:12px; font-weight:600; cursor:pointer;
}
.page-btn:hover { background:var(--surface-3); }
.page-btn.on { background:var(--violet-fill); border-color:var(--violet-fill); color:var(--violet-on); }
.page-btn[disabled] { opacity:.35; pointer-events:none; }

/* ------------------------------------------------------------------ TABS */
/* The baseline is an inset shadow, not a border, and a tab has no negative
   margin. overflow-x:auto quietly makes overflow-y auto too, and a tab hanging
   one pixel below the row gave every tab bar a small vertical scrollbar on
   Windows. The active tab's 2px underline paints over the shadow. */
.tabs { display:flex; gap:2px; overflow-x:auto; overflow-y:hidden; box-shadow:inset 0 -1px 0 var(--line); }
.tab {
  padding:9px 13px; font-size:13px; font-weight:600; color:var(--text-3);
  cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap;
  display:flex; align-items:center; gap:7px;
}
.tab:hover { color:var(--text); }
.tab.on { color:var(--violet); border-bottom-color:var(--violet); }
.tab .n { font-size:11px; font-weight:700; background:var(--surface-3); border-radius:10px; padding:0 6px; color:var(--text-3); }
.tab.on .n { background:var(--violet-soft); color:var(--violet); }
/* A record's own tabs (ui.tabView class 'record-tabs': a property, a client,
   a deal, a member). Nine of them did not fit a phone, nor a 1366px screen,
   and a bar that scrolls sideways hides whatever is past its edge -- people
   did not know Files or History were there (2026-09-25). They wrap, as pills
   in a tray; on a phone, a grid (assets/mobile.css). */
.tabs.record-tabs {
  flex-wrap:wrap; gap:4px; overflow:visible; box-shadow:none;
  background:var(--surface-3); border:1px solid var(--line); border-radius:12px; padding:4px;
}
.record-tabs .tab { border-bottom:0; border-radius:8px; padding:7px 12px; }
@media (hover:hover) { .record-tabs .tab:hover { background:var(--surface-2); } }
.record-tabs .tab.on { background:var(--surface); color:var(--violet); box-shadow:var(--shadow-xs); }
.record-tabs .tab:focus-visible { outline:2px solid var(--violet-line); outline-offset:1px; }
/* "Calendar 0", "Deals 0", "History 0": a nought is not news. */
.record-tabs .tab .n.zero { display:none; }

/* --------------------------------------------------------- RECORD HEADER */
.record-head { display:flex; gap:18px; padding:18px; align-items:flex-start; }
.record-cover {
  width:300px; height:225px; border-radius:10px; flex:none; overflow:hidden;
  position:relative; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-soft);
}
.record-cover .ico { color:rgba(255,255,255,.85); }

/* The photographs of a property, one after another (core/ui.js ui.gallery):
   swiped, or stepped with the arrows. Thumbnails only -- see there why. */
.gal-track {
  position:absolute; inset:0; display:flex; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.gal-track::-webkit-scrollbar { display:none; }
.gal-slide {
  flex:0 0 100%; height:100%; scroll-snap-align:start; scroll-snap-stop:always;
  border:0; margin:0; padding:0; background:transparent; cursor:zoom-in; position:relative;
}
.gal-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.gal-slide:focus-visible { outline:3px solid var(--violet); outline-offset:-3px; }
.gal-nav {
  position:absolute; top:50%; z-index:2; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%; border:0; padding:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:rgba(20,18,26,.55); color:#fff; opacity:0; transition:opacity .15s;
}
.gal-prev { left:8px; }
.gal-next { right:8px; }
.gal:hover .gal-nav, .gal:focus-within .gal-nav { opacity:1; }
.gal-nav[disabled] { visibility:hidden; }
.gal .ph-count { z-index:2; pointer-events:none; }

/* Full screen, on a click (ui.lightbox): the original is fetched for the
   photograph one stops at. Dark in both themes, as photographs want. */
.lightbox {
  position:fixed; inset:0; z-index:250; background:#0e0d12; color:#fff;
  display:flex; flex-direction:column; opacity:0; pointer-events:none; transition:opacity .18s;
}
.lightbox.on { opacity:1; pointer-events:auto; }
.lightbox:focus { outline:none; }
/* flex:none on the bars: the strip scrolls sideways, and a scroll container
   may shrink to nothing in a column -- it did, under a tall photograph. */
.lb-top { flex:none; display:flex; align-items:center; gap:10px; padding:10px 12px; min-height:60px; font-size:13px; }
.lb-count { font-weight:700; white-space:nowrap; }
.lb-name { color:rgba(255,255,255,.7); min-width:0; }
.lb-btn {
  width:40px; height:40px; flex:none; border-radius:50%; border:0; padding:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.1); color:#fff;
}
.lb-btn:hover { background:rgba(255,255,255,.2); }
.lb-body { flex:1 1 0; min-height:0; position:relative; display:flex; }
.lb-stage {
  flex:1 1 auto; min-width:0; position:relative; display:flex; align-items:center; justify-content:center;
  padding:0 64px; touch-action:pan-y pinch-zoom;
}
/* The whole stage, letterboxed. Only a sharp picture is ever put here
   (2026-09-29: no blurred thumbnail first); while one is on its way the
   frame is empty and .lb-spin turns in its middle. */
.lb-img { width:100%; height:100%; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.lb-img:not([src]) { visibility:hidden; }
.lb-spin {
  position:absolute; left:50%; top:50%; width:34px; height:34px; margin:-17px 0 0 -17px;
  border-radius:50%; border:3px solid rgba(255,255,255,.18); border-top-color:rgba(255,255,255,.85);
  animation:lbSpin .8s linear infinite; pointer-events:none;
}
@keyframes lbSpin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-spin { animation-duration:2.4s; } }
.lb-nav {
  position:absolute; top:50%; z-index:2; transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%; border:0; padding:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.12); color:#fff;
}
.lb-nav:hover { background:rgba(255,255,255,.22); }
.lb-prev { left:10px; }
.lb-next { right:10px; }
.lb-note {
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%); max-width:90%;
  background:rgba(0,0,0,.65); border-radius:8px; padding:7px 12px; font-size:12.5px;
}
.lb-strip {
  flex:none; display:flex; gap:6px; overflow-x:auto; padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  scrollbar-width:thin; justify-content:safe center;
}
.lb-thumb {
  flex:0 0 64px; height:48px; border-radius:6px; overflow:hidden; padding:0; cursor:pointer;
  border:2px solid transparent; background:rgba(255,255,255,.08); opacity:.55;
}
.lb-thumb:hover { opacity:.85; }
.lb-thumb.on { border-color:#fff; opacity:1; }
.lb-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* The place on the map under an address field (core/forms.js addressMap):
   the new-property page and the property editor. */
.am { display:flex; flex-direction:column; gap:8px; }
.am-map { height:260px; }
.am-map > .gm { height:100%; }
.am-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.am-status .row-tight { align-items:flex-start; }

/* The property editor as a page (core/forms.js objectEditPage): sections on
   the left, the listing and Save on the right, staying in view. */
.oe-page { display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:16px; align-items:start; }
.oe-main { display:flex; flex-direction:column; gap:14px; min-width:0; }
.oe-side { position:sticky; top:calc(var(--topbar-h) + 14px); display:flex; flex-direction:column; gap:12px; }
.oe-sum { display:flex; flex-direction:column; }
.oe-cover { height:170px; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.oe-sum-body { padding:12px 14px 14px; display:flex; flex-direction:column; gap:8px; }
.oe-sum-addr { font-weight:600; font-size:13px; }
.oe-actions { display:flex; gap:8px; }
.oe-actions .btn { flex:1 1 auto; justify-content:center; }
.oe-details { grid-template-columns:repeat(3, minmax(0, 1fr)); }
/* Paskyros nustatymas ir apsaugos gidas (views/setup.js). */
.su { display:flex; flex-direction:column; gap:14px; }
.su-prog { display:flex; align-items:center; gap:10px; }
.su-dots { display:flex; gap:5px; }
.su-dots i { width:22px; height:5px; border-radius:3px; background:var(--line); }
.su-dots i.done { background:var(--violet-line); }
.su-dots i.on { background:var(--violet); }
.su-count { font-size:11.5px; font-weight:600; color:var(--text-3); }
.su-title { display:flex; align-items:center; gap:8px; margin:0; font-size:17px; font-weight:680; letter-spacing:-.01em; }
.su-title .ico { color:var(--violet); }
.su-lead { margin:0; font-size:13px; line-height:1.6; color:var(--text-2); }
.su-note { margin:0; font-size:11.5px; line-height:1.55; color:var(--text-3); }
.su-photo { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.su-photo .avatar.xl { width:88px; height:88px; font-size:30px; border-radius:22px; }
.su-themes { grid-template-columns:repeat(auto-fill, minmax(128px, 1fr)); gap:8px; }
.su-themes .set-theme-sw { height:30px; }
.su-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.su-row > div:first-child { min-width:0; }
.su-scroll { max-width:100%; overflow-x:auto; }
.su-langs { display:flex; flex-direction:column; gap:8px; }
.su-block { display:flex; flex-direction:column; gap:8px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.su-block-head { display:flex; align-items:center; gap:10px; }
.su-block-title { font-size:13.5px; font-weight:650; }
.su-why { margin:0; font-size:12.5px; line-height:1.6; color:var(--text-2); }
.su-how summary { cursor:pointer; font-size:12.5px; font-weight:600; color:var(--violet); width:max-content; max-width:100%; }
.su-steps { margin:8px 0 0; padding-left:20px; list-style:decimal; font-size:12.5px; line-height:1.6; color:var(--text-2); }
.su-steps li { display:list-item; margin:2px 0; }
.su-block-act { display:flex; gap:8px; flex-wrap:wrap; }
.su-check { display:flex; flex-direction:column; gap:9px; }
.su-check-row { display:flex; align-items:center; gap:10px; font-size:13px; }
.su-check-ico { width:22px; height:22px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); color:var(--text-3); border:1px solid var(--line); }
.su-check-ico.ok { background:var(--t-green-bg); color:var(--t-green-fg); border-color:transparent; }
.su-foot { display:flex; align-items:center; gap:8px; width:100%; }

/* Uzrasai (views/notes.js, migracija 058): Google Keep spalvos - sviesiose
   temose pasteles, tamsiose (assets/themes.css) - prislopintos. */
:root {
  --nk-red:#FAAFA8; --nk-orange:#F39F76; --nk-yellow:#FFF8B8; --nk-green:#E2F6D3;
  --nk-teal:#B4DDD3; --nk-blue:#D4E4ED; --nk-darkblue:#AECCDC; --nk-purple:#D3BFDB;
  --nk-pink:#F6E2DD; --nk-brown:#E9E3D4; --nk-gray:#EFEFF1;
}
.nk-page { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.nk-search { width:280px; max-width:100%; }
.nk-filter { display:flex; flex-wrap:wrap; gap:6px; }
.nk-filter:empty { display:none; }
.nk-compose-wrap { display:flex; justify-content:center; }
.nk-compose { width:100%; max-width:600px; background:var(--surface); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-sm); display:flex; align-items:center; gap:4px; padding:4px 8px 4px 4px; }
.nk-compose.open { flex-direction:column; align-items:stretch; padding:10px 12px; gap:6px; box-shadow:var(--shadow-md); }
.nk-compose-ph { flex:1; text-align:left; background:none; border:0; font:inherit; font-size:14px; color:var(--text-3);
  padding:10px 12px; cursor:text; }
.nk-tool { width:34px; height:34px; border-radius:50%; border:0; background:transparent; color:var(--text-2);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex:none; padding:0; }
.nk-tool:hover { background:color-mix(in srgb, var(--text) 9%, transparent); }
.nk-tool.on { color:var(--violet); }
.nk-tool:focus-visible, .nk-pin:focus-visible, .nk-dot:focus-visible { outline:2px solid var(--violet); outline-offset:1px; }
.nk-ed-head { display:flex; align-items:flex-start; gap:6px; }
.nk-ed-title { flex:1; min-width:0; border:0; background:transparent; font:inherit; font-size:16px; font-weight:650;
  color:var(--text); padding:6px 4px; outline:none; }
.nk-ed-body { width:100%; border:0; background:transparent; font:inherit; font-size:14px; line-height:1.55; color:var(--text);
  resize:none; outline:none; padding:4px; min-height:44px; }
.nk-ed-title::placeholder, .nk-ed-body::placeholder, .nk-cl-text::placeholder { color:var(--text-3); }
.nk-ed-bar { display:flex; align-items:center; gap:2px; width:100%; flex-wrap:wrap; }
.nk-meta { font-size:11.5px; color:var(--text-3); text-align:right; padding:0 4px; }
.nk-section { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin:6px 4px 8px; }
.nk-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows:4px; column-gap:12px; align-items:start; }
.nk-card { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px 40px; cursor:pointer; outline:none; transition:box-shadow .15s; overflow:hidden; min-width:0; }
.nk-card:hover { box-shadow:var(--shadow-md); }
.nk-card:focus-visible { outline:2px solid var(--violet); outline-offset:1px; }
.nk-card[data-color]:not([data-color="default"]), .nk-compose[data-color]:not([data-color="default"]) { border-color:transparent; }
.nk-card[data-color="red"], .nk-compose[data-color="red"], .nk-modal[data-color="red"], .nk-dot[data-color="red"] { background:var(--nk-red); }
.nk-card[data-color="orange"], .nk-compose[data-color="orange"], .nk-modal[data-color="orange"], .nk-dot[data-color="orange"] { background:var(--nk-orange); }
.nk-card[data-color="yellow"], .nk-compose[data-color="yellow"], .nk-modal[data-color="yellow"], .nk-dot[data-color="yellow"] { background:var(--nk-yellow); }
.nk-card[data-color="green"], .nk-compose[data-color="green"], .nk-modal[data-color="green"], .nk-dot[data-color="green"] { background:var(--nk-green); }
.nk-card[data-color="teal"], .nk-compose[data-color="teal"], .nk-modal[data-color="teal"], .nk-dot[data-color="teal"] { background:var(--nk-teal); }
.nk-card[data-color="blue"], .nk-compose[data-color="blue"], .nk-modal[data-color="blue"], .nk-dot[data-color="blue"] { background:var(--nk-blue); }
.nk-card[data-color="darkblue"], .nk-compose[data-color="darkblue"], .nk-modal[data-color="darkblue"], .nk-dot[data-color="darkblue"] { background:var(--nk-darkblue); }
.nk-card[data-color="purple"], .nk-compose[data-color="purple"], .nk-modal[data-color="purple"], .nk-dot[data-color="purple"] { background:var(--nk-purple); }
.nk-card[data-color="pink"], .nk-compose[data-color="pink"], .nk-modal[data-color="pink"], .nk-dot[data-color="pink"] { background:var(--nk-pink); }
.nk-card[data-color="brown"], .nk-compose[data-color="brown"], .nk-modal[data-color="brown"], .nk-dot[data-color="brown"] { background:var(--nk-brown); }
.nk-card[data-color="gray"], .nk-compose[data-color="gray"], .nk-modal[data-color="gray"], .nk-dot[data-color="gray"] { background:var(--nk-gray); }
.nk-title { font-weight:650; font-size:14.5px; margin:0 26px 6px 0; overflow-wrap:anywhere; }
.nk-body { font-size:13.5px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; max-height:22em; overflow:hidden; }
.nk-li-list { display:flex; flex-direction:column; gap:4px; }
.nk-li { display:flex; gap:8px; align-items:flex-start; font-size:13.5px; line-height:1.45; overflow-wrap:anywhere; }
.nk-more { font-size:12px; color:var(--text-3); margin-top:5px; }
.nk-chips { display:flex; flex-wrap:wrap; gap:6px; }
.nk-chips:empty { display:none; }
.nk-card .nk-chips { margin-top:10px; }
.nk-chip { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600; padding:2px 9px;
  border-radius:999px; background:color-mix(in srgb, var(--text) 9%, transparent); color:var(--text-2); border:0; font-family:inherit; }
.nk-chip.toggle { cursor:pointer; padding:5px 11px; font-size:12px; background:var(--surface); border:1px solid var(--line); }
.nk-chip.toggle.on { background:var(--violet-soft); border-color:var(--violet-line); color:var(--violet); }
.nk-chip-x { border:0; background:none; padding:0; display:inline-flex; cursor:pointer; color:inherit; opacity:.7; }
.nk-tools { position:absolute; left:6px; right:6px; bottom:4px; display:flex; gap:2px; opacity:0; transition:opacity .15s; }
.nk-card:hover .nk-tools, .nk-card:focus-within .nk-tools { opacity:1; }
.nk-tools .nk-tool { width:30px; height:30px; }
.nk-pin { position:absolute; top:6px; right:6px; width:30px; height:30px; opacity:0; border:0; background:transparent;
  border-radius:50%; color:var(--text-2); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.nk-pin.on, .nk-card:hover .nk-pin, .nk-card:focus-within .nk-pin { opacity:1; }
.nk-pin.on { color:var(--violet); }
.nk-box { width:18px; height:18px; flex:none; border:1.6px solid var(--text-3); border-radius:4px; background:transparent;
  display:inline-flex; align-items:center; justify-content:center; padding:0; cursor:pointer; color:var(--surface); margin-top:1px; }
.nk-box.on { background:var(--text-2); border-color:var(--text-2); }
.nk-box.sm { width:16px; height:16px; }
.nk-box:disabled { cursor:default; }
.nk-cl { display:flex; flex-direction:column; }
.nk-cl-row { display:flex; align-items:center; gap:8px; padding:1px 0; }
.nk-cl-row.done .nk-cl-text { text-decoration:line-through; color:var(--text-3); }
.nk-cl-text { flex:1; min-width:0; border:0; background:transparent; font:inherit; font-size:14px; color:var(--text); padding:5px 2px; outline:none; }
.nk-cl-row.add .nk-plus { width:18px; display:inline-flex; justify-content:center; color:var(--text-3); }
.nk-cl-del { border:0; background:none; color:var(--text-3); cursor:pointer; opacity:0; padding:4px; display:inline-flex; }
.nk-cl-row:hover .nk-cl-del, .nk-cl-row:focus-within .nk-cl-del { opacity:1; }
.nk-cl-donehead { border:0; background:none; font:inherit; font-size:12.5px; color:var(--text-3); display:flex; align-items:center;
  gap:6px; padding:8px 0 4px; cursor:pointer; border-top:1px solid color-mix(in srgb, var(--text) 10%, transparent); margin-top:6px; }
.nk-modal { width:min(600px, calc(94vw / var(--ui-scale, 1))); }
.nk-modal .modal-head { display:none; }
.nk-modal .modal-body { padding:14px 16px 6px; }
.nk-modal .modal-foot { background:transparent; border-top:0; padding:4px 10px 10px; }
.nk-editor { display:flex; flex-direction:column; gap:6px; }
.nk-labelpanel { display:flex; flex-direction:column; gap:8px; padding:6px 0; }
.nk-label-row { display:flex; gap:6px; }
.nk-pop { position:absolute; z-index:260; background:var(--surface); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-lg); padding:8px; display:grid; grid-template-columns:repeat(6, 30px); gap:6px; }
.nk-dot { width:30px; height:30px; border-radius:50%; border:2px solid transparent; cursor:pointer; display:inline-flex;
  align-items:center; justify-content:center; color:var(--text-2); padding:0; }
.nk-dot[data-color="default"] { border-color:var(--line-strong); background:var(--surface); }
.nk-dot.on { border-color:var(--violet); }
.nk-trashbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.nk-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:56px 16px; text-align:center; color:var(--text-2); }
.nk-empty .ico { color:var(--text-3); }
@media (hover:none) {
  .nk-tools { display:none; }
  .nk-card { padding-bottom:12px; }
  .nk-pin:not(.on) { display:none; }
  .nk-cl-del { opacity:.7; }
}

/* Profilio nuotraukos apkirpimas (core/ui.js avatarPicker). */
.crop { display:flex; flex-direction:column; gap:12px; align-items:center; }
.crop > p { align-self:stretch; }
.crop-stage { position:relative; width:280px; height:280px; max-width:100%; overflow:hidden; border-radius:12px;
  background:var(--surface-3); touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; outline:none; }
.crop-stage:active { cursor:grabbing; }
.crop-stage:focus-visible { box-shadow:0 0 0 2px var(--violet); }
.crop-img { position:absolute; left:0; top:0; display:block; transform-origin:0 0; max-width:none; pointer-events:none; }
.crop-mask { position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle closest-side, transparent 0 99%, rgba(8, 8, 12, .55) 100%); }
.crop-ring { position:absolute; inset:0; border-radius:50%; box-shadow:inset 0 0 0 2px rgba(255, 255, 255, .92); pointer-events:none; }
.crop-tools { display:flex; align-items:center; gap:6px; width:280px; max-width:100%; }
.crop-zoom { flex:1; min-width:0; accent-color:var(--violet); }
.crop-previews { display:flex; align-items:center; gap:12px; }
.crop-prev { border-radius:50%; background:var(--surface-2); border:1px solid var(--line); }
.crop-prev.big { border-radius:16px; }

/* Nuotraukos forma (migracija 062, core/ui.js avatar): zmogaus pasirinkta ir
   visur ta pati. !important - tai zmogaus sprendimas, ir jis turi nugaleti
   vietines .avatar formas (didele kortele, pokalbiu sarasas). */
.avatar.av-circle, .shape-sample.av-circle { border-radius:50% !important; }
.avatar.av-rounded, .shape-sample.av-rounded { border-radius:26% !important; }
.avatar.av-square, .shape-sample.av-square { border-radius:3px !important; }
.avatar.av-hexagon, .shape-sample.av-hexagon { border-radius:0 !important;
  clip-path:polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.avatar-stack .avatar.av-hexagon { border:0; }
.shape-pick { display:flex; flex-wrap:wrap; gap:6px; }
.shape-opt { display:inline-flex; flex-direction:column; align-items:center; gap:4px; padding:6px 8px; min-width:66px;
  border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text-2); cursor:pointer; font:inherit; }
.shape-opt.on { border-color:var(--violet); box-shadow:0 0 0 2px var(--violet-soft); color:var(--text); }
.shape-sample { width:26px; height:26px; border-radius:50%; background:hsl(265, var(--av-bg-s), var(--av-bg-l)); }
/* Apkirpimo remelis - pasirinktos formos. */
.crop-stage[data-shape="rounded"] .crop-mask, .crop-stage[data-shape="square"] .crop-mask { background:none; }
.crop-stage[data-shape="rounded"] .crop-ring { border-radius:26%;
  box-shadow:0 0 0 999px rgba(8, 8, 12, .55), inset 0 0 0 2px rgba(255, 255, 255, .92); }
.crop-stage[data-shape="square"] .crop-ring { border-radius:0; }
.crop-stage[data-shape="hexagon"] .crop-mask { background:rgba(8, 8, 12, .55);
  clip-path:polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%, 25% 4%); }
.crop-stage[data-shape="hexagon"] .crop-ring { display:none; }
.crop-prev[data-shape="circle"] { border-radius:50%; }
.crop-prev[data-shape="rounded"] { border-radius:26%; }
.crop-prev[data-shape="square"] { border-radius:3px; }
.crop-prev[data-shape="hexagon"] { border-radius:0; border:0; clip-path:polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }

@media (max-width:1100px) {
  .oe-page { grid-template-columns:minmax(0, 1fr); }
  .oe-side { position:static; order:-1; }
  .oe-details { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
.record-cover .ph-count {
  position:absolute; bottom:8px; right:8px; background:rgba(20,18,26,.55); color:#fff;
  border-radius:6px; padding:2px 7px; font-size:11px; font-weight:600; backdrop-filter:blur(4px);
  display:flex; align-items:center; gap:4px;
}
.meta-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(128px,1fr)); gap:14px 20px; }
.meta-item { min-width:0; }
.meta-label { font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-4); margin-bottom:3px; }
.meta-value { font-size:13px; font-weight:600; color:var(--text); }
.meta-value.big { font-size:17px; letter-spacing:-.02em; }

.def-list { display:grid; grid-template-columns:auto 1fr; gap:9px 16px; align-items:baseline; font-size:12.5px; }
.def-list dt { color:var(--text-3); white-space:nowrap; }
.def-list dd { margin:0; font-weight:600; text-align:right; }

/* ------------------------------------------------------------- LIST ITEMS */
.list { display:flex; flex-direction:column; }
.list-item {
  display:flex; align-items:center; gap:10px; padding:10px 16px;
  border-bottom:1px solid var(--line-soft); cursor:pointer; min-width:0;
}
.list-item:last-child { border-bottom:0; }
.list-item:hover { background:var(--surface-2); }
.list-item .grow { min-width:0; }
.li-title { font-size:12.5px; font-weight:600; color:var(--text); }
.li-sub { font-size:11.5px; color:var(--text-3); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.li-right { margin-left:auto; text-align:right; flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:3px; }

/* --------------------------------------------------------------- TIMELINE */
.timeline { position:relative; padding-left:26px; }
.timeline::before { content:''; position:absolute; left:9px; top:6px; bottom:6px; width:1.5px; background:var(--line); }
.tl-item { position:relative; padding:0 0 16px; }
.tl-item:last-child { padding-bottom:2px; }
.tl-dot {
  position:absolute; left:-26px; top:1px; width:19px; height:19px; border-radius:50%;
  background:var(--surface); border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center;
}
.tl-dot .ico svg { width:11px; height:11px; }
.tl-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.tl-title { font-size:12.5px; font-weight:600; }
.tl-time { font-size:11px; color:var(--text-4); margin-left:auto; white-space:nowrap; }
.tl-body { font-size:12px; color:var(--text-2); margin-top:3px; }

/* ------------------------------------------------------------ EMPTY/STATE */
.empty { padding:34px 20px; text-align:center; color:var(--text-3); }
.empty .ico { color:var(--text-4); margin-bottom:8px; }
.empty-title { font-size:13px; font-weight:600; color:var(--text-2); margin-bottom:3px; }
.empty-sub { font-size:12px; }
/* A card's own empty state never competes with the page's one filled button
   (2026-10-03): its action is outlined. The class stays `primary`. */
:root .card .empty .btn.primary {
  background:var(--surface); color:var(--text); border-color:var(--line-strong); box-shadow:none;
}
:root .card .empty .btn.primary:hover { background:var(--surface-2); border-color:var(--text-3); }
/* Pagrindinis while the system is empty (2026-10-24, owner's rule 3): the
   welcome card holds the one filled button, so the checklist's next step is
   outlined, like the same step on Pagalba (.is-next). */
:root main:has(.dsh-hero .btn.primary) .dsh-step-a .btn.primary {
  background:var(--surface); color:var(--text); border-color:var(--text-2); box-shadow:none;
}
.btn.is-next { border-color:var(--text-2); font-weight:600; }
/* Pagrindinis (views/dashboard.js): an empty card is one line, so the cards
   that have something to show move up. */
/* Connections at a glance: one quiet line; a broken one is red. */
.conn-line {
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; margin:0 0 12px;
  font-size:12.5px; color:var(--text-3);
}
.conn-label { font-weight:600; color:var(--text-2); }
.conn-item { display:inline-flex; align-items:center; gap:5px; color:var(--text-2); text-decoration:none; }
.conn-item:hover { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.conn-item > .ico { flex:none; }
.conn-item.is-ok > .ico { color:var(--t-green-fg); }
.conn-item.is-off { color:var(--text-3); }
.conn-item.is-warn, .conn-item.is-warn > .ico { color:var(--t-amber-fg); }
.conn-item.is-bad { color:var(--t-red-fg); font-weight:600; }
.conn-hint { font-weight:400; opacity:.9; }
.conn-hint:before { content:"· "; }
.conn-line.has-bad {
  margin:0 0 14px; padding:8px 12px; border:1px solid var(--t-red-dot); border-radius:var(--radius);
  background:var(--t-red-bg);
}
.dash .card .empty {
  display:grid; grid-template-columns:auto minmax(0, 1fr); column-gap:12px; align-items:center;
  padding:14px 16px; text-align:left;
}
.dash .card .empty > .ico { grid-row:1 / span 2; margin:0; }
.dash .card .empty > .empty-title { grid-column:2; margin:0; }
.dash .card .empty > .empty-sub { grid-column:2; }
/* The action sits under the words: cards here are one, two or three to a
   row, and beside the words it squeezed them into a column. */
.dash .card .empty > div:last-child:not(.empty-sub):not(.empty-title) { grid-column:2; margin-top:8px !important; }

.progress { height:5px; border-radius:4px; background:var(--surface-3); overflow:hidden; }
.progress > span { display:block; height:100%; border-radius:4px; background:var(--violet); }
.progress.thin { height:4px; }

.meter-row { display:flex; align-items:center; gap:10px; padding:7px 0; }
.meter-label { width:132px; flex:none; font-size:12px; font-weight:600; display:flex; align-items:center; gap:7px; min-width:0; }
.meter-track { flex:1 1 auto; height:8px; border-radius:5px; background:var(--surface-3); overflow:hidden; display:flex; }
.meter-track > span { height:100%; }
.meter-value { width:64px; flex:none; text-align:right; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }

/* --------------------------------------------------------------- PIPELINE */
.pipeline { display:flex; gap:10px; overflow-x:auto; padding:2px 2px 8px; }
.pipe-col { flex:0 0 232px; background:var(--surface-3); border:1px solid var(--line-soft); border-radius:10px; display:flex; flex-direction:column; max-height:520px; }
.pipe-head { padding:9px 11px; border-bottom:1px solid var(--line-soft); display:flex; align-items:center; gap:7px; }
.pipe-name { font-size:12px; font-weight:700; letter-spacing:-.01em; }
.pipe-n { font-size:11px; font-weight:700; color:var(--text-3); background:var(--surface); border-radius:10px; padding:0 6px; }
.pipe-sum { font-size:11px; color:var(--text-3); margin-left:auto; font-weight:600; }
.pipe-body { padding:8px; display:flex; flex-direction:column; gap:7px; overflow-y:auto; }
.pipe-card {
  background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:9px 10px;
  cursor:pointer; box-shadow:var(--shadow-xs);
}
.pipe-card:hover { border-color:var(--violet-line); box-shadow:var(--shadow-sm); }
.pipe-card-top { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
.pipe-card-title { font-size:12px; font-weight:600; line-height:1.35; }
.pipe-card-foot { display:flex; align-items:center; gap:6px; margin-top:7px; }
.pipe-price { font-size:12px; font-weight:700; letter-spacing:-.01em; }

/* --------------------------------------------------------------- OBJ CARD */
.obj-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(268px,1fr)); gap:14px; }
/* Korteliu zymejimas (core/ui.js renderCards, 2026-10-02): varnele kairiajame
   virsutiniame kampe, ten buvusi zyme pasislenka. */
.card-selectable { position:relative; }
.card-check { position:absolute; top:8px; left:8px; z-index:3; background:var(--surface); border-radius:7px;
  padding:3px; box-shadow:var(--shadow-sm); line-height:0; }
.card-selectable .obj-cover .badge { left:44px; }
.card-selectable .fz-card-top { left:44px; }
.card-selectable.selected { border-color:var(--violet); box-shadow:0 0 0 1px var(--violet); }
.card-select-all { display:flex; align-items:center; gap:8px; padding:12px 14px 0; }
.obj-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; cursor:pointer; box-shadow:var(--shadow-xs); display:flex; flex-direction:column; }
.obj-card:hover { border-color:var(--violet-line); box-shadow:var(--shadow-md); }
.obj-cover { height:132px; position:relative; display:flex; align-items:center; justify-content:center; }
.obj-cover .badge { position:absolute; top:9px; left:9px; box-shadow:var(--shadow-xs); }
.obj-cover .id-chip { position:absolute; top:9px; right:9px; background:rgba(255,255,255,.92); border-color:transparent; }
.obj-body { padding:11px 13px 13px; display:flex; flex-direction:column; gap:7px; flex:1 1 auto; }
.obj-title { font-size:13px; font-weight:650; line-height:1.3; }
.obj-addr { font-size:11.5px; color:var(--text-3); display:flex; align-items:center; gap:4px; }
.obj-price { font-size:16px; font-weight:680; letter-spacing:-.02em; }
.obj-specs { display:flex; gap:10px; font-size:11.5px; color:var(--text-2); border-top:1px solid var(--line-soft); padding-top:8px; margin-top:auto; }
.obj-specs span { display:flex; align-items:center; gap:4px; }
.obj-foot { display:flex; align-items:center; gap:7px; padding:8px 13px; border-top:1px solid var(--line-soft); background:var(--surface-2); }

/* -------------------------------------------------------------- CALENDAR */
.cal-grid { display:grid; grid-template-columns:56px repeat(7, minmax(0,1fr)); border-left:1px solid var(--line-soft); }
.cal-head-cell { padding:8px 6px; text-align:center; border-bottom:1px solid var(--line); border-right:1px solid var(--line-soft); background:var(--surface-2); position:sticky; top:0; z-index:3; }
.cal-dow { font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
.cal-dnum { font-size:16px; font-weight:650; letter-spacing:-.02em; margin-top:1px; }
.cal-head-cell.today .cal-dnum { color:var(--violet-on); background:var(--violet-fill); width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; margin:1px auto 0; font-size:13px; }
.cal-time { font-size:10.5px; color:var(--text-4); text-align:right; padding:0 7px; height:46px; border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); position:relative; }
.cal-time span { position:relative; top:-6px; background:var(--surface); padding:0 2px; }
.cal-cell { height:46px; border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); position:relative; }
.cal-cell.weekend { background:var(--surface-2); }
.cal-cell.now { background:var(--violet-soft); }
.cal-ev {
  position:absolute; left:2px; right:2px; border-radius:5px; padding:2px 5px;
  font-size:10.5px; line-height:1.25; overflow:hidden; cursor:pointer; z-index:1;
  border-left:2.5px solid currentColor;
}
.cal-ev:hover { z-index:5; box-shadow:var(--shadow-md); }
.cal-ev b { display:block; font-weight:650; font-size:10.5px; }
.cal-ev .ev-sub { opacity:.8; font-size:10px; }

.cal-month { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); border-left:1px solid var(--line-soft); border-top:1px solid var(--line-soft); }
.cal-mcell { min-height:104px; border-right:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); padding:5px 6px; display:flex; flex-direction:column; gap:2px; }
.cal-mcell.out { background:var(--surface-2); }
.cal-mcell.today-cell { background:var(--violet-soft); }
.cal-mnum { font-size:11.5px; font-weight:650; color:var(--text-2); margin-bottom:2px; }
.cal-mcell.today-cell .cal-mnum { color:var(--violet); }
.cal-pill {
  font-size:10.5px; border-radius:4px; padding:1px 5px; cursor:pointer;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500;
  display:flex; align-items:center; gap:4px;
}
.cal-pill .cdot { width:5px; height:5px; border-radius:50%; background:currentColor; flex:none; }

.mini-cal { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; }
.mini-cal .mc-dow { font-size:9.5px; font-weight:700; color:var(--text-4); text-align:center; padding-bottom:3px; }
.mini-cal button {
  border:0; background:none; height:24px; border-radius:6px; font-size:11.5px; cursor:pointer;
  color:var(--text-2); font-weight:500; position:relative;
}
.mini-cal button:hover { background:var(--surface-3); }
.mini-cal button.out { color:var(--text-4); }
.mini-cal button.on { background:var(--violet-fill); color:var(--violet-on); font-weight:700; }
.mini-cal button.has::after { content:''; position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:3px; height:3px; border-radius:50%; background:var(--violet); }
.mini-cal button.on.has::after { background:var(--violet-on); }

/* ----------------------------------------------------------------- FILES */
.folder-tree { display:flex; flex-direction:column; gap:2px; }
.folder-item {
  display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:8px;
  cursor:pointer; font-size:12.5px; font-weight:500; color:var(--text-2);
}
.folder-item:hover { background:var(--surface-3); color:var(--text); }
.folder-item.on { background:var(--violet-soft); color:var(--violet); font-weight:600; }
.folder-item .n { margin-left:auto; font-size:11px; color:var(--text-3); font-weight:600; }
.folder-item.on .n { color:var(--violet); }
.file-ico { width:30px; height:30px; border-radius:7px; display:flex; align-items:center; justify-content:center; flex:none; font-size:9px; font-weight:800; letter-spacing:.02em; }

/* ---------------------------------------------------------------- DRAWER */
/* VISI vw/vh cia dalijami is --ui-scale (zr. .app): body { zoom } juos
   mastelina, todel esant 85 % "100vw" uzimdavo 85 % ekrano ir telefono
   dialogas prilipdavo prie kairiojo krasto, o esant 150 % "94vw" islisdavo
   uz jo. Telefone (assets/mobile.css) - left:0; right:0, ne plotis. */
.overlay {
  position:fixed; inset:0; background:rgba(30,27,38,.34); z-index:200;
  opacity:0; pointer-events:none; transition:opacity .18s; backdrop-filter:blur(1.5px);
}
.overlay.on { opacity:1; pointer-events:auto; }
.drawer {
  position:fixed; top:0; right:0; bottom:0; width:min(560px, calc(94vw / var(--ui-scale, 1)));
  background:var(--surface); z-index:201; box-shadow:var(--shadow-lg);
  transform:translateX(102%); transition:transform .22s cubic-bezier(.32,.72,.35,1);
  display:flex; flex-direction:column;
}
.drawer.on { transform:none; }
.drawer.wide { width:min(880px, calc(96vw / var(--ui-scale, 1))); }
.drawer-head { padding:15px 18px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; gap:12px; }
.drawer-body { flex:1 1 auto; overflow-y:auto; padding:18px; }
.drawer-foot { padding:12px 18px; border-top:1px solid var(--line); display:flex; gap:8px; justify-content:flex-end; background:var(--surface-2); }

.modal {
  position:fixed; top:50%; left:50%; transform:translate(-50%,-48%) scale(.98);
  width:min(620px, calc(94vw / var(--ui-scale, 1))); max-height:calc(88vh / var(--ui-scale, 1));
  background:var(--surface); border-radius:var(--radius-lg);
  z-index:201; box-shadow:var(--shadow-lg); display:flex; flex-direction:column;
  opacity:0; pointer-events:none; transition:opacity .16s, transform .16s;
}
.modal.on { opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
/* Platesni dialogai - klase, ne style.width: tiesioginis stilius nugaletu
   telefono taisykle (assets/mobile.css) ir dialogas telefone nebeuzimtu
   viso plocio. */
.modal.modal-lg { width:min(900px, calc((100vw - 32px) / var(--ui-scale, 1))); }
.modal.modal-xl { width:min(960px, calc(96vw / var(--ui-scale, 1))); }
.modal-head { padding:15px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:10px; }
.modal-body { padding:18px; overflow-y:auto; }
.modal-foot { padding:12px 18px; border-top:1px solid var(--line); display:flex; gap:8px; justify-content:flex-end; background:var(--surface-2); border-radius:0 0 var(--radius-lg) var(--radius-lg); }

.menu {
  position:absolute; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; box-shadow:var(--shadow-lg); padding:5px; min-width:198px; z-index:300;
}
.menu-item {
  display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:7px;
  font-size:12.5px; cursor:pointer; color:var(--text-2); white-space:nowrap;
}
.menu-item:hover { background:var(--surface-3); color:var(--text); }
.menu-item.on { color:var(--violet); background:var(--violet-soft); font-weight:600; }
.menu-item.danger { color:var(--t-red-fg); }
.menu-sep { height:1px; background:var(--line-soft); margin:4px 0; }
.menu-label { font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-4); padding:7px 9px 4px; }

.toast-wrap { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:400; display:flex; flex-direction:column; gap:8px; align-items:center; }
.toast {
  background:#2C2934; color:#fff; border-radius:9px; padding:9px 14px; font-size:12.5px; font-weight:500;
  box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:9px;
  animation:toastIn .2s ease; max-width:min(520px, calc(92vw / var(--ui-scale, 1)));
}
.toast .ico { color:#A78BFA; }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ------------------------------------------------------- SEARCH DROPDOWN */
.search-pop {
  position:absolute; top:calc(100% + 6px); left:0; right:0; background:var(--surface);
  border:1px solid var(--line); border-radius:11px; box-shadow:var(--shadow-lg);
  max-height:min(520px, calc(72vh / var(--ui-scale, 1))); overflow-y:auto; padding:6px; z-index:80;
}
.sp-group-label { font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-4); padding:8px 9px 4px; display:flex; align-items:center; gap:6px; }
.sp-item { display:flex; align-items:center; gap:10px; padding:7px 9px; border-radius:8px; cursor:pointer; }
.sp-item:hover, .sp-item.cursor { background:var(--violet-soft); }
.sp-title { font-size:12.5px; font-weight:600; }
.sp-sub { font-size:11.5px; color:var(--text-3); }

/* ---------------------------------------------- ADRESO IR VIETOVES SIULYMAI */
/* core/forms.js addressSuggest / localitySuggest. Skydelis per visa formos
   eilute (left/right nustato fitPanel), irasai dvieju eiluciu vietoj
   nukirpimo, ir niekas neslenka i sona. Dvi klases - kad nugaletu
   assets/mobile.css .menu max-height. */
.menu.sug-pop {
  top:100%; left:0; right:0; margin-top:4px; min-width:0; max-width:none;
  max-height:min(340px, calc(56vh / var(--ui-scale, 1)));
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
}
.sug-pop .menu-label { padding:6px 9px 3px; }
.menu-item.sug-item { align-items:flex-start; white-space:normal; gap:10px; }
.sug-item > .ico { flex:none; margin-top:2px; color:var(--text-3); }
.sug-item.on > .ico { color:inherit; }
.sug-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.sug-title { font-size:13px; font-weight:600; line-height:1.3; color:var(--text); overflow-wrap:anywhere; }
.sug-item.on .sug-title { color:inherit; }
.sug-sub { font-size:11.5px; font-weight:400; line-height:1.35; color:var(--text-3); overflow-wrap:anywhere; }
.sug-tag {
  flex:none; align-self:center; font-family:var(--mono); font-size:11px; font-weight:600;
  padding:1px 6px; border-radius:var(--radius-sm); background:var(--violet-soft); color:var(--violet);
}
.sug-item > .sug-go { align-self:center; margin-top:0; color:var(--text-4); }
.sug-note {
  display:flex; align-items:flex-start; gap:8px; padding:7px 9px;
  font-size:11.5px; line-height:1.4; color:var(--text-3); cursor:default;
}
.sug-note > .ico { flex:none; margin-top:1px; }

/* ------------------------------------------------ NAUJO OBJEKTO ZINGSNIAI */
/* core/forms.js F.object: zingsniu juosta prilimpa stalciaus virsuje,
   tipas renkamas plytelemis, ypatybes - zymemis. */
.wiz { display:flex; flex-direction:column; gap:16px; }
.wiz-head {
  display:flex; flex-direction:column; gap:8px; position:sticky; top:-18px; z-index:3;
  margin:-18px -18px 0; padding:14px 18px 10px; background:var(--surface);
  border-bottom:1px solid var(--line-soft);
}
/* Sesi zingsniai turi tilpti 560 px stalciuje: plotis pagal pavadinima
   (ilgas "Kaina ir zmones" gauna daugiau nei "Vieta"), o dabartinis zingsnis
   niekada nesutrumpinamas. */
.wiz-steps { list-style:none; margin:0; padding:0; display:flex; gap:2px; }
.wiz-step { flex:1 1 auto; min-width:0; }
.wiz-step.on { flex-shrink:0; }
.wiz-step button {
  width:100%; display:flex; align-items:center; gap:5px; padding:6px 4px; border:0; border-radius:8px;
  background:none; color:var(--text-3); font:inherit; font-size:11.5px; font-weight:600; text-align:left; cursor:pointer;
}
.wiz-step button:disabled { cursor:default; color:var(--text-4); }
.wiz-step button:not(:disabled):hover { background:var(--surface-2); color:var(--text); }
.wiz-step.on button { color:var(--text); }
.wiz-num {
  flex:none; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:10.5px; font-weight:700; background:var(--surface-3); color:var(--text-3); border:1px solid var(--line);
}
.wiz-step.on .wiz-num { background:var(--violet-fill); border-color:var(--violet-fill); color:var(--violet-on); }
.wiz-step.done .wiz-num { background:var(--violet-soft); border-color:var(--violet-line); color:var(--violet); }
.wiz-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wiz-count { display:none; font-size:12.5px; font-weight:600; color:var(--text-2); }
.wiz-track { height:3px; border-radius:3px; background:var(--surface-3); overflow:hidden; }
.wiz-bar { height:100%; width:20%; border-radius:3px; background:var(--violet-fill); transition:width .2s; }
.wiz-page { display:flex; flex-direction:column; gap:14px; }
.wiz-msg {
  display:flex; gap:8px; align-items:flex-start; padding:9px 11px; border-radius:9px;
  font-size:12.5px; font-weight:600; background:var(--t-red-bg); color:var(--t-red-fg);
}
.wiz-draft {
  display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:10px 12px; border-radius:10px;
  background:var(--violet-soft); border:1px solid var(--violet-line); color:var(--text);
}
.wiz-draft > .ico { color:var(--violet); flex:none; }
/* Naujo kliento zingsniai (core/forms.js clientWizard): privalomo lauko
   zvaigzdute; agento pastabu laukas aukstesnis nei iprastas. */
.wiz-must { color:var(--t-red-fg); font-weight:700; }
.wiz-client textarea[data-field="client-notes"] { min-height:180px; }
.wiz-tiles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.wiz-tile {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  min-height:72px; padding:10px 6px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); color:var(--text-2); font:inherit; font-size:12px; font-weight:600;
  line-height:1.25; text-align:center; cursor:pointer;
}
.wiz-tile:hover { border-color:var(--line-strong); color:var(--text); }
.wiz-tile.on { border-color:var(--violet); background:var(--violet-soft); color:var(--violet); box-shadow:inset 0 0 0 1px var(--violet); }
.wiz-seg { align-self:flex-start; }
.wiz-seg button { min-width:112px; }
.wiz-chips { display:flex; flex-wrap:wrap; gap:6px; }
.wiz-chip {
  display:inline-flex; align-items:center; gap:5px; min-height:30px; padding:0 11px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--text-2);
  font:inherit; font-size:12px; font-weight:600; cursor:pointer;
}
.wiz-chip:hover { border-color:var(--line-strong); color:var(--text); }
.wiz-chip.on { background:var(--violet-soft); border-color:var(--violet-line); color:var(--violet); }
/* Ypatybiu grupes (core/forms.js featurePicker) - kaip aruodas.lt. */
.feat-groups { display:flex; flex-direction:column; gap:12px; }
.feat-group { display:flex; flex-direction:column; gap:6px; }
.feat-group-head {
  display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; color:var(--text-3);
}
.feat-count {
  min-width:18px; height:18px; padding:0 5px; border-radius:9px; display:inline-flex;
  align-items:center; justify-content:center; background:var(--violet-soft); color:var(--violet);
  font-size:10.5px; letter-spacing:0;
}
.wiz-money { display:flex; align-items:center; gap:8px; }
.wiz-money .input { flex:1 1 auto; min-width:0; font-size:16px; font-weight:600; }
.wiz-suffix { flex:none; font-size:13px; font-weight:600; color:var(--text-3); }
.wiz-unit { margin-top:4px; min-height:15px; }
.wiz-review { border:1px solid var(--line); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; }
.wiz-review-title { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); }
/* Nuotraukos: numetimo vieta, tinklelis su tvarka ir virselio zyme. */
.wiz-ph-drop {
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:20px 14px; text-align:center;
  border:1.5px dashed var(--line-strong); border-radius:12px; background:var(--surface-2); color:var(--text-2);
}
.wiz-ph-drop.over { border-color:var(--violet); background:var(--violet-soft); }
.wiz-ph-drop.compact { flex-direction:row; flex-wrap:wrap; justify-content:center; padding:10px 12px; }
.wiz-ph-drop.compact .wiz-ph-drop-ico, .wiz-ph-drop.compact .wiz-ph-drop-text { display:none; }
.wiz-ph-drop-ico { display:flex; width:38px; height:38px; border-radius:50%; align-items:center; justify-content:center;
  background:var(--violet-soft); color:var(--violet); }
.wiz-ph-msg {
  display:flex; gap:8px; align-items:flex-start; padding:9px 11px; border-radius:9px;
  font-size:12.5px; background:var(--t-amber-bg); color:var(--t-amber-fg);
}
.wiz-ph-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(124px, 1fr)); gap:10px; }
.wiz-ph {
  position:relative; min-width:0; padding:6px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); cursor:grab; user-select:none;
}
.wiz-ph.is-cover { border-color:var(--violet); box-shadow:inset 0 0 0 1px var(--violet); }
.wiz-ph.over { border-color:var(--violet); background:var(--violet-soft); }
.wiz-ph.dragging { opacity:.45; }
.wiz-ph-img {
  display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:4/3;
  overflow:hidden; border-radius:7px; background:var(--surface-3);
}
.wiz-ph-img img { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.wiz-ph-ext { font-size:12px; font-weight:700; color:var(--text-3); }
.wiz-ph-num {
  position:absolute; top:10px; left:10px; min-width:20px; height:20px; padding:0 5px; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  background:var(--violet-fill); color:var(--violet-on); font-size:11.5px; font-weight:700;
}
.wiz-ph-cover {
  position:absolute; top:10px; left:34px; height:20px; padding:0 6px; border-radius:6px;
  display:flex; align-items:center; background:var(--surface); border:1px solid var(--violet);
  color:var(--violet); font-size:10.5px; font-weight:650;
}
.wiz-ph-del {
  position:absolute; top:8px; right:8px; width:24px; height:24px; padding:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  border:1px solid var(--line); background:var(--surface); color:var(--text-2);
}
.wiz-ph-del:hover { color:var(--t-red-fg); border-color:var(--t-red-fg); }
.wiz-ph-name { margin-top:5px; font-size:11px; color:var(--text-3); }
.wiz-ph-btns { display:flex; gap:4px; margin-top:5px; }
.wiz-ph-btns > .btn { flex:1 1 0; min-width:0; padding:0 4px; justify-content:center; }
.wiz-ph-prog { display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-radius:10px;
  background:var(--violet-soft); border:1px solid var(--violet-line); }
.wiz-ph-strip { display:flex; flex-wrap:wrap; gap:4px; }
.wiz-ph-mini, .wiz-ph-more {
  width:44px; height:33px; border-radius:5px; overflow:hidden; flex:none; display:flex; align-items:center;
  justify-content:center; background:var(--surface-3); color:var(--text-3); font-size:9.5px; font-weight:700;
}
.wiz-ph-mini img { width:100%; height:100%; object-fit:cover; display:block; }
.wiz-ph-mini.is-cover { box-shadow:0 0 0 2px var(--violet); }

/* Naujas objektas - visas puslapis (#/objektai/naujas, core/forms.js
   objectPage): zingsniai kaireje, forma viduryje, gyva santrauka desineje.
   Stulpeliu skaicius - pagal TURIMA vieta (container query), o ne pagal
   ekrano ploti: sasajos mastelis (--ui-scale, body zoom) media uzklausoms
   nematomas, ir 150 % mastelyje trys stulpeliai netilpdavo. */
.wiz-host { container:wizpage / inline-size; }
.wiz-full { display:grid; grid-template-columns:230px minmax(0, 1fr) 300px; gap:18px; align-items:start; }
.wiz-rail, .wiz-side { position:sticky; top:calc(var(--topbar-h) + 16px); display:flex; flex-direction:column; gap:12px; min-width:0; }
.wiz-full .wiz-head {
  position:static; margin:0; padding:12px; gap:10px; border:1px solid var(--line);
  border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-xs);
}
.wiz-full .wiz-steps { flex-direction:column; gap:2px; }
.wiz-full .wiz-step button { padding:8px; font-size:13px; gap:10px; }
.wiz-full .wiz-num { width:24px; height:24px; font-size:11.5px; }
.wiz-full .wiz-count { display:none; }
.wiz-rail-note { display:flex; gap:7px; align-items:flex-start; padding:0 6px; font-size:11.5px; line-height:1.45; color:var(--text-3); }
.wiz-rail-note .ico { flex:none; margin-top:1px; }
.wiz-main { padding:22px 26px 0; min-width:0; }
.wiz-main .wiz { gap:18px; }
.wiz-foot {
  position:sticky; bottom:0; z-index:2; display:flex; align-items:center; gap:8px;
  margin:24px -26px 0; padding:12px 26px; background:var(--surface);
  border-top:1px solid var(--line-soft); border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.wiz-sum { border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); overflow:hidden; box-shadow:var(--shadow-xs); }
.wiz-sum-cover { aspect-ratio:16 / 9; background:var(--surface-3); display:flex; align-items:center; justify-content:center; color:var(--text-4); overflow:hidden; }
.wiz-sum-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.wiz-sum-cover .ico svg { width:40px; height:40px; stroke-width:1.2; }
.wiz-sum-body { padding:14px 16px 16px; display:flex; flex-direction:column; gap:10px; }
.wiz-sum-title { font-size:15px; font-weight:700; line-height:1.3; color:var(--text); overflow-wrap:anywhere; }
.wiz-sum-addr { font-size:12.5px; color:var(--text-3); margin-top:-6px; }
.wiz-sum-price { font-size:20px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.wiz-sum-price .muted { font-size:13px; font-weight:600; }
.wiz-sum-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; }
.wiz-sum-fact span { display:block; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-4); }
.wiz-sum-fact b { font-size:13px; font-weight:600; color:var(--text); }
.wiz-sum-check { border-top:1px solid var(--line-soft); padding-top:10px; display:flex; flex-direction:column; gap:6px; }
.wiz-sum-h { font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-4); }
.wiz-sum-check > div:not(.wiz-sum-h) { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--text-3); }
.wiz-sum-check > div.ok { color:var(--text-2); }
.wiz-sum-check > div.ok .ico { color:var(--t-green-fg); }
@container wizpage (max-width:1080px) {
  .wiz-full { grid-template-columns:210px minmax(0, 1fr); }
  .wiz-side { display:none; }
}
/* Siaurai - vienas stulpelis, zingsniai eilute virsuje (kaip buvusiame
   stalciuje). Telefone (assets/mobile.css) vietoj ju - „2 iš 6“. */
@container wizpage (max-width:760px) {
  .wiz-full { grid-template-columns:minmax(0, 1fr); gap:12px; }
  .wiz-rail { position:static; }
  .wiz-full .wiz-steps { flex-direction:row; }
  .wiz-full .wiz-step button { padding:6px 4px; font-size:11.5px; gap:5px; }
  .wiz-full .wiz-num { width:20px; height:20px; font-size:10.5px; }
  .wiz-rail-note { display:none; }
  .wiz-main { padding:16px 16px 0; }
  .wiz-foot { margin:18px -16px 0; padding:10px 16px; }
}

/* ---------------------------------------------------------------- CHARTS */
.chart-svg { display:block; width:100%; overflow:visible; }
.chart-svg text { font-family:var(--font); }
.legend { display:flex; flex-wrap:wrap; gap:6px 14px; }
.legend-item { display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-2); }
.legend-swatch { width:9px; height:9px; border-radius:3px; flex:none; }
.donut-center { text-align:center; }

/* -------------------------------------------------------------- SETTINGS */
.settings-layout { display:grid; grid-template-columns:216px 1fr; gap:18px; align-items:start; }
.set-nav { display:flex; flex-direction:column; gap:1px; position:sticky; top:calc(var(--topbar-h) + 16px); }
.set-nav-item { padding:8px 11px; border-radius:8px; font-size:12.5px; font-weight:500; color:var(--text-2); cursor:pointer; display:flex; align-items:center; gap:9px; }
.set-nav-item:hover { background:var(--ivory-300); color:var(--text); }
.set-nav-item.on { background:var(--violet-soft); color:var(--violet); font-weight:600; }
/* Two groups in the settings menu: "Mano" and "Įmonės" (views/settings.js). */
.set-nav-label {
  font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-4);
  padding:12px 11px 5px;
}
.set-nav-label:first-child { padding-top:2px; }
.set-row { display:flex; align-items:center; gap:14px; padding:13px 16px; border-bottom:1px solid var(--line-soft); }
.set-row:last-child { border-bottom:0; }
.set-row .grow { min-width:0; }
.set-name { font-size:12.5px; font-weight:600; }
.set-desc { font-size:11.5px; color:var(--text-3); margin-top:1px; }

.integration-card { border:1px solid var(--line); border-radius:11px; padding:13px; display:flex; flex-direction:column; gap:9px; background:var(--surface); }
.integration-card:hover { border-color:var(--line-strong); }
.int-top { display:flex; align-items:center; gap:10px; }
.int-logo { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; }
.int-flow { display:flex; flex-direction:column; gap:4px; font-size:11.5px; color:var(--text-2); border-top:1px solid var(--line-soft); padding-top:9px; }
.int-flow div { display:flex; align-items:center; gap:6px; }

.perm-table th { text-align:center; }
.perm-table th:first-child { text-align:left; }
.perm-table td { text-align:center; }
.perm-table td:first-child { text-align:left; font-weight:600; }
.perm-yes { color:var(--t-green-fg); }
.perm-no { color:var(--text-4); }
.perm-part { color:var(--t-amber-fg); }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width:1400px) {
  .g-6 { grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width:1200px) {
  .g-4 { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .g-2-1, .g-1-2, .g-3-2 { grid-template-columns:minmax(0,1fr); }
  .span-2, .span-3 { grid-column:span 1; }
}
@media (max-width:980px) {
  :root { --sidebar-w:68px; }
  .sidebar .brand-text, .nav-label, .nav-count, .nav-ext { display:none; }
  .nav-item { justify-content:center; padding:9px; }
  .nav-links { flex-direction:column; padding:8px 0 0; }
  .nav-links .nav-group-label { display:none; }
  .g-3, .g-6 { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .settings-layout { grid-template-columns:minmax(0,1fr); }
  .record-head { flex-direction:column; }
  .record-cover { width:100%; height:260px; }
}
@media (max-width:720px) {
  .content { padding:14px 12px 40px; }
  .g-2, .g-3, .g-4, .g-6 { grid-template-columns:minmax(0,1fr); }
  .global-search { max-width:none; }
  .page-head { flex-direction:column; }
}

/* ------------------------------------------------------------------ PRINT */
@media print {
  .sidebar, .topbar, .page-actions, .toolbar, .pager { display:none !important; }
  body { background:#fff; }
  .card { break-inside:avoid; box-shadow:none; }
}

/* ------------------------------------------------------- STULPELINE DIAGRAMA */
/* Vietoj istempto SVG - iprastas islietas. Etiketes lieka normalaus dydzio,
   o spalvos ateina is temos, todel diagrama vienodai skaitoma sviesioje ir
   tamsioje temoje. */
.bchart { display:flex; align-items:stretch; gap:6px; width:100%; }
.bchart-col { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:4px; }
.bchart-val {
  flex:none; height:14px; font-size:11px; font-weight:700; line-height:14px;
  text-align:center; color:var(--text-2); font-variant-numeric:tabular-nums;
}
.bchart-track { flex:1 1 auto; min-height:0; display:flex; align-items:flex-end; }
.bchart-bar { width:100%; border-radius:3px 3px 0 0; min-height:2px; }
.bchart-lbl {
  flex:none; font-size:10.5px; line-height:1.25; text-align:center;
  color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@media (max-width:720px) {
  /* Telefone etiketes netelpa horizontaliai - pasukame jas. */
  .bchart { gap:3px; }
  .bchart-lbl {
    writing-mode:vertical-rl; transform:rotate(180deg);
    white-space:nowrap; max-height:64px; margin:0 auto;
  }
}

/* ------------------------------------------------------- LINIJINE DIAGRAMA */
/* SVG tempiamas tik linijai ir uzpildui; taskai ir etiketes yra HTML, todel
   nei apskritimai, nei tekstas neiskraipomi (zr. core/ui.js ui.lineChart). */
.lchart { display:flex; flex-direction:column; width:100%; }
.lchart-plot { position:relative; flex:1 1 auto; min-height:0; }
.lchart-svg { display:block; width:100%; height:100%; }
.lchart-dot {
  position:absolute; width:7px; height:7px; border-radius:50%;
  transform:translate(-50%, -50%);
  background:var(--surface); border:1.6px solid var(--violet);
  box-sizing:border-box; pointer-events:auto;
}
.lchart-lbls { position:relative; flex:none; height:16px; margin-top:4px; }
.lchart-lbl {
  position:absolute; top:0; font-size:10.5px; line-height:16px;
  color:var(--text-3); white-space:nowrap;
}

/* ------------------------------------------- SOCIALINIAI IRASAI (objektas) */
/* views/object-detail.js composeModal: nuotrauku parinkimas irasui. */
.social-photos { display:grid; grid-template-columns:repeat(auto-fill, minmax(92px, 1fr)); gap:8px; max-height:calc(40vh / var(--ui-scale, 1)); overflow-y:auto; padding:2px; }
.social-photo { all:unset; box-sizing:border-box; position:relative; cursor:pointer; border:2px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface-2); }
.social-photo.on { border-color:var(--violet); }
.social-photo:focus-visible { outline:2px solid var(--violet); outline-offset:2px; }
.social-thumb { display:block; width:100%; aspect-ratio:1/1; background:var(--surface-3); }
.social-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.social-num { position:absolute; top:6px; left:6px; min-width:20px; height:20px; padding:0 5px; border-radius:6px; background:var(--violet); color:var(--violet-on); font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.social-tag { position:absolute; bottom:6px; left:6px; right:6px; padding:1px 4px; border-radius:4px; background:var(--surface); color:var(--text-3); font-size:10px; text-align:center; }

/* ------------------------------------------------- OBJEKTU ZEMELAPIS (sarasas) */
/* views/objects.js: zemelapis saraso korteleje, po filtrais (core/geomap.js). */
.objmap { padding:12px 14px 14px; border-top:1px solid var(--line-soft); }
.objmap-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; min-height:32px; }
.objmap-map .gm { height:clamp(380px, calc(100vh / var(--ui-scale, 1) - 300px), 820px); }
.objmap-missing { margin-top:12px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); }
.objmap-missing-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.objmap-missing-list { display:flex; flex-direction:column; }
.objmap-missing-row { display:flex; align-items:center; gap:8px; min-height:40px; padding:6px 4px; border-top:1px solid var(--line-soft); color:inherit; text-decoration:none; font-size:12.5px; }
.objmap-missing-row:hover { background:var(--surface); }
.objmap-mark { color:var(--violet); font-weight:600; flex:none; }
.objmap-pop-body { display:flex; flex-direction:column; gap:4px; padding:10px 12px 12px; }
.objmap-pop-title { font-size:14px; font-weight:700; line-height:1.3; color:var(--text); text-decoration:none; }
.objmap-pop-title:hover { color:var(--violet); }
.objmap-pop-price { font-size:16px; font-weight:800; letter-spacing:-.01em; margin-top:2px; }
.objmap-approx { color:var(--t-amber-fg); }
.objmap-open { margin-top:6px; justify-content:center; }

/* Objekto kortele: vieta zemelapyje (views/object-detail.js). */
.objloc .gm { height:260px; }
.objloc.editing .gm { height:340px; box-shadow:0 0 0 2px var(--violet); }
.objloc-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* Administratoriaus komandos filtras virsutineje juostoje (core/app.js). */
.tb-team .btn-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-team.on { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet); font-weight: 600; }

/* ==========================================================================
   2026-10-04 -- UI-SUGGESTIONS.md. The list (core/ui.js ui.listView) and the
   small shared pieces around it.
   ========================================================================== */

/* A filter in use keeps its name in front of the value ("Būsena: Dirbame"). */
.fsel {
  display:inline-flex; align-items:center; height:28px; min-width:0; padding-left:9px;
  border:1px solid var(--violet); border-radius:8px; background:var(--violet-soft);
}
.fsel-name { font-size:12px; font-weight:600; color:var(--violet); white-space:nowrap; }
.toolbar .fsel .select {
  border:0; background-color:transparent; height:26px; padding-left:5px; min-width:0; width:auto; max-width:190px;
  font-weight:600; color:var(--text); box-shadow:none;
}
.toolbar .fsel .select:focus { box-shadow:none; }
/* A yes/no filter is a switch with its question beside it. */
.fswitch {
  display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 4px;
  font-size:12px; font-weight:600; color:var(--text-2); cursor:pointer; white-space:nowrap; user-select:none;
}
.fswitch.on { color:var(--text); }
.more-filters .n {
  min-width:17px; height:17px; padding:0 5px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--violet-fill); color:var(--violet-on); font-size:11px; font-weight:700;
}
.more-filters.on { background:var(--surface-3); border-color:var(--line-strong); }
.toolbar.toolbar-more { border-radius:0; background:var(--surface-2); padding-top:8px; padding-bottom:8px; }

/* A tab the person saved: a small mark before the name, a cross when open. */
.filter-tab.mine > .ico { opacity:.7; }
.tab-x {
  border:0; background:none; padding:1px; margin:0 -3px 0 1px; border-radius:4px; color:inherit; cursor:pointer;
  display:inline-flex; opacity:.6;
}
.tab-x:hover { opacity:1; background:var(--violet-soft-2); }

/* "Stulpeliai": the list of columns stays open while they are ticked. */
.menu.col-menu { min-width:236px; max-height:calc(76vh / var(--ui-scale, 1)); overflow-y:auto; }
.col-opt .checkbox { pointer-events:none; }
.col-density { margin:2px 9px 6px; }
.col-density button { flex:1 1 0; justify-content:center; }

/* The name column and the row's menu stay put when a table scrolls sideways. */
table.tbl th.stick-l, table.tbl td.stick-l { position:sticky; left:0; }
table.tbl th.stick-r, table.tbl td.stick-r { position:sticky; right:0; }
table.tbl td.stick-l, table.tbl td.stick-r { z-index:1; background:var(--surface); }
table.tbl th.stick-l, table.tbl th.stick-r { z-index:4; }
table.tbl tbody tr:hover td.stick-l, table.tbl tbody tr:hover td.stick-r { background:var(--surface-2); }
table.tbl tbody tr.selected td.stick-l, table.tbl tbody tr.selected td.stick-r { background:var(--violet-soft); }
.table-wrap.sx th.stick-l:not(.col-check), .table-wrap.sx td.stick-l:not(.col-check) { box-shadow:1px 0 0 var(--line); }
.table-wrap.ox th.stick-r, .table-wrap.ox td.stick-r { box-shadow:-1px 0 0 var(--line); }
@media (max-width:720px) {
  table.tbl th.stick-l, table.tbl td.stick-l, table.tbl td.stick-r, table.tbl th.stick-r { position:static; box-shadow:none; }
  table.tbl th.stick-l, table.tbl th.stick-r { position:sticky; left:auto; right:auto; }
  .fsel { height:40px; flex:1 1 170px; }
  .toolbar .fsel .select { height:38px; flex:1 1 auto; max-width:none; }
}

/* The row the arrow keys are on, and the row whose card is open beside. */
table.tbl tbody tr.kb td { background:var(--surface-2); }
table.tbl tbody tr.kb td:first-child { box-shadow:inset 3px 0 0 var(--violet); }
table.tbl tbody tr.peeked td { background:var(--violet-soft); }

/* A record's card beside the table (cfg.peek). */
.lv-split { display:grid; grid-template-columns:minmax(0, 1fr) 400px; align-items:start; }
.lv-peek {
  border-left:1px solid var(--line); background:var(--surface); min-width:0;
  max-height:calc(100vh / var(--ui-scale, 1) - 220px); overflow-y:auto;
}
.lv-peek-bar {
  display:flex; align-items:center; gap:6px; padding:8px 12px; border-bottom:1px solid var(--line-soft);
  position:sticky; top:0; z-index:2; background:var(--surface);
}
.lv-peek-body { padding:14px 16px 18px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.peek-title { font-size:15px; font-weight:650; line-height:1.3; overflow-wrap:anywhere; }
.peek-sub { font-size:12px; color:var(--text-3); }
.peek-facts { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:7px 14px; font-size:12.5px; align-items:baseline; margin:0; }
.peek-facts dt { color:var(--text-3); white-space:nowrap; }
.peek-facts dd { margin:0; font-weight:600; min-width:0; overflow-wrap:anywhere; }
.peek-note { font-size:12.5px; line-height:1.55; color:var(--text-2); white-space:pre-wrap; overflow-wrap:anywhere; }
.peek-cover { height:150px; border-radius:var(--radius); overflow:hidden; position:relative; }

/* A row between the filters and the table (the quick "new task" line). */
.lv-top { padding:8px 14px; border-bottom:1px solid var(--line-soft); background:var(--surface); }
.quick-add { display:flex; align-items:center; gap:8px; }
.quick-add .ico { color:var(--text-3); flex:none; }
.quick-add input {
  flex:1 1 auto; min-width:0; height:30px; border:0; outline:none; background:transparent; font:inherit; font-size:13px; color:var(--text);
}
.quick-add input::placeholder { color:var(--text-3); }
.quick-add .kbd-hint { font-size:12px; color:var(--text-3); white-space:nowrap; }

/* A phone number or an address that copies itself on a click. */
.copy-link {
  border:0; background:none; padding:0; margin:0; font:inherit; color:inherit; text-align:left; cursor:copy;
  border-radius:3px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; text-decoration:none;
}
.copy-link:hover { color:var(--violet); text-decoration:underline; text-underline-offset:2px; }
.copy-link:focus-visible { outline:2px solid var(--violet); outline-offset:1px; }
a.copy-link { cursor:pointer; }

/* A status that changes from the table: the pill is a button with a caret. */
.pill-btn {
  border:0; background:none; padding:0; margin:0; display:inline-flex; align-items:center; gap:1px;
  cursor:pointer; color:var(--text-3); border-radius:9999px; font:inherit;
}
.pill-btn > .ico { opacity:0; transition:opacity .1s; }
tr:hover .pill-btn > .ico, .pill-btn:focus-visible > .ico, .lv-peek .pill-btn > .ico { opacity:1; }
.pill-btn:focus-visible { outline:2px solid var(--violet); outline-offset:2px; }

/* A whole cell that opens a dialog (the task's responsible person). */
.pill-btn.cell-btn { max-width:100%; min-width:0; text-align:left; padding:2px 8px 2px 2px; margin:-2px -8px -2px -2px; }
.pill-btn.cell-btn:hover { background:var(--surface-3); }

/* What is not a status is plain text with its icon (type, source, access). */
.plain-tag { display:inline-flex; align-items:center; gap:5px; min-width:0; max-width:100%; color:var(--text-2); }
.plain-tag > .ico { color:var(--text-3); flex:none; }
/* A mark next to a name, shown only when unusual (high priority, shared). */
.name-mark { display:inline-flex; align-items:center; flex:none; color:var(--t-amber-fg); }
.name-mark.is-critical { color:var(--t-red-fg); }
.name-mark.is-shared { color:var(--text-3); }

/* A notice on a page: an icon, the text, and its action as a real button. */
.notice {
  display:flex; align-items:center; gap:10px; padding:10px 14px; margin-bottom:14px;
  border:1px solid var(--line); border-radius:var(--radius); font-size:12.5px; line-height:1.5;
}
.notice > .ico { flex:none; }
.notice .btn { flex:none; }
.notice.is-warn { background:var(--t-amber-bg); color:var(--t-amber-fg); border-color:var(--t-amber-dot); }
.notice.is-danger { background:var(--t-red-bg); color:var(--t-red-fg); border-color:var(--t-red-dot); }
.notice.is-info { background:var(--surface-2); color:var(--text-2); }
@media (max-width:720px) { .notice { flex-wrap:wrap; } }

/* Short messages: a close button, and a colour that says which kind it is. */
.toast-msg { min-width:0; }
.toast-x {
  border:0; background:none; color:inherit; opacity:.6; cursor:pointer; padding:3px; margin:-3px -7px -3px 2px;
  border-radius:5px; display:inline-flex; flex:none;
}
.toast-x:hover { opacity:1; background:rgba(255,255,255,.14); }
.toast .toast-x .ico { color:inherit; }
.toast.is-error { box-shadow:inset 4px 0 0 #EF4444, var(--shadow-lg); }
.toast.is-error > .ico { color:#FCA5A5; }
.toast.is-warn { box-shadow:inset 4px 0 0 #F59E0B, var(--shadow-lg); }
.toast.is-warn > .ico { color:#FCD34D; }

/* File transfers panel (core/ui.js ui.transfers, 2026-10-24): bottom right,
   not a modal - work goes on while files travel. Below the dim overlay (200)
   and the drawers: an open window covers it rather than the panel covering
   the window's buttons. */
.xf {
  position:fixed; right:20px; bottom:20px; z-index:190; width:340px;
  max-width:calc((100vw - 32px) / var(--ui-scale, 1));
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); overflow:hidden; animation:toastIn .2s ease;
}
.xf-head { display:flex; align-items:center; gap:6px; padding:10px 10px 8px 14px; }
.xf-head-text { flex:1; min-width:0; display:flex; align-items:baseline; gap:8px; }
.xf-title { font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xf-sub { font-size:12px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.xf .icon-btn.xs:disabled { opacity:.35; cursor:not-allowed; }
.xf-total { height:3px; background:var(--line-soft); }
.xf-total > span { display:block; height:100%; width:0; background:var(--violet-fill); transition:width .25s ease; }
.xf:not(.is-active) .xf-total > span { background:var(--t-done-dot); }
.xf.has-bad:not(.is-active) .xf-total > span { background:var(--t-red-dot); }
.xf-list { max-height:min(320px, calc(46vh / var(--ui-scale, 1))); overflow-y:auto; padding:4px 0; }
.xf.folded .xf-list { display:none; }
.xf.folded .icon-btn.xs:first-of-type .ico { transform:rotate(180deg); }
.xf-row { display:flex; align-items:center; gap:10px; padding:7px 14px; }
.xf-row .file-ico { flex:none; }
.xf-main { flex:1; min-width:0; }
.xf-name { font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xf-line { display:flex; align-items:center; gap:8px; margin-top:4px; }
.xf-track { flex:1; height:4px; border-radius:2px; background:var(--line-soft); overflow:hidden; }
.xf-track > span { display:block; height:100%; width:0; background:var(--violet-fill); transition:width .2s ease; }
.xf-status { font-size:12px; color:var(--text-3); white-space:nowrap; min-width:46px; text-align:right; font-variant-numeric:tabular-nums; }
.xf-row.is-wait .xf-name { color:var(--text-3); }
.xf-row.is-ok .xf-track > span { background:var(--t-done-dot); }
.xf-row.is-ok .xf-status { color:var(--text-2); }
.xf-row.is-bad .xf-track > span { background:var(--t-red-dot); }
.xf-row.is-bad .xf-status { color:var(--t-red-fg); max-width:150px; overflow:hidden; text-overflow:ellipsis; }

/* A link inside a sentence looks like one. */
.text-link, .notice-text a { color:var(--violet); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
button.text-link { border:0; background:none; padding:0; font:inherit; }
/* "Done" is a round tick, so it is not mistaken for the square that selects
   a row (views/tasks.js). A done row is quieter. */
.checkbox.round { border-radius:50%; width:17px; height:17px; }
table.tbl tbody tr.is-done .cell-main { text-decoration:line-through; color:var(--text-3); font-weight:500; }

/* An empty page is one small block, left-aligned (ui.empty compact). */
.empty.compact {
  display:grid; grid-template-columns:auto minmax(0, 1fr); column-gap:12px; align-items:center;
  padding:16px 18px; text-align:left; max-width:760px;
}
.empty.compact > .ico { grid-row:1 / span 2; margin:0; align-self:start; }
.empty.compact > .empty-title { grid-column:2; margin:0; }
.empty.compact > .empty-sub { grid-column:2; }
.empty.compact > div:last-child:not(.empty-sub):not(.empty-title) { grid-column:2; margin-top:10px !important; }
.empty.compact .row { justify-content:flex-start !important; }

/* Blocks whose content is narrow do not stretch across a wide screen. */
.narrow-block { max-width:820px; }
.steps-done .list-item.is-done .li-title { color:var(--text-3); }
.step-tick {
  width:22px; height:22px; border-radius:50%; flex:none; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); color:var(--text-3); font-size:12px; font-weight:700;
}
.step-tick.ok { background:var(--t-green-bg); color:var(--t-green-fg); border-color:transparent; }

/* A section that folds: statistics under a list. */
.fold-head { display:flex; align-items:center; gap:8px; margin:20px 0 10px; }
.fold-btn {
  border:0; background:none; padding:2px 4px; margin:0 0 0 -4px; cursor:pointer; color:var(--text);
  display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:14px; font-weight:600; border-radius:6px;
}
.fold-btn:hover { background:var(--ivory-300); }
.fold-btn > .ico { transition:transform .15s; color:var(--text-3); }
.fold-btn[aria-expanded="false"] > .ico { transform:rotate(-90deg); }

/* Useful links window (core/app.js linksModal, 2026-10-24) and the office's
   own links in Settings -> Bendri. */
.ul-list { display:flex; flex-direction:column; max-height:min(60vh, calc(60vh / var(--ui-scale, 1))); overflow-y:auto; margin:0 -4px; }
.ul-group { font-size:12px; font-weight:600; color:var(--text-3); padding:12px 4px 4px; }
.ul-group:first-child { padding-top:2px; }
.ul-item { display:flex; align-items:center; gap:10px; padding:8px 4px; border-radius:8px; color:var(--text); }
.ul-item:hover, .ul-item:focus-visible { background:var(--violet-soft); }
.ul-item > .ico { color:var(--text-3); flex:none; }
.ul-name { font-size:13.5px; font-weight:600; }
.ul-sub { font-size:12px; color:var(--text-3); }
.ul-edit-row { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr) auto; gap:8px; align-items:center; }
@media (max-width:720px) { .ul-edit-row { grid-template-columns:minmax(0, 1fr) auto; } .ul-edit-row > .input:nth-child(2) { grid-column:1; } }
