/* Kumo: violet ink on lavender paper, mint for "done". Checkerboard is the motif. */
:root {
  --bg: #f6f5fb; --surface: #ffffff; --sunk: #efedf7; --ink: #1d1a3a; --sub: #615c7f; --faint: #9a95b5; --line: #e4e1f0;
  --violet: #6b4cff; --violet-ink: #ffffff; --violet-soft: #ece8ff; --mint: #12b886; --mint-soft: #dcf7ee; --warn: #b45309; --warn-soft: #fff4e0; --bad: #d23b5b;
  --display: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(29, 26, 58, .06), 0 8px 24px -12px rgba(29, 26, 58, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .12s, background .12s; }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn.primary { background: var(--violet); color: var(--violet-ink); border-color: var(--violet); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); border-color: var(--violet); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--sunk); border-color: transparent; }
.btn.big { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.ib { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink); font-size: 20px; }
.ib:hover:not(:disabled) { background: var(--sunk); }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.ed { position: relative; background: var(--surface); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 max(20px, env(safe-area-inset-left)); max-width: 1160px; margin: 0 auto; }
.top.ed .top-in { max-width: none; height: 52px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.logo b { font: 700 20px var(--display); letter-spacing: -.02em; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(var(--violet) 0 25%, #fff 0 50%, var(--violet) 0 75%, #fff 0) 0 0 / 14px 14px; position: relative; box-shadow: inset 0 0 0 1.5px var(--violet); }
.mark i { position: absolute; inset: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px #fff; }
.tnav { display: flex; gap: 22px; font-size: 14px; }
.tnav a { text-decoration: none; color: var(--sub); }
.tnav a:hover { color: var(--ink); }
.lang { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; background: var(--surface); }

/* home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.kick { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 4px 12px; border-radius: 99px; }
.hero h1 { font: 700 clamp(30px, 4vw, 46px)/1.12 var(--display); letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.sub { margin: 0 0 24px; color: var(--sub); font-size: 16.5px; line-height: 1.7; max-width: 34em; }
.drop { display: grid; justify-items: center; gap: 10px; padding: 28px 20px 22px; border: 2px dashed color-mix(in srgb, var(--violet) 45%, var(--line)); border-radius: 18px; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, body.dragging .drop { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 4%, var(--surface)); }
.drop-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.drop-ic svg { width: 26px; height: 26px; }
.drop-or { color: var(--sub); font-size: 14px; }
.drop small { color: var(--faint); font-size: 12.5px; line-height: 1.5; max-width: 30em; }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--sub); }
.samples > span { width: 100%; }
.smp { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.smp:hover { transform: translateY(-2px); }
.smp img { width: 100%; height: 100%; object-fit: cover; }

/* home: before/after slider */
.cmp { position: relative; aspect-ratio: 3 / 4; max-height: 600px; margin-left: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(29, 26, 58, .45); cursor: ew-resize; user-select: none; touch-action: pan-y; }
.cmp img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-a { position: absolute; inset: 0; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-b[data-bg="checker"] { background: repeating-conic-gradient(#fff 0 25%, #e4e1f0 0 50%) 0 0 / 22px 22px; }
.cmp-b[data-bg="white"] { background: #fff; }
.cmp-b[data-bg="blue"] { background: #438edb; }
.cmp-b[data-bg="beach"] { background: url(/cutout/img/bg/beach.jpg) center / cover; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 2px solid #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .25); }
.cmp-knob { position: absolute; top: 50%; left: -22px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 700; letter-spacing: 2px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.cmp-tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(29, 26, 58, .65); color: #fff; font-size: 12px; font-weight: 600; }
.cmp-tag.l { left: 14px; } .cmp-tag.r { right: 14px; }
.cmp-bgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: flex-end; }
.cmp-note { margin: 8px 0 0; font-size: 12.5px; color: var(--faint); text-align: right; }

/* home: model bar */
.modelbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin-top: 8px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.mb-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint-soft); color: var(--mint); }
.mb-txt { display: grid; gap: 2px; font-size: 14px; }
.mb-txt span { color: var(--sub); }
.mb-dev { font-size: 13px; color: var(--faint) !important; }
.mb-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.mb-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.mb-pick select, .num input, .clr input:not([type=color]) { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--surface); }
.mb-prog { grid-column: 1 / -1; position: relative; height: 30px; border-radius: 9px; background: var(--sunk); overflow: hidden; display: grid; place-items: center; font-size: 13px; }
.mb-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--violet-soft); transition: width .2s; }
.mb-prog span { position: relative; }

/* home: sections */
.home h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.25 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.make, .steps, .privacy, .faq { margin-top: 64px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sunk); }
.card > div { display: grid; gap: 4px; padding: 14px 16px 16px; }
.card b { font-size: 16px; }
.card span { color: var(--sub); font-size: 13.5px; line-height: 1.5; }
.hint { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.steps em { font: 700 24px var(--display); font-style: normal; color: var(--violet); }
.steps b { font-size: 16px; }
.steps span { color: var(--sub); font-size: 14px; line-height: 1.6; }
.privacy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 26px 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.privacy h2 { color: #fff; }
.pv-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--mint); }
.pv-ic svg { width: 28px; height: 28px; }
.privacy ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.65; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; color: var(--sub); line-height: 1.7; }
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--sub); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 16px; }

/* editor */
body.is-editor { height: calc(100dvh - var(--kumo-bar, 0px)); overflow: hidden; }
.only-m { display: none !important; }
body.is-editor #app { height: calc(100dvh - var(--kumo-bar, 0px)); display: flex; flex-direction: column; }
main.ed { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ebar { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fname { display: grid; line-height: 1.2; font-weight: 600; font-size: 14px; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 4px; }
.fname small { color: var(--faint); font-weight: 500; font-size: 12px; }
.sp { flex: 1; }
.zoom { min-width: 48px; text-align: center; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.ebody { flex: 1; min-height: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr) 330px; }
.rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.rt { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--sub); }
.rt svg { width: 22px; height: 22px; }
.rt:hover { background: var(--sunk); color: var(--ink); }
.rt[aria-pressed="true"] { background: var(--violet-soft); color: var(--violet); }
.stage { position: relative; min-width: 0; min-height: 0; background: #e9e7f3; overflow: hidden; touch-action: none; }
.stage canvas { position: absolute; inset: 0; display: block; }
.stage[data-brush="erase"] canvas, .stage[data-brush="restore"] canvas { cursor: none; }
.stage.pan canvas, .stage.panning canvas { cursor: grabbing; }
.stage.moving canvas { cursor: move; }
.stage-fl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.stage-fl .peek { color: var(--violet); }
.ovl { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(233, 231, 243, .72); backdrop-filter: blur(2px); padding: 16px; }
.work { display: grid; justify-items: center; gap: 10px; width: min(420px, 100%); padding: 26px 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 20px 50px -20px rgba(29, 26, 58, .4); text-align: center; }
.work b { font-size: 17px; }
.work p { margin: 0; color: var(--sub); font-size: 14px; }
.work small { color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.work .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.work details { width: 100%; font-size: 12px; color: var(--faint); text-align: left; }
.work code { display: block; white-space: pre-wrap; word-break: break-all; margin-top: 6px; }
.work.err b { color: var(--bad); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--violet-soft); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
.spin.s { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { position: relative; width: 100%; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--violet); border-radius: 4px; transition: width .2s; }
.bar.indet i { width: 30%; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { left: -30%; } 100% { left: 100%; } }

/* side panel */
.panel { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 14px; }
.ph { display: flex; align-items: center; justify-content: space-between; }
.ph h3 { margin: 0; font: 700 17px var(--display); }
.panel h4 { margin: 8px 0 0; font-size: 14px; }
.pstat { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 13.5px; font-weight: 600; }
.pstat.done { background: var(--mint-soft); color: #0b7a59; }
.pstat svg { width: 18px; height: 18px; }
.ptxt { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.55; }
.ptxt.s { font-size: 12.5px; color: var(--faint); }
.ptxt.note { padding-top: 6px; border-top: 1px dashed var(--line); }
.warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.55; }
.warn.soft { background: var(--sunk); color: var(--sub); }
.warn .sws { margin-top: 8px; }
.brushes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bt { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13px; }
.bt small { position: absolute; top: 5px; right: 7px; font-size: 10px; color: var(--faint); }
.bt.on { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }
.rg { display: grid; gap: 6px; font-size: 13px; color: var(--sub); }
.rg span { display: flex; justify-content: space-between; }
.rg em { font-style: normal; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rg input { width: 100%; accent-color: var(--violet); }
.pg { display: grid; gap: 8px; }
.pg.dim { opacity: .5; pointer-events: none; }
.pl { font-size: 13px; font-weight: 600; color: var(--sub); margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.seg button { flex: 1 1 auto; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(29, 26, 58, .12); }
.sw { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.sw input { width: 18px; height: 18px; accent-color: var(--violet); margin: 1px 0 0; flex: none; }
.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ty { display: grid; justify-items: center; gap: 5px; font-size: 11.5px; color: var(--sub); text-align: center; line-height: 1.25; }
.ty i { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--line); }
.ty.on i { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet-soft); }
.ty.on { color: var(--ink); font-weight: 600; }
.ty-none { background: repeating-conic-gradient(#fff 0 25%, #e4e1f0 0 50%) 0 0 / 10px 10px; }
.ty-color { background: #438edb; }
.ty-grad { background: linear-gradient(135deg, #ffd6e7, #c7d7ff); }
.ty-blur { background: url(/cutout/img/samples/puppy-t.jpg) center / cover; filter: blur(1.5px); }
.ty-image { background: url(/cutout/img/bg/beach-t.jpg) center / cover; }
.sws { display: flex; flex-wrap: wrap; gap: 8px; }
.swc { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swc.g { background: var(--c); }
.swc.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--violet); }
.swc.big { width: auto; height: 40px; border-radius: 10px; padding: 0 14px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.swc.big span { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--ink); }
.clr { display: flex; align-items: center; gap: 8px; }
.clr input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.clr input:not([type=color]) { width: 100px; font-family: ui-monospace, monospace; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.scn { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--sunk); }
.scn img { width: 100%; height: 100%; object-fit: cover; }
.scn span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; color: #fff; font-size: 11.5px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); text-align: left; }
.scn.on { border-color: var(--violet); }
.scn.up { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--sub); }
.scn.up span { color: var(--ink); background: none; position: static; padding: 0; text-align: center; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btns .btn { flex: 1 1 auto; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pre { display: grid; gap: 1px; text-align: left; padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--line); }
.pre b { font-size: 13.5px; }
.pre small { font-size: 11.5px; color: var(--faint); }
.pre.on { border-color: var(--violet); background: var(--violet-soft); }
.num { display: grid; gap: 4px; font-size: 12.5px; color: var(--sub); }
.num input { width: 100%; }
.dims { margin: 0; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.xprev { display: grid; place-items: center; padding: 10px; border-radius: 12px; background: var(--sunk); min-height: 120px; }
.xprev canvas { box-shadow: var(--shadow); }
.xinfo { margin: 0; font-size: 13px; color: var(--sub); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
body.is-editor .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .cmp { margin: 0 auto; max-height: 520px; }
  .cmp-bgs { justify-content: center; } .cmp-note { text-align: center; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebody { grid-template-columns: 72px minmax(0, 1fr) 300px; }
}
@media (max-width: 820px) {
  .tnav { display: none; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: 29px; }
  .sub { font-size: 15px; margin-bottom: 18px; }
  .drop { padding: 22px 16px 18px; }
  .samples { gap: 6px; }
  .smp { width: 50px; height: 50px; }
  .modelbar { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .mb-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .make, .steps, .privacy, .faq { margin-top: 44px; }
  .cards { gap: 10px; }
  .card > div { padding: 10px 12px 12px; }
  .card span { font-size: 12.5px; }
  .steps ol { grid-template-columns: 1fr; gap: 10px; }
  .privacy { grid-template-columns: 1fr; padding: 20px; }
  /* editor on phones: canvas plus a bottom toolbar, settings in a sheet */
  .top.ed { display: none; }
  .ebar { padding: 0 6px; gap: 2px; }
  .fname { max-width: 32vw; font-size: 13px; }
  .hide-m { display: none; }
  .only-m { display: flex !important; }
  .ebar .btn.primary span { display: none; }
  .ebar .btn.primary { padding: 8px 12px; }
  .ebody { display: block; position: relative; }
  .stage { position: absolute; inset: 0 0 calc(64px + env(safe-area-inset-bottom)) 0; }
  .rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
  .rt { flex: 1; padding: 6px 2px; font-size: 11px; }
  .rt svg { width: 21px; height: 21px; }
  .panel { position: absolute; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 11; max-height: 52%; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px -10px rgba(29, 26, 58, .25); transform: translateY(110%); transition: transform .22s ease; padding: 12px 16px 18px; }
  .panel.open { transform: none; }
  .stage-fl { right: 10px; bottom: 10px; }
  .types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scenes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition: none !important; } }
/* cards in a row: content starts at the top so titles and text line up across the row */
.steps li, .card > div { align-content: start; }
/* privacy: light card instead of a dark slab */
.privacy { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.privacy h2 { color: var(--ink); }
.pv-ic { background: var(--mint-soft); color: var(--mint); }
.privacy ul { color: var(--sub); }
.faq summary { align-items: center; }
.faq summary::after { line-height: 1; }
/* settings sheet on wider phones / zoomed windows: swatches stop growing past a thumb-sized tile,
   so more than one row fits in the sheet instead of five 130px squares */
@media (max-width: 820px) {
  .panel .types { grid-template-columns: repeat(5, minmax(0, 84px)); }
  .panel .scenes { grid-template-columns: repeat(4, minmax(0, 110px)); }
}
