/* ---------- tool UI tokens ---------- */
:root {
  --bg: #f4f2f8;
  --surface: #ffffff;
  --surface-2: #f7f5fb;
  --text: #1e1b2b;
  --muted: #6b6780;
  --border: #e2deec;
  --accent: #8e00af;
  --accent-text: #ffffff;
  --warn: #b25b00;
  --warn-bg: #fff3e0;
  --shadow: 0 1px 2px rgba(30, 20, 60, .06), 0 8px 24px rgba(30, 20, 60, .06);
  --phone-bezel: #111016;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131d;
    --surface: #1f1c2a;
    --surface-2: #26222f;
    --text: #eeebf6;
    --muted: #a39fb6;
    --border: #353046;
    --accent: #c46be0;
    --accent-text: #15131d;
    --warn: #ffb866;
    --warn-bg: #3a2a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --phone-bezel: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15131d;
  --surface: #1f1c2a;
  --surface-2: #26222f;
  --text: #eeebf6;
  --muted: #a39fb6;
  --border: #353046;
  --accent: #c46be0;
  --accent-text: #15131d;
  --warn: #ffb866;
  --warn-bg: #3a2a14;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --phone-bezel: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #8e00af, #c46be0); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.select-compact { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- layout ---------- */
:root { --topbar-h: 57px; }
.layout {
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px;
  padding: 20px 20px 140px; align-items: start;
}
.panel {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px;
}
.mobile-tabs { display: none; }
.workspace { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.details-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 12px 16px; }
.details-bar .field { margin: 0; flex: 1 1 180px; }
.details-bar .segmented button { white-space: nowrap; }
.details-bar .view-field, .details-bar .field:has(#buttonsSwitch) { flex: 0 1 auto; }

/* ---------- save dock ---------- */
.save-dock { position: fixed; right: 20px; bottom: 20px; z-index: 20; }
.save-fab { display: none; }
.save-body {
  display: flex; flex-direction: column; gap: 8px; width: 300px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.save-body .hint:empty { display: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.card h3 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.step { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 12px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; white-space: pre-line; }
.row { display: flex; align-items: center; }
.gap { gap: 8px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.disabled { opacity: .45; pointer-events: none; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer;
  background: var(--surface-2); transition: border-color .15s, background .15s; margin-bottom: 12px;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--accent); outline: none; }
.dz-title { margin: 0; font-weight: 600; }
.dz-hint { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.status { margin: -4px 0 12px; font-size: 12.5px; color: var(--accent); }
.status:empty { display: none; }
.status.error { color: var(--warn); }

.segmented { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.segmented button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--accent); }
.segmented.small button { padding: 5px 8px; font-size: 12.5px; }
#transformTools { margin-top: 12px; }

.btn {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 8px 12px;
  cursor: pointer; font-weight: 500;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.link { border: 0; background: none; color: var(--accent); padding: 6px 4px; }
.btn.tiny { padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }

.swatch-input { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.swatch-input input { width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.field input:not([type=checkbox]) { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }

/* ---------- main color picker ---------- */
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.brand-chip {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.brand-chip.on { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- color list ---------- */
.color-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.color-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.swatch { position: relative; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; overflow: hidden;
  background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; border: 1px solid var(--border); }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch .chip { position: absolute; inset: 0; pointer-events: none; }
.color-info b { display: block; font-size: 13.5px; }
.color-info small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.alpha { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.alpha input { flex: 1; min-width: 60px; accent-color: var(--accent); }
.alpha output { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--text); white-space: nowrap; }
.color-actions { display: flex; flex-direction: column; gap: 4px; }
.warn { margin: 6px 0 0; padding: 4px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 11.5px; }

/* ---------- previews ---------- */
.previews { min-width: 0; }
.carousel-head, .dots { display: none; }
.phones { --k: .7; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.phones[data-view="home"] { --k: 1; }
.phones[data-view="home"] .phone-wrap:not([data-screen="home"]) { display: none; }
.phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-wrap figcaption { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.phone {
  width: calc(360px * var(--k) + 16px); height: calc(760px * var(--k) + 16px);
  padding: 8px; border-radius: calc(46px * var(--k) + 8px); background: var(--phone-bezel); box-shadow: var(--shadow);
  overflow: hidden;
}
.phone > .screen { margin-bottom: calc(760px * (var(--k) - 1)); margin-right: calc(360px * (var(--k) - 1)); }
.screen {
  position: relative; width: 360px; height: 760px; overflow: hidden;
  transform: scale(var(--k)); transform-origin: 0 0; border-radius: 46px;
  background: var(--bgc); color: #111; font-family: Montserrat, sans-serif; user-select: none;
}

/* ---------- app: shared ---------- */
.screen svg { width: 24px; height: 24px; fill: currentColor; }
.screen svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; padding-bottom: 8px; display: flex; background: var(--sys); z-index: 3; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--bgc-50); }
.tab em { font: 500 11.5px Roboto, sans-serif; font-style: normal; }
.tab.on { color: var(--bgc); }
.tab.on svg.stroke { fill: currentColor; }
.appbar {
  position: absolute; top: 0; left: 0; right: 0; height: 88px; padding: 34px 20px 0; z-index: 2;
  display: flex; align-items: center; gap: 22px; background: var(--sys); color: #fff; font-size: 17px;
}
.appbar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; padding-right: 24px; }
.appbar.plain span { padding-right: 0; }
.appbar svg { flex: none; }
.page { position: absolute; top: 88px; bottom: 70px; left: 0; right: 0; padding: 12px 16px; overflow: hidden; background: var(--bgc); }
.muted { color: #6f6b85; }
.act { color: var(--act); font-weight: 600; }
.grip { display: block; width: 64px; height: 3px; border-radius: 2px; background: #b9b6c6; margin: 8px auto 12px; }

/* ---------- app: home ---------- */
.screen-home { background: var(--sys); }
.home-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 100px; cursor: grab; touch-action: none; }
.home-bg.dragging { cursor: grabbing; }
.home-bg canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-hint {
  position: absolute; left: 40px; right: 40px; top: 46%; padding: 14px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, .85); color: #333; font-weight: 600; font-size: 15px;
}
.home-pill {
  position: absolute; top: 34px; left: 16px; right: 16px; padding: 12px 16px; border-radius: 12px; z-index: 2;
  background: var(--sys); color: #fff; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.home-btns { position: absolute; top: 96px; left: 16px; right: 16px; display: flex; gap: 16px; z-index: 2; pointer-events: none; }
.hb { position: relative; height: 94px; border-radius: 12px; background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: center; }
.home-btns.two .date { flex: 1.12; flex-direction: column; }
.home-btns.two .work { flex: 1; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.home-btns.two .work svg { width: 42px; height: 42px; opacity: .6; }
.hb strong { font-size: 44px; line-height: 1; font-weight: 700; }
.hb span { font-weight: 700; font-size: 14px; }
.hb i { font-style: normal; opacity: .5; }
.hb > svg.stroke:last-child { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 22px; opacity: .5; }
.home-btns.one .big { flex: 1; gap: 10px; justify-content: flex-start; padding-left: 26px; }
.home-btns.one .big > svg:first-child { width: 22px; opacity: .5; }
.home-btns.one .big strong { font-size: 62px; }
.home-btns.one .big span { display: flex; flex-direction: column; font-size: 25px; line-height: 1.1; }
.home-panel {
  position: absolute; left: 0; right: 0; bottom: 70px; height: 150px; z-index: 2; pointer-events: none;
  background: rgba(255, 255, 255, .85); border-radius: 20px 20px 0 0; text-align: center; padding: 0 22px;
}
.home-panel strong { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.home-panel p { margin: 0; font-size: 14.5px; line-height: 1.3; }

/* ---------- app: events ---------- */
.searchbox {
  height: 40px; border-radius: 20px; background: #fff; border: 1px solid #cbc7d6;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #b8b4c6; font-weight: 600; font-size: 17px;
}
.searchbox svg { width: 20px; height: 20px; }
.tabs2 { display: flex; margin: 2px 0 10px; }
.tabs2 span { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; color: #222; }
.tabs2 .on { color: var(--act); font-weight: 600; border-bottom: 2px solid var(--act); background: rgba(0, 0, 0, .04); }
.band {
  margin-top: 8px; height: 34px; border-radius: 10px; background: var(--sys); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px;
}
.band svg { width: 22px; height: 22px; }
.ev-card {
  margin-top: 4px; min-height: 62px; border-radius: 12px; padding: 6px 12px 6px 16px;
  background: linear-gradient(90deg, var(--course) 0 5px, #fff 5px);
  display: flex; align-items: center; justify-content: space-between;
}
.ev-main { display: flex; flex-direction: column; gap: 2px; }
.ev-main b { font-weight: 500; font-size: 16px; }
.ev-main .act { font-size: 13px; }
.ev-count { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; }
.ev-count small { font-size: 12.5px; color: #333; }
.badge { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; }
.st-seats { background: var(--cap); }
.st-booked { background: var(--st-green); }
.st-waiting { background: var(--st-orange); }

/* ---------- app: event detail ---------- */
.detail-photo {
  position: absolute; top: 88px; left: 0; right: 0; height: 180px; display: grid; place-items: center;
  background: linear-gradient(135deg, #b8c4a8, #6f8a5c); color: rgba(255, 255, 255, .7);
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-sheet { position: absolute; top: 262px; left: 0; right: 0; bottom: 70px; background: #fcfbff; padding: 0 20px; }
.detail-sheet h3 { margin: 0 0 12px; font-size: 25px; font-weight: 500; }
.detail-meta { display: flex; align-items: flex-start; gap: 14px; font-size: 13px; margin-bottom: 14px; }
.detail-meta .muted { margin-left: 8px; }
.action-btn {
  height: 50px; border-radius: 12px; background: var(--act); color: #fff; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 10px;
}
.soft-box { background: var(--bgc); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.soft-box.center { margin-bottom: 10px; }
.soft-box.center b { font-size: 13.5px; text-align: center; }
.soft-row { display: flex; gap: 10px; }
.soft-row .soft-box { flex: 1; }
.soft-row b { font-size: 17px; }

/* ---------- app: center page ---------- */
.screen-info { background: var(--sys); }
.info-page { position: absolute; top: 88px; left: 0; right: 0; bottom: 70px; background: var(--sys); color: #fff; }
.info-row {
  height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, .35); font-size: 17px;
}
.info-row:last-of-type { border-bottom: 1px solid rgba(0, 0, 0, .35); }
.info-row svg { width: 24px; height: 24px; }
.info-page p { text-align: center; padding: 18px 26px; margin: 0; font-size: 16px; }

/* ---------- app: account ---------- */
.account { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; }
.account .upper { font-size: 18px; font-weight: 700; }
.account > span:nth-child(3) { font-size: 17px; margin-bottom: 10px; }
.account .action-btn, .account .inactive-btn, .account .credits { align-self: stretch; }
.credits { background: var(--act); color: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; width: 50%; align-self: flex-start !important; }
.credits small { font-size: 13px; }
.inactive-btn { height: 50px; border-radius: 12px; background: var(--ina); color: rgba(255, 255, 255, .75); display: grid; place-items: center; font-size: 17px; margin-bottom: 14px; }
.account u { font-size: 14px; }

/* ---------- request dialog ---------- */
#sendRequest { width: 100%; padding: 10px 12px; font-weight: 600; }
.dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--border);
  border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(15, 10, 30, .55); }
.dialog form, .request-done { padding: 18px 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog-head svg, .request-done svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog .hint { margin: 6px 0 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field i { font-style: normal; }
.field textarea {
  padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; resize: vertical; min-height: 84px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 4px 0 12px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check a { color: var(--accent); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#captchaBox:empty { display: none; }
#captchaBox { margin-bottom: 12px; }
.dialog .status { margin: 0 0 12px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }
.request-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.request-done svg { width: 56px; height: 56px; color: var(--accent); }
.request-done h2 { margin: 0; font-size: 20px; }
.request-done p { margin: 0 0 6px; white-space: pre-line; color: var(--muted); }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body { overflow: hidden; }
  .layout {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
  }

  /* Top 60%: preview gallery */
  .workspace { order: -1; flex: 0 0 60%; min-height: 0; gap: 0; }
  .previews { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .carousel-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 2px; font-weight: 600; font-size: 13px; }
  .carousel-head .icon-btn:disabled { opacity: .3; }
  .carousel-head svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .phones {
    flex: 1; min-height: 0; flex-wrap: nowrap; gap: 0; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone-wrap, .phones[data-view="home"] .phone-wrap:not([data-screen="home"]) {
    display: flex; flex: 0 0 100%; justify-content: center; scroll-snap-align: center;
  }
  .phone-wrap figcaption { display: none; }
  .dots { display: flex; justify-content: center; gap: 7px; padding: 4px 0 8px; }
  .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; }
  .dots button.on { background: var(--accent); width: 20px; border-radius: 4px; }

  /* Bottom 40%: tabbed controls */
  .panel {
    position: static; flex: 1; min-height: 0; max-height: none; gap: 10px;
    padding: 0 12px 88px; border-top: 1px solid var(--border); background: var(--bg);
  }
  .mobile-tabs {
    display: flex; gap: 4px; position: sticky; top: 0; z-index: 2; margin: 0 -12px; padding: 8px 12px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .mobile-tabs button {
    flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface-2); font-weight: 600; cursor: pointer;
  }
  .mobile-tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
  .panel > .card { display: none; box-shadow: none; }
  .panel[data-tab="logo"] > [data-tab="logo"],
  .panel[data-tab="colors"] > [data-tab="colors"],
  .panel[data-tab="details"] > [data-tab="details"] { display: block; }
  .panel > .card h2 { display: none; }
  .panel > .details-bar { display: none; }
  .panel[data-tab="details"] > .details-bar { display: flex; flex-direction: column; align-items: stretch; }
  .details-bar .view-field { display: none; }

  /* Save: floating button that opens the actions */
  .save-dock { right: 16px; bottom: 16px; }
  .save-fab {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  }
  .save-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .save-body { display: none; position: absolute; right: 0; bottom: 66px; width: min(300px, calc(100vw - 32px)); }
  .save-dock.open .save-body { display: flex; }
}
@media (max-width: 420px) {
  .color-row { grid-template-columns: 40px minmax(0, 1fr); }
  .alpha { flex-wrap: wrap; }
  .color-actions { grid-column: 1 / -1; flex-direction: row; }
}
