.history-search{gap:20px}.history-search label{width:100%;max-width:440px;color:var(--muted);align-items:center;gap:10px;display:flex}.history-search input{border:1px solid var(--line);border-radius:9px;width:100%;min-width:0;padding:10px 12px}.history-search>span{color:var(--muted);white-space:nowrap;font-size:13px}.history-player{border-bottom:1px solid var(--line);position:relative}.history-player:last-child{border-bottom:0}.history-player summary{cursor:pointer;grid-template-columns:minmax(165px,1.4fr) repeat(2,minmax(120px,1fr)) minmax(90px,.8fr) 70px 18px;align-items:center;gap:16px;padding:22px 110px 22px 22px;list-style:none;display:grid}.history-player summary::-webkit-details-marker{display:none}.history-player summary:hover{background:#f8fbfd}.history-player summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.history-identity{align-items:center;gap:11px;min-width:0;display:flex}.history-identity>div{gap:4px;min-width:0;display:grid}.history-identity strong{overflow-wrap:anywhere;font-size:14px}.history-identity .avatar{flex-shrink:0}.history-identity small{color:var(--muted);overflow-wrap:anywhere;font-size:11px}.history-time{gap:7px;font-size:12px;display:grid}.history-time>span{color:var(--muted);font-size:10px}.history-time b{font-weight:550}.history-progress{gap:4px;display:grid}.history-progress strong{font-size:16px}.history-progress span{color:var(--muted);font-size:10px}.history-progress progress{width:100%;height:5px;accent-color:var(--green);border:0;border-radius:5px;overflow:hidden}.history-progress progress::-webkit-progress-bar{background:#e9eef1}.history-progress progress::-webkit-progress-value{background:var(--green)}.history-chevron{color:var(--muted);transition:transform .15s}.history-player details[open] .history-chevron{transform:rotate(180deg)}.history-reset{align-items:center;gap:6px;padding:8px 10px;font-size:11px;display:flex;position:absolute;top:24px;right:18px}.history-detail{border-top:1px solid var(--line);background:#fafcfd;padding:22px}.history-detail-head{justify-content:space-between;gap:15px;margin-bottom:16px;display:flex}.history-detail-head span{color:var(--muted);font-size:12px}.history-tasks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;display:grid}.history-task{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:minmax(80px,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;font-size:12px;display:grid}.history-task>span:first-child{overflow-wrap:anywhere}.history-task-duration{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}.history-status{white-space:nowrap;color:#65727b;background:#eef1f3;border-radius:6px;padding:4px 7px;font-size:10px}.history-status.done{color:#157149;background:#e4f6ed}.history-status.in_progress{color:#156ba8;background:#e6f2ff}.history-status.wait_subtasks{color:#87620c;background:#fff3d9}.history-pagination{justify-content:center;align-items:center;gap:16px;padding:18px;font-size:13px;display:flex}@media (width<=1300px){.history-player summary{grid-template-columns:1.5fr 1fr 1fr;gap:16px}.history-chevron{display:none}}@media (width<=800px){.history-tasks{grid-template-columns:1fr}}@media (width<=650px){.history-player summary{grid-template-columns:1fr 1fr;padding:16px}.history-identity{grid-column:1/-1;padding-right:85px}.history-tasks{grid-template-columns:1fr}.history-detail{padding:16px}.history-search{flex-wrap:wrap;gap:10px;padding:16px}.history-detail-head{flex-wrap:wrap}.history-task{grid-template-columns:minmax(70px,1fr) auto;gap:8px}.history-status{grid-column:1/-1;justify-self:start}.history-reset{top:20px;right:16px}}.history-player summary{padding-right:230px}.history-actions{gap:7px;display:flex;position:absolute;top:24px;right:18px}.history-actions .history-reset{position:static}.history-delete{width:34px;height:34px;color:var(--red);justify-content:center;align-items:center;padding:0;display:flex}.history-delete:hover{border-color:#e6a4b0}.danger-action{border-color:var(--red);background:var(--red);color:#fff}@media (width<=1300px){.history-player summary{padding-right:230px}}@media (width<=650px){.history-player summary{padding-top:62px;padding-right:16px}.history-actions{top:14px;right:16px}}:root{--ink:#151d22;--muted:#6d787f;--line:#e3e9ed;--paper:#fafbfc;--card:#fff;--accent:#087db8;--accent-end:#1678b8;--green:#18a873;--red:#d9435f;--shadow:0 18px 45px #162a3614;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 80% 0,#e9f7ff 0,transparent 28%),var(--paper);margin:0}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--line);color:var(--ink);cursor:pointer;background:#fff;border-radius:11px;padding:10px 15px;font-weight:650;transition:all .18s}.button{align-items:center;display:inline-flex}button:hover,.button:hover{border-color:#a8c9dd;transform:translateY(-1px)}button.primary,.button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-end));color:#fff;border:0;box-shadow:0 8px 18px #399ad638}.hidden{display:none!important}.muted{color:var(--muted);line-height:1.6}.eyebrow{letter-spacing:.17em;color:var(--accent);margin:0 0 8px;font-size:11px;font-weight:800}.error{color:var(--red);min-height:20px}.login-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{width:min(440px,100%);box-shadow:var(--shadow);background:#ffffffeb;border:1px solid #ffffffe6;border-radius:24px;padding:44px}.brand-mark,.logo>img{object-fit:contain;flex-shrink:0;display:block}.brand-mark{width:64px;height:64px;margin-bottom:24px}.login-card h1{margin:0;font-family:Georgia,serif;font-size:42px}.login-card form{gap:17px;margin-top:30px;display:grid}.login-card label{gap:8px;font-size:13px;font-weight:700;display:grid}.login-card input,.file-add input{border:1px solid var(--line);border-radius:11px;outline:0;padding:13px 14px}.login-card input:focus,.file-add input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e6f5ff}.app{grid-template-columns:245px 1fr;min-height:100vh;display:grid}aside{color:#fff;background:#171e23;flex-direction:column;width:245px;padding:26px 18px;display:flex;position:fixed;inset:0 auto 0 0}.logo{align-items:center;gap:9px;padding:0 0 26px;display:flex}.logo>img{background:#e8f4fc;border-radius:12px;width:44px;height:44px;padding:3px}.logo div{display:grid}.logo small{color:#94a2aa;margin-top:2px}nav{gap:7px;margin-top:18px;display:grid}nav button{color:#a2acb3;text-align:left;background:0 0;border:0;gap:12px;padding:12px 14px;display:flex}nav button:hover,nav button.active{color:#fff;background:#232e35;transform:none}nav button.active span{color:#7accff}.aside-foot{color:#a2acb3;border-top:1px solid #2b373f;gap:8px;margin-top:auto;padding:18px 7px 0;font-size:12px;display:grid}.aside-foot button{color:#ced8de;text-align:left;background:0 0;border:0;padding:0}.workspace{min-width:0;margin-left:245px;padding:30px 38px 60px}.workspace>header{justify-content:space-between;align-items:center;margin-bottom:30px;display:flex}.workspace h2{margin:0;font:700 34px Georgia,serif}.stats{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px;display:grid}.stats article{border:1px solid var(--line);background:#fff;border-radius:16px;padding:20px 22px;display:grid;box-shadow:0 8px 24px #142d3c09}.stats small{color:var(--muted);font-weight:650}.stats strong{margin:9px 0 4px;font:700 36px Georgia,serif}.stats span{color:#929ba0;font-size:11px}.panel{border:1px solid var(--line);background:#fff;border-radius:17px;overflow:hidden;box-shadow:0 10px 34px #18303f0b}.panel+.panel{margin-top:18px}.panel-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:20px 22px;display:flex}h3{margin:0;font-size:16px}.panel-head p,.content-toolbar p{color:var(--muted);margin:5px 0 0;font-size:12px}.live-pill{color:var(--green);letter-spacing:.12em;background:#e8f8f2;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:850}.players{display:grid}.player-row{border-bottom:1px solid #edf1f4;grid-template-columns:1.2fr 1fr 1.4fr 110px;align-items:center;gap:18px;padding:16px 22px;display:grid}.player-row:last-child{border:0}.identity{align-items:center;gap:11px;display:flex}.avatar{width:38px;height:38px;color:var(--accent);background:#e7f3fb;border-radius:12px;place-items:center;font-weight:800;display:grid}.identity div,.task-cell{display:grid}.identity small,.task-cell small{color:var(--muted);margin-top:3px}.answer{text-overflow:ellipsis;white-space:nowrap;background:#f5f7f9;border-radius:9px;padding:9px 11px;overflow:hidden}.time{color:var(--muted);text-align:right;font-size:12px}.empty-list,.empty{text-align:center;color:var(--muted);padding:42px}.event-list{max-height:360px;overflow:auto}.event-list.full{max-height:calc(100vh - 210px)}.event{border-bottom:1px solid #edf1f4;grid-template-columns:125px 150px 1fr 105px;align-items:start;gap:14px;padding:12px 22px;font-size:12px;display:grid}.event.error{background:#fff6f7}.event .kind{font-weight:750}.event .body{white-space:pre-wrap;word-break:break-word}.event time{color:var(--muted);text-align:right}.badge{color:#5c666c;background:#ecf1f4;border-radius:20px;padding:3px 7px;display:inline-block}.badge.error{color:var(--red);background:#fde8ec}select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px}.content-toolbar{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.actions{gap:8px;display:flex}.content-grid{grid-template-columns:320px minmax(0,1fr);gap:16px;min-height:650px;display:grid}.file-panel{overflow:auto}.file-add{border-bottom:1px solid var(--line);grid-template-columns:1fr auto;gap:8px;padding:14px;display:grid}.files button{text-align:left;border:0;border-radius:0;width:100%;padding:11px 15px;font-weight:600;display:grid}.files button small{color:var(--muted);margin-top:3px;font-weight:400}.files button.active{color:var(--accent);background:#ebf7ff}.editor-panel{min-width:0}.empty span{color:#7bbee8;font-size:36px}.editor-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:58px;padding:10px 14px;display:flex}.editor-head code{color:var(--accent)}textarea{resize:vertical;color:#f0f5f8;tab-size:2;background:#1b2429;border:0;outline:0;width:100%;height:540px;padding:20px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;display:block}#save-status{color:var(--muted);margin:10px 14px;font-size:12px}#media-preview{text-align:center;padding:30px}#media-preview img,#media-preview audio{max-width:100%;max-height:520px}.toast{color:#fff;box-shadow:var(--shadow);opacity:0;pointer-events:none;background:#1d262c;border-radius:11px;padding:13px 17px;transition:all .2s;position:fixed;bottom:25px;right:25px;transform:translateY(10px)}.toast.show{opacity:1;transform:none}@media (width<=900px){.app{display:block}aside{width:auto;height:auto;padding:15px;position:static}.logo{padding:0}nav{margin-top:13px;display:flex;overflow:auto}.aside-foot{display:none}.workspace{margin:0;padding:22px 15px}.workspace>header{align-items:flex-start}.stats,.player-row{grid-template-columns:1fr}.time{text-align:left}.content-grid{grid-template-columns:1fr}.content-toolbar{align-items:flex-start;gap:15px}.event{grid-template-columns:1fr;gap:5px}.event time{text-align:left}}.aside-foot{border-top:0;padding:18px 0 0}.aside-foot .button.ghost{color:#ebf2f1;text-align:center;background:#ffffff14;border:1px solid #0000;border-radius:11px;justify-content:center;width:100%;padding:10px 14px}.aside-foot .button.ghost:hover{background:#ffffff1f;border-color:#ffffff24;transform:none}button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}.button:has(input:disabled){cursor:not-allowed;opacity:.45;box-shadow:none}button:disabled:hover{border-color:var(--line);transform:none}.brand-name{white-space:nowrap;letter-spacing:-.03em;gap:0;display:inline-flex}.brand-accent{color:var(--accent)}.logo .brand-name{font-size:15px}.logo .brand-accent{color:#7acbff}.login-card h1{letter-spacing:-.03em;font-family:inherit;font-size:30px}.login-subtitle{letter-spacing:0;margin-top:4px;font:700 38px Georgia,serif;display:block}.snapshots-page{gap:22px;display:grid}.snapshots-page .panel+.panel{margin-top:0}.snapshot-button{white-space:nowrap;align-items:center;gap:9px;display:inline-flex}.snapshot-scope{background:#f6fafc;align-items:flex-start;gap:12px;padding:19px 22px;font-size:13px;display:flex}.snapshot-scope>svg{color:var(--accent);flex-shrink:0}.snapshot-scope p{color:var(--muted);margin:5px 0 0;line-height:1.6}.snapshot-layout{grid-template-columns:minmax(280px,350px) minmax(0,1fr);align-items:start;gap:22px;display:grid}.snapshot-body{padding:22px}.snapshot-picker{text-align:center;cursor:pointer;background:#f6fbff;border:1px dashed #9bc3d9;border-radius:12px;justify-items:center;gap:12px;padding:28px 18px;display:grid;position:relative}.snapshot-picker svg{color:var(--accent)}.snapshot-picker strong{overflow-wrap:anywhere;max-width:100%;font-size:14px}.snapshot-picker span{color:var(--muted);font-size:12px}.snapshot-picker input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.snapshot-picker:focus-within{outline:2px solid var(--accent);outline-offset:3px}.snapshot-picker.disabled{opacity:.5;cursor:wait}.snapshot-modes{border:0;gap:10px;min-width:0;margin:24px 0 0;padding:0;display:grid}.snapshot-modes legend{margin-bottom:12px;font-size:12px;font-weight:750}.snapshot-modes label{border:1px solid var(--line);cursor:pointer;border-radius:11px;align-items:flex-start;gap:10px;padding:14px 12px;display:flex}.snapshot-modes label.selected{border-color:var(--accent);background:#f5fbff}.snapshot-modes input{accent-color:var(--accent);margin:3px 0 0}.snapshot-modes strong{font-size:13px}.snapshot-modes small{color:var(--muted);margin-top:6px;font-size:12px;line-height:1.65;display:block}.snapshot-note{color:var(--muted);margin:18px 0;font-size:12px;line-height:1.7}.snapshot-empty{text-align:center;min-height:310px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:15px;display:flex}.snapshot-empty svg{color:#85a8bb}.snapshot-empty strong{color:var(--ink);font-size:15px}.snapshot-empty p{max-width:340px;margin:0;font-size:13px;line-height:1.7}.snapshot-success,.snapshot-error,.snapshot-status{overflow-wrap:anywhere;border-radius:10px;align-items:flex-start;gap:9px;margin:0 0 15px;padding:13px 15px;font-size:13px;line-height:1.6;display:flex}.snapshot-success{color:#16714b;background:#edf9f3}.snapshot-success svg{flex-shrink:0;margin-top:1px}.snapshot-error{color:#aa2941;background:#fff1f3}.snapshot-status{color:#16658d;background:#eef7ff}.snapshot-errors{color:#aa2941;overflow-wrap:anywhere;padding-left:19px;font-size:13px;line-height:1.7}.snapshot-table-wrap{overflow-x:auto}.snapshot-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:12px}.snapshot-table th,.snapshot-table td{text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;padding:12px 9px}.snapshot-table thead th{color:var(--muted);font-size:10px;font-weight:650}.snapshot-table th:first-child{text-align:left;padding-left:0}.snapshot-table tbody th{font-weight:550}.snapshot-table .snapshot-removed{color:#bb3650;font-weight:750}.snapshot-table td:last-child{font-weight:700}.snapshot-import .actions{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}.snapshot-import .actions button{white-space:nowrap;flex:1;font-size:12px}.snapshot-preflight{min-width:0}.snapshots-page .panel-head{gap:16px}.snapshots-page .panel-head>svg{color:var(--muted);flex-shrink:0}@media (width<=1200px){.snapshot-layout{grid-template-columns:1fr}.snapshot-empty{min-height:160px}}@media (width<=600px){.snapshots-page>.panel>.panel-head{flex-direction:column;align-items:flex-start}.snapshot-body{padding:17px}.snapshot-table{font-size:11px}}.app{display:block}.bot-selector{gap:9px;margin-bottom:26px;display:grid}.nav-label{color:#94a2aa;letter-spacing:.12em;text-transform:uppercase;padding:0 12px;font-size:10px;font-weight:750;display:block}.bot-selector-shell{position:relative}.bot-selector select{appearance:none;color:#fff;text-overflow:ellipsis;background:#232e35;border:1px solid #38444c;width:100%;padding:13px 32px 13px 12px;font-size:12px;font-weight:650}.bot-selector-shell svg{pointer-events:none;color:#a2acb3;position:absolute;top:14px;right:11px}aside nav{margin-top:9px}aside nav svg{flex-shrink:0;width:19px;height:19px}.global-nav{border-top:1px solid #2b373f;margin-top:28px;padding-top:24px}.bot-workspace>header{justify-content:space-between;align-items:center;margin-bottom:30px;display:flex}.bot-settings{max-width:820px}.settings-form{gap:18px;padding:24px;display:grid}.settings-form label{gap:9px;font-size:13px;font-weight:700;display:grid}.settings-form input{border:1px solid var(--line);border-radius:10px;outline:0;width:100%;padding:13px 14px}.settings-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e6f5ff}.settings-form p{margin:0;line-height:1.7}.status-pill{color:#596873;background:#edf1f4;border-radius:20px;flex-shrink:0;margin-left:16px;padding:7px 10px;font-size:11px;font-weight:700}.status-pill.running{color:var(--green);background:#e8f8f2}.bot-settings .panel-head{align-items:flex-start}.bot-settings .error{margin:18px 0}.bot-workspace .empty-list+.flow-editor{margin-top:20px}@media (width<=900px){.bot-selector{max-width:340px;margin:20px 0}.global-nav{margin-top:15px;padding-top:15px}.bot-workspace>header{margin-bottom:22px}.settings-form{padding:18px}.settings-form .actions{flex-wrap:wrap}}.discard-dialog{border:1px solid var(--line);width:calc(100% - 32px);max-width:460px;box-shadow:var(--shadow);color:var(--ink);border-radius:17px;padding:26px}.discard-dialog::backdrop{background:#0f192080}.discard-dialog p{color:var(--muted);margin:16px 0 24px;line-height:1.6}.discard-dialog .actions{flex-wrap:wrap;justify-content:flex-end}.bot-token-field{position:relative}.bot-token-field input:disabled{color:var(--muted);cursor:not-allowed;background:#f1f4f6}.bot-token-field:has(.bot-token-lock) input{padding-right:44px}.bot-token-lock{color:var(--muted);pointer-events:none;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.bots-dashboard{max-width:1100px}.dashboard-bots{margin:0;padding:0;list-style:none}.dashboard-bot{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:24px;padding:24px;display:flex}.dashboard-bot-identity{align-items:center;gap:16px;min-width:0;display:flex}.dashboard-bot-identity>div{min-width:0}.dashboard-bot h4{overflow-wrap:anywhere;margin:0 0 12px;font-size:15px}.dashboard-bot-icon{width:46px;height:46px;color:var(--accent);background:#eef7ff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.dashboard-bot .status-pill{margin-left:0;display:inline-block}.dashboard-bot p{margin:9px 0 0;font-size:12px}.dashboard-bot .actions{flex-shrink:0;gap:10px;display:flex}.dashboard-bot button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.dashboard-error{overflow-wrap:anywhere;margin:18px 24px}@media (width<=600px){.dashboard-bot{flex-direction:column;align-items:flex-start;gap:18px;padding:18px}.dashboard-bot .actions{width:100%}.dashboard-bot button{flex:1}}.flow-panel{margin-bottom:18px}.flow-toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:13px 15px;display:flex}.flow-map-actions,.flow-data-actions{align-items:center;gap:10px;display:flex}.flow-zoom{border:1px solid var(--line);border-radius:10px;align-items:center;display:flex;overflow:hidden}.flow-zoom button{border:0;border-radius:0;padding:9px 12px}.flow-zoom button:hover{transform:none}.flow-zoom span{text-align:center;min-width:54px;color:var(--muted);font-size:11px}.icon-button{place-items:center;width:38px;height:38px;padding:0;display:inline-grid}.icon-button svg,.node-type svg,.task-symbol svg,.upload-icon svg,.task-actions button svg,.row-actions button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.task-actions button svg{vertical-align:middle;margin-right:0}.row-actions button svg{width:14px;height:14px}.flow-viewport{background-color:#f8fafc;background-image:radial-gradient(#d0d9df 1px,#0000 1px);background-size:20px 20px;height:560px;overflow:auto}.flow-stage{transform-origin:0 0;position:relative}.flow-stage>svg{position:absolute;inset:0;overflow:visible}.flow-node{text-align:left;cursor:pointer;background:#fff;border:2px solid #d4dee5;border-radius:18px;width:208px;min-height:78px;padding:12px 42px 12px 14px;transition:all .18s;position:absolute;box-shadow:0 8px 22px #1b2e3a14}.flow-node:hover{border-color:#89bedf;transform:translateY(-2px);box-shadow:0 12px 28px #294d6324}.flow-node.dimmed{opacity:.18}.flow-node .node-top{align-items:center;gap:8px;display:flex}.flow-node .node-type{width:27px;height:27px;color:var(--accent);background:#e8f2f8;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.flow-node b{white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;flex:1;min-width:0;font-size:13px;line-height:15px;display:-webkit-box;overflow:hidden}.flow-node small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:7px;font-size:10px;display:block;overflow:hidden}.flow-node.selector{border-color:#d69c54}.flow-node.selector .node-type{color:#a45b08;background:#fff0d9}.flow-node.quiz{border-color:#55a48c}.flow-node.quiz .node-type{color:#16785c;background:#ddf5ed}.flow-node.language{border-color:#7294d8}.flow-node.language .node-type{color:#3764bb;background:#e3ecff}.flow-node.detached{background:#fffefd;border-style:dashed}.node-toggle{width:27px;height:27px;color:var(--accent);background:#edf3f7;border-radius:8px;padding:0;font-size:17px;position:absolute;top:22px;right:10px}.node-toggle:hover{transform:none}.flow-edge{fill:none;stroke:#9ba7ae;stroke-width:2.2px}.flow-edge.parallel{stroke:#2d9a78;stroke-dasharray:6 4}.flow-edge.selector{stroke:#c17825;stroke-width:2.6px}.edge-label{fill:#667279;paint-order:stroke;stroke:#f8fafc;stroke-width:5px;stroke-linejoin:round;font-size:10px;font-weight:700}.detached-title{color:#7f8b92;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800;position:absolute}.flow-legend{border-top:1px solid var(--line);color:var(--muted);gap:19px;padding:10px 16px;font-size:10px;display:flex}.flow-legend span{align-items:center;gap:6px;display:flex}.flow-legend i{border-top:2px solid #9ba7ae;width:20px;display:block}.flow-legend i.parallel{border-color:#2d9a78;border-top-style:dashed}.flow-legend i.selector{border-color:#c17825;border-top-width:3px}.flow-legend i.detached{border-color:#9ba7ae;border-top-style:dashed}.flow-panel.fullscreen{z-index:50;background:#fff;flex-direction:column;margin:0;display:flex;position:fixed;inset:16px;box-shadow:0 24px 80px #111f2847}.flow-panel.fullscreen .flow-viewport{flex:1;height:auto}.flow-panel.fullscreen .flow-toolbar,.flow-panel.fullscreen .flow-legend{flex:none}.task-card-panel{overflow:visible}.task-card-head{border-bottom:1px solid var(--line);z-index:5;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffff7;justify-content:space-between;align-items:center;padding:17px 22px;display:flex;position:sticky;top:0}.task-card-title{align-items:center;gap:11px;display:flex}.task-card-title .task-symbol{width:40px;height:40px;color:var(--accent);background:#e7f3fb;border-radius:13px;place-items:center;display:grid}.task-card-title h3{font:700 24px Georgia,serif}.task-actions{gap:7px;display:flex}.task-actions .danger{color:var(--red)}.back-button{color:var(--accent);place-items:center;display:grid}.editor-section{border-bottom:1px solid var(--line);padding:22px}.editor-section.soft{background:#fbfcfd}.section-caption{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.section-caption h4{margin:0;font-size:14px}.section-caption p{color:var(--muted);margin:4px 0 0;font-size:11px}.general-grid{grid-template-columns:1.15fr 1fr;gap:14px;display:grid}.editor-label{color:#4f5960;align-content:start;gap:6px;font-size:11px;font-weight:750;display:grid}.editor-input{border:1px solid var(--line);width:100%;color:var(--ink);background:#fff;border-radius:9px;outline:0;padding:10px 11px}.editor-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e6f5ff}.type-description{color:#5a676f;background:#edf4f9;border-radius:9px;margin-top:8px;padding:10px 12px;font-size:11px;font-weight:500;line-height:1.45}.answer-editor{margin-top:17px}.answer-editor-head,.button-editor-head{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.answer-editor-head h5,.button-editor-head h5{margin:0;font-size:12px}.compact-button{padding:6px 9px;font-size:10px}.answer-row,.button-row{grid-template-columns:minmax(180px,1fr) 190px auto;gap:7px;margin-top:7px;display:grid}.button-row{grid-template-columns:28px minmax(140px,1fr) auto}.row-number{color:var(--accent);background:#e8f1f6;border-radius:8px;place-items:center;font-size:10px;font-weight:800;display:grid}.row-actions{gap:3px;display:flex}.row-actions button{color:var(--muted);padding:6px 8px}.row-actions .remove{color:var(--red)}.transition-add{grid-template-columns:1fr auto;gap:7px;display:grid}.transition-list{gap:8px;margin-top:14px;display:grid}.transition-row{border:1px solid var(--line);background:#fff;border-radius:11px;grid-template-columns:34px minmax(180px,1fr) auto;align-items:center;gap:9px;padding:9px 10px;display:grid}.transition-row .node-type{width:30px;height:30px;color:var(--accent);background:#e8f2f8;border-radius:8px;place-items:center;display:grid}.transition-row b{font-size:12px}.transition-row small{color:var(--muted);margin-top:2px;font-size:10px;display:block}.transition-empty{text-align:center;color:var(--muted);border:1px dashed #cbd6dd;border-radius:11px;padding:18px;font-size:11px}.translations{grid-template-columns:1fr 1fr;display:grid}.language-column{min-width:0;padding:22px}.language-column+.language-column{border-left:1px solid var(--line)}.language-title{align-items:center;gap:9px;margin-bottom:14px;display:flex}.language-flag{font-size:23px;line-height:1}.language-title h4{margin:0;font-size:15px}.language-content textarea{border:1px solid var(--line);resize:vertical;width:100%;min-height:190px;color:var(--ink);background:#fff;border-radius:11px;outline:0;padding:12px;font:12px/1.5 inherit;display:block}.language-content textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e6f5ff}.language-subsection{border-top:1px solid var(--line);margin-top:16px;padding-top:15px}.language-subsection>h5{color:#5e6970;text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px;font-size:11px}.outcome{border:1px solid var(--line);background:#fafbfc;border-radius:12px;margin-top:16px;padding:14px}.outcome h5{color:#5e6970;margin:0 0 10px;font-size:11px}.outcome textarea{min-height:110px}.attachments{gap:8px;display:grid}.attachment-empty{cursor:pointer;text-align:left;background:#f8fafc;border:1px dashed #c8d4dc;border-radius:10px;align-items:center;gap:10px;width:100%;min-height:46px;padding:9px 11px;display:flex}.attachment-empty:hover{background:#f2f9fd;border-color:#89bedf}.attachment-empty .upload-icon{width:29px;height:29px;color:var(--accent);background:#e7f1f8;border-radius:8px;place-items:center;display:grid}.attachment-empty strong{font-size:11px;display:block}.attachment-empty small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.attachment-present{border:1px solid var(--line);background:#f2f5f7;border-radius:11px;position:relative;overflow:hidden}.attachment-preview.image{height:220px}.attachment-preview.image img{object-fit:cover;width:100%;height:100%}.attachment-preview.audio{align-items:center;min-height:64px;padding:14px 74px 14px 14px;display:flex}.attachment-preview audio{width:100%;height:34px}.attachment-meta{color:#fff;text-overflow:ellipsis;white-space:nowrap;background:#12191db8;border-radius:7px;max-width:calc(100% - 110px);padding:5px 7px;font-size:9px;position:absolute;bottom:9px;left:10px;overflow:hidden}.attachment-preview.audio+.attachment-meta{color:var(--muted);background:0 0;margin:0 74px 10px 14px;padding:0;display:block;position:static}.attachment-actions{gap:5px;display:flex;position:absolute;top:9px;right:9px}.attachment-actions .icon-button{background:#fffffff0;border:0;width:32px;height:32px;box-shadow:0 3px 10px #111f281f}.attachment-actions .danger{color:var(--red)}.button-editor{padding:0}.button-empty{color:var(--muted);background:#f2f6f9;border-radius:9px;padding:12px;font-size:11px}.type-help{color:#5a676f;background:#edf4f9;border-radius:9px;padding:8px 10px;font-size:10px}.toast{z-index:70}.general-fields{gap:12px;display:grid}.general-grid .type-description{align-items:center;min-height:100%;margin:0;display:flex}.task-actions .icon-button{width:40px;height:40px;padding:0}.task-actions .icon-button svg{margin:0}.language-content textarea{resize:none;height:96px;min-height:96px;overflow:hidden}.outcome{padding:0}.outcome-toggle{text-align:left;color:#5e6970;background:0 0;border:0;border-radius:0;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;font-size:11px;display:flex}.outcome-toggle:hover{background:#f1f5f8;transform:none}.outcome-chevron{place-items:center;transition:all .18s;display:grid}.outcome-chevron svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.outcome.expanded .outcome-chevron{transform:rotate(90deg)}.outcome-body{padding:0 14px 14px}.outcome textarea{height:72px;min-height:72px}.drag-handle{color:#7c8991;cursor:grab;border-radius:7px;place-items:center;width:25px;height:34px;display:grid}.drag-handle:hover{color:var(--accent);background:#e8f0f5}.drag-handle:active{cursor:grabbing}.drag-handle.disabled{opacity:.3;cursor:default}.drag-handle svg{fill:none;stroke:currentColor;stroke-width:2px;width:17px;height:17px}.button-row{border:1px solid #0000;border-radius:10px;grid-template-columns:26px minmax(140px,1fr) auto;align-items:center;padding:5px}.button-row.correct{background:#effaf6;border-color:#89cfb5}.button-status{align-items:center;gap:5px;display:flex}.correct-badge{color:#157255;background:#dff5ec;border-radius:8px;align-items:center;gap:4px;padding:6px 8px;font-size:9px;font-weight:800;display:flex}.correct-badge svg{fill:none;stroke:currentColor;stroke-width:2px;width:13px;height:13px}.make-correct{color:#376c5b;padding:6px 8px;font-size:9px}.button-status .icon-button{width:31px;height:31px;padding:0}.transition-row{grid-template-columns:25px 34px minmax(160px,1fr) 38px}.transition-row.selector-row{grid-template-columns:25px 34px minmax(150px,.7fr) minmax(160px,1fr) minmax(160px,1fr) 38px}.transition-name{min-width:0}.flag-field{position:relative}.flag-field input{padding-right:38px}.flag-field span{pointer-events:none;font-size:16px;position:absolute;top:50%;right:11px;transform:translateY(-50%)}.attachment-actions .icon-button{cursor:pointer;border-radius:9px;transition:all .18s}.attachment-actions .icon-button:hover{background:#fff;border-color:#a8c9dd;transform:translateY(-1px)}@media (width<=1050px){.general-grid,.translations{grid-template-columns:1fr}.language-column+.language-column{border-left:0;border-top:1px solid var(--line)}.flow-viewport{height:480px}.transition-row.selector-row{grid-template-columns:25px 34px 1fr 1fr 38px}.transition-row.selector-row .transition-name{grid-column:3/-1}.transition-row.selector-row .icon-button{grid-area:1/5}}@media (width<=700px){.content-toolbar{display:grid}.content-toolbar .actions,.flow-toolbar{flex-wrap:wrap}.flow-data-actions{margin-left:auto}.task-card-head{align-items:flex-start;position:static}.task-actions{flex-wrap:wrap;justify-content:flex-end}.translations{display:block}.answer-row{grid-template-columns:1fr}.flow-viewport{height:390px}.transition-add{grid-template-columns:1fr}.attachment-preview.image{height:170px}}.content-toolbar{justify-content:flex-end}.content-toolbar .actions{margin-left:auto}.edge-label circle{fill:#fff;stroke:#d0d9df;stroke-width:1.5px;filter:drop-shadow(0 2px 3px #1b2e3a1f)}.edge-label text{fill:#151d22;stroke:none;font-size:10px;font-weight:800}.shared-buttons{border-top:1px solid var(--line);background:#fbfcfd;border-bottom:1px solid #d7e0e5}.shared-buttons .button-editor-head h4{margin:0;font-size:15px}.button-row.shared{grid-template-columns:26px minmax(180px,1fr) minmax(180px,1fr) auto;padding:8px}.shared-button-field{display:block;position:relative}.shared-button-field input{padding-right:38px;font-size:14px}.shared-button-field>span{pointer-events:none;padding:0;font-size:16px;position:absolute;top:50%;right:11px;transform:translateY(-50%)}.shared-buttons .compact-button{font-size:12px}.shared-buttons .make-correct,.shared-buttons .correct-badge{font-size:11px}.type-description{font-size:14px;line-height:1.55}.answers-section .answer-editor{margin-top:0}.answers-section .answer-editor-head h5{font-size:14px}.answers-section .answer-row .editor-input{font-size:13px}.flow-viewport.panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.drag-handle{touch-action:none;-webkit-user-select:none;user-select:none}@media (width<=900px){.button-row.shared{grid-template-columns:26px 1fr}.button-row.shared .button-status{grid-column:2}.content-toolbar{display:flex}}.discard-dialog strong{overflow-wrap:anywhere}.locked-task-id{display:block;position:relative}.locked-task-id .editor-input{color:#78848d;cursor:default;background:#edf1f4;border-color:#dce3e8;padding-right:40px;box-shadow:inset 0 1px 2px #1928320a}.locked-task-id svg{color:#8b969e;pointer-events:none;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.language-buttons{gap:12px;margin-top:14px;display:grid}.badge.info{color:#086a9e;background:#e3f2ff}.reaction-badge{white-space:nowrap;color:#65727b;background:#eef1f3;border-radius:20px;padding:3px 7px;display:inline-block}.reaction-badge.accepted{color:#157149;background:#e4f6ed}.reaction-badge.ignored{color:#8b5c00;background:#fff0cf}.reaction-badge.wrong_answer{color:#a43f20;background:#ffe8df}.reaction-badge.engine_activity{color:#6547a8;background:#eee9ff}.event.reaction-ignored{background:#fffaf0}.event-list .event{grid-template-columns:100px 130px 170px minmax(240px,1fr) 150px}.events-head{min-height:77px}.events-live{color:var(--muted);align-items:center;gap:9px;font-size:12px;font-weight:650;display:inline-flex}.events-live i{background:var(--green);border-radius:50%;width:9px;height:9px;animation:2s ease-out infinite live-pulse;box-shadow:0 0 0 4px #dff5ec}@keyframes live-pulse{50%{box-shadow:0 0 0 7px #0000}}@media (prefers-reduced-motion:reduce){.events-live i{animation:none}}.event-filter-row{border-bottom:1px solid var(--line);background:#f8fbfd;grid-template-columns:100px 130px 170px minmax(240px,1fr) 150px;align-items:end;gap:14px;padding:10px 22px 12px;display:grid}.event-filter-row label{min-width:0;color:var(--muted);gap:5px;font-size:10px;font-weight:650;display:grid}.event-filter-row input,.event-filter-row select{border:1px solid var(--line);width:100%;min-width:0;height:36px;color:var(--ink);background:#fff;border-radius:9px;padding:8px 10px}.event time{font-variant-numeric:tabular-nums;gap:3px;display:grid}.event time b{color:var(--ink);font-weight:700}.event time span{font-size:11px}.event-pagination{border-top:1px solid var(--line);color:var(--muted);justify-content:center;align-items:center;gap:16px;padding:16px;font-size:12px;display:flex}@media (width<=900px){.event-list .event{grid-template-columns:1fr}.event-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}.event-filter-row label:nth-child(4){grid-column:1/-1}}@media (width<=540px){.event-filter-row{grid-template-columns:1fr}.event-filter-row label:nth-child(4){grid-column:auto}}
