.record-seat-dialog {width:min(1100px,calc(100vw - 24px));height:min(850px,calc(100dvh - 24px));max-width:none;max-height:none;padding:20px;border:1px solid #cbd5e1;border-radius:16px;margin:auto;background:#fff;color:#334155;box-sizing:border-box}
.record-seat-dialog[open] {display:flex;flex-direction:column;gap:10px}
.record-seat-dialog::backdrop {background:rgb(15 23 42 / 60%)}
.record-seat-heading {display:flex;align-items:center;justify-content:space-between;gap:16px}.record-seat-heading h2 {font-size:1.25rem;margin:0}
.record-seat-status {margin:0;font-size:.9rem;min-height:24px}.record-seat-dialog .stage {min-height:26px;margin:0}.record-seat-dialog > * {flex-shrink:0}
.record-seat-legend {display:flex;flex-wrap:wrap;gap:12px;font-size:.8rem}.map-key::before {content:'';display:inline-block;width:12px;height:12px;border:1px solid #64748b;border-radius:50%;margin-right:6px;background:#e2e8f0}.map-key.owned::before {background:#ede9fe;border:3px solid #7c3aed}.map-key.available::before {background:#dcfce7;border-color:#15803d}.map-key.chosen::before {background:#0f766e}
.record-seat-dialog .record-seat-viewport {flex:1;min-height:80px;overflow:auto;background:#f8fafc;border:1px solid #dbe4ee;border-radius:10px;padding:12px}
.record-seat-frame {position:relative;margin-inline:auto}.record-seat-plan {position:absolute;left:0;top:0;width:max-content;display:grid;gap:18px;padding:4px}
.record-seat-sector h3 {font-size:.9rem;margin:0 0 8px}.record-seat-grid {display:grid;grid-auto-columns:34px;grid-auto-rows:34px;gap:6px;align-items:center}.record-map-row {font-size:.8rem;text-align:center}
.record-map-seat {width:34px;height:34px;border:1px solid #94a3b8;border-radius:50%;padding:0;background:#e2e8f0;color:#475569;font-size:.75rem;font-weight:700;cursor:pointer}
.record-map-seat.available {background:#dcfce7;border-color:#15803d;color:#166534}.record-map-seat.owned {outline:3px solid #7c3aed;outline-offset:1px;background:#ede9fe;color:#5b21b6}.record-map-seat.unavailable:not(.owned) {text-decoration:line-through}.record-map-seat:disabled {opacity:1;cursor:not-allowed}.record-map-seat.chosen {background:#0f766e;color:#fff;outline:3px solid #134e4a}.record-map-seat:focus-visible {outline:3px solid #111827;outline-offset:3px}
.record-seat-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.record-seat-footer p {margin:0}.record-seat-footer[hidden] {display:none}
@media(max-width:600px){.record-seat-dialog {padding:12px}.record-seat-heading h2 {font-size:1.05rem}.record-seat-dialog .button {min-height:44px}.record-seat-legend {gap:6px;font-size:.72rem}}
.ticket-workspace .record-columns {grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr)}
.ticket-workspace .ticket-qr-panel img {display:block;width:min(100%,220px);height:auto;margin:12px auto}
.ticket-workspace .summary-list {grid-template-columns:minmax(100px,.5fr) minmax(0,1fr);gap:10px 16px}
.ticket-workspace .summary-list dd {overflow-wrap:anywhere}
.ticket-action-choice {display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px;padding:16px;background:#f0fdfa;border:1px solid #bcded6;border-radius:10px}
.ticket-action-choice > div {flex:1 1 220px}.ticket-action-choice p {font-size:.9rem;line-height:1.5;margin:6px 0 0}
.ticket-cancellation {border:1px solid #fecaca;border-radius:10px;padding:14px;background:#fffafa}
.ticket-cancellation > summary {cursor:pointer;font-weight:700;color:#991b1b;min-height:32px}
.ticket-cancellation p {font-size:.9rem;line-height:1.6;margin:14px 0}
.sale-operation-choices {display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.sale-operation-choices .button {flex:1 1 180px}
@media(max-width:1000px){.ticket-workspace .record-columns {grid-template-columns:minmax(0,1fr)}}

.record-map-seat.removed,.map-key.removed::before{background:#fee2e2;color:#991b1b;border:2px dashed #b91c1c;text-decoration:line-through;opacity:1}
.seat-change-summary{padding:16px;margin:16px 0;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;line-height:1.7;overflow-wrap:anywhere}
.seat-exchange-comparison{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;margin:20px 0}
.seat-exchange-comparison>div{padding:20px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;display:grid;gap:8px}
.seat-exchange-comparison>div:last-child{border-color:#14b8a6;background:#f0fdfa}
.seat-exchange-comparison span{color:#475569}
@media(max-width:600px){.seat-exchange-comparison{grid-template-columns:1fr}.seat-exchange-comparison>span{display:none}}
.record-seat-footer p{max-height:22dvh;overflow:auto;overflow-wrap:anywhere;flex:1 1 260px}

.ticket-list-details{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:12px}
.ticket-list-details>summary{cursor:pointer;font-weight:650;padding:12px;border-radius:8px;background:#f8fafc;color:#334155}
.ticket-list-details[open]>summary{margin-bottom:12px}
.ticket-list-details .table-wrap{max-height:60dvh;overflow:auto}
.ticket-list-details table{min-width:520px}
.ticket-list-details th{position:sticky;top:0;background:#f1f5f9;z-index:1}
.ticket-batch-actions{margin:12px 0}
.batch-ticket-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 0;border-bottom:1px solid #e2e8f0}
.batch-ticket-row label{display:block}
.batch-ticket-row input[type=checkbox]{width:20px;height:20px;vertical-align:middle}
.record-map-seat.source{outline:4px solid #d97706;background:#fef3c7;color:#92400e}
[data-batch-summary]{max-height:35dvh;overflow:auto}
[data-batch-summary] p{margin:8px 0}
@media(max-width:650px){.batch-ticket-row{grid-template-columns:1fr}}
.record-header .record-kind{display:block;color:#64748b;font-size:.85rem;font-weight:600;margin-bottom:6px}
.record-workspace .record-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.record-workspace .panel>h2,.record-workspace .panel-header h2{font-size:1.05rem;margin:0 0 14px;line-height:1.4}
.record-workspace .panel-header{margin-bottom:0;padding-bottom:0;border-bottom:0}
.record-workspace .record-progress-help{font-size:.85rem;color:#64748b;margin:0 0 12px}
.record-workspace .summary-list{grid-template-columns:minmax(90px,.45fr) minmax(0,1fr);gap:12px 16px}
.record-workspace .summary-list dd{overflow-wrap:anywhere}
@media(max-width:600px){.record-workspace .record-stats{grid-template-columns:1fr}.record-header .button{width:100%}}