:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#303b34;background:#f7f8f5;font-synthesis:none;--green:#42734f;--line:#e6e9e3;--muted:#8a948c;--surface:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:none;color:inherit;white-space:nowrap}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #42734f;outline-offset:3px}button:hover{transition:background .15s,color .15s}svg{width:17px;height:17px;flex-shrink:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.app-header{height:80px;padding:0 28px;display:flex;align-items:center;gap:25px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brand>span{font-size:20px;font-weight:650;letter-spacing:1px;line-height:1.3}.brand-light{font-weight:400;margin-left:5px}.brand small{display:block;font-size:8px;letter-spacing:2.1px;color:#8a948b;margin-top:4px;font-weight:500}.header-divider{width:1px;height:25px;background:var(--line)}.header-caption{font-size:12px;color:#929b94;letter-spacing:.4px}.header-actions{display:flex;gap:8px;align-items:center;margin-left:auto;font-size:12px}.quiet{padding:10px 13px;border-radius:6px;color:#6b766e}.quiet:hover,.small-quiet:hover,.icon-button:hover{background:#f0f3ee;color:#37553f}.primary{padding:11px 18px;background:#42734f;color:white;border-radius:7px;box-shadow:0 3px 6px #2b583410}.primary:hover{background:#355f40}.button{display:inline-block}.export-container{position:relative}.popover{position:absolute;right:0;top:calc(100% + 12px);background:#fff;border:1px solid var(--line);border-radius:9px;padding:5px;min-width:178px;box-shadow:0 10px 35px #2034271c;z-index:10}.popover button{display:block;width:100%;text-align:left;padding:12px;border-radius:5px;font-size:12px}.popover button:hover{background:#f1f4ef}
.workspace{display:grid;grid-template-columns:240px minmax(320px,1fr) minmax(420px,1.07fr);height:calc(100dvh - 80px);min-height:520px}.settings-pane{padding:30px 22px 0;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow-y:auto;background:#fafbf8}.eyebrow{font-size:9px;letter-spacing:2px;color:#9aab99;font-weight:600}.settings-heading h1{font-size:14px;font-weight:600;letter-spacing:.3px;margin:12px 0 9px}.settings-heading p{font-size:11px;color:#8d978f;margin:0}.settings-tabs{display:flex;border-bottom:1px solid var(--line);margin:28px 0 21px;gap:22px}.settings-tabs button{font-size:12px;color:#9aa398;padding:0 1px 11px;position:relative}.settings-tabs [aria-selected=true]{color:#3e6748;font-weight:600}.settings-tabs [aria-selected=true]:after{content:"";position:absolute;bottom:-1px;height:2px;background:#42734f;left:0;right:0}
.theme-list{display:grid;gap:12px}.theme-card{position:relative;display:block;text-align:left;width:100%;border:1px solid #e3e7e0;border-radius:8px;padding:13px 14px;background:#fff;overflow:hidden}.theme-card:hover{border-color:#a7bda9}.theme-card[aria-pressed=true]{border-color:#729a7b;background:#f4f8f1;box-shadow:0 0 0 1px #729a7b22}.theme-name{display:block;font-size:12px;font-weight:600;margin:9px 0 5px}.theme-description{display:block;font-size:10px;color:#8d958d}.theme-selected{display:none;position:absolute;right:11px;bottom:21px;color:#42734f}.theme-selected svg{width:14px}.theme-card[aria-pressed=true] .theme-selected{display:block}.theme-mini{display:flex;flex-direction:column;gap:5px;width:83px;height:46px}.mini-title{font-size:10px;font-weight:700;color:var(--accent);width:84px;height:15px;letter-spacing:1px}.mini-line{height:2px;background:#dce2db;border-radius:2px;width:85px}.mini-line.short{width:60px}.mini-line.tiny{width:72px}.theme-card[data-theme=fresh] .mini-title{border-bottom:1px solid var(--accent);padding-bottom:4px}.theme-card[data-theme=ink] .mini-title{border-left:3px solid var(--accent);padding-left:7px;letter-spacing:2px}.theme-card[data-theme=letter] .mini-title{font-family:Georgia,"Songti SC",serif;letter-spacing:3px;text-align:center;border-top:1px solid #e6d6c8;border-bottom:1px solid #e6d6c8;height:20px}.theme-card[data-theme=violet] .mini-title{background:#f0edf8;border-radius:3px;padding:1px 6px;height:17px}.theme-note{display:flex;align-items:flex-start;gap:6px;font-size:9px;line-height:1.6;color:#9aa296;margin:18px 0 24px}.tiny-dot{width:4px;height:4px;background:#99ab95;border-radius:50%;margin-top:5px;flex-shrink:0}.settings-bottom{margin-top:auto;padding:21px 0 23px;border-top:1px solid var(--line);display:grid;grid-template-columns:20px 1fr;gap:10px}.privacy-icon{color:#8da18b;padding-top:2px}.privacy-icon svg{width:16px}.settings-bottom p{font-size:10px;line-height:1.8;color:#768772;margin:0}.settings-bottom p span{color:#a0a89a;font-size:9px}.settings-bottom a{grid-column:2;display:flex;align-items:center;gap:10px;font-size:10px;color:#9ea699;padding-top:8px}.settings-bottom a svg{width:11px;height:11px}.settings-bottom a:hover{color:var(--green)}
.setting-field{display:block;margin:0 0 27px;font-size:11px}.setting-field>span{display:flex;justify-content:space-between;margin-bottom:14px;color:#65735f}.setting-field output{font-size:10px;color:#a0a897}.setting-field select{width:100%;font-size:12px;border:1px solid #dfe6db;background:white;border-radius:6px;padding:10px;color:#556850}.setting-field input[type=range]{width:100%;height:4px;accent-color:var(--green);cursor:pointer}.colors{display:flex;gap:9px;flex-wrap:wrap}.color-chip{width:23px;height:23px;border:3px solid #fafbf8;border-radius:50%;background:var(--accent);padding:0}.color-chip[aria-pressed=true]{box-shadow:0 0 0 1px var(--accent)}.reset-style{font-size:10px;color:#83927d;padding:10px 0;margin-bottom:25px}.reset-style svg{width:13px;height:13px}
.editor-pane{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);background:#fff}.pane-header{height:63px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid var(--line)}.pane-header h2{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;font-weight:600;color:#59685b}.pane-dot{width:6px;height:6px;border-radius:2px;background:#a6b19f}.pane-dot.green{background:#6d956d}.pane-label{font-weight:400;color:#a2a99f;margin-left:1px;font-size:10px}.small-quiet{font-size:10px;border-radius:4px;padding:7px 0;color:#8d9889}.small-quiet svg{width:13px;height:13px}.format-bar{min-height:47px;display:flex;align-items:center;gap:3px;padding:0 20px;border-bottom:1px solid #f0f1ed;flex-shrink:0}.format-bar>button{height:29px;min-width:27px;padding:5px;color:#7e8b7a;border-radius:4px;font-size:14px}.format-bar>button:hover{background:#f0f4ec;color:#42734f}.format-text{font-weight:600;font-size:13px}.format-bar svg{width:15px;height:15px}.toolbar-divider{width:1px;height:13px;background:var(--line);margin:0 5px}.format-bar .sample-button{margin-left:auto;font-size:10px;padding:4px 0 4px 9px;color:#98a48e}.editor-body{flex:1;min-height:0;display:flex}.editor-body textarea{resize:none;display:block;width:100%;height:100%;border:0;outline:none;padding:28px 28px 48px;font-size:13px;line-height:2.05;font-family:"SFMono-Regular",Menlo,Consolas,"PingFang SC","Microsoft YaHei",monospace;color:#646d65;background:#fff;tab-size:2}.editor-body textarea::placeholder{color:#a3aca0}.editor-body textarea:focus{box-shadow:inset 2px 0 #42734f33}.editor-status{height:43px;flex-shrink:0;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;color:#98a38f;gap:10px}.editor-status>span:first-child{display:flex;gap:6px;align-items:center}.saved-dot{width:4px;height:4px;border-radius:50%;background:#87a27c}.preview-pane{min-width:0;display:flex;flex-direction:column;background:#f2f4ef}.preview-pane .pane-header{background:#fafbf8}.preview-width{display:flex;gap:4px;border-radius:5px;background:#f0f3ec;padding:3px}.preview-width button{padding:4px 8px;border-radius:4px;color:#a0aa95}.preview-width svg{width:14px;height:14px}.preview-width [aria-pressed=true]{background:white;color:#597b4e;box-shadow:0 1px 3px #3e583718}.preview-meta{display:flex;justify-content:space-between;padding:18px 26px 13px;font-size:9px;color:#9eaa95;flex-shrink:0}.preview-scroll{overflow:auto;flex:1;min-height:0;padding:0 22px 30px;scrollbar-width:thin;scrollbar-color:#d2dace transparent}.paper{width:375px;max-width:100%;margin:0 auto;background:#fff;border:1px solid #e8ece4;border-radius:7px;box-shadow:0 5px 25px #3a563309;overflow:hidden;transition:width .2s}.paper.wide{width:100%}.paper-top{height:45px;margin:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff1ec;color:#c0c8b7;font-size:7px;letter-spacing:1.6px}.paper-dots{display:flex;gap:4px}.paper-dots i{width:3px;height:3px;background:#d2dbc8;border-radius:50%}#preview-content{padding-top:12px}#preview-content>section{min-height:80px}#preview-content h1{font-size:26px}#preview-content img{min-width:0}#preview-content img:not([src]){display:none}.paper-bottom{margin:0 25px;padding:21px 0;border-top:1px solid #eff1ec;font-size:8px;letter-spacing:1px;color:#b6c0ad;text-align:center}.preview-footer{height:43px;flex-shrink:0;display:flex;align-items:center;gap:7px;border-top:1px solid #e4e9de;padding:0 22px;font-size:9px;color:#a0ac96}.preview-footer>svg{width:12px;height:12px}.preview-footer button{font-size:9px;color:#66805c;margin-left:auto;padding:7px 0}.preview-footer button svg{width:11px;height:11px}.empty-preview{padding:60px 15px 70px;text-align:center}.empty-mark{color:#9fb094}.empty-mark svg{width:35px;height:35px}.empty-preview h3{font-size:14px;color:#6b7e61;font-weight:500}.empty-preview p{font-size:12px;color:#9daa93;line-height:1.9}
.mobile-nav{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:50;max-width:calc(100vw - 32px);width:max-content;background:#304d37;color:#fff;padding:13px 20px;border-radius:8px;box-shadow:0 6px 25px #20332726;font-size:12px;line-height:1.7}.toast.error{background:#734e39}dialog{width:560px;max-width:calc(100vw - 32px);padding:30px;border:1px solid #e0e8da;border-radius:15px;color:#3d4e38;box-shadow:0 18px 75px #20342720}dialog::backdrop{background:#253c3066;backdrop-filter:blur(3px)}dialog h2{font-size:20px;font-weight:550;margin:10px 0 16px}dialog p{font-size:12px;line-height:1.9;color:#7d8a76}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.icon-button{width:30px;height:30px;border-radius:6px;color:#8d9a86;padding:7px}.guide-steps{padding:0;margin:13px 0 25px;list-style:none;display:grid;gap:22px}.guide-steps li{display:flex;gap:17px}.guide-steps li>span{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border:1px solid #dfe8d8;border-radius:50%;font-size:10px;color:#7a9670;margin-top:3px}.guide-steps h3{font-size:13px;margin:5px 0 8px;font-weight:550}.guide-steps p{margin:0}.guide-note{background:#f5f7f2;border-radius:8px;padding:8px 17px}.guide-note p{font-size:10px;line-height:1.9;margin:9px 0}.dialog-done{display:flex;width:100%;margin-top:22px;font-size:12px}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:26px;font-size:12px}#confirm-dialog{width:400px}#confirm-dialog h2{margin-top:0}#manual-dialog{width:660px}#manual-content{border:1px solid var(--line);max-height:55dvh;overflow:auto;margin-top:20px}#select-manual{font-size:12px}.copy-buffer{position:fixed;left:-9999px;top:0;width:375px;background:#fff}.not-found{max-width:450px;margin:20vh auto;padding:30px;text-align:center}.not-found h1{font-size:25px}.not-found p{color:#7b8974;font-size:14px}.not-found a{font-size:13px;margin-top:20px}
@media(min-width:1600px){.workspace{grid-template-columns:260px minmax(400px,1fr) minmax(520px,1fr)}.settings-pane{padding-left:27px;padding-right:27px}.editor-body textarea{padding-left:40px;padding-right:40px;font-size:14px}.theme-mini{width:110px}.theme-card{padding:16px}.theme-list{gap:15px}}
@media(max-width:1200px){.workspace{grid-template-columns:204px minmax(290px,1fr) minmax(350px,1fr)}.settings-pane{padding:27px 16px 0}.settings-heading h1{font-size:12px}.app-header{padding:0 20px;gap:17px}.header-caption{display:none}.format-bar{padding:0 11px;gap:1px}.format-bar>button{min-width:24px}.format-bar .sample-button{font-size:9px}.pane-header{padding:0 18px}.editor-body textarea{padding:24px 22px}.preview-scroll{padding-left:16px;padding-right:16px}.preview-footer{padding:0 16px}.preview-footer>span{font-size:8px}}
@media(max-width:960px){.app-header{height:68px}.header-divider{display:none}.header-actions{gap:3px}.header-actions .quiet{padding:8px}.workspace{height:calc(100dvh - 68px);grid-template-columns:185px minmax(255px,1fr) minmax(300px,1fr)}.settings-pane{padding:23px 12px 0}.theme-card{padding:10px 12px}.theme-mini{height:37px}.theme-name{margin-top:8px}.theme-description{font-size:9px}.theme-list{gap:9px}.settings-heading h1{font-size:11px}.pane-header{padding:0 13px;height:56px}.pane-label{display:none}.pane-header h2{font-size:11px;gap:6px}.small-quiet{font-size:9px}.format-bar{padding:0 9px;flex-wrap:wrap;gap:0;min-height:47px}.format-bar .sample-button{display:none}.editor-body textarea{padding:22px 18px;font-size:12px}.editor-status{padding:0 12px;font-size:8px}.preview-footer button{display:none}.preview-meta{padding-left:18px;padding-right:18px}}
@media(max-width:760px){.app-header{height:66px;padding:0 15px;gap:8px}.brand{gap:7px}.brand img{width:28px;height:28px}.brand>span{font-size:17px}.brand small{font-size:6px;letter-spacing:1.5px;margin-top:3px}.header-actions{gap:1px}.header-actions .quiet{padding:8px 7px;font-size:0;gap:0}.header-actions .quiet svg{width:17px;height:17px}.header-actions #help-button{display:none}.header-actions .primary{padding:9px 10px;font-size:10px;gap:5px}.header-actions .primary svg{width:14px;height:14px}.mobile-nav{display:flex;height:44px;padding:5px 15px;background:#fafbf8;border-bottom:1px solid var(--line);gap:5px}.mobile-nav button{flex:1;font-size:11px;color:#9aa891;border-radius:5px}.mobile-nav [aria-pressed=true]{background:#e9f0e4;color:#4f7241;font-weight:550}.workspace{display:block;height:calc(100dvh - 110px);min-height:0}.settings-pane,.editor-pane,.preview-pane{height:100%;border-right:0}.workspace[data-view=editor] .settings-pane,.workspace[data-view=editor] .preview-pane,.workspace[data-view=preview] .settings-pane,.workspace[data-view=preview] .editor-pane,.workspace[data-view=settings] .editor-pane,.workspace[data-view=settings] .preview-pane{display:none}.settings-pane{padding:25px 24px 0}.settings-heading h1{font-size:15px}.settings-heading p{font-size:12px}.settings-tabs{margin-top:24px}.settings-tabs button{font-size:13px}.theme-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.theme-card{padding:17px 15px}.theme-mini{height:45px}.theme-name{font-size:13px}.theme-description{font-size:10px}.theme-note{font-size:10px}.settings-bottom{padding:20px 0;margin-top:25px}.settings-bottom p{font-size:11px}.settings-bottom p span{font-size:10px}.settings-bottom a{font-size:11px}.setting-field{margin-bottom:24px;font-size:12px}.colors{gap:15px}.color-chip{width:29px;height:29px}.pane-header{height:52px;padding:0 20px}.pane-header h2{font-size:12px}.pane-label{display:inline}.small-quiet{font-size:10px}.format-bar{height:46px;padding:0 17px;gap:4px}.format-bar>button{min-width:27px}.format-bar .sample-button{display:block;font-size:10px}.editor-body textarea{font-size:13px;line-height:2;padding:23px 24px}.editor-status{font-size:9px;padding:0 20px}.preview-meta{padding:16px 22px 12px}.preview-scroll{padding:0 12px 24px}.preview-footer{padding:0 20px}.preview-footer>span{font-size:9px}.preview-footer button{display:flex}.paper{max-width:100%}dialog{padding:24px}dialog h2{font-size:18px}.guide-steps{gap:18px}.guide-steps li{gap:12px}.popover{font-size:12px}.toast{bottom:16px;font-size:11px;padding:11px 15px}}
@media(max-width:380px){.app-header{padding:0 10px}.brand>span{font-size:15px}.brand img{width:25px;height:25px}.header-actions .quiet{padding:7px 5px}.header-actions .primary{font-size:9px;padding:9px 8px}.format-bar{padding:0 12px;gap:1px}.format-bar .sample-button{font-size:9px}.theme-description{font-size:9px}.settings-pane{padding-left:18px;padding-right:18px}.preview-footer>span{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.editor-pane,.preview-pane{min-height:0}.workspace{overflow:hidden}.header-actions{font-size:13px}.pane-header h2{font-size:13px}.settings-heading h1{font-size:14px}.theme-name{font-size:13px}.theme-description{font-size:11px}.editor-body textarea{font-size:14px}.settings-tabs button{font-size:13px}
.settings-links{grid-column:2;display:flex;align-items:center;justify-content:space-between}.settings-links button{font-size:10px;color:#8b9a83;padding:8px 0 0}
@media(max-width:960px) and (min-width:761px){.settings-heading h1{font-size:11px}.theme-description{font-size:9px}.editor-body textarea{font-size:13px}}
@media(max-width:760px){.settings-heading h1{font-size:15px}.header-actions .quiet{font-size:0}.pane-header h2{font-size:12px}.editor-body textarea{font-size:14px}.theme-description{font-size:10px}}
