    :root {
      --primary: #0D3B2E;
      --primary-dark: #07231B;
      --primary-light: #155543;
      --primary-surface: rgba(13, 59, 46, 0.05);
      --accent-gold: #C9963E;
      --accent-gold-hover: #b3822e;
      --accent-gold-light: #fbf5ea;
      --accent-gold-border: rgba(201, 150, 62, 0.35);
      --bg-page: #F6F7F5;
      --bg-card: #FFFFFF;
      --text-heading: #0D2B22;
      --text-body: #475569;
      --text-muted: #94A3B8;
      --border-subtle: rgba(13, 59, 46, 0.09);
      --border-medium: rgba(13, 59, 46, 0.16);
      --status-live: #1E8E5A;
      --status-warning: #D97706;
      --status-danger: #DC2626;
      --radius-card: 16px;
      --radius-btn: 10px;
      --radius-pill: 999px;
      --shadow-card: 0 4px 20px -4px rgba(13, 59, 46, 0.05), 0 1px 3px rgba(13, 59, 46, 0.03);
      --shadow-float: 0 16px 36px -8px rgba(13, 59, 46, 0.14), 0 4px 12px rgba(13, 59, 46, 0.04);
      --font-brand: 'Cinzel', serif;
      --font-display: 'Plus Jakarta Sans', sans-serif;
      --font-body: 'Inter', sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      min-height: 100dvh;
      background-color: var(--bg-page);
      color: var(--text-body);
      font-family: var(--font-body);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    button, input, select { font: inherit; }
    button { cursor: pointer; border: 0; outline: none; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 40;
      min-height: 72px;
      padding: 0 clamp(16px, 3.5vw, 40px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
      color: #fff;
      border-bottom: 1.5px solid var(--accent-gold-border);
      box-shadow: 0 4px 24px rgba(7, 35, 27, 0.25);
    }

    .brand-section {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: inherit;
    }

    .brand-emblem {
      width: 44px;
      height: 44px;
      border: 1.5px solid var(--accent-gold);
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(201, 150, 62, 0.12);
      color: var(--accent-gold);
      font-size: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
      flex-shrink: 0;
    }

    .brand-titles h1 {
      font-family: var(--font-display);
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: #FFFFFF;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-badge {
      font-family: var(--font-brand);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(201, 150, 62, 0.2);
      border: 1px solid var(--accent-gold);
      color: var(--accent-gold);
    }

    .brand-titles p {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.65);
      margin-top: 2px;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      height: 38px;
      padding: 0 14px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: rgba(255, 255, 255, 0.9);
      transition: all 0.25s ease;
      box-sizing: border-box;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--status-warning);
    }

    .status.online .status-dot {
      background: var(--status-live);
      box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.25);
      animation: statusPulse 2s infinite;
    }

    .status.offline .status-dot {
      background: var(--status-danger);
    }

    @keyframes statusPulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(1.25); }
    }

    .btn[hidden] {
      display: none !important;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 10px 20px;
      border-radius: var(--radius-btn);
      font-family: var(--font-display);
      font-size: 13.5px;
      font-weight: 700;
      white-space: nowrap;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      user-select: none;
      cursor: pointer;
      border: 1px solid transparent;
      outline: none;
      transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn:hover:not(:disabled) {
      transform: translateY(-2px);
    }

    .btn:active:not(:disabled) {
      transform: translateY(1px) scale(0.985);
    }

    .btn:focus-visible {
      box-shadow: 0 0 0 3.5px rgba(13, 59, 46, 0.2);
    }

    .btn:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      transform: none !important;
      box-shadow: none !important;
    }

    .btn-header-back {
      height: 38px;
      min-height: 38px;
      padding: 0 16px;
      background: rgba(255, 255, 255, 0.12);
      color: #FFFFFF;
      border: 1px solid rgba(255, 255, 255, 0.22);
      backdrop-filter: blur(8px);
      border-radius: 9px;
      box-sizing: border-box;
    }

    .btn-header-back:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.22);
      border-color: rgba(255, 255, 255, 0.4);
      color: #FFFFFF;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    .btn-cta-gold {
      height: 38px;
      min-height: 38px;
      padding: 0 18px;
      border-radius: 9px;
      box-sizing: border-box;
      background: linear-gradient(135deg, #F3D280 0%, #D9A94B 50%, #B8852F 100%);
      color: #07231B;
      border: 1px solid #fae4a6;
      box-shadow: 0 4px 16px rgba(201, 150, 62, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
      font-weight: 800;
      text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    }

    .btn-cta-gold:hover:not(:disabled) {
      background: linear-gradient(135deg, #fae08f 0%, #ebc36c 50%, #d8a245 100%);
      box-shadow: 0 8px 24px rgba(201, 150, 62, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
      color: #07231B;
    }

    .btn-cta-gold:focus-visible {
      box-shadow: 0 0 0 3.5px rgba(201, 150, 62, 0.45);
    }

    .btn-primary {
      background: linear-gradient(135deg, #155543 0%, #0D3B2E 100%);
      color: #FFFFFF;
      border: 1px solid #1E7A60;
      box-shadow: 0 4px 14px rgba(13, 59, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .btn-primary:hover:not(:disabled) {
      background: linear-gradient(135deg, #1A6953 0%, #104939 100%);
      border-color: #249172;
      box-shadow: 0 6px 20px rgba(13, 59, 46, 0.32);
      color: #FFFFFF;
    }

    .btn-soft {
      background: #FFFFFF;
      color: var(--primary);
      border: 1px solid var(--border-medium);
      box-shadow: 0 2px 6px rgba(13, 59, 46, 0.04);
    }

    .btn-soft:hover:not(:disabled) {
      background: #F4F7F5;
      border-color: var(--primary);
      color: #07231B;
      box-shadow: 0 4px 14px rgba(13, 59, 46, 0.1);
    }

    .btn-gold-action {
      background: linear-gradient(135deg, #FBF4E6 0%, #F5E8CC 100%);
      color: #8C6016;
      border: 1px solid rgba(201, 150, 62, 0.45);
      box-shadow: 0 2px 8px rgba(201, 150, 62, 0.12);
    }

    .btn-gold-action:hover:not(:disabled) {
      background: linear-gradient(135deg, #F8EDD7 0%, #EEDDB8 100%);
      border-color: #C9963E;
      color: #6D4708;
      box-shadow: 0 6px 18px rgba(201, 150, 62, 0.25);
    }

    .btn-danger {
      background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
      color: #DC2626;
      border: 1px solid rgba(220, 38, 38, 0.28);
      box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    }

    .btn-danger:hover:not(:disabled) {
      background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
      color: #FFFFFF;
      border-color: #B91C1C;
      box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
    }

    .btn-danger:focus-visible {
      box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.35);
    }

    .btn-sm {
      min-height: 32px;
      padding: 5px 12px;
      font-size: 12px;
      border-radius: 8px;
    }

    .shell {
      width: min(1520px, 100%);
      margin: 0 auto;
      padding: 24px clamp(14px, 3vw, 36px) 50px;
    }

    .event-selector-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      padding: 16px 22px;
      margin-bottom: 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .event-selector-top {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .event-select-label {
      font-size: 11.5px;
      font-weight: 800;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .event-select-label i {
      color: var(--accent-gold);
      font-size: 13px;
    }

    .event-selector-row {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
    }

    .event-select-box-wrap {
      flex: 1;
      min-width: 240px;
    }

    .control {
      width: 100%;
      height: 42px;
      min-height: 42px;
      border: 1px solid var(--border-medium);
      border-radius: 10px;
      background: #FFFFFF;
      color: var(--text-heading);
      padding: 0 13px;
      font-size: 13.5px;
      font-weight: 500;
      transition: all 0.2s ease;
      outline: none;
      box-sizing: border-box;
      display: flex;
      align-items: center;
    }

    .control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3.5px rgba(13, 59, 46, 0.1);
    }

    .event-dropdown {
      font-weight: 700;
      color: var(--text-heading);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230D3B2E' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 16px;
      padding-right: 38px;
      appearance: none;
      -webkit-appearance: none;
      height: 42px;
      line-height: 40px;
    }

    .selector-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .selector-actions .btn {
      height: 42px;
      min-height: 42px;
      padding: 0 18px;
      box-sizing: border-box;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-float);
    }

    .stat-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--primary);
      border-radius: 4px 0 0 4px;
    }

    .stat-card.highlight::before {
      background: var(--accent-gold);
    }

    .stat-icon-wrap {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      font-size: 20px;
      flex-shrink: 0;
      background: var(--primary-surface);
      color: var(--primary);
      border: 1px solid var(--border-subtle);
    }

    .stat-card.highlight .stat-icon-wrap {
      background: var(--accent-gold-light);
      color: var(--accent-gold);
      border-color: var(--accent-gold-border);
    }

    .stat-info {
      flex: 1;
      min-width: 0;
    }

    .stat-value {
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 800;
      color: var(--text-heading);
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    .stat-card.highlight .stat-value {
      color: #a46f1c;
    }

    .stat-label {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .main-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
      gap: 22px;
      align-items: start;
    }

    .panel-stack {
      display: grid;
      gap: 22px;
    }

    .card-panel {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
      overflow: hidden;
    }

    .panel-header {
      padding: 18px 22px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: #FFFFFF;
      flex-wrap: wrap;
    }

    .panel-header h2 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .panel-header h2 i {
      color: var(--primary);
      font-size: 16px;
    }

    .panel-header p {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .panel-header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .search-input-wrap {
      position: relative;
      width: 250px;
      max-width: 100%;
    }

    .search-input-wrap .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 13px;
      color: var(--text-muted);
      pointer-events: none;
    }

    .search-control {
      height: 36px;
      min-height: 36px;
      padding: 0 12px 0 34px !important;
      font-size: 12.5px;
      border-radius: 8px;
      background: #F8FAF9;
      border: 1px solid var(--border-medium);
      transition: all 0.2s ease;
      box-sizing: border-box;
    }

    .search-control:focus {
      background: #FFFFFF;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.12);
    }

    .search-control::placeholder {
      color: #94A3B8;
    }

    .panel-body {
      padding: 22px;
    }

    .group-section {
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px dashed var(--border-subtle);
    }

    .group-section:last-of-type {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .group-title {
      font-family: var(--font-display);
      font-size: 12.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--primary);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .group-title i {
      font-size: 12px;
      color: var(--accent-gold);
    }

    .switch-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 12px;
    }

    .switch-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--border-medium);
      border-radius: 12px;
      background: var(--bg-card);
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
    }

    .switch-card:hover {
      border-color: var(--primary);
      background: var(--primary-surface);
    }

    .switch-meta strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-heading);
    }

    .switch-meta span {
      display: block;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
      line-height: 1.35;
    }

    .switch-pill {
      position: relative;
      width: 42px;
      height: 24px;
      flex-shrink: 0;
    }

    .switch-pill input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }

    .switch-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background-color: #CBD5E1;
      transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: var(--radius-pill);
    }

    .switch-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .switch-pill input:checked + .switch-slider {
      background-color: var(--status-live);
    }

    .switch-pill input:focus-visible + .switch-slider {
      box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.25);
    }

    .switch-pill input:checked + .switch-slider:before {
      transform: translateX(18px);
    }

    .form-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .form-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .field {
      display: grid;
      gap: 6px;
    }

    .field label {
      font-size: 12.5px;
      font-weight: 700;
      color: #334155;
    }

    .config-actions-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid var(--border-subtle);
    }

    .notice-banner {
      padding: 13px 16px;
      border-radius: 12px;
      background: var(--accent-gold-light);
      border: 1px solid var(--accent-gold-border);
      color: #8c6016;
      font-size: 12.5px;
      font-weight: 600;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 16px;
      line-height: 1.45;
    }

    .notice-banner i {
      font-size: 15px;
      color: var(--accent-gold);
      margin-top: 2px;
      flex-shrink: 0;
    }

    .table-container {
      overflow-x: auto;
      max-height: 520px;
      -webkit-overflow-scrolling: touch;
    }

    .modern-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      min-width: 660px;
      font-size: 12.5px;
    }

    .modern-table th {
      position: sticky;
      top: 0;
      z-index: 5;
      background: #F1F5F3;
      color: var(--primary-dark);
      font-family: var(--font-display);
      font-size: 11.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 12px 14px;
      border-bottom: 1.5px solid var(--border-medium);
      text-align: left;
    }

    .modern-table td {
      padding: 11px 14px;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-heading);
      vertical-align: middle;
      background: #FFFFFF;
      transition: background 0.15s ease;
    }

    .modern-table tbody tr:hover td {
      background: #F8FAF9;
    }

    .modern-table tbody tr:nth-child(even) td {
      background: #FAFCFA;
    }

    .modern-table tbody tr:nth-child(even):hover td {
      background: #F2F7F4;
    }

    .code-input {
      font-family: ui-monospace, monospace;
      font-size: 12.5px;
      font-weight: 800;
      color: var(--primary);
      min-height: 36px;
      padding: 6px 10px;
    }

    .guest-name-text {
      font-weight: 700;
      color: var(--text-heading);
    }

    .status-pill-small {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .status-pill-small.checked-in {
      background: #ECFDF5;
      color: #047857;
      border: 1px solid #A7F3D0;
    }

    .status-pill-small.not-checked {
      background: #F1F5F9;
      color: #64748B;
      border: 1px solid #E2E8F0;
    }

    .table-switch {
      display: inline-flex;
      cursor: pointer;
    }

    .table-switch input {
      opacity: 0;
      width: 0;
      height: 0;
      position: absolute;
    }

    .table-slider {
      position: relative;
      display: inline-block;
      width: 34px;
      height: 18px;
      background-color: #CBD5E1;
      border-radius: var(--radius-pill);
      transition: 0.2s;
    }

    .table-slider:before {
      position: absolute;
      content: "";
      height: 14px;
      width: 14px;
      left: 2px;
      bottom: 2px;
      background-color: white;
      border-radius: 50%;
      transition: 0.2s;
    }

    .table-switch input:checked + .table-slider {
      background-color: var(--status-live);
    }

    .table-switch input:checked + .table-slider:before {
      transform: translateX(16px);
    }

    .badge-counter {
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      background: var(--primary-surface);
      color: var(--primary);
      font-family: var(--font-display);
      font-size: 11.5px;
      font-weight: 800;
      border: 1px solid var(--border-subtle);
    }

    .prize-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .span-full {
      grid-column: 1 / -1;
    }

    .prizes-card-stream {
      display: grid;
      gap: 10px;
      margin-top: 18px;
    }

    .prize-card {
      display: grid;
      grid-template-columns: 52px 1fr auto;
      gap: 14px;
      align-items: center;
      padding: 12px 14px;
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      background: #FFFFFF;
      transition: all 0.2s ease;
    }

    .prize-card:hover {
      border-color: var(--accent-gold-border);
      box-shadow: 0 4px 12px rgba(13, 59, 46, 0.06);
      transform: translateX(2px);
    }

    .prize-media-box {
      width: 52px;
      height: 52px;
      border-radius: 10px;
      overflow: hidden;
      background: var(--primary-surface);
      border: 1px solid var(--border-subtle);
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }

    .prize-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 7px;
    }

    .prize-thumb-fallback {
      font-size: 20px;
      color: var(--accent-gold);
    }

    .prize-details h3 {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 800;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .prize-order-tag {
      font-size: 10.5px;
      font-weight: 800;
      color: var(--primary);
      background: var(--primary-surface);
      padding: 1px 6px;
      border-radius: 4px;
    }

    .prize-meta-line {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 3px;
      flex-wrap: wrap;
    }

    .prize-gift-tag {
      color: #936316;
      font-weight: 600;
    }

    .prize-action-btns {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .icon-action-btn {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      font-size: 12px;
      transition: all 0.18s ease;
    }

    .icon-action-btn.edit {
      background: #F1F5F9;
      color: #334155;
      border: 1px solid #CBD5E1;
    }

    .icon-action-btn.edit:hover {
      background: #E2E8F0;
      color: #0F172A;
    }

    .icon-action-btn.del {
      background: #FEF2F2;
      color: var(--status-danger);
      border: 1px solid #FECACA;
    }

    .icon-action-btn.del:hover {
      background: #FEE2E2;
    }

    .winners-card-stream {
      display: grid;
      gap: 10px;
    }

    .winner-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      background: #FFFFFF;
      transition: all 0.2s ease;
    }

    .winner-card:hover {
      border-color: var(--accent-gold-border);
      box-shadow: 0 3px 10px rgba(13, 59, 46, 0.05);
    }

    .winner-trophy-badge {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: var(--accent-gold-light);
      border: 1px solid var(--accent-gold-border);
      color: var(--accent-gold);
      display: grid;
      place-items: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .winner-meta {
      flex: 1;
      min-width: 0;
    }

    .winner-headline {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13.5px;
    }

    .winner-guest-name {
      font-weight: 800;
      color: var(--text-heading);
    }

    .winner-ticket-pill {
      font-family: ui-monospace, monospace;
      font-size: 11px;
      font-weight: 800;
      color: var(--primary);
      background: var(--primary-surface);
      padding: 1px 7px;
      border-radius: 6px;
    }

    .winner-award-line {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .winner-award-name {
      color: #936316;
      font-weight: 700;
    }

    .empty-state-box {
      padding: 44px 20px;
      text-align: center;
      color: var(--text-muted);
    }

    .empty-state-icon {
      font-size: 38px;
      color: #CBD5E1;
      margin-bottom: 12px;
      display: inline-block;
    }

    .empty-state-text {
      font-size: 13.5px;
      font-weight: 600;
    }

    .empty-hero-panel {
      padding: 64px 24px;
      text-align: center;
      background: #FFFFFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-card);
      box-shadow: var(--shadow-card);
    }

    .empty-hero-icon {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: var(--primary-surface);
      border: 1.5px solid var(--border-medium);
      color: var(--primary);
      display: grid;
      place-items: center;
      font-size: 30px;
      margin: 0 auto 16px;
    }

    .empty-hero-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
      color: var(--text-heading);
      margin-bottom: 6px;
    }

    .empty-hero-desc {
      font-size: 13.5px;
      color: var(--text-muted);
      max-width: 420px;
      margin: 0 auto;
    }

    .modal-backdrop, .preview-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(7, 35, 27, 0.72);
      backdrop-filter: blur(5px);
      animation: modalFadeIn 0.2s ease-out;
    }

    .modal-backdrop[hidden], .preview-modal[hidden] {
      display: none;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-dialog {
      background: #FFFFFF;
      border: 1.5px solid var(--accent-gold-border);
      border-radius: var(--radius-card);
      box-shadow: 0 25px 70px rgba(7, 35, 27, 0.35);
      animation: dialogPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
    }

    @keyframes dialogPop {
      from { transform: scale(0.94) translateY(10px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .confirm-dialog {
      width: min(480px, 100%);
      padding: 24px;
    }

    .confirm-head {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .confirm-icon-wrap {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-size: 22px;
      flex-shrink: 0;
      background: #FEF2F2;
      color: #DC2626;
      border: 1px solid #FECACA;
    }

    .confirm-icon-wrap.warning {
      background: #FFFBEB;
      color: #D97706;
      border-color: #FDE68A;
    }

    .confirm-icon-wrap.primary {
      background: var(--primary-surface);
      color: var(--primary);
      border-color: var(--border-medium);
    }

    .confirm-head-text h3 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      color: var(--text-heading);
      margin-bottom: 6px;
    }

    .confirm-head-text p {
      font-size: 13.5px;
      color: var(--text-body);
      line-height: 1.5;
    }

    .confirm-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid var(--border-subtle);
    }

    .edit-prize-dialog {
      width: min(580px, 100%);
      max-height: min(88dvh, 760px);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
    }

    .modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 22px;
      border-bottom: 1px solid var(--border-subtle);
      background: #FFFFFF;
    }

    .modal-head h2 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-head p {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .modal-body {
      padding: 22px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid var(--border-subtle);
    }

    .preview-dialog {
      width: min(640px, 100%);
      max-height: min(84dvh, 780px);
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr) auto;
      overflow: hidden;
      border: 1.5px solid var(--accent-gold-border);
      border-radius: var(--radius-card);
      background: #FFFFFF;
      box-shadow: 0 25px 70px rgba(7, 35, 27, 0.35);
    }

    .preview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 22px;
      border-bottom: 1px solid var(--border-subtle);
      background: #FFFFFF;
    }

    .preview-head h2 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      color: var(--text-heading);
    }

    .preview-head p {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .preview-close {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border-medium);
      border-radius: 10px;
      background: #F1F5F9;
      color: #334155;
      display: grid;
      place-items: center;
      transition: all 0.18s ease;
    }

    .preview-close:hover {
      background: #E2E8F0;
      color: #0F172A;
    }

    .preview-summary-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 10px 22px;
      background: #F1F5F3;
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 700;
      border-bottom: 1px solid var(--border-subtle);
    }

    .preview-list {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .preview-code-tag {
      font-family: ui-monospace, monospace;
      font-size: 13.5px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: 0.04em;
    }

    .preview-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 14px 22px;
      border-top: 1px solid var(--border-subtle);
      background: #FFFFFF;
    }

    .toast {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 999;
      min-width: 320px;
      max-width: 460px;
      padding: 14px 20px;
      border-radius: 14px;
      background: linear-gradient(135deg, #07231B 0%, #0D3B2E 100%);
      color: #FFFFFF;
      font-size: 13.5px;
      font-weight: 600;
      border: 1.5px solid var(--accent-gold);
      box-shadow:
        0 18px 45px rgba(7, 35, 27, 0.35),
        0 0 24px rgba(201, 150, 62, 0.22);
      display: none;
      align-items: center;
      gap: 12px;
      line-height: 1.45;
      animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .toast i {
      font-size: 18px;
      color: #F5D77F;
      flex-shrink: 0;
    }

    .toast span {
      flex: 1;
    }

    .toast.error {
      background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
      border-color: #FCA5A5;
      box-shadow: 0 18px 45px rgba(127, 29, 29, 0.4);
    }

    .toast.error i {
      color: #FECACA;
    }

    .toast.warning {
      background: linear-gradient(135deg, #78350F 0%, #92400E 100%);
      border-color: #FCD34D;
      box-shadow: 0 18px 45px rgba(120, 53, 15, 0.35);
    }

    .toast.warning i {
      color: #FEF08A;
    }

    @keyframes toastSlideIn {
      from { transform: translateY(20px) scale(0.95); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }

    .loading {
      opacity: 0.55;
      pointer-events: none;
    }

    @media (max-width: 1050px) {
      .main-grid {
        grid-template-columns: 1fr;
      }
      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 768px) {
      .topbar {
        padding: 12px 16px;
        min-height: 64px;
      }
      .brand-titles p {
        display: none;
      }
      .shell {
        padding: 16px 12px 60px;
      }
      .event-selector-card {
        padding: 14px 16px;
      }
      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .stat-card {
        padding: 14px;
        gap: 12px;
      }
      .stat-value {
        font-size: 22px;
      }
      .stat-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }
      .panel-body {
        padding: 16px;
      }
      .form-grid-3, .form-grid-2, .prize-form-grid {
        grid-template-columns: 1fr;
      }
      .switch-grid {
        grid-template-columns: 1fr;
      }
      .btn-header-back .btn-label {
        display: none;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

.csp-inline-1{width: 140px;}
.csp-inline-2{width: 120px;}
.csp-inline-3{width: 80px; text-align: center;}
.csp-inline-4{width: 80px; text-align: right;}
.csp-inline-5{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px;}
.csp-inline-6{margin-top: 16px; padding-top: 14px;}
.csp-inline-7{max-height: 360px; overflow: auto;}
.csp-inline-8{min-width: 100%;}
.text-center{text-align: center;}
.text-right{text-align: right;}
.winner-actions{display:flex;gap:6px;align-items:center;margin-left:auto;}
.td-preview-idx{text-align: center; font-weight: 700; color: var(--text-muted);}
