:root {
  color-scheme: dark;
  --bg: #06100d;
  --surface: #0b1713;
  --surface-strong: #10211b;
  --surface-soft: #142820;
  --line: rgba(225, 239, 231, 0.12);
  --line-strong: rgba(225, 239, 231, 0.22);
  --text: #f3f8f4;
  --muted: #91a49b;
  --muted-strong: #b7c5be;
  --accent: #d8ff67;
  --accent-strong: #bff23c;
  --accent-ink: #142007;
  --teal: #58d7b7;
  --burgundy: #8a2347;
  --lower: #4ea786;
  --middle: #398071;
  --upper: #2a5d55;
  --danger: #ff806e;
  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(68, 151, 119, 0.17), transparent 38%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(216, 255, 103, 0.42);
  outline-offset: 3px;
}

button {
  color: inherit;
}

.app-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 44px) 48px;
}

.topbar {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(216, 255, 103, 0.08);
  border: 1px solid rgba(216, 255, 103, 0.2);
  border-radius: 13px;
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 680;
}

.topbar-event {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 13px;
}

.topbar-event strong {
  color: var(--text);
}

.event-kicker {
  padding: 6px 9px;
  color: #ffd7e4;
  background: rgba(138, 35, 71, 0.34);
  border: 1px solid rgba(255, 187, 210, 0.18);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.prototype-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 103, 0.08);
}

main {
  padding-top: clamp(28px, 4vw, 54px);
}

.prompt-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(430px, 1.15fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 52px);
}

.prompt-heading {
  display: grid;
  gap: 12px;
}

.prompt-heading > div {
  display: grid;
  gap: 7px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.13em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.prompt-heading > p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.prompt-form {
  min-height: 62px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 18px;
  background: #f3f7f3;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.prompt-form > svg {
  width: 21px;
  fill: none;
  stroke: #5f6c65;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.prompt-form input {
  min-width: 0;
  height: 44px;
  padding: 0;
  color: #152019;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.prompt-form input::placeholder {
  color: #7a867f;
}

.prompt-form button {
  min-height: 46px;
  padding: 0 20px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
  transition: background 160ms ease, transform 160ms ease;
}

.prompt-form button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.prompt-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 11px;
  scrollbar-width: none;
}

.prompt-examples::-webkit-scrollbar {
  display: none;
}

.prompt-examples > span {
  flex: 0 0 auto;
}

