:root {
  --navy: #0b1424;
  --carbon: #191a20;
  --white: #ffffff;
  --soft: #f8fafc;
  --surface: #f1f4f9;
  --border: #e2e8f0;
  --muted: #78899c;
  --ink-soft: #3b4658;
  --yellow: #f4d21f;
  --yellow-ink: #1a1500;
  --blue: #2563eb;
  --green: #12b981;
  --coral: #ff6b4a;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; color: var(--navy); background: var(--surface); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }

.demo-shell { min-height: 100vh; }
.prototype-bar { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.96); }
.prototype-brand { display: inline-flex; align-items: center; justify-self: start; color: var(--navy); font-size: 0.86rem; letter-spacing: -0.04em; text-decoration: none; }
.prototype-brand strong { font-weight: 800; }
.prototype-brand i, .app-wordmark i { width: 6px; height: 6px; display: inline-block; margin: 0 3px; border-radius: 50%; background: var(--yellow); }
.prototype-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.prototype-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.12); }
.prototype-exit { justify-self: end; color: var(--ink-soft); font-size: 0.7rem; font-weight: 700; text-decoration: none; }
.prototype-exit:hover, .prototype-exit:focus-visible { color: var(--navy); text-decoration: underline; }

.prototype-controls { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 7px 22px; border-bottom: 1px solid var(--border); background: var(--white); }
.step-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--white); font-size: 0.67rem; font-weight: 700; cursor: pointer; }
.step-button:hover:not(:disabled), .step-button:focus-visible { border-color: var(--navy); }
.step-button:disabled { opacity: 0.35; cursor: not-allowed; }
.screen-tabs { min-width: 0; display: flex; justify-content: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.screen-tabs::-webkit-scrollbar { display: none; }
.screen-tabs button { min-height: 32px; flex: 0 0 auto; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 0.64rem; font-weight: 700; cursor: pointer; }
.screen-tabs button:hover, .screen-tabs button:focus-visible { background: var(--surface); color: var(--navy); }
.screen-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

.prototype-stage { padding: 18px 22px 26px; }
.interaction-hint { min-height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; color: var(--muted); font-size: 0.62rem; }
.interaction-hint span { color: var(--blue); font-weight: 800; }
.prototype-screen[hidden] { display: none; }
.app-window { width: min(100%, 1060px); min-height: 585px; margin: 0 auto; overflow: hidden; border: 1px solid #d8dee7; border-radius: 18px; background: var(--white); box-shadow: 0 28px 62px -46px rgba(11, 20, 36, 0.52); }
.app-topbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--border); }
.app-wordmark { color: var(--navy); font-size: 0.78rem; letter-spacing: -0.04em; }
.app-wordmark strong { font-weight: 800; }
.app-actions { display: flex; align-items: center; gap: 12px; }
.app-actions > span { color: var(--muted); font-size: 0.7rem; }
.app-actions b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); font-size: 0.5rem; }
.app-content { min-height: 535px; padding: clamp(24px, 4vw, 42px); background: var(--soft); }
.home-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.home-heading p { margin: 0 0 4px; color: var(--muted); font-size: 0.68rem; }
.home-heading h1, .page-heading h1 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.1rem); letter-spacing: -0.045em; line-height: 1.05; }
.home-heading > span { color: var(--muted); font-size: 0.62rem; font-weight: 650; }

