@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,800&display=fallback');

:root {
    --app-page: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-border: #d9e3ec;
    --app-ink: #102033;
    --app-muted: #64748b;
    --app-sidebar: #0f2f57;
    --app-sidebar-soft: #145c63;
    --app-sidebar-line: rgba(255, 255, 255, .12);
    --app-accent: #18a7b5;
    --app-mara: #b32034;
    --app-success: #15945f;
    --app-radius: 8px;
    --app-shadow: 0 8px 22px rgba(15, 47, 87, .08);
}

* { letter-spacing: 0; }

body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 47, 87, .045), rgba(24, 167, 181, .03)), var(--app-page);
    color: var(--app-ink);
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    background: radial-gradient(circle at top right, rgba(24, 167, 181, .1), transparent 32rem), var(--app-page);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 47, 87, .98), rgba(20, 92, 99, .96) 68%, rgba(179, 32, 52, .88)), var(--app-sidebar);
    box-shadow: 16px 0 38px rgba(15, 47, 87, .18);
}

.app-brand {
    padding: 1.35rem 1.25rem 1rem;
    border-bottom: 1px solid var(--app-sidebar-line);
    text-align: center;
}

.app-brand-header {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: .35rem;
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.app-brand-logo {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto .9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--app-sidebar);
    font-size: 1.55rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.app-brand-title {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.25;
    font-weight: 800;
}

.app-brand-subtitle {
    margin-top: .35rem;
    color: rgba(255, 255, 255, .7);
    font-size: .86rem;
    font-weight: 600;
}

.app-access {
    margin: 1rem 1.25rem 0;
    padding: .9rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.app-access-label {
    color: #b9e9f1;
    font-size: .74rem;
    text-transform: uppercase;
    font-weight: 800;
}

.app-access-name {
    margin-top: .25rem;
    font-weight: 800;
}

.app-access-role {
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    font-weight: 600;
}

.app-menu {
    flex: 1;
    padding: 1rem .9rem 6.5rem;
}

.app-menu-heading {
    padding: .4rem .6rem;
    color: rgba(255, 255, 255, .55);
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 800;
}

.app-menu-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 44px;
    padding: .72rem .8rem;
    margin-bottom: .35rem;
    border-radius: var(--app-radius);
    color: rgba(255, 255, 255, .84);
    text-decoration: none;
    font-weight: 700;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.app-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    transform: translateX(2px);
}

.app-menu-link.is-active {
    color: #fff;
    background: var(--app-accent);
    box-shadow: 0 8px 20px rgba(24, 167, 181, .2);
}

.app-menu-icon {
    width: 1.4rem;
    text-align: center;
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    font-weight: 800;
}

.app-sidebar-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--app-sidebar-line);
    background: linear-gradient(180deg, rgba(179, 32, 52, .86), rgba(179, 32, 52, .97)), var(--app-mara);
    box-shadow: 0 -14px 28px rgba(15, 47, 87, .22);
}

.app-sidebar-footer .btn {
    width: 100%;
    border-radius: var(--app-radius);
    padding: .72rem 1rem;
    font-weight: 800;
}

.user-app-shell {
    grid-template-columns: 1fr;
}

.user-app-shell .user-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: auto;
    overflow: visible;
    background: linear-gradient(135deg, rgba(15, 47, 87, .98), rgba(20, 92, 99, .96) 68%, rgba(179, 32, 52, .9)), var(--app-sidebar);
    box-shadow: 0 12px 26px rgba(15, 47, 87, .2);
}

.public-mobile-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: auto;
    overflow: visible;
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 47, 87, .98), rgba(20, 92, 99, .96) 68%, rgba(179, 32, 52, .9)), var(--app-sidebar);
    box-shadow: 0 12px 26px rgba(15, 47, 87, .2);
}

.public-mobile-nav .app-brand {
    position: relative;
}

.user-app-shell .app-brand,
.public-mobile-nav .app-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: .75rem 4.5rem;
}

