:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#e2e8f0;background:#020617;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 top,#111827 0,#020617 45%);min-width:1180px;margin:0}html,body,#root{min-height:100%}body.telegram-app{background:#020617;min-width:0;overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.appShell{grid-template-columns:320px minmax(520px,1fr) minmax(420px,560px);gap:14px;min-height:100vh;padding:14px;display:grid}.appShell.formMode,.appShell.graphMode{grid-template-columns:320px minmax(520px,1fr) minmax(420px,560px)}.panel{background:#0f172aeb;border:1px solid #334155;border-radius:24px;overflow:hidden;box-shadow:0 24px 70px #00000059}.sidebar,.editor,.rightPanel{height:calc(100vh - 28px)}.sidebar{flex-direction:column;gap:9px;padding:14px;display:flex}.editor{padding:18px;overflow:auto}.rightPanel{flex-direction:column;display:flex}.rightPanelBody{flex:1;min-height:0;padding:14px;overflow:hidden}.sidebarHeader,.editorTop,.sectionHeader,.choiceHeader,.phoneTop,.sceneListTop,.tabBar,.validationSummary,.phoneTitleWrap,.phoneActions,.rowGap,.inlineField,.graphControls{align-items:center;display:flex}.sidebarHeader,.editorTop,.sectionHeader,.choiceHeader,.phoneTop,.sceneListTop{justify-content:space-between;gap:12px}.rowGap{gap:8px}.wrap{flex-wrap:wrap}.alignStart{align-items:start}h1,h2,h3,h4{margin:0}h1{font-size:20px;line-height:1.1}h2{font-size:22px}h3{align-items:center;gap:8px;font-size:15px;display:flex}.eyebrow{color:#94a3b8;text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px;font-size:11px}.toolbarGrid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.compactToolbar{gap:6px}.compactToolbar .smallButton,.compactToolbar .fileButton{border-radius:10px;min-height:32px;padding:6px 8px;font-size:12px}.smallButton,.tinyButton,.iconButton,.wideGhostButton,.tab,.choiceButton,.sendButton{color:#e2e8f0;background:#1e293b;border:1px solid #334155;border-radius:13px;justify-content:center;align-items:center;gap:6px;padding:8px 10px;transition:all .15s;display:inline-flex}.smallButton:hover,.tinyButton:hover,.iconButton:hover,.wideGhostButton:hover,.tab:hover,.choiceButton:hover{background:#334155}.tinyButton{border-radius:10px;padding:5px 8px;font-size:12px}.iconButton{width:34px;height:34px;padding:0}.primary{background:#4f46e5;border-color:#6366f1}.danger,.dangerButton{color:#fecaca;background:#450a0a;border-color:#7f1d1d}.danger:hover,.dangerButton:hover{background:#7f1d1d}.wideGhostButton{width:100%}.fileButton{position:relative;overflow:hidden}.fileButton input{opacity:0;cursor:pointer;position:absolute;inset:0}.statusLine,.emptyHint,.smallText,.mutedText{color:#94a3b8;font-size:12px}.choiceButton .mutedText{font-size:inherit;color:inherit}.emptyHint{background:#02061740;border:1px dashed #334155;border-radius:14px;padding:10px}.compact{padding:6px 8px}.okText{color:#86efac;align-items:center;gap:5px;display:inline-flex}.warningText{color:#facc15;align-items:center;gap:5px;display:inline-flex}.dangerText{color:#fca5a5;align-items:center;gap:5px;display:inline-flex}.validationSummary{background:#0f172a;border:1px solid #334155;border-radius:14px;justify-content:space-between;padding:9px;font-size:12px}.sceneList{flex-direction:column;gap:6px;padding-right:4px;display:flex;overflow:auto}.sceneListItem{text-align:left;color:inherit;background:#0f172a;border:1px solid #334155;border-radius:12px;padding:8px}.sceneListItem.active{background:#172554;border-color:#60a5fa}.sceneListItem.problem{border-color:#ef4444}.sceneListItem.orphan{box-shadow:inset 4px 0 #f59e0b}.sceneId{color:#cbd5e1;align-items:center;gap:4px;font-size:12px;display:inline-flex}.sceneTitle{margin-top:4px;font-size:13px;font-weight:700;line-height:1.2}.sceneMeta,.graphNodeMeta,.graphNodeId,.graphNodeCounts{color:#94a3b8;margin-top:4px;font-size:11px}.pill{border:1px solid #334155;border-radius:999px;padding:2px 6px;font-size:10px}.pill.success{color:#86efac;border-color:#166534}.pill.warning{color:#facc15;border-color:#854d0e}.pill.branchPill{color:#93c5fd;border-color:#1d4ed8}.editorBlock{background:#02061747;border:1px solid #334155;border-radius:18px;margin-bottom:14px;padding:14px}.softWarningBlock{border-color:#a16207}.softWarning{color:#fde68a;background:#713f1259;border:1px solid #854d0e;border-radius:12px;margin:10px 0;padding:8px 10px;font-size:13px}.aiBlock{border-color:#6d28d9}.stack{flex-direction:column;gap:10px;margin-top:10px;display:flex}.twoCols{grid-template-columns:1fr 1fr;gap:12px;display:grid}.threeCols{grid-template-columns:1fr 1fr 140px;gap:12px;display:grid}.fieldLabel{color:#cbd5e1;flex-direction:column;gap:6px;font-size:12px;display:flex}.input{color:#e2e8f0;background:#020617;border:1px solid #334155;border-radius:12px;outline:none;width:100%;padding:9px 10px}.input:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #60a5fa29}.textarea{resize:vertical;line-height:1.45}.toggleLabel{color:#cbd5e1;align-items:center;gap:8px;font-size:13px;display:inline-flex}.mutedLabel span{color:#94a3b8;margin-top:10px}.messageEditorRow{grid-template-columns:28px 1fr 34px;align-items:start;gap:10px;display:grid}.messageIndex{color:#64748b;text-align:right;padding-top:9px;font-size:12px}.pauseEditor{color:#94a3b8;background:#0f172a;border:1px dashed #475569;border-radius:12px;align-items:center;min-height:42px;padding:0 12px;display:flex}.verticalButtons{flex-direction:column;gap:5px;display:flex}.choiceCard{background:#0f172a;border:1px solid #475569;border-radius:18px;padding:12px}.recordEditor{background:#020617;border:1px solid #334155;border-radius:14px;padding:10px}.recordRow{grid-template-columns:1fr 1fr 34px;gap:8px;margin-top:8px;display:grid}.smallHeading{color:#cbd5e1;margin-bottom:8px;font-size:13px}.linkRow{text-align:left;color:#e2e8f0;background:#020617;border:1px solid #334155;border-radius:12px;flex-direction:column;gap:3px;width:100%;margin-bottom:6px;padding:8px;display:flex}.linkRow small{color:#94a3b8}.linkRow.problem{border-color:#ef4444}.tabBar{border-bottom:1px solid #334155;gap:8px;padding:10px}.tab{text-transform:capitalize;flex:1}.tab.active{background:#2563eb;border-color:#60a5fa}.previewPhone{--chat-accent:#234f9f;--chat-accent-strong:#173b84;--chat-accent-soft:#234f9f33;--chat-accent-border:#234f9f66;--chat-icon-bubble:#f8fbff;--chat-icon-mask:color-mix(in srgb, var(--chat-accent) 88%, white 12%);--chat-icon-stroke:#0f172a14;--chat-shell-bg:#0b1220;--chat-shell-border:#475569a6;--chat-shell-shadow:#02061780;--chat-header-bg:#020617e6;--chat-header-border:#334155b8;--chat-header-text:#e2e8f0;--chat-muted-text:#94a3b8;--chat-body-bg:radial-gradient(circle at top, #1e293b2e, transparent 38%), linear-gradient(#0c1526, #050a14);--chat-avatar-bg:linear-gradient(180deg, #1e293b, #0f172a);--chat-avatar-border:#475569b3;--chat-incoming-bg:linear-gradient(180deg, #1e293bf5, #101726fa);--chat-incoming-border:#3341558c;--chat-incoming-text:#e2e8f0;--chat-user-text:#fff;--chat-event-bg:#121f34c2;--chat-event-border:#4755697a;--chat-event-text:#b7c4d7;--chat-dock-bg:#020617eb;--chat-dock-border:#334155b8;--chat-choice-bg:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 92%, white 8%), var(--chat-accent-strong));--chat-choice-border:var(--chat-accent-border);--chat-choice-text:#fff;--chat-choice-hover:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 86%, white 14%), color-mix(in srgb, var(--chat-accent-strong) 90%, black 10%));--chat-choice-passive-bg:linear-gradient(180deg, #334155fa, #1e293bf0);--chat-choice-passive-hover:linear-gradient(180deg, #475569fa, #334155f0);--chat-choice-passive-border:#64748bb8;--chat-choice-passive-text:#cbd5e1;--chat-composer-bg:#0f172ad1;--chat-composer-border:#334155b8;--chat-composer-text:#64748b;--chat-menu-bg:#020617f5;--chat-menu-border:#475569c2;--chat-menu-action-bg:#0f172ad1;--chat-menu-action-border:#334155c2;--chat-menu-action-text:#e2e8f0;--chat-menu-action-hover:#1e293bf0;--chat-icon-button-bg:#0f172ad1;--chat-icon-button-border:#334155c2;--chat-icon-button-text:#e2e8f0;--chat-icon-button-hover:#1e293bf0;background:var(--chat-shell-bg);border:1px solid var(--chat-shell-border);height:100%;box-shadow:0 32px 70px var(--chat-shell-shadow);border-radius:24px;flex-direction:column;display:flex;position:relative;overflow:hidden}.standalonePreviewPhone{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:34px;width:100%;max-width:460px;height:min(860px,100vh - 72px);margin:0 auto}.phoneTop{z-index:30;border-bottom:1px solid var(--chat-header-border);background:var(--chat-header-bg);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);padding:12px;position:relative}.standalonePreviewPhone .phoneTop{z-index:120;padding:14px 16px 12px}.avatar{background:var(--chat-avatar-bg);border:1px solid var(--chat-avatar-border);border-radius:999px;place-items:center;width:40px;height:40px;display:grid;overflow:hidden;box-shadow:inset 0 1px #ffffff0d}.chatBrandIcon{width:29px;height:29px;display:block}.phoneTitleWrap,.phoneActions{gap:10px}.telegramHeaderSelect{border:1px solid var(--chat-icon-button-border);background:var(--chat-icon-button-bg);min-width:110px;max-width:152px;height:34px;color:var(--chat-icon-button-text);border-radius:12px;padding:0 30px 0 10px}.telegramHeaderSelect:focus{border-color:var(--chat-accent-border);outline:none}.phoneMeta{flex-direction:column;justify-content:center;min-height:34px;display:flex}.phoneTitle{color:var(--chat-header-text);align-items:center;gap:6px;font-weight:700;display:inline-flex}.phoneMuteBadge{width:18px;height:18px;color:var(--chat-muted-text);background:color-mix(in srgb, var(--chat-panel-border) 55%, transparent 45%);border:1px solid color-mix(in srgb, var(--chat-panel-border) 72%, transparent 28%);border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.standalonePreviewPhone .phoneTitle{letter-spacing:0;font-size:15px}.phoneSubtitle{color:var(--chat-muted-text);align-items:center;gap:4px;font-size:12px;display:flex}.phoneSubtitleHidden{visibility:hidden}.phoneSubtitle.online{color:#22c55e}.phoneSubtitle.offline{color:#ef4444}.phoneSubtitle.action{color:var(--chat-accent)}.phoneSubtitle.typing,.phoneSubtitle.thinking{color:#22c55e}.previewControls{border-bottom:1px solid #334155;grid-template-columns:1fr auto;gap:8px;padding:10px;display:grid}.chatScroll{z-index:1;background:var(--chat-body-bg);flex-direction:column;flex:1;gap:10px;min-height:0;padding:14px;display:flex;position:relative;overflow:hidden auto}.standalonePreviewPhone .chatScroll{gap:12px;padding:18px 14px 10px}.sceneDivider,.systemMessage,.chatEventMessage{text-align:center;color:var(--chat-muted-text);font-size:12px}.systemMessage{background:var(--chat-event-bg);border:1px solid var(--chat-event-border);color:var(--chat-event-text);border-radius:999px;align-self:center;padding:6px 10px}.chatEventMessage{color:var(--chat-event-text);background:var(--chat-event-bg);border:1px solid var(--chat-event-border);border-radius:999px;align-self:center;padding:6px 12px;box-shadow:0 8px 18px #0206173d}.bubbleRow{animation:.22s ease-out bubbleIn;display:flex}.bubbleRow.right{justify-content:flex-end}.bubbleRow.left{justify-content:flex-start}.bubble{word-break:break-word;border-radius:18px;max-width:min(84%,320px);padding:10px 13px;line-height:1.48;box-shadow:0 10px 25px #0003}.standalonePreviewPhone .bubble{max-width:min(86%,336px)}.userBubble{background:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 92%, white 8%), var(--chat-accent-strong));color:var(--chat-user-text);border-bottom-right-radius:4px}.userBubbleWrap{padding:10px 30px 10px 13px;position:relative}.messageChecks{letter-spacing:-1px;opacity:.95;min-height:12px;font-size:10px;line-height:1;position:absolute;bottom:8px;right:10px}.messageChecks.delivered{color:#ffffffb8}.messageChecks.read{color:#bfdbfe}.messageChecks.pending{visibility:hidden}.npcBubble{background:var(--chat-incoming-bg);border:1px solid var(--chat-incoming-border);color:var(--chat-incoming-text);border-bottom-left-radius:4px}.finalBubble{background:#064e3bb3;border:1px solid #047857;border-bottom-left-radius:4px}.typingBubble{background:var(--chat-incoming-bg);border:1px solid var(--chat-incoming-border);border-radius:18px 18px 18px 4px;align-items:center;gap:5px;min-width:54px;height:34px;padding:0 13px;display:inline-flex;box-shadow:0 10px 25px #0003}.typingBubble span{background:#94a3b8;border-radius:999px;width:6px;height:6px;animation:1.1s ease-in-out infinite typingDotFade}.typingBubble span:nth-child(2){animation-delay:.16s}.typingBubble span:nth-child(3){animation-delay:.32s}.choiceDock{border-top:1px solid var(--chat-dock-border);background:var(--chat-dock-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:2;flex-direction:column;flex-shrink:0;gap:6px;padding:10px;display:flex;position:relative}.standaloneChoiceDock{gap:8px;padding:12px 14px 8px}.choiceButton{text-align:left;background:var(--chat-choice-bg);border-color:var(--chat-choice-border);width:100%;min-height:44px;color:var(--chat-choice-text);justify-content:flex-start;box-shadow:inset 0 1px #ffffff0a}.choiceButton:hover{background:var(--chat-choice-hover)}.standaloneChoiceDock .choiceButton{border-radius:14px;padding:11px 13px}.passiveChoiceButton{color:var(--chat-choice-passive-text);border-style:dashed;border-color:var(--chat-choice-passive-border);background:var(--chat-choice-passive-bg)}.passiveChoiceButton:hover{background:var(--chat-choice-passive-hover);color:#e2e8f0}.aiDock{border-top:1px solid #334155;margin-top:4px;padding-top:10px}.aiHint{color:#a78bfa;gap:6px;margin-bottom:8px;font-size:12px;display:flex}.sendButton{background:#7c3aed;border-color:#8b5cf6;height:38px}.chatComposerShell{background:var(--chat-dock-bg);z-index:2;flex-shrink:0;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:4px 14px 12px;display:grid;position:relative}.chatComposerField{background:var(--chat-composer-bg);border:1px solid var(--chat-composer-border);min-height:42px;color:var(--chat-composer-text);border-radius:999px;align-items:center;padding:0 14px;display:flex}.chatComposerSend{background:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 82%, white 18%), var(--chat-accent-strong));border:1px solid var(--chat-accent-border);color:#fff;border-radius:14px;place-items:center;width:42px;height:42px;display:grid}.standalonePreviewPhone .iconButton{background:var(--chat-icon-button-bg);border-color:var(--chat-icon-button-border);color:var(--chat-icon-button-text)}.standalonePreviewPhone .iconButton:hover{background:var(--chat-icon-button-hover)}.searchComposerShell{grid-template-columns:1fr}.startComposerShell{grid-template-columns:1fr;gap:8px}.searchComposerButton{width:100%}.startDock{flex:1;place-items:center;min-height:100%;padding:14px 0;display:grid}.startBotCard{flex-direction:column;align-items:center;gap:10px;width:min(100%,320px);display:flex}.startButton,.resumeButton{border:1px solid var(--chat-accent-border);background:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 82%, white 18%), var(--chat-accent-strong));width:100%;min-height:44px;color:var(--chat-user-text);font:inherit;border-radius:14px}.botIntroWrap{flex-direction:column;gap:12px;width:min(100%,360px);display:flex}.botIntroCard{border:1px solid var(--chat-choice-border);background:linear-gradient(#0f172aeb,#0f172afa);border-radius:22px;overflow:hidden;box-shadow:0 18px 40px #02061759}.botIntroHero{background:radial-gradient(circle at top right, #ffffff2e, transparent 24%), radial-gradient(circle at bottom left, #ffffff29, transparent 22%), linear-gradient(135deg, color-mix(in srgb, var(--chat-accent) 78%, white 22%), var(--chat-accent-strong));color:#fff;padding:22px 20px 18px}.botIntroBadge{background:#ffffff2e;border:1px solid #ffffff38;border-radius:999px;margin-bottom:12px;padding:5px 10px;font-size:11px;font-weight:700;display:inline-flex}.botIntroTitle{margin-bottom:8px;font-size:28px;font-weight:800;line-height:1.04}.botIntroSubtitle{color:#ffffffe6;font-size:14px;line-height:1.45}.botIntroBody{color:#e2e8f0;padding:16px 18px 18px}.botIntroHeading{margin-bottom:10px;font-size:16px;font-weight:700}.botIntroText{color:#cbd5e1;font-size:14px;line-height:1.55}.theme-light .botIntroCard{background:linear-gradient(#fffffffa,#f1f5f9f5)}.theme-light .botIntroBody{color:#0f172a}.theme-light .botIntroText{color:#334155}.standaloneActions{z-index:95;position:relative}.standaloneMenuBackdrop{z-index:70;border-radius:inherit;background:0 0;border:0;margin:0;padding:0;position:absolute;inset:0}.standaloneMenu{z-index:110;border:1px solid var(--chat-menu-border);background:linear-gradient(180deg, color-mix(in srgb, var(--chat-menu-bg) 92%, white 8%), var(--chat-menu-bg));-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);border-radius:20px;width:min(304px,100vw - 24px);padding:12px;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 26px 60px #0206179e}.standaloneMenuSection+.standaloneMenuSection{margin-top:10px}.standaloneMenuPrimaryAction{color:#f8fbff;background:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 88%, white 12%), var(--chat-accent-strong));border:1px solid color-mix(in srgb, var(--chat-accent) 74%, white 26%);border-radius:14px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:42px;padding:10px 12px;font-size:12px;font-weight:600;display:inline-flex;box-shadow:inset 0 1px #ffffff29,0 10px 24px #0206173d}.standaloneMenuPrimaryAction:hover{filter:brightness(1.03)}.standaloneMenuStarsAction{background:linear-gradient(#4f8fff,#285ed9);border-color:#8fbeff75}.standaloneMenuToggle{width:100%;min-height:42px;color:var(--chat-menu-action-text);background:var(--chat-menu-action-bg);border:1px solid var(--chat-menu-action-border);border-radius:14px;justify-content:center;align-items:center;gap:10px;padding:8px 10px;font-size:12px;display:inline-flex}.standaloneMenuToggle:hover{background:var(--chat-menu-action-hover)}.standaloneMenuToggleGold{text-align:center;color:#241400;background:linear-gradient(#ffd96f,#d49a21);border-color:#ffe08c8f;justify-content:center;box-shadow:inset 0 1px #ffffff47,0 10px 24px #7852083d}.standaloneMenuToggleGold:hover{background:linear-gradient(#ffe082,#dda52e);border-color:#ffe69cb8}.standaloneMenuToggleGold .standaloneMenuToggleIcon{color:#7d5200}.standaloneMenuToggleIcon{width:22px;height:22px;color:var(--chat-accent);justify-content:center;align-items:center;display:inline-flex}.standaloneMenuToggleText{text-align:center;font-size:13px}.standaloneMenuUtilityRow{grid-template-columns:minmax(0,1fr) 42px;gap:6px;display:grid}.standaloneMenuUtilityMain{justify-content:center}.standaloneMenuUtilityIcon{background:linear-gradient(#1a2946fa,#101a2efa);border-color:#6e9df52e;width:42px;min-width:42px;padding:0;box-shadow:inset 0 1px #ffffff0f}.standaloneMenuUtilityIcon .standaloneMenuToggleIcon{color:#dbe7ff;width:100%}.standaloneMenuUtilityIcon:hover{background:linear-gradient(#22365cfa,#131f38fa);border-color:#6e9df547}.standaloneMenuUtilityIcon.isPressed{background:linear-gradient(#0a1221fa,#070d18fa);border-color:#47556947;box-shadow:inset 0 2px 8px #02061773}.standaloneMenuUtilityIcon.isPressed .standaloneMenuToggleIcon{color:#8fa3c9}.standaloneMenuLabel{color:var(--chat-muted-text);text-transform:uppercase;letter-spacing:.04em;margin:0 2px 6px;font-size:11px}.standaloneMenuLabelWithIcon{align-items:center;gap:6px;display:inline-flex}.themeGrid{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.themeSwatch{aspect-ratio:1/.86;border:1px solid #94a3b866;border-radius:10px;width:100%;box-shadow:inset 0 1px #ffffff1a}.themeSwatch.active{outline-offset:1px;outline:2px solid #e2e8f0}.standaloneMenuLanguageGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.standaloneMenuLanguageButton{border:1px solid var(--chat-menu-action-border);background:var(--chat-menu-action-bg);min-height:34px;color:var(--chat-menu-action-text);text-align:center;border-radius:11px;padding:7px 8px;font-size:11px;line-height:1.2}.standaloneMenuLanguageButton:hover{background:var(--chat-menu-action-hover)}.standaloneMenuLanguageButton.active{color:#f8fbff;background:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 84%, white 16%), var(--chat-accent-strong));border-color:color-mix(in srgb, var(--chat-accent) 74%, white 26%);box-shadow:inset 0 1px #ffffff29}.standaloneSupportModal{z-index:110;border:1px solid var(--chat-menu-border);background:linear-gradient(180deg, color-mix(in srgb, var(--chat-menu-bg) 92%, white 8%), var(--chat-menu-bg));-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);border-radius:20px;width:min(304px,100vw - 24px);padding:12px;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 26px 60px #0206179e}.standaloneSupportHeader{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.standaloneSupportHeader .standaloneMenuLabel{margin:0}.standaloneSupportCard{box-shadow:none;background:0 0;border:0;padding:0}.standaloneSupportLead{color:#eef5ff;margin:0 0 10px;font-size:12px;line-height:1.5}.standaloneSupportCardInner{border-top:1px solid #94a3b829;margin-top:12px;padding-top:10px}.standaloneSupportKicker{color:var(--chat-muted-text);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px;font-size:12px}.standaloneSupportButtons{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.standaloneSupportMiniButton{justify-content:center;min-height:36px;padding:8px 10px;font-size:12px}.starsMark{justify-content:center;align-items:center;font-size:15px;line-height:1;display:inline-flex}.standaloneSupportTextSmall{color:var(--chat-muted-text);margin-bottom:8px;font-size:12px;line-height:1.4}.standaloneSupportQuickAmounts{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.standaloneSupportQuickAmount{color:#ffe3a1;background:#ffd67a14;border:1px solid #ffd67a33;border-radius:999px;min-width:34px;height:28px;padding:0 10px;font-size:11px;font-weight:600}.standaloneSupportQuickAmount.active{color:#241400;background:linear-gradient(#ffd76e,#e6b43a);border-color:#ffdd8999}.standaloneSupportCryptoRow{flex-direction:column;gap:8px;display:flex}.standaloneSupportInput{width:100%}.standaloneSupportOpenButton{justify-content:center;min-height:38px}.standaloneSupportGoldAction,.finalSupportGoldAction{color:#241400;background:linear-gradient(#ffd96f,#d49a21);border-color:#ffe08cad;box-shadow:inset 0 1px #ffffff47,0 10px 24px #7852083d}.finalSupportGoldAction{color:#241400!important;background:linear-gradient(#ffd96f,#d49a21)!important;border-color:#ffe08cad!important}.standaloneSupportGoldAction:hover,.finalSupportGoldAction:hover,.standaloneSupportGoldGhost:hover{background:linear-gradient(#ffe082,#dda52e);border-color:#ffe69cb8}.standaloneSupportGoldGhost{color:#241400;background:linear-gradient(#ffd96f,#d49a21);border-color:#ffe08c8f;justify-content:center;margin-top:10px;box-shadow:inset 0 1px #ffffff47,0 10px 24px #7852083d}.standaloneSupportFallbackButton{justify-content:center;margin-top:10px}.standaloneSupportLink{color:#93c5fd;text-align:center;margin-top:10px;font-size:12px;line-height:1.45;text-decoration:none;display:block}.standaloneSupportLink:hover{color:#bfdbfe;text-decoration:underline}.standaloneSupportNotice{color:var(--chat-menu-action-text);margin-top:10px;font-size:12px;line-height:1.4}.standaloneMenuPrimaryActionMuted{background:var(--chat-menu-action-bg);color:var(--chat-menu-action-text);border-color:var(--chat-menu-action-border);box-shadow:none}.supportAuthorButton{color:#edf4ff;background:linear-gradient(#22365cfa,#131f38fa);border:1px solid #6e9df547}.finalSupportBlock{flex-direction:column;gap:10px;width:min(100%,312px);margin:10px auto 0;display:flex}.finalSupportCard{background:radial-gradient(circle at 100% 0,#60a5fa1f,#0000 34%),linear-gradient(#111c33fa,#0a1221fa);border:1px solid #6e9df52e;border-radius:16px;padding:12px;box-shadow:0 12px 26px #02061742}.finalSupportTitle{color:#f8fbff;text-align:center;margin-bottom:5px;font-size:14px;font-weight:700}.finalSupportText{color:#dbe7ff;text-align:center;padding:0 1px 2px;font-size:11px;line-height:1.45}.finalSupportActions{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;display:grid}.finalSupportAction{border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:34px;padding:7px 8px;font-size:11px;display:inline-flex}.finalSupportActionWide{grid-column:1/-1}.finalSupportStarsAction{background:linear-gradient(#4f8fff,#285ed9);border:1px solid #8fbeff75}.finalSupportGhostAction{background:linear-gradient(#1a2946fa,#101a2efa);border:1px solid #6e9df52e}.finalSupportNotice{text-align:center;padding:2px 1px 0}@media (width<=420px){.finalSupportActions{grid-template-columns:repeat(2,minmax(0,1fr))}}.themeSwatch-blue{background:linear-gradient(#60a5fa,#2563eb)}.themeSwatch-emerald{background:linear-gradient(#34d399,#059669)}.themeSwatch-violet{background:linear-gradient(#a78bfa,#7c3aed)}.themeSwatch-amber{background:linear-gradient(#fbbf24,#d97706)}.themeSwatch-rose{background:linear-gradient(#fb7185,#e11d48)}.themeSwatch-cyan{background:linear-gradient(#22d3ee,#0891b2)}.themeSwatch-slate{background:linear-gradient(#94a3b8,#475569)}.themeSwatch-light{background:linear-gradient(#f8fafc,#cbd5e1)}@supports not (color:color-mix(in srgb, white 50%, black 50%)){.userBubble{background:linear-gradient(#2f7df8,#2463d9)}}.standalonePreviewPhone.theme-blue{--chat-accent:#2c5fb2;--chat-accent-strong:#194991;--chat-accent-soft:#2c5fb229;--chat-accent-border:#2c5fb25c;--chat-shell-bg:radial-gradient(circle at top, #3b82f614, transparent 34%), linear-gradient(180deg, #07101f 0%, #08111d 36%, #050b16 100%);--chat-shell-border:#3b82f638;--chat-header-bg:#020617e6;--chat-body-bg:radial-gradient(circle at top, #1e3a8a2e, transparent 38%), linear-gradient(180deg, #0b1324, #050a14);--chat-choice-passive-bg:linear-gradient(180deg, #172554fa, #0f172af5);--chat-choice-passive-hover:linear-gradient(180deg, #1e3a8afa, #172554f5)}.standalonePreviewPhone.theme-emerald{--chat-accent:#34d399;--chat-accent-strong:#059669;--chat-accent-soft:#10b98129;--chat-accent-border:#34d39957;--chat-shell-bg:radial-gradient(circle at top, #10b98117, transparent 34%), linear-gradient(180deg, #061814 0%, #081510 36%, #040c09 100%);--chat-shell-border:#10b9813d;--chat-header-bg:#02120eeb;--chat-body-bg:radial-gradient(circle at top, #05966933, transparent 38%), linear-gradient(180deg, #091814, #04100b);--chat-incoming-bg:linear-gradient(180deg, #0a2e23f5, #051a15fa);--chat-incoming-border:#10b9813d;--chat-event-bg:#06281ec7;--chat-event-border:#10b9813d;--chat-event-text:#b7f7df;--chat-choice-bg:linear-gradient(180deg, #082f22fa, #052018f5);--chat-choice-border:#34d39957;--chat-choice-hover:linear-gradient(180deg, #064e3bfa, #082f22f5);--chat-choice-passive-bg:#052018b8;--chat-choice-passive-hover:#064e3bc7}.standalonePreviewPhone.theme-violet{--chat-accent:#a78bfa;--chat-accent-strong:#7c3aed;--chat-accent-soft:#7c3aed29;--chat-accent-border:#a78bfa57;--chat-shell-bg:radial-gradient(circle at top, #7c3aed1a, transparent 34%), linear-gradient(180deg, #120a1f 0%, #120b1b 36%, #080510 100%);--chat-shell-border:#7c3aed3d;--chat-header-bg:#0c061aeb;--chat-body-bg:radial-gradient(circle at top, #6d28d933, transparent 38%), linear-gradient(180deg, #160f25, #090510);--chat-incoming-bg:linear-gradient(180deg, #2c1b4af5, #190e2bfa);--chat-incoming-border:#8b5cf63d;--chat-event-bg:#251242cc;--chat-event-border:#8b5cf642;--chat-event-text:#ddd6fe;--chat-choice-bg:linear-gradient(180deg, #2e1065fa, #1e1b4bf5);--chat-choice-border:#a78bfa57;--chat-choice-hover:linear-gradient(180deg, #5b21b6f5, #2e1065f0);--chat-choice-passive-bg:#1e1b4bbd;--chat-choice-passive-hover:#5b21b6a3}.standalonePreviewPhone.theme-amber{--chat-accent:#fbbf24;--chat-accent-strong:#d97706;--chat-accent-soft:#f59e0b29;--chat-accent-border:#fbbf2457;--chat-shell-bg:radial-gradient(circle at top, #f59e0b17, transparent 34%), linear-gradient(180deg, #1b1207 0%, #171006 36%, #0b0703 100%);--chat-shell-border:#f59e0b3d;--chat-header-bg:#180f05eb;--chat-body-bg:radial-gradient(circle at top, #d977062e, transparent 38%), linear-gradient(180deg, #1a1209, #0c0703);--chat-incoming-bg:linear-gradient(180deg, #46280ef5, #2a1707fa);--chat-incoming-border:#f59e0b3d;--chat-event-bg:#422308cc;--chat-event-border:#f59e0b42;--chat-event-text:#fde68a;--chat-choice-bg:linear-gradient(180deg, #78350ffa, #451a03f5);--chat-choice-border:#fbbf2457;--chat-choice-hover:linear-gradient(180deg, #b45309f5, #78350ff0);--chat-choice-passive-bg:#451a03bd;--chat-choice-passive-hover:#92400ec7}.standalonePreviewPhone.theme-rose{--chat-accent:#fb7185;--chat-accent-strong:#e11d48;--chat-accent-soft:#f43f5e29;--chat-accent-border:#fb718557;--chat-shell-bg:radial-gradient(circle at top, #f43f5e17, transparent 34%), linear-gradient(180deg, #1a0b13 0%, #170a12 36%, #0a0508 100%);--chat-shell-border:#f43f5e3d;--chat-header-bg:#17060eeb;--chat-body-bg:radial-gradient(circle at top, #e11d482e, transparent 38%), linear-gradient(180deg, #1a0f17, #0a0508);--chat-incoming-bg:linear-gradient(180deg, #44172af5, #280b19fa);--chat-incoming-border:#f43f5e3d;--chat-event-bg:#3f0e21cc;--chat-event-border:#f43f5e3d;--chat-event-text:#fecdd3;--chat-choice-bg:linear-gradient(180deg, #881337fa, #4c0519f5);--chat-choice-border:#fb718557;--chat-choice-hover:linear-gradient(180deg, #be185df5, #881337f0);--chat-choice-passive-bg:#4c0519bd;--chat-choice-passive-hover:#9f1239c7}.standalonePreviewPhone.theme-cyan{--chat-accent:#22d3ee;--chat-accent-strong:#0891b2;--chat-accent-soft:#06b6d429;--chat-accent-border:#22d3ee57;--chat-shell-bg:radial-gradient(circle at top, #06b6d417, transparent 34%), linear-gradient(180deg, #07171b 0%, #061417 36%, #03090b 100%);--chat-shell-border:#06b6d43d;--chat-header-bg:#041115eb;--chat-body-bg:radial-gradient(circle at top, #0891b22e, transparent 38%), linear-gradient(180deg, #0a171c, #03090c);--chat-incoming-bg:linear-gradient(180deg, #113740f5, #081e23fa);--chat-incoming-border:#06b6d43d;--chat-event-bg:#0b313acc;--chat-event-border:#22d3ee3d;--chat-event-text:#cffafe;--chat-choice-bg:linear-gradient(180deg, #164e63fa, #082f49f5);--chat-choice-border:#22d3ee57;--chat-choice-hover:linear-gradient(180deg, #0e7490f5, #164e63f0);--chat-choice-passive-bg:#082f49bd;--chat-choice-passive-hover:#0e7490c2}.standalonePreviewPhone.theme-slate{--chat-accent:#94a3b8;--chat-accent-strong:#475569;--chat-accent-soft:#64748b2e;--chat-accent-border:#94a3b857;--chat-shell-bg:radial-gradient(circle at top, #64748b17, transparent 34%), linear-gradient(180deg, #0f1720 0%, #0d141d 36%, #06090d 100%);--chat-shell-border:#64748b3d;--chat-header-bg:#050a11eb;--chat-body-bg:radial-gradient(circle at top, #4755692e, transparent 38%), linear-gradient(180deg, #111925, #070b10);--chat-incoming-bg:linear-gradient(180deg, #232d3af5, #121821fa);--chat-incoming-border:#94a3b833;--chat-event-bg:#1a212bd1;--chat-event-border:#94a3b82e;--chat-event-text:#e2e8f0;--chat-choice-bg:linear-gradient(180deg, #334155fa, #1e293bf5);--chat-choice-border:#94a3b84d;--chat-choice-hover:linear-gradient(180deg, #475569f5, #334155f0);--chat-choice-passive-bg:#1e293bbd;--chat-choice-passive-hover:#334155c7}.standalonePreviewPhone.theme-light{--chat-accent:#2563eb;--chat-accent-strong:#1d4ed8;--chat-accent-soft:#2563eb1f;--chat-accent-border:#3b82f63d;--chat-shell-bg:radial-gradient(circle at top, #2563eb14, transparent 32%), linear-gradient(180deg, #f8fafc 0%, #eef2ff 38%, #e2e8f0 100%);--chat-shell-border:#94a3b885;--chat-shell-shadow:#64748b2e;--chat-header-bg:#ffffffe6;--chat-header-border:#94a3b88c;--chat-header-text:#0f172a;--chat-muted-text:#475569;--chat-body-bg:radial-gradient(circle at top, #2563eb0f, transparent 30%), linear-gradient(180deg, #f8fafc, #e2e8f0);--chat-avatar-bg:linear-gradient(180deg, #dbeafe, #bfdbfe);--chat-avatar-border:#2563eb5c;--chat-icon-bubble:#eff6ff;--chat-icon-mask:color-mix(in srgb, var(--chat-accent) 98%, white 2%);--chat-icon-stroke:#2563eb4d;--chat-incoming-bg:linear-gradient(180deg, #fffffffa, #e2e8f0f5);--chat-incoming-border:#94a3b8b8;--chat-incoming-text:#0f172a;--chat-event-bg:#f8fafceb;--chat-event-border:#94a3b89e;--chat-event-text:#334155;--chat-dock-bg:#f8fafceb;--chat-dock-border:#94a3b89e;--chat-choice-text:#fff;--chat-choice-passive-bg:#e2e8f0d1;--chat-choice-passive-hover:#cbd5e1e6;--chat-choice-passive-border:#94a3b8b8;--chat-choice-passive-text:#475569;--chat-composer-bg:#fffffffa;--chat-composer-border:#2563eb3d;--chat-composer-text:#64748b;--chat-menu-bg:#fffffffa;--chat-menu-border:#2563eb2e;--chat-menu-action-bg:#eff6fffa;--chat-menu-action-border:#bfdbfef2;--chat-menu-action-text:#0f172a;--chat-menu-action-hover:#dbeafefa;--chat-icon-button-bg:#eff6fffa;--chat-icon-button-border:#bfdbfef2;--chat-icon-button-text:#1d4ed8;--chat-icon-button-hover:#dbeafefa;--chat-user-text:#fff}.standalonePreviewPhone,.standalonePreviewPhone.theme-blue,.standalonePreviewPhone.theme-emerald,.standalonePreviewPhone.theme-violet,.standalonePreviewPhone.theme-amber,.standalonePreviewPhone.theme-rose,.standalonePreviewPhone.theme-cyan,.standalonePreviewPhone.theme-slate,.standalonePreviewPhone.theme-light{--chat-choice-bg:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 92%, white 8%), var(--chat-accent-strong));--chat-choice-border:var(--chat-accent-border);--chat-choice-hover:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 86%, white 14%), color-mix(in srgb, var(--chat-accent-strong) 90%, black 10%))}.standalonePreviewPhone:not(.theme-light){--chat-avatar-bg:linear-gradient(180deg, color-mix(in srgb, var(--chat-accent) 28%, #172033 72%), color-mix(in srgb, var(--chat-accent-strong) 18%, #0f172a 82%));--chat-avatar-border:color-mix(in srgb, var(--chat-accent) 34%, #475569b3 66%);--chat-dock-bg:color-mix(in srgb, var(--chat-accent) 12%, #020617eb 88%);--chat-dock-border:color-mix(in srgb, var(--chat-accent) 26%, #334155b8 74%);--chat-composer-bg:color-mix(in srgb, var(--chat-accent) 14%, #0f172ad1 86%);--chat-composer-border:color-mix(in srgb, var(--chat-accent) 28%, #334155b8 72%);--chat-menu-bg:color-mix(in srgb, var(--chat-accent) 10%, #020617f5 90%);--chat-menu-border:color-mix(in srgb, var(--chat-accent) 26%, #475569c2 74%);--chat-menu-action-bg:color-mix(in srgb, var(--chat-accent) 12%, #0f172ad1 88%);--chat-menu-action-border:color-mix(in srgb, var(--chat-accent) 24%, #334155c2 76%);--chat-menu-action-hover:color-mix(in srgb, var(--chat-accent) 20%, #1e293bf0 80%);--chat-icon-button-bg:color-mix(in srgb, var(--chat-accent) 12%, #0f172ad1 88%);--chat-icon-button-border:color-mix(in srgb, var(--chat-accent) 24%, #334155c2 76%);--chat-icon-button-hover:color-mix(in srgb, var(--chat-accent) 20%, #1e293bf0 80%)}@keyframes bubbleIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes typingDotFade{0%,75%,to{opacity:.35}35%{opacity:1}}.gameShell{background:radial-gradient(circle at 0 0,#3b82f61f,#0000 30%),radial-gradient(circle at 100% 100%,#dc26261f,#0000 28%),linear-gradient(#030712 0%,#07111f 48%,#020617 100%);grid-template-columns:minmax(280px,360px) minmax(340px,520px);justify-content:center;align-items:center;gap:28px;min-height:100vh;padding:28px;display:grid}.gameSidebar{align-self:stretch;gap:16px;display:grid}.gameIntroPanel{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#020617ad;border:1px solid #334155b3;border-radius:24px;padding:28px;box-shadow:0 32px 90px #0206177a}.gameKicker{color:#60a5fa;text-transform:uppercase;margin-bottom:10px;font-size:12px;font-weight:700}.gameTitle{margin:0 0 10px;font-size:clamp(28px,4vw,42px);line-height:1.04}.gameLead{color:#cbd5e1;margin:0;line-height:1.6}.gameNotice{color:#94a3b8;background:#0f172ab3;border:1px solid #334155b3;border-radius:14px;margin-top:18px;padding:10px 12px;font-size:13px}.gameNotice.error{color:#fecaca;background:#450a0a6b;border-color:#7f1d1dbf}.gameChaptersPanel{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#020617c7;border:1px solid #334155b3;border-radius:22px;padding:18px;box-shadow:0 24px 72px #0206176b}.gameChaptersHeader{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.gameChaptersHeader strong{color:#e2e8f0;font-size:15px}.gameChaptersHeader span{color:#94a3b8;font-size:12px}.gameChapterSelect{width:100%;min-height:420px;padding:10px;font-size:13px}.gamePhoneStage{justify-content:center;align-items:center;display:flex}.telegramGameShell{min-height:100dvh;padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;gap:0}.telegramGameShellClean{gap:0}.telegramPhoneStage{justify-content:stretch;align-items:stretch;width:100%;min-height:100dvh}.telegramPhoneStage .standalonePreviewPhone{width:100%;max-width:none;height:calc(100dvh - env(safe-area-inset-top,0) - env(safe-area-inset-bottom,0));box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;border-radius:0;margin:0}.telegramPhoneStage .chatScroll,.telegramPhoneStage .choiceDock,.telegramPhoneStage .chatComposerShell{padding-left:12px;padding-right:12px}.telegramLoadingPanel{max-width:520px;margin:0 auto}.telegramDevNotice,.telegramViewerDebug{z-index:5;color:#dbe7ff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#020617e0;border:1px solid #60a5fa47;border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.4;position:fixed;left:12px;right:12px}.telegramDevNotice{top:calc(env(safe-area-inset-top,0) + 8px)}.telegramViewerDebug{bottom:calc(env(safe-area-inset-bottom,0) + 8px);flex-wrap:wrap;gap:10px;display:flex}@media (width<=980px){.gameShell{grid-template-columns:1fr;gap:18px;padding:16px}.gameSidebar{order:2}.gameIntroPanel{padding:18px}.gameChaptersPanel{padding:16px}.standalonePreviewPhone{height:min(820px,100vh - 260px)}.telegramGameShell{padding:0}}.graphPanel{background:#020617;border:1px solid #334155;border-radius:20px;height:100%;position:relative;overflow:hidden}.graphHint{z-index:5;color:#cbd5e1;pointer-events:none;background:#020617db;border:1px solid #334155;border-radius:12px;max-width:440px;padding:8px 10px;font-size:12px;position:absolute;top:12px;left:12px}.graphControls{z-index:5;background:#020617e0;border:1px solid #334155;border-radius:12px;gap:6px;padding:6px;position:absolute;top:12px;right:12px}.graphViewport{cursor:grab;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.graphViewport.dragging{cursor:grabbing}.graphCanvas{position:absolute;top:0;left:0}.graphSvg{pointer-events:none;position:absolute;inset:0}.graphSvg marker path{fill:#64748b}#graphArrowDanger path{fill:#ef4444}.graphLine{fill:none;stroke:#475569;stroke-width:1.6px;opacity:.75}.graphLine.active{stroke:#60a5fa;stroke-width:2.6px;opacity:1}.graphLine.danger{stroke:#ef4444}.graphSceneNode,.graphChoiceNode{color:#e2e8f0;background:#0f172a;border:1px solid #475569;border-radius:16px;padding:10px;position:absolute;box-shadow:0 18px 35px #00000047}.graphSceneNode{cursor:pointer}.graphSceneNode.selected{background:#172554;border-color:#60a5fa}.graphSceneNode.preview{box-shadow:0 0 0 3px #22c55e38,0 18px 35px #00000047}.graphSceneNode.problem{border-color:#ef4444}.graphSceneNode.orphan{border-color:#f59e0b}.graphSceneNode.ending{background:#064e3b;border-color:#10b981}.graphNodeTitle{font-weight:800;line-height:1.2}.graphPreviewButton{width:100%;margin-top:8px}.graphChoiceNode{background:#1e293b;min-height:48px;font-size:12px}.graphChoiceNode.active{border-color:#60a5fa}.graphChoiceNode.problem{color:#fecaca;border-color:#ef4444}.graphChoiceNode small{color:#94a3b8;margin-top:4px;display:block}.debugPanel{height:100%;padding-right:4px;overflow:auto}.debugCards{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px;display:grid}.debugCard{background:#020617;border:1px solid #334155;border-radius:14px;padding:10px}.debugCard strong{text-overflow:ellipsis;font-size:16px;display:block;overflow:hidden}.debugCard span{color:#94a3b8;font-size:11px}.debugNotice{border:1px solid #334155;border-radius:14px;align-items:center;gap:8px;margin-bottom:10px;padding:10px;display:flex}.debugNotice.ok{color:#86efac;background:#14532d33;border-color:#166534}.debugNotice.warning{color:#fde68a;background:#713f1240;border-color:#854d0e}.debugNotice.danger{color:#fecaca;background:#7f1d1d33;border-color:#7f1d1d}.validationList{background:#02061759;border:1px solid #334155;border-radius:16px;margin-bottom:12px;padding:12px}.validationItem{border-radius:10px;margin-top:6px;padding:8px;font-size:13px}.errorItem{color:#fecaca;background:#7f1d1d3d}.warningItem{color:#fde68a;background:#713f1247}.jsonPreview{color:#cbd5e1;background:#020617;border:1px solid #334155;border-radius:12px;padding:12px;font-size:12px;overflow:auto}.emptyState{color:#94a3b8;place-items:center;height:100%;display:grid}@media (width<=1280px){body{min-width:0}.appShell{grid-template-columns:280px 1fr}.rightPanel{grid-column:1/-1;height:720px}}@media (width<=860px){.appShell{grid-template-columns:1fr}.sidebar,.editor,.rightPanel{height:auto;max-height:none}.twoCols,.threeCols,.debugCards{grid-template-columns:1fr}}.workspaceSwitch{grid-template-columns:1fr 1fr;gap:6px;display:grid}.workspaceSwitch .tab{text-transform:none;border-radius:10px;min-height:32px;padding:6px 8px;font-size:12px}.sidebarListHeader{grid-template-columns:1fr;align-items:end;gap:8px;display:grid}.compactField{gap:4px}.compactSelect{border-radius:10px;height:34px;padding:6px 8px;font-size:12px}.sceneListItem.flowItem{position:relative}.sceneListItem.flowItem:before{content:"";opacity:.9;border-top:1px solid #475569;width:10px;position:absolute;top:18px;left:-11px}.flowChoiceRow{text-align:left;color:#bfdbfe;background:#0f172a8c;border:1px dashed #334155;border-radius:10px;grid-template-columns:18px 1fr;align-items:start;gap:6px;width:calc(100% - 2px);padding:7px 8px;display:grid}.flowChoiceRow:hover{background:#1e293bd9;border-color:#60a5fa}.flowChoiceRow.branchColor1{background:#0f766e1f;border-color:#0f766e}.flowChoiceRow.branchColor2{background:#1d4ed81f;border-color:#1d4ed8}.flowChoiceRow.branchColor3{background:#9a34121f;border-color:#9a3412}.flowArrow{color:#38bdf8;font-weight:700;line-height:1.2}.flowChoiceText{font-size:12px;line-height:1.3}.sidebarDivider{color:#facc15;text-transform:uppercase;letter-spacing:.08em;border-top:1px solid #334155;margin-top:4px;padding:8px 4px 2px;font-size:11px}.graphEditorPage{flex-direction:column;grid-column:2/-1;height:calc(100vh - 28px);display:flex;overflow:hidden}.graphEditorToolbar{background:#02061780;border-bottom:1px solid #334155;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;min-height:82px;padding:14px 16px;display:flex}.graphEditorToolbar h2{align-items:center;gap:8px;display:flex}.graphConnectHint{color:#bbf7d0;background:#14532d47;border:1px solid #22c55e73;border-radius:10px;max-width:720px;margin-top:7px;padding:6px 9px;font-size:12px;font-weight:700;display:inline-flex}.graphEditorViewport{cursor:grab;-webkit-user-select:none;user-select:none;background:radial-gradient(circle at 0 0,#1e293bbd,#0000 28%),#020617;flex:1;position:relative;overflow:hidden}.graphEditorViewport.dragging{cursor:grabbing}.graphEditorViewport.connecting{cursor:crosshair}.graphEditorCanvas{transform-origin:0 0;position:absolute;top:0;left:0}.graphEditorCanvas:before{content:"";pointer-events:none;background-image:linear-gradient(#94a3b80f 1px,#0000 1px),linear-gradient(90deg,#94a3b80f 1px,#0000 1px);background-size:32px 32px;position:absolute;inset:0}.graphEditorSvg{pointer-events:none;z-index:1;position:absolute;inset:0;overflow:visible}.graphEditorSvg marker path{fill:#64748b}#graphEditorArrowDanger path{fill:#ef4444}#graphEditorArrowHighlight path{fill:#22c55e}.graphEditorLine{fill:none;stroke:#64748b;stroke-width:2.2px;opacity:.46}.graphEditorLine.active{stroke:#60a5fa;stroke-width:3px;opacity:.82}.graphEditorLine.danger{stroke:#ef4444}.graphEditorLine.dimmed{opacity:.12}.graphEditorLine.highlighted{stroke:#22c55e;stroke-width:6px;opacity:1;filter:drop-shadow(0 0 10px #22c55ea6)}.graphEditorLine.previewLine{stroke:#a78bfa;stroke-dasharray:9 7;stroke-width:3px;opacity:.95}.graphEditNode{z-index:2;cursor:grab;color:#e2e8f0;-webkit-user-select:text;user-select:text;background:#0f172af7;border:1px solid #475569;border-radius:20px;width:460px;padding:12px;position:absolute;box-shadow:0 22px 55px #0006}.graphEditNode.compact{width:420px}.graphEditNode:active{cursor:grabbing}.graphEditNode.selected{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa2e,0 22px 55px #0006}.graphEditNode.lineTarget{border-color:#22c55e;box-shadow:0 0 0 4px #22c55e33,0 22px 55px #0006}.graphEditNode.problem{border-color:#ef4444}.graphEditNode.orphan{border-color:#f59e0b}.graphEditNode.ending{background:#064e3bf5;border-color:#10b981}.graphEditNodeHeader{grid-template-columns:82px 1fr auto;align-items:start;gap:8px;display:grid}.graphNodeHeaderText{gap:6px;min-width:0;display:grid}.graphNodeDragHandle{color:#bfdbfe;cursor:grab;background:#020617;border:1px solid #334155;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:76px;font-weight:800;display:flex}.graphNodeDragHandle span{color:#94a3b8;font-size:10px;font-weight:700}.graphNodeDragHandle:hover{background:#0f172a;border-color:#60a5fa}.graphNodeDragHandle:active{cursor:grabbing}.graphIdInput{color:#bfdbfe;height:32px;font-size:12px;font-weight:700}.graphTitleInput{height:38px;font-weight:800}.graphSpeakerInput{min-width:90px;max-width:135px;height:32px}.graphSystemInput{margin-top:10px}.graphNodeMetaLine{color:#94a3b8;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0;font-size:11px;display:flex}.graphNodeFlags{margin-top:8px}.graphCompactText{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.graphCompactText span{color:#cbd5e1;background:#020617;border:1px solid #334155;border-radius:999px;padding:3px 7px;font-size:11px}.graphInputPort,.graphOutputPort{z-index:5;background:#0f172a;border:2px solid #93c5fd;border-radius:50%;width:18px;height:18px;padding:0;position:absolute;box-shadow:0 0 0 4px #60a5fa1f}.graphInputPort{top:30px;left:-10px}.graphOutputPort{cursor:crosshair;top:50%;right:-10px;transform:translateY(-50%)}.graphOutputPort:hover,.graphInputPort:hover{background:#60a5fa}.dangerPort{border-color:#ef4444;box-shadow:0 0 0 4px #ef444426}.graphEditSection,.graphChoicesBlock,.graphAiMini{background:#02061757;border:1px solid #334155;border-radius:14px;margin-top:10px;padding:9px}.graphEditSectionHead{color:#cbd5e1;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;font-weight:700;display:flex}.graphMiniStack{flex-direction:column;gap:8px;display:flex}.graphMessageMiniRow{grid-template-columns:22px 1fr 28px;align-items:start;gap:7px;display:grid}.graphMiniIndex{color:#64748b;text-align:right;padding-top:8px;font-size:11px}.graphMiniTextarea{min-height:34px;padding:7px 8px;font-size:12px}.graphMiniButtons{flex-direction:column;gap:4px;display:flex}.graphMiniButtons .iconButton,.graphInlineChoice .iconButton{border-radius:9px;width:28px;height:28px}.graphPauseToken{color:#94a3b8;background:#020617;border:1px dashed #64748b;border-radius:10px;height:34px}.graphPauseToken:hover{color:#bfdbfe;border-color:#60a5fa}.graphInlineChoice{cursor:default;background:#111827;border:1px solid #475569;border-radius:14px;padding:8px;position:relative}.graphInlineChoice.highlighted{background:#14532d47;border-color:#22c55e;box-shadow:0 0 0 2px #22c55e38}.graphInlineChoice.highlighted .graphOutputPort{background:#16a34a;border-color:#22c55e;box-shadow:0 0 0 5px #22c55e33}.graphInlineChoice.problem{border-color:#ef4444}.graphChoiceTopLine{grid-template-columns:22px 1fr 28px;align-items:start;gap:7px;padding-right:10px;display:grid}.graphChoiceText{min-height:34px;padding:7px 8px;font-size:12px}.graphChoiceTargetLine{color:#94a3b8;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:5px;margin:6px 30px 0 28px;display:grid}.graphChoiceTargetLine .input{height:30px;padding:5px 8px;font-size:12px}.dangerInput{color:#fecaca;border-color:#ef4444}.graphChoiceDetails{color:#cbd5e1;margin:8px 30px 0 28px;font-size:12px}.graphChoiceDetails summary{cursor:pointer;color:#bfdbfe;margin-bottom:8px}.graphChoiceDetailGrid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;display:grid}.graphAiMini{border-color:#6d28d9}.graphNodeFooter{justify-content:space-between;gap:8px;margin-top:10px;display:flex}@media (width<=1280px){.graphEditorPage{grid-column:1/-1;height:780px}}
