/* Lolex UI — design system "ink on paper" (light). Tokens → base → components → page layouts → responsive.
   No build step: plain CSS, served as is. Classes are the API used by the templates and the JS renderers. */

@import url("fonts.css");

/* ------------------------------------------------------------------------------------------ tokens */
:root {
  --paper: #F5F5F3; --surface: #FFFFFF; --surface-2: #FAFAF8;
  --line: #E4E4E0; --line-strong: #D6D6D0;
  --ink: #15181F; --text-2: #3F4454; --muted: #6F7484; --faint: #8A8F9C;
  --primary: #1B2A4A; --primary-hover: #13203B;
  --link: #2B55C4; --link-hover: #1E3F99; --focus: rgba(43, 85, 196, .22);
  --ok: #1A7F4B; --ok-bg: #E3F3EA; --ok-text: #146A3E;
  --run: #2B55C4; --run-bg: #E6ECFA; --run-text: #2347A8;
  --warn: #D08A1D; --warn-bg: #FBEFD9; --warn-text: #8A5306;
  --bad: #B3261E; --bad-bg: #FBE5E3; --bad-text: #9A2119;
  --neutral-bg: #ECECE8; --neutral-text: #4B5060;
  --user-msg: #E8ECF5; --highlight: #FFF1B8;
  --radius: 8px; --radius-lg: 12px;
  --shadow-pop: 0 12px 32px rgba(21, 24, 31, .12);
  --shadow-panel: -16px 0 40px rgba(21, 24, 31, .08);
  --topbar-h: 56px;
  --imp-h: 0px;                      /* the viewing-as banner's height while it shows (common.js: pageTop) */
  --dur: .22s; --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0s; } * { animation-duration: 0s !important; } }

/* ------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* A touch is answered by the thing touched, in its own shape and colours (its ground under a pointer or a finger),
   not by the browser's own light-blue box laid over it for a moment (the owner, 2026-11-23, of the menu button on a
   phone: Chrome on Android draws one over whatever is tapped). */
html { height: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100%; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
       font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; }
a { color: var(--link); text-decoration: none; } a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
h1 { font-size: 30px; font-family: var(--serif); letter-spacing: -.01em; }
h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
code { font-family: var(--mono); font-size: .92em; background: rgba(21, 24, 31, .06); padding: 0 4px; border-radius: 4px; }
mark { background: var(--highlight); color: inherit; border-radius: 2px; padding: 0 1px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif { font-family: var(--serif); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .error { color: var(--bad); } .warn-text { color: var(--warn-text); } .ok-text { color: var(--ok-text); }
.small, .small-text { font-size: 12.5px; } .xs { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ico.lg { width: 20px; height: 20px; } .ico.xl { width: 22px; height: 22px; } .ico.sm { width: 13px; height: 13px; }
.ico.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; font-family: var(--serif); font-weight: 600;
        font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #E2E6F0; color: var(--primary); font-weight: 700; font-size: 12px;
          display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9D3EE; border-top-color: var(--link); flex: none; animation: spin .9s linear infinite; }

/* ------------------------------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius);
       border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
       text-decoration: none; color: var(--ink); transition: background var(--dur), border-color var(--dur), color var(--dur); }
.btn.primary { background: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-hover); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); } .btn.secondary:hover { background: #F0F0ED; color: var(--ink); }
.btn.ghost { color: var(--text-2); } .btn.ghost:hover { background: var(--neutral-bg); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #EFC7C3; } .btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.danger-solid { background: var(--bad); color: #fff; } .btn.danger-solid:hover { background: #9A2119; color: #fff; }
.btn.link { color: var(--link); padding: 0; height: auto; font-weight: 500; } .btn.link:hover { color: var(--link-hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: 6px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 26px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.btn .ico { width: 16px; height: 16px; }
/* legacy class names still used by a few renderers */
button.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
button.secondary:not(.btn), button.small:not(.btn) { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 7px; font-weight: 600; }
button.danger:not(.btn) { border-color: #EFC7C3; color: var(--bad); }
button:not(.btn):not(.small):not(.secondary):not(.danger):not(.chip):not(.tab):not(.menu-item):not(.seg-item):not(.link):not(.pill):not(.caret):not(.pw-eye):not(.send-btn):not(.dp-btn):not(.pkg) {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font-weight: 600; }
button.link { background: none; border: 0; color: var(--link); padding: 0; height: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.icons { flex-wrap: nowrap; gap: 6px; }

/* ------------------------------------------------------------------------------------------ chips, pills, bars */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong);
        background: var(--surface); font-size: 13px; font-weight: 500; color: #2F3442; white-space: nowrap; text-decoration: none; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip b { font-weight: 600; }
select.chip { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F3442' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 9px center / 14px 14px; }
.pill, .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
                line-height: 1; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral-text); }
.pill .ico, .badge .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.pill.ok, .badge.ok, .badge.completed { background: var(--ok-bg); color: var(--ok-text); }
.pill.run, .badge.running { background: var(--run-bg); color: var(--run-text); }
.pill.warn, .badge.warn, .badge.paused, .badge.queued { background: var(--warn-bg); color: var(--warn-text); }
.pill.bad, .badge.failed, .badge.fail, .badge.error { background: var(--bad-bg); color: var(--bad-text); }
.pill.mute, .badge.idle, .badge.skipped { background: var(--neutral-bg); color: var(--neutral-text); }
.bar { position: relative; height: 6px; border-radius: 999px; background: #E6E6E1; overflow: hidden; flex: 1; min-width: 60px; }
.bar > i, .bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--run); transition: width .4s var(--ease); }
.bar > i.held { background: repeating-linear-gradient(135deg, #9FB7EA 0 3px, #D3DEF6 3px 6px); border-radius: 0 999px 999px 0; }
.bar > i.ok { background: var(--ok); } .bar > i.warn { background: var(--warn); } .bar > i.bad { background: #C5352C; }
.bar:has(> em) { height: 20px; border-radius: 6px; min-width: 160px; }        /* labelled variant (admin tables) */
.bar:has(> em) > span { border-radius: 6px; opacity: .3; }
.bar > em { position: relative; font-style: normal; font-size: 12px; padding-left: 8px; line-height: 20px; white-space: nowrap; color: var(--ink); }
.meter { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.meter .bar { flex: none; min-width: 0; }          /* in a column flex box "flex: 1" would collapse the bar's height */
.meter .t { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.prog { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------------------------------ inputs */
input:not([type=checkbox]):not([type=radio]):not([type=file]), select:not(.chip), textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  width: 100%; outline: none; transition: border-color var(--dur), box-shadow var(--dur); }
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus); outline: none; }
/* A field the browser has filled in by itself keeps the field's own ground and ink: Chrome paints such a field light
   blue (the owner, 2026-11-23, of the sign-in page: «поля ввода не должны становиться голубыми»). The browser's fill
   cannot be taken off; an inset shadow of the field's own ground is laid over it, and a field at work keeps its ring. */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
input:-webkit-autofill:focus, textarea:-webkit-autofill:focus, select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px var(--focus); box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px var(--focus); }
input[aria-invalid="true"], .is-invalid { border-color: #C5352C !important; box-shadow: 0 0 0 3px rgba(197, 53, 44, .14) !important; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select:not(.chip) { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7484' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 10px center / 14px 14px; }
.input { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
         background: var(--surface); color: var(--ink); width: 100%; transition: border-color var(--dur), box-shadow var(--dur); }
.input:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus); }
/* the field inside a framed search box draws nothing of its own: the general input rule above is more specific than
   ".input > input", and browsers style type=search fields themselves (an inner rounded box) */
.input > input, .input > input:not([type=checkbox]):not([type=radio]):not([type=file]) {
  border: 0 !important; box-shadow: none !important; background: transparent; height: 100%; padding: 0; border-radius: 0;
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; }
.input > input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.input > .ico { color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .h, .field small { font-size: 12px; color: var(--muted); }
.field .in { display: flex; align-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.field .in:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus); }
.field .in input { border: 0 !important; box-shadow: none !important; height: 100%; }
.field .in .pre { padding-left: 10px; color: var(--muted); } .field .in .suf { padding: 0 10px; color: var(--muted); border-left: 1px solid var(--line); height: 100%; display: flex; align-items: center; background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid > label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-grid > label small { font-weight: 400; }
input.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 12px; background: #C9C9C3; position: relative; flex: none;
               cursor: pointer; margin: 0; transition: background var(--dur); }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
                      box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left var(--dur) var(--ease); }
input.switch:checked { background: var(--primary); } input.switch:checked::after { left: 19px; }
input.switch:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tog { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0F0ED; cursor: pointer; }
.tog:last-child { border-bottom: 0; }
.tog .t { font-weight: 600; } .tog .d { font-size: 12.5px; color: var(--muted); }
.tog input.switch { margin-top: 1px; }
input[type=checkbox]:not(.switch), input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; vertical-align: -4px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
            cursor: pointer; text-align: center; color: var(--muted); transition: border-color var(--dur), background var(--dur); }
