:root {
  color-scheme: light;
  --ink: #18202f;
  --muted: #707989;
  --line: #dfe5ee;
  --paper: #f5f7fb;
  --card: #ffffff;
  --blue: #4169e1;
  --blue-deep: #2e4eb2;
  --sky: #e9efff;
  --orange: #e98b54;
  --shadow: 0 14px 36px rgba(29, 43, 71, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: white; font-size: 10px; letter-spacing: -0.08em; }
.site-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.site-nav a:hover { color: var(--blue-deep); }
.status-pill, .confidence-badge { padding: 5px 9px; border: 1px solid #d6def2; border-radius: 999px; color: var(--blue-deep); background: #f3f6ff; font-size: 11px; font-weight: 800; }
.hero { padding: 46px 0 35px; }
.eyebrow, .card-kicker { color: var(--blue-deep); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 800px; margin: 10px 0 17px; font-size: clamp(34px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.07em; }
h1 span { color: var(--blue); }
h2 { margin-bottom: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.045em; }
.hero-copy { max-width: 650px; margin-bottom: 17px; color: var(--muted); font-size: 17px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 7px 17px; color: var(--muted); font-size: 12px; }
.trust-row span + span::before { content: '·'; margin-right: 17px; color: #adb7c8; }
.seat-layout { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: 18px; align-items: start; }
.control-card, .preview-card, .seat-map-card, .feedback-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.control-card { position: sticky; top: 18px; padding: 24px; }
.control-card h2 { margin-top: 8px; }
.field-label { display: block; margin: 22px 0 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.select-input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcff; color: var(--ink); }
.profile-fieldset { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; border: 0; }
.profile-fieldset legend { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.profile-button { display: grid; gap: 2px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; }
.profile-button span { font-size: 13px; font-weight: 800; }
.profile-button small { color: var(--muted); font-size: 11px; }
.profile-button:hover, .profile-button.is-active { border-color: #98acf0; background: var(--sky); }
.profile-button.is-active span { color: var(--blue-deep); }
.primary-button { width: 100%; min-height: 47px; margin-top: 22px; border: 0; border-radius: 9px; background: var(--ink); color: white; font-weight: 800; }
.primary-button:hover { background: var(--blue-deep); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.result-column { display: grid; gap: 16px; min-width: 0; }
.result-heading, .preview-topline, .seat-map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-heading { padding: 4px 2px 0; }
.preview-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.preview-select-label { color: var(--muted); font-size: 10px; font-weight: 800; }
.preview-select { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; color: var(--ink); font-size: 11px; font-weight: 750; }
.share-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.share-button:hover { border-color: var(--blue); color: var(--blue-deep); }
.recommendation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recommendation-card { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; min-width: 0; padding: 13px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-align: left; }
.recommendation-card:hover, .recommendation-card.is-selected { border-color: #91a6ee; background: #f4f6ff; }
.recommendation-rank { align-self: start; color: var(--blue); font-size: 11px; font-weight: 900; }
.recommendation-card strong, .recommendation-card small { display: block; }
.recommendation-card strong { white-space: nowrap; font-size: 13px; }
.recommendation-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.recommendation-card b { color: var(--blue-deep); font-size: 20px; letter-spacing: -.06em; }
.recommendation-card b em { margin-left: 2px; font-size: 10px; font-style: normal; letter-spacing: 0; }
.preview-card, .seat-map-card, .feedback-card { padding: 22px; }
.preview-topline h2 { margin-top: 6px; }
.view-frame { position: relative; overflow: hidden; margin-top: 18px; border: 1px solid #1a2a42; border-radius: 14px; background: #070c16; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 16px 36px rgba(10, 20, 38, .18); }
.view-frame::after { position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(205, 222, 255, .08); border-radius: inherit; content: ''; }
#view-canvas { display: block; width: 100%; height: auto; background: #101827; cursor: grab; touch-action: none; }
#view-canvas.is-dragging { cursor: grabbing; }
#view-canvas:focus-visible { outline: 3px solid rgba(65, 105, 225, .8); outline-offset: -3px; }
.view-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 2px 0; color: var(--muted); font-size: 11px; }
.view-controls button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; }
.view-controls button:hover { border-color: var(--blue); color: var(--blue-deep); }
.view-note { margin: 9px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.metric-grid div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: var(--muted); font-size: 10px; }
.metric-grid strong { margin-top: 2px; color: var(--ink); font-size: 14px; }
.seat-map-heading { margin-bottom: 17px; }
.seat-map-note { color: var(--muted); font-size: 11px; }
.screen-label { width: 72%; margin: 0 auto 18px; padding: 5px; border-radius: 5px 5px 13px 13px; background: #e9edf5; color: #8490a3; font-size: 10px; font-weight: 850; letter-spacing: .18em; text-align: center; }
.seat-map { display: grid; gap: 5px; overflow-x: auto; padding: 0 6px 6px; }
.seat-row { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: max-content; }
.row-label { width: 18px; margin-right: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: right; }
.seat-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #dae0eb; opacity: calc(.4 + var(--score) / 180); }
.seat-dot:nth-of-type(14) { margin-right: 10px; }
.seat-dot:hover, .seat-dot.is-recommended { background: var(--orange); opacity: 1; }
.seat-dot.is-selected { outline: 3px solid rgba(65, 105, 225, .27); background: var(--blue); opacity: 1; }
.feedback-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.feedback-card p { margin: 0; color: var(--muted); font-size: 12px; }
.feedback-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.feedback-actions button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.feedback-actions button:hover { border-color: var(--blue); color: var(--blue-deep); }
.feedback-card.is-complete { background: #f2f6ff; }
.feedback-thanks { color: var(--blue-deep); font-size: 12px; font-weight: 800; }
.method-section { margin-top: 80px; padding: 28px 0; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.method-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.55); }
.method-grid strong { font-size: 13px; }
.method-grid p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 38px; color: var(--muted); font-size: 11px; }
.site-footer a:hover { color: var(--blue-deep); }
@media (max-width: 860px) {
  .seat-layout { grid-template-columns: 1fr; }
  .control-card { position: static; }
  .recommendation-list { grid-template-columns: 1fr; }
  .recommendation-card { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 560px) {
  .section-shell, .site-header { width: min(100% - 26px, 1180px); }
  .site-nav a:first-child { display: none; }
  h1 { font-size: 40px; }
  .metric-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .feedback-card, .site-footer { align-items: flex-start; flex-direction: column; }
  .preview-topline { flex-direction: column; }
  .preview-actions { justify-content: flex-start; }
}
