.comparic-agenda {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    max-width: 100%;
    box-sizing: border-box;
    color: #222;
    padding: 1rem 0.5rem;
}

.comparic-agenda-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.ag-cats, .ag-times, .ag-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 120px;
}

.ag-cats label, .ag-times label, .ag-filter label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1b1f23;
}

.ag-cats-wrap, .ag-times-wrap {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.ag-cat-btn {
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 0.85rem;
    background: #f5f5f5;
    color: #1b1f23;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ag-cat-btn:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.ag-cat-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
    color: white;
    border-color: #FF6B6B;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.ag-time-btn {
    padding: 0.22rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    color: #444;
}

.ag-time-btn.active {
    background: #ffdeeb;
    border-color: #ffbad2;
    color: #7b1f3a;
}

.ag-select {
    padding: 0.5rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ag-select:hover {
    border-color: #999;
}

.comparic-agenda-days {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ag-day-btn {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.1);
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ag-day-btn.active {
    background: var(--day-color, #0d47a1);
    color: #fff;
    border-color: var(--day-color, #0d47a1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.ag-day-btn:hover:not(.active) {
    border-color: #999;
    transform: translateY(-1px);
}

.ag-day-date {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    opacity: 0.9;
}

.ag-rooms {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.ag-room {
    min-width: 280px;
    max-width: 340px;
    border-radius: 10px;
    background: #ffffff;
    border: 2px solid rgb(131, 220, 14);
    padding: 0.8rem;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
    display: flex;
    flex-direction: column;
}

.ag-room-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: #0d2340;
    margin-bottom: 0.8rem;
}

.ag-room-header svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.ag-table {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ag-row {
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 8px;
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(0,0,0,0.03);
}

.ag-time {
    min-width: 85px;
    color: #0b3d91;
    font-weight: 700;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ag-time svg {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

.ag-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.ag-title {
    margin-bottom: .3rem;
}
.ag-title strong {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}

.ag-speakers {
    font-weight: bold;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    line-height: 1.3;
}

.ag-cat, .ag-tag {
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.8rem;
    font-weight: normal;
}

.ag-tag svg {
    width: 12px;
    height: 12px;
    opacity: 0.85;
}

.ag-no-events, .ag-error {
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    color: #666;
    border: 1px dashed #e6eef8;
}

@media (max-width: 900px) {
    .ag-room {
        min-width: 240px;
        max-width: 280px;
    }
    .ag-cats, .ag-times {
        min-width: 100px;
    }
}