:root{color:#464550;font-synthesis:none;text-rendering:optimizelegibility;--ink:#25242b;--text:#464550;--muted:#87838f;--subtle:#5f5c69;--line:#e5ded2;--line-soft:#e5ded2b8;--paper:#fbfaf7;--paper-warm:#f4efe4;--panel:#fbfaf7db;--panel-strong:#fffdf8;--app-bg:#f4efe4;--purple:#654096;--purple-soft:#f0e9f8;--purple-light:#9d81c2;--green:#2a5f5a;--green-soft:#edf5f0;--aqua:#9fc8c5;--blue:#385f8c;--amber:#f1c834;--amber-soft:#fff6bc;--danger:#9b442b;--danger-soft:#fff0e8;--radius:8px;--radius-panel:12px;--shadow-panel:0 18px 44px #46455014;--shadow-card:0 8px 24px #4645500f;background:#f4efe4;font-family:Alibaba PuHuiTi,AlibabaPuHuiTi,PingFang SC,Microsoft YaHei,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(90deg,#6540960a 1px,#0000 1px) 0 0/28px 28px,linear-gradient(#fbfaf7 0%,#f4efe4 44%,#fbfaf7 100%);min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.app-shell{background:var(--app-bg);flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff5;grid-template-columns:minmax(240px,1fr) auto;align-items:center;gap:20px;min-height:60px;padding:0 24px;display:grid;position:sticky;top:0}.brand{min-width:0;color:var(--ink);text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:0;display:inline-flex}.brand-mark{background:var(--purple);color:#fff;letter-spacing:0;border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-size:11px;font-weight:800;display:grid}.brand strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650;line-height:1.35;display:block;overflow:hidden}.brand small{color:var(--purple);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:11px;font-weight:600;display:block;overflow:hidden}.header-stats,.top-actions,.topnav,.hero-actions,.dashboard-actions,.resource-actions,.book-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.header-stats{justify-content:center}.stat-pill,.role-pill,.agent-status-badge{border:1px solid var(--line);min-height:28px;color:var(--subtle);white-space:nowrap;background:#f5f6f9;border-radius:20px;align-items:center;gap:4px;padding:4px 10px;font-size:11px;display:inline-flex}.stat-pill strong{color:var(--purple);font-size:12px}.top-actions{justify-content:flex-end}.gov-btn,.workspace-link,.collapse-btn{border:1px solid var(--line);border-radius:var(--radius);min-height:32px;color:var(--subtle);background:#ffffff9e;justify-content:center;align-items:center;padding:6px 12px;font-size:12px;font-weight:550;display:inline-flex}.avatar-pill{width:32px;height:32px;color:var(--purple);border:1px solid #6540963d;border-radius:50%;place-items:center;font-size:13px;font-weight:750;display:grid}.workspace-grid{grid-template-columns:280px minmax(0,1fr) 300px;gap:16px;min-height:calc(100vh - 60px);padding:16px;display:grid}.workspace-sidebar,.workspace-studio,.workspace-main-panel{border-radius:var(--radius-panel);background:var(--panel);box-shadow:var(--shadow-panel);border:1px solid #ffffff80}.workspace-sidebar,.workspace-studio{flex-direction:column;gap:16px;height:calc(100vh - 92px);padding:16px;display:flex;overflow:auto}.workspace-main-panel{background:var(--panel-strong);flex-direction:column;min-width:0;height:calc(100vh - 92px);display:flex;overflow:hidden}.workspace-main-header{border-bottom:1px solid var(--line);background:linear-gradient(90deg,#f4effcb3,#fbfbfceb);justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 24px 12px;display:flex}.workspace-main-header h1{color:var(--ink);margin:0;font-size:14px;font-weight:650;line-height:1.45}.workspace-main-header p{color:var(--muted);margin:3px 0 0;font-size:12px}.topnav{border-bottom:1px solid var(--line);background:#ffffff8a;padding:10px 24px}.topbar .topnav{background:0 0;border-bottom:0;justify-content:flex-end;padding:0}.topnav button,.topnav .nav-link{border:1px solid var(--line);min-height:30px;color:var(--subtle);background:#fff;border-radius:14px;justify-content:center;align-items:center;padding:5px 10px;font-size:11px;font-weight:550;text-decoration:none;display:inline-flex}.topnav button:hover,.topnav .nav-link:hover,.topnav .nav-active{background:var(--purple-soft);color:var(--purple);border-color:#6540965c}.workspace-scroll{min-height:0;padding:18px 24px 28px;overflow:auto}main{flex:1;width:min(1180px,100% - 40px);margin:16px auto 0;padding:0 0 42px}.footer{border-top:1px solid var(--line);color:var(--muted);background:#ffffffc7;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:16px 28px;font-size:12px;display:flex}.sidebar-section,.studio-section{gap:12px;display:grid}.sidebar-title-row,.panel-title-row,.project-meta,.progress-row,.result-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.sidebar-title-row h2,.studio-section h2,.local-agent-panel h2{color:var(--ink);margin:0;font-size:14px;font-weight:650}.workspace-link{min-height:26px;color:var(--purple);background:0 0;border-color:#0000;padding:4px 8px;font-size:11px;font-weight:650}.space-selector,.sidebar-search,input,select,textarea{border:1px solid var(--line);border-radius:var(--radius);width:100%;min-height:34px;color:var(--text);background:#fff;padding:8px 10px;font-size:12px}textarea{resize:vertical;min-height:88px}.space-selector{color:var(--purple);font-weight:650}.sidebar-copy{color:var(--muted);margin:0;font-size:12px;line-height:1.72}.source-list,.agent-presets{gap:6px;display:grid}.source-item,.agent-presets button{border:1px solid var(--line);color:#4a4c5a;text-align:left;background:#fbfbfc;border-radius:4px;min-height:31px;padding:6px 8px;font-size:11px}.add-source-btn{border:1px dashed var(--line);border-radius:var(--radius);min-height:30px;color:var(--muted);background:0 0;padding:6px 12px;font-size:11px;font-weight:550}.project-card,.local-agent-panel,.studio-skill-card,.studio-task-item-btn,.studio-child-pill,.metric-card{border:1px solid var(--line);border-radius:var(--radius);background:#ffffffdb}.project-card{box-shadow:var(--shadow-card);border-color:#6540961f;gap:8px;padding:12px;display:grid}.project-card strong{color:var(--ink);font-size:12px;line-height:1.55}.project-meta,.project-card small,.progress-row{color:var(--muted);font-size:10.5px}.project-meta span:first-child{color:var(--purple);font-weight:650}.progress-row b{color:var(--purple)}.progress-track{background:#eceef4;border-radius:99px;height:5px;overflow:hidden}.progress-track span{background:var(--amber);width:66%;height:100%;display:block}.local-agent-panel{border-color:#65409624;gap:10px;padding:12px;display:grid}.agent-status-badge{min-height:19px;color:var(--muted);border:0;border-radius:10px;padding:2px 7px;font-size:9.5px;font-weight:750}.agent-run-btn{border-radius:var(--radius);background:var(--purple);color:#fff;border:0;min-height:32px;font-size:11.5px;font-weight:750}.studio-intro-card{border-radius:var(--radius);background:var(--green-soft);color:var(--green);border:1px solid #3270551a;padding:12px;font-size:12px;line-height:1.7}.studio-child-pill{min-height:52px;color:var(--text);text-align:left;gap:2px;padding:8px 12px;display:grid}.studio-child-pill.active{border-color:var(--purple);background:var(--purple-soft)}.studio-child-pill strong{color:var(--purple)}.studio-child-pill span{color:var(--muted);font-size:11px}.studio-task-item-btn{min-height:34px;color:var(--text);text-align:left;justify-content:space-between;align-items:center;padding:0 12px;font-size:12px;display:flex}.studio-task-item-btn b{color:var(--purple);font-size:11px}.hero{grid-template-columns:minmax(0,.96fr) minmax(420px,1.04fr);gap:16px;margin-bottom:16px;display:grid}.hero-copy,.hero-panel,.role-dashboard-panel,.system-card,.section-card,.dashboard-card,.resource-card,.poster-card,.form-panel,.chart-block,.result-card,.search-box,.stage-card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-card);background:#ffffffc2}.hero-copy{flex-direction:column;justify-content:space-between;min-height:300px;padding:28px;display:flex}.eyebrow,.stage-badge,.resource-card span,.success-line{background:var(--green-soft);width:fit-content;min-height:24px;color:var(--green);border-radius:4px;align-items:center;padding:4px 8px;font-size:12px;font-weight:750;display:inline-flex}.hero h1{color:var(--ink);letter-spacing:0;margin:0;font-size:34px;line-height:1.24}.hero p,.page-header p,.section-card p,.resource-card p,.form-section p{line-height:1.72}.hero-copy p{max-width:680px;color:var(--subtle);margin:14px 0 0;font-size:15px}.hero-panel{background:linear-gradient(135deg,#f4effcc2,#fbfbfcdb),#ffffffc2;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:300px;padding:16px;display:grid}.loop-step{border:1px solid var(--line-soft);border-radius:var(--radius);background:#ffffff9e;flex-direction:column;justify-content:space-between;min-height:118px;padding:14px;display:flex}.loop-step span{background:var(--purple-soft);width:fit-content;min-height:24px;color:var(--purple);border-radius:20px;align-items:center;padding:3px 8px;font-size:11px;font-weight:800;display:inline-flex}.loop-step strong{color:var(--ink);font-size:19px;line-height:1.25}.button,.text-button{border:1px solid var(--purple);border-radius:var(--radius);background:var(--purple);color:#fff;justify-content:center;align-items:center;min-height:32px;padding:6px 12px;font-size:12px;font-weight:700;text-decoration:none;display:inline-flex}.button:hover,.text-button:hover,.agent-run-btn:hover{background:#56347f}.button-secondary{border-color:var(--line);color:var(--ink);background:#fff}.button-secondary:hover{background:var(--purple-soft);color:var(--purple);border-color:#6540965c}.button-ghost,.text-button{color:var(--purple);background:0 0;border-color:#0000}.button-ghost:hover,.text-button:hover{background:var(--purple-soft);color:var(--purple)}.role-dashboard-panel{padding:16px}.panel-title-row strong{color:var(--ink);font-size:13px;display:block}.panel-title-row span{color:var(--green);margin-top:2px;font-size:11px;display:block}.entry-grid,.stage-grid,.dashboard-grid,.resource-grid,.poster-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.stage-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.resource-grid,.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{margin-top:14px}.metric-card{border-color:var(--line-soft);background:#ffffff73;min-height:84px;padding:10px 12px}.metric-card strong,.dashboard-card strong{color:var(--ink);font-size:22px;line-height:1.2;display:block}.metric-card span,.dashboard-card span{color:var(--text);margin-top:5px;font-size:12px;display:block}.metric-card small{color:var(--muted);margin-top:7px;font-size:11px;line-height:1.45;display:block}.dashboard-actions{color:var(--muted);margin-top:14px;font-size:12px}.dashboard-actions button{border:1px solid var(--line);min-height:30px;color:var(--ink);background:#fff;border-radius:14px;padding:5px 12px;font-size:11px;font-weight:550}.system-card{grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:16px;padding:14px 16px;display:grid}.assistant-orb{background:var(--purple-soft);width:30px;height:30px;color:var(--purple);border:1px solid #65409638;border-radius:50%;place-items:center;font-size:10px;font-weight:800;display:grid}.system-card p{color:var(--text);margin:0;font-size:12px;line-height:1.68}.system-card span{color:var(--muted);font-size:11px}.two-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.page-header{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;margin:22px 0 14px;display:grid}.page-header h1{color:var(--ink);margin:0;font-size:20px;line-height:1.25}.page-header p{max-width:760px;color:var(--muted);margin:7px 0 0;font-size:12px}.page-actions{justify-content:flex-end;display:flex}.section-card,.dashboard-card,.chart-block,.form-panel,.result-card,.search-box{padding:16px}.section-card{margin-bottom:14px}.section-card h2,.chart-block h2,.form-toolbar h2{color:var(--ink);margin:0 0 10px;font-size:16px;line-height:1.3}.section-card h3{color:var(--ink);margin:16px 0 8px;font-size:14px}.section-card p{color:var(--subtle);margin:0 0 10px;font-size:13px}.section-warm{background:#fffaf0}.section-blue{background:#f5f7fb}.section-alert{background:var(--danger-soft);border-color:#9b442b33}.check-list{color:var(--text);margin:0;padding-left:20px;line-height:1.9}.compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.compare-grid>div,.mini-steps>div,.timeline>div{border:1px solid var(--line);border-radius:var(--radius);background:#fbfbfc;padding:14px}.stage-card{min-height:132px;padding:14px}.stage-card p{color:var(--subtle);margin:10px 0 0;font-size:12px;line-height:1.6}.stage-A0{color:#7a642e;background:#fff8df}.stage-A1{color:#41528d;background:#eef4ff}.stage-A2{background:var(--green-soft);color:var(--green)}.stage-A3{color:#52651f;background:#f1f6e6}.stage-A4{color:#7a642e;background:#fff3df}.stage-A5{color:#4451a3;background:#f2f5ff}.stage-H1{background:var(--danger-soft);color:var(--danger)}.stage-completed{color:#555;background:#ececec}.dashboard-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.55}.dash-alert{background:var(--danger-soft);border-color:#9b442b33}.dash-good{background:var(--green-soft);border-color:#32705529}.chart-block{margin-bottom:14px}.bar-list,.mini-steps,.timeline{gap:10px;display:grid}.bar-row{color:var(--subtle);grid-template-columns:80px minmax(0,1fr) 34px;align-items:center;gap:10px;font-size:12px;display:grid}.bar-track{background:#eceef4;border-radius:99px;height:10px;overflow:hidden}.bar-fill{border-radius:inherit;min-width:4px;height:100%}.alert-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.alert-card{border-radius:var(--radius);background:var(--danger-soft);border:1px solid #9b442b33;padding:14px}.alert-card strong{margin-top:10px;display:block}.search-box{gap:8px;margin-bottom:14px;display:grid}.search-box span{color:var(--subtle);font-weight:700}.form-panel{margin:18px 0}.form-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.form-section{border:1px solid var(--line);border-radius:var(--radius);margin:0 0 14px;padding:16px}.form-section legend{color:var(--ink);padding:0 8px;font-weight:750}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.field{color:var(--text);gap:7px;font-weight:650;display:grid}.field-wide{grid-column:1/-1}.field b{color:var(--danger);margin-left:4px}.field small{color:var(--muted);font-weight:400;line-height:1.5}.check-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.check-grid label,.single-check{border:1px solid var(--line);background:#fff;border-radius:6px;align-items:flex-start;gap:7px;min-height:34px;padding:8px;font-weight:500;display:flex}.check-grid input,.single-check input{width:auto;min-height:auto;margin-top:3px}.error-box{border-radius:var(--radius);background:var(--danger-soft);color:var(--danger);border:1px solid #9b442b33;margin:0 0 14px;padding:12px 14px}.error-box p{margin:4px 0}.submit-result{margin-top:18px}.success-line{font-weight:800}.result-card{background:var(--green-soft)}.result-H1{background:var(--danger-soft);border-color:#9b442b33}.result-head{flex-wrap:wrap;margin-bottom:12px}.result-head strong{font-size:18px}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.health-reminder{border-radius:var(--radius);color:#765f1e;background:#fff8df;margin-top:12px;padding:12px}.resource-card{flex-direction:column;align-items:flex-start;min-height:210px;padding:16px;display:flex}.resource-card h3{color:var(--ink);margin:12px 0 8px;font-size:15px}.resource-card p{color:var(--subtle);flex:1;margin:0 0 12px;font-size:12px}.resource-card small{color:var(--muted)}.poster-grid{align-items:start}.poster-card{background:#fff;overflow:hidden}.poster-card .poster-art{width:100%;min-height:520px;box-shadow:none;transform-origin:0 0;border:0;border-radius:0}.poster-card-actions{border-top:1px solid var(--line);padding:16px}.poster-card-actions h3{margin:0 0 6px}.poster-card-actions p{min-height:44px;color:var(--muted);margin:0 0 12px}.poster-card-actions>div{flex-wrap:wrap;gap:8px;display:flex}.poster-art{border-radius:var(--radius);min-height:620px;color:var(--text);background:linear-gradient(135deg,#f4effcdb,#f2f9f5eb),#fff;flex-direction:column;justify-content:space-between;padding:40px;display:flex;position:relative;overflow:hidden}.poster-art:before{content:"";pointer-events:none;border:2px solid #65409629;border-radius:6px;position:absolute;inset:24px}.poster-brand{background:var(--purple);color:#fff;border-radius:6px;align-self:flex-start;padding:9px 13px;font-weight:800;position:relative}.poster-icon{background:#ffffffa8;border-radius:50%;place-items:center;width:150px;height:150px;margin:34px auto 12px;display:grid;position:relative}.poster-subtitle{color:var(--purple);text-align:center;margin:0;font-size:20px;font-weight:800;position:relative}.poster-art h1{color:var(--ink);text-align:center;margin:14px 0 24px;font-size:40px;line-height:1.18;position:relative}.poster-body{gap:12px;display:grid;position:relative}.poster-line{border-radius:var(--radius);background:#ffffffb8;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px;padding:12px;display:grid}.poster-line span{background:var(--amber);width:34px;height:34px;color:var(--text);border-radius:50%;place-items:center;font-weight:800;display:grid}.poster-line p{margin:4px 0 0;font-weight:700;line-height:1.5}.poster-art footer{text-align:center;gap:8px;margin-top:28px;display:grid;position:relative}.poster-art footer strong{font-size:20px;line-height:1.45}.poster-art footer span{color:var(--muted)}.export-surface{background:#fff;width:100vw;min-height:100vh;margin:0}.poster-export{border-radius:0;width:3508px;height:4961px;min-height:4961px;padding:260px}.poster-export:before{border-width:8px;inset:150px}.poster-export .poster-brand{border-radius:22px;padding:34px 48px;font-size:64px}.poster-export .poster-icon{width:700px;height:700px;margin-top:420px}.poster-export .poster-icon svg{width:520px;height:520px}.poster-export .poster-subtitle{font-size:116px}.poster-export h1{margin-top:64px;margin-bottom:220px;font-size:252px;line-height:1.08}.poster-export .poster-body{gap:48px}.poster-export .poster-line{border-radius:28px;grid-template-columns:152px minmax(0,1fr);gap:40px;min-height:220px;padding:48px 58px}.poster-export .poster-line span{width:152px;height:152px;font-size:76px}.poster-export .poster-line p{margin-top:10px;font-size:112px;line-height:1.28}.poster-export footer{gap:42px;margin-top:260px}.poster-export footer strong{font-size:112px}.poster-export footer span{font-size:58px}.book-viewer{justify-items:center;gap:18px;display:grid}.book-page{aspect-ratio:1748/2480;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg, #fff 0%, var(--green-soft) 100%);flex-direction:column;justify-content:space-between;width:min(520px,100%);padding:28px;display:flex;box-shadow:0 14px 36px #65409614}.book-page header,.book-page footer{color:var(--muted);justify-content:space-between;gap:12px;font-weight:800;display:flex}.book-page h2{color:var(--ink);text-align:center;margin:0;font-size:31px;line-height:1.35}.book-illustration{flex:1;place-items:center;padding:22px;display:grid}.book-illustration svg{width:100%;max-width:360px}.book-export{width:1748px;height:2480px;box-shadow:none;border:0;border-radius:0;padding:132px}.book-export header,.book-export footer{font-size:54px}.book-export h2{font-size:116px;line-height:1.32}.book-export .book-illustration svg{max-width:1180px}.book-print{background:#fff}.book-print .book-export{page-break-after:always}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #f1c8349e}.app-frame{color:var(--text);background:linear-gradient(180deg, #fbfaf7e6, #f4efe4e6), var(--paper-warm)}.app-layout{grid-template-columns:232px minmax(0,1fr);min-height:100vh;display:grid}.side-rail{border-right:1px solid var(--line);background:linear-gradient(180deg, #fbfaf7fa, #f4efe4eb), var(--paper);flex-direction:column;gap:20px;height:100vh;padding:18px 16px;display:flex;position:sticky;top:0;overflow:auto}.console-brand{min-height:44px}.brand-mark{background:linear-gradient(135deg, var(--amber) 0 42%, transparent 42%), linear-gradient(135deg, var(--purple) 0 100%);border-radius:10px 10px 10px 2px}.rail-nav{gap:18px;display:grid}.rail-group{gap:6px;display:grid}.rail-heading{color:var(--muted);padding:0 8px;font-size:11px;font-weight:750}.rail-item{min-height:48px;color:var(--text);text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;padding:7px 8px;display:grid}.rail-item:hover,.rail-active{background:var(--purple-soft);color:var(--purple);border-color:#6540961f}.rail-token,.profile-avatar{width:34px;height:34px;color:var(--purple);background:#fffdf8;border:1px solid #6540961f;border-radius:8px;place-items:center;font-size:13px;font-weight:850;display:grid}.rail-active .rail-token{background:var(--purple);color:#fff;border-color:#65409647}.rail-copy{gap:2px;min-width:0;display:grid}.rail-copy span{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750;overflow:hidden}.rail-copy small,.rail-profile small,.context-chip small{color:var(--muted);font-size:11px}.rail-profile{border:1px solid var(--line);background:#fffdf8d6;border-radius:8px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;margin-top:auto;padding:10px;display:grid}.rail-profile strong{color:var(--ink);font-size:13px;display:block}.shell-area{flex-direction:column;min-width:0;display:flex}.command-bar{z-index:18;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fbfaf7eb;grid-template-columns:minmax(260px,1fr) auto;align-items:center;gap:14px;min-height:78px;padding:14px 24px;display:grid;position:sticky;top:0}.command-search{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.command-search input{min-height:44px;color:var(--ink);background:#fffdf8;border-color:#ddd5c7;border-radius:8px;font-size:13px}.command-search button,.card-title-row button,.stage-draft button,.input-row button{min-height:34px;color:var(--purple);background:#fffdf8;border:1px solid #65409633;border-radius:8px;padding:7px 12px;font-size:12px;font-weight:750}.command-context{justify-content:flex-end;align-items:center;gap:10px;display:flex}.context-chip{border:1px solid var(--line);min-width:128px;min-height:46px;color:var(--ink);text-align:left;background:#fffdf8;border-radius:8px;gap:2px;padding:7px 12px;display:grid}.context-chip span{font-size:13px;font-weight:800}.command-next{min-width:132px}.app-content{width:auto;max-width:1440px;margin:0 auto;padding:24px}.app-footer{border-top-color:var(--line);background:#fbfaf7d1;margin-top:auto}.app-footer a{color:var(--purple);font-weight:750;text-decoration:none}.app-footer .teacher-entry-link{min-height:28px;color:var(--muted);background:#fffdf8b8;border:1px solid #6540962e;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:650}.app-footer .teacher-entry-link:hover{color:var(--purple);border-color:#6540964d}.button{border-color:var(--purple);background:var(--purple);border-radius:8px;min-height:40px;padding:9px 16px;font-size:13px;box-shadow:0 10px 22px #65409629}.button:hover,.agent-run-btn:hover{background:#56317f}.button-secondary{box-shadow:none;color:var(--purple);background:#fffdf8;border-color:#6540962e}.button-secondary:hover{background:var(--purple-soft)}.text-button{min-height:34px;box-shadow:none;color:var(--purple);background:0 0;border:0;padding:6px 0}.text-button:hover{color:#56317f;background:0 0}.console-grid{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:18px;display:grid}.workflow-panel,.assistant-panel,.stage-model,.task-panel,.recent-flow,.input-list-card,.progress-card,.assistant-card{border:1px solid var(--line);box-shadow:var(--shadow-card);background:#fffdf8db;border-radius:12px}.workflow-panel{gap:18px;padding:24px;display:grid}.workflow-heading{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;display:grid}.hero-cta-group{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.home-primary-action{min-width:178px}.panel-kicker{background:var(--green-soft);width:fit-content;min-height:24px;color:var(--green);border:1px solid #2a5f5a24;border-radius:999px;align-items:center;padding:4px 9px;font-size:12px;font-weight:800;display:inline-flex}.workflow-heading h1{color:var(--ink);margin:12px 0 0;font-size:26px;line-height:1.26}.workflow-heading p,.task-panel p,.assistant-card p,.stage-model p{color:var(--subtle);margin:8px 0 0;font-size:13px;line-height:1.75}.workflow-track{border-bottom:1px solid var(--line);grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding-bottom:14px;display:grid}.workflow-step{min-height:112px;color:var(--text);text-align:center;background:0 0;border:1px solid #0000;border-radius:10px;justify-items:center;gap:6px;padding:10px 6px;display:grid;position:relative}.workflow-step:after{content:"";border-top:1px dashed #cabfb0;width:14px;position:absolute;top:29px;right:-12px}.workflow-step:last-child:after{display:none}.workflow-step span{width:42px;height:42px;color:var(--text);background:#f0ede7;border:1px solid #ddd5c7;border-radius:50%;place-items:center;font-size:18px;font-weight:800;display:grid}.workflow-step strong{color:var(--ink);font-size:13px}.workflow-step small{color:var(--muted);font-size:11px;line-height:1.35}.workflow-step:hover{background:var(--purple-soft);border-color:#65409629}.workflow-done span{background:var(--green-soft);color:var(--green);border-color:#2a5f5a42}.workflow-current{background:linear-gradient(#65409614,#f1c83414)}.workflow-current span{border-color:var(--purple);background:var(--purple);color:#fff;box-shadow:0 10px 22px #65409638}.workflow-current strong{color:var(--purple)}.task-panel{box-shadow:none;gap:16px;padding:20px;display:grid}.task-head,.card-title-row,.progress-summary,.assistant-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.task-head span:first-child{color:var(--purple);font-size:13px;font-weight:800}.task-head h2,.assistant-heading h2,.stage-model h2,.recent-flow h2{color:var(--ink);margin:4px 0 0;font-size:18px;line-height:1.35}.deadline-chip{background:var(--amber-soft);color:#7a642e;white-space:nowrap;border-radius:999px;align-items:center;width:fit-content;min-height:26px;padding:4px 9px;font-size:12px;font-weight:800;display:inline-flex}.task-grid{grid-template-columns:minmax(0,1fr) minmax(280px,.92fr);gap:16px;display:grid}.input-list-card,.progress-card{box-shadow:none;gap:12px;padding:16px;display:grid}.card-title-row h3{color:var(--ink);margin:0;font-size:15px}.card-title-row span,.progress-card small{color:var(--muted);font-size:12px}.input-row{border:1px solid var(--line);background:#fffdf8;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 10px;display:grid}.input-token{min-width:36px;min-height:28px;color:var(--muted);background:#f0ede7;border-radius:7px;place-items:center;font-size:11px;font-weight:800;display:grid}.input-token.required{background:var(--purple-soft);color:var(--purple)}.input-row strong{color:var(--ink);font-size:13px;display:block}.input-row small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.task-actions{flex-wrap:wrap;gap:10px;margin-top:4px;display:flex}.progress-summary strong{color:var(--purple)}.progress-console span{background:var(--purple);width:50%}.stage-draft{background:linear-gradient(135deg,#f0e9f8c7,#fffdf8eb);border:1px solid #65409629;border-radius:10px;gap:9px;margin-top:4px;padding:14px;display:grid}.stage-draft>span{color:var(--purple);font-size:12px;font-weight:800}.stage-draft div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stage-draft p{color:var(--text);margin:0;font-size:13px}.stage-draft button{justify-self:start}.insight-strip{background:var(--purple-soft);border:1px solid #6540961f;border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;display:grid}.insight-strip span{color:var(--purple);font-size:12px;font-weight:850}.insight-strip p{color:var(--subtle);margin:0;font-size:12px;line-height:1.6}.recent-flow{box-shadow:none;gap:14px;padding:16px;display:grid}.recent-flow>div{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.recent-flow button{border:1px solid var(--line);min-height:82px;color:var(--text);background:#fffdf8;border-radius:10px;justify-items:center;gap:6px;padding:10px 6px;display:grid}.flow-dot{width:32px;height:32px;color:var(--muted);background:#f0ede7;border-radius:50%;place-items:center;font-weight:850;display:grid}.flow-dot.done{background:var(--green-soft);color:var(--green)}.flow-dot.current{background:var(--purple);color:#fff}.recent-flow strong{color:var(--ink);font-size:12px}.recent-flow small{color:var(--muted);font-size:11px}.assistant-panel{gap:14px;padding:18px;display:grid;position:sticky;top:102px}.assistant-heading{justify-content:flex-start}.assistant-heading>span{background:var(--purple-soft);width:34px;height:34px;color:var(--purple);border-radius:10px;place-items:center;font-weight:900;display:grid}.assistant-heading p{color:var(--muted);margin:2px 0 0;font-size:12px}.assistant-card{box-shadow:none;gap:10px;padding:14px;display:grid}.assistant-card.primary{background:#fffdf0;border-color:#f1c83461}.assistant-card>span{color:var(--purple);font-size:12px;font-weight:850}.assistant-card h3{color:var(--ink);margin:0;font-size:14px;line-height:1.6}.assistant-card ul{color:var(--text);margin:0;padding-left:18px;font-size:13px;line-height:1.9}.resource-suggestions{gap:8px;display:grid}.resource-suggestions button{border:1px solid var(--line);min-height:40px;color:var(--text);text-align:left;background:#fffdf8;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.resource-suggestions strong{color:var(--ink);font-size:12px}.resource-suggestions small{background:var(--green-soft);color:var(--green);white-space:nowrap;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:750}.stage-model{grid-column:1/-1;gap:16px;padding:20px;display:grid}.stage-model h2{font-size:20px}.stage-model .stage-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.page-header{border:1px solid var(--line);box-shadow:var(--shadow-card);background:#fffdf8db;border-radius:12px;margin:0 0 18px;padding:20px}.page-header h1{font-size:24px}.page-header p{color:var(--subtle);font-size:13px}.section-card,.dashboard-card,.chart-block,.form-panel,.result-card,.search-box,.resource-card,.stage-card{border-color:var(--line);box-shadow:var(--shadow-card);background:#fffdf8db;border-radius:12px}.form-panel{margin:0;padding:18px}.form-section{border-color:var(--line);background:#fbfaf794}.field span,.form-section legend{color:var(--ink)}.space-selector,.sidebar-search,input,select,textarea{background:#fffdf8;border-color:#ddd5c7;border-radius:8px;min-height:40px}.check-grid label,.single-check{border-color:var(--line);background:#fffdf8;border-radius:8px}.dashboard-grid,.resource-grid,.poster-grid,.entry-grid{gap:14px}.dashboard-card{min-height:126px}.dashboard-card strong,.metric-card strong{color:var(--purple)}.chart-block{margin-top:16px}.bar-track{background:#eee8dc}.resource-card{min-height:220px}.resource-card span,.success-line,.stage-badge{background:var(--green-soft);border-radius:999px}.mini-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.mini-steps span{border:1px solid var(--line);min-height:52px;color:var(--purple);background:#fffdf8;border-radius:10px;place-items:center;font-weight:800;display:grid}@media print{@page{margin:0}body{background:#fff}}@media (width<=1180px){.topbar{grid-template-columns:1fr;align-items:flex-start;padding:12px 16px}.header-stats,.top-actions{justify-content:flex-start}.workspace-grid{grid-template-columns:240px minmax(0,1fr)}.workspace-studio{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;display:grid}.hero{grid-template-columns:1fr}}@media (width<=980px){.workspace-grid,.two-col,.page-header{grid-template-columns:1fr}.workspace-sidebar,.workspace-main-panel,.workspace-studio{height:auto;max-height:none}.workspace-main-panel,.workspace-scroll{overflow:visible}.workspace-studio{grid-template-columns:1fr}.entry-grid,.stage-grid,.dashboard-grid,.resource-grid,.poster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.workspace-grid{padding:10px}.workspace-scroll{padding:14px}.workspace-main-header,.topnav{padding-inline:14px}.entry-grid,.stage-grid,.dashboard-grid,.resource-grid,.poster-grid,.field-grid,.check-grid,.result-grid,.alert-list,.compare-grid,.hero-panel,.system-card{grid-template-columns:1fr}.hero-copy{min-height:0;padding:18px}.hero h1,.page-header h1{font-size:22px}.system-card{align-items:start}.form-toolbar{flex-direction:column;align-items:flex-start}}@media (width<=1280px){.app-layout{grid-template-columns:216px minmax(0,1fr)}.console-grid{grid-template-columns:1fr}.assistant-panel{grid-template-columns:repeat(2,minmax(0,1fr));position:static}.assistant-heading{grid-column:1/-1}}@media (width<=1060px){.app-layout{grid-template-columns:1fr}.side-rail{border-right:0;border-bottom:1px solid var(--line);height:auto;max-height:none;position:static}.rail-nav{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.rail-profile{display:none}.command-bar{grid-template-columns:1fr;top:0}.command-context{flex-wrap:wrap;justify-content:flex-start}}@media (width<=860px){.app-content{padding:16px}.workflow-panel{padding:18px}.workflow-heading,.hero-cta-group,.task-grid,.stage-model .stage-grid{grid-template-columns:1fr}.hero-cta-group{justify-content:flex-start}.workflow-track,.recent-flow>div{grid-template-columns:repeat(3,minmax(0,1fr))}.workflow-step:after{display:none}.assistant-panel{grid-template-columns:1fr}}@media (width<=680px){.side-rail{gap:12px;padding:14px}.rail-nav{gap:8px;margin:0 -14px;padding:0 14px 4px;display:flex;overflow-x:auto}.rail-group{flex:none;gap:8px;display:flex}.rail-heading,.rail-copy small{display:none}.rail-item{grid-template-columns:28px minmax(0,1fr);min-width:112px;min-height:42px;padding:6px 8px}.rail-token{width:28px;height:28px;font-size:12px}.rail-copy span{font-size:12px}.command-bar{padding:12px 14px}.command-search,.input-row,.insight-strip{grid-template-columns:1fr}.command-context{grid-template-columns:1fr;display:grid}.context-chip,.command-next{width:100%}.workflow-track,.recent-flow>div,.mini-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.task-head,.card-title-row,.progress-summary{flex-direction:column;align-items:flex-start}.input-row button,.task-actions .button,.task-actions .button-secondary,.hero-cta-group .button{width:100%}.workflow-heading h1{font-size:23px}}
