[hidden] { display: none !important; }
:root {
  /* Etapų spalvos grafikams ir juostoms (patikrinta spalvų aklumui: šviesus ir tamsus fonas). */
  --st-translate: #c98500; --st-check: #4a3aa7; --st-edit: #2a78d6; --st-proof: #e87ba4; --st-done: #008300;
  --bg: #f6f2ea;
  --panel: #fffdf8;
  --panel-2: #f1ece1;
  --ink: #1f2a37;
  --ink-2: #4b5563;
  --muted: #8a8577;
  --line: #e2dbcc;
  --line-2: #d3cab6;
  --primary: #243b53;
  --primary-ink: #f8f4ea;
  --accent: #8c2f39;
  --new: #9aa0a6;
  --draft: #c9861a;
  --draft-bg: #fbf1dc;
  --edited: #2f6db5;
  --edited-bg: #e6eef9;
  --approved: #2f7d4f;
  --approved-bg: #e3f2e8;
  --red: #b42318;
  --red-bg: #fde8e6;
  --yellow-bg: #fff5d6;
  --focus: #f2b84b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 55, .06), 0 4px 16px rgba(31, 42, 55, .06);
}
/* Fonai (Skaitymo nustatymai). html.dark — kai tamsus (pasirinktas ar pagal sistemą). */
html[data-theme="white"] { --bg: #f7f7f8; --panel: #ffffff; --panel-2: #f1f2f4; --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --line-2: #d1d5db; }
html[data-theme="cream"] { --bg: #efe5cf; --panel: #f8f0dc; --panel-2: #ece0c4; --ink: #33291b; --ink-2: #5a4a33; --muted: #85745a; --line: #dfd0ad; --line-2: #cdbb93; }
html[data-theme="grey"] { --bg: #dfe2e6; --panel: #eef0f2; --panel-2: #e2e5e9; --ink: #1d232b; --ink-2: #3e4752; --muted: #66707c; --line: #cdd2d8; --line-2: #b9c0c8; }
html[data-theme="contrast"] { --bg: #ffffff; --panel: #ffffff; --panel-2: #f0f0f0; --ink: #000000; --ink-2: #111111; --muted: #333333; --line: #555555; --line-2: #000000; --primary: #000000; --primary-ink: #ffffff; --edited: #0040c0; --approved: #006b2b; --red: #b00000; --focus: #ff9d00; }
html.dark {
    --bg: #15191f; --panel: #1c2128; --panel-2: #232a33; --ink: #e8e4da; --ink-2: #b8b3a7; --muted: #8b8778;
    --line: #2d3540; --line-2: #3a4450; --primary: #d9c7a0; --primary-ink: #15191f; --accent: #e08a93;
    --draft-bg: #3a2f17; --edited-bg: #1b2c44; --approved-bg: #183325; --red-bg: #3d1b18; --yellow-bg: #3a3317;
    --draft: #e3a540; --edited: #6aa2e6; --approved: #5cc08a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--muted); }

/* ---------- Viršutinė juosta ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 0 20px; height: 54px; background: var(--primary); color: var(--primary-ink); }
.brand { font: 600 18px/1 var(--serif); letter-spacing: .2px; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary-ink); color: var(--primary); display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 7px; opacity: .82; white-space: nowrap; font-size: 14px; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav a.on { opacity: 1; background: rgba(255,255,255,.14); }
/* 0.44.0: „Daugiau ▾“ — netelpantys meniu punktai */
.top .nav { flex: 0 1 auto; min-width: 0; }
.top .nav-more + * { margin-left: auto; }
.nav-more { position: relative; flex: none; }
.nav-more > .nav-more-btn { background: transparent; border: 0; color: inherit; font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 7px; opacity: .82; cursor: pointer; white-space: nowrap; }
.nav-more > .nav-more-btn:hover, .nav-more.on > .nav-more-btn { opacity: 1; background: rgba(255,255,255,.14); }
.nav-more .pop { left: 0; right: auto; min-width: 200px; }
.nav-more .pop a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-more .pop a:hover, .nav-more .pop a.on { background: var(--panel-2); }
html.dark .nav-more > .nav-more-btn:hover, html.dark .nav-more.on > .nav-more-btn { background: rgba(0,0,0,.12); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.who button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 7px; padding: 4px 10px; cursor: pointer; }
html.dark .nav a:hover, html.dark .nav a.on { background: rgba(0,0,0,.12); } html.dark .who button { border-color: rgba(0,0,0,.25); }

main.page { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 6px; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 18px; }

/* ---------- Mygtukai ir laukai ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; padding: 7px 13px; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 14px; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ok { background: var(--approved); border-color: var(--approved); color: #fff; }
.btn.danger { color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 4px 9px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; padding: 8px 10px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 320px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- Kortelės ir lentelės ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.book { display: block; text-decoration: none; transition: transform .08s; }
.book:hover { transform: translateY(-1px); border-color: var(--line-2); }
.book h3 { font-size: 18px; margin-bottom: 2px; }
.book .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: color-mix(in srgb, var(--panel-2) 50%, transparent); }
table.t td.wrap { white-space: normal; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 10px 0 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; border-bottom: 2px solid transparent; color: var(--ink-2); margin-bottom: -1px; white-space: nowrap; }
/* 0.44.0: siaurame ekrane skirtukai slenka, o ne išstumia puslapį į šoną */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a.on { border-color: var(--primary); color: var(--ink); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Progresas ---------- */
.prog { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.prog i { display: block; height: 100%; }
.prog .a { background: var(--approved); } .prog .e { background: var(--edited); } .prog .d { background: var(--draft); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; letter-spacing: .2px; }
.chip.new { background: var(--panel-2); color: var(--muted); }
.chip.draft { background: var(--draft-bg); color: var(--draft); }
.chip.edited { background: var(--edited-bg); color: var(--edited); }
.chip.approved { background: var(--approved-bg); color: var(--approved); }
.chip.job { background: var(--edited-bg); color: var(--edited); }
.chip.fail { background: var(--red-bg); color: var(--red); }

/* ---------- Modalai, pranešimai ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 24, 30, .45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--panel); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; }
.modal.wide { width: min(900px, 100%); }
.modal h2 { margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 9px; box-shadow: var(--shadow); font-size: 14px; max-width: 90vw; }
#toast div.err { background: var(--red); color: #fff; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-2); cursor: pointer; background: var(--panel); }
.drop.over { border-color: var(--primary); background: var(--panel-2); }

/* ---------- Prisijungimas ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: min(400px, 100%); padding: 28px; }
.auth h1 { text-align: center; margin-bottom: 4px; }
.auth .sub { text-align: center; }
/* 0.45.0: kalbos jungiklis prisijungimo lange */
.auth-lang { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--panel); }
.auth-lang button { border: 0; background: transparent; padding: 6px 12px; font: 600 12px var(--sans); color: var(--muted); cursor: pointer; letter-spacing: .04em; }
.auth-lang button.on { background: var(--primary); color: var(--primary-ink); }
/* 0.44.0: nuoroda į pristatymą prisijungimo lange */
.auth { align-content: center; gap: 14px; }
.auth-intro { width: min(400px, 100%); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.auth-intro:hover { border-color: var(--primary); transform: translateY(-1px); }
.auth-intro .ai-k { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); grid-column: 1; }
.auth-intro .ai-t { font: 500 15px var(--sans); grid-column: 1; }
.auth-intro .ai-a { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--primary); }

/* ---------- Redaktorius ---------- */
.ed-top { position: sticky; top: 54px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.ed-top .in { max-width: 1500px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
/* 0.38.15: „DI ▾“ ir „Eksportuoti ▾“ — iškart po etapų filtrų (be tuščio tarpo); suskleistoje juostoje — kaip anksčiau */
.ed-top:not(.cmp) .in > .spacer { display: none; }
.ed-title { min-width: 0; }
.ed-title .crumb { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.ed-title h1 { font-size: 20px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: clamp(200px, 20vw, 420px); } /* 0.34.4: kad DI ▾ / Eksportuoti ▾ tilptų pirmoje eilutėje */
.ed-top .prog { width: 160px; }
.seg-filter { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg-filter button { border: 0; background: var(--panel); padding: 5px 8px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--line); }
.seg-filter button:last-child { border-right: 0; }
.seg-filter button.on { background: var(--primary); color: var(--primary-ink); }
.jobbar { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.jobbar .prog { flex: 1; max-width: 360px; }
.jobbar .jb-mini { display: none; }
.ed-top.cmp .jobbar { width: auto; flex: none; }
.ed-top.cmp .jobbar > :not(.jb-mini) { display: none !important; }
.ed-top.cmp .jobbar .jb-mini { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; cursor: default; }
.ed { max-width: var(--ed-width, 1500px); margin: 0 auto; padding: 16px 20px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
html.noside .ed { grid-template-columns: minmax(0, 1fr); }
html.noside .ed > .side { display: none; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } .side { position: static !important; max-height: none !important; } .ed-title h1 { max-width: 80vw; } }
.segs { display: flex; flex-direction: column; gap: var(--seg-gap, 10px); }
.seg { display: grid; grid-template-columns: var(--numw) minmax(0, var(--col-en, 1fr)) minmax(0, var(--col-lt, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.seg.focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.seg .num { font-size: 11.5px; color: var(--muted); padding: 12px 0 0 0; text-align: center; border-right: 1px solid var(--line); position: relative; }
/* 0.62.14: būsenos juosta eina pagal kortelės vidinį kampą (--radius 10px − 1px rėmelis = 9px): elementas 9px pločio su 9px kampu, matomi tik kairieji 3px (kaukė). Spalvą nustato eilutės žemiau (background). */
.seg .num::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 9px 0 0 9px; background: var(--new); -webkit-mask: linear-gradient(to right, #000 3px, transparent 3px); mask: linear-gradient(to right, #000 3px, transparent 3px); pointer-events: none; }
.segs.blind .seg .num::after { width: 3px; border-radius: 0; -webkit-mask: none; mask: none; }
.seg.st-draft .num::after { background: var(--draft); }
.seg.st-edited .num::after { background: var(--edited); }
.seg.st-approved .num::after { background: var(--approved); }
.src, .tgt { padding: var(--seg-pad, 10px) 14px; min-width: 0; overflow-wrap: anywhere; }
.src { font-family: var(--font-en, var(--serif)); font-size: var(--read-size, 17px); line-height: var(--read-lh-en, 1.6); }
.tgt { font-family: var(--font-lt, var(--serif)); font-size: calc(var(--read-size, 17px) * var(--lt-scale, 1)); line-height: var(--read-lh-lt, 1.6); }
.tgt-text { font-weight: 400; }
.src { border-right: 1px solid var(--line); color: var(--ink); }
.seg.k-h1 .src-text, .seg.k-h1 .tgt-text { font-size: 1.3em; font-weight: 700; line-height: 1.3; }
.seg.k-h2 .src-text, .seg.k-h2 .tgt-text { font-size: 1.15em; font-weight: 700; line-height: 1.35; }
.seg.k-h3 .src-text, .seg.k-h3 .tgt-text, .seg.k-h4 .src-text, .seg.k-h4 .tgt-text { font-weight: 700; }
.seg.k-blockquote .src-text, .seg.k-blockquote .tgt-text { font-size: .94em; padding-left: 14px; border-left: 3px solid var(--line-2); }
.seg.k-footnote .src-text, .seg.k-footnote .tgt-text { font-size: .85em; }
.seg.k-li .src-text::before, .seg.k-li .tgt-text:not(:empty)::before { content: "• "; color: var(--muted); }
.seg.k-li2 .src-text::before, .seg.k-li2 .tgt-text:not(:empty)::before { content: "◦ "; color: var(--muted); }
.seg.k-li2 .src-text, .seg.k-li2 .tgt-text { margin-left: 1.4em; }
/* 0.34.3: numeruotas sąrašas — numeris skaičiuojamas nepertraukta „ol“ pastraipų seka (kaip Word'e). */
.segs .seg:not(.k-ol):not(.k-li2) { counter-reset: rlc-ol; } /* 0.63.4: 2 lygio punktas nenutraukia numeruoto sąrašo */
.segs .seg.k-ol { counter-increment: rlc-ol; }
.seg.k-ol .src-text::before, .seg.k-ol .tgt-text:not(:empty)::before { content: counter(rlc-ol) ". "; color: var(--muted); }
.kind { font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: block; margin-bottom: 4px; }
.gl { border-bottom: 2px dotted var(--accent); cursor: help; }
.tgt { display: flex; flex-direction: column; gap: 6px; }
.tgt-text { outline: none; min-height: 1.6em; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.tgt-text:empty::before { content: attr(data-ph); color: var(--muted); font-style: italic; }
.tgt-text:focus { background: color-mix(in srgb, var(--focus) 9%, transparent); }
.seg-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 12.5px/1.3 var(--sans); }
.seg-foot .saved { color: var(--muted); }
.seg-foot .btn.sm { padding: 3px 8px; font-size: 12.5px; }
.flag { font: 13px/1.45 var(--sans); border-radius: 8px; padding: 7px 10px; background: var(--yellow-bg); }
.flag.red { background: var(--red-bg); }
.flag.grey { background: var(--panel-2); }
.flag .fl-h { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-2); }
.flag .q { font-family: var(--serif); text-decoration: line-through; text-decoration-color: var(--red); }
.flag .s { font-family: var(--serif); font-weight: 600; }
.flag .fl-a { margin-top: 5px; display: flex; gap: 6px; }
/* 0.56: siaurame stulpelyje mygtukai keliasi į kitą eilutę, o ne suspaudžia pastabos tekstą iki kelių raidžių */
.flag > .row { flex-wrap: wrap; } .flag > .row > span[style*="flex:1"] { flex: 1 1 14em !important; min-width: 0; }
.note-box textarea { min-height: 54px; font-size: 13.5px; }
/* 0.62.11: pastaba pastraipai — išsaugota rodoma eilute „Pastaba: …“, laukas matomas tik taisant (data-mode: view | edit | none) */
.note-box[data-mode="view"] textarea, .note-box[data-mode="view"] .note-hint, .note-box[data-mode="edit"] .note-view { display: none; }
.note-view { display: flex; gap: 7px; align-items: flex-start; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--ink-2); font: 13.5px/1.45 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-view[role="button"] { cursor: text; }
.note-view[role="button"]:hover { border-color: var(--line-2); }
.note-view .ic { flex: none; margin-top: 2px; }
.note-view .nv-l { flex: none; font-weight: 600; }
.note-view .nv-t { min-width: 0; color: var(--ink); }
.note-hint { margin-top: 3px; font: 12px/1.3 var(--sans); color: var(--muted); }
.side { position: sticky; top: var(--side-top, 142px); max-height: var(--side-max, calc(100vh - 160px)); overflow: auto; display: flex; flex-direction: column; gap: 14px; transition: top .15s ease; }
.side .card { padding: 14px 16px; }
.side h3 { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); margin-bottom: 10px; }
.tm-item { border-top: 1px solid var(--line); padding: 9px 0; font-size: 13.5px; }
.tm-item:first-of-type { border-top: 0; padding-top: 0; }
.tm-item .pct { font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--approved-bg); color: var(--approved); }
.tm-item .pct.mid { background: var(--draft-bg); color: var(--draft); }
.tm-item .en { color: var(--ink-2); margin: 4px 0 2px; }
.tm-item .lt { font-family: var(--serif); font-size: 14.5px; }
.tm-item mark { background: color-mix(in srgb, var(--focus) 45%, transparent); color: inherit; border-radius: 3px; }
.gl-item { padding: 5px 0; font-size: 14px; border-top: 1px solid var(--line); }
.gl-item:first-of-type { border-top: 0; }
.gl-item b { font-family: var(--serif); }
.hist-item { font-size: 13px; border-top: 1px solid var(--line); padding: 7px 0; }
.hist-item .lt { font-family: var(--serif); font-size: 14px; margin: 3px 0; }
.kbd { font: 11px/1 ui-monospace, monospace; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 4px; background: var(--panel); }
.menu { position: relative; display: inline-block; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); min-width: 260px; padding: 6px; z-index: 40; display: none; }
.menu.open .pop { display: block; }
.menu.flip .pop { left: 0; right: auto; }
.menu .pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.menu .pop button:hover { background: var(--panel-2); }
.menu .pop button small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .seg { grid-template-columns: var(--numw-m) minmax(0, 1fr); }
  .src { border-right: 0; border-bottom: 1px solid var(--line); grid-column: 2; }
  .tgt { grid-column: 2; }
  .seg .num { grid-row: span 2; }
  .who span { display: none; }
  .top { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 6px 10px; position: static; } /* 0.45.1: telefone keliaeilutė juosta nebeuždengia teksto slenkant */
  /* 0.44.0: telefone dešinės pusės mygtukai nebeiškrenta už ekrano — keliasi į kitą eilutę */
  .who { flex-wrap: wrap; white-space: normal; row-gap: 6px; min-width: 0; max-width: 100%; }
  .bk-head { flex-wrap: wrap; }
  .bk-head > div:first-child { flex: 1 1 100% !important; }
  .nav { order: 3; flex-basis: 100%; }
  .ed-top { position: static; }
  main.page { padding: 18px 12px 60px; }
  .ed { padding: 10px 8px 80px; }
}

/* ---------- Semantinis žemėlapis ---------- */
.map-box { display: none; }
.segs.show-map .map-box { display: block; }
.map-in { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); font: 13px/1.5 var(--sans); color: var(--ink-2); }
.map-in b { color: var(--ink); font-weight: 600; }
/* 0.56: žemėlapis — spalvotos kortelės; užvedus pelę EN tekste pažymimos frazės (::highlight(map-…)) */
:root { --mp-teiginys: #b7791f; --mp-logika: #6b5bd2; --mp-modalumas: #2f6db5; --mp-terminai: #2e8b57; --mp-retorika: #c2407a; --mp-idiomos: #8a6d3b; --mp-dviprasmybes: #c0392b; --mp-citatos: #6b7280; }
html.dark { --mp-teiginys: #e3b04a; --mp-logika: #a99cf0; --mp-modalumas: #7fb2f0; --mp-terminai: #6fd08f; --mp-retorika: #f08ab8; --mp-idiomos: #d0b07a; --mp-dviprasmybes: #f08a80; --mp-citatos: #aab2bd; }
.map-in.v2 { background: none; padding: 10px 0 0; border-top: 1px dashed var(--line-2); border-radius: 0; }
.map-in.v2 .mh { display: flex; align-items: center; gap: 7px; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.map-in.v2 .mh-r { margin-left: auto; display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.map-in.v2 .mg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 6px; }
.map-in.v2 .mr { --c: var(--mp-citatos); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--panel)); border-radius: 0 7px 7px 0; padding: 6px 9px; color: var(--ink-2); cursor: default; transition: background .15s; }
.map-in.v2 .mr b { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--c); margin-bottom: 2px; }
.map-in.v2 .mr.hl { background: color-mix(in srgb, var(--c) 20%, var(--panel)); }
.map-in.v2 .mr.wide { grid-column: 1 / -1; }
.map-in.v2 .mr.mk-teiginys { --c: var(--mp-teiginys); } ::highlight(map-teiginys) { background-color: color-mix(in srgb, var(--mp-teiginys) 24%, transparent); text-decoration: underline 2px var(--mp-teiginys); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-logika { --c: var(--mp-logika); } ::highlight(map-logika) { background-color: color-mix(in srgb, var(--mp-logika) 24%, transparent); text-decoration: underline 2px var(--mp-logika); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-modalumas { --c: var(--mp-modalumas); } ::highlight(map-modalumas) { background-color: color-mix(in srgb, var(--mp-modalumas) 24%, transparent); text-decoration: underline 2px var(--mp-modalumas); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-terminai { --c: var(--mp-terminai); } ::highlight(map-terminai) { background-color: color-mix(in srgb, var(--mp-terminai) 24%, transparent); text-decoration: underline 2px var(--mp-terminai); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-retorika { --c: var(--mp-retorika); } ::highlight(map-retorika) { background-color: color-mix(in srgb, var(--mp-retorika) 24%, transparent); text-decoration: underline 2px var(--mp-retorika); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-idiomos { --c: var(--mp-idiomos); } ::highlight(map-idiomos) { background-color: color-mix(in srgb, var(--mp-idiomos) 24%, transparent); text-decoration: underline 2px var(--mp-idiomos); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-dviprasmybes { --c: var(--mp-dviprasmybes); } ::highlight(map-dviprasmybes) { background-color: color-mix(in srgb, var(--mp-dviprasmybes) 24%, transparent); text-decoration: underline 2px var(--mp-dviprasmybes); text-underline-offset: 3px; }
.map-in.v2 .mr.mk-citatos { --c: var(--mp-citatos); } ::highlight(map-citatos) { background-color: color-mix(in srgb, var(--mp-citatos) 24%, transparent); text-decoration: underline 2px var(--mp-citatos); text-underline-offset: 3px; }
html[data-theme="contrast"] .map-in.v2 .mr { background: var(--panel); }
.map-sum { font: 15px/1.6 var(--sans); color: var(--ink-2); max-height: 340px; overflow: auto; border-left: 3px solid var(--line-2); padding: 2px 4px 2px 14px; }
.map-sum h4 { font: 600 12px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin: 12px 0 4px; }
.map-sum h4:first-child { margin-top: 2px; }
.map-sum p { margin: 0 0 6px; } .map-sum ol, .map-sum ul { margin: 0 0 8px; padding-left: 22px; } .map-sum li { margin: 2px 0; }
.map-sum b.lbl { color: var(--ink); }
.map-kur { margin-top: 2px; } .map-kur input { font-size: 13px; }
.map-card { margin-bottom: 10px; }
.map-card textarea { font: 14px/1.55 var(--sans); }
#map-toggle.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- 0.3: šoninės kortelės, pokalbis, paryškinimas ---------- */
.side-tabs { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; position: sticky; top: 0; z-index: 3; flex-shrink: 0; box-shadow: 0 -14px 0 var(--bg); }
.side-tabs button { flex: 1; border: 0; background: var(--panel); padding: 7px; cursor: pointer; font-size: 13.5px; }
.side-tabs button.on { background: var(--primary); color: var(--primary-ink); }
/* 0.43.3 (Julius): skirtukai — tik ikonos; tekstas rodomas tik aktyviam skirtukui; skaičiai — ženkliukai. */
.side-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; flex: 1 1 0; }
.side-tabs button.on { flex: 1.7 1 0; }
.side-tabs .tl { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-tabs button.on .tl { display: inline; }
.side-tabs .tb { background: var(--muted); color: var(--panel); border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 600; min-width: 16px; text-align: center; }
.side-tabs button.on .tb { background: var(--primary-ink); color: var(--primary); }
#tab-help { display: flex; flex-direction: column; gap: 14px; }
#tab-help[hidden] { display: none; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card:not([open]) { padding-top: 10px; padding-bottom: 10px; }
.chat-log { max-height: calc(100vh - 380px); min-height: 160px; overflow: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.5; }
.msg.user { background: var(--panel-2); }
.msg.ai { background: var(--edited-bg); }
.msg.pending { opacity: .6; }
.msg .mh { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.readers { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.act-read.on { color: var(--approved); font-weight: 600; }
::highlight(sent-src) { background-color: color-mix(in srgb, var(--focus) 38%, transparent); }
::highlight(sent-tgt) { background-color: color-mix(in srgb, var(--focus) 38%, transparent); }
/* 0.38.21: recenzijos radinio citata (užvedus pelę / paspaudus radinį) */
::highlight(flag-q) { background-color: color-mix(in srgb, #c026d3 26%, transparent); text-decoration: underline 2px color-mix(in srgb, #c026d3 70%, transparent); }
.flag.has-q { cursor: pointer; }

.chats-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; margin-top: 10px; }
@media (max-width: 860px) { .chats-grid { grid-template-columns: 1fr; } }
.chat-row { display: block; text-decoration: none; padding: 9px 10px; border-radius: 8px; }
.chat-row:hover { background: var(--panel-2); }
.chat-row.on { background: var(--edited-bg); }
.side > *, #tab-help > * { flex-shrink: 0; }

/* ---------- 0.4: etapai ir sekami pakeitimai ---------- */
.seg.sg-check .num::after { background: #7b5ea7; }
.seg.sg-edit .num::after { background: var(--edited); }
.seg.sg-proof .num::after { background: #1f8a8a; }
.seg.sg-done .num::after { background: var(--approved); }
.chip.stage { background: var(--panel-2); color: var(--ink-2); }
.chip.stage.sg-check { background: #efe8f8; color: #6a4c98; }
.chip.stage.sg-edit { background: var(--edited-bg); color: var(--edited); }
.chip.stage.sg-proof { background: #e0f2f1; color: #1b7474; }
.chip.stage.sg-done { background: var(--approved-bg); color: var(--approved); }
html.dark .chip.stage.sg-check { background: #2c2440; color: #b9a0e3; } html.dark .chip.stage.sg-proof { background: #173334; color: #6fd0cf; }
.prog .c { background: #7b5ea7; } .prog .p { background: #1f8a8a; }
ins.tc-ins { color: #1d5fb0; text-decoration: underline; text-decoration-thickness: 1.5px; cursor: pointer; }
del.tc-del { color: #b42318; text-decoration: line-through; cursor: pointer; }
html.dark ins.tc-ins { color: #7fb2f0; } html.dark del.tc-del { color: #f08a80; }
/* Ištrintas tekstas visada raudonas ir perbrauktas (autorius — užvedus pelę); taisant jo pažymėti negalima. */
del.tc-del { color: #b42318 !important; text-decoration: line-through; text-decoration-color: currentColor; user-select: none; }
html.dark del.tc-del { color: #f08a80 !important; }
.tc-mark { display: inline-block; width: 0; height: 1em; border-left: 2px solid #b42318; margin: 0 1px; vertical-align: -2px; }
.tc-hot { background: color-mix(in srgb, var(--focus) 45%, transparent); }
.tc-cur { outline: 2px solid var(--focus, #e8b931); outline-offset: 1px; border-radius: 3px; background: color-mix(in srgb, var(--focus) 30%, transparent); }
.tc-b.tc-cur { outline-offset: 2px; }
.tgt-wrap { display: block; }
.tc-list { display: none; }
.seg.tc-balloons .tgt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; }
.seg.tc-balloons .tc-list { display: flex; flex-direction: column; gap: 6px; border-left: 2px dashed var(--line-2); padding-left: 8px; }
.tc-b { font: 12.5px/1.4 var(--sans); background: var(--panel-2); border-radius: 7px; padding: 6px 8px; }
.tc-b .tc-d { text-decoration: line-through; color: #b42318; font-family: var(--serif); }
.tc-b .tc-i { color: #1d5fb0; font-family: var(--serif); }
.tc-b .btn { margin-top: 3px; padding: 1px 6px; font-size: 12px; }
@media (max-width: 760px) { .seg.tc-balloons .tgt-wrap { grid-template-columns: 1fr; } .seg.tc-balloons .tc-list { border-left: 0; padding-left: 0; } }

/* ---------- 0.5: žodžio meniu ---------- */
.wmenu { position: fixed; z-index: 150; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 5px; min-width: 230px; }
.wmenu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.wmenu button:hover { background: var(--panel-2); }
.wmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.wm-hint { font-size: 11.5px; color: var(--muted); padding: 4px 10px 2px; }
.wpop { position: fixed; z-index: 140; width: min(420px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.wp-text { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.wp-var { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.wp-var-block { border-top: 1px solid var(--line); padding: 8px 0; }
.wp-var-block:first-child { border-top: 0; }
.wp-sent { font-family: var(--serif); font-size: 15px; line-height: 1.5; margin-top: 4px; }

/* ---------- Knygos komanda ir „Mano darbai“ (0.6.0) ---------- */
.my-work { margin-bottom: 18px; }
.my-work .work-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 120px 250px 120px; gap: 12px; align-items: center; padding: 9px 10px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 8px; }
.my-work .work-row:first-child { border-top: 0; }
.my-work .work-row:hover { background: var(--panel-2); }
.my-work .w-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-work .w-n { font-size: 13px; white-space: nowrap; }
.my-work .w-go { font-size: 13px; color: var(--accent, #243b53); white-space: nowrap; }
@media (max-width: 900px) { .my-work .work-row { grid-template-columns: minmax(0, 1fr) auto; } .my-work .w-st, .my-work .w-due, .my-work .w-n { grid-column: 1; } .my-work .w-go { grid-column: 2; grid-row: 1; } }
/* 0.32.6 (79): rikiavimas, filtrai, grupavimas */
.my-work .w-n { text-align: right; white-space: normal; line-height: 1.3; }
.my-work .w-go { text-align: right; }
.my-work .w-due .due { margin: 0; }
.mw-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.mw-bar .lbl { font-size: 12px; color: var(--muted); }
.mw-bar select { width: auto; max-width: 230px; padding: 4px 8px; font-size: 13px; }
.mw-bar .seg-tabs button.on { background: var(--primary); color: var(--primary-ink); }
.mw-grp { white-space: nowrap; }
.mw-group { margin-top: 14px; }
.mw-group h3 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.mw-group h3 .muted { font-weight: 400; font-size: 12px; }
.book-team { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.who-chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.who-chip i { font-style: normal; font-weight: 600; opacity: .65; margin-left: 2px; }
.team-t th.c, .team-t td.c { text-align: center; width: 104px; }
.team-t tr.out td:not(:first-child) { opacity: .55; }
.team-t input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.seg-filter button.mine { box-shadow: inset 0 -2px 0 var(--approved); font-weight: 600; }
.chip.waits { background: transparent; border: 1px dashed var(--line-2); color: var(--muted, #777); }

/* ---------- Skaitymo nustatymai ir rodiniai (0.7.0) ---------- */
.top, .ed-top, .side, main.page, .modal, .pf-in { zoom: var(--ui-zoom, 1); }
/* Dokumentas: vienas stulpelis, EN viršuje (blankiau), LT po juo */
.segs.v-document .seg, .segs.v-focus .seg { grid-template-columns: var(--numw) minmax(0, 1fr); }
.segs.v-document .seg .num, .segs.v-focus .seg .num { grid-row: span 2; }
.segs.v-document .src, .segs.v-focus .src { border-right: 0; padding-bottom: 0; color: var(--ink-2); }
.segs.v-document .src-text { font-size: .92em; }
.segs.v-document, .segs.v-focus { max-width: 900px; margin: 0 auto; width: 100%; }
/* Viena pastraipa: matoma tik pažymėta, didesniu šriftu */
.segs.v-focus .seg:not(.focus) { display: none; }
.segs.v-focus .seg { font-size: 1.2em; }
.segs.v-focus .src-text, .segs.v-focus .tgt-text { font-size: 1.2em; }
.segs.v-focus .seg { min-height: 50vh; }
.focus-nav { display: none; }
.focus-nav.on { display: flex; position: sticky; bottom: 12px; z-index: 5; max-width: 900px; margin: 14px auto 0; gap: 10px; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; box-shadow: var(--shadow); font: 14px var(--sans); }
/* Rodinio ir pakeitimų mygtukai įrankių juostoje */
.seg-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg-tabs button { border: 0; background: var(--panel); padding: 5px 10px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--line); white-space: nowrap; }
.seg-tabs button:last-child { border-right: 0; }
.seg-tabs button.on { background: var(--primary); color: var(--primary-ink); }
.seg-tabs .lbl { padding: 5px 8px; font-size: 12px; color: var(--muted); background: var(--panel-2); border-right: 1px solid var(--line); }
/* Nustatymų skydelis */
.pf-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.18); display: flex; justify-content: flex-end; }
.pf-in { width: min(420px, 100vw); height: 100%; overflow: auto; background: var(--panel); color: var(--ink); box-shadow: -8px 0 30px rgba(0,0,0,.18); padding: 16px 20px 24px; font: 14px/1.45 var(--sans); }
.pf-head { display: flex; align-items: center; justify-content: space-between; }
.pf-head h2 { margin: 0; font-size: 20px; }
.pf-note { color: var(--muted); font-size: 12.5px; margin: 6px 0 4px; }
.pf-in h3 { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); margin: 20px 0 8px; }
.pf-sub { font-size: 12.5px; color: var(--muted); margin: 10px 0 5px; }
.pf-l { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pf-l select { color: var(--ink); }
.pf-seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.pf-seg button { flex: 1 1 auto; border: 0; border-right: 1px solid var(--line); background: var(--panel); padding: 6px 8px; font-size: 12.5px; cursor: pointer; }
.pf-seg button:last-child { border-right: 0; }
.pf-seg button.on { background: var(--primary); color: var(--primary-ink); }
.pf-check { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pf-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pf-theme { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-size: 13px; text-align: left; }
.pf-theme.on { outline: 2px solid var(--primary); outline-offset: 1px; }
.pf-theme i { width: 22px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); flex: none; }
.pf-theme.t-system i { background: linear-gradient(135deg, #f6f2ea 50%, #15191f 50%); }
.pf-theme.t-paper i { background: #f6f2ea; } .pf-theme.t-white i { background: #fff; } .pf-theme.t-cream i { background: #efe5cf; }
.pf-theme.t-grey i { background: #dfe2e6; } .pf-theme.t-dark i { background: #15191f; } .pf-theme.t-graphite i { background: #18191a; } .pf-theme.t-sepia i { background: #1d1813; } .pf-theme.t-oled i { background: #000; } .pf-theme.t-mono i { background: linear-gradient(135deg, #000 50%, #8a8a8a 50%); } .pf-theme.t-contrast i { background: linear-gradient(135deg, #fff 50%, #000 50%); }
.pf-preview { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.pf-foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
html[data-theme="contrast"] .seg { border-color: #000; }
html[data-theme="contrast"] .gl { border-bottom-color: #000; }
/* Antra įrankių eilutė redaktoriuje */
.ed-row2 { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pop-check { display: flex; gap: 8px; align-items: center; padding: 7px 12px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.pop-check:hover { background: var(--panel-2); }
.mk-demo { padding: 0 2px; }
/* Sekami pakeitimai: legenda ir autorių spalvos */
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font: 12.5px/1.5 var(--sans); padding: 7px 12px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tc-who { font-weight: 600; padding: 0 6px; border-radius: 4px; background: var(--panel-2); border-left: 3px solid currentColor; }
.tc-by { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.tc-a1 { --tc: #1d5fb0; } .tc-a2 { --tc: #1a7f37; } .tc-a3 { --tc: #7a3db8; } .tc-a4 { --tc: #0f7b7b; } .tc-a5 { --tc: #a1530b; } .tc-a6 { --tc: #b0306a; }
html.dark .tc-a1 { --tc: #7fb2f0; } html.dark .tc-a2 { --tc: #6fd08f; } html.dark .tc-a3 { --tc: #c49bf0; } html.dark .tc-a4 { --tc: #6fd0cf; } html.dark .tc-a5 { --tc: #f0b070; } html.dark .tc-a6 { --tc: #f08ab8; }
ins.tc-ins[class*="tc-a"], .tc-who[class*="tc-a"], .tc-b[class*="tc-a"] .tc-by { color: var(--tc); }
.tc-b[class*="tc-a"] { border-left: 3px solid var(--tc); }
/* Vertimų atminties žymės angliškame tekste */
.tm-s { background: color-mix(in srgb, #2f9e6b 14%, transparent); border-radius: 3px; cursor: help; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tm-s[data-same] { background: color-mix(in srgb, #7a3db8 13%, transparent); }
.tm-s.last::after { content: attr(data-pct); font: 600 10px/1 var(--sans); color: #fff; background: #2f9e6b; border-radius: 4px; padding: 2px 4px; margin-left: 4px; vertical-align: 2px; }
.tm-s.last[data-same]::after { background: #7a3db8; }
.tm-p { box-shadow: inset 0 -2px 0 color-mix(in srgb, #1f8a8a 75%, transparent); cursor: help; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tm-p[data-same] { box-shadow: inset 0 -2px 0 color-mix(in srgb, #7a3db8 75%, transparent); }
html[data-theme="contrast"] .tm-s { background: #d9f2e4; } html[data-theme="contrast"] .tm-p { box-shadow: inset 0 -3px 0 #006b6b; }
.tm-card { position: fixed; z-index: 70; width: min(460px, 92vw); background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow), 0 10px 30px rgba(0,0,0,.15); padding: 10px 12px; font: 13px/1.45 var(--sans); }
.tm-card .tm-h { margin-bottom: 6px; }
.tm-card .tm-en { color: var(--ink-2); font-family: var(--font-en, var(--serif)); font-size: 14px; }
.tm-card .tm-lt { font-family: var(--font-lt, var(--serif)); font-size: 15px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.tm-card .tm-a { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
/* DI radinių juosta */
.review-bar { position: sticky; bottom: 10px; z-index: 6; margin-top: 14px; background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid #c9861a; border-radius: 12px; box-shadow: var(--shadow), 0 8px 24px rgba(0,0,0,.12); padding: 8px 12px 10px; font: 13.5px/1.45 var(--sans); }
.review-bar.sev-red { border-left-color: var(--red); } .review-bar.sev-grey { border-left-color: var(--line-2); }
.review-bar .rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-bar .rv-q { margin-top: 6px; font-family: var(--font-lt, var(--serif)); font-size: 15px; }
.review-bar .rv-q .q { text-decoration: line-through; text-decoration-color: var(--red); }
.review-bar .rv-q .s { font-weight: 600; }
.review-bar .rv-note { color: var(--ink-2); margin-top: 4px; }
.review-bar .rv-a { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.review-bar.mini { width: fit-content; margin-left: auto; padding: 4px; border-left-width: 1px; border-radius: 999px; }
.review-bar.mini .btn { border-radius: 999px; border: 0; }
/* ---------- Žinynas, „Kas naujo“, įvadas (0.7.1) ---------- */
.who .ver { color: inherit; opacity: .8; text-decoration: none; }
.who .ver:hover { opacity: 1; text-decoration: underline; }
.who .help-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: inherit; text-decoration: none; font-weight: 700; }
.who .help-btn:hover, .who .help-btn.on { background: rgba(255,255,255,.15); }
html.dark .who .help-btn { border-color: rgba(0,0,0,.3); }
.guide .g-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 800px) { .guide .g-grid { grid-template-columns: 1fr; } }
.guide .g-nav { display: flex; flex-direction: column; padding: 8px; position: sticky; top: 12px; }
.guide .g-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.guide .g-nav a.on { background: var(--primary); color: var(--primary-ink); }
.guide .g-nav a:not(.on):hover { background: var(--panel-2); }
.guide .g-body { font-size: 15.5px; line-height: 1.65; max-width: 820px; }
.guide .g-body h2 { margin-top: 0; }
.guide .g-body h3 { margin: 4px 0 6px; }
.guide .g-body li { margin: 5px 0; }
.guide .g-body.news h2 { font-size: 18px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.guide .g-body.news h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.g-steps li { margin: 8px 0; }
.g-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 14px; color: var(--muted); }
.g-role { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.g-role.mine { border-color: var(--approved); box-shadow: inset 4px 0 0 var(--approved); }
.g-role.mine h3::after { content: " — jūsų vaidmuo"; font: 600 12px var(--sans); color: var(--approved); }
.g-keys td:first-child { white-space: nowrap; width: 1%; padding-right: 18px; }
.welcome .sub { margin-bottom: 8px; }
.w-steps { list-style: none; padding: 0; margin: 10px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.w-steps li { display: flex; gap: 12px; align-items: flex-start; }
.w-steps .w-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font: 700 13px var(--sans); }
.upd-note { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; gap: 12px; align-items: center; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow), 0 8px 24px rgba(0,0,0,.2); font-size: 14px; }
.upd-note a { color: inherit; font-weight: 700; }
.upd-note button { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 15px; opacity: .8; }
/* ---------- 0.8.0 ---------- */
.howto { font-size: 14px; line-height: 1.7; }
.howto > div { padding: 3px 0; border-bottom: 1px solid var(--line); }
.hist .hist-item { border-top: 1px solid var(--line); padding: 7px 0; font-size: 13px; }
.hist .h-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hist .h-stage { font-size: 11px; padding: 0 6px; }
.hist .h-diff { font-family: var(--font-lt, var(--serif)); font-size: 14px; line-height: 1.5; margin-top: 3px; }
.hist .h-text { margin-top: 4px; padding: 6px 8px; background: var(--panel-2); border-radius: 6px; }
.hist .h-act { display: flex; gap: 4px; margin-top: 2px; }
.hist .hist-item.approve { color: var(--approved); }
.hist .hist-item.approve b { color: var(--ink); }
.hist .hist-item.ai .h-head b { color: var(--muted); }
/* Priimti pakeitimai */
.tc-btns { display: flex; gap: 4px; margin-top: 4px; }
.tc-btns .tc-accept { color: var(--approved); border-color: color-mix(in srgb, var(--approved) 50%, transparent); font-weight: 700; padding: 1px 9px; }
.tc-btns .tc-reject { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); font-weight: 700; padding: 1px 9px; }
.tc-b.acc { opacity: .6; }
.tc-b .tc-okby { color: var(--approved); font-size: 11.5px; margin-top: 3px; }
.tc-b .tc-okby a { color: var(--muted); }
ins.tc-acc, del.tc-acc, .tc-mark.tc-acc { opacity: .5; text-decoration-style: dotted; }
.tc-accept-all { width: 100%; margin-bottom: 4px; color: var(--approved); }
/* Ieškoti ir keisti */
::highlight(find-hit) { background-color: #ffd54a; color: inherit; }
html.dark ::highlight(find-hit) { background-color: #7a5d00; }
.seg.flash { box-shadow: 0 0 0 4px #ffd54a; transition: box-shadow .3s; }
.fr-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 58; background: var(--panel); color: var(--ink); box-shadow: -8px 0 30px rgba(0,0,0,.18); overflow: auto; font: 14px/1.45 var(--sans); zoom: var(--ui-zoom, 1); }
.fr-in { padding: 14px 16px 30px; display: flex; flex-direction: column; gap: 10px; }
.fr-head { display: flex; align-items: center; justify-content: space-between; }
.fr-head h2 { margin: 0; font-size: 19px; }
.fr-form { display: flex; flex-direction: column; gap: 7px; }
.fr-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fr-row select { flex: 1; width: auto; }
.fr-sum { font-size: 13px; color: var(--ink-2); }
.fr-replace { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; }
.fr-replace h3, .fr-batches h3 { margin: 0; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); }
.fr-forms { width: 100%; border-collapse: collapse; font-size: 13px; }
.fr-forms th { text-align: left; font-weight: 600; color: var(--muted); padding: 3px 4px; }
.fr-forms td { padding: 3px 4px; border-top: 1px solid var(--line); }
.fr-forms input { padding: 3px 6px; font-size: 13px; }
.fr-list { display: flex; flex-direction: column; }
.fr-item { display: flex; gap: 8px; padding: 7px 4px; border-top: 1px solid var(--line); align-items: flex-start; }
.fr-item .fr-body { flex: 1; cursor: pointer; min-width: 0; }
.fr-item .fr-body:hover .fr-snip { background: var(--panel-2); }
.fr-where { font-size: 12px; color: var(--muted); }
.fr-to { color: var(--approved); font-weight: 600; }
.fr-snip { font-family: var(--font-lt, var(--serif)); font-size: 14.5px; border-radius: 4px; }
.fr-item.en .fr-snip { font-family: var(--font-en, var(--serif)); }
.fr-snip mark { background: #ffd54a; color: inherit; border-radius: 2px; }
.fr-lt { font-family: var(--font-lt, var(--serif)); font-size: 13.5px; margin-top: 3px; color: var(--ink-2); }
.fr-side { font: 600 10px var(--sans); color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 4px; margin-top: 3px; }
.fr-batches { padding: 0 2px; }
.fr-batch { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fr-batch.undone { opacity: .55; }
mark.tm-lt-hit { background: color-mix(in srgb, #3b82c4 22%, transparent); color: inherit; border-radius: 3px; box-shadow: inset 0 -2px 0 #3b82c4; }

/* Naujas projektas iš Word failų */
.wi-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; }
.wi-grid h3 { font-size: 15px; margin: 6px 0 10px; }
@media (max-width: 760px) { .wi-grid { grid-template-columns: 1fr; } }
.wi-list { margin: 0 0 6px; padding-left: 22px; }
.wi-list li { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
.wi-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; background: var(--bg); border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.wi-map { width: 100%; border-collapse: collapse; }
.wi-map td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.wi-map select { width: 100%; min-width: 120px; }
.wi-chapters { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.wi-chapters summary { cursor: pointer; padding: 5px 0; }
.wi-n { display: inline-block; min-width: 26px; color: var(--muted); }
.wi-sample { width: 100%; font-size: 13px; border-collapse: collapse; margin: 0 0 8px; }
.wi-sample td { width: 50%; padding: 4px 6px; border-top: 1px dashed var(--line); vertical-align: top; }
.warn-t { color: #b45309; }
.msg-tools { margin-top: 6px; font-size: 11.5px; color: var(--muted); font-style: italic; }

/* Komentarai prie žodžių ir sakinių */
::highlight(cmt) { background-color: rgba(255, 196, 0, .28); text-decoration: underline; text-decoration-color: #e0a800; text-decoration-thickness: 2px; }
::highlight(cmt-active) { background-color: rgba(255, 170, 0, .55); }
html.dark ::highlight(cmt) { background-color: rgba(255, 196, 0, .22); text-decoration-color: #c99a00; }
html.dark ::highlight(cmt-active) { background-color: rgba(255, 170, 0, .42); }
/* 0.54.0: užvesta pelė ant komentaro / paspaustas komentaras — ryškiai (kitų komentuotų vietų fonas lieka šviesus) */
::highlight(cmt-hover) { background-color: rgba(234, 88, 12, .38); text-decoration: underline; text-decoration-color: #c2410c; text-decoration-thickness: 3px; }
::highlight(cmt-flash) { background-color: rgba(234, 88, 12, .7); color: #fff; }
html.dark ::highlight(cmt-hover) { background-color: rgba(251, 146, 60, .4); text-decoration-color: #fb923c; }
html.dark ::highlight(cmt-flash) { background-color: rgba(251, 146, 60, .75); color: #111; }
.cmts { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.cmts:empty { display: none; }
.cmt { font: 13px/1.45 var(--sans); background: var(--panel-2, var(--bg)); border: 1px solid var(--line); border-left: 3px solid #e0a800; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.cmt.exp { cursor: default; padding: 9px 11px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.cmt.st-resolved, .cmt.st-accepted, .cmt.st-rejected { border-left-color: var(--approved); opacity: .8; }
.cmt.st-rejected { border-left-color: var(--muted); }
.cmt-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmt-h .muted { font-size: 11.5px; }
.cmt-ic { font-size: 12px; }
.cmt-n { font-size: 11.5px; color: var(--muted); }
.cmt-kind { background: color-mix(in srgb, #e0a800 22%, transparent); color: var(--ink-2); }
.cmt-st { font-size: 11.5px; color: var(--approved); font-weight: 600; }
.cmt-st.rejected { color: var(--muted); }
.cmt-sum { margin-top: 2px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmt-q { font-family: var(--serif); background: rgba(255, 196, 0, .2); border-radius: 3px; padding: 0 3px; }
.cmt-q.en { background: color-mix(in srgb, var(--edited) 15%, transparent); }
.cmt-quote { margin: 6px 0 2px; }
.cmt-moved { font-size: 11.5px; color: #b45309; }
.cmt-sug { margin: 4px 0; font-family: var(--serif); }
.cmt-sug del { color: var(--red, #b00); }
.cmt-sug ins { color: var(--edited); text-decoration: underline; }
.cmt-body { margin-top: 4px; white-space: normal; word-break: break-word; }
.cmt-body .mention, .cmt-sum .mention { color: var(--edited); font-weight: 600; }
.cmt-rep { margin: 8px 0 0 10px; padding-left: 10px; border-left: 2px solid var(--line); }
.cmt-reply { display: flex; gap: 6px; align-items: flex-end; margin-top: 8px; }
.cmt-reply textarea { flex: 1; min-height: 32px; resize: none; font: 13px/1.4 var(--sans); padding: 6px 8px; }
.cmt-rich { flex: 1; min-width: 0; min-height: 32px; max-height: 180px; overflow: auto; font: 13px/1.45 var(--sans); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); word-break: break-word; outline: none; cursor: text; }
.cmt-rich:focus { border-color: var(--primary); }
.cmt-rich:empty::before { content: attr(data-ph); color: var(--muted); pointer-events: none; }
.cmt-rich.ce-body, #cn-body.cmt-rich { min-height: 60px; }
.cmt-new #cn-body { margin-top: 8px; }
.cmt-fmt { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; flex: none; }
.cmt-fmt button { border: 0; background: var(--panel); color: var(--ink); width: 26px; height: 28px; padding: 0; cursor: pointer; font: 13px/1 var(--serif); }
.cmt-fmt button + button { border-left: 1px solid var(--line); }
.cmt-fmt button:hover { background: var(--panel-2, var(--bg)); }
.cmt-editbox .row .cmt-fmt, .cmt-new .row .cmt-fmt { margin-right: 8px; }
.cmt-badge { align-self: flex-start; display: inline-flex; gap: 5px; align-items: center; background: color-mix(in srgb, #e0a800 14%, transparent); border: 1px solid color-mix(in srgb, #e0a800 45%, transparent); color: var(--ink-2); border-radius: 99px; padding: 2px 10px; font: 12px var(--sans); cursor: pointer; }
.cmt-badge:hover { background: color-mix(in srgb, #e0a800 26%, transparent); }
.cmt-side-card { padding: 6px 0; border-top: 1px solid var(--line); }
.cmt-side-card .cmt { cursor: default; }
.cmt-acts { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cmt-closed-tg { align-self: flex-start; background: none; border: 0; padding: 0; font: 12px var(--sans); color: var(--muted); text-decoration: underline; cursor: pointer; }
.cmt-fab { position: fixed; z-index: 140; font: 600 12.5px var(--sans); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; }
.cmt-fab:hover { background: var(--panel-2, var(--bg)); }
.orig-cands { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.orig-cands .chip { cursor: pointer; }
.fl-frags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; }
.fl-frag { cursor: pointer; font-style: italic; }
.cmt-fab-box { position: fixed; z-index: 140; display: flex; gap: 6px; align-items: center; }
.cmt-fab-box .cmt-fab { position: static; }
.fmt-btns { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; background: var(--panel); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.fmt-btns button { border: 0; background: transparent; color: var(--ink); min-width: 30px; height: 28px; padding: 0 8px; cursor: pointer; font: 14px/1 var(--serif); }
.fmt-btns button + button { border-left: 1px solid var(--line); }
.fmt-btns button:hover { background: var(--panel-2, var(--bg)); }
.fmt-btns button.on { background: var(--primary); color: var(--primary-ink); }
.wbar .fmt-btns { box-shadow: none; }
.wmenu .fmt-row { display: flex; gap: 6px; padding: 4px 8px 6px; align-items: center; }
.wmenu .fmt-row .lbl { font: 12px var(--sans); color: var(--muted); }
.cmt-new { position: fixed; z-index: 160; width: min(420px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cmt-new textarea { width: 100%; margin-top: 8px; font: 13.5px/1.45 var(--sans); }
.cmt-new .cn-kind { margin-top: 8px; }
.cmt-new .pf-l { display: block; margin-top: 8px; font-size: 12.5px; }
.cmt-new .pf-l input { width: 100%; margin-top: 3px; font-family: var(--serif); }
.mention-pop { position: fixed; z-index: 170; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; display: flex; flex-direction: column; min-width: 180px; }
.mention-pop button { text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: 6px; font: 13px var(--sans); color: var(--ink); cursor: pointer; }
.mention-pop button:hover { background: var(--panel-2, var(--bg)); }
.cmt-side .cmt-filter { display: flex; flex-wrap: wrap; }
.cmt-li { padding: 8px 4px; border-top: 1px solid var(--line); cursor: pointer; font: 13px/1.4 var(--sans); }
.cmt-li:hover { background: var(--panel-2, var(--bg)); }
.cmt-li .muted { font-size: 11.5px; }
.cmt-chip { background: rgba(255, 196, 0, .25); color: var(--ink); }
.hist-item.ret .h-head { color: var(--ink-2); }

html.dark { --st-translate: #c98500; --st-check: #9b80e6; --st-edit: #2563c9; --st-proof: #d55181; --st-done: #008300; }
.prog .d { background: var(--st-translate); } .prog .c { background: var(--st-check); } .prog .e { background: var(--st-edit); } .prog .p { background: var(--st-proof); } .prog .a { background: var(--st-done); }
.prog i + i { box-shadow: -2px 0 0 var(--panel); }
.seg.sg-translate .num::after { background: var(--st-translate); } .seg.sg-check .num::after { background: var(--st-check); } .seg.sg-edit .num::after { background: var(--st-edit); } .seg.sg-proof .num::after { background: var(--st-proof); } .seg.sg-done .num::after { background: var(--st-done); }
.chip.stage.sg-proof { background: #fbe6ee; color: #a3315c; } html.dark .chip.stage.sg-proof { background: #3a1f2b; color: #f0a0c0; }

/* ---------- Projekto eiga ---------- */
.eiga { --ev-gap: 16px; }
.st-translate { background: var(--st-translate); } .st-check { background: var(--st-check); } .st-edit { background: var(--st-edit); } .st-proof { background: var(--st-proof); } .st-done { background: var(--st-done); }
.ev-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ev-gap); margin-bottom: 14px; }
.ev-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ev-k { font: 600 12px/1.2 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ev-v { font: 700 30px/1.15 var(--sans); color: var(--ink); margin-top: 6px; }
.ev-v-sm { font-size: 19px; line-height: 1.3; }
.ev-s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ev-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 12px; }
.ev-legend.sm { margin: 8px 0 0; font-size: 12px; }
.ev-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ev-sw.ev-dash { background: none; border-top: 2px dashed var(--st-done); height: 0; width: 14px; border-radius: 0; vertical-align: 3px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ev-gap); }
.ev-card { margin: 0; min-width: 0; }
.ev-card h3 { margin: 0 0 2px; font-size: 15px; }
.ev-wide { grid-column: 1 / -1; }
.ev-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 12px; }
.ev-rows { display: flex; flex-direction: column; gap: 6px; }
.ev-row { display: grid; grid-template-columns: minmax(140px, 30%) 1fr 92px; gap: 10px; align-items: center; font-size: 13px; }
.ev-row[data-ch] { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.ev-row[data-ch]:hover { background: var(--panel-2); }
.ev-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ev-bar { display: flex; height: 12px; gap: 2px; border-radius: 4px; overflow: hidden; background: var(--panel-2); }
.ev-bar i { display: block; height: 100%; min-width: 3px; }
.ev-bar i:first-child { border-radius: 4px 0 0 4px; } .ev-bar i:last-child { border-radius: 0 4px 4px 0; } .ev-bar i:only-child { border-radius: 4px; }
.ev-bar.abs { background: transparent; }
.ev-bar .ev-empty { background: var(--panel-2); }
.ev-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.ev-q { font-size: 11.5px; color: var(--ink-2); }
.ev-person.none .ev-lbl { color: var(--muted); font-style: italic; }
.ev-vbars { position: relative; height: calc(var(--h) + 24px); padding-left: 34px; }
.ev-grid-l { position: absolute; left: 34px; right: 0; top: 0; height: var(--h); }
.ev-gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.ev-gl span { position: absolute; left: -34px; top: -8px; width: 28px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-cols { position: relative; display: flex; gap: 6px; height: calc(var(--h) + 24px); align-items: flex-start; }
.ev-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; }
.ev-stack { height: var(--h); display: flex; flex-direction: column-reverse; gap: 2px; }
.ev-stack i { display: block; min-height: 2px; }
.ev-stack i:last-child { border-radius: 4px 4px 0 0; }
.ev-x { font-size: 10.5px; color: var(--muted); text-align: center; height: 20px; padding-top: 4px; white-space: nowrap; }
.ev-burn { width: 100%; height: auto; display: block; }
.ev-burn text { font: 11px var(--sans); fill: var(--muted); }
.ev-gridline { stroke: var(--line); stroke-width: 1; }
.ev-line { fill: none; stroke: var(--st-done); stroke-width: 2; stroke-linejoin: round; }
.ev-area { fill: color-mix(in srgb, var(--st-done) 12%, transparent); }
.ev-proj { fill: none; stroke: var(--st-done); stroke-width: 2; stroke-dasharray: 5 4; opacity: .8; }
.ev-dot { fill: var(--st-done); stroke: var(--panel); stroke-width: 2; }
.ev-cal { overflow-x: auto; }
.ev-months { display: grid; grid-template-columns: repeat(26, 14px); gap: 3px; font-size: 10.5px; color: var(--muted); height: 15px; }
.ev-months span { white-space: nowrap; }
.ev-cgrid { display: grid; grid-template-columns: repeat(26, 14px); gap: 3px; }
.ev-cw { display: grid; grid-template-rows: repeat(7, 14px); gap: 3px; }
.ev-c { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.ev-legend .ev-c { width: 12px; height: 12px; }
.ev-c.out { visibility: hidden; }
.ev-c.l0 { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); } .ev-c.l1 { background: #c3e6c3; } .ev-c.l2 { background: #7cc47c; } .ev-c.l3 { background: #2f9a35; } .ev-c.l4 { background: #0b5e12; }
html.dark .ev-c.l1 { background: #1d4422; } html.dark .ev-c.l2 { background: #2a6e31; } html.dark .ev-c.l3 { background: #3c9c45; } html.dark .ev-c.l4 { background: #6fd07a; }
.ev-open td.r, .ev-open th.r { text-align: right; font-variant-numeric: tabular-nums; }
.ev-ai { margin-top: 8px; padding: 12px 14px; background: var(--panel-2); border-radius: 8px; line-height: 1.55; font-size: 14px; }
.ev-nodata { padding: 20px 0; }
.ev-tip { position: fixed; z-index: 200; max-width: 280px; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--panel); font: 12px/1.4 var(--sans); white-space: pre-line; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
@media (max-width: 900px) { .ev-kpis { grid-template-columns: 1fr 1fr; } .ev-grid { grid-template-columns: 1fr; } .ev-row { grid-template-columns: 110px 1fr 76px; } }
.ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ev-head h3 { margin: 0 auto 0 0; }
.ev-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.ev-seg button { border: 0; background: none; padding: 3px 9px; font: 500 12px var(--sans); color: var(--ink-2); cursor: pointer; }
.ev-seg button + button { border-left: 1px solid var(--line); }
.ev-seg button:hover { background: var(--panel-2); }
.ev-seg button.on { background: var(--ink); color: var(--panel); }
.ev-cols.dense { gap: 2px; }
.ev-time td, .ev-time th { white-space: nowrap; }
.ev-time .ev-sum td { border-top: 2px solid var(--line); font-weight: 600; }
.ev-time .ev-sw { margin-right: 4px; }
.ev-scroll { overflow-x: auto; }
.ev-time td.r, .ev-time th.r { text-align: right; font-variant-numeric: tabular-nums; }
a.t-rng { background: var(--panel-2); color: var(--ink-2); text-decoration: none; }
a.t-rng:hover { background: var(--line); }
a.t-rng.on { background: var(--ink); color: var(--panel); }
.ev-more summary { cursor: pointer; font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.chip.stage.sg-translate { background: #fbefd6; color: #8a5a00; } html.dark .chip.stage.sg-translate { background: #3a2f17; color: #e3b04a; }

/* ---------- Greitas vertimas ---------- */
.qv-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 12px 14px; margin-bottom: 14px; }
.qv-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.qv-f select { min-width: 200px; }
.qv-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qv-pane { margin: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.qv-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.qv-text { flex: 1; min-height: 340px; max-height: 70vh; overflow: auto; padding: 14px 16px; font: 17px/1.6 var(--serif); color: var(--ink); outline: none; }
.qv-text p { margin: 0 0 .7em; }
.qv-text:empty::before { content: attr(data-ph); color: var(--muted); font-family: var(--sans); font-size: 14px; }
.qv-text.out { background: var(--panel-2); }
.qv-text.busy { opacity: .5; }
.qv-hist { margin-top: 14px; }
.qv-list { margin-top: 10px; display: flex; flex-direction: column; }
.qv-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 7px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.qv-item:hover, .qv-item.on { background: var(--panel-2); }
.qv-snip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.qv-var { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.qv-var > div:first-child { grid-column: 1 / -1; }
.qv-sent { font-family: var(--serif); font-size: 14px; color: var(--ink-2); }
.qv-pop .wp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
@media (max-width: 860px) { .qv-panes { grid-template-columns: 1fr; } .qv-text { min-height: 180px; } .qv-item { grid-template-columns: auto 1fr auto; } .qv-item .small { display: none; } }
.seg.passed { position: relative; opacity: .55; transition: opacity .3s; }
.seg.passed::after { content: attr(data-passed); position: absolute; right: 14px; top: 10px; font: 600 12px var(--sans); color: var(--approved); background: var(--approved-bg); padding: 2px 8px; border-radius: 99px; }
/* 0.44.0: tuščia etapo būsena — kur pastraipos nukeliavo */
.stage-empty { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 56px 28px; text-align: center; margin-bottom: 14px; }
.stage-empty .se-k { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stage-empty .se-h { font-family: var(--serif, Georgia, serif); font-size: clamp(26px, 3vw, 38px); color: var(--muted); margin: 14px 0 8px; }
.stage-empty .se-p { font: 15px var(--sans); color: var(--ink-2); }
.stage-empty .se-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.stage-empty .se-b .n { opacity: .7; font-weight: 400; margin-left: 4px; }
.cmt-ctx { color: var(--muted); }
.cmt-sug del.tc-del, .cn-prev del.tc-del { color: #b42318; text-decoration: line-through; }
.cmt-sug ins.tc-ins, .cn-prev ins.tc-ins { color: var(--st-edit); text-decoration: underline; }
.cn-prev { margin-top: 6px; padding: 6px 8px; background: var(--panel-2); border-radius: 6px; font: 14px/1.5 var(--serif); }
.cmt-editbox { margin: 6px 0; }
.cmt-editbox textarea { width: 100%; font: 13.5px/1.45 var(--sans); }
.cmt-editbox .pf-l { display: block; font-size: 12.5px; } .cmt-editbox .pf-l input { width: 100%; margin-top: 3px; font-family: var(--serif); }

/* ---------- Vertimų atmintis: silpni atitikmenys, frazės, skirtumai, variantai, pasikartojimai ---------- */
.tm-s.weak { background: color-mix(in srgb, #2f9e6b 6%, transparent); box-shadow: inset 0 -1px 0 color-mix(in srgb, #2f9e6b 45%, transparent); }
.tm-s.weak.last::after { background: color-mix(in srgb, #2f9e6b 55%, #888); }
.tm-s.var.last::after { background: #b45309; }
.tm-p { cursor: pointer; }
.tm-p.last::after { content: attr(data-n); font: 600 9.5px/1 var(--sans); color: #1b7474; margin-left: 2px; vertical-align: 4px; }
html.dark .tm-p.last::after { color: #6fd0cf; }
mark.tm-lt-hit.guess { background: transparent; box-shadow: none; border-bottom: 2px dashed #3b82c4; border-radius: 0; }
.tm-guess { margin-top: 4px; }
.tm-diff { color: var(--ink-2); font-family: var(--font-en, var(--serif)); font-size: 14px; }
.tm-diff del.tc-del { color: #b42318; } .tm-diff ins.tc-ins { color: var(--st-edit); text-decoration: underline; }
.tm-var { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, #b45309 10%, transparent); }
.tm-var-h { font-weight: 600; color: #b45309; margin-bottom: 4px; }
.tm-var-i { font-family: var(--font-lt, var(--serif)); font-size: 14px; padding: 3px 0; border-top: 1px dashed var(--line); }
.tm-var-i:first-of-type { border-top: 0; }
.tm-var-n { font: 600 11px var(--sans); color: var(--muted); }
.tm-card .tm-a .spacer { flex: 1; }
.occ-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 150; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: -10px 0 30px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.occ-h { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.occ-ph { font-family: var(--font-en, var(--serif)); color: var(--ink-2); margin-top: 2px; }
.occ-b { overflow: auto; padding: 10px 16px 20px; font-size: 13px; }
.occ-g { margin: 12px 0 4px; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.occ-i { padding: 8px 0; border-top: 1px solid var(--line); }
.occ-en { font-family: var(--font-en, var(--serif)); font-size: 14px; color: var(--ink-2); }
.occ-en mark { background: color-mix(in srgb, #1f8a8a 22%, transparent); color: inherit; border-radius: 2px; }
.occ-lt { font-family: var(--font-lt, var(--serif)); font-size: 15px; margin-top: 3px; }
.occ-src { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.occ-src .spacer { flex: 1; }

/* ---------- Gyvas bendras darbas ---------- */
.online { display: flex; align-items: center; }
.online:empty { display: none; }
.av { --c: #6b7280; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font: 600 11px/1 var(--sans); border: 2px solid var(--primary); flex: none; position: relative; cursor: default; }
.online .av + .av { margin-left: -6px; }
.av.c1 { --c: #2a78d6; } .av.c2 { --c: #b3591f; } .av.c3 { --c: #4a3aa7; } .av.c4 { --c: #00806b; } .av.c5 { --c: #b8326b; } .av.c6 { --c: #6b6b20; }
.av.edt::after { content: '✎'; position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: #fff; color: #111; font-size: 9px; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.av.sm { width: 20px; height: 20px; font-size: 9px; border-width: 1px; border-color: var(--panel); }
.av.more { --c: rgba(255,255,255,.25); }
.live-btn { background: transparent; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 7px; padding: 4px 10px; cursor: pointer; font-size: 13px; white-space: nowrap; }
html.dark .live-btn { border-color: rgba(0,0,0,.25); }
.live-drawer .live-p { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.live-drawer .live-p .av { border-color: var(--panel); }
.live-drawer .live-a { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.live-ed { color: var(--st-translate); }
.ch-live { margin-left: 4px; vertical-align: middle; }
.seg .tgt { position: relative; }
.pres-badge { position: absolute; top: -11px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.pres { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 8px 1px 1px; font: 500 11.5px var(--sans); color: var(--ink-2); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pres.edt { border-color: var(--st-translate); color: var(--ink); font-weight: 600; }
.pres .av.edt::after { display: none; }
.live-note { margin: 6px 0; padding: 6px 10px; border-radius: 7px; background: #fff4dc; border: 1px solid #f0d390; color: #6a4a00; font-size: 13px; }
html.dark .live-note { background: #3a2f12; border-color: #6a5420; color: #f0d79a; }
.seg.live-flash { box-shadow: 0 0 0 2px var(--st-edit); transition: box-shadow .6s; }

/* 0.14: terminų patikra, šaltinių pirmenybė, 101 %, DI pataisymas */
.gl-st { display: inline-block; width: 18px; font-weight: 700; }
.gl-st.ok { color: var(--approved); }
.gl-st.bad { color: var(--red); }
.gl-item.gl-miss { background: var(--red-bg); margin: 0 -8px; padding: 5px 8px; border-radius: 6px; }
.gl-miss-t { color: var(--red); margin-top: 2px; }
.flag.term { background: var(--red-bg); }
.flag.term .fl-h { color: var(--red); }
.src-chip { font-size: 11px; padding: 1px 6px; border-radius: 5px; margin-left: 6px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2); }
.src-chip.p0 { background: var(--approved-bg); color: var(--approved); border-color: transparent; }
.src-chip.p1 { background: var(--edited-bg); color: var(--edited); border-color: transparent; }
.src-chip.p2 { background: var(--panel-2); }
.tm-item .pct.ctx { background: var(--approved); color: #fff; }
.tm-item.ctx { box-shadow: inset 3px 0 0 var(--approved); padding-left: 8px; }
.tm-item .en .tm-diff, .tm-item .en.tm-diff { font-family: inherit; font-size: inherit; }
.tm-ad { margin-top: 6px; }
.tm-ad-h { font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.tm-ad-lt { font-family: var(--font-lt, var(--serif)); font-size: 14.5px; padding: 6px 8px; border-radius: 6px; background: var(--edited-bg); color: var(--ink); }
.tm-ad-lt del.tc-del { color: var(--red); } .tm-ad-lt ins.tc-ins { color: var(--st-edit); text-decoration: underline; }
.tm-card .tm-ad:empty { display: none; }

/* 0.15: išsaugojimo juosta, nauja versija, administratoriaus įspėjimai, DI išlaidos, kopijos, kokybės patikra */
.savebar { position: fixed; left: 50%; transform: translateX(-50%); top: 64px; z-index: 80; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: min(900px, 94vw);
  background: var(--red-bg); color: var(--ink); border: 1px solid var(--red); border-radius: 10px; padding: 9px 14px; box-shadow: var(--shadow), 0 8px 24px rgba(0,0,0,.15); font-size: 14px; }
.savebar b { color: var(--red); }
.newver { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 85; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow), 0 8px 24px rgba(0,0,0,.25); font-size: 14px; max-width: 94vw; }
.newver .btn.ghost { color: var(--primary-ink); }
.newver .btn.primary { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); font-weight: 600; }
.warn-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--yellow-bg); color: var(--draft); text-decoration: none; white-space: nowrap; margin-right: 6px; }
.warn-box { background: var(--yellow-bg); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin-top: 8px; }
.ok-box { background: var(--approved-bg); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin-top: 8px; }
.usage-top { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; margin-top: 6px; }
.usage-big { font-size: 26px; font-weight: 700; line-height: 1.1; }
.usage-bar { height: 10px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin: 4px 0; }
.usage-bar i { display: block; height: 100%; background: var(--approved); }
.usage-bar.near i { background: var(--draft); }
.usage-bar.over i { background: var(--red); }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.usage-grid h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.flag.qa { background: var(--panel-2); }
.flag.qa.serious { background: var(--red-bg); }
.flag.qa.serious .fl-h { color: var(--red); }
.qa-list { margin: 6px 0 10px 18px; padding: 0; }
.qa-list li { margin: 4px 0; }

/* 0.15.1: importo peržiūra ir pastraipų tipai */
.ip-list { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px 8px; }
.ip-t td { vertical-align: top; padding: 4px 6px; }
.ip-t select { padding: 2px 6px; font-size: 12.5px; }
.ip-r.k-chapnum .ip-text { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--accent); }
.ip-r.k-h1 .ip-text, .ip-r.k-h2 .ip-text { font-weight: 700; font-size: 1.08em; }
.ip-r.k-h3 .ip-text, .ip-r.k-h4 .ip-text { font-weight: 700; }
.ip-r.k-blockquote .ip-text { padding-left: 10px; border-left: 3px solid var(--line-2); font-style: italic; }
.ip-r:not(.k-p) td:first-child { color: var(--accent); }
.seg.k-chapnum .src-text, .seg.k-chapnum .tgt-text { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .92em; color: var(--accent); }
.num .kind-btn { display: block; margin: 4px auto 0; font: 600 9px/1.1 var(--sans); color: var(--muted); background: none; border: 1px dashed transparent; border-radius: 4px; padding: 2px 1px; cursor: pointer; white-space: nowrap; letter-spacing: 0; }
.num .kind-btn:hover { border-color: var(--line-2); color: var(--ink); }
.kind-menu { position: fixed; z-index: 75; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow), 0 8px 24px rgba(0,0,0,.15); padding: 4px; min-width: 190px; }
.kind-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: 6px; font: 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.kind-menu button:hover { background: var(--panel-2); }
.kind-menu button.on { font-weight: 700; }

/* 0.15.1: terminai ir el. paštas */
.due { display: inline-block; font: 600 11px/1.3 var(--sans); padding: 1px 6px; border-radius: 5px; white-space: nowrap; background: var(--panel-2); color: var(--ink-2); }
.due-soon { background: var(--yellow-bg); color: var(--draft); }
.due-over { background: var(--red-bg); color: var(--red); }
.due-done { background: var(--approved-bg); color: var(--approved); }
.work-row .due { margin-right: 8px; }
.ed-due { margin-top: 3px; color: var(--ink-2); }
.as-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; flex-wrap: wrap; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; cursor: pointer; }
.radio-row input { margin-top: 4px; }
.msg-to { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0; }
.drag-handle { cursor: move; user-select: none; }
.wp-head { gap: 6px; margin-bottom: 4px; }
.grip { color: var(--muted); font-size: 14px; line-height: 1; }
.wpop.dragging { opacity: .92; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.as-row { display: flex; align-items: center; gap: 4px; }
/* 0.57: atsakingi — keturi ženkliukai vienoje eilutėje (etapo raidė spalvota, inicialai), nepaskirta — blanku */
.assignees { display: flex !important; flex-wrap: wrap; gap: 4px 5px; text-align: left; white-space: normal; padding: 3px 4px !important; opacity: 1 !important; }
.as2 { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px 1px 2px; font-size: 12px; background: var(--panel); color: var(--ink); white-space: nowrap; }
.as2 > b { width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 600 10px/18px var(--sans); text-align: center; }
.as2.none { color: var(--muted); border-style: dashed; padding-left: 8px; }
.as2 .due-chip, .as2 .chip { margin-left: 2px; }
.ch-row td { padding-top: 10px; padding-bottom: 10px; }
.ch-row .rename, .ch-row .del { opacity: 0; transition: opacity .15s; }
.ch-row:hover .rename, .ch-row:hover .del, .ch-row .rename:focus-visible, .ch-row .del:focus-visible { opacity: 1; }
@media (hover: none) { .ch-row .rename, .ch-row .del { opacity: 1; } }

/* 0.15.2: frazės kortelėje sutapusi frazė ir jos LT atitikmuo — pusjuodžiu */
.tm-card .tm-ph-hit { font-weight: 700; color: var(--ink); }
mark.tm-lt-hit { font-weight: 700; }
.occ-en mark { font-weight: 700; }
.occ-lt mark.occ-lt-hit { background: color-mix(in srgb, #3b82c4 18%, transparent); color: inherit; border-radius: 2px; font-weight: 700; }
/* 0.15.4: keli atsakingi etapui */
.as-row:has(.as-picks) { align-items: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.as-picks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.as-picks .as-pick { margin: 0; font-size: 14px; }
/* 0.15.7: planšetė — pirštu pažymėjus tekstą, po juo juosta su veiksmais */
.wmenu.wbar { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; max-width: min(560px, calc(100vw - 16px)); padding: 4px; border-radius: 12px; }
.wmenu.wbar button { width: auto; padding: 10px 12px; font-size: 15px; white-space: nowrap; }
@media (pointer: coarse) {
  .wmenu button { padding: 11px 12px; font-size: 15px; }
  .btn.sm { min-height: 34px; }
}
/* 0.16.0: smulkūs tekstai prie pastraipų didėja kartu su teksto dydžiu (Aa → Teksto dydis): M ~13 px, L ~14,5, XL ~15,5 */
:root { --read-small: max(12px, calc(var(--read-size, 17px) * 0.78)); }
.map-in { font-size: var(--read-small); }
.map-card textarea { font-size: calc(var(--read-small) + 1px); }
.seg .flag, .seg .cmt, .seg .cmt-reply textarea, .wp-text, .tm-card { font-size: var(--read-small); }
.tm-card .tm-en, .tm-diff, .tm-var-i { font-size: calc(var(--read-small) + 1px); }
/* 0.16.0: projektų rikiavimas, prisegimas, bendra tvarka */
.book-sort { gap: 8px; margin: -4px 0 12px; flex-wrap: wrap; }
.book-sort select { width: auto; padding: 4px 8px; }
.book { position: relative; }
.bk-pin { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px; opacity: .55; }
.bk-pin:hover, .bk-pin.on, .book.pinned .bk-pin { opacity: 1; color: #d4a017; }
.book.pinned { box-shadow: inset 0 3px 0 #d4a017, var(--shadow); }
.book h3 { padding-right: 24px; }
.grid-cards.arranging .book { cursor: grab; outline: 1px dashed var(--line-2); }
.grid-cards.arranging .book.dragging { opacity: .45; }
.bk-move { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 2px; }
/* 0.16.0: originalo (EN) taisymas */
.src-text.src-editing { outline: 2px solid #d4a017; outline-offset: 3px; border-radius: 4px; background: color-mix(in srgb, #d4a017 7%, transparent); }
.src-edit-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); }
.chip.src-hist { border: 1px solid #d4a017; background: color-mix(in srgb, #d4a017 12%, transparent); color: inherit; cursor: pointer; font: inherit; font-size: 12px; }
.src-h-i { padding: 10px 0; border-top: 1px solid var(--line); }
.src-h-d { font-family: var(--font-en, var(--serif)); font-size: 15px; margin-top: 4px; }
/* 0.16.0: bandymas su / be žemėlapio */
.mt-item { padding: 12px 0; border-top: 1px solid var(--line); }
.mt-en { font-family: var(--font-en, var(--serif)); font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.mt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .mt-pair { grid-template-columns: 1fr; } }
.mt-var { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; position: relative; }
.mt-var.win { border-color: var(--approved); box-shadow: inset 0 0 0 1px var(--approved); }
.mt-var.is-map .mt-h { color: #2a78d6; }
.mt-h { font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.mt-lt { font-family: var(--font-lt, var(--serif)); font-size: 15px; line-height: 1.55; }
.mt-pick { margin-top: 8px; }
.mt-note { flex: 1; min-width: 180px; padding: 4px 8px; }
.mt-sum { background: var(--panel-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.mt-past { display: flex; flex-wrap: wrap; gap: 6px; }
/* 0.16.0: įvadinis vedlys */
#tour { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 20, 30, .55); outline: 3px solid #f0b429; transition: all .2s ease; pointer-events: none; }
.tour-bub { position: fixed; width: min(380px, calc(100vw - 16px)); background: var(--panel); color: var(--ink); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); padding: 14px 16px; pointer-events: auto; font: 14px/1.5 var(--sans); }
.tour-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 15px; }
.tour-t kbd { font: 12px var(--mono, monospace); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }
.tour-wait { margin-top: 6px; }
.tour-a { margin-top: 12px; gap: 6px; }
.g-tours { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.g-tours .btn { justify-content: flex-start; text-align: left; white-space: normal; }
.pref { font-weight: 600; white-space: nowrap; }
/* 0.16.2: DI pagalbininkas apie programą */
.ask-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: inherit; border-radius: 99px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.ask-btn:hover { background: rgba(255,255,255,.12); }
.helpbot { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 160; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: -10px 0 30px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.hb-h { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hb-b { flex: 1; overflow: auto; padding: 12px 16px; font: 14px/1.5 var(--sans); }
.hb-q { margin: 10px 0 6px auto; max-width: 85%; width: fit-content; background: var(--primary); color: var(--primary-ink); padding: 7px 11px; border-radius: 12px 12px 2px 12px; }
.hb-a { margin: 6px 0 12px; background: var(--panel-2); padding: 8px 12px; border-radius: 12px 12px 12px 2px; }
.hb-a p { margin: 4px 0; } .hb-a ul { margin: 4px 0 4px 18px; padding: 0; }
.hb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hb-ideas { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.hb-ideas .btn { justify-content: flex-start; text-align: left; white-space: normal; }
.hb-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.hb-f textarea { flex: 1; resize: none; font: 14px/1.4 var(--sans); }
.g-ask { margin-bottom: 14px; }
.g-ask input { flex: 1; }
@media (max-width: 1450px) { .ask-btn .ask-txt { display: none; } .ask-btn { padding: 3px 8px; } }
/* 0.44.0: administratoriaus juosta ~1400–1600 px — meniu punktai nebenukerpami („Vert…“): įspėjimai sutraukiami iki ženklo, tarpai mažesni */
@media (max-width: 1600px) { .warn-chip .wc-t { display: none; } .nav a { padding: 7px 9px; } .top { gap: 14px; } .who .who-t { display: none; } .who { gap: 8px; } }
@media (max-width: 1300px) { .who .ver { display: none; } }
/* 0.16.2: vertėjo išnašos (tik LT) */
.ltn:empty { display: none; }
.ltn { margin-top: 6px; padding: 6px 10px; border-left: 3px solid #8a6d3b; background: color-mix(in srgb, #8a6d3b 7%, transparent); border-radius: 0 8px 8px 0; font: var(--read-small, 13px)/1.45 var(--sans); }
.ltn-h { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 2px; }
.ltn-i { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.ltn-i sup { color: #8a6d3b; font-weight: 700; }
.ltn-t { font-family: var(--font-lt, var(--serif)); }
.ltn-i { cursor: pointer; border-radius: 6px; }
.ltn-i:hover .ltn-t { text-decoration: underline dotted; }
.tgt-text sup { cursor: pointer; }
@keyframes ltnFlash { 0%, 60% { background: color-mix(in srgb, var(--focus, #e8b931) 70%, transparent); } 100% { background: transparent; } }
.ltn-flash { animation: ltnFlash 1.6s ease-out; border-radius: 4px; }
.tgt-text sup.ltfn { color: #8a6d3b; font-weight: 700; cursor: help; }

/* Vertimo tikslumas (0.18) */
.score-b { display: block; margin: 4px auto 0; border: 0; border-radius: 99px; padding: 1px 5px; font: 700 10.5px/1.4 var(--sans); cursor: pointer; color: #fff; }
.score-b.s-good { background: #2f8a3e; } .score-b.s-mid { background: #c98500; } .score-b.s-low { background: #c0392b; }
.score-b.s-stale { background: var(--line-2); color: var(--muted); text-decoration: line-through; }
.ev-score { font: 700 11px var(--sans); padding: 0 5px; border-radius: 99px; color: #fff; }
.ev-score.s-good { background: #2f8a3e; } .ev-score.s-mid { background: #c98500; } .ev-score.s-low { background: #c0392b; }

/* Specialūs simboliai (0.18) */
.sym-pop { position: fixed; z-index: 150; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; width: 236px; }
.sym-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sym-grid button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 6px; height: 32px; font: 17px var(--serif); cursor: pointer; }
.sym-grid button:hover { background: var(--panel-2, var(--bg)); border-color: var(--line-2); }
.sym-hint { margin-top: 6px; }

/* Sekami pakeitimai — klaviatūra (0.18.2) */
.pf-tck { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; }
.pf-tck input { width: 2.4em; text-align: center; text-transform: uppercase; padding: 3px; }
.pf-tck select { width: auto; padding: 3px 6px; }

/* 💡 Pasiūlymai (0.19) */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 99px; background: #d9822b; color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-weight: 700; }
.fb-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.fb-kinds button { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 4px 12px; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.fb-kinds button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); font-weight: 600; }
.fb-modal textarea#fb-text { width: 100%; box-sizing: border-box; font: inherit; min-height: 120px; }
.fb-place { margin-top: 8px; font-size: 13px; }
.fb-place label.btn { cursor: pointer; }
.fb-thumb { position: relative; display: inline-block; margin-top: 8px; }
.fb-thumb img { max-width: 260px; max-height: 160px; border: 1px solid var(--line); border-radius: 6px; display: block; }
.fb-thumb button { position: absolute; top: 2px; right: 2px; background: var(--panel); }
.fb-ctx { margin-top: 8px; }
.fb-ctx > div { margin-top: 4px; display: grid; gap: 2px; word-break: break-word; }
body.fb-picking, body.fb-picking * { cursor: crosshair !important; }
.fb-pick-box { position: fixed; z-index: 10000; pointer-events: none; border: 2px solid #d9822b; border-radius: 4px; background: rgba(217,130,43,.12); transition: all .06s; opacity: 0; }
.fb-pick-tip { position: fixed; z-index: 10001; top: 10px; left: 50%; transform: translateX(-50%); background: #243b53; color: #fff; padding: 7px 14px; border-radius: 99px; font-size: 13px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fb-page .fb-tabs { margin: 10px 0 12px; }
.fb-item { margin-bottom: 10px; }
.fb-item.fs-done, .fb-item.fs-declined { opacity: .8; }
.fb-item.fs-done { border-left: 4px solid #7bbf7b; }
.fb-item.fs-declined { border-left: 4px solid var(--line-2); }
.fb-item.fs-planned { border-left: 4px solid #8fb0e0; }
.fb-item.fs-new { border-left: 4px solid #e8a35a; }
.fb-head { gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-kind { font-weight: 600; font-size: 13px; }
.fb-st { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.fb-st.fs-new { background: #fbe3c8; color: #8a4b0f; }
.fb-st.fs-planned { background: #dde7f7; color: #24508f; }
.fb-st.fs-done { background: #d8efd8; color: #1d6b1d; }
.fb-text { white-space: pre-wrap; margin: 8px 0 6px; font-size: 15px; line-height: 1.45; }
.fb-where { color: var(--muted); }
.fb-where a { margin-left: 6px; }
.fb-shot img { max-width: 360px; max-height: 220px; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; display: block; }
.fb-admin { display: flex; gap: 8px; margin-top: 10px; align-items: flex-start; flex-wrap: wrap; }
.fb-admin select { width: auto; flex: 0 0 auto; }
.fb-admin .fb-note { flex: 1; min-width: 200px; font: inherit; font-size: 13px; min-height: 32px; resize: vertical; }
.fb-answer { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 6px 6px 0; font-size: 13.5px; }
.fb-flash { animation: fbFlash 2.4s ease-out; }
@keyframes fbFlash { 0%, 30% { box-shadow: 0 0 0 3px #d9822b; } 100% { box-shadow: none; } }
@media (max-width: 700px) { .fb-shot img, .fb-thumb img { max-width: 100%; } }

/* Biblija (0.21) */
.bib-bar { gap: 6px; flex-wrap: wrap; align-items: center; }
.bib-bar select { width: auto; max-width: 260px; }
.bib-actions { gap: 6px; margin: 10px 0 6px; align-items: center; }
.bib-out { font-family: var(--serif); font-size: 1.05em; line-height: 1.6; max-height: 65vh; overflow: auto; padding-right: 6px; }
.bib-h { font-family: var(--sans, inherit); margin: 4px 0 8px; }
.bib-v { padding: 2px 6px; border-radius: 5px; cursor: pointer; border-left: 3px solid transparent; }
.bib-v:hover { background: var(--panel-2); }
.bib-v.on { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-left-color: var(--accent); }
.bib-v sup { color: var(--muted); font-size: .7em; margin-right: 3px; font-family: var(--sans, inherit); }
.bib-v mark { background: #fbe9a8; padding: 0 1px; }
.bib-ref { font-family: var(--sans, inherit); font-size: .82em; font-weight: 600; margin-right: 4px; }
.bib-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; align-items: end; }
.sc-ver { width: auto; font-size: 12px; padding: 2px 4px; }
.sc-item .sc-q { font-family: var(--serif); margin: 4px 0 2px; line-height: 1.45; }
.sc-item .sc-q.sc-alt { color: var(--muted); font-size: .95em; }
.sc-tag { display: inline-block; font-family: var(--sans, inherit); font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 0 5px; border-radius: 4px; background: var(--panel-2); color: var(--muted); vertical-align: 1px; }
.sc-tag.ok { background: #d8efd8; color: #1d6b1d; }
.sc-btns { gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.sym-pop.wide { width: 470px; max-width: calc(100vw - 16px); }
.sym-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.sym-tabs button { flex: 1; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 12.5px; cursor: pointer; color: inherit; }
.sym-tabs button.on { background: var(--panel-2); font-weight: 600; border-color: var(--line-2); }
.acc-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.acc-row .acc-mark { min-width: 34px; height: 30px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; font: 18px var(--serif); color: inherit; }
.acc-grid { border-collapse: collapse; margin-bottom: 6px; width: 100%; }
.acc-grid td { padding: 1px; }
.acc-grid button { width: 100%; min-width: 24px; height: 28px; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; cursor: pointer; font: 17px var(--serif); color: inherit; padding: 0; }
.acc-grid button:hover, .acc-row .acc-mark:hover { background: var(--panel-2); }
.bib-sec { font-family: var(--sans, inherit); font-size: .78em; font-weight: 700; letter-spacing: .4px; color: var(--muted); margin: 14px 6px 4px; }
.bib-sec:first-of-type { margin-top: 4px; }

/* Šventasis Raštas vertimo lange: paieška ir palyginimas (0.22) */
.sc-cmp-t.on { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: var(--accent); color: var(--accent); }
.sc-pick { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 6px 0 2px; }
.sc-pick .check { margin: 0; }
.sc-cmp { border-left: 2px solid var(--line, #ddd); padding-left: 8px; margin: 4px 0 6px; }
.sc-cmp .sc-q { margin: 3px 0; }
.sc-sf { gap: 6px; margin-top: 10px; }
.sc-sf input { flex: 1; min-width: 0; font-size: 13px; }
.sc-res { margin-top: 6px; max-height: 55vh; overflow: auto; }
.sc-count { margin-bottom: 4px; }
.sc-hit { font-family: var(--serif); line-height: 1.45; padding: 5px 0; border-bottom: 1px solid var(--panel-2); }
.sc-hit:last-child { border-bottom: 0; }
.sc-hit .sc-hr, .sc-hit-ref b { font-family: var(--sans, inherit); font-size: .85em; margin-right: 3px; }
.sc-hit mark { background: #fbe9a8; padding: 0 1px; border-radius: 2px; }
.sc-hit sup { color: var(--muted); font-size: .7em; margin: 0 2px; font-family: var(--sans, inherit); }
.sc-minis { white-space: nowrap; }
.sc-mini { font: 600 11px var(--sans, system-ui); border: 1px solid var(--line, #ccc); background: var(--panel); color: var(--muted); border-radius: 4px; padding: 0 5px; margin-left: 3px; cursor: pointer; vertical-align: 1px; line-height: 17px; }
.sc-mini:hover { color: var(--accent); border-color: var(--accent); }
.sc-card .btn, .sc-card .sc-mini { font-family: var(--sans); }
.fl-scprev { margin-top: 6px; }

/* Recenzentų komanda (0.24) */
.ag-chip { --ag: #64748b; display: inline-block; font: 700 10.5px/1.6 var(--sans); letter-spacing: .2px; padding: 0 6px; border-radius: 4px; color: #fff; background: var(--ag); vertical-align: 1px; white-space: nowrap; }
.ag-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow: auto; }
.ag-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.ag-row:hover { background: var(--panel-2); }
.ag-row input { margin-top: 3px; }
.ag-arb { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.ag-est-rows { margin-top: 2px; }
.fl-also { font-weight: 400; text-transform: none; letter-spacing: 0; }
.chip.fl-dec { background: #fde7c4; color: #8a4b00; font-size: 11px; }
.rv-ag { width: auto; font-size: 12px; padding: 2px 4px; margin-right: 6px; }
.ae-sees { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.aa-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.ag-night { display: block; margin-top: 8px; }

/* Stulpelių sukeitimas (0.25.1): lietuviškas tekstas kairėje, angliškas dešinėje */
html.swapcols .seg { grid-template-columns: var(--numw) minmax(0, var(--col-lt, 1fr)) minmax(0, var(--col-en, 1fr)); }
html.swapcols .seg > .tgt { order: 1; border-right: 1px solid var(--line); }
html.swapcols .seg > .src { order: 2; border-right: 0; }
html.swapcols .segs.v-document .seg, html.swapcols .segs.v-focus .seg { grid-template-columns: var(--numw) minmax(0, 1fr); }
html.swapcols .segs.v-document .tgt, html.swapcols .segs.v-focus .tgt { border-right: 0; padding-bottom: 0; }
html.swapcols .segs.v-document .src, html.swapcols .segs.v-focus .src { padding-top: 4px; }
#swap-cols.on { background: color-mix(in srgb, var(--primary) 12%, var(--panel)); border-color: var(--primary); }
@media (max-width: 760px) { html.swapcols .seg { grid-template-columns: var(--numw-m) minmax(0, 1fr); } html.swapcols .seg > .tgt { border-right: 0; border-bottom: 1px solid var(--line); } html.swapcols .seg > .src { border-bottom: 0; } }

/* 0.27 — paieška pagal prasmę */
.chip.sem-new { background: var(--edited-bg); color: var(--edited); font-weight: 600; }
#sem-card progress { height: 8px; }

/* 0.28 — glosarijaus pasiūlymai */
.gl-sug { margin-bottom: 16px; }
.gs-item { border-top: 1px solid var(--line); padding: 10px 0; }
.gs-item:first-of-type { border-top: 0; }

/* 0.28 — ⏱ darbo sesija ir „Netrukdyti (DND)“ */
.pomo-chip { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; border-radius: 999px; padding: 3px 10px; font: 600 13px var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.pomo-chip.break { background: color-mix(in srgb, var(--approved) 45%, transparent); }
.pomo-chip.dnd { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.pomo-chip.paused { opacity: .7; }
.pomo-pop { position: fixed; z-index: 180; padding: 12px 14px; min-width: 240px; max-width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.pomo-big { font: 600 34px var(--serif); font-variant-numeric: tabular-nums; margin: 2px 0; }
.pomo-durs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pomo-held { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.pomo-h { padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pomo-h:first-child { border-top: 0; }
.dnd-tag { display: inline-block; font: 600 11.5px var(--sans); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 5px; padding: 0 6px; white-space: nowrap; }
.dnd-hint { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 6px; padding: 5px 8px; margin-top: 6px; }
.av.dnd { outline: 2px solid var(--accent); outline-offset: 1px; }
.av.dnd::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 13px; height: 13px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 4.6A6 6 0 0 1 18 9.5c0 3 .7 5 1.5 6.5M6 9.5c0 3.5-1 5.5-2 6.5h11M10 20a2 2 0 0 0 4 0M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 4.6A6 6 0 0 1 18 9.5c0 3 .7 5 1.5 6.5M6 9.5c0 3.5-1 5.5-2 6.5h11M10 20a2 2 0 0 0 4 0M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat; } /* 0.62.10: vienspalvė ikona vietoj emoji */

/* 0.29 — vertimo lango antraštė slenkant */
.ed-mini { display: none; align-items: center; gap: 6px; }
.ed-top.cmp .ed-mini, .ed-top.peek .ed-mini { display: flex; }
.ed-top.peek .ed-mini > :not(.ed-more) { display: none; }
.ed-top.fixed { position: fixed; left: 0; right: 0; top: 54px; transition: top .18s ease; box-shadow: 0 6px 18px rgba(31, 42, 55, .08); }
body.top-hidden .ed-top.fixed { top: 0; }
/* 0.43.3: „+“ tarp pastraipų (vadovui / administratoriui) — plūduriuoja prie apatinio pastraipos krašto. */
.ins-plus { position: fixed; transform: translate(-50%, -50%); z-index: 45; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink); font: 600 17px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.ins-plus[hidden] { display: none; }
/* 0.43.4: Biblijos išnašos — ˹…˺ ribos taškeliais; išnaša — ženkliukas eilutės gale. */
.bq { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.bfn { font-size: 10px; color: var(--muted); cursor: help; margin-left: 1px; }
.ins-plus:hover { filter: brightness(1.1); }
header.top { transition: transform .18s ease; }
body.top-hidden header.top { transform: translateY(-100%); }
.ed-top.peek { box-shadow: 0 10px 28px rgba(31, 42, 55, .16); }
.ed-top.cmp .in { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; gap: 12px; }
.ed-top.cmp .ed-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 0 1 auto; max-width: 34%; }
.ed-top.cmp .ed-title .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; flex: 0 1 auto; }
.ed-top.cmp .ed-title .crumb::after { content: " ›"; }
.ed-top.cmp .ed-title h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ed-top.cmp .ch-nav, .ed-top.cmp .ed-row2, .ed-top.cmp .ed-due, .ed-top.cmp .due-line { display: none !important; }
.ed-top.cmp .in > div:has(> #ed-prog) { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.ed-top.cmp #ed-pct { margin: 0 !important; }
.ed-top.cmp #ed-prog .prog { width: 100px; }
.ed-top.cmp .seg-filter { flex-wrap: nowrap; flex: none; }
.ed-top.cmp .seg-filter button { white-space: nowrap; padding-left: 9px; padding-right: 9px; }
.ed-top.cmp .spacer { min-width: 0; }
.ed-more { white-space: nowrap; }
.pomo-chip.mini { color: var(--ink); border-color: var(--line-2); background: var(--panel); }
.pomo-chip.mini.dnd { color: #fff; background: var(--accent); }
@media (max-width: 760px) { .ed-top.fixed { position: static; } .ed-mini { display: none !important; } }
#ed-more-menu .pop-grp { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
#ed-more-menu .pop-h { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 8px 12px 4px; }
/* Dideliame ekrane juosta platesnė — neslinkus telpa į 2 eilutes */
@media (min-width: 1560px) and (max-width: 1799px) { .ed-top:not(.cmp) .in { max-width: 100%; } } /* 0.38.15: kad „Eksportuoti ▾“ tilptų vienoje eilutėje */
@media (min-width: 1800px) { .ed-top .in { max-width: 1760px; } }
.ed-top.cmp .ed-title { flex: 1 1 auto; min-width: 200px; max-width: 38%; }
.ed-top.cmp .ed-title .crumb { max-width: 40%; }
.ed-top.cmp #ed-prog .prog { width: 70px; }
.ed-top.cmp #ed-pct { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-more .sm-only { display: none; }
@media (max-width: 1560px) {
  .ed-top.cmp #ed-pct { display: none; }
  .ed-top.cmp .ed-title { min-width: 130px; }
  .ed-more .lg { display: none; }
  .ed-more .sm-only { display: inline; }
}
@media (max-width: 1250px) { .ed-top.cmp .ed-title .crumb { display: none; } .ed-top.cmp #ed-prog { display: none; } }
.ed-top.cmp .ed-title { flex: 0 1 auto; }
@media (min-width: 1800px) { .ed-top.cmp #ed-pct { max-width: 340px; } .ed-top.cmp #ed-prog .prog { width: 110px; } }

/* 0.29 — inicialų apskritimai */
.av.ini { border: 0; vertical-align: middle; margin-right: 5px; }
.cmt-h .av.ini { margin-right: 2px; }
.mention .av.ini { width: 17px; height: 17px; font-size: 8px; margin-right: 2px; vertical-align: -3px; }
.mention-pop .av.ini { margin-right: 6px; }
.tc-who .tcav { --c: var(--tc); border: 0; margin-right: 4px; vertical-align: middle; }

/* 0.31: darbuotojo kortelė ir įkainiai */
.pc-av .av { width: 44px; height: 44px; font-size: 16px; }
.pc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pc-tile { margin: 0; }
.pc-tile > b { display: block; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pc-tab td.r, .pc-tab th.r, .rt-tab td.r, .rt-tab th.r { text-align: right; font-variant-numeric: tabular-nums; }
.pc-tab td { vertical-align: middle; }
.pc-tab td.pc-used { background: color-mix(in srgb, var(--accent, #2a78d6) 7%, transparent); }
.pc-tab tr.pc-ch td { background: var(--panel-2); border-top: 0; }
.pc-tab .pc-tg { padding: 0 6px; min-width: 0; }
.rt-tab input.rt-in { text-align: right; }
.rt-tab input.rt-in::placeholder { color: var(--muted); }
a.u-card { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.u-card:hover { color: var(--accent, #2a78d6); }
.note-warn { background: #fff4e0; border: 1px solid #f0c890; color: #7a4b00; border-radius: 8px; padding: 8px 12px; }
.pc-stage { white-space: nowrap; }
.pc-stage::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.pc-tab td.r b, .pc-tab td.r { white-space: nowrap; }

/* 0.32: ≈ Panaši mintis */
#tm-sim .tm-sim-h { margin: 10px 0 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tm-simi .pct.sim { background: color-mix(in srgb, #2a78d6 14%, transparent); color: #1d5fae; }
/* 0.32: projekto sąmata */
.bd-sum { margin-top: 10px; }
.bd-sum td.r, .bd-sum th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-sum .bd-tot td { font-weight: 700; border-top: 2px solid var(--ink); }
.bd-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bd-2 td.r, .bd-2 th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* 0.32.1: aklas skaitymas */
.segs.blind { max-width: 900px; margin: 0 auto; width: 100%; }
.segs.blind .seg { grid-template-columns: var(--numw) minmax(0, 1fr); }
.segs.blind .seg .src { display: none; }
.segs.blind .seg.show-src .src { display: block; grid-column: 2; border-right: 0; color: var(--ink-2); font-size: .92em; background: var(--panel-2); border-radius: 6px; padding: 6px 10px; }
.segs.blind .seg .num { grid-row: span 2; }
html.blind-mode #review-bar { display: none !important; }
/* 0.43.6 (Julius): aklas skaitymas — skyrius kaip vientisas lapas: pastraipos sulietos į vieną lapą, numeriai ir kiti
   elementai lieka, tarp pastraipų — punktyrinė linija. Kortelių rėmeliai ir tarpai tarp jų nebenaudojami. */
.segs.blind { gap: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 26px 44px; }
.segs.blind .seg { background: transparent; border: 0; border-top: 1px dashed var(--line-2); border-radius: 0; padding: 14px 0 12px; }
.segs.blind .seg:first-child { border-top: 0; padding-top: 4px; }
.segs.blind .seg.focus { box-shadow: none; border-color: transparent; border-top-color: var(--line-2); background: color-mix(in srgb, var(--focus) 10%, transparent); border-radius: 4px; }
@media (max-width: 760px) { .segs.blind { padding: 18px 16px; } }
#blind-btn.on { background: var(--ink); color: var(--panel); }

/* Viršelio idėjos (0.32.1) */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 10px; }
.cv-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); }
.cv-card h3 { margin: 0 0 6px; }
.cv-card p { margin: 0 0 8px; }
.cv-row { display: grid; grid-template-columns: 92px 1fr; gap: 6px; margin: 3px 0; font-size: 13px; }
.cv-prompt { margin-top: 8px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.cv-prompt .code { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin: 4px 0; white-space: pre-wrap; }
#cover .err { color: var(--red); }

/* Paryškinimas spalva (0.32.2, 66) — tekste <mark data-c>, sava spalva — inline style */
.tgt-text mark, .qv-text mark, .lt-sample mark, .tgt mark { color: inherit; border-radius: 2px; padding: 0 1px; }
mark[data-c="y"] { background: #ffe066; }
mark[data-c="g"] { background: #9be59b; }
mark[data-c="r"] { background: #ff9b9b; }
mark[data-c="v"] { background: #d6b4fc; }
html.dark mark[data-c] { color: #15191f; }
.fmt-btns .mk-ic { display: inline-block; padding: 0 4px; border-radius: 3px; background: #ffe066; color: #111; font-weight: 700; line-height: 1.3; }
.fmt-btns [data-fmt="markpal"] { min-width: 18px; padding-left: 2px; padding-right: 2px; }
.mark-pop { padding: 8px; }
.mark-row { display: flex; gap: 6px; align-items: center; }
.mark-row button[data-c] { width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }
.mark-row button.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.mark-row .mark-off { background: var(--panel); color: var(--ink); font-size: 13px; }
.mark-own { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.mark-own input[type=color] { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: none; }

/* ¶ Tarpai ir pastraipų ženklai (0.32.2, 76) — tik lietuviškame tekste */
/* 0.32.3: kaip Word'e — taškas raidės aukščio viduryje, piešiamas atskirame sluoksnyje (tekstas nepaliečiamas) */
.segs.show-ws .tgt-wrap { position: relative; }
.ws-ov { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.ws-ov i { position: absolute; transform: translate(-50%, -50%); font-style: normal; font-weight: 700; line-height: 1; font-size: 0.95em; color: color-mix(in srgb, #2a78d6 65%, var(--muted)); user-select: none; }
.ws-ov i.bad { color: #d92d20; font-size: 1.15em; }
.ws-ov i.br { transform: translate(0, -50%); font-weight: 400; }
.segs.show-ws .tgt-text::after { content: '¶'; color: color-mix(in srgb, #2a78d6 70%, var(--muted)); margin-left: 2px; font-weight: 400; pointer-events: none; }
.segs.show-ws .tgt-text:empty::after { content: ''; }
#ws-btn { font-weight: 700; min-width: 30px; }

/* Rašybos tikrinimas (0.32.3, 73) */
::highlight(vt-spell) { text-decoration: underline wavy #d92d20; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wmenu .sp-box { padding: 4px 8px 0; max-width: 320px; }
.wmenu.wbar .sp-box { flex: 1 0 100%; max-width: none; box-sizing: border-box; }
.wmenu.wbar .sp-box hr { margin: 2px 0 0; }
.wmenu .sp-sug { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.wmenu .sp-sug .sp-w, .wmenu .sp-act .sp-b { width: auto; display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); font-weight: 600; }
.wmenu .sp-act { display: flex; gap: 6px; margin-bottom: 4px; }
.sw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.sw .sw-del { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; }

/* Pakeitimų filtras pagal autorių (0.32.6, 78) */
.tc-legend button.tc-who { cursor: pointer; font: inherit; border: 1px solid transparent; background: none; padding: 1px 6px 1px 1px; border-radius: 999px; }
.tc-legend button.tc-who:hover { border-color: var(--line-2); }
.tc-legend button.tc-who.on { border-color: currentColor; background: var(--panel-2); font-weight: 600; }
.tc-whobar { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg.tc-who-hide { display: none; }
/* 0.32.7 (80): Biblijos citata — eilučių numeriai */
.sc-vrow { gap: 6px; align-items: center; margin: 6px 0 2px; }
.sc-nums button { padding: 2px 7px; font-size: 11.5px; font-family: var(--sans); }
.sc-q sup { color: var(--muted); font-size: .7em; font-weight: 600; margin: 0 2px 0 3px; font-family: var(--sans); }
.sc-q .sc-vl { display: block; margin: 0 0 3px; }
.sc-q .sc-vl sup { margin-left: 0; }
/* 0.32.7 (81): greitas vertimas — slinkti kartu */
.qv-sync { opacity: .55; }
.qv-sync.on { opacity: 1; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: var(--accent); }
/* 0.32.7 (82): Biblija lygiagrečiai */
.bp-bar { gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.bp-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 2px 1px 4px; background: var(--panel); }
.bp-chip select { border: 0; width: auto; max-width: 220px; padding: 2px 4px; font-size: 13px; background: transparent; }
.bp-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 5px; }
.bp-x:hover { color: var(--danger, #b42318); }
.bp-row { display: grid; grid-template-columns: 30px repeat(var(--bp-n, 2), minmax(0, 1fr)); gap: 0 18px; border-bottom: 1px solid var(--panel-2); border-radius: 5px; }
.bp-row:not(.bp-head):hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.bp-head { position: sticky; top: 0; background: var(--panel); z-index: 1; border-bottom: 1px solid var(--line-2); }
.bp-head .bp-c { font: 700 11.5px var(--sans); letter-spacing: .4px; color: var(--ink-2); padding: 6px 0; }
.bp-n { font: 600 11px var(--sans); color: var(--muted); text-align: right; padding-top: 7px; }
.bp-c { padding: 5px 0; }
.bp-row .bib-v { border-left: 0; border-radius: 4px; padding: 5px 6px; margin: 0 -6px; }
.bp-miss { color: var(--muted); font: italic 12px var(--sans); padding-top: 8px; }
.bp-sec { margin-left: 48px; }
@media (max-width: 760px) {
  .bp-row { grid-template-columns: 24px minmax(0, 1fr); }
  .bp-row .bp-c { grid-column: 2; }
  .bp-row .bp-c::before { content: attr(data-code); display: block; font: 700 10px var(--sans); color: var(--muted); letter-spacing: .3px; }
  .bp-head { display: none; }
  .bp-sec { margin-left: 30px; }
}
/* 0.33.0 (84): PDF importas su žymėjimu */
body.pdfi-open { overflow: hidden; }
.pdfi-wait { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(20, 24, 30, .35); }
.pdfi-wait .card { padding: 18px 22px; }
.pdfi { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; outline: none; }
.pdfi-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.pdfi-name { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfi-nav { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.pdfi-nav input { width: 52px; text-align: center; padding: 3px 4px; }
.pdfi-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.pdfi-view { overflow: auto; padding: 16px; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.pdfi-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.pdfi-page canvas { display: block; }
.pdfi-ov { position: absolute; inset: 0; }
.pdfi-b { position: absolute; border: 1.5px solid var(--kc); background: color-mix(in srgb, var(--kc) 10%, transparent); border-radius: 3px; cursor: pointer; }
.pdfi-b:hover { background: color-mix(in srgb, var(--kc) 22%, transparent); }
.pdfi-b.sel { outline: 2.5px solid var(--kc); outline-offset: 1px; }
.pdfi-b.manual { border-style: solid; border-width: 2px; }
.pdfi-b.k-skip { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--kc) 14%, transparent) 5px 7px); }
.pdfi-tag { position: absolute; right: 100%; top: -1.5px; margin-right: 3px; font: 700 10px/14px var(--sans); color: #fff; background: var(--kc); padding: 0 4px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.pdfi-b.joined .pdfi-tag { background: #6b4fbb; }
.pdfi-side { overflow: auto; border-left: 1px solid var(--line); background: var(--panel); padding: 12px 16px 40px; font-size: 13.5px; }
.pdfi-side section { margin-bottom: 16px; }
.pdfi-side h3 { font: 600 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); margin: 0 0 8px; }
.pdfi-side .radio-row { margin: 4px 0; }
.pi-num { width: 52px !important; padding: 2px 4px !important; text-align: center; display: inline-block; }
.pdfi-st td { vertical-align: middle; padding: 5px 4px; }
.pdfi-st { width: 100%; table-layout: fixed; }
.pdfi-st td:last-child { width: 128px; }
.pdfi-st select { width: 124px; font-size: 12.5px; padding: 3px 4px; border-left: 4px solid var(--kc); }
.pdfi-sample { font-family: var(--serif); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfi-legend { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pk { font: 600 11.5px var(--sans); border: 1.5px solid var(--kc); color: var(--ink); background: color-mix(in srgb, var(--kc) 12%, var(--panel)); border-radius: 5px; padding: 2px 7px; }
button.pk { cursor: pointer; }
button.pk.on { background: var(--kc); color: #fff; }
.pdfi-ch { margin: 0; padding-left: 20px; }
.pdfi-ch li { margin: 3px 0; }
.pdfi-pop { position: fixed; z-index: 95; width: 330px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
.pdfi-pop .check { margin: 6px 0 0; }
.pdfi-txt { font-family: var(--serif); font-size: 13px; line-height: 1.4; margin: 4px 0 8px; max-height: 80px; overflow: auto; }
.pdfi-kinds { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-split { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 3px 4px; cursor: pointer; font: 12.5px var(--serif); border-radius: 4px; }
.pp-split:hover { background: var(--panel-2); }
.k-p { --kc: #2f6fb3; } .k-chapnum { --kc: #9b2c8f; } .k-h1 { --kc: #b42318; } .k-h2 { --kc: #c4501a; } .k-h3 { --kc: #b07a00; } .k-h4 { --kc: #8a7a1a; }
.k-blockquote { --kc: #1f8a5b; } .k-li { --kc: #4f6bd8; } .k-li2 { --kc: #6f86e6; } .k-ol { --kc: #3a56c4; } .k-footnote { --kc: #6c757d; } .k-skip { --kc: #9aa0a6; }
@media (max-width: 900px) { .pdfi-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 40%; } .pdfi-side { border-left: 0; border-top: 1px solid var(--line); } }
/* 0.33.1: mygtukai pastraipos numerio stulpelyje (✎ EN, 📄 PDF puslapis) */
.num .num-btn { display: block; margin: 5px auto 0; font: 600 9.5px/1.1 var(--sans); color: var(--muted); background: none; border: 1px dashed transparent; border-radius: 4px; padding: 2px 1px; cursor: pointer; white-space: nowrap; max-width: 100%; }
.num .num-btn:hover { border-color: var(--line-2); color: var(--ink); }
.num .act-pdf.on { color: var(--accent); border-color: var(--accent); border-style: solid; }
/* 0.33.1 (87): PDF originalo langas vertimo lange */
.pdfw { position: fixed; z-index: 60; display: flex; flex-direction: column; padding: 0; resize: both; overflow: hidden; min-width: 300px; min-height: 220px; box-shadow: 0 10px 34px rgba(0, 0, 0, .25); }
.pdfw-h { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: move; flex-shrink: 0; flex-wrap: wrap; }
.pdfw-h .check { margin: 0 4px; }
/* 0.62.14: antraštė netelpa vienoje eilutėje, kai pridėti puslapio laukelis ir „⧉“ — pavadinimas užima laisvą vietą ir sutrumpėja (…), o ne mygtukai kris į antrą eilutę */
.pdfw-h .pdfw-t { flex: 1 1 0; min-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfw-h .spacer { display: none; }
.pdfw-h .btn.sm { padding-left: 7px; padding-right: 7px; }
.pdfw-pg { display: inline-flex; align-items: center; gap: 4px; min-width: 54px; justify-content: center; white-space: nowrap; }
.pdfw-pg .pdfw-n { width: 48px; min-width: 0; box-sizing: border-box; padding: 3px 4px; text-align: center; font: inherit; font-size: 13px; }
.pdfw-b { flex: 1; overflow: auto; padding: 12px; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.pdfw-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .15); }
.pdfw-page canvas { display: block; }
/* 0.35.0 (106): formatavimas iš PDF */
.pf-list { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.pf-it { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: flex-start; cursor: pointer; }
.pf-it:last-child { border-bottom: 0; }
.pf-it > input { margin-top: 3px; }
.pf-txt { font-family: var(--serif, Georgia, serif); line-height: 1.45; margin: 2px 0 4px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-chip { font-size: 12px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-chip.add { background: color-mix(in srgb, #008300 12%, var(--bg)); }
.pf-chip.del { background: color-mix(in srgb, #c62828 12%, var(--bg)); }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pf-op { display: flex; gap: 10px; align-items: center; padding: 3px 0; }
.ktw-f { flex: 1; width: 100%; border: 0; background: #fff; }
.ktw-w { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pdfw.marking .pdfw-page { cursor: crosshair; }
.pdfw.marking .pdfw-hl { opacity: .35; }
.pdfw-draw { position: absolute; border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); pointer-events: none; }
.pdfw-h [data-a="mark"].on { background: var(--accent); color: #fff; }
.pdfw-hl { position: absolute; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 4px; pointer-events: none; }
/* 0.33.1 (86): PDF importas — keli blokai */
.pdfi-view { position: relative; }
.pdfi-selbar { position: sticky; top: -16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -16px -16px 12px; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: 13px; }
.pdfi-rect { position: absolute; border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); pointer-events: none; }
.pdfi-ov { cursor: crosshair; touch-action: none; }
.pdfi-b { cursor: pointer; }
.pdfi-b.sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.pdfi-page.skipped canvas { opacity: .35; }
.pdfi-skipped { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 700 18px var(--sans); color: #fff; background: rgba(120, 120, 120, .85); padding: 8px 16px; border-radius: 8px; pointer-events: none; z-index: 2; }
/* 0.33.1 (88): recenzentai vienai pastraipai */
.ag-menu button { display: flex; align-items: center; gap: 7px; }
.ag-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
/* 0.38.7 (116): sakinys / pastraipa, varnelės */
.ag-menu { min-width: 290px; }
.ag-scope { display: flex; gap: 4px; padding: 2px 8px 6px; }
.ag-scope button { flex: 1; justify-content: center; border: 1px solid var(--line) !important; font-size: 13px; padding: 5px !important; }
.ag-scope button.on { background: var(--primary) !important; color: var(--primary-ink); border-color: var(--primary) !important; }
.ag-row { display: flex; align-items: center; padding-left: 8px; }
.ag-row input { margin: 0; flex-shrink: 0; }
.ag-row button { flex: 1; }
.ag-foot { display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.ag-foot .small { flex: 1; }
.ag-foot .btn { width: auto !important; display: inline-block !important; }
.wmenu .ag-foot .btn.primary:hover:not(:disabled) { background: var(--primary); color: var(--primary-ink); filter: brightness(1.12); } /* 0.38.15: neišnyksta užvedus pelę */
.seg.ag-running .tgt-wrap { position: relative; }
.ag-run-badge { position: absolute; right: 6px; top: -2px; display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--sans); color: var(--accent); background: var(--panel); padding: 1px 6px; border-radius: 5px; animation: pulse 1.2s ease-in-out infinite; pointer-events: none; user-select: none; } /* 0.62.10: ikona — ic('search'), ne emoji */
.ag-run-badge .ic { width: 12px; height: 12px; vertical-align: 0; }
@keyframes pulse { 50% { opacity: .45; } }
/* 0.33.5 (92): pastraipų trynimas, skyriaus skaidymas */
.num .num-row { display: flex; justify-content: center; gap: 1px; margin-top: 3px; }
.num .num-row .num-btn { margin: 0; padding: 2px 2px; font-size: 10.5px; opacity: .55; }
.num .num-row .num-btn:hover { opacity: 1; }
.num .act-del:hover { color: var(--danger, #b42318); border-color: var(--danger, #b42318); }
.seg .num { cursor: default; }
.seg.sel-x { outline: 2.5px solid var(--danger, #b42318); outline-offset: -1px; }
.seg.sel-x .num { background: color-mix(in srgb, var(--danger, #b42318) 12%, var(--panel)); }
.sel-bar, .undo-bar { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 8px; padding: 8px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); font-size: 13.5px; flex-wrap: wrap; max-width: calc(100vw - 32px); }
.undo-bar { background: var(--ink); color: var(--bg); border-radius: 10px; }
.undo-bar .btn { color: inherit; border-color: color-mix(in srgb, var(--bg) 40%, transparent); background: transparent; }
.sp-list { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.sp-row { display: grid; grid-template-columns: 22px 54px 1fr; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--panel-2); }
.sp-row:last-child { border-bottom: 0; }
.sp-row .sp-t { width: 100%; padding: 3px 6px; font-size: 13px; }
/* 0.33.7: „⋯“ pastraipos veiksmų meniu */
.num .act-more { font-size: 14px; letter-spacing: 1px; line-height: .8; padding: 2px 4px; }
.more-menu button.danger { color: var(--danger, #b42318); }

/* 0.33.8: platesnis numerio stulpelis (D variantas) — tipas žodžiu, ⋮ meniu; mygtukų eilutė tik aktyvioje pastraipoje. */
:root { --numw: 58px; --numw-m: 46px; }
.seg .num { font-size: 13.5px; font-weight: 600; }
.num .kind-btn { font: 600 11px/1.2 var(--sans); padding: 3px 6px; margin-top: 6px; border: 0; border-radius: 20px; background: color-mix(in srgb, var(--accent) 11%, var(--panel)); color: var(--accent); max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis; }
.num .kind-btn:hover { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); border: 0; color: var(--accent); }
.num .act-more { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 6px auto 0; padding: 0; border: 0; border-radius: 6px; color: var(--ink); opacity: .6; letter-spacing: 0; line-height: 1; font-size: inherit; }
.num .act-more:hover { opacity: 1; background: var(--panel-2); border: 0; }
.num .act-pdf { font-size: 12px; }
.num .num-cmt { display: block; margin-top: 4px; font: 500 11.5px var(--sans); color: var(--muted); }
html:not(.allbtns) .seg:not(.focus):not(.foot-keep) .seg-foot { display: none; }
html.allbtns .num .num-cmt, .seg.focus .num .num-cmt { display: none; }
.more-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.more-menu button.ok { color: var(--approved, #2e7d32); font-weight: 600; }
.more-menu button:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) { .num .kind-btn { font-size: 10px; padding: 2px 4px; } }

/* 0.34.0 (97 C): pastraipos veiksmų ikonų grupė */
.seg-foot .ib-grp { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--panel); flex-shrink: 0; }
.seg-foot .ib { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.seg-foot .ib:last-child { border-right: 0; }
.seg-foot .ib:hover { background: var(--panel-2); color: var(--ink); }
.seg-foot .ib-gl { font: 600 15px var(--sans); }
.seg-foot .ib .ib-n { position: absolute; top: 1px; right: 2px; font: 700 9.5px var(--sans); font-style: normal; color: var(--accent); }
/* 0.38.20: neišspręsti komentarai — tamsus mygtukas su skaičiumi šalia ikonos (C variantas) */
.seg-foot .ib.act-cmt:has(.ib-n) { width: auto; padding: 0 9px; gap: 4px; background: var(--primary); color: var(--primary-ink); }
.seg-foot .ib.act-cmt:has(.ib-n):hover { filter: brightness(1.12); }
.seg-foot .ib.act-cmt .ib-n { position: static; color: var(--primary-ink); font-size: 12px; }
.seg-foot .ib.act-note.has-note { color: var(--ink); }
.seg-foot .ib.act-note.has-note::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.seg-foot .ib .ib-ok { position: absolute; top: 0; right: 2px; font: 700 10px var(--sans); font-style: normal; color: var(--approved); }
.seg-foot .act-read.on { color: var(--approved); }
.seg-foot .btn.ok.act-approve { font-weight: 600; padding: 5px 14px; }

/* 0.34.0 (100): EN taisymo režimas */
html.en-mode .seg .src { background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
html.en-mode .seg .src-text { cursor: text; outline: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; border-radius: 3px; }
html.en-mode .seg .src-text.src-editing { outline: 2px solid var(--accent); }
#enmode-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 0.34.0 (99): pastraipos padalijimas */
.spd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 760px) { .spd-grid { grid-template-columns: 1fr; } }
.spd-t { font-family: var(--serif); line-height: 1.7; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 50vh; overflow: auto; }
.spd-s.a { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.spd-s.b { background: color-mix(in srgb, #2b7bb9 14%, transparent); }
.spd-cut { border: 1px dashed var(--line-2); background: var(--panel); border-radius: 5px; padding: 0 5px; margin: 0 3px; font-size: 13px; cursor: pointer; color: var(--muted); }
.spd-cut:hover { color: var(--ink); border-color: var(--ink-2); }
.spd-cut.on { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

/* 0.34.0 (102): šrifto spalva, atsakymai, „Tik mokytojui“ */
.fmt-btns .fc-ic { display: inline-block; padding: 0 3px; font-weight: 700; line-height: 1.1; border-bottom: 3px solid #c00000; }
.fmt-btns .ans-ic { font: 600 11px var(--sans); }
span[data-ans] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.seg .tgt-text span[data-ans], .seg .src-text span[data-ans] { background: color-mix(in srgb, currentColor 7%, transparent); border-radius: 2px; }
html.dark span[data-fc] { filter: brightness(1.6) saturate(.9); }
.seg.teacher .num::before { content: ""; position: absolute; top: 2px; left: 6px; width: 13px; height: 13px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5M22 9v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5M22 9v6'/%3E%3C/svg%3E") center / contain no-repeat; } /* 0.62.10: vienspalvė ikona vietoj emoji */
.seg.teacher { box-shadow: inset 0 0 0 1px color-mix(in srgb, #7a1f3d 35%, transparent); }
.seg.teacher .tgt { background: color-mix(in srgb, #7a1f3d 4%, var(--panel)); }
.num .teacher-tag { display: block; margin: 4px auto 0; font: 600 10px var(--sans); color: #7a1f3d; }

.seg-foot .ib-di { font: 700 12px var(--sans); letter-spacing: .2px; }

/* 0.34.3: vertimo pusėje — tuščias tarpiklis tipo užrašo („PAANTRAŠTĖ“) aukščio, be teksto (Firefox nebededa į jį žymeklio);
   .tgt — flex su tarpu 6px, todėl apatinė paraštė atimama — LT tekstas lygiai su EN. */
.tgt > .kind-sp { height: 10.5px; margin-bottom: -2px; user-select: none; pointer-events: none; }

/* 0.34.3 (104): bendras ikonų rinkinys (public/icons.js) */
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex-shrink: 0; }
b.ic.ic-gl { width: auto; height: auto; vertical-align: baseline; font: 600 1em var(--sans); display: inline-block; min-width: 1.1em; text-align: center; }
b.ic.ic-di { font: 700 .82em var(--sans); }
.mi { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; margin-right: 6px; color: var(--ink-2); vertical-align: middle; }
.more-menu button.danger .mi, .more-menu button.ok .mi { color: inherit; }
.wmenu.wbar .mi:empty { display: none; }
.wmenu.wbar .mi { width: auto; margin-right: 4px; }
.cmt-ic .ic { width: 15px; height: 15px; }
.btn .ic { margin-right: 1px; }
.num .act-pdf .ic, .num .num-cmt .ic { width: 13px; height: 13px; vertical-align: -2px; }
.src-top { display: flex; align-items: center; gap: 8px; height: 10.5px; }
.src-top .kind { margin-bottom: 0; }
.src-top:has(.kind), .src-top:has(.src-hist) { margin-bottom: 4px; }
.src-top:not(:has(.kind)):not(:has(.src-hist)) { display: none; }
.src-hist-slot { margin-left: auto; }
.src-hist { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: 600 10.5px/1 var(--sans); letter-spacing: .3px; text-transform: uppercase; color: #b7791f; white-space: nowrap; }
.src-hist:hover { text-decoration: underline; }
.src-hist .ic { width: 11px; height: 11px; }

#ed-more-menu .pop button .ic { margin-right: 6px; color: var(--ink-2); }
#map-toggle.primary { font-weight: 700; }

/* 0.34.4 (105): viršus — dvi eilutės nuo ~1600 px pločio */
#ch-sel { max-width: 170px !important; }
#ed-pct { max-width: 210px; white-space: normal; line-height: 1.25; }
.ed-row2 .seg-tabs .lbl { display: none; }
#tc-base { max-width: 170px !important; }

/* 0.37.0 (112): projektų kategorijos */
.cat-bar { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.cat-chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 5px 12px; font: 500 13px var(--sans); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.cat-chip b { font-weight: 600; color: var(--muted); }
.cat-chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.cat-chip.on b { color: var(--primary-ink); opacity: .75; }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.cat-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.cat-tools input { width: 220px; max-width: 100%; }
.seg-switch { display: inline-flex; }
.seg-switch .btn { border-radius: 0; }
.seg-switch .btn:first-child { border-radius: 8px 0 0 8px; }
.seg-switch .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.seg-switch .btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.cat-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; padding-right: 22px; }
.cat-tag { display: inline-flex; gap: 5px; align-items: center; font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.cat-h { display: flex; align-items: center; gap: 8px; font: 600 15px var(--sans); margin: 18px 0 8px; cursor: pointer; user-select: none; }
.cat-h .n { color: var(--muted); font-weight: 500; }
.cat-h .car { color: var(--muted); font-size: 12px; width: 10px; }
.cat-sec.closed .grid-cards { display: none; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pick label { border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px 4px 8px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }
.cat-pick label:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.cat-pick input { margin: 0; }
.cat-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-row input[type=color] { width: 34px; height: 30px; padding: 0; border: 0; background: none; }
.cat-row .cat-name { flex: 1; min-width: 120px; }
.cat-row .small { white-space: nowrap; }

/* 0.37.1 (113): Nustatymai plytelėmis */
.set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.set-tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; color: inherit; text-decoration: none; }
.set-tile:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.set-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--panel-2); color: var(--primary); flex: none; }
.set-tile h3 { margin: 0 0 4px; font: 600 16px var(--sans); }
.set-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.set-tile .stat { margin-top: 8px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.set-tile .stat:empty { display: none; }
.set-back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 4px; }
.set-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.set-nav a { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 5px 12px; font: 500 13px var(--sans); color: var(--ink); text-decoration: none; }
.set-nav a.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* 0.37.1: skyrių naršymas ‹ › */
.ch-nav { display: inline-flex; align-items: center; gap: 2px; }
.ch-nav .ch-step { padding: 2px 8px; font-size: 17px; line-height: 1; }
.ch-nav .ch-step:disabled { opacity: .3; }

/* 0.38.0 (114): žodžių paieškų atmintis */
::highlight(word-asked) { background-color: color-mix(in srgb, #7c3aed 14%, transparent); text-decoration: underline; text-decoration-style: dotted; text-decoration-color: #7c3aed; text-underline-offset: 4px; }
html.dark ::highlight(word-asked) { background-color: color-mix(in srgb, #a78bfa 22%, transparent); text-decoration-color: #a78bfa; }
.wm-saved { margin-left: auto; padding-left: 14px; color: var(--approved, #008300); font-size: 12px; white-space: nowrap; }
.wmenu button:has(.wm-saved) { display: flex; align-items: center; }
#wp-more .wm-saved { margin-left: 6px; padding-left: 0; }
.wp-cached { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; background: color-mix(in srgb, var(--approved, #008300) 10%, transparent); }
.wp-cached > span { flex: 1; min-width: 0; }

/* 0.38.1 (115): recenzijos — skirtuke; pakeitimų stulpelis ne aukštesnis už tekstą */
.rev-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; text-align: left; margin: 6px 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font: 500 12.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.rev-line:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--panel-2) 70%, var(--line)); }
.rev-line.sev-red { border-left: 3px solid #d92d20; }
.rev-line.sev-yellow { border-left: 3px solid #c98500; }
.rev-line .ag-chip { font-size: 10.5px; }
.rev-line .rv-go { margin-left: auto; color: var(--primary); text-decoration: underline; }
.side-tabs .rev-n { background: #c98500; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 3px; }
#tab-rev .rev-h { display: flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: var(--muted); margin: 4px 0 10px; }
#tab-rev .rev-flags .flag { margin: 0 0 10px; }
.seg.tc-balloons .tc-list { contain: size; overflow-y: auto; align-self: stretch; }
/* 0.38.12: trumpa (vienos eilutės) pastraipa — bent viena pakeitimo kortelė visada matoma */
.seg.tc-balloons .tgt-wrap:has(.tc-b) { min-height: var(--tc-min, 118px); }
.seg.tc-balloons .tgt-wrap:has(.tc-b ~ .tc-b ~ .tc-b) { min-height: 180px; }
.tc-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--panel); padding: 2px 0 4px; }
#tab-rev .fl-a { display: flex; flex-wrap: wrap; gap: 4px; }
.side-tabs button { line-height: 1.2; }

/* 0.38.2: Word komentarai — ištrauka su pakeitimais */
.wcom .cq { margin: 3px 0; font-family: var(--serif, Georgia, serif); }
.wcom .cq del { color: #c62828; text-decoration: line-through; }
.wcom .cq ins { color: #1d5fbf; text-decoration: underline; }
.wcom .cq-t { white-space: pre-line; color: var(--ink-2); }
.wcom .cq-old { margin: 2px 0 3px; font-size: 12px; color: var(--muted); }
.wcom .cq-old summary { cursor: pointer; }

/* 0.38.17: skyrių tempimas projekto sąraše */
.ch-grip { cursor: grab; color: var(--muted); margin-right: 6px; user-select: none; font-size: 15px; }
.ch-row.ch-drag { opacity: .45; }
.ch-row.drop-before td { box-shadow: inset 0 3px 0 var(--primary); }
.ch-row.drop-after td { box-shadow: inset 0 -3px 0 var(--primary); }

/* 0.38.18: vertimo įkėlimas iš Word į skyrių */
.li-wrap { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.li-t td { vertical-align: top; }
.li-t td.lt { font-family: var(--serif); }
.li-t tr.li-doubt td { background: color-mix(in srgb, #f59e0b 14%, var(--panel)); }
.li-t tr.li-extra td { background: color-mix(in srgb, #ef4444 12%, var(--panel)); }
.ch-arrange { display: flex; justify-content: flex-end; margin: -4px 0 6px; }

/* 0.43.1: įvesties laukai (failo mygtukas, datos, sąrašai, kalendorius) tamsioms temoms — tamsūs, o ne balti. */
html.dark { color-scheme: dark; }
html:not(.dark) { color-scheme: light; }
html.dark input[type="file"]::file-selector-button { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; }

/* 0.38.22: daugiau tamsių temų (html.dark + data-theme). Bendros tamsios reikšmės — html.dark; čia — skirtumai. */
html.dark[data-theme="graphite"] { --bg: #18191a; --panel: #212224; --panel-2: #2a2b2e; --ink: #e6e6e6; --ink-2: #b6b6b6; --muted: #8c8c8c; --line: #323337; --line-2: #43454a; --primary: #cfcfcf; --primary-ink: #18191a; }
html.dark[data-theme="sepia"] { --bg: #1d1813; --panel: #261f18; --panel-2: #30281f; --ink: #ecdfc8; --ink-2: #c7b597; --muted: #9c8b70; --line: #3b3126; --line-2: #4c4032; --primary: #dcb680; --primary-ink: #1d1813; }
html.dark[data-theme="oled"] { --bg: #000000; --panel: #0a0a0a; --panel-2: #141414; --ink: #e8e4da; --ink-2: #b0aba0; --muted: #85817a; --line: #1f1f1f; --line-2: #2e2e2e; --primary: #d9c7a0; --primary-ink: #000000; }
/* Bespalvis: juodas fonas, tik pilki tonai; spalvas išlaiko tik sekami pakeitimai (ištrinta — raudona, įterpta — mėlyna). */
html.dark[data-theme="mono"] {
  --bg: #000000; --panel: #0b0b0b; --panel-2: #161616; --ink: #e6e6e6; --ink-2: #b3b3b3; --muted: #858585; --line: #232323; --line-2: #343434;
  --primary: #e6e6e6; --primary-ink: #000000; --accent: #bdbdbd;
  --draft-bg: #1c1c1c; --edited-bg: #1c1c1c; --approved-bg: #1c1c1c; --red-bg: #262626; --yellow-bg: #222222;
  --draft: #bdbdbd; --edited: #d6d6d6; --approved: #e6e6e6; --red: #f0f0f0; --focus: #9a9a9a;
  --st-translate: #5c5c5c; --st-check: #7a7a7a; --st-edit: #999999; --st-proof: #b8b8b8; --st-done: #e0e0e0;
}
html.dark[data-theme="mono"] .btn.ok, html.dark[data-theme="mono"] .seg-foot .btn.ok { background: #e6e6e6; border-color: #e6e6e6; color: #000; }
html.dark[data-theme="mono"] .chip, html.dark[data-theme="mono"] .kind, html.dark[data-theme="mono"] .ag-dot { filter: grayscale(1); }
.wp-var > span:first-child { flex: 1; }
/* 0.39.0 (125): „Ar skyrius baigtas?“ */
.fin-card { position: fixed; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; z-index: 60; padding: 10px 14px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.fin-head { gap: 6px; cursor: move; margin-bottom: 6px; }
.fin-up { display: block; margin-bottom: 8px; }
.fin-sum { font-weight: 600; padding: 6px 10px; border-radius: 8px; margin-bottom: 8px; }
.fin-sum.todo { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.fin-sum.done { background: color-mix(in srgb, #2e7d4f 14%, transparent); color: #2e7d4f; }
.fin-sec { border-top: 1px solid var(--line); padding: 7px 0; }
.fin-sec.ok { color: var(--muted); }
.fin-sec.ok .fin-ic { color: #2e7d4f; }
.fin-ic { display: inline-block; width: 16px; font-weight: 700; color: var(--accent); }
.fin-list { margin: 4px 0 0 16px; }
.fin-sub { margin: 3px 0; }
.fin-n { border: 1px solid var(--line); background: var(--panel); color: inherit; border-radius: 6px; padding: 1px 7px; margin: 2px 3px 2px 0; font: inherit; font-size: 12px; cursor: pointer; }
.fin-n:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.fin-n small { opacity: .7; }
#ed-prog { cursor: pointer; }
.fin-hint { margin: 1px 0 0 16px; }
/* 0.40.0: suliejimas */
.live-note.ok { background: var(--approved-bg); border-color: color-mix(in srgb, var(--approved) 35%, transparent); color: var(--approved); }
.mg-c { box-shadow: none; padding: 10px 12px; margin-top: 10px; }
.mg-ctx { font-family: var(--serif); margin-bottom: 6px; }
.mg-base { background: var(--yellow-bg); padding: 0 3px; border-radius: 3px; color: var(--ink); }
.mg-l { font-weight: 600; min-width: 70px; display: inline-block; }
.mg-t { font-family: var(--serif); }
/* 0.40.0: kitų žmonių žymekliai */
.rc-caret { position: absolute; width: 2px; margin-left: -1px; background: var(--c); pointer-events: none; z-index: 3; border-radius: 1px; }
.rc-tag { position: absolute; top: -14px; left: -1px; background: var(--c); color: #fff; font: 700 9.5px/1.3 var(--sans); padding: 0 4px; border-radius: 4px 4px 4px 0; white-space: nowrap; }
::highlight(rc-1) { background-color: rgba(42, 120, 214, .22); }
::highlight(rc-2) { background-color: rgba(179, 89, 31, .22); }
::highlight(rc-3) { background-color: rgba(74, 58, 167, .22); }
::highlight(rc-4) { background-color: rgba(0, 128, 107, .22); }
::highlight(rc-5) { background-color: rgba(184, 50, 107, .22); }
::highlight(rc-6) { background-color: rgba(107, 107, 32, .22); }
/* 0.40.1: žinutės */
.chat-btn.on { background: rgba(255,255,255,.18); }
.mx { position: fixed; right: 16px; top: 64px; bottom: 16px; width: 760px; max-width: calc(100vw - 32px); display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,30,45,.22); overflow: hidden; z-index: 70; font-family: var(--sans); color: var(--ink); }
.mx.drop { outline: 3px dashed var(--primary); outline-offset: -6px; }
.mx-side { width: 260px; flex: none; border-right: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; min-height: 0; }
.mx-sh { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; font-size: 15px; }
.mx-sh b { display: flex; align-items: center; gap: 6px; }
.mx-sh .sp { flex: 1; }
.mx .mx-search { margin: 0 10px 6px; width: calc(100% - 20px); box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 13px; }
.mx-list { overflow: auto; flex: 1; padding-bottom: 8px; }
.mx-sec { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; font-weight: 600; }
.mx-c { display: flex; gap: 9px; align-items: center; padding: 7px 10px; margin: 1px 6px; border-radius: 9px; cursor: pointer; }
.mx-c:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.mx-c.on { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mx-c .t { flex: 1; min-width: 0; }
.mx-c .n { font-weight: 600; font-size: 13.5px; display: flex; gap: 6px; align-items: baseline; }
.mx-c .n .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-c .n small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 11px; white-space: nowrap; }
.mx-c .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-c .u, .mx-pop .u { background: var(--accent); color: #fff; border-radius: 9px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; }
.mx-none { color: var(--muted); font-size: 13px; padding: 14px; text-align: center; }
.mx-av-w { position: relative; flex: none; display: inline-flex; }
.mx .av.mx-av { width: 32px; height: 32px; font-size: 12px; }
.mx .av.mx-av.sm2 { width: 26px; height: 26px; font-size: 10px; }
.mx .av.mx-av.g { border-radius: 9px; background: var(--primary); color: var(--primary-ink); }
.mx-av-w .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2f9e5b; border: 2px solid var(--panel-2); }
.mx-main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.mx-empty { margin: auto; text-align: center; color: var(--muted); }
.mx-empty .ic { opacity: .5; }
.mx-empty .mx-x { position: absolute; top: 10px; right: 10px; }
.mx-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mx-head .t { flex: 1; min-width: 0; }
.mx-head b { font-size: 14.5px; }
.mx-head .s { font-size: 12px; color: var(--muted); }
.mx-ib { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 5px 6px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 18px; line-height: 1; }
.mx-ib:hover { background: var(--panel-2); color: var(--ink); }
.mx-ib .ic { width: 18px; height: 18px; }
.mx-only-m { display: none; }
.mx-log { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; background: var(--bg); }
.mx-more { align-self: center; margin-bottom: 6px; }
.mx-day { align-self: center; font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 10px; padding: 2px 10px; margin: 8px 0 4px; }
.mx-sys { align-self: center; font-size: 11.5px; color: var(--muted); font-style: italic; margin: 4px 0; text-align: center; }
.mx-who { font-size: 11.5px; font-weight: 600; margin: 6px 0 1px 34px; color: var(--c, var(--ink-2)); }
.mx-who.c1 { --c: #2a78d6; } .mx-who.c2 { --c: #b3591f; } .mx-who.c3 { --c: #4a3aa7; } .mx-who.c4 { --c: #00806b; } .mx-who.c5 { --c: #b8326b; } .mx-who.c6 { --c: #6b6b20; }
.mx-row { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; position: relative; }
.mx-row.me { align-self: flex-end; flex-direction: row-reverse; }
.mx-row.cont .mx-av-w { visibility: hidden; }
.mx-bw { min-width: 0; display: flex; flex-direction: column; }
.mx-row.me .mx-bw { align-items: flex-end; }
.mx-b { background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 7px 11px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.mx-row.cont .mx-b { border-top-left-radius: 6px; }
.mx-row.me .mx-b { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); border-radius: 16px 16px 4px 16px; }
.mx-row.me.cont .mx-b { border-top-right-radius: 6px; }
.mx-b.big { background: none !important; border: 0 !important; font-size: 30px; padding: 0 4px; line-height: 1.2; }
.mx-b.big .mx-t { font-size: 10px; color: var(--muted); }
.mx-row.me .mx-b a { color: inherit; }
.mx-at { font-weight: 700; }
.mx-row.me .mx-at { color: #f2d27a; }
.mx-t { font-size: 10.5px; opacity: .6; margin-left: 8px; white-space: nowrap; float: right; margin-top: 4px; }
.mx-t i { font-style: normal; }
.mx-link { display: block; margin-top: 5px; border-left: 3px solid var(--st-check); background: color-mix(in srgb, var(--st-check) 8%, var(--panel)); color: var(--ink) !important; border-radius: 6px; padding: 5px 8px; font-size: 12px; text-decoration: none; font-weight: 600; }
.mx-link span { display: block; font-weight: 400; font-family: var(--serif); color: var(--ink-2); margin-top: 2px; }
.mx-link.off { color: var(--muted) !important; font-weight: 400; }
.mx-row.me .mx-link { background: rgba(255,255,255,.12); color: var(--primary-ink) !important; border-left-color: #c9a24a; }
.mx-row.me .mx-link span { color: inherit; opacity: .85; }
.mx-file { display: flex; gap: 9px; align-items: center; background: var(--panel-2); border-radius: 9px; padding: 7px 10px; margin-top: 5px; color: var(--ink) !important; min-width: 200px; text-decoration: none; }
.mx-row.me .mx-file { background: rgba(255,255,255,.12); color: var(--primary-ink) !important; }
.mx-file .fi { width: 34px; height: 40px; border-radius: 5px; border: 1.5px solid currentColor; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; flex: none; opacity: .85; }
.mx-file .fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mx-file small { display: block; opacity: .65; font-size: 11px; }
.mx-img { display: block; margin-top: 5px; }
.mx-img img { display: block; max-width: 260px; max-height: 200px; border-radius: 9px; }
.mx-rs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.mx-r { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; font-size: 11.5px; padding: 0 6px; cursor: pointer; color: var(--ink); }
.mx-r.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--panel)); }
.mx-acts { display: none; position: absolute; top: -15px; flex-wrap: nowrap; white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1); padding: 1px 3px; z-index: 2; }
.mx-row:not(.me) .mx-acts { left: 40px; } .mx-row.me .mx-acts { right: 4px; }
@media (hover: hover) { .mx-row:hover .mx-acts { display: flex; } }
.mx-row.act-on .mx-acts, .mx-row.pop-on .mx-acts { display: flex; }
.mx-acts button { border: 0; background: none; cursor: pointer; font-size: 14px; padding: 3px 5px; border-radius: 6px; color: var(--ink-2); display: inline-flex; align-items: center; }
.mx-acts button:hover { background: var(--panel-2); }
.mx-acts .ic { width: 15px; height: 15px; }
.mx-seen { align-self: flex-end; font-size: 10.5px; color: var(--muted); margin: 2px 4px; }
.mx-typing { font-size: 12px; color: var(--muted); padding: 0 4px; font-style: italic; min-height: 16px; }
.mx-in { border-top: 1px solid var(--line); padding: 8px 10px; background: var(--panel); position: relative; }
.mx-att { display: flex; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 4px 2px 8px; font-size: 12px; }
.mx-chip.edit { border-color: var(--primary); }
.mx-chip small { color: var(--muted); }
.mx-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); display: inline-flex; padding: 2px; }
.mx-chip .ic { width: 13px; height: 13px; }
/* 0.62.16: paveikslėlio priedas rašymo lauke — su miniatiūra */
.mx-chip.img { padding: 3px 4px 3px 3px; gap: 8px; }
.mx-chip .th { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel); }
.mx-chip .cn { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; max-width: 230px; }
.mx-chip .cn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-box { display: flex; align-items: flex-end; gap: 2px; }
.mx-ta { flex: 1; min-width: 0; width: auto; height: 38px; min-height: 38px; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 14px; font: 13.5px/1.4 var(--sans); background: var(--panel); color: var(--ink); resize: none; max-height: 140px; margin: 0 4px; }
.mx-send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.mx-send .ic { width: 17px; height: 17px; }
.mx-send:disabled { opacity: .5; }
.mx-emo { position: absolute; width: 308px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; z-index: 5; }
.mx-emo .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.mx-emo .tabs button { border: 0; background: none; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.mx-emo .tabs button.on { background: var(--panel-2); color: var(--ink); font-weight: 600; }
.mx-emo .g { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 190px; overflow: auto; }
.mx-emo .g button { border: 0; background: none; font-size: 21px; padding: 3px; border-radius: 6px; cursor: pointer; }
.mx-emo .g button:hover { background: var(--panel-2); }
.mx-pop, .mx-mention { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 4px; z-index: 5; min-width: 230px; max-height: 360px; overflow: auto; }
.mx-mention { bottom: 100%; left: 50px; margin-bottom: 4px; }
.mx-pop button, .mx-mention button { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 13px; }
.mx-pop button:hover, .mx-mention button:hover, .mx-mention button.on { background: var(--panel-2); }
.mx-pop-h { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 2px; font-weight: 600; }
.gr-list { max-height: 300px; overflow: auto; display: grid; gap: 4px; }
.gr-list .check { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .mx { inset: 0; width: auto; max-width: none; border-radius: 0; top: 0; right: 0; bottom: 0; }
  .mx-side { width: 100%; border-right: 0; }
  .mx-main { display: none; }
  .mx.in-conv .mx-side { display: none; }
  .mx.in-conv .mx-main { display: flex; }
  .mx-only-m { display: inline-flex; }
}
/* 0.41.0: pradžios puslapio skirtukai */
.home-tabs { margin-top: 0; }
.home-tabs a { font-size: 15.5px; padding: 10px 18px; }
.ht-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; line-height: 19px; text-align: center; }
.ht-n.gray { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.ht-n.ment { background: #7c3aed; }
/* 0.41.0: žinučių būsenos */
.mx-tick { font-weight: 700; margin-left: 3px; letter-spacing: -2px; }
.mx-tick.st-sent, .mx-tick.st-delivered { opacity: .75; }
.mx-row.me .mx-tick.st-read, .mx-row.me .mx-tick.st-part { color: #7cc4ff; opacity: 1; }
.mx-seen.st-read { color: var(--primary); font-weight: 600; }
.us-snip { max-width: 360px; font-family: var(--serif); color: var(--ink-2); }
/* 0.42.0: PDF poros */
.al-t td { vertical-align: top; }
.al-t .al-en, .al-t .al-lt { font-family: var(--serif); font-size: 14px; line-height: 1.45; }
.al-t tr.al-doubt td { background: var(--yellow-bg); }
.al-t tr.al-skip td.al-en, .al-t tr.al-skip td.al-lt { opacity: .4; text-decoration: line-through; }
.al-t tr.al-lonely td { background: color-mix(in srgb, var(--red-bg) 60%, transparent); }
.al-t .btn.sm { padding: 2px 6px; }
.al-k { font-size: 10.5px; padding: 0 5px; }

/* 0.42.1: programos ženklai (⚠ ✉ ✝ ★ …) — vienspalviai, ne spalvotos emoji. Žinutėse ir komentaruose — kaip parašė žmogus. */
body { font-variant-emoji: text; }
.mx, .mx-emo, .cmt-body, .msg .mb { font-variant-emoji: normal; }
.dnd-tag .ic, .pomo-chip .ic, .jb-mini .ic { vertical-align: -0.15em; }
/* 0.42.1: ilgas failo pavadinimas neišeina už lauko ribų (nukerpamas). */
input[type="file"] { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.f input[type="file"] { width: 100%; }
.f { min-width: 0; }

/* 0.45.0: angliška sąsaja — CSS tekstai */
html[lang="en"] .g-role.mine h3::after { content: " — your role"; }

/* 0.50.0: liniuotė — pastraipų atitraukos (public/ed-ruler.js) */
.ruler-bar{position:sticky;top:0;z-index:6;height:62px;margin:0 0 8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.05)}
.ruler-bar .rl-col{position:absolute;top:4px}
.ruler-bar .rl-lbl{font:600 10px/1.2 var(--ui,system-ui);letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#8a8170);margin-bottom:3px;white-space:nowrap}
.ruler-bar .rl-lt .rl-lbl{color:#2a78d6}
.rl-track{position:relative;height:22px;background:color-mix(in srgb, var(--panel) 70%, #fff);border:1px solid var(--line-2);border-radius:3px;overflow:visible;touch-action:none}
.rl-track.ro{background:var(--panel-2)}
.rl-scale{position:absolute;inset:0;overflow:hidden}
.rl-tick{position:absolute;bottom:0;width:1px;height:4px;background:var(--muted)}
.rl-tick.big{height:7px}
.rl-n{position:absolute;top:1px;font:9px/1 var(--ui,system-ui);color:var(--muted);transform:translateX(-50%);pointer-events:none}
.rl-m{position:absolute;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;transform:translateX(-6px);cursor:ew-resize}
.rl-m.first{top:-7px;border-top:8px solid #2a78d6}
.rl-m.hang,.rl-m.right{bottom:-2px;border-bottom:8px solid #2a78d6}
.rl-m.box{bottom:-9px;width:10px;height:5px;border:none;background:#2a78d6;transform:translateX(-5px)}
.rl-track.ro .rl-m{cursor:default}
.rl-track.ro .rl-m.first{border-top-color:#9aa3ad}.rl-track.ro .rl-m.hang,.rl-track.ro .rl-m.right{border-bottom-color:#9aa3ad}.rl-track.ro .rl-m.box{background:#9aa3ad}
.ruler-bar .rl-open{position:absolute;right:6px;top:4px;padding:1px 6px}
.rl-panel .rl-x{position:absolute;right:6px;top:4px;border:none;background:none;font-size:16px;line-height:1;cursor:pointer;color:var(--muted,#8a8170)}
.ruler-bar .rl-panel{position:absolute;right:-300px;top:66px;width:290px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 10px;box-shadow:0 6px 18px rgba(0,0,0,.1);font-size:13px}
.rl-panel .rl-in{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:5px 0}
.rl-panel .rl-in input{width:48px;padding:2px 4px}
.rl-panel .rl-in label{display:inline-flex;gap:4px;align-items:center}
.ind-badge{margin-top:4px;font:600 9px/1.2 var(--ui,system-ui);color:#2a78d6;border:1px solid #9cc0ea;border-radius:4px;padding:1px 3px;white-space:nowrap;text-align:center}
@media (max-width: 1250px){.ruler-bar .rl-panel{right:0;top:66px}}
html.dark .rl-track{background:var(--panel-2)}html.dark .rl-track.ro{background:var(--bg)}
.ruler-bar.lines .rl-lt .rl-lbl{color:#c2410c}
.ind-sp{display:inline-block;height:1px;vertical-align:baseline;user-select:none;pointer-events:none}
/* 0.53.0: lygiuotės mygtukai */
.fmt-btns.al-btns { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }
.fmt-btns.al-btns button { display: inline-flex; align-items: center; justify-content: center; }
.fmt-btns.al-btns button.on { background: var(--primary, #26364a); color: #fff; }
/* 0.54.0: šoninėje skiltyje atsakymo laukas per visą plotį, mygtukai po juo */
.cmt-side-card .cmt-reply { flex-wrap: wrap; justify-content: flex-end; }
.cmt-side-card .cmt-reply .cmt-rich { flex-basis: 100%; }
/* 0.54.1: prilipusi liniuotė — tarpas virš jos uždengiamas fonu (tekstas nesimato tarp juostos ir liniuotės) */
.ruler-bar{box-shadow:0 -7px 0 var(--bg),0 2px 6px rgba(0,0,0,.05)}
/* 0.55.0: išskleisto komentaro antraštė — suskleisti */
.cmt.exp > .cmt-h-tg { cursor: pointer; border-radius: 6px; margin: -3px -5px 0; padding: 3px 5px; }
.cmt.exp > .cmt-h-tg:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
/* 0.55.0: komentaro perkėlimas ir tvarka */
.cmt-move-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 200; max-width: min(900px, calc(100vw - 24px)); background: var(--panel); color: var(--ink); border: 1px solid #2563eb; border-left: 4px solid #2563eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px 14px; font: 13.5px/1.4 var(--sans); display: flex; gap: 12px; align-items: center; }
.cmt.cmt-moving { outline: 2px dashed #2563eb; outline-offset: 2px; }
.cmt-fab.cmt-fab-move { background: #2563eb; color: #fff; border-color: #2563eb; }
.cmt-fab.cmt-fab-move:hover { background: #1d4ed8; }
.cmt-sort { display: flex; gap: 6px; align-items: center; margin: -2px 0 8px; }
.cmt-sort .seg-tabs button { padding: 3px 9px; font-size: 12px; }
.tc-pop { position: fixed; z-index: 170; max-width: 360px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 7px 10px; font: 13px/1.4 var(--sans); }
.tc-pop .tc-by { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.tc-pop .tc-d { color: var(--red, #b00); text-decoration: line-through; }
.tc-pop .tc-i { color: var(--edited); text-decoration: underline; }
.tc-pop .tc-btns { display: flex; gap: 6px; margin-top: 6px; }
@keyframes tcFlash { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus, #e8b931) 70%, transparent); } 100% { box-shadow: none; } }
.tc-b.tc-flash { animation: tcFlash 1.2s ease-out; }
/* 0.55.1: tamsiose temose sekami pakeitimai turi išlikti įskaitomi ir ten, kur kartu yra komentaras, sakinio paryškinimas
   ir pažymėtas pakeitimas: šiltų (oranžinių) fonų mažiau, sakinys — neutralus, įterpta / ištrinta — šviesesnė. */
html.dark ::highlight(sent-src), html.dark ::highlight(sent-tgt) { background-color: color-mix(in srgb, var(--ink) 9%, transparent); }
html.dark ::highlight(cmt) { background-color: rgba(255, 196, 0, .15); text-decoration: underline; text-decoration-color: #d9a90f; text-decoration-thickness: 2px; }
html.dark ::highlight(cmt-active) { background-color: rgba(255, 196, 0, .3); text-decoration: underline; text-decoration-color: #ffcf33; text-decoration-thickness: 2px; }
html.dark ::highlight(cmt-hover) { background-color: rgba(251, 146, 60, .24); text-decoration: underline; text-decoration-color: #fb923c; text-decoration-thickness: 3px; }
html.dark .tc-cur { background: transparent; outline-color: #ffcf33; }
html.dark .tc-hot { background: color-mix(in srgb, var(--ink) 14%, transparent); }
html.dark ins.tc-ins { color: #9fcbff; }
html.dark .tc-a1 { --tc: #9fcbff; } html.dark .tc-a2 { --tc: #8ee3a8; } html.dark .tc-a3 { --tc: #d3b4ff; } html.dark .tc-a4 { --tc: #86e6e4; } html.dark .tc-a5 { --tc: #ffc58a; } html.dark .tc-a6 { --tc: #ffa3cc; }
html.dark del.tc-del { color: #ff9e95 !important; }
/* 0.55.2: liniuotė antraštėje — viena juosta su ja, be atskiro rėmelio; tekstas slenka po ja */
.ed-top .ruler-bar { position: relative; top: auto !important; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--bg); }
.ed-top .ruler-bar .rl-panel { right: 16px; top: 66px; z-index: 2; }
/* 0.55.3: atitrauktos eilutės tęsinys — nuo atitraukos (plaukiojantis tarpas) */
.ind-sp.ind-fl { float: left; clear: left; display: block; }

/* 0.57: vartotojo meniu viršutinėje juostoje (vardas, Aa, pranešimai, slaptažodis, atsijungti — viename) */
.who .um-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px 2px 2px; }
.who .um-btn .av { margin: 0; width: 26px; height: 26px; font-size: 10.5px; }
.who .um .pop { color: var(--ink); white-space: normal; min-width: 290px; text-align: left; }
.who .um .pop button { border: 0; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.who .um .pop button small { flex-basis: 100%; padding-left: 26px; }
.who .um .pop button .ic { width: 18px; color: var(--ink-2); }
.um-h { padding: 8px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.um-h small { color: var(--muted); font-size: 12px; }
.um-aa { font-weight: 700; width: 18px; display: inline-block; font-size: 13px; color: var(--ink-2); }
.who .um .pop .um-out { border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 4px; padding-top: 10px; }
@media (max-width: 760px) {
  .who .um-btn .av { display: inline-grid !important; place-items: center; }
  .who .um .pop span { display: inline-block !important; }
  .who .um-btn .um-n { display: none !important; }
}
.um-m { display: none; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.um-m a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.um-m a:hover { background: var(--panel-2); }
.m-tools { display: none; }
/* 0.57: telefone — tekstas pirmame ekrane: viršuje tik „Gyvai“, pokalbiai ir vartotojo meniu; įrankiai po „▾ Rodinys ir įrankiai“ */
@media (max-width: 760px) {
  .who .ver, .who .help-btn, .who #fb-btn, .who #ask-btn { display: none !important; }
  .um-m { display: block; }
  .m-tools { display: inline-flex; }
  .ed-top:not(.m-open) .ed-row2 { display: none !important; }
  .ed-top .seg-filter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .ed-top .seg-filter button { white-space: nowrap; flex: none; }
  .ed-top .due-line { font-size: 12px; }
}
/* 0.57: Komanda — projektai ir funkcijos ženkliukais, eilutės nelūžta */
.bk { display: inline-flex; align-items: baseline; max-width: 190px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 2px 3px 2px 0; background: var(--panel); color: var(--ink); text-decoration: none; }
.bk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bk i { font-style: normal; font-weight: 700; color: var(--ink-2); margin-left: 4px; flex: none; }
.bk:hover { border-color: var(--line-2); background: var(--panel-2); }
.ft { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 12px; margin: 2px 3px 2px 0; color: var(--ink-2); cursor: pointer; white-space: nowrap; position: relative; }
.ft input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ft:has(input:checked) { background: color-mix(in srgb, var(--ok, #1f7a3d) 14%, var(--panel)); border-color: color-mix(in srgb, var(--ok, #1f7a3d) 45%, var(--line)); color: var(--ink); }
.ft:has(input:checked)::before { content: "✓"; margin-right: 4px; font-weight: 700; }
.ft:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 1px; }
.u-more .pop { min-width: 200px; }
/* 0.57: glosarijus — LT terminas ryškiausias, „Nevartoti“ raudonai, ✕ tik užvedus pelę */
.gl-t td.gl-lt { font-weight: 600; color: var(--ink); }
.gl-t td.gl-av { color: var(--danger, #b42318); text-decoration: line-through; text-decoration-thickness: 1px; }
.gl-t td.gl-av:focus { text-decoration: none; }
.gl-t tbody tr .del { opacity: 0; transition: opacity .15s; }
.gl-t tbody tr:hover .del, .gl-t tbody tr .del:focus-visible { opacity: 1; }
@media (hover: none) { .gl-t tbody tr .del { opacity: 1; } }
.flag.avoid { border-color: color-mix(in srgb, var(--danger, #b42318) 45%, var(--line)); background: color-mix(in srgb, var(--danger, #b42318) 7%, var(--panel)); }
.flag.avoid .fl-h { color: var(--danger, #b42318); }
/* 0.57: prisijungimo langas — kairėje tamsi juosta kaip pristatyme */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-wrap .auth { min-height: 100vh; }
.auth-hero { background: #0c1a2c; color: #e9eef5; display: flex; flex-direction: column; justify-content: space-between; padding: 0 7vw; }
.auth-hero .ah-in { margin: auto 0; }
.ah-en { font: italic 400 clamp(24px, 2.4vw, 34px)/1.25 'Newsreader', Georgia, serif; color: #c9d3df; margin: 0; }
.ah-lt { font: 800 clamp(34px, 3.4vw, 48px)/1.08 'Bricolage Grotesque', var(--sans); letter-spacing: -.01em; margin: 16px 0 0; }
.ah-bar { display: flex; gap: 6px; margin-top: 34px; max-width: 520px; }
.ah-bar i { height: 5px; flex: 1; border-radius: 3px; background: #f0a93b; }
.ah-bar i:nth-child(2) { background: #a88ff2; } .ah-bar i:nth-child(3) { background: #5ea0f2; } .ah-bar i:nth-child(4) { background: #f28cb6; } .ah-bar i:nth-child(5) { background: #4fcb7c; }
.ah-st { font: 13px var(--sans); color: #9fb0c3; margin: 10px 0 0; }
.ah-ft { font: 13px var(--sans); color: #8ea0b5; margin: 0 0 28px; }
@media (prefers-reduced-motion: no-preference) { .ah-bar i { transform-origin: left; animation: ahBar .7s cubic-bezier(.2,.7,.2,1) both; } .ah-bar i:nth-child(2) { animation-delay: .08s } .ah-bar i:nth-child(3) { animation-delay: .16s } .ah-bar i:nth-child(4) { animation-delay: .24s } .ah-bar i:nth-child(5) { animation-delay: .32s } }
@keyframes ahBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-hero { padding: 28px 20px 22px; }
  .auth-hero .ah-in { margin: 0; }
  .ah-lt { font-size: 30px; margin-top: 8px; } .ah-en { font-size: 20px; } .ah-bar { margin-top: 18px; } .ah-ft { display: none; }
  .auth-wrap .auth { min-height: 0; padding-top: 24px; }
}
/* 0.57: bendra paieška (Ctrl+K) */
.gs-modal .modal { max-width: 720px; width: min(720px, 100%); align-self: flex-start; margin-top: 9vh; }
.gs-in { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gs-in input { flex: 1; border: 0; background: transparent; font-size: 18px; padding: 6px 2px; outline: none; box-shadow: none; }
.gs-ic { font-size: 22px; color: var(--ink-2); }
.gs-in kbd { font-size: 11px; color: var(--muted); }
.gs-r { max-height: min(60vh, 520px); overflow: auto; margin-top: 8px; }
.gs-g { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 4px; }
.gs-it { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.gs-it .gs-t { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gs-it .gs-s { grid-column: 2; font-size: 12px; color: var(--muted); }
.gs-it .gs-side { grid-row: span 2; font: 600 10px/18px var(--sans); color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; height: 18px; margin-top: 2px; }
.gs-it.on { background: var(--panel-2); outline: 1px solid var(--line-2); }
.gs-empty { color: var(--muted); padding: 14px 8px; font-size: 14px; }
/* 0.57: „Sekti“ kolegą */
.online button.av { border: 0; padding: 0; cursor: pointer; font: inherit; }
.online .av.fol { outline: 2px solid #fff; outline-offset: 1px; }
.follow-bar { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 10px; background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 6px 8px 6px 8px; box-shadow: 0 8px 26px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 32px); }
.follow-bar > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.follow-bar .btn { background: rgba(255,255,255,.14); color: inherit; border-color: rgba(255,255,255,.35); border-radius: 999px; }
.follow-bar kbd { font-size: 10px; opacity: .8; margin-left: 4px; background: none; border: 0; color: inherit; }
.person-pop { position: fixed; z-index: 90; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; width: 290px; display: grid; gap: 8px; }
.person-pop .pp-h { display: flex; gap: 10px; align-items: center; }
.fol-tg { margin-left: 6px; font: 600 11.5px var(--sans); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 1px 9px; cursor: pointer; }
.fol-tg.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.seg.fol-flash { animation: folFlash 1.2s ease; }
@keyframes folFlash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .seg.fol-flash { animation: none; outline: 2px solid var(--primary); } }
/* 0.57: grįžus po pertraukos — „Skaičiau tekstą“ */
.idle-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(70px, calc(env(safe-area-inset-bottom, 0px) + 70px)); z-index: 85; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100vw - 32px); }
/* 0.57: vertimo patikra pagal žemėlapio laukus */
.map-in.v2 .mr b .mchk { float: right; text-transform: none; letter-spacing: 0; font-weight: 700; }
.mchk.ok { color: var(--mp-terminai); } .mchk.warn { color: var(--mp-dviprasmybes); cursor: help; }
.map-in.v2 .mr.has-warn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mp-dviprasmybes) 45%, transparent); }
.map-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin-top: 8px; font-size: 12.5px; }
.map-strip .ms-l { color: var(--ink-2); font-weight: 600; margin-right: 2px; }
.map-strip .ms { --c: var(--mp-citatos); border-radius: 999px; padding: 1px 9px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); cursor: default; }
.map-strip .ms.ok { color: var(--ink-2); }
.map-strip .ms.warn { background: color-mix(in srgb, var(--mp-dviprasmybes) 12%, var(--panel)); border-color: color-mix(in srgb, var(--mp-dviprasmybes) 50%, var(--line)); color: var(--ink); font-weight: 600; }
.map-strip .ms.mk-teiginys { --c: var(--mp-teiginys); }
.map-strip .ms.mk-logika { --c: var(--mp-logika); }
.map-strip .ms.mk-modalumas { --c: var(--mp-modalumas); }
.map-strip .ms.mk-terminai { --c: var(--mp-terminai); }
.map-strip .ms.mk-retorika { --c: var(--mp-retorika); }
.map-strip .ms.mk-idiomos { --c: var(--mp-idiomos); }
.map-strip .ms.mk-dviprasmybes { --c: var(--mp-dviprasmybes); }
.map-strip .ms.mk-citatos { --c: var(--mp-citatos); }
/* 0.57: aklas skaitymas planšetėje ir telefone — vientisas lapas be rėmų, didesnis šriftas, pastaba — pirštu pažymėjus žodį („Komentuoti“ juostoje) */
@media (pointer: coarse), (max-width: 900px) {
  .segs.blind { padding: 18px 16px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .segs.blind .tgt-text { font-size: 1.14em; line-height: 1.78; }
  .segs.blind .seg { grid-template-columns: 30px minmax(0, 1fr); }
  .segs.blind .seg .num { font-size: 12px; }
}
@media (max-width: 760px) { .segs.blind { margin: 0 -12px; width: auto; } }

/* 0.57.1: telefone vardo meniu neišlenda už ekrano krašto */
@media (max-width: 700px) {
  .menu .pop { position: fixed; left: 8px; right: 8px; min-width: 0; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; }
  .who .um .pop { min-width: 0; }
}

/* prototipas: skyriaus žemėlapio aprašo slėpimas */
.map-card.folded > p.small, .map-card.folded > .map-sum, .map-card.folded > #map-sum-view, .map-card.folded > #map-sum-ed { display: none; }
.map-card.folded { padding-block: 10px; }

/* 0.57.4: Įkelti šaltiniai */
.src-t td.num, .src-t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.src-t td.act { width: 48px; text-align: right; overflow: visible; }
.src-t .menu .pop { min-width: 230px; }
.src-t .pop button.danger { color: var(--red, #b3261e); }
.src-t tbody tr:hover { background: var(--panel-2); }

.src-t { width: 100%; border-collapse: collapse; table-layout: auto; }
.src-t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 10px; }
.src-t th.num { text-align: right; }
.src-t td { padding: 9px 10px; border-top: 1px solid var(--line); }
.src-t td:first-child { width: 36%; }

/* 0.57.5: Komandos lentelė neišeina iš kortelės rėmų */
.team-card { overflow-x: auto; }
.team-card > table.t { width: 100%; }
.team-card > table.t th, .team-card > table.t td { padding-left: 10px; padding-right: 10px; }
.team-card > table.t td:last-child { padding-right: 14px; }
/* 0.62.12: komandos puslapis platesnis; išjungtų žmonių eilutės blukinamos langeliais (ne visa eilute — kitaip „⋯“ meniu paslėptų kita eilutė);
   el. paštas sutrumpinamas; paskutinis stulpelis (✉ ⋯) lieka dešinėje, kad nereikėtų slinkti į šoną. */
main.page.team-page { max-width: 1400px; }
.team-card tr.u-off > td:not(:last-child) { opacity: .5; }
.team-card tr.u-off .u-more > button { opacity: .6; }
.team-card td.u-mail { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card > table.t th:last-child, .team-card > table.t td:last-child { position: sticky; right: 0; background: var(--panel); }
.team-card > table.t tr:hover td:last-child { background: color-mix(in srgb, var(--panel-2) 50%, var(--panel)); }
.team-card > table.t td:has(.u-more.open) { z-index: 6; }
.team-card > table.t tr.u-off:hover td:last-child { background: color-mix(in srgb, var(--panel-2) 25%, var(--panel)); }
.chk-pill { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
.chk-pill.ok { border-color: #8fc9a3; background: #eaf6ee; color: #1d6a3a; } .chk-pill.mid { border-color: #e2c27a; background: #fbf3dc; color: #7a5a06; } .chk-pill.bad { border-color: #e1a4a0; background: #fbeceb; color: #8d2a24; }
.chk-row > td { padding: 0 !important; background: var(--panel-2); }
.chk-box { padding: 14px 16px 16px; display: grid; gap: 8px; }
.chk-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.chk-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); }
.chk-bar .g { background: #3a9d5d; } .chk-bar .m { background: #e0a82e; } .chk-bar .b { background: #d2504a; }
.chk-leg { display: flex; gap: 16px; } .chk-leg .g { color: #2a7d48; } .chk-leg .m { color: #9a7410; } .chk-leg .b { color: #b3362f; }
.chk-item { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 4px 14px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.chk-item .chk-note { grid-column: 2 / 4; }
.chk-tag { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; height: fit-content; text-align: center; }
.chk-tag.g { background: #eaf6ee; color: #1d6a3a; } .chk-tag.m { background: #fbf3dc; color: #7a5a06; } .chk-tag.b { background: #fbeceb; color: #8d2a24; }
.chk-item .en { color: var(--ink-2); } .btn.danger-o { color: #b3362f; border-color: #e1a4a0; }
.chk-tag.n { background: #fbeceb; color: #8d2a24; } .chk-tag.a { background: #fbf3dc; color: #7a5a06; }
.chk-pill:disabled { opacity: .6; }

/* Žinyno pradžia (0.59.0) */
.gh-hero { text-align: center; padding: 18px 0 8px; }
.gh-hero h1 { margin: 0 0 4px; font-size: 30px; }
.gh-search { display: flex; gap: 8px; max-width: 620px; margin: 14px auto 12px; }
.gh-search input { flex: 1; padding: 11px 14px; font-size: 16px; border-radius: 12px; }
.gh-who { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.gh-chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 5px 14px; font-size: 14px; cursor: pointer; color: inherit; }
.gh-chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.gh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.gh-card { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; color: inherit; position: relative; font: inherit; }
.gh-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.gh-card.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.gh-ic { font-size: 26px; line-height: 1; } .gh-card b { font-size: 16px; }
.gh-min { position: absolute; top: 12px; right: 14px; font-size: 12px; color: var(--muted, #777); }
.gh-none { grid-column: 1 / -1; text-align: center; display: grid; gap: 8px; justify-items: center; padding: 24px; }
.gh-det { padding: 20px 22px; }

/* 0.60.0: paveikslėlis po žingsnio tekstu */
.gh-steps li { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.gh-st { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.gh-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.gh-img { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.gh-img { justify-self: start; max-width: 100%; } .gh-img img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; }
.gh-foot { margin-top: 14px; }
.gh-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide .g-nav a.g-home { color: var(--ink-2, #555); font-size: 14px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }

/* 0.60.0: DI pokalbio asistento pasiūlymai */
.cmt-ai { background: color-mix(in srgb, var(--primary, #1f3a5f) 14%, transparent); color: var(--ink-2); }

/* 0.60.1: žinyno skyrių meniu — kompiuteryje kaip anksčiau (stulpelis), telefone suskleidžiamas ir neprilipęs */
.guide .g-navl { display: flex; flex-direction: column; }
.guide .g-navd > summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 8px; }
.guide .g-navd > summary::-webkit-details-marker { display: none; }
@media (min-width: 801px) { .guide .g-navd > summary { display: none; } }
@media (max-width: 800px) {
  .guide .g-nav { position: static; padding: 4px; }
  .guide .g-navd[open] > summary { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
  .guide .g-navd[open] .g-navl { max-height: 70vh; overflow-y: auto; }
}

/* 0.61.0: žinyno „Pabandykite patys“ — gyvos demonstracijos */
.gh-steps { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 8px; }
.gh-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; border: 0; padding: 0; }
.gh-steps li.done { color: var(--muted, #777); }
.gh-steps li.done .gh-n { background: var(--green, #2e7d4f); }
.gd-demo { border: 1.5px dashed var(--line-2, #cfc7b8); border-radius: 14px; padding: 12px; background: var(--panel-2, rgba(0,0,0,.03)); }
.gd-label { font-size: 12.5px; color: var(--muted, #777); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.gd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
@media (max-width: 900px) { .gd-cols { grid-template-columns: 1fr; } }
.gd-host .seg { margin: 0; }
@media (max-width: 700px) { .gd-host .seg { grid-template-columns: 1fr; } .gd-host .seg .num { flex-direction: row; } }
.gd-ok { color: var(--green, #2e7d4f); font-weight: 600; margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gd-hint { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fbf3dc; color: #6b4e00; font-size: 14px; }
.gd-cbox { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; gap: 6px; }
.gd-cbox textarea, .gd-inp { width: 100%; box-sizing: border-box; }
.gd-cmt { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--primary); background: var(--panel); border-radius: 6px; }
.gd-typo { text-decoration: underline wavy #c0392b; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.gd-pop { display: inline-block; margin-left: 4px; }
.gd-pop { margin-left: 4px; }
.gd-tm { margin: 6px 0; font-family: Georgia, serif; }
.gd-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gd-tab { border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px 8px 0 0; padding: 7px 14px; cursor: pointer; color: inherit; font: inherit; }
.gd-tab.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.gd-tbl th, .gd-tbl td { text-align: center; padding: 8px 10px; } .gd-tbl th:first-child, .gd-tbl td:first-child { text-align: left; }
.gd-ref { text-decoration: underline dotted; }

/* 0.61.1 glosarijaus rikiavimas */
.gl-t th.sortable{cursor:pointer;user-select:none}
.gl-t th.sortable:hover{color:var(--accent,#243b53)}
.gl-t th[data-dir]:not([data-dir=''])::after{content:' ' attr(data-dir);font-size:.8em}

/* 0.61.4: vieno žmogaus spalva visur — sekimo pakeitimai naudoja tą pačią paletę kaip inicialų apskritimai (.av.c1–c6) */
.tc-a1 { --tc: #2a78d6; } .tc-a2 { --tc: #b3591f; } .tc-a3 { --tc: #4a3aa7; } .tc-a4 { --tc: #00806b; } .tc-a5 { --tc: #b8326b; } .tc-a6 { --tc: #6b6b20; }
html.dark .tc-a1 { --tc: #8ec1ff; } html.dark .tc-a2 { --tc: #f0b27a; } html.dark .tc-a3 { --tc: #b8aef0; } html.dark .tc-a4 { --tc: #6fd8c4; } html.dark .tc-a5 { --tc: #f59cc2; } html.dark .tc-a6 { --tc: #d4d47a; }

/* 0.62.2: redagavimo atstumas */
.ed-t{width:100%;border-collapse:collapse}.ed-t th{text-align:left;font-size:.8em;color:var(--muted)}.ed-t td,.ed-t th{padding:6px 8px;border-bottom:1px solid var(--line,#e4ddd0)}
.ed-p td{font-size:.9em;color:var(--muted)}.ed-p td:first-child{padding-left:22px}.ed-bar{display:block;height:8px;border-radius:4px;background:var(--line,#e4ddd0);min-width:80px}.ed-bar i{display:block;height:100%;border-radius:4px;background:var(--accent,#243b53)}

/* 0.62.3 */
.low-thr{margin-left:4px;font-size:.85em;padding:2px 4px;border-radius:6px}

/* 0.62.5: atšaukti / grąžinti */
.ed-undo{display:inline-flex;gap:4px;margin-right:6px}
.ed-undo .btn{padding:5px 8px;display:inline-flex;align-items:center}

/* 0.62.7: darbo požymiai */
.sg-card{margin-bottom:16px}.sg-wrap{overflow-x:auto}.sg-t{width:100%;border-collapse:collapse;font-size:.95em}
.sg-t th{text-align:left;font-size:.78em;text-transform:uppercase;color:var(--muted);padding:6px 8px;white-space:nowrap}.sg-t td{padding:10px 8px;border-top:1px solid var(--line,#e4ddd0)}
.sg-t .chip{font-weight:600;white-space:normal}.sg-ok{background:#e3f1e6;color:#25663a}.sg-warn{background:#fdf0d3;color:#8a5a00}.sg-alert{background:#fbe3df;color:#8f2b20}.sg-none{background:#eee9df;color:#6b6558}
html.dark .sg-ok{background:#1f3a29;color:#8fd3a3}html.dark .sg-warn{background:#47381a;color:#f0c674}html.dark .sg-alert{background:#4a2420;color:#f0a79e}html.dark .sg-none{background:#2c2c28;color:#b5b0a3}

/* 0.62.8: iššokantys žinučių pranešimai */
.mx-notes { position: fixed; right: 16px; top: 64px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: calc(100vw - 32px); }
.mx-note { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 10px 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,30,45,.25); cursor: pointer; font: inherit; animation: mxnote .25s ease-out; }
.mx-note .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-note .t b { font-size: 13px; }
.mx-note .t span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-note .x { color: var(--muted); padding: 2px 6px; }
.mx-note:hover { background: var(--panel-2); }
@keyframes mxnote { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 0.62.8: vadovo parenkama burbulo spalva */
.u-col { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 999px; }
.u-col:hover { outline: 2px solid var(--line); outline-offset: 2px; }
.col-pop { position: absolute; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 8px; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,30,45,.25); }
.col-pop .av { border: 0; cursor: pointer; }
.col-pop .av.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 0.62.14: PDF originalas atskirame naršyklės lange (pdfwin.html) */
body.pdfp-body { margin: 0; height: 100vh; overflow: hidden; }
.pdfp { display: flex; flex-direction: column; height: 100vh; background: var(--bg); color: var(--ink); }
.pdfp .pdfw-h { cursor: default; }
.pdfp .pdfw-b { flex: 1; min-height: 0; }
.pdfp-empty { margin: 40px auto; max-width: 360px; text-align: center; color: var(--muted); font: 14px/1.5 var(--sans); }
.pdfp.marking .pdfw-page { cursor: crosshair; }
.pdfp.marking .pdfw-hl { opacity: .35; }
.pdfp .pdfw-h [data-a="mark"].on { background: var(--accent); color: #fff; }
.pdfp-msg { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 90vw; background: var(--ink); color: var(--panel); padding: 7px 14px; border-radius: 8px; font: 13px/1.4 var(--sans); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); z-index: 5; }
.pdfp-msg.err { background: var(--danger, #b42318); color: #fff; }

/* ===== 0.63.0: žinutės — mažas langas, sumažinimo juosta, atsakymas, persiuntimas ===== */
/* langų mygtukai (sumažinti / didelis–mažas / uždaryti) */
.mx-win { display: inline-flex; align-items: center; gap: 0; flex: none; }
.mx-win .mx-ib { padding: 5px 6px; }
.mx-win-l { display: none; }
.mx-empty .mx-x { position: absolute; top: 10px; right: 10px; }
.mx-empty .mx-x .mx-win { gap: 0; }
/* mažas langas — apačioje dešinėje, vertimo langas lieka matomas ir naudojamas */
.mx.compact { top: auto; width: 372px; height: min(590px, calc(100vh - 96px)); box-shadow: 0 14px 40px rgba(20,30,45,.30); }
.mx.compact .mx-side { width: 100%; border-right: 0; }
.mx.compact .mx-main { display: none; }
.mx.compact.in-conv .mx-side { display: none; }
.mx.compact.in-conv .mx-main { display: flex; }
.mx.compact .mx-only-m { display: inline-flex; }
.mx.compact .mx-win-l { display: inline-flex; }
.mx.compact .mx-row { max-width: 94%; }
.mx.compact .mx-img img { max-width: 230px; }
.mx.compact .mx-sh { padding: 10px 8px 8px 12px; }
.mx.compact .mx-head { padding: 8px 6px 8px 8px; gap: 8px; }
/* sumažinta juosta */
.mx-bar { display: none; }
.mx.min { top: auto; width: auto; height: auto; border-radius: 24px; box-shadow: 0 8px 24px rgba(20,30,45,.28); cursor: pointer; }
.mx.min .mx-side, .mx.min .mx-main { display: none !important; }
.mx.min .mx-bar { display: flex; align-items: center; }
.mx-bar .bo { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink); font: 600 13.5px var(--sans); cursor: pointer; padding: 10px 6px 10px 16px; max-width: 240px; }
.mx-bar .bo .bt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-bar .bo .u { background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.mx-bar .bx { margin-right: 8px; color: var(--muted); }
.mx.min.has-new { border-color: var(--accent); }
.mx.min:hover { background: var(--panel-2); }
/* atsakymas: citata žinutėje */
.mx-q { display: block; margin: 0 0 5px; padding: 3px 8px; border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--panel)); border-radius: 4px 8px 8px 4px; color: var(--ink) !important; text-decoration: none; cursor: pointer; font-size: 12.5px; line-height: 1.35; }
.mx-q b { display: block; font-size: 11.5px; color: var(--primary); }
.mx-q span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.mx-row.me .mx-q { background: rgba(255,255,255,.14); border-left-color: #f2d27a; color: var(--primary-ink) !important; }
.mx-row.me .mx-q b { color: #f2d27a; }
.mx-row.me .mx-q span { color: inherit; opacity: .88; }
.mx-q:hover { filter: brightness(.97); }
.mx-row.flash .mx-b { animation: mxflash 1.8s ease-out 1; }
@keyframes mxflash { 0%, 35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* persiuntimo žyma */
.mx-fw { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-style: italic; opacity: .78; margin-bottom: 3px; }
.mx-fw .ic { width: 12px; height: 12px; }
/* veiksmų juosta virš žinutės (atsakyti, persiųsti) */
/* rašymo lauko atsakymo juosta */
.mx-rq { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; border-radius: 8px; background: var(--panel-2); padding: 4px 4px 4px 8px; min-width: 0; }
.mx-rq .rb { align-self: stretch; width: 3px; border-radius: 2px; background: var(--primary); flex: none; }
.mx-rq .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mx-rq .rt b { font-size: 11.5px; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.mx-rq .rt b .ic { width: 12px; height: 12px; }
.mx-rq .rt span { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* persiuntimo langas */
.fw-prev { border-left: 3px solid var(--primary); background: var(--panel-2); border-radius: 4px 8px 8px 4px; padding: 6px 10px; margin: 6px 0 10px; display: flex; flex-direction: column; font-size: 13px; }
.fw-prev b { font-size: 12px; color: var(--primary); }
.fw-prev span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.modal input.fw-q { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.fw-list { max-height: 300px; overflow: auto; display: grid; gap: 2px; }
.fw-r { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; cursor: pointer; }
.fw-r:hover { background: var(--panel-2); }
.fw-r input { flex: none; }
.fw-r .mx-av-w { width: 34px; justify-content: center; }
.fw-r .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fw-r .t small { color: var(--muted); font-size: 11.5px; }
.fw-r[hidden] { display: none; }
@media (max-width: 760px) {
  .mx.compact { top: 0; height: auto; width: auto; }
  .mx-win [data-w="min"], .mx-win [data-w="size"] { display: none; }
  .mx-win-l { display: inline-flex; }
}

/* 0.63.3: DI klaidų žurnalas (Nustatymai → Išlaidos) */
.ail-bad td { vertical-align: top; }
.ail-reply { white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; background: var(--panel-2); padding: 6px 8px; border-radius: 6px; font: 12px/1.4 ui-monospace, monospace; margin: 4px 0 0; }
.ail-res.tuscias, .ail-res.blogas_formatas, .ail-res.nutruko, .ail-res.tiekejo_klaida, .ail-res.laikas { color: var(--red, #b42318); }
.ail-res.ok { color: var(--approved, #1a7f37); }

/* 0.63.3: žinučių veiksmai (B variantas): reakcijų langelis ir ⋮ meniu */
.mx-rp { position: absolute; top: -52px; z-index: 3; display: flex; flex-wrap: nowrap; gap: 1px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.mx-row:not(.me) .mx-rp { left: 40px; } .mx-row.me .mx-rp { right: 4px; }
.mx-rp.dn { top: calc(100% + 4px); }
.mx-rp button { width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: inline-grid; place-items: center; padding: 0; color: var(--ink-2); }
.mx-rp button:hover { background: var(--panel-2); transform: scale(1.12); }
.mx-rp .ic { width: 17px; height: 17px; }
.mx-menu { position: absolute; top: 14px; z-index: 3; min-width: 160px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 4px; }
.mx-row:not(.me) .mx-menu { left: 40px; } .mx-row.me .mx-menu { right: 4px; }
.mx-menu button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--ink); }
.mx-menu button:hover { background: var(--panel-2); }
.mx-menu .ic { width: 15px; height: 15px; color: var(--ink-2); }
.mx-acts button, .mx-rp button, .mx-menu button { -webkit-tap-highlight-color: transparent; }
/* liečiami ekranai: didesni mygtukai; juosta virš burbulo (neuždengia teksto); atidarius langelį juosta slepiama, langelis užima jos vietą */
@media (hover: none) {
  .mx-b { cursor: pointer; }
  .mx-acts { top: -38px; }
  .mx-acts button { padding: 6px 8px; }
  .mx-acts .ic { width: 18px; height: 18px; }
  .mx-rp { top: -48px; }
  .mx-rp.dn { top: calc(100% + 4px); }
  .mx-rp button { width: 36px; height: 36px; }
  .mx-menu { top: 2px; }
  .mx-menu button { padding: 10px 12px; font-size: 14px; }
  .mx-row.pop-on .mx-acts { display: none; }
}
