*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
.display { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; line-height: 1.05; }

/* Pasek szkicu */
.proto { background: var(--ink); color: #fff; font-size: 14px; padding: 8px 16px; text-align: center; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px 24px; }
.topbar-right { display: flex; align-items: center; justify-self: end; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo i { width: 7px; border-radius: 3px 3px 1px 1px; }
.logo i:nth-child(1) { height: 60%; background: var(--c1); } .logo i:nth-child(2) { height: 100%; background: var(--c2); } .logo i:nth-child(3) { height: 75%; background: var(--c3); }
.tabs { display: inline-flex; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }
.tabs button:disabled { opacity: .45; cursor: not-allowed; }
.saved { font-size: 14px; color: var(--ink-soft); }
body.locked .tabs, body.locked .who, body.locked .saved, body.locked .state { display: none; }
.auth { max-width: 460px; margin: 8vh auto 0; padding: 0 16px 80px; text-align: center; }
.auth h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 8px; }
.auth .lead { color: var(--ink-soft); margin: 0 0 24px; }
.auth form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth form[hidden] { display: none; }
.auth label { font-weight: 700; font-size: 14px; }
.auth input[type=email] { width: 100%; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); padding: 13px 16px; outline: none; }
.auth input.kod { width: 100%; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); padding: 15px 20px; outline: none; text-align: center; font-size: 22px; letter-spacing: .12em; }
.auth input.kod:focus { border-color: var(--accent); }
.auth .btn.big { width: 100%; justify-content: center; padding: 14px 26px; }
.auth input[type=email]:focus { border-color: var(--accent); }
.auth .err { color: #b3261e; font-size: 14px; min-height: 20px; }
.auth .devlink { background: var(--surface); border: 2px dashed var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 16px; font-size: 14px; word-break: break-all; text-align: left; }

/* ---------- EDYTOR ---------- */
.editor { max-width: 760px; margin: 0 auto; padding: 8px 16px 120px; }
.card { background: var(--surface); border-radius: 16px; border: 2px solid transparent; padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(27,31,59,.06); position: relative; }
.card.head { border-top: 8px solid var(--accent); }
.card.active { border-color: var(--accent); border-left-width: 8px; padding-left: 16px; }
.plain { width: 100%; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 6px 0; outline: none; }
.plain:hover { border-bottom-color: var(--line); }
.plain:focus { border-bottom-color: var(--accent); }
.plain::placeholder { color: #a6a9bd; }
textarea.plain.auto { resize: none; overflow: hidden; display: block; line-height: 1.45; }
.title-in { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; font-size: 40px; line-height: 1.1; }
.q-in { font-size: 19px; font-weight: 700; }
.desc-in { font-size: 15px; color: var(--ink-soft); }
.qrow { display: flex; gap: 14px; align-items: flex-start; }
.qrow .grow { flex: 1; min-width: 0; }
.q-no { font-size: 19px; font-weight: 700; color: var(--ink-soft); line-height: 1.4; padding-top: 1px; min-width: 1.6em; }
.type { border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); min-width: 210px; cursor: pointer; }
.collapsed { cursor: pointer; }
.collapsed .q-text { font-weight: 700; font-size: 18px; }
.collapsed .q-meta { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.collapsed .q-text.empty { color: #a6a9bd; }
.req-star { color: var(--danger); margin-left: 4px; }

.opts { margin: 14px 0 4px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.mark { flex: none; width: 20px; height: 20px; border: 2.5px solid var(--dot, var(--line)); background: color-mix(in srgb, var(--dot, #fff) 18%, #fff); }
.mark.round { border-radius: 50%; } .mark.square { border-radius: 5px; }
.opt .plain { padding: 6px 0; }
.opt.ghost .mark { --dot: #d5d6e2; background: #fff; }
.opt.ghost .plain::placeholder { color: #a6a9bd; }
.x { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-soft); flex: none; }
.x:hover { background: var(--bg); color: var(--ink); }
.special { font-style: italic; color: var(--ink-soft); padding: 6px 0; flex: 1; border-bottom: 2px dotted var(--line); }
.addlinks { font-size: 15px; color: var(--ink-soft); margin: 6px 0 0 30px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-strong); font-weight: 700; cursor: pointer; }
.limit { margin-top: 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.limit select, .scale-range select { border: 2px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; }
.scale-range { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.scale-lab { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.scale-lab b { width: 26px; text-align: center; }
.short-demo { margin-top: 14px; color: #a6a9bd; border-bottom: 2px dotted var(--line); width: 60%; padding: 6px 0; font-size: 15px; }

.foot { display: flex; justify-content: flex-end; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; flex-wrap: wrap; }
.icon { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-soft); }
.icon:hover { background: var(--bg); color: var(--ink); }
.icon svg { width: 20px; height: 20px; }
.sep { width: 1px; height: 26px; background: var(--line); margin: 0 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--accent-strong); }
.switch input:checked::after { left: 19px; }
.addq { display: flex; justify-content: center; }
.finish { margin-top: 28px; background: var(--surface); border-radius: 16px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.finish p { margin: 0; flex: 1 1 320px; color: var(--ink-soft); }
.finish b { color: #1f7a52; }
.finish-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.saved { color: #1f7a52; font-weight: 700; }
.share-card { display: flex; gap: 24px; align-items: center; background: var(--surface); border-radius: 20px; padding: 24px; margin: 8px auto 24px; text-align: left; width: fit-content; max-width: 100%; flex-wrap: wrap; justify-content: center; }
.qr { width: 140px; height: 140px; border-radius: 12px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.share-code { font-size: 44px; letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent-strong); color: #fff; font-weight: 700; padding: 13px 26px; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn.quiet { background: var(--surface); color: var(--ink); border: 2px solid var(--line); padding: 11px 22px; }

/* ---------- UCZESTNIK ---------- */
.phone-wrap { display: flex; justify-content: center; padding: 8px 16px 48px; }
.phone { width: 390px; max-width: 100%; min-height: 720px; background: var(--bg); border: 10px solid var(--ink); border-radius: 40px; padding: 22px 18px; display: flex; flex-direction: column; }
.ptop { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); min-height: 34px; }
.back { border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 6px 2px; font-size: 15px; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 4px 0 14px; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.pcard { background: var(--surface); border-radius: 16px; padding: 20px 18px; }
.pcard h2 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.pcard .hint { color: var(--ink-soft); font-size: 15px; margin: 0 0 4px; }
.tiles { display: grid; gap: 10px; margin-top: 16px; }
.tile { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: center; font-size: 17px; }
.tile .mark { --dot: var(--c); }
.tile.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.tile.on .mark { background: var(--c); }
.tile[disabled] { opacity: .45; cursor: default; }
.picked { font-size: 14px; color: var(--ink-soft); margin-top: 10px; min-height: 20px; }
.pfield { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; margin-top: 12px; }
.pfield:focus { outline: none; border-color: var(--accent); }
.scale { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; margin-top: 18px; }
.scale button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 0; font-weight: 800; font-size: 18px; cursor: pointer; }
.scale button.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.ends { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.ends span:last-child { text-align: right; }
.pnext { margin-top: auto; padding-top: 16px; }
.pnext .btn { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: default; }
.center { margin: auto 0; text-align: center; }
.center h1 { font-size: 34px; margin: 0 0 10px; }
.center p { color: var(--ink-soft); margin: 0 0 22px; }
.req-note { font-size: 13px; color: var(--danger); margin-top: 8px; }
.state { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--ink-soft); }
.state pre { white-space: pre-wrap; background: var(--surface); border-radius: 12px; padding: 12px; max-height: 240px; overflow: auto; }

/* ---------- MATERIAŁY ---------- */
.drop-wrap { margin-top: 14px; text-align: left; }
.drop { border: 2.5px dashed #c5c8dc; border-radius: 16px; padding: 22px; text-align: center; background: rgba(255,255,255,.5); cursor: pointer; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.drop-title { font-weight: 700; margin-bottom: 4px; }
.file { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.file .ok { color: #1f9d6b; font-weight: 800; padding-top: 2px; }
.file .preview { font-size: 13px; color: var(--ink-soft); margin-top: 4px; white-space: pre-wrap; }
.opt-switches { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0 0 30px; }
.opt-switch { font-size: 15px; }
/* ---------- PODPOWIEDZI AI ---------- */
.ai-help { margin-top: 14px; }
.ai-btn { border: 2px solid #d9dcfb; background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.ai-btn:hover { border-color: var(--accent); }
.ai-menu, .ai-panel { margin-top: 10px; border: 2px solid #d9dcfb; border-radius: 14px; background: #fbfbff; overflow: hidden; }
.ai-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 14px; cursor: pointer; font-size: 15px; }
.ai-item:hover { background: var(--accent-soft); }
.ai-item:last-child { border-bottom: 0; }
.ai-panel { padding: 12px 14px; }
.ai-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ai-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ai-row .note { font-size: 13px; color: var(--ink-soft); }
.ai-foot { display: flex; gap: 16px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-wait { color: var(--ink-soft); margin: 6px 0; }
.ai-err { color: var(--danger); font-size: 14px; margin: 4px 0; }
.ai-opt { margin: 3px 0; }
.btn.quiet.danger { color: #b3261e; border-color: #e8c4c0; }
.btn.quiet.danger:hover { background: #fbeceb; }
.btn.quiet.danger:disabled { color: var(--ink-soft); border-color: var(--line, #e3e1ea); opacity: .45; cursor: not-allowed; background: transparent; }
.btn.quiet.danger:not(:disabled) { background: #fbeceb; }
.btn.small { padding: 8px 16px; font-size: 14px; } .btn.quiet.small { padding: 6px 12px; }
/* ---------- NOWE TYPY ---------- */
.num-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--dot, var(--accent)); color: #fff; font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.ghost-dot { background: #d5d6e2; }
.numin { display: inline-flex; align-items: center; gap: 8px; }
.numin input { width: 110px; border: 2px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.axes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.axes .note { grid-column: 1 / -1; }
.stmt { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 10px; }
.stmt-q { font-weight: 600; }
.scale.small { margin-top: 8px; } .scale.small button { padding: 9px 0; font-size: 15px; }
.rank { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--c); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; }
.tile.on .rank { background: var(--c); color: #fff; }
.guess-val { text-align: center; font-size: 64px; margin: 18px 0 6px; color: var(--accent-strong); }
.range { width: 100%; accent-color: var(--accent-strong); }
.axis-row { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
/* ---------- WYNIKI ---------- */
.results { max-width: 820px; margin: 0 auto; padding: 8px 16px 80px; }
.rcard { position: relative; background: var(--surface); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.rcard:has(.show-one) h2 { padding-right: 56px; }
.rcard h2 { font-size: 20px; margin: 0 0 4px; }
.rmeta { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.rbar { display: grid; grid-template-columns: minmax(120px, 40%) 1fr 70px; gap: 12px; align-items: center; margin: 8px 0; font-size: 15px; }
.rbar .track { height: 26px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.rbar .fill { height: 100%; border-radius: 8px; }
.rbar .val { text-align: right; font-weight: 700; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 18px 8px; min-height: 220px; }
.cloud span { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; line-height: 1; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-top: 8px; }
.cols div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 14px; }
.cols i { display: block; width: 100%; background: var(--accent); border-radius: 8px 8px 2px 2px; }
.avg { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; font-size: 44px; }
.quotes { display: grid; gap: 8px; }
.quotes div { background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.sample { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 4px 0 14px; }
.res-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; }
.tabs.small button { padding: 6px 14px; font-size: 14px; }
.sample-badge { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #8a5a00; background: #fff3d6; border-radius: 999px; padding: 5px 10px; }
.show-one { position: absolute; top: 16px; right: 16px; border: 0; background: none; color: var(--accent-strong); cursor: pointer; padding: 6px; border-radius: 10px; line-height: 0; }
.copy-slide { position: absolute; top: 60px; right: 16px; border: 0; background: none; color: var(--accent-strong); cursor: pointer; padding: 6px; border-radius: 10px; line-height: 0; }
.copy-slide:hover { background: var(--accent-soft); }
.copy-slide svg { width: 28px; height: 28px; }
.copy-slide.copied { color: #1f8a4c; }
.show-one:hover { background: var(--accent-soft); }
.show-one svg { width: 30px; height: 30px; }
.screen-mode .rcard { min-height: 62vh; padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; }
.screen-mode .rcard h2 { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; margin-bottom: 10px; }
.screen-mode .rbar { font-size: 19px; grid-template-columns: minmax(160px, 38%) 1fr 90px; margin: 12px 0; }
.screen-mode .rbar .track { height: 40px; }
.screen-mode .cloud { --k: 1.45; gap: 10px 26px; }
.screen-mode .quotes div { font-size: 20px; padding: 14px 18px; }
.screen-mode .stmt-label { font-size: 18px; }
.screen-nav { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 700; }
body.presenting .proto, body.presenting .topbar, body.presenting .state, body.presenting .res-bar { display: none; }
.screen-mode .cols { --colh: 30vh; height: calc(var(--colh) + 50px); }
body.presenting .screen-mode .cols { --colh: 40vh; }
/* wyniki w stylu Mentimetera */
.wave-wrap { position: relative; }
.wave { display: block; width: 100%; height: auto; }
.avg-dot { position: absolute; transform: translate(-50%, -50%); min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.correct-tag { position: absolute; top: -6px; transform: translateX(-50%); background: #e6f6ee; color: #136b48; border-radius: 8px; padding: 3px 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.stmt-res { margin: 6px 0 14px; }
.stmt-label { font-size: 15px; color: var(--ink-soft); margin-bottom: 2px; }
.rank-row { display: flex; gap: 14px; align-items: flex-end; margin: 10px 0; }
.rank-no { font-size: 20px; width: 30px; }
.track.big { height: 30px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.track.big .fill { height: 100%; border-radius: 10px; }
.grid-res { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.grid2 { width: min(100%, 340px); height: auto; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; min-width: 200px; }
.legend li { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
/* ---------- START I ASYSTENT ---------- */
.start { max-width: 720px; margin: 6vh auto 0; padding: 0 16px 80px; text-align: center; }
.start h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.start .lead { color: var(--ink-soft); margin: 0 0 24px; }
.brief { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px 12px; text-align: left; box-shadow: 0 6px 24px rgba(91,106,240,.10); }
.brief:focus-within { border-color: var(--accent); }
.brief textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 110px; background: transparent; font-size: 17px; }
.brief textarea::placeholder { color: #a6a9bd; }
.brief-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; font-size: 14px; cursor: pointer; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip select { border: 0; background: transparent; font-weight: 700; padding: 0; }
.send { height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent-strong); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.send[disabled] { background: var(--line); color: var(--ink-soft); cursor: default; }
.files { font-size: 14px; color: var(--ink-soft); margin-top: 8px; text-align: left; }
.or { margin: 22px 0 12px; color: var(--ink-soft); font-size: 14px; }
.chat { max-width: 720px; margin: 0 auto; padding: 8px 16px 80px; }
.msg { margin: 12px 0; max-width: 85%; line-height: 1.5; }
.msg.me { margin-left: auto; background: var(--accent-soft); border-radius: 16px 16px 4px 16px; padding: 10px 14px; width: fit-content; }
.msg.ai { color: var(--ink); }
.msg.ai b { display: block; font-size: 13px; color: var(--accent-strong); margin-bottom: 2px; }
.choices { background: var(--surface); border-radius: 16px; border: 2px solid var(--line); overflow: hidden; margin: 10px 0; }
.choices h3 { font-size: 16px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 13px 16px; cursor: pointer; font-size: 16px; }
.choice:hover { background: var(--bg); }
.choices-hint { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
.choice.pickable .choice-text { flex: 1; }
.choice-go { font-size: 14px; font-weight: 700; color: var(--accent-strong); opacity: .55; white-space: nowrap; }
.choice.pickable:hover { background: var(--accent-soft); }
.choice.pickable:hover .choice-go { opacity: 1; }
.choice.pickable:hover .num { background: var(--accent-strong); color: #fff; }
.choice .num { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.choice input { flex: 1; border: 0; outline: none; font-size: 16px; background: transparent; }
.choices-foot { display: flex; justify-content: flex-end; padding: 10px 12px; }
.sim { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 18px; }
@media (max-width: 600px) { .qrow { flex-direction: column; } .type { width: 100%; } .title-in { font-size: 32px; } }
/* --- program (nie szkic) --- */
.topbar a.brand { color: inherit; text-decoration: none; }
.qr-box { width: 160px; height: 160px; flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.share-link { font-weight: 700; word-break: break-all; }
.closed-note { background: #fff4e0; border-radius: 12px; padding: 10px 14px; margin: 0 auto 16px; max-width: 520px; font-size: 14px; }
body.mode-take .tabs, body.mode-take .saved, body.mode-take .who { display: none; }
body.mode-take .phone { border: 0; min-height: 0; border-radius: 0; background: transparent; width: 640px; padding: 8px 16px; }
body.mode-take .phone-wrap { padding-top: 16px; }
body.mode-take .topbar { display: flex; justify-content: center; }

/* Podgląd w edytorze: ramka telefonu ma stały rozmiar, treść przewija się w środku, „Dalej” zostaje na dole. */
body.mode-editor .phone { height: min(760px, calc(100vh - 150px)); min-height: 560px; overflow: hidden; }
body.mode-editor .phone .pcard { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
body.mode-editor .phone .center { overflow-y: auto; max-height: 100%; }
body.mode-editor .phone .pnext { flex: none; margin-top: 0; }


/* Wybór urządzenia w podglądzie i wygląd ankiety na komputerze (ta sama szerokość co na prawdziwej stronie uczestnika). */
.device-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 12px; }
body.mode-editor .phone.desk { width: min(980px, 100%); border-width: 6px; border-radius: 18px; padding: 28px 24px; }
body.mode-editor .phone.desk > * { width: 100%; max-width: 640px; align-self: center; }

/* Wyniki „Na ekranie” (rzutnik): podpisy muszą być czytelne z końca sali. */
.screen-mode .cols div { font-size: clamp(20px, 2.2vw, 36px); font-weight: 700; gap: 4px; }
.screen-mode .cols div span { font-weight: 700; }
.screen-mode .ends { font-size: clamp(18px, 1.9vw, 30px); margin-top: 14px; }
.screen-mode .rmeta { font-size: clamp(16px, 1.5vw, 24px); }
.screen-mode .avg { font-size: clamp(56px, 6vw, 96px); }
.screen-mode .avg + .note { font-size: clamp(18px, 1.8vw, 28px); }
.screen-mode .rbar { font-size: clamp(20px, 2vw, 32px); }
.screen-mode .stmt-label { font-size: clamp(18px, 1.9vw, 30px); }
.screen-mode .avg-dot { min-width: 46px; height: 46px; border-radius: 23px; font-size: 20px; }
.screen-mode .quotes div { font-size: clamp(20px, 2vw, 32px); }
.screen-mode .rank-no { font-size: clamp(20px, 2vw, 32px); }
.screen-mode .legend { font-size: clamp(18px, 1.8vw, 28px); }
.screen-mode .screen-nav { font-size: clamp(16px, 1.5vw, 22px); }

/* Pełny ekran wyników (rzutnik): biała nakładka na cały ekran, jak ekran z kodem QR. Bez przycisków; całość skaluje się (--fit), żeby zawsze mieściła się na ekranie. */
body.presenting { overflow: hidden; background: #fff; }
body.presenting .results { --fit: 1; position: fixed; inset: 0; z-index: 50; background: #fff; max-width: none; margin: 0; padding: 7vh 6vw 4vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
body.presenting .results .rcard { background: #fff; box-shadow: none; border-radius: 0; padding: 0; min-height: 0; margin: 0; justify-content: flex-start; }
body.presenting .results .rcard h2 { font-size: clamp(34px, min(5vw, 8vh), 72px); margin-bottom: 2vh; }
body.presenting .rmeta { font-size: calc(clamp(18px, 1.8vw, 28px) * var(--fit)); }
body.presenting .avg { font-size: calc(clamp(64px, min(8vw, 13vh), 120px) * var(--fit)); }
body.presenting .avg + .note { font-size: calc(clamp(22px, 2.4vw, 36px) * var(--fit)); }
body.presenting .screen-mode .cols { --colh: calc(32vh * var(--fit)); }
body.presenting .cols div { font-size: calc(clamp(26px, min(3.2vw, 5vh), 52px) * var(--fit)); }
body.presenting .ends { font-size: calc(clamp(22px, min(2.6vw, 4vh), 40px) * var(--fit)); }
body.presenting .rbar { font-size: calc(clamp(24px, min(2.8vw, 4.4vh), 44px) * var(--fit)); grid-template-columns: minmax(200px, 36%) 1fr 20%; }
body.presenting .rbar .track { height: calc(5.5vh * var(--fit)); }
body.presenting .screen-mode .cloud { --k: calc(2 * var(--fit)); }
body.presenting .quotes div { font-size: calc(clamp(24px, min(2.6vw, 4vh), 40px) * var(--fit)); background: #f3f1ec; }
body.presenting .stmt-label, body.presenting .legend, body.presenting .rank-no { font-size: calc(clamp(22px, min(2.4vw, 3.8vh), 36px) * var(--fit)); }
body.presenting .show-one, body.presenting .copy-slide, body.presenting .screen-nav { display: none; }

.brief-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.brief-input { position: relative; }
.brief-input textarea { padding-bottom: 38px; }
.brief-input .mic-btn { position: absolute; right: 0; bottom: 4px; }
.mic-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #8b8fa8; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.mic-btn:hover { background: var(--bg); color: var(--ink-soft); }
.mic-btn svg { width: 18px; height: 18px; }
.mic-btn.on { color: #b3281b; background: #ffe3de; }
.brief-state { font-size: 14px; color: var(--ink-soft); min-height: 20px; padding: 0 4px 6px; }
.brief-state.err { color: var(--danger); }

.file .warn { color: #b36b00; font-weight: 800; }
.file .warn + div .note { color: #8a5a00; }
.steps { display: grid; gap: 14px; text-align: left; }
.step { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 14px 18px 16px; }
.step-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 15px; }
.step .drop-wrap { margin-top: 0; }
.step .brief { background: transparent; border: 0; box-shadow: none; padding: 0; }
.step .brief textarea { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px 38px; min-height: 120px; }
.step .brief textarea:focus { border-color: var(--accent); }
.step .brief-input .mic-btn { right: 8px; bottom: 8px; }
.step .brief-row { border-top: 0; padding-top: 0; margin-top: 8px; }
.step .params .note { margin: 0 0 6px; }
.start-go { display: flex; align-items: center; gap: 14px; justify-content: flex-end; margin-top: 4px; }

/* Telefon, ekran uczestnika: mniej pustego miejsca nad paskiem postępu */
@media (max-width: 600px) {
  body.mode-take .topbar { padding: 8px 16px 0; }
  body.mode-take .phone-wrap { padding-top: 0; }
  body.mode-take .phone { padding: 0 16px; }
  body.mode-take .ptop { min-height: 28px; }
  body.mode-take .bar { margin: 2px 0 12px; }
}
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 176px; border: 2px solid var(--line); background: #fff; color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #b7b9c9; }
.pill.on { color: #1f7a52; border-color: #bfe5d1; background: #eef9f3; }
.pill.on i { background: #1f9d6b; }
.pill:hover { border-color: var(--accent); }
.grp { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grp select { font: inherit; font-weight: 700; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); max-width: 100%; }
.icon-text { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink-soft); padding: 4px 6px; border-radius: 8px; }
.icon-text:hover { background: var(--surface); color: var(--ink); }
.group-form .note { margin: 6px 0 10px; }
.group-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.group-row .pfield { flex: 1 1 220px; margin: 0; }
.res-bar { justify-content: space-between; }
.res-main, .res-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.res-actions { margin-left: auto; }
.res-actions .btn, .res-actions .pill { flex: none; }
.res-count { font-weight: 700; color: var(--ink-soft); }
.access { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.access input { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #b7b9c9; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.access input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.access input:checked { background: #1f9d6b; }
.access input:checked::after { left: 23px; }
.access input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.access span { display: inline-block; min-width: 150px; }
.access input:checked + span { color: #1f7a52; }
.preview-switch { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .topbar { grid-template-columns: 1fr auto; } .topbar > .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }
.acct-name { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.acct-name:hover { text-decoration: underline; }
.acct-link { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.acct-link:hover { color: var(--ink); }
.acct-form { margin: 0; display: inline-flex; }
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.editor-tools { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.editor-tools.off { visibility: hidden; }
/* Górny pasek: te same wymiary na każdym ekranie, niezależnie od bazowej czcionki strony. */
.topbar { box-sizing: border-box; height: 78px; padding-top: 0; padding-bottom: 0; font-size: 16px; line-height: 1.4; }
.topbar .tabs a, .topbar .tabs button { font: inherit; font-weight: 700; line-height: 1.4; }
.topbar .brand { font-size: 16px; line-height: 1.4; }
.topbar-right > * { line-height: 1.4; }
@media (max-width: 640px) { .topbar { height: auto; padding-top: 12px; padding-bottom: 12px; } }
.access.off { visibility: hidden; }
.access-placeholder { display: inline-block; width: 206px; }

/* przeciąganie pytań */
.card .grip { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 20px; padding: 0; border: 0; background: none; color: var(--ink-soft); opacity: .7; cursor: grab; display: flex; align-items: center; justify-content: center; }
.card .grip svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.card:hover .grip, .card .grip:focus-visible { opacity: 1; }
.card .grip:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card.drop-before { box-shadow: 0 -4px 0 var(--accent); }
.card.drop-after { box-shadow: 0 4px 0 var(--accent); }

/* raport: nagłówek i wydruk (wykresy są te same co w wynikach) */
.results.report { max-width: 820px; }
.report-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin: 4px 0 16px; }
.report-head { background: var(--surface); border-radius: 16px; padding: 30px 28px 18px; margin-bottom: 14px; }
.report-kicker { margin: 0 0 4px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.report-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); overflow-wrap: anywhere; }
.report-desc { margin: 0 0 14px; color: var(--ink-soft); font-size: 17px; }
.report-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 14px 0 0; padding: 14px 0 0; border-top: 2px solid var(--line); }
.report-facts dt { font-size: 13px; color: var(--ink-soft); }
.report-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 20px; }
.report-empty { padding: 14px 16px; background: var(--surface); border-radius: 12px; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .topbar, .no-print, #feedbackBtn, [class*="feedback"] { display: none !important; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .results.report { max-width: none; padding: 0; }
  .report .rcard, .report .report-head { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
}

/* tryb testu */
.quiz-switch { display: inline-flex; margin-top: 14px; }
.quiz-note { margin: 6px 0 0; }
.mark.pick { padding: 0; cursor: pointer; display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; }
.mark.pick:hover { border-color: #1f9d6b; }
.mark.pick.on { background: #1f9d6b; border-color: #1f9d6b; }
.quiz-score { margin: 4px 0 10px; font-weight: 700; color: #1f9d6b; }

/* przeciąganie odpowiedzi */
.row-grip { flex: none; width: 18px; height: 24px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--ink-soft); opacity: .35; cursor: grab; display: flex; align-items: center; justify-content: center; }
.row-grip svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.opt:hover .row-grip, .row-grip:focus-visible { opacity: 1; }
.row-grip:active { cursor: grabbing; }
.opt.row-dragging { opacity: .4; }
.opt.row-before { box-shadow: 0 -3px 0 var(--accent); }
.opt.row-after { box-shadow: 0 3px 0 var(--accent); }
/* Pasek: przyciski środkowe zawsze na środku; „Zamknięta” przy lewej, „Podgląd” przy prawej krawędzi formularza. */
.topbar { position: relative; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.topbar-right { white-space: nowrap; }
body { --colw: 760px; }
body[data-view="results"] { --colw: 820px; }
.subbar { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; margin-top: 2px; width: min(var(--colw), 100%); box-sizing: border-box; padding: 0 16px; height: 36px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.subbar > * { pointer-events: auto; }
.subbar .access span { min-width: 0; }
body.mode-editor #root { padding-top: 40px; }
@media (min-width: 1420px) {
  .subbar { top: 0; margin-top: 0; height: 78px; }
  body.mode-editor #root { padding-top: 0; }
}
@media (max-width: 640px) { .subbar { position: static; transform: none; grid-column: 1 / -1; width: auto; } body.mode-editor #root { padding-top: 0; } }
.win-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; white-space: nowrap; margin-right: 6px; }
.win-check[hidden] { display: none; }
.win-check input { width: 16px; height: 16px; accent-color: var(--accent-strong); margin: 0; cursor: pointer; }
.is-off { opacity: .45; cursor: not-allowed; }
.is-off input { cursor: not-allowed; }
.acct-mid { display: inline-block; min-width: 118px; }

.myans-list { display: grid; gap: 12px; margin: 8px 0 16px; }
.myans { background: var(--surface, #fff); border-radius: 14px; padding: 12px 14px; }
.myans-q { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.myans-a { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- EKRAN GŁÓWNY: Moje badania ---------- */
.home { max-width: 1040px; margin: 4vh auto 0; padding: 0 20px 80px; }
.home h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.home .lead { color: var(--ink-soft); margin: 0 0 28px; }
.home-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.home-h h3 { margin: 0; font-size: 19px; }
.home-new { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 34px; }
.nw { width: 190px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px; text-align: left; color: inherit; text-decoration: none; }
.nw:hover { border-color: var(--accent); }
.nw .plus { height: 84px; border-radius: 12px; display: grid; place-items: center; font-size: 44px; font-weight: 300; color: #fff; margin-bottom: 10px; }
.nw b { display: block; font-size: 15.5px; } .nw span { font-size: 13px; color: var(--ink-soft); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hc { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.hc:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(27,31,59,.10); }
.hc .th { height: 118px; display: grid; place-items: center; color: #fff; position: relative; }
.hc .th .kind { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 800; background: #ffffffe6; color: var(--ink); border-radius: 8px; padding: 2px 8px; }
.hc .bd { padding: 12px 14px 14px; }
.hc .bd b { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.hc .bd .mt { font-size: 13px; color: var(--ink-soft); }
.hc .bd .st { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 2px 8px; }
.st.ok { background: #e3f6ee; color: #1f7a52; } .st.no { background: #efeff4; color: var(--ink-soft); }
.auth input.txt, .auth select.txt { width: 100%; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); padding: 13px 18px; outline: none; }
.auth input.txt:focus, .auth select.txt:focus { border-color: var(--accent); }

/* ---------- EDYTOR ANKIETY (styl z makiety) ---------- */
.ed-crumb { margin: 0 2px 10px; font-size: 14px; } .ed-crumb a { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
.lgb { background: #fff7e0; border: 2px solid var(--c4); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 14.5px; }
.lgb.info { background: var(--accent-soft); border-color: var(--accent); }
.vt { width: 100%; border-collapse: collapse; margin-top: 6px; } .vt td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; } .vt td:last-child { text-align: right; white-space: nowrap; }
.lbl { font-weight: 700; font-size: 15px; margin: 18px 0 4px; display: block; }
.sec-card { border-top: 8px solid var(--c6); }
.sec-lab { display: inline-flex; align-items: center; gap: 8px; background: var(--c6); color: #fff; font-weight: 700; font-size: 13px; border-radius: 10px 10px 0 0; padding: 5px 14px; margin: 14px 0 -2px 0; }
.sec-card .sec-t { font-size: 22px; font-weight: 800; font-family: var(--font-display); font-stretch: 80%; }
.qcard { cursor: pointer; } .qcard:hover { border-color: var(--accent); }
.qcard .pv-t { font-weight: 700; font-size: 17px; }
.qcard .pv-o { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.qcard .pv-o span { display: flex; align-items: center; gap: 8px; }
.qcard .pv-o .mark { width: 15px; height: 15px; border-width: 2px; }
.req-star { color: #b3261e; margin-left: 4px; }
.empty-q { color: #a6a9bd; }
.adders { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.sec-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); margin: 4px 2px 0; }
.sec-top { display: flex; align-items: center; gap: 8px; } .sec-top .sec-t { flex: 1; }
.sec-desc { display: flex; align-items: flex-start; gap: 8px; } .sec-desc textarea { flex: 1; }
.sec-x { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 999px; height: 20px; min-width: 20px; padding: 0 6px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sec-x span { display: none; font-size: 12px; } .sec-x:hover { background: #fff; color: var(--accent-strong); } .sec-x:hover span { display: inline; }
.banner { margin: 0 -22px 14px; aspect-ratio: 4/1; background: linear-gradient(120deg, #5b6af0, #8f98f5 55%, #f4a6c8); position: relative; }
.orgbox { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; } .orgbox input.plain { font-size: 15px; }
.desc-in { color: var(--ink-soft); }
.sep { flex: 1; } .short-demo { color: var(--ink-soft); border-bottom: 2px dotted var(--line); padding: 10px 0; margin-top: 10px; }
.link { background: none; border: 0; color: var(--accent-strong); font-weight: 700; cursor: pointer; padding: 0; }
.opt .x, .opts .x { border: 0; background: none; font-size: 22px; color: var(--ink-soft); cursor: pointer; }
.card.active { border-color: var(--accent); border-left-width: 8px; padding-left: 16px; }

.hcw { position: relative; display: flex; } .hcw .hc { flex: 1; }
.hc-del { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.hc-del button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffffe6; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.hc-del button:hover { background: #fbeceb; color: #b3261e; }

.home .home-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.trash-row { display: flex; justify-content: center; margin-top: 44px; }
.trash-btn { position: relative; flex: none; height: 48px; padding: 0 20px 0 16px; gap: 10px; font-weight: 700; font-size: 15px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.trash-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.trash-n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-strong); color: #fff; font: 800 12px/22px var(--font-body, inherit); font-style: normal; text-align: center; }
.trash-dlg { border: 0; border-radius: 20px; padding: 26px 28px 22px; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(27,31,59,.28); }
.trash-dlg::backdrop { background: rgba(27,31,59,.45); }
.trash-head { display: flex; justify-content: space-between; align-items: center; }
.trash-head h2 { margin: 0; font-size: 32px; }
.trash-x { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--ink-soft); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.trash-x:hover { background: var(--bg); }
.trash-info { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; margin: 10px 0 14px; }
.trash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow: auto; }
.trash-list li { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 12px; flex-wrap: wrap; }
.trash-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c3); color: #fff; display: grid; place-items: center; }
.trash-t { flex: 1; min-width: 140px; } .trash-t b { display: block; overflow-wrap: anywhere; } .trash-t span { font-size: 13px; color: var(--ink-soft); }
.trash-list form { margin: 0; }
.trash-empty { text-align: center; color: var(--ink-soft); padding: 26px 0 14px; } .trash-empty p { margin: 8px 0 0; }

/* ---------- NAGŁÓWEK: grafika i logo ---------- */
.banner { cursor: pointer; background-size: cover; background-position: center; }
.banner .bn-btns { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; } .banner .btn.quiet { background: #ffffffe6; }
.logos, .resp-logos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.resp-logos img { max-height: 44px; max-width: 150px; display: block; }
.logo-t { height: 48px; min-width: 96px; border: 2px dashed #c5c8dc; border-radius: 10px; display: grid; place-items: center; padding: 0 12px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; background: #fff; position: relative; }
.logo-t img { max-height: 40px; max-width: 140px; display: block; } .logo-t.has { border: 2px solid transparent; } .logo-t.add { color: var(--accent-strong); font-weight: 700; }
.logo-t .x { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; font-size: 16px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.15); display: none; cursor: pointer; } .logo-t:hover .x { display: block; }
.gm-bg { position: fixed; inset: 0; background: rgba(27,31,59,.5); display: none; align-items: flex-start; justify-content: center; z-index: 85; overflow: auto; padding: 24px 12px; } .gm-bg.on { display: flex; }
.gm { background: #fff; border-radius: 20px; padding: 20px 22px; width: 100%; max-width: 820px; }
.gm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gm-ramka { position: relative; border-radius: 12px; overflow: hidden; background: var(--line); } .gm-ramka canvas { display: block; width: 100%; height: auto; touch-action: none; }
.gm-ramka.mozna canvas { cursor: grab; } .gm-ramka.chwyt canvas { cursor: grabbing; }
.gm-kadr { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; } .gm-kadr button { border: 0; background: #ffffffe6; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; min-width: 34px; }
.gm-pom { font-weight: 700; font-size: 14px; color: var(--ink-soft); margin: 14px 0 6px; }
.gm-gal { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-gal canvas, .gm-gal img { width: 132px; height: 66px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 3px solid transparent; display: block; } .gm-gal .on { border-color: var(--accent); }
.gm-gal figure { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-soft); }
.gm-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
@keyframes sp { to { transform: rotate(360deg); } }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.path { text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; font: inherit; color: inherit; text-decoration: none; display: block; }
.path:hover, .path.on { border-color: var(--accent); } .path .ico { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.path b { display: block; font-size: 17px; margin-bottom: 4px; } .path span { font-size: 14px; color: var(--ink-soft); }
.drop { border: 2px dashed #c5c8dc; border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; background: #fff; } .drop:hover { border-color: var(--accent); }
.drop-title { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; } .frow .x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-soft); margin-left: auto; }
.fld { margin: 14px 0; } .fld .lbl { margin: 0 0 2px; }
.len { display: flex; gap: 8px; flex-wrap: wrap; } .chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer; } .chip.on { border-color: var(--accent); font-weight: 700; color: var(--accent-strong); }

/* ---------- Poproś AI ---------- */
.ai-fab { position: fixed; right: 18px; bottom: 72px; z-index: 40; border: 0; background: var(--accent-strong); color: #fff; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 10px rgba(27,31,59,.2); }
.ai-fab[hidden], .ai-box[hidden] { display: none; }
.ai-box { position: fixed; right: 18px; bottom: 18px; z-index: 42; width: min(420px, calc(100vw - 36px)); max-height: 80vh; overflow: auto; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 8px 32px rgba(27,31,59,.25); }
.ai-box h3 { margin: 0 0 8px; font-size: 18px; } .ai-ctx { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .ai-chips .chip { padding: 6px 12px; font-size: 13.5px; }
.ai-box textarea { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; } .ai-box textarea:focus { outline: 0; border-color: var(--accent); }
.ai-panel { background: var(--accent-soft); border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 14.5px; } .ai-panel .alt { background: #fff; border-radius: 8px; padding: 6px 10px; margin: 6px 0; } .ai-panel .row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* ---------- ZAKŁADKI ANKIETY ---------- */
.tabs-nav { display: flex; justify-content: center; }
.tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tabs a:hover { background: var(--bg); } .tabs a[aria-current=page] { background: var(--accent-strong); color: #fff; }
@media (max-width: 700px) { .topbar { grid-template-columns: 1fr auto; } .tabs-nav { grid-column: 1 / -1; order: 3; } }
.share-src { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.share-src h3 { margin: 0 0 2px; font-size: 18px; } .share-src .meta { color: var(--ink-soft); font-size: 14px; }
.share-link { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.share-link input { flex: 1; min-width: 220px; border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--bg); font: inherit; font-size: 14px; }
.share-qr { width: 120px; height: 120px; border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 2px 8px; background: #efeff4; color: var(--ink-soft); margin-right: 6px; }
.badge.ok { background: #e3f6ee; color: #1f7a52; }
.new-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.new-src label { font-weight: 700; font-size: 14px; display: block; } .new-src input, .new-src select { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; margin-top: 4px; }
.rbar { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 90px; gap: 6px 10px; align-items: center; font-size: 14.5px; margin: 5px 0; }
.rbar i { display: block; height: 14px; border-radius: 7px; background: var(--c6); }
.rbar b { text-align: right; font-weight: 700; }
.prog { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 6px; } .prog i { display: block; height: 100%; background: #1f9d6b; }
.res-top { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rq-warn { background: #fff7e0; border-radius: 10px; padding: 8px 12px; margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat-big { font-family: var(--font-display); font-stretch: 72%; font-weight: 850; font-size: 40px; line-height: 1; }
/* ---------- ZAŁOŻENIA ---------- */
.tg { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 8px; color: #fff; margin-right: 4px; background: var(--c1); }
.hyp { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; } .hyp .tg { margin-top: 8px; min-width: 34px; text-align: center; } .hyp textarea, .hyp input { flex: 1; }
.hyp .x, .rules .x { border: 0; background: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; } .hyp .via { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.rules { margin: 6px 0 0; padding-left: 20px; } .rules li { margin: 4px 0; } .rules li .x { font-size: 16px; }
.blk { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); } .blk .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; display: grid; place-items: center; }
.blk .m { flex: 1; min-width: 0; } .blk .m b { display: block; } .blk .m span { font-size: 14px; color: var(--ink-soft); } .blk .why { flex: none; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 40%; }

.cover { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.cover .cv { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; } .cover .ok { color: #1f7a52; font-weight: 700; } .cover .bad { color: #c2412f; font-weight: 700; }
.linkrow { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.linkrow select { border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent-strong); cursor: pointer; padding: 0; width: auto; min-width: 0; }
.qtags { flex: none; display: flex; gap: 5px; flex-direction: column; align-items: flex-end; }

.from { font-weight: 400; font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }
.meth { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; } .meth .chip { cursor: default; }
.note { border-radius: 12px; padding: 10px 14px; background: #fff7e0; border: 2px solid var(--c4); font-size: 14.5px; margin-top: 8px; } .note.info { background: var(--accent-soft); border-color: var(--accent); }
.ftype { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 8px; background: var(--accent-soft); color: var(--accent-strong); } .ftype.k { background: #e3f6ee; color: #1f7a52; }
.frow .ok { color: #1f9d6b; font-weight: 800; }

.paper-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 8px; } .paper-box .plain { font-size: 14px; }

/* Zestaw pytań (tabela) */
.z-lab { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 6px; }
.z-badge { flex: none; font-size: 12.5px; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; align-self: flex-start; }
.zt-pv .mark { width: 14px; height: 14px; border-width: 2px; display: inline-block; }
.zt-ed { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.zt-ed th, .zt-ed td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.zt-ed td:first-child { text-align: left; width: 42%; } .zt-ed td:first-child input { width: 100%; }
.zt-ed th textarea { text-align: center; font-size: 13.5px; font-weight: 700; width: 100%; min-width: 60px; resize: none; overflow: hidden; }
.zt-ed th input { font-size: 13px; width: 100%; min-width: 80px; }
.zt-ed th { position: relative; } .zt-ed th .x { position: absolute; top: -6px; right: -2px; font-size: 14px; }
.zt-ed .mark { width: 16px; height: 16px; display: inline-block; }
.zt-pv { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.zt-pv th, .zt-pv td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; }
.zt-pv td:first-child { text-align: left; font-weight: 400; color: var(--ink); }

/* Uwagi metodyczne */
.note .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .note b { display: block; } .note .alt { background: #fff; border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.u-chip { font-size: 12px; font-weight: 700; color: #8a5a00; background: #fff7e0; border: 1.5px solid var(--c4); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.u-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; font-size: 14.5px; }
.tryb-bar { background: #e3f6ee; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; color: #1f5f43; }

.ai-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #d9dcfb; background: var(--accent-soft); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; margin-top: 2px; }
