:root {
  color-scheme: dark;
  --black: #080908;
  --black-soft: #0d0f0e;
  --surface: #111311;
  --surface-raised: #161815;
  --surface-deep: #0b0d0c;
  --line: rgba(238, 236, 223, .11);
  --line-strong: rgba(238, 236, 223, .19);
  --ivory: #f1eee4;
  --ivory-soft: #cbc8bd;
  --muted: #85877f;
  --dim: #5d6059;
  --accent: #ddeb83;
  --accent-hot: #ddff47;
  --accent-ink: #12160a;
  --danger: #ff776d;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow: 0 32px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(221, 235, 131, .11), transparent 30%),
    radial-gradient(circle at 8% 38%, rgba(221, 255, 71, .035), transparent 24%),
    linear-gradient(180deg, #090a09 0%, #070807 100%);
  color: var(--ivory);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

::selection { background: var(--accent); color: var(--accent-ink); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  max-width: 1540px;
  min-height: 104px;
  margin: 0 auto;
  padding: 26px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: 0;
  left: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line) 88%, transparent);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(221, 235, 131, .7);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-hot), #afbd66);
  box-shadow: 0 0 0 5px rgba(221, 235, 131, .035), 0 8px 24px rgba(0, 0, 0, .35);
  color: var(--accent-ink);
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 21px;
  font-weight: 800;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -50% 45% -50% -20%;
  background: rgba(255,255,255,.28);
  transform: rotate(22deg);
}

.brand strong {
  display: block;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .22em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .28em;
}

.topbar-side { display: flex; align-items: center; gap: 22px; }
.edition { color: var(--dim); font-size: 8px; letter-spacing: .24em; }

.status-pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.018);
  color: #8d9087;
  font-size: 8px;
  letter-spacing: .18em;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.status-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 14px rgba(221, 255, 71, .8);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: .45; box-shadow: 0 0 4px rgba(221,255,71,.3); } }

.shell { max-width: 1540px; margin: 0 auto; padding: 74px 44px 78px; }

.hero {
  position: relative;
  min-height: 420px;
  margin-bottom: 48px;
  padding: 26px 0 54px;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow, .output-kicker {
  margin: 0 0 23px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .29em;
}

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 30px; height: 1px; background: var(--accent); box-shadow: 0 0 12px rgba(221,235,131,.45); }

.hero h1 {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(62px, 7.4vw, 118px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.hero h1 em {
  position: relative;
  color: var(--accent-hot);
  font-style: normal;
  text-shadow: 0 0 42px rgba(221, 255, 71, .08);
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: .02em;
  bottom: .03em;
  left: .08em;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hot), transparent);
  opacity: .55;
}

.hero-emblem {
  position: absolute;
  top: 38px;
  right: 4.5%;
  width: 230px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 235, 131, .16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(221, 235, 131, .075), transparent 57%),
    var(--black-soft);
  box-shadow: inset 0 0 60px rgba(0,0,0,.42), 0 30px 80px rgba(0,0,0,.22);
}

.hero-emblem::before,
.hero-emblem::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(221, 235, 131, .12);
  border-radius: 50%;
}

.hero-emblem::before { inset: 20px; border-style: dashed; animation: orbit 30s linear infinite; }
.hero-emblem::after { inset: 50%; width: 1px; height: 49%; border: 0; border-left: 1px solid rgba(221,235,131,.18); border-radius: 0; transform-origin: top; transform: rotate(37deg); }

@keyframes orbit { to { transform: rotate(360deg); } }

.hero-emblem > span {
  font-family: Georgia, serif;
  font-size: 47px;
  font-style: italic;
  letter-spacing: -.08em;
}

.hero-emblem > small {
  position: absolute;
  right: 28px;
  bottom: 31px;
  color: var(--dim);
  font-size: 6px;
  line-height: 1.6;
  letter-spacing: .2em;
  text-align: right;
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #757870;
  font-size: 8px;
  letter-spacing: .15em;
}

