body.portal-role .progress-hub-shell {
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    gap: 24px;
}

body.portal-role .progress-hub-header {
    min-height: 86px;
    margin: 0;
    align-items: center;
}

body.portal-role .progress-hub-header h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 4.4vw, 4.35rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: #f7f3eb;
}

body.portal-role .progress-hub-header p {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: rgba(247, 243, 235, 0.72);
}

body.portal-role .progress-hub-section {
    display: grid;
    gap: 18px;
}

body.portal-role .progress-link-card {
    flex-direction: row;
    align-items: center;
    min-height: 150px;
    gap: 18px;
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    color: #f7f3eb;
    text-decoration: none;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

body.portal-role .progress-link-card:hover {
    border-color: rgba(247, 243, 235, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024));
}

body.portal-role .progress-link-icon,
body.portal-role .progress-link-arrow {
    background: rgba(255, 255, 255, 0.055);
    color: #f7f3eb;
}

body.portal-role .progress-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

body.portal-role .progress-link-arrow {
    width: 40px;
    height: 40px;
    border: 0;
    margin-left: auto;
}

body.portal-role .progress-link-copy {
    gap: 6px;
}

body.portal-role .progress-link-copy strong {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #f7f3eb;
}

body.portal-role .progress-link-copy small {
    color: rgba(247, 243, 235, 0.72);
    font-size: 0.98rem;
    line-height: 1.35;
}

body.portal-role .portal-measurements-page {
    gap: 18px;
}

body.portal-role .portal-measurements-page .portal-data-card,
body.portal-role .portal-glory-page .portal-data-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    color: #f7f3eb;
}

body.portal-role .portal-measurements-page .portal-data-hero h1,
body.portal-role .portal-measurements-page .portal-measurement-history-card h3,
body.portal-role .portal-glory-page h1,
body.portal-role .portal-glory-page h2,
body.portal-role .portal-glory-page h3 {
    color: #f7f3eb;
}

body.portal-role .portal-measurement-collapsible summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    color: #f7f3eb;
    font-weight: 850;
    cursor: pointer;
}

body.portal-role .portal-measurement-form {
    margin-top: 14px;
    gap: 12px;
}

body.portal-role .portal-measurement-form label {
    display: grid;
    gap: 6px;
}

body.portal-role .portal-measurement-form label span {
    color: rgba(247, 243, 235, 0.7);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.portal-role .portal-measurement-form input {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    color: #fffaf0;
    font-size: 16px;
    font-weight: 650;
}

body.portal-role .portal-measurement-form input::placeholder {
    color: rgba(247, 243, 235, 0.52);
    opacity: 1;
}

body.portal-role .portal-measurement-form input[type="date"] {
    color-scheme: dark;
}

body.portal-role .portal-measurement-form .btn {
    min-height: 46px;
}

body.portal-role .portal-measurement-table-wrap {
    border-radius: 20px;
}

body.portal-role .portal-measurement-table th,
body.portal-role .portal-measurement-table td {
    color: #f7f3eb;
}

body.portal-role .portal-measurement-table td {
    font-weight: 650;
}

body.portal-role .portal-measurement-table th {
    color: rgba(247, 243, 235, 0.72);
}

body.portal-role .portal-glory-page {
    gap: 18px;
}

body.portal-role .portal-glory-hero p {
    color: rgba(247, 243, 235, 0.72);
}

body.portal-role .portal-glory-grid,
body.portal-role .portal-glory-lift-grid,
body.portal-role .portal-glory-distance-grid {
    display: grid;
    gap: 12px;
}

body.portal-role .portal-glory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.portal-role .portal-glory-grid.three-col,
body.portal-role .portal-glory-lift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.portal-role .portal-glory-distance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.portal-role .portal-glory-stat,
body.portal-role .portal-glory-mini-card,
body.portal-role .portal-glory-lift-card,
body.portal-role .portal-glory-distance-card,
body.portal-role .portal-glory-record-row {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    color: #f7f3eb;
}

body.portal-role .portal-glory-stat,
body.portal-role .portal-glory-mini-card,
body.portal-role .portal-glory-lift-card,
body.portal-role .portal-glory-distance-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 128px;
    padding: 16px;
}