.dropzone.over, .dropzone:hover { border-color: var(--link); background: var(--run-bg); color: var(--run-text); }

/* ------------------------------------------------------------------------------------------ cards, tables, sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card.pad { padding: 18px 20px; }
.card + .card, .card + .grid, .grid + .card { margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.sec { padding: 18px 22px; border-bottom: 1px solid #ECECE8; }
.sec:last-child { border-bottom: 0; }
.sec > h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sec.foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #ECECE8; flex-wrap: wrap; row-gap: 8px; }
.card-head h2 { flex: 1; }
.tw, .table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
     border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid #ECECE8; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
th.r, td.r, td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compact td { padding: 2px 10px 2px 0; border: 0; }
tr.prev-version td { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pill-list .pill { margin: 0 6px 4px 0; }
pre.log { background: #0E1116; color: #D6DBE5; padding: 12px 14px; border-radius: var(--radius); max-height: 60vh; overflow: auto; font-size: 12px;
          line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: 0; }
textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------------------------------------ segmented, tabs, menus */
.seg { display: flex; background: var(--neutral-bg); border-radius: 10px; padding: 3px; gap: 2px; }
.seg > .seg-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 8px; color: var(--neutral-text);
                   font-weight: 500; font-size: 14px; border: 0; background: transparent; padding: 0 10px; text-decoration: none; transition: background var(--dur), color var(--dur); }
.seg > .seg-item.on, .seg > .seg-item[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 24, 31, .08); }
.seg .cnt { font-size: 12px; color: var(--muted); background: #F0F0ED; border-radius: 999px; padding: 0 6px; line-height: 18px; }
.seg .cnt .ico.sm { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }   /* the spinner of files still in work */
#tab-chat-status .ico.sm, #tab-docs-count .ico.sm:only-child { margin-right: 0; }             /* the tab's spinner alone */
.firms-kind { display: inline-flex; margin: 0 0 14px; }                     /* the Clients page: all, firms, private lawyers */
.firms-kind > .seg-item { flex: none; padding: 0 14px; }
.kind-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--neutral-text); }
.firms-kind .seg-short { display: none; }
@media (max-width: 600px) { .firms-kind { display: flex; } .firms-kind > .seg-item { flex: 1; padding: 0 4px; gap: 4px; font-size: 13px; }
  .firms-kind .seg-long { display: none; } .firms-kind .seg-short { display: inline; } }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
       background: none; color: var(--muted); font-weight: 500; }
.tab.on, .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); font-weight: 600; }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
             box-shadow: var(--shadow-pop); padding: 6px; z-index: 20; display: flex; flex-direction: column; animation: pop .14s var(--ease); }
.menu-list.left { right: auto; left: 0; }
/* how a top-up came, on the line under its amount (LT.via) */
.via { display: block; text-align: right; color: var(--muted); font-weight: 400; font-size: 12.5px; }
/* an open menu floats over the page, placed by common.js (LT.float): unseen until then, never a frame in the wrong place */
details.menu[open] > .menu-list:not(.placed) { visibility: hidden; }
.menu-list.up { animation-name: pop-up; }
@keyframes pop-up { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 7px; border: 0; background: none; color: var(--ink);
             font-weight: 500; font-size: 14px; text-align: left; width: 100%; text-decoration: none; white-space: nowrap; }
