.seat-choice { position: relative; display: inline-grid; }
.seat-choice input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; cursor: pointer;
}
.seat-choice .seat-btn { display: grid; place-items: center; }
.seat-choice input:checked + .seat-btn { background: var(--purple); color: #fff; }
.seat-choice input:focus-visible + .seat-btn { outline: 2px solid #211949; outline-offset: 2px; }
.seat-choice input:disabled { cursor: not-allowed; }
.seat-choice .held, .sq.held { background: #f1ce87; color: #442f0f; }
.seat-choice .sold { background: #dadde6; color: #585e70; opacity: 1; }
[data-checkout-select] .seat-rows { width: max-content; max-width: none; }
.checkout-table { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; }
.checkout-table .table-seat { width: 100px; height: 60px; }
.table-positions { display: flex; flex-wrap: wrap; justify-content: center; max-width: 148px; gap: 5px; }
.reservation-timer strong { color: var(--purple); font-size: 18px; font-variant-numeric: tabular-nums; }
.checkout-grid .af-btn:disabled { opacity: .55; cursor: not-allowed; }
.detail-action a.af-btn { display: block; text-align: center; }
.ticket-card-issued .qr-ticket { width: 150px; max-width: 100%; height: auto; }
.ticket-card-issued .ticket-top .badge-status { white-space: nowrap; }
.ticket-card-issued .ticket-top > div { min-width: 0; overflow-wrap: anywhere; }
.ticket-card-issued .ticket-body { align-items: center; }
.checkout-grid .preline { overflow-wrap: anywhere; }
[data-qr-camera] {
  width: min(100%, 380px); background: var(--ink); border-radius: 12px;
  margin-top: 12px;
}
.visually-hidden {
  position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
[data-scan-file-label]:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.paid-week progress {
  appearance: none; writing-mode: vertical-lr; direction: rtl;
  width: 100%; min-width: 0; height: 100%; border: 0; border-radius: 5px; overflow: hidden;
  background: #f4f2fb;
}
.paid-week progress::-webkit-progress-bar { background: #f4f2fb; }
.paid-week progress::-webkit-progress-value { background: linear-gradient(#a486f7, #5b35d4); }
.paid-week progress::-moz-progress-bar { background: linear-gradient(#a486f7, #5b35d4); }
.paid-week progress.negative::-webkit-progress-value { background: #dc768a; }
.paid-week progress.negative::-moz-progress-bar { background: #dc768a; }
.checkout-progress { flex-wrap: wrap; }
.recovery-panel { max-width: 590px; margin-top: 18px; }
.refund-section { margin-top: 18px; }
.refund-section fieldset { border: 0; padding: 0; margin: 14px 0; min-inline-size: 0; }
.refund-section legend { padding: 0; font-size: 13px; color: #656b7d; }
.refund-option {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px;
  align-items: center; min-height: 42px; padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.refund-option strong { white-space: nowrap; }
.refund-option input { accent-color: var(--purple); }
.refund-entry { margin: 0 0 12px; }
#publicShell .account-link {
  display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto;
  min-height: 44px; padding: 0 11px; border: 1px solid var(--brand-border);
  border-radius: 11px; color: var(--brand-primary); background: var(--brand-tint);
  font-size: 13px; font-weight: 750; white-space: nowrap;
}
#publicShell .account-icon { width: 44px; padding: 0; }
.account-icon svg { width: 22px; height: 22px; }
.account-link:focus-visible, .cabinet a:focus-visible, .cabinet-recovery-actions a:focus-visible {
  outline: 2px solid var(--brand-primary); outline-offset: 2px;
}
.cabinet-tools, .cabinet-account {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0;
}
.cabinet-tools { justify-content: space-between; margin-bottom: 12px; }
.cabinet-account { font-size: 14px; overflow-wrap: anywhere; }
.cabinet-account button { min-height: 44px; }
.cabinet-find, .cabinet-recovery-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.cabinet-find { font-size: 14px; }
.cabinet-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 4px; margin-bottom: 18px; max-width: 490px;
  background: var(--brand-tint); border: 1px solid var(--brand-border); border-radius: 13px;
}
.cabinet-tabs a {
  display: grid; min-height: 44px; place-items: center; padding: 5px 4px; text-align: center;
  border-radius: 8px; font-size: 13px; font-weight: 750; color: var(--brand-dark); overflow-wrap: anywhere;
}
.cabinet-tabs a[aria-current="page"] { background: var(--brand-primary); color: #fff; }
.cabinet-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cabinet-ticket {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 17px;
}
.cabinet-ticket .poster { height: clamp(128px, 17vw, 200px); }
.cabinet-ticket-body { padding: 15px 16px; flex: 1; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.cabinet-ticket-body h2 { font-size: 19px; line-height: 1.25; margin: 0 0 7px; }
.cabinet-ticket-body p { font-size: 14px; line-height: 1.45; margin: 0 0 4px; }
.cabinet-ticket-body dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 8px; }
.cabinet-ticket-body dt { font-size: 12px; }
.cabinet-ticket-body dd { margin: 3px 0 0; font-weight: 750; }
.cabinet-ticket-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cabinet-ticket-actions .af-btn { min-height: 44px; }
.cabinet-ticket-status { display: flex; flex-wrap: wrap; gap: 4px; }
.cabinet > .soft-panel { margin-top: 16px; }
.cabinet-recovery-actions { display: grid; margin-top: 12px; }
@media (max-width: 680px) {
  #publicShell .header__right, #publicShell .citywrap { min-width: 0; }
  #publicShell .headbtn { max-width: 100%; }
  #publicShell .headbtn svg { flex-shrink: 0; }
  #publicShell #cityLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #publicShell .citylist a { overflow-wrap: anywhere; }
  #publicShell .account-link { padding: 0 8px; }
  #publicShell .account-icon { padding: 0; }
  .cabinet-ticket-grid { grid-template-columns: minmax(0, 1fr); }
  .cabinet-ticket .poster { height: clamp(130px, 40vw, 220px); }
}
@media (max-width: 380px) {
  #publicShell .header .brand-logo { height: 24px; }
}
@media (max-width: 480px) {
  .ticket-card-issued .ticket-top { flex-wrap: wrap; gap: 8px; }
  .ticket-card-issued .ticket-body { grid-template-columns: 1fr; gap: 10px; }
  .ticket-card-issued .qr-ticket { justify-self: center; }
}
