:root{--bg:#e8f5f1;--surface:#fff;--surface-soft:#f4faf8;--text:#18352f;--text-muted:#49655f;--border:#d7e8e3;--border-strong:#adcfc5;--accent:#08796a;--accent-soft:#d9f3eb;--workspace-glow:#cbece0;--surface-glow:#edf9f4;--danger:#c0392b;--accent-hover:#075e54;--focus:var(--accent);--radius:12px;--radius-sm:8px;--shadow:0 1px 3px #10182814, 0 8px 24px #1018280f;--shadow-sheet:0 2px 6px #1018281f, 0 16px 40px #1018281a;--gap:12px;--font:system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.interface-style{display:contents}.interface-style[data-interface-style=violet]{--bg:#edebfa;--surface-soft:#f8f7fe;--text:#292443;--text-muted:#635e79;--border:#e3def4;--border-strong:#c8bee8;--accent:#6541bd;--accent-hover:#513198;--accent-soft:#eee6fc;--workspace-glow:#dfd6f9;--surface-glow:#f4efff}.interface-style[data-interface-style=warm]{--bg:#f7eee3;--surface:#fffdfa;--surface-soft:#fcf6ed;--text:#423026;--text-muted:#745b4b;--border:#ecddcd;--border-strong:#d8bda7;--accent:#a34d1a;--accent-hover:#863c13;--accent-soft:#fae6d0;--workspace-glow:#f3ddc2;--surface-glow:#fdf2e4;--radius:14px}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%}body{font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;margin:0;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}h1,h2,h3{margin:0;font-weight:600}.app-shell{flex-direction:column;min-height:100vh;display:flex}.app-header{z-index:20;justify-content:space-between;align-items:center;gap:var(--gap);background:linear-gradient(110deg, var(--surface-glow), var(--surface) 46%);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);min-height:60px;padding:10px 20px;display:flex;position:sticky;top:0}.app-brand{align-items:center;gap:10px;min-width:0;display:flex}.app-brand-mark{background:linear-gradient(145deg, var(--accent), var(--accent-hover));width:34px;height:34px;box-shadow:0 3px 9px color-mix(in srgb, var(--accent) 30%, transparent);color:#fff;border-radius:10px;flex:none;place-items:center;display:grid}.app-brand-name{letter-spacing:.02em;white-space:nowrap;font-size:19px;font-weight:700}.app-brand-tagline{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.app-header-actions{align-items:center;gap:8px;display:flex}.ui-icon{vertical-align:middle;flex:none}.header-link .ui-icon,.interface-style-picker .ui-icon{color:var(--accent)}.interface-style-picker{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-soft);align-items:center;gap:5px;padding-inline:8px 4px;display:inline-flex}.interface-style-picker select{cursor:pointer;background:0 0;border:0;min-height:34px}.lang-switch{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius);padding:2px;display:inline-flex}.lang-switch .btn{background:0 0;border:0}.lang-switch .btn[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 1px 2px #1018281a}.app-main{flex:1;grid-template-columns:clamp(270px,25vw,360px) minmax(0,1fr);align-items:start;min-height:0;display:grid}.app-footer{color:var(--text-muted);background:var(--surface);border-top:1px solid var(--border);flex-wrap:wrap;gap:6px 24px;padding:12px 20px;font-size:12px;display:flex}.btn{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:6px 12px;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-soft);border-color:var(--accent)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-quiet{background:0 0;border-color:#0000}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover);color:#fff}.control-panel{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;height:calc(100vh - 60px);display:flex;position:sticky;top:60px}.control-panel-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 16px;display:none}.control-panel-title{font-size:15px}.control-panel-body{scrollbar-gutter:stable;flex:1;padding:12px 14px 32px;overflow-y:auto}.panel-backdrop{display:none}.ctl-section{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-soft);margin-bottom:10px;overflow:hidden}.ctl-section-summary{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:8px 12px;list-style:none;display:flex}.ctl-section-summary::-webkit-details-marker{display:none}.ctl-section-summary:before{content:"▸";color:var(--text-muted);font-size:11px;transition:transform .15s}.ctl-section[open]>.ctl-section-summary:before{transform:rotate(90deg)}.ctl-section-title{flex:1;align-items:center;gap:7px;font-size:13px;font-weight:600;display:inline-flex}.ctl-section-title .ui-icon{color:var(--accent)}#section-size .ui-icon,#section-line .ui-icon{color:#6541bd}#section-theme .ui-icon{color:#ac4164}.ctl-section-actions{gap:6px;display:inline-flex}.ctl-section-body{border-top:1px solid var(--border);padding:4px 12px 12px}.ctl-field{flex-direction:column;gap:4px;margin:10px 0;display:flex}.ctl-label{color:var(--text-muted);font-size:12px}.ctl-control{align-items:center;gap:8px;display:flex}.ctl-input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);flex:1;min-width:0;min-height:34px;padding:5px 8px}.ctl-input[type=range]{accent-color:var(--accent);border:0;padding:0}.ctl-unit{color:var(--text-muted);min-width:20px;font-size:12px}.ctl-hint{color:var(--text-muted);margin:0;font-size:11px;line-height:1.45}.ctl-group{border:1px solid var(--border);border-radius:var(--radius-sm);margin:10px 0;padding:8px 10px}.ctl-group>legend{color:var(--text-muted);padding:0 6px;font-size:12px}.ctl-check{cursor:pointer;align-items:center;gap:8px;min-height:36px;display:flex}.ctl-check input{width:16px;height:16px;accent-color:var(--accent)}.ctl-swatches{flex-wrap:wrap;gap:6px;display:flex}.ctl-swatch{border:1px solid var(--border-strong);cursor:pointer;border-radius:8px;flex:0 0 30px;width:30px;height:30px;padding:0}.ctl-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.ctl-color-field .ctl-swatches{margin-block-start:4px}.ctl-color-value>input[type=color]{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;width:38px;height:34px;padding:2px}.paper-group-title{letter-spacing:.04em;color:var(--text-muted);text-transform:uppercase;margin:12px 0 6px;font-size:11px;font-weight:600}.paper-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.paper-option{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;text-align:left;min-height:36px;padding:6px 10px;font-size:12px;line-height:1.3}.paper-option:hover{border-color:var(--accent)}.paper-option[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.theme-option{flex-direction:column;align-items:stretch;gap:5px;padding:6px;font-size:11px;display:flex}.theme-option[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.theme-chips{border-radius:3px;height:14px;display:flex;overflow:hidden}.theme-chips span{flex:1}.segmented{border:1px solid var(--border-strong);border-radius:var(--radius-sm);display:inline-flex;overflow:hidden}.segmented button{border:0;border-right:1px solid var(--border-strong);background:var(--surface);cursor:pointer;min-height:34px;padding:5px 12px;font-size:12px}.segmented button:last-child{border-right:0}.segmented button[aria-pressed=true]{background:var(--accent);color:#fff}.margins-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;display:grid}.callout{border-radius:var(--radius-sm);color:#6b5326;background:#fffbf0;border:1px solid #e6d8b8;flex-direction:column;gap:8px;margin-bottom:10px;padding:10px;font-size:12px;display:flex}.image-thumb{border:1px solid var(--border);border-radius:var(--radius-sm);object-fit:contain;max-width:100%;max-height:64px}.ctl-error{color:var(--danger);margin:6px 0 0;font-size:12px}@media (width<=767px){.app-main{grid-template-columns:minmax(0,1fr)}.control-panel{z-index:30;visibility:hidden;width:min(360px,88vw);height:calc(100dvh - 60px);box-shadow:var(--shadow);transition:transform .2s,visibility .2s;position:fixed;top:60px;left:0;transform:translate(-102%)}.control-panel[data-open=true]{visibility:visible;transform:translate(0)}.control-panel-head{display:flex}.panel-backdrop{z-index:25;background:#10182859;display:block;position:fixed;inset:60px 0 0}.panel-toggle{display:inline-flex}.app-brand-tagline{display:none}}@media (width>=768px){.panel-toggle{display:none}}.preview-region{background:radial-gradient(ellipse at 6% 0%, var(--workspace-glow), transparent 55%), radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) .65px, transparent .8px) 0 0 / 18px 18px, linear-gradient(150deg, var(--surface-glow), var(--bg) 55%, var(--surface-soft));min-width:0;min-height:calc(100vh - 60px);padding:16px clamp(12px,2vw,28px) 32px}.preview-pane{min-width:0}.preview-tools{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.preview-size{border:1px solid var(--border);color:var(--text-muted);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:6px;padding:5px 9px;font-size:12px;display:inline-flex}.preview-size .ui-icon{color:var(--accent)}.zoom-bar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-wrap:wrap;align-items:center;gap:4px;width:fit-content;padding:4px;display:flex}.zoom-option{min-height:30px;padding:4px 10px;font-size:12px}.zoom-option[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.sheets{overscroll-behavior-inline:contain;flex-direction:column;align-items:safe center;gap:24px;padding:8px 0 20px;display:flex;overflow-x:auto}.sheet{box-shadow:var(--shadow-sheet);background:#fff;flex:none;overflow:hidden}.sheet svg{width:100%;height:100%;display:block}.preview-more{text-align:center;color:var(--text-muted);margin:18px 0 0;font-size:12px}.export-bar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;padding:10px 12px;display:flex}.export-dpi{color:var(--text-muted);align-items:center;gap:6px;font-size:12px;display:inline-flex}.export-dpi select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);min-height:32px;padding:4px 6px}.export-status{min-height:20px;color:var(--text-muted);margin-left:auto;font-size:12px}.export-status[role=alert]{color:var(--danger)}.gallery-backdrop{z-index:50;background:#10182873;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.gallery{background:var(--surface);border-radius:var(--radius);width:min(960px,100%);max-height:85vh;box-shadow:var(--shadow-sheet);flex-direction:column;display:flex;overflow:hidden}.gallery-header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:16px 20px;display:flex}.gallery-header h2{white-space:nowrap;font-size:17px}.gallery-search{border:1px solid var(--border-strong);border-radius:var(--radius-sm);flex:1;min-width:0;min-height:36px;padding:6px 10px}.gallery-empty{text-align:center;color:var(--text-muted);padding:40px}.gallery-grid{background:var(--surface-soft);grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));align-content:start;gap:16px;min-height:0;padding:20px;display:grid;overflow-y:auto}.gallery-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:0 2px 5px color-mix(in srgb, var(--accent) 6%, transparent);text-align:left;cursor:pointer;flex-direction:column;gap:8px;padding:10px;display:flex}.gallery-card:hover{border-color:var(--accent)}.gallery-card[aria-current=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.gallery-thumb{border-radius:var(--radius-sm);background:var(--bg);place-items:center;height:178px;display:grid;overflow:hidden}.gallery-thumb svg{width:auto;max-width:calc(100% - 24px);height:auto;max-height:154px;box-shadow:var(--shadow);display:block}.gallery-meta{flex-direction:column;gap:2px;display:flex}.gallery-meta strong{font-size:13px}.gallery-meta small{color:var(--text-muted);font-size:11px;line-height:1.4}@media (width<=600px){.gallery-backdrop{padding:10px}.gallery-header{gap:6px;padding:10px}.gallery-grid{grid-template-columns:1fr}}.ctl-slider,.ctl-select,.ctl-toggle-field{width:100%}.ctl-select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);min-height:34px;padding:5px 8px}.ctl-hex{border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:92px;min-height:34px;padding:5px 8px;font-family:ui-monospace,monospace;font-size:12px}.ctl-output{text-align:right;min-width:44px;color:var(--text-muted);font-size:12px}.ctl-button,.ctl-button-row{gap:6px;display:inline-flex}.ctl-button{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;min-height:32px;padding:4px 10px;font-size:12px}.ctl-button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.ctl-notice{color:var(--text-muted);margin:6px 0;font-size:12px}.ctl-group-legend{color:var(--text-muted);padding:0 6px;font-size:12px}.theme-card{flex-direction:column;gap:5px;display:flex}.theme-chip{border-radius:2px;height:12px}.theme-name{font-size:11px}.bg-image-row{align-items:center;gap:10px;margin:8px 0;display:flex}.bg-image-thumb{border:1px solid var(--border);border-radius:var(--radius-sm);object-fit:contain;max-width:80px;max-height:60px}.info-modal{background:var(--surface);border-radius:var(--radius);width:min(680px,100%);max-height:85vh;box-shadow:var(--shadow-sheet);flex-direction:column;display:flex;overflow:hidden}.info-modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;display:flex}.info-modal-head h2{font-size:17px}.info-modal-body{padding:20px 26px 28px;font-size:14px;line-height:1.75;overflow-y:auto}.info-lead{color:var(--text);margin:0 0 18px;font-size:15px;font-weight:600}.info-modal-body h3{margin:22px 0 8px;font-size:14px}.info-steps{margin:0;padding-left:22px}.info-steps li{margin-bottom:12px}.info-steps li strong{color:var(--accent)}.info-steps li p{color:var(--text-muted);margin:2px 0 0}.info-list{color:var(--text-muted);margin:0;padding-left:22px}.info-list li{margin-bottom:6px}.info-contact{gap:4px;margin:24px 0 0;display:grid}.info-contact dt{font-weight:600}.info-contact dd{overflow-wrap:anywhere;margin:0 0 8px}.info-contact a{color:var(--accent)}@media (width<=560px){.app-header{padding-inline:10px}.app-header-actions{gap:2px}.app-header-actions>.btn,.lang-switch .btn{min-width:0;padding-inline:5px;font-size:11px}.app-brand-mark{display:none}.app-brand-name{font-size:15px}}@media (width<=620px){.header-link span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.header-link{min-width:28px;padding-inline:5px}.interface-style-picker{gap:0;padding-inline:3px}.interface-style-picker>.ui-icon{display:none}.interface-style-picker select{max-width:83px;font-size:11px}}@media (width>=768px) and (width<=1050px){.app-brand-tagline{display:none}}@media (width<=767px){.panel-toggle{background:var(--accent-soft);color:var(--accent);border-color:var(--border-strong)}.preview-region{padding:10px 10px 22px}.export-bar{gap:6px;margin-bottom:10px;padding:7px}.export-bar .btn,.export-dpi select,.zoom-option{min-height:42px}.export-bar .btn{padding-inline:8px;font-size:13px}.export-status:empty{display:none}.zoom-option{padding-inline:7px}.control-panel-body{overscroll-behavior:contain}.control-panel input,.control-panel select,.gallery-search{font-size:16px}}@media (width<=380px){.panel-toggle .ui-icon{display:none}}@media (width>=420px) and (width<=600px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}}@media (prefers-reduced-motion:reduce){.control-panel{transition:none}}.app-brand{color:inherit;border-radius:var(--radius-sm);text-decoration:none}.app-brand:hover .app-brand-name{color:var(--accent)}.app-credit{color:var(--accent);white-space:nowrap;margin-inline-start:auto;font-weight:700}.header-gallery{--nav-ink:#55338f;--nav-bg:#f0e9fd;--nav-rim:#dbcbf5}.header-guide{--nav-ink:#125b85;--nav-bg:#e4f3ff;--nav-rim:#badbf2}.header-about{--nav-ink:#88441d;--nav-bg:#fcf0de;--nav-rim:#edd3ad}.header-link.btn{background:var(--nav-bg);color:var(--nav-ink);border-color:var(--nav-rim);font-weight:650}.header-link .ui-icon{color:currentColor}.header-link.btn:hover:not(:disabled){background:color-mix(in srgb, var(--nav-bg), var(--nav-rim) 45%);border-color:var(--nav-ink)}.export-pdf{--export-ink:#215bc0;--export-hover:#17478f}.export-svg{--export-ink:#753cb6;--export-hover:#5e2896}.export-png{--export-ink:#13754a;--export-hover:#0d5d39}.export-print{--export-ink:#99501e;--export-hover:#7d3c11}.export-action.btn{background:var(--export-ink);border-color:var(--export-ink);color:#fff;font-weight:650}.export-action.btn:hover:not(:disabled){background:var(--export-hover);border-color:var(--export-hover)}@media (width<=560px){.app-credit{flex-basis:100%;margin-inline-start:0}}.ctl-toggle-row{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;justify-content:space-between;align-items:center;gap:8px;min-height:38px;padding:6px 8px;display:flex;position:relative}.ctl-toggle-label{min-width:0;color:var(--text);overflow-wrap:anywhere;font-size:12px}.ctl-checkbox{opacity:0;width:1px;height:1px;margin:0;position:absolute}.ctl-switch{border:1px solid var(--border-strong);background:var(--border);border-radius:999px;flex:0 0 30px;height:18px;position:relative}.ctl-switch:after{content:"";background:#fff;border-radius:50%;width:12px;height:12px;position:absolute;inset:2px auto auto 2px;box-shadow:0 1px 3px #1018283d}.ctl-checkbox:checked+.ctl-switch{border-color:var(--accent);background:var(--accent)}.ctl-checkbox:checked+.ctl-switch:after{transform:translate(12px)}.ctl-checkbox:focus-visible+.ctl-switch{outline:2px solid var(--focus);outline-offset:2px}.ctl-toggle-row:has(.ctl-checkbox:disabled){opacity:.55;cursor:not-allowed}#section-decoration .ctl-section-title .ui-icon{color:#8b4fac}#section-watermark .ctl-section-title .ui-icon{color:#176897}:is(#section-decoration,#section-watermark) .ctl-section-body>.ctl-toggle-field:first-child .ctl-toggle-row{background:var(--accent-soft);border-color:var(--border-strong);padding:9px 10px}:is(#section-decoration,#section-watermark) .ctl-section-body>.ctl-toggle-field:first-child .ctl-toggle-label{font-weight:600}