.hero-meta span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-meta b { color: var(--accent); font-size: 8px; font-weight: 500; }
.hero-meta i { width: 42px; height: 1px; background: var(--line); }

.workspace {
  display: grid;
  grid-template-columns: minmax(430px, .84fr) minmax(520px, 1.16fr);
  gap: 20px;
  align-items: start;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(22,24,21,.96), rgba(13,15,14,.98));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.028);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221,235,131,.42), transparent);
}

.control-panel { padding: 36px; }

.output-panel {
  position: sticky;
  top: 18px;
  min-height: 790px;
  padding: 36px;
  background:
    radial-gradient(circle at 90% 8%, rgba(221,235,131,.06), transparent 27%),
    linear-gradient(150deg, rgba(18,20,18,.98), rgba(9,11,10,.99));
}

.section-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }

.section-head > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255,255,255,.018);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.section-head h2, .output-head h2 { margin: 0; font-size: 18px; font-weight: 520; letter-spacing: .015em; }
.section-head p { margin: 6px 0 0; color: var(--dim); font-size: 10px; letter-spacing: .04em; }
.divider { height: 1px; margin: 34px -36px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.field { display: block; min-width: 0; }

.field > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: #c5c4bb;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .08em;
}

.field small { display: block; margin-top: 8px; color: var(--dim); font-size: 9px; line-height: 1.55; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: 1.4fr .6fr; }
.key-field { margin-top: 16px; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(5, 7, 6, .66);
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition: border-color .22s, box-shadow .22s, background .22s;
}