.public-mobile-nav .app-brand {
    min-height: 104px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.user-app-shell .app-brand-header,
.public-mobile-nav .app-brand-header {
    max-width: 220px;
}

.app-brand-center {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.login-status-text {
    max-width: min(360px, calc(100vw - 9rem));
    overflow: hidden;
    color: rgba(255, 255, 255, .86);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-sticky-subheader {
    display: grid;
    gap: .12rem;
    padding: .65rem 1rem .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: rgba(5, 23, 42, .22);
    text-align: center;
}

.challenge-sticky-subheader span {
    color: rgba(255, 255, 255, .7);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.challenge-sticky-subheader strong {
    overflow: hidden;
    color: #fff;
    font-size: .95rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-mobile-nav .app-brand-header {
    max-width: 210px;
}

.user-app-shell .public-mobile-nav .app-brand-header {
    max-width: 210px;
}

.user-menu-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--app-radius);
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    transform: translateY(-50%);
}

.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
    background: var(--app-accent);
}

.user-menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
}

.user-header-logout {
    position: absolute;
    top: 50%;
    right: 1rem;
    margin: 0;
    transform: translateY(-50%);
}

.public-login-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    margin: 0;
    transform: translateY(-50%);
}

.user-logout-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--app-radius);
    color: #fff;
    background: rgba(179, 32, 52, .86);
    cursor: pointer;
}

.user-logout-button:hover {
    background: var(--app-mara);
}

.public-login-button {
    text-decoration: none;
    background: var(--app-accent);
}

.public-login-button:hover {
    color: #fff;
    background: var(--app-sidebar-soft);
}

.user-logout-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-menu-panel {
    padding-bottom: .25rem;
}

.public-mobile-nav .user-menu-panel {
    position: absolute;
    top: calc(100% + .6rem);
    left: 1rem;
    width: min(430px, calc(100vw - 2rem));
    display: block;
    padding: 0;
}

.user-app-shell .public-mobile-nav .user-menu-panel {
    position: absolute;
    top: calc(100% + .6rem);
    left: 1rem;
    width: min(430px, calc(100vw - 2rem));
    display: block;
    padding: 0;
}

.user-menu-collapsed .user-menu-panel {
    display: none;
}

.user-menu-collapsed .user-sidebar .app-access,
.user-menu-collapsed .user-sidebar .app-menu,
.user-menu-collapsed .user-sidebar .app-sidebar-footer {
    display: none;
}

.user-app-shell .user-sidebar .app-access {
    max-width: 520px;
    margin: .85rem auto 0;
}

.user-app-shell .user-sidebar .app-menu,
.public-mobile-nav .app-menu {
    max-width: 360px;
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
    margin: 0 auto;
    padding: .9rem 1rem 1rem;
}

.public-mobile-nav .app-menu {
    width: 100%;
    max-width: 430px;
    margin: 0;
    padding: .65rem;
    border: 1px solid rgba(217, 227, 236, .9);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(15, 47, 87, .18);
}

.user-app-shell .app-menu-heading,
.public-mobile-nav .app-menu-heading {
    grid-column: 1 / -1;
}

.public-mobile-nav .app-menu-heading {
    display: none;
}

.user-app-shell .app-menu-link,
.public-mobile-nav .app-menu-link {
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
}

.public-mobile-nav .app-menu-link {
    justify-content: flex-start;
    min-height: 42px;
    padding: .65rem .75rem;
    color: var(--app-ink);
    background: var(--app-surface-soft);
}

.public-mobile-nav .app-menu-link:hover {
    color: var(--app-sidebar);
    background: #e8f5f5;
}

.public-mobile-nav .app-menu-link.is-active {
    color: #fff;
    background: var(--app-accent);
}

.public-mobile-nav .app-menu-icon {
    color: var(--app-sidebar-soft);
}

.public-mobile-nav .app-menu-link.is-active .app-menu-icon {
    color: #fff;
}

