html {
    scroll-behavior: smooth;
}

.flatpickr-calendar {
    width: 260px !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    font-family: 'Manrope', sans-serif !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.flatpickr-months {
    background: #7AB800 !important;
    padding: 5px 10px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    position: static !important;
    
    height: 28px !important;
    width: 28px !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}



.flatpickr-current-month {
    position: static !important;
    
    width: auto !important;
    left: auto !important;
    padding: 3px 0 0 0 !important;
    
    font-size: 0.9rem !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.flatpickr-current-month input.cur-year {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0 !important;
    margin: 0 0 0 4px !important;
    color: #ffffff !important;
}

.flatpickr-weekdays {
    background: #7AB800 !important;
    padding-bottom: 5px !important;
    margin-top: -5px !important;
    
}

span.flatpickr-weekday {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

.flatpickr-days {
    width: 260px !important;
    padding: 5px !important;
    background: #fff !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    justify-content: center !important;
}

.flatpickr-day {
    max-width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 12px !important;
    border-radius: 0.5rem !important;
    margin: 2px !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #7AB800 !important;
    border-color: #7AB800 !important;
    box-shadow: none !important;
}

.flatpickr-day:hover {
    background: #f0fdf4 !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    width: 12px !important;
    height: 12px !important;
    fill: #fff !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: rgba(255, 255, 255, 0.8) !important;
}


body {
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(122, 184, 0, 0.09), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.07), transparent 25%),
        radial-gradient(circle at 20% 88%, rgba(13, 148, 136, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
}

.section-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--accent, #7ab800) 0%, transparent 55%);
    opacity: 0.08;
    pointer-events: none;
}

.stat-card .stat-icon {
    position: relative;
    z-index: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.stat-card h3,
.stat-card p {
    position: relative;
    z-index: 1;
}

.divider-soft {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
}

.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, rgba(122, 184, 0, 0.9), rgba(122, 184, 0, 0.55));
}

.card-accent.blue::before {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.55));
}

.card-accent.teal::before {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.9), rgba(13, 148, 136, 0.55));
}


.forum-textarea {
    --forum-line-height: 1.4rem;
    --forum-min-lines: 1.5;
    --forum-max-lines: 5;
    line-height: var(--forum-line-height);
    min-height: calc(var(--forum-line-height) * var(--forum-min-lines));
    max-height: calc(var(--forum-line-height) * var(--forum-max-lines));
    resize: none;
    overflow-y: hidden;
}


.dm-accordion {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.9rem;
    background: #f9fafb;
    margin-top: 1.5rem;
}

.dm-accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.9rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
}

.dm-accordion-toggle span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.dm-accordion-toggle span:first-child::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7AB800, #a5dc21);
    box-shadow: 0 0 0 3px rgba(122, 184, 0, 0.18);
}

.dm-accordion-chevron {
    transition: transform 0.25s ease, opacity 0.2s ease;
    font-size: 0.88rem;
    color: #9ca3af;
    opacity: 0.75;
}

.dm-accordion-toggle.is-open .dm-accordion-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.dm-accordion-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.3rem;
    opacity: 0;
    transition: max-height .28s ease, opacity .22s ease, padding .22s ease;
}

.dm-accordion-panel.is-open {
    max-height: 600px;
    opacity: 1;
    padding: 0 1.3rem 1.1rem;
}


[data-tooltip] {
    position: relative;
}

.etapa-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 220px;
    max-width: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 30;
}

.etapa-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
}

[data-tooltip]:hover .etapa-tooltip,
[data-tooltip]:focus-visible .etapa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.etapa-tooltip-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.15rem;
}

.etapa-tooltip-desc {
    font-size: 0.78rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
}

.project-stage-label {
    margin-left: 1.6rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.project-stage-dot {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    color: #9ca3af;
}
.project-stage-dot.is-active {
    color: #ffffff;
}
.project-stage-dot.is-inactive {
    color: #9ca3af;
}

body.comite-variant-alt .pill {
    font-size: 0.88rem;
}

body.comite-variant-alt .etapa-tooltip-desc {
    color: #9ca3af;
}

body.comite-variant-alt .project-stage-dot {
    color: #6b7280;
}

body.comite-variant-alt .project-stage-dot.is-active {
    color: #ffffff;
}

body.comite-variant-alt .project-stage-dot.is-inactive {
    color: #9ca3af;
}

.user-panel {
    position: relative;
    display: flex;
    align-items: center;
}

.user-panel-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
}

.user-panel-trigger:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.025);
}

.user-panel-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-panel-dropdown {
    position: absolute;
    top: 3rem;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    width: 220px;
    z-index: 200;
}

.user-panel-dropdown.hidden {
    display: none;
}

.user-panel-info {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.logout-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid #16a34a;
    background: transparent;
    color: #16a34a;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(22, 163, 74, 0.08);
    transform: translateY(-1px);
}


.committee-title-wrapper {
    position: relative;
    display: inline-block;
    padding-right: 2.4rem;
}