input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 188px; padding: 16px; resize: vertical; line-height: 1.8; }
input[readonly] { color: var(--accent); cursor: default; letter-spacing: .05em; }
input::placeholder, textarea::placeholder { color: #555850; }

input:focus, textarea:focus, select:focus {
  border-color: rgba(221, 235, 131, .48);
  background: rgba(7,9,8,.9);
  box-shadow: 0 0 0 4px rgba(221,235,131,.055), inset 0 1px rgba(255,255,255,.025);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #82857b 50%),
    linear-gradient(135deg, #82857b 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.input-action { position: relative; }
.input-action input { padding-right: 66px; }

.input-action button {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #92948b;
  cursor: pointer;
  font-size: 9px;
  transition: .2s;
}

.input-action button:hover { border-color: rgba(221,235,131,.3); color: var(--accent); }

.history-login-row { display: flex; align-items: center; gap: 13px; margin-top: 13px; }

.history-button {
  flex: 0 0 auto;
  height: 39px;
  padding: 0 15px;
  border: 1px solid rgba(221,235,131,.25);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(221,235,131,.09), rgba(221,235,131,.035));
  color: var(--accent);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .2s, background .2s, border-color .2s;
}

.history-button:hover { transform: translateY(-1px); border-color: rgba(221,235,131,.45); background: rgba(221,235,131,.12); }
.history-button:disabled { color: var(--muted); border-color: var(--line); cursor: wait; transform: none; }
.history-login-row > span { color: var(--dim); font-size: 8px; line-height: 1.5; }

.prompt-field { position: relative; }
.counter { position: absolute; right: 13px; bottom: 11px; padding-left: 9px; background: #0c0e0d; color: #5c5f58; font-size: 8px; }
.prompt-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

.prompt-tools button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.012);
  color: #84877e;
  cursor: pointer;
  font-size: 9px;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.prompt-tools button::before { content: "+"; margin-right: 5px; color: var(--accent); }
.prompt-tools button:hover { transform: translateY(-1px); border-color: rgba(221,235,131,.28); background: rgba(221,235,131,.045); color: #d9d8cf; }
.options-grid { grid-template-columns: repeat(2, 1fr); margin-top: 25px; }

.generate-button {
  position: relative;
  width: 100%;
  min-height: 72px;
  margin-top: 27px;
  padding: 0 11px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(235,255,164,.52);
  border-radius: 12px;
  background: linear-gradient(115deg, #d5e47c, #e5ff55 56%, #cbd978);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(185, 212, 65, .08), inset 0 1px rgba(255,255,255,.45);
  transition: transform .22s, box-shadow .22s, filter .22s;
}

.generate-button::before {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -35%;
  width: 28%;
  background: rgba(255,255,255,.35);
  transform: rotate(18deg);
  transition: left .5s ease;
}

.generate-button:hover { transform: translateY(-2px); box-shadow: 0 19px 48px rgba(185,212,65,.14); filter: saturate(1.06); }
.generate-button:hover::before { left: 115%; }
.generate-button:disabled { cursor: wait; filter: saturate(.3); transform: none; }
.button-label { position: relative; z-index: 1; text-align: left; }
.button-label b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.button-label small { display: block; margin-top: 4px; font-size: 7px; letter-spacing: .22em; opacity: .53; }

.arrow {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,22,10,.12);
  border-radius: 9px;
  background: rgba(12,14,7,.1);
  font-size: 20px;
  transition: transform .22s;
}

.generate-button:hover .arrow { transform: rotate(10deg); }

.output-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.output-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 76px;
  height: 1px;
  background: var(--accent);
}

.output-kicker { display: block; margin-bottom: 9px; color: var(--dim); font-size: 8px; }
.output-head h2 { font-size: 22px; font-family: "Songti SC", STSong, SimSun, serif; font-weight: 400; }

.text-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #696c65;
  cursor: pointer;
  font-size: 9px;
  transition: color .2s;
}
.text-button:hover { color: var(--ivory); }

.empty-state, .loading-state {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state h3, .loading-state h3 {
  margin: 28px 0 8px;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .04em;
}

.empty-state p, .loading-state p { margin: 0; color: var(--dim); font-size: 10px; letter-spacing: .03em; }

.empty-art {
  position: relative;
  width: 210px;
  height: 210px;
  overflow: hidden;
  border: 1px solid rgba(221,235,131,.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 31%, rgba(221,255,71,.09), transparent 22%),
    #0b0d0c;
  box-shadow: 0 0 0 10px rgba(255,255,255,.012), inset 0 0 50px rgba(0,0,0,.5);
}

.empty-art::before {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px dashed rgba(221,235,131,.11);
  border-radius: 50%;
  animation: orbit 35s linear infinite reverse;
}

.empty-art::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  width: 1px;
  height: 164px;
  background: linear-gradient(transparent, rgba(221,235,131,.12), transparent);
  transform: rotate(43deg);
}

.empty-art span {
  position: absolute;
  left: -19px;
  width: 245px;
  height: 80px;
  border: 1px solid rgba(238,236,223,.13);
  border-radius: 50%;
  transform: rotate(-10deg);
}
.empty-art span:nth-child(1) { bottom: 4px; }
.empty-art span:nth-child(2) { bottom: -22px; left: -39px; }
.empty-art span:nth-child(3) { bottom: -43px; left: 13px; }

.empty-art .sun {
  position: absolute;
  top: 53px;
  right: 50px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-hot), #bccc68);
  box-shadow: 0 0 42px rgba(221,255,71,.22), inset -5px -4px 10px rgba(80,90,24,.16);
}

.developing { display: flex; align-items: center; gap: 8px; height: 62px; }
.developing i { width: 10px; height: 50px; border-radius: 20px; background: linear-gradient(var(--accent-hot), #929e55); animation: develop 1.05s ease-in-out infinite; }
.developing i:nth-child(2) { animation-delay: .14s; }
.developing i:nth-child(3) { animation-delay: .28s; }
@keyframes develop { 0%, 100% { transform: scaleY(.35); opacity: .26; } 50% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 18px rgba(221,255,71,.2); } }

.error-state {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(255,119,109,.25);
  border-radius: 11px;
  background: linear-gradient(110deg, rgba(255,119,109,.075), rgba(255,119,109,.025));
}

.error-state > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--danger); color: #1b0504; font-size: 12px; font-weight: 800; }
.error-state h3 { margin: 1px 0 5px; font-size: 11px; }
.error-state p { margin: 0; color: #d9a7a3; font-size: 10px; line-height: 1.6; word-break: break-word; }
.hidden { display: none !important; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
}

.art-card {
  position: relative;
  min-height: 295px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #090b0a;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  isolation: isolate;
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0,0,0,.12);
}

