:root {
  --bg: #0b0a12;
  --bg-elev: #141221;
  --bg-card: #1a172b;
  --bg-input: #0f0d1b;
  --ink: #f7f6fb;
  --muted: #a6a1c0;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-strong: rgba(255, 255, 255, 0.24);
  --lime: #c8ff2e;
  --lime-ink: #0a0c04;
  --magenta: #ff2e93;
  --cyan: #22e6ff;
  --gold: #f5cf76;
  --danger: #ff5c72;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --f-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(60rem 36rem at 12% -6%, rgba(255, 46, 147, 0.16), transparent 60%),
    radial-gradient(54rem 34rem at 92% 4%, rgba(34, 230, 255, 0.14), transparent 58%),
    radial-gradient(46rem 28rem at 50% 42%, rgba(200, 255, 46, 0.06), transparent 62%),
    var(--bg);
  overflow-x: clip;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime);
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 0.9rem;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.sr-only,
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 999;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mono {
  font-family: var(--f-mono);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 10, 18, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
}

.hdr-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 62px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-yr {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.15);
  color: var(--lime);
  border: 1px solid rgba(200, 255, 46, 0.35);
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hdr-nav::-webkit-scrollbar {
  display: none;
}

.hdr-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.hdr-nav a:hover,
.hdr-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.hdr-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-pill,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn-pill {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.btn-pill--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hair);
  color: var(--ink);
}

.btn-pill--ghost:hover {
  border-color: var(--hair-strong);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.btn-pill--accent {
  background: rgba(200, 255, 46, 0.14);
  border-color: rgba(200, 255, 46, 0.45);
  color: var(--lime);
}

.btn-pill--danger {
  background: rgba(255, 92, 114, 0.15);
  border-color: rgba(255, 92, 114, 0.45);
  color: #ff8e9e;
}

.btn-primary,
.btn-secondary,
.btn-accent {
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  font-size: 0.94rem;
  border-radius: 13px;
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 8px 28px rgba(200, 255, 46, 0.22);
}

.btn-primary:hover {
  background: #d7ff62;
  color: var(--lime-ink);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--hair-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--ink);
}

.btn-accent {
  background: linear-gradient(135deg, var(--magenta), #7a3bff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 46, 147, 0.28);
}

.btn-accent:hover {
  filter: brightness(1.08);
  color: #fff;
  transform: translateY(-1px);
}

.btn-mini {
  min-height: 36px;
  padding: 0.35rem 0.72rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--hair);
  color: var(--ink);
}

.btn-mini:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-full {
  width: 100%;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
}

/* Hero & Studio Grid */
.studio-hero {
  position: relative;
  padding: 1.4rem 0 3rem;
}

.studio-hero::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 55vh;
  background: radial-gradient(60% 75% at 18% 20%, rgba(255, 46, 147, 0.14), transparent 70%),
              radial-gradient(50% 65% at 85% 15%, rgba(34, 230, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.hero-intro {
  max-width: 780px;
  margin-bottom: 1.15rem;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lime);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.08);
  border: 1px solid rgba(200, 255, 46, 0.24);
}

.template-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding: 0.2rem 0 1.25rem;
  scrollbar-width: none;
}

.template-strip::-webkit-scrollbar {
  display: none;
}

.tpl-chip {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tpl-chip:hover {
  color: var(--ink);
  border-color: var(--hair-strong);
}

.tpl-chip.is-current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.stage-column {
  position: sticky;
  top: 78px;
  min-width: 0;
  max-width: 100%;
}

.controls-column {
  min-width: 0;
  max-width: 100%;
}

.stage-card {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  min-width: 0;
  max-width: 100%;
}

.story-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.story-bar {
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px;
  height: 6px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.story-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.story-bar.is-done .story-bar-fill,
.story-bar.is-active .story-bar-fill {
  width: 100%;
}

.story-bar.is-active {
  background: rgba(200, 255, 46, 0.32);
}

.slide-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.slide-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.slide-pill {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.spoiler-live-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.69rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 46, 147, 0.22);
  border: 1px solid rgba(255, 46, 147, 0.55);
}

.aspect-group {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 2px;
}

.aspect-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
}

