    :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.38);
      --bg-page: #F4F6F4;
      --bg-card: #FFFFFF;
      --text-heading: #0D2B22;
      --text-body: #334155;
      --text-muted: #64748B;
      --border-subtle: rgba(13, 59, 46, 0.09);
      --border-medium: rgba(13, 59, 46, 0.16);
      --status-live: #10B981;
      --status-warning: #F59E0B;
      --status-danger: #EF4444;
      --radius-card: 18px;
      --radius-btn: 12px;
      --radius-input: 12px;
      --radius-pill: 999px;
      --shadow-card: 0 4px 20px -2px rgba(13, 59, 46, 0.07), 0 2px 6px -1px rgba(13, 59, 46, 0.04);
      --shadow-hover: 0 12px 30px -4px rgba(13, 59, 46, 0.14), 0 4px 12px -2px rgba(13, 59, 46, 0.06);
      --font-brand: 'Cinzel', serif;
      --font-display: 'Plus Jakarta Sans', sans-serif;
      --font-body: 'Inter', sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 100%;
      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;
    }

    body {
      display: flex;
      flex-direction: column;
    }

    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; border: 0; outline: none; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      min-height: 68px;
      padding: 10px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      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.28);
    }

    .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.15);
      color: var(--accent-gold);
      font-size: 20px;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(201, 150, 62, 0.2);
    }

    .brand-titles h1 {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: var(--accent-gold);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-titles p {
      font-size: 12px;
      color: #34d399;
      font-weight: 600;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .topbar-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: var(--radius-btn);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      color: #FFFFFF;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.18);
      backdrop-filter: blur(8px);
      transition: all 0.2s ease;
    }

    .topbar-btn:hover {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.35);
      transform: translateY(-1px);
    }

    .topbar-btn.primary {
      background: linear-gradient(135deg, var(--accent-gold) 0%, #a87928 100%);
      color: #FFFFFF;
      border-color: rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 12px rgba(201, 150, 62, 0.3);
    }

    .topbar-btn.primary:hover {
      background: linear-gradient(135deg, #d6a44b 0%, var(--accent-gold) 100%);
      box-shadow: 0 6px 16px rgba(201, 150, 62, 0.4);
    }

    .realtime-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      background: rgba(16, 185, 129, 0.16);
      border: 1px solid rgba(16, 185, 129, 0.35);
      color: #6EE7B7;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .realtime-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background-color: var(--status-live);
      box-shadow: 0 0 8px var(--status-live);
      animation: pulseDot 2s infinite;
    }

    @keyframes pulseDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }

    .main-container {
      max-width: 1440px;
      width: 100%;
      margin: 0 auto;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      flex: 1;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }

    .stat-card {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1px solid var(--border-subtle);
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: var(--shadow-card);
      transition: all 0.25s ease;
    }

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

    .stat-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-size: 20px;
      flex-shrink: 0;
    }

    .stat-icon.total { background: rgba(13, 59, 46, 0.08); color: var(--primary); }
    .stat-icon.upcoming { background: rgba(16, 185, 129, 0.12); color: #059669; }
    .stat-icon.ended { background: rgba(100, 116, 139, 0.12); color: #475569; }
    .stat-icon.devices { background: rgba(201, 150, 62, 0.14); color: var(--accent-gold); }

    .stat-info h3 {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-heading);
      line-height: 1.1;
      font-family: var(--font-display);
    }

    .stat-info p {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 3px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 410px 1fr;
      gap: 24px;
      align-items: start;
    }

    @media (max-width: 1080px) {
      .content-grid {
        grid-template-columns: 1fr;
      }
    }

    .sidebar-panel {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .panel-card {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-card);
      padding: 24px;
      transition: all 0.2s ease;
    }

    .panel-card:hover {
      border-color: var(--border-medium);
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .panel-title {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 800;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 10px;
    }

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

    .form-group {
      margin-bottom: 16px;
    }

    .form-group:last-child {
      margin-bottom: 0;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-heading);
      margin-bottom: 6px;
    }

    .form-label .required {
      color: var(--status-danger);
      margin-left: 2px;
    }

    .form-control {
      width: 100%;
      padding: 10px 14px;
      border-radius: var(--radius-input);
      border: 1px solid #CBD5E1;
      background: #F8FAFC;
      color: var(--text-heading);
      font-size: 14px;
      transition: all 0.2s ease;
      outline: none;
    }

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

    textarea.form-control {
      resize: vertical;
      min-height: 100px;
      line-height: 1.5;
    }

    .form-hint {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .form-hint i {
      color: var(--accent-gold);
    }

    .btn-submit {
      width: 100%;
      padding: 12px 20px;
      border-radius: var(--radius-btn);
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: #FFFFFF;
      font-weight: 700;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(13, 59, 46, 0.25);
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, var(--primary-light) 0%, #1c6e57 100%);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(13, 59, 46, 0.32);
    }

    .btn-cancel-edit {
      width: 100%;
      padding: 9px 16px;
      border-radius: var(--radius-btn);
      background: #F1F5F9;
      color: #475569;
      font-weight: 700;
      font-size: 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 8px;
      border: 1px solid #E2E8F0;
    }

    .btn-cancel-edit:hover {
      background: #E2E8F0;
      color: #1E293B;
    }

    .datetime-picker-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }

    .datetime-preview-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      background: rgba(13, 59, 46, 0.08);
      color: var(--primary);
      font-size: 11.5px;
      font-weight: 700;
      border: 1px solid rgba(13, 59, 46, 0.15);
    }

    .datetime-input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .datetime-input-icon {
      position: absolute;
      left: 14px;
      color: var(--accent-gold);
      font-size: 15px;
      pointer-events: none;
      z-index: 2;
    }

    .datetime-picker-input {
      padding-left: 42px !important;
      font-weight: 700 !important;
      color: var(--text-heading) !important;
      cursor: pointer !important;
      background: #FDFBF7 !important;
      border: 1.5px solid #CBD5E1 !important;
    }

    .datetime-picker-input:focus {
      background: #FFFFFF !important;
      border-color: var(--primary) !important;
      box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.1) !important;
    }

    .datetime-presets {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .preset-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 8px;
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
      color: #475569;
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .preset-chip:hover {
      background: rgba(13, 59, 46, 0.1);
      border-color: var(--primary);
      color: var(--primary);
      transform: translateY(-1px);
    }

    .preset-chip i {
      font-size: 10.5px;
      color: var(--accent-gold);
    }

    .flatpickr-calendar {
      font-family: inherit !important;
      border-radius: 14px !important;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16) !important;
      border: 1.5px solid var(--border-subtle) !important;
    }

    .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
      background: var(--primary) !important;
      border-color: var(--primary) !important;
    }

    .flatpickr-day:hover {
      background: rgba(13, 59, 46, 0.1) !important;
    }

    .device-item {
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: all 0.2s ease;
    }

    .device-item:hover {
      border-color: var(--accent-gold-border);
      background: #FFFFFF;
      box-shadow: 0 4px 12px rgba(13, 59, 46, 0.05);
    }

    .device-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }

    .device-name-wrap {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }

    .device-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(201, 150, 62, 0.12);
      color: var(--accent-gold);
      display: grid;
      place-items: center;
      font-size: 14px;
      flex-shrink: 0;
      margin-top: 1px;
    }

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

    .device-name {
      font-weight: 700;
      font-size: 13.5px;
      color: var(--text-heading);
      line-height: 1.3;
      word-break: break-word;
    }

    .device-endpoint {
      font-size: 11px;
      color: var(--text-muted);
      font-family: monospace;
      font-weight: 600;
      margin-top: 1px;
    }

    .device-note-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 4px;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(13, 59, 46, 0.08);
      color: #0D3B2E;
      font-size: 10.5px;
      font-weight: 700;
      line-height: 1.2;
      border: 1px solid rgba(13, 59, 46, 0.12);
    }

    .device-health {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 10px;
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      border-left: 3px solid #CBD5E1;
    }

    .device-health.is-online { border-left-color: var(--status-live); }
    .device-health.is-recovering { border-left-color: var(--status-warning); }
    .device-health.is-offline { border-left-color: var(--status-danger); background: #FEF2F2; border-color: #FECACA; }

    .device-health-row,
    .device-health-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .device-health-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.5;
      background: #F1F5F9;
      color: #475569;
    }

    .device-health-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      flex-shrink: 0;
    }

    .device-health-badge.is-online { background: #ECFDF5; color: #047857; }
    .device-health-badge.is-online .device-health-dot { animation: deviceHealthPulse 1.8s ease-in-out infinite; }
    .device-health-badge.is-recovering { background: #FFFBEB; color: #B45309; }
    .device-health-badge.is-recovering .device-health-dot { animation: deviceHealthPulse 1s ease-in-out infinite; }
    .device-health-badge.is-offline { background: #FEE2E2; color: #B91C1C; }
    .device-health-badge.is-inactive,
    .device-health-badge.is-unknown { background: #F1F5F9; color: #64748B; }

    @keyframes deviceHealthPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.35; }
    }

    .device-health-seen {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 600;
    }

    .device-health-recovery {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.4;
    }

    .device-health-recovery i { margin-top: 2px; }
    .device-health-recovery.is-ok { color: #047857; }
    .device-health-recovery.is-error { color: #B91C1C; }

    .device-health-error {
      font-size: 10.5px;
      color: #7F1D1D;
      font-family: monospace;
      word-break: break-word;
      padding-left: 17px;
    }

    .device-health-version {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--text-body);
      font-weight: 700;
    }

    .device-health-version i { color: var(--accent-gold); }

    .device-health-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-body);
      cursor: pointer;
      user-select: none;
    }

    .device-health-toggle input {
      width: 14px;
      height: 14px;
      accent-color: var(--primary);
      cursor: pointer;
    }

    .device-health-toggle input:disabled { cursor: progress; }

    .device-btn-edit {
      padding: 4px 8px;
      border-radius: 6px;
      background: #F1F5F9;
      color: #475569;
      border: 1px solid #E2E8F0;
      font-size: 11px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }

    .device-btn-edit:hover {
      background: #E2E8F0;
      color: #0F172A;
      border-color: #CBD5E1;
      transform: translateY(-1px);
    }

    .device-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }

    .device-btn {
      padding: 7px 8px;
      border-radius: 8px;
      font-size: 11.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      border: 1px solid transparent;
      transition: all 0.15s ease;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
    }

    .device-btn.launch {
      background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
      color: #FFFFFF;
      box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    }

    .device-btn.launch:hover {
      background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
      transform: translateY(-1px);
    }

    .device-btn.live {
      background: linear-gradient(135deg, #0D3B2E 0%, #155543 100%);
      color: #FFFFFF;
      box-shadow: 0 2px 6px rgba(13, 59, 46, 0.2);
    }

    .device-btn.live:hover, .device-btn.live.active {
      background: linear-gradient(135deg, #155543 0%, #0D3B2E 100%);
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(13, 59, 46, 0.3);
    }

    .device-btn.preview {
      background: #E0F2FE;
      color: #0369A1;
      border-color: #BAE6FD;
    }

    .device-btn.preview:hover {
      background: #BAE6FD;
      color: #075985;
    }

    .device-btn.copy {
      background: #F1F5F9;
      color: #475569;
      border-color: #E2E8F0;
    }

    .device-btn.copy:hover {
      background: #E2E8F0;
      color: #0F172A;
    }

    .device-live-panel {
      margin-top: 10px;
      animation: liveSlideDown 0.2s ease-out;
    }

    @keyframes liveSlideDown {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .live-terminal-box {
      background: #0B1320;
      border: 1.5px solid #1E293B;
      border-radius: 12px;
      padding: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .live-terminal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      padding: 0 2px;
    }

    .live-terminal-title {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      font-weight: 700;
      color: #E2E8F0;
    }

    .live-pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #10B981;
      box-shadow: 0 0 6px #10B981;
      animation: livePulse 1.5s infinite;
    }

    @keyframes livePulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
      100% { opacity: 1; transform: scale(1); }
    }

    .live-terminal-status {
      font-size: 10.5px;
      font-weight: 600;
      color: #64748B;
    }

    .live-close-btn {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      color: #94A3B8;
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .live-close-btn:hover {
      background: rgba(239, 68, 68, 0.25);
      color: #EF4444;
      border-color: rgba(239, 68, 68, 0.4);
      transform: scale(1.05);
    }

    .live-screen-viewport {
      width: 100%;
      max-width: 328px;
      height: 185px;
      aspect-ratio: 328 / 185;
      margin: 0 auto;
      background: #020617;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .live-screen-img {
      width: 328px;
      height: 185px;
      max-width: 100%;
      aspect-ratio: 328 / 185;
      object-fit: contain;
      cursor: pointer;
      display: block;
      transition: transform 0.15s ease;
    }

    .live-screen-img:hover {
      transform: scale(1.01);
    }

    .live-loading-state, .live-error-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #94A3B8;
      font-size: 11.5px;
      font-weight: 600;
      text-align: center;
      padding: 12px;
      width: 100%;
      height: 100%;
    }

    .live-loading-state i {
      font-size: 22px;
      color: var(--accent-gold);
    }

    .live-error-state i {
      font-size: 22px;
      color: #EF4444;
    }

    .live-retry-btn {
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.1);
      color: #FFFFFF;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid rgba(255, 255, 255, 0.2);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 4px;
      transition: all 0.15s;
    }

    .live-retry-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .live-terminal-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 8px;
      margin-top: 6px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .live-time-stamp {
      font-size: 11px;
      color: #64748B;
      font-family: monospace;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .live-footer-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .live-action-btn {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      color: #CBD5E1;
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11.5px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .live-action-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #FFFFFF;
      transform: translateY(-1px);
    }

    .live-modal {
      position: fixed;
      inset: 0;
      background: rgba(7, 35, 27, 0.85);
      backdrop-filter: blur(8px);
      z-index: 10000;
      display: none;
      place-items: center;
      padding: 20px;
    }

    .live-modal.active {
      display: grid;
    }

    .live-modal-card {
      background: #0B1320;
      border: 1.5px solid #1E293B;
      border-radius: 16px;
      max-width: 900px;
      width: 100%;
      overflow: hidden;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
      animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .live-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      background: #0F172A;
      border-bottom: 1px solid #1E293B;
      color: #FFFFFF;
    }

    .live-modal-title {
      font-size: 14px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .live-modal-close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.08);
      color: #CBD5E1;
      border: none;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all 0.15s;
    }

    .live-modal-close:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #FFFFFF;
    }

    .live-modal-body {
      padding: 16px;
      background: #020617;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 250px;
    }

    .live-modal-img {
      max-width: 100%;
      max-height: 70vh;
      border-radius: 8px;
      object-fit: contain;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }

    .live-modal-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      background: #0F172A;
      border-top: 1px solid #1E293B;
      color: #94A3B8;
      font-size: 12px;
    }

    .view-mode-tabs {
      display: inline-flex;
      background: #F1F5F9;
      padding: 3px;
      border-radius: var(--radius-btn);
      gap: 3px;
      border: 1px solid #E2E8F0;
    }

    .view-mode-tab {
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #64748B;
      border: none;
      background: transparent;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
    }

    .view-mode-tab:hover {
      color: #0D3B2E;
    }

    .view-mode-tab.active {
      background: #0D3B2E;
      color: #FFFFFF;
      box-shadow: 0 2px 6px rgba(13, 59, 46, 0.25);
    }

    .calendar-card {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-card);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .calendar-header-bar {
      padding: 16px 20px;
      background: #F8FAFC;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
    }

    .calendar-nav-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .calendar-nav-btn {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: #FFFFFF;
      border: 1.5px solid #E2E8F0;
      color: #334155;
      display: grid;
      place-items: center;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.15s ease;
    }

    .calendar-nav-btn:hover {
      background: #0D3B2E;
      border-color: #0D3B2E;
      color: #FFFFFF;
    }

    .calendar-today-btn {
      padding: 5px 12px;
      border-radius: 8px;
      background: #FFFFFF;
      border: 1.5px solid #CBD5E1;
      color: #0D3B2E;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .calendar-today-btn:hover {
      background: #0D3B2E;
      border-color: #0D3B2E;
      color: #FFFFFF;
    }

    .calendar-period-title {
      font-size: 17px;
      font-weight: 800;
      color: #0F172A;
      margin-left: 6px;
    }

    .calendar-legend-group {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 11.5px;
      font-weight: 600;
      color: #64748B;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .legend-dot.live { background: #10B981; box-shadow: 0 0 6px #10B981; }
    .legend-dot.upcoming { background: #0284C7; }
    .legend-dot.ended { background: #94A3B8; }

    .calendar-month-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      background: #E2E8F0;
      gap: 1px;
      border-top: 1px solid #E2E8F0;
    }

    .cal-col-header {
      background: #F8FAFC;
      padding: 10px 4px;
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .cal-day-cell {
      background: #FFFFFF;
      min-height: 120px;
      padding: 8px 6px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: background-color 0.15s ease;
      cursor: pointer;
      position: relative;
    }

    .cal-day-cell:hover {
      background: #F8FAFC;
    }

    .cal-day-cell.other-month {
      background: #FAFAFA;
      opacity: 0.5;
    }

    .cal-day-cell.today {
      background: rgba(13, 59, 46, 0.03);
    }

    .cal-day-cell-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2px;
    }

    .cal-day-number {
      font-size: 12.5px;
      font-weight: 800;
      color: #334155;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 50%;
    }

    .cal-day-cell.today .cal-day-number {
      background: #0D3B2E;
      color: #FFFFFF;
      box-shadow: 0 2px 6px rgba(13, 59, 46, 0.35);
    }

    .cal-today-tag {
      font-size: 9.5px;
      font-weight: 800;
      background: rgba(13, 59, 46, 0.1);
      color: #0D3B2E;
      padding: 1.5px 5px;
      border-radius: 4px;
    }

    .cal-day-add-btn {
      opacity: 0;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(13, 59, 46, 0.1);
      color: #0D3B2E;
      border: none;
      display: grid;
      place-items: center;
      font-size: 10px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .cal-day-cell:hover .cal-day-add-btn {
      opacity: 1;
    }

    .cal-day-add-btn:hover {
      background: #0D3B2E;
      color: #FFFFFF;
      transform: scale(1.1);
    }

    .cal-events-list {
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex: 1;
    }

    .cal-event-chip {
      padding: 3.5px 5px;
      border-radius: 5px;
      font-size: 10.5px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border: 1px solid transparent;
      text-align: left;
    }

    .cal-event-chip:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      z-index: 2;
    }

    .cal-event-chip.live {
      background: linear-gradient(135deg, #0D3B2E 0%, #155543 100%);
      color: #FFFFFF;
      border-color: rgba(255, 255, 255, 0.2);
    }

    .cal-event-chip.scheduled {
      background: #E0F2FE;
      color: #0369A1;
      border-color: #BAE6FD;
    }

    .cal-event-chip.ended {
      background: #F1F5F9;
      color: #64748B;
      border-color: #E2E8F0;
    }

    .cal-event-chip.cancelled {
      background: #FEF2F2;
      color: #991B1B;
      border-color: #FECACA;
    }

    .cal-chip-time {
      font-size: 9.5px;
      font-weight: 800;
      opacity: 0.85;
      flex-shrink: 0;
    }

    .cal-chip-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
    }

    .cal-chip-room {
      font-size: 9px;
      padding: 1px 3px;
      border-radius: 3px;
      background: rgba(0, 0, 0, 0.08);
      flex-shrink: 0;
      max-width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cal-event-chip.live .cal-chip-room {
      background: rgba(255, 255, 255, 0.2);
    }

    .cal-more-chip {
      font-size: 10px;
      font-weight: 700;
      color: #0D3B2E;
      padding: 2px 4px;
      text-align: center;
      cursor: pointer;
      border-radius: 4px;
      background: rgba(13, 59, 46, 0.05);
    }

    .cal-more-chip:hover {
      background: rgba(13, 59, 46, 0.12);
    }

    .calendar-week-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      background: #E2E8F0;
      gap: 1px;
      border-top: 1px solid #E2E8F0;
    }

    .cal-week-col {
      background: #FFFFFF;
      display: flex;
      flex-direction: column;
      min-height: 460px;
    }

    .cal-week-header {
      background: #F8FAFC;
      padding: 10px 6px;
      text-align: center;
      border-bottom: 1px solid #E2E8F0;
    }

    .cal-week-header.today {
      background: rgba(13, 59, 46, 0.06);
    }

    .cal-week-day-name {
      font-size: 11px;
      font-weight: 800;
      color: #64748B;
      text-transform: uppercase;
    }

    .cal-week-day-num {
      font-size: 15px;
      font-weight: 900;
      color: #0F172A;
      margin-top: 2px;
    }

    .cal-week-header.today .cal-week-day-num {
      color: #0D3B2E;
    }

    .cal-week-body {
      padding: 8px 6px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .cal-week-card {
      background: #FFFFFF;
      border: 1.5px solid #E2E8F0;
      border-radius: 8px;
      padding: 8px;
      cursor: pointer;
      transition: all 0.15s ease;
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: left;
    }

    .cal-week-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      border-color: #CBD5E1;
    }

    .cal-week-card.live {
      border-color: #10B981;
      background: #F0FDF4;
    }

    .cal-week-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .cal-week-time {
      font-size: 11px;
      font-weight: 800;
      color: #0D3B2E;
    }

    .cal-week-title {
      font-size: 12px;
      font-weight: 800;
      color: #0F172A;
      line-height: 1.3;
    }

    .cal-week-meta {
      font-size: 10.5px;
      color: #64748B;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .cal-week-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      min-height: 100px;
      color: #94A3B8;
      font-size: 11.5px;
      gap: 6px;
      padding: 10px;
      text-align: center;
    }

    .calendar-event-card {
      background: #FFFFFF;
      border-radius: 16px;
      max-width: 560px;
      width: 100%;
      overflow: hidden;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
      animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .calendar-event-header {
      padding: 14px 18px;
      background: #F8FAFC;
      border-bottom: 1px solid #E2E8F0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .calendar-event-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .calendar-event-close {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      color: #64748B;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all 0.15s;
    }

    .calendar-event-close:hover {
      background: #EF4444;
      color: #FFFFFF;
      border-color: #EF4444;
    }

    .calendar-event-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .calendar-event-title {
      font-size: 18px;
      font-weight: 800;
      color: #0F172A;
      line-height: 1.3;
    }

    .calendar-event-meta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      background: #F8FAFC;
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #E2E8F0;
    }

    .event-meta-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 12px;
    }

    .event-meta-item i {
      color: var(--primary);
      margin-top: 2px;
      font-size: 13px;
      width: 16px;
      text-align: center;
    }

    .event-meta-item .meta-label {
      font-size: 11px;
      color: #64748B;
      font-weight: 600;
    }

    .event-meta-item .meta-val {
      font-size: 12.5px;
      font-weight: 700;
      color: #0F172A;
    }

    .calendar-event-content-box {
      background: #F8FAFC;
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      padding: 12px;
    }

    .calendar-event-content-box .content-text {
      font-size: 13px;
      color: #334155;
      line-height: 1.45;
      white-space: pre-line;
    }

    .calendar-event-footer {
      padding: 12px 18px;
      background: #F8FAFC;
      border-top: 1px solid #E2E8F0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .calendar-event-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    @media (max-width: 900px) {
      .calendar-month-grid, .calendar-week-grid {
        font-size: 11px;
      }
      .cal-day-cell {
        min-height: 80px;
        padding: 4px;
      }
      .calendar-event-meta-grid {
        grid-template-columns: 1fr;
      }
    }

    .schedule-panel {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .schedule-toolbar {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-card);
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
    }

    .toolbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      flex: 1;
    }

    .search-box {
      position: relative;
      min-width: 240px;
      flex: 1;
      max-width: 360px;
    }

    .search-box input {
      width: 100%;
      padding: 8px 14px 8px 36px;
      border-radius: var(--radius-input);
      border: 1px solid #CBD5E1;
      background: #F8FAFC;
      font-size: 13px;
      outline: none;
      transition: all 0.2s ease;
    }

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

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

    .filter-select {
      padding: 8px 14px;
      border-radius: var(--radius-input);
      border: 1px solid #CBD5E1;
      background: #F8FAFC;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-heading);
      outline: none;
      cursor: pointer;
    }

    .filter-select:focus {
      border-color: var(--primary);
      background: #FFFFFF;
    }

    .date-filter-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .date-filter-wrap i.fa-calendar-day {
      position: absolute;
      left: 10px;
      color: var(--text-muted);
      font-size: 13px;
      pointer-events: none;
    }

    .filter-date-input {
      padding: 8px 12px 8px 32px;
      border-radius: var(--radius-input);
      border: 1px solid #CBD5E1;
      background: #F8FAFC;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-heading);
      outline: none;
      cursor: pointer;
      font-family: inherit;
    }

    .filter-date-input:focus {
      border-color: var(--primary);
      background: #FFFFFF;
    }

    .btn-clear-date {
      margin-left: -26px;
      z-index: 2;
      background: transparent;
      border: none;
      color: #94A3B8;
      cursor: pointer;
      padding: 4px;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    .btn-clear-date:hover {
      color: #EF4444;
    }

    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 20px;
      padding: 14px 20px;
      background: #FFFFFF;
      border-radius: var(--radius-card);
      border: 1.5px solid var(--border-subtle);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .pagination-info {
      font-size: 13.5px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .pagination-info strong {
      color: var(--text-heading);
      font-weight: 700;
    }

    .pagination-controls {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .page-btn {
      min-width: 34px;
      height: 34px;
      padding: 0 8px;
      border-radius: 8px;
      border: 1px solid #CBD5E1;
      background: #FFFFFF;
      color: var(--text-heading);
      font-size: 13px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .page-btn:hover:not(:disabled) {
      background: #F1F5F9;
      border-color: var(--primary);
      color: var(--primary);
    }

    .page-btn.active {
      background: var(--primary);
      color: #FFFFFF;
      border-color: var(--primary);
      box-shadow: 0 2px 6px rgba(13, 59, 46, 0.25);
    }

    .page-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      border-color: #E2E8F0;
      background: #F8FAFC;
    }

    .page-ellipsis {
      padding: 0 4px;
      color: #94A3B8;
      font-weight: 700;
      user-select: none;
    }

    .status-tabs {
      display: flex;
      align-items: center;
      background: #F1F5F9;
      padding: 3px;
      border-radius: 10px;
      gap: 2px;
    }

    .status-tab {
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      color: #64748B;
      background: transparent;
      transition: all 0.15s ease;
    }

    .status-tab.active {
      background: #FFFFFF;
      color: var(--primary);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .btn-refresh {
      padding: 8px 14px;
      border-radius: var(--radius-btn);
      background: #F8FAFC;
      border: 1px solid #CBD5E1;
      color: var(--text-heading);
      font-size: 13px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-refresh:hover {
      background: #F1F5F9;
      border-color: #94A3B8;
    }

    .meetings-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .meeting-card {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 1.5px solid var(--border-subtle);
      box-shadow: var(--shadow-card);
      padding: 22px 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .meeting-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
      border-color: var(--border-medium);
    }

    .meeting-card.scheduled {
      border-left: 5px solid var(--primary);
    }

    .meeting-card.active-now {
      border-left: 5px solid var(--accent-gold);
      background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
    }

    .meeting-card.ended {
      opacity: 0.72;
      border-left: 5px solid #94A3B8;
      background: #FAFAFA;
    }

    .meeting-card.cancelled {
      opacity: 0.55;
      border-left: 5px solid #EF4444;
      background: #FAFAFA;
    }

    .meeting-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .meeting-main-info {
      flex: 1;
      min-width: 260px;
    }

    .meeting-badges {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .badge.scheduled {
      background: rgba(16, 185, 129, 0.12);
      color: #065F46;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .badge.live {
      background: rgba(201, 150, 62, 0.16);
      color: #8D5B00;
      border: 1px solid rgba(201, 150, 62, 0.4);
      animation: pulseGold 2s infinite;
    }

    @keyframes pulseGold {
      0%, 100% { box-shadow: 0 0 0 0 rgba(201, 150, 62, 0.4); }
      50% { box-shadow: 0 0 0 4px rgba(201, 150, 62, 0); }
    }

    .badge.ended {
      background: #F1F5F9;
      color: #64748B;
      border: 1px solid #E2E8F0;
    }

    .badge.cancelled {
      background: #FEF2F2;
      color: #991B1B;
      border: 1px solid #FECACA;
    }

    .badge.pending-approval {
      background: #FEF3C7;
      color: #92400E;
      border: 1px solid #FCD34D;
    }

    .badge.device-tag {
      background: rgba(13, 59, 46, 0.06);
      color: var(--primary);
      border: 1px solid rgba(13, 59, 46, 0.15);
    }

    .meeting-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
      color: var(--text-heading);
      line-height: 1.35;
    }

    .meeting-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 8px;
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 600;
    }

    .meeting-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .meeting-meta-item i {
      color: var(--accent-gold);
    }

    .meeting-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .action-btn {
      padding: 7px 14px;
      border-radius: var(--radius-btn);
      font-size: 12px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
      border: 1px solid transparent;
    }

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

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

    .action-btn.end {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: #FFFFFF;
      box-shadow: 0 2px 8px rgba(13, 59, 46, 0.25);
    }

    .action-btn.end:hover {
      background: linear-gradient(135deg, var(--primary-light) 0%, #1c6e57 100%);
      transform: translateY(-1px);
    }

    .action-btn.cancel {
      background: #FEF2F2;
      color: #B91C1C;
      border-color: #FECACA;
    }

    .action-btn.cancel:hover {
      background: #FEE2E2;
      color: #991B1B;
      border-color: #FCA5A5;
    }

    .action-btn.start-now {
      background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
      color: #FFFFFF;
      box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    }

    .action-btn.start-now:hover {
      background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
      transform: translateY(-1px);
    }

    .action-btn.duplicate {
      background: #F0FDF4;
      color: #166534;
      border-color: #BBF7D0;
    }

    .action-btn.duplicate:hover {
      background: #DCFCE7;
      color: #14532D;
      border-color: #86EFAC;
      transform: translateY(-1px);
    }

    .meeting-content-box {
      background: #F8FAFC;
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      padding: 14px 16px;
      font-size: 13.5px;
      color: #334155;
      line-height: 1.6;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .empty-state {
      background: var(--bg-card);
      border-radius: var(--radius-card);
      border: 2px dashed #CBD5E1;
      padding: 48px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .empty-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(13, 59, 46, 0.06);
      color: var(--primary);
      display: grid;
      place-items: center;
      font-size: 26px;
      margin-bottom: 4px;
    }

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

    .empty-desc {
      font-size: 13px;
      color: var(--text-muted);
      max-width: 380px;
    }

    #toast-container {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 999999;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
      max-width: 420px;
      width: calc(100vw - 48px);
    }

    .toast-msg {
      pointer-events: auto;
      background: #FFFFFF;
      border-radius: 14px;
      padding: 14px 18px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-heading);
      transform: translateX(100%);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .toast-msg.show {
      transform: translateX(0);
      opacity: 1;
    }

    .toast-msg.success { border-left: 4px solid #10B981; }
    .toast-msg.success i { color: #10B981; font-size: 18px; }

    .toast-msg.error { border-left: 4px solid #EF4444; }
    .toast-msg.error i { color: #EF4444; font-size: 18px; }

    .toast-msg.info { border-left: 4px solid var(--accent-gold); }
    .toast-msg.info i { color: var(--accent-gold); font-size: 18px; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7, 35, 27, 0.65);
      backdrop-filter: blur(6px);
      z-index: 100000;
      display: grid;
      place-items: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .modal-backdrop.active {
      opacity: 1;
      pointer-events: auto;
    }

    .confirm-card {
      background: #FFFFFF;
      border-radius: 20px;
      max-width: 440px;
      width: 100%;
      padding: 28px 24px 24px;
      text-align: center;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-backdrop.active .confirm-card {
      transform: scale(1);
    }

    .confirm-icon-wrap {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      margin: 0 auto 16px;
      display: grid;
      place-items: center;
      font-size: 24px;
    }

    .confirm-icon-wrap.warning { background: #FEF3C7; color: #D97706; }
    .confirm-icon-wrap.danger { background: #FEE2E2; color: #DC2626; }
    .confirm-icon-wrap.success { background: #D1FAE5; color: #059669; }

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

    .confirm-desc {
      font-size: 13.5px;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 24px;
    }

    .confirm-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .confirm-btn {
      padding: 11px 16px;
      border-radius: var(--radius-btn);
      font-size: 13.5px;
      font-weight: 700;
    }

    .confirm-btn.cancel {
      background: #F1F5F9;
      color: #475569;
    }

    .confirm-btn.cancel:hover {
      background: #E2E8F0;
      color: #0F172A;
    }

    .confirm-btn.danger {
      background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
      color: #FFFFFF;
    }

    .confirm-btn.danger:hover {
      background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    }

    .confirm-btn.primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: #FFFFFF;
    }

    .confirm-btn.primary:hover {
      background: linear-gradient(135deg, var(--primary-light) 0%, #1c6e57 100%);
    }

.hidden { display: none !important; }
.brand-logo-img { height: 38px; max-width: 155px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mb-0 { margin-bottom: 0 !important; }
.text-gold-mr1 { color: var(--accent-gold); margin-right: 4px; }
.text-gold { color: var(--accent-gold); }
.mt-2 { margin-top: 10px; }
.mb-4 { margin-bottom: 18px; }
.mb-1-5 { margin-bottom: 6px; }
.grid-device-row { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.btn-device-submit { width: 100%; justify-content: center; background: #0D3B2E; color: #fff; }
.btn-device-cancel { display: none; width: 100%; justify-content: center; margin-top: 8px; background: #eef2f0; color: #0D3B2E; }
.flex-center-gap8 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flex-gap8 { display: flex; gap: 8px; }
.btn-close-modal-muted { background: #F1F5F9; color: #475569; }
.btn-live-download { background: #0D3B2E; color: #fff; padding: 6px 12px; font-size: 12px; }
.btn-live-close-ghost { background: rgba(255,255,255,0.1); color: #fff; padding: 6px 12px; font-size: 12px; }
.cal-empty-icon { font-size: 20px; opacity: 0.5; }
.cal-day-add-btn-sm { padding: 4px 8px; font-size: 11px; margin-top: 4px; background: #F1F5F9; color: #0D3B2E; }
.badge-xs { font-size: 9.5px; padding: 1.5px 5px; }
