/* Dispečerinė — vizualinė sistema.
   Vienintelis „garsus“ elementas – maršruto linija apžvalgoje. Visa kita – tylūs sąrašai.
   Spalva reiškia būseną: žalia – atlikta/pagal planą, gintarinė – šiandien/dėmesys,
   raudona – vėluoja/rizika, eglės žalia – veiksmas ir prekės ženklas. */

:root {
  --ink: #1d2522;
  --ink-2: #48544f;
  --ink-3: #75817b;
  --paper: #eef1ec;
  --surface: #fbfcfa;
  --surface-2: #f4f7f3;
  --rule: #d3dbd5;
  --rule-strong: #b6c1ba;
  --spruce: #1f5c4c;
  --spruce-hover: #184a3d;
  --spruce-soft: #dde9e3;
  --on-spruce: #ffffff;
  --amber: #e3a12f;
  --amber-ink: #7a4f06;
  --amber-soft: #f8ebcf;
  --red: #c23e35;
  --red-soft: #f6e0dd;
  --green: #2d8a57;
  --green-soft: #ddefe3;
  --focus: #2f6fb3;
  --shadow-sheet: 0 -8px 32px rgba(20, 30, 26, 0.18);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --r-s: 6px;
  --r-m: 10px;
  --nav-h: 64px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e2e8e4;
    --ink-2: #b4bfb9;
    --ink-3: #87938d;
    --paper: #121816;
    --surface: #19211e;
    --surface-2: #1f2925;
    --rule: #2c3833;
    --rule-strong: #3d4b45;
    --spruce: #6fbfa0;
    --spruce-hover: #8bd1b6;
    --spruce-soft: #1f3a31;
    --on-spruce: #0e1a15;
    --amber: #f0b24a;
    --amber-ink: #f6cf8a;
    --amber-soft: #3a2f17;
    --red: #e3736a;
    --red-soft: #3d2220;
    --green: #62c28d;
    --green-soft: #1b3326;
    --focus: #7fb2ec;
    --shadow-sheet: 0 -8px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e2e8e4; --ink-2: #b4bfb9; --ink-3: #87938d; --paper: #121816; --surface: #19211e; --surface-2: #1f2925;
  --rule: #2c3833; --rule-strong: #3d4b45; --spruce: #6fbfa0; --spruce-hover: #8bd1b6; --spruce-soft: #1f3a31;
  --on-spruce: #0e1a15; --amber: #f0b24a; --amber-ink: #f6cf8a; --amber-soft: #3a2f17; --red: #e3736a; --red-soft: #3d2220;
  --green: #62c28d; --green-soft: #1b3326; --focus: #7fb2ec; --shadow-sheet: 0 -8px 32px rgba(0, 0, 0, 0.5); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--spruce); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-family: var(--font-cond); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ karkasas */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar__title { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; flex: 1; }
.topbar__name { font-family: var(--font-cond); font-weight: 700; font-size: 21px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__sub { font-size: 12.5px; color: var(--ink-3); }
.topbar__back { margin-left: -8px; }
.main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 1180px; margin: 0 auto; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.bottomnav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); text-decoration: none; font-size: 12px; font-weight: 500;
}
.bottomnav a[aria-current="page"] { color: var(--spruce); }
.bottomnav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--spruce);
}
.signal-dot {
  position: absolute; top: 9px; left: calc(50% + 8px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--amber); color: #2b1d02; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center;
  font-family: var(--font-cond);
}

.sidenav { display: none; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; }
  .bottomnav { display: none; }
  .sidenav {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 18px 12px; border-right: 1px solid var(--rule); background: var(--surface);
  }
  .sidenav__brand { padding: 4px 10px 18px; }
  .sidenav__brand b { display: block; font-family: var(--font-cond); font-size: 24px; line-height: 1.05; }
  .sidenav__brand span { color: var(--ink-3); font-size: 13px; }
  .sidenav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--r-s);
    color: var(--ink-2); text-decoration: none; font-weight: 500;
  }
  .sidenav a:hover { background: var(--surface-2); color: var(--ink); }
  .sidenav a[aria-current="page"] { background: var(--spruce-soft); color: var(--spruce); }
  .sidenav .signal-dot { position: static; margin-left: auto; }
  .sidenav__sep { height: 1px; background: var(--rule); margin: 10px 6px; }
  .sidenav__foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--ink-3); }
  .main { padding: 24px 32px 48px; }
  .topbar { padding: 0 32px; }
}