body.portal-role .portal-glory-stat span,
body.portal-role .portal-glory-mini-card span,
body.portal-role .portal-glory-lift-card span,
body.portal-role .portal-glory-distance-card span,
body.portal-role .portal-glory-section-head p {
    color: rgba(247, 243, 235, 0.62);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.portal-role .portal-glory-stat strong,
body.portal-role .portal-glory-mini-card strong,
body.portal-role .portal-glory-lift-card strong,
body.portal-role .portal-glory-distance-card strong {
    color: #fffaf0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

body.portal-role .portal-glory-stat small,
body.portal-role .portal-glory-mini-card small,
body.portal-role .portal-glory-lift-card small,
body.portal-role .portal-glory-distance-card small,
body.portal-role .portal-glory-record-row span,
body.portal-role .portal-glory-empty {
    color: rgba(247, 243, 235, 0.68);
    line-height: 1.35;
}

body.portal-role .portal-glory-section {
    display: grid;
    gap: 18px;
}

body.portal-role .portal-glory-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

body.portal-role .portal-glory-section-head h2,
body.portal-role .portal-glory-subsection h3 {
    margin: 0;
}

body.portal-role .portal-glory-subsection {
    display: grid;
    gap: 12px;
}

body.portal-role .portal-glory-record-list {
    display: grid;
    gap: 10px;
}

body.portal-role .portal-glory-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
}

body.portal-role .portal-glory-record-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.portal-role .portal-glory-record-row strong,
body.portal-role .portal-glory-record-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.portal-role .portal-glory-record-row strong,
body.portal-role .portal-glory-record-row em {
    color: #fffaf0;
    font-style: normal;
    font-weight: 850;
}

body.portal-role .portal-glory-record-row em {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    body.portal-role .progress-hub-shell {
        width: 100%;
        max-width: 100%;
    }

    body.portal-role .progress-hub-header h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    body.portal-role .progress-link-card {
        min-height: 104px;
        padding: 16px;
        border-radius: 24px;
    }

    body.portal-role .portal-measurements-page .portal-data-card,
    body.portal-role .portal-glory-page .portal-data-card {
        padding: 16px;
        border-radius: 24px;
    }

    body.portal-role .portal-measurement-form {
        grid-template-columns: 1fr;
    }

    body.portal-role .portal-measurement-form input,
    body.portal-role .portal-measurement-form .btn {
        width: 100%;
    }

    body.portal-role .portal-measurement-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    body.portal-role .portal-measurement-table,
    body.portal-role .portal-measurement-table tbody {
        display: grid;
        width: 100%;
        min-width: 0;
        gap: 12px;
    }

    body.portal-role .portal-measurement-table thead {
        display: none;
    }

    body.portal-role .portal-measurement-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.04);
    }

    body.portal-role .portal-measurement-table td {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        color: #fffaf0;
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    body.portal-role .portal-measurement-table td::before {
        content: attr(data-label);
        color: rgba(247, 243, 235, 0.58);
        font-size: 0.68rem;
        font-weight: 850;
        letter-spacing: 0.09em;
        line-height: 1;
        text-transform: uppercase;
    }

    body.portal-role .portal-measurement-table td:first-child,
    body.portal-role .portal-measurement-table td:last-child {
        grid-column: 1 / -1;
    }

    body.portal-role .portal-measurement-empty-row {
        grid-template-columns: 1fr !important;
    }

    body.portal-role .portal-measurement-empty-row td::before {
        content: none;
    }

    body.portal-role .portal-glory-grid,
    body.portal-role .portal-glory-grid.three-col,
    body.portal-role .portal-glory-lift-grid,
    body.portal-role .portal-glory-distance-grid {
        grid-template-columns: 1fr;
    }

    body.portal-role .portal-glory-stat,
    body.portal-role .portal-glory-mini-card,
    body.portal-role .portal-glory-lift-card,
    body.portal-role .portal-glory-distance-card {
        min-height: 0;
        padding: 14px;
        border-radius: 18px;
    }

    body.portal-role .portal-glory-record-row {
        align-items: flex-start;
        flex-direction: column;
    }

    body.portal-role .portal-glory-record-row strong,
    body.portal-role .portal-glory-record-row span {
        white-space: normal;
    }
}
