.seating-page { background: #f1f5f6; }
.seating-header { position: sticky; top: 0; z-index: 20; padding: max(10px, env(safe-area-inset-top)) 20px 10px; background: var(--navy); color: #fff; }
.seating-header__inner { max-width: 1160px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.seating-header__event { margin: 0; font-size: .875rem; color: #deeaee; text-align: right; }
.seating-header__event span { margin-left: 10px; color: #9bd4d8; }
.seating-main { width: min(100% - 40px, 1160px); margin: 28px auto 60px; }
.seating-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.seating-heading h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.3rem); color: var(--navy); }
.seating-count { margin: 0; font-size: 1rem; white-space: nowrap; }
.seating-count strong { font-size: 1.5rem; color: var(--navy); }
.arrival-guide { margin-bottom: 22px; padding: 22px 24px; border-top: 4px solid var(--teal); border-radius: 8px 8px 18px 18px; background: #fff; box-shadow: 0 8px 24px #0b263709; }
.arrival-guide h2 { margin: 0 0 16px; color: var(--navy); font-size: 1.3rem; }
.arrival-guide ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.arrival-guide li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; align-items: start; }
.arrival-guide li > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.arrival-guide strong { display: block; margin: 3px 0 4px; color: var(--navy); font-size: 1rem; }
.arrival-guide p { margin: 0; color: #526875; font-size: .9375rem; line-height: 1.75; }
.seat-finder { padding: 22px 24px; border-top: 4px solid var(--teal); border-radius: 8px 8px 18px 18px; background: #fff; box-shadow: 0 8px 24px #0b263709; }
.seat-finder label { display: block; margin-bottom: 9px; font-size: 1.125rem; font-weight: 750; color: var(--navy); }
.seat-finder__controls { display: flex; gap: 10px; }
.seat-finder input { flex: 1; min-width: 0; min-height: 52px; border: 1px solid #96aeb9; border-radius: 9px; padding: 10px 14px; font-size: 1.125rem; background: #fff; color: var(--navy); }
.seat-finder button[type=submit] { min-width: 84px; min-height: 52px; border: 0; border-radius: 9px; background: var(--navy); color: white; font-size: 1rem; font-weight: 700; cursor: pointer; }
.seat-finder__hint { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }
.search-feedback { margin-top: 0; }
.search-feedback:empty { display: none; }
.search-feedback__message { margin: 15px 0 0; padding: 12px 14px; border-radius: 8px; background: #f1f5f6; font-size: 1rem; }
.seat-result { margin-top: 18px; border: 1px solid #94c8ca; border-radius: 12px; overflow: hidden; }
.seat-result__body { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #edf8f8; }
.seat-result__role { margin: 0 0 4px; color: #526875; font-size: .875rem; line-height: 1.55; }
.seat-result__name { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.seat-result__position { display: flex; gap: 16px; align-items: center; color: var(--navy); }
.seat-result__position span { display: flex; align-items: baseline; gap: 5px; font-size: 1rem; }
.seat-result__position b { font-size: 2.75rem; line-height: 1; }
.seat-result__action { display: block; width: 100%; min-height: 46px; border: 0; padding: 9px 15px; background: #fff; color: #096b7a; text-align: left; font-weight: 750; cursor: pointer; }
.seating-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
.map-section, .table-section { min-width: 0; padding: 22px; border-radius: 18px; background: #fff; }
.seating-section-title { margin: 0; color: var(--navy); font-size: 1.3rem; line-height: 1.4; }
.map-instruction { margin: 7px 0 14px; color: var(--muted); font-size: .9375rem; }
.floor-map { display: block; width: 100%; height: auto; fill: none; stroke: none; font-family: inherit; }
.floor-map [data-map-table] { cursor: pointer; outline: none; }
.floor-map .selection-ring { fill: none; stroke: transparent; stroke-width: 6; }
.floor-map .is-selected .selection-ring { stroke: #b9673f; }
.floor-map [data-map-table]:focus-visible .selection-ring { stroke: #b9673f; stroke-dasharray: 7 5; }
.floor-map [data-map-table]:hover .table-disc { filter: brightness(1.2); }
.map-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 9px 0 0; padding: 0; list-style: none; font-size: .875rem; color: #526875; }
.map-legend li::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--legend); }
.map-footnote { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }
.room-illustration { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.room-illustration h3 { margin: 0; padding: 9px 0; font-size: .9375rem; color: var(--navy); font-weight: 700; }
.room-illustration figure { margin: 5px 0 0; }
.room-illustration img { display: block; width: 100%; height: auto; border-radius: 9px; }
.room-illustration figcaption { margin-top: 7px; font-size: .8125rem; color: var(--muted); }
.table-section { scroll-margin-top: 88px; }
.table-picker { margin: 15px 0 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.table-picker button { min-width: 0; min-height: 45px; border: 1px solid #b5c6cd; border-radius: 8px; background: white; color: var(--navy); font-size: 1.125rem; font-weight: 750; cursor: pointer; }
.table-picker button[aria-pressed=true] { color: white; border-color: var(--navy); background: var(--navy); box-shadow: 0 0 0 2px #0b263717; }
.selected-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.selected-table-heading h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--navy); font-size: 1.25rem; }
.selected-table-heading h3 b { font-size: 2.4rem; line-height: 1.1; }
.selected-table-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
.seat-order-note { margin: 0 0 14px; font-size: .875rem; color: #526875; }
.seat-view-controls { display: flex; gap: 5px; padding: 4px; border-radius: 9px; background: #edf2f4; margin: 0 0 12px; }
.seat-view-controls button { flex: 1; min-height: 43px; border: 0; border-radius: 7px; background: transparent; color: #526875; font-size: .9375rem; font-weight: 750; cursor: pointer; }
.seat-view-controls button[aria-pressed=true] { background: white; color: var(--navy); box-shadow: 0 1px 4px #17313f1a; }
.seat-list { margin: 0; padding: 0; list-style: none; }
.seat-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; align-items: center; padding: 15px 4px; border-bottom: 1px solid #e3eaee; scroll-margin-top: 90px; }
.seat-row:last-child { border-bottom: 0; }
.seat-row.is-target { background: #e8f5f4; border-radius: 8px; outline: 2px solid #138395; padding-inline: 9px; }
.seat-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #edf2f4; font-size: 1.1rem; font-weight: 750; color: var(--navy); }
.seat-row.is-target .seat-number { background: var(--teal); color: white; }
.seat-person-role { margin: 0 0 4px; color: #5b6f7b; font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.seat-person-name { margin: 0; color: var(--navy); font-size: 1.375rem; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.seat-chart svg { display: block; width: 100%; height: auto; fill: none; stroke: none; }
.seat-chart .is-target .seat-card-bg { stroke: #138395; stroke-width: 4; fill: #e8f5f4; }
.seat-chart p { margin: 3px 0 0; text-align: right; }
.chart-expand { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: #096b7a; font-size: .9375rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.expanded-chart { width: min(calc(100% - 32px), 1160px); height: calc(100vh - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 14px; color: var(--navy); background: #fff; }
.expanded-chart[open] { display: flex; flex-direction: column; }
.expanded-chart::backdrop { background: #071e2dd9; }
.expanded-chart__header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: var(--navy); color: white; }
.expanded-chart__header h2 { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.expanded-chart__return { flex-shrink: 0; min-height: 46px; padding: 9px 13px; border: 1px solid #b8d4df; border-radius: 8px; background: #fff; color: var(--navy); font-size: 1rem; font-weight: 750; cursor: pointer; }
.expanded-chart__hint { flex: 0 0 auto; margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--line); color: #526875; font-size: .875rem; }
.expanded-chart__viewport { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
.expanded-chart__viewport img { display: block; width: 100%; min-width: 760px; height: auto; }
.seating-page [hidden] { display: none !important; }
.seating-footer { margin-top: 30px; color: var(--muted); font-size: .875rem; text-align: center; }
.seating-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.seating-footer p { margin: 5px 0; }
@media (max-width: 860px) {
  .seating-workspace { grid-template-columns: minmax(0, 1fr); }
  .floor-map { max-width: 620px; margin-inline: auto; }
  .seat-chart { max-width: 700px; margin-inline: auto; }
  .table-picker { grid-template-columns: repeat(11, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .expanded-chart { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  .expanded-chart__header { flex-wrap: wrap; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
  .seating-header { padding-inline: 15px; }
  .seating-header__event { font-size: .8125rem; }
  .seating-header__event span { display: block; margin: 0; }
  .seating-main { width: calc(100% - 24px); margin-top: 20px; }
  .seating-heading { margin-inline: 3px; gap: 12px; }
  .arrival-guide, .seat-finder, .map-section, .table-section { padding: 17px 15px; border-radius: 12px; }
  .seat-finder input { padding-inline: 10px; font-size: 1rem; }
  .seat-finder button[type=submit] { min-width: 68px; }
  .seating-workspace { margin-top: 18px; gap: 18px; }
  .seat-result__body { padding: 15px; gap: 16px; }
  .seat-result__position b { font-size: 2.4rem; }
  .table-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seat-person-name { font-size: 1.375rem; }
  .seat-row { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
  .map-legend { gap: 6px 12px; }
}
@media (max-width: 340px) { .seating-header__event { display: none; } .seating-heading { flex-wrap: wrap; gap: 3px; } }
@media print {
  .seating-header, .seat-finder, .table-picker, .seat-view-controls, .room-illustration, .seating-footer, .chart-expand, .expanded-chart { display: none !important; }
  .seating-main { width: 100%; margin: 0; }
  .seating-workspace { display: block; }
  .table-panel[hidden] { display: block !important; }
  .table-panel { break-inside: avoid; margin-top: 24px; }
  .table-panel .seat-list { display: block !important; }
  .table-panel .seat-chart { display: none !important; }
  .seat-row { padding: 8px 0; }
  .floor-map { max-height: 500px; }
}
