:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#26343b;background:#eef1f5;font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,select,textarea{font:inherit}button,select,input,textarea{border:1px solid #d8dfe5;border-radius:6px;background:#f8f9fa;color:inherit}button,select{cursor:pointer}button{min-height:44px;padding:9px 12px;font-size:12px;font-weight:600;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button.primary{background:#14766f;color:white;border-color:#14766f}.danger{color:#be4c48}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #14766f;outline-offset:2px}input,textarea,select{font-size:16px;min-height:44px;padding:10px;width:100%}textarea{resize:vertical;line-height:1.7}h1,h2,p{margin:0}h1{font-size:17px}h2{font-size:15px}p{line-height:1.65}[hidden]{display:none!important}
.designer{height:100%;height:100dvh;max-width:430px;margin:0 auto;display:flex;flex-direction:column;overflow:hidden;background:#f7f8fa;box-shadow:0 0 34px #1d243017}.topbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:10px 14px;border-bottom:1px solid #e1e5eb;background:#fafbfc}.brand{min-width:0}.brand p{font-size:10px;margin-top:3px;color:#74808a}.topbar-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.language{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:50%;padding:0;background:white}.topbar select{width:112px;font-size:12px;background:white;padding:8px}
.preview-panel{position:relative;flex-shrink:0;background:#edf1f3;border-bottom:1px solid #dfe4e8}.preview-toolbar{position:absolute;top:8px;left:4px;right:4px;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.segmented{display:flex;flex-direction:column;gap:2px;padding:3px;border:1px solid #d9dee5;border-radius:7px;background:#e4e8ec;pointer-events:auto}.segmented button{width:44px;min-height:40px;height:40px;padding:0 3px;background:transparent;border:0;font-size:11px;color:#657080}.segmented button.active{background:white;color:#1d2a30;box-shadow:0 1px 4px #18202824}.shapes button{display:grid;place-items:center}.shape-icon{display:block;width:14px;height:14px;border:1.5px solid currentColor}.shape-icon.round{border-radius:50%}.shape-icon.rectangle{width:12px;height:16px;border-radius:2px}.watch-stage{display:flex;justify-content:center;align-items:flex-start;padding-bottom:4px;overflow:hidden}.watch-frame{padding:8px;background:#252a2e;box-shadow:0 10px 22px #191f253d,inset 0 0 0 1px #43494e;flex-shrink:0}.watch-frame.round,.watch-frame.round canvas{border-radius:50%}.watch-frame.rectangle{border-radius:18px}.watch-frame.rectangle canvas{border-radius:10px}canvas{display:block;background:black;width:243px;height:243px}.asset-status{font-size:11px;color:#be4c48;padding:0 12px;text-align:center}.asset-status:empty{display:none}
.settings-sheet{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:white;padding:9px 14px calc(24px + env(safe-area-inset-bottom))}.sheet-handle{width:38px;height:4px;border-radius:4px;background:#d5dae0;margin:0 auto 14px}.control-section{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #e1e5eb}.control-section:last-child{border:0;margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.tag{font-size:10px;padding:4px 6px;color:#14766f;background:#e2f2ef;border-radius:4px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint,.muted{font-size:11px;color:#74808a}.hint{margin:8px 0 10px}.color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.color-card{min-width:0;display:flex;flex-direction:column;gap:5px}.color-card input[type=color]{width:100%;height:38px;min-height:38px;padding:2px;background:white}.color-card label{font-size:10px;text-align:center;min-height:15px}.color-card input[type=text]{font-family:monospace;font-size:12px;min-height:36px;padding:6px 3px;text-align:center;width:100%}.setting{margin:12px 0}.setting label{display:block;font-size:12px;color:#596370;margin-bottom:6px}.setting select{font-size:14px}.setting.boolean{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.setting.boolean label{margin:0}.setting input[type=checkbox]{width:42px;height:26px;min-height:26px;flex-shrink:0;accent-color:#14766f;cursor:pointer}.code{font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}.actions{display:flex;gap:8px;margin-top:10px}.actions button{flex:1;min-width:0;padding:10px 6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.message{position:fixed;z-index:10;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(90vw,390px);padding:12px 16px;border-radius:8px;background:#1d3435;color:white;font-size:13px;box-shadow:0 6px 24px #0003;pointer-events:none}
@media(max-width:360px){.topbar{padding:8px 10px;gap:5px}h1{font-size:15px}.topbar select{width:94px}.topbar-actions{gap:5px}.settings-sheet{padding-left:10px;padding-right:10px}.color-card label{font-size:9px}.actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
