:root{color-scheme:light;--yellow:#ffdb00;--ink:#18181b;--muted:#71717b;--border:#e9e9ec;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-size:14px}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #d7ad00;outline-offset:2px}[hidden]{display:none!important}.app{height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr) 420px;overflow:hidden}.templates{min-height:0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column}.nav-heading{height:93px;display:flex;align-items:center;gap:10px;padding:0 18px;flex:none;border-bottom:1px solid #f3f3f4}.nav-heading strong{display:block;font-size:15px}.nav-heading small{display:block;font-size:11px;color:#999;margin-top:4px}.brand-mark{width:32px;height:32px;background:var(--yellow);border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:16px}.template-list{overflow-y:auto;flex:1;padding:8px 0}.template-item{height:108px;width:100%;border:0;border-left:4px solid transparent;background:#fff;display:flex;align-items:center;text-align:left;gap:12px;padding:6px 12px;overflow:hidden;color:#52525b}.template-item:hover{background:#f7f7f8}.template-item.selected{background:#fff8cc;border-left-color:var(--yellow);color:#18181b;font-weight:700}.thumb{width:72px;height:96px;position:relative;flex:none;overflow:hidden;border-radius:5px;background:#f2f2f2}.thumb>.popup-root{transform:scale(.2424);transform-origin:0 0}.template-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dirty-dot{color:#c59600;font-size:16px;margin-left:3px}.workspace{background:#f3f3f3;display:flex;flex-direction:column;min-width:0;min-height:0}.workspace-head{padding:25px 32px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.workspace-head h1{font-size:16px;margin:0;font-weight:700}.workspace-head p{font-size:12px;color:#92929a;margin:5px 0 0}.segments{display:flex;padding:3px;background:#e6e6e8;border-radius:9px;flex:none}.segments button{border:0;background:transparent;color:#71717b;padding:7px 12px;border-radius:7px;font-size:12px}.segments button.active{background:white;color:#18181b;box-shadow:0 1px 3px #0002}.preview-area{flex:1;min-height:0;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;padding:0 20px}.preview-frame{flex:none;position:relative}.phone{position:absolute;width:387px;height:824px;left:0;top:0;transform-origin:top left;background-size:100% 100%;pointer-events:none}.phone .popup-root{position:absolute;left:45px;top:206px}.phone-close{position:absolute;left:178.5px;top:622px;width:30px;height:30px;border:1.5px solid white;border-radius:50%;color:white;font-size:24px;line-height:26px;text-align:center;font-weight:200}.checker{background-color:#fff;background-image:linear-gradient(45deg,#dedee0 25%,transparent 25%),linear-gradient(-45deg,#dedee0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dedee0 75%),linear-gradient(-45deg,transparent 75%,#dedee0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.pure-popup{position:absolute;top:0;left:0;transform-origin:0 0}.preview-note{text-align:center;color:#96969e;font-size:12px;margin:0 12px 23px;flex:none}.editor{min-height:0;background:white;border-left:1px solid var(--border);display:flex;flex-direction:column;position:relative}.editor-head{height:93px;flex:none;border-bottom:1px solid #f2f2f3;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.editor-head h2{font-size:18px;margin:0 0 4px}.editor-head p{color:var(--muted);font-size:12px;margin:0}.reset-wrap{position:relative}.reset-button{width:36px;height:36px;border:1px solid #dedee3;border-radius:8px;background:white;font-size:23px;line-height:1;color:#27272a}.reset-button:hover:not(:disabled){background:#f5f5f6}.reset-button:disabled{color:#c7c7cd;border-color:#eeeeef;background:#fafafa}.popover{position:absolute;z-index:10;right:0;top:46px;width:282px;padding:16px;background:white;border:1px solid #e4e4e7;box-shadow:0 12px 36px #0002;border-radius:10px}.popover p{font-size:13px;line-height:1.6;color:#333;margin:0 0 16px}.popover>div,.modal-actions{display:flex;justify-content:flex-end;gap:8px}.secondary,.danger,.primary-small{border:1px solid #dedee3;border-radius:7px;padding:7px 14px;background:white;font-size:13px}.danger{background:#e34a42;border-color:#e34a42;color:white}.primary-small{background:var(--yellow);border-color:var(--yellow)}.editor-content{padding:24px;overflow:auto;flex:1;min-height:0}.section-title{font-weight:700;padding-bottom:15px;border-bottom:1px solid #f0f0f2;margin-bottom:24px}.section-title span{font-size:19px;margin-right:6px}.fields{display:flex;flex-direction:column;gap:24px}.field-group{display:flex;flex-direction:column;gap:10px}.field-group label,.group-label{font-size:12px;color:#3f3f46;font-weight:600}.field-group input:not([type=range]),.field-group textarea{width:100%;background:#fafafa;border:1px solid #e4e4e7;border-radius:7px;padding:8px 11px;color:#27272a;min-width:0}.field-group input:not([type=range]){height:36px}.field-group textarea{height:177px;resize:vertical;line-height:1.5}.field-group input::placeholder,.field-group textarea::placeholder{color:#96969f}.pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pair-grid .wide{grid-column:span 2}.mini-label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#71717b}.slider-box{padding:17px;background:#fafafa;border:1px solid #f1f1f3;border-radius:10px;display:flex;flex-direction:column;gap:20px}.slider-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#71717b}.slider-label output{background:white;border:1px solid #e4e4e7;border-radius:4px;padding:3px 8px}.range{width:100%;accent-color:#12111d;margin:3px 0}.overflow-note{font-size:12px;color:#b17700;line-height:1.5}.export-bar{flex:none;padding:16px 24px 24px;border-top:1px solid #ececef;box-shadow:0 -7px 20px #00000008;text-align:center;background:white}.export-button{height:48px;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--yellow);border:0;border-radius:9px;font-weight:700}.export-button:hover:not(:disabled){background:#ebc900;box-shadow:0 4px 12px #c9aa0030}.export-button:active:not(:disabled){background:#e0c100}.export-button:disabled{opacity:.65}.download-icon{font-size:23px;line-height:1}.export-bar>div{font-size:11px;color:#96969e;margin-top:8px}.spinner{width:16px;height:16px;border:2px solid #9b8500;border-top-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;z-index:30;left:auto;right:24px;bottom:120px;transform:none;background:#27272a;color:white;border-radius:8px;padding:12px 16px;box-shadow:0 8px 25px #0003;max-width:90vw;overflow-wrap:anywhere}.toast button{margin-left:12px;border:0;background:transparent;color:#ffdb00;font-weight:700}.modal-layer{position:fixed;z-index:20;inset:0;background:#0006;display:grid;place-items:center}.modal{width:min(340px,calc(100vw - 40px));background:white;border-radius:12px;padding:22px;box-shadow:0 14px 44px #0003}.modal p{font-size:16px;font-weight:600;margin:0 0 24px}#measure-host{position:fixed;left:-10000px;top:0;pointer-events:none}
@media(max-width:1023px){.app{height:auto;min-height:100vh;display:flex;flex-direction:column;overflow:visible}.templates{border:0;border-bottom:1px solid var(--border)}.nav-heading{height:65px}.template-list{display:flex;overflow-x:auto;overflow-y:hidden;padding:4px 8px;flex:none}.template-item{width:166px;height:100px;flex:none;border-left:0;border-bottom:4px solid transparent;padding:4px 8px;gap:8px}.template-item.selected{border-left:0;border-bottom-color:var(--yellow)}.thumb{width:64px;height:85px}.thumb>.popup-root{transform:scale(.2155)}.workspace{height:650px;flex:none}.workspace-head{padding:18px 18px 0}.preview-area{padding:0 12px}.preview-note{margin-bottom:14px}.editor{min-height:500px;border:0}.editor-head{height:76px}.editor-content{overflow:visible;padding-bottom:30px}.app{padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px))}.export-bar{position:fixed;left:0;right:0;bottom:0;z-index:15;padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px))}.toast{bottom:calc(116px + env(safe-area-inset-bottom, 0px))}.popover{right:0}.workspace-head h1{font-size:14px}}@media(max-width:400px){.workspace-head{padding-left:12px;padding-right:12px}.segments button{padding:7px 8px}.workspace{height:600px}}

.toast{pointer-events:none}.toast button{pointer-events:auto}
@media(max-width:1023px){.toast{left:50%;right:auto;transform:translateX(-50%)}}

/* html2canvas measures font baselines with a temporary image in document.body. */
body > div:not([id]):not([class]) > img { display:inline !important; vertical-align:baseline !important; }

/* Match original Figma font faces without synthesizing weights. */
.popup-root{font-synthesis:none}
