:root{color:#111418;background:#f1f4f6;font-family:Segoe UI Variable,Microsoft YaHei UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--page: oklch(.965 .004 250);--surface: oklch(.995 0 0);--surface-subtle: oklch(.975 .004 250);--ink: oklch(.19 .01 255);--muted: oklch(.43 .012 255);--quiet: oklch(.55 .01 255);--line: oklch(.88 .008 250);--line-strong: oklch(.76 .01 250);--proof: oklch(.19 .018 250);--proof-line: oklch(.29 .018 250);--proof-text: oklch(.94 .005 250);--accent: oklch(.54 .185 32);--accent-hover: oklch(.48 .17 32);--accent-soft: oklch(.955 .025 32);--danger: oklch(.48 .18 26);--focus-ring: 0 0 0 3px oklch(.61 .19 32 / .17);--radius: 7px;--z-sticky: 20}*{box-sizing:border-box}html,body{width:100%;min-width:320px;min-height:100%;margin:0;background:var(--page)}body{color:var(--ink)}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait}.app-shell{width:min(1720px,100%);min-height:100dvh;margin:0 auto;overflow:hidden;background:var(--surface)}.app-bar{display:flex;height:48px;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;border-bottom:1px solid var(--line);background:var(--surface)}.app-bar h1{margin:0;font-size:17px;font-weight:680;letter-spacing:-.015em}.app-meta{display:flex;align-items:center;gap:14px}.offline-readiness{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}.offline-readiness:before{width:6px;height:6px;border-radius:50%;background:#9aa1a8;content:""}.offline-readiness.ready{color:#17623b}.offline-readiness.ready:before{background:#2f9f62}.offline-readiness.error{color:#a52818}.offline-readiness.error:before{background:#bd2d1b}.output-spec{color:var(--muted);font-size:12px}.output-spec strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-variant-numeric:tabular-nums;font-weight:600}#editor-root{min-height:calc(100dvh - 48px)}.editor-shell{display:grid;height:calc(100dvh - 48px);min-height:560px;grid-template-rows:52px minmax(0,1fr);background:var(--surface)}.command-bar{display:flex;align-items:stretch;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.template-switcher{display:flex;min-width:0;align-items:stretch;padding-left:8px}.template-tab{position:relative;min-width:112px;padding:0 16px;color:var(--muted);border:0;outline:none;background:transparent;font-size:14px;font-weight:560;cursor:pointer;transition:color .17s ease-out,background-color .17s ease-out}.template-tab:after{position:absolute;right:16px;bottom:0;left:16px;height:2px;content:"";background:transparent;transition:background-color .17s ease-out}.template-tab:hover{color:var(--ink);background:var(--surface-subtle)}.template-tab:focus-visible{box-shadow:inset var(--focus-ring)}.template-tab.active{color:var(--ink)}.template-tab.active:after{background:var(--accent)}.desktop-save{align-self:center;min-width:104px;min-height:36px;margin-right:12px}.workspace-switcher{display:none}.workspace{display:grid;min-width:0;min-height:0;grid-template-columns:clamp(360px,27vw,400px) minmax(0,1fr)}.edit-surface{display:flex;min-width:0;min-height:0;flex-direction:column;border-right:1px solid var(--line);background:var(--surface)}.surface-head,.proof-head{display:flex;min-height:48px;flex:0 0 48px;align-items:center;justify-content:space-between;gap:16px;padding:0 20px}.surface-head{border-bottom:1px solid var(--line)}.surface-head h2,.proof-head h2{margin:0;font-size:14px;font-weight:650}.controls-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 20px}.control-group{margin:0;padding:18px 0 20px;border-bottom:1px solid var(--line)}.control-group:last-child{border-bottom:0}.control-group h3{margin:0 0 12px;color:var(--ink);font-size:14px;font-weight:640}.group-hint{margin:-6px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-grid>:only-child{grid-column:1 / -1}.field-control{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.field-control input{width:100%;height:42px;min-width:0;padding:0 11px;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);outline:none;background:var(--surface);font-size:14px;transition:border-color .16s ease-out,box-shadow .16s ease-out,background-color .16s ease-out}.field-control input:hover{border-color:var(--quiet)}.field-control input:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.field-control input:disabled{color:var(--quiet);border-color:var(--line);background:var(--surface-subtle)}.file-control{display:flex;min-height:42px;align-items:center;justify-content:center;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);outline:none;background:var(--surface);font-size:14px;cursor:pointer;transition:border-color .16s ease-out,box-shadow .16s ease-out,background-color .16s ease-out}.file-control:hover{border-color:var(--accent);background:var(--accent-soft)}.file-control:focus-within{border-color:var(--accent);box-shadow:var(--focus-ring)}.file-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.file-control span{max-width:calc(100% - 22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-rows{display:flex;flex-direction:column}.account-row-head,.account-row{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(96px,.72fr);gap:10px}.account-row-head{padding:0 1px 8px;color:var(--muted);font-size:12px}.account-row{padding:6px 0}.account-row+.account-row{border-top:1px solid var(--line)}.edit-footer{display:flex;min-height:54px;flex:0 0 auto;align-items:center;gap:12px;padding:8px 12px 8px 20px;border-top:1px solid var(--line);background:var(--surface-subtle)}.editor-status,.mobile-status{min-width:0;min-height:18px;flex:1;margin:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.editor-status.error,.mobile-status.error{color:var(--danger)}.proof-surface{display:flex;min-width:0;min-height:0;flex-direction:column;background:var(--proof)}.proof-head{color:var(--proof-text);border-bottom:1px solid var(--proof-line)}.proof-head span{color:#a9afb4;font-size:12px}.mobile-preview-note{display:none}.canvas-frame{display:flex;min-width:0;min-height:0;flex:1;align-items:center;justify-content:center;overflow:auto;padding:20px;overscroll-behavior:contain;background:var(--proof)}.render-canvas,.preview-image{display:block;width:auto;max-width:min(100%,630px);height:auto;max-height:calc(100dvh - 188px);border-radius:8px;background:#fff;box-shadow:0 4px 8px #0102035c;object-fit:contain}.preview-image[hidden],.render-canvas[hidden],.bottom-actions{display:none}.primary-button,.secondary-button{min-height:40px;padding:0 16px;border-radius:var(--radius);font-size:14px;font-weight:640;cursor:pointer;transition:color .16s ease-out,border-color .16s ease-out,background-color .16s ease-out}.primary-button:focus-visible,.secondary-button:focus-visible{outline:none;box-shadow:var(--focus-ring)}.secondary-button{color:var(--ink);border:1px solid var(--line-strong);background:var(--surface)}.secondary-button:hover{border-color:var(--quiet);background:var(--surface-subtle)}.primary-button{color:#fff;border:1px solid var(--accent);background:var(--accent)}.primary-button:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.primary-button:disabled{color:#dedede;border-color:var(--quiet);background:var(--quiet)}.primary-button:active,.secondary-button:active{filter:brightness(.96)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:720px),(max-width:932px)and (max-height:500px)and (pointer:coarse){.app-shell{height:100dvh}.app-bar{height:44px;padding:0 14px}.app-bar h1{font-size:16px}.output-spec strong{font-size:11px}#editor-root{min-height:calc(100dvh - 44px)}.editor-shell{height:calc(100dvh - 44px);min-height:0;grid-template-rows:48px 42px minmax(0,1fr) auto}.command-bar{min-width:0}.template-switcher{width:100%;padding:0}.template-tab{min-width:0;flex:1;padding:0 10px;font-size:13px}.template-tab:after{right:24px;left:24px}.desktop-save{display:none}.workspace-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line);background:var(--surface-subtle)}.workspace-switcher button{color:var(--muted);border:0;border-radius:0;outline:none;background:transparent;font-size:13px;font-weight:600;cursor:pointer;transition:color .17s ease-out,background-color .17s ease-out}.workspace-switcher button:hover{color:var(--ink)}.workspace-switcher button:focus-visible{box-shadow:inset var(--focus-ring)}.workspace-switcher button[aria-pressed=true]{color:var(--accent-hover);background:var(--surface)}.workspace{display:block;min-height:0;overflow:hidden}.edit-surface,.proof-surface{width:100%;height:100%;border-right:0}.editor-shell[data-mobile-view=edit] .proof-surface,.editor-shell[data-mobile-view=preview] .edit-surface,.surface-head{display:none}.controls-scroll{padding:0 14px 18px;-webkit-overflow-scrolling:touch}.control-group{padding:15px 0 17px}.field-control input,.file-control{height:44px;min-height:44px}.account-row-head,.account-row{grid-template-columns:minmax(0,1.42fr) minmax(88px,.68fr);gap:8px}.account-row{padding:5px 0}.edit-footer{display:none}.proof-head{min-height:40px;flex-basis:40px;padding:0 14px}.desktop-preview-note{display:none}.mobile-preview-note{display:inline}.canvas-frame{height:calc(100% - 40px);flex:0 0 auto;overflow:hidden;padding:12px;-webkit-overflow-scrolling:touch}.render-canvas,.preview-image{max-width:100%;max-height:calc(100% - 24px);border-radius:6px;box-shadow:0 3px 7px #01020361}.bottom-actions{position:relative;z-index:var(--z-sticky);display:grid;min-height:calc(60px + env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}.bottom-actions button{min-height:44px}}@media(max-width:420px){.output-spec{display:none}.app-meta{gap:0}.account-row .field-control{display:block}.bottom-actions{grid-template-columns:minmax(0,1fr) 72px 104px}}@media(max-width:360px){.app-bar{padding:0 10px}.app-bar h1{font-size:15px}.controls-scroll{padding-right:10px;padding-left:10px}.bottom-actions{grid-template-columns:1fr 1.2fr;padding-right:10px;padding-left:10px}.mobile-status{grid-column:1 / -1}}@media(max-width:932px)and (max-height:500px)and (orientation:landscape)and (pointer:coarse){.app-bar{height:40px}#editor-root,.editor-shell{height:calc(100dvh - 40px);min-height:0}.editor-shell{grid-template-rows:42px 38px minmax(0,1fr) auto}.bottom-actions{min-height:52px;padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}.bottom-actions button{min-height:40px}.proof-head{display:none}.canvas-frame{height:100%}.render-canvas,.preview-image{max-height:calc(100% - 24px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-latin-400-normal-BqEyEoaF.woff2) format("woff2")}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(./roboto-latin-500-normal-7RbcRiD8.woff2) format("woff2")}@font-face{font-family:Noto Sans SC;font-style:normal;font-display:swap;font-weight:400;src:url(./noto-sans-sc-chinese-simplified-400-normal-Ba7eOkfT.woff2) format("woff2")}
