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

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    direction: rtl;
}

/* ── Top Bar ── */
.topbar {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-title { font-size: 18px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 15px; font-size: 13px; }
.role-switcher {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.role-switcher option { color: #333; background: white; }

/* ── Layout ── */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}
.page-header {
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 22px;
    color: #1a365d;
    margin-bottom: 6px;
}
.page-header p {
    font-size: 14px;
    color: #666;
}

/* ── Cards ── */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body { padding: 20px; }

/* ── Phase Progress Bar ── */
.phase-bar {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.phase-step {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: #e2e8f0;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.phase-step.active {
    background: #2d5a87;
    color: white;
}
.phase-step.completed {
    background: #48bb78;
    color: white;
}
.phase-step.pending {
    background: #e2e8f0;
    color: #a0aec0;
}
.phase-step .phase-num {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
}

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { background: #c6f6d5; color: #22543d; }
.badge-orange { background: #feebc8; color: #7b341e; }
.badge-red { background: #fed7d7; color: #822727; }
.badge-blue { background: #bee3f8; color: #2a4365; }
.badge-gray { background: #e2e8f0; color: #4a5568; }
.badge-purple { background: #e9d8fd; color: #44337a; }

/* ── Forms ── */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.form-section:last-child { border-bottom: none; }
.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 16px;
    padding-right: 10px;
    border-right: 3px solid #2d5a87;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}
.form-group label .req { color: #c00; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45,90,135,0.1);
}
.form-group textarea { resize: vertical; min-height: 70px; }

/* ── Buttons ── */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary { background: #1a365d; color: white; }
.btn-primary:hover { background: #2d5a87; }
.btn-success { background: #48bb78; color: white; }
.btn-success:hover { background: #38a169; }
.btn-danger { background: #e53e3e; color: white; }
.btn-danger:hover { background: #c53030; }
.btn-warning { background: #dd6b20; color: white; }
.btn-warning:hover { background: #c05621; }
.btn-outline {
    background: transparent;
    border: 1.5px solid #2d5a87;
    color: #2d5a87;
}
.btn-outline:hover { background: #ebf4ff; }
.btn-ghost {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}
.btn-ghost:hover { background: #e2e8f0; }
.btn-row { display: flex; gap: 12px; margin-top: 20px; }

/* ── Tables ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    background: #f7fafc;
    padding: 10px 12px;
    text-align: right;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.data-table tr:hover { background: #f7fafc; }
.data-table tr.clickable { cursor: pointer; }

/* ── Dashboard Widgets ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}
.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #1a365d;
}
.stat-label {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
}

/* ── Event List Items ── */
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.event-item:hover { background: #f7fafc; }
.event-item:last-child { border-bottom: none; }
.event-item-right { display: flex; align-items: center; gap: 10px; }
.event-name { font-weight: 600; color: #2d3748; font-size: 14px; }
.event-meta { font-size: 12px; color: #718096; margin-top: 3px; }

/* ── Approval Card ── */
.approval-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.approval-card.pending { border-color: #dd6b20; }
.approval-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.approval-comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    min-height: 60px;
    margin-top: 12px;
    resize: vertical;
}

/* ── Checklist ── */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checklist-item label {
    flex: 1;
    font-size: 14px;
    cursor: pointer;
}
.checklist-item .checklist-owner {
    font-size: 12px;
    color: #718096;
    background: #f7fafc;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Guest Tracker ── */
.guest-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
}
.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.guest-name { font-weight: 600; font-size: 15px; color: #2d3748; }
.guest-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}
.guest-detail-label { color: #718096; font-size: 12px; }
.guest-detail-value { color: #2d3748; font-weight: 500; }

/* ── Timeline (legacy) ── */
.timeline {
    position: relative;
    padding-right: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2d5a87;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #2d5a87;
}
.timeline-item.completed::before { background: #48bb78; box-shadow: 0 0 0 2px #48bb78; }
.timeline-item.pending::before { background: #e2e8f0; box-shadow: 0 0 0 2px #a0aec0; }
.timeline-date { font-size: 12px; color: #718096; }
.timeline-content { font-size: 14px; color: #2d3748; margin-top: 2px; }
.timeline-actor { font-size: 12px; color: #2d5a87; font-weight: 500; }

/* ── Snake Timeline ── */
.snake-timeline { padding: 8px 0; }
.snake-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.snake-row.rtl { direction: rtl; }
.snake-row.ltr { direction: ltr; }
.snake-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 100px;
    position: relative;
}
.snake-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: #e2e8f0;
    position: relative;
    z-index: 2;
}
.snake-label {
    font-size: 10px;
    color: #718096;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    direction: rtl;
}
.snake-line {
    flex: 0 0 20px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
/* States */
.snake-node.done .snake-dot { background: #48bb78; }
.snake-node.done .snake-label { color: #22543d; }
.snake-node.done + .snake-line,
.snake-line.done { background: #48bb78; }
.snake-node.current .snake-dot {
    background: #3182ce;
    box-shadow: 0 0 0 4px rgba(49,130,206,0.25);
    animation: snakePulse 2s infinite;
}
.snake-node.current .snake-label { color: #2b6cb0; font-weight: 600; }
.snake-node.future .snake-dot { background: #e2e8f0; color: #a0aec0; }
.snake-node.future .snake-label { color: #a0aec0; }
.snake-node.error .snake-dot { background: #e53e3e; }
.snake-node.error .snake-label { color: #822727; }
/* U-turn connector */
.snake-uturn {
    display: flex;
    justify-content: flex-start;
    padding: 0 36px;
    height: 24px;
}
.snake-uturn.right { justify-content: flex-end; }
.snake-uturn-line {
    width: 3px;
    height: 100%;
    background: #e2e8f0;
}
.snake-uturn-line.done { background: #48bb78; }
/* Pulse animation */
@keyframes snakePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(49,130,206,0.25); }
    50% { box-shadow: 0 0 0 8px rgba(49,130,206,0.1); }
}
@media (max-width: 768px) {
    .snake-node { max-width: 70px; }
    .snake-dot { width: 24px; height: 24px; font-size: 11px; }
    .snake-label { font-size: 9px; }
    .snake-line { flex: 0 0 10px; }
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
    font-weight: 600;
}
.tab:hover { color: #2d5a87; }

/* ── Cost Table ── */
.cost-total {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #1a365d;
    padding: 12px 0;
    border-top: 2px solid #1a365d;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row.triple { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .guest-details { grid-template-columns: 1fr; }
    .phase-step { font-size: 11px; padding: 10px 6px; }
}

/* ── Prototype Banner ── */
.proto-banner {
    background: #fefcbf;
    color: #744210;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #f6e05e;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #a0aec0;
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; }

/* ══════════════════════════════════════
   LAYER 2 — Auth, Forms, Modals, etc.
   ══════════════════════════════════════ */

/* ── User Bar (topbar-right) ── */
.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.user-greeting { font-weight: 500; }
.role-badge {
    background: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.user-bar-spacer { flex: 1; min-width: 10px; }
.topbar-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.topbar-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Login Page ── */
.login-container {
    max-width: 380px;
    margin: 80px auto;
    padding: 0 20px;
}
.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 36px 30px;
    text-align: center;
}
.login-card h2 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 24px;
}
.login-input-group {
    position: relative;
    margin-bottom: 18px;
}
.login-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    letter-spacing: 4px;
}
.login-input-group input:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45,90,135,0.1);
}
.eye-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    font-size: 16px;
}
.login-btn {
    width: 100%;
    padding: 12px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.login-btn:hover { background: #2d5a87; }
.login-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}
.sim-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: #a0aec0;
    text-decoration: none;
}
.sim-link:hover { color: #718096; }

/* ── Modal Overlay ── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 28px;
    min-width: 340px;
    max-width: 90%;
}
.modal-card h3 {
    font-size: 17px;
    color: #1a365d;
    margin-bottom: 16px;
}

/* ── Form Inputs (standalone, outside .form-group) ── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45,90,135,0.1);
}
.form-textarea { resize: vertical; min-height: 70px; }

/* ── Form Grid Layouts ── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* ── Form Actions (button row) ── */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ── Button Sizes ── */
.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}
.btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}
.btn-secondary:hover { background: #e2e8f0; }

/* ── Back Link ── */
.back-link {
    display: inline-block;
    color: #2d5a87;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }

/* ── Detail Grid (approval page, event summary) ── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.detail-item {
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
}
.detail-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 3px;
}
.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* ── Progress Bar (execution/closure) ── */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* ── Checkbox Labels (styled checkboxes) ── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-label span {
    font-size: 14px;
    transition: all 0.2s;
}

/* ── Required Asterisk ── */
.required { color: #e53e3e; }

/* ── Speaker Row (repeatable form group) ── */
.speaker-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}
.speaker-row .remove-speaker {
    position: absolute;
    left: 10px;
    top: 10px;
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 18px;
}

/* ── Closure Tab Content ── */
.closure-tab-content { /* shown/hidden via JS display toggle */ }

/* ── Data Table Footer ── */
.data-table tfoot td {
    font-weight: 700;
    padding: 12px;
    border-top: 2px solid #1a365d;
    background: #f7fafc;
}

/* ── Event Card (dashboard) ── */
.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.event-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}
.event-card-id {
    font-size: 12px;
    color: #a0aec0;
    font-family: monospace;
}
.event-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

/* ── Subpath Status Cards ── */
.subpath-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subpath-label { font-size: 13px; font-weight: 500; color: #2d3748; }
.subpath-assignee { font-size: 12px; color: #718096; }

/* ── Approval Queue ── */
.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.queue-item:last-child { border-bottom: none; }
.queue-item:hover { background: #f7fafc; cursor: pointer; }

/* ── Token Form Pages ── */
.token-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
}
.token-header {
    text-align: center;
    margin-bottom: 24px;
}
.token-header h1 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 6px;
}
.token-header p {
    font-size: 14px;
    color: #718096;
}
.token-success {
    text-align: center;
    padding: 40px;
    color: #22543d;
}
.token-success-icon { font-size: 48px; margin-bottom: 12px; }
.token-error {
    text-align: center;
    padding: 40px;
    color: #822727;
}

/* ── Filter Bar (dashboard) ── */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #edf2f7;
    color: #4a5568;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}
.filter-chip.active {
    background: #1a365d;
    color: white;
}
.filter-chip:hover { background: #e2e8f0; }
.filter-chip.active:hover { background: #2d5a87; }

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: inherit;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success { background: #48bb78; }
.toast.error { background: #e53e3e; }
.toast.info { background: #2d5a87; }

/* ── Mode Toggle ── */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0aec0;
}
.mode-toggle label { cursor: pointer; }
.mode-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.mode-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}
.mode-toggle input[type="checkbox"]:checked {
    background: #48bb78;
}
.mode-toggle input[type="checkbox"]:checked::after {
    transform: translateX(-16px);
}

/* ── Readiness Checklist (Gate 5) ── */
.readiness-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.readiness-item:last-child { border-bottom: none; }
.readiness-label { font-size: 13px; color: #2d3748; }
.readiness-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.readiness-ok { background: #c6f6d5; color: #22543d; }
.readiness-pending { background: #feebc8; color: #7b341e; }
.readiness-blocked { background: #fed7d7; color: #822727; }

/* ── Agenda Builder ── */
.agenda-session {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
}
.agenda-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.agenda-time {
    font-size: 13px;
    color: #2d5a87;
    font-weight: 600;
}

/* ── Responsive additions ── */
@media (max-width: 768px) {
    .login-container { margin: 40px auto; }
    .modal-card { min-width: auto; width: 90%; }
    .filter-bar { gap: 6px; }
    .detail-grid { grid-template-columns: 1fr; }
    .event-card-meta { flex-direction: column; gap: 4px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