.prompt-examples button {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.prompt-examples button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.selection-workspace,
.view-panel {
  overflow: hidden;
  background: rgba(11, 23, 19, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.venue-toolbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.venue-search-wrap {
  display: grid;
  gap: 5px;
}

.venue-search-wrap > label,
.venue-search-wrap small,
.event-summary small {
  color: var(--muted);
  font-size: 10px;
}

.venue-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.venue-search-control input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 650;
}

.venue-search-control input::placeholder {
  color: #71847b;
}

.venue-search-control button {
  min-height: 29px;
  padding: 0 11px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 720;
}

.venue-search-wrap small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-quick-picks {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.venue-quick-picks::-webkit-scrollbar {
  display: none;
}

.venue-quick-picks button {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.venue-quick-picks button:hover,
.venue-quick-picks button.is-active {
  color: var(--accent);
  background: rgba(216, 255, 103, 0.07);
  border-color: rgba(216, 255, 103, 0.25);
}

.event-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.event-summary > span:last-child {
  display: grid;
  gap: 3px;
}

.event-summary strong {
  font-size: 12px;
}

.event-type-control {
  cursor: default;
}

.event-type-control select {
  max-width: 120px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  font-weight: 670;
}

.event-type-control option {
  color: #152019;
}

.event-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(88, 215, 183, 0.08);
  border-radius: 9px;
}

.event-icon svg,
.secondary-button svg,
.icon-button svg,
.copy-button svg,
.seat-pin svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 620;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.secondary-button:hover,
.copy-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.stadium-panel {
  padding: 22px 22px 8px;
}

.panel-heading,
.seat-picker-heading,
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading > div:first-child,
.seat-picker-heading > div:first-child,
.view-heading > div:first-child {
  display: grid;
  gap: 5px;
}

.panel-heading h2,
.seat-picker-heading h2,
.view-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.level-legend,
.seat-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

.level-legend span,
.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.level-legend i,
.seat-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.level-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-lower {
  background: var(--lower);
}

.legend-middle {
  background: var(--middle);
}

.legend-upper {
  background: var(--upper);
}

.stadium-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(68, 132, 103, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 55%);
  border-radius: 17px;
}

#stadiumMap {
  width: min(100%, 720px);
  height: auto;
  overflow: visible;
}

.stadium-shadow {
  fill: rgba(0, 0, 0, 0.5);
}

.stadium-floor {
  fill: url("#stadiumFloor");
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
}

.section-path {
  cursor: pointer;
  stroke: rgba(222, 240, 230, 0.12);
  stroke-width: 1.1;
  transition: fill 160ms ease, stroke 160ms ease, opacity 160ms ease;
}

.section-path.level-lower {
  fill: #336f5b;
}

.section-path.level-middle {
  fill: #27594e;
}

.section-path.level-upper {
  fill: #1f463f;
}

.section-path.level-premium {
  fill: #6b5630;
}

.section-path:hover,
.section-path:focus-visible {
  fill: #74b996;
  stroke: rgba(232, 255, 242, 0.58);
  opacity: 1;
}

.section-path.is-selected {
  fill: var(--accent);
  stroke: #f4ffce;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(216, 255, 103, 0.55));
}

.section-path.custom-section {
  stroke-width: 1.4;
}

.custom-court {
  fill: #325f47;
  stroke: rgba(226, 255, 221, 0.8);
  stroke-width: 2;
}

.custom-pitch {
  fill: url("#pitchGradient");
  stroke: rgba(226, 255, 221, 0.8);
  stroke-width: 2;
}

.custom-field-line {
  fill: none;
  stroke: rgba(235, 255, 233, 0.72);
  stroke-width: 1.4;
  pointer-events: none;
}

.custom-map-title {
  fill: #cfe2d5;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-anchor: middle;
}

.section-label {
  fill: #91a79e;
  font-size: 8px;
  font-weight: 650;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, fill 160ms ease;
}

.section-label.is-major {
  opacity: 0.7;
}

.section-label.is-selected {
  fill: #172205;
  font-size: 10px;
  font-weight: 800;
  opacity: 1;
}

.pitch-top-view rect {
  fill: url("#pitchGradient");
  stroke: rgba(223, 255, 225, 0.78);
  stroke-width: 1.5;
}

.pitch-top-view path,
.pitch-top-view circle {
  fill: none;
  stroke: rgba(235, 255, 234, 0.74);
  stroke-width: 1.2;
}

.pitch-top-view circle:nth-of-type(2) {
  fill: rgba(235, 255, 234, 0.8);
  stroke: none;
}

.pitch-top-view text {
  fill: rgba(210, 229, 218, 0.72);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-anchor: middle;
}

.pitch-top-view.is-hidden {
  opacity: 0;
}

.basketball-map {
  display: none;
}

.basketball-map.is-visible {
  display: block;
}

.basketball-map .court {
  fill: #bb7c47;
  stroke: rgba(255, 238, 204, 0.9);
  stroke-width: 1.4;
}

.basketball-map .line {
  fill: none;
  stroke: rgba(83, 43, 26, 0.9);
  stroke-width: 1.25;
}

.basketball-map text {
  fill: rgba(245, 226, 195, 0.85);
  font-size: 7px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.orientation-labels text {
  fill: #71847b;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-anchor: middle;
}

.map-selection-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  min-width: 130px;
  padding: 12px 14px;
  background: rgba(5, 13, 10, 0.84);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.map-selection-label span,
.map-selection-label small {
  color: var(--muted);
  font-size: 9px;
}

.map-selection-label strong {
  color: var(--accent);
  font-size: 20px;
}

.seat-picker {
  margin-top: 4px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}

.seat-picker-heading p:last-child {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.row-stepper {
  display: grid;
  grid-template-columns: 34px minmax(76px, auto) 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.row-stepper button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted-strong);
  background: transparent;
  border: 0;
  font-size: 18px;
}

.row-stepper button:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.row-stepper span {
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.seat-grid-wrap {
  margin-top: 18px;
  padding: 15px 13px 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
}

.field-direction {
  min-width: 530px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.field-direction span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 215, 183, 0.42));
}

.field-direction span:last-child {
  background: linear-gradient(90deg, rgba(88, 215, 183, 0.42), transparent);
}

.seat-grid {
  min-width: 530px;
  display: grid;
  gap: 8px;
}

.seat-row {
  display: grid;
  grid-template-columns: 38px repeat(18, minmax(20px, 1fr));
  align-items: center;
  gap: 5px;
}

.row-label {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.seat-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-width: 20px;
  max-width: 27px;
  justify-self: center;
  padding: 0;
  color: transparent;
  background: #365049;
  border: 1px solid rgba(224, 240, 232, 0.15);
  border-radius: 7px 7px 9px 9px;
  transition: transform 130ms ease, background 130ms ease, border-color 130ms ease;
}

.seat-button::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -4px;
  height: 3px;
  background: #253d36;
  border-radius: 0 0 3px 3px;
}