/* ------------------------------------------------------------------ tipografija ir sekcijos */
.h1 { font-family: var(--font-cond); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
.h2 { font-family: var(--font-cond); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0; }
.h3 { font-weight: 600; font-size: 16px; margin: 0; }
.section { margin: 0 0 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section__head a, .section__head .linkbtn { font-size: 14px; font-weight: 500; }
.lead { color: var(--ink-2); max-width: 64ch; margin: 4px 0 0; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }

.grid-2 { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: minmax(300px, 380px) 1fr; gap: 40px; align-items: start; }
  .grid-2 > .sticky { position: sticky; top: 24px; }
}

/* ------------------------------------------------------------------ mygtukai */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--spruce); border-color: var(--spruce); color: var(--on-spruce); }
.btn--primary:hover { background: var(--spruce-hover); border-color: var(--spruce-hover); }
.btn--danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--rule)); }
.btn--ghost { border-color: transparent; background: transparent; padding: 0 10px; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn--small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--block { width: 100%; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--spruce); cursor: pointer; font-weight: 500; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 25;
  width: 56px; height: 56px; border-radius: 28px; border: 0;
  background: var(--spruce); color: var(--on-spruce); box-shadow: 0 6px 18px rgba(20, 50, 40, 0.3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (min-width: 960px) { .fab { bottom: 28px; right: 32px; } }

/* ------------------------------------------------------------------ žymos */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--amber { background: var(--amber-soft); color: var(--amber-ink); }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--spruce { background: var(--spruce-soft); color: var(--spruce); }
.tag--outline { background: transparent; border: 1px dashed var(--rule-strong); color: var(--ink-2); }

/* ------------------------------------------------------------------ sąrašai */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list > li { border-bottom: 1px solid var(--rule); }
.row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 10px 2px;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit; text-decoration: none;
}
.row:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 500; line-height: 1.3; }
.row__meta { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.row__side { text-align: right; font-size: 14px; color: var(--ink-2); flex-shrink: 0; }
.row--done .row__title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.overdue { color: var(--red); font-weight: 600; }

.check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 14px;
  border: 2px solid var(--rule-strong); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: transparent; padding: 0;
}
.check:hover { border-color: var(--spruce); }
.check--on { background: var(--green); border-color: var(--green); color: #fff; }
.check--big { width: 40px; height: 40px; border-radius: 20px; }

.empty { padding: 28px 4px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--rule); max-width: 100%; overflow-x: auto;
}
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search {
  flex: 1; min-width: 180px; height: 42px; padding: 0 12px 0 38px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-s); background: var(--surface) no-repeat 11px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2375817b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ maršruto linija (pagrindinis elementas) */
