body { font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; padding: 0; background: #eef2f7; color: #1f2937; }
header { background: #0b3d60; color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
header .brand { font-weight: bold; font-size: 1.2rem; color: #fff; text-decoration: none; }
header .brand:hover { text-decoration: underline; }
header a { color: #fff; margin-left: 1rem; text-decoration: none; }
.primary-actions { display: flex; gap: 0.5rem; }
nav a.nav-request.alert { color: #ffdd57; font-weight: 600; }
nav a .badge.warning { background: #ffdd57; color: #0b3d60; }
main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
footer { padding: 1rem; text-align: center; color: #666; }
.card { background: white; padding: 1rem; margin-bottom: 1rem; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.event-banner { background: linear-gradient(135deg, #0b7fab, #0b3d60); color: #fff; padding: 1.5rem; border-radius: 16px; box-shadow: 0 12px 32px rgba(11,61,96,0.35); margin-bottom: 1rem; }
.event-banner.extended { display: flex; flex-direction: column; gap: 1rem; }
.event-summary { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.event-time-card { background: rgba(255,255,255,0.15); border-radius: 16px; padding: 1rem; min-width: 180px; }
.event-date { display: block; font-size: 1.25rem; font-weight: 600; }
.event-time-range { display: block; font-size: 0.95rem; opacity: 0.9; }
.event-main-info { flex: 1; min-width: 260px; }
.event-main-info h1 { margin: 0 0 0.25rem; }
.event-location { margin: 0; font-weight: 600; }
.event-description, .event-note { margin: 0.5rem 0 0; }
.event-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.event-card { background: linear-gradient(145deg, #0b7fab, #0b3d60); color: #fff; padding: 1.25rem; border-radius: 18px; box-shadow: 0 18px 36px rgba(10, 40, 70, 0.35); margin-bottom: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; }
.event-card.clickable { cursor: pointer; }
.event-card.clickable:hover { transform: scale(1.015); box-shadow: 0 22px 40px rgba(10, 40, 70, 0.45); }
.event-card.clickable:focus { outline: 2px solid #ffdd57; outline-offset: 4px; }
.event-card h2 { margin: 0 0 0.25rem; }
.event-card h2 a { color: #fff; text-decoration: none; }
.event-card-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.event-card-time { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.event-card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.event-card-tags span { background: rgba(255,255,255,0.18); padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.8rem; }
.event-card-tags .capacity-chip { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }
.event-card-tags .capacity-chip.full { background: rgba(239,68,68,0.3); color: #fff; }
.event-card-tags .capacity-flag { color: #ffb4b4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card .share-row input { background: rgba(255,255,255,0.95); color: #0b3d60; }
.event-card .share-row button { background: rgba(11,61,96,0.85); }
.event-banner .capacity-chip { background: rgba(255,255,255,0.2); color: #fff; }
.event-banner .capacity-chip.full { background: rgba(239,68,68,0.35); color: #fff; }
.event-banner .capacity-flag { color: #ffb4a8; }
.event-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; justify-content: center; }
.event-card-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.hide-form { margin: 0; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn, button { background: #0b7fab; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; }
.btn.secondary { background: #13546f; }
button.danger, .btn.danger { background: #b80d0d; }
.btn.ghost.danger { background: transparent; border: 1px dashed #b80d0d; color: #b80d0d; }
.btn.small { padding: 0.25rem 0.6rem; font-size: 0.78rem; }
.inline-form { display: inline; margin-left: 0.35rem; }
.flash { padding: 0.5rem; border-radius: 4px; margin-bottom: 1rem; }
.flash.success { background: #d3f9d8; }
.flash.danger { background: #ffe3e3; }
.flash.info { background: #dbeafe; }
label { display: block; margin-bottom: 0.5rem; }
input, select, textarea { width: 100%; padding: 0.5rem; margin-top: 0.2rem; }
form { margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; background: white; }
table th, table td { padding: 0.5rem; border: 1px solid #e0e0e0; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; background: #e2e8f0; color: #0b3d60; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.badge.warning { background: #ffdd57; color: #0b3d60; }
.event-meta-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 0; }
.meta-item { background: rgba(255,255,255,0.15); padding: 0.75rem 1rem; border-radius: 12px; min-width: 140px; }
.meta-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; opacity: 0.85; }
.meta-value { font-size: 1.25rem; font-weight: 600; display: block; }
.choice-group { margin: 1rem 0; }
.choice-group.scrollable { max-height: 300px; overflow-y: auto; padding: 0.5rem; border-radius: 12px; background: transparent; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checkbox-grid.scrollable { max-height: 220px; overflow-y: auto; padding: 0.5rem; border: none; border-radius: 12px; background: transparent; }
.checkbox-grid label { background: #f1f5f9; border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.9rem; color: #0f172a; display: inline-flex; align-items: center; gap: 0.25rem; }
.checkbox-grid input { width: auto; margin-right: 0.25rem; }
.event-chat textarea { border-radius: 8px; border: 1px solid #d0d7de; background: #fff; resize: vertical; }
.chat-thread { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.chat-message { background: #fff; padding: 0.75rem 1rem; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); max-width: 640px; }
.chat-message.mine { margin-left: auto; background: #0b7fab; color: #fff; box-shadow: 0 6px 20px rgba(11,127,171,0.35); }
.chat-meta { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.35rem; color: #475569; }
.chat-message.mine .chat-meta { color: rgba(255,255,255,0.8); }
.chat-bubble header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.chat-bubble header form.inline-delete { margin: 0; display: inline; }
.chat-bubble header form.inline-delete button { border: none; background: transparent; color: inherit; padding: 0 0.25rem; font-weight: 700; cursor: pointer; }
.chat-body { margin: 0; line-height: 1.4; }
.chat-message.mine .chat-body { color: #fff; }
.chat-empty { color: #64748b; font-style: italic; }
.token-entry { margin-top: 2rem; }
.inline-options { display: flex; gap: 1rem; margin: 1rem 0; }
.checkbox-inline { display: flex; align-items: center; gap: 0.3rem; margin: 0; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.toggle-button { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.toggle-button input { display: none; }
.toggle-button span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #0b7fab;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.toggle-button span::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.toggle-button input:checked + span {
    background: #094c70;
    box-shadow: 0 4px 12px rgba(9,76,112,0.35);
}
.toggle-button input:checked + span::after {
    content: "✓";
    border-color: #22c55e;
    background: #22c55e;
}
.share-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.selector-buttons { display: flex; justify-content: center; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0; }
.selection-summary { text-align: center; }
.user-picker-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.picker-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.72); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 1rem; }
.picker-backdrop.is-hidden { display: none; }
.picker-panel { background: linear-gradient(135deg, #0b3d60, #0b7fab); border-radius: 16px; width: min(560px, 95vw); max-height: 90vh; padding: 1rem; box-shadow: 0 30px 80px rgba(15,23,42,0.65); display: flex; flex-direction: column; gap: 0.75rem; color: #fff; }
.picker-panel header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.picker-panel h3 { margin: 0; color: #fff; }
.picker-panel input[type="search"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.picker-panel input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }
.picker-list { flex: 1; overflow-y: auto; border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.picker-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.picker-list label[hidden] { display: none; }
.picker-list input { width: auto; }
.picker-subsection { display: flex; flex-direction: column; gap: 0.35rem; }
.picker-subsection h4 { margin: 0.5rem 0 0; color: #c7e1ff; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.picker-subsection em { font-style: normal; color: #b3dbff; font-size: 0.8rem; margin-left: 0.35rem; }
body.modal-open { overflow: hidden; }
.danger-zone { border: 1px solid #b80d0d; border-radius: 12px; padding: 1rem; margin-top: 1.5rem; background: rgba(184,13,13,0.08); }
.danger-zone h2 { color: #b80d0d; }
.form-card-toolbar { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.theme-toggle-btn { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; padding: 0.35rem 0.85rem; border-radius: 999px; cursor: pointer; transition: background 0.2s ease; }
.theme-toggle-btn:hover { background: rgba(255,255,255,0.15); }
.event-form-card .choice-group > span { color: #fff; font-weight: 600; }
.event-form-card .share-contact-toggle { color: #fff !important; font-weight: 600; }
.event-form-card .choice-group > span,
.event-form-card .choice-group span.label,
.event-form-card .choice-group span { color: #fff !important; }
.event-form-card.dark-theme { background: #0f172a; color: #e2e8f0; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.event-form-card.dark-theme .form-card-toolbar { border-bottom: 1px solid #1f2937; padding-bottom: 0.5rem; }
.event-form-card.dark-theme form label { color: #e2e8f0; }
.event-form-card.dark-theme .form-block { background: #1e293b; color: #e2e8f0; box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
.event-form-card.dark-theme textarea,
.event-form-card.dark-theme input,
.event-form-card.dark-theme select { background: #0f172a; color: #f8fafc; border: 1px solid #334155; box-shadow: inset 0 2px 6px rgba(0,0,0,0.4); }
.event-form-card.dark-theme textarea::placeholder,
.event-form-card.dark-theme input::placeholder { color: #94a3b8; }
.event-form-card.dark-theme .checkbox-grid label { background: #334155; color: #f8fafc; }
.event-form-card.dark-theme .shareable-toggle,
.event-form-card.dark-theme .theme-toggle-btn { color: #f8fafc; border-color: #475569; }
.event-form-card.dark-theme .theme-toggle-btn:hover { background: #1e293b; }
.event-form-card.dark-theme .choice-group.scrollable { background: rgba(148,163,184,0.08); }
.event-form-card.dark-theme .checkbox-grid.scrollable { background: transparent; border-color: #334155; }
.share-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.share-row input { flex: 1; border: 1px solid #d0d7de; border-radius: 6px; padding: 0.5rem; background: #f8fafc; }
.share-row.stacked { flex-direction: column; align-items: stretch; }
.capacity-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.capacity-chip { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.2); padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.85rem; color: #0b3d60; }
.capacity-chip.full { background: rgba(220,38,38,0.15); color: #b80d0d; font-weight: 600; }
.capacity-flag { font-size: 0.8rem; font-weight: 700; color: #b80d0d; text-transform: uppercase; letter-spacing: 0.05em; }
.event-hero-image { margin: 1rem 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.event-hero-image img { width: 100%; height: 320px; object-fit: cover; display: block; }
.event-image-preview { margin: 0.5rem 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.event-image-preview img { width: 100%; height: 180px; object-fit: cover; display: block; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1rem; color: #0f172a; }
.calendar-layout #calendar-root { width: 100%; }
.calendar-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.calendar-controls button { background: #0b7fab; border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.calendar-current { font-weight: 600; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; color: #0f172a; }
.calendar-cell { border: 1px solid #cbd5f5; border-radius: 10px; padding: 0.75rem; background: #fff; min-height: 60px; cursor: pointer; text-align: left; color: #0f172a; font-weight: 600; transition: background 0.15s ease, color 0.15s ease; }
.calendar-cell.header { background: #e7ecff; border: none; cursor: default; font-weight: 700; text-align: center; pointer-events: none; }
.calendar-cell.empty { background: transparent; border: none; cursor: default; }
.calendar-cell.has-events { border-color: #7cb3ff; box-shadow: 0 6px 14px rgba(11,61,96,0.15); background: #e8f1ff; }
.calendar-cell.selected { outline: 2px solid #0b7fab; background: #0b7fab; color: #fff; }
.calendar-sidebar { background: #fff; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); padding: 1rem; color: #0f172a; }
.calendar-event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; color: #0f172a; }
.calendar-event-list li { padding: 0.5rem; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: inherit; }
.calendar-event-list li strong { color: #0b2540; }
.calendar-event-list li span { color: #475569; }
.calendar-event-list li:hover { background: #f0f4ff; }
.calendar-event-list .placeholder { border: none; color: #64748b; cursor: default; }
@media (max-width: 768px) {
    .calendar-layout { display: flex; flex-direction: column; }
    .calendar-controls { flex-wrap: wrap; gap: 0.5rem; }
    .calendar-grid { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .calendar-sidebar { width: 100%; order: 2; }
}
.stats-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,0.08); min-width: 150px; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: bold; display: block; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.settings-card { background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 8px 18px rgba(0,0,0,0.08); text-decoration: none; color: #0b3d60; display: block; }
.settings-card h3 { margin: 0 0 0.5rem; }
.requests-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.requests-table th { background: #0b3d60; color: #fff; text-align: left; }
.requests-table td { border: 1px solid #e2e8f0; }
.requests-table tr.unread td { font-weight: 600; }
.attendance-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.attendance-list li { background: #f8fafc; padding: 0.5rem 0.75rem; border-radius: 12px; display: flex; flex-direction: column; gap: 0.2rem; min-width: 200px; }
.attendance-list .attendee-row { flex-direction: row; align-items: center; }
.attendance-list .waitlist-entry { border: 1px dashed rgba(11,61,96,0.35); }
.attendance-list li.empty { background: transparent; color: #64748b; font-style: italic; }
.attendee-info { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.icon-form { margin: 0; }
.icon-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.contact-inline { font-size: 0.85rem; color: #0b3d60; }
.contact-inline a { color: #0b7fab; }
.token-inline { display: flex; align-items: center; gap: 0.5rem; }
.token-inline code { background: rgba(15,23,42,0.1); padding: 0.25rem 0.5rem; border-radius: 6px; }
.hint { color: #475569; margin: 0.25rem 0 0; font-size: 0.85rem; }
.hint.small { font-size: 0.78rem; }
.login-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.toggle-actions { display: flex; gap: 0.5rem; }
.btn.ghost.dark { background: transparent; border: 1px solid rgba(15,23,42,0.25); color: #0f172a; }
.btn.ghost.dark:hover { background: rgba(15,23,42,0.05); }
.login-form,
.toggle-panel { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 12px 24px rgba(0,0,0,0.08); margin-bottom: 1rem; }
.toggle-panel.hidden { display: none; }
.toggle-panel form,
.login-form { display: flex; flex-direction: column; gap: 0.5rem; }
.toggle-panel textarea { min-height: 120px; resize: vertical; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }
.pagination .btn {
    background: #0b7fab;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(11,61,96,0.25);
}
.pagination .btn:hover {
    background: #095b82;
}
.event-detail section.weather-card {
    background: linear-gradient(135deg, #0b7fab, #0b3d60);
    color: #fff;
    box-shadow: 0 12px 32px rgba(11,61,96,0.35);
    border: none;
}
.weather-card h2 { margin-top: 0; }
.weather-summary { font-size: 1.1rem; margin: 0.5rem 0 0.75rem; }
.weather-details { display: flex; flex-wrap: wrap; gap: 0.75rem; font-weight: 600; }
.weather-details span { background: rgba(255,255,255,0.15); padding: 0.35rem 0.75rem; border-radius: 999px; }
.filters { margin-bottom: 1rem; }
.nav-request { font-weight: 600; }
.nav-alert { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.event-detail section { background: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); margin-bottom: 1rem; }
.field-disabled { background: #e2e8f0 !important; color: #64748b !important; cursor: not-allowed; }
.event-section.highlight { background: linear-gradient(135deg, #0b7fab, #0b3d60); color: #fff; box-shadow: 0 12px 32px rgba(11,61,96,0.35); }
.event-section.highlight h2 { color: #fff; }
.attendance-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.attendance-actions button { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); }
.contact-chip { background: rgba(255,255,255,0.15); padding: 0.5rem 0.75rem; border-radius: 999px; color: #fff; display: inline-block; margin-top: 0.75rem; }
.status-chip { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(11,61,96,0.15); color: #0b3d60; padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.35rem; }
.status-chip.waitlist { background: rgba(251,191,36,0.25); color: #b45309; }
.user-link { color: inherit; text-decoration: underline; }
.user-link:hover { color: #ffdd57; }
.event-section.highlight .attendance-list li { background: rgba(255,255,255,0.1); color: #fff; }
.event-section.highlight .contact-inline { color: rgba(255,255,255,0.85); }
.event-section.highlight .contact-inline a { color: #ffdd57; }
.event-section.highlight .status-chip { background: rgba(255,255,255,0.2); color: #fff; }
.event-section.highlight .status-chip.waitlist { background: rgba(251,191,36,0.35); color: #fffbe7; }
.event-section.highlight.chat-card .chat-message { background: rgba(255,255,255,0.1); color: #fff; }
.event-section.highlight.chat-card .chat-message.mine { background: rgba(255,255,255,0.25); color: #0b3d60; }
.event-section.highlight .capacity-chip { background: rgba(255,255,255,0.15); color: #fff; }
.event-section.highlight .capacity-chip.full { background: rgba(239,68,68,0.35); }
.event-section.highlight .capacity-flag { color: #ffb4a8; }
.event-section.highlight.chat-card .chat-meta,
.event-section.highlight.chat-card .chat-message.mine .chat-meta { color: rgba(255,255,255,0.9); }
.event-section.highlight .attendance-list .waitlist-entry { border-color: rgba(255,255,255,0.5); }
.event-form-card { background: linear-gradient(130deg, #0b7fab, #0b3d60); padding: 1.5rem; border-radius: 18px; box-shadow: 0 18px 40px rgba(11,61,96,0.35); color: #fff; }
.event-form-card form label { color: #0b3d60; }
.event-form-card textarea,
.event-form-card input,
.event-form-card select { border-radius: 10px; border: none; padding: 0.65rem; box-shadow: inset 0 2px 8px rgba(0,0,0,0.08); }
.event-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-block { background: #fff; color: #0b3d60; border-radius: 16px; padding: 1rem; box-shadow: 0 12px 24px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 0.75rem; }
.form-block.compact label { display: flex; flex-direction: column; gap: 0.35rem; }
.age-row { display: flex; gap: 0.75rem; }
.inline-options.column { flex-direction: column; align-items: flex-start; }
.contact-group-picker { display: none; margin-top: 0.75rem; }
.contact-group-picker .checkbox-grid { background: transparent; padding: 0.5rem; border-radius: 12px; }
.request-thread { margin-bottom: 1rem; }
.request-thread.unread { border: 1px solid #ffdd57; box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.request-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.request-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.request-messages { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.request-message { padding: 0.65rem 0.85rem; border-radius: 12px; color: #0f172a; box-shadow: inset 0 2px 6px rgba(15,23,42,0.08); }
.request-message.alt { background: #fff5ce; }
.request-message.primary { background: #e0f2fe; }
.request-message.admin { border: 1px dashed rgba(11,61,96,0.4); }
.request-message header { display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.request-message header strong { color: #fff; }
.request-message p { margin: 0.35rem 0 0; }
.actions { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.messages-layout { display: flex; gap: 1rem; align-items: stretch; }
.thread-list { width: 260px; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.08); padding: 1rem; }
.thread-list header { font-weight: 600; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.thread-row { display: flex; gap: 0.35rem; align-items: center; }
.thread-row form { margin: 0; }
.thread-row form button { padding: 0.2rem 0.45rem; border-radius: 999px; }
.thread-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-radius: 10px; text-decoration: none; color: #0b3d60; margin-bottom: 0.25rem; }
.thread-item.active { background: rgba(11,61,96,0.12); }
.thread-item:hover { background: rgba(11,61,96,0.08); }
.thread-item .hint { margin: 0; }
.chat-pane { flex: 1; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.08); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-pane header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.chat-pane header .hint,
.request-header .hint { color: rgba(255,255,255,0.9); }
.chat-pane .chat-thread { flex: 1; overflow-y: auto; }
.chat-bubble { padding: 0.5rem 0.9rem; border-radius: 16px; margin-bottom: 0.35rem; max-width: 75%; background: #fff5ce; color: #0f172a; box-shadow: inset 0 2px 6px rgba(0,0,0,0.08); }
.chat-bubble.alt { background: #dbeafe; }
.chat-bubble.mine { margin-left: auto; background: #0b7fab; color: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,0.2); }
.chat-bubble header { font-size: 0.75rem; display: flex; justify-content: space-between; opacity: 0.85; }
.chat-pane form { margin-top: auto; }
.thread-empty { color: #475569; font-style: italic; }
.conversation-empty { margin: auto; text-align: center; color: #475569; }
.clear-btn { background: transparent; border: 1px dashed rgba(11,61,96,0.6); color: #0b3d60; }
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }
    nav a { margin-left: 0; margin-right: 0.75rem; }
    .share-row { flex-direction: column; }
    .primary-actions { width: 100%; flex-direction: column; }
    .event-banner { border-radius: 12px; }
    .event-meta-grid { flex-direction: column; }
    .event-card { border-radius: 14px; }
    main { padding: 1rem; }
}
@media (max-width: 480px) {
    body { font-size: 15px; }
    header { padding: 0.75rem; }
    .event-banner, .card, .event-detail section { padding: 1rem; }
    .event-card { padding: 1rem; }
    .checkbox-grid { flex-direction: column; }
}