.art-card img { display: block; width: 100%; height: 100%; min-height: 295px; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s; }
.art-card:hover img { transform: scale(1.025); filter: saturate(1.04); }
.art-card:first-child:nth-last-child(1) { grid-column: 1 / -1; }
.art-card:first-child:nth-last-child(1) img { max-height: 720px; object-fit: contain; }

.art-actions {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s;
}

.art-card:hover .art-actions { opacity: 1; transform: translateY(0); }

.art-actions button, .art-actions a {
  height: 37px;
  min-width: 37px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(9,11,10,.76);
  backdrop-filter: blur(16px);
  color: var(--ivory);
  cursor: pointer;
  text-decoration: none;
  font-size: 9px;
  transition: background .2s, border-color .2s;
}

.art-actions button:hover, .art-actions a:hover { border-color: rgba(221,235,131,.38); background: rgba(20,23,18,.9); color: var(--accent); }

.history-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 70px 13px 61px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(5,6,5,.95));
}

.history-caption strong { display: block; overflow: hidden; color: #f0eee6; font-size: 10px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.history-caption span { display: block; margin-top: 5px; color: #aaa99f; font-size: 7px; letter-spacing: .05em; }
.history-card .art-actions { opacity: 1; transform: none; }

.revised-prompt {
  grid-column: 1 / -1;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.revised-prompt b { color: var(--ivory-soft); }

footer {
  position: relative;
  max-width: 1540px;
  margin: 0 auto;
  padding: 27px 44px 40px;
  display: flex;
  justify-content: space-between;
  color: #51544e;
  font-size: 7px;
  letter-spacing: .23em;
}

footer::before { content: ""; position: absolute; top: 0; right: 44px; left: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 1fr; }
  .output-panel { position: static; min-height: 650px; }
  .empty-state, .loading-state { min-height: 510px; }
  .hero-emblem { right: 1%; transform: scale(.85); }
}

@media (max-width: 760px) {
  .topbar, .shell, footer { padding-right: 20px; padding-left: 20px; }
  .topbar { min-height: 86px; padding-top: 18px; padding-bottom: 18px; }
  .topbar::after, footer::before { right: 20px; left: 20px; }
  .edition { display: none; }
  .shell { padding-top: 45px; }
  .hero { min-height: 380px; margin-bottom: 26px; padding-top: 18px; }
  .hero h1 { font-size: clamp(55px, 14vw, 82px); line-height: 1.02; }
  .hero-emblem { top: 154px; right: -28px; width: 175px; opacity: .62; }
  .hero-meta { gap: 9px; overflow: hidden; }
  .hero-meta i { width: 15px; }
  .hero-meta span { font-size: 7px; letter-spacing: .08em; }
  .control-panel, .output-panel { padding: 23px; }
  .divider { margin-right: -23px; margin-left: -23px; }
  .gallery { grid-template-columns: 1fr; }
  .art-card, .art-card img { min-height: 270px; }
  .history-login-row { align-items: flex-start; flex-direction: column; }
  footer { gap: 14px; flex-direction: column; }
}

@media (max-width: 460px) {
  .status-pill { display: none; }
  .hero { min-height: 340px; }
  .hero-emblem { width: 145px; top: 145px; }
  .hero-meta span:last-child, .hero-meta i:last-of-type { display: none; }
  .options-grid { grid-template-columns: 1fr; }
  .panel { border-radius: 18px; }
}

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