.seat-map-button { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 14px; padding: 9px 12px; border: 1px solid #ba9d64; border-radius: 18px; background: #fff7df; color: var(--ink); text-align: left; cursor: pointer; }
.seat-map-button > span:first-child { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; }
.seat-map-button b, .seat-map-button small { display: block; }
.seat-map-button b { font-size: 9px; }
.seat-map-button small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.seat-map-button:hover { border-color: var(--red-dark); background: #fff0c9; color: var(--red-dark); }
.seat-map-unavailable { display: block; margin-top: 14px; color: #938e84; font-size: 9px; }
.seat-dialog { width: min(1080px,94vw); max-width: none; max-height: 92vh; padding: 38px 42px; overflow: auto; border-top: 5px solid var(--red); }
.seat-dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.seat-dialog h2 { margin-bottom: 6px; }
.seat-meta { margin: 0 !important; color: var(--muted) !important; font-size: 11px; }
.seat-count { display: flex; align-items: center; gap: 10px; min-width: 130px; padding: 10px 28px 10px 18px; border-left: 1px solid var(--line); }
.seat-count strong { font-family: var(--serif); font-size: 36px; font-weight: normal; }
.seat-count span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.seat-livebar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 20px 0 4px; padding: 10px 12px 10px 16px; border: 1px solid #b9d5c4; border-radius: 22px; background: #edf7f0; }
.seat-livebar p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-size: 10px; }
.seat-livebar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #248351; box-shadow: 0 0 0 4px rgba(36,131,81,.12); }
.seat-livebar[data-mode="snapshot"] { border-color: #dcc38d; background: #fff6dd; }
.seat-livebar[data-mode="snapshot"] p { color: #765615; }
.seat-livebar[data-mode="snapshot"] i { background: #c78a12; box-shadow: 0 0 0 4px rgba(199,138,18,.12); }
.seat-livebar[data-mode="error"] { border-color: #d7aaa4; background: #fff0ed; }
.seat-livebar[data-mode="error"] p { color: var(--red-dark); }
.seat-livebar[data-mode="error"] i { background: var(--red); box-shadow: none; }
.seat-livebar button { min-height: 34px; flex: none; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--green); padding: 7px 11px; font-size: 9px; font-weight: bold; cursor: pointer; }
.seat-livebar button:hover { background: rgba(255,255,255,.7); }
.seat-livebar button:focus-visible { outline: 3px solid rgba(36,131,81,.25); outline-offset: 2px; }
.seat-livebar button:disabled { cursor: wait; opacity: .55; }
.seat-legend { display: flex; justify-content: center; gap: 25px; margin: 25px 0 18px; color: var(--muted); font-size: 9px; }
.seat-legend span { display: flex; align-items: center; gap: 7px; }
.screen { width: min(620px,80%); height: 42px; margin: 0 auto 25px; border-top: 7px solid var(--ink); border-radius: 50%; text-align: center; box-shadow: 0 -8px 16px rgba(229,183,95,.13); }
.screen span { position: relative; top: 5px; text-transform: uppercase; letter-spacing: .22em; font-size: 7px; color: var(--muted); }
.seat-pan-hint { display: none; }
.seat-map { min-height: 250px; overflow: auto; padding: 4px 0 16px; overscroll-behavior: contain; scrollbar-color: var(--red) #e5ded1; }
.seat-row { display: grid; grid-template-columns: 18px max-content 18px; justify-content: center; align-items: center; gap: 8px; margin: 4px 0; }
.seat-row > b { color: var(--muted); font-size: 8px; font-weight: normal; }
.seat-row > div { display: flex; gap: 4px; }
.seat { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 4px 4px 1px 1px; font-size: 7px; font-style: normal; line-height: 1; }
.seat.available { border: 1px solid #83ad94; background: #e5f1e9; color: var(--green); }
.seat.occupied { border: 1px solid #c9c2b6; background: #d7d1c6; color: #807a70; }
.seat.blocked { border: 1px dashed #a89baa; background: #f0eaf1; color: #76677a; }
.seat.suggested { border: 2px solid #ce850d; background: #fff0bd; color: #704606; box-shadow: 0 0 0 2px rgba(206,133,13,.18); }
.seat.aisle-after { margin-right: 13px; }
.seat-foot { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 17px; padding-top: 20px; border-top: 1px solid var(--line); }
.seat-foot p { max-width: 620px; margin: 0; font-size: 10px; }
.seat-foot .buy { flex: none; }
.seat-loading, .seat-error { display: grid; place-items: center; min-height: 230px; color: var(--muted); text-align: center; }

@media (max-width: 680px) {
  body:has(.seat-dialog[open]) { overflow: hidden; }
  .seat-dialog { inset: 0; width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 24px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .seat-dialog .dialog-close { display: grid; place-items: center; top: 8px; right: 8px; width: 44px; height: 44px; font-size: 32px; }
  .seat-dialog-head { display: block; padding-right: 40px; }
  .seat-dialog h2 { font-size: 27px; line-height: 1.05; }
  .seat-meta { font-size: 10px; line-height: 1.45 !important; }
  .seat-count { border: 0; padding: 8px 0; }
  .seat-count strong { font-size: 31px; }
  .seat-livebar { align-items: stretch; flex-direction: column; gap: 9px; margin-top: 10px; }
  .seat-livebar button { width: 100%; min-height: 42px; }
  .seat-legend { justify-content: start; gap: 14px; margin: 12px 0; overflow: auto; white-space: nowrap; }
  .screen { width: 86%; height: 30px; margin-bottom: 12px; border-top-width: 5px; }
  .seat-pan-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 8px !important; color: var(--muted) !important; font-size: 9px !important; }
  .seat-map { min-height: 42vh; margin: 0 -16px; padding: 4px 16px 18px; overflow-x: auto; overflow-y: visible; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
  .seat-row { width: max-content; min-width: 100%; justify-content: start; }
  .seat { width: 26px; height: 25px; }
  .seat-row > b:first-child { position: sticky; left: 0; z-index: 2; display: grid; place-items: center; width: 18px; background: var(--paper); }
  .seat-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); z-index: 3; align-items: stretch; flex-direction: column; gap: 12px; margin: 12px -16px 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -8px 18px rgba(23,23,19,.08); }
  .seat-foot .buy { width: 100%; min-height: 46px; }
}