.menu-item:hover { background: var(--neutral-bg); color: var(--ink); } .menu-item.danger { color: var(--bad); }
.menu-item .ico { color: var(--text-2); } .menu-item.danger .ico { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------------------------------ dialogs, toasts */
dialog.dlg { border: 0; border-radius: 16px; padding: 0; background: var(--surface); color: var(--ink); width: min(520px, calc(100vw - 32px));
             box-shadow: 0 24px 64px rgba(21, 24, 31, .22); }
dialog.dlg[open] { animation: pop .18s var(--ease); }
dialog.dlg::backdrop { background: rgba(21, 24, 31, .42); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dlg-body { padding: 22px 24px 8px; } .dlg-body h2 { font-size: 18px; margin-bottom: 6px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 22px; }
.dlg form .form-grid { grid-template-columns: 1fr; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 14px;
         border-radius: 10px; font-size: 13px; display: flex; align-items: center; gap: 10px; z-index: 90; pointer-events: none;
         transition: transform var(--dur) var(--ease), opacity var(--dur); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ico { color: #7ED3A0; } .toast.error .ico { color: #FF9B93; }

/* ------------------------------------------------------------------------------------------ shell: top bar + drawer */
.sys-alerts { position: sticky; top: calc(var(--imp-h) + var(--topbar-h)); z-index: 29; }   /* the administrators' problems, under the top bar */
.sys-alert { display: flex; align-items: center; gap: 10px; padding: 7px 16px; font-size: 13px; border-bottom: 1px solid var(--line); background: var(--warn-bg); color: var(--warn-text); }
.sys-alert.bad { background: var(--bad-bg); color: var(--bad-text); }
.sys-alert .ico { flex: none; }
.sys-alert .txt { min-width: 0; }
.sys-alert .snooze { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.sys-alert .snooze .btn { color: inherit; }
.sys-alert .snooze .btn.danger-solid { color: #fff; }   /* the paused work's Continue: an action, not a snooze */
.topbar { position: sticky; top: var(--imp-h); z-index: 30; height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--line);
          display: flex; align-items: center; gap: 16px; padding: 0 16px 0 8px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; padding-left: 8px; }
.topbar .main-nav { display: flex; gap: 4px; }
.topbar .main-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; }
.topbar .main-nav a:hover { background: var(--neutral-bg); color: var(--ink); }
.topbar .main-nav a[aria-current="page"] { background: #F0F0ED; color: var(--ink); font-weight: 600; }
.topbar .user { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.topbar .menu-btn { display: none; }
.topbar form { margin: 0; display: inline-flex; }
select.lang, select.cur, select.theme { height: 30px; width: auto; padding: 0 28px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.backdrop { position: fixed; inset: 0; background: rgba(21, 24, 31, .42); opacity: 0; visibility: hidden; z-index: 40;
            transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); }
.backdrop.open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease); }
.drawer { position: fixed; top: var(--imp-h); bottom: 0; left: 0; width: 304px; max-width: 86vw; background: var(--surface); z-index: 50; display: flex; flex-direction: column;
          transform: translateX(-100%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.drawer.open { transform: none; visibility: visible; box-shadow: 12px 0 40px rgba(21, 24, 31, .18); transition: transform var(--dur) var(--ease); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 16px; border-bottom: 1px solid #ECECE8; }
.drawer-head .brand { flex: 1; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.drawer-nav { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px 8px; }
.drawer-nav .grp { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 4px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.drawer-nav a:hover { background: var(--neutral-bg); }
.drawer-nav a[aria-current="page"] { background: #EEF1F8; color: var(--primary); font-weight: 600; }
.drawer-nav a .ico { width: 20px; height: 20px; color: var(--text-2); } .drawer-nav a[aria-current="page"] .ico { color: var(--primary); }
.drawer-foot { border-top: 1px solid #ECECE8; padding: 10px 12px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot .me { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.drawer-foot .me b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-foot .me span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px; }
.container.narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .lead { flex: 1; min-width: 200px; }
.page-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: 320px; max-width: 100%; }
footer { display: none; }

/* ------------------------------------------------------------------------------------------ login */
.login-wrap { min-height: calc(100dvh - 0px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.login-card .brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.login-card .brand .mark { width: 40px; height: 40px; border-radius: 11px; font-size: 22px; }
.login-card form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
                   box-shadow: 0 8px 28px rgba(21, 24, 31, .05); }
.login-card .field input { height: 44px; font-size: 16px; }
.login-card .btn { height: 44px; font-size: 15px; width: 100%; }
.login-card .foot { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; }
.alert.bad { background: var(--bad-bg); color: var(--bad-text); } .alert.warn { background: var(--warn-bg); color: var(--warn-text); }
.alert.run { background: var(--run-bg); color: var(--run-text); } .alert.ok { background: var(--ok-bg); color: var(--ok-text); }

/* ------------------------------------------------------------------------------------------ case list */
table.cases td .t, table.list td .t { font-weight: 600; color: var(--ink); }
table.cases td .c, table.list td .c { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
table.cases td a { color: inherit; display: block; }
table.list tr.muted td { color: var(--muted); }
table.list td.r .menu-list { text-align: left; }
table.compact-list td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.case-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; color: inherit; margin-bottom: 10px; }
.case-card .t { font-weight: 600; font-size: 15px; line-height: 1.3; } .case-card .c { font-size: 13px; color: var(--muted); margin-top: 2px; }
.case-card .m { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--neutral-text); }
.case-cards { display: none; }
.table-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ------------------------------------------------------------------------------------------ case workspace */
/* the screen from where the page's content begins, under the viewing-as banner, the top bar, the two-factor offer and
   the administrators' alerts, and no further (--main-top, common.js: pageTop) */
.workspace { height: calc(100dvh - var(--main-top, var(--topbar-h))); display: flex; flex-direction: column; min-height: 0; }
.casebar { min-height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 8px 20px; flex: none; }
.casebar .vsep { width: 1px; height: 24px; background: var(--line); }
.casebar .title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.casebar h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.casebar .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.case-tabs { display: none; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.panes { display: flex; flex: 1; min-height: 0; }
.pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pane-docs { width: 440px; flex: none; border-right: 1px solid var(--line); background: var(--surface-2); position: relative; }
.pane-chat { flex: 1; background: var(--paper); }
.scroll { flex: 1; min-height: 0; overflow: auto; }
.pane-head { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #ECECE8; flex: none; }
/* a row of a title and its actions wraps when the actions do not fit beside the title (Lithuanian «Perskaityti
   visus dokumentus» and «Įkelti» ran over the chat, and off a phone's screen, 2026-11-13; buttons never shrink):
   behind the row's spacer the actions keep to the right of the next line. Card heads wrap the same way. */
.pane-head .ttl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.pane-head .ttl h2 { font-size: 15px; }
/* the selected chat's view of the documents, an administrator's: what its agent knows / opened */
.doc-group { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 16px 6px; font-size: 12px; color: var(--muted);
  text-transform: none; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.doc-group b { color: var(--text-2); font-size: 12px; letter-spacing: .02em; }
.doc-group.known b { color: var(--ok-text); }
.doc .marks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chat-mark { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; height: 18px; border-radius: 9px;
  font-size: 11px; font-weight: 600; white-space: nowrap; }
.chat-mark.opened { background: transparent; color: var(--muted); font-weight: 500; padding: 0 2px; }
/* the documents' processing (case.js: renderDocsBudget): processed of all and what needs attention, a bar of the
   two, one round grey button ■ / ▶ */
.docs-budget { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg);
               padding: 10px 12px; background: var(--surface); }
.docs-budget .dp-main { flex: 1; min-width: 0; }
.docs-budget .dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.docs-budget .dp-title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.docs-budget .dp-head .ico.spin { color: var(--link); } .docs-budget .dp-head .ico.done { color: var(--ok); }
.docs-budget .dp-line { font-size: 12px; color: var(--muted); }
.docs-budget .dp-line .att { color: var(--warn-text); font-weight: 600; }
.docs-budget .dp-bar { display: flex; height: 6px; border-radius: 999px; background: #E6E6E1; margin-top: 6px; overflow: hidden; }
.docs-budget .dp-bar i { display: block; height: 100%; }
.docs-budget .dp-bar i.ok { background: var(--ok); } .docs-budget .dp-bar i.att { background: var(--warn); }
.docs-budget .dp-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center;
                       justify-content: center; border: 1px solid #D9D9D4; background: var(--surface); color: var(--muted);
                       cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.docs-budget .dp-btn:hover { background: var(--neutral-bg); color: var(--neutral-text); }
.docs-budget .dp-btn:disabled { opacity: .45; cursor: default; }
.docs-budget .dp-btn .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.docs-budget .dp-btn.continue .ico { margin-left: 2px; }
.docs-budget[hidden] { display: none; }
.doclist { background: var(--surface); }
.doc { display: grid; grid-template-columns: 20px minmax(0, 1fr) 150px 30px; gap: 10px; align-items: center; padding: 9px 10px 9px 12px; border-bottom: 1px solid #ECECE8; background: var(--surface); }
.doc.child { padding-left: 32px; }
.doc.alias .name { opacity: .85; }                     /* a link to a file stored elsewhere in the case */
.doc.flash { box-shadow: inset 0 0 0 2px var(--run); }  /* "go to the original": the stored copy, briefly marked */
/* tree view: archives and folders are levels; each level indents by 16 px */
.doc.tree { grid-template-columns: 38px minmax(0, 1fr) 150px 30px; padding-left: calc(6px + var(--depth, 0) * 16px); }
.doc .lead { display: flex; align-items: center; gap: 2px; }
.doc .caret { width: 16px; height: 20px; padding: 0; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.doc .caret .ico { transition: transform .15s ease; }
.doc .caret[aria-expanded="true"] .ico { transform: rotate(90deg); }
.doc span.caret { cursor: default; }
.doc.folder { background: var(--surface-2); }
.doc.folder .ficon { color: #B08A2E; }
.doc.folder .name button.link { font-weight: 600; }
.doc .info .cost { color: var(--ink); font-weight: 600; }
.doc .st .dur, .doc .st .meta { white-space: nowrap; }
.doc .st .meta .cost { color: var(--ink); font-weight: 600; }
.doc .ver-note { display: flex; align-items: center; gap: 4px; color: var(--warn-text); } .doc .ver-note.new { color: var(--link); }
.doc .origin { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row { display: flex; gap: 8px; align-items: center; } .search-row #search-form { flex: 1; min-width: 0; }
.seg.mini { padding: 2px; border-radius: 8px; } .seg.mini > .seg-item { height: 26px; width: 30px; flex: none; border-radius: 6px; padding: 0; }
.doc .ficon { color: var(--muted); } .doc .ficon.pdf { color: var(--bad); } .doc .ficon.docx { color: var(--link); } .doc .ficon.xlsx { color: var(--ok); }
.doc .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.doc .name a, .doc .name button.link { color: inherit; font: inherit; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
/* the status icon before the name (the owner, 2026-11-15); the name shortened beside it */
.doc .name:has(> .st-ico) { display: flex; align-items: center; gap: 8px; }
.doc .name > :not(.st-ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a firm's row has no column for what a file cost and took (a platform administrator's) */
.doc.no-st { grid-template-columns: 20px minmax(0, 1fr) 30px; }
.doc.tree.no-st { grid-template-columns: 38px minmax(0, 1fr) 30px; }
.doc .name button.link:hover { color: var(--link); }
.doc .info { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .err { font-size: 12px; color: var(--bad); white-space: normal; }
.doc .st { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; font-size: 11.5px; color: var(--muted); }
.doc .st .prog { width: 100%; }
.doc.gen { grid-template-columns: 20px minmax(0, 1fr) 30px; }
.doc.gen.tree { grid-template-columns: 20px minmax(0, 1fr) 30px; padding-left: calc(12px + var(--depth, 0) * 16px); }
.doc.gen .gen-prev .menu { margin-left: auto; }
.doc.gen-group { grid-template-columns: 38px minmax(0, 1fr); }
.doc.gen-group .lead .ico:not(.caret .ico) { color: var(--muted); }
.msg.flash, .msg.user.flash .bubble { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 10px; transition: outline-color .6s; }
.doc .menu-list { min-width: 220px; }
.sub-head { padding: 18px 16px 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.sub-head h2 { font-size: 15px; }
.drop-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(230, 236, 250, .92);
                border: 2px dashed var(--link); color: var(--run-text); font-weight: 600; font-size: 16px; pointer-events: none; opacity: 0; transition: opacity var(--dur); }
.pane-docs.over .drop-overlay { opacity: 1; }
#upload-status { display: flex; align-items: center; gap: 10px; }
#upload-status .bar { flex: 1; }
/* Uploads (platform administrator): big files for the system's tools */
#up-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
#up-status .bar { flex: 1; }
.dropzone ~ .card { margin-top: 16px; }
#up-files-card .empty { margin: 16px; }
td.sha { font-family: var(--mono); font-size: 12px; color: var(--muted); }
code.up-key { display: block; margin-top: 4px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius);
              font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
table.uploads td .t { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }   /* stays a table on the phone */
table.uploads td .c { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
table.uploads td:first-child { min-width: 170px; }
@media (max-width: 899.98px) { table.uploads .sha, table.uploads .prog-col { display: none; } }
.search-results { padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search-results .hit { padding: 8px 0; border-bottom: 1px solid #F0F0ED; font-size: 13px; }
.search-results .hit:last-child { border-bottom: 0; }
.search-results .hit .where { font-weight: 600; }
.search-results .hit .snip { color: var(--text-2); }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; flex: none; }
.chat-head select.chip { max-width: 460px; font-weight: 600; color: var(--ink); height: 32px; }
.chat-head .chat-last, .chat-head .chat-break { display: none; }  /* the open chat's last message, under a narrow row */
.chat-head .meters { display: flex; gap: 16px; align-items: center; }
.chat-head .chat-status { flex: none; display: inline-flex; }     /* what the open chat is doing, in a pill */
.chat-status .short { display: none; }
.chat-head .meters .ctx-badge { flex: none; }
.chat-details { padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12.5px; flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 32px; }
.chat-details .ttl { font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ctx-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr auto; gap: 8px; align-items: center; margin: 3px 0; }
.ctx-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-bar { position: relative; height: 6px; border-radius: 999px; background: #E6E6E1; overflow: visible; }
.ctx-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.ctx-peak { position: absolute; top: -2px; width: 2px; height: 10px; background: currentColor; opacity: .6; }
.ctx-num { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.ctx-fill.ctx-ok { background: var(--ok); } .ctx-fill.ctx-warn { background: var(--warn); } .ctx-fill.ctx-high { background: #C5352C; }
span.ctx-warn { color: var(--warn-text); } span.ctx-high, b.ctx-high { color: #C5352C; }
.chat-log { padding: 20px 20px 40px; }          /* room to scroll the last message out of the composer's fade */
.chat-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.msg { min-width: 0; }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg.user .bubble { max-width: 72%; background: var(--user-msg); border-radius: 14px 14px 4px 14px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta-line { font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.msg.assistant { display: flex; gap: 12px; }
.msg.assistant .body { min-width: 0; flex: 1; max-width: 760px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.assistant .body ul, .msg.assistant .body ol { margin: 4px 0 6px 20px; padding: 0; }
.msg.assistant .body pre { background: #0E1116; color: #D6DBE5; padding: 10px 12px; border-radius: var(--radius); overflow-x: auto; white-space: pre; font-size: 12.5px; }
.msg.assistant .body .md-h1, .msg.assistant .body .md-h2 { font-weight: 700; font-size: 1.08em; margin-top: 8px; }
.msg.assistant .body .md-h3, .msg.assistant .body .md-h4 { font-weight: 700; margin-top: 6px; }
.msg.assistant .body .md-table-wrap { overflow-x: auto; margin: 6px 0; }      /* only a table too wide for the screen scrolls */
.msg.assistant .body .md-table { border-collapse: collapse; font-size: 0.95em; width: auto; }
.msg.assistant .body .md-table th, .msg.assistant .body .md-table td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
.msg.assistant .body .md-table th { background: var(--neutral-bg); font-weight: 600; font-size: inherit; letter-spacing: normal; text-transform: none; color: var(--ink); white-space: normal; }   /* the answer's words, not a list's column labels */
.msg.assistant .body .md-gap { height: 6px; }
.msg.partial .cursor { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
.msg .foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.msg.assistant details > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.msg.interim { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; max-width: 760px; }
.msg.interim .ico { margin-top: 3px; color: var(--faint); }
.msg.interim details summary { cursor: pointer; }
.msg.interim .body { min-width: 0; }
.msg.system { align-self: center; color: var(--muted); font-size: 12.5px; text-align: center; max-width: 760px; }
.msg.system.error { color: var(--bad-text); }
.msg.system.notice { display: inline-flex; align-items: center; gap: 6px; }   /* a notice: a warning sign and the text */
.msg.system.notice .ico { flex: none; color: var(--warn-text); }
.msg.interim.stopped .ico { color: var(--muted); }
.msg.control { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.msg.compacted { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg);
                 color: var(--warn-text); font-size: 13px; font-weight: 500; max-width: 760px; }
.msg.compacted .ico { margin-top: 2px; }
.compact-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 6px 10px; border-radius: 8px;
                background: var(--warn-bg); color: var(--warn-text); font-size: 12.5px; }
/* the map of a long document in the viewer: blocks, their sections and the labels the model wrote */
.map-view h3 { margin: 16px 0 6px; font-size: 14px; }
.map-view h3:first-child { margin-top: 4px; }
.map-view ul { list-style: none; margin: 0; padding: 0; }
.map-view .block-summary { margin-bottom: 6px; }
.map-section { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.map-section .kind { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-text); font-size: 12px; margin-left: 4px; }
.map-section .topic { font-weight: 600; margin-top: 2px; }
.map-section .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.map-section .tag { font-size: 12px; padding: 0 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.map-section .part { font-size: 12.5px; color: var(--neutral-text); margin-top: 2px; }
.coverage { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }
.coverage.ok { color: var(--neutral-text); background: var(--surface); border: 1px solid var(--line); }
.coverage.warn { background: var(--warn-bg); color: var(--warn-text); }
.coverage details { margin-top: 4px; } .coverage summary { cursor: pointer; } .coverage ul { margin: 4px 0 0 16px; padding: 0; }
button.ctx-badge { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.ctx-badge .short, .meter .short { display: none; }
.activity { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--neutral-text); max-width: 760px; }
.activity .head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid #ECECE8; }
.activity .head .ico.done { color: var(--ok); stroke-width: 2.2; }
.activity .rows { display: flex; flex-direction: column; }
.activity .arow { display: flex; gap: 8px; align-items: center; padding: 5px 12px; border-top: 1px solid #F3F3F0; }
.activity .arow:first-child { border-top: 0; }
.activity .arow .ico { color: var(--muted); } .activity .arow.opp .ico { color: var(--bad); } .activity .arow.rev .ico { color: var(--run-text); }
.activity:not(.expanded) .arow.hid { display: none; }
.activity .arow.sub { padding-left: 34px; color: var(--muted); font-size: .94em; }
.activity .head .spacer { flex: 1; }
/* the question at work, where its latest step is (case.js: rowTurns, placeStep): a tool call under way turns in its
   row; between calls a step row under the last action, or a line under the last message, says what goes on */
.activity .arow.turning .ico, .step .ico { color: var(--link); }
.activity .arow.turning { color: var(--ink); }
.step { display: flex; gap: 8px; align-items: center; color: var(--run-text); font-weight: 500; }
.step.solo { font-size: 12.5px; padding: 2px 12px; }
.step .shine { background: linear-gradient(90deg, var(--run-text) 0%, var(--run-text) 40%, #9DB0E4 50%, var(--run-text) 60%, var(--run-text) 100%);
               background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
               animation: shine 2.4s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .step .shine { animation: none; color: var(--run-text); background: none; } }
.activity .more { padding: 6px 12px; border-top: 1px solid #F3F3F0; }
.pause { border: 1px solid #EFD9A8; background: #FFF8E8; border-radius: var(--radius-lg); padding: 14px; max-width: 760px; }
.pause .ttl { font-weight: 600; font-size: 15px; }
.pause .btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.adverse { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-lg); padding: 14px; max-width: 760px; }
.adverse .ttl { font-weight: 600; font-size: 15px; }
.adverse .adv-item { border-top: 1px solid var(--line); padding: 10px 0 4px; margin-top: 10px; display: grid; gap: 4px; }
.adverse .adv-ref { font-weight: 600; }
.adverse .adv-risk { font-weight: 600; } .adverse .adv-risk.high { color: var(--bad-text); }
.adverse .adv-risk.medium { color: var(--warn-text); } .adverse .adv-risk.low { color: var(--ok-text); }
.adverse .adv-choice { font-weight: 600; color: var(--text-2); }
.composer .effort-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.adverse .adv-section { font-weight: 600; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line-strong); }
.adverse .btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
/* the chat's name changed in place of the chats list */
.chat-rename { display: inline-flex; gap: 6px; align-items: center; flex: 1 1 auto; min-width: 0; }
.chat-rename[hidden] { display: none; }
.chat-rename input { flex: 1 1 auto; min-width: 0; }
.adverse .adv-done { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ok-text); }
.adverse .adv-error { margin-top: 8px; padding: 8px 10px; border: 1px solid #F0C9C4; background: #FFF3F1;
  color: var(--bad-text); border-radius: 8px; font-weight: 600; }
/* the chat waits for the lawyer's decisions on a card: a notice above the question box, the box closed */
.chat-wait { max-width: 860px; margin: 0 auto 10px; padding: 10px 14px; border: 1px solid var(--line-strong);
  background: var(--run-bg); color: var(--run-text); border-radius: var(--radius-lg); display: flex; gap: 10px;
  align-items: center; flex-wrap: wrap; }
.chat-wait > span { flex: 1; min-width: 200px; }
.chat-wait[hidden] { display: none; }
.filecard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin: 8px 0; }
/* no question while documents are not read: a notice above the composer, the Send button disabled */
.chat-gate { max-width: 860px; margin: 0 auto 10px; padding: 12px 14px; border: 1px solid #F0C9C4; background: #FFF3F1; border-radius: var(--radius-lg); }
.chat-gate .gate-head { display: flex; gap: 10px; align-items: flex-start; } .chat-gate .gate-head > .ico { color: var(--bad); flex: none; }
.chat-gate .ttl { font-weight: 600; font-size: 14px; }
.chat-gate .gate-list { margin: 6px 0; padding-left: 18px; font-size: 13px; } .chat-gate .gate-list li { margin: 2px 0; }
.chat-gate .btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chat-gate .only-phone { display: none; }
.doc.excluded .main, .doc.excluded .ficon { opacity: .55; }
/* the composer: the question box, its controls below it; the chat fades out as it scrolls under it */
.composer-wrap { position: relative; z-index: 1; padding: 6px 20px 14px; background: var(--paper); flex: none; }
.composer-wrap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 245, 243, 0), var(--paper)); }
.composer { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 12px; border-color: var(--line-strong);
                transition: border-color var(--dur), box-shadow var(--dur); }
.composer-box:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--focus); }
/* one line to start, growing to five, then it scrolls (the height is set by autogrow() in case.js) */
.composer textarea { display: block; flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent;
  padding: 5px 0; line-height: 1.5; resize: none; font-size: 14.5px; overflow-y: hidden; min-height: 0; }
/* Send in the box: a circle with a white "play" arrow; while a question runs it becomes Stop — the arrow folds into a
   square (one clip-path, four points: the tip opens into the square's right side) */
.send-btn { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: var(--primary); color: #fff; cursor: pointer; transition: background-color var(--dur), opacity var(--dur), transform var(--dur) var(--ease); }
.send-btn:hover { background: var(--primary-hover); }
.send-btn:active { transform: scale(.92); }
.send-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.send-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.send-btn .shape { width: 14px; height: 14px; background: currentColor; clip-path: polygon(24% 8%, 24% 92%, 94% 50%, 94% 50%);
  transform: translateX(1px); transition: clip-path .28s var(--ease), transform .28s var(--ease); }
.send-btn.stop .shape { clip-path: polygon(16% 16%, 16% 84%, 84% 84%, 84% 16%); transform: none; }
.send-btn.stop:disabled { opacity: .55; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .send-btn .shape { transition: none; } }
.composer .ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.composer select.chip { height: 28px; font-size: 12.5px; }

.slideover { position: fixed; top: calc(var(--imp-h) + var(--topbar-h)); right: 0; bottom: 0; width: min(960px, 100vw); background: var(--paper); z-index: 35; display: flex; flex-direction: column;
             border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.slideover.open { transform: none; visibility: visible; box-shadow: var(--shadow-panel); transition: transform var(--dur) var(--ease); }
.slideover .so-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px 0; flex: none; }
.slideover .so-title { display: flex; align-items: flex-start; gap: 12px; }
.slideover .so-title h2 { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slideover .so-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 2px; align-items: center; }
.slideover .so-tabs { display: flex; align-items: center; margin-top: 8px; gap: 18px; }
.slideover .so-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
/* a panel's blocks keep their height however many there are: a block that clips its content (overflow: hidden) may
   otherwise be shrunk by the column to a sliver — the 585 pages of a case file's Text tab were (2026-11-10) */
.slideover .so-body:not(.fv-fill) > * { flex-shrink: 0; }
/* the viewer's "View": the file itself (static/case.js showFile) */
.slideover .so-body.fv-fill { position: relative; padding: 0; overflow: hidden; gap: 0; }
.fv-bar { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 10px;
          background: var(--surface); border-bottom: 1px solid var(--line); z-index: 2; }
.fv-bar .spacer { flex: 1; } .fv-bar .fv-page { font-size: 12.5px; color: var(--muted); }
.fv-bar .btn.icon { font-size: 17px; font-weight: 600; }
.fv-pdf { position: absolute; top: 40px; left: 0; right: 0; bottom: 0; overflow: auto; background: #E7E7E3; }
.fv-pdf .pdfViewer { padding: 10px 0; }
.fv-pdf .pdfViewer .page { margin: 0 auto 10px; box-shadow: 0 1px 3px rgba(21, 24, 31, .2); }
.fv-html { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.fv-image { overflow: auto; text-align: center; }
.fv-image img { max-width: 100%; height: auto; cursor: zoom-in; background: #fff; box-shadow: 0 1px 3px rgba(21, 24, 31, .2); }
.fv-image.zoom img { max-width: none; cursor: zoom-out; }
.fv-pages { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.fv-sheetpage { position: relative; margin: 0; width: 100%; text-align: center; }
.fv-image { position: relative; }
.fv-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; }
.loading > img { opacity: .4; }
.fv-broken { margin: 0; padding: 40px 16px; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px dashed var(--line-strong); }
.fv-sheetpage img { max-width: 100%; min-height: 240px; background: #fff; box-shadow: 0 1px 3px rgba(21, 24, 31, .2); }
.fv-sheetpage figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fv-media { display: flex; justify-content: center; }
.fv-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; color: var(--muted); text-align: center; }
.fv-msg p { margin: 0; max-width: 46ch; }
.fv-sheet { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.slideover .fv-sheet-tabs { margin-top: 0; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--line); }
.fv-grid { overflow: auto; max-height: calc(100vh - var(--imp-h) - var(--topbar-h) - 190px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fv-grid table { border-collapse: collapse; font-size: 12.5px; width: max-content; min-width: 100%; }
.fv-grid th, .fv-grid td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; white-space: pre-wrap;
                           max-width: 420px; overflow-wrap: anywhere; }
.fv-grid thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; font-weight: 600; }
.fv-grid tbody th { position: sticky; left: 0; background: var(--surface-2); color: var(--muted); font-weight: 500; text-align: right; }
.fv-grid .fv-more { margin: 10px; }
.fv-text { display: flex; flex-direction: column; gap: 10px; }
.fv-text .fv-more { align-self: center; }
.fv-tpage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fv-tpage .fv-pno { padding: 6px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid #ECECE8; background: var(--surface-2); }
.fv-tpage .txt { padding: 14px 16px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
/* a file's status in the list: one icon (the owner, 2026-11-06), its tooltip says it in words */
.st-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; flex: none; }
.st-ico .ico { width: 15px; height: 15px; }
.st-ico.ok { color: var(--ok); background: var(--ok-bg); }
.st-ico.run { color: var(--run); }
.st-ico.pause, .st-ico.warn { color: var(--warn-text); background: var(--warn-bg); }
.st-ico.bad { color: var(--bad); background: var(--bad-bg); }
.st-ico.mute { color: var(--muted); background: var(--neutral-bg); }
/* a document the selected chat's agents have not seen: N before its status (case.js unseenMark) */
.st-ico.new { background: #E3EBFD; color: var(--link); font-size: 11px; font-weight: 700; line-height: 1; margin-right: -3px; }
.page-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.page-block .ph { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid #ECECE8; font-size: 12.5px; color: var(--neutral-text); flex-wrap: wrap; }
.page-block .ph b { color: var(--ink); }
.page-block .txt, .page-text { padding: 14px 16px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.page-extra { margin: 0 16px 14px; padding: 10px 12px; border-radius: var(--radius); background: #F1F4FB; border: 1px solid #DDE4F5; font-size: 13px; line-height: 1.55; }
.page-extra .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--run-text); margin-bottom: 4px; }
.page-extra.notes { background: #FAF7EE; border-color: #EFE3C4; } .page-extra.notes .lbl { color: var(--warn-text); }
.page-extra .page-text { padding: 0; }
.media-player { display: block; width: 100%; max-height: 50vh; border-radius: var(--radius); background: #000; }
audio.media-player { background: none; max-height: none; }
a.tc { font-variant-numeric: tabular-nums; }
.card-view { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 13.5px; }
.card-view h3 { font-size: 13px; margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card-view ul { margin: 0 0 0 18px; padding: 0; } .card-view li { margin: 2px 0; }
.card-check { margin: 8px 0; } .card-check ul { margin: 6px 0 0 18px; padding: 0; } .card-check li { margin-bottom: 6px; }

/* ------------------------------------------------------------------------------------------ settings */
.settings-layout { display: flex; gap: 24px; align-items: flex-start; }
.snav { width: 220px; flex: none; display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--imp-h) + var(--topbar-h) + 20px); }
.snav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; border: 1px solid transparent; }
.snav a:hover { background: var(--neutral-bg); color: var(--ink); }
.snav a.on, .snav a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; border-color: var(--line); }
.settings-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.settings-main .card { scroll-margin-top: calc(var(--imp-h) + var(--topbar-h) + 16px); }
/* Settings → Browser: the server's browser in noVNC (ADR 0024), its 16:9 desktop scaled into the frame */
.br-screen { aspect-ratio: 16 / 9; margin: 0 16px 16px; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.br-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.secret { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); flex-wrap: wrap; }
.secret .what { flex: 1; min-width: 180px; } .secret .what b { display: block; } .secret .what span { font-size: 12.5px; color: var(--muted); }
.secret input { max-width: 360px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.result-box { margin-top: 12px; }
.result-box summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.result-box pre.log { margin-top: 8px; max-height: 40vh; }
#style-guide label.wide { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
#style-guide textarea { margin-top: 5px; }
input.budget { width: 110px; }

/* ------------------------------------------------------------------------------------------ dashboard / groups */
table.groups td, table.jobs td { font-size: 13px; }
.pill-row .pill { margin: 0 6px 4px 0; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi .k { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kpi .k b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; } .kpi .k span { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------------------------------ responsive */
/* The narrow rules end at 899.98px, not 899px: a window scaled by the system (125 % on Windows) is often a width that
   is not a whole number of pixels, and 899.2px met neither "up to 899px" nor "from 900px": no layout at all. */
@media (max-width: 1100px) { .pane-docs { width: 380px; } }
@media (max-width: 899.98px) {
  body { font-size: 15px; }
  .topbar { gap: 8px; padding: 0 8px; }
  .topbar .main-nav, .topbar .user, .topbar .lang, .topbar .cur, .topbar .theme, .topbar .signout { display: none; }
  .topbar .menu-btn { display: inline-flex; width: 44px; height: 44px; }
  .btn { height: 40px; } .btn.icon { width: 40px; } .btn.sm { height: 34px; } .btn.sm.icon { width: 34px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select:not(.chip), .input { height: 44px; font-size: 16px; }
  .chip { height: 32px; font-size: 13.5px; }
  .container { padding: 18px 16px 32px; }
  h1 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .settings-layout { flex-direction: column; align-items: stretch; }   /* the section row scrolls by itself, not the page */
  .snav { position: static; width: auto; max-width: 100%; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .snav a { white-space: nowrap; border: 1px solid var(--line-strong); background: var(--surface); height: 34px; border-radius: 999px; }
  .snav a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  .toolbar .input { width: 100%; }
  table.cases, table.list { display: none; } .case-cards { display: block; }
  .table-foot { border-radius: var(--radius-lg); border: 1px solid var(--line); }
  /* workspace: one pane at a time, chosen by the segmented control */
  .casebar { padding: 8px 8px 8px 4px; gap: 6px; min-height: 52px; }
  .casebar .vsep, .casebar .meta .hide-m, .casebar .btn-text { display: none; }
  .casebar h1 { font-size: 16px; }
  .case-tabs { display: block; }
  .panes { flex-direction: column; }
  .pane-docs { width: auto; border-right: 0; flex: 1; }
  .panes[data-tab="chat"] .pane-docs { display: none; }
  .panes[data-tab="documents"] .pane-chat, .panes[data-tab="files"] .pane-chat { display: none; }
  .panes[data-tab="documents"] #generated { display: none; }
  .panes[data-tab="files"] .pane-head, .panes[data-tab="files"] #docs-body, .panes[data-tab="files"] #docs-head, .panes[data-tab="files"] #search-results, .panes[data-tab="files"] #admin-tools { display: none; }
  .doc { grid-template-columns: 20px minmax(0, 1fr) 30px; grid-template-areas: "icon name menu" ". st st"; row-gap: 6px; padding: 12px 10px 12px 14px; }
  .doc .ficon { grid-area: icon; } .doc .main { grid-area: name; } .doc .st { grid-area: st; flex-direction: row; align-items: center; gap: 8px; } .doc .menu { grid-area: menu; }
  .doc.tree { grid-template-columns: 38px minmax(0, 1fr) 30px; padding-left: calc(8px + var(--depth, 0) * 14px); }
  .doc .lead { grid-area: icon; } .doc .lead .ficon { grid-area: auto; }
  .doc.folder .st:empty { display: none; }
  .doc .name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .doc .name a, .doc .name button.link { white-space: normal; }
  /* beside its status icon the name keeps its two lines */
  .doc .name:has(> .st-ico) { display: flex; align-items: flex-start; }
  .doc .name:has(> .st-ico) > :not(.st-ico) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
  .doc .name > .st-ico { margin-top: 1px; }
  .doc.no-st { grid-template-areas: "icon name menu"; }
  .doc.gen { grid-template-columns: 20px minmax(0, 1fr) 30px; grid-template-areas: "icon name menu"; }
  .doc.gen.tree { padding-left: calc(10px + var(--depth, 0) * 12px); }
  .doc.gen-group { grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: none; }
  .chat-gate .only-phone { display: inline-flex; }
  .chat-head { padding: 8px 12px; gap: 8px; }
  .chat-head select.chip { flex: 1 1 0; min-width: 120px; max-width: none; }
  /* the open chat's last message and its rename on a row of their own: the first row keeps its buttons */
  .chat-head .chat-break { display: block; order: 1; flex-basis: 100%; height: 0; }
  .chat-head .chat-last { display: block; order: 2; flex: 0 1 auto; min-width: 0; }
  .chat-head #rename-chat { order: 3; width: 28px; height: 28px; }
  .chat-status .full { display: none; } .chat-status .short { display: inline; }   /* "6 min": the selector keeps its width */
  .chat-head .spacer { display: none; }
  .chat-head #new-chat .btn-text { display: none; } .chat-head #new-chat { width: 34px; padding: 0; }
  .chat-head .meters { order: 3; flex: 1 1 100%; gap: 12px; } .chat-head .meter { min-width: 0; flex: 1; }
  .chat-head .meter .t { font-size: 11.5px; white-space: nowrap; gap: 6px; }
  .chat-head .meter .t span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ctx-badge .full, .meter .full { display: none; } .ctx-badge .short, .meter .short { display: inline; }
  /* the composer's choices keep their whole names: one that does not fit goes to the next line (a lawyer's single
     «Su recenzentu» was cut to «Su…» by a share of the row meant for three); one longer than the row shrinks */
  .composer .ctl { flex-wrap: wrap; row-gap: 6px; }
  .composer .effort-pick { flex: 0 1 auto; min-width: 0; max-width: 100%; } .composer .effort-pick > span { flex: none; }
  .composer select.chip { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
  .send-btn { width: 40px; height: 40px; }
  .chat-log { padding: 14px 12px 36px; }
  .msg.user .bubble { max-width: 88%; }
  .composer-wrap { padding: 8px 10px 20px; }
  .composer textarea { font-size: 16px; }
  .slideover { top: 0; width: 100vw; z-index: 60; }
  .slideover .so-head { padding-top: 10px; }
  .dlg-body { padding: 18px 18px 6px; } .dlg-actions { padding: 12px 18px 18px; }
  dialog.dlg.sheet { margin: auto 0 0; width: 100vw; max-width: none; border-radius: 20px 20px 0 0; }
  dialog.dlg.sheet[open] { animation: slide-up .22s var(--ease); }
  @keyframes slide-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (min-width: 900px) { .only-mobile { display: none !important; } }
@media (max-width: 899.98px) { .only-desktop { display: none !important; } }

/* problem files (platform administrators) */
.pb-list { display: flex; flex-direction: column; gap: 10px; }
.pb-item { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.pb-item.accepted { opacity: .7; }
.pb-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pb-name { min-width: 0; } .pb-name a { font-weight: 600; word-break: break-word; }
.pb-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pb-reason { font-size: 12.5px; color: var(--muted); word-break: break-word; }
.pb-ai { border-left: 3px solid var(--line-strong); padding: 6px 0 2px 12px; display: flex; flex-direction: column; gap: 6px; }
.pb-expl { font-size: 13px; }
.pb-details h4 { margin: 8px 0 4px; font-size: 12.5px; }
.pb-details ul { margin: 0; padding-left: 18px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.pb-spec { font-size: 11.5px; background: var(--neutral-bg); border-radius: 8px; padding: 8px 10px; overflow-x: auto; max-height: 260px; }
@media (max-width: 640px) { .pb-head { flex-direction: column; } .pb-actions { justify-content: flex-start; } }

/* sign-up: the account type, the eyes on the password fields, the live checklist, mistakes next to their fields */
.login-card .field select { height: 44px; font-size: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
/* the eye sits inside the field on its white: no background of its own, dark grey, darker under the pointer */
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; margin: 0; border: 0;
  border-radius: 8px; background: transparent; box-shadow: none; color: #5B6170; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--ink); background: transparent; outline: none; }
.pw-eye:focus-visible { box-shadow: 0 0 0 3px rgba(47, 52, 66, .15); }
.pw-eye .ico { width: 18px; height: 18px; stroke-width: 1.6; }
/* the checklist: closed until typing starts, then it rolls down and fades in (the rest of the form moves down);
   emptied and left, it rolls back up */
.checklist { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -6px;
  transition: grid-template-rows .28s ease, opacity .28s ease, margin-top .28s ease; }
.checklist.open { grid-template-rows: 1fr; opacity: 1; margin-top: 2px; }
.checklist > ul { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; line-height: 1.25; }
.checklist li { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.checklist .pw-mark { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.checklist .pw-mark .ico { width: 13px; height: 13px; stroke-width: 2.6; display: none; vertical-align: 0; }
.checklist li.ok .pw-mark .yes { display: block; color: var(--ok); }      /* a green check … */
.checklist li.bad .pw-mark .no { display: block; color: var(--bad); }     /* … or a red cross, nothing behind them */
.field > .field-error, .field-error { color: var(--bad); font-size: 12px; font-weight: 500; }   /* over the label rule .field > span */
@media (prefers-reduced-motion: reduce) { .checklist { transition: none; } }

/* ------------------------------------------------------------------------------------------ billing */
.bill-firm { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.bill-kpi { margin-bottom: 14px; }
.bill-kpi .k.main b { font-size: 26px; }
.bill-kpi .k.low b { color: var(--bad-text); }
.bill-filters { display: grid; grid-template-columns: 150px 150px minmax(170px, 220px) minmax(220px, 1fr) auto; gap: 12px; padding: 14px; margin-bottom: 14px; align-items: end; }
.bill-case-box { position: relative; display: flex; align-items: center; }
.bill-case-box input { width: 100%; padding-right: 32px; }
.bill-case-box #bill-case-clear { position: absolute; right: 4px; }
.bill-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 4px;
                background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); max-height: 300px; overflow: auto; }
.bill-suggest li { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-suggest li:hover, .bill-suggest li[aria-selected="true"] { background: var(--run-bg); }
.bill-suggest li.none { color: var(--muted); cursor: default; } .bill-suggest li.none:hover { background: none; }
.bill-chart-card { position: relative; padding: 14px 16px 10px; margin-bottom: 14px; }
.bill-chart-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.bill-chart-head h2, .bill-journal-head h2 { font-size: 15px; margin: 0; }
.bill-chart { width: 100%; min-height: 200px; }
.bill-chart svg { display: block; overflow: visible; }
.bill-chart .bar { fill: var(--run); }
.bill-chart .g { stroke: var(--line); stroke-width: 1; }
.bill-chart .base { stroke: var(--line-strong); stroke-width: 1; }
.bill-chart .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bill-chart .hit { fill: transparent; cursor: default; outline: none; -webkit-tap-highlight-color: transparent; }
.bill-chart svg, .bill-chart svg *:focus { outline: none; -webkit-tap-highlight-color: transparent; }   /* a tap shows the tip, no frame */
.bill-chart .hit:hover { fill: rgba(43, 85, 196, .06); }
.bill-nochart { height: 200px; display: flex; align-items: center; justify-content: center; }
.bill-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: #fff; border-radius: 6px; padding: 6px 9px;
            font-size: 12px; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-pop); white-space: nowrap; }
.bill-tip b { font-weight: 600; }
.bill-journal-head { padding: 14px 16px 6px; }
#bill-table td.subject { max-width: 360px; }
#bill-table td.subject .s { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#bill-table td.case { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bill-table td.nowrap { white-space: nowrap; } #bill-table td.when { font-variant-numeric: tabular-nums; }
#bill-table td.amount { font-weight: 600; } #bill-table td.amount.plus { color: var(--ok-text); }
.bill-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px 16px; }
.bill-cards { padding: 4px 12px 0; }
.bill-cards .case-card .amount { white-space: nowrap; } .bill-cards .case-card .amount.plus { color: var(--ok-text); }
.bill-cards .case-card .c { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* the subscription (ADR 0042): the package card above the balance, two meters, the card line; a trial shows no credits */
.subs-card { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.subs-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.subs-name { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.subs-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.subs-title-row h2 { font-size: 20px; margin: 0; }
.subs-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subs-lead { margin: 0; font-size: 13.5px; color: var(--text-2); max-width: 70ch; }
.subs-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.subs-meter .t { font-size: 12.5px; color: var(--muted); align-items: baseline; }
.subs-meter .t b { font-size: 16px; font-weight: 600; color: var(--ink); }
.subs-meter .bar { height: 8px; background: var(--run-bg); }
.subs-stat { display: flex; flex-direction: column; gap: 4px; }
.subs-stat .t { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); align-items: baseline; }
.subs-stat .t b { font-size: 16px; font-weight: 600; color: var(--ink); }
.subs-alert { margin: 0; } .subs-alert .ico { flex: none; margin-top: 1px; }
.subs-cardline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.subs-cardline .ico { width: 18px; height: 18px; color: var(--muted); }
/* the package card's footer: the card it is charged to, the details its invoices carry (the owner 2026-11-21) */
.subs-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.subs-foot .subs-cardline { border-top: 0; padding-top: 0; flex-wrap: nowrap; align-items: flex-start; }
.subs-foot .subs-cardline > span { flex: 1; min-width: 0; line-height: 1.45; }
.subs-foot .subs-cardline .btn.link { flex: none; height: auto; padding: 0; line-height: 1.45; }   /* on the text's first line */
.subs-foot .subs-cardline .ico { flex: none; margin-top: 1px; }
.subs-foot .nb { white-space: nowrap; }
.bd-ok { color: var(--ok); white-space: nowrap; } .bd-ok .ico { width: 14px; height: 14px; color: var(--ok); vertical-align: -2px; margin-right: 2px; }
.bd-bad { color: var(--bad); }
dialog.dlg.bd-dlg { width: min(620px, calc(100vw - 32px)); }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 6px; }
.bd-grid .bd-wide { grid-column: 1 / -1; }
.bd-grid .opt { font-weight: 400; color: var(--muted); }
.bd-grid .opt::before { content: "("; } .bd-grid .opt::after { content: ")"; }
@media (max-width: 560px) { .bd-grid { grid-template-columns: 1fr; } }
#billing.trial .bill-kpi, #billing.trial .bill-chart-card, #billing.trial #topup-btn { display: none; }
#billing.trial #bill-table th.amount, #billing.trial #bill-table td.amount, #billing.trial .bill-cards .amount { display: none; }
dialog.dlg.pkg-dlg { width: min(760px, calc(100vw - 32px)); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.pkg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); color: var(--ink); font: inherit; }
.pkg:hover { border-color: var(--link); }
.pkg.on { border: 2px solid var(--link); padding: 13px; background: var(--run-bg); }
.pkg-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pkg-price b { font-size: 22px; font-weight: 650; }
.pkg-credits { font-size: 13px; color: var(--text-2); }
.pkg-note { min-height: 1.4em; margin: 10px 0 0; color: var(--text-2); }
.bill-invoices { margin-bottom: 14px; }
#inv-table td.nowrap { white-space: nowrap; }
@media (max-width: 860px) {
  .bill-filters { grid-template-columns: 1fr 1fr; }
  .bill-filters .bill-case, .bill-filters .bill-reset { grid-column: 1 / -1; }
  .bill-filters .bill-reset > span { display: none; }
}

/* ------------------------------------------------------------------------------------------ viewing as a user */
.impersonation-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
                     padding: 8px 16px; background: #B3261E; color: #fff; font-size: 13.5px; box-shadow: 0 2px 10px rgba(21, 24, 31, .18); }
.impersonation-bar .who { flex: 1; min-width: 0; }
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn { background: #fff; color: #9A2119; border-color: #fff; font-weight: 600; }
.impersonation-bar .btn:hover { background: #FBE5E3; }

/* data status: a heading row per kind of check (connectivity first) */
#checks tr.check-cat th { text-align: left; padding: 14px 0 4px; font-size: 13px; color: var(--ink-2, inherit); }

/* two-factor authentication (ADR 0021): the banner offering it, the QR code and key, the code fields */
.tfa-banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--warn-bg); color: var(--warn-text);
  border-bottom: 1px solid #EFD9A8; font-size: 13px; flex-wrap: wrap; }
.tfa-banner span { flex: 1; min-width: 200px; }
.tfa-qr svg { display: block; width: 232px; height: 232px; shape-rendering: crispEdges; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; }
.tfa-key { display: inline-block; margin-top: 8px; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em;
  word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; }
.code-input { font: 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; }
/* six digits wide wherever it is, the sign-in's code page too (the inputs' own rule makes every field the box's
   width) */
input.code-input:not([type=checkbox]):not([type=radio]):not([type=file]) { width: 8.5em; flex: none; }

/* card top-ups (ADR 0022): the credits and their euros side by side, Stripe's card form below */
.topup-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.topup-amounts input { font-size: 18px; }
.topup-note { margin: 8px 0 12px; min-height: 1.4em; }
.topup-card { min-height: 120px; padding: 4px 0; }
@media (max-width: 520px) { .topup-amounts { grid-template-columns: 1fr; } }
/* the sources an answer cites (case.js viewSource): a cited ruling or article is a link; the act or the ruling opens in
   the viewer, the cited article or point marked */
a.cite { color: var(--link); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
a.cite:hover { color: var(--link-hover); text-decoration-style: solid; }
/* the versions' choice stays on top of the text as it scrolls, over the box's whole width and from its very top edge
   (the sticky offset counts from inside the box's padding, 16px 20px: .so-body), so no line shows above or beside it */
.cv-bar { position: sticky; top: -16px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -16px -20px 0;
          padding: 24px 20px 10px; background: var(--surface); }
.cv-bar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cv-bar select { max-width: 100%; }
.cv-act, .cv-dec { font-size: 14px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.cv-seg { margin: 22px 0 6px; font-weight: 700; font-size: 15px; }
.cv-chapter { margin: 18px 0 6px; text-align: center; color: var(--text-2); }
.cv-chapter + .cv-chapter { margin-top: 10px; }
.cv-chapter .cv-unit-no { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.cv-chapter .cv-unit-title { font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); }
.cv-chapter[data-rank="part"] .cv-unit-title { font-size: 15px; }
.cv-chapter[data-rank="section"] .cv-unit-title { font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.cv-art { margin: 2px -10px; padding: 8px 10px; border-radius: var(--radius); }
.cv-art .cv-h { font-weight: 600; margin-bottom: 4px; }
.cv-art .cv-b, .cv-text .cv-p { white-space: pre-wrap; }
/* the parts of an article stand three quarters of a line apart (an empty line of the source was a whole line: 1.6em) */
.cv-art .cv-par + .cv-par { margin-top: 1.2em; }
.cv-text .cv-p { padding: 1px 6px; margin: 0 -6px; border-radius: 6px; }
/* the place a link opened at: a blue frame on the page's white (the owner, 2026-11-10: not a yellow fill), an
   inset line so the text does not move */
.cv-art.hit, .cv-p.hit { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--link); }
.cv-part { margin: 18px 0 6px; font-weight: 700; }
.cv-dec p { margin: 0 0 8px; }
/* an act's annexes beside its text (static/sources.js annexes): a list, each opening in the viewer or downloaded */
.tab .tab-n { font-size: 12px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 9px; background: var(--neutral-bg); color: var(--neutral-text); }
.tab .tab-n:empty { display: none; }
.ax-list { list-style: none; margin: -8px -8px 0; padding: 0; }
.ax-item { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); }
.ax-item:last-child { border-bottom: 0; }
.ax-open, button.ax-open { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; height: auto; padding: 10px 8px; border: 0;
  border-radius: var(--radius); background: none; color: var(--ink); font-weight: 400; text-align: left; text-decoration: none; }
a.ax-open:hover, button.ax-open:hover { background: var(--surface-2); color: var(--ink); }
.ax-open .ficon { flex: none; margin-top: 2px; color: var(--muted); }
.ax-open .ficon.pdf { color: var(--bad); } .ax-open .ficon.docx { color: var(--link); } .ax-open .ficon.xlsx { color: var(--ok); }
.ax-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ax-name { line-height: 1.35; overflow-wrap: anywhere; }
.ax-meta { font-size: 12px; color: var(--muted); }
.ax-save { flex: none; }

/* ------------------------------------------------------------------------------------------ the Data page (data.js) */
.dt-tabs { margin-bottom: 16px; }
.dt-search { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.dt-bar { display: flex; gap: 8px; }
.dt-bar .dt-q { flex: 1; min-width: 0; width: auto; }
.dt-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dt-filters select.chip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dt-filters .input.dt-in { width: 190px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.dt-filters .input.dt-date { width: auto; gap: 6px; color: var(--muted); }
.dt-filters .input.dt-date input { width: 130px; color: var(--ink); }
/* how the words are matched: both, the words or the meaning alone (static/data.js) */
.dt-filters .seg.dt-by { padding: 2px; border-radius: 999px; }
.dt-filters .seg.dt-by > .seg-item { flex: none; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.dt-count { display: flex; align-items: center; gap: 6px; min-height: 20px; margin: 0 2px 8px; font-size: 12.5px; color: var(--muted); }
.dt-list { display: flex; flex-direction: column; }
.dt-row { display: flex; gap: 16px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid #ECECE8; color: var(--ink); }
.dt-row:last-child { border-bottom: 0; }
.dt-row:hover { background: var(--surface-2); color: var(--ink); }
.dt-row .dt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dt-row .t { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-row .c { font-size: 12.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.dt-row .s { font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dt-row .dt-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 1px; }
.dt-empty { margin: 16px; }
.slideover .so-icon { flex: none; margin-top: 2px; color: var(--muted); }
.slideover .so-name { flex: 1; min-width: 0; }
.dt-sec { margin: 0 0 6px; }
.dt-sec > h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dt-sec .dt-extra { font-weight: 400; letter-spacing: 0; text-transform: none; }
.dt-sec p { margin: 0 0 6px; }
.dt-kv { font-size: 13.5px; }
.dt-table th { padding: 6px 12px 6px 0; background: none; }
.dt-table td { padding: 6px 12px 6px 0; font-size: 13px; vertical-align: top; }
.dt-link { overflow-wrap: anywhere; }
.dt-nw { white-space: nowrap; }
.dt-link:hover { text-decoration: underline; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { display: inline-block; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; line-height: 1.6; }
a.dt-chip:hover { border-color: var(--link); text-decoration: none; }
.dt-gaps { margin: 0; padding-left: 18px; }
.dt-pre { max-height: 50vh; overflow: auto; margin: 8px 0 0; padding: 10px; border-radius: var(--radius); background: var(--surface-2);
          font-size: 12px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 899.98px) {
  .dt-filters .input.dt-in { height: 32px; }
}
@media (max-width: 640px) {
  .dt-row { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .dt-row .dt-side { flex-direction: row; align-items: center; }
  .dt-filters select.chip, .dt-filters .input.dt-in { flex: 1 1 calc(50% - 4px); min-width: 0; max-width: none; width: auto; }
  .dt-filters .input.dt-date input { width: 100%; min-width: 0; }
  .dt-filters .seg.dt-by { flex: 1 1 100%; }
  .dt-filters .seg.dt-by > .seg-item { flex: 1 1 auto; padding: 0 8px; white-space: nowrap; }
}
