:root {
    color-scheme: light;
    --ink: #202c24;
    --muted: #777f77;
    --paper: #f6f5ef;
    --white: #fffefa;
    --green: #276044;
    --green-dark: #1c4934;
    --line: #e7e6dd;
    --coral: #d96b4c;
    --yellow: #e8bd58;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5.5vw, 24px);
    border-bottom: 1px solid rgba(32, 44, 36, 0.08);
    background: rgba(255, 254, 250, 0.97);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px 9px 9px 3px;
    background: var(--green);
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 21px;
    line-height: 1;
}

.main-nav {
    display: flex;
    height: 100%;
    align-items: center;
    gap: clamp(20px, 3.2vw, 48px);
}

.nav-link {
    position: relative;
    display: inline-flex;
    height: 100%;
    align-items: center;
    gap: 9px;
    color: #737970;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--green);
    content: '';
}

.location-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: #586157;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.location-button > span:first-child {
    color: var(--green);
    font-size: 17px;
}

.chevron {
    color: #969b94;
}

.hero {
    position: relative;
    display: flex;
    min-height: 380px;
    align-items: center;
    overflow: hidden;
    background: #335d45;
    color: white;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 48%;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(16, 39, 27, 0.82) 0%, rgba(16, 39, 27, 0.52) 45%, rgba(16, 39, 27, 0.08) 100%);
}

.hero-content {
    position: relative;
    width: min(1120px, 89%);
    margin: 0 auto;
    padding: 53px 0 61px;
    animation: arrive 550ms ease-out both;
}

.eyebrow,
.section-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e4ebdf;
}

.eyebrow-dot,
.live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #b4db89;
}

.hero h1 {
    margin: 19px 0 10px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
}

.hero h1 em {
    color: #d8edb2;
    font-style: normal;
}

.hero-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
}

.hero-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 17px;
    margin-top: 25px;
    padding: 0 15px;
    border-radius: 3px;
    background: #e2edcf;
    color: #263b2b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.hero-action:hover {
    transform: translateY(-2px);
    background: white;
}

.hero-action span {
    font-size: 16px;
}

.hero-note {
    position: absolute;
    right: 5.5vw;
    bottom: 25px;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.hero-note span {
    margin-right: 5px;
    color: #d8edb2;
}

.content-width {
    width: min(1000px, 89%);
    margin-right: auto;
    margin-left: auto;
}

.opportunities {
    padding: 53px 0 62px;
}

.section-heading,
.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-kicker {
    color: #73816e;
}

.section-heading h2,
.panel-heading h2 {
    margin: 7px 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.heading-period {
    color: var(--coral);
}

.result-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: #737970;
    font-size: 12px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #79a96d;
}

.opportunity-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.opportunity-card {
    display: grid;
    min-height: 154px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid #e9e8e0;
    border-radius: 5px;
    background: var(--white);
    transition: border-color 160ms ease, transform 160ms ease;
    animation: arrive 500ms ease-out both;
}

.opportunity-card:nth-child(2) {
    animation-delay: 70ms;
}

.opportunity-card:nth-child(3) {
    animation-delay: 140ms;
}

.opportunity-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5c8;
}

.date-tile {
    display: flex;
    width: 52px;
    height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #eaf1e4;
    color: var(--green);
    line-height: 1;
}

.date-tile span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.date-tile strong {
    margin: 4px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 21px;
}

.date-coral {
    background: #faece5;
    color: #ba5d43;
}

.date-yellow {
    background: #f8f1df;
    color: #99762d;
}

.opportunity-details {
    min-width: 0;
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 11px;
}

.category-tag {
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.55px;
}

.category-green {
    background: #edf3e9;
    color: #426443;
}

.category-coral {
    background: #faeee8;
    color: #ae6248;
}

.category-yellow {
    background: #f7f1e3;
    color: #8a702f;
}

.distance {
    color: #858b82;
    font-size: 10px;
}

