:root{--ink:#173b70;--muted:#73859a;--red:#1a5b95;--paper:#f4f7fa;--line:#dce6ef;--navy:#173b70;--lime:#d3dd55;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--sans:Arial, "PingFang SC", "Microsoft YaHei", sans-serif;color:#203b59;font-family:var(--sans);background:#f4f7fa}*{box-sizing:border-box}html,body{min-height:100%;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline-offset:3px;outline:2px solid #609ac2}::selection{color:#173b70;background:#c8e4f4}.public-page{border-top:5px solid var(--navy);background:#f3f7fa;min-height:100vh}.public-header{background:#fff;border-bottom:1px solid #e1eaf1}.public-nav{justify-content:space-between;align-items:center;max-width:1160px;height:72px;margin:auto;padding:0 38px;display:flex}.brand,.studio-brand{font:700 13px var(--sans);letter-spacing:.08em;color:var(--navy);align-items:center;gap:10px;display:flex}.brand>span:last-child{color:#738ba2;font-size:10px;font-weight:500}.brand-slash{color:#a7bbcc;font-weight:400}.brand-mark{background:var(--lime);border-radius:50%;flex:none;place-items:center;width:18px;height:18px;display:inline-grid}.brand-mark:after{content:"";border:1px solid var(--navy);border-radius:50%;width:6px;height:6px}.quiet-button{font:10px var(--mono);letter-spacing:.04em;color:inherit;background:0 0;border:0}.edit-link{color:var(--navy);background:#fff;border:1px solid #bfd0df;border-radius:20px;padding:8px 15px;font-size:12px}.edit-link:hover{border-color:var(--navy)}.edit-link span{margin-left:7px}.public-shell{max-width:1160px;margin:auto;padding:0 38px}.document-heading{justify-content:space-between;align-items:end;gap:24px;padding:48px 0 28px;display:flex}.document-title{align-items:center;gap:14px;display:flex}.title-accent{background:var(--lime);border-radius:3px;width:5px;height:39px}.document-title h1{color:var(--navy);letter-spacing:-.035em;margin:0;font-size:44px;font-weight:600;line-height:1}.document-actions{align-items:center;gap:16px;display:flex}.language-switch{background:#fff;border:1px solid #d9e5ee;border-radius:24px;padding:3px;display:inline-flex}.language-switch button{color:#71859b;white-space:nowrap;background:0 0;border:0;border-radius:20px;padding:9px 15px;font-size:12px}.language-switch button[aria-pressed=true]{color:#fff;background:var(--navy)}.download-button{background:var(--lime);color:var(--navy);white-space:nowrap;border-radius:24px;justify-content:center;align-items:center;gap:18px;padding:12px 18px;font-size:12px;font-weight:600;display:inline-flex}.download-button:hover{background:#c5d244}.download-button span{font-size:16px;line-height:1}.public-document{width:min(100%,940px);margin:0 auto}.empty-public{color:#71859b;text-align:center;min-height:250px;padding:60px 0}.public-footer{font:10px var(--mono);color:#8a9cab;border-top:1px solid #dce6ee;justify-content:space-between;margin-top:52px;padding:24px 0 32px;display:flex}.pdf-document{flex-direction:column;align-items:center;gap:18px;width:100%;min-width:0;display:flex}.pdf-sheet{background:#fff;flex:none;width:100%;position:relative;overflow:hidden;box-shadow:0 3px 16px #1d3c5b17}.pdf-sheet:empty{aspect-ratio:210/297}.pdf-sheet-inner{background:#fff;position:relative}.pdf-sheet canvas{display:block}.pdf-message{color:#71859b;text-align:center;padding:64px 20px;font-size:13px}.textLayer{text-align:initial;-moz-text-size-adjust:none;text-size-adjust:none;transform-origin:0 0;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size));line-height:1;position:absolute;inset:0;overflow:clip}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;position:absolute}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer .markedContent{display:contents}.textLayer ::selection{color:#0000;-webkit-text-fill-color:transparent;background:#3f8bc44d}.textLayer ::-moz-selection{color:#0000;background:#3f8bc44d}.pdf-link{z-index:2;border-radius:2px;position:absolute}.pdf-link:focus-visible{outline:2px solid #438cbf}.local-auth{place-items:center;min-height:100vh;padding:24px;display:grid}.local-auth form{background:#fff;border:1px solid #dce6ef;gap:16px;width:min(100%,390px);padding:36px;display:grid}.local-auth form>span{color:#62819c;font:10px var(--mono);letter-spacing:.1em}.local-auth h1{color:var(--navy);margin:0;font-size:25px}.local-auth p{color:#71859b;margin:0;font-size:13px;line-height:1.7}.local-auth label{color:#334e68;gap:8px;font-size:12px;display:grid}.local-auth input{border:1px solid #cbd9e5;border-radius:4px;width:100%;padding:11px}.local-auth button{background:var(--navy);color:#fff;border:0;border-radius:4px;padding:12px}.local-auth a{color:#527695;font-size:12px}.studio{background:#f2f6fa;flex-direction:column;height:100dvh;min-height:520px;display:flex;overflow:hidden}.studio-header{color:#fff;background:#163968;flex:none;justify-content:space-between;align-items:center;height:58px;padding:0 22px;display:flex}.studio-brand{color:#fff;gap:10px}.studio-brand strong{font:600 12px var(--mono);letter-spacing:.13em}.header-divider{background:#6a88ac;width:1px;height:17px;margin:0 3px}.header-subtitle{font:9px var(--mono);color:#b8cce1;letter-spacing:.07em}.header-actions{align-items:center;gap:24px;display:flex}.local-pill{color:#dce8f5;font-size:10px}.local-pill>span,.save-indicator>span,.status-dot{background:#80ae7e;border-radius:50%;width:6px;height:6px;margin-right:6px;display:inline-block}.quiet-button{color:#e2edf6}.workspace{flex:1;grid-template-columns:244px minmax(300px,1fr) minmax(390px,1fr);min-height:0;display:grid}.sidebar{background:#eff4f9;border-right:1px solid #d8e3ed;flex-direction:column;min-width:0;min-height:0;display:flex}.sidebar-top{height:62px;font:9px var(--mono);letter-spacing:.11em;color:#74889e;justify-content:space-between;align-items:center;padding:0 19px;display:flex}.sidebar-top button{color:#73879d;background:0 0;border:0;padding:0 4px;font:24px Arial}.sidebar-tabs{border-bottom:1px solid #d8e3ed;gap:22px;padding:0 16px;display:flex}.sidebar-tabs button{color:#7b8da1;background:0 0;border:0;border-bottom:2px solid #0000;height:38px;padding:0 0 10px;font-size:12px}.sidebar-tabs button.active{color:#183a66;border-bottom-color:var(--red);font-weight:600}.sidebar-tabs span{font:9px var(--mono);color:#9aaabc;margin-left:4px}.file-list,.history-list{flex:1;padding:0 10px;overflow:auto}.sidebar-section{color:#7b8da1;letter-spacing:.02em;justify-content:space-between;margin:0;padding:13px 8px 8px;font-size:10px;display:flex}.file-item{text-align:left;color:#465e78;background:0 0;border:0;border-radius:3px;align-items:flex-start;gap:9px;width:100%;padding:11px 8px;display:flex}.file-item:hover{background:#e6edf5}.file-item.selected{color:#163a69;background:#dce9f4}.file-icon{letter-spacing:-2px;color:#3274a9;flex:none;margin-top:3px;margin-right:2px;font:700 10px Georgia,serif}.file-icon span{vertical-align:2px;font-size:7px}.file-copy{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.file-copy strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:500;overflow:hidden}.file-copy small{font:9px var(--mono);color:#8a9bad;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.file-dot{background:#8cbd52;border-radius:50%;width:5px;height:5px;margin-top:6px}.sidebar-footer{border-top:1px solid #d9e4ed;align-items:center;gap:9px;padding:16px;display:flex}.avatar{background:#dceac4;border-radius:50%;place-items:center;width:31px;height:31px;font:600 13px Georgia;display:grid}.sidebar-footer>span:nth-child(2){flex-direction:column;flex:1;gap:4px;display:flex}.sidebar-footer strong{font-size:10px;font-weight:600}.sidebar-footer small{font:8px var(--mono);color:#889bad}.footer-arrow{color:#889bad;font-size:12px}.history-list{padding:0 16px}.history-item{border-bottom:1px solid #dbe5ed;padding:14px 2px}.history-item.viewing .history-point{background:var(--red)}.history-title{align-items:center;gap:6px;display:flex}.history-title strong{flex:1;font-size:11px}.history-title small{font:9px var(--mono);color:#889bad}.history-point{background:#a9b9c7;border-radius:50%;width:6px;height:6px}.history-item p{color:#8e9eb0;margin:8px 0 10px 12px;font-size:10px}.history-actions{gap:12px;margin-left:12px;display:flex}.history-actions button{color:#28659b;background:0 0;border:0;padding:0;font-size:10px}.editor-pane{background:#fff;border-right:1px solid #dce5ed;flex-direction:column;min-width:0;min-height:0;display:flex}.pane-top,.preview-toolbar{border-bottom:1px solid #e2eaf1;flex:none;justify-content:space-between;align-items:center;height:56px;display:flex}.pane-top{padding:0 18px 0 0}.editor-tab{border-bottom:2px solid var(--red);height:100%;font:10px var(--mono);align-items:center;gap:9px;min-width:0;padding:0 20px;display:flex}.editor-tab>span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-tab i{background:#90b857;border-radius:50%;flex:none;width:5px;height:5px}.save-indicator{color:#8d9bac;white-space:nowrap;font-size:10px}.editor-content{flex:1;min-height:0;overflow:hidden}.code-editor,.code-editor .cm-editor{height:100%}.code-editor .cm-editor{font:12px/1.8 var(--mono);background:#fff}.code-editor .cm-scroller{font-family:var(--mono);overflow:auto}.code-editor .cm-gutters{color:#b3c1cd;background:#fff;border:0;padding-left:12px}.code-editor .cm-lineNumbers .cm-gutterElement{padding-right:16px}.code-editor .cm-content{caret-color:var(--red);padding:23px 15px 80px 6px}.code-editor .cm-activeLine,.code-editor .cm-activeLineGutter{background:#eff5fa}.code-editor .cm-focused{outline:none}.pane-status{color:#91a1af;height:34px;font:9px var(--mono);border-top:1px solid #e6edf3;flex:none;justify-content:space-between;align-items:center;padding:0 17px;display:flex}.preview-pane{background:#e8eff5;flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.preview-toolbar{background:#fff;padding:0 18px}.preview-heading{font-size:12px;font-weight:600}.preview-caption{font:8px var(--mono);letter-spacing:.08em;color:#9aabbb;margin-left:12px}.preview-actions{gap:8px;display:flex}.secondary-button,.compile-button{border-radius:3px;padding:9px 12px;font-size:10px}.secondary-button{color:#516c87;background:#fff;border:1px solid #cbd9e6}.compile-button{border:1px solid var(--red);background:var(--red);color:#fff}.compile-button span{vertical-align:-1px;font-size:14px}.preview-body{flex:1;justify-content:center;min-height:0;padding:24px;display:flex;overflow:auto}.preview-empty{text-align:center;color:#647b91;margin:auto}.preview-empty h2{color:#254c75;margin:25px 0 7px;font-size:17px;font-weight:500}.preview-empty p{color:#91a1b1;font-size:11px}.preview-empty button{color:#2d6da2;background:0 0;border:0;border-bottom:1px solid #3d79aa;margin-top:12px;padding:6px 1px;font-size:11px}.preview-bottom{color:#8e9eb0;height:39px;font:9px var(--mono);background:#fff;border-top:1px solid #d9e4ed;flex:none;justify-content:space-between;align-items:center;padding:0 17px;display:flex}.preview-bottom>div{gap:16px;display:flex}.preview-bottom button,.preview-bottom a{font:9px var(--mono);color:#607a91;background:0 0;border:0;padding:0}.preview-bottom button:nth-child(2){color:#236ca3}.compile-log{color:#eef5fb;font:10px var(--mono);background:#173252;max-height:40%;position:absolute;bottom:39px;left:0;right:0;overflow:auto;box-shadow:0 -8px 25px #0002}.compile-log:not([open]){max-height:none;position:static}.compile-log summary{cursor:pointer;color:#c2d2df;padding:6px 16px}.compile-log pre{white-space:pre-wrap;padding:0 16px 12px}.toast{z-index:10;color:#fff;background:#17385d;align-items:center;gap:30px;max-width:min(460px,90vw);padding:13px 16px;font-size:12px;display:flex;position:fixed;bottom:56px;right:22px;box-shadow:0 4px 18px #0002}.toast button{color:#aaa;background:0 0;border:0;font-size:18px;line-height:1}.mobile-switch,.mobile-tabs{display:none}.loading{color:#999;padding:40px;font-size:12px}@media (max-width:1100px){.workspace{grid-template-columns:205px minmax(260px,1fr) minmax(310px,1fr)}.sidebar-top{padding:0 14px}.preview-body{padding:14px}.preview-caption{display:none}.secondary-button,.compile-button{padding:9px}.public-shell{padding:0 32px}}@media (max-width:760px){.public-shell{padding:0 24px}.public-nav{height:64px;padding:0 24px}.document-heading{flex-direction:column;align-items:flex-start;gap:22px;padding:34px 0 24px}.document-title h1{font-size:36px}.title-accent{height:32px}.document-actions{justify-content:space-between;gap:10px;width:100%}.language-switch button{padding:9px 12px}.pdf-document{gap:10px}.download-button{gap:14px;padding:12px}.studio-header{padding:0 14px}.header-subtitle,.local-pill{display:none}.workspace{grid-template-columns:160px minmax(0,1fr)}.sidebar-top{height:50px;font-size:8px}.sidebar-tabs{gap:16px}.file-item{padding:10px 4px}.file-copy strong{font-size:10px}.file-copy small{font-size:8px}.sidebar-footer{padding:12px 8px}.sidebar-footer strong{font-size:9px}.sidebar-footer small,.footer-arrow{display:none}.editor-pane,.preview-pane{grid-area:1/2}.mobile-hidden{display:none}.mobile-switch{z-index:2;background:#e3ebf3;border-radius:4px;padding:2px;display:flex;position:absolute;top:66px;right:10px}.mobile-switch button{color:#75899d;background:0 0;border:0;padding:6px 8px;font-size:10px}.mobile-switch button.active{color:#222;background:#fff}.pane-top,.preview-toolbar{padding-right:135px}.preview-actions .secondary-button{display:none}.preview-toolbar{padding-left:10px}.preview-heading{display:none}.preview-body{padding:8px}.preview-bottom{font-size:8px}.preview-bottom>div{gap:8px}.editor-tab{padding-left:10px}.save-indicator{display:none}.public-footer{font-size:8px}}