.user-app-shell .app-menu-link:hover,
.public-mobile-nav .app-menu-link:hover {
    transform: none;
}

.user-app-shell .user-sidebar .app-sidebar-footer {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: .25rem 1rem 1rem;
    border-top: 0;
    background: transparent;
    box-shadow: none;
}

.app-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-body {
    flex: 1;
    min-width: 0;
}

.app-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    color: #dbeafe;
    background: var(--app-sidebar);
    border-top: 4px solid var(--app-mara);
    font-size: .9rem;
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--app-sidebar), var(--app-sidebar-soft) 68%, var(--app-mara));
    border-radius: 0 0 var(--app-radius) var(--app-radius);
    box-shadow: var(--app-shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8rem -10rem auto;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    pointer-events: none;
}

.module-hero {
    padding: 1.65rem 1rem;
}

.module-hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .55rem;
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.module-eyebrow.dark { color: var(--app-accent); }

.module-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.15;
    font-weight: 900;
}

.module-subtitle {
    max-width: 760px;
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
}

.identity-switch {
    width: min(280px, 100%);
}

.portal-shell {
    max-width: 1180px;
    margin: 1.5rem auto 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quick-action {
    display: block;
    min-height: 218px;
    overflow: hidden;
    padding: 0 1rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    color: var(--app-ink);
    text-decoration: none;
    box-shadow: var(--app-shadow);
    transition: border-color .16s ease, transform .16s ease;
}

.quick-action:hover {
    border-color: var(--app-accent);
    transform: translateY(-2px);
}

.quick-action-thumb {
    display: block;
    width: calc(100% + 2rem);
    height: 112px;
    margin: 0 -1rem 1rem;
    object-fit: contain;
    padding: .35rem;
    background: linear-gradient(135deg, #f8fbff, #e5eef7);
    border-bottom: 1px solid var(--app-border);
}

.quick-action span {
    display: block;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-action strong {
    display: block;
    margin-top: .55rem;
    color: var(--app-sidebar);
    font-size: 1.25rem;
    line-height: 1.15;
}

.stat-card,
.portal-card,
.soft-card,
.admin-panel,
.detail-band {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.stat-card { padding: 1rem; }

.stat-card span {
    display: block;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: .4rem;
    color: var(--app-sidebar);
    font-size: 2rem;
    line-height: 1;
}

.category-band { margin-bottom: 2rem; }

.category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.category-dot {
    width: .85rem;
    height: .85rem;
    border-radius: 50%;
    background: var(--cat-color);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat-color) 16%, transparent);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-card {
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--cat-color, var(--app-accent));
}

.portal-card-body { padding: 1rem; }

.challenge-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.challenge-card-title h4 {
    min-width: 0;
    line-height: 1.2;
}

.challenge-status-pill {
    flex: 0 0 auto;
    min-width: max-content;
    padding: .32rem .62rem;
    font-size: .72rem;
    line-height: 1;
    white-space: nowrap;
}

.portal-description {
    min-height: 48px;
    color: var(--app-muted);
}

.poster-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
    padding: .5rem;
    background: #e5eef7;
}

.challenge-cover {
    height: 142px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15, 47, 87, .88), rgba(24, 167, 181, .72)), repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 14px);
    color: #fff;
}

.challenge-cover.is-km {
    background: linear-gradient(135deg, rgba(15, 47, 87, .9), rgba(21, 148, 95, .72)), repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 14px);
}

.challenge-cover div { text-align: center; }

.challenge-cover span {
    display: block;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .76);
}

.challenge-cover strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 900;
}

.copy-link,
.copy-link-row {
    overflow: hidden;
    padding: .55rem .65rem;
    border: 1px dashed #bfd2df;
    border-radius: var(--app-radius);
    background: #f8fbff;
    color: var(--app-muted);
    font-size: .78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .35rem .35rem .35rem .65rem;
}

