/* ==========================================================================
   MOTE · Adaptive Graphic-Zine Showcase & Live Owner Console
   STRICT PALETTE LOCK: Warm Stone Paper (#F4F0E7) × Red-Figure Pottery (#161310)
   ========================================================================== */

:root {
  --paper: #f4f0e7;
  --ivory: #fbfaf6;
  --oat: #eae3d5;
  --ink: #1b1815;
  --ink-muted: #5c554c;
  --hairline: #d4c9b6;
  --hairline-strong: #b5a68a;

  --clay: #a85432;
  --clay-soft: #e9d3c3;
  --olive: #465238;
  --leaf: #c2cba4;
  --leaf-soft: #e4e9d6;
  --gold: #e8cf72;
  --gold-soft: #f3e7bc;
  --danger: #a64e40;
  --danger-soft: #f9ebe8;

  --v-ink: #1b1815;
  --v-ivory: #fbfaf6;
  --v-clay: #a85432;
  --v-clay-soft: #e9d3c3;
  --v-olive: #465238;
  --v-leaf: #c2cba4;
  --v-gold: #e8cf72;
  --v-hair: #b5a68a;

  --mote-ink: #1b1815;
  --mote-body: #fbfaf6;
  --mote-leaf: #c2cba4;
  --mote-lamp: #e8cf72;
  --mote-warm: #a85432;

  --vellum-bg: rgba(251, 250, 246, 0.8);
  --card-shadow: 0 2px 6px rgba(27, 24, 21, 0.04), 0 14px 30px -16px rgba(27, 24, 21, 0.12);
  --shadow-hard: 3px 3px 0 #1b1815;

  --f-poster: "Anton", "Unbounded", sans-serif;
  --f-hero-zh: "Dela Gothic One", "Noto Sans SC", sans-serif;
  --f-head: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --f-quote: "Fraunces", "Noto Serif SC", Georgia, serif;
  --f-body: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-hand: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"],
body[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161310;
  --ivory: #1f1b16;
  --oat: #2a241c;
  --ink: #f2e6ce;
  --ink-muted: #c4b7a3;
  --hairline: #383025;
  --hairline-strong: #736654;

  --clay: #cf714a;
  --clay-soft: #462f24;
  --olive: #8a9d73;
  --leaf: #6e7b54;
  --leaf-soft: #293021;
  --gold: #dfc365;
  --gold-soft: #3a321c;
  --danger: #dc8272;
  --danger-soft: #36201c;

  --v-ink: #f2e6ce;
  --v-ivory: #1f1b16;
  --v-clay: #cf714a;
  --v-clay-soft: #462f24;
  --v-olive: #8a9d73;
  --v-leaf: #6e7b54;
  --v-gold: #dfc365;
  --v-hair: #635746;

  --mote-ink: #f2e6ce;
  --mote-body: #2a241c;
  --mote-leaf: #6e7b54;
  --mote-lamp: #dfc365;
  --mote-warm: #cf714a;

  --vellum-bg: rgba(31, 27, 22, 0.84);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.32), 0 18px 36px -14px rgba(0, 0, 0, 0.5);
  --shadow-hard: 3px 3px 0 #0a0806;
}

* {
  box-sizing: border-box;
}

[hidden],
.hidden {
  display: none !important;
}

.theme-switching,
.theme-switching * {
  transition: none !important;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.036;
  background-image: url("./assets/surface/b01-paper-grain.svg");
  background-size: 240px 240px;
}

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

button {
  cursor: pointer;
}

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

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

