/* ============================ karta aktivity ============================ */
.act { position: relative; padding: clamp(16px, 2.4vw, 26px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 14px; animation: fadeUp .35s var(--ease); }
.act::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mc, var(--accent)); }
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.act-type { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mc, var(--accent)); }
.act-type i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--mc, var(--accent)) 14%, transparent); font-size: 13px; letter-spacing: 0; }
.act-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.act-title { font-size: clamp(19px, 2.2vw, 24px); font-weight: 750; letter-spacing: -.02em; }
.act-prompt { margin: -6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.act-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.act-results:empty, .act-solo:empty { display: none; }
.act-results-head { margin-bottom: 8px; }
.act--participant .act-results { padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.explain { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); border-left: 4px solid var(--ok); font-size: 14.5px; line-height: 1.55; }
.explain--big { font-size: 20px; }

/* lektorské ovládanie */
.act--presenter { box-shadow: var(--shadow-1); }
.act-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.act-timer { display: inline-flex; gap: 2px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line-strong); }
.act-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.act-count b { color: var(--ink); font-size: 15px; }
.act-try { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 0 14px; }
.act-try > summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.act-try[open] { padding-bottom: 14px; }
.act-try[open] > summary { margin-bottom: 8px; }

/* plátno */
.act--screen { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 22px; }
.act--screen::before { display: none; }
.act--screen .act-head { display: none; }
.act--screen .act-title { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; }
.act--screen .act-prompt { font-size: clamp(18px, 1.8vw, 26px); color: var(--ink-2); margin: 0; }
.act-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: var(--muted); }
.act-foot span:first-child { font-weight: 800; color: var(--ink); }

/* ============================ anketa ============================ */
.poll-opts { display: grid; gap: 8px; }
.poll-opts--rich { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.poll-opt { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color .15s, background .15s, transform .15s var(--ease); }
.poll-opt:hover:not(:disabled) { border-color: var(--ink); transform: translateX(2px); }
.poll-opt:disabled { cursor: default; opacity: .85; }
.poll-letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-3); color: var(--ink-2); }
.poll-text { display: grid; gap: 4px; }
.poll-text strong { font-weight: 650; line-height: 1.35; }
.poll-text span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.poll-opt.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.poll-opt.is-picked .poll-letter { background: var(--accent); color: #fff; }
.poll-opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.poll-opt.is-correct .poll-letter { background: var(--ok); color: #fff; }
.poll-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.poll-opt.is-wrong .poll-letter { background: var(--bad); color: #fff; }

/* stĺpcové výsledky */
.bars { display: grid; gap: 10px; }
.barrow { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(80px, 2fr) 64px; gap: 12px; align-items: center; }
.barrow-label { font-size: 14px; font-weight: 600; line-height: 1.3; display: grid; }
.barrow-label small { color: var(--muted); font-weight: 500; font-size: 12px; }
.barrow-ok { color: var(--ok); margin-right: 6px; }
.barrow-track { height: 14px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.barrow-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mc, var(--accent)), color-mix(in srgb, var(--mc, var(--accent)) 60%, #fff)); transition: width .6s var(--ease); }
.barrow.is-ok .barrow-track i { background: var(--ok); }
.barrow-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; display: grid; }
.barrow-val small { color: var(--muted); font-weight: 500; font-size: 11px; }
.bars--big .barrow { grid-template-columns: minmax(200px, 1fr) 2fr 110px; gap: 20px; }
.bars--big .barrow-label { font-size: clamp(18px, 1.6vw, 26px); }
.bars--big .barrow-track { height: 34px; border-radius: 10px; }
.bars--big .barrow-val { font-size: clamp(22px, 2vw, 34px); }

/* ============================ mrak slov (3D guľa) ============================ */
.wc-form { gap: 8px; }
.wc-mine { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; }
.wc-results { display: grid; gap: 14px; }
.wc-results--compare { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.wc-before { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); opacity: .85; }
.sphere { position: relative; height: 320px; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.wc-sphere--big { height: min(62vh, 640px); }
.sphere-word { position: absolute; left: 0; top: 0; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; will-change: transform, opacity; transition: color .3s; }
.sphere-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.wc-toplist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.flatcloud { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: center; line-height: 1.2; font-weight: 800; }

/* ============================ škála / rebrík dôvery ============================ */
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.scale-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scale-items li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.scale-items--ladder { perspective: 900px; }
.scale-items--ladder li { margin-left: calc(var(--i) * 10px); transform: rotateX(8deg); transform-origin: bottom; box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--accent) calc(var(--i) * 6%), var(--line)); }
.scale-label { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.scale-btns { display: flex; gap: 4px; }
.scale-btn { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; transition: all .15s; }
.scale-btn:hover:not(:disabled) { border-color: var(--ink); }
.scale-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px var(--accent-soft); }
.scale-res { display: grid; gap: 12px; }
.scale-res-axis { display: flex; justify-content: space-between; margin-left: calc(38% + 12px); margin-right: 64px; font-size: 12px; color: var(--muted); }
.scale-row { display: grid; grid-template-columns: 38% 1fr 52px; gap: 12px; align-items: center; }
.scale-res--ladder .scale-row { padding-left: calc(var(--i) * 8px); }
.scale-row-label { font-size: 14px; font-weight: 650; line-height: 1.3; }
.scale-track { position: relative; height: 34px; border-radius: 10px; background: linear-gradient(90deg, var(--bad-soft), var(--warn-soft) 50%, var(--ok-soft)); }
.scale-dist { position: absolute; bottom: 0; width: 10px; margin-left: -5px; background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 4px 4px 0 0; }
.scale-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 38px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; transition: left .6s var(--ease); z-index: 2; }
.scale-ghost { position: absolute; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--accent); opacity: .65; }
.scale-ghost--legend, .scale-mark--legend { position: static; display: inline-block; vertical-align: middle; transform: none; }
.scale-ghost--legend { height: 12px; width: 4px; margin: 0 4px; }
.scale-mark--legend { width: 14px; min-width: 14px; height: 12px; padding: 0; border-radius: 3px; }
.scale-delta { text-align: right; font-variant-numeric: tabular-nums; }
.scale-delta .up { color: var(--ok); }
.scale-delta .down { color: var(--bad); }
.scale-res--big .scale-row-label { font-size: clamp(16px, 1.5vw, 24px); }
.scale-res--big .scale-track { height: 46px; }
.scale-res--big .scale-mark { height: 34px; font-size: 17px; }