.seat-button:nth-of-type(10) {
  margin-left: 10px;
}

.seat-button:hover {
  z-index: 1;
  background: #6c9286;
  border-color: rgba(235, 255, 245, 0.48);
  transform: translateY(-2px);
}

.seat-button.is-selected {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: #f3ffcd;
  box-shadow: 0 0 0 3px rgba(216, 255, 103, 0.12);
  transform: translateY(-2px);
}

.seat-button.is-selected::after {
  background: #92b82f;
}

.seat-legend {
  justify-content: flex-end;
  margin-top: 12px;
}

.seat-legend i {
  width: 11px;
  height: 9px;
  border-radius: 3px;
}

.available-seat {
  background: #365049;
}

.selected-seat {
  background: var(--accent);
}

.aisle-mark {
  border-right: 2px solid rgba(225, 239, 231, 0.35);
  border-radius: 0 !important;
}

.view-panel {
  position: sticky;
  top: 14px;
}

.view-heading {
  min-height: 78px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.pov-frame {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #08100e;
  border-bottom: 1px solid var(--line);
}

#povCanvas {
  width: 100%;
  height: 470px;
  display: block;
}

.pov-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 85px rgba(0, 0, 0, 0.48);
}

.pov-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.simulation-label,
.match-label,
.pov-seat-label,
.pov-distance {
  position: absolute;
  z-index: 1;
}

.simulation-label {
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #ecfff6;
  background: rgba(3, 10, 8, 0.62);
  border: 1px solid rgba(232, 255, 243, 0.12);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.11em;
  backdrop-filter: blur(8px);
}

.simulation-label span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(216, 255, 103, 0.8);
}

.match-label {
  top: 15px;
  right: 15px;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  color: white;
  background: rgba(112, 24, 55, 0.7);
  border: 1px solid rgba(255, 220, 232, 0.16);
  border-radius: 7px;
  text-align: right;
  backdrop-filter: blur(8px);
}

.match-label small,
.pov-seat-label small,
.pov-distance small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 7px;
  font-weight: 680;
  letter-spacing: 0.1em;
}

.match-label strong {
  font-size: 10px;
}

.pov-seat-label {
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 3px;
}

.pov-seat-label strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pov-distance {
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 3px;
  text-align: right;
}

.pov-distance strong {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.seat-summary {
  padding: 20px 18px 18px;
}

.selected-seat-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.seat-pin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(216, 255, 103, 0.08);
  border: 1px solid rgba(216, 255, 103, 0.15);
  border-radius: 11px;
}

.selected-seat-title > div {
  display: grid;
  gap: 3px;
}

.selected-seat-title small {
  color: var(--muted);
  font-size: 9px;
}