.opportunity-card h3 {
    overflow-wrap: anywhere;
    margin: 8px 0 1px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.organization {
    margin: 0;
    color: #7b8179;
    font-size: 11px;
}

.opportunity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 19px;
    margin-top: 13px;
    color: #626b61;
    font-size: 10px;
}

.opportunity-meta > span {
    white-space: nowrap;
}

.opportunity-meta > span > span {
    margin-right: 4px;
    color: #73816e;
}

.opportunity-meta .points {
    color: #8a702f;
    font-weight: 700;
}

.signup-button {
    display: inline-flex;
    min-width: 102px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: end;
    margin-bottom: 1px;
    border: 1px solid var(--green);
    border-radius: 3px;
    background: var(--green);
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background 150ms ease, color 150ms ease;
}

.signup-button:hover {
    background: var(--green-dark);
}

.signup-button span {
    font-size: 14px;
}

.signup-button.signed-up {
    min-width: 128px;
    border-color: #d6e5cf;
    background: #edf4e9;
    color: var(--green);
    cursor: default;
}

.community-sections {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    padding-bottom: 58px;
}

.leaderboard-panel,
.profile-panel {
    scroll-margin-top: 96px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
}

.panel-heading {
    align-items: center;
}

.panel-heading h2 {
    font-size: 17px;
}

.period-label {
    padding: 5px 7px;
    border-radius: 2px;
    background: #f0f2e9;
    color: #66745e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.leaderboard-list {
    display: grid;
    gap: 0;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}

.leaderboard-list li {
    display: grid;
    min-height: 52px;
    grid-template-columns: 24px 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #efeee8;
}

.leaderboard-list .current-user {
    margin: 0 -8px;
    padding: 0 8px;
    background: #f5f7ef;
}

.rank {
    color: #8b9188;
    font-size: 10px;
    font-weight: 700;
}

.avatar {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #304537;
    font-size: 9px;
    font-weight: 700;
}

.avatar-small {
    width: 25px;
    height: 25px;
    background: #f3e4d7;
    font-size: 8px;
}

.avatar-mint {
    background: #dcebdd;
}

.avatar-peach {
    background: #f4e1d2;
}

.avatar-blue {
    background: #dce8ed;
}

.volunteer-name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-name small {
    color: #81877f;
    font-size: 9px;
    font-weight: 400;
}

.score {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.score small {
    color: #858b82;
    font-size: 9px;
    font-weight: 500;
}

.profile-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
}

.avatar-large {
    width: 44px;
    height: 44px;
    font-size: 12px;
}

.profile-summary h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    letter-spacing: 0;
}

.profile-summary p {
    margin: 2px 0 0;
    color: #7b8179;
    font-size: 10px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #efeee8;
}

.profile-stats div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-stats strong {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
}

.profile-stats span {
    color: #81877f;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.35px;
}

.app-footer {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5.5vw, 24px);
    border-top: 1px solid var(--line);
    color: #82877f;
    font-size: 10px;
}

.app-footer span:first-child {
    color: #66715f;
    font-weight: 700;
}

.app-footer span:first-child span {
    margin: 0 3px;
    color: var(--coral);
}

