/* Fluent Events - Styles */
/* Uses FluentCommunity CSS custom properties for theme consistency */

/* ========================================
   Scroll Fix — FC's .feed_layout has overflow-y: hidden by default.
   Enable scrolling when event components are rendered inside it.
   ======================================== */
.feed_layout:has(.fev_page),
.feed_layout:has(.fev_form),
.feed_layout:has(.fev_event_detail),
.feed_layout:has(.fev_admin_page),
.feed_layout:has(.fev_space_events) {
    overflow-y: auto !important;
}

/* ========================================
   Page Layout
   ======================================== */
.fev_page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.fev_page_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.fev_page_title {
    font-size: var(--fcom-font-size-larger, 26px);
    font-weight: 700;
    color: var(--fcom-primary-text, #19283a);
    margin: 0;
}

.fev_header_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   Buttons
   ======================================== */
.fev_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.fev_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fev_btn_primary {
    background: var(--fcom-primary-button, #2B2E33);
    color: var(--fcom-primary-button-text, #ffffff);
    border-color: var(--fcom-primary-button, #2B2E33);
}

.fev_btn_primary:hover:not(:disabled) {
    opacity: 0.9;
}

.fev_btn_outline {
    background: transparent;
    color: var(--fcom-primary-text, #19283a);
    border-color: var(--fcom-primary-border, #e3e8ee);
}

.fev_btn_outline:hover:not(:disabled) {
    background: var(--fcom-active-bg, #f0f3f5);
}

.fev_btn_danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.fev_btn_danger:hover:not(:disabled) {
    background: #dc2626;
}

.fev_btn_sm {
    padding: 5px 12px;
    font-size: 13px;
}

.fev_btn_block {
    width: 100%;
}

/* ========================================
   Badges
   ======================================== */
.fev_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.fev_badge_success {
    background: #dcfce7;
    color: #166534;
}

.fev_badge_danger {
    background: #fee2e2;
    color: #991b1b;
}

.fev_badge_warning {
    background: #fef9c3;
    color: #854d0e;
}

.fev_badge_secondary {
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
}

.fev_event_type_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fev_type_in_person {
    background: #dbeafe;
    color: #1e40af;
}

.fev_type_online {
    background: #f3e8ff;
    color: #6b21a8;
}

.fev_type_hybrid {
    background: #d1fae5;
    color: #065f46;
}

/* ========================================
   Filters & Search
   ======================================== */
.fev_filters {
    margin-bottom: 20px;
}

.fev_scope_tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
    padding-bottom: 0;
}

.fev_scope_tabs button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--fcom-secondary-text, #525866);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: -1px;
    transition: all 0.15s ease;
}

.fev_scope_tabs button:hover {
    color: var(--fcom-primary-text, #19283a);
}

.fev_scope_tabs button.active {
    color: var(--fcom-primary-text, #19283a);
    border-bottom-color: var(--fcom-primary-button, #2B2E33);
}

.fev_filter_controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fev_search_input,
.fev_input,
.fev_select,
.fev_textarea {
    padding: 8px 12px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    font-size: 14px;
    color: var(--fcom-primary-text, #19283a);
    background: var(--fcom-primary-bg, #ffffff);
    transition: border-color 0.15s ease;
    outline: none;
    width: 100%;
}

.fev_search_input:focus,
.fev_input:focus,
.fev_select:focus,
.fev_textarea:focus {
    border-color: var(--fcom-primary-button, #2B2E33);
}

.fev_search_input {
    width: 200px;
    flex-shrink: 0;
}

.fev_select {
    width: auto;
    min-width: 140px;
    cursor: pointer;
}

.fev_textarea {
    min-height: 100px;
    resize: vertical;
}

.fev_textarea_lg {
    min-height: 180px;
}

/* Rich Text Editor */
.fev_richtext_wrap {
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    overflow: hidden;
    background: var(--fcom-primary-bg, #ffffff);
    transition: border-color 0.15s ease;
}

.fev_richtext_wrap:focus-within {
    border-color: var(--fcom-primary-button, #2B2E33);
}

.fev_richtext_toolbar {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
    background: var(--fcom-secondary-content-bg, #f9fafb);
}

.fev_rt_sep {
    width: 1px;
    height: 18px;
    background: var(--fcom-primary-border, #e3e8ee);
    margin: 0 4px;
}

.fev_rt_btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--fcom-secondary-text, #525866);
    transition: background 0.15s, color 0.15s;
}

.fev_rt_btn:hover {
    background: var(--fcom-active-bg, #e8eaed);
    color: var(--fcom-primary-text, #19283a);
}

.fev_rt_btn svg {
    width: 16px;
    height: 16px;
}

.fev_richtext_editor {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fcom-primary-text, #19283a);
    outline: none;
}

.fev_richtext_editor_lg {
    min-height: 200px;
    max-height: 500px;
}

.fev_richtext_editor:empty::before {
    content: attr(data-placeholder);
    color: var(--fcom-text-off, #959595);
    pointer-events: none;
}

.fev_richtext_editor p {
    margin: 0 0 8px;
}

.fev_richtext_editor ul,
.fev_richtext_editor ol {
    margin: 4px 0 8px 20px;
    padding: 0;
}

.fev_richtext_editor ul {
    list-style: disc;
}

.fev_richtext_editor a {
    color: var(--fcom-text-link, #2271b1);
    text-decoration: underline;
}

.fev_input_error {
    border-color: #ef4444 !important;
}

/* ========================================
   Events Grid
   ======================================== */
.fev_events_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .fev_events_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========================================
   Event Card
   ======================================== */
.fev_event_card {
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fev_event_card:hover {
    border-color: var(--fcom-secondary-border, #9CA3AF);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fev_card_header {
    position: relative;
}

.fev_card_image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.fev_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fev_card_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fcom-active-bg, #f0f3f5), var(--fcom-secondary-content-bg, #e8eaed));
    color: var(--fcom-secondary-text, #525866);
}

.fev_card_month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fev_card_day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.fev_card_body {
    padding: 14px 16px;
}

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

.fev_card_category {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
}

.fev_card_title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fev_card_excerpt {
    font-size: .875rem;
    color: var(--fcom-secondary-text, #525866);
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fev_card_date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    color: var(--fcom-secondary-text, #525866);
    margin: 0 0 10px;
}

.fev_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--fcom-text-off, #959595);
    gap: 8px;
}

.fev_card_location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.fev_card_attendees {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.fev_card_footer .fev_icon_subtle svg,
.fev_card_date .fev_icon_subtle svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   RSVP Actions
   ======================================== */
.fev_rsvp_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   Event Detail
   ======================================== */
.fev_event_detail {
    max-width: 960px;
}

/* ========================================
   SVG Icon Helpers
   ======================================== */
.fev_icon_inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 0;
}

.fev_icon_inline svg {
    width: 15px;
    height: 15px;
}

.fev_icon_subtle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fcom-secondary-text, #525866);
    flex-shrink: 0;
    line-height: 0;
}

.fev_icon_subtle svg {
    width: 15px;
    height: 15px;
}

/* ========================================
   Event Detail - Header & Cover
   ======================================== */
.fev_detail_header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.fev_back_btn {
    margin-right: auto;
}

.fev_detail_cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--fcom-secondary-content-bg, #f0f3f5);
}

.fev_detail_cover img {
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: cover;
    display: block;
}

/* ========================================
   Event Detail - Content Grid
   ======================================== */
.fev_detail_content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

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

.fev_detail_main {
    min-width: 0;
}

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

.fev_detail_title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 20px;
    line-height: 1.3;
}

/* ========================================
   Event Detail - Meta List (date, location, online, organizer)
   ======================================== */
.fev_detail_meta_list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fev_detail_meta_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_detail_meta_item:last-child {
    border-bottom: none;
}

.fev_meta_icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    border-radius: 8px;
    color: var(--fcom-secondary-text, #525866);
}

.fev_meta_icon svg {
    width: 18px;
    height: 18px;
}

.fev_organizer_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fev_meta_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fev_meta_label {
    font-size: 15px;
    font-weight: 500;
    color: var(--fcom-primary-text, #19283a);
    line-height: 1.45;
}

.fev_meta_sub {
    font-size: .8125rem;
    color: var(--fcom-secondary-text, #525866);
    line-height: 1.45;
}

.fev_hint {
    font-style: italic;
    color: var(--fcom-text-off, #959595);
}

.fev_meeting_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fcom-text-link, #2271b1);
    text-decoration: none;
    font-weight: 500;
    font-size: .8125rem;
}

.fev_meeting_link:hover {
    text-decoration: underline;
}

.fev_meeting_link .fev_icon_inline svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Event Detail - Description
   ======================================== */
.fev_detail_description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--fcom-primary-border, #e3e8ee);
    font-size: 1em;
    line-height: 1.7;
    color: var(--fcom-primary-text, #19283a);
    word-wrap: break-word;
}

/* Normalize inline styles injected by rich text editor */
.fev_detail_description * {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.fev_detail_description p {
    margin: 0 0 12px;
}

.fev_detail_description a {
    color: var(--fcom-text-link, #2271b1) !important;
}

.fev_detail_description ul,
.fev_detail_description ol {
    margin: 4px 0 12px 20px;
    padding: 0;
}

.fev_detail_description ul {
    list-style: disc;
}

.fev_detail_description ol {
    list-style: decimal;
}

.fev_detail_description li {
    margin-bottom: 4px;
}

/* ========================================
   Detail Sidebar
   ======================================== */
.fev_detail_sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fev_sidebar_card {
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 12px;
    padding: 18px;
}

.fev_sidebar_rsvp {
    text-align: center;
}

.fev_sidebar_rsvp .fev_rsvp_actions {
    margin-bottom: 16px;
}

.fev_sidebar_rsvp .fev_btn_primary {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
}

.fev_sidebar_card h3,
.fev_sidebar_card h4 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 12px;
}

.fev_sidebar_title {
    font-size: .875rem;
    font-weight: 600;
    color: var(--fcom-secondary-text, #525866);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

/* ========================================
   Attendance Info (sidebar)
   ======================================== */
.fev_attendance_info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fev_attendance_row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: var(--fcom-secondary-text, #525866);
    padding: 4px 0;
}

.fev_att_icon {
    display: flex;
    color: var(--fcom-secondary-text, #525866);
}

.fev_att_icon svg {
    width: 15px;
    height: 15px;
}

.fev_att_value {
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    min-width: 20px;
}

.fev_att_label {
    color: var(--fcom-secondary-text, #525866);
}

/* ========================================
   Calendar Actions (sidebar)
   ======================================== */
.fev_cal_actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fev_export_row {
    margin-top: 12px;
}

/* ========================================
   Attendees List
   ======================================== */
.fev_attendees_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

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

.fev_attendee_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.fev_attendee_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fev_avatar_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fcom-active-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
    font-size: 13px;
    font-weight: 600;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.fev_attendee_name {
    font-size: .8125rem;
    color: var(--fcom-primary-text, #19283a);
    font-weight: 500;
}

.fev_attendee_mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--fcom-text-off, #959595);
}

.fev_attendee_mode svg {
    width: 12px;
    height: 12px;
}

.fev_attendee_info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

/* ========================================
   Forms
   ======================================== */
.fev_form {
    max-width: 720px;
}

.fev_form_section {
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fev_form_section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_form_group {
    margin-bottom: 14px;
}

.fev_form_group:last-child {
    margin-bottom: 0;
}

.fev_form_group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fcom-primary-text, #19283a);
    margin-bottom: 5px;
}

.fev_form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.fev_form_actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.fev_checkbox_group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.fev_checkbox_label {
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
    cursor: pointer;
}

.fev_toggle_label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
    cursor: pointer;
}

.fev_toggle_label input[type="checkbox"] {
    display: none;
}

.fev_toggle_track {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--fcom-secondary-content-bg, #d1d5db);
    border-radius: 11px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.fev_toggle_track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.fev_toggle_label input:checked + .fev_toggle_track {
    background: var(--fcom-color-primary, #4f46e5);
}

.fev_toggle_label input:checked + .fev_toggle_track::after {
    transform: translateX(18px);
}

/* ── Custom Switch (no hidden input) ──────────────────────────────────────── */
.fev_switch_row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.fev_switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--fcom-secondary-content-bg, #d1d5db);
    border-radius: 11px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.fev_switch_knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.fev_switch_on {
    background: var(--fcom-color-primary, #4f46e5);
}

.fev_switch_on .fev_switch_knob {
    transform: translateX(18px);
}

.fev_switch_text {
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
}

.fev_switch_row--disabled {
    cursor: default;
    opacity: 0.7;
}

.fev_switch--disabled {
    pointer-events: none;
}

.fev_field_hint--success {
    color: var(--fcom-color-success, #16a34a);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fev_field_hint--success svg {
    width: 14px;
    height: 14px;
}

/* ── Feed Preview ────────────────────────────────────────────────────────── */
.fev_feed_preview {
    margin-top: 10px;
}

.fev_feed_preview_label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fcom-secondary-text, #9ca3af);
    margin-bottom: 6px;
}

.fev_feed_preview--muted {
    opacity: 0.5;
}

/* Feed Preview — mimics FC feed post card */
.fev_fp_feed_card {
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 10px;
    background: var(--fcom-primary-bg, #fff);
    overflow: hidden;
}

.fev_fp_header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 0;
}

.fev_fp_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.fev_fp_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fev_fp_avatar_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fcom-active-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
    font-size: 14px;
    font-weight: 600;
}

.fev_fp_meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fev_fp_author {
    font-size: 13px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
}

.fev_fp_time {
    font-size: 12px;
    color: var(--fcom-secondary-text, #525866);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fev_fp_body {
    padding: 8px 14px;
}

.fev_fp_text {
    font-size: 14px;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fev_fp_excerpt {
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
    margin: 0;
    line-height: 1.5;
}

.fev_fp_cover {
    padding: 0 14px 8px;
}

.fev_fp_cover img {
    width: 100%;
    border-radius: 8px;
    max-height: 160px;
    object-fit: cover;
}

.fev_fp_event_embed {
    margin: 0 14px 10px;
    padding: 10px 14px;
    background: var(--fcom-secondary-content-bg, #f9fafb);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.fev_fp_embed_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fev_fp_embed_date {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fcom-secondary-text, #525866);
}

.fev_fp_embed_title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
}

.fev_fp_embed_type {
    font-size: 12px;
    color: var(--fcom-secondary-text, #525866);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fev_fp_embed_arrow {
    font-size: 18px;
    color: var(--fcom-secondary-text, #525866);
}

.fev_fp_actions_bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 14px;
    border-top: 1px solid var(--fcom-primary-border, #e3e8ee);
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
}

.fev_fp_actions_bar span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fev_color_input {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

/* ========================================
   Status & Loading
   ======================================== */
.fev_loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--fcom-secondary-text, #525866);
    font-size: 15px;
}

.fev_empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fcom-text-off, #959595);
    font-size: 16px;
}

.fev_empty_small {
    text-align: center;
    padding: 20px;
    color: var(--fcom-text-off, #959595);
    font-size: 14px;
}

.fev_error {
    text-align: center;
    padding: 40px 20px;
    color: #ef4444;
    font-size: 15px;
}

.fev_load_more {
    text-align: center;
    padding: 20px 0;
}

/* ========================================
   Admin Page
   ======================================== */
.fev_admin_page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.fev_stats_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .fev_stats_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fev_stat_card {
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fev_stat_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
    margin-bottom: 4px;
}

.fev_stat_icon svg {
    width: 18px;
    height: 18px;
}

.fev_stat_value {
    font-size: var(--fcom-font-size-large, 22px);
    font-weight: 700;
    color: var(--fcom-primary-text, #19283a);
    line-height: 1.2;
}

.fev_stat_label {
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
    margin-top: 2px;
}

/* ========================================
   Admin Tabs
   ======================================== */
.fev_admin_tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_admin_tabs button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--fcom-secondary-text, #525866);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: -1px;
    transition: all 0.15s ease;
}

.fev_admin_tabs button:hover {
    color: var(--fcom-primary-text, #19283a);
}

.fev_admin_tabs button.active {
    color: var(--fcom-primary-text, #19283a);
    border-bottom-color: var(--fcom-primary-button, #2B2E33);
}

.fev_admin_section {
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fev_admin_section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 16px;
}

/* ========================================
   Table
   ======================================== */
.fev_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fev_table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcom-secondary-text, #525866);
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
    color: var(--fcom-primary-text, #19283a);
}

.fev_table tr:last-child td {
    border-bottom: none;
}

.fev_table tr:hover td {
    background: var(--fcom-active-bg, #f0f3f5);
}

/* ========================================
   Categories List (Admin)
   ======================================== */
.fev_categories_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fev_category_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    background: var(--fcom-primary-bg, #ffffff);
}

.fev_category_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fev_category_name {
    font-size: 14px;
    font-weight: 500;
    color: var(--fcom-primary-text, #19283a);
    flex: 1;
}

/* ========================================
   List View Meta
   ======================================== */
.fev_list_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 16px;
    color: var(--fcom-secondary-text, #525866);
}

.fev_list_meta .fev_icon_subtle svg {
    width: 13px;
    height: 13px;
}

.fev_list_excerpt {
    font-size: 16px;
    color: var(--fcom-text-off, #959595);
    line-height: 1.4;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fev_list_meta_sep {
    color: var(--fcom-text-off, #959595);
}

.fev_list_attendees {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--fcom-secondary-text, #525866);
    flex-shrink: 0;
}

.fev_list_attendees .fev_icon_subtle svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Space Events Tab
   ======================================== */
.fev_space_events {
    padding: 16px 0;
}

.fev_space_events .fev_page_header {
    margin-bottom: 16px;
}

.fev_space_events .fev_events_grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .fev_space_events .fev_events_grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 600px) {
    .fev_page {
        padding: 12px 0;
    }

    .fev_page_header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fev_filter_controls {
        flex-direction: column;
    }

    .fev_search_input {
        width: 100%;
    }

    .fev_select {
        width: 100%;
    }

    .fev_detail_header {
        flex-wrap: wrap;
    }

    .fev_form_actions {
        flex-direction: column;
    }

    .fev_form_actions .fev_btn {
        width: 100%;
    }
}

/* ========================================
   Cover Image Picker
   ======================================== */
.fev_cover_picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fev_cover_preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    max-height: 200px;
}

.fev_cover_preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.fev_cover_preview .fev_cover_remove {
    position: absolute;
    top: 8px;
    right: 8px;
}

.fev_cover_actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   Tag Autocomplete Picker (FluentCRM)
   ======================================== */
.fev_field_hint {
    font-size: 12px;
    color: var(--fcom-text-off, #959595);
    margin: 2px 0 6px;
    line-height: 1.4;
}

.fev_tag_picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fev_tag_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fev_tag_pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--fcom-active-bg, #f0f3f5);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fcom-primary-text, #19283a);
}

.fev_tag_pill_remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: var(--fcom-secondary-text, #525866);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    transition: background 0.15s ease;
}

.fev_tag_pill_remove:hover {
    background: #ef4444;
}

.fev_tag_input_wrap {
    position: relative;
}

.fev_tag_search_input {
    width: 100% !important;
}

.fev_tag_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fev_tag_option {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--fcom-primary-text, #19283a);
    cursor: pointer;
    transition: background 0.1s ease;
}

.fev_tag_option:hover {
    background: var(--fcom-active-bg, #f0f3f5);
}

.fev_tag_no_results {
    color: var(--fcom-text-off, #959595);
    font-style: italic;
    cursor: default;
}

.fev_tag_no_results:hover {
    background: transparent;
}

/* ====================================
   Recurrence Editor Styles
   ==================================== */

.fev_recurrence_editor {
    padding: 16px;
    background: var(--fcom-active-bg, #f7f9fb);
    border-radius: 10px;
    margin-top: 8px;
}

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

.fev_input_short {
    width: 80px !important;
    min-width: 80px;
}

.fev_recurrence_interval_label {
    font-size: 14px;
    color: var(--fcom-secondary-text, #65748c);
    white-space: nowrap;
}

.fev_days_of_week {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.fev_day_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    background: var(--fcom-primary-bg, #ffffff);
    color: var(--fcom-secondary-text, #65748c);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.fev_day_btn:hover {
    border-color: var(--fcom-primary, #3b82f6);
    color: var(--fcom-primary, #3b82f6);
}

.fev_day_btn_active {
    background: var(--fcom-primary, #3b82f6);
    border-color: var(--fcom-primary, #3b82f6);
    color: #ffffff;
}

.fev_day_btn_active:hover {
    background: var(--fcom-primary, #3b82f6);
    color: #ffffff;
    opacity: 0.9;
}

/* Recurrence badge on event cards */
.fev_badge_recurrence {
    display: inline-flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 6px;
    background: var(--fcom-active-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
}

.fev_badge_recurrence .fev_icon_inline svg {
    width: 13px;
    height: 13px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .fev_days_of_week {
        gap: 4px;
    }

    .fev_day_btn {
        width: 38px;
        height: 32px;
        font-size: 12px;
    }

    .fev_recurrence_interval {
        flex-wrap: wrap;
    }
}

/* ========================================
   Integration Settings (Zoom / Google Meet)
   ======================================== */
.fev_integration_desc {
    font-size: 14px;
    color: var(--fcom-secondary-text, #525866);
    line-height: 1.6;
    margin: 0 0 16px;
}

.fev_integration_status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.fev_status_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.fev_status_connected {
    background: #dcfce7;
    color: #166534;
}

.fev_status_disconnected {
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    color: var(--fcom-secondary-text, #525866);
}

.fev_status_warning {
    background: #fef9c3;
    color: #854d0e;
}

.fev_test_result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.fev_test_success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.fev_test_error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.fev_integration_help {
    margin-top: 24px;
    padding: 20px;
    background: var(--fcom-active-bg, #f7f9fb);
    border-radius: 10px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_integration_help h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 12px;
}

.fev_integration_help ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--fcom-secondary-text, #525866);
    line-height: 1.8;
}

.fev_integration_help ol a {
    color: var(--fcom-link, #3b82f6);
    text-decoration: none;
}

.fev_integration_help ol a:hover {
    text-decoration: underline;
}

.fev_integration_help code {
    background: var(--fcom-primary-bg, #ffffff);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_redirect_uri_box {
    margin: 10px 0 14px;
    padding: 10px 14px;
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 8px;
    word-break: break-all;
}

.fev_redirect_uri_box code {
    font-size: 13px;
    color: var(--fcom-primary-text, #19283a);
    background: none;
    border: none;
    padding: 0;
}

/* ========================================
   View Toggle
   ======================================== */
.fev_view_toggle {
    display: inline-flex;
    gap: 2px;
    background: var(--fcom-secondary-content-bg, #f0f3f5);
    border-radius: 8px;
    padding: 3px;
}

.fev_view_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--fcom-text-off, #959595);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.fev_view_btn:hover {
    color: var(--fcom-primary-text, #19283a);
}

.fev_view_btn.active {
    background: var(--fcom-primary-bg, #ffffff);
    color: var(--fcom-primary-text, #19283a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fev_view_btn svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Category Chips (enhanced filter)
   ======================================== */
.fev_category_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fev_category_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    background: var(--fcom-primary-bg, #ffffff);
    color: var(--fcom-secondary-text, #525866);
    cursor: pointer;
    transition: all 0.15s ease;
}

.fev_category_chip:hover {
    border-color: var(--fcom-secondary-border, #9CA3AF);
}

.fev_category_chip.active {
    font-weight: 600;
}

.fev_chip_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   List View
   ======================================== */
.fev_events_list_view {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fev_list_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fev_list_item:hover {
    border-color: var(--fcom-secondary-border, #9CA3AF);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.fev_list_date_col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    align-self: stretch;
    flex-shrink: 0;
    background: #e97a1f;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
}

.fev_list_day {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.fev_list_month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.fev_list_thumb {
    width: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.fev_list_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fev_list_inline_date {
    font-size: 13px;
    font-weight: 500;
    color: var(--fcom-secondary-text, #525866);
}

.fev_list_info {
    flex: 1;
    min-width: 0;
}

.fev_list_info_top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.fev_list_cat {
    font-size: 12px;
    font-weight: 500;
}

.fev_badge_sm {
    font-size: 11px;
    padding: 2px 7px;
}

.fev_list_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Calendar Component
   ======================================== */
.fev_calendar {
    margin-bottom: 20px;
}

.fev_calendar_header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.fev_calendar_month_label {
    font-size: 18px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    margin: 0;
    min-width: 180px;
    text-align: center;
}

.fev_calendar_today_btn {
    margin-left: auto;
}

/* Calendar Grid */
.fev_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 12px;
    overflow: hidden;
    background: var(--fcom-primary-bg, #ffffff);
}

.fev_calendar_day_header {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fcom-secondary-text, #525866);
    background: var(--fcom-secondary-content-bg, #f8f9fa);
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_calendar_cell {
    min-height: 90px;
    padding: 4px;
    border-right: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-bottom: 1px solid var(--fcom-primary-border, #e3e8ee);
    background: var(--fcom-primary-bg, #ffffff);
    position: relative;
}

.fev_calendar_cell:nth-child(7n) {
    border-right: none;
}

.fev_calendar_cell_outside {
    background: var(--fcom-secondary-content-bg, #f8f9fa);
}

.fev_calendar_cell_outside .fev_calendar_day_num {
    color: var(--fcom-text-off, #c0c5cc);
}

.fev_calendar_cell_today {
    background: var(--fcom-active-bg, #f0f3f5);
}

.fev_calendar_cell_today .fev_calendar_day_num {
    background: var(--fcom-primary-button, #2B2E33);
    color: var(--fcom-primary-button-text, #ffffff);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fev_calendar_day_num {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--fcom-primary-text, #19283a);
    margin-bottom: 2px;
    line-height: 1;
    padding: 4px;
}

.fev_calendar_events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fev_calendar_event_bar {
    padding: 2px 5px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    border-left: 3px solid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    line-height: 1.4;
    transition: opacity 0.15s ease;
}

.fev_calendar_event_bar:hover {
    opacity: 0.8;
}

.fev_calendar_more {
    font-size: 10px;
    color: var(--fcom-text-off, #959595);
    padding: 1px 5px;
    cursor: default;
}

/* Calendar Agenda (mobile fallback) */
.fev_calendar_agenda {
    display: none;
}

@media (max-width: 700px) {
    .fev_calendar_grid {
        display: none;
    }

    .fev_calendar_agenda {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}

.fev_agenda_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--fcom-primary-bg, #ffffff);
    border: 1px solid var(--fcom-primary-border, #e3e8ee);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fev_agenda_item:hover {
    border-color: var(--fcom-secondary-border, #9CA3AF);
}

.fev_agenda_date_col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    flex-shrink: 0;
}

.fev_agenda_day {
    font-size: 20px;
    font-weight: 700;
    color: var(--fcom-primary-text, #19283a);
    line-height: 1;
}

.fev_agenda_month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fcom-secondary-text, #525866);
    margin-top: 2px;
}

.fev_agenda_info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.fev_agenda_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fev_agenda_details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fev_agenda_title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fcom-primary-text, #19283a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fev_agenda_time {
    font-size: 12px;
    color: var(--fcom-text-off, #959595);
}

.fev_badge_xs {
    font-size: 10px;
    padding: 1px 6px;
}

.fev_table_link {
    color: var(--fcom-text-link, #2271b1);
    text-decoration: none;
    font-weight: 500;
}

.fev_table_link:hover {
    text-decoration: underline;
}

.fev_table_nowrap {
    white-space: nowrap;
}

.fev_table_actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

/* ========================================
   Dark Mode Compatibility
   ======================================== */
html.fcom_dark_mode .fev_badge_success {
    background: rgba(22, 101, 52, 0.2);
    color: #86efac;
}

html.fcom_dark_mode .fev_badge_danger {
    background: rgba(153, 27, 27, 0.2);
    color: #fca5a5;
}

html.fcom_dark_mode .fev_badge_warning {
    background: rgba(133, 77, 14, 0.2);
    color: #fde68a;
}

html.fcom_dark_mode .fev_type_in_person {
    background: rgba(30, 64, 175, 0.2);
    color: #93c5fd;
}

html.fcom_dark_mode .fev_type_online {
    background: rgba(107, 33, 168, 0.2);
    color: #d8b4fe;
}

html.fcom_dark_mode .fev_type_hybrid {
    background: rgba(6, 95, 70, 0.2);
    color: #6ee7b7;
}

html.fcom_dark_mode .fev_btn_danger {
    background: #dc2626;
    border-color: #dc2626;
}

html.fcom_dark_mode .fev_status_connected {
    background: rgba(22, 101, 52, 0.2);
    color: #86efac;
}

html.fcom_dark_mode .fev_status_warning {
    background: rgba(133, 77, 14, 0.2);
    color: #fde68a;
}

html.fcom_dark_mode .fev_test_success {
    background: rgba(22, 101, 52, 0.15);
    color: #86efac;
    border-color: rgba(22, 101, 52, 0.3);
}

html.fcom_dark_mode .fev_test_error {
    background: rgba(153, 27, 27, 0.15);
    color: #fca5a5;
    border-color: rgba(153, 27, 27, 0.3);
}

html.fcom_dark_mode .fev_calendar_event_bar {
    font-weight: 400;
}

html.fcom_dark_mode .fev_event_card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Responsive Enhancements
   ======================================== */
@media (max-width: 600px) {
    .fev_view_toggle {
        order: -1;
    }

    .fev_list_item {
        padding: 10px 12px;
        gap: 10px;
    }

    .fev_list_thumb {
        display: none;
    }

    .fev_list_date_col {
        min-width: 36px;
    }

    .fev_list_day {
        font-size: 18px;
    }

    .fev_list_attendees {
        display: none;
    }

    .fev_category_chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .fev_category_chip {
        flex-shrink: 0;
    }

    .fev_calendar_header {
        flex-wrap: wrap;
    }

    .fev_calendar_month_label {
        font-size: 16px;
        min-width: auto;
    }

    .fev_stats_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fev_table {
        font-size: 13px;
    }

    .fev_table th:nth-child(n+4),
    .fev_table td:nth-child(n+4) {
        display: none;
    }
}

/* ========================================
   Notices (info / warning / success)
   ======================================== */
.fev_notice {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.fev_notice_info {
    background: var(--fcom-blue-light, #eff6ff);
    color: var(--fcom-blue, #2563eb);
    border: 1px solid var(--fcom-blue-border, #bfdbfe);
}

.fev_notice_warning {
    background: var(--fcom-yellow-light, #fefce8);
    color: var(--fcom-yellow-dark, #92400e);
    border: 1px solid var(--fcom-yellow-border, #fde68a);
}

.fev_notice_success {
    background: var(--fcom-green-light, #f0fdf4);
    color: var(--fcom-green-dark, #166534);
    border: 1px solid var(--fcom-green-border, #bbf7d0);
}

/* ========================================
   Paid Ticket (Paywall) section
   ======================================== */
.fev_loading_sm {
    font-size: 13px;
    color: var(--fcom-text-muted, #6b7280);
    padding: 8px 0;
}

.fev_paywall_linked {
    margin-bottom: 16px;
}

.fev_paywall_linked_title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fcom-text, #111827);
    margin: 0 0 8px;
}

.fev_paywall_product_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--fcom-surface, #f9fafb);
    border: 1px solid var(--fcom-border, #e5e7eb);
    border-radius: 6px;
    margin-bottom: 6px;
}

.fev_paywall_product_name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--fcom-text, #111827);
}

.fev_paywall_product_price {
    font-size: 13px;
    color: var(--fcom-text-muted, #6b7280);
}

.fev_paywall_add_product {
    margin-top: 8px;
}

/* Form layout helpers */
.fev_form_row_align_end {
    align-items: flex-end;
}

.fev_form_group_grow {
    flex: 1;
}

/* ========================================
   Paywall block (EventDetailPage)
   ======================================== */
.fev_paywall_block {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--fcom-border, #e5e7eb);
    border-radius: 10px;
    background: var(--fcom-surface, #f9fafb);
    text-align: center;
}

.fev_paywall_block_icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.fev_paywall_block_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fcom-text, #111827);
    margin: 0 0 6px;
}

.fev_paywall_block_desc {
    font-size: 13px;
    color: var(--fcom-text-muted, #6b7280);
    margin: 0 0 16px;
}

.fev_paywall_block_full {
    font-size: 13px;
    color: var(--fcom-text-muted, #6b7280);
    margin: 8px 0 0;
}

.fev_paywall_block .fev_btn_primary {
    padding: 10px 24px;
    font-size: 15px;
}

/* ========================================
   Discussion / Comments Section
   ======================================== */
.fev_discussion_section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fcom-border, #e5e7eb);
}

.fev_section_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fcom-text, #1f2937);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fev_comment_count {
    font-size: 14px;
    font-weight: 400;
    color: var(--fcom-text-muted, #6b7280);
}

.fev_comment_form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.fev_comment_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fcom-border, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--fcom-bg, #ffffff);
    color: var(--fcom-text, #1f2937);
    resize: vertical;
    min-height: 44px;
    transition: border-color 0.15s;
}

.fev_comment_input:focus {
    outline: none;
    border-color: var(--fcom-primary, #4f46e5);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.fev_comment_form .fev_btn_primary {
    align-self: flex-end;
}

.fev_comments_list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fev_comment_item {
    padding: 12px 0;
    border-bottom: 1px solid var(--fcom-border-light, #f3f4f6);
}

.fev_comment_item:last-child {
    border-bottom: none;
}

.fev_comment_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.fev_comment_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fev_comment_avatar.fev_avatar_sm {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.fev_comment_meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fev_comment_author {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--fcom-text, #1f2937);
}

.fev_comment_time {
    font-size: 12px;
    color: var(--fcom-text-muted, #9ca3af);
}

.fev_comment_body {
    font-size: .875rem;
    line-height: 1.5;
    color: var(--fcom-text, #374151);
    padding-left: 42px;
}

.fev_comment_body p {
    margin: 0 0 4px;
}

.fev_comment_actions {
    padding-left: 42px;
    margin-top: 4px;
}

.fev_btn_text {
    background: none;
    border: none;
    color: var(--fcom-text-muted, #6b7280);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.fev_btn_text:hover {
    color: var(--fcom-primary, #4f46e5);
}

.fev_reply_form {
    padding-left: 42px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fev_reply_input {
    min-height: 36px;
    font-size: 13px;
}

.fev_reply_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fev_replies {
    padding-left: 42px;
    margin-top: 4px;
}

.fev_reply_item {
    padding: 8px 0;
}

.fev_reply_item .fev_comment_body {
    padding-left: 34px;
}

.fev_loading_sm {
    font-size: 13px;
    color: var(--fcom-text-muted, #9ca3af);
    padding: 8px 0;
}

/* Rich content from event content field */
.fev_detail_content_rich {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--fcom-text, #374151);
}

.fev_detail_content_rich * {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.fev_detail_content_rich a {
    color: var(--fcom-primary, #4f46e5) !important;
}

.fev_detail_content_rich h2,
.fev_detail_content_rich h3,
.fev_detail_content_rich h4 {
    margin: 20px 0 8px;
    color: var(--fcom-text, #1f2937);
}

.fev_detail_content_rich p {
    margin: 0 0 12px;
}

.fev_detail_content_rich ul,
.fev_detail_content_rich ol {
    padding-left: 24px;
    margin: 0 0 12px;
}

.fev_detail_content_rich ul {
    list-style: disc;
}

.fev_detail_content_rich ol {
    list-style: decimal;
}

.fev_detail_content_rich li {
    margin-bottom: 4px;
    padding-left: 4px;
}

.fev_detail_content_section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--fcom-primary-border, #e3e8ee);
}

.fev_detail_content_rich a {
    color: var(--fcom-primary, #4f46e5);
}

.fev_detail_content_rich img {
    max-width: 100%;
    border-radius: 8px;
}