.route { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.route__stop { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 0 12px; padding: 0 0 22px; }
.route__stop:last-child { padding-bottom: 0; }
.route__track { position: relative; display: flex; justify-content: center; }
.route__track::after {
  content: ""; position: absolute; top: 26px; bottom: -22px; left: 50%; width: 4px; margin-left: -2px;
  background: repeating-linear-gradient(to bottom, var(--rule-strong) 0 7px, transparent 7px 12px);
}
.route__stop--past .route__track::after { background: var(--spruce); }
.route__stop:last-child .route__track::after { display: none; }
.route__dot {
  position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 2px; border-radius: 12px;
  border: 4px solid var(--spruce); background: var(--surface);
}
.route__stop--past .route__dot { background: var(--spruce); }
.route__stop--prelim .route__dot { border-style: dashed; border-color: var(--ink-3); }
.route__stop--risk .route__dot { border-color: var(--red); }
.route__stop--end .route__dot { border-radius: 4px; }
.route__body { min-width: 0; }
.route__title { font-family: var(--font-cond); font-weight: 600; font-size: 19px; line-height: 1.2; }
.route__title a { color: inherit; text-decoration: none; }
.route__title a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); }
.route__meta { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.route__date { text-align: right; font-family: var(--font-cond); font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; padding-top: 1px; }
.route__date small { display: block; font-family: var(--font); font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.route__people { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.ticks { display: inline-grid; grid-auto-flow: column; gap: 2px; }
.ticks i { display: block; width: 4px; height: 12px; border-radius: 1px; background: var(--rule); }
.ticks i.on { background: var(--green); }
.route__today { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 0 0 22px; align-items: center; }
.route__today::before {
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: color-mix(in srgb, var(--amber) 55%, transparent);
}
.route__today .route__track::after { top: 24px; }
.route__today-tab {
  position: relative; z-index: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px; border-radius: 4px;
  background: var(--amber); color: #2b1d02; font-weight: 700; font-size: 13.5px; font-family: var(--font-cond); letter-spacing: 0.02em;
}
.route__today-mark {
  position: relative; z-index: 1; width: 34px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.route__today-mark i { width: 14px; height: 14px; transform: rotate(45deg); background: var(--amber); border-radius: 2px; }

.countdown { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 16px; flex-wrap: wrap; }
.countdown b { font-family: var(--font-cond); font-size: 46px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown span { color: var(--ink-2); }

/* ------------------------------------------------------------------ rodikliai */
.meters { display: grid; gap: 16px; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter__label { font-weight: 500; }
.meter__value { font-family: var(--font-cond); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__value small { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.meter__bar { position: relative; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--rule); overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; background: var(--spruce); border-radius: 4px; }
.meter__fill--green { background: var(--green); }
.meter__fill--amber { background: var(--amber); }
.meter__fill--red { background: var(--red); }
.meter__plan { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: 0.55; }
.meter__note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.meter__edit { display: inline-flex; gap: 4px; align-items: center; }

/* ------------------------------------------------------------------ agentų žinutės */
.voice { border-left: 3px solid var(--spruce); padding: 2px 0 2px 14px; }
.voice__who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 6px; }
.voice__who b { color: var(--ink-2); font-weight: 600; }
.voice--risk { border-left-color: var(--red); }
.voice--question { border-left-color: var(--amber); }
.agent-glyph {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 6px; background: var(--spruce-soft); color: var(--spruce);
}
.agent-glyph--lg { width: 40px; height: 40px; border-radius: 9px; }
.md { overflow-wrap: anywhere; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md h1, .md h2, .md h3 { font-family: var(--font-cond); font-size: 18px; margin: 14px 0 6px; }
.md code { background: var(--surface-2); padding: 1px 4px; border-radius: 3px; font-size: 0.92em; }
.md blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--rule); color: var(--ink-2); }

.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin: 0 0 18px; border-radius: var(--r-m);
  background: var(--amber-soft); color: var(--amber-ink); text-decoration: none; font-weight: 600;
}
.banner--red { background: var(--red-soft); color: var(--red); }
.banner--quiet { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.banner__main { flex: 1; }

/* ------------------------------------------------------------------ formos */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__error { font-size: 13px; color: var(--red); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-s); background: var(--surface);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.textarea--tall { min-height: 260px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.switch input { width: 20px; height: 20px; accent-color: var(--spruce); }
.filepick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filechip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 13.5px; }

/* ------------------------------------------------------------------ apatinis lapas / šoninis skydas */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12, 18, 16, 0.42); animation: fade 0.16s ease-out; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-sheet);
  animation: up 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 8px auto 0; }
.sheet__head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--rule); }
.sheet__title { flex: 1; font-family: var(--font-cond); font-size: 21px; font-weight: 600; line-height: 1.2; }
.sheet__body { padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__foot { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--rule); display: flex; gap: 8px; flex-wrap: wrap; }
.sheet__foot .spacer { flex: 1; }
@media (min-width: 960px) {
  .sheet { left: auto; top: 0; width: 520px; max-height: none; border-radius: 0; animation: side 0.2s cubic-bezier(0.2, 0.8, 0.3, 1); }
  .sheet__grip { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0.6; } }
