:root{--bg:#eef2f7;--panel:#fff;--panel-2:#f8fafc;--line:#e2e8f0;--text:#0f172a;--muted:#64748b;--accent:#2563eb;--accent-2:#06b6d4;--danger:#b42318;--shadow:0 18px 50px rgba(15,23,42,.08)}*{box-sizing:border-box}body,html{margin:0;padding:0;font-family:IBM Plex Sans,Segoe UI,sans-serif;background:radial-gradient(circle at top left,#eff6ff 0,var(--bg) 45%,#e0f2fe 100%);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.auth-page{min-height:100vh;display:grid;place-items:center;padding:2rem}.auth-card{width:min(520px,100%);background:var(--panel);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:2rem}.workspace-mode-modal-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:1rem;background:rgba(18,23,16,.42);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.workspace-mode-modal{width:min(760px,100%);background:linear-gradient(180deg,hsla(0,0%,100%,.98),rgba(241,245,249,.98));border:1px solid hsla(42,25%,79%,.9);border-radius:30px;box-shadow:0 30px 80px rgba(19,28,20,.25);padding:1.5rem}.workspace-mode-cards{display:grid;grid-gap:.9rem;gap:.9rem;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem}.workspace-mode-card{text-align:left;border:1px solid var(--line);border-radius:22px;padding:1rem 1.05rem;background:linear-gradient(135deg,hsla(0,0%,100%,.9),rgba(241,245,249,.96));display:flex;flex-direction:column;gap:.5rem}.workspace-mode-card strong{font-size:1.1rem}.workspace-mode-card span{color:var(--muted);line-height:1.45}.app-shell{min-height:100vh;display:grid;grid-template-columns:290px 1fr}.sidebar{border-right:1px solid var(--line);background:linear-gradient(180deg,#f8fafc,#eef2f7)}.content,.sidebar{padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.actions,.issue-row,.section-header,.topbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.actions{flex-wrap:wrap}.hero,.panel,.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.hero,.panel{padding:1.25rem}.grid-2,.stat-grid,.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:1rem;gap:1rem}.grid-2.compact-top,.two-col.compact-top{margin-top:1rem}.cockpit-grid,.graph-stat-grid,.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{padding:1rem 1.1rem}.command-actions,.command-center,.command-context,.empty-state,.handoff-stats{display:flex;gap:.85rem}.workspace-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:1rem;gap:1rem}.command-center{align-items:stretch;justify-content:space-between}.command-center-card{flex:1 1 420px;border:1px solid var(--line);border-radius:18px;padding:1rem 1.1rem;background:linear-gradient(135deg,rgba(15,118,110,.08),hsla(0,0%,100%,.76)),var(--panel-2)}.command-center-card.warning{background:linear-gradient(135deg,rgba(199,104,30,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.command-center-card.error{background:linear-gradient(135deg,rgba(180,35,24,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.command-center-card.success{background:linear-gradient(135deg,rgba(20,83,45,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.command-actions{flex:0 0 260px;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end}.command-context{flex-wrap:wrap}.metric{font-size:2rem;font-weight:700;line-height:1}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;color:var(--accent-2);margin-bottom:.35rem}.muted{color:var(--muted)}.empty-state,.list,.stack,.stack-sm,.timeline{display:flex;flex-direction:column;gap:.85rem}.stack-sm{gap:.6rem}.compact-bottom{margin-bottom:1rem}.empty-state,.list-item,.timeline-item{border:1px solid var(--line);background:var(--panel-2);border-radius:18px;padding:.85rem .95rem}.lane-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:.85rem;gap:.85rem}.lane-card{border:1px solid var(--line);background:linear-gradient(180deg,hsla(0,0%,100%,.72),rgba(241,245,249,.96));border-radius:18px;padding:.9rem 1rem;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.6)}.spotlight-card{background:linear-gradient(135deg,rgba(15,118,110,.08),rgba(199,104,30,.08)),var(--panel-2);border-color:rgba(15,118,110,.22)}.handoff-card{border:1px solid var(--line);border-radius:18px;padding:1rem 1.05rem;background:linear-gradient(135deg,rgba(15,118,110,.08),hsla(0,0%,100%,.82)),var(--panel-2)}.handoff-card.warning{background:linear-gradient(135deg,rgba(199,104,30,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.handoff-card.error{background:linear-gradient(135deg,rgba(180,35,24,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.handoff-card.success{background:linear-gradient(135deg,rgba(20,83,45,.12),hsla(0,0%,100%,.82)),var(--panel-2)}.handoff-card.draft{background:linear-gradient(135deg,rgba(94,82,64,.1),hsla(0,0%,100%,.82)),var(--panel-2)}.handoff-stats{flex-wrap:wrap}.timeline-item{background:#f9f6ef}.empty-state{justify-content:center;min-height:124px;background:linear-gradient(180deg,hsla(0,0%,100%,.7),rgba(241,245,249,.95)),var(--panel-2)}.checkbox-field,.field{display:flex;flex-direction:column;gap:.4rem}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;padding:.8rem .9rem;border:1px solid var(--line);border-radius:14px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(15,118,110,.15)}.checkbox-field{flex-direction:row;align-items:center}.danger-button,.ghost-button,.nav-link,.primary-button{display:inline-flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;max-width:100%;border-radius:999px;padding:.7rem 1rem;border:1px solid var(--line);background:#fff}.grid-2>.danger-button,.grid-2>.ghost-button,.grid-2>.primary-button,.stack>.danger-button,.stack>.ghost-button,.stack>.primary-button{justify-self:start;align-self:start}.primary-button{background:linear-gradient(135deg,var(--accent) 0,#14532d 100%);color:#fff;border-color:transparent}.danger-button{background:#fff1f0;color:var(--danger);border-color:#f4c7c3}.nav{display:flex;flex-direction:column;gap:.45rem}.nav-link{text-align:left;background:hsla(0,0%,100%,.45)}.nav-link.active{background:var(--text);color:#fff;border-color:var(--text)}.alert{padding:.8rem .9rem;border-radius:16px;border:1px solid var(--line);max-width:560px}.alert.success{background:#ebfff5;color:#166534;border-color:#b7ebcb}.alert.error{background:#fff4f3;color:var(--danger);border-color:#f5d1cd}.pill{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .6rem;border-radius:999px;background:#eef2f7;color:#514a38;font-size:.8rem}.pill.error{background:#ffe4e1;color:var(--danger)}.pill.warning{background:#fff2cc;color:#9a6700}.pill.completed,.pill.success{background:#dcfce7;color:#166534}.code{font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:.9rem}.selectable{cursor:pointer}.selectable.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.light-mode-page{min-height:100vh;padding:1rem;display:grid;grid-gap:1rem;gap:1rem;grid-template-columns:minmax(320px,420px) minmax(0,1fr)}.light-mode-hero,.light-mode-panel{background:var(--panel);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.light-mode-hero{padding:1.25rem;display:flex;flex-direction:column;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,rgba(15,118,110,.12),rgba(199,104,30,.08)),var(--panel)}.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem}.light-mode-grid{display:grid;grid-gap:1rem;gap:1rem;grid-template-columns:minmax(320px,380px) minmax(0,1fr)}.light-mode-panel{padding:1rem}.toggle-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.5rem;gap:.5rem}.toggle{border:1px solid var(--line);border-radius:14px;background:var(--panel-2);padding:.75rem 1rem}.toggle.active{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-timeline{display:flex;flex-direction:column;gap:.75rem;padding:.25rem .1rem .5rem}.chat-bubble{border:1px solid var(--line);border-radius:18px;padding:.85rem .95rem;background:var(--panel-2)}.chat-bubble.user{background:linear-gradient(135deg,rgba(15,118,110,.1),hsla(0,0%,100%,.92));margin-left:auto}.chat-bubble.assistant{background:linear-gradient(135deg,rgba(199,104,30,.09),hsla(0,0%,100%,.95))}.onboarding-card{display:grid;grid-gap:.75rem;gap:.75rem;padding:.95rem;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(15,118,110,.06),hsla(0,0%,100%,.9));margin-bottom:.9rem}.section-header.compact h3{margin:0;font-size:1rem}.onboarding-summary{display:grid;grid-gap:.55rem;gap:.55rem}.summary-row{display:flex;justify-content:space-between;gap:.75rem;font-size:.9rem}.summary-row span{color:var(--muted)}.summary-row strong{text-align:right;font-weight:600}.quick-chip-row{display:flex;flex-wrap:wrap;gap:.5rem}.chip,.chip-button{border:1px solid var(--line);border-radius:999px;padding:.55rem .85rem;background:var(--panel-2);font-size:.9rem}.chip-button{cursor:pointer}.chip-button:hover{border-color:var(--accent)}.brief-hint{display:grid;grid-gap:.5rem;gap:.5rem}.chat-meta{display:flex;justify-content:space-between;gap:.75rem;font-size:.78rem;color:var(--muted);margin-bottom:.45rem}.chat-text{white-space:pre-wrap;line-height:1.45}.chat-composer{display:grid;grid-gap:.75rem;gap:.75rem;margin-top:.9rem}.chat-composer textarea{min-height:88px;resize:vertical}@media (max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.command-center{flex-direction:column}.workspace-rail{grid-template-columns:1fr}.command-actions{flex:1 1 auto;justify-content:flex-start}.light-mode-grid,.light-mode-page{grid-template-columns:1fr}.chat-timeline{max-height:none}}@media (max-width:720px){.auth-card,.content,.sidebar{padding:1rem}.grid-2,.stat-grid,.two-col{grid-template-columns:1fr}.actions,.issue-row,.section-header,.topbar{align-items:flex-start;flex-direction:column}.chat-bubble.user{margin-left:0}}@media (max-width:640px){.light-mode-hero{padding:1rem}.light-mode-panel{padding:.9rem;border-radius:20px}.light-mode-grid{gap:.85rem}.toggle-row{grid-template-columns:1fr 1fr}.toggle{min-height:44px;padding:.75rem .85rem}.ghost-button,.primary-button{width:100%;justify-content:center}.chat-composer textarea{min-height:110px}}.chat-kit .cs-main-container{border:1px solid var(--line);border-radius:16px;height:min(68vh,760px);font-family:inherit;background:transparent}.chat-kit .cs-chat-container,.chat-kit .cs-message-list{background:transparent}.chat-kit .cs-message__content{border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,rgba(199,104,30,.09),hsla(0,0%,100%,.95));color:inherit;font-family:inherit;font-size:.95rem}.chat-kit .cs-message--outgoing .cs-message__content{background:linear-gradient(135deg,rgba(15,118,110,.1),hsla(0,0%,100%,.92))}.chat-kit .cs-message{max-width:86%}.chat-kit .cs-message-input{border-top:1px solid var(--line);background:transparent;font-family:inherit}.chat-kit .cs-message-input__content-editor,.chat-kit .cs-message-input__content-editor-wrapper{background:hsla(0,0%,100%,.85);font-family:inherit;color:inherit}.chat-kit .cs-button--send{color:#0f766e}.chat-kit .cs-typing-indicator__dot{background-color:#0f766e}.chat-kit .cs-typing-indicator__text{color:#475569}.chat-kit .chat-meta{display:flex;justify-content:space-between;gap:1rem;font-size:.72rem;color:#8a7f6d;margin-bottom:4px}.chat-kit .chat-text{white-space:pre-wrap}.light-shell{height:100vh;height:100dvh;display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:100%;overflow:hidden}.light-aside,.light-chat-pane{min-height:0}.light-aside{display:flex;flex-direction:column;gap:.85rem;padding:1rem .9rem;background:var(--panel);border-right:1px solid var(--line);overflow-y:auto}.light-aside-head{display:flex;align-items:center;justify-content:space-between}.light-aside-head .icon-button{display:none}.light-aside-foot{margin-top:auto;display:flex;flex-direction:column;gap:.4rem;padding-top:.85rem;border-top:1px solid var(--line)}.link-button{background:none;border:none;text-align:left;padding:.2rem 0;color:#475569;font-size:.85rem;cursor:pointer;text-decoration:none}.link-button:hover{color:var(--accent)}.light-aside-backdrop{display:none}.light-chat-pane{display:flex;flex-direction:column;min-width:0;height:100%;background:radial-gradient(circle at top left,#eff6ff 0,var(--bg) 50%,#e0f2fe 100%)}.light-chat-bar{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--line);background:hsla(0,0%,100%,.9)}.light-chat-bar .icon-button{display:none}.buy-tokens{margin-left:auto;display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .9rem;font-size:.85rem;font-weight:700;white-space:nowrap;color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--accent),var(--accent-2));border-radius:10px;box-shadow:0 2px 8px rgba(37,99,235,.25)}.buy-tokens:hover{opacity:.92}@media (max-width:560px){.buy-tokens{padding:.4rem .6rem;font-size:.8rem}.buy-tokens .bt-label{display:none}}.light-chat-title{display:flex;flex-direction:column;line-height:1.2}.light-chat-title .muted{font-size:.78rem}.light-account{position:relative;display:inline-flex}.account-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:1rem;line-height:1;border:1px solid var(--line);border-radius:50%;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}.account-button:hover{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.12)}.light-account-backdrop{position:fixed;inset:0;z-index:40}.light-account-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:50;min-width:240px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.16);display:flex;flex-direction:column;gap:6px}.account-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 4px;font-size:.9rem}.account-row.account-id{flex-direction:column;align-items:flex-start;gap:2px}.account-row .muted{font-size:.78rem}.account-action{display:block;width:100%;margin-top:4px;padding:9px 12px;font-size:.9rem;font-weight:700;text-align:center;text-decoration:none;color:var(--ink);background:var(--surface,#f1f5f9);border:1px solid var(--line);border-radius:10px;cursor:pointer}.account-action:hover{border-color:var(--accent)}.account-action.danger{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.account-action.danger:hover{background:#fee2e2;border-color:#fca5a5}.light-chat-body{flex:1 1;min-height:0;display:flex;flex-direction:column;gap:.6rem;padding:.9rem 1rem 1rem}.icon-button{background:none;border:1px solid var(--line);border-radius:10px;width:38px;height:38px;font-size:1.1rem;cursor:pointer}.light-chat-body .chat-kit{flex:1 1;min-height:0;display:flex;flex-direction:column}.light-chat-body .chat-kit .cs-main-container{height:100%}@media (max-width:720px){.light-shell{grid-template-columns:1fr}.light-aside{position:fixed;z-index:40;top:0;left:0;bottom:0;width:80vw;max-width:320px;transform:translateX(-100%);transition:transform .2s ease}.light-aside.open{transform:translateX(0)}.light-aside-head .icon-button,.light-chat-bar .icon-button{display:inline-flex;align-items:center;justify-content:center}.light-aside-backdrop{display:block;position:fixed;inset:0;z-index:39;background:rgba(18,23,16,.42)}}.composer-tools{display:flex;align-items:center;gap:.5rem;margin-top:8px;flex-wrap:wrap}.composer-tools .icon-button{width:40px;height:40px;font-size:1.05rem}.composer-tools .icon-button.recording{border-color:#c0392b;color:#c0392b;animation:rec-pulse 1.1s ease-in-out infinite}@keyframes rec-pulse{0%,to{box-shadow:0 0 0 0 rgba(192,57,43,.35)}50%{box-shadow:0 0 0 6px rgba(192,57,43,0)}}.composer-note{font-size:.8rem}.light-login-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:radial-gradient(circle at top left,#eff6ff 0,var(--bg) 50%,#e0f2fe 100%)}.light-login-card{width:100%;max-width:380px;background:var(--panel);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:1.6rem}.light-login-card,.light-login-card form{display:flex;flex-direction:column;gap:.7rem}.light-login-card .primary-button{width:100%}.yandex-login-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;font-size:16px;font-weight:700;color:#fff;background:#000;border:none;border-radius:12px;cursor:pointer;transition:opacity .15s}.yandex-login-button:hover{opacity:.9}.yandex-login-button .ya-mark{color:#fc3f1d;font-weight:900;font-size:19px}.light-login-divider{display:flex;align-items:center;gap:12px;margin:6px 0;color:var(--muted,#475569);font-size:13px}.light-login-divider:after,.light-login-divider:before{content:"";flex:1 1;height:1px;background:var(--line)}