.selected-seat-title strong {
  overflow: hidden;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-tag {
  padding: 6px 8px;
  color: #d8fff4;
  background: rgba(88, 215, 183, 0.09);
  border: 1px solid rgba(88, 215, 183, 0.17);
  border-radius: 7px;
  font-size: 9px;
}

.view-description {
  min-height: 46px;
  margin: 17px 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.seat-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 17px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seat-metrics > div {
  display: grid;
  gap: 5px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.seat-metrics > div:first-child {
  padding-left: 0;
}

.seat-metrics > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.seat-metrics dt {
  color: var(--muted);
  font-size: 9px;
}

.seat-metrics dd {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.copy-button {
  width: 100%;
}

.prototype-note {
  margin: 0;
  padding: 13px 18px 16px;
  color: #788c82;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 9px;
  line-height: 1.6;
}

.view-panel.is-expanded {
  position: fixed;
  inset: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  grid-template-rows: 78px minmax(0, 1fr) auto;
  background: #091410;
}

.view-panel.is-expanded .view-heading {
  grid-column: 1 / -1;
}

.view-panel.is-expanded .pov-frame {
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.view-panel.is-expanded #povCanvas {
  height: 100%;
}

.view-panel.is-expanded .seat-summary {
  align-self: center;
  padding: 28px;
}

.view-panel.is-expanded .prototype-note {
  grid-column: 2;
}

body.has-expanded-view {
  overflow: hidden;
}

body.has-expanded-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: calc(100vw - 32px);
  padding: 11px 15px;
  color: #162007;
  background: var(--accent);
  border-radius: 9px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 680;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

noscript {
  display: block;
  padding: 20px;
  color: white;
  background: #7b1f3e;
  text-align: center;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-event {
    display: none;
  }

  .prompt-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  }

  .venue-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }

  .event-type-control .event-icon {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 0 14px 30px;
  }

  .topbar {
    min-height: 76px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .prototype-badge {
    max-width: 104px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main {
    padding-top: 28px;
  }

  h1 {
    font-size: 31px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .view-panel {
    position: relative;
    top: auto;
  }

  .stadium-stage {
    min-height: 390px;
  }

  .view-panel.is-expanded {
    inset: 8px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 66px minmax(0, 1fr) auto auto;
  }

  .view-panel.is-expanded .view-heading,
  .view-panel.is-expanded .prototype-note {
    grid-column: 1;
  }

  .view-panel.is-expanded .pov-frame {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .view-panel.is-expanded .seat-summary {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 23px;
  }

  .prototype-badge {
    gap: 6px;
  }

  .prompt-heading > p {
    font-size: 13px;
  }

  .prompt-form {
    grid-template-columns: 21px minmax(0, 1fr);
    padding: 8px 12px;
  }

  .prompt-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .venue-toolbar {
    grid-template-columns: 1fr;
  }

  .venue-search-control input {
    font-size: 13px;
  }

  .secondary-button {
    width: 100%;
  }

  .stadium-panel {
    padding: 18px 12px 5px;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .level-legend {
    gap: 8px;
  }

  .stadium-stage {
    min-height: 315px;
    margin-top: 4px;
  }

  .map-selection-label {
    left: 8px;
    bottom: 8px;
    min-width: 112px;
    padding: 9px 10px;
  }

  .map-selection-label strong {
    font-size: 16px;
  }

  .seat-picker {
    padding: 18px 12px;
  }

  .seat-picker-heading {
    align-items: flex-start;
  }

  .seat-picker-heading p:last-child {
    max-width: 190px;
  }

  .row-stepper {
    grid-template-columns: 30px 64px 30px;
  }

  .row-stepper button {
    width: 30px;
  }

  .seat-legend {
    justify-content: flex-start;
  }

  .pov-frame {
    min-height: 390px;
  }

  #povCanvas {
    height: 390px;
  }

  .selected-seat-title {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .quality-tag {
    grid-column: 2;
    justify-self: start;
  }

  .seat-metrics {
    gap: 0;
  }

  .seat-metrics > div {
    padding: 0 7px;
  }

  .seat-metrics dd {
    font-size: 10px;
  }
}

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