.copy-link-short {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-link-button {
    flex: 0 0 auto;
}

.public-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.public-card-actions form,
.public-card-actions .btn {
    width: 100%;
}

.status-action-button {
    border-color: var(--app-success);
    border-radius: var(--app-radius);
    background: var(--app-success);
    color: #fff;
    font-weight: 900;
    opacity: 1;
    pointer-events: none;
    text-align: center;
}

.detail-band { padding: 1rem; }

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slim-progress { height: .65rem; }

.progress-bar { background: linear-gradient(90deg, var(--app-sidebar), var(--app-accent)); }

.participant-progress-cell {
    min-width: 180px;
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto;
    align-items: center;
    gap: .55rem;
}

.participant-progress-cell span {
    color: var(--app-sidebar);
    font-size: .84rem;
    font-weight: 900;
}

.participant-latest strong,
.participant-latest span {
    display: block;
}

.participant-latest strong {
    color: var(--app-sidebar);
    line-height: 1.15;
}

.participant-latest span {
    margin-top: .2rem;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 700;
}

.approval-row,
.leader-row,
.summary-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-top: 1px solid var(--app-border);
}

.approval-row:first-of-type,
.leader-row:first-of-type,
.summary-list:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.leader-meter {
    min-width: 210px;
    text-align: right;
}

.leader-meter span {
    display: block;
    margin-top: .25rem;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 800;
}

.btn {
    border-radius: var(--app-radius) !important;
    font-weight: 800;
}

.btn-primary,
.btn-info {
    background: var(--app-sidebar) !important;
    border-color: var(--app-sidebar) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-info:hover {
    background: var(--app-sidebar-soft) !important;
    border-color: var(--app-sidebar-soft) !important;
}

.btn-success {
    background: var(--app-success) !important;
    border-color: var(--app-success) !important;
}

.btn-danger,
.btn-outline-danger:hover {
    background: var(--app-mara) !important;
    border-color: var(--app-mara) !important;
}

.form-control,
.form-select {
    border-color: var(--app-border);
    border-radius: var(--app-radius);
    color: var(--app-ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 .2rem rgba(24, 167, 181, .14);
}

.badge {
    border-radius: 999px;
    font-weight: 800;
}

.public-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px rgba(15, 47, 87, .06);
}

.public-topbar strong {
    color: var(--app-sidebar);
    font-size: 1.05rem;
}

.public-brand-header {
    width: min(210px, 42vw);
    height: auto;
    display: block;
    justify-self: center;
}

.public-topbar > .d-flex {
    justify-self: end;
}

.public-hero {
    border-radius: 0;
    padding: 2rem 1rem;
}

.public-detail {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.public-poster,
.public-info,
.login-panel {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.public-poster {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: 560px;
    object-fit: contain;
    padding: .75rem;
    background: #e5eef7;
}

.public-info {
    padding: 1.25rem;
}

.public-info h2 {
    color: var(--app-sidebar);
    font-weight: 900;
}

.public-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.public-meta div {
    padding: .85rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.public-meta span {
    display: block;
    color: var(--app-muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-meta strong {
    color: var(--app-sidebar);
    font-size: 1.05rem;
}

.public-top-five {
    padding-top: 1rem;
    border-top: 1px solid var(--app-border);
}

.public-top-five h3 {
    color: var(--app-sidebar);
    text-transform: uppercase;
}

.public-top-five > div:first-child span {
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.public-top-five-list {
    display: grid;
    gap: .65rem;
}

.public-top-five-row {
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .65rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.top-five-rank {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--app-sidebar);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}

.top-five-avatar {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, var(--app-sidebar), var(--app-accent));
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
}

.top-five-user {
    min-width: 0;
}

.top-five-user strong,
.top-five-user span {
    display: block;
}

.top-five-user strong {
    overflow: hidden;
    color: var(--app-sidebar);
    font-size: .92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-five-user span {
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 800;
}

.top-five-record {
    color: var(--app-sidebar);
    font-size: .88rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(15, 47, 87, .08), rgba(24, 167, 181, .08)), var(--app-page);
}

.login-panel {
    width: min(480px, 100%);
    padding: 1.25rem;
}

.auth-register-button {
    color: var(--app-sidebar) !important;
    border: 1px solid #bfd2df !important;
    background: #eef7f8 !important;
}

.auth-register-button:hover {
    color: #fff !important;
    border-color: var(--app-accent) !important;
    background: var(--app-accent) !important;
}

.login-brand-header {
    width: min(300px, 100%);
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--app-radius);
    color: var(--app-sidebar);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--app-sidebar);
    background: var(--app-surface-soft);
}

.password-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.athlete-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.athlete-card,
.athlete-hero-card,
.athlete-profile-stats div {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.athlete-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    overflow: hidden;
}

.athlete-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--app-sidebar), var(--app-accent));
    color: #fff;
    font-weight: 900;
}

.athlete-avatar-img {
    object-fit: cover;
    padding: 0;
}

.athlete-avatar.xl {
    width: 96px;
    height: 96px;
    font-size: 1.7rem;
}

.athlete-card-body {
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
}

.athlete-mini-stats,
.athlete-profile-stats {
    display: grid;
    gap: .75rem;
}

.athlete-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: .9rem 0;
}

