:root{color-scheme:light;--bg:#f7f8fc;--surface:#fff;--surface-soft:#f0f2fa;--text:#1a2037;--muted:#566079;--line:#e0e4ef;--accent:#4d42dc;--accent-dark:#3f35bd;--accent-soft:#ebe8ff;--danger:#9d203b;--shadow:0 10px 34px #252f6110;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-width:320px}button,input,textarea,select{font:inherit}button,a,select,label:has(input[type=checkbox]){touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:var(--accent-dark)}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,pre:focus-visible{outline:3px solid #9088ec;outline-offset:2px}input,textarea,select{display:block;width:100%;padding:11px 12px;color:var(--text);background:var(--surface);border:1px solid #cdd3e3;border-radius:8px;font-size:.94rem}textarea{resize:vertical}fieldset{margin:0;min-width:0;border:0;padding:0}label,legend{color:var(--text);font-size:.9rem;font-weight:620}label>input,label>select{margin-top:7px}.muted{font-size:.88rem;line-height:1.55;color:var(--muted)}.mono{font-family:"Cascadia Code",Consolas,"Liberation Mono",monospace}.symbols{position:absolute;width:0;height:0;overflow:hidden}.icon{flex-shrink:0;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:10px;top:10px;z-index:10;padding:12px;background:#fff;transform:translateY(-150%)}.skip-link:focus{transform:none}[hidden]{display:none!important}
.topbar{min-height:68px;padding:12px clamp(16px,3vw,40px);display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);background:var(--surface)}.identity,.top-actions{display:flex;align-items:center;gap:12px}.identity strong{display:block;font-size:1.04rem;white-space:nowrap}.identity-note{display:block;color:var(--muted);font-size:.78rem;margin-top:2px}.quiet-tag,.target-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;background:var(--surface-soft);color:var(--muted);font-size:.78rem;font-weight:620;white-space:nowrap}.button,.credits-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid transparent;border-radius:8px;white-space:nowrap;font-size:.88rem;font-weight:680;text-decoration:none;line-height:1.25}.primary{color:#fff;background:var(--accent)}.primary:hover:not(:disabled){background:var(--accent-dark)}.secondary{border-color:var(--line);background:var(--surface);color:var(--text)}.secondary:hover:not(:disabled),.icon-button:hover:not(:disabled),.subtle:hover:not(:disabled){background:var(--surface-soft)}.subtle,.icon-button{color:var(--muted);background:transparent}.icon-button{min-width:36px;padding:6px}.credits-button{background:var(--accent-soft);color:var(--accent-dark)}.credits-button:hover:not(:disabled){background:#ded9fb}.wide{width:100%}
.boot{max-width:690px;margin:55px auto;padding:18px 24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);line-height:1.55}.boot .button{margin-top:12px}.auth-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);align-items:center;gap:clamp(30px,8vw,110px);max-width:1100px;margin:0 auto;padding:clamp(45px,10vh,100px) 30px}.auth-intro h1{font-size:clamp(2rem,4.5vw,4rem);letter-spacing:-.07em;margin:18px 0;line-height:1.13}.auth-intro p{max-width:450px;color:var(--muted);line-height:1.65}.intro-illustration{display:flex;gap:18px;align-items:center;min-height:155px;margin-top:28px;padding-left:8px}.intro-illustration>span{position:relative;display:flex;flex-direction:column;justify-content:center;gap:5px;border:6px solid #232641;background:#f2efff;padding:10px;box-shadow:0 8px 20px #37317125;overflow:hidden}.watch-pill{width:57px;height:128px;border-radius:32px;transform:rotate(-10deg)}.watch-pro{width:102px;height:128px;border-radius:27px;transform:rotate(5deg)}.watch-round{width:86px;height:86px;border-radius:50%;transform:rotate(12deg)}.intro-illustration i{width:100%;height:16px;border-radius:5px;background:var(--accent)}.intro-illustration b{width:94%;height:6px;border-radius:3px;background:#c9c2f5}.intro-illustration b:nth-child(3){width:70%}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:clamp(23px,4vw,36px)}.auth-card h2{margin:22px 0 5px;font-size:1.48rem}.auth-card form{display:grid;gap:16px;margin-top:22px}.segmented{display:flex;padding:3px;background:#eff1f8;border-radius:8px;gap:4px}.segmented button{flex:1;border:0;padding:9px;border-radius:7px;background:transparent;color:var(--muted);font-size:.9rem;font-weight:680}.segmented button[aria-pressed=true]{background:#fff;color:var(--accent-dark);box-shadow:0 1px 4px #34365b1a}
.workspace{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100dvh - 68px)}.sidebar{display:flex;flex-direction:column;gap:13px;background:#f0f2f9;border-right:1px solid var(--line);padding:20px 15px}.sidebar-label{display:flex;justify-content:space-between;align-items:center;padding-left:5px;color:var(--muted);font-size:.86rem;font-weight:680}.sidebar-label .icon-button{min-height:32px}.project-list{display:grid;align-content:start;gap:5px;max-height:calc(100dvh - 260px);overflow-y:auto;padding:3px}.project-link{width:100%;text-align:left;padding:9px 9px 10px;border:1px solid transparent;background:transparent;color:var(--text);border-radius:8px}.project-link:hover:not(:disabled){background:var(--surface)}.project-link[aria-current=true]{background:#fff;border-color:#d5d0fb;box-shadow:0 1px 4px #565e8b13}.project-link strong,.project-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-link strong{font-size:.88rem;margin-bottom:3px}.project-link small{font-size:.75rem;color:var(--muted)}.sidebar-foot{margin-top:auto;display:grid;gap:12px;padding:12px 3px 0;border-top:1px solid var(--line)}.account-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.82rem}.sidebar-toggle{display:none}.main-area{min-width:0;padding:22px clamp(15px,2.4vw,33px) 25px;max-width:1800px;width:100%;margin:0 auto}.empty-project{display:flex;min-height:65vh;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px}.empty-project h1{font-size:clamp(1.3rem,3.2vw,2rem)}.empty-project p{color:var(--muted)}.empty-icon{display:grid;place-items:center;width:68px;height:68px;border-radius:16px;background:var(--accent-soft);color:var(--accent-dark)}.empty-icon .icon{width:31px;height:31px}.notice{background:#efedff;color:#3b318b;border:1px solid #dbd6ff;padding:10px 13px;border-radius:9px;margin:0 0 13px;font-size:.88rem;white-space:pre-wrap}.notice[data-kind=error],.inline-error{background:#fff1f4;color:var(--danger);border:1px solid #f4cad5}.inline-error{padding:9px 12px;border-radius:7px;font-size:.85rem;line-height:1.5}.project-head{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:16px}.project-head h1{font-size:clamp(1.35rem,3vw,2.05rem);margin:4px 0 8px;overflow-wrap:anywhere}.project-package{font-size:.87rem;color:var(--muted);overflow-wrap:anywhere}.targets,.build-actions{display:flex;flex-wrap:wrap;gap:6px}.target-chip{background:#efedfb;color:#504692}.build-actions{justify-content:flex-end}
.panes{display:grid;grid-template-columns:minmax(285px,1fr) minmax(310px,1.15fr);gap:14px;min-width:0}.pane{min-width:0;display:flex;flex-direction:column;height:max(490px,calc(100dvh - 233px));background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.pane-head{display:flex;align-items:center;gap:8px;flex:none;min-height:48px;padding:8px 13px;border-bottom:1px solid var(--line);color:#3c4262}.pane-head h2{font-size:.94rem}.pane-head>.quiet-tag{margin-left:auto}.messages{flex:1;min-height:120px;padding:14px;overflow:auto}.chat-empty{height:100%;min-height:145px;display:grid;align-content:center;gap:8px;padding:6px 14px;color:var(--muted);font-size:.9rem;line-height:1.65}.chat-empty strong{font-size:1rem;color:#454362}.message{margin-bottom:13px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;line-height:1.6;font-size:.91rem;overflow-wrap:anywhere}.message p{white-space:pre-wrap}.message[data-role=user]{background:#efedff;border-color:#e6e1fd;margin-left:17px}.message[data-role=assistant]{background:#f8f9fd;margin-right:17px}.message .who{display:block;color:var(--muted);font-size:.76rem;font-weight:680;margin-bottom:3px}.message[data-role=status]{border-style:dashed;color:var(--muted)}.composer{padding:10px;border-top:1px solid var(--line);background:#fafbfe}.composer textarea{min-height:84px;max-height:155px;line-height:1.5}.composer-foot,.source-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.composer-foot>div,.source-foot>div{display:flex;gap:5px}.view-switch{display:flex;gap:4px}.view-switch button{display:flex;align-items:center;gap:5px;min-height:32px;font-size:.84rem;font-weight:680;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:5px 8px}.view-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-dark)}.view-switch .icon{width:16px;height:16px}.source-panel,.log-panel{display:flex;flex:1;min-height:0;flex-direction:column}.source-panel .file-picker{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fafbfe;border-bottom:1px solid var(--line)}.file-picker select{margin:0;padding:6px 8px;font-family:"Cascadia Code",Consolas,monospace;font-size:.8rem}.source-panel .source-foot,.log-panel .source-foot{margin:0;padding:8px 11px;border-top:1px solid var(--line);min-height:52px}.editor{resize:none;flex:1;border-radius:0;border:0;background:#fcfdff;padding:14px;font-family:"Cascadia Code",Consolas,"Liberation Mono",monospace;font-size:.83rem;line-height:1.58;tab-size:2;min-height:0}.editor:focus-visible{outline-offset:-3px}.log-panel pre{background:#1d2136;color:#d7ddfd;flex:1;min-height:0;margin:0;padding:14px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:.84rem/1.6 "Cascadia Code",Consolas,"Liberation Mono",monospace}.log-foot{justify-content:flex-start;flex-wrap:wrap}
dialog{width:calc(100% - 24px);max-width:625px;max-height:calc(100dvh - 24px);overflow:auto;padding:23px;border:1px solid var(--line);border-radius:13px;box-shadow:0 14px 70px #1e1d5a36;color:var(--text);background:var(--surface)}dialog::backdrop{background:#20234578}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 -3px 15px 0}.dialog-head h2{font-size:1.24rem}.dialog-head .icon-button{min-height:34px}dialog form{display:grid;gap:15px}dialog form>label,.two-fields>label{min-width:0}.two-fields,.device-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.field-hint{margin-bottom:8px}.device-option{display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px;min-height:52px}.device-option:has(input:checked){border-color:#ada4f5;background:#f4f1ff}.device-option input{margin:0;width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}.device-option strong,.device-option small{display:block}.device-option strong{font-size:.84rem;line-height:1.35;font-weight:680}.device-option small{margin-top:2px;color:var(--muted);font-size:.75rem}.dialog-foot{display:flex;justify-content:flex-end;gap:7px;margin-top:3px;padding-top:12px;border-top:1px solid var(--line)}.payment-note{font-size:.9rem;color:#574391;background:#f4f0ff;padding:9px 11px;border-radius:7px;margin-bottom:12px}.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.plan{display:grid;align-content:start;gap:7px;padding:12px;border:1px solid var(--line);border-radius:9px}.plan strong{font-size:.92rem}.plan span{font-size:.86rem;color:var(--muted)}#quota-dialog h3{margin:18px 0 7px;font-size:.96rem}.orders{display:grid;gap:6px}.order{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:.85rem}.order small{display:block;margin-top:2px;color:var(--muted)}#quota-error{margin-top:8px}
@media(max-width:1130px){.workspace{grid-template-columns:205px minmax(0,1fr)}.panes{grid-template-columns:minmax(255px,1fr) minmax(270px,1fr)}.pane{height:max(510px,calc(100dvh - 243px))}.button{padding-left:9px;padding-right:9px}}
@media(max-width:870px){.workspace{grid-template-columns:175px minmax(0,1fr)}.panes{grid-template-columns:1fr}.pane{height:500px}.main-area{padding:14px}.identity-note{display:none}.project-head{align-items:flex-start}}
@media(max-width:660px){.topbar{min-height:60px;gap:6px;padding:9px 12px}.identity,.top-actions{gap:5px}.identity img{width:31px;height:31px}.identity strong{font-size:.91rem}#runtime{display:none}.credits-button,.top-actions .button{padding:6px 7px;font-size:.78rem}.credits-button .icon{width:15px}.auth-shell{grid-template-columns:1fr;gap:15px;padding:25px 15px;max-width:490px}.auth-intro h1{font-size:1.8rem;margin:7px 0;letter-spacing:-.03em}.hero-mark,.intro-illustration{display:none}.workspace{display:flex;flex-direction:column;min-height:calc(100dvh - 60px)}.sidebar{display:none;border-right:0;border-bottom:1px solid var(--line);padding:12px 14px}.sidebar[data-expanded=true]{display:flex;order:0}.project-list{max-height:220px}.main-area{order:1}.sidebar-toggle{display:inline-flex;margin-bottom:10px}.empty-project{min-height:58vh}.project-head{flex-direction:column}.build-actions{justify-content:flex-start}.pane{height:460px}.plans{grid-template-columns:1fr}.plan{grid-template-columns:1fr auto;align-items:center}.plan button{grid-column:2;grid-row:1 / span 2}.boot{margin:23px 12px}.save-status,.composer-foot .muted{font-size:.76rem}}
@media(max-width:400px){.two-fields,.device-choices{grid-template-columns:1fr}.composer-foot>div{margin-left:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:871px){
  .workspace{height:calc(100dvh - 68px)}
  .sidebar,.main-area{min-height:0;overflow:auto}
  .main-area,.project{display:flex;flex-direction:column}
  .notice,.project-head{flex:none}
  .project,.panes{flex:1;min-height:360px}
  .pane{height:100%;min-height:360px}
}
#focus-files{margin-top:4px}
#focus-dialog{max-width:490px}
.focus-options{display:grid;gap:5px;max-height:min(46dvh,22rem);padding:3px;overflow:auto}
.focus-option{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.focus-option:has(input:checked){border-color:#ada4f5;background:#f4f1ff}
.focus-option:has(input:disabled){cursor:not-allowed;opacity:.55}
.focus-option input{width:17px;height:17px;margin:0;flex:none;accent-color:var(--accent)}
.focus-option .mono{min-width:0;font-size:.8rem;overflow-wrap:anywhere}
.focus-option small{flex:none;margin-left:auto;font-size:.72rem;white-space:nowrap}
.focus-foot{align-items:center}
.focus-foot .muted{margin-right:auto;white-space:nowrap}
