/* TossSpace Operations Dashboard */

.ops-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 46px 0 76px;
}

.ops-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ops-heading h1 {
    margin: 5px 0 7px;
    color: #223152;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ops-heading > div > p:last-child {
    max-width: 720px;
    margin: 0;
    color: #6d7688;
    font-size: 13px;
    line-height: 1.6;
}

.ops-storage-card,
.ops-panel,
.ops-card {
    border: 1px solid rgba(34, 49, 82, 0.10);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(34, 49, 82, 0.07);
}

.ops-storage-card,
.ops-panel {
    padding: 22px;
}

.ops-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ops-card-heading h2 {
    margin: 4px 0 0;
    color: #223152;
    font-size: 20px;
}

.ops-status-pill {
    padding: 6px 9px;
    border-radius: 999px;
    color: #223152;
    background: #eaf5ea;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ops-status-pill.warning {
    background: #fff1c9;
}

.ops-status-pill.critical,
.ops-status-pill.unknown {
    color: #8f2c2c;
    background: #ffe3e3;
}

.ops-storage-meter {
    height: 12px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8dc;
}

.ops-storage-used {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #223152;
    transition: width 180ms ease;
}

.ops-storage-grid,
.ops-cleanup-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ops-storage-grid article,
.ops-cleanup-grid article {
    min-width: 0;
    padding: 13px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(34, 49, 82, 0.08);
    border-radius: 12px;
    background: #fffdf8;
}

.ops-storage-grid span,
.ops-cleanup-grid span {
    color: #7b8392;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ops-storage-grid strong,
.ops-cleanup-grid strong {
    overflow: hidden;
    color: #223152;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-note {
    margin: 14px 0 0;
    color: #7a8290;
    font-size: 10px;
    line-height: 1.55;
}

.ops-grid {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.ops-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.ops-card {
    padding: 17px;
    display: grid;
    gap: 7px;
}

.ops-card > strong {
    color: #223152;
    font-size: 24px;
}

.ops-card > small,
.ops-card > p {
    margin: 0;
    color: #737c8e;
    font-size: 10px;
    line-height: 1.45;
}

.ops-mini-breakdown {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ops-mini-breakdown span {
    padding: 5px 7px;
    border-radius: 999px;
    color: #596275;
    background: #f6f3ea;
    font-size: 9px;
}

.ops-panel {
    margin-top: 14px;
}

.ops-generated-at {
    color: #7d8594;
    font-size: 10px;
}

.ops-services {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.ops-service-card {
    min-width: 0;
    padding: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(34, 49, 82, 0.08);
    border-radius: 12px;
    background: #fffdf8;
}

.ops-service-card > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ops-service-card strong {
    overflow: hidden;
    color: #223152;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-service-card > span {
    color: #7b8392;
    font-size: 9px;
}

.ops-service-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #6aa46a;
}

.ops-service-card.offline .ops-service-dot {
    background: #c54f4f;
}

.ops-errors {
    margin-top: 13px;
    display: grid;
    gap: 8px;
}

.ops-error-row {
    padding: 11px 12px;
    display: grid;
    gap: 7px;
    border: 1px solid #f0d6d6;
    border-radius: 11px;
    background: #fff7f7;
}

.ops-error-row.warning {
    border-color: #eadcae;
    background: #fffaf0;
}

.ops-error-row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ops-error-row strong {
    color: #713838;
    font-size: 11px;
}

.ops-error-row.warning strong {
    color: #775d19;
}

.ops-error-row span {
    color: #8c94a2;
    font-size: 9px;
}

.ops-error-row code {
    overflow: hidden;
    color: #6f7788;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 940px) {
    .ops-services {
        grid-template-columns: repeat(3, 1fr);
    }

    .ops-storage-grid,
    .ops-cleanup-grid,
    .ops-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .ops-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 30px;
    }

    .ops-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-heading .secondary-button {
        width: 100%;
    }

    .ops-services,
    .ops-storage-grid,
    .ops-cleanup-grid,
    .ops-grid-three {
        grid-template-columns: 1fr;
    }

    .ops-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-error-row > div {
        align-items: flex-start;
        flex-direction: column;
    }
}