/* ============================ odkazy ============================ */
.text-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.text-wall--big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.text-card { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; animation: fadeUp .3s var(--ease); }
.text-wall--big .text-card { font-size: 20px; font-weight: 600; }
.text-card--mine { display: grid; gap: 6px; background: var(--accent-soft); border-color: transparent; }
.text-mine { display: grid; gap: 8px; }

/* ============================ body / checklist ============================ */
.budget-left { font-size: 14px; color: var(--muted); }
.budget-left strong { font-size: 26px; color: var(--accent); margin-right: 4px; }
.budget-list { display: grid; gap: 8px; }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.budget-row small { display: block; color: var(--muted); font-size: 12.5px; }
.budget-ctl { display: flex; align-items: center; gap: 8px; }
.budget-pips { display: flex; align-items: center; gap: 3px; min-width: 120px; justify-content: center; }
.budget-pips i { width: 9px; height: 18px; border-radius: 3px; background: var(--accent); }
.budget-pips b { margin-left: 6px; font-size: 15px; }
.cl-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cl-group { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: var(--surface-2); }
.cl-group legend { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mc, var(--accent)); padding: 0 6px; }
.cl-custom { display: grid; gap: 8px; }

/* ============================ kvíz ============================ */
.quiz-progress { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.qdot { width: 22px; height: 8px; border-radius: 99px; border: 0; background: var(--surface-3); padding: 0; }
.qdot.is-cur { background: var(--ink); width: 34px; }
.qdot.is-done { background: var(--line-strong); }
.qdot.is-ok { background: var(--ok); }
.qdot.is-bad { background: var(--bad); }
.quiz-progress span { margin-left: auto; font-weight: 700; }
.quiz-q { display: grid; gap: 12px; }
.quiz-q h4 { font-size: 18px; line-height: 1.4; font-weight: 700; }
.quiz-context { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--line-strong); font-size: 14.5px; font-style: italic; }
.quiz-done { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.quiz-done h4 { font-size: 20px; margin-bottom: 4px; }
.quiz-review { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.quiz-review li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.quiz-review li.is-ok { border-left: 3px solid var(--ok); }
.quiz-review li.is-bad { border-left: 3px solid var(--bad); }
.quiz-review .link-btn { color: inherit; text-decoration: none; font-weight: 600; text-align: left; }
.quiz-summary { margin-top: 10px; font-size: 14px; color: var(--muted); }
.quiz-table { display: grid; gap: 6px; }
.quiz-trow { display: grid; grid-template-columns: 26px 1fr 120px 52px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 13.5px; }
.quiz-trow.is-cur { background: var(--accent-soft); }
.quiz-tn { font-weight: 800; color: var(--muted); }
.quiz-tq { line-height: 1.35; }
.quiz-tbar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.quiz-tbar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .5s var(--ease); }
.quiz-trow b { text-align: right; font-variant-numeric: tabular-nums; }
.quiz-stepper { gap: 6px; }
.quiz-screen { display: grid; gap: 22px; }
.quiz-screen-q h3 { font-size: clamp(26px, 2.8vw, 44px); margin-top: 8px; line-height: 1.15; }
.leader { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.leader-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; font-size: 15px; }
.leader-row strong { font-size: 18px; color: var(--accent); }
.leader-row small { color: var(--muted); }
.leader--compact .leader-row { font-size: 13px; }

/* 3D flip karty (mýtus / fakt) */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.flip { perspective: 1200px; min-height: 230px; }
.flip-inner { position: relative; height: 100%; min-height: 230px; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-1); overflow: auto; }
.flip-front p { font-size: 16px; font-weight: 650; line-height: 1.4; margin: 0; flex: 1; }
.flip-n { font-size: 11px; font-weight: 800; color: var(--mc, var(--accent)); letter-spacing: .1em; }
.flip-btns { display: flex; gap: 8px; }
.flip-btns .btn { flex: 1; }
.flip-back { transform: rotateY(180deg); background: var(--surface); }
.flip-back.is-ok { border-color: var(--ok); box-shadow: inset 0 4px 0 var(--ok); }
.flip-back.is-bad { border-color: var(--bad); box-shadow: inset 0 4px 0 var(--bad); }
.flip-verdict { font-size: 22px; font-weight: 800; }
.flip-back.is-ok .flip-verdict { color: var(--ok); }
.flip-back.is-bad .flip-verdict { color: var(--bad); }
.flip-you { font-size: 12px; font-weight: 700; color: var(--muted); }
.flip-back p { margin: 0; font-size: 14px; line-height: 1.5; }