.athlete-mini-stats div,
.athlete-profile-stats div {
    padding: .75rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.athlete-mini-stats span,
.athlete-profile-stats span {
    display: block;
    color: var(--app-muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.athlete-mini-stats strong,
.athlete-profile-stats strong {
    color: var(--app-sidebar);
    font-size: 1.25rem;
}

.athlete-profile {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 1rem;
}

.athlete-hero-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.athlete-hero-card h3 {
    margin: 0 0 .25rem;
    color: var(--app-sidebar);
    font-weight: 900;
}

.athlete-profile-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-dashboard-profile-summary {
    grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.9fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.user-dashboard-profile-summary .athlete-hero-card,
.user-dashboard-profile-summary .athlete-profile-stats div {
    border: 0;
    box-shadow: none;
}

.user-dashboard-profile-summary .athlete-hero-card {
    padding: .75rem;
    background: transparent;
}

.user-dashboard-profile-summary .athlete-profile-stats {
    align-self: stretch;
    gap: 0;
    padding: .75rem 0 .75rem 1rem;
    border-left: 1px solid var(--app-border);
}

.user-dashboard-profile-summary .athlete-profile-stats div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: .25rem .9rem;
    border-left: 1px solid #e1ebf3;
    border-radius: 0;
    background: transparent;
}

.user-dashboard-profile-summary .athlete-profile-stats div:first-child {
    border-left: 0;
}

.user-table {
    --bs-table-bg: transparent;
}

.user-table thead th {
    color: var(--app-sidebar);
    background: var(--app-surface-soft);
    border-bottom: 1px solid var(--app-border);
    font-size: .78rem;
    text-transform: uppercase;
}

.user-table tbody td {
    padding: .9rem .75rem;
    border-color: var(--app-border);
    vertical-align: middle;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 240px;
}

.user-cell .athlete-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: .86rem;
}

.user-cell strong,
.user-cell span {
    display: block;
}

.user-cell strong {
    color: var(--app-ink);
    line-height: 1.15;
}

.user-cell span {
    margin-top: .18rem;
    color: var(--app-muted);
    font-size: .86rem;
}

.challenge-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 280px;
}

.challenge-cell img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
    padding: .25rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: #e5eef7;
}

.challenge-cell strong,
.challenge-cell span {
    display: block;
}

.challenge-cell strong {
    color: var(--app-ink);
    line-height: 1.15;
}

.challenge-cell span {
    margin-top: .18rem;
    color: var(--app-muted);
    font-size: .86rem;
}

.evidence-thumb-link {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: #e5eef7;
    box-shadow: 0 6px 14px rgba(15, 47, 87, .1);
}