.committee-edit-trigger {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.committee-edit-trigger:hover {
    color: #4b5563;
    border-color: #d1d5db;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.committee-edit-trigger svg {
    width: 16px;
    height: 16px;
}


.committee-edit-trigger[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    z-index: 30;
}

.committee-edit-trigger[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(-2px);
}


.doc-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.doc-icon {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: color 0.18s ease, transform 0.18s ease;
}
.doc-icon:hover {
    color: #4b5563;
    transform: translateY(-1px);
}
.doc-icon i {
    width: 18px;
    height: 18px;
}
.doc-icon:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.comite__join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #7AB800, #5a8a00);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(122, 184, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.comite__join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(122, 184, 0, 0.25);
}
.comite__join-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.comite__join-btn.is-options {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.comite__join-btn.is-options:hover {
    background: #e5e7eb;
    box-shadow: none;
    transform: none;
}
.comite__join-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
}
.comite__join-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.comite__join-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 30;
}
.comite__join-menu.is-open {
    display: block;
}
.comite__join-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.comite__join-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}
.comite__members-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1rem;
}
.comite__members-count-wrap {
    justify-self: center;
}
.comite__members-actions {
    justify-self: end;
}
.comite__members-count {
    min-width: 34px;
    height: 28px;
    font-size: 0.85rem;
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dm-accordion[data-hide-members="true"] {
    display: none;
}

#brisa-chat-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.brisa-chat-bubble {
    position: fixed;
    bottom: 18px;
    left: 18px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0%, #8fcd1f, #5a8a00);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(24px);
    animation: fab-float-up 0.6s ease-out 0.25s forwards;
}

.brisa-chat-bubble-icon {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.brisa-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.brisa-chat-panel {
    position: fixed;
    bottom: 84px;
    left: 18px;
    width: 260px;
    max-height: 420px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: none;
    pointer-events: auto;
}

.brisa-chat-panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brisa-chat-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #243220;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brisa-chat-online-count {
    font-size: 12px;
    font-weight: 800;
    color: #7ab800;
}

.brisa-chat-panel-subtitle {
    font-size: 11px;
    color: #6b7280;
}

.brisa-chat-panel-body {
    max-height: 360px;
    overflow-y: auto;
}

.brisa-chat-section-label {
    padding: 6px 14px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.brisa-chat-row {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.brisa-chat-row:hover {
    background: rgba(122, 184, 0, 0.06);
}

.brisa-chat-row-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brisa-chat-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.brisa-chat-meta {
    font-size: 11px;
    color: #6b7280;
}

.brisa-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ca3af;
    box-shadow: 0 0 0 0 rgba(122, 184, 0, 0.55);
}

.brisa-chat-status-dot--online {
    background: #7ab800;
    box-shadow: 0 0 8px 0 rgba(122, 184, 0, 0.9);
}

.brisa-chat-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(122, 184, 0, 0.08);
    cursor: pointer;
}

.brisa-chat-icon-btn svg {
    width: 16px;
    height: 16px;
    color: #5a8a00;
}

.brisa-chat-row--disabled {
    cursor: default;
}

.brisa-chat-row--disabled:hover {
    background: transparent;
}

.brisa-chat-row--unread {
    background: linear-gradient(90deg, rgba(122, 184, 0, 0.08), rgba(122, 184, 0, 0));
}

.brisa-chat-row-unread {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 16px;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(229, 57, 53, 0.35);
}

.brisa-chat-window {
    position: fixed;
    bottom: 84px;
    left: 292px;
    width: 320px;
    max-height: 420px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.95));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
    display: none;
    flex-direction: column;
    pointer-events: auto;
}

.brisa-chat-window-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.9));
    border-radius: 18px 18px 0 0;
}

.brisa-chat-window-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.brisa-chat-window-subtitle {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    padding: 0 16px;
}

.brisa-chat-window-actions {
    display: flex;
    gap: 4px;
}

.brisa-chat-pill-btn {
    width: 26px;
    height: 26px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff, #f4f6f8);
}

.brisa-chat-pill-btn svg {
    width: 14px;
    height: 14px;
    color: #4b5563;
}

.brisa-chat-pill-btn:hover {
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.brisa-chat-pill-btn[data-tooltip] {
    position: relative;
}

.brisa-chat-pill-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #4b5563;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    opacity: 1;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
}

.brisa-chat-pill-btn[data-tooltip]::after {
    content: '';
    opacity: 0;
}

.brisa-chat-pill-btn[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #d1d5db;
    opacity: 1;
    transition: opacity 120ms ease;
}

