:root{color:#1f2329;background:#eef1f4;font-family:Inter,Microsoft YaHei,Segoe UI,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;overflow:hidden}body{min-width:320px;margin:0;background:#eef1f4}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:grid;height:100vh;min-height:100vh;overflow:hidden;padding:0 20px;grid-template-rows:48px minmax(0,1fr) 26px;background:#eef1f4}.app-header,.brand,.privacy-note,.editor-toolbar,.preview-toolbar,.preview-tools,.preview-actions,.status-bar{display:flex;align-items:center}.app-header{gap:30px;padding:0 8px}.brand{gap:14px}.brand-mark{width:30px;height:30px;flex:0 0 auto}.brand-mark img{display:block;width:100%;height:100%}.brand h1,.privacy-note,.editor-toolbar h2,.preview-toolbar h2{margin:0}.brand h1{color:#141414;font-size:21px;font-weight:700;letter-spacing:-.02em}.privacy-note{gap:8px;color:#707781;font-size:14px;white-space:nowrap}.privacy-note svg,.theme-toggle svg,.primary-button svg,.toolbar-button svg,.drop-zone svg,.status-dot svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}svg.fill-icon{fill:currentColor;stroke:none}.privacy-note svg{width:18px;height:18px;flex:0 0 auto}.privacy-note a{color:inherit;text-decoration:none}.privacy-note .author-name{color:#56616d;font-weight:600}.author-credit{display:flex;align-items:center;gap:5px}.privacy-note .credit-separator{width:8px;height:8px;fill:currentColor;stroke:none}.privacy-note a:hover,.privacy-note a:focus-visible{color:#1769dd;text-decoration:underline}.repository-link{display:flex;align-items:center;gap:4px}.privacy-note .repository-mark{width:14px;height:14px;fill:currentColor;stroke:none}.local-data-badge{display:flex;align-items:center;gap:4px;margin-left:22px;color:#087f44}.privacy-note .shield-lock{width:16px;height:16px;transform:translateY(1px);fill:currentColor;stroke:none}.theme-toggle{display:grid;width:36px;height:36px;margin-left:auto;place-items:center;color:#65707d;background:transparent;border:0;border-radius:7px}.theme-toggle:hover,.theme-toggle:focus-visible{color:#1769dd;background:#f1f5fb}.theme-toggle svg{width:22px;height:22px}.workspace{display:grid;min-height:0;gap:18px;padding:0;grid-template-columns:minmax(470px,585px) minmax(0,1fr)}.editor-panel,.preview-panel{min-height:0;background:#fff;border:1px solid #d9dde2;border-radius:8px}.editor-panel{display:grid;min-width:0;overflow:hidden;grid-template-rows:44px minmax(0,1fr)}.editor-content{display:flex;min-height:0;overflow:hidden;flex-direction:column;padding:10px 13px 14px}.source-pane{min-height:0;flex:1 1 auto}.editor-shell{display:grid;min-width:0;height:100%;min-height:0;overflow:hidden;grid-template-columns:37px minmax(0,1fr);background:#fff;border:1px solid #d9dde3;border-radius:6px}.line-numbers{min-height:100%;overflow:hidden;margin:0;padding:8px 8px 8px 0;color:#949aa2;text-align:right;background:#f7f8fa;border-right:1px solid #eceef1;font-family:Consolas,SFMono-Regular,monospace;font-size:14px;line-height:1.48;-webkit-user-select:none;user-select:none}textarea{display:block;min-width:0;width:100%;height:100%;resize:none;padding:8px 10px;color:#252a31;background:#fff;border:0;font-family:Consolas,SFMono-Regular,monospace;font-size:14px;line-height:1.48;outline:none;tab-size:2;white-space:pre}.editor-shell:focus-within,select:focus,input:focus{border-color:#7baaf2;box-shadow:0 0 0 3px #1269e81a}.upload-pane{min-height:auto;flex:0 0 auto;margin-top:15px}.drop-zone{display:flex;min-height:72px;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:13px 16px;color:#5e6875;text-align:center;background:#fff;border:1px dashed #c8ced6;border-radius:6px;transition:.16s ease}.drop-zone:hover,.drop-zone.is-dragging{color:#0c64d9;background:#f8fbff;border-color:#7baaf2}.drop-zone svg{width:20px;height:20px}.drop-zone span{font-size:14px}.drop-zone strong{color:#1769dd;font-weight:600}.drop-zone small{flex-basis:100%;margin-top:-4px;color:#7b8490;font-size:13px}#markdown-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.settings-section{flex:0 0 auto;margin-top:13px}.settings-grid{display:grid;gap:17px;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid label,.custom-title-field{display:grid;gap:6px}.select-control{position:relative;display:block;font-weight:400}.select-arrow{position:absolute;top:50%;right:9px;width:16px;height:16px;color:#5e6875;pointer-events:none;transform:translateY(-50%)}.custom-select-trigger{position:relative;display:flex;width:100%;height:39px;align-items:center;padding:0 34px 0 11px;color:#303640;text-align:left;background:#fff;border:1px solid #d4d9df;border-radius:6px;font-size:14px;font-weight:350;outline:none}.custom-select-trigger:hover{border-color:#b9c1cc}.custom-select-trigger:focus-visible,.custom-select-trigger[aria-expanded=true]{border-color:#7baaf2;box-shadow:0 0 0 3px #1269e81a}.custom-select-value{overflow:hidden;font-weight:350;text-overflow:ellipsis;white-space:nowrap}.custom-select-menu{position:fixed;z-index:20;display:grid;gap:2px;overflow-y:auto;padding:5px;background:#fff;border:1px solid #d9dee6;border-radius:10px;box-shadow:0 10px 24px #31394424,0 2px 6px #31394414}.custom-select-option{width:100%;min-height:32px;padding:7px 9px;color:#303640;text-align:left;background:transparent;border:0;border-radius:6px;font-size:13px;font-weight:400}.custom-select-option:hover,.custom-select-option.is-active{background:#f2f6fc}.custom-select-option.is-selected{color:#1269e8}.settings-grid span,.custom-title-field span{color:#252a31;font-size:14px;font-weight:600}.settings-grid .custom-select-value{font-weight:350}select,input[type=text]{width:100%;height:39px;padding:0 11px;color:#303640;background:#fff;border:1px solid #d4d9df;border-radius:6px;font-size:14px;outline:none}select[hidden]{display:none}.custom-title-field{margin-top:12px}.primary-button{display:flex;min-height:48px;flex:0 0 auto;align-items:center;justify-content:center;gap:10px;margin-top:14px;padding:12px 16px;color:#fff;background:#1269e8;border:1px solid #1269e8;border-radius:6px;box-shadow:0 5px 12px #1269e82e;font-size:17px;font-weight:700;transition:.16s ease}.primary-button:hover,.primary-button:focus-visible{background:#075ccf;border-color:#075ccf;box-shadow:0 6px 14px #075ccf3d}.primary-button svg{width:19px;height:19px}.preview-panel{display:grid;overflow:hidden;grid-template-rows:44px minmax(0,1fr);background:#f7f7f7}.editor-toolbar,.preview-toolbar{justify-content:space-between;gap:6px;padding:5px 6px;background:#fff;border-bottom:1px solid #dfe2e6}.preview-toolbar{container-type:inline-size}.editor-toolbar h2,.preview-toolbar h2{flex:0 0 auto;color:#1d2129;font-size:17px;font-weight:700}.editor-toolbar h2,.preview-toolbar h2{margin-left:11px}.preview-actions{min-width:0;flex:0 1 auto;flex-wrap:nowrap;justify-content:flex-end;gap:6px}.preview-tools{min-width:0;margin-left:auto;justify-content:flex-end;gap:15px}.preview-appearance-control{position:relative;z-index:4;width:124px;flex:0 0 auto}.preview-appearance-trigger{display:flex;width:100%;min-height:32px;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px 5px 11px;color:#46515f;white-space:nowrap;background:#eef2f6;border:1px solid transparent;border-radius:6px;font-size:13px;font-weight:600}.preview-appearance-trigger:hover,.preview-appearance-trigger:focus-visible,.preview-appearance-trigger[aria-expanded=true]{color:#0c64d9;background:#e2ecf9}.preview-appearance-arrows{display:block;width:16px;height:16px;flex:0 0 auto}.preview-appearance-menu{position:absolute;top:calc(100% + 6px);left:0;display:grid;width:100%;gap:3px;padding:5px;background:#fff;border:1px solid #d9dee6;border-radius:10px;box-shadow:0 10px 24px #31394424,0 2px 6px #31394414}.preview-appearance-option{display:flex;width:100%;min-height:32px;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;color:#303640;text-align:left;white-space:nowrap;background:transparent;border:0;border-radius:6px;font-size:13px;font-weight:500}.preview-appearance-option:hover,.preview-appearance-option:focus-visible,.preview-appearance-option.is-selected{background:#f2f6fc}.preview-appearance-check{display:none;width:15px;height:15px;fill:currentColor}.preview-appearance-option.is-selected .preview-appearance-check{display:block}.toolbar-button{display:flex;min-height:32px;align-items:center;flex:0 0 auto;gap:9px;padding:6px 14px;color:#46515f;white-space:nowrap;background:#eef2f6;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:600}#print-button{padding-inline:17px}.toolbar-button:hover,.toolbar-button:focus-visible{color:#0c64d9;background:#e2ecf9}.toolbar-button.is-primary{color:#0c64d9;background:#e4efff}.toolbar-button.is-primary:hover{background:#d8e8ff}.toolbar-button svg{width:18px;height:18px}.preview-stage{min-height:0;overflow:auto;padding:26px 22px;background:#f4f4f4}#preview-frame{display:block;width:min(100%,685px);height:798px;min-height:798px;margin:0 auto;background:transparent;border:0;box-shadow:0 2px 11px #343a4321;transition:filter .16s ease}#preview-frame.is-dimmed{filter:brightness(.72)}.status-bar{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;color:#707781;font-size:13px}.status-summary{display:flex;min-width:0;align-items:center;gap:9px}.status-dot{display:grid;width:17px;height:17px;place-items:center;color:#fff;background:#27945c;border-radius:50%}.status-dot.is-error{background:#cf4f4f}.status-dot svg{width:12px;height:12px;stroke-width:2.5}.character-count{justify-self:end}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}html[data-color-mode=dark]{color:#d8dee6;background:#171b20;color-scheme:dark}html[data-color-mode=dark] body,html[data-color-mode=dark] .app-shell{background:#171b20}html[data-color-mode=dark] .brand h1{color:#f1f4f7}html[data-color-mode=dark] .privacy-note,html[data-color-mode=dark] .status-bar{color:#a0aab6}html[data-color-mode=dark] .privacy-note .author-name{color:#bdc7d2}html[data-color-mode=dark] .local-data-badge{color:#67c98f}html[data-color-mode=dark] .theme-toggle{color:#aeb8c3}html[data-color-mode=dark] .theme-toggle:hover,html[data-color-mode=dark] .theme-toggle:focus-visible{color:#8dbdff;background:#252d36}html[data-color-mode=dark] .editor-panel,html[data-color-mode=dark] .preview-panel{background:#20262d;border-color:#38414a}html[data-color-mode=dark] .editor-shell{background:#1d232a;border-color:#414b56}html[data-color-mode=dark] .line-numbers{color:#778390;background:#191f25;border-right-color:#343d46}html[data-color-mode=dark] textarea,html[data-color-mode=dark] input[type=text]{color:#dce3ea;background:#1d232a;border-color:#414b56}html[data-color-mode=dark] .drop-zone{color:#aeb8c3;background:#1d232a;border-color:#56616e}html[data-color-mode=dark] .drop-zone:hover,html[data-color-mode=dark] .drop-zone.is-dragging{color:#8dbdff;background:#222c37;border-color:#5793dc}html[data-color-mode=dark] .drop-zone strong{color:#8dbdff}html[data-color-mode=dark] .drop-zone small{color:#8f9aa6}html[data-color-mode=dark] .settings-grid span,html[data-color-mode=dark] .custom-title-field span{color:#d5dce3}html[data-color-mode=dark] .select-arrow{color:#9aa6b2}html[data-color-mode=dark] .custom-select-trigger,html[data-color-mode=dark] .preview-appearance-trigger,html[data-color-mode=dark] .toolbar-button{color:#c7d0d9;background:#2b333c;border-color:transparent}html[data-color-mode=dark] .custom-select-trigger:hover{border-color:#5b6876}html[data-color-mode=dark] .custom-select-trigger:focus-visible,html[data-color-mode=dark] .custom-select-trigger[aria-expanded=true],html[data-color-mode=dark] .preview-appearance-trigger:hover,html[data-color-mode=dark] .preview-appearance-trigger:focus-visible,html[data-color-mode=dark] .preview-appearance-trigger[aria-expanded=true],html[data-color-mode=dark] .toolbar-button:hover,html[data-color-mode=dark] .toolbar-button:focus-visible{color:#8dbdff;background:#354250;border-color:#4f7097;box-shadow:none}html[data-color-mode=dark] .custom-select-menu,html[data-color-mode=dark] .preview-appearance-menu{background:#20262d;border-color:#414b56;box-shadow:0 10px 24px #00000047,0 2px 6px #0003}html[data-color-mode=dark] .custom-select-option,html[data-color-mode=dark] .preview-appearance-option{color:#d5dce3}html[data-color-mode=dark] .custom-select-option:hover,html[data-color-mode=dark] .custom-select-option.is-active,html[data-color-mode=dark] .preview-appearance-option:hover,html[data-color-mode=dark] .preview-appearance-option:focus-visible,html[data-color-mode=dark] .preview-appearance-option.is-selected{background:#303943}html[data-color-mode=dark] .custom-select-option.is-selected,html[data-color-mode=dark] .preview-appearance-option.is-selected{color:#8dbdff}html[data-color-mode=dark] .editor-toolbar,html[data-color-mode=dark] .preview-toolbar{background:#20262d;border-bottom-color:#38414a}html[data-color-mode=dark] .editor-toolbar h2,html[data-color-mode=dark] .preview-toolbar h2{color:#edf2f6}html[data-color-mode=dark] .toolbar-button.is-primary{color:#a8cdff;background:#293e59}html[data-color-mode=dark] .toolbar-button.is-primary:hover{background:#324c6c}html[data-color-mode=dark] .primary-button{color:#f5f9ff;background:#2878e1;border-color:#3f8cf0;box-shadow:0 5px 14px #0000003d}html[data-color-mode=dark] .primary-button:hover,html[data-color-mode=dark] .primary-button:focus-visible{background:#3285ef;border-color:#68a6f7;box-shadow:0 6px 16px #0000004d}html[data-color-mode=dark] .preview-stage{background:#171b20}html[data-color-mode=dark] #preview-frame{box-shadow:0 3px 15px #00000052}html[data-color-mode=dark] .privacy-note a:hover,html[data-color-mode=dark] .privacy-note a:focus-visible{color:#b4d5ff}@media(max-width:1120px){.workspace{grid-template-columns:minmax(390px,470px) minmax(0,1fr)}}@media(max-width:780px){html,body{height:auto;overflow:visible}.app-shell{display:block;height:auto;min-height:100vh;overflow:visible;padding:0}.app-header{display:grid;min-height:56px;padding:6px 16px;column-gap:10px;row-gap:0;grid-template-columns:44px minmax(0,1fr) 36px;grid-template-rows:repeat(2,minmax(0,1fr))}.brand{display:contents}.brand h1{align-self:end;grid-column:2;grid-row:1;font-size:18px;line-height:1.15;transform:translateY(2px)}.brand-mark{width:44px;height:44px;align-self:center;grid-column:1;grid-row:1 / -1;transform:translateY(2px)}.privacy-note{width:auto;min-height:0;margin:0;padding:0;align-self:start;gap:6px;grid-column:2;grid-row:2;font-size:12px;line-height:1.2;transform:translateY(7px)}.local-data-badge{display:none}.repository-link{gap:3px}.privacy-note .repository-mark{width:12px;height:12px}.theme-toggle{width:36px;height:36px;align-self:center;grid-column:3;grid-row:1 / -1;justify-self:end;margin-left:0;transform:translateY(2px)}.theme-toggle svg{width:24px;height:24px}.workspace{display:block;padding:4px 12px 12px}.editor-panel{overflow:hidden;grid-template-rows:auto auto}.editor-content{overflow:visible;padding:8px 10px 13px}.editor-toolbar{padding:5px 7px}.editor-toolbar h2{margin-left:6px;font-size:15px}.source-pane{flex:none}.editor-shell{height:330px}textarea,.line-numbers,input[type=text]{font-size:16px}.drop-zone{min-height:92px}.drop-zone span{max-width:100%;line-height:1.6;overflow-wrap:anywhere}.settings-grid{grid-template-columns:1fr;gap:10px}.settings-grid span,.custom-title-field span,select,.custom-select-trigger{font-size:13px}input[type=text]{font-size:16px}.primary-button{min-height:48px;font-size:15px}.preview-panel{min-height:760px;margin-top:12px;grid-template-rows:auto minmax(0,1fr)}.preview-toolbar{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:7px 10px}.preview-toolbar h2{grid-column:1;grid-row:1;margin-left:3px}.preview-actions{display:grid;width:100%;margin-left:0;gap:7px;grid-column:1 / -1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))}.preview-tools{display:contents}.preview-appearance-control{grid-column:2;grid-row:1;align-self:center}.toolbar-button:first-child{grid-column:1 / -1}.toolbar-button{justify-content:center;padding:7px 8px;font-size:12px}#print-button{padding-inline:11px}.preview-stage{padding:12px 10px 16px}#preview-frame{height:100%;min-height:680px}.status-bar{min-height:32px;margin:0 12px 4px;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;font-size:12px}.status-summary{grid-column:1;grid-row:1;overflow:hidden;white-space:nowrap}#status-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.character-count{grid-column:2;grid-row:1;white-space:nowrap}}@media(min-width:781px)and (max-height:680px){.app-shell{grid-template-rows:46px minmax(0,1fr) 24px}.app-header{padding:0 4px}.brand h1{font-size:18px}.brand-mark{width:23px;height:23px;font-size:16px}.privacy-note{font-size:12px}.editor-panel{grid-template-rows:36px minmax(0,1fr)}.editor-content{padding:8px 10px 9px}.upload-pane{margin-top:8px}.drop-zone{min-height:48px;padding:6px 10px}.drop-zone small{font-size:11px}.settings-section{margin-top:8px}.settings-grid span,.custom-title-field span{font-size:12px}select,input[type=text],.custom-select-trigger{height:31px;font-size:12px}.custom-select-trigger{padding:0 29px 0 9px}.select-arrow{right:7px;width:14px;height:14px}.custom-select-menu{gap:1px;padding:4px;border-radius:8px;box-shadow:0 7px 18px #31394421,0 2px 5px #31394412}.custom-select-option{min-height:27px;padding:5px 7px;border-radius:5px;font-size:12px}.preview-toolbar{gap:4px;padding:3px 4px}.preview-panel{grid-template-rows:36px minmax(0,1fr)}.editor-toolbar h2,.preview-toolbar h2{margin-left:8px;font-size:15px}.preview-actions{gap:4px}.preview-tools{gap:10px}.preview-appearance-trigger{min-height:30px;padding:5px 6px 5px 9px;font-size:12px}.preview-appearance-menu{top:calc(100% + 4px);gap:1px;padding:4px;border-radius:8px}.preview-appearance-option{min-height:27px;padding:5px 7px;border-radius:5px;font-size:12px}.toolbar-button{min-height:28px;gap:6px;padding:4px 10px;font-size:12px}.toolbar-button svg{width:15px;height:15px}.preview-stage{padding:14px 16px}.primary-button{min-height:38px;margin-top:8px;padding:7px 12px;font-size:14px}}@media(min-width:781px){@container (max-width: 620px){.preview-toolbar,.preview-tools,.preview-actions{gap:4px}.preview-tools{gap:10px}.toolbar-button{gap:6px;padding-inline:10px}}@container (max-width: 540px){.toolbar-button{justify-content:center;gap:0;padding-inline:8px}#open-button .toolbar-button-label,#download-button .toolbar-button-label{display:none}}}
