:root{color-scheme:dark;--bg:#111320;--panel:#1b1e30;--line:#484366;--ink:#fff5ea;--muted:#beb6d0;--mint:#a4f8d4;--lilac:#c4aaf3;--pink:#ffbcae;font:16px/1.55 system-ui,sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 72% 9%,#20182e,transparent 45%),#10101b}
main{max-width:1312px;margin:auto;padding:clamp(1rem,4vw,3.5rem)}
h1,h2,p{margin-top:0}h1{font-size:clamp(2rem,5vw,3.75rem);line-height:1.02;letter-spacing:-.055em;margin-bottom:.7rem}h2{font-size:1rem;margin-bottom:.75rem}p,small{color:var(--muted)}.kicker,.canvas-tag{color:var(--lilac);font:700 .8rem monospace;letter-spacing:.12em}
button,.button,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:44px;padding:.45rem .85rem;color:var(--ink);text-decoration:none;background:#24253a;border:1px solid var(--line);cursor:pointer;line-height:1.25}
button:hover:not(:disabled),.button:hover{border-color:var(--lilac);translate:0 -2px}button,.button{transition:translate 150ms,border-color 150ms}button:disabled{cursor:default;opacity:.46}:focus-visible,.drop:focus-within{outline:3px solid var(--lilac);outline-offset:4px}.primary{background:var(--mint);color:#10251e;font-weight:800;border-color:var(--mint);box-shadow:4px 4px #487265}
.grid{background-color:#202236;background-image:linear-gradient(45deg,#282940 25%,transparent 25%,transparent 75%,#282940 75%),linear-gradient(45deg,#282940 25%,transparent 25%,transparent 75%,#282940 75%);background-size:20px 20px;background-position:0 0,10px 10px}
.steps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);padding:0;margin:0 0 2.6rem;gap:.25rem;color:var(--muted);font-size:clamp(.67rem,2vw,.9rem);text-align:center}.steps li{display:grid;justify-items:center;gap:.45rem;position:relative}.steps li:not(:last-child)::after{content:"";position:absolute;height:1px;background:var(--line);left:calc(50% + 19px);right:calc(-50% + 15px);top:15px}.steps b{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--line);font-family:monospace}.steps [aria-current]{color:var(--mint)}.steps [aria-current] b{color:#12271f;background:var(--mint);border-color:var(--mint)}.steps .done b{border-color:var(--mint)}
.columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:stretch}.panel{padding:clamp(.85rem,3vw,1.35rem);background:var(--panel);border:1px solid var(--line);min-width:0}.actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.75rem;margin-top:1.2rem}.drop{display:grid;min-height:250px;place-content:center;text-align:center;gap:.5rem;padding:1rem;border:2px dashed #8274ae;cursor:pointer;position:relative}.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.drop.dragging,.drop:hover{border-color:var(--mint)}.upload-icon{font:2rem monospace;color:var(--mint)}
select,textarea{width:100%;background:#151727;color:var(--ink);border:1px solid var(--line);padding:.55rem}.asset strong{overflow-wrap:anywhere}.thumbs img{image-rendering:pixelated;background:#292943}.thumbs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.8rem}
.conversation-layout{display:grid;gap:1rem;align-items:start}
.chat-panel,.plan-panel{padding:clamp(1rem,3vw,1.4rem)}
.chat-title,.plan-title{display:flex;align-items:center;gap:.65rem}
.chat-title,.plan-title h2{font-size:1.15rem}
.bot-icon{display:grid;place-items:center;width:36px;height:36px;color:#161227;background:var(--lilac);font-size:1.45rem}
#chat{display:grid;align-content:start;gap:.7rem;max-height:clamp(12rem,38dvh,22rem);overflow:auto;margin:0 -.3rem .8rem;padding:.25rem .3rem}
.bubble{width:fit-content;max-width:min(92%,44ch);padding:.6rem .85rem .7rem;background:#27273d;border-left:3px solid var(--lilac);overflow-wrap:anywhere}
.bubble.user{justify-self:end;background:#203632;border-left:0;border-right:3px solid var(--mint)}
.bubble b{display:block;margin-bottom:.15rem;color:#dfcef9;font-size:.82rem}
.bubble.user b{color:var(--mint)}
.bubble p{margin:0;color:var(--ink);font-size:1rem;line-height:1.5;white-space:pre-wrap}
#chat-form label{display:block;margin-bottom:.35rem;font-weight:700}
.composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:end}
.composer textarea{min-height:3rem;padding:.65rem .7rem;resize:vertical;border-color:#756d94}
.composer button{background:var(--lilac);color:#181427;border-color:var(--lilac);font-weight:750}
#editor[data-mode=create] .composer{grid-template-columns:minmax(0,1fr)}
#editor[data-mode=create] .composer button{justify-self:end}
.consent{display:flex;gap:.55rem;align-items:center;min-height:44px;margin:0 0 .6rem;font-size:.875rem;color:#e0d8ef}
.consent input{flex:none;width:1.2rem;height:1.2rem;accent-color:var(--mint)}
.plan-panel{border-top:3px solid var(--mint)}
.plan-title{justify-content:space-between;flex-wrap:wrap;margin-bottom:.7rem}
.plan-title h2{margin:0}
.asset-role{display:block;color:var(--mint);font-size:.85rem}
.saved-heads{margin-top:.8rem;padding-top:.65rem;border-top:1px solid var(--line)}
.saved-heads summary{min-height:44px;align-content:center;cursor:pointer;color:var(--lilac)}
.saved-head-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem}
.plan-head{margin:0;display:grid;justify-items:center;gap:.2rem;padding:.3rem .55rem;background:#24263a}
.plan-head figcaption{color:var(--muted);font-size:.8rem}
.work-image-label{position:absolute;bottom:.55rem;left:.65rem;padding:.2rem .6rem;background:var(--panel);font-size:.8rem;color:var(--ink)}
.plan-estimate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0 0 .75rem}
.plan-estimate div{padding:.5rem .7rem;border:1px solid var(--line);background:#202137}
.plan-estimate dt{font-size:.78rem;color:var(--muted)}
.plan-estimate dd{margin:.12rem 0 0;color:var(--mint);font-size:.94rem;font-weight:750}
#plan-change{margin:0 0 .95rem;padding:.7rem .8rem .7rem 2rem;background:#24263a;border:1px solid #444361;color:var(--ink);overflow-wrap:anywhere}
#plan-change li+li{margin-top:.3rem}
#confirm{width:100%;min-height:48px}
@media(min-width:800px){.conversation-layout{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
.work,.result-art{min-height:225px;display:grid;place-items:center;position:relative;overflow:hidden}
.work{border:1px solid var(--lilac);min-height:295px}
.activity-layout{align-items:start}
.work-target{position:relative;display:grid;place-items:center;width:min(78%,280px);aspect-ratio:1;isolation:isolate}
.work-target::before,.work-target::after{content:"";position:absolute;width:22px;height:22px;border:2px solid var(--lilac);pointer-events:none}
.work-target::before{top:0;left:0;border-right:0;border-bottom:0}
.work-target::after{right:0;bottom:0;border-left:0;border-top:0}
.work img{width:87%;image-rendering:pixelated}
.result-art img{width:min(70%,240px);image-rendering:pixelated}
.effect{position:absolute;pointer-events:none;inset:3%;overflow:hidden}
.effect::after{content:"";position:absolute;inset:0;opacity:0}
.work[data-effect=scan] .effect::after{height:2px;background:#c4ffe5;box-shadow:0 0 20px 4px #a4f8d46b;animation:scan 3s ease-in-out infinite}
.work[data-effect=paint] .effect::after{background:linear-gradient(115deg,transparent 36%,#cbadfa55 49%,transparent 62%);animation:sweep 3.2s ease-in-out infinite}
.work[data-effect=frames] img{animation:frames 2.4s ease-in-out infinite}
.work[data-effect=finish] .work-target::before,.work[data-effect=finish] .work-target::after{border-color:var(--mint)}
@keyframes scan{0%,100%{top:5%;opacity:0}12%,68%{opacity:.85}82%{top:95%;opacity:0}}
@keyframes sweep{0%,100%{translate:-65% 0;opacity:0}25%{opacity:.8}65%{translate:65% 0;opacity:0}}
@keyframes frames{50%{translate:0 -5px}}
.activity-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.7rem;color:#e0d8ef;font-size:.86rem}
#connection{display:inline-flex;align-items:center;gap:.5rem}
#connection::before{content:"";width:8px;height:8px;background:var(--pink)}
#connection.connected::before{background:var(--mint);animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 5px #a4f8d427}}
#elapsed{font-variant-numeric:tabular-nums;color:var(--mint)}
#work-label{font-size:1.2rem;line-height:1.35;margin-bottom:.5rem}
#work-note{margin-bottom:.7rem}
.activity-log{padding-top:.65rem;margin-top:.8rem;border-top:1px solid var(--line)}
.activity-log summary{cursor:pointer;min-height:36px;color:var(--lilac)}
#events{padding-left:1.2rem;max-height:280px;overflow:auto;color:var(--muted);margin-bottom:0}
#events li+li{margin-top:.4rem}
#summary{white-space:pre-wrap}#metrics{margin-top:.8rem}#atlas{max-width:100%;image-rendering:pixelated}dialog{max-width:min(92vw,640px);width:100%;color:var(--ink);background:var(--panel);border:1px solid var(--lilac)}dialog::backdrop{background:#0d0e18d9}#notice{padding:.7rem;border-left:3px solid var(--pink);background:#3d283a;color:var(--ink)}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Small screens define the default layout. */
.columns{grid-template-columns:1fr}
.steps{margin-bottom:1.5rem}
.comparison{grid-template-columns:1fr 1fr}
.result-art{min-height:120px}
.actions>.primary{width:100%;order:-1}
.work{min-height:295px}
@media(min-width:681px){
  .columns{grid-template-columns:1fr 1fr}
  .steps{margin-bottom:2.6rem}
  .result-art{min-height:225px}
  .actions>.primary{width:auto;order:0}
  .work{min-height:340px}
}

@font-face{font-family:Pixelify;src:url('/art/pixelify.ttf') format('truetype');font-weight:400 700;font-display:swap}
:root{--display:Pixelify,ui-monospace,monospace;--line:#4b3d62;--panel:#1c192b;--bg:#10101b;--mint:#9af4d3;--lilac:#c9acf7;--muted:#c0b6cf;--pixel-corners:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px))}
@font-face {
  font-family: Manrope;
  src: url('/art/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --hero-font: Manrope, system-ui, sans-serif;
  --hero-bg: #170b27;
  --hero-ink: #fcf8ff;
  --hero-lilac: #cb9afb;
  --hero-gutter: clamp(1rem, 3.5vw, 3.625rem);
  --site-content-width: 1312px;
  --header-min-height: clamp(3.75rem, 5.4vw, 5.625rem);
}

body:has(#home:not([hidden])) {
  background: radial-gradient(ellipse at 59% 9%, #1f1033, transparent 47%), var(--hero-bg);
}

main:has(> #home:not([hidden])) {
  max-width: none;
  padding: 0;
}

.site-header {
  border-bottom: 1px solid #845fa8;
  background: #1a0e2a;
}

.header-inner,
.intro,
.home-content {
  max-width: var(--site-content-width);
  margin-inline: auto;
  padding-inline: var(--hero-gutter);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 .75rem;
  min-height: var(--header-min-height);
  padding-block: .3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  white-space: nowrap;
  color: var(--hero-ink);
  font: 800 clamp(1.25rem, 2.6vw, 2.75rem)/1 var(--hero-font);
  letter-spacing: -.05em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: clamp(.5rem, 2vw, 2.1rem);
}

.site-header nav a,
.site-header nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  color: var(--hero-ink);
  font: 500 clamp(.78rem, 1.77vw, 1.85rem)/1.2 var(--hero-font);
}

.site-header nav a:hover,
.site-header nav button:hover { color: var(--hero-lilac); translate: none; }
.editor-home{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);background:none;border:0;padding:0;font-size:.95rem;font-weight:650;text-decoration:none;white-space:nowrap}
.editor-home:hover{color:var(--mint);translate:none}
.kicker{font:700 .75rem/1.3 ui-monospace,monospace;letter-spacing:.13em;color:var(--lilac)}

.intro {
  --hero-height: calc(100dvh - var(--site-header-height, calc(var(--header-min-height) + 1px)));
  --hero-padding-block: clamp(1.5rem, 5dvh, 3.375rem);
  display: grid;
  align-items: center;
  align-content: center;
  gap: clamp(1.5rem, 5vw, 3.25rem);
  min-block-size: var(--hero-height);
  padding-block: var(--hero-padding-block);
  color: var(--hero-ink);
  font-family: var(--hero-font);
}

.hero-copy { position: relative; z-index: 1; text-align: center; }
.intro h1 {
  margin: 0 0 .24em;
  font-size: clamp(2.13rem, 9.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.066em;
  line-height: .98;
}
.intro h1 span { display: block; }
.hero-description {
  margin: 0 auto clamp(1.15rem, 2.1vw, 2.25rem);
  max-width: 54ch;
  color: #f4eafb;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  line-height: 1.42;
  letter-spacing: -.026em;
  text-wrap: balance;
}

.hero-start {
  min-height: 48px;
  padding: .55em 1.15em;
  border: 0;
  border-radius: .57em;
  color: #1c0e2c;
  background: #cd9bfc;
  box-shadow: inset 0 1px 1px #f0cbff91, 0 5px 24px #08031135;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 750;
  letter-spacing: -.018em;
  transition: background 180ms, translate 180ms, box-shadow 180ms;
}
.hero-start:hover {
  background: #e1bafe;
  box-shadow: inset 0 1px 1px #f7e1ff, 0 8px 30px #a36ed14d;
}

.intro-art {
  position: relative;
  width: min(100%, 34rem);
  min-width: 0;
  margin: 0 auto;
}

.hero-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.hero-scene::before,
.hero-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -4% -12%;
  pointer-events: none;
}

.hero-scene::before {
  background: radial-gradient(ellipse at 50% 52%, #a653dbc4 0%, #8c43c5a1 25%, #50277c65 49%, transparent 72%);
}

.hero-scene::after {
  --grid-step: clamp(.75rem, 1.85vw, 1.95rem);
  background:
    linear-gradient(#dcc1fa26 1px, transparent 1px),
    linear-gradient(90deg, #dcc1fa26 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 27%, #000c 53%, transparent 76%);
}

.hero-viewport {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: min(86%, 52dvh);
  aspect-ratio: 1.12;
  --corner: clamp(1rem, 2.65vw, 2.7rem);
  --stroke: clamp(2px, .34vw, 6px);
  --corner-color: #d5a7fd;
  background:
    linear-gradient(var(--corner-color), var(--corner-color)) top left / var(--corner) var(--stroke),
    linear-gradient(var(--corner-color), var(--corner-color)) top left / var(--stroke) var(--corner),
    linear-gradient(var(--corner-color), var(--corner-color)) top right / var(--corner) var(--stroke),
    linear-gradient(var(--corner-color), var(--corner-color)) top right / var(--stroke) var(--corner),
    linear-gradient(var(--corner-color), var(--corner-color)) bottom left / var(--corner) var(--stroke),
    linear-gradient(var(--corner-color), var(--corner-color)) bottom left / var(--stroke) var(--corner),
    linear-gradient(var(--corner-color), var(--corner-color)) bottom right / var(--corner) var(--stroke),
    linear-gradient(var(--corner-color), var(--corner-color)) bottom right / var(--stroke) var(--corner);
  background-repeat: no-repeat;
}

.hero-head {
  grid-area: 1 / 1;
  display: block;
  width: 88%;
  height: 94%;
  object-fit: contain;
  image-rendering: pixelated;
}

.hero-restyle { opacity: 0; width: 87%; height: 97%; align-self: end; }

.hero-sketch {
  opacity: 0;
  filter: grayscale(1) brightness(1.3);
}

.hero-cursor {
  --cursor-color: #edb0ff;
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(1px 2px 0 #170b27);
}
.hero-cursor-color { --cursor-color: #a1f5da; }
.hero-cursor-style { --cursor-color: #ffd287; }
.hero-cursor i {
  display: block;
  width: clamp(.94rem, 1.45vw, 1.5rem);
  aspect-ratio: 1;
  background: var(--cursor-color);
  clip-path: polygon(3% 1%, 4% 94%, 32% 71%, 48% 99%, 66% 90%, 51% 62%, 91% 58%);
}
.hero-cursor-pencil i {
  clip-path: polygon(2% 94%, 13% 54%, 62% 4%, 75% 3%, 97% 24%, 97% 35%, 45% 86%);
  translate: 0 -95%;
}
.hero-cursor span {
  position: absolute;
  left: clamp(.75rem, 1.3vw, 1.35rem);
  top: clamp(.65rem, 1.2vw, 1.22rem);
  padding: .24em .62em;
  border-radius: .35em;
  background: var(--cursor-color);
  color: #211332;
  font-size: clamp(.65rem, 1.05vw, .94rem);
  font-weight: 800;
  white-space: nowrap;
}
.hero-cursor-pencil span { top: -.36rem; }

.intro-art[data-demo] :is(.hero-head, .hero-cursor) {
  animation-duration: 21s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-play-state: paused;
}
.intro-art[data-demo="playing"] :is(.hero-head, .hero-cursor) { animation-play-state: running; }
.intro-art[data-demo] .hero-original { animation-name: hero-original; }
.intro-art[data-demo] .hero-restyle { animation-name: hero-restyle; }
.intro-art[data-demo] .hero-sketch { animation-name: hero-sketch; }
.intro-art[data-demo] .hero-cursor-pencil { animation-name: hero-pencil; }
.intro-art[data-demo] .hero-cursor-color { animation-name: hero-color; }
.intro-art[data-demo] .hero-cursor-style { animation-name: hero-style; }

@keyframes hero-original {
  0%, 40%, 77%, 100% { opacity: 1; }
  44%, 73% { opacity: 0; }
}
@keyframes hero-restyle {
  0%, 40%, 77%, 100% { opacity: 0; }
  44%, 73% { opacity: 1; }
}
@keyframes hero-sketch {
  0%, 10% { opacity: 0; clip-path: inset(3% 75% 60% 14%); }
  14% { opacity: .65; clip-path: inset(6% 65% 58% 23%); animation-timing-function: steps(5); }
  21% { opacity: .72; clip-path: inset(16% 42% 49% 38%); animation-timing-function: steps(4); }
  27% { opacity: .52; clip-path: inset(25% 34% 47% 48%); }
  33%, 100% { opacity: 0; clip-path: inset(29% 30% 45% 52%); }
}
@keyframes hero-pencil {
  0%, 7% { opacity: 0; top: 13%; left: 26%; }
  13% { opacity: 1; top: 21%; left: 32%; }
  20% { opacity: 1; top: 30%; left: 48%; }
  27% { opacity: 1; top: 43%; left: 57%; }
  33%, 100% { opacity: 0; top: 49%; left: 60%; }
}
@keyframes hero-color {
  0%, 24% { opacity: 0; top: 15%; left: 72%; }
  30% { opacity: 1; top: 26%; left: 65%; }
  38% { opacity: 1; top: 36%; left: 57%; }
  44% { opacity: 1; top: 46%; left: 70%; }
  51%, 100% { opacity: 0; top: 49%; left: 73%; }
}
@keyframes hero-style {
  0%, 35% { opacity: 0; top: 18%; left: 32%; }
  39% { opacity: 1; top: 17%; left: 36%; }
  44% { opacity: 1; top: 20%; left: 46%; }
  50% { opacity: 1; top: 27%; left: 53%; }
  56%, 64% { opacity: 0; top: 32%; left: 59%; }
  69% { opacity: 1; top: 27%; left: 64%; }
  75% { opacity: 1; top: 18%; left: 53%; }
  80% { opacity: 1; top: 25%; left: 36%; }
  85%, 100% { opacity: 0; top: 28%; left: 26%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: home-appear .62s cubic-bezier(.2,.7,.25,1) backwards; }
  .intro-art { animation: home-appear .7s .11s cubic-bezier(.2,.7,.25,1) backwards; }
  .home-content .scroll-reveal {
    opacity: 0;
    transform: translateY(2rem);
  }
  .home-content .scroll-reveal.is-visible {
    transition: opacity .58s ease-out, transform .68s cubic-bezier(.2,.7,.25,1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .home-content .scroll-reveal:is(.is-visible, :focus-within) {
    opacity: 1;
    transform: translateY(0);
  }
  .home-content .scroll-reveal:focus-within { transition-duration: 0s; transition-delay: 0s; }
}

@media (min-width: 790px) {
  .workshop-carousel.scroll-reveal { --reveal-delay: .08s; }
  .about-copy.scroll-reveal { --reveal-delay: .12s; }
}

@keyframes home-appear {
  from { opacity: .28; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

.home-content {
  padding-bottom: clamp(1rem,4vw,3.5rem);
}

@media (min-width: 744px), (min-width: 500px) and (orientation: landscape) {
  .site-header nav { column-gap: clamp(1.6rem, 3.8vw, 4rem); }
  .intro {
    grid-template-columns: minmax(0,1fr) minmax(0,1.015fr);
    gap: 0;
  }
  .hero-copy { translate: 0 clamp(-2rem, -1.9vw, -.85rem); }
  .intro h1 {
    margin-bottom: .18em;
    font-size: clamp(3.5rem, min(6.7vw, 14dvh), 7rem);
    letter-spacing: -.045em;
  }
  .hero-description { letter-spacing: -.015em; }
  .hero-start {
    min-height: clamp(3rem, 3.4vw, 3.5rem);
    padding-inline: 1.35em;
  }
  .intro-art { width: 100%; }
  .hero-viewport {
    width: min(78%, max(8rem, calc((var(--hero-height) - 2 * var(--hero-padding-block)) * 1.12)));
  }
}

@media (min-width: 500px) and (max-width: 743px) and (orientation: landscape) {
  .intro { --hero-padding-block: 1rem; column-gap: 1rem; }
  .hero-copy { translate: none; }
  .intro h1 { font-size: clamp(2.13rem, 6.3vw, 3.5rem); }
  .hero-description { margin-bottom: .75rem; }
}

@media (max-width: 390px) {
  .site-header nav a, .site-header nav button { font-size: .74rem; }
}

@media (max-width: 743px) and (max-height: 820px) and (orientation: portrait) {
  .intro { --hero-padding-block: 1.2rem; gap: 1rem; }
  .hero-description { margin-bottom: 1rem; }
  .hero-viewport { width: min(82%, 40dvh); }
}

.primary{position:relative;min-height:48px;padding:.65rem 1.12rem;box-shadow:none;border:0;clip-path:var(--pixel-corners);transition:background 160ms,translate 160ms}
.primary:hover:not(:disabled){background:#c5ffe9}
.primary:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #25463d}
.text-button{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;color:var(--lilac);font-size:.94rem;font-weight:700;text-decoration:none}
.text-button:hover{color:var(--mint);text-decoration:underline;text-underline-offset:4px}
.workshop,.examples,.about{scroll-margin-top:1rem;border-top:1px solid #463753;padding:2.4rem 0}
.section-heading h2,.about h2{font:700 clamp(2.4rem,6vw,4rem)/.98 var(--display);letter-spacing:-.04em;margin-bottom:1.3rem}
.workshop .section-heading { text-align: center; }
.workshop-carousel {
  position: relative;
  isolation: isolate;
  border-block: 1px solid #6f50954d;
  background: radial-gradient(ellipse at 50% 45%, #372050, transparent 72%);
}
.workshop-carousel::before,
.workshop-carousel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: 33%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c598f9a6 26%, #e0b3ff72 74%, transparent);
  box-shadow: 0 0 14px #a560e96e;
  pointer-events: none;
}
.workshop-carousel::after { top: 66%; }

.mode-track {
  --mode-width: min(71vw, 21rem);
  --mode-spacing: clamp(.85rem, 2vw, 1.5rem);
  position: relative;
  display: flex;
  gap: var(--mode-spacing);
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #8767af #241834;
  padding: 1.25rem max(0px, calc((100% - var(--mode-width)) / 2)) 1.75rem;
}

.mode-track[data-carousel] { scrollbar-width: none; }
.mode-track[data-carousel]::-webkit-scrollbar { display: none; }
.mode-track:focus-visible { outline-offset: -3px; }
.mode-track[data-dragging] { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.mode-track[data-dragging] .mode { cursor: grabbing; }

.mode {
  --mode-accent: #d7b1ff;
  display: flex;
  flex: 0 0 var(--mode-width);
  flex-direction: column;
  align-items: stretch;
  gap: .9rem;
  min-width: 0;
  padding: .72rem;
  text-align: left;
  color: var(--hero-ink);
  background: linear-gradient(145deg, #2d2040, #1b112c 70%);
  border: 1px solid #695184;
  border-radius: 1.15rem;
  box-shadow: 0 .75rem 1.25rem #0f071b60, inset 0 1px #e7c1fe30;
  scroll-snap-align: center;
  transform-origin: 50% 60%;
}
.mode[data-current] { border-color: var(--mode-accent); }
.mode:focus-visible { outline-offset: 3px; }
#start-card { --mode-accent: #a4efd5; }
#create-card { --mode-accent: #c5a6fa; }
#start-female-card { --mode-accent: #f1aacd; }
#create-female-card { --mode-accent: #a8c9f6; }
#start-body-card { --mode-accent: #f0bd9d; }
.mode-live:hover:not(:disabled) { border-color: var(--mode-accent); translate: none; }

.mode-top {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(8.6rem, 15vw, 11.2rem);
  border: 1px solid #ad8fcb69;
  border-radius: .66rem;
  background: radial-gradient(ellipse at 50% 57%, color-mix(in srgb, var(--mode-accent) 30%, #20172d), #1b1329 75%);
}
.mode-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#e7c2ff22 1px, transparent 1px),
    linear-gradient(90deg, #e7c2ff22 1px, transparent 1px);
  background-position: center;
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse at center, #000 24%, transparent 86%);
}
.mode-top::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 11%;
  left: 22%;
  width: 56%;
  height: 21%;
  border: 1px solid color-mix(in srgb, var(--mode-accent) 55%, transparent);
  border-radius: 50%;
  background: #221534;
  box-shadow: 0 5px #170f24, 0 0 22px color-mix(in srgb, var(--mode-accent) 21%, transparent);
}
.mode-top img {
  width: clamp(6.1rem, 13vw, 8.1rem);
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 7px 4px #100820a0);
  pointer-events: none;
}
.mode-status {
  position: absolute;
  top: .52rem;
  right: .52rem;
  padding: .25rem .46rem;
  border: 1px solid #9b80b076;
  border-radius: .3rem;
  background: #1d132dfa;
  color: var(--mode-accent);
  font: 650 .67rem/1.2 ui-monospace, monospace;
}

.mode-text { display: flex; flex: 1; flex-direction: column; gap: .42rem; padding: 0 .26rem .25rem; }
.mode h3, .mode strong { display: block; margin: 0; font-size: clamp(1rem, 2.3vw, 1.18rem); line-height: 1.25; }
.mode p, .mode-copy { margin: 0; color: #d2c0e3; font-size: .87rem; line-height: 1.43; }
.mode-launch { margin-top: auto; padding-top: .65rem; color: var(--mode-accent); font-size: .87rem; font-weight: 750; }

@media (prefers-reduced-motion: no-preference) {
  .mode-track[data-carousel] .mode {
    transform: perspective(850px) translateY(calc(var(--mode-depth, 0) * 13px))
      rotateY(calc(var(--mode-offset, 0) * -13deg)) scale(calc(1 - var(--mode-depth, 0) * .065));
  }
}

.workshop-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 1rem;
}
.workshop-controls button {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #8062a7;
  border-radius: .7rem;
  background: #271a39;
  color: #f3dcff;
  font-size: 1.2rem;
}
.workshop-controls button:hover:not(:disabled) { border-color: var(--hero-lilac); background: #3a2551; translate: none; }
.workshop-position { min-width: 4ch; text-align: center; color: #decbef; font: 750 .8rem/1.35 var(--hero-font); }

#examples-title span { white-space: nowrap; }
.example-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}
.example-filters button,
.example-use {
  border-radius: .55rem;
  background: #281a3a;
  border-color: #705586;
  color: #f6ebff;
  font-size: .85rem;
  font-weight: 750;
}
.example-filters button { min-height: 44px; padding: .35rem .72rem; }
.example-filters button[aria-pressed="true"],
.example-use { border-color: #d0a7fa; background: #cc9cf4; color: #211331; }
.example-filters button:hover:not(:disabled),
.example-use:hover:not(:disabled) { translate: none; }

.example-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.8rem, 1.4vw, 1.2rem);
}
.example-empty { color: #d1bce5; }
.example-card {
  --plate-ink: #e2c7ff;
  --plate-grid: #d5adff20;
  --plate-glow: #49335d;
  --plate-base: #21152d;
  align-self: start;
  min-width: 0;
  display: grid;
  padding: .58rem;
  background: #1c1428;
  border: 1px solid #604779;
  border-radius: .48rem;
  box-shadow: 0 .55rem 1.5rem #10081577;
}
.example-card.example-featured {
  border-color: #af86ce;
  background: linear-gradient(145deg, #302140, #1d152a 45%);
}
.example-card[data-kind="create"] {
  --plate-ink: #cef6df;
  --plate-grid: #a9e8cb21;
  --plate-glow: #314c4c;
  --plate-base: #18282c;
  border-color: #426660;
}
.example-plates, .example-overlay-layer {
  background:
    linear-gradient(var(--plate-grid) 1px, transparent 1px) center / .65rem .65rem,
    linear-gradient(90deg, var(--plate-grid) 1px, transparent 1px) center / .65rem .65rem,
    radial-gradient(ellipse at 50% 42%, var(--plate-glow), var(--plate-base) 85%);
}
.example-plates {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--plate-grid);
  isolation: isolate;
}
.example-plates::before, .example-plates::after {
  position: absolute;
  z-index: 1;
  width: .65rem;
  height: .65rem;
  border: solid var(--plate-ink);
  pointer-events: none;
  content: "";
}
.example-plates::before { inset: .42rem auto auto .42rem; border-width: 1px 0 0 1px; }
.example-plates::after { inset: auto .42rem .42rem auto; border-width: 0 1px 1px 0; }
.example-plates.is-paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.example-plates.has-reference {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.has-reference .example-plate { padding-inline: .35rem; }
.has-reference .example-set {
  --plate-glow: #705786;
}
.example-set .example-plate img, .example-set .example-overlay-layer img {
  aspect-ratio: 32 / 46;
}
.example-set .example-plate img { width: min(100%, 7.25rem); }
.example-set .example-overlay-view { aspect-ratio: 4 / 3; }
.example-set .example-overlay-layer img { width: min(44%, 8.5rem); }
.example-plate figcaption { text-align: center; }
.has-reference .example-pair-arrow { inset-inline-start: calc(200% / 3); }
.example-plate {
  min-width: 0;
  min-height: clamp(10.75rem, 41vw, 13rem);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: .65rem .65rem .52rem;
  margin: 0;
}
.is-paired .example-plate:last-child {
  border-inline-start: 1px dashed #e1c9fa5c;
  background: radial-gradient(ellipse at 52% 38%, #b68bed25, transparent 80%);
}
.example-plate img, .example-overlay-layer img {
  display: block;
  width: min(100%, 8.25rem);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 0 #10071760);
}
.example-plate figcaption {
  color: var(--plate-ink);
  background: var(--plate-base);
  border: 1px solid var(--plate-grid);
  padding: .18rem .38rem;
  font: 650 .72rem/1.3 ui-monospace, monospace;
}
.example-pair-arrow {
  position: absolute;
  inset: 44% auto auto 50%;
  translate: -50% -50%;
  border: 1px solid #b191cb;
  padding: .08rem .34rem;
  background: #2e2040;
  color: #f6e6ff;
  font: 700 .93rem/1.25 ui-monospace, monospace;
}
.example-overlay {
  width: 100%;
  min-width: 0;
}
.example-overlay > summary {
  min-height: 44px;
  align-content: center;
  color: var(--plate-ink);
  font-size: .85rem;
  cursor: pointer;
}
.example-overlay-view {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid #9e7bb7;
}
.example-overlay-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.example-overlay-layer img { width: min(45%, 10rem); }
.example-overlay-layer + .example-overlay-layer { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.example-overlay-view::after {
  position: absolute;
  inset: 0 auto 0 var(--reveal);
  width: 2px;
  background: #efd5ff;
  box-shadow: 0 0 8px #f0d6fc80;
  content: "";
}
.example-overlay-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .6rem;
  color: var(--plate-ink);
  font: 650 .72rem/1.3 ui-monospace, monospace;
}
.example-overlay-control input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  margin: 0;
  accent-color: #dfbaf9;
}
@media (min-width: 640px) {
  .example-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .examples {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.6rem;
  }
  #examples-home { display: contents; }
  #examples-home > :is(.example-board, .example-empty) { grid-column: 1 / -1; }
  #examples-home .example-filters { justify-content: end; }
  #examples-home .example-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #examples-home .example-featured { grid-column: span 2; }
  #examples-home .example-featured .example-plate img { width: min(100%, 10.5rem); }
  #examples-home .example-featured.example-set .example-plate img { width: min(100%, 8.5rem); }
  #examples-home .example-board:has(> .example-featured):has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    > .example-card { grid-column: span 3; }
    > :nth-child(2) { grid-column: span 4; }
    > .example-featured { grid-column: span 8; }
  }
}

.example-art {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: clamp(.7rem, 2vw, 1.15rem);
  gap: 1px;
  background: #160d23;
  border-bottom: 1px solid #624681;
}
.example-art figure {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  margin: 0;
  padding: clamp(.55rem, 1.8vw, 1rem);
  border: 1px solid #8761a75e;
  border-radius: .6rem;
  background:
    linear-gradient(#c898f523 1px, transparent 1px) center / 12px 12px,
    linear-gradient(90deg, #c898f523 1px, transparent 1px) center / 12px 12px,
    radial-gradient(ellipse at 50% 54%, #48305f, #231431 82%);
}
.example-art img {
  display: block;
  width: min(100%, 8rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px #10051e99);
}
.example-art figcaption {
  margin-top: .25rem;
  color: #efddff;
  font: 650 .72rem/1.4 ui-monospace, monospace;
}
.example-info {
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0;
  padding: .83rem .55rem .3rem;
}
.example-card-title { width: 100%; padding-bottom: .6rem; border-bottom: 1px solid #9b80a747; }
.example-info h3 {
  margin: .24rem 0 0;
  color: #fcf5ff;
  font: 800 clamp(1.2rem, 2vw, 1.55rem)/1.12 var(--hero-font);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.example-info .example-use { min-height: 44px; margin-top: .25rem; }

.example-kind { color: var(--plate-ink); font: 650 .72rem/1.35 ui-monospace, monospace; }
.example-notes { width: 100%; min-width: 0; font-size: .9rem; }
.example-notes summary { min-height: 44px; align-content: center; color: #e9caff; cursor: pointer; }
.example-notes blockquote {
  margin: .35rem 0 .55rem;
  padding-left: .78rem;
  border-left: 2px solid #a47acb;
  color: #f6edf9;
  overflow-wrap: anywhere;
}
.example-summary { margin: 0 0 .3rem; color: #d0bedc; }
.example-summary:not(.credited)::before { content: "Graal Bot · "; color: #e5c8ff; font-weight: 750; }
.chat-example-link {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.chat-example-link button {
  padding: .28rem .3rem;
  margin-inline-start: .12rem;
  border: 0;
  background: none;
  color: #e4c4ff;
  font-size: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.chat-example-link button:hover:not(:disabled) { translate: none; color: white; }
#example-dialog {
  width: min(54rem, calc(100% - 1.75rem));
  max-width: none;
  max-height: 88dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #8864aa;
  border-radius: 1.15rem;
  background: #1c122a;
}
#example-dialog[open] { display: flex; flex-direction: column; }
#example-dialog .history-header h2 { font-family: var(--hero-font); }
.example-dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}
.example-status {
  padding: .6rem .78rem;
  border: 1px solid #a36b94;
  border-radius: .5rem;
  background: #3d283a;
  color: #ffe5eb;
}
@media (max-width: 600px) {
  #example-dialog {
    width: 100%;
    margin: auto 0 0;
    border-radius: 1rem 1rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.admin-shell { max-width: 1180px; }
.admin-shell h1 { margin-bottom: 1.4rem; }
.admin-login, .admin-filter, .admin-card {
  border: 1px solid #735391;
  background: linear-gradient(145deg, #251831, #1b1428);
  border-radius: .9rem;
}
.admin-login { display: grid; gap: .65rem; max-width: 34rem; padding: 1.2rem; }
.admin-login h2, .admin-login p { margin: 0; }
.admin-login code { color: #f0dafe; overflow-wrap: anywhere; }
.admin-login button { justify-self: start; }
.admin-shell label { display: grid; gap: .3rem; color: #ead8f5; font-weight: 650; }
.admin-shell input:not([type="checkbox"]) {
  min-height: 44px; width: 100%; padding: .55rem; color: var(--ink); background: #151727; border: 1px solid var(--line); font: inherit;
}
.admin-shell textarea { display: block; resize: vertical; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; padding: .9rem; }
.admin-filter label:first-child { flex: 1 0 min(100%, 16rem); }
.admin-filter select { min-height: 44px; }
#admin-status { padding: .7rem; border-left: 3px solid var(--lilac); background: #33213f; color: #f7eaff; }
#admin-count { margin-top: .8rem; }
.admin-results { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.admin-card { min-width: 0; align-self: start; }
.admin-card-header { display: flex; justify-content: space-between; align-items: start; gap: .6rem; padding: .9rem; }
.admin-card-header h2 { font-size: clamp(1rem, 2vw, 1.24rem); margin: 0 0 .2rem; overflow-wrap: anywhere; }
.admin-card-header p { margin: 0; font-size: .8rem; }
.admin-visibility { padding: .25rem .5rem; border: 1px solid #8d72a2; border-radius: 2rem; white-space: nowrap; color: #dcc5eb; font-size: .73rem; }
.admin-visibility[data-published="true"] { background: #1c3732; border-color: #538d7c; color: #b5ffdf; }
.admin-card-content { padding: .75rem .9rem 1rem; }
.admin-card .example-art img { width: min(100%, 6.4rem); }
.admin-card .example-notes { margin-bottom: .5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-cost-missing, .admin-cost-status { margin: 0 0 .5rem; color: var(--muted); font-size: .85rem; }
.admin-session-cost { margin-bottom: .65rem; }
.admin-session-cost .admin-cost-status { margin-bottom: 0; }
.admin-cost-link { display: inline-flex; align-items: center; min-height: 44px; color: #edcaff; }
.admin-example-form { display: grid; gap: .65rem; }
.admin-example-form button { justify-self: start; }
.admin-shell .admin-publish { display: flex; align-items: center; min-height: 44px; gap: .5rem; }
.admin-publish input { width: 1.12rem; height: 1.12rem; accent-color: var(--hero-lilac); }
.admin-feedback:not(:empty) { color: #ead3ef; min-height: 1rem; }
.admin-pages { display: flex; justify-content: center; gap: .7rem; margin-top: 1rem; }
@media (min-width: 760px) { .admin-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about { display: grid; justify-items: center; gap: clamp(1.65rem, 4vw, 2.6rem); }
.about-portrait {
  --photo-clip: polygon(0 0, 0 0, 0 100%, 0 100%);
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, clamp(13rem, 31vw, 17rem));
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid #a87eda;
  border-radius: .9rem;
  background: #271938;
  box-shadow: 0 14px 32px #09051280;
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-portrait:hover:not(:disabled) { translate: none; }
.portrait-pixel { image-rendering: pixelated; }
.portrait-real {
  clip-path: var(--photo-clip);
  transition: clip-path 440ms steps(15, end);
}
.portrait-hint {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .32rem .62rem;
  border: 1px solid #ad88d8;
  border-radius: .42rem;
  background: #1d1229;
  color: #f8eeff;
  font: 700 .78rem/1.35 var(--hero-font);
}
.portrait-hint span:last-child,
.about-portrait[aria-pressed="true"] .portrait-hint span:first-child { display: none; }
.about-portrait[aria-pressed="true"] .portrait-hint span:last-child { display: inline; }
.about-portrait[aria-pressed="true"],
.about-portrait[data-photo-preview] {
  --photo-clip: polygon(0 0, 125% 0, 100% 100%, 0 100%);
}
.about-portrait[data-photo-preview] .portrait-hint span:first-child { display: none; }
.about-portrait[data-photo-preview] .portrait-hint span:last-child { display: inline; }
.about-copy { text-align: center; }
.about-copy p:not(.kicker) { max-width: 62ch; margin-inline: auto; }
.home-footer{display:flex;align-items:center;justify-content:space-between;gap:.65rem 1.2rem;flex-wrap:wrap;border-top:1px solid #463753;padding-top:1rem;color:var(--lilac);font-size:.84rem}
.home-footer span{font:700 1.15rem var(--display)}.home-footer p{margin:0}.home-footer a{color:var(--lilac);padding:.45rem 0}
@media(min-width:790px){
  .workshop,.examples,.about{padding:3.25rem 0}
  .about {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: clamp(2rem, 7vw, 6rem);
  }
  .about-portrait { width: 100%; }
  .about-copy { text-align: left; }
  .about-copy p:not(.kicker) { max-width: 65ch; margin-inline: 0; }
}
.editor-home{margin-bottom:.5rem}
#editor{max-width:1010px;margin:auto}
.stage{animation:stage-in 320ms cubic-bezier(.2,.7,.25,1) both}
@keyframes stage-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
.stage-heading{text-align:center;margin:0 auto 1.4rem;max-width:850px}
.stage-heading h1{font:700 clamp(2.5rem,7vw,4.45rem)/.95 var(--display);letter-spacing:-.035em}
.steps{max-width:740px;margin-inline:auto}
.steps b{font-family:var(--display);width:34px;height:34px}
.steps li:not(:last-child)::after{top:17px}
.steps .done{color:var(--mint)}
.panel{box-shadow:4px 4px #12101d}
.drop{border-color:#9c7ebc}
.result-art,.work,.drop{background-size:24px 24px;background-position:0 0,12px 12px}
.activity-layout{align-items:stretch}
.work{min-height:295px;border:1px solid #a18bc0;background-color:#1b182b;isolation:isolate}
.work::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,#936ece38,transparent 72%)}
.work-target{width:min(78%,320px)}
.work-target::before,.work-target::after{z-index:2}
.work-target img{width:86%;filter:drop-shadow(0 6px 9px #0e0b17a6)}
.work-target .sprite-arrival{animation:sprite-arrival 740ms ease-out}
@keyframes sprite-arrival{from{opacity:.3;scale:.94;filter:brightness(1.7)}to{opacity:1;scale:1}}
.work-candidate{position:absolute;right:.55rem;top:.55rem;color:var(--mint);background:var(--panel);padding:.2rem .45rem;font:700 .73rem/1.4 ui-monospace,monospace}
.work-candidate:empty{display:none}
.work[data-effect=inspect] .work-target::before,.work[data-effect=inspect] .work-target::after{animation:calibrate 2s ease-in-out infinite alternate}
@keyframes calibrate{from{opacity:.55;scale:.85}to{opacity:1;scale:1.1}}
.work[data-effect=finish] .effect::after{background:radial-gradient(ellipse,#9af4d343,transparent 67%);animation:validate 2.4s ease-out infinite}
@keyframes validate{0%{opacity:.9;scale:.75}80%,100%{opacity:0;scale:1.16}}
.effect i{position:absolute;left:var(--x);top:var(--y);width:6px;height:6px;background:var(--spark-color,var(--mint));box-shadow:0 0 9px currentColor;color:var(--spark-color,var(--mint));opacity:0}
.effect i:nth-child(1){--x:24%;--y:64%;--delay:0s}.effect i:nth-child(2){--x:73%;--y:31%;--delay:-.45s;--spark-color:var(--pink)}.effect i:nth-child(3){--x:69%;--y:69%;--delay:-.85s}.effect i:nth-child(4){--x:34%;--y:33%;--delay:-1.25s;--spark-color:var(--lilac)}.effect i:nth-child(5){--x:54%;--y:67%;--delay:-1.55s;--spark-color:var(--pink)}.effect i:nth-child(6){--x:46%;--y:26%;--delay:-1.8s}
.work[data-effect=paint] .effect i,.work[data-effect=frames] .effect i{animation:pixel-dust 2s var(--delay) steps(7,end) infinite}
@keyframes pixel-dust{0%{opacity:0;translate:4px 10px}25%{opacity:.85}80%,100%{opacity:0;translate:-8px -20px}}
#elapsed{font:700 1rem ui-monospace,monospace}
#events{list-style:none;padding:0;margin:0;max-height:180px}
#events li{display:grid;grid-template-columns:3.1rem minmax(0,1fr);gap:.45rem;padding:.32rem .4rem;font-size:.81rem;border-left:2px solid #513f6e;animation:stage-in 230ms ease-out}
#events li:last-child{border-color:var(--mint);background:#252b36;color:var(--ink)}
#events time{color:var(--lilac);font-family:ui-monospace,monospace}
#events li+li{margin-top:.2rem}
.milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.85rem 0;padding:0;list-style:none}
.milestones li{display:grid;justify-items:start;align-content:start;gap:.17rem;padding:.55rem;min-width:0;background:#1a1828;border:1px solid #463953}
.milestones strong{font-size:clamp(.68rem,2.6vw,.94rem);line-height:1.25}
.milestones small{font-size:.72rem}
.milestone-icon{display:grid;place-items:center;width:26px;height:26px;margin-bottom:.15rem;background:#322841;color:var(--lilac)}
.milestones [aria-current]{border-color:var(--mint);background:#202f31}
.milestones [aria-current] .milestone-icon{background:var(--mint);color:#162b23;animation:pulse 1.8s ease-in-out infinite}
.milestones .reached small{color:var(--mint)}
.activity-progress{padding:.65rem .85rem}
.activity-progress label{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem;color:var(--muted)}
.activity-progress label span{color:var(--mint);font-variant-numeric:tabular-nums}
.activity-progress progress{width:100%;height:9px;accent-color:var(--mint);appearance:none}
.activity-progress progress::-webkit-progress-bar{background:#3e3550}
.activity-progress progress::-webkit-progress-value{background:var(--mint);transition:width 350ms ease-out}
.activity-progress progress::-moz-progress-bar{background:var(--mint)}
.compare-controls{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-top:.8rem}
#pose-switch{display:flex;gap:.3rem;flex-wrap:wrap}
.compare-controls button{font-size:.85rem}
.compare-controls [aria-pressed=true]{border-color:var(--mint);color:var(--mint);background:#233734}
.history-header {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #694e85;
}
.history-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.history-header p { margin: .15rem 0 0; font-size: .875rem; }
.history-close {
  width: 44px;
  padding: 0;
  border-radius: .65rem;
  background: #2d203d;
  color: var(--hero-ink);
  font-size: 1.55rem;
}
.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(.6rem, 2.4vw, 1rem);
  padding: .65rem;
  border: 1px solid #594368;
  border-radius: .8rem;
  background: #261a36;
  color: var(--hero-ink);
  text-align: left;
}
.history-card:hover:not(:disabled) { translate: none; background: #342247; }
.history-card:focus-visible { outline-offset: -3px; }
.history-thumb {
  display: grid;
  place-items: center;
  width: clamp(3rem,10vw,4.15rem);
  aspect-ratio: 1;
  border-radius: .5rem;
}
.history-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.history-details { display: grid; gap: .28rem; }
.history-prompt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.35;
}
.history-meta { color: #d8c3eb; font-size: .77rem; }
.history-arrow { color: var(--hero-lilac); font-size: 1.1rem; }
@media(min-width:681px){.work{min-height:340px}.milestones li{padding:.75rem .95rem}.milestones strong{font-size:1rem}}

.stage-heading p:not(.kicker){max-width:58ch;margin-inline:auto}
body:has(#editor:not([hidden])) main{padding-top:clamp(.75rem,2.5vw,1.6rem)}
#editor{isolation:isolate;position:relative}
#editor::before{content:"";position:absolute;inset:-1.5rem 0 auto;height:260px;z-index:-1;pointer-events:none;background:url('/art/workshop.webp') center 47%/cover;opacity:.26;mask-image:linear-gradient(to bottom,#000 15%,transparent 100%)}
.work-target .sprite-arrival+.effect{animation:candidate-glow 740ms ease-out}
@keyframes candidate-glow{0%{box-shadow:inset 0 0 35px #b8ffda80}100%{box-shadow:inset 0 0 0 #b8ffda00}}

.workbench-title{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem}
.workbench-title h2{font:700 1.42rem var(--display)}
#asset-count{color:var(--lilac);font:700 .78rem ui-monospace,monospace}
.workbench-empty{display:grid;justify-items:center;padding:.9rem .6rem;margin-bottom:.65rem;border:1px dashed #5f4c7c;text-align:center}
.workbench-empty p{margin:.65rem 0 0;font-size:.88rem}
.empty-sprite{display:grid;place-items:center;width:65px;height:65px;border:1px solid #6d598a;color:var(--lilac);font:2rem var(--display)}
#assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr));gap:.6rem;margin-bottom:.7rem}
.asset{position:relative;display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:0;padding:0;background:#221d32;border:1px solid #5c4873}
.asset-base{border-color:#79bbae;background:#1e2b32}
.asset-art{display:grid;place-items:center;height:108px;border-bottom:1px solid #463954}
.asset-art img{width:100%;height:100%;max-height:107px;object-fit:contain;background:none;image-rendering:pixelated}
#editor[data-mode=create] .asset-art img{image-rendering:auto;padding:.3rem}
.asset-info{display:grid;gap:.28rem;padding:.62rem .68rem;font-size:.87rem}
.asset button{position:absolute;top:.24rem;right:.24rem;min-width:38px;min-height:38px;padding:0;background:#1a1629df;border-color:#796695;font-size:1.3rem}
.asset button:hover:not(:disabled){translate:none}
.conversation-layout{grid-template-areas:"refs" "chat" "plan"}
.conversation-sidebar{display:contents}
.chat-panel{grid-area:chat}
.chat-references{grid-area:refs;position:sticky;top:.45rem;z-index:3}
.plan-panel{grid-area:plan}
.chat-references h2{margin-bottom:.55rem}
.chat-references p{margin:0;font-size:.9rem}
.chat-references .thumbs{margin:0;flex-wrap:nowrap;overflow-x:auto;padding:.14rem .14rem .35rem}
.plan-head{flex:0 0 83px;padding:.3rem .35rem;min-width:0;border:1px solid #51416a;text-align:center}
.plan-head img{width:54px;height:50px;object-fit:contain}
#editor[data-mode=create] .plan-head img{image-rendering:auto}
.plan-head figcaption{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}
.plan-head figcaption small{display:block;color:var(--muted);font-size:.65rem;white-space:normal}
.plan-head:first-child small{color:var(--mint)}
.single-result .comparison{grid-template-columns:minmax(0,1fr)}
.single-result .result-art{min-height:230px}
@media(min-width:800px){
  .conversation-layout{grid-template-areas:"chat side"}
  .conversation-sidebar{grid-area:side;display:grid;align-content:start;gap:.75rem;position:sticky;top:1rem}
  .chat-references,.plan-panel{grid-area:auto;position:static}
  .chat-references .thumbs{flex-wrap:wrap}
}
@media(min-width:800px){
  .plan-head{flex-basis:106px}
  .plan-head img{width:78px;height:72px}
  .plan-head figcaption{font-size:.78rem}
  .chat-references .thumbs:has(.plan-head:only-child) .plan-head{flex-basis:100%}
  .chat-references .thumbs:has(.plan-head:only-child) .plan-head img{width:100%;height:94px}
}

.creation-review{margin-top:1rem}
.result-details{margin:.65rem 0}
.result-details summary{cursor:pointer;color:var(--lilac);padding:.25rem 0}
.result-details img{display:block;max-width:100%;height:auto;image-rendering:pixelated;margin:.45rem 0}
.result-details .compare-controls{align-items:center;justify-content:flex-start;gap:.45rem}
.creation-review h2{font-size:1.1rem}
.creation-review p{margin-bottom:.75rem}
.review-revision{margin-top:.75rem}
.review-revision summary{cursor:pointer;color:var(--lilac);padding:.35rem 0}
.review-revision form{display:grid;gap:.55rem;margin:.55rem 0}
.review-revision form button{justify-self:start}
#new-design{margin:.4rem 0 0}

.admin-tabs, .admin-skills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.admin-tabs { border-bottom: 1px solid #624979; padding-bottom: .65rem; }
.admin-tabs button, .admin-skills button {
  min-height: 44px;
  padding: .45rem .8rem;
  color: #e7d3f5;
  background: #291d38;
  border: 1px solid #6e5384;
  box-shadow: none;
}
.admin-tabs button[aria-pressed="true"], .admin-skills button[aria-pressed="true"] {
  color: #211331;
  border-color: #e2c1ff;
  background: #e2c1ff;
}
#admin-guide {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid #735391;
  border-radius: .9rem;
  background: #291c38;
}
#admin-guide > *, .admin-reference-copy > * { margin: 0; }
.admin-credit { color: #d1b8e4; font-size: .85rem; }
.admin-skill-details summary { cursor: pointer; color: #eccdff; padding: .4rem 0; }
.admin-skill-details pre { max-height: 25rem; overflow: auto; padding: .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-topic-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem; margin: 1.2rem 0 .65rem; }
.admin-topic-row h2 { margin: 0; }
.admin-topic-row select { min-height: 44px; }
.admin-reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: .8rem; }
.admin-reference { overflow: hidden; }
.admin-reference-art {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: .55rem;
  background: linear-gradient(160deg, #3b2b4e, #21172f);
}
.admin-reference-art img { max-height: 12rem; width: 100%; object-fit: contain; image-rendering: pixelated; }
.admin-reference-art .admin-reference-motion { width: 7.5rem; height: 7.5rem; }
.admin-reference-copy { display: grid; gap: .52rem; padding: .85rem; }
.admin-reference-copy h3 { font-size: 1rem; color: #f7e9ff; }
.admin-reference-copy a { color: #edcaff; justify-self: start; }

.signin-shell { display: grid; justify-items: center; }
.signin-card { width: 100%; gap: .85rem; padding: clamp(1.2rem, 4vw, 2rem); }
.signin-card h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.signin-card strong { overflow-wrap: anywhere; }
.signin-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.signin-actions button { min-height: 44px; }
.signin-card [role="status"]:empty, .credit-feedback:empty { display: none; }
.account-balance { color: var(--mint); font-weight: 750; font-variant-numeric: tabular-nums; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.editor-toolbar .editor-home { margin-bottom: 0; }
#editor-credits { min-height: 44px; color: var(--mint); background: transparent; border: 0; }
.admin-users { display: grid; gap: .8rem; }
.beta-emails { display: grid; gap: .65rem; list-style: none; padding: 0; }
.beta-emails li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.beta-emails span { overflow-wrap: anywhere; }
.beta-emails button, #beta-form button { min-height: 44px; }
.user-card { padding: 1rem; }
.user-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.user-card-heading h2 { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.credit-form { display: flex; flex-wrap: wrap; align-items: end; column-gap: .75rem; row-gap: .6rem; margin: .85rem 0 .55rem; }
.credit-form label:first-child { flex: 0 1 8rem; }
.credit-form label:nth-child(2) { flex: 1 1 12rem; }
.credit-feedback { flex-basis: 100%; margin: 0; }
.credit-activity summary { cursor: pointer; min-height: 44px; align-content: center; }
.credit-activity li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.user-reference { margin: .3rem 0 0; overflow-wrap: anywhere; font-size: .85rem; }
.user-tier { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .65rem; }
.user-tier [role="status"]:empty { display: none; }

.stop-job {
  margin-left: auto;
  padding: .3rem .8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.stop-job:disabled { opacity: .6; cursor: progress; }

.site-header nav #open-account {
  width: 44px;
  justify-content: center;
  border: 1px solid #795a9d;
  border-radius: 50%;
  background: #2d203d;
}
#open-account svg { width: 23px; height: 23px; }
#open-account:hover { border-color: var(--hero-lilac); }
.account-dialog {
  --account-gutter: clamp(.9rem, 3vw, 1.6rem);
  width: min(57rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(88dvh, 51rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid #795a9d;
  border-radius: 1.2rem;
  background: #1c122a;
  color: var(--hero-ink);
  box-shadow: 0 24px 96px #0b0419a8;
  font-family: var(--hero-font);
}
.account-dialog[open] { display: flex; flex-direction: column; }
.account-dialog::backdrop { background: #0c0618cd; backdrop-filter: blur(4px); }
.account-header { padding-inline: var(--account-gutter); }
.account-tabs {
  flex: none;
  display: flex;
  gap: .35rem;
  padding: .55rem var(--account-gutter);
  border-bottom: 1px solid #594368;
}
.account-tabs button {
  min-width: 0;
  padding: .5rem .85rem;
  border-color: transparent;
  border-radius: .6rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.account-tabs button:hover { translate: none; color: var(--ink); }
.account-tabs [aria-selected="true"] { background: #372449; border-color: #8b6baa; color: var(--ink); }
.account-content {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem var(--account-gutter) 1.5rem;
  min-height: 0;
  min-width: 0;
}
.account-content [role="tabpanel"]:focus-visible { outline-offset: 2px; }
.account-message {
  flex: none;
  margin: .75rem var(--account-gutter) 0;
  padding: .65rem .8rem;
  border-left: 2px solid var(--lilac);
  background: #33213f;
}
.history-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.history-search { flex: 1 1 12rem; min-width: 0; }
.history-filters input, .history-filters select {
  min-height: 44px;
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #795a9d;
  border-radius: .6rem;
  background: #251932;
  color: var(--ink);
  font: inherit;
}
.history-filters input::placeholder { color: var(--muted); }
.history-count { margin: .7rem 0; font-size: .9rem; }
.history-card { height: 100%; }
.history-card .history-meta { font-weight: 650; }
.account-back {
  color: var(--lilac);
  background: transparent;
  border: none;
  padding-inline: 0;
  margin-bottom: .65rem;
}
.account-back:hover { translate: none; }
.history-result-title { margin: .3rem 0 1rem; overflow-wrap: anywhere; font-size: clamp(1.35rem, 4vw, 2rem); }
.history-result-main { display: grid; gap: 1rem; align-items: start; }
.history-result-visuals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.25rem), 1fr));
  max-width: 24rem;
  gap: .6rem;
}
.history-result-visuals figure { margin: 0; }
.history-result-visuals figcaption { margin-top: .32rem; color: var(--muted); font-size: .86rem; }
.history-result-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: .55rem; }
.history-result-art img { width: 84%; height: 84%; object-fit: contain; image-rendering: pixelated; }
.history-result-copy h4, .history-references h4, .account-section-heading { margin: 0 0 .4rem; font-size: 1rem; }
.history-result-copy p { margin-bottom: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-result-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 1.25rem; }
.history-result-actions > * { border-radius: .55rem; }
.history-references { padding-top: 1rem; border-top: 1px solid #594368; }
.history-references ul { margin: .65rem 0 0; padding: 0; list-style: none; }
.history-reference { border-bottom: 1px solid #594368; padding: .65rem 0; }
.history-reference-header { display: flex; align-items: center; gap: .7rem; overflow-wrap: anywhere; }
.history-reference-thumb { display: grid; place-items: center; width: 3.4rem; aspect-ratio: 1; flex: none; border-radius: .4rem; }
.history-reference-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.history-reference summary { cursor: pointer; color: var(--lilac); min-height: 44px; align-content: center; }
.history-reference .button { border-radius: .5rem; }
.history-full-image, .history-full-sheet { display: block; max-width: 100%; max-height: 56dvh; object-fit: contain; margin-bottom: .65rem; }
.history-full-sheet { width: min(100%, 34rem); image-rendering: pixelated; }
.account-summary {
  padding: 1rem;
  border: 1px solid #795a9d;
  border-radius: .75rem;
  background: #2a1c3b;
  margin-bottom: 1.2rem;
}
.account-summary h3, .account-summary p { margin: 0; }
.account-summary .account-balance { margin: .25rem 0; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.account-credit-list { list-style: none; padding: 0; margin: 0; }
.account-credit-list li, .account-profile > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding: .75rem .1rem;
  border-bottom: 1px solid #594368;
  overflow-wrap: anywhere;
}
.credit-change { font-variant-numeric: tabular-nums; }
.credit-change[data-increase="true"] { color: var(--mint); }
.account-profile { margin-top: 0; }
.account-profile dt { color: var(--muted); }
.account-profile dd { margin: 0; font-weight: 750; }
.account-sign-out { border-color: #986375; color: var(--pink); border-radius: .55rem; }
@media (min-width: 700px) {
  .history-result-main { grid-template-columns: minmax(14rem, .85fr) minmax(0, 1.3fr); }
}
@media (max-width: 600px) {
  .account-dialog {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 1.1rem 1.1rem 0 0;
  }
  .account-tabs button { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .account-dialog[open] { animation: home-appear .2s ease-out; }
}

.pair-picker { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.pair-picker > select { width: 100%; margin: .25rem 0 .4rem; }
.pair-opt { display: flex; align-items: center; gap: .45rem; min-height: 44px; }
.pair-opt input { width: auto; accent-color: var(--mint); }
.pair-fit { display: grid; min-height: 94px; place-items: center; }
.pair-fit img { width: 64px; image-rendering: pixelated; }
#pair-result-controls { display: flex; flex-wrap: wrap; gap: .4rem; }