.bento-grid { display: grid; grid-template-columns: 1.25fr 0.75fr 0.75fr; grid-template-rows: repeat(2, minmax(118px, 1fr)); gap: 12px; }
.bento-card { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: var(--white); text-align: left; }
button.bento-card { appearance: none; }
.action-card.interactive-card::after { color: var(--blue); }
.yellow-card.interactive-card::after { color: var(--yellow-ink); }
.yellow-card.interactive-card:hover, .yellow-card.interactive-card:focus-visible { border-color: rgba(11, 20, 36, 0.35); box-shadow: 0 18px 36px -28px rgba(11, 20, 36, 0.8); }
.interactive-card { position: relative; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.interactive-card::after { position: absolute; right: 14px; bottom: 12px; content: "↗"; color: var(--blue); font-size: 0.72rem; font-weight: 800; }
.interactive-card:hover, .interactive-card:focus-visible { border-color: rgba(37, 99, 235, 0.55); outline: 0; box-shadow: 0 18px 36px -28px rgba(37, 99, 235, 0.8); transform: translateY(-2px); }
.playing-card { grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(150deg, #171d2a, #0b1424); color: var(--white); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top small, .history-card small { color: var(--muted); font-size: 0.58rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.card-top em { padding: 4px 7px; border-radius: 7px; background: rgba(18, 185, 129, 0.14); color: #5ee6b0; font-size: 0.5rem; font-style: normal; }
.hero-time { display: block; margin-top: auto; color: var(--yellow); font-size: 0.66rem; font-weight: 750; }
.playing-card > strong { display: block; margin-top: 5px; font-size: 1.45rem; letter-spacing: -0.04em; }
.playing-card > span:not(.card-top, .hero-time, .capacity-row) { margin-top: 5px; color: #aeb8cb; font-size: 0.67rem; }
.capacity-row { display: flex; align-items: center; gap: 5px; margin-top: 18px; }
.capacity-row b { margin-right: 5px; font-size: 0.65rem; }
.capacity-row i { width: 22px; height: 8px; border-radius: 3px; background: var(--yellow); }
.capacity-row i.open { background: #313b4c; }
.action-card { display: flex; flex-direction: column; justify-content: flex-end; }
.action-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: auto; border-radius: 10px; background: var(--surface); font-size: 1rem; }
.action-card strong { font-size: 0.83rem; }
.action-card small { margin-top: 4px; color: var(--muted); font-size: 0.57rem; }
.yellow-card { border-color: transparent; background: var(--yellow); color: var(--yellow-ink); }
.yellow-card .action-icon { background: rgba(255, 255, 255, 0.42); }
.yellow-card small { color: rgba(26, 21, 0, 0.62); }
.organising-card { grid-column: 2 / span 2; display: flex; flex-direction: column; }
.organising-card > strong { margin-top: auto; font-size: 1rem; }
.organising-card > span:last-of-type { margin-top: 4px; color: var(--muted); font-size: 0.62rem; }
.organising-card .card-top em { background: rgba(37, 99, 235, 0.09); color: var(--blue); }
.history-card { display: none; }

.empty-content { display: flex; flex-direction: column; }
.empty-actions { width: min(100%, 660px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px auto 0; }
.empty-actions .action-card { min-height: 220px; }
.empty-note { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: 0.7rem; text-align: center; }

.page-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-heading button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--white); cursor: pointer; }
.page-heading button:hover, .page-heading button:focus-visible { border-color: var(--navy); }
.page-heading > div > p { margin: 0 0 3px; color: var(--muted); font-size: 0.58rem; }

.discover-content, .create-content { padding-top: 28px; }
.discover-heading { margin-bottom: 16px; }
.discover-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.date-rail { display: flex; min-width: 0; gap: 7px; overflow-x: auto; }
.date-rail button { min-width: 58px; min-height: 52px; display: grid; place-content: center; gap: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--white); cursor: pointer; }
.date-rail button small { color: var(--muted); font-size: 0.44rem; font-weight: 750; }
.date-rail button b { font-size: 0.66rem; }
.date-rail button.is-active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.date-rail button.is-active small { color: #aeb8cb; }
.level-control { flex: 0 0 170px; display: grid; gap: 5px; color: var(--muted); font-size: 0.48rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.level-control select { min-height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--white); color: var(--navy); font-size: 0.58rem; font-weight: 700; text-transform: none; }
.discover-results { padding: 17px 20px 4px; border: 1px solid var(--border); border-radius: 17px; background: var(--white); }
.results-summary { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.results-summary strong { font-size: 0.66rem; }
.results-summary span { color: var(--muted); font-size: 0.5rem; }
.discover-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 14px 0; border-top: 1px solid var(--border); }
.discover-card[hidden] { display: none; }
.discover-card > time { display: grid; place-items: center; min-height: 76px; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: 0.46rem; }
.discover-card > time b { color: var(--navy); font-size: 1.35rem; line-height: 1; }
.discover-card > time span { font-size: 0.5rem; font-weight: 750; }
.discover-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
.discover-main > div { min-width: 0; }
.discover-main > div small { color: var(--muted); font-size: 0.46rem; font-weight: 750; letter-spacing: 0.04em; }
.discover-main h2 { margin: 3px 0 0; overflow: hidden; font-size: 0.86rem; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.event-level { align-self: center; font-size: 0.78rem; }
.discover-main > p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--ink-soft); font-size: 0.55rem; }
.discover-capacity { grid-column: 1 / -1; margin-top: 8px; }
.discover-capacity i { width: 17px; height: 6px; background: var(--blue); }
.discover-capacity i.partial { background: linear-gradient(90deg, var(--blue) 25%, #dce5f5 25%); }
.discover-capacity i.open { background: #dce5f5; }
.discover-card > button { min-width: 112px; min-height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--navy); font-size: 0.54rem; font-weight: 750; opacity: 1; }
.discover-card > button small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.4rem; font-weight: 600; }
.discover-empty { min-height: 170px; display: grid; place-content: center; gap: 5px; text-align: center; }
.discover-empty[hidden] { display: none; }
.discover-empty strong { font-size: 0.78rem; }
.discover-empty span { color: var(--muted); font-size: 0.57rem; }

.create-heading { align-items: flex-end; }
.create-heading > span { margin-left: auto; color: var(--muted); font-size: 0.5rem; }
.create-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr); gap: 14px; }
.create-form-panel { padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: var(--white); }
.preset-fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.preset-fieldset legend { margin-bottom: 9px; font-size: 0.62rem; font-weight: 750; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-card { min-width: 0; min-height: 62px; display: grid; align-content: center; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); text-align: left; cursor: pointer; }
.preset-card strong { font-size: 0.61rem; }
.preset-card span { color: var(--muted); font-size: 0.46rem; }
.preset-card.is-active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.preset-card.is-active span { color: #aeb8cb; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 0.48rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.form-grid .form-wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; outline: none; background: var(--soft); color: var(--navy); font-size: 0.57rem; font-weight: 650; text-transform: none; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.create-summary { min-height: 100%; display: flex; flex-direction: column; padding: 22px; border-radius: 17px; background: linear-gradient(155deg, #171d2a, #0b1424); color: var(--white); }
.create-summary > small { color: var(--yellow); font-size: 0.46rem; font-weight: 800; letter-spacing: 0.08em; }
.create-summary > strong { margin-top: 24px; font-size: 1.12rem; letter-spacing: -0.035em; }
.create-summary > span:not(.create-feedback) { margin-top: 5px; color: #aeb8cb; font-size: 0.52rem; }
.create-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 24px 0; }
.create-summary dl div { display: grid; gap: 4px; }
.create-summary dt { color: #78899c; font-size: 0.43rem; text-transform: uppercase; }
.create-summary dd { margin: 0; color: var(--yellow); font-size: 0.76rem; font-weight: 800; }
.create-summary p { margin: 0; color: #aeb8cb; font-size: 0.55rem; line-height: 1.7; }
.create-summary button { min-height: 42px; margin-top: auto; border: 0; border-radius: 9px; background: var(--yellow); color: var(--yellow-ink); font-size: 0.61rem; font-weight: 800; cursor: pointer; }
.create-summary button small { display: block; margin-top: 2px; font-size: 0.42rem; opacity: 0.62; }
.create-feedback { min-height: 14px; margin-top: 7px; color: #5ee6b0; font-size: 0.45rem; text-align: center; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 15px; }
.event-hero { min-height: 398px; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border-radius: 19px; background: linear-gradient(155deg, #171d2a, #0b1424); color: var(--white); }
.event-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-top small { color: var(--yellow); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.08em; }
.event-top em { padding: 4px 8px; border-radius: 8px; background: rgba(18, 185, 129, 0.13); color: #5ee6b0; font-size: 0.52rem; font-style: normal; }
.organiser-hero .event-top em { background: rgba(244, 210, 31, 0.13); color: var(--yellow); }
.event-time { margin-top: 28px; font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.065em; line-height: 0.9; }
.event-hero > span { margin-top: 8px; color: #9aa6bb; font-size: 0.62rem; }
.event-hero h2 { margin: 28px 0 5px; font-size: 1.55rem; letter-spacing: -0.04em; }
.event-hero p { margin: 0; color: #aeb8cb; font-size: 0.7rem; }
.event-meta { display: grid; grid-template-columns: 0.7fr 0.8fr 1.2fr; gap: 12px; margin-top: 28px; }
.event-meta span { display: grid; gap: 4px; }
.event-meta small { color: #78899c; font-size: 0.46rem; letter-spacing: 0.08em; }
.event-meta b { font-size: 0.68rem; }
.yellow-text { color: var(--yellow); }
.event-hero > button, .preview-actions button { min-height: 38px; margin-top: auto; border: 0; border-radius: 9px; background: var(--yellow); color: var(--yellow-ink); font-size: 0.61rem; font-weight: 800; opacity: 1; }
.event-hero > button small { margin-left: 5px; font-size: 0.45rem; font-weight: 650; opacity: 0.58; }
.preview-actions { display: grid; grid-template-columns: 1fr 0.54fr; gap: 8px; margin-top: auto; }
.preview-actions button { margin-top: 0; }
.preview-actions button:last-child { border: 1px solid #303948; background: transparent; color: #dce3ee; }
.event-list { padding: 22px; border: 1px solid var(--border); border-radius: 19px; background: var(--white); }
.list-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.list-heading strong { font-size: 0.72rem; }
.list-heading span { color: var(--blue); font-size: 0.58rem; font-weight: 700; }
.list-card, .history-list-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--border); }
.list-card time, .history-list-card time { display: grid; color: var(--muted); font-size: 0.46rem; text-align: center; }
.list-card time b, .history-list-card time b { color: var(--navy); font-size: 1.2rem; line-height: 1; }
.list-card time span, .history-list-card time span { margin-top: 3px; font-size: 0.48rem; font-weight: 700; }
.list-card > div, .history-list-card > div { min-width: 0; }
.list-card > div strong, .list-card > div small, .history-list-card > div strong, .history-list-card > div small, .history-list-card > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card > div strong, .history-list-card > div strong { font-size: 0.7rem; }
.list-card > div small, .history-list-card > div small { margin-top: 4px; color: var(--muted); font-size: 0.55rem; }
.list-card > em, .history-list-card > em { font-size: 0.53rem; font-style: normal; font-weight: 750; }
.confirmed-state, .open-state { color: var(--green); }
.pending-state { color: var(--coral); }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; border-radius: 17px; background: var(--navy); color: var(--white); }
.summary-strip span { display: grid; gap: 5px; border-left: 1px solid rgba(255,255,255,0.1); text-align: center; }
.summary-strip span:first-child { border-left: 0; }
.summary-strip small { color: #9aa6bb; font-size: 0.48rem; letter-spacing: 0.07em; }
.summary-strip strong { color: var(--yellow); font-size: 1.45rem; }
.organised-summary strong { color: var(--white); }
.filter-row { display: flex; gap: 7px; margin: 18px 0 6px; overflow-x: auto; }
.filter-row span, .filter-row b { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); font-size: 0.55rem; }
.filter-row b { border-color: var(--navy); background: var(--navy); color: var(--white); }
.history-list { padding: 0 20px; border: 1px solid var(--border); border-radius: 17px; background: var(--white); }
.history-list-card { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 13px 0; }
.history-list-card:first-child { border-top: 0; }
.history-list-card > div span { margin-top: 4px; color: var(--ink-soft); font-size: 0.52rem; }
.history-list-card > em { max-width: 96px; padding: 5px 8px; border-radius: 7px; background: var(--surface); color: var(--ink-soft); text-align: center; }
.history-list-card > em.gold-result { background: rgba(244, 210, 31, 0.24); color: #755b00; }
.history-list-card > em.played-result { background: rgba(18, 185, 129, 0.13); color: #0e8f64; }
.history-list-card > em.full-result { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.history-list-card > em.under-result { background: rgba(255, 107, 74, 0.12); color: #c64428; }
.screen-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 980px) {
  .bento-grid { grid-template-columns: 1.28fr repeat(4, 0.72fr); grid-template-rows: repeat(2, minmax(112px, 1fr)); }
  .playing-card { grid-column: 1 / span 2; }
  .action-card { grid-column: span 1; }
  .organising-card { grid-column: 3 / span 2; }
  .history-card { display: flex; flex-direction: column; }
  .history-card > strong { margin-top: auto; font-size: 1.65rem; }
  .history-card > span { margin-top: 3px; color: var(--muted); font-size: 0.58rem; }
}

@media (max-width: 760px) {
  .prototype-bar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .prototype-label { display: none; }
  .prototype-controls { grid-template-columns: auto 1fr auto; gap: 8px; padding: 7px 12px; }
  .step-button span { display: none; }
  .screen-tabs { justify-content: flex-start; }
  .prototype-stage { padding: 12px 10px 20px; }
  .interaction-hint { padding: 0 12px; text-align: center; }
  .app-window { border-radius: 14px; }
  .app-content { padding: 20px 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .create-layout { grid-template-columns: 1fr; }
  .create-summary { min-height: 300px; }
  .event-hero { min-height: 390px; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .playing-card { grid-column: 1 / -1; grid-row: auto; min-height: 250px; }
  .organising-card { grid-column: 1 / -1; min-height: 130px; }
  .history-card { display: flex; min-height: 125px; }
  .history-card > strong { margin-top: auto; font-size: 1.45rem; }
  .history-card > span { margin-top: 3px; color: var(--muted); font-size: 0.56rem; }
  .empty-actions { grid-template-columns: 1fr; }
  .empty-actions .action-card { min-height: 160px; }
  .home-heading > span { display: none; }
  .create-heading > span { display: none; }
}

@media (max-width: 480px) {
  .prototype-exit { font-size: 0; }
  .prototype-exit span { font-size: 0.8rem; }
  .screen-tabs button { width: 8px; height: 8px; min-height: 8px; padding: 0; border-radius: 50%; background: #cbd5e1; color: transparent; overflow: hidden; }
  .screen-tabs button[aria-selected="true"] { background: var(--navy); box-shadow: 0 0 0 3px rgba(11, 20, 36, 0.12); }
  .app-topbar { padding: 0 15px; }
  .bento-card { padding: 15px; }
  .action-card strong { font-size: 0.74rem; }
  .event-list { padding: 17px; }
  .discover-toolbar { align-items: stretch; flex-direction: column; }
  .level-control { flex-basis: auto; }
  .discover-results { padding: 14px; }
  .discover-card { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; }
  .discover-card > button { grid-column: 2; justify-self: start; min-width: 0; padding: 0 12px; }
  .preset-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-wide { grid-column: auto; }
  .event-meta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .summary-strip { padding: 16px 8px; }
  .summary-strip strong { font-size: 1.2rem; }
  .history-list { padding: 0 12px; }
  .history-list-card { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
  .history-list-card > em { max-width: 76px; padding: 5px; font-size: 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-card { transition: none; }
}
