/* Summary Station — frontend module styles */

.summary-station {
    margin-top: 0px;
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.10), rgba(13, 17, 23, 0.96));
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 12px;
    padding: 14px 14px 12px;
    color: #e2e8f0;
    font-family: inherit;
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.ss-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 10px;
}

.ss-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00d4ff;
    white-space: nowrap;
}

.ss-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
}

.ss-btn {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.2;
    white-space: nowrap;
    flex: 1 1 auto;
    text-align: center;
}

.ss-btn-expand {
    flex: 0 0 auto;
    min-width: 28px;
}

.ss-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.35);
    color: #fff;
}

.ss-btn.is-active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.ss-btn[disabled],
.ss-btn.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
}

.ss-btn[disabled]:hover,
.ss-btn.is-locked:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.ss-btn-expand {
    background: rgba(30, 41, 59, 0.9);
}

.ss-hours-bar {
    margin: 4px 0 8px;
}

.ss-hours-scroller {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.ss-hours-scroller::-webkit-scrollbar { height: 6px; }
.ss-hours-scroller::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 3px;
}

.ss-hour-chip {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 7px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    cursor: pointer;
    font-family: ui-monospace, Consolas, monospace;
}

.ss-hour-chip:hover {
    color: #fff;
    border-color: rgba(0, 212, 255, 0.5);
}

.ss-hour-chip.is-active {
    background: rgba(0, 212, 255, 0.18);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.5);
}

.ss-hours-empty {
    font-size: 11px;
    color: #64748b;
    padding: 4px 0;
}

.ss-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    flex-wrap: wrap;
    min-height: 14px;
}

.ss-meta-cached {
    color: #00d4ff;
    font-style: italic;
}

.ss-summary {
    flex: 1 1 auto;
    background: rgba(13, 17, 23, 0.55);
    border: 1px solid rgba(0, 212, 255, 0.10);
    border-radius: 8px;
    padding: 12px 14px;
    overflow-y: auto;
    line-height: 1.55;
    font-size: 13.5px;
    color: #e2e8f0;
    max-height: 440px;
    min-height: 260px;
}

.ss-summary p { margin: 0 0 0.85em; }
.ss-summary p:last-child { margin-bottom: 0; }
.ss-placeholder { color: #64748b; font-style: italic; }

.ss-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 10px;
}

.ss-status {
    font-size: 11px;
    color: #94a3b8;
    min-height: 14px;
}

.ss-status.is-error { color: #f87171; }
.ss-status.is-loading { color: #fbbf24; }

/* ----- Expanded mode: hides center module, makes summary full-width ----- */

body.summary-station-expanded .immersive-center-module { display: none !important; }
body.summary-station-expanded .immersive-grid { grid-template-columns: 1fr !important; }
body.summary-station-expanded .immersive-sidebar-left {
    grid-column: 1 / -1 !important;
}
body.summary-station-expanded .immersive-sidebar-right { display: none !important; }
body.summary-station-expanded .summary-station {
    min-height: 70vh;
}
body.summary-station-expanded .ss-summary {
    max-height: none;
    min-height: 50vh;
}
body.summary-station-expanded .featured-carousel-container { display: none; }
