@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* LabZone design tokens (lz/web src/styles/_colors.scss) */
:root {
  --red: #ff1d25; --red-1: #da000a; --red-2: #b70000; --gunmetal: #002a32; --dark: #111517;
  --carolina: #1b98e0; --columbia: #c7e8f3; --apricot: #ffc6ac; --link: #15b0d4; --spacer: #f4f4f4;
  --bg: var(--spacer); --panel: #fff; --ink: #202331; --muted: #6b7280; --line: #e4e4e7;
  --accent: var(--red-1); --ok: #0a7a2f; --warn: #c25e00; --bad: var(--red-2);
  --zadanie: var(--carolina); --odpoved: var(--gunmetal); --predpoklad: #d97706; --technolog: #0a7a2f;
  --radius: 3px;
  font: 14px/1.5 "Montserrat", system-ui, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); height: 100vh; display: flex; flex-direction: column; }
header { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 20px; color: #fff;
  background: radial-gradient(ellipse 70% 140% at 85% 0%, rgb(218 0 10 / .28), transparent 70%), var(--dark); }
header .muted { color: #a1a1aa; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Nunito Sans", sans-serif; font-weight: 900; font-size: 18px; }
.brand img { height: 20px; width: auto; }
.brand .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: #a1a1aa; border-left: 1px solid #3f3f46; padding-left: 12px; }
.brand .title b { color: var(--red); }
.spacer { flex: 1; }
.status { padding: 3px 10px; border-radius: var(--radius); background: #3f3f46; text-transform: uppercase; letter-spacing: .06em; font-size: 11px !important; font-weight: 600; font-size: 13px; }
.status.caka_na_technologa { background: #d97706; } .status.dopytuje_sa { background: var(--carolina); } .status.schvalena { background: var(--ok); }
.status.vratena { background: var(--bad); } .status.mimo_katalogu { background: #7c3aed; }
.local { font-size: 12px; padding: 3px 9px; border-radius: var(--radius); border: 1px solid #3f3f46; color: #d4d4d8; }
.local::before { content: "●"; margin-right: 5px; color: #4ade80; }
.local.down::before { color: #f87171; }
.roles { display: flex; gap: 2px; background: #27272a; border-radius: var(--radius); padding: 2px; }
.roles label { padding: 4px 12px; border-radius: var(--radius); cursor: pointer; font-weight: 600; color: #d4d4d8; }
.roles label:has(input:checked) { background: var(--red-1); color: #fff; }
.roles input { display: none; }
button, select, input, textarea { font: inherit; }
button { border: 1px solid var(--gunmetal); background: #fff; color: var(--gunmetal); border-radius: var(--radius); padding: 6px 14px; cursor: pointer; font-weight: 600; transition: background .1s ease-in; }
button:hover { background: var(--spacer); }
header button, header select { background: transparent; color: #fff; border-color: #52525b; }
header button:hover { background: #27272a; } header select option { color: var(--ink); }
header select { max-width: 240px; padding: 6px 8px; border-radius: var(--radius); }
button.primary { background: var(--red-1); color: #fff; border-color: var(--red-1); }
button.primary:hover { background: var(--red); border-color: var(--red); }
button.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
button.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
main { flex: 1; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr) minmax(420px, 1.4fr); gap: 12px; padding: 12px; min-height: 0; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--gunmetal); padding: 12px 14px; overflow: auto; min-height: 0; }
.col.chat { display: flex; flex-direction: column; }
h2 { margin: 0 0 12px; font: 900 19px "Nunito Sans", sans-serif; color: var(--gunmetal); } h3 { margin: 18px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button { font-size: 12px; padding: 4px 10px; border-radius: var(--radius); background: #fff; border-color: var(--line); color: var(--ink); font-weight: 500; }
.chips button:hover { border-color: var(--red-1); color: var(--red-1); background: #fff; }
.messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.msg { padding: 9px 12px; border-radius: var(--radius); max-width: 92%; white-space: pre-wrap; }
.msg.obchodnik { align-self: flex-end; background: var(--gunmetal); color: #fff; } .msg.obchodnik .who { color: #a1a1aa !important; }
.msg.asistent { align-self: flex-start; background: var(--spacer); border-left: 3px solid var(--red-1); }
.msg.technolog { align-self: flex-start; background: #e6f4ea; border-left: 3px solid var(--ok); }
.msg .who { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.msg.pending { color: var(--muted); font-style: italic; }
#composer textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px; font-family: inherit; }
#composer textarea:focus, #param-table input:focus, #param-table select:focus { outline: 2px solid var(--carolina); outline-offset: -1px; }
.row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.product { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-weight: 600; }
.product select { flex: 1; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.n { text-align: right; white-space: nowrap; }
#param-table input, #param-table select { width: 100%; padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; }
#param-table tr.req td:first-child::after { content: " *"; color: var(--bad); }
.src { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--radius); color: #fff; margin-top: 3px; }
.src.zadanie { background: var(--zadanie); } .src.odpoved { background: var(--odpoved); }
.src.predpoklad { background: var(--predpoklad); } .src.technolog { background: var(--technolog); }
.src.default { background: #fff; color: var(--predpoklad); border: 1px solid var(--predpoklad); }
.src.missing { background: #fff; color: var(--bad); border: 1px dashed var(--bad); }
.ev { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.note { padding: 9px 12px; border-radius: var(--radius); background: var(--spacer); margin: 8px 0; }
.note.warn { background: #fdf0e4; border-left: 3px solid var(--warn); }
.history { padding-left: 16px; font-size: 12px; margin: 0; }
.history .technolog { color: var(--technolog); font-weight: 600; }
.history del { color: var(--bad); } .history ins { color: var(--ok); text-decoration: none; }
.calc-body { position: relative; }
.wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-size: 34px; font-weight: 800; color: rgba(194, 30, 30, .13); transform: rotate(-22deg); text-align: center; }
.rule { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
th { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px !important; }
tr.added { background: #e6f4ea; } tr.changed { background: #fff6e0; } tr.removed { background: #fde8e8; text-decoration: line-through; }
.totals td { border: 0; padding: 2px 6px; } .totals .big { font: 900 24px "Nunito Sans", sans-serif; color: var(--gunmetal); }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); padding: 4px 10px; font-weight: 700; transform: rotate(-3deg); margin: 8px 0; }
ul.list { padding-left: 18px; margin: 0; } ul.list.assume li { color: var(--predpoklad); }
dialog { width: min(1000px, 92vw); max-height: 86vh; border: 0; border-radius: var(--radius); border-top: 3px solid var(--red-1); padding: 20px; }
dialog .close { float: right; }
header small { font-weight: 400; color: #a1a1aa; }
.intro { background: #fff; border-bottom: 1px solid var(--line); padding: 0 20px; }
.intro summary { cursor: pointer; padding: 9px 0; font-size: 13px; list-style-position: inside; }
.intro summary b { color: var(--gunmetal); }
.intro-body { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 6px 0 18px; }
.intro h1 { margin: 0 0 8px; font: 900 28px/1.15 "Nunito Sans", sans-serif; color: var(--gunmetal); } .intro h1 b { color: var(--red); }
.intro h3 { margin-top: 4px; border-top: 2px solid var(--red-1); padding-top: 8px; }
.intro p { margin: 0 0 8px; } .intro .lead { font-size: 15.5px; }
.intro ul { margin: 0; padding-left: 18px; } .intro li { margin-bottom: 3px; }
.empty { line-height: 1.6; }
.channels { margin: -4px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.channels b { color: var(--gunmetal); font-weight: 600; }
footer { padding: 8px 20px 12px; font-size: 12px; color: var(--muted); }
footer a, .intro a { color: var(--red-1); }
@media (max-width: 1100px) { .intro-body { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 1100px) { main { grid-template-columns: 1fr; } body { height: auto; } }

/* ---- asistent domu ---- */
main { grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.5fr) minmax(360px, 1.1fr); }
.status.spracovava { background: var(--carolina); } .status.caka_na_schvalenie { background: #d97706; }
.status.schvalene { background: var(--ok); } .status.vratene, .status.chyba { background: var(--bad); }
.tabs { display: flex; gap: 2px; background: var(--spacer); border-radius: var(--radius); padding: 2px; margin: 4px 0 10px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--ink); padding: 6px 8px; }
.tabs button.on { background: var(--gunmetal); color: #fff; }
.pane label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.pane select, .pane textarea { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400; }
.upload { display: inline-flex !important; flex-direction: row !important; align-items: center; border: 1px dashed var(--muted); border-radius: var(--radius); padding: 5px 12px; cursor: pointer; font-weight: 600 !important; }
.upload:hover { border-color: var(--red-1); color: var(--red-1); }
.checks label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; padding: 2px 0; }
.archive { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.archive li { padding: 4px 6px; border-radius: var(--radius); cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.archive li:hover, .archive li.on { background: var(--spacer); }
.kind { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 64px; }
.result-body { position: relative; }
.result-body input, .result-body select, .result-body textarea { font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 6px; width: 100%; }
.result-body input[type=number] { width: 54px; }
.result-body textarea { min-height: 150px; resize: vertical; padding: 8px; line-height: 1.5; }
.result-body input:focus, .result-body textarea:focus, .result-body select:focus { outline: 2px solid var(--carolina); outline-offset: -1px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.meta b { color: var(--gunmetal); }
.cite { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: var(--radius); background: #e8f4fb; color: #0e5f8f; cursor: pointer; margin: 2px 2px 0 0; white-space: nowrap; border: 0; }
.cite:hover { background: var(--carolina); color: #fff; }
.cite.unv, .fact.unv { color: #9ca3af; } .cite.unv { background: #f3f4f6; }
.cite.unv::after { content: " · neoverené"; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: var(--radius); background: var(--ok); color: #fff; }
.badge.none { background: #fff; color: var(--bad); border: 1px dashed var(--bad); font-weight: 600; }
.warns { list-style: none; padding: 0; margin: 0; }
.warns li { padding: 7px 10px; margin-bottom: 5px; border-radius: var(--radius); background: #fdf0e4; border-left: 3px solid var(--warn); }
.outcome { font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.answer { white-space: pre-wrap; background: var(--spacer); border-left: 3px solid var(--red-1); padding: 10px 12px; border-radius: var(--radius); }
.answer.nf { border-left-color: var(--muted); color: var(--muted); }
.answer .ref { font-weight: 700; color: #0e5f8f; cursor: pointer; } .answer .ref.unv { color: #9ca3af; }
.progress { display: flex; gap: 10px; align-items: center; padding: 14px; background: #e8f4fb; border-radius: var(--radius); }
.spin { width: 16px; height: 16px; border: 2px solid var(--carolina); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cmp th:first-child { width: 150px; } .cmp td { font-size: 13px; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--bad); font-weight: 600; } .nm { color: var(--warn); font-weight: 600; }
.diff { font-size: 12px; } .diff del { color: var(--bad); } .diff ins { color: var(--ok); text-decoration: none; }
.preview-body .pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; align-items: center; }
.preview-body .pages button { padding: 2px 9px; font-size: 12px; } .preview-body .pages button.on { background: var(--gunmetal); color: #fff; }
.preview-body img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.pagetext { white-space: pre-wrap; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--spacer); padding: 10px; border-radius: var(--radius); overflow-x: auto; }
mark { background: #ffe58a; padding: 1px 0; box-shadow: 0 0 0 2px #ffe58a; }
.quote { font-size: 12px; font-style: italic; color: var(--muted); margin: 4px 0 8px; }
.hint { padding: 9px 12px; border-radius: var(--radius); background: #e8f4fb; border-left: 3px solid var(--carolina); margin-bottom: 10px; }
td .del { border: 0; color: var(--muted); padding: 0 6px; } td .del:hover { color: var(--bad); background: none; }
.input .channels { margin: 10px 0 6px; }