.evidence-thumb-link:hover {
    border-color: var(--app-accent);
}

.evidence-thumb {
    width: 76px;
    height: 76px;
    max-width: 76px;
    max-height: 76px;
    object-fit: cover;
    display: block;
}

.icon-trash-button {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-grid;
    place-items: center;
    padding: 0 !important;
}

.icon-trash-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-challenge-list {
    display: grid;
    gap: 1rem;
}

.user-challenge-card {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.user-challenge-main {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.user-challenge-poster {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    padding: .45rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: #e5eef7;
}

.user-challenge-info {
    min-width: 0;
}

.user-challenge-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.user-challenge-meta div {
    padding: .75rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.user-challenge-meta span {
    display: block;
    color: var(--app-muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-challenge-meta strong {
    display: block;
    margin-top: .18rem;
    color: var(--app-sidebar);
    font-size: .95rem;
}

.user-challenge-progress {
    padding: 1rem;
    border-top: 1px solid var(--app-border);
    background: #fbfdff;
}

.challenge-donut-wrap {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.challenge-donut {
    width: 132px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 54%, transparent 55%),
        conic-gradient(var(--app-accent) calc(var(--progress) * 1%), #e5eef7 0);
    box-shadow: inset 0 0 0 1px var(--app-border), 0 10px 22px rgba(15, 47, 87, .12);
}

.challenge-donut > div {
    display: grid;
    place-items: center;
    text-align: center;
}

.challenge-donut strong {
    color: var(--app-sidebar);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 900;
}

.challenge-donut span {
    margin-top: .2rem;
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-donut-legend {
    display: grid;
    gap: .55rem;
}

.challenge-donut-legend div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .35rem .5rem;
    padding: .65rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.challenge-donut-legend span:not(.legend-dot) {
    color: var(--app-muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-donut-legend strong {
    grid-column: 1 / -1;
    color: var(--app-sidebar);
    font-size: .96rem;
    line-height: 1.1;
}

.challenge-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .25rem;
}

.challenge-progress-footer form {
    margin: 0;
}

.challenge-progress-footer .btn {
    white-space: nowrap;
}

.last-updated-meta {
    min-width: max-content;
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.last-updated-meta span,
.last-updated-meta strong {
    display: block;
}

.last-updated-meta strong {
    color: var(--app-sidebar);
    font-size: .78rem;
}

.legend-dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
}

.legend-dot.done { background: var(--app-accent); }
.legend-dot.remaining { background: #bfd2df; }

.progress-update-form {
    padding-top: 1rem;
    border-top: 1px solid var(--app-border);
}

.available-challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.available-challenge-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.available-challenge-card > img {
    width: 100%;
    height: 100%;
    min-height: 174px;
    object-fit: contain;
    padding: .45rem;
    background: #e5eef7;
    border-right: 1px solid var(--app-border);
}

.available-challenge-body {
    min-width: 0;
    padding: 1rem;
}

.available-challenge-meta {
    display: grid;
    gap: .35rem;
    color: var(--app-muted);
    font-size: .84rem;
    font-weight: 800;
}

.available-challenge-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .9rem;
}

.health-profile-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.health-card {
    min-height: 164px;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.bmi-card {
    color: #fff;
    background: linear-gradient(135deg, var(--app-sidebar), var(--app-sidebar-soft));
}

.bmi-card.success { background: linear-gradient(135deg, #145c63, var(--app-success)); }
.bmi-card.warning { background: linear-gradient(135deg, var(--app-sidebar), #b8860b); }
.bmi-card.danger { background: linear-gradient(135deg, var(--app-sidebar), var(--app-mara)); }
.bmi-card.muted { background: linear-gradient(135deg, var(--app-sidebar), #64748b); }

.health-label {
    display: block;
    color: var(--app-muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bmi-card .health-label,
.bmi-card p {
    color: rgba(255, 255, 255, .76);
}

.health-card strong {
    display: block;
    margin-top: .35rem;
    color: var(--app-sidebar);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.bmi-card strong {
    color: #fff;
    font-size: 3rem;
}

.health-pill {
    padding: .35rem .65rem;
    border-radius: 999px;
    color: var(--app-sidebar);
    background: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.bmi-meter {
    height: .8rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.bmi-meter div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b9e9f1, #f8d777, #b32034);
    transition: width .2s ease;
}

.weight-timeline {
    display: grid;
    gap: .75rem;
}

.weight-chart-card {
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.weight-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .85rem;
}

.weight-chart-head span {
    display: block;
    color: var(--app-muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.weight-chart-head strong {
    display: block;
    color: var(--app-sidebar);
    font-size: 1.25rem;
    line-height: 1.1;
}

.weight-change-pill {
    flex: 0 0 auto;
    padding: .38rem .7rem;
    border-radius: 999px;
    color: #fff !important;
    background: var(--app-mara);
}

.weight-change-pill.down {
    background: var(--app-success);
}

.weight-chart-wrap {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.weight-chart-wrap canvas {
    display: block;
    width: 100%;
}

.weight-chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px dashed #bfd2df;
    border-radius: var(--app-radius);
    color: var(--app-muted);
    background: var(--app-surface-soft);
    font-weight: 800;
    text-align: center;
}

.weight-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface-soft);
}

.weight-row strong,
.weight-row span {
    display: block;
}

.weight-row strong {
    color: var(--app-sidebar);
    font-size: 1.3rem;
    line-height: 1;
}

.weight-row span {
    margin-top: .25rem;
    color: var(--app-muted);
    font-size: .82rem;
    font-weight: 800;
}

.weight-row p {
    margin: 0;
    color: var(--app-muted);
}

.weight-row form {
    margin: 0;
}

@media (max-width: 992px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar {
        position: relative;
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }
    .app-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .4rem;
        padding: .75rem .9rem 1rem;
    }
    .app-menu-heading { grid-column: 1 / -1; }
    .app-menu-link {
        margin-bottom: 0;
        justify-content: center;
        text-align: center;
        font-size: .88rem;
    }
    .app-menu-link:hover { transform: none; }
    .app-sidebar-footer {
        position: relative;
        padding-top: 0;
        box-shadow: none;
    }
    .module-hero .container,
    .detail-header { display: block; }
    .identity-switch { margin-top: 1rem; }
    .challenge-grid,
    .quick-actions,
    .available-challenge-grid,
    .health-profile-grid,
    .stats-grid,
    .athlete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-challenge-main { grid-template-columns: 140px minmax(0, 1fr); }
    .user-challenge-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .athlete-profile { grid-template-columns: 1fr; }
    .user-dashboard-profile-summary .athlete-profile-stats {
        padding: 1rem 0 0;
        border-top: 1px solid var(--app-border);
        border-left: 0;
    }
    .public-detail { grid-template-columns: 1fr; }
    .public-poster { max-height: 360px; }
    .public-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .user-app-shell .app-brand,
    .public-mobile-nav .app-brand {
        min-height: 92px;
        padding: .65rem 4rem;
    }
    .user-app-shell .app-brand-header,
    .public-mobile-nav .app-brand-header {
        max-width: min(190px, calc(100vw - 9rem));
    }
    .login-status-text {
        max-width: calc(100vw - 9rem);
        font-size: .72rem;
    }
    .user-menu-toggle,
    .user-logout-button {
        width: 40px;
        height: 40px;
    }
    .public-mobile-nav .user-menu-panel,
    .user-app-shell .public-mobile-nav .user-menu-panel {
        top: calc(100% + .45rem);
        left: .75rem;
        width: min(360px, calc(100vw - 1.5rem));
    }
    .app-menu,
    .challenge-grid,
    .quick-actions,
    .available-challenge-grid,
    .health-profile-grid,
    .stats-grid,
    .athlete-grid,
    .athlete-profile-stats { grid-template-columns: 1fr; }
    .user-dashboard-profile-summary .athlete-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-dashboard-profile-summary .athlete-profile-stats div {
        padding: .65rem .5rem;
        border-left: 0;
        border-top: 1px solid #e1ebf3;
    }
    .user-dashboard-profile-summary .athlete-profile-stats div:nth-child(-n+2) {
        border-top: 0;
    }
    .portal-shell {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    .module-hero {
        padding: 1.2rem .75rem;
    }
    .stats-grid {
        gap: .65rem;
    }
    .stat-card {
        padding: .85rem;
    }
    .stat-card strong {
        font-size: 1.65rem;
    }
    .athlete-card { grid-template-columns: 74px minmax(0, 1fr); }
    .user-challenge-main,
    .user-challenge-meta { grid-template-columns: 1fr; }
    .challenge-donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .challenge-donut-legend {
        width: 100%;
    }
    .challenge-progress-footer {
        align-items: center;
        flex-direction: row;
        gap: .6rem;
    }
    .last-updated-meta {
        font-size: .66rem;
        text-align: right;
    }
    .last-updated-meta strong {
        font-size: .7rem;
    }
    .user-challenge-main,
    .user-challenge-progress {
        padding: .8rem;
    }
    .user-challenge-poster {
        max-height: 230px;
    }
    .available-challenge-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }
    .available-challenge-card > img {
        min-height: 164px;
    }
    .available-challenge-body {
        padding: .85rem;
    }
    .available-challenge-actions .btn,
    .available-challenge-actions form,
    .progress-update-form .btn {
        width: 100%;
    }
    .available-challenge-actions form .btn {
        width: 100%;
    }
    .public-top-five-row {
        grid-template-columns: 22px 38px minmax(0, 1fr) auto;
        gap: .55rem;
    }
    .top-five-avatar {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        height: 38px;
        min-height: 38px;
        max-height: 38px;
    }
    .top-five-record {
        grid-column: auto;
        font-size: .76rem;
        text-align: right;
    }
    .user-challenge-progress .table-responsive {
        overflow: visible;
    }
    .user-challenge-progress table,
    .user-challenge-progress thead,
    .user-challenge-progress tbody,
    .user-challenge-progress tr,
    .user-challenge-progress td {
        display: block;
        width: 100%;
    }
    .user-challenge-progress thead {
        display: none;
    }
    .user-challenge-progress tr {
        padding: .7rem;
        margin-bottom: .7rem;
        border: 1px solid var(--app-border);
        border-radius: var(--app-radius);
        background: var(--app-surface);
    }
    .user-challenge-progress td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .35rem 0;
        border: 0;
        text-align: right !important;
    }
    .user-challenge-progress td::before {
        color: var(--app-muted);
        font-size: .74rem;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
    }
    .user-challenge-progress td:nth-child(1)::before { content: "Value"; }
    .user-challenge-progress td:nth-child(2)::before { content: "Status"; }
    .user-challenge-progress td:nth-child(3)::before { content: "Evidence"; }
    .user-challenge-progress td:nth-child(4)::before { content: "Notes"; }
    .user-challenge-progress td:nth-child(5)::before { content: "Date"; }
    .user-challenge-progress td:nth-child(6)::before { content: "Action"; }
    .category-head,
    .approval-row,
    .leader-row,
    .summary-list { display: block; }
    .approval-row form,
    .leader-meter { margin-top: .75rem; }
    .leader-meter {
        min-width: 0;
        text-align: left;
    }
    .public-meta { grid-template-columns: 1fr; }
    .public-topbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .public-topbar > .d-flex {
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    .health-card {
        min-height: 0;
    }
    .bmi-card strong {
        font-size: 2.35rem;
    }
    .weight-row {
        grid-template-columns: 1fr;
        gap: .4rem;
    }
    .weight-row form,
    .weight-row form .btn {
        width: 100%;
    }
}
