.seat-reservation-page-header {
  gap: 1rem;
}

.seat-reservation-create-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.seat-reservation-card {
  --seat-reservation-surface: var(--gray1-color, #111113);
  --seat-reservation-surface-soft: var(--gray2-color, #1f1f22);
  --seat-reservation-panel: var(--gray3-color, #2c2c30);
  --seat-reservation-border: var(--gray5-color, #47484d);
  --seat-reservation-border-soft: color-mix(
    in srgb,
    var(--gray8-color, #707179),
    transparent 66%
  );
  --seat-reservation-text: var(--gray16-color, #dee1ed);
  --seat-reservation-muted: var(--gray13-color, #b3b6c1);
  --seat-reservation-accent: var(--primary-color, #ff9024);
  border: 1px solid var(--seat-reservation-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--seat-reservation-surface-soft);
  color: var(--seat-reservation-text);
  box-shadow: none;
}

.seat-reservation-card .card-body {
  padding: 1.5rem;
}

.seat-reservation-dashboard-hero {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.25rem;
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 0.65rem;
  background: var(--seat-reservation-panel);
}

.seat-reservation-dashboard-copy {
  max-width: 42rem;
}

.seat-reservation-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--seat-reservation-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seat-reservation-dashboard-copy h2 {
  margin-bottom: 0.35rem;
  color: var(--seat-reservation-text);
  font-size: 1.45rem;
  line-height: 1.2;
}

.seat-reservation-dashboard-copy p {
  margin-bottom: 0;
  color: var(--seat-reservation-muted);
}

.seat-reservation-dashboard-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(7rem, 1fr));
  min-width: min(100%, 16rem);
}

.seat-reservation-stat-card {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-height: 5.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--gray1-color, #111113), transparent 12%);
}

.seat-reservation-stat-value {
  color: var(--seat-reservation-text);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.seat-reservation-stat-label {
  color: var(--seat-reservation-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seat-template-header {
  gap: 1rem;
}

.seat-template-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seat-template-header h1 {
  color: var(--gray16-color, #dee1ed);
}

.seat-template-header .text-muted {
  color: var(--gray13-color, #b3b6c1) !important;
}

.seat-template-header-actions .btn {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
}

.seat-template-header-actions .btn-outline-secondary,
.seat-template-header-actions .btn-outline-primary,
.seat-template-actions .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--gray12-color, #a6a8b3), transparent 62%);
  background: rgba(255, 247, 235, 0.06);
  color: var(--gray16-color, #dee1ed);
}

.seat-template-header-actions .btn-outline-secondary:hover,
.seat-template-header-actions .btn-outline-secondary:focus-visible,
.seat-template-header-actions .btn-outline-primary:hover,
.seat-template-header-actions .btn-outline-primary:focus-visible,
.seat-template-actions .btn-outline-secondary:hover,
.seat-template-actions .btn-outline-secondary:focus-visible {
  border-color: var(--primary-color, #ff9024);
  background: color-mix(in srgb, var(--primary-color, #ff9024), transparent 18%);
  color: var(--gray1-color, #111113);
}

.seat-template-form-card {
  --seat-template-surface: var(--gray1-color, #111113);
  --seat-template-surface-soft: var(--gray2-color, #1f1f22);
  --seat-template-panel: color-mix(
    in srgb,
    var(--gray2-color, #1f1f22),
    transparent 10%
  );
  --seat-template-border: var(--gray5-color, #47484d);
  --seat-template-border-strong: var(--gray7-color, #62636a);
  --seat-template-text: var(--gray16-color, #dee1ed);
  --seat-template-muted: color-mix(
    in srgb,
    var(--gray15-color, #ced1de),
    transparent 20%
  );
  --seat-template-accent: var(--primary-color, #ff9024);
  --seat-template-accent-dark: var(--primary-color-dark, #cf741c);
  border: 1px solid var(--seat-template-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--seat-template-surface-soft);
  color: var(--seat-template-text);
  box-shadow: none;
}

.seat-template-form-card .card-body {
  padding: 1.5rem;
}

.seat-template-form-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0 auto;
}

.seat-template-form-shell .seat-template-stage,
.seat-template-form-shell .seat-template-alert,
.seat-template-form-shell .seat-template-actions {
  grid-column: 1 / -1;
}

.seat-template-assignment-card .card-body {
  padding: 1.5rem;
}

.seat-template-assignment-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.65fr);
}

.seat-template-assignment-table {
  color: var(--gray16-color, #dee1ed);
  background: transparent;
}

.seat-template-assignment-table th,
.seat-template-assignment-table td {
  border-color: var(--gray5-color, #47484d);
  vertical-align: middle;
}

.seat-template-stage,
.seat-template-section {
  border: 1px solid var(--seat-template-border);
  border-radius: 0.6rem;
  padding: 1.4rem 1.5rem;
  background: color-mix(in srgb, var(--gray2-color, #1f1f22), transparent 18%);
  backdrop-filter: blur(4px);
}

.seat-template-stage {
  background: var(--seat-template-panel);
  color: var(--seat-template-text);
  border-color: var(--seat-template-border-strong);
}

.seat-template-stage-copy {
  max-width: 52rem;
}

.seat-template-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--gray7-color, #62636a);
  border-radius: 999px;
  color: var(--primary-color, #ff9024);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seat-template-stage h2 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.seat-template-stage p {
  margin-bottom: 0;
  max-width: 42rem;
  color: var(--seat-template-muted);
}

.seat-template-section-accent {
  background: color-mix(in srgb, var(--gray3-color, #2c2c30), transparent 10%);
}

.seat-template-section-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.seat-template-section-header h3 {
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
  color: var(--seat-template-text);
}

.seat-template-section-header p {
  margin-bottom: 0;
  color: var(--seat-template-muted);
}

.seat-template-step {
  min-width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-color, #ff9024);
  color: var(--gray1-color, #111113);
  font-weight: 700;
  font-size: 0.88rem;
}

.seat-template-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.seat-template-field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seat-template-field label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--seat-template-text);
}

.seat-template-field .form-control,
.seat-template-field select,
.seat-template-field textarea {
  width: 100%;
  border: 1px solid var(--seat-template-border);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--gray1-color, #111113), transparent 12%);
  color: var(--seat-template-text);
  box-shadow: none;
}

.seat-template-field .form-control:focus,
.seat-template-field select:focus,
.seat-template-field textarea:focus {
  border-color: var(--seat-template-accent);
  box-shadow: 0 0 0 0.2rem
    color-mix(in srgb, var(--seat-template-accent), transparent 82%);
  background: var(--gray2-color, #1f1f22);
}

.seat-template-field textarea {
  min-height: 160px;
}

.seat-template-field .form-text,
.seat-template-field .text-muted {
  color: var(--seat-template-muted) !important;
}

.seat-template-field select option {
  background: var(--gray2-color, #1f1f22);
  color: var(--seat-template-text);
}

.seat-template-field .form-control::placeholder,
.seat-template-field textarea::placeholder {
  color: var(--gray11-color, #989aa4);
}

.seat-template-field.has-error .form-control {
  border-color: var(--red-color, #e32a52);
  box-shadow: 0 0 0 0.1rem
    color-mix(in srgb, var(--red-color, #e32a52), transparent 86%);
}

.seat-template-field .select2-container {
  width: 100% !important;
}

.seat-template-field .select2-container .select2-selection--single {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.seat-template-toggle-grid {
  display: grid;
  gap: 0.85rem;
}

.seat-template-toggle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--seat-template-border);
  border-radius: 0.55rem;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--gray1-color, #111113), transparent 12%);
  margin-bottom: 0;
}

.seat-template-toggle strong {
  color: var(--seat-template-text);
}

.seat-template-toggle small {
  display: block;
  color: var(--seat-template-muted);
}

.seat-template-toggle .form-check-input {
  margin-top: 0.25rem;
}

.seat-template-toggle-advanced {
  border-style: dashed;
}

.seat-template-advanced-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--seat-template-border);
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--gray3-color, #2c2c30), transparent 22%);
}

.seat-template-advanced-panel[hidden] {
  display: none;
}

.seat-template-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.seat-template-actions .btn {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
}

.seat-template-alert {
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .seat-template-form-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .seat-template-header-actions,
  .seat-template-actions {
    width: 100%;
    justify-content: stretch;
  }

  .seat-template-header-actions .btn,
  .seat-template-actions .btn {
    justify-content: center;
    flex: 1 1 100%;
  }
}

.seat-reservation-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.seat-reservation-filter-bar {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--gray1-color, #111113), transparent 10%);
}

.seat-reservation-filter-group {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 22rem);
}

.seat-reservation-filter-group label {
  margin: 0;
  color: var(--gray16-color, #dee1ed);
  font-weight: 700;
}

.seat-reservation-filter-group .form-control {
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 0.45rem;
  background: var(--gray1-color, #111113);
  color: var(--gray16-color, #dee1ed);
  min-height: 2.55rem;
}

.seat-reservation-filter-group .form-control:focus {
  border-color: var(--primary-color, #ff9024);
  box-shadow: 0 0 0 0.2rem
    color-mix(in srgb, var(--primary-color, #ff9024), transparent 82%);
  background: var(--gray2-color, #1f1f22);
}

.seat-reservation-filter-group .form-control option {
  background: var(--gray2-color, #1f1f22);
  color: var(--gray16-color, #dee1ed);
}

.seat-reservation-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--seat-reservation-border-soft);
  background: color-mix(in srgb, var(--gray3-color, #2c2c30), transparent 8%);
  color: var(--seat-reservation-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.seat-reservation-meta-pill-primary {
  border-color: color-mix(
    in srgb,
    var(--primary-color, #ff9024),
    transparent 58%
  );
  background: color-mix(
    in srgb,
    var(--primary-color, #ff9024),
    transparent 86%
  );
  color: var(--primary-color-light, #ff9f42);
}

.seat-reservation-meta-pill-secondary {
  color: var(--seat-reservation-text);
}

.seat-reservation-meta-pill-muted {
  color: var(--seat-reservation-muted);
}

.seat-reservation-card .btn-outline-secondary,
.seat-reservation-card .btn-outline-primary,
.seat-reservation-card .btn-outline-danger {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  border-color: var(--seat-reservation-border-soft);
  background: rgba(255, 247, 235, 0.06);
  font-weight: 700;
}

.seat-reservation-card .btn-outline-secondary {
  color: var(--seat-reservation-text);
}

.seat-reservation-card .btn-outline-primary {
  border-color: color-mix(
    in srgb,
    var(--event-color, #25a5c6),
    transparent 54%
  );
  color: var(--event-color-light, #3caecc);
}

.seat-reservation-card .btn-outline-danger {
  border-color: color-mix(in srgb, var(--red-color, #e32a52), transparent 58%);
  color: var(--red-color-light, #e9476a);
}

.seat-reservation-card .btn-outline-secondary:hover,
.seat-reservation-card .btn-outline-secondary:focus-visible {
  border-color: var(--primary-color, #ff9024);
  background: color-mix(in srgb, var(--primary-color, #ff9024), transparent 18%);
  color: var(--gray1-color, #111113);
}

.seat-reservation-card .btn-outline-primary:hover,
.seat-reservation-card .btn-outline-primary:focus-visible {
  background: var(--event-color, #25a5c6);
  color: var(--gray1-color, #111113);
}

.seat-reservation-card .btn-outline-danger:hover,
.seat-reservation-card .btn-outline-danger:focus-visible {
  background: var(--red-color, #e32a52);
  color: #ffffff;
}

.seat-reservation-table-wrap {
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--gray1-color, #111113);
}

.seat-reservation-table {
  color: var(--seat-reservation-text);
  background: transparent;
}

.seat-reservation-table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--gray3-color, #2c2c30);
  color: var(--gray15-color, #ced1de);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seat-reservation-table tbody td {
  border-top: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.seat-reservation-template-title {
  color: var(--seat-reservation-text);
  font-weight: 800;
}

.seat-reservation-template-slug,
.seat-reservation-muted {
  color: var(--seat-reservation-muted) !important;
}

.seat-reservation-version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--seat-reservation-border-soft);
  border-radius: 999px;
  background: var(--gray2-color, #1f1f22);
  color: var(--seat-reservation-text);
  font-weight: 800;
}
.seat-reservation-actions {
  display: inline-flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.seat-reservation-empty-state {
  border: 1px dashed var(--seat-reservation-border-soft);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--gray1-color, #111113), transparent 14%);
}

.seat-reservation-empty-state i {
  margin-bottom: 0.75rem;
  color: var(--primary-color, #ff9024);
  font-size: 2rem;
}

.seat-reservation-empty-state .text-muted {
  color: var(--seat-reservation-muted) !important;
}

.seat-editor-shell .card-body {
  padding: 1.5rem;
}

.seat-editor-shell {
  border: 1px solid rgba(154, 133, 109, 0.22);
  border-radius: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top right,
      rgba(210, 158, 84, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(129, 86, 45, 0.16),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      var(--gray1-color, #111113) 0%,
      var(--gray2-color, #1f1f22) 100%
    );
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.seat-editor-page-header {
  gap: 0.9rem;
}

.seat-editor-page-header h1 {
  min-width: 0;
}

.seat-editor-header-actions {
  gap: 0.5rem;
  justify-content: flex-end;
  min-width: 0;
}

.seat-editor-header-actions .btn,
.seat-editor-properties-header-actions .btn,
.seat-editor-toolbar-pill .btn {
  border-width: 1px;
  font-weight: 700;
}

.seat-editor-action-menu .dropdown-menu {
  min-width: 13rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 78%);
  border-radius: 0.9rem;
  padding: 0.4rem;
  background: rgba(19, 15, 11, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.seat-editor-action-menu .dropdown-item {
  border-radius: 0.65rem;
  color: var(--gray16-color, #dee1ed);
  font-weight: 700;
}

.seat-editor-action-menu .dropdown-item:hover,
.seat-editor-action-menu .dropdown-item:focus {
  background: color-mix(
    in srgb,
    var(--primary-color, #ff9024),
    transparent 16%
  );
  color: var(--gray1-color, #111113);
}

.seat-editor-action-menu .dropdown-divider {
  border-top-color: color-mix(
    in srgb,
    var(--gray8-color, #707179),
    transparent 78%
  );
}

.seat-editor-header-actions .btn-outline-secondary,
.seat-editor-header-actions .btn-outline-primary,
.seat-editor-properties-header-actions .btn-outline-secondary,
.seat-editor-properties-header-actions .btn-outline-primary,
.seat-editor-toolbar-pill .btn-outline-secondary {
  border-color: color-mix(
    in srgb,
    var(--gray15-color, #ced1de),
    transparent 58%
  );
  background: rgba(255, 247, 235, 0.08);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-header-actions .btn-outline-secondary:hover,
.seat-editor-header-actions .btn-outline-secondary:focus-visible,
.seat-editor-header-actions .btn-outline-primary:hover,
.seat-editor-header-actions .btn-outline-primary:focus-visible,
.seat-editor-properties-header-actions .btn-outline-secondary:hover,
.seat-editor-properties-header-actions .btn-outline-secondary:focus-visible,
.seat-editor-properties-header-actions .btn-outline-primary:hover,
.seat-editor-properties-header-actions .btn-outline-primary:focus-visible,
.seat-editor-toolbar-pill .btn-outline-secondary:hover,
.seat-editor-toolbar-pill .btn-outline-secondary:focus-visible {
  border-color: var(--primary-color, #ff9024);
  background: color-mix(
    in srgb,
    var(--primary-color, #ff9024),
    transparent 14%
  );
  color: var(--gray1-color, #111113);
}

.seat-editor-header-actions .btn-primary,
.seat-editor-properties-header-actions .btn-primary {
  border-color: var(--primary-color, #ff9024);
  background: var(--primary-color, #ff9024);
  color: var(--gray1-color, #111113);
}

.seat-editor-header-actions .btn-primary:hover,
.seat-editor-header-actions .btn-primary:focus-visible,
.seat-editor-properties-header-actions .btn-primary:hover,
.seat-editor-properties-header-actions .btn-primary:focus-visible {
  border-color: var(--primary-color-dark, #cf741c);
  background: var(--primary-color-dark, #cf741c);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-toolbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 999px;
  background: rgba(19, 15, 11, 0.76);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-toolbar-pill-wide {
  border-radius: 1rem;
}

.seat-editor-toolbar-label {
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 22%);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seat-editor-toolbar-pill [data-seat-editor-save-state][data-tone="success"] {
  color: #9dd79f;
}

.seat-editor-toolbar-pill [data-seat-editor-save-state][data-tone="warning"] {
  color: #f2ca79;
}

.seat-editor-toolbar-pill [data-seat-editor-save-state][data-tone="error"] {
  color: #ef9d9d;
}

.seat-editor-toolbar-pill .form-control {
  min-width: 13rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.75rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-toolbar-pill .seat-editor-grid-size-input {
  width: 5.5rem;
  min-width: 5.5rem;
}

.seat-editor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gray16-color, #dee1ed);
  font-weight: 800;
}

.seat-editor-toggle input {
  width: auto;
  margin: 0;
}

.seat-editor-panel,
.seat-editor-preview,
.seat-reservation-event {
  border: 1px solid rgba(175, 145, 108, 0.16);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 247, 235, 0.04);
  color: var(--gray16-color, #dee1ed);
  backdrop-filter: blur(4px);
}

.seat-editor-workbench {
  display: grid;
  grid-template-columns: minmax(5.5rem, 6.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.seat-editor-toolrail {
  --seat-editor-tool-button-size: clamp(2.3rem, 3.4vw, 2.65rem);
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(175, 145, 108, 0.16);
  border-radius: 1rem;
  background: rgba(12, 10, 8, 0.64);
}

.seat-editor-toolrail-section {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.seat-editor-toolrail-section-label {
  padding: 0 0.1rem;
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 30%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.seat-editor-toolrail-group {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(
      var(--seat-editor-tool-button-size),
      var(--seat-editor-tool-button-size)
    )
  );
  justify-content: center;
}

.seat-editor-venue-group {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.seat-editor-venue-select {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.75rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.seat-editor-venue-select option {
  background: var(--gray2-color, #1f1f22);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-venue-select:hover,
.seat-editor-venue-select:focus {
  border-color: var(--primary-color, #ff9024);
  outline: none;
}

.seat-editor-venue-custom-size {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.seat-editor-venue-custom-size[hidden] {
  display: none;
}

.seat-editor-venue-dim {
  width: 4rem;
  min-width: 3rem;
  flex: 1 1 auto;
  border: 1px solid color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.6rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 0.2rem 0.3rem;
}

.seat-editor-venue-dim:focus {
  border-color: var(--primary-color, #ff9024);
  outline: none;
}

.seat-editor-venue-dim-sep {
  color: var(--gray11-color, #989aa4);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seat-editor-venue-apply {
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.6rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
  font-size: 0.72rem;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}

.seat-editor-venue-apply:hover,
.seat-editor-venue-apply:focus {
  border-color: var(--primary-color, #ff9024);
  background: color-mix(in srgb, var(--primary-color, #ff9024), transparent 18%);
  color: var(--gray1-color, #111113);
}

.seat-editor-venue-dimension-label {
  display: block;
  text-align: center;
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 22%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-editor-tool-button,
.seat-editor-shape-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--seat-editor-tool-button-size);
  min-width: var(--seat-editor-tool-button-size);
  height: var(--seat-editor-tool-button-size);
  min-height: var(--seat-editor-tool-button-size);
  padding: 0;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 84%);
  border-radius: 0.8rem;
  background: rgba(255, 247, 235, 0.05);
  color: var(--gray16-color, #dee1ed);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
}

label.seat-editor-tool-button {
  margin: 0;
}

.seat-editor-tool-button i,
.seat-editor-shape-button i {
  display: block;
  margin: 0;
  font-size: 0.95em;
  line-height: 1;
  pointer-events: none;
}

.seat-editor-tool-button:hover,
.seat-editor-tool-button:focus,
.seat-editor-shape-button:hover,
.seat-editor-shape-button:focus,
.seat-editor-tool-button.is-active,
.seat-editor-shape-button.is-active {
  border-color: var(--primary-color, #ff9024);
  background: rgba(211, 154, 86, 0.18);
  color: var(--gray16-color, #dee1ed);
  outline: none;
}

.seat-editor-stage-area {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.seat-editor-stage-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: -0.25rem;
}

.seat-editor-stage-summary[hidden] {
  display: none;
}

.seat-editor-stage-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 180px;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  background: rgba(18, 14, 11, 0.72);
  color: var(--gray16-color, #dee1ed);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.seat-editor-stage-stat i {
  font-size: 1rem;
  color: #e2ae72;
}

.seat-editor-stage-stat-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.seat-editor-stage-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.seat-editor-stage-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 18%);
}

.seat-editor-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.seat-editor-detail-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.seat-editor-detail-deck[hidden],
.seat-editor-stage-header[hidden],
[data-seat-editor-feedback][hidden] {
  display: none;
}

.seat-editor-item {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 88%);
  border-radius: 0.85rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(18, 14, 11, 0.68);
  color: var(--gray16-color, #dee1ed);
  cursor: grab;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.seat-editor-item.is-active {
  border-color: var(--primary-color, #ff9024);
  box-shadow: 0 0 0 2px rgba(211, 154, 86, 0.16);
}

.seat-editor-item.is-drop-target {
  border-color: #e2ae72;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.seat-editor-item input,
.seat-editor-item select,
.seat-editor-item textarea {
  width: 100%;
  margin-bottom: 0.5rem;
}

.seat-editor-dimension-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.seat-editor-item .form-control,
.seat-editor-item select,
.seat-editor-panel .form-control,
.seat-editor-panel textarea {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.8rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-item .form-control:focus,
.seat-editor-item select:focus,
.seat-editor-panel .form-control:focus,
.seat-editor-panel textarea:focus {
  border-color: var(--primary-color, #ff9024);
  box-shadow: 0 0 0 0.2rem rgba(211, 154, 86, 0.18);
  background: rgba(20, 16, 12, 0.92);
}

.seat-editor-item .form-check-label,
.seat-editor-ticket-option .form-check-label,
.seat-editor-panel .text-muted,
.seat-editor-preview .text-muted {
  color: color-mix(
    in srgb,
    var(--gray15-color, #ced1de),
    transparent 22%
  ) !important;
}

.seat-editor-ticket-list {
  display: grid;
  gap: 0.55rem;
}

.seat-editor-ticket-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 88%);
  border-radius: 0.75rem;
  background: rgba(18, 14, 11, 0.55);
}

.seat-editor-ticket-option .form-check-input {
  margin-top: 0.2rem;
}

.seat-preview-grid {
  display: grid;
  gap: 1rem;
}

.seat-editor-canvas-stage {
  position: relative;
  width: 100%;
  height: min(84dvh, 46rem);
  min-height: 28rem;
  margin: 0 auto;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 86%);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #120f0c;
}

.seat-editor-properties-panel[hidden] {
  display: none;
}

.seat-editor-properties-panel {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  justify-content: flex-end;
  background: rgba(7, 5, 4, 0.48);
}

.seat-editor-properties-card {
  width: min(44rem, 100%);
  height: 100%;
  overflow: auto;
  padding: 1.25rem;
  border-left: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  background: var(--gray1-color, #111113);
  color: var(--gray16-color, #dee1ed);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.34);
}

.seat-editor-properties-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.seat-editor-properties-header-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seat-editor-properties-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  height: auto;
  margin-bottom: 1rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.85rem;
  background: #120f0c;
  touch-action: none;
}

.seat-editor-properties-canvas-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  flex-wrap: wrap;
}

.seat-editor-popup-grid-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.55rem;
  background: rgba(255, 247, 235, 0.06);
}

.seat-editor-popup-grid-controls .seat-editor-grid-size-input {
  width: 4.75rem;
  min-width: 4.75rem;
  margin: 0;
}

.seat-editor-grid-size-label {
  color: rgba(247, 239, 228, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.seat-editor-canvas-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.5rem;
  background: rgba(255, 247, 235, 0.06);
  color: var(--gray16-color, #dee1ed);
  cursor: pointer;
}

.seat-editor-canvas-icon-button:hover,
.seat-editor-canvas-icon-button:focus-visible {
  border-color: var(--primary-color, #ff9024);
  background: rgba(211, 154, 86, 0.18);
  outline: none;
}

.seat-editor-inline-actions .btn.is-active {
  border-color: var(--primary-color, #ff9024);
  background: color-mix(
    in srgb,
    var(--primary-color-dark, #cf741c),
    transparent 78%
  );
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-properties-body {
  display: grid;
  gap: 1rem;
}

.seat-editor-property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.seat-editor-property-grid label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0;
  color: rgba(247, 239, 228, 0.88);
  font-weight: 700;
}

.seat-editor-property-grid span,
.seat-editor-property-section-header span,
.seat-editor-help-item span {
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 22%);
  font-size: 0.82rem;
  font-weight: 500;
}

.seat-editor-properties-body .form-control {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 0.65rem;
  background: rgba(12, 10, 8, 0.56);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-property-section,
.seat-editor-help-item {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 86%);
  border-radius: 0.75rem;
  background: rgba(255, 247, 235, 0.05);
}

.seat-editor-property-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.seat-editor-property-section-header > div:first-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.seat-editor-autofill-section {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(37, 99, 235, 0.08);
}

.seat-editor-autofill-section.is-open {
  border-color: rgba(96, 165, 250, 0.35);
}

.seat-editor-autofill-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.seat-editor-autofill-grid {
  padding-top: 0.15rem;
}

.seat-editor-property-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.seat-editor-property-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.seat-editor-help-stack {
  display: grid;
  gap: 0.75rem;
}

.seat-editor-layout-hint {
  color: color-mix(in srgb, var(--gray15-color, #ced1de), transparent 18%);
  font-size: 0.83rem;
  line-height: 1.45;
}

.seat-editor-ticket-grid {
  display: grid;
  gap: 0.55rem;
  max-height: 15rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.seat-editor-drag-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.seat-editor-row-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0 0.75rem;
}

.seat-editor-row-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}

.seat-editor-row-tool.is-active,
.seat-editor-row-tool:hover,
.seat-editor-row-tool:focus-visible {
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(59, 130, 246, 0.22);
  outline: none;
}

.seat-editor-drag-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  border: 1px dashed
    color-mix(in srgb, var(--gray8-color, #707179), transparent 66%);
  border-radius: 0.8rem;
  background: rgba(255, 247, 235, 0.06);
  color: var(--gray16-color, #dee1ed);
  font-weight: 700;
  cursor: grab;
}

.seat-editor-drag-tool:active {
  cursor: grabbing;
}

.seat-editor-properties-canvas.is-dragging {
  cursor: grabbing;
}

.seat-editor-property-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 86%);
  border-radius: 0.75rem;
  background: rgba(255, 247, 235, 0.05);
}

.seat-editor-row-capacity {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 0.65rem;
  background: rgba(22, 101, 52, 0.18);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-row-capacity.is-tight {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(133, 77, 14, 0.2);
}

.seat-editor-row-capacity.is-warning {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.2);
}

.seat-editor-row-capacity strong,
.seat-editor-row-capacity span {
  display: block;
}

.seat-editor-row-capacity strong {
  font-size: 0.86rem;
}

.seat-editor-row-capacity span {
  color: rgba(247, 239, 228, 0.76);
  font-size: 0.78rem;
}

.seat-editor-row-capacity-meter {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.1);
}

.seat-editor-row-capacity-meter span {
  display: block;
  width: var(--seat-row-fill, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #86efac;
}

.seat-editor-row-capacity.is-tight .seat-editor-row-capacity-meter span {
  background: #facc15;
}

.seat-editor-row-capacity.is-warning .seat-editor-row-capacity-meter span {
  background: #f87171;
}

.seat-editor-canvas-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.seat-editor-canvas-stage .seat-editor-minimap,
.seat-map-stage .seat-map-minimap {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: clamp(8rem, 24%, 14rem);
  height: auto;
  aspect-ratio: var(
    --seat-editor-minimap-ratio,
    var(--seat-editor-stage-ratio, 16 / 9)
  );
  border: 1px solid rgba(255, 247, 235, 0.34);
  border-radius: 0.5rem;
  background: rgba(18, 15, 12, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.seat-editor-canvas-stage canvas.is-dragging {
  cursor: grabbing;
}

.seat-editor-canvas-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.seat-editor-policy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 84%);
  border-radius: 0.75rem;
  background: rgba(18, 14, 11, 0.55);
  color: var(--gray16-color, #dee1ed);
  font-weight: 600;
}

.seat-editor-policy-toggle input {
  width: auto;
  margin: 0;
}

.seat-preview-block {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 86%);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(20, 16, 12, 0.76);
}

.seat-preview-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.seat-chip,
.seat-map-seat {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 247, 235, 0.08);
  color: var(--gray16-color, #dee1ed);
  font-size: 0.82rem;
}

[data-seat-editor-feedback] {
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 84%);
  background: rgba(20, 16, 12, 0.76);
  color: var(--gray16-color, #dee1ed);
}

.seat-editor-context-menu {
  position: fixed;
  z-index: 1400;
  min-width: 12rem;
  padding: 0.35rem;
  border: 1px solid
    color-mix(in srgb, var(--gray8-color, #707179), transparent 84%);
  border-radius: 0.9rem;
  background: rgba(17, 13, 10, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.seat-editor-context-palette {
  display: grid;
  grid-template-columns: repeat(4, 1.75rem);
  gap: 0.35rem;
  padding: 0.35rem 0.45rem 0.45rem;
}

.seat-editor-context-swatch-button {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 247, 235, 0.55);
  border-radius: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(18, 15, 12, 0.28);
  cursor: pointer;
}

.seat-editor-context-swatch-button:hover,
.seat-editor-context-swatch-button:focus-visible {
  outline: 2px solid #e2ae72;
  outline-offset: 2px;
}

.seat-editor-shell .btn-outline-secondary,
.seat-editor-shell .btn-outline-primary {
  border-color: rgba(255, 247, 235, 0.44);
  background: rgba(255, 247, 235, 0.08);
  color: #fff8ec;
  font-weight: 700;
}

.seat-editor-shell .btn-outline-danger {
  border-color: rgba(255, 214, 214, 0.54);
  background: rgba(127, 29, 29, 0.18);
  color: #ffd6d6;
}

.seat-editor-shell .btn-outline-secondary:hover,
.seat-editor-shell .btn-outline-secondary:focus-visible,
.seat-editor-shell .btn-outline-primary:hover,
.seat-editor-shell .btn-outline-primary:focus-visible {
  border-color: #e2ae72;
  background: #e2ae72;
  color: #17100a;
}

.seat-editor-shell .btn-outline-danger:hover,
.seat-editor-shell .btn-outline-danger:focus-visible {
  border-color: #fca5a5;
  background: #fca5a5;
  color: #2b0b0b;
}

.seat-editor-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.seat-editor-generation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 1200px) {
  .seat-editor-workbench {
    grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
  }

  .seat-editor-detail-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .seat-editor-shell .card-body {
    padding: 1rem;
  }

  .seat-editor-header-actions {
    justify-content: flex-start;
  }

  .seat-editor-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-editor-toolrail {
    --seat-editor-tool-button-size: clamp(2.3rem, 5vw, 2.55rem);
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    overflow-x: auto;
    padding: 0.55rem;
  }

  .seat-editor-toolrail-section {
    min-width: 4.5rem;
    padding: 0.4rem;
    border: 1px solid
      color-mix(in srgb, var(--gray8-color, #707179), transparent 90%);
    border-radius: 0.85rem;
    background: rgba(255, 247, 235, 0.035);
  }

  .seat-editor-toolrail-group {
    grid-template-columns: repeat(
      auto-fit,
      minmax(
        var(--seat-editor-tool-button-size),
        var(--seat-editor-tool-button-size)
      )
    );
  }

  .seat-editor-properties-card {
    width: min(42rem, 100%);
  }
}

@media (max-width: 991.98px) {
  .seat-editor-page-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .seat-editor-header-actions,
  .seat-editor-header-actions > .btn,
  .seat-editor-toolbar-pill {
    width: 100%;
  }

  .seat-editor-toolbar-pill {
    align-items: stretch;
    flex-wrap: wrap;
    border-radius: 0.9rem;
  }

  .seat-editor-toolbar-pill .form-control {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .seat-editor-toolrail {
    --seat-editor-tool-button-size: clamp(2.25rem, 8.8vw, 2.5rem);
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.5rem;
    scroll-snap-type: x proximity;
  }

  .seat-editor-toolrail-section {
    flex: 0 0 auto;
    min-width: calc(var(--seat-editor-tool-button-size) + 1rem);
    scroll-snap-align: start;
  }

  .seat-editor-toolrail-section-wide {
    min-width: min(
      calc(var(--seat-editor-tool-button-size) * 5 + 2.35rem),
      100%
    );
  }

  .seat-editor-toolrail-section-label {
    font-size: 0.64rem;
    text-align: center;
  }

  .seat-editor-toolrail-group {
    display: flex;
    gap: 0.35rem;
    min-width: 0;
  }

  .seat-editor-tool-button,
  .seat-editor-shape-button {
    flex: 0 0 var(--seat-editor-tool-button-size);
    width: var(--seat-editor-tool-button-size);
    min-width: var(--seat-editor-tool-button-size);
    height: var(--seat-editor-tool-button-size);
    min-height: var(--seat-editor-tool-button-size);
  }

  .seat-editor-detail-deck {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-editor-properties-card {
    width: 100%;
    height: auto;
    max-height: 92dvh;
    padding: 1rem;
    border-top: 1px solid
      color-mix(in srgb, var(--gray8-color, #707179), transparent 82%);
    border-left: 0;
    border-radius: 1rem 1rem 0 0;
  }

  .seat-editor-properties-panel {
    align-items: flex-end;
  }

  .seat-editor-properties-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seat-editor-properties-header .btn {
    width: 100%;
  }

  .seat-editor-canvas-stage .seat-editor-minimap,
  .seat-map-stage .seat-map-minimap {
    width: clamp(7rem, 24%, 10.5rem);
  }
}

@media (max-width: 575.98px) {
  .seat-editor-shell {
    border-radius: 0.85rem;
  }

  .seat-editor-shell .card-body {
    padding: 0.65rem;
  }

  .seat-editor-preview,
  .seat-editor-panel,
  .seat-reservation-event {
    padding: 0.75rem;
  }

  .seat-editor-canvas-stage {
    width: 100%;
    min-height: 14rem;
  }

  .seat-editor-canvas-stage .seat-editor-minimap,
  .seat-map-stage .seat-map-minimap {
    right: 0.45rem;
    bottom: 0.45rem;
    width: clamp(5.75rem, 30%, 8rem);
  }

  .seat-editor-properties-card {
    max-height: 100dvh;
    border-radius: 0;
  }

  .seat-editor-property-grid,
  .seat-editor-dimension-grid,
  .seat-editor-drag-palette,
  .seat-editor-generation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-editor-row-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seat-editor-property-section-header,
  .seat-editor-property-summary {
    flex-direction: column;
  }

  .seat-editor-property-actions {
    justify-content: flex-start;
  }
}

.seat-editor-context-header {
  padding: 0.55rem 0.7rem 0.35rem;
  color: var(--gray16-color, #dee1ed);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seat-editor-context-action .seat-editor-color-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  border: 1px solid rgba(255, 247, 235, 0.48);
  border-radius: 50%;
  vertical-align: -0.1rem;
}

.seat-editor-context-divider {
  height: 1px;
  margin: 0.3rem 0.25rem;
  background: color-mix(in srgb, var(--gray8-color, #707179), transparent 84%);
}

.seat-editor-context-action {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--gray16-color, #dee1ed);
  text-align: left;
  padding: 0.55rem 0.7rem;
}

.seat-editor-context-action.is-danger {
  color: #ffd6d6;
}

.seat-editor-context-action:hover,
.seat-editor-context-action:focus {
  background: color-mix(in srgb, var(--gray8-color, #707179), transparent 88%);
  outline: none;
}

.seat-editor-context-action.is-danger:hover,
.seat-editor-context-action.is-danger:focus {
  background: rgba(209, 83, 83, 0.18);
}

.seat-map-grid {
  display: grid;
  gap: 1rem;
}

.seat-map-stage-wrap {
  margin-bottom: 0.75rem;
}

.seat-ticket-technical-fields {
  display: none;
}

.seat-ticket-filter {
  border: 1px solid rgba(255, 223, 64, 0.22);
  border-radius: 8px;
  background: #262626;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.seat-ticket-filter-toolbar {
  border-color: rgba(255, 223, 64, 0.28);
  background: #262626;
  margin-bottom: 0.4rem;
  padding: 0.45rem;
}

.seat-ticket-filter-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.seat-ticket-filter-header strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.seat-ticket-filter-header span {
  color: #ffdf40;
  font-size: 0.82rem;
  text-align: right;
}

.seat-ticket-options {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.seat-ticket-option {
  --seat-ticket-color: #ffdf40;
  --seat-ticket-color-surface: #4d4d4d;
  --seat-ticket-color-surface-strong: #6b6b6b;
  --seat-ticket-color-border: #ffdf40;
  --seat-ticket-color-text: #262626;
  --seat-ticket-color-text-on-dark: #ffffff;
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(8.5rem, 31%, 12rem);
  gap: 0.2rem;
  min-height: 3.75rem;
  border: 1px solid var(--seat-ticket-color-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--seat-ticket-color), #262626 72%);
  color: var(--seat-ticket-color-text-on-dark);
  padding: 0.45rem 0.55rem;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.seat-ticket-option:hover:not(:disabled),
.seat-ticket-option:focus-visible {
  border-color: var(--seat-ticket-color);
  background: color-mix(in srgb, var(--seat-ticket-color), #262626 58%);
  color: var(--seat-ticket-color-text-on-dark);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--seat-ticket-color), transparent 78%);
  outline: none;
}

.seat-ticket-option.is-active {
  border-color: var(--seat-ticket-color);
  background: var(--seat-ticket-color);
  color: var(--seat-ticket-color-text-on-dark);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--seat-ticket-color), transparent 76%);
}

.seat-ticket-option.is-active .seat-ticket-option-title,
.seat-ticket-option.is-active .seat-ticket-option-meta,
.seat-ticket-option.is-active .seat-ticket-option-price {
  color: var(--seat-ticket-color-text-on-dark);
}

.seat-ticket-option.is-disabled,
.seat-ticket-option:disabled {
  cursor: not-allowed;
  opacity: 1;
  border-color: rgba(184, 184, 184, 0.38);
  background: #4d4d4d;
  color: #b8b8b8;
}

.seat-ticket-option.is-disabled .seat-ticket-option-title,
.seat-ticket-option:disabled .seat-ticket-option-title,
.seat-ticket-option.is-disabled .seat-ticket-option-meta,
.seat-ticket-option:disabled .seat-ticket-option-meta {
  color: #b8b8b8;
}

.seat-ticket-option-main {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seat-ticket-option-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.seat-ticket-option-swatch {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: var(--seat-ticket-color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.seat-ticket-option-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--seat-ticket-color-surface-strong);
  color: var(--seat-ticket-color-text);
  font-weight: 700;
  font-size: 0.84rem;
}

.seat-ticket-option.is-active .seat-ticket-option-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--seat-ticket-color-text-on-dark);
}

.seat-ticket-option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: color-mix(
    in srgb,
    var(--seat-ticket-color-text-on-dark),
    transparent 18%
  );
  font-size: 0.78rem;
}

.seat-ticket-option-price {
  font-weight: 700;
  color: var(--seat-ticket-color-surface-strong);
}

.seat-ticket-option-soldout {
  color: var(--seat-ticket-color-surface-strong);
  font-weight: 700;
}

.seat-reservation-event-compact {
  margin-bottom: 0.75rem;
}

.seat-reservation-event.seat-reservation-event-modal-mode {
  border: 0;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#tickets_form.seat-map-modal-form > .total-row,
#tickets_form.seat-map-modal-form > #add-to-cart-button,
#tickets_form:has(.seat-reservation-event-modal-mode) > .total-row,
#tickets_form:has(.seat-reservation-event-modal-mode) > #add-to-cart-button {
  display: none !important;
}

.seat-map-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #e52727;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.seat-map-open-button:hover,
.seat-map-open-button:focus-visible {
  background: #cb1818;
  color: #ffffff;
  outline: none;
}

.seat-map-modal[hidden] {
  display: none;
}

.seat-map-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2200;
}

.seat-map-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.seat-map-modal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  background: #1f1f1f;
  color: #ffffff;
}

.seat-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #262626;
}

.seat-map-modal-title {
  flex: 0 0 12rem;
  min-width: 0;
}

.seat-map-modal-header-controls {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.seat-map-modal-header strong {
  font-size: 1rem;
}

.seat-map-modal-header span {
  font-size: 0.84rem;
}

.seat-map-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 6px;
  background: #333;
  color: #ffffff;
  cursor: pointer;
}

.seat-map-modal-close:hover,
.seat-map-modal-close:focus-visible {
  background: #e52727;
  outline: none;
}

.seat-map-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  min-height: 0;
}

.seat-map-modal-map,
.seat-map-modal-sidebar {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.seat-map-modal-map {
  padding: 1rem;
}

.seat-map-modal-sidebar {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #262626;
}

.seat-map-modal-section {
  display: grid;
  gap: 0.65rem;
}

.seat-map-modal-checkout {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ── Seat Price Toggle in Sidebar ── */
.seat-price-toggle {
  margin-bottom: 0.25rem;
}

.seat-price-btn {
  font-size: 0.7rem;
  line-height: 1.15;
  padding: 0.15rem 0.3rem;
  border-radius: 0 !important;
  white-space: nowrap;
  font-weight:500;
}

.seat-price-btn:first-child {
  border-radius: 0.15rem 0 0 0.15rem !important;
}

.seat-price-btn:last-child {
  border-radius: 0 0.15rem 0.15rem 0 !important;
}

.seat-price-toggle + .selected-seat-remove {
  margin-top: 0.2rem;
}
.seat-price-btn.btn-primary{
  background: var(--gray15-color);
  border-color:var(--gray15-color) !important;
  color: var(--gray2-color);
}
.seat-price-btn.btn-outline-primary{
  border-color:var(--gray15-color) !important;
  color: var(--gray2-color) !important;
}
.seat-price-btn.btn-outline-primary:hover{
  background: var(--gray16-color) !important;
}

.seat-map-modal-status {
  padding-top: 0.25rem;
}

.seat-map-modal-selection:empty {
  display: none;
}

.seat-reservation-event-modal-mode .seat-reservation-panel {
  position: relative;
  height: 100%;
  border: 0;
  padding: 0;
}

.seat-map-modal .seat-ticket-filter {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.seat-map-modal .seat-ticket-filter-header strong {
  color: #ffffff;
}

.seat-map-modal .seat-ticket-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
}

.seat-map-modal .seat-ticket-option {
  width: 100%;
  flex: 0 0 auto;
}

.seat-map-modal .seat-map-controls-row {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.seat-map-modal .seat-map-day-switcher,
.seat-map-modal .seat-map-summary,
.seat-map-modal .seat-map-feedback {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.seat-map-modal .seat-map-status-stack {
  display: grid;
  gap: 0.45rem;
}

.seat-map-modal .seat-map-summary {
  display: flex;
  width: 100%;
  color: #ffffff;
}

.seat-map-modal .seat-map-feedback {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.seat-map-modal .seat-map-modal-checkout {
  margin-top: auto;
}

.seat-map-modal #add-to-cart-button {
  width: 100%;
  margin: 0;
}

.seat-map-modal .selected-seat-variation-list {
  gap: 0.55rem;
  margin: 0;
}

.seat-map-modal .selected-seat-variation-item {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: row;
  border: 1px solid var(--gray13-color);
  border-radius: 0.25em;
  padding: 0;
  box-shadow: 0 6px 18px rgba(17, 17, 19, 0.08);
}

.seat-map-modal .selected-seat-variation-item .ticket-title-wrapper {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 10px;
  flex-direction: column;
  display: flex;
}

.seat-map-modal .selected-seat-variation-item .col-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  width:100%;
}

.seat-map-modal .selected-seat-variation-item h4 {
  margin: 0;
  color: var(--gray4-color);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
}

.seat-map-modal .selected-seat-meta {
  color: var(--gray8-color);
  font-size: 0.84rem;
}

.seat-map-modal .selected-seat-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.85rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gray13-color);
  border-radius: 999px;
  background: #fff;
  color: var(--gray7-color);
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.seat-map-modal .selected-seat-remove:hover,
.seat-map-modal .selected-seat-remove:focus-visible {
  border-color: var(--red-color-light);
  background: rgba(227, 42, 82, 0.08);
  color: var(--red-color);
}

.seat-map-modal .selected-seat-remove i {
  font-size: 0.9rem;
}

.seat-map-modal .seat-map-stage-wrap {
  margin-bottom: 0;
}

.seat-map-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 15rem;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.78);
  color: #ffffff;
  text-align: center;
  backdrop-filter: blur(3px);
}

.seat-map-loading-overlay[hidden] {
  display: none;
}

.seat-map-loading-card {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 3rem));
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(38, 38, 38, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.seat-map-loading-spinner {
  width: 1.8rem;
  height: 1.8rem;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: #ff9024;
  border-radius: 50%;
  animation: seat-map-loading-spin 0.8s linear infinite;
}

.seat-map-loading-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.seat-map-loading-step {
  min-height: 1.2rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
}

.seat-map-loading-bar {
  width: 100%;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.seat-map-loading-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9024, #e51820, #84478f);
  transition: width 0.18s ease-out;
}

@keyframes seat-map-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

body.seat-map-modal-is-open {
  overflow: hidden;
}

.seat-reservation-panel {
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 8px;
  background: transparent;
  padding: 0.45rem 0;
}

.seat-map-compact-header {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(10rem, 1fr);
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.seat-map-title {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.seat-map-title strong {
  color: #262626;
  font-size: 0.98rem;
  line-height: 1.15;
}

.seat-map-title span {
  color: #6c757d;
  font-size: 0.78rem;
  line-height: 1.25;
}

.seat-map-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.seat-map-toolbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(28, 28, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.seat-map-toolbar .seat-map-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: #ffffff;
  background: #343a40;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.seat-map-toolbar .seat-map-toolbar-button:hover,
.seat-map-toolbar .seat-map-toolbar-button:focus-visible {
  color: #ffffff;
  background: #e52727;
  border-color: #e52727;
  box-shadow: none;
  outline: none;
  transform: translateY(-1px);
}

.seat-map-toolbar .seat-map-toolbar-button-danger {
  color: #ffdede;
  background: #3a3030;
  border-color: rgba(229, 39, 39, 0.42);
}

.seat-map-toolbar .seat-map-toolbar-button-danger:hover,
.seat-map-toolbar .seat-map-toolbar-button-danger:focus-visible {
  color: #ffffff;
  background: #cb1818;
  border-color: #cb1818;
}

.seat-map-controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 0.35rem;
}

.seat-map-controls-row .seat-ticket-filter-toolbar {
  position: relative;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.seat-ticket-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px;
  background: none !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.seat-ticket-filter-toggle:hover,
.seat-ticket-filter-toggle:focus-visible,
.seat-ticket-filter.show .seat-ticket-filter-toggle {
  border-color: #ffdf40;
  background: #3f464d;
  color: #ffffff;
  box-shadow: 0 0 0 0.12rem rgba(255, 223, 64, 0.2);
  outline: none;
}

.seat-ticket-filter-toolbar .seat-ticket-options.dropdown-menu {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 30rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.45rem;
  border: 1px solid rgba(255, 223, 64, 0.22);
  border-radius: 8px;
  background: #262626;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.seat-ticket-filter-toolbar .seat-ticket-options.dropdown-menu.show,
.seat-ticket-filter-toolbar.show .seat-ticket-options.dropdown-menu {
  display: grid;
}

.seat-ticket-filter-toolbar .seat-ticket-option {
  width: 100%;
  flex: 0 0 auto;
}

.seat-map-day-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(38, 38, 38, 0.86);
  color: #f5f5f5;
}

.seat-map-day-button {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.seat-map-day-button:disabled {
  opacity: 0.45;
}

.seat-map-day-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  min-width: 0;
  text-align: center;
}

.seat-map-day-current strong,
.seat-map-day-current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-map-all-days-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.selected-seat-variation-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.selected-seat-variation-item .ticket-title-wrapper {
  align-items: flex-start;
}

.selected-seat-variation-item.is-standing-selection .ticket-title-wrapper {
  align-items: center;
}

.selected-seat-variation-item.is-standing-selection .quantity-wrapper {
  margin: 0;
}

.selected-seat-variation-item.is-standing-selection .selected-seat-meta {
  font-size: 0.84rem;
}

.selected-seat-variation-item.is-standing-selection .availability-wrapper {
  margin-top: 0.5rem;
}

.seat-map-modal .selected-seat-variation-item.is-standing-selection {
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(17, 17, 19, 0.08);
}

.seat-map-modal .selected-seat-variation-item.is-standing-selection .ticket-title-wrapper {
  align-items: center;
  padding: 5px 20px 15px;
  flex-direction: column;
  gap: 10px;
}

.seat-map-modal
  .selected-seat-variation-item.is-standing-selection
  .quantity-wrapper {
  width: 100%;
  justify-content: center;
  border-left: 0;
  border-top: 5px dotted #151c26;
  padding: 15px 20px 5px;
}

.seat-map-modal .selected-seat-variation-item.is-standing-selection h4,
.seat-map-modal .selected-seat-variation-item.is-standing-selection .selected-seat-meta {
  text-align: center;
}

@media (max-width: 767.98px) {
  .selected-seat-variation-item.is-standing-selection {
    flex-direction: column;
  }

  .selected-seat-variation-item.is-standing-selection .ticket-title-wrapper {
    align-items: center;
    padding: 5px 20px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .selected-seat-variation-item.is-standing-selection .quantity-wrapper {
    width: 100%;
    justify-content: center;
    border-left: 0;
    border-top: 5px dotted #151c26;
    padding: 15px 20px 5px;
  }

  .selected-seat-variation-item.is-standing-selection h4,
  .selected-seat-variation-item.is-standing-selection .selected-seat-meta {
    text-align: center;
  }
}

.selected-seat-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.selected-seat-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  line-height: 1.35;
}

.selected-seat-meta-date {
  display: block;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
}

.selected-seat-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(38, 38, 38, 0.12);
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.05);
  color: #5b6571;
  font-size: 0.82rem;
  font-weight: 600;
}

.seat-map-modal .selected-seat-meta-pill {
  border-color: rgba(21, 28, 38, 0.12);
  background: rgba(21, 28, 38, 0.06);
}

.selected-seat-remove {
  border: 0;
  background: transparent;
  color: #cb1818;
  font-weight: 700;
}

.seat-map-summary {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(255, 223, 64, 0.28);
  border-radius: 0.5rem;
  background: #262626;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.seat-reservation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  background: #333;
}

.seat-map-feedback {
  margin: 0 0 0.45rem;
  padding: 0.38rem 0.55rem;
  font-size: 0.84rem;
}

.seat-map-summary:empty {
  display: none;
}

.seat-map-summary[data-tone="success"] {
  border-color: #ffdf40;
  background: #333;
  color: #ffdf40;
}

.seat-map-summary[data-tone="warning"] {
  border-color: #ffdf40;
  background: #333;
  color: #ffdf40;
}

.seat-map-summary[data-tone="info"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: #333;
  color: #ffffff;
}

.seat-map-summary[data-tone="error"] {
  border-color: #e52727;
  background: #333;
  color: #ffffff;
}

.seat-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 2px solid #262626;
  border-radius: 8px;
  overflow: hidden;
  background: #262626;
}

.seat-map-stage canvas[data-seat-map-canvas] {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.seat-editor-canvas-stage canvas[data-detail-level],
.seat-map-stage canvas[data-detail-level] {
  image-rendering: auto;
}

.seat-map-stage canvas[data-seat-map-canvas].is-dragging {
  cursor: grabbing;
}

.seat-map-block {
  border: 1px solid #d9e1f0;
  border-radius: 0.75rem;
  padding: 1rem;
}

.seat-map-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.seat-map-seat {
  cursor: pointer;
}

.seat-map-seat[data-status="available"] {
  background: #eef8ef;
  border-color: #9fd3a7;
}

.seat-map-seat[data-status="reserved"] {
  background: #fff8e6;
  border-color: #f1c96f;
}

.seat-map-seat[data-status="reserved"][data-current-hold="true"] {
  background: #eaf2ff;
  border-color: #7aa7e8;
}

.seat-map-seat[data-status="sold"] {
  background: #f8eaea;
  border-color: #d59191;
  cursor: not-allowed;
}

.seat-map-seat.is-unavailable,
.seat-map-seat.is-ticket-incompatible {
  opacity: 0.58;
  cursor: not-allowed;
}

.seat-map-seat.is-ticket-incompatible:not(.is-unavailable) {
  background: #f1f1f1;
  border-color: #b8bec7;
  color: #657080;
}

.seat-map-seat.is-selected {
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.18);
  border-color: #1f6feb;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.45rem;
  color: #f5f5f5;
  font-size: 0.76rem;
  white-space: nowrap;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot-available {
  background: #ffdf40;
}

.legend-dot-reserved {
  background: #ff6b6b;
}

.legend-dot-sold {
  background: #4d4d4d;
}

.legend-dot-current-hold {
  background: #e52727;
}

.legend-dot-incompatible {
  background: #ebebeb;
}

@media (max-width: 575.98px) {
  .seat-ticket-filter-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .seat-ticket-filter-header span {
    text-align: left;
  }

  .seat-ticket-options {
    display: flex;
  }
}

@media (max-width: 767.98px) {
  .seat-map-modal-header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .seat-map-modal-title {
    flex: 1 1 auto;
  }

  .seat-map-modal-header-controls {
    order: 3;
    flex: 0 0 100%;
  }

  .seat-map-modal .seat-map-controls-row {
    width: 100%;
  }

  .seat-map-modal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .seat-map-modal-map {
    padding: 0.65rem;
  }

  .seat-map-modal-sidebar {
    max-height: 42dvh;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem;
  }
}

@media (max-width: 991.98px) {
  .seat-map-compact-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-reservation-legend {
    justify-content: flex-start;
  }

  .seat-map-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .seat-template-form-card .card-body {
    padding: 1rem;
  }

  .seat-template-stage,
  .seat-template-section {
    padding: 1rem;
  }

  .seat-template-field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-template-assignment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .seat-template-section-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .seat-template-actions,
  .seat-template-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .seat-template-actions .btn,
  .seat-template-header-actions .btn {
    width: 100%;
  }
}

/* ── seat-map legend ── */
.seat-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
  justify-content: center;
}

.seat-map-legend-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.seat-map-legend-items {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.seat-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.seat-map-legend-swatch {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
}

.seat-map-legend-swatch--available {
  background: linear-gradient(135deg, #e52727 0%, #ff8c42 35%, #3b82f6 65%, #10b981 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.seat-map-legend-swatch--sold {
  background: #4d4d4d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.seat-map-legend-swatch--blocked {
  background: #ebebeb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ── seat-map zoom hint ── */
.seat-map-zoom-hint {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: rgba(38, 38, 38, 0.92);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.seat-map-zoom-hint:hover {
  background: rgba(50, 50, 50, 0.95);
}

.seat-map-zoom-hint-icon {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
}