@keyframes arrive {
    from {
        transform: translateY(9px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .topbar {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 20px;
    }

    .brand {
        font-size: 18px;
    }

    .main-nav {
        height: 40px;
        gap: 18px;
    }

    .nav-link {
        font-size: 12px;
    }

    .location-button {
        display: inline-flex;
        min-height: 34px;
        margin-left: auto;
    }

    .hero {
        min-height: 350px;
    }

    .hero-content,
    .content-width {
        width: calc(100% - 40px);
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(16, 39, 27, 0.82), rgba(16, 39, 27, 0.28));
    }

    .hero-note {
        right: 20px;
        bottom: 17px;
    }

    .opportunities {
        padding: 42px 0 48px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .opportunity-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 13px;
        padding: 17px;
    }

    .date-tile {
        width: 46px;
        height: 58px;
    }

    .signup-button {
        min-height: 36px;
        grid-column: 2;
        justify-self: start;
        align-self: start;
        margin-top: 2px;
    }

    .opportunity-meta {
        gap: 5px 12px;
    }

    .community-sections {
        grid-template-columns: 1fr;
        padding-bottom: 42px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 8px 14px;
    }

    .brand {
        gap: 7px;
        font-size: 16px;
    }

    .brand-mark {
        width: 27px;
        height: 27px;
    }

    .main-nav {
        gap: 13px;
    }

    .nav-link {
        gap: 5px;
        font-size: 10px;
    }

    .avatar-small {
        width: 22px;
        height: 22px;
        font-size: 7px;
    }

    .hero {
        min-height: 330px;
    }

    .hero-content,
    .content-width {
        width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-copy {
        max-width: 250px;
        font-size: 13px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .result-count {
        padding-bottom: 0;
    }

    .opportunity-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 14px 12px;
    }

    .date-tile {
        width: 42px;
        height: 54px;
    }

    .card-topline {
        flex-wrap: wrap;
        gap: 6px;
    }

    .opportunity-card h3 {
        font-size: 14px;
    }

    .opportunity-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 9px;
    }

    .leaderboard-panel,
    .profile-panel {
        padding: 18px 15px;
    }

    .panel-heading h2 {
        font-size: 15px;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 11px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.location-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #586157;
    font-size: 12px;
    font-weight: 600;
}

.location-label span {
    color: var(--green);
    font-size: 17px;
}

.page-main {
    min-height: calc(100vh - 134px);
    padding-top: 52px;
    padding-bottom: 64px;
}

.page-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 29px;
}

.page-title {
    margin: 8px 0 4px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.page-description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.leaderboard-summary {
    display: flex;
    min-height: 83px;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 1px solid #e5e8dc;
    border-radius: 4px;
    background: #eef2e8;
}

.summary-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #dfe9d8;
    color: var(--green);
    font-size: 20px;
}

.leaderboard-summary > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.leaderboard-summary > div:nth-child(2) strong {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.leaderboard-summary > div:nth-child(2) span {
    color: #747c70;
    font-size: 11px;
}

.summary-your-rank {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #d7dfd0;
}

.summary-your-rank > span {
    color: #6b7665;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.summary-your-rank strong {
    color: var(--green);
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
}

.summary-your-rank small {
    color: #7a8276;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
}

.leaderboard-section {
    margin-top: 32px;
    padding: 23px 25px 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.leaderboard-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.leaderboard-tools h2,
.profile-panel-heading h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    letter-spacing: 0;
}

.results-count {
    display: block;
    margin-top: 3px;
    color: #83887f;
    font-size: 10px;
}

.search-field {
    display: flex;
    width: min(240px, 44%);
    height: 37px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: #788074;
}

.search-field > span {
    font-size: 18px;
}

.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
}

.search-field:focus-within {
    border-color: #8da58d;
    box-shadow: 0 0 0 2px rgba(39, 96, 68, 0.1);
}

.leaderboard-table-header,
.leaderboard-person-row {
    display: grid;
    grid-template-columns: 38px 34px minmax(0, 1fr) 90px 70px;
    align-items: center;
    gap: 10px;
}

.leaderboard-table-header {
    min-height: 35px;
    padding: 0 13px;
    border-top: 1px solid #eeede6;
    border-bottom: 1px solid #eeede6;
    background: #faf9f5;
    color: #858b82;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.leaderboard-table-header span:nth-child(2) {
    grid-column: 3;
}

.leaderboard-table-header span:nth-child(3) {
    grid-column: 4;
}

.leaderboard-table-header span:nth-child(4) {
    grid-column: 5;
}

.leaderboard-table {
    margin: 0;
    padding: 0;
    list-style: none;
}

.leaderboard-person-row {
    min-height: 54px;
    padding: 0 13px;
    border-bottom: 1px solid #efeee8;
}

.leaderboard-person-row.current-user {
    background: #f3f6ed;
}

.person-rank {
    color: #82887f;
    font-size: 11px;
    font-weight: 700;
}

.person-name {
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-turns,
.person-score {
    font-size: 11px;
    font-weight: 600;
}

.person-turns {
    color: #596356;
}

.person-score {
    color: var(--green);
}

.leaderboard-message {
    padding: 18px 13px;
    border-bottom: 1px solid #efeee8;
    color: var(--muted);
    font-size: 12px;
}

.person-turns small,
.person-score small {
    color: #888e84;
    font-size: 9px;
    font-weight: 400;
}

.avatar-tone-0 {
    background: #dcebdd;
}

.avatar-tone-1 {
    background: #f4e1d2;
}

.avatar-tone-2 {
    background: #dce8ed;
}

.avatar-tone-3 {
    background: #eee6cc;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-top: 18px;
}

.page-button {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #687166;
    cursor: pointer;
    font-size: 10px;
}

.page-button:hover:not(:disabled),
.page-button.selected {
    border-color: #dce5d6;
    background: #edf3e9;
    color: var(--green);
}

.page-button:disabled {
    color: #c4c7c0;
    cursor: default;
}

.member-since {
    color: #81877f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.profile-level-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) 1px minmax(0, 1.1fr);
    align-items: center;
    gap: 34px;
    padding: 30px 34px;
    border: 1px solid #e5e8dc;
    border-radius: 4px;
    background: #eef2e8;
}

.member-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.avatar-giant {
    width: 76px;
    height: 76px;
    font-size: 20px;
}

.member-identity h2 {
    margin: 5px 0 2px;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    letter-spacing: 0;
}

.member-tagline {
    margin: 0;
    color: #747c70;
    font-size: 11px;
}

.level-divider {
    width: 1px;
    height: 95px;
    background: #d7dfd0;
}

.level-label-row,
.xp-numbers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.level-badge {
    padding: 5px 8px;
    border-radius: 2px;
    background: var(--green);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.level-name {
    color: #596856;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.xp-numbers {
    margin: 14px 0 8px;
}

.xp-numbers strong {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
}

.xp-numbers strong span {
    color: #81877f;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.xp-numbers > span {
    color: #747c70;
    font-size: 10px;
}

.xp-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 6px;
    background: #d8e1d1;
}

.xp-fill {
    display: block;
    width: 82.67%;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.xp-caption {
    display: flex;
    justify-content: space-between;
    margin: 7px 0 0;
    color: #677363;
    font-size: 9px;
}

.xp-caption span {
    color: #9a8b57;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 16px;
}

.stat-card {
    display: grid;
    min-height: 118px;
    grid-template-columns: 34px 1fr;
    grid-template-rows: 40px 1fr;
    align-items: center;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.stat-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
}

.stat-icon-green {
    background: #eaf1e4;
    color: var(--green);
}

.stat-icon-coral {
    background: #faece5;
    color: #ba5d43;
}

.stat-icon-yellow {
    background: #f8f1df;
    color: #99762d;
}

.stat-card strong {
    font-family: 'Manrope', sans-serif;
    font-size: 23px;
}

.stat-card > span:last-child {
    grid-column: 1 / -1;
    color: #7c8379;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.profile-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
    gap: 14px;
    margin-top: 28px;
}

.profile-content-panel {
    min-width: 0;
    padding: 23px 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.profile-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-panel-heading .section-kicker {
    margin-bottom: 5px;
}

.text-link {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.text-link span {
    margin-left: 3px;
}

.activity-list {
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    display: grid;
    min-height: 60px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border-top: 1px solid #efeee8;
}

.activity-mark {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
}

.activity-mark-green,
.badge-icon-green {
    background: #eaf1e4;
    color: var(--green);
}

.activity-mark-coral,
.badge-icon-coral {
    background: #faece5;
    color: #ba5d43;
}

.activity-mark-yellow,
.badge-icon-yellow {
    background: #f8f1df;
    color: #99762d;
}

.activity-list li > div,
.achievement-badge > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.activity-list li strong,
.achievement-badge strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-list li div span,
.achievement-badge small {
    overflow: hidden;
    color: #858b82;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-xp {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-list {
    display: grid;
    gap: 15px;
    margin-top: 19px;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 11px;
}

.badge-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
}

@media (max-width: 760px) {
    .page-main {
        padding-top: 39px;
        padding-bottom: 46px;
    }

    .profile-level-card {
        grid-template-columns: 1fr;
        gap: 19px;
        padding: 24px;
    }

    .level-divider {
        width: 100%;
        height: 1px;
    }

    .profile-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .location-label {
        display: none;
    }

    .page-heading-row {
        align-items: flex-start;
    }

    .page-heading-row .period-label,
    .member-since {
        margin-top: 3px;
        white-space: nowrap;
    }

    .leaderboard-section {
        margin-top: 22px;
        padding: 17px 12px 14px;
    }

    .leaderboard-table-header,
    .leaderboard-person-row {
        grid-template-columns: 24px 29px minmax(0, 1fr) 45px 48px;
        gap: 6px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .leaderboard-table-header {
        font-size: 7px;
        letter-spacing: 0;
    }

    .leaderboard-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .search-field {
        width: 100%;
    }

    .person-name {
        font-size: 10px;
    }

    .person-turns,
    .person-score {
        font-size: 9px;
    }

    .page-button {
        width: 27px;
        height: 29px;
        font-size: 9px;
    }

    .leaderboard-summary {
        gap: 10px;
        padding: 13px;
    }

    .leaderboard-summary > div:nth-child(2) span {
        max-width: 145px;
        font-size: 9px;
    }

    .summary-your-rank {
        padding-left: 11px;
    }

    .profile-level-card {
        padding: 19px 15px;
    }

    .member-identity {
        gap: 12px;
    }

    .avatar-giant {
        width: 58px;
        height: 58px;
        font-size: 16px;
    }

    .member-identity h2 {
        font-size: 18px;
    }

    .member-tagline {
        max-width: 190px;
        font-size: 9px;
    }

    .level-name {
        font-size: 10px;
    }

    .xp-numbers > span {
        font-size: 9px;
    }

    .profile-stats-grid {
        gap: 7px;
    }

    .stat-card {
        min-height: 104px;
        padding: 12px 10px;
    }

    .stat-card strong {
        font-size: 20px;
    }

    .stat-card > span:last-child {
        font-size: 7px;
        letter-spacing: 0.3px;
    }

    .profile-content-panel {
        padding: 18px 14px;
    }

    .activity-list li {
        grid-template-columns: 29px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .activity-list li strong {
        font-size: 9px;
    }

    .activity-list li div span {
        font-size: 8px;
    }
}

.profile-overview {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 17px;
    padding: 22px 24px;
    border: 1px solid #e5e8dc;
    border-radius: 4px;
    background: #eef2e8;
}

.profile-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.profile-overview-details {
    min-width: 0;
}

.profile-overview-details h2 {
    overflow-wrap: anywhere;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
}

.profile-level-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 4px 7px;
    border-radius: 3px;
    background: var(--green);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    vertical-align: middle;
    white-space: nowrap;
}

.profile-overview-details p {
    overflow-wrap: anywhere;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-overview .profile-stats-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.profile-overview .stat-card {
    min-height: 84px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 12px 15px;
}

.profile-overview .stat-card strong {
    line-height: 1.1;
}

.profile-level-progress {
    grid-column: 1 / -1;
}

.profile-level-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #596856;
    font-size: 10px;
    font-weight: 600;
}

.profile-level-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #d8e1d1;
}

.profile-level-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 180ms ease;
}

.profile-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.profile-workspace .profile-content-panel {
    padding: 22px;
}

.form-stack {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.form-stack label,
.location-search-form label {
    color: #4c584d;
    font-size: 11px;
    font-weight: 700;
}

.form-stack input,
.form-stack textarea,
.location-search-form input {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid #dcded5;
    border-radius: 3px;
    background: #fffefa;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.form-stack textarea {
    min-height: 76px;
    resize: vertical;
}

.form-stack input:focus,
.form-stack textarea:focus,
.location-search-form input:focus {
    border-color: #8da58d;
    outline: 2px solid rgba(39, 96, 68, 0.12);
}

.form-stack fieldset {
    display: grid;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-stack fieldset:disabled {
    opacity: 0.55;
}

.form-inline-fields {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
}

.form-inline-fields > div {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.form-submit {
    width: fit-content;
    min-height: 39px;
    margin-top: 5px;
    padding: 0 14px;
    border: 0;
    cursor: pointer;
}

.form-note,
.form-status {
    margin: 2px 0 0;
    color: #737970;
    font-size: 10px;
}

.form-status {
    min-height: 15px;
    color: var(--green-dark);
}

.account-mode-toggle {
    width: fit-content;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
}

[hidden] {
    display: none !important;
}

.optional-label {
    color: #858b82;
    font-size: 9px;
    font-weight: 500;
}

.activity-history {
    margin-top: 18px;
}

.activity-photo-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.review-activity-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
    margin: 20px 0;
    font-size: 12px;
}

.review-activity-details dt {
    color: var(--muted);
    font-weight: 700;
}

.review-activity-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.review-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.review-photo-grid figure {
    margin: 0;
}

.review-photo-grid img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #f6f5ef;
}

.review-photo-grid figcaption {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
}

.activity-history .activity-list {
    margin-top: 14px;
}

.activity-history .activity-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 11px 2px;
}

.activity-history .activity-list li strong {
    font-size: 12px;
}

.activity-history .activity-list li div span {
    white-space: normal;
    font-size: 10px;
}

.activity-hours {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.review-requests-heading {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.review-request-status {
    color: #8a6b2e;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.review-request-status.rejected {
    color: #a24e3b;
}

.activity-history .activity-list .activity-empty {
    display: block;
    padding: 15px 0 2px;
    color: var(--muted);
    font-size: 12px;
}

.community-empty {
    max-width: 700px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.community-empty h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.review-reject-button {
    min-height: 39px;
    padding: 0 14px;
    border: 1px solid #d9c7c1;
    border-radius: 3px;
    background: #fffefa;
    color: #8f493a;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.review-reject-button:hover {
    background: #f8eeea;
}

.review-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.community-empty p {
    max-width: 590px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.community-empty .hero-action {
    margin-top: 18px;
}

.location-dialog {
    width: min(440px, calc(100% - 32px));
    max-width: none;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 18px 60px rgba(25, 37, 28, 0.2);
}

.location-dialog::backdrop {
    background: rgba(25, 37, 28, 0.48);
}

.location-dialog h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 21px;
}

.location-dialog > p:not(.location-status) {
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 12px;
}

.dialog-close-form {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dialog-close {
    width: 31px;
    height: 31px;
    border: 0;
    background: transparent;
    color: #687166;
    cursor: pointer;
    font-size: 22px;
}

.location-submit {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: 3px;
    background: var(--green);
    color: white;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.location-submit:hover {
    background: var(--green-dark);
}

.location-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.location-search-form {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.location-search-form > div {
    display: flex;
    gap: 8px;
}

.location-search-form input {
    flex: 1;
}

.location-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: var(--green-dark);
    font-size: 11px;
}

@media (max-width: 760px) {
    .profile-workspace {
        grid-template-columns: 1fr;
    }

    .profile-overview {
        grid-template-columns: minmax(0, 1fr);
        padding: 19px;
    }

    .profile-overview .profile-stats-grid {
        width: 100%;
        margin: 4px 0 0;
    }

    .profile-level-progress {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .profile-overview {
        gap: 12px;
        padding: 15px;
    }

    .profile-overview .avatar-giant {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }

    .profile-overview-details h2 {
        font-size: 16px;
    }

    .profile-overview-details p {
        font-size: 10px;
    }

    .profile-level-progress-label {
        font-size: 9px;
    }

    .profile-overview .stat-card {
        min-height: 75px;
        padding: 10px;
    }

    .profile-workspace .profile-content-panel,
    .community-empty {
        padding: 17px 14px;
    }

    .form-inline-fields {
        grid-template-columns: 1fr;
    }
}