/* ============================ triedenie ============================ */
.cls-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cls-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cls-item { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); transition: border-color .2s; }
.cls-item.is-ok { border-color: var(--ok); }
.cls-item.is-bad { border-color: var(--bad); }
.cls-text { font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.cls-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.cls-btn { padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 650; }
.cls-btn:hover:not(:disabled) { border-color: var(--ink); }
.cls-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cls-btn.is-correct { box-shadow: 0 0 0 2px var(--ok); }
.cls-why { font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.cls-results { display: grid; gap: 8px; }
.cls-rrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cls-rtext { font-size: 13.5px; line-height: 1.35; }
.cls-stack { display: flex; height: 24px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.cls-stack i { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; min-width: 0; overflow: hidden; transition: flex .5s var(--ease); }
.cls-stack i.is-correct { box-shadow: inset 0 0 0 3px #fff; }
.cls-results--big .cls-rtext { font-size: clamp(15px, 1.4vw, 21px); }
.cls-results--big .cls-stack { height: 34px; }
.tone-ok { background: var(--ok); } .tone-warn { background: var(--warn); } .tone-bad { background: var(--bad); } .tone-cyan { background: var(--cyan); } .tone-violet { background: var(--violet); } .tone-accent { background: var(--accent); } .tone-outline { background: var(--faint); } .tone-ink { background: var(--ink-2); }
.tone-text-ok { color: var(--ok); } .tone-text-warn { color: var(--warn); } .tone-text-bad { color: var(--bad); }
.tone-chip-ok { background: var(--ok-soft); color: var(--ok); } .tone-chip-warn { background: var(--warn-soft); color: var(--warn); } .tone-chip-bad { background: var(--bad-soft); color: var(--bad); }

/* ============================ matica ============================ */
.matrix { display: grid; gap: 6px; overflow-x: auto; }
.matrix-head, .matrix-row { display: grid; grid-template-columns: minmax(200px, 1fr) repeat(3, 92px); gap: 6px; align-items: center; }
.matrix-head span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.matrix-row { padding: 6px; border-radius: 12px; background: var(--surface-2); }
.matrix-label { font-size: 14px; font-weight: 600; line-height: 1.35; display: grid; gap: 4px; }
.matrix-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.tag--private { background: var(--violet-soft); color: var(--violet); }
.tag--untrusted { background: var(--warn-soft); color: var(--warn); }
.tag--external { background: var(--cyan-soft); color: var(--cyan); }
.tag--irreversible, .tag--physical { background: var(--bad-soft); color: var(--bad); }
.matrix-cell { height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 18px; color: #fff; }
.matrix-cell.tone-ok, .matrix-cell.tone-warn, .matrix-cell.tone-bad { background: var(--surface); }
.matrix-cell.is-on.tone-ok { background: var(--ok); border-color: var(--ok); }
.matrix-cell.is-on.tone-warn { background: var(--warn); border-color: var(--warn); }
.matrix-cell.is-on.tone-bad { background: var(--bad); border-color: var(--bad); }
.matrix-analysis:empty { display: none; }
.risk-panel { display: grid; gap: 8px; }
.risk-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.risk-meter .bar { height: 12px; }
.risk-meter .bar i { background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); }

/* ============================ ďalší token ============================ */
.nt-rounds { display: grid; gap: 14px; }
.nt-round { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.nt-round--res { background: transparent; border: 0; padding: 0; }
.nt-prefix { font-family: var(--mono); font-size: 17px; line-height: 1.5; }
.nt-prefix--big { font-size: clamp(24px, 2.6vw, 42px); }
.nt-caret { color: var(--accent); animation: blink 1s infinite; }
.nt-caret b { animation: none; color: var(--accent); background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.nt-dist { display: flex; gap: 10px; align-items: flex-end; height: 200px; padding-top: 10px; perspective: 800px; }
.nt-dist--big { height: min(46vh, 420px); gap: 18px; }
.nt-col { flex: 1; display: grid; grid-template-rows: 1fr auto auto; gap: 4px; height: 100%; text-align: center; min-width: 0; }
.nt-bars { display: flex; gap: 4px; align-items: flex-end; justify-content: center; transform: rotateX(10deg); transform-origin: bottom; }
.nt-bars i { width: 42%; border-radius: 6px 6px 2px 2px; transition: height .7s var(--ease); }
.nt-model { height: var(--h); background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
.nt-group { height: var(--g); background: linear-gradient(180deg, var(--cyan), color-mix(in srgb, var(--cyan) 60%, #000)); box-shadow: 4px 4px 0 color-mix(in srgb, var(--cyan) 30%, transparent); }
.nt-col code { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-dist--big .nt-col code { font-size: 20px; }
.nt-col small { font-size: 11px; color: var(--muted); }
.nt-legend { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.nt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.nt-guesses { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================ chat simulácia ============================ */
.chat { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; scroll-behavior: smooth; }
.chat--big { max-height: 70vh; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; display: grid; gap: 4px; animation: fadeUp .3s var(--ease); font-size: 15px; line-height: 1.55; }
.chat--big .msg { font-size: 20px; }
.msg-label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.msg--user { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg--bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--sys { justify-self: stretch; max-width: 100%; background: var(--ok-soft); border: 1px dashed var(--ok); font-family: var(--mono); font-size: 13px; }
.msg--tool { justify-self: start; background: var(--violet-soft); border: 1px solid var(--violet); font-family: var(--mono); font-size: 13px; }
.msg--doc { justify-self: stretch; max-width: 100%; background: var(--warn-soft); border: 1px solid var(--warn); font-size: 14px; }
.msg--attack { justify-self: stretch; max-width: 100%; background: var(--bad-soft); border: 1px solid var(--bad); }
.msg--note { justify-self: center; max-width: 100%; background: transparent; color: var(--muted); font-style: italic; text-align: center; font-size: 13.5px; }
.msg--approval { justify-self: stretch; max-width: 100%; background: var(--surface); border: 2px solid var(--warn); box-shadow: var(--shadow-2); }
.msg-note { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 6px; margin-top: 4px; }
.msg--user .msg-note { color: inherit; opacity: .7; }
.msg--typing { justify-self: start; display: flex; gap: 4px; background: var(--surface-2); padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: pulse 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; }
.msg--typing i:nth-child(3) { animation-delay: .4s; }

/* ============================ laboratórium ============================ */
.lab-intro { font-size: 15px; line-height: 1.6; }
.lab-files { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.lab-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lab-step { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.lab-step.is-done { background: var(--ok-soft); border-color: transparent; }
.lab-step-head { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; background: none; text-align: left; font-weight: 700; font-size: 15px; }
.lab-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: 14px; }
.lab-step.is-done .lab-n { background: var(--ok); color: #fff; }
.lab-step.is-open .lab-n { background: var(--ink); color: var(--bg); }
.lab-step-body { display: none; padding: 0 16px 16px 60px; gap: 12px; }
.lab-step.is-open .lab-step-body { display: grid; }
.lab-text { line-height: 1.65; }
.lab-check { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 4px; font-size: 14px; }
.lab-matrix { display: grid; gap: 6px; }
.lab-mrow { display: grid; grid-template-columns: 30px 1fr 120px 30px; gap: 10px; align-items: center; font-size: 13px; }
.lab-mrow .lab-n { width: 26px; height: 26px; font-size: 12px; }
.lab-mbar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.lab-mbar i { display: block; height: 100%; background: var(--ok); }
.lab-people { display: grid; gap: 6px; margin-top: 12px; }
.lab-person { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.lab-person.is-behind span:first-child { color: var(--warn); font-weight: 700; }
.lab-person .bar i { background: var(--ok); }

/* ============================ nástroje – spoločné ============================ */
.tool { display: grid; gap: 14px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tool-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-panel { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.tool-panel h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-out { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-height: 60px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tool-out--mono { font-family: var(--mono); font-size: 13px; }
.tool-metric { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tool-metric b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tool-metric small { font-size: 12px; color: var(--muted); }
.tool-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.finding--high { border-color: var(--bad); background: var(--bad-soft); }
.finding--med { border-color: var(--warn); background: var(--warn-soft); }
.finding--low { border-color: var(--line-strong); }
.finding-sev { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 99px; background: var(--surface); height: fit-content; }
.finding--high .finding-sev { color: var(--bad); }
.finding--med .finding-sev { color: var(--warn); }
.finding pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; background: var(--surface); padding: 8px; border-radius: 8px; max-height: 160px; overflow: auto; }
.drop { display: grid; place-items: center; gap: 6px; padding: 26px; border: 2px dashed var(--line-strong); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface); }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { font-size: 16px; }
.drop small { color: var(--muted); }
.ai-out { position: relative; }
.ai-badge { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }

@media (max-width: 860px) {
  .tool-grid, .tool-grid--3, .wc-results--compare { grid-template-columns: 1fr; }
  .barrow { grid-template-columns: 1fr 64px; }
  .barrow-track { grid-column: 1 / -1; grid-row: 2; }
  .scale-row { grid-template-columns: 1fr 44px; }
  .scale-track { grid-column: 1 / -1; }
  .scale-res-axis { margin: 0; }
  .scale-items li { grid-template-columns: 1fr; }
  .scale-items--ladder li { margin-left: 0; }
  .cls-rrow { grid-template-columns: 1fr; }
  .matrix-head, .matrix-row { grid-template-columns: minmax(150px, 1fr) repeat(3, 58px); }
  .lab-step-body { padding-left: 16px; }
  .quiz-trow { grid-template-columns: 22px 1fr 60px 44px; }
  .msg { max-width: 96%; }
}