.brisa-chat-window-body {
    padding: 8px 8px 6px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brisa-chat-msg {
    max-width: 80%;
    border-radius: 14px;
    padding: 6px 8px;
    padding-right: 26px;
    font-size: 12px;
    line-height: 1.35;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.brisa-chat-msg--me {
    margin-left: auto;
    background: linear-gradient(135deg, #7ab800, #5a8a00);
    color: #ffffff;
}

.brisa-chat-msg--other {
    margin-right: auto;
    background: rgba(243, 244, 246, 0.96);
    color: #111827;
}

.brisa-chat-msg-author {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.8;
}

.brisa-chat-msg-time {
    font-size: 10px;
    opacity: 0.7;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.brisa-chat-window-footer {
    padding: 6px 8px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 4px;
}

.brisa-chat-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
}

.brisa-chat-input:focus {
    border-color: #7ab800;
    box-shadow: 0 0 0 1px rgba(122, 184, 0, 0.35);
}

.brisa-chat-send-btn {
    border-radius: 999px;
    border: none;
    padding: 0 12px;
    background: linear-gradient(135deg, #7ab800, #5a8a00);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brisa-chat-send-btn svg {
    width: 14px;
    height: 14px;
}

.brisa-chat-pill {
    position: fixed;
    bottom: 18px;
    left: 86px;
    height: 34px;
    max-width: 220px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(209, 213, 219, 0.85);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    display: none;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    pointer-events: auto;
}

.brisa-chat-pill-tray {
    position: fixed;
    bottom: 18px;
    left: 86px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    align-items: flex-start;
    z-index: 9999;
    pointer-events: auto;
}

.brisa-chat-pill--tray {
    position: static;
    width: 210px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.brisa-chat-pill-label {
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.brisa-chat-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #7ab800;
}

.brisa-chat-pill-actions {
    display: flex;
    gap: 4px;
    margin-left: 6px;
    margin-left: auto;
}

.brisa-chat-status-icon {
    font-size: 11px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    margin-left: 2px;
}

.brisa-chat-status-icon--pending {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 4px;
    border-radius: 10px;
}

.brisa-chat-status-icon--sent {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.18);
    padding: 1px 4px;
    border-radius: 10px;
}

.brisa-chat-status-icon--read {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
    padding: 1px 4px;
    border-radius: 10px;
    font-weight: 700;
}

.brisa-chat-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
}

.brisa-chat-delete-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brisa-chat-toast {
    position: fixed;
    left: 18px;
    bottom: 140px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 10000;
}

.brisa-chat-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.brisa-chat-mini-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 120px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 10000;
    pointer-events: auto;
}

.brisa-chat-mini-modal.is-visible {
    display: flex;
}

.brisa-chat-mini-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    padding: 12px;
    width: min(260px, 90vw);
    pointer-events: auto;
}

.brisa-chat-mini-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.brisa-chat-mini-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.brisa-chat-mini-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.brisa-chat-mini-btn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    color: #374151;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.brisa-chat-mini-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
}

.brisa-chat-pill-btn-mini {
    width: 20px;
    height: 20px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, #ffffff, #f4f6f8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: #4b5563;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.brisa-chat-pill-btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}


.scroll-to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .scroll-to-top-btn {
        right: 12px;
        bottom: 14px;
    }
}

.brisa-chat-pill--blink {
    animation: brisa-pill-blink 1s infinite;
}

@keyframes fab-float-up {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brisa-pill-blink {
    0%,
    100% {
        background: rgba(255, 255, 255, 0.9);
    }

    50% {
        background: linear-gradient(135deg, #7ab800, #5a8a00);
        color: #fff;
    }
}

@media (max-width: 768px) {
    .brisa-chat-panel {
        left: 10px;
        bottom: 76px;
        width: 230px;
    }

    .brisa-chat-window {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 76px;
    }

    .brisa-chat-pill {
        left: 78px;
        right: auto;
        max-width: 50vw;
    }
}

.comite-tabs {
    position: sticky;
    top: 6rem;
    z-index: 40;
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
    padding: 0.25rem 0;
}

.comite-tabs__list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.comite-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.comite-tab:hover {
    background: rgba(122, 184, 0, 0.12);
    color: #1f7a3a;
}

.comite-tab.is-active,
.comite-tab[aria-current="true"] {
    background: rgba(122, 184, 0, 0.18);
    color: #1f7a3a;
    box-shadow: inset 0 0 0 1px rgba(122, 184, 0, 0.35);
}

.comite-tab:focus-visible {
    outline: 2px solid rgba(122, 184, 0, 0.45);
    outline-offset: 2px;
}

.comite-tab-section {
    scroll-margin-top: 9rem;
}

@media (max-width: 640px) {
    .comite-tabs {
        top: 5.5rem;
        margin-bottom: 1.5rem;
    }

    .comite-tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header.sticky h1 {
        display: none;
    }

    .project-card {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .project-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .next-meeting-chip {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
        padding: 0.4rem 0.6rem;
        width: 100%;
    }

    .next-meeting-label {
        font-size: 0.55rem;
        line-height: 1.2;
        white-space: normal;
    }

    .next-meeting-control {
        flex: 1 1 100%;
    }

    .next-meeting-input {
        width: 100%;
        min-width: 0;
        font-size: 0.6rem;
    }

    footer .max-w-7xl {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    footer .max-w-7xl .text-gray-400 {
        font-size: 0.6rem;
        line-height: 1.1;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }
}
