:root{--bg:#141416;--stage:#0f0f11;--panel:#1b1b1f;--panel-2:#232328;--border:#2a2a30;--border-strong:#3b3b43;--text:#ececef;--muted:#9a9aa3;--accent:#f2c94c;--accent-hover:#f6d46a;--accent-ink:#1c1600;--danger:#f87171;--shadow:0 12px 32px #00000073;--mono:ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;flex-direction:column;min-height:100vh;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex}a{color:var(--text);text-underline-offset:3px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.hidden{display:none!important}.topbar{background:var(--bg);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:10px 16px;display:flex}.brand{color:var(--text);align-items:center;gap:8px;font-size:15px;font-weight:650;text-decoration:none;display:flex}.brand img{display:block}.topbar nav a{color:var(--muted);margin-left:16px;font-size:14px;text-decoration:none}.topbar nav a:hover,.topbar nav a[aria-current=page]{color:var(--text)}.toolbar{z-index:25;background:var(--panel);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:4px;padding:8px 16px;display:flex;position:relative}.toolbar button,.empty-state button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:6px;padding:6px 9px;font-size:13px;display:inline-flex}.toolbar button:hover{color:var(--text);background:var(--panel-2)}.toolbar button.active{color:var(--text);background:var(--panel-2);border-color:var(--border-strong)}.toolbar button:disabled{opacity:.35;cursor:not-allowed}.toolbar button:disabled:hover{color:var(--muted);background:0 0}.toolbar button.primary:disabled:hover{background:var(--accent);color:var(--accent-ink)}.toolbar button svg,.empty-state button svg{flex-shrink:0}.toolbar button.primary,.empty-state button.primary{background:var(--accent);color:var(--accent-ink);font-weight:600}.toolbar button.primary:hover,.empty-state button.primary:hover{background:var(--accent-hover);color:var(--accent-ink)}.toolbar button.danger:hover{color:var(--danger)}.control{color:var(--muted);align-items:center;gap:6px;padding:0 4px;font-size:13px;display:flex}.control.disabled{opacity:.35;cursor:not-allowed}.control.disabled input{cursor:not-allowed}.control input[type=range]{width:90px;accent-color:var(--accent)}#size-value{min-width:3.2ch;color:var(--text);font-variant-numeric:tabular-nums;display:inline-block}.toolbar button.icon-only{padding:6px 7px}.toolbar-end{margin-left:auto}.divider{background:var(--border);width:1px;height:22px;margin:0 6px}.color-control{position:relative}.toolbar button.swatch-trigger,.toolbar button.swatch-trigger:hover{border-color:var(--border-strong);background:0 0;justify-content:center;width:28px;height:28px;padding:3px}.swatch-dot{border-radius:3px;width:100%;height:100%;box-shadow:inset 0 0 0 1px #ffffff26}.color-popover{z-index:40;background:var(--panel);border:1px solid var(--border-strong);width:228px;box-shadow:var(--shadow);cursor:default;border-radius:8px;flex-direction:column;gap:12px;padding:12px;display:flex;position:absolute;top:calc(100% + 8px);left:0}.swatches{grid-template-columns:repeat(8,1fr);gap:6px;display:grid}.toolbar button.swatch,.toolbar button.swatch:hover{aspect-ratio:1;background:var(--swatch);border:1px solid #ffffff26;border-radius:50%;width:100%;padding:0}.toolbar button.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--panel), 0 0 0 4px var(--text)}.color-popover hex-color-picker{width:100%;height:150px}.color-popover hex-color-picker::part(saturation){border-radius:6px 6px 0 0}.color-popover hex-color-picker::part(hue){border-radius:0 0 6px 6px;height:14px}.color-popover hex-color-picker::part(saturation-pointer),.color-popover hex-color-picker::part(hue-pointer){width:18px;height:18px}.hex-row{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.hex-row hex-input{flex:1}.hex-row hex-input::part(input){box-sizing:border-box;width:100%;font-family:var(--mono);text-transform:lowercase;color:var(--text);background:var(--bg);border:1px solid var(--border-strong);border-radius:5px;outline:none;padding:6px 8px;font-size:12px}.hex-row hex-input::part(input):focus{border-color:var(--accent)}.stage{background:var(--stage);flex:1;justify-content:center;align-items:center;padding:24px;display:flex;position:relative;overflow:auto}canvas{box-shadow:var(--shadow);touch-action:none;cursor:crosshair;border-radius:2px;position:relative}.empty-state{flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:32px 16px;display:flex;position:absolute;inset:0;overflow-y:auto}.dropbox{text-align:center;border:2px dashed var(--border-strong);border-radius:10px;width:100%;max-width:560px;padding:48px 32px}.stage.dragging .dropbox{border-color:var(--accent);background:#f2c94c0d}.dropbox h1{margin:0 0 8px;font-size:24px;font-weight:650;line-height:1.25}.dropbox .sub{color:var(--muted);max-width:420px;margin:0 auto 24px;font-size:15px;line-height:1.55}.empty-state button.big{padding:10px 18px;font-size:15px}.dropbox .hint{color:var(--muted);margin:14px 0 0;font-size:13px}.privacy-note{color:var(--muted);text-align:center;margin:0;font-size:13px}kbd{font-family:var(--mono);background:var(--panel-2);border:1px solid var(--border-strong);color:var(--text);border-bottom-width:2px;border-radius:4px;padding:1px 5px;font-size:11px}.text-input{z-index:20;background:var(--panel);border:1px solid var(--accent);color:var(--text);min-width:150px;box-shadow:var(--shadow);border-radius:5px;outline:none;padding:5px 10px;font-size:16px;position:absolute}.toast{background:var(--panel-2);border:1px solid var(--border-strong);color:var(--text);box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:50;border-radius:6px;padding:10px 16px;font-size:13px;transition:opacity .2s,transform .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%)translateY(16px)}.toast.show{opacity:1;transform:translate(-50%)translateY(0)}.page{flex:1;width:100%;max-width:680px;margin:0 auto;padding:40px 16px}.page h1{font-size:28px;font-weight:650}.faq h2{color:var(--text);margin:28px 0 6px;font-size:16px}.faq p{color:var(--muted);margin:0 0 10px;line-height:1.65}@media (width<=520px){.toolbar{padding:6px 10px}.toolbar button{padding:6px 8px;font-size:12px}.dropbox{border:none;padding:32px 20px}}.stage.dragging canvas{outline:2px dashed var(--accent);outline-offset:4px}
