* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #1d2733;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.page-subtitle {
    color: #637083;
    font-size: 14px;
}

.portal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.info-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(17, 34, 68, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a96a6;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    word-break: break-word;
}

.metrics-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(17, 34, 68, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: #2b5fd9;
}

.card-value.is-error {
    color: #d94841;
}

.card-note {
    font-size: 12px;
    color: #8a96a6;
}

.card-details {
    border-top: 1px solid #eef1f5;
    padding-top: 10px;
}

.card-details summary {
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    color: #2b5fd9;
    font-weight: 600;
}

.card-details summary::-webkit-details-marker {
    display: none;
}

.card-list {
    margin: 10px 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    font-size: 13px;
    color: #2f3b4a;
}

.card-link {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13px;
    color: #2b5fd9;
    text-decoration: none;
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

.is-hidden {
    display: none;
}