@keyframes side { from { transform: translateX(24px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }

/* ------------------------------------------------------------------ pranešimai (toast) */
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 520px; padding: 11px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.toast--error { background: var(--red); color: #fff; }
@media (min-width: 960px) { .toasts { bottom: 24px; left: auto; right: 32px; justify-items: end; } }

/* ------------------------------------------------------------------ patvirtinimai */
.draft { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.draft__head { display: flex; align-items: center; gap: 10px; }
.draft__chan { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.draft__subject { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 8px 0 2px; }
.draft__to { font-size: 13.5px; color: var(--ink-3); }
.draft__body { white-space: pre-wrap; margin: 10px 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--rule); font-size: 15px; line-height: 1.5; max-height: 220px; overflow: hidden; position: relative; }
.draft__body--full { max-height: none; }
.draft__why { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.draft__why b { font-weight: 600; }

/* ------------------------------------------------------------------ registracija vietoje */
.checkin-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; margin: 0 0 16px; }
.checkin-head div { background: var(--surface); padding: 10px 12px; }
.checkin-head b { display: block; font-family: var(--font-cond); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.checkin-head span { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ lentelės (biudžetas) */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink-3); padding: 8px 6px; border-bottom: 1px solid var(--rule-strong); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; border-bottom: 0; }
.tablewrap { overflow-x: auto; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 14px; }
.kv dd { margin: 0; font-weight: 500; }

.statusline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.statusline i { width: 9px; height: 9px; border-radius: 5px; background: var(--ink-3); }
.statusline i.on { background: var(--green); }
.statusline i.warn { background: var(--amber); }
.statusline i.off { background: var(--red); }

.qr { width: 180px; height: 180px; background: #fff; padding: 10px; border-radius: var(--r-s); border: 1px solid var(--rule); }
.qr svg { width: 100%; height: 100%; display: block; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login__box { width: 100%; max-width: 380px; }
.login__brand { font-family: var(--font-cond); font-weight: 700; font-size: 40px; line-height: 1; margin: 0 0 6px; }
.login__route { display: flex; align-items: center; gap: 0; margin: 18px 0 26px; }
.login__route i { width: 14px; height: 14px; border-radius: 7px; border: 3px solid var(--spruce); background: var(--surface); flex-shrink: 0; }
.login__route i.on { background: var(--spruce); }
.login__route s { flex: 1; height: 4px; background: repeating-linear-gradient(to right, var(--rule-strong) 0 7px, transparent 7px 12px); }
.login__route s.on { background: var(--spruce); }

/* ------------------------------------------------------------------ spausdinimas */
.printsheet { background: #fff; color: #000; padding: 24px; }
.printsheet h1 { font-family: var(--font-cond); font-size: 24px; margin: 0 0 4px; }
.printsheet table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.printsheet th, .printsheet td { border: 1px solid #000; padding: 8px 6px; text-align: left; }
.printsheet td { height: 34px; }
.printsheet .funding { margin-top: 18px; font-size: 12px; }
@media print {
  .topbar, .bottomnav, .sidenav, .noprint, .fab, .toasts { display: none !important; }
  body { background: #fff; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .printsheet { padding: 0; }
}

.spin { width: 22px; height: 22px; border-radius: 11px; border: 3px solid var(--rule); border-top-color: var(--spruce); animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 60vh; }

@media (min-width: 960px) {
  .topbar { display: none; }
}
.crumb { display: none; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
@media (min-width: 960px) { .crumb { display: inline-flex; } }
