:root,[data-theme=dark]{--brand-green: #4ade80;--brand-cyan: #22d3ee;--brand-indigo: #6366f1;--brand-gradient: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cyan) 48%, var(--brand-indigo) 100%);--brand-gradient-h: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-cyan) 50%, var(--brand-indigo) 100%);--bg: #0b0f1a;--bg-elevated: #121829;--surface: #1a2236;--surface-highlight: #1f2937;--border: #2a3550;--text: #e8edf7;--text-muted: #8b9bb8;--accent: #22d3ee;--accent-hover: #67e8f9;--root: #4ade80;--expandable: #22d3ee;--expanded: #6366f1;--terminal: #6b7280;--error-bg: #3f1d24;--error-text: #fca5a5;--success-bg: #14291f;--success-text: #86efac;--edge-color: #4b5e8a;--grid-color: #1e2a42;--shadow: rgba(0, 0, 0, .35);--font: "Onest", system-ui, sans-serif;--mono: "JetBrains Mono", monospace}[data-theme=light]{--brand-green: #22c55e;--brand-cyan: #0891b2;--brand-indigo: #4f46e5;--brand-gradient: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cyan) 48%, var(--brand-indigo) 100%);--brand-gradient-h: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-cyan) 50%, var(--brand-indigo) 100%);--bg: #f4f6fb;--bg-elevated: #ffffff;--surface: #ffffff;--surface-highlight: #f0f4fa;--border: #d8e0ed;--text: #1a2332;--text-muted: #5a6a85;--accent: #0891b2;--accent-hover: #06b6d4;--root: #16a34a;--expandable: #0891b2;--expanded: #4f46e5;--terminal: #9ca3af;--error-bg: #fef2f2;--error-text: #b91c1c;--success-bg: #ecfdf5;--success-text: #047857;--edge-color: #94a3b8;--grid-color: #e2e8f0;--shadow: rgba(15, 23, 42, .1)}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}.app-shell{display:flex;flex-direction:column;height:100%}.app-main{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.65rem 1.25rem;background:var(--bg-elevated);border-bottom:1px solid var(--border);flex-shrink:0;z-index:10;gap:1rem}.app-header__brand{display:flex;align-items:center;gap:.55rem;color:var(--text);text-decoration:none;justify-self:start}.logo-brand{display:inline-flex;align-items:center;gap:.55rem;min-width:0}.logo-brand__text{font-weight:700;font-size:1.28rem;letter-spacing:-.02em;line-height:1;color:var(--text)}.logo-brand__mark{display:block;flex-shrink:0;border-radius:10px;box-shadow:0 1px 4px color-mix(in srgb,var(--shadow) 65%,transparent)}.app-header--auth-mobile{display:none}.app-header__menu-btn{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:1rem;line-height:1;padding:0;cursor:pointer;flex-shrink:0}.app-header__menu-spacer{width:36px;flex-shrink:0}.app-header--auth-mobile .app-header__brand{flex:1;min-width:0}.app-header__actions{display:flex;align-items:center;gap:.5rem;justify-self:end}.theme-icon{flex-shrink:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}.theme-icon--moon{filter:drop-shadow(0 2px 4px rgba(15,23,42,.45))}.btn--sm{font-size:.85rem;padding:.45rem .9rem}.btn--full{width:100%}.btn--icon{width:36px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);font-size:1rem;cursor:pointer}.btn--icon:hover{background:var(--surface);color:var(--text)}.landing{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1.5rem 3rem;position:relative;overflow:hidden}.landing__glow{position:absolute;top:-20%;left:50%;transform:translate(-50%);width:600px;height:600px;background:radial-gradient(circle,color-mix(in srgb,var(--brand-cyan) 22%,transparent) 0%,color-mix(in srgb,var(--brand-indigo) 8%,transparent) 45%,transparent 72%);pointer-events:none}.landing__header{text-align:center;max-width:560px;margin-bottom:2rem;position:relative;z-index:1}.landing__logo{font-size:2rem;color:var(--accent);margin-bottom:.5rem}.landing__header h1{font-size:3rem;font-weight:800;margin:0 0 .75rem;letter-spacing:-.03em;line-height:1.1;color:var(--text)}.landing__subtitle{color:var(--text-muted);line-height:1.6;margin:0;font-size:1.05rem}.landing__auth-prompt{text-align:center;position:relative;z-index:1}.landing__auth-prompt p{color:var(--text-muted);margin-bottom:1rem}.landing__form{width:100%;max-width:640px;position:relative;z-index:1}.landing__form label{display:block;font-weight:500;margin-bottom:.5rem;font-size:.9rem;color:var(--text-muted)}.landing__form textarea{width:100%;padding:1rem 1.25rem;border:1px solid var(--border);border-radius:12px;background:var(--bg-elevated);color:var(--text);font-family:var(--font);font-size:1rem;line-height:1.6;resize:vertical;transition:border-color .2s,box-shadow .2s}.landing__form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #3b82f633}.landing__form textarea::placeholder{color:#5a6a88}.landing__actions{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1rem;flex-wrap:wrap}.landing__hint{font-size:.8rem;color:var(--text-muted)}.landing__warning{margin-top:1.5rem;padding:.875rem 1.25rem;background:var(--error-bg);color:var(--error-text);border-radius:10px;font-size:.9rem;max-width:640px}.landing__warning code{font-family:var(--mono);font-size:.85em;background:#00000040;padding:.1em .4em;border-radius:4px}.landing__footer{margin-top:3rem;position:relative;z-index:1}.goal-brief{position:relative;max-width:720px;margin:0 auto;padding:1.5rem 1.25rem 3rem}.goal-brief__glow{position:absolute;inset:-20% -10% auto;height:320px;background:radial-gradient(ellipse at 50% 0%,var(--accent-glow),transparent 70%);pointer-events:none;opacity:.45}.goal-brief__header{position:relative;z-index:1;display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.goal-brief__eyebrow{margin:0 0 .35rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}.goal-brief__goal{margin:0;font-size:clamp(1.35rem,3vw,1.75rem);line-height:1.3}.goal-brief__status{color:var(--text-muted);font-size:.95rem}.goal-brief__status--inline{margin:0 0 .75rem}.goal-brief__error{padding:1rem;border-radius:10px;background:var(--error-bg);color:var(--error-text);margin-bottom:1rem}.goal-brief__facts,.goal-brief__form{position:relative;z-index:1;margin-top:1.25rem;padding:1.25rem;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.goal-brief__facts h2,.goal-brief__form h2{margin:0 0 .75rem;font-size:1.05rem}.goal-brief__facts ul{margin:0;padding-left:1.1rem;color:var(--text-muted)}.goal-brief__facts li+li{margin-top:.35rem}.goal-brief__hint{margin:0 0 1rem;color:var(--text-muted);font-size:.9rem}.goal-brief__field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}.goal-brief__field label{font-size:.9rem;font-weight:500}.goal-brief__input{width:100%;padding:.7rem .85rem;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}.goal-brief__input:focus{outline:none;border-color:var(--accent)}.goal-brief__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.5rem}.guide-journey{flex:1;display:flex;flex-direction:column;min-height:0;max-width:960px;margin:0 auto;padding:1.25rem 1rem 2rem;width:100%}.guide-journey__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.guide-journey__eyebrow{margin:0 0 .35rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}.guide-journey__goal{margin:0;font-size:clamp(1.25rem,3vw,1.65rem);line-height:1.3}.guide-journey__new{flex-shrink:0;border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.45rem .85rem;font:inherit;font-size:.85rem;cursor:pointer;color:var(--text-muted)}.guide-journey__new:hover{color:var(--text);border-color:var(--text-muted)}.guide-journey__progress{margin-bottom:1.25rem}.guide-journey__progress-track{height:6px;border-radius:999px;background:var(--border);overflow:hidden}.guide-journey__progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .35s ease}.guide-journey__progress-label{margin:.4rem 0 0;font-size:.8rem;color:var(--text-muted)}.guide-journey__layout{display:grid;grid-template-columns:minmax(180px,220px) 1fr;gap:1.25rem;flex:1;min-height:0}.guide-journey__timeline{position:sticky;top:1rem;align-self:start}.guide-journey__timeline-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.guide-journey__timeline-item{display:flex;align-items:flex-start;gap:.5rem;padding:.45rem .55rem;border-radius:8px;font-size:.82rem;color:var(--text-muted)}.guide-journey__timeline-item--current{background:var(--bg-elevated);border:1px solid var(--accent);color:var(--text);font-weight:600}.guide-journey__timeline-item--done{color:var(--text);opacity:.75}.guide-journey__timeline-marker{flex-shrink:0;width:1.4rem;text-align:center}.guide-journey__timeline-title{line-height:1.35}.guide-journey__main{min-width:0}.guide-journey__card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.35rem}.guide-journey__card--loading,.guide-journey__card--complete{text-align:center}.guide-journey__step-title{margin:0 0 1rem;font-size:1.2rem;display:flex;align-items:center;gap:.5rem}.guide-journey__step-emoji{font-size:1.35rem}.guide-journey__content{max-height:50vh;overflow-y:auto;margin-bottom:1.25rem}.guide-journey__markdown{margin:0;font-size:.9rem;line-height:1.6;white-space:pre-wrap}.guide-journey__markdown a{color:var(--accent);text-decoration:underline}.guide-journey__form{border-top:1px solid var(--border);padding-top:1rem}.guide-journey__question label{display:block;margin-bottom:.5rem;font-weight:600;font-size:.92rem}.guide-journey__question input[type=text],.guide-journey__question input[type=number]{width:100%;padding:.65rem .75rem;border:1px solid var(--border);border-radius:8px;font:inherit;background:var(--bg-elevated);color:var(--text)}.guide-journey__options{display:flex;flex-direction:column;gap:.45rem;margin-bottom:.75rem}.guide-journey__option{display:flex;align-items:center;gap:.55rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:.9rem}.guide-journey__option:has(input:checked){border-color:var(--accent);background:var(--bg-elevated)}.guide-journey__next{width:100%;margin-top:.75rem}.guide-journey__step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.guide-journey__step-head .guide-journey__step-title{margin:0}.guide-journey__execute{width:100%;margin:1rem 0}.guide-journey__executing{margin:1rem 0;font-size:.95rem;color:var(--accent)}.guide-journey__exec-fields{margin:1rem 0;padding:.85rem;border-radius:10px;background:var(--bg-elevated);border:1px solid var(--border)}.guide-journey__exec-label{margin:0 0 .65rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.guide-journey__exec-field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.65rem;font-size:.9rem}.guide-journey__exec-field input,.guide-journey__exec-field select{padding:.55rem .65rem;border:1px solid var(--border);border-radius:8px;font:inherit;background:var(--surface);color:var(--text)}.task-status{flex-shrink:0;font-size:.75rem;font-weight:600;padding:.3rem .55rem;border-radius:999px;white-space:nowrap}.task-status--pending{background:var(--bg-elevated);color:var(--text-muted);border:1px solid var(--border)}.task-status--executing{background:#6366f11f;color:var(--accent);border:1px solid var(--accent)}.task-status--human_needed{background:#fbbf241f;color:#b45309;border:1px solid rgba(251,191,36,.5)}.task-status--done{background:#22c55e1f;color:#15803d;border:1px solid rgba(34,197,94,.4)}.task-deliverable{margin:1rem 0;padding:1rem;border-radius:12px;background:var(--bg-elevated);border:1px solid var(--border)}.task-deliverable__summary{margin:0 0 .85rem;line-height:1.5;font-size:.92rem}.task-deliverable__highlights{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.45rem}.task-deliverable__highlights li{display:flex;gap:.5rem;font-size:.88rem;line-height:1.4}.task-deliverable__check{color:#15803d;flex-shrink:0}.task-deliverable__items{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.task-deliverable__item{padding:.75rem;border-radius:10px;background:var(--surface);border:1px solid var(--border)}.task-deliverable__item-title{margin:0 0 .25rem;font-size:.95rem}.task-deliverable__item-sub{margin:0 0 .5rem;font-size:.82rem;color:var(--text-muted)}.task-deliverable__fields{margin:0 0 .5rem;display:grid;gap:.35rem}.task-deliverable__field{display:grid;grid-template-columns:120px 1fr;gap:.5rem;font-size:.85rem}.task-deliverable__field dt{color:var(--text-muted);margin:0}.task-deliverable__field dd{margin:0}.task-deliverable__pros,.task-deliverable__cons{margin:.35rem 0 0;font-size:.82rem;line-height:1.4}.task-deliverable__checklist{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.4rem}.task-deliverable__checklist-item{font-size:.88rem;display:flex;gap:.45rem}.task-deliverable__artifacts-label{margin:0 0 .5rem;font-size:.78rem;font-weight:600;text-transform:uppercase;color:var(--text-muted)}.task-deliverable__artifacts ul{list-style:none;margin:0;padding:0}.task-deliverable__artifact-btn{border:none;background:none;font:inherit;color:var(--accent);cursor:pointer;text-decoration:underline;padding:0}.task-deliverable__artifact-desc{display:block;font-size:.78rem;color:var(--text-muted);margin-top:.15rem}.task-deliverable__full{margin-top:.75rem;font-size:.85rem}.task-deliverable__full summary{cursor:pointer;color:var(--accent)}.task-deliverable__markdown{margin:.5rem 0 0;white-space:pre-wrap;line-height:1.55;font-size:.85rem}.listing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.85rem;margin-bottom:1rem}.listing-card{display:flex;flex-direction:column;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--surface);text-decoration:none;color:inherit;transition:border-color .2s,box-shadow .2s}.listing-card:hover{border-color:var(--accent);box-shadow:0 4px 20px #00000014}.listing-card__media{position:relative;aspect-ratio:16 / 10;background:var(--bg-elevated);overflow:hidden}.listing-card__img{width:100%;height:100%;object-fit:cover;display:block}.listing-card__placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.5rem;opacity:.35}.listing-card__source{position:absolute;left:.5rem;top:.5rem;font-size:.7rem;font-weight:600;padding:.2rem .45rem;border-radius:6px;background:#000000a6;color:#fff}.listing-card__body{padding:.75rem .85rem .85rem;display:flex;flex-direction:column;gap:.35rem;flex:1}.listing-card__title{margin:0;font-size:.9rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.listing-card__meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.82rem}.listing-card__price{font-weight:700;color:var(--accent)}.listing-card__area{color:var(--text-muted)}.listing-card__snippet{margin:0;font-size:.78rem;line-height:1.4;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.listing-card__link{margin-top:auto;padding-top:.35rem;font-size:.8rem;font-weight:600;color:var(--accent)}.guide-journey__error{margin-bottom:1rem;padding:.85rem 1rem;border-radius:10px;border:1px solid #e57373;background:#e5737314}.guide-journey__complete-summary{margin:0 0 1.25rem;line-height:1.55;color:var(--text)}.guide-journey__next-actions{text-align:left;margin-bottom:1.25rem}.guide-journey__next-actions h3{margin:0 0 .5rem;font-size:.95rem}.guide-journey__next-actions ul{margin:0;padding-left:1.2rem;line-height:1.5}@media(max-width:768px){.guide-journey__layout{grid-template-columns:1fr}.guide-journey__timeline{position:static;order:-1}.guide-journey__timeline-list{flex-direction:row;flex-wrap:wrap;gap:.35rem}.guide-journey__timeline-item{flex:1 1 auto;min-width:140px}}.legend{display:flex;gap:1.25rem;flex-wrap:wrap;justify-content:center}.legend__item{font-size:.8rem;color:var(--text-muted);display:flex;align-items:center;gap:.4rem}.legend__item:before{content:"";width:14px;height:10px;border-radius:3px;border:2px solid var(--border);background:var(--surface);flex-shrink:0}.legend__item--root:before{border-color:var(--root)}.legend__item--expandable:before{border-color:var(--expandable)}.legend__item--expanded:before{border-color:var(--expanded)}.legend__item--terminal:before{border-color:var(--terminal)}.legend--graph{gap:.65rem 1rem;justify-content:flex-end}.btn{font-family:var(--font);font-size:.95rem;font-weight:600;padding:.7rem 1.4rem;border-radius:10px;border:none;cursor:pointer;text-decoration:none;transition:background .2s,opacity .2s,transform .1s}a.btn,a.btn:hover,a.btn:focus{text-decoration:none}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn--primary{background:var(--accent);color:#fff;border:none}.btn--primary:hover:not(:disabled){background:var(--accent-hover)}.btn--launch{font-size:1.05rem;padding:.8rem 1.6rem}.btn--ghost{background:transparent;color:var(--text-muted);border:1px solid var(--border);font-size:.85rem;padding:.45rem .9rem}.btn--ghost:hover{color:var(--text);border-color:var(--text-muted)}.home-layout{display:flex;flex:1;min-height:0;width:100%}.home-layout__main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.scenario-sidebar{width:260px;flex-shrink:0;display:flex;flex-direction:column;background:var(--bg-elevated);border-right:1px solid var(--border);overflow:hidden}.scenario-rail{width:52px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:.55rem;padding:.7rem .35rem;background:var(--bg-elevated);border-right:1px solid var(--border)}.scenario-rail__brand{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;color:var(--text);text-decoration:none}.scenario-rail__brand:hover{background:var(--surface)}.scenario-rail__btn{width:38px;height:38px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:1rem;line-height:1;cursor:pointer;padding:0}.scenario-rail__btn:hover{border-color:var(--text-muted);background:var(--bg-elevated)}.scenario-sidebar__brand{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .85rem;border-bottom:1px solid var(--border);flex-shrink:0}.scenario-sidebar__brand-link{display:inline-flex;align-items:center;gap:.5rem;color:var(--text);text-decoration:none;min-width:0}.scenario-sidebar__brand-link .logo-brand__text{font-size:1.5rem}.scenario-sidebar__header{display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem;border-bottom:1px solid var(--border);flex-shrink:0}.scenario-sidebar__new{flex:1;justify-content:center;font-weight:600}.scenario-sidebar__close{font-size:1.1rem;line-height:1;font-weight:600}.scenario-sidebar__backdrop{display:none;border:none;padding:0;cursor:pointer}.sidebar-toggle{position:absolute;top:.65rem;left:.65rem;z-index:6;display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .75rem;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);color:var(--text);font-family:inherit;font-size:.85rem;font-weight:500;cursor:pointer;box-shadow:0 4px 16px var(--shadow);transition:background .15s,border-color .15s}.sidebar-toggle:hover{background:var(--surface);border-color:var(--text-muted)}.sidebar-toggle__icon{font-size:1rem;line-height:1}.scenario-sidebar__empty{margin:0;padding:1rem;font-size:.8rem;color:var(--text-muted);line-height:1.45}.scenario-sidebar__list{list-style:none;margin:0;padding:.5rem;overflow-y:auto;flex:1}.scenario-sidebar__list li{display:flex;align-items:stretch;gap:.25rem;margin-bottom:.25rem}.scenario-sidebar__item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;padding:.55rem .65rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);cursor:pointer;text-align:left;font-family:inherit;transition:background .15s,border-color .15s}.scenario-sidebar__item:hover{background:var(--surface);border-color:var(--border)}.scenario-sidebar__item--active{background:var(--surface-highlight);border-color:var(--accent)}.scenario-sidebar__title{font-size:.82rem;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.scenario-sidebar__meta{font-size:.72rem;color:var(--text-muted);font-family:var(--mono)}.scenario-sidebar__delete{flex-shrink:0;width:28px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-muted);font-size:1.1rem;line-height:1;cursor:pointer;transition:color .15s,background .15s,border-color .15s}.scenario-sidebar__delete:hover{color:var(--error-text);background:var(--error-bg);border-color:var(--error-text)}.scenario-sidebar__footer{display:flex;align-items:flex-end;justify-content:space-between;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--border);flex-shrink:0;background:var(--bg-elevated)}.scenario-sidebar__footer-info{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}.scenario-sidebar__email{font-size:.78rem;font-weight:500;color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scenario-sidebar__email:hover{color:var(--accent)}.scenario-sidebar__tariff{font-size:.72rem;color:var(--text-muted);text-decoration:none}.scenario-sidebar__tariff:hover{color:var(--accent)}.scenario-sidebar__menu-wrap{position:relative;flex-shrink:0}.scenario-sidebar__menu-btn{font-size:1.1rem;line-height:1;font-weight:700}.scenario-sidebar__menu{position:absolute;right:0;bottom:calc(100% + .35rem);min-width:220px;padding:.35rem;background:var(--bg-elevated);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px var(--shadow);z-index:20}.scenario-sidebar__menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.55rem .65rem;border:none;border-radius:8px;background:transparent;color:var(--text);font-family:inherit;font-size:.82rem;text-decoration:none;text-align:left;cursor:pointer}.scenario-sidebar__menu-item:hover{background:var(--surface)}.graph-container{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.graph-toolbar{display:flex;align-items:center;gap:.75rem;padding:.45rem .85rem;background:var(--bg-elevated);border-bottom:1px solid var(--border);flex-shrink:0}.graph-toolbar>.graph-progress{flex:1;min-width:0}.graph-toolbar--no-progress{justify-content:flex-end}.graph-header{display:none}.graph-view-switcher{display:inline-flex;gap:.15rem;padding:.15rem;border-radius:999px;background:var(--surface);border:1px solid var(--border);flex-shrink:0}.graph-view-switcher__btn{border:none;background:transparent;color:var(--text-muted);padding:.35rem .7rem;border-radius:999px;font:inherit;font-size:.8rem;cursor:pointer;white-space:nowrap}.graph-view-switcher__btn--active{background:color-mix(in srgb,var(--brand-cyan) 16%,var(--bg-elevated));color:var(--accent);box-shadow:0 1px 6px var(--shadow)}.graph-container__main{flex:1;min-height:0;display:flex;flex-direction:column}.graph-container__workspace{flex:1;min-height:0;display:flex;flex-direction:row}.graph-container__canvas{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.graph-progress--compact{display:flex;align-items:center;gap:.65rem;flex-shrink:0;margin:0 .85rem .65rem;padding:.45rem .85rem;border:none;border-radius:10px;background:var(--bg-elevated)}.graph-progress--compact .graph-progress__track{flex:1;min-width:0;height:6px;margin:0}.graph-progress--compact .graph-progress__stats,.graph-progress--compact .graph-progress__percent{font-size:.75rem;font-family:var(--mono);color:var(--text-muted);flex-shrink:0}.graph-progress--compact .graph-progress__percent{color:var(--text);min-width:2.2rem;text-align:right}.graph-container__canvas .react-flow,.graph-container__canvas .graph-list,.graph-container__canvas .graph-plan{flex:1;min-height:0}.react-flow--overview .scenario-node{width:170px;min-height:58px;padding:.45rem .55rem;border-width:1.5px}.react-flow--overview .scenario-node__top{margin-bottom:.2rem}.react-flow--overview .scenario-node__text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.72rem;line-height:1.3}.react-flow--overview .scenario-node__more,.react-flow--overview .scenario-node__actions,.react-flow--overview .scenario-node__check{display:none}.graph-overview-panel{width:min(340px,36vw);flex-shrink:0;display:flex;flex-direction:column;background:var(--bg-elevated);border-left:1px solid var(--border)}.graph-overview-panel__header{display:flex;justify-content:space-between;gap:.75rem;padding:1rem;border-bottom:1px solid var(--border)}.graph-overview-panel__eyebrow{margin:0 0 .35rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.graph-overview-panel__header h3{margin:0;font-size:1rem;line-height:1.4}.graph-overview-panel__body{padding:1rem}.graph-overview-panel__body p{margin:0;font-size:.9rem;line-height:1.55}.graph-overview-panel__actions{margin-top:1rem}.graph-plan{flex:1;min-height:0;overflow:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.graph-plan__empty,.graph-plan__intro{margin:0;padding:1.25rem;border:1px dashed var(--border);border-radius:12px;color:var(--text-muted);font-size:.9rem;text-align:center}.graph-plan__intro p{margin:0}.graph-plan__expand-link{border:none;background:none;padding:0;color:var(--accent);font:inherit;font-size:.9rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.graph-plan__goal{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1.1rem;border-radius:14px;border:2px solid #a855f7;background:linear-gradient(135deg,rgba(168,85,247,.16) 0%,var(--surface) 100%);box-shadow:0 0 0 1px #a855f733}.graph-plan__goal-label{flex:1;min-width:0;border:none;background:transparent;padding:0;color:var(--text);font:inherit;font-size:1.05rem;font-weight:600;text-align:left;line-height:1.4;cursor:default}.graph-plan__blocks{display:flex;flex-direction:column;gap:.85rem}.graph-plan__block{border:1px solid var(--border);border-radius:14px;background:var(--surface);overflow:hidden;border-left:4px solid #c084fc}.graph-plan__block-header{display:flex;align-items:flex-start;gap:.55rem;padding:.85rem 1rem;background:color-mix(in srgb,#c084fc 8%,var(--bg-elevated));border-bottom:1px solid var(--border)}.graph-plan__block-title{flex:1;min-width:0;display:flex;align-items:flex-start;gap:.5rem}.graph-plan__collapse{display:none}.graph-plan__chevron{flex-shrink:0;width:1.1rem;color:var(--text-muted);font-size:.85rem;line-height:1;-webkit-user-select:none;user-select:none}.graph-plan__row--collapsible,.graph-plan__block-header--collapsible{cursor:pointer}.graph-plan__row--collapsible:hover,.graph-plan__block-header--collapsible:hover{background:color-mix(in srgb,var(--surface) 85%,var(--accent))}.graph-plan__item--branch>.graph-plan__row{border-left:3px solid #22d3ee}.graph-plan__item--step.graph-plan__item--branch>.graph-plan__row{border-left-color:#4ade80}.graph-plan__item--completed{opacity:.58}.graph-plan__detailize{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:.3rem .55rem;font:inherit;font-size:.74rem;white-space:nowrap;cursor:pointer}.graph-plan__detailize:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.graph-plan__detailize:disabled{opacity:.5;cursor:default}.graph-plan__detailize--inline{font-size:.85rem;padding:.4rem .7rem}.graph-plan__label,.graph-plan__block-label,.graph-plan__goal-label{display:inline-flex;align-items:flex-start;gap:0;min-width:0;font-size:.9rem;line-height:1.45;color:var(--text)}.graph-plan__block-label{border:none;background:transparent;padding:0;color:var(--text);font:inherit;font-size:.95rem;font-weight:600;text-align:left;line-height:1.4;cursor:default}.graph-plan__block-progress{flex-shrink:0;font-size:.78rem;font-weight:600;color:var(--text-muted);padding:.2rem .45rem;border-radius:999px;background:var(--bg-elevated);border:1px solid var(--border)}.graph-plan__block-body,.graph-plan__children{list-style:none;margin:0;padding:.65rem .85rem .85rem}.graph-plan__block-body{padding-left:1rem}.graph-plan__children{margin-top:.45rem;margin-left:.65rem;padding-left:.75rem;border-left:2px solid var(--border)}.graph-plan__item+.graph-plan__item{margin-top:.5rem}.graph-plan__item--task .graph-plan__row{border-left:3px solid #22d3ee}.graph-plan__item--step .graph-plan__row{border-left:3px solid #4ade80}.graph-plan__row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.65rem .75rem;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated)}.graph-plan__row--selected{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}.graph-plan__main{min-width:0;display:flex;align-items:flex-start;gap:.5rem;flex:1}.graph-plan__check{flex-shrink:0;display:flex;align-items:center}.graph-plan__check input{width:1.05rem;height:1.05rem;margin:0;accent-color:var(--accent)}.graph-plan__label,.graph-plan__block-label,.graph-plan__goal-label{cursor:default}.graph-plan__label--clickable,.graph-plan__block-label.graph-plan__label--clickable,.graph-plan__goal-label.graph-plan__label--clickable{cursor:pointer}.graph-plan__label{border:none;background:transparent;padding:0;color:var(--text);font:inherit;font-size:.9rem;text-align:left;line-height:1.45;min-width:0}.graph-plan__emoji{margin-right:.35rem}.graph-plan__actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}.graph-plan__icon,.graph-plan__more{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;font:inherit;cursor:pointer}.graph-plan__icon{width:30px;height:30px;padding:0}.graph-plan__icon--done{color:var(--terminal);border-color:var(--terminal)}.graph-plan__more{padding:.35rem .55rem;font-size:.78rem}.graph-toolbar--modes{justify-content:flex-end;padding:.35rem .75rem;gap:.5rem}.graph-toolbar--modes:has(.graph-toolbar__mobile-nav){justify-content:space-between}.graph-toolbar__mobile-nav{display:none;align-items:center;gap:.35rem}.graph-toolbar__mobile-btn{width:34px;height:34px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:1rem;line-height:1;padding:0;cursor:pointer}.graph-toolbar__mobile-brand{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);text-decoration:none}.graph-export-panel{margin:0!important;left:44px!important;bottom:16px!important}.graph-export-menu{position:relative}.graph-export-menu__trigger{height:26px;padding:0 .65rem;border:none;border-radius:0;background:var(--bg-elevated);color:var(--text);font:inherit;font-size:.78rem;font-weight:500;cursor:pointer;box-shadow:0 0 0 1px var(--border)}.graph-export-menu__trigger:hover{background:var(--surface)}.graph-export-menu__dropdown{position:absolute;left:0;bottom:calc(100% + 6px);min-width:130px;display:flex;flex-direction:column;gap:.15rem;padding:.3rem;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);box-shadow:0 8px 24px var(--shadow);z-index:10}.graph-export-menu__item{border:none;background:transparent;color:var(--text);font:inherit;font-size:.8rem;text-align:left;padding:.45rem .55rem;border-radius:7px;cursor:pointer}.graph-export-menu__item:hover:not(:disabled){background:var(--surface)}.graph-export-menu__item:disabled{opacity:.6;cursor:default}.graph-container__canvas .graph-plan,.graph-container__canvas .graph-trail{flex:1;min-height:0}.graph-trail{flex:1;min-height:0;overflow:auto;padding:.75rem;display:flex;flex-direction:column;gap:.85rem}.graph-trail__footer{display:flex;justify-content:flex-start}.graph-trail__crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .25rem;padding:.5rem .65rem;border-radius:10px;background:var(--surface);border:1px solid var(--border)}.graph-trail__back{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.45rem .75rem;font:inherit;font-size:.82rem;color:var(--text);cursor:pointer}.graph-trail__back:disabled{opacity:.6;cursor:default}.graph-trail__crumb-wrap{display:inline-flex;align-items:center;max-width:100%}.graph-trail__crumb-sep{color:var(--text-muted);margin:0 .15rem;font-size:.75rem}.graph-trail__crumb{border:none;background:transparent;padding:.2rem .35rem;border-radius:6px;color:var(--text-muted);font:inherit;font-size:.78rem;cursor:pointer;max-width:100%;text-align:left}.graph-trail__crumb--current{color:var(--text);font-weight:600;background:var(--bg-elevated)}.graph-trail__current{padding:.85rem 1rem;border-radius:12px;border:2px solid color-mix(in srgb,var(--brand-cyan) 55%,var(--border));background:var(--surface);display:flex;flex-direction:column;gap:.75rem}.graph-trail__current--done{opacity:.6}.graph-trail__current--loading{border-color:var(--accent)}.graph-trail__current-main{display:flex;align-items:flex-start;gap:.55rem}.graph-trail__current-label{margin:0;font-size:1rem;font-weight:600;line-height:1.4}.graph-trail__next-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.graph-trail__next-head .graph-trail__next-title{margin:0}.graph-trail__next-title{margin:0 0 .5rem;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.graph-trail__next-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}.graph-trail__next-item{display:flex;align-items:flex-start;gap:.5rem;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);padding:.55rem .65rem}.graph-trail__next-item--done{opacity:.58}.graph-trail__next-btn{flex:1;min-width:0;display:flex;border:none;background:transparent;padding:0;color:var(--text);font:inherit;font-size:.92rem;text-align:left;line-height:1.4;cursor:pointer}.graph-trail__next-btn-row{display:flex;align-items:center;gap:.35rem;min-width:0;width:100%}.graph-trail__next-btn-text{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}.graph-trail__check{flex-shrink:0;display:flex;align-items:center}.graph-trail__check input{width:1.1rem;height:1.1rem;margin:0;accent-color:var(--accent)}.graph-trail__actions{display:flex;flex-wrap:wrap;gap:.4rem}.graph-trail__next-result{font-size:.75rem;color:var(--text-muted);line-height:1.35}.graph-trail__more{flex-shrink:0;border:1px dashed var(--border);background:transparent;border-radius:8px;padding:.3rem .55rem;font:inherit;font-size:.75rem;color:var(--accent);cursor:pointer}.graph-trail__more:disabled{opacity:.6;cursor:default}.graph-trail__action{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.4rem .7rem;font:inherit;font-size:.82rem;color:var(--accent);cursor:pointer}.graph-trail__action--done{color:var(--terminal);border-color:var(--terminal)}.graph-trail__action:disabled{opacity:.6;cursor:default}.graph-trail__result{margin-top:.45rem;padding:.5rem .6rem;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border)}.graph-trail__result-label{display:block;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.25rem}.graph-trail__result-text{margin:0;font-size:.8rem;line-height:1.45;color:var(--text)}.graph-trail__insight{margin-top:.65rem;padding:.75rem .85rem;border-radius:10px;background:var(--bg-elevated);border:1px solid var(--border)}.graph-trail__insight-title{margin:0 0 .5rem;font-size:.95rem}.graph-trail__insight-body{max-height:420px;overflow-y:auto}.graph-trail__insight-text{margin:0;font-size:.84rem;line-height:1.55;color:var(--text);white-space:pre-wrap}.graph-trail__insight-text a{color:var(--accent);text-decoration:underline}.graph-trail__insight-loading{margin:.5rem 0 0;font-size:.85rem;color:var(--text-muted)}.graph-trail__followups{margin-top:.85rem;padding-top:.75rem;border-top:1px solid var(--border)}.graph-trail__followups-label{margin:0 0 .5rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.graph-trail__followups-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}.graph-trail__followup-btn{width:100%;text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.55rem .75rem;font:inherit;font-size:.85rem;cursor:pointer}.graph-trail__followup-btn:hover:not(:disabled){border-color:var(--accent)}.graph-trail__detailize{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.4rem .7rem;font:inherit;font-size:.82rem;cursor:pointer}.graph-trail__icon{width:34px;height:34px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer}.graph-trail__icon--done{color:var(--terminal);border-color:var(--terminal)}.graph-trail__hint,.graph-trail__empty{margin:0;font-size:.85rem;color:var(--text-muted);text-align:center}.graph-trail__emoji{flex-shrink:0;line-height:1.4;margin-right:0}.graph-trail--locked{pointer-events:none;opacity:.85}.graph-plan__bulk{display:flex;flex-wrap:wrap;gap:.45rem}.graph-plan__bulk-btn{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:.35rem .65rem;font:inherit;font-size:.78rem;color:var(--text-muted);cursor:pointer}.graph-plan__bulk-btn:hover{color:var(--text);border-color:var(--text-muted)}.graph-plan--locked .graph-plan__block--muted,.graph-plan--locked .graph-plan__item--muted{opacity:.4;pointer-events:none}.graph-plan__block--active{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 40%,transparent)}.graph-plan__block--completed{opacity:.58}.graph-plan__block-empty{margin:0;padding:.75rem 1rem 1rem;font-size:.85rem;color:var(--text-muted)}.graph-plan__block-empty--loading,.graph-plan__item--loading .graph-plan__label{color:var(--accent)}.graph-plan__label:disabled,.graph-plan__block-label:disabled,.graph-plan__goal-label:disabled{cursor:default;opacity:.85}@media(max-width:768px){.graph-container--hint-open .graph-container__main{flex-direction:column}.graph-overview-panel,.hint-panel{width:100%;max-height:42vh;border-left:none;border-top:1px solid var(--border)}}.graph-progress{flex-shrink:0;padding:0;background:transparent;border-bottom:none}.graph-progress__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.4rem}.graph-progress__label{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.graph-progress__stats{font-size:.8rem;font-family:var(--mono);color:var(--text)}.graph-progress__track{height:8px;border-radius:999px;background:var(--surface);overflow:hidden}.graph-progress__fill{height:100%;border-radius:inherit;background:var(--brand-gradient-h);transition:width .35s ease}.graph-container .react-flow__viewport svg{overflow:visible}.graph-panel{background:var(--bg-elevated);border:1px solid var(--border);border-radius:12px;padding:.875rem 1rem;max-width:260px;box-shadow:0 8px 32px #00000059}.graph-toolbar-panel{background:var(--bg-elevated);border:1px solid var(--border);border-radius:12px;padding:.35rem;box-shadow:0 8px 32px #00000059}.graph-export{display:flex;gap:.25rem}.graph-stats{display:flex;gap:1rem;font-size:.8rem;color:var(--text-muted);font-family:var(--mono);margin-bottom:.5rem}.graph-hint{font-size:.8rem;color:var(--text-muted);margin:0 0 .75rem;line-height:1.4}.graph-error{background:var(--error-bg);color:var(--error-text);border-radius:10px;padding:.75rem 1rem;font-size:.85rem;max-width:360px;box-shadow:0 8px 32px var(--shadow)}.hint-panel{width:min(380px,42vw);flex-shrink:0;display:flex;flex-direction:column;background:var(--bg-elevated);border-left:1px solid var(--border);min-height:0}.hint-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .75rem;border-bottom:1px solid var(--border);flex-shrink:0}.hint-panel__header h2{margin:0;font-size:1rem;font-weight:600}.hint-panel__node{margin:.35rem 0 0;font-size:.78rem;color:var(--text-muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hint-panel__close{font-size:1.25rem;line-height:1;flex-shrink:0}.hint-panel__body{flex:1;overflow-y:auto;padding:1rem}.hint-panel__disclaimer{margin:0 0 1rem;padding:.6rem .75rem;font-size:.75rem;color:var(--text-muted);background:var(--surface);border-radius:8px;line-height:1.45}.hint-panel__status{margin:0;color:var(--text-muted);font-size:.9rem}.hint-panel__error{padding:.75rem;background:var(--error-bg);color:var(--error-text);border-radius:8px;font-size:.85rem}.hint-panel__error p{margin:0 0 .5rem}.hint-panel__upsell{padding:.75rem;background:var(--surface-highlight);border-radius:10px;border:1px solid var(--border);font-size:.88rem;line-height:1.5}.hint-panel__upsell p{margin:0 0 .65rem}.hint-panel__section{margin-bottom:1.1rem}.hint-panel__section h3{margin:0 0 .5rem;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.hint-panel__section p{margin:0;font-size:.88rem;line-height:1.5;color:var(--text)}.hint-panel__section ul,.hint-panel__section ol{margin:0;padding-left:1.15rem}.hint-panel__section li{font-size:.88rem;line-height:1.5;color:var(--text);margin-bottom:.35rem}.hint-panel__section--steps ol{padding-left:1.25rem}.hint-panel__section--steps li{padding:.35rem 0}.action-panel{width:min(400px,44vw);flex-shrink:0;display:flex;flex-direction:column;background:var(--bg-elevated);border-left:1px solid var(--border);min-height:0}.action-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .75rem;border-bottom:1px solid var(--border);flex-shrink:0}.action-panel__header h2{margin:0;font-size:1rem;font-weight:600}.action-panel__node{margin:.35rem 0 0;font-size:.78rem;color:var(--text-muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.action-panel__close{font-size:1.25rem;line-height:1;flex-shrink:0}.action-panel__body{flex:1;overflow-y:auto;padding:1rem}.action-panel__status,.action-panel__intro{margin:0 0 1rem;font-size:.88rem;color:var(--text-muted);line-height:1.5}.action-panel__disclaimer{margin:0 0 1rem;padding:.6rem .75rem;font-size:.75rem;color:var(--text-muted);background:var(--surface);border-radius:8px;line-height:1.45}.action-panel__error,.action-panel__upsell,.action-panel__unsupported{padding:.75rem;border-radius:10px;font-size:.88rem;line-height:1.5}.action-panel__error{background:var(--error-bg);color:var(--error-text)}.action-panel__upsell,.action-panel__unsupported{background:var(--surface-highlight);border:1px solid var(--border)}.action-panel__upsell p,.action-panel__unsupported p{margin:0 0 .65rem}.action-panel__hint{margin:0;font-size:.82rem;color:var(--text-muted)}.action-panel__form{display:flex;flex-direction:column;gap:.75rem}.action-panel__field label{display:block;margin-bottom:.35rem;font-size:.78rem;font-weight:500;color:var(--text-muted)}.action-panel__input{width:100%;padding:.55rem .65rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-family:var(--font);font-size:.88rem;resize:vertical}.action-panel__input:focus{outline:none;border-color:var(--accent)}.action-panel__section{margin-bottom:1rem}.action-panel__section h3{margin:0 0 .45rem;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.action-panel__section p{margin:0;font-size:.88rem;line-height:1.55;color:var(--text)}.action-panel__pre{margin:0;font-size:.85rem;line-height:1.55;color:var(--text);white-space:pre-wrap}.action-panel__actions{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}@media(max-width:768px){.action-panel{width:100%;max-height:42vh;border-left:none;border-top:1px solid var(--border)}}.scenario-node{width:260px;min-height:80px;padding:.75rem 1rem;border-radius:12px;border:2px solid var(--border);background:var(--surface);cursor:default;transition:border-color .2s,box-shadow .2s,transform .15s}.scenario-node--root,.scenario-node--expandable{cursor:pointer}.scenario-node--root:hover,.scenario-node--expandable:hover{transform:translateY(-2px);box-shadow:0 8px 24px #00000059}.scenario-node--root{border-color:#a855f7;background:linear-gradient(135deg,rgba(168,85,247,.2) 0%,var(--surface) 100%);box-shadow:0 0 0 1px #a855f740,0 4px 20px #a855f726}.scenario-node--level-pillar.scenario-node--expandable,.scenario-node--level-pillar.scenario-node--expanded{border-color:#c084fc;box-shadow:0 0 0 1px #c084fc66,0 0 14px #c084fc40}.scenario-node--level-task.scenario-node--expandable,.scenario-node--level-task.scenario-node--expanded{border-color:#22d3ee;box-shadow:0 0 0 1px #22d3ee59,0 0 12px #22d3ee33}.scenario-node--level-step.scenario-node--expandable,.scenario-node--level-step.scenario-node--expanded{border-color:#4ade80;box-shadow:0 0 0 1px #4ade804d,0 0 10px #4ade8026}.scenario-node--expandable{border-color:var(--expandable)}.scenario-node--expandable:hover{border-color:var(--accent-hover)}.scenario-node--expanded{border-color:var(--expanded);opacity:.92}.scenario-node--terminal{border-color:var(--terminal);opacity:.75}.scenario-node--completed{opacity:.55;border-color:var(--border)!important;background:var(--surface)!important;box-shadow:none!important;cursor:default}.scenario-node--completed .scenario-node__text{color:var(--text-muted);text-decoration:line-through;text-decoration-color:#94a3b8b3}.scenario-node--selected{border-color:var(--accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,transparent),0 8px 24px #0000003d}.scenario-node__top{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;min-height:1.25rem;margin-bottom:.35rem}.scenario-node__top--split{justify-content:space-between}.scenario-node__check{flex-shrink:0;display:flex;align-items:center;cursor:pointer}.scenario-node__check input{width:1.05rem;height:1.05rem;margin:0;accent-color:var(--accent);cursor:pointer}.scenario-node--loading{border-color:var(--accent);background:linear-gradient(135deg,rgba(59,130,246,.28) 0%,var(--surface) 55%);box-shadow:0 0 0 3px #3b82f659,0 8px 28px #3b82f640;opacity:1;animation:loading-glow 1.2s ease-in-out infinite}@keyframes loading-glow{0%,to{box-shadow:0 0 0 3px #3b82f64d,0 8px 24px #3b82f633}50%{box-shadow:0 0 0 4px #3b82f680,0 10px 32px #3b82f659}}.scenario-node--editing{border-color:var(--accent);cursor:default}@keyframes pulse{0%,to{opacity:1}50%{opacity:.65}}.scenario-node__badge{font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.scenario-node__edit{flex-shrink:0;width:24px;height:24px;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--bg-elevated);color:var(--text-muted);font-size:.75rem;cursor:pointer;line-height:1}.scenario-node__edit:hover{color:var(--accent);border-color:var(--accent)}.scenario-node__actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.scenario-node__hint{flex-shrink:0;width:24px;height:24px;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--bg-elevated);color:var(--expanded);font-size:.8rem;cursor:pointer;line-height:1}.scenario-node__hint:hover{color:var(--accent);border-color:var(--expanded)}.scenario-node__collapse{flex-shrink:0;width:24px;height:24px;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--bg-elevated);color:var(--text-muted);font-size:.75rem;cursor:pointer;line-height:1}.scenario-node__collapse:hover{color:var(--text);border-color:var(--accent)}.scenario-node__action{flex-shrink:0;height:24px;padding:0 .4rem;border:1px solid var(--border);border-radius:6px;background:var(--bg-elevated);color:var(--accent);font-size:.62rem;font-family:var(--font);cursor:pointer;line-height:1;white-space:nowrap}.scenario-node__action:hover:not(:disabled){border-color:var(--accent);background:var(--surface-highlight)}.scenario-node__action--done{border-color:var(--terminal);color:var(--terminal)}.scenario-node__action:disabled{opacity:.6;cursor:wait}.scenario-node__result{margin-top:.45rem;padding:.45rem .5rem;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border);font-size:.72rem;line-height:1.4;color:var(--text-muted)}.scenario-node__more{display:block;width:100%;margin-top:.5rem;padding:.35rem .5rem;border:1px dashed var(--border);border-radius:8px;background:transparent;color:var(--accent);font-size:.75rem;font-family:var(--font);cursor:pointer;text-align:center;transition:border-color .15s,background .15s}.scenario-node__more:hover:not(:disabled){border-color:var(--accent);background:var(--bg-elevated)}.scenario-node__more:disabled{opacity:.6;cursor:wait}.scenario-node__edit-form{display:flex;flex-direction:column;gap:.5rem}.scenario-node__textarea{width:100%;padding:.5rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-elevated);color:var(--text);font-family:var(--font);font-size:.8rem;line-height:1.4;resize:vertical;min-height:72px}.scenario-node__textarea:focus{outline:none;border-color:var(--accent)}.scenario-node__edit-actions{display:flex;gap:.35rem}.btn--xs{font-size:.75rem;padding:.3rem .55rem}.scenario-node__text{margin:0;font-size:.85rem;line-height:1.45;color:var(--text)}.scenario-node__emoji{display:inline-block;margin-right:8px;font-size:1.3rem;line-height:1;vertical-align:-.12em}.scenario-handle{width:8px!important;height:8px!important;background:var(--edge-color)!important;border:2px solid var(--bg)!important}.react-flow__controls{background:var(--bg-elevated)!important;border:1px solid var(--border)!important;border-radius:10px!important;overflow:hidden;box-shadow:none!important}.react-flow__controls-button{background:var(--bg-elevated)!important;border-bottom:1px solid var(--border)!important;fill:var(--text-muted)!important}.react-flow__controls-button:hover{background:var(--surface)!important}.react-flow__minimap{background:var(--bg-elevated)!important;border:1px solid var(--border)!important;border-radius:10px!important}.auth-page{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem 1rem}.auth-card{width:100%;max-width:400px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:16px;padding:2rem;box-shadow:0 12px 40px var(--shadow)}.auth-card h1{margin:0 0 .5rem;font-size:1.5rem}.auth-card__sub{color:var(--text-muted);margin:0 0 1.5rem;font-size:.9rem;line-height:1.5}.auth-form label{display:block;font-size:.85rem;font-weight:500;color:var(--text-muted);margin-bottom:.35rem;margin-top:1rem}.auth-form label:first-of-type{margin-top:0}.auth-form input{width:100%;padding:.7rem .9rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-family:var(--font);font-size:1rem}.auth-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}.form-error{margin-top:1rem;padding:.65rem .9rem;background:var(--error-bg);color:var(--error-text);border-radius:8px;font-size:.85rem}.auth-form .btn{margin-top:1.25rem}.auth-switch{text-align:center;margin-top:1.25rem;font-size:.9rem;color:var(--text-muted)}.auth-switch button{background:none;border:none;color:var(--accent);cursor:pointer;font-weight:600;font-family:var(--font)}.auth-back{display:block;text-align:center;margin-top:1rem;color:var(--text-muted);font-size:.85rem;text-decoration:none}.auth-consent{display:flex;gap:.6rem;align-items:flex-start;margin-top:1rem;font-size:.82rem;line-height:1.45;color:var(--text-muted);cursor:pointer}.auth-consent input{margin-top:.2rem;flex-shrink:0}.auth-consent a{color:var(--accent)}.auth-legal{margin-top:1rem;font-size:.82rem;line-height:1.45;color:var(--text-muted);text-align:center}.auth-legal a{color:var(--accent)}.legal-operator{margin:1rem 0 1.25rem;padding:1rem 1.1rem;border-radius:var(--radius);background:var(--surface-2);font-size:.92rem}.legal-operator p{margin:.35rem 0}.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:1000;padding:.85rem 1rem;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -4px 24px #00000026}.cookie-banner__inner{max-width:960px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;justify-content:space-between}.cookie-banner__text{margin:0;flex:1;min-width:200px;font-size:.85rem;line-height:1.45;color:var(--text-muted)}.cookie-banner__text a{color:var(--accent)}.cabinet-legal-links{margin:.5rem 0 0;font-size:.9rem}.cabinet-legal-links a{color:var(--accent)}.cabinet{flex:1;max-width:960px;margin:0 auto;padding:1.5rem 1.25rem 3rem;width:100%}.cabinet-loading{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}.cabinet__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.cabinet__header h1{margin:0;font-size:1.75rem}.cabinet__email{color:var(--text-muted);margin:.25rem 0 0}.cabinet__header-actions{display:flex;gap:.5rem}.cabinet-message{padding:.875rem 1rem;background:var(--success-bg);color:var(--success-text);border-radius:10px;margin-bottom:1.25rem;font-size:.9rem}.cabinet-card{background:var(--bg-elevated);border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.5rem;margin-bottom:1.25rem}.cabinet-card h2{margin:0 0 1rem;font-size:1.1rem}.plan-current{display:flex;align-items:baseline;gap:1rem;flex-wrap:wrap}.plan-current__name{font-size:1.35rem;font-weight:700;color:var(--accent)}.plan-current__expires{color:var(--text-muted);font-size:.9rem}.usage-bar__labels{display:flex;justify-content:space-between;font-size:.85rem;color:var(--text-muted);margin-bottom:.5rem}.usage-bar__track{height:8px;background:var(--border);border-radius:4px;overflow:hidden}.usage-bar__fill{height:100%;background:var(--accent);border-radius:4px;transition:width .3s}.usage-bar__reset{margin:.5rem 0 0;font-size:.8rem;color:var(--text-muted)}.usage-unlimited{color:var(--text-muted);margin:0}.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.plan-card{border:1px solid var(--border);border-radius:12px;padding:1.25rem;background:var(--surface);display:flex;flex-direction:column}.plan-card--active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.plan-card h3{margin:0 0 .5rem}.plan-card__price{font-size:1.75rem;font-weight:700;margin-bottom:1rem}.plan-card__price span{font-size:.9rem;font-weight:500;color:var(--text-muted)}.plan-card__features{list-style:none;padding:0;margin:0 0 1rem;flex:1}.plan-card__features li{font-size:.85rem;color:var(--text-muted);padding:.25rem 0 .25rem 1.1rem;position:relative}.plan-card__features li:before{content:"✓";position:absolute;left:0;color:var(--accent);font-size:.75rem}.plan-card__badge{text-align:center;font-size:.85rem;font-weight:600;color:var(--accent);padding:.5rem}.payments-table{width:100%;border-collapse:collapse;font-size:.9rem}.payments-table th,.payments-table td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--border)}.payments-table th{color:var(--text-muted);font-weight:500;font-size:.8rem}.payment-status--succeeded{color:var(--success-text)}.payment-status--pending{color:var(--text-muted)}.graph-error p{margin:0 0 .75rem}.graph-error__actions{display:flex;gap:.5rem;flex-wrap:wrap}.graph-error__actions .btn{text-decoration:none;text-align:center}.plan-card--guest{border-style:dashed}.plan-card__badge--muted{color:var(--text-muted)}.cabinet-card__note{margin:1rem 0 0;font-size:.85rem}.cabinet-card__note a{color:var(--accent)}.site-footer{display:none}.tariffs-page{flex:1;max-width:960px;margin:0 auto;padding:2rem 1.25rem;width:100%}.tariffs-page__header{text-align:center;margin-bottom:2rem}.tariffs-page__header h1{margin:0 0 .75rem;font-size:2rem}.tariffs-page__header p{color:var(--text-muted);max-width:520px;margin:0 auto;line-height:1.6}.tariffs-page__cta{text-align:center;margin-top:2rem}.tariffs-page__cta p{color:var(--text-muted);margin-bottom:1rem}.legal-page{flex:1;max-width:720px;margin:0 auto;padding:2rem 1.25rem 3rem;width:100%;min-height:min-content}.legal-page h1{margin:0 0 1.5rem;font-size:1.75rem}.legal-page__content h2{font-size:1.1rem;margin:1.75rem 0 .75rem}.legal-page__content p,.legal-page__content li{line-height:1.65;color:var(--text-muted)}.legal-page__content ul{padding-left:1.25rem}.legal-page__content strong{color:var(--text)}.legal-page__back{display:inline-block;margin-top:2rem;color:var(--text-muted);font-size:.9rem;text-decoration:none}.legal-page__back:hover{color:var(--accent)}@media(max-width:768px){.app-header{padding:.5rem .75rem;gap:.5rem}.app-header--auth-mobile{display:flex;position:sticky;top:0;z-index:210}.app-header__brand .logo-brand__text{font-size:1.15rem}.landing__header h1{font-size:2rem}.landing__subtitle{font-size:.95rem}.landing__actions{flex-direction:column;align-items:center;gap:.65rem}.btn--launch{width:auto;min-width:12rem}.landing__hint{text-align:center;line-height:1.45}.legend{flex-wrap:wrap;justify-content:center;gap:.5rem}.scenario-rail{display:none}.graph-toolbar__mobile-nav{display:flex}.home-layout--with-sidebar .scenario-sidebar{position:fixed;top:0;left:0;bottom:0;width:min(300px,88vw);z-index:200;transform:translate(-105%);transition:transform .25s ease;box-shadow:8px 0 32px var(--shadow)}.home-layout--sidebar-open .scenario-sidebar{transform:translate(0)}.home-layout--sidebar-open .scenario-sidebar__backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:199;background:#00000073}[data-theme=light] .home-layout--sidebar-open .scenario-sidebar__backdrop{background:#0f172a59}.graph-error{max-width:calc(100vw - 1.5rem)}.react-flow__minimap{display:none}.scenario-node{width:min(240px,calc(100vw - 2.5rem));min-height:72px;padding:.65rem .85rem}.graph-legend-panel{max-width:calc(100vw - 1.5rem);padding:.45rem .6rem}.legend--graph{gap:.4rem .65rem}.legend--graph .legend__item{font-size:.72rem}.cabinet{padding:1.25rem 1rem 2rem}.cabinet__header{flex-direction:column;align-items:flex-start;gap:.75rem}.auth-page{padding:1.25rem 1rem}.tariffs-page{padding:1.25rem 1rem 2rem}.tariffs-page__header h1{font-size:1.5rem}.legal-page{padding:1.25rem 1rem 2rem}}@media(min-width:768px){.home-layout--with-sidebar:not(.home-layout--sidebar-open) .sidebar-toggle{top:.75rem;left:.75rem}}@media(max-width:480px){.sidebar-toggle__label{display:none}.sidebar-toggle{padding:.45rem .55rem}.app-header__actions .btn--ghost{max-width:88px;font-size:.8rem;padding:.4rem .55rem}}