.aspect-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.canvas-tilt-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #07060c;
  border: 1px solid var(--hair);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease;
  touch-action: pan-y;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.filmstrip-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.42rem 0.52rem;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--hair);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.filmstrip-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--ink);
}

.filmstrip-btn.is-active {
  background: rgba(200, 255, 46, 0.12);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.25), 0 6px 14px rgba(200, 255, 46, 0.12);
}

.filmstrip-btn .fs-num {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.filmstrip-btn .fs-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#preview-canvas,
#viewer-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tap-zone--prev {
  left: 0;
}

.tap-zone--next {
  right: 0;
}

.stage-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.stage-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.stage-quick-actions #v-btn-download,
.stage-quick-actions .btn-accent {
  grid-column: 1 / -1;
}

.stage-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Controls Panel */
.studio-panel,
.viewer-box {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  min-width: 0;
  max-width: 100%;
}

.panel-head,
.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.panel-head h2,
.box-head h2 {
  margin: 0;
}

.preset-actions {
  display: flex;
  gap: 0.45rem;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.65rem;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--hair);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-card:hover {
  border-color: var(--hair-strong);
}

.theme-card:has(input:checked) {
  border-color: var(--lime);
  background: rgba(200, 255, 46, 0.08);
}

.theme-card:has(input:focus-visible) {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.theme-swatch {
  position: relative;
  width: 34px;
  height: 46px;
  border-radius: 7px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(155deg, var(--c1) 0%, var(--c2) 60%, var(--c3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.theme-swatch .sw-bar,
.theme-swatch .sw-orb,
.theme-swatch .sw-lines {
  position: absolute;
  pointer-events: none;
}

.theme-swatch--neon-pulse {
  background: linear-gradient(155deg, #1b0b40 0%, #3a0d63 55%, #0c0e23 100%);
}
.theme-swatch--neon-pulse .sw-orb {
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff2e93 0%, rgba(255, 46, 147, 0) 75%);
}
.theme-swatch--neon-pulse .sw-bar {
  left: 5px;
  right: 5px;
  top: 9px;
  height: 5px;
  border-radius: 3px;
  background: #c8ff2e;
}
.theme-swatch--neon-pulse .sw-lines {
  left: 5px;
  right: 9px;
  bottom: 6px;
  height: 14px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0 2px, transparent 2px 5px);
}

.theme-swatch--thermal-receipt {
  background: #faf7f0;
  border-color: #d6cbb8;
}
.theme-swatch--thermal-receipt .sw-bar {
  left: 5px;
  right: 5px;
  top: 6px;
  height: 6px;
  border-top: 2px dashed #171512;
  border-bottom: 1px dashed #171512;
}
.theme-swatch--thermal-receipt .sw-lines {
  left: 5px;
  right: 5px;
  top: 17px;
  height: 16px;
  background: repeating-linear-gradient(180deg, #171512 0 2px, transparent 2px 5px);
}
.theme-swatch--thermal-receipt .sw-orb {
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #171512 0 2px, transparent 2px 3px, #171512 3px 6px, transparent 6px 8px);
}

.theme-swatch--vinyl-chrome {
  background: linear-gradient(160deg, #101218 0%, #1e2536 65%, #090b10 100%);
}
.theme-swatch--vinyl-chrome .sw-orb {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #3bf0ff 0 3px, #ff2e93 3px 5px, #191d28 5px 100%);
  border: 1.5px solid rgba(59, 240, 255, 0.7);
}
.theme-swatch--vinyl-chrome .sw-lines {
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 10px;
  background: repeating-linear-gradient(180deg, rgba(227, 231, 242, 0.8) 0 2px, transparent 2px 4px);
}

.theme-swatch--scrapbook-eras {
  background: #faf3e6;
  border-color: #d6cbb8;
}
.theme-swatch--scrapbook-eras .sw-bar {
  left: 6px;
  right: 6px;
  top: 4px;
  height: 5px;
  background: #ff6b4a;
  transform: rotate(-4deg);
}
.theme-swatch--scrapbook-eras .sw-orb {
  left: 6px;
  right: 6px;
  top: 13px;
  height: 16px;
  background: #fff;
  border: 1.5px solid #231f20;
  border-radius: 2px;
  box-shadow: 0 3px 0 #ff6b4a;
}
.theme-swatch--scrapbook-eras .sw-lines {
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 7px;
  border-radius: 3px;
  background: #fff3b0;
  border: 1px solid #231f20;
}

.theme-swatch--listening-age {
  background: #0f1e18;
}
.theme-swatch--listening-age .sw-orb {
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 255, 63, 0.28);
}
.theme-swatch--listening-age .sw-bar {
  left: 4px;
  right: 4px;
  top: 7px;
  height: 12px;
  border-radius: 4px;
  background: #d4ff3f;
}
.theme-swatch--listening-age .sw-lines {
  left: 5px;
  right: 5px;
  bottom: 7px;
  height: 10px;
  border-top: 2px solid #ff8c42;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255, 255, 255, 0.45) 4px 6px);
}

.theme-swatch--gala-gold {
  background: linear-gradient(160deg, #090d1f 0%, #15214d 55%, #080b18 100%);
  border-color: #f5cf76;
}
.theme-swatch--gala-gold .sw-bar {
  inset: 3px;
  border: 1px solid rgba(245, 207, 118, 0.65);
  border-radius: 4px;
}
.theme-swatch--gala-gold .sw-orb {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #f5cf76;
}
.theme-swatch--gala-gold .sw-lines {
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 11px;
  background: repeating-linear-gradient(180deg, rgba(245, 207, 118, 0.85) 0 2px, transparent 2px 5px);
}

.theme-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-meta strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.theme-meta small {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palette-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.palette-chip:has(input:checked) {
  color: var(--ink);
  border-color: var(--lime);
  background: rgba(200, 255, 46, 0.12);
}

.pal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.pal-dot--default { background: linear-gradient(135deg, #c8ff2e, #ff2e93); }
.pal-dot--acid-lime { background: #c8ff2e; }
.pal-dot--hyper-pink { background: #ff2e93; }
.pal-dot--electric-cyan { background: #3bf0ff; }
.pal-dot--champagne-gold { background: #f5cf76; }
.pal-dot--sunset-coral { background: #ff6b4a; }

.preset-pills-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chatgpt-box {
  margin-top: 0.9rem;
  border-radius: 14px;
  background: rgba(34, 230, 255, 0.06);
  border: 1px solid rgba(34, 230, 255, 0.28);
  padding: 0.65rem 0.85rem;
}

.chatgpt-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--cyan);
  list-style: none;
}

.chatgpt-box[open] summary {
  margin-bottom: 0.55rem;
}

.chatgpt-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.btn-mini--accent {
  background: rgba(200, 255, 46, 0.14);
  border-color: rgba(200, 255, 46, 0.42);
  color: var(--lime);
}

.gpt-status {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--lime);
}

.preset-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.preset-pill {
  min-height: 34px;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  color: var(--muted);
  cursor: pointer;
}

.preset-pill.is-active,
.preset-pill:hover {
  color: var(--ink);
  border-color: var(--cyan);
  background: rgba(34, 230, 255, 0.12);
}

.panel-divider {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 1.3rem 0;
}

/* Forms (Modern Web Guidance compliant: 48px tap targets, >=1rem inputs, label-input proximity) */
.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-block-end: 0.9rem;
  min-width: 0;
  max-width: 100%;
}

.field label,
fieldset legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

input[type="text"],
input[type="search"],
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 1em);
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--hair);
  background: var(--bg-input);
  color: var(--ink);
}

textarea {
  min-height: 76px;
  resize: vertical;
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.file-btn {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1.5px dashed var(--hair-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.file-btn:hover {
  border-color: var(--cyan);
  background: rgba(34, 230, 255, 0.08);
}

.items-fieldset,
.eras-fieldset,
.unlock-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.items-fieldset legend,
.eras-fieldset legend,
.unlock-fieldset legend {
  margin-bottom: 0.45rem;
  padding: 0;
}

.item-input-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.item-rank {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime);
  text-align: center;
}

.eras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.toggle-card {
  background: var(--bg-input);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.switch-input {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  accent-color: var(--lime);
  flex-shrink: 0;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
}

.toggle-label strong {
  font-size: 0.94rem;
}

.toggle-label span {
  font-size: 0.82rem;
  color: var(--muted);
}

.blur-hint-wrap {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hair);
}

.blur-hint-wrap label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--bg-input);
  margin-bottom: 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.radio-row input {
  margin-top: 0.25rem;
  accent-color: var(--lime);
}

/* Below-the-fold Editorial & FAQ (Performance: content-visibility) */
.editorial-sec {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 36rem;
}

.editorial-card {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 2rem;
}

.guide-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.guide-steps li {
  margin-bottom: 0.45rem;
}

.section-head {
  margin-bottom: 1.1rem;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.tpl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.tpl-link-card {
  display: block;
  text-decoration: none;
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--card-accent, var(--cyan));
  border-radius: var(--radius);
  padding: 1.05rem;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tpl-link-card--neon-pulse { --card-accent: #c8ff2e; }
.tpl-link-card--thermal-receipt { --card-accent: #e5dec9; }
.tpl-link-card--vinyl-chrome { --card-accent: #3bf0ff; }
.tpl-link-card--scrapbook-eras { --card-accent: #ff6b4a; }
.tpl-link-card--listening-age { --card-accent: #d4ff3f; }
.tpl-link-card--gala-gold { --card-accent: #f5cf76; }

.tpl-link-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  color: var(--ink);
}

.tpl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tpl-link-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--card-accent, var(--cyan));
}

.tpl-stat-chip {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-link-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.1rem;
  color: var(--lime);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Viewer Page */
.viewer-main {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.viewer-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.viewer-top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.viewer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.viewer-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  min-width: 0;
  max-width: 100%;
}

.badge-pill {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.badge-pill--gold {
  background: rgba(245, 207, 118, 0.16);
  color: var(--gold);
  border: 1px solid rgba(245, 207, 118, 0.4);
}

.blur-box {
  border-color: rgba(200, 255, 46, 0.4);
  background: linear-gradient(180deg, rgba(200, 255, 46, 0.06), var(--bg-elev));
}

.box-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.guess-form {
  display: flex;
  gap: 0.5rem;
}

.guess-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  min-height: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.unlocked-banner {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(200, 255, 46, 0.14);
  border: 1px solid rgba(200, 255, 46, 0.4);
  color: var(--lime);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.stamp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.45rem;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--hair);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.stamp-btn:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.stamp-btn.is-selected {
  border-color: var(--lime);
  background: rgba(200, 255, 46, 0.12);
}

.stamp-emoji {
  font-size: 1.45rem;
  line-height: 1;
}

.stamp-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.stamp-count {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}

.sticker-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.85rem;
}

.sticker-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--bg-input);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.sticker-chip:has(input:checked) {
  border-color: var(--magenta);
  background: rgba(255, 46, 147, 0.16);
}

.sticker-chip:has(input:focus-visible) {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.prompt-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 0.4rem;
  margin-bottom: 0.55rem;
}

.prompt-pill {
  flex-shrink: 0;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.76rem;
  cursor: pointer;
}

.prompt-pill:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

.anon-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  cursor: pointer;
}

.anon-check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}

.form-status {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--cyan);
  min-height: 1.2em;
}

.post-stamp-cta {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 46, 147, 0.14), rgba(34, 230, 255, 0.1));
  border: 1px solid rgba(255, 46, 147, 0.4);
}

.post-stamp-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.cosign-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.cosign-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--hair);
}

.cosign-item--sealed {
  border-style: dashed;
  border-color: rgba(245, 207, 118, 0.45);
}

.cosign-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.cosign-who {
  font-weight: 700;
  font-size: 0.9rem;
}

.cosign-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cosign-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cosign-note {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.cosign-clue {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Info / Code Pages */
.narrow-main {
  max-width: 720px;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.code-hero-card,
.info-article {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.code-lookup-form {
  display: flex;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.code-lookup-form input {
  font-family: var(--f-mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.alert-error {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 92, 114, 0.14);
  border: 1px solid rgba(255, 92, 114, 0.4);
  color: #ffb0bc;
}

.back-home {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Native <dialog> + Top-Layer Entry/Exit Animations (Modern Web Guidance) */
dialog:modal {
  overscroll-behavior: contain;
  margin: auto;
  width: min(92vw, 480px);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(5, 4, 10, 0);
  backdrop-filter: blur(6px);
  transition-property: background-color, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog {
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: scale(0.94);
  }
}

dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(5, 4, 10, 0.72);
}

@starting-style {
  dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }
  dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(5, 4, 10, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open]:where(:not([data-closing])) {
    transform: scale(1);
  }
  @starting-style {
    dialog[open]:where(:not([data-closing])) {
      transform: scale(0.94);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}

.dialog-box {
  padding: 1.4rem;
}

.dialog-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dialog-hdr h1,
.dialog-hdr h2 {
  font-size: 1.35rem;
  margin: 0;
}

.btn-icon-close {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.share-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}

.share-code-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(200, 255, 46, 0.1);
  border: 1px solid rgba(200, 255, 46, 0.38);
}

.share-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  min-width: 112px;
  min-height: 112px;
}

.share-qr-box svg {
  display: block;
  width: 116px;
  height: 116px;
}

.share-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.consensus-bar {
  margin-bottom: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--hair);
}

.consensus-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.45rem;
}

.consensus-seg {
  height: 100%;
  min-width: 6px;
  transition: flex-grow 0.25s ease;
}

.consensus-seg--real { background: #c8ff2e; }
.consensus-seg--cap { background: #22e6ff; }
.consensus-seg--exposed { background: #ff2e93; }
.consensus-seg--iconic { background: #f5cf76; }

.consensus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.code-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.big-code {
  font-family: var(--f-mono);
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.copy-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.copy-row input,
.guess-form input,
.code-lookup-form input {
  min-width: 0;
}

.copy-row .btn-primary,
.guess-form .btn-primary,
.code-lookup-form .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}

.recovery-box {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--hair);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.recovery-box code {
  font-family: var(--f-mono);
  font-size: 0.98rem;
  color: var(--cyan);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dialog-cross-promo {
  margin: 0.95rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.stack-form {
  display: grid;
  gap: 0.65rem;
}

.my-cards-list {
  display: grid;
  gap: 0.55rem;
}

.my-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--hair);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  background: rgba(8, 7, 14, 0.88);
  padding: 2.5rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-note {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-cross {
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-heading {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  border-top: 1px solid var(--hair);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .studio-grid,
  .viewer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-column {
    position: static;
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }
  .theme-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 0.85rem;
  }
  .stage-card,
  .studio-panel,
  .viewer-box {
    padding: 0.95rem;
  }
  .hdr-nav {
    display: none;
  }
  .field-row-2,
  .eras-grid,
  .dialog-actions,
  .share-top-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stamp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .item-input-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .item-input-row .f-item-sub {
    grid-column: 2;
  }
  .guess-form,
  .code-lookup-form {
    flex-direction: column;
  }
}