.muted {
  color: var(--ink-muted);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.full-btn {
  width: 100%;
}

/* ==========================================================================
   TOP GLOBAL NAVIGATION BAR
   ========================================================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.topnav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  border-left: 1px solid var(--hairline-strong);
  padding-left: 10px;
}

.mode-tabs {
  display: inline-flex;
  background: var(--oat);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.mode-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.mode-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.conn-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--ivory);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.conn-pill.live {
  border-color: var(--olive);
  background: var(--leaf-soft);
  color: var(--olive);
}

.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.conn-pill.live .conn-dot {
  background: var(--olive);
}

.icon-btn {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: var(--ivory);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s var(--ease-hand), background-color 0.16s var(--ease-hand);
  white-space: nowrap;
}

.theme-icon-btn {
  width: 36px;
  padding: 0;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.95);
}

.view-section {
  position: relative;
  z-index: 1;
}

.view-section.hidden {
  display: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   SCREEN 1 · SEAMLESS LIGHT/DARK DEPTH COLLAGE HERO
   ========================================================================== */

html[data-theme="dark"] body {
  background-color: #161310;
  color: #f2e6ce;
}

html[data-theme="dark"] .hero-stage {
  background: linear-gradient(180deg, #1f1b16 0%, #1f1b16 60%, #2a241c 100%);
}

html[data-theme="dark"] .c-sidebar,
html[data-theme="dark"] .c-main {
  background-color: #1f1b16;
}

.hero-wrap {
  padding: 20px 0 36px;
}

.hero-stage {
  position: relative;
  min-height: 495px;
  border-radius: 24px;
  border: 1.75px solid var(--ink);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 60%, var(--oat) 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--card-shadow);
  padding: 24px 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-halftone-tl {
  position: absolute;
  left: -12px;
  top: -12px;
  width: 240px;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.hero-wave-tr {
  position: absolute;
  right: -20px;
  top: -18px;
  width: 270px;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

body[data-theme="dark"] .hero-halftone-tl,
body[data-theme="dark"] .hero-wave-tr {
  filter: invert(0.86) sepia(0.25);
  opacity: 0.2;
}

.hero-top-row {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-top-left,
.hero-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-sticker {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pill-tilt-neg {
  background: var(--clay-soft);
  color: var(--ink);
  transform: rotate(-3deg);
}

.pill-leaf {
  background: var(--leaf-soft);
  color: var(--ink);
}

.hero-pointer-arrow {
  width: 34px;
  height: 34px;
  flex: none;
}

.hero-note-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Top Editorial Copy (clean on paper, zero box) */
.hero-editorial-top {
  position: relative;
  z-index: 4;
  max-width: 660px;
  margin: 18px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bottom Depth Lockup */
.hero-bottom-collage {
  position: relative;
  height: 232px;
  margin: 12px -32px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Layer 1: Giant Behind-Subject Wordmark */
.hero-giant-lockup {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  pointer-events: none;
  user-select: none;
}

.hero-giant-word {
  font-family: var(--f-poster);
  font-size: clamp(142px, 22vw, 272px);
  line-height: 0.82;
  letter-spacing: 0.015em;
  color: var(--ink);
  display: block;
  text-align: center;
}

.sticker-overlap {
  position: absolute;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.75px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}

.sticker-clay {
  left: -26px;
  bottom: 24px;
  background: var(--clay-soft);
  color: var(--ink);
  transform: rotate(-6deg);
}

.sticker-gold {
  right: -22px;
  top: 12px;
  background: var(--gold);
  color: #1b1815;
  transform: rotate(7deg);
}

.collage-mote-peek {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%) rotate(-7deg);
  z-index: 4;
  width: 112px;
  height: 112px;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.28s var(--ease-hand);
}

.collage-mote-peek:hover {
  transform: translateX(-50%) translateY(-10px) rotate(-13deg) scale(1.08);
}

.collage-mote-peek img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 2.5px var(--ivory)) drop-shadow(0 0 2.5px var(--ivory)) drop-shadow(0 8px 14px rgba(27, 24, 21, 0.24));
}

body[data-theme="dark"] .collage-mote-peek img,
body[data-theme="dark"] .gate-mote-wrap img,
body[data-theme="dark"] .closing-mote,
body[data-theme="dark"] .c-mote-card img {
  filter: drop-shadow(0 0 2.5px #f2e6ce) drop-shadow(0 0 2.5px #f2e6ce) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.hero-h1 {
  font-family: var(--f-hero-zh);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--ink);
}

.hero-quote {
  font-family: var(--f-quote);
  font-style: italic;
  font-size: 19px;
  color: var(--clay);
  margin: 0 0 20px;
}

/* Ref #1 Bottom Capsule Bar */
.capsule-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.capsule-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.75px solid var(--ink);
  background: var(--clay-soft);
  font-size: 16px;
  font-weight: 700;
}

.capsule-btn {
  appearance: none;
  border: 1.75px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  transition: transform 0.14s var(--ease-hand), box-shadow 0.14s var(--ease-hand);
}

.capsule-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}

.capsule-btn:active {
  transform: scale(0.97);
}

.capsule-primary {
  background: var(--ink);
  color: var(--paper);
}

.capsule-accent {
  background: var(--leaf);
  color: #1b1815;
}

.capsule-label {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.75px solid var(--ink);
  background: var(--ivory);
  font-size: 11.5px;
  font-weight: 700;
}

.capsule-code {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.75px solid var(--ink);
  background: var(--gold-soft);
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ==========================================================================
   SHARED SECTION HEADERS
   ========================================================================== */

.sec-block {
  position: relative;
  padding: 46px 0;
  border-top: 1px solid var(--hairline);
}

.sec-bg-halftone {
  position: absolute;
  right: 0;
  top: 16px;
  width: 210px;
  opacity: 0.22;
  pointer-events: none;
}

body[data-theme="dark"] .sec-bg-halftone {
  filter: invert(0.86) sepia(0.25);
  opacity: 0.14;
}

.sec-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow-chip {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.sec-h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.sec-sub {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   SCREEN 2 · LIVE 20-SECOND CROSS-AI HANDOFF STAGE
   ========================================================================== */

.relay-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 11px 16px;
  background: var(--ivory);
  border: 1.25px solid var(--hairline-strong);
  border-radius: 16px;
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-pill {
  appearance: none;
  border: 1.25px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-muted);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition:
    background-color 0.16s var(--ease-hand),
    color 0.16s var(--ease-hand),
    border-color 0.16s var(--ease-hand),
    transform 0.12s var(--ease-hand);
}

.step-pill:active {
  transform: scale(0.97);
}

.step-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.auto-play-btn {
  appearance: none;
  border: 1.75px solid var(--ink);
  background: var(--clay);
  color: #fbfaf6;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.14s var(--ease-hand), box-shadow 0.14s var(--ease-hand);
}

.auto-play-btn:hover {
  transform: translate(-1px, -1px);
}

.auto-play-btn:active {
  transform: scale(0.97);
}

.relay-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.client-box {
  background: var(--ivory);
  border: 1.25px solid var(--hairline-strong);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--card-shadow);
}

.client-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.client-name {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15.5px;
}

.status-chip {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.25px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-muted);
  white-space: nowrap;
}

.status-chip.ok {
  background: var(--leaf-soft);
  border-color: var(--olive);
  color: var(--olive);
}

.status-chip.warn {
  background: var(--gold-soft);
  border-color: var(--clay);
  color: var(--clay);
}

.status-chip.revoked {
  background: var(--clay-soft);
  border-color: var(--clay);
  color: var(--clay);
}

.relay-input-wrap {
  display: grid;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
}

.relay-input-wrap textarea {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--ivory);
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
}

.role {
  font-size: 10px;
  color: var(--clay);
  display: block;
}

.chat-bubble {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.6;
  display: grid;
  gap: 4px;
}

.chat-bubble.muted-bubble {
  opacity: 0.72;
}

.gate-box {
  background: var(--oat);
  border: 1.75px solid var(--ink);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  position: relative;
}

.gate-mote-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gate-mote-wrap img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.gate-state-text {
  font-size: 13px;
  line-height: 1.5;
}

.gate-state-text strong {
  display: block;
  font-family: var(--f-head);
  font-size: 16px;
  margin-bottom: 2px;
}

.meander-bridge {
  width: 100%;
  height: 34px;
  display: block;
}

.bridge-lit-path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
}

@keyframes drawBridge {
  0% {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
  }
  99.8% {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

.bridge-active {
  animation: drawBridge 0.48s var(--ease-hand) forwards;
}

.candidate-slip {
  width: 100%;
  background: var(--ivory);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: opacity 0.2s var(--ease-hand), border-color 0.2s var(--ease-hand);
}

.candidate-slip.muted {
  opacity: 0.6;
  border-color: var(--hairline-strong);
  box-shadow: none;
}

.candidate-slip-top {
  display: flex;
  justify-content: space-between;
  padding-right: 54px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--clay);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--hairline-strong);
}

.candidate-text {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 12px;
  font-weight: 500;
}

.stamp-seal {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 62px;
  height: 62px;
  opacity: 0;
  transform: scale(1.18) rotate(8deg);
  transition: opacity 0.18s var(--ease-hand), transform 0.24s var(--ease-hand);
  pointer-events: none;
}

.stamp-seal.stamped {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}

.gate-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.gate-btn {
  flex: 1;
  appearance: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.14s var(--ease-hand), opacity 0.14s var(--ease-hand);
}

.gate-btn.approve {
  background: var(--leaf);
  color: #1b1815;
}

.gate-btn.revoke {
  background: var(--paper);
  color: var(--clay);
}

.gate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.gate-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.gate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost-link {
  border: 0;
  background: transparent;
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost-link:hover {
  color: var(--clay);
}

.recall-card {
  flex: 1;
  background: var(--paper);
  border: 1.5px dashed var(--hairline-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    background-color 0.2s var(--ease-hand),
    border-color 0.2s var(--ease-hand),
    color 0.2s var(--ease-hand);
}

.recall-card.active {
  background: var(--leaf-soft);
  border-style: solid;
  border-color: var(--olive);
}

.recall-card.revoked {
  background: var(--clay-soft);
  border-style: dashed;
  border-color: var(--clay);
}

.recall-kicker {
  font-size: 10.5px;
  color: var(--ink-muted);
}

.recall-card strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* ==========================================================================
   SCREEN 3 · ALTERNATING GRAPHIC-ZINE STICKER CARDS + WAVE BACKDROPS
   ========================================================================== */

.sec-boundaries {
  overflow: hidden;
}

.wave-backdrop {
  position: absolute;
  width: 260px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.wave-tr {
  right: -30px;
  top: 22px;
}

.wave-bl {
  left: -30px;
  bottom: 18px;
  transform: rotate(180deg);
}

body[data-theme="dark"] .wave-backdrop {
  filter: invert(0.86) sepia(0.25);
  opacity: 0.16;
}

.sticker-schedule-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  padding: 6px 26px 14px;
}

.sticker-row {
  position: relative;
  border: 1.75px solid var(--ink);
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s var(--ease-hand), box-shadow 0.18s var(--ease-hand);
}

.sticker-row:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.row-ivory {
  background: var(--ivory);
}

.row-gold {
  background: var(--gold-soft);
}

.row-leaf {
  background: var(--leaf-soft);
}

.row-clay {
  background: var(--clay-soft);
}

.sticker-row.seal-left {
  margin-left: 34px;
  padding-left: 56px;
}

.sticker-row.seal-right {
  margin-right: 34px;
  padding-right: 56px;
}

.row-seal {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  height: 92px;
  pointer-events: none;
}

.seal-left .row-seal {
  left: -46px;
}

.seal-right .row-seal {
  right: -46px;
}

.row-seal svg {
  width: 100%;
  height: 100%;
}

.row-sparkle {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.sparkle-tr {
  top: -15px;
  right: 26px;
}

.sparkle-tl {
  top: -15px;
  left: 26px;
}

.row-poster-body {
  display: grid;
  gap: 6px;
}

.row-poster-body h3 {
  margin: 0;
  font-family: var(--f-head);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.row-sub {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.corner-pill {
  position: absolute;
  bottom: -13px;
  right: 24px;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1.75px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 var(--ink);
}

.seal-right .corner-pill {
  right: auto;
  left: 24px;
}

.pill-ivory {
  background: var(--ivory);
  color: var(--ink);
}

.pill-gold {
  background: var(--gold);
  color: #1b1815;
}

.corner-pill.pill-leaf {
  background: var(--leaf);
  color: #1b1815;
}

/* ==========================================================================
   SCREEN 4 · ADAPTIVE CLOSING CAPSULE BAND
   ========================================================================== */

.closing-band {
  position: relative;
  background: var(--oat);
  color: var(--ink);
  border: 1.75px solid var(--ink);
  border-radius: 24px;
  padding: 36px 36px 30px;
  margin-bottom: 60px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 24px;
}

.closing-halftone {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 220px;
  opacity: 0.28;
  pointer-events: none;
}

body[data-theme="dark"] .closing-halftone {
  filter: invert(0.86) sepia(0.25);
  opacity: 0.16;
}

.closing-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.closing-desc {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 660px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.closing-mote {
  width: 104px;
  height: 104px;
  flex: none;
}

.closing-capsule {
  position: relative;
  z-index: 2;
  justify-content: flex-start;
}

/* ==========================================================================
   VIEW 2 · FLOATING OWNER CONSOLE
   ========================================================================== */

.console-shell {
  max-width: 1220px;
  margin: 24px auto 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 24px;
  align-items: start;
}

.c-sidebar {
  background: var(--ivory);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-mote-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-mote-card img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.c-desk-title {
  font-weight: 700;
  font-size: 14px;
}

.c-desk-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.c-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color 0.16s var(--ease-hand),
    color 0.16s var(--ease-hand),
    border-color 0.16s var(--ease-hand),
    transform 0.12s var(--ease-hand);
}

.c-nav-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.c-nav-btn:active {
  transform: scale(0.985);
}

.c-nav-btn.active {
  background: var(--oat);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.c-badge {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--clay);
  border: 1px solid var(--hairline);
}

body[data-theme="dark"] .c-badge {
  background: var(--oat);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.c-main {
  background: var(--ivory);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 28px 30px;
  min-height: 600px;
  box-shadow: var(--card-shadow);
}

.c-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 22px;
}

.c-main-head h2 {
  font-family: var(--f-quote);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  margin: 4px 0 0;
}

.c-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-banner-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--clay);
  background: var(--gold-soft);
  color: var(--clay);
}

.c-btn {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: transform 0.14s var(--ease-hand);
}

.c-btn:hover {
  transform: translateY(-1px);
}

.c-btn:active {
  transform: scale(0.97);
}

.c-btn.soft {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.c-btn.approve {
  background: var(--leaf);
  color: #1b1815;
  border-color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 13px 15px;
  background: var(--paper);
  transition:
    border-color 0.16s var(--ease-hand),
    background-color 0.16s var(--ease-hand),
    transform 0.14s var(--ease-hand);
}

.stat:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.stat:active {
  transform: scale(0.98);
}

.stat strong {
  display: block;
  font-family: var(--f-quote);
  font-size: 26px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink-muted);
}

.stat.is-live {
  background: var(--leaf-soft);
  border-color: var(--olive);
}

.stat.is-live strong {
  color: var(--olive);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 18px;
}

.archival-panel {
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: var(--paper);
  padding: 20px;
}

.archival-panel h3 {
  margin: 4px 0 12px;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-motif {
  width: 34px;
  height: 34px;
  opacity: 0.78;
}

body[data-theme="dark"] .mini-motif {
  filter: invert(0.88) sepia(0.32) saturate(1.2) brightness(1.08);
  opacity: 0.9;
}

.panel-seal {
  width: 60px;
  height: 60px;
  margin-top: 14px;
  opacity: 0.75;
}

.stack-form {
  display: grid;
  gap: 11px;
}

.stack-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border: 1.25px solid var(--hairline-strong);
  border-radius: 9px;
  padding: 9px 12px;
  background: var(--ivory);
  color: var(--ink);
  outline: none;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: var(--clay);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.boundary-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-muted);
}

.code-pre {
  background: #1b1815;
  color: #f2e6ce;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 14px 0 0;
  max-height: 320px;
  white-space: pre-wrap;
}

.c-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.item-card {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 16px 18px;
}

.item-card.pending {
  background: var(--gold-soft);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.item-card.ticket-card {
  border-style: dashed;
}

.item-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.item-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.item-card p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.card-footnote {
  margin: 10px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0.82;
}

.meta {
  color: var(--ink-muted);
  font-size: 11.5px;
  font-family: var(--f-mono);
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.pill.green {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--leaf-soft);
}

.pill.gold {
  border-color: var(--clay);
  color: var(--clay);
  background: var(--gold-soft);
}

.pill.red {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.item-actions button {
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--ivory);
  font-size: 11.5px;
  font-weight: 600;
}

.item-actions button:hover {
  border-color: var(--ink);
}

.item-actions button.btn-primary-inline {
  background: var(--leaf);
  color: #1b1815;
  border-color: var(--ink);
}

.empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--hairline-strong);
  border-radius: 12px;
  color: var(--ink-muted);
}

.backup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.receipt-box {
  background: var(--paper);
  border: 1.5px dashed var(--olive);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
}

.console-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   TOAST & MODAL
   ========================================================================== */

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  z-index: 80;
  box-shadow: var(--card-shadow);
  animation: toastIn 0.18s var(--ease-hand) both;
}

.toast.error {
  background: var(--danger);
  color: #fbfaf6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(22, 19, 16, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(500px, 100%);
  border: 1.75px solid var(--ink);
  border-radius: 16px;
  background: var(--ivory);
  padding: 22px;
  box-shadow: var(--shadow-hard);
  animation: modalIn 0.18s var(--ease-hand) both;
}

.modal-card h3 {
  margin: 0 0 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   SCREEN 4 · A DAY WITH MOTE (XIAOU'S 24H STORY)
   ========================================================================== */

.day-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 9px 12px;
  background: var(--ivory);
  border: 1.25px solid var(--hairline-strong);
  border-radius: 16px;
}

.day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-pills .step-pill {
  padding: 5px 10px;
  font-size: 11px;
}

.day-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.28fr;
  gap: 16px;
  align-items: stretch;
}

.day-meta-card {
  background: var(--oat);
  border: 1.25px solid var(--hairline-strong);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.day-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.day-clock {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.day-mascot-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.day-mascot-row img {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

.day-scene-title {
  margin: 0;
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.day-cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-cap-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--ivory);
  color: var(--ink);
}

.day-cta-btn {
  width: 100%;
}

.day-scene-card {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  border: 1.75px solid var(--ink);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--card-shadow);
}

.day-card-motif {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 64px;
  height: 64px;
  opacity: 0.12;
  pointer-events: none;
}

body[data-theme="dark"] .day-card-motif {
  filter: invert(0.86) sepia(0.26);
  opacity: 0.14;
}

.day-scene-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.day-actor {
  font-size: 11px;
  font-weight: 600;
  color: var(--clay);
}

.day-scope-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-muted);
}

.day-dialogue {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.day-msg {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 15px;
  line-height: 1.5;
}

.day-msg.is-highlight {
  background: var(--leaf-soft);
  border-color: var(--olive);
}

.day-msg.is-candidate {
  background: var(--gold-soft);
  border-style: dashed;
  border-color: var(--clay);
}

.day-msg-role {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 4px;
}

.day-msg-lead {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.day-msg-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.day-trace-bar {
  position: relative;
  z-index: 1;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.day-trace-text {
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   QUICK CHIPS & REAL JSON IMPORT MODAL
   ========================================================================== */

.quick-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-chip {
  appearance: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  transition: border-color 0.14s var(--ease-hand), background-color 0.14s var(--ease-hand), transform 0.12s var(--ease-hand);
}

.quick-chip:hover {
  border-color: var(--ink);
  background: var(--oat);
}

.quick-chip:active {
  transform: scale(0.97);
}

.quick-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.context-inspector {
  margin-top: 14px;
  border: 1.25px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--ivory);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.inspector-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.inspector-tabs {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 2px;
  display: inline-flex;
  gap: 2px;
}

.inspector-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  transition: background-color 0.14s var(--ease-hand), color 0.14s var(--ease-hand);
}

.inspector-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.context-visual {
  display: grid;
  gap: 8px;
}

.context-visual:empty {
  display: none;
}

.ctx-group-label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.ctx-hit {
  background: var(--leaf-soft);
  border: 1px solid var(--olive);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.ctx-current-hit {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.ctx-guard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gold-soft);
  border: 1px dashed var(--clay);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.ctx-guard-btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ivory);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s var(--ease-hand);
}

.ctx-guard-btn:active {
  transform: scale(0.96);
}

.context-inspector .code-pre {
  margin-top: 0;
}

.import-modal-card {
  width: min(640px, 100%);
  display: grid;
  gap: 12px;
}

.import-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.import-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.import-json-area {
  width: 100%;
  border: 1.25px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.55;
  resize: vertical;
}

.import-preview-summary {
  font-size: 11.5px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--leaf-soft);
  color: var(--olive);
}

.import-preview-summary.is-error {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 960px) {
  .day-controls {
    flex-wrap: wrap;
  }

  .relay-stage,
  .day-stage,
  .console-shell,
  .two-column,
  .stat-grid,
  .row-grid {
    grid-template-columns: 1fr;
  }

  .row-divider {
    display: none;
  }

  .sticker-schedule-list {
    padding: 6px 0 14px;
  }

  .sticker-row.seal-left,
  .sticker-row.seal-right {
    margin: 0;
    padding: 22px 20px;
  }

  .row-seal {
    display: none;
  }

  .hero-stage {
    min-height: 460px;
    padding: 20px 18px 24px;
  }

  .hero-bottom-collage {
    height: 180px;
    margin: 12px -18px -24px;
  }

  .c-sidebar {
    position: static;
  }

  .conn-pill,
  .brand-sub,
  .closing-mote {
    display: none;
  }

  .inline-form,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
