/* ===================================================
   DINOKANA YOUTH DEVELOPMENT PLATFORM
   Main Stylesheet
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {

    --primary: #1B5E20;
    --secondary: #2E7D32;
    --accent: #66BB6A;

    --background: #F4F8F4;

    --card: #FFFFFF;

    --text: #263238;

    --shadow: 0 10px 30px rgba(0,0,0,.08);

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Nunito',sans-serif;

    background:var(--background);

    color:var(--text);

}

.container{

    width:90%;
    max-width:1100px;

    margin:auto;

    padding:40px;

}

header{

    text-align:center;

    margin-bottom:50px;

}

header h1{

    font-size:42px;

    color:var(--primary);

    font-weight:800;

}

header p{

    margin-top:10px;

    color:#666;

    font-size:18px;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

.card{

    background:var(--card);

    border-radius:18px;

    padding:30px;

    text-decoration:none;

    color:inherit;

    box-shadow:var(--shadow);

    transition:.25s;

}

.card:hover{

    transform:translateY(-8px);

}

.icon{

    font-size:45px;

    margin-bottom:20px;

}

.card h2{

    color:var(--primary);

    margin-bottom:10px;

}

.card p{

    color:#666;

    line-height:1.6;

}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 55px;
    padding: 24px 10px 10px;
}

.studio-brand {
    display: inline-flex;
    text-decoration: none;
}

.studio-logo {
    width: 230px;
    height: auto;
    overflow: visible;
    transition: transform 0.2s ease;
}

.studio-logo-box {
    fill: #202124;
}

.studio-logo-k {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-logo-name {
    fill: var(--primary);
    font-family: "Nunito", sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.studio-logo-subtitle {
    fill: #6b746d;
    font-family: "Nunito", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.studio-brand:hover .studio-logo {
    transform: translateY(-2px);
}

/* ===================================================
   SHARED BRAND SYSTEM
=================================================== */

.app-brandbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    margin: 0;
    padding: 10px clamp(18px, 4vw, 58px);
    border-bottom: 1px solid #dce7de;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 22px rgba(18, 61, 36, 0.055);
    text-align: left;
}

.app-user-context {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-left: auto;
    color: #607067;
    font-size: 0.72rem;
}

.app-user-context strong,
.app-user-context a {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf5ef;
    color: #1e6331;
    font-weight: 900;
    text-decoration: none;
}

.app-user-context a:hover {
    background: #dfeee3;
}

.app-brand-home {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.app-brand-logo-frame {
    display: grid;
    place-items: center;
    width: 108px;
    height: 58px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #ffffff;
}

.app-brand-logo {
    position: static;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.app-brand-copy,
.app-brand-name,
.app-brand-tagline {
    display: block;
}

.app-brand-name {
    color: #123d24;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
}

.app-brand-tagline {
    margin-top: 3px;
    color: #6d7971;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25px;
}

.branded-site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 58px;
    padding: 28px 20px 34px;
    border-top: 1px solid #dce7de;
    background: #ffffff;
    color: #718077;
    text-align: center;
}

.branded-site-footer p,
.branded-site-footer span {
    margin: 0;
    color: #718077;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.kmathole-footer-logo {
    display: block;
    width: min(330px, 82vw);
    height: auto;
}


.branded-footer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.footer-copyright {
    margin: 3px 0 0;
    color: #58685e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
}

.privacy-footer-notice {
    width: min(860px, 100%);
    overflow: hidden;
    border: 1px solid #dce7de;
    border-radius: 14px;
    background: #f7faf7;
}

.privacy-footer-notice summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    padding: 11px 15px;
    color: #31543c;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.25px;
    list-style: none;
}

.privacy-footer-notice summary::-webkit-details-marker {
    display: none;
}

.privacy-footer-notice summary::after {
    content: "▾";
    margin-left: 2px;
    color: #718077;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.privacy-footer-notice[open] summary::after {
    transform: rotate(180deg);
}

.privacy-footer-notice summary span::before {
    content: "•";
    margin-right: 10px;
    color: #9baa9f;
}

.privacy-footer-notice p {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 18px 15px;
    color: #68756d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 560px) {
    .privacy-footer-notice summary {
        flex-direction: column;
        gap: 2px;
    }

    .privacy-footer-notice summary span::before {
        content: "";
        margin: 0;
    }
}

/* ===================================================
   PROFESSIONAL DASHBOARD
=================================================== */

.dashboard-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 90% 3%,
            rgba(231, 174, 64, 0.12),
            transparent 24rem
        ),
        linear-gradient(180deg, #f7faf7 0%, #edf4ee 100%);
}

.dashboard-shell {
    flex: 1 0 auto;
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(24px, 5vw, 58px) 0 20px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    overflow: hidden;
    margin: 0 0 54px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(20, 77, 40, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.98),
            rgba(239, 247, 241, 0.96)
        );
    box-shadow: 0 24px 70px rgba(18, 61, 36, 0.12);
    text-align: left;
}

.dashboard-logo-panel {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    height: 190px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e3eae4;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 13px 34px rgba(18, 61, 36, 0.08);
}

.dashboard-dyd-logo {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-logo-tagline {
    margin-top: -8px;
    color: #174629;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a36b0d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dashboard-eyebrow::before {
    width: 27px;
    height: 2px;
    background: #d69a2e;
    content: "";
}

.dashboard-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #123d24;
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
}

.dashboard-hero-copy > p {
    max-width: 690px;
    margin: 18px 0 22px;
    color: #53645a;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8f2ea;
    color: #315d3d;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-hero-meta i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c9a55;
    box-shadow: 0 0 0 4px rgba(60, 154, 85, 0.13);
}

.dashboard-section {
    margin: 0 0 48px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 0 3px 18px;
}

.dashboard-section-heading h2 {
    margin: 3px 0 0;
    color: #1d3828;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
}

.dashboard-section-heading > p {
    max-width: 480px;
    margin: 0;
    color: #68776d;
    line-height: 1.55;
}

.dashboard-card-grid {
    display: grid;
    gap: 18px;
}

.dashboard-card-grid-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 17px;
    min-height: 190px;
    padding: 25px;
    border: 1px solid #dde7df;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 13px 34px rgba(25, 72, 39, 0.07);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: #98bfa2;
    box-shadow: 0 20px 42px rgba(25, 72, 39, 0.13);
}

.dashboard-card:focus-visible {
    outline: 3px solid rgba(44, 126, 67, 0.28);
    outline-offset: 3px;
}

.dashboard-card-featured {
    border-color: #9bc3a5;
    background: linear-gradient(145deg, #ffffff, #f0f8f2);
}

.dashboard-card-warning {
    border-color: #ead2a1;
    background: linear-gradient(145deg, #fffdf8, #fff7e7);
}

.dashboard-card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #e5f1e8;
    color: #1d6a35;
}

.dashboard-card-warning .dashboard-card-icon {
    background: #f8e8be;
    color: #926411;
}

.dashboard-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-card-copy,
.dashboard-card-copy > * {
    display: block;
}

.dashboard-card-copy small {
    margin-bottom: 6px;
    color: #77847b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-card-copy strong {
    margin-bottom: 8px;
    color: #173d25;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.dashboard-card-copy > span {
    color: #65736a;
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-card-arrow {
    align-self: end;
    color: #2e7041;
    font-size: 24px;
    font-weight: 800;
    transition: transform 0.18s ease;
}

.dashboard-card:hover .dashboard-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-logo-panel {
        width: min(360px, 100%);
    }

    .dashboard-card-grid-primary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .app-brandbar {
        min-height: 64px;
        padding: 8px 14px;
    }

    .app-user-context > span,
    .app-user-context a {
        display: none;
    }

    .app-user-context strong {
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-brand-logo-frame {
        width: 88px;
        height: 48px;
    }

    .app-brand-logo {
        width: 100%;
        height: 100%;
    }

    .app-brand-name {
        font-size: 14px;
    }

    .app-brand-tagline {
        display: none;
    }

    .dashboard-shell {
        width: min(100% - 22px, 1220px);
        padding-top: 18px;
    }

    .dashboard-hero {
        gap: 23px;
        margin-bottom: 38px;
        padding: 23px;
        border-radius: 22px;
    }

    .dashboard-logo-panel {
        height: 145px;
    }

    .dashboard-hero h1 {
        letter-spacing: -1px;
    }

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

    .dashboard-card-grid-secondary {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 0;
        padding: 20px;
    }
}

/* =========================================================
   Activity form
   ========================================================= */

.form-page {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    padding: 42px 0 70px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

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

.form-card {
    padding: 38px;
    background: #ffffff;
    border: 1px solid #e4ebe5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.form-heading {
    margin-bottom: 32px;
}

.form-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.form-heading h1 {
    margin: 0 0 10px;
    color: #202124;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.1;
}

.form-heading p {
    max-width: 620px;
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label {
    color: #26352a;
    font-size: 14px;
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd7ce;
    border-radius: 12px;
    background: #fbfdfb;
    color: #202124;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 48px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 120px;
    padding: 13px 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e7ece8;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(27, 94, 32, 0.18);
}

.button-primary:hover {
    box-shadow: 0 12px 24px rgba(27, 94, 32, 0.24);
}

.button-secondary {
    background: #edf3ee;
    color: #36533c;
}

.button-secondary:hover {
    background: #e3ece5;
}

@media (max-width: 680px) {
    .form-page {
        width: min(100% - 22px, 920px);
        padding-top: 24px;
    }

    .form-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

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

    .form-group-wide {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .button {
        width: 100%;
    }
}

/* =========================================================
   Activity lifecycle progress
   ========================================================= */

.lifecycle-progress {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 34px;
    padding: 20px 22px;
    box-sizing: border-box;
    background: #f4f7f4;
    border: 1px solid #e3e9e4;
    border-radius: 18px;
}

.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 92px;
    color: #8a948c;
    text-align: center;
}

.lifecycle-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 2px solid #cbd4cd;
    border-radius: 50%;
    background: #ffffff;
    color: #7b857d;
    font-size: 14px;
    font-weight: 900;
}

.lifecycle-label {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.lifecycle-line {
    flex: 1 1 auto;
    min-width: 22px;
    height: 2px;
    margin: 16px 8px 0;
    background: #d7ded8;
}

.lifecycle-step-active {
    color: var(--primary);
}

.lifecycle-step-active .lifecycle-number {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(27, 94, 32, 0.2);
}

@media (max-width: 680px) {
    .lifecycle-progress {
        overflow-x: auto;
        align-items: flex-start;
        padding: 18px 14px;
        scrollbar-width: thin;
    }

    .lifecycle-step {
        min-width: 84px;
    }

    .lifecycle-line {
        min-width: 20px;
        margin-right: 2px;
        margin-left: 2px;
    }

    .lifecycle-label {
        font-size: 11px;
    }
}

/* =========================================================
   Form validation
   ========================================================= */

.form-alert {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #e5b9b5;
    border-radius: 12px;
    background: #fff7f6;
    color: #8a2822;
    font-size: 14px;
}

.form-alert strong {
    font-weight: 900;
}

.field-error {
    color: #a52f28;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   Activity confirmation
   ========================================================= */

.confirmation-page {
    max-width: 780px;
}

.confirmation-card {
    text-align: center;
}

.success-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(27, 94, 32, 0.22);
}

.confirmation-heading {
    max-width: 590px;
    margin: 0 auto 28px;
}

.confirmation-heading h1 {
    margin: 0 0 10px;
    color: #202124;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    line-height: 1.1;
}

.confirmation-heading p {
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.6;
}

.activity-reference {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 auto 28px;
    padding: 20px;
    border: 1px dashed #a9bbaa;
    border-radius: 16px;
    background: #f4f8f4;
}

.activity-reference span {
    color: #6d776f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.activity-reference strong {
    color: var(--primary);
    font-size: clamp(21px, 4vw, 30px);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #e1e8e2;
    text-align: left;
}

.activity-summary div {
    min-width: 0;
    padding: 17px 18px;
    background: #ffffff;
}

.activity-summary dt {
    margin-bottom: 5px;
    color: #7a847c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.activity-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26352a;
    font-size: 15px;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f2e7;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.confirmation-actions {
    justify-content: center;
}

@media (max-width: 680px) {
    .activity-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Activity details
   ========================================================= */

.activity-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

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

.activity-topbar .back-link {
    margin-bottom: 0;
}

.activity-id-small {
    color: #728078;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 26px;
    align-items: center;
    padding: 34px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.activity-hero h1 {
    margin: 0 0 16px;
    color: #202124;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.05;
}

.activity-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #66726a;
    font-size: 14px;
    font-weight: 800;
}

.activity-next-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px;
    border-radius: 18px;
    background: #f2f7f2;
}

.activity-next-step > span {
    color: #748079;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.activity-next-step strong {
    margin-bottom: 12px;
    color: #25342a;
    font-size: 20px;
    font-weight: 900;
}

.button-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none !important;
    box-shadow: none !important;
}

.activity-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 22px 0;
    padding: 8px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
}

.activity-tab {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 10px;
    color: #66726a;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.activity-tab-active {
    background: var(--primary);
    color: #ffffff;
}

.activity-tab:not(.activity-tab-active):is(a):hover {
    background: #eef5ef;
    color: var(--primary);
}

.activity-tab-completed:not(.activity-tab-active) {
    background: #edf6ef;
    color: #2d7040;
}

.activity-tab-attention {
    background: #fff2d7;
    color: #865d0d;
}

.activity-tab-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.activity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.activity-panel {
    padding: 28px;
    border: 1px solid #e1e8e2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.panel-heading h2,
.activity-panel h2 {
    margin: 0;
    color: #25342a;
    font-size: 24px;
    font-weight: 900;
}

.panel-heading {
    margin-bottom: 22px;
}

.activity-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e3e9e4;
    border-radius: 15px;
    background: #e3e9e4;
}

.activity-detail-grid div {
    min-width: 0;
    padding: 17px;
    background: #ffffff;
}

.activity-detail-grid dt {
    margin-bottom: 5px;
    color: #7a857d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.activity-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26352a;
    font-size: 15px;
    font-weight: 800;
}

.activity-notes {
    margin-top: 22px;
    padding: 19px;
    border-radius: 15px;
    background: #f6f8f6;
}

.activity-notes-label {
    display: block;
    margin-bottom: 7px;
    color: #68746b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.activity-notes p {
    margin: 0;
    color: #354139;
    line-height: 1.65;
}

.activity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.compact-panel {
    padding: 24px;
}

.activity-status-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.activity-status-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #879088;
}

.activity-status-list li > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #d1d9d2;
    border-radius: 50%;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.activity-status-list strong,
.activity-status-list small {
    display: block;
}

.activity-status-list strong {
    color: #455047;
    font-size: 14px;
    font-weight: 900;
}

.activity-status-list small {
    margin-top: 2px;
    font-size: 12px;
}

.activity-status-current {
    color: var(--primary) !important;
}

.activity-status-current > span {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff;
}

.activity-status-current strong {
    color: var(--primary);
}

.activity-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .activity-hero,
    .activity-layout {
        grid-template-columns: 1fr;
    }

    .activity-next-step {
        align-items: stretch;
    }
}

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

    .activity-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .activity-hero {
        padding: 24px 19px;
        border-radius: 19px;
    }

    .activity-detail-grid {
        grid-template-columns: 1fr;
    }

    .activity-panel {
        padding: 22px 18px;
    }
}

/* =========================================================
   Volunteer Management
   ========================================================= */

.volunteer-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 30px;
    align-items: center;
    padding: 36px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.directory-hero h1 {
    margin: 0 0 12px;
    color: #202124;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.directory-hero p {
    max-width: 670px;
    margin: 0;
    color: #68726a;
    font-size: 16px;
    line-height: 1.65;
}

.directory-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 20px;
    border-radius: 19px;
    background: #f1f7f2;
    text-align: center;
}

.directory-stat strong {
    color: var(--primary);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.directory-stat span {
    margin-top: 7px;
    color: #617066;
    font-size: 13px;
    font-weight: 800;
}

/* Protected administration */

.admin-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.admin-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.admin-role-stat {
    min-width: 0;
}

.admin-role-stat strong {
    max-width: 100%;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.1;
    white-space: nowrap;
}

.admin-foundation-panel {
    margin-top: 24px;
}

.admin-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.admin-success-banner {
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid #9bc9a6;
    border-radius: 13px;
    background: #edf8ef;
    color: #1f6332;
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-backup-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.admin-backup-heading form {
    flex-shrink: 0;
}

.admin-backup-list {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.admin-backup-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid #e0e9e2;
    border-radius: 12px;
    background: #f8faf8;
}

.admin-backup-list strong {
    overflow-wrap: anywhere;
    color: #26372b;
    font-size: 0.78rem;
}

.admin-backup-list span,
.admin-empty-state,
.admin-backup-warning {
    color: #69756c;
    font-size: 0.74rem;
}

.admin-restore-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #edf5ef;
    color: #31513a;
    font-size: 0.75rem;
    line-height: 1.5;
}

.admin-restore-note strong {
    color: #1e6331;
    font-size: 0.79rem;
}

.role-readonly-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.role-readonly-fieldset:disabled {
    opacity: 1;
}

.role-readonly-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #cbdccf;
    border-radius: 12px;
    background: #f1f6f2;
    color: #46604d;
    font-size: 0.78rem;
    font-weight: 800;
}

.role-page-readonly form input,
.role-page-readonly form select,
.role-page-readonly form textarea,
.role-page-readonly form button {
    pointer-events: none;
    opacity: 0.65;
}

.admin-backup-list span {
    flex-shrink: 0;
}

.admin-empty-state {
    margin: 20px 0 0;
}

.admin-backup-warning {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e3e9e4;
    line-height: 1.5;
}

.admin-user-panel {
    margin-top: 24px;
}

.admin-user-list,
.admin-audit-list {
    display: grid;
    gap: 10px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e1e9e3;
    border-radius: 14px;
    background: #f9fbf9;
}

.admin-user-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-user-identity {
    display: grid;
    gap: 2px;
}

.admin-user-identity strong,
.admin-audit-row strong {
    color: #25362a;
    font-size: 0.86rem;
}

.admin-user-identity small,
.admin-audit-row small {
    color: #6a766e;
    font-size: 0.72rem;
}

.admin-audit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 14px 4px;
    border-bottom: 1px solid #e4eae5;
}

.admin-audit-row > div {
    display: grid;
    gap: 3px;
}

.admin-audit-row > div:last-child {
    text-align: right;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.admin-metric-card {
    display: grid;
    gap: 5px;
    padding: 22px;
    border: 1px solid #dfe9e1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 64, 31, 0.055);
}

.admin-metric-card span {
    color: #6c786f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-metric-card strong {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-metric-card small {
    color: #6c786f;
    font-size: 0.78rem;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 20px;
    margin-top: 24px;
}

.admin-alert-list,
.admin-status-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.admin-alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px;
    border: 1px solid #dfe7e0;
    border-radius: 13px;
    background: #f7faf8;
}

.admin-alert > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e4efe7;
    color: #236336;
    font-weight: 900;
}

.admin-alert div {
    display: grid;
    gap: 2px;
}

.admin-alert strong {
    color: #26372b;
    font-size: 0.86rem;
}

.admin-alert small {
    color: #68736b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.admin-alert-warning {
    border-color: #ead49b;
    background: #fffbf0;
}

.admin-alert-warning > span {
    background: #f7e9bd;
    color: #8a5c00;
}

.admin-alert-critical {
    border-color: #edc5c1;
    background: #fff6f5;
}

.admin-alert-critical > span {
    background: #f5d8d5;
    color: #9b2e27;
}

.admin-status-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7ece8;
}

.admin-status-list dt,
.admin-status-list dd {
    margin: 0;
    font-size: 0.76rem;
}

.admin-status-list dt {
    color: #6e7971;
}

.admin-status-list dd {
    max-width: 180px;
    overflow-wrap: anywhere;
    color: #26372b;
    font-weight: 900;
    text-align: right;
}

.admin-status-list .admin-status-danger {
    color: #a33129;
}

.report-review-panel,
.report-returned-alert {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .admin-hero {
        grid-template-columns: 1fr;
    }

    .admin-role-stat {
        align-items: flex-start;
        min-height: auto;
        text-align: left;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

    .admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-backup-heading,
    .admin-backup-list > div {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-backup-heading .button {
        width: 100%;
    }

    .admin-backup-list span {
        flex-shrink: 1;
    }

    .admin-user-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-user-row > .status-badge,
    .admin-user-row > .button {
        grid-column: 2;
        justify-self: start;
    }

    .admin-audit-row {
        grid-template-columns: 1fr;
    }

    .admin-audit-row > div:last-child {
        text-align: left;
    }
}

.volunteer-list-section {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading-row h2 {
    margin: 0;
    color: #25342a;
    font-size: 27px;
    font-weight: 900;
}

.record-count {
    color: #738078;
    font-size: 13px;
    font-weight: 800;
}

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

.volunteer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.volunteer-card:hover {
    transform: translateY(-2px);
    border-color: #b8c9ba;
    box-shadow: 0 10px 24px rgba(22, 64, 31, 0.09);
}

.volunteer-avatar,
.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.volunteer-avatar {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.volunteer-card-content {
    min-width: 0;
}

.volunteer-card-content h3 {
    margin: 0 0 3px;
    overflow: hidden;
    color: #26352a;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-id {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.volunteer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
    color: #78827a;
    font-size: 12px;
    font-weight: 700;
}

.volunteer-card-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 9px;
}

.volunteer-card-section-label {
    color: #8a948c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.volunteer-card-section strong {
    overflow: hidden;
    color: #34483a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-card-section strong.volunteer-card-section-missing {
    color: #9a7461;
    font-style: italic;
    font-weight: 800;
}

.volunteer-card-meta strong {
    color: #59665d;
    font-weight: 900;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    padding: 65px 25px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 16px;
    font-size: 50px;
}

.empty-state h2 {
    margin: 0 0 10px;
    color: #25342a;
    font-size: 28px;
    font-weight: 900;
}

.empty-state p {
    max-width: 500px;
    margin: 0 0 23px;
    color: #6d786f;
    line-height: 1.65;
}

.form-section-heading {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 34px 0 20px;
    padding-top: 28px;
    border-top: 1px solid #e4eae5;
}

.form-section-heading:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.form-section-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.form-section-heading h2 {
    margin: 0;
    color: #26352a;
    font-size: 20px;
    font-weight: 900;
}

.form-section-heading p {
    margin: 3px 0 0;
    color: #768178;
    font-size: 13px;
}

.optional-label {
    margin-left: 4px;
    color: #929b94;
    font-size: 11px;
    font-weight: 700;
}

.privacy-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 28px;
    padding: 15px 17px;
    border-radius: 13px;
    background: #f3f7f3;
    color: #56645a;
    font-size: 13px;
}

.privacy-note strong {
    color: var(--primary);
    font-weight: 900;
}

.success-banner {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid #bcd2bf;
    border-radius: 14px;
    background: #eff8f0;
}

.success-banner > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.success-banner strong,
.success-banner small {
    display: block;
}

.success-banner strong {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.success-banner small {
    margin-top: 2px;
    color: #667268;
}

.volunteer-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
    border: 1px solid #e1e8e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 25px;
    box-shadow: 0 12px 25px rgba(27, 94, 32, 0.19);
}

.profile-title h1 {
    margin: 0 0 13px;
    color: #202124;
    font-size: clamp(31px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
}

.volunteer-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    margin-top: 22px;
}

.profile-side-list {
    margin: 19px 0 0;
}

.profile-side-list div {
    padding: 13px 0;
    border-bottom: 1px solid #e5ebe6;
}

.profile-side-list div:first-child {
    padding-top: 0;
}

.profile-side-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-side-list dt {
    margin-bottom: 4px;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.profile-side-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #29372e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .directory-hero,
    .volunteer-profile-hero,
    .volunteer-profile-layout {
        grid-template-columns: 1fr;
    }

    .directory-stat {
        align-items: flex-start;
        min-height: auto;
        text-align: left;
    }

    .profile-actions {
        display: flex;
    }
}

@media (max-width: 720px) {
    .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .volunteer-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .volunteer-card > .status-badge {
        grid-column: 2;
        justify-self: start;
    }
}

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

    .directory-hero,
    .volunteer-profile-hero {
        padding: 24px 19px;
        border-radius: 19px;
    }

    .volunteer-list-section {
        padding: 22px 17px;
    }

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

    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 21px;
    }
}

/* =========================================================
   Activity Directory
   ========================================================= */

.activity-directory-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.activity-directory-content {
    margin-top: 24px;
}

.activity-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 21px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 64, 31, 0.055);
}

.summary-card span {
    color: #78837a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.summary-card strong {
    color: var(--primary);
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.activity-directory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
    padding: 25px;
    border: 1px solid #e1e8e2;
    border-radius: 19px;
    background: #ffffff;
}

.activity-directory-toolbar h2 {
    margin: 0;
    color: #25342a;
    font-size: 27px;
    font-weight: 900;
}

.activity-directory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-directory-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(22, 64, 31, 0.045);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.activity-directory-card:hover {
    transform: translateY(-2px);
    border-color: #abc1ae;
    box-shadow: 0 14px 30px rgba(22, 64, 31, 0.09);
}

.activity-directory-main {
    min-width: 0;
}

.activity-directory-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.activity-directory-id {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.activity-directory-title-row h3 {
    margin: 0;
    color: #26352a;
    font-size: 19px;
    font-weight: 900;
}

.activity-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 11px;
    color: #748078;
    font-size: 12px;
    font-weight: 700;
}

.activity-directory-open {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.activity-directory-open strong {
    font-size: 19px;
}

@media (max-width: 900px) {
    .activity-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-directory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-directory-toolbar .volunteer-search {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .activity-directory-page {
        width: min(100% - 22px, 1180px);
        padding-top: 22px;
    }

    .activity-summary-cards {
        grid-template-columns: 1fr 1fr;
    }

    .activity-directory-card {
        grid-template-columns: 1fr;
    }

    .activity-directory-title-row {
        flex-direction: column;
        gap: 8px;
    }

    .activity-directory-open {
        justify-content: flex-end;
    }
}

/* =========================================================
   Team Assignment
   ========================================================= */

.assign-team-form {
    margin-top: 24px;
}

.assignment-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 25px;
    border: 1px solid #e1e8e2;
    border-radius: 19px;
    background: #ffffff;
}

.assignment-toolbar h2 {
    margin: 0;
    color: #25342a;
    font-size: 26px;
    font-weight: 900;
}

.volunteer-search {
    width: min(100%, 390px);
}

.volunteer-search input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #ccd7ce;
    border-radius: 12px;
    background: #fbfdfb;
    color: #202124;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    outline: none;
}

.volunteer-search input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

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

.assignment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 2px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.assignment-card:hover {
    transform: translateY(-2px);
    border-color: #abc1ae;
    box-shadow: 0 10px 25px rgba(22, 64, 31, 0.08);
}

.assignment-card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.assignment-card-selected {
    border-color: var(--primary);
    background: #f0f7f1;
}

.assignment-card-content h3 {
    margin: 0 0 3px;
    color: #25342a;
    font-size: 17px;
    font-weight: 900;
}

.assignment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 7px;
    color: #748078;
    font-size: 12px;
    font-weight: 700;
}

.selection-indicator {
    display: inline-flex;
    min-width: 86px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #edf1ed;
    color: #6e7971;
    font-size: 12px;
    font-weight: 900;
}

.selection-checked {
    display: none;
}

.assignment-card-selected .selection-indicator {
    background: var(--primary);
    color: #ffffff;
}

.assignment-card-selected .selection-empty {
    display: none;
}

.assignment-card-selected .selection-checked {
    display: inline;
}

.assignment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #dce5dd;
    border-radius: 16px;
    background: #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 850px) {
    .assignment-grid {
        grid-template-columns: 1fr;
    }

    .assignment-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-search {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .assignment-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .selection-indicator {
        grid-column: 2;
        justify-self: start;
    }

    .assignment-actions {
        flex-direction: column-reverse;
    }

    .assignment-actions .button {
        width: 100%;
    }
}

/* =========================================================
   Attendance
   ========================================================= */

.attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.attendance-form {
    margin-top: 22px;
}

.attendance-panel {
    padding: 28px;
    border: 1px solid #e1e8e2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(22, 64, 31, 0.055);
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-row {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #ffffff;
}

.attendance-person {
    min-width: 0;
}

.attendance-person strong,
.attendance-person span {
    display: block;
}

.attendance-person strong {
    color: #26352a;
    font-size: 16px;
    font-weight: 900;
}

.attendance-person span {
    margin-top: 3px;
    color: #78827a;
    font-size: 11px;
    font-weight: 700;
}

.attendance-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.attendance-choice {
    display: inline-flex;
    cursor: pointer;
}

.attendance-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.attendance-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d6ded7;
    border-radius: 999px;
    background: #f4f7f4;
    color: #68746b;
    font-size: 12px;
    font-weight: 900;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.attendance-choice:hover span {
    border-color: #abc1ae;
}

.attendance-choice-selected span {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 900px) {
    .attendance-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .attendance-options {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 63px;
    }
}

@media (max-width: 680px) {
    .attendance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-panel {
        padding: 21px 17px;
    }

    .attendance-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .attendance-options {
        padding-left: 0;
    }

    .attendance-choice span {
        padding: 0 10px;
        font-size: 11px;
    }
}

/* =========================================================
   Field Work
   ========================================================= */

.fieldwork-hero h1 {
    text-transform: none;
}

.fieldwork-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 20px;
    border-radius: 19px;
    background: #f1f7f2;
    text-align: center;
}

.fieldwork-status-box strong {
    margin-top: 6px;
    color: #26352a;
    font-size: 22px;
    font-weight: 900;
}

.fieldwork-status-box small {
    margin-top: 3px;
    color: #718076;
    font-size: 12px;
    font-weight: 700;
}

.fieldwork-status-dot {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.fieldwork-status-dot.ready {
    background: #98a39a;
}

.fieldwork-status-dot.live {
    background: #2e9b43;
    box-shadow: 0 0 0 7px rgba(46, 155, 67, 0.13);
}

.fieldwork-status-dot.completed {
    background: var(--primary);
}

.fieldwork-workspace {
    margin-top: 24px;
}

.fieldwork-primary-card,
.fieldwork-live-card,
.fieldwork-complete-card {
    padding: 42px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(22, 64, 31, 0.07);
    text-align: center;
}

.fieldwork-primary-card h2,
.fieldwork-complete-card h2 {
    margin: 0 0 10px;
    color: #25342a;
    font-size: 30px;
    font-weight: 900;
}

.fieldwork-primary-card p {
    max-width: 590px;
    margin: 0 auto 27px;
    color: #6f7b72;
    line-height: 1.65;
}

.gps-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.fieldwork-main-button {
    min-width: min(100%, 360px);
    min-height: 70px;
    padding: 0 28px;
    border: 0;
    border-radius: 17px;
    background: var(--primary);
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(27, 94, 32, 0.22);
}

.gps-status {
    color: #78837a;
    font-size: 12px;
    font-weight: 700;
}

.fieldwork-skip-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 760px;
    margin: 28px auto 0;
    padding: 18px;
    border: 1px solid #e5ddd1;
    border-radius: 14px;
    background: #fffaf4;
    text-align: left;
}

.fieldwork-skip-option strong,
.fieldwork-skip-option small {
    display: block;
}

.cancelled-activity-summary {
    display: block;
    max-width: 240px;
    color: #813a34;
    font-size: 14px;
    font-weight: 900;
}

.activity-directory-card[
    data-activity-status="cancelled"
] {
    border-left-color: #a6534c;
    background: #fff8f7;
}

.status-badge[
    data-activity-status="cancelled"
] {
    background: #f7dfdc;
    color: #873a34;
}

.activity-cancel-button {
    border-color: #e3b8b4;
    color: #8b332d;
}

.activity-delete-details {
    padding: 14px;
    border: 1px solid #ecc8c4;
    border-radius: 12px;
    background: #fff8f7;
}

.activity-delete-details summary {
    color: #962f2a;
    font-weight: 900;
    cursor: pointer;
}

.activity-delete-details p {
    color: #7a6562;
    font-size: 12px;
    line-height: 1.45;
}

.activity-delete-details form {
    display: grid;
    gap: 9px;
}

.activity-delete-details input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #dfc3c0;
    border-radius: 9px;
    font: inherit;
}

.fieldwork-skip-option strong {
    color: #5f4828;
}

.fieldwork-skip-option small {
    margin-top: 4px;
    color: #796c59;
    line-height: 1.45;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9f6eb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e9b43;
    animation: fieldwork-pulse 1.4s infinite;
}

@keyframes fieldwork-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 155, 67, 0.5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(46, 155, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 155, 67, 0);
    }
}

.fieldwork-timer-label {
    display: block;
    color: #758078;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fieldwork-timer {
    display: block;
    margin: 5px 0 28px;
    color: #202124;
    font-size: clamp(48px, 10vw, 82px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
}

.fieldwork-live-details,
.fieldwork-complete-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0 auto 28px;
    border: 1px solid #e0e7e1;
    border-radius: 16px;
    background: #e0e7e1;
    text-align: left;
}

.fieldwork-live-details div,
.fieldwork-complete-grid div {
    padding: 18px;
    background: #ffffff;
}

.fieldwork-live-details span,
.fieldwork-complete-grid span {
    display: block;
    margin-bottom: 4px;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fieldwork-live-details strong,
.fieldwork-complete-grid strong {
    overflow-wrap: anywhere;
    color: #28372d;
    font-size: 14px;
    font-weight: 900;
}

.finish-fieldwork-form {
    padding-top: 7px;
}

.button-danger {
    background: #9f332d;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(159, 51, 45, 0.18);
}

.fieldwork-complete-card .success-symbol {
    margin-right: auto;
    margin-left: auto;
}

.fieldwork-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d5dfd6;
    border-radius: 13px;
    background: #f7f9f7;
    color: #536158;
    font-size: 14px;
    font-weight: 800;
}

.fieldwork-reminder-dialog {
    width: min(560px, calc(100% - 32px));
    padding: 30px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(18, 42, 24, 0.28);
}

.fieldwork-reminder-dialog::backdrop {
    background: rgba(15, 29, 19, 0.56);
}

.fieldwork-reminder-dialog h2 {
    margin: 8px 0 10px;
    color: #24352a;
    font-size: 26px;
}

.fieldwork-reminder-dialog p {
    color: #657269;
    line-height: 1.6;
}

.fieldwork-reminder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* =========================================================
   Historical activities
   ========================================================= */

.historical-page {
    padding-bottom: 70px;
}

.historical-hero {
    margin-bottom: 24px;
}

.historical-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.historical-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid #dde6df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 64, 31, 0.06);
}

.historical-action-card h2,
.historical-section h2 {
    margin: 5px 0 8px;
    color: #25352a;
    font-size: 23px;
}

.historical-action-card p,
.historical-section-heading p {
    color: #68756c;
    line-height: 1.55;
}

.historical-action-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f2ea;
    color: var(--primary);
    font-size: 21px;
    font-weight: 900;
}

.historical-upload-form,
.historical-capture-form,
.historical-form-section {
    display: grid;
    gap: 16px;
}

.historical-upload-form {
    margin-top: 18px;
}

.historical-upload-form label,
.historical-capture-form label {
    display: grid;
    gap: 7px;
    color: #304238;
    font-size: 13px;
    font-weight: 900;
}

.historical-upload-form input,
.historical-upload-form textarea,
.historical-capture-form input,
.historical-capture-form select,
.historical-capture-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d7e0d9;
    border-radius: 10px;
    background: #ffffff;
    color: #26352b;
    font: inherit;
}

.historical-upload-form small,
.historical-capture-form small {
    color: #718077;
    font-weight: 700;
}

.historical-capture-form .movement-distance-field {
    transition: color 160ms ease, opacity 160ms ease;
}

.historical-capture-form .movement-distance-field.is-disabled {
    color: #7d8981;
}

.historical-capture-form .movement-distance-field input:disabled {
    border-color: #e0e5e1;
    background: #f1f4f2;
    color: #89938d;
    cursor: not-allowed;
    opacity: 1;
}

.historical-section {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #e0e7e2;
    border-radius: 20px;
    background: #ffffff;
}

.historical-section-heading {
    margin-bottom: 20px;
}

.historical-section-heading p {
    max-width: 780px;
    margin-bottom: 0;
}

.historical-record-list {
    display: grid;
    gap: 12px;
}

.historical-record-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px;
    border: 1px solid #dde5df;
    border-radius: 14px;
    background: #fafcfb;
}

.historical-record-card.warning-record {
    border-left: 5px solid #c28a26;
    background: #fffaf1;
}

.historical-record-card h3 {
    margin: 6px 0 3px;
    color: #26352b;
}

.historical-record-card p {
    margin: 0 0 5px;
    color: #59685f;
}

.historical-record-card small {
    color: #748078;
    font-weight: 700;
}

.record-status,
.evidence-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #faedcf;
    color: #81590d;
    font-size: 11px;
    font-weight: 900;
}

.record-status.captured {
    background: #e5f2e8;
    color: #28653a;
}

.record-status.pending {
    background: #e8edf6;
    color: #405b86;
}

.evidence-label {
    background: #edf1ed;
    color: #536259;
}

.historical-empty-state {
    padding: 22px;
    border: 1px dashed #cfd9d1;
    border-radius: 13px;
    background: #fafcfb;
    color: #6b786f;
    text-align: center;
    font-weight: 800;
}

.historical-form-page {
    padding-bottom: 70px;
}

.historical-capture-form {
    margin-top: 24px;
}

.historical-form-section {
    padding: 28px;
    border: 1px solid #e0e7e2;
    border-radius: 18px;
    background: #ffffff;
}

.historical-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.historical-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.historical-not-held {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #ecd4d1;
    border-radius: 15px;
    background: #fff8f7;
}

.historical-not-held strong {
    color: #71342f;
}

.historical-not-held p {
    margin: 5px 0 0;
    color: #7c6663;
}

@media (max-width: 680px) {
    .fieldwork-primary-card,
    .fieldwork-live-card,
    .fieldwork-complete-card {
        padding: 27px 18px;
    }

    .fieldwork-live-details,
    .fieldwork-complete-grid {
        grid-template-columns: 1fr;
    }

    .fieldwork-reminder-actions {
        flex-direction: column;
    }

    .fieldwork-skip-option {
        align-items: stretch;
        flex-direction: column;
    }

    .historical-actions-grid,
    .historical-form-grid {
        grid-template-columns: 1fr;
    }

    .historical-action-card {
        grid-template-columns: 1fr;
    }

    .historical-record-card {
        align-items: stretch;
        flex-direction: column;
    }

    .historical-form-actions {
        flex-direction: column-reverse;
    }

    .historical-not-held {
        align-items: stretch;
        flex-direction: column;
    }

    .fieldwork-main-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   Activity Reporting
   ========================================================= */

.report-page {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.report-form {
    margin-top: 24px;
}

.report-form-section {
    padding: 34px;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.report-kpi-grid article {
    padding: 22px;
    border: 1px solid #e1e8e2;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 64, 31, 0.055);
}

.report-kpi-grid span,
.report-complete-grid span {
    display: block;
    color: #78837a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.report-kpi-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.report-completion-warning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding: 17px 19px;
    border: 1px solid #c4d7c6;
    border-radius: 14px;
    background: #f1f8f2;
}

.report-completion-warning strong {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.report-completion-warning span {
    color: #68756b;
    font-size: 13px;
}

.report-complete-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 30px;
    border: 1px solid #dce6dd;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 64, 31, 0.08);
    text-align: center;
}

.report-complete-hero h1 {
    margin: 7px 0 10px;
    color: #202124;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.report-complete-hero p {
    max-width: 650px;
    margin: 0;
    color: #6d786f;
    line-height: 1.65;
}

.completed-status-badge {
    display: inline-flex;
    margin-top: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.report-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.report-narrative-section {
    margin-top: 18px;
    padding: 19px;
    border-radius: 15px;
    background: #f6f8f6;
}

.report-narrative-section h3 {
    margin: 0 0 7px;
    color: #26352a;
    font-size: 16px;
    font-weight: 900;
}

.report-narrative-section p {
    margin: 0;
    color: #536158;
    line-height: 1.65;
    white-space: pre-wrap;
}

.report-evidence-manager,
.report-evidence-list {
    display: grid;
    gap: 16px;
}

.report-evidence-upload-row {
    padding: 20px;
    border: 1px solid #dce5de;
    border-radius: 16px;
    background: #f9fbf9;
}

.report-evidence-row-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #26352a;
}

.report-evidence-remove {
    border: 0;
    background: transparent;
    color: #a33b34;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.report-evidence-remove:disabled {
    color: #a8b0aa;
    cursor: not-allowed;
}

.report-evidence-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
}

.report-evidence-upload-grid label {
    display: grid;
    align-content: start;
    gap: 8px;
    color: #26352a;
    font-size: 13px;
    font-weight: 800;
}

.report-evidence-upload-grid input,
.report-evidence-upload-grid select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #ccd7ce;
    border-radius: 11px;
    background: #ffffff;
    color: #202124;
    font: inherit;
}

.report-evidence-upload-grid input[type="file"] {
    padding: 9px;
}

.report-evidence-upload-grid input:focus,
.report-evidence-upload-grid select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.report-evidence-upload-grid small {
    color: #738078;
    font-size: 11px;
}

.report-evidence-caption {
    grid-column: 1 / -1;
}

.report-evidence-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #edf4ee;
    color: #415148;
    font-size: 12px;
    font-weight: 800;
}

.report-evidence-preview[hidden] {
    display: none;
}

.report-evidence-preview img {
    width: 92px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
}

.report-evidence-add {
    justify-self: start;
}

.report-evidence-add:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.report-evidence-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid #dce5de;
    border-radius: 13px;
    background: #f4f8f4;
    color: #46564c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.report-evidence-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.report-evidence-reselect {
    padding: 13px 15px;
    border: 1px solid #eed9a8;
    border-radius: 12px;
    background: #fff9e9;
    color: #775b18;
    font-size: 12px;
    font-weight: 800;
}

.report-evidence-gallery-section {
    margin-bottom: 24px;
}

.report-evidence-gallery-section .panel-heading p {
    margin: 6px 0 0;
    color: #6d786f;
}

.report-evidence-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.report-evidence-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce5de;
    border-radius: 15px;
    background: #ffffff;
}

.report-evidence-card a,
.report-evidence-card img {
    display: block;
    width: 100%;
}

.report-evidence-card img {
    height: 210px;
    object-fit: cover;
}

.report-evidence-card figcaption {
    display: grid;
    gap: 5px;
    padding: 14px;
}

.report-evidence-card figcaption span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.report-evidence-card figcaption strong {
    color: #26352a;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .report-summary-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-evidence-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .report-page {
        width: min(100% - 22px, 1120px);
        padding-top: 22px;
    }

    .report-form-section {
        padding: 23px 18px;
    }

    .report-complete-hero {
        padding: 36px 19px;
    }

    .report-evidence-upload-grid,
    .report-evidence-gallery {
        grid-template-columns: 1fr;
    }
}

/* Activity journey guide */

.activity-journey {
    margin: 18px 0;
    padding: 22px 24px;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.activity-journey-heading {
    margin-bottom: 16px;
}

.activity-journey-heading h2 {
    margin: 4px 0 0;
    color: #173c27;
    font-size: 1.05rem;
}

.activity-journey-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.activity-journey-steps > span:not(.journey-arrow) {
    padding: 8px 11px;
    border-radius: 999px;
    background: #edf6f0;
    color: #245f36;
    font-size: 0.82rem;
    font-weight: 800;
}

.journey-arrow {
    color: #6e8b76;
    font-weight: 900;
}

@media (max-width: 700px) {
    .activity-journey-steps {
        align-items: stretch;
        flex-direction: column;
    }

    .activity-journey-steps > span:not(.journey-arrow) {
        text-align: center;
    }

    .journey-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

/* Our Impact page */

.impact-page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 64px;
    font-family: "Nunito", Arial, sans-serif;
}

.impact-page-topbar {
    margin-bottom: 18px;
}

.impact-page-shell .directory-hero {
    margin-bottom: 18px;
}

.impact-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.impact-summary-card {
    display: flex;
    min-height: 150px;
    padding: 20px;
    flex-direction: column;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.impact-summary-card span {
    color: #55705e;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.impact-summary-card strong {
    margin: 10px 0 8px;
    color: #17652f;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.impact-summary-card small {
    margin-top: auto;
    color: #66736b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.impact-page-shell .activity-journey {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .impact-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .impact-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .impact-page-shell {
        width: min(100% - 20px, 1180px);
    }

    .impact-summary-grid {
        grid-template-columns: 1fr;
    }
}

.impact-reporting-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #edf6f0;
}

.impact-reporting-period strong {
    display: block;
    margin-top: 4px;
    color: #17652f;
    font-size: 1.15rem;
    font-weight: 900;
}

.impact-reporting-period p {
    max-width: 430px;
    margin: 0;
    color: #5f6e65;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 700px) {
    .impact-reporting-period {
        align-items: flex-start;
        flex-direction: column;
    }

    .impact-reporting-period p {
        text-align: left;
    }
}

/* Impact by programme */

.programme-impact-section {
    margin-bottom: 18px;
    padding: 26px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.programme-impact-heading {
    margin-bottom: 20px;
}

.programme-impact-heading h2 {
    margin: 5px 0 6px;
    color: #173c27;
    font-size: 1.45rem;
}

.programme-impact-heading p {
    margin: 0;
    color: #637069;
    line-height: 1.6;
}

.programme-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.programme-impact-card {
    --impact-accent: #237a43;
    --impact-soft: #eaf6ee;

    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 17px;
    background: #ffffff;
}

.programme-impact-card[data-programme="schools"] {
    --impact-accent: #2563a6;
    --impact-soft: #edf4fb;
}

.programme-impact-card[data-programme="youth_development"] {
    --impact-accent: #c76a18;
    --impact-soft: #fff3e8;
}

.programme-impact-card[data-programme="community_support"] {
    --impact-accent: #76509b;
    --impact-soft: #f4eef9;
}

.programme-impact-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 18px;
    background: var(--impact-soft);
}

.programme-impact-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #ffffff;
    font-size: 1.15rem;
}

.programme-impact-title h3 {
    margin: 0;
    color: var(--impact-accent);
    font-size: 1.05rem;
}

.programme-impact-stats {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 18px 8px;
}

.programme-impact-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e7eee9;
}

.programme-impact-stats div:last-child {
    border-bottom: 0;
}

.programme-impact-stats dt {
    color: #617068;
    font-size: 0.8rem;
    font-weight: 700;
}

.programme-impact-stats dd {
    margin: 0;
    color: var(--impact-accent);
    font-size: 1.15rem;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .programme-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .programme-impact-section {
        padding: 20px;
    }

    .programme-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Attendance Hub */

.attendance-hub-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 40px;
    font-family: "Nunito", Arial, sans-serif;
}

.attendance-hub-hero {
    margin-bottom: 18px;
}

.attendance-hub-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.attendance-hub-list-section {
    padding: 24px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 45, 35, 0.05);
}

.attendance-hub-list-section .section-heading-row {
    margin-bottom: 18px;
}

.attendance-hub-list-section h2 {
    margin: 5px 0 0;
    color: #173c27;
    font-size: 1.45rem;
}

.attendance-hub-list {
    display: grid;
    gap: 13px;
}

@media (max-width: 800px) {
    .attendance-hub-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .attendance-hub-page {
        width: min(100% - 20px, 1180px);
    }

    .attendance-hub-summary {
        grid-template-columns: 1fr;
    }

    .attendance-hub-list-section {
        padding: 18px;
    }
}

/* Attendance Hub activity cards */

.attendance-hub-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid #dfe8e2;
    border-radius: 16px;
    background: #ffffff;
}

.attendance-hub-card:hover {
    border-color: #b9cebf;
    box-shadow: 0 7px 20px rgba(22, 45, 35, 0.06);
}

.attendance-hub-card-main h3 {
    margin: 4px 0 7px;
    color: #173c27;
    font-size: 1.05rem;
}

.attendance-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #657169;
    font-size: 0.8rem;
}

.attendance-hub-card-status {
    min-width: 210px;
}

.attendance-state-badge {
    display: inline-block;
    margin-bottom: 9px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6f0;
    color: #25623a;
    font-size: 0.74rem;
    font-weight: 900;
}

.attendance-state-badge[data-attendance-state="ready"] {
    background: #edf4fb;
    color: #2563a6;
}

.attendance-state-badge[data-attendance-state="in_progress"] {
    background: #fff3e8;
    color: #a95612;
}

.attendance-state-badge[data-attendance-state="needs_team"] {
    background: #f7eeee;
    color: #944545;
}

.attendance-hub-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #647169;
    font-size: 0.76rem;
}

.attendance-hub-counts strong {
    color: #1f6335;
}

.attendance-hub-card-action {
    min-width: 150px;
    text-align: right;
}

.attendance-hub-card-action .button {
    white-space: nowrap;
}

@media (max-width: 850px) {
    .attendance-hub-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .attendance-hub-card-status,
    .attendance-hub-card-action {
        min-width: 0;
    }

    .attendance-hub-card-action {
        text-align: left;
    }
}

/* Volunteer QR card */

.volunteer-qr-panel {
    overflow: hidden;
}

.volunteer-qr-intro {
    margin: 6px 0 14px;
    color: #647169;
    font-size: 0.84rem;
    line-height: 1.5;
}

.volunteer-qr-image {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}

.volunteer-qr-image img {
    display: block;
    width: min(100%, 250px);
    height: auto;
    padding: 10px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #ffffff;
}

.volunteer-qr-details {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
    text-align: center;
}

.volunteer-qr-details strong {
    color: #173c27;
}

.volunteer-qr-details span {
    color: #68756d;
    font-size: 0.8rem;
}

.volunteer-qr-panel .button {
    display: flex;
    width: 100%;
    justify-content: center;
}

.volunteer-qr-note {
    display: block;
    margin-top: 12px;
    color: #6b776f;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

/* QR attendance entry */

.attendance-scan-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #d7e5db;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(22, 45, 35, 0.05);
}

.attendance-scan-entry-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.attendance-scan-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 15px;
    background: #edf6f0;
    font-size: 1.55rem;
}

.attendance-scan-entry h2 {
    margin: 4px 0 4px;
    color: #173c27;
    font-size: 1.18rem;
}

.attendance-scan-entry p {
    margin: 0;
    color: #66736b;
    font-size: 0.86rem;
    line-height: 1.5;
}


/* QR attendance scanner page */

.attendance-scanner-page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 44px;
}

.attendance-scanner-hero {
    margin-bottom: 18px;
}

.attendance-scanner-panel {
    padding: 26px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(22, 45, 35, 0.06);
}

.attendance-scanner-heading {
    margin-bottom: 18px;
}

.attendance-scanner-heading h2 {
    margin: 5px 0 0;
    color: #173c27;
    font-size: 1.35rem;
}

.scanner-status-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.scanner-status-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid #dbe6de;
    border-radius: 14px;
    background: #f8fbf9;
    color: #506158;
    cursor: pointer;
    font-weight: 800;
}

.scanner-status-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scanner-status-choice.is-selected {
    border-color: #27753f;
    background: #eaf5ed;
    color: #175e31;
    box-shadow: inset 0 0 0 1px #27753f;
}

.qr-reader {
    overflow: hidden;
    min-height: 280px;
    margin-bottom: 18px;
    border: 1px dashed #b9ccc0;
    border-radius: 18px;
    background: #f4f8f5;
}

.qr-reader:empty {
    display: grid;
    place-items: center;
}

.qr-reader:empty::before {
    content: "Camera preview will appear here";
    color: #758078;
    font-size: 0.88rem;
    font-weight: 700;
}

.qr-reader video {
    border-radius: 14px;
}

.qr-reader img {
    max-width: 100%;
}

.scanner-result {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #f6faf7;
}

.scanner-result strong {
    color: #173c27;
}

.scanner-result span {
    color: #657269;
    font-size: 0.85rem;
    line-height: 1.5;
}

.scanner-result-processing {
    border-color: #d8e2eb;
    background: #f1f6fa;
}

.scanner-result-success {
    border-color: #b8d9c2;
    background: #eaf6ed;
}

.scanner-result-notice {
    border-color: #ead8ae;
    background: #fff8e8;
}

.scanner-result-error {
    border-color: #e6c1c1;
    background: #fbefef;
}

.scanner-result-error strong {
    color: #8d3838;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scanner-actions .button {
    min-width: 150px;
    justify-content: center;
}

@media (max-width: 700px) {
    .attendance-scan-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-scan-entry .button {
        width: 100%;
        justify-content: center;
    }

    .attendance-scanner-page {
        width: min(100% - 20px, 960px);
        padding-top: 20px;
    }

    .attendance-scanner-panel {
        padding: 18px;
    }

    .scanner-status-options {
        grid-template-columns: 1fr;
    }

    .scanner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .scanner-actions .button {
        width: 100%;
    }
}

/* Hide the scanner stop button when the camera is inactive */
#stop-scanner:disabled {
    display: none;
}

/* QR scanner progress */

.scanner-progress-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 700px) {
    .scanner-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Activity directory stage colours */

.activity-directory-group {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dce7df;
    border-radius: 20px;
}

.active-activity-group {
    background: #f7fafc;
    border-color: #dbe5ec;
}

.completed-activity-group {
    background: #f3f7f3;
    border-color: #d5e3d8;
}

.activity-directory-group .section-heading-row {
    margin-bottom: 18px;
}

.activity-directory-card {
    border-left: 6px solid transparent;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.activity-directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 45, 35, 0.08);
}


/* Planned */

.activity-directory-card[
    data-activity-status="planned"
] {
    border-left-color: #4b82bd;
    background: #f7fbff;
}

.status-badge[
    data-activity-status="planned"
] {
    background: #e5f0fb;
    color: #255d93;
}


/* Team assigned */

.activity-directory-card[
    data-activity-status="team-assigned"
] {
    border-left-color: #765aa7;
    background: #fbf9fe;
}

.status-badge[
    data-activity-status="team-assigned"
] {
    background: #eee8f8;
    color: #5e418e;
}


/* Attendance recorded */

.activity-directory-card[
    data-activity-status="attendance-recorded"
] {
    border-left-color: #287c75;
    background: #f5fbfa;
}

.status-badge[
    data-activity-status="attendance-recorded"
] {
    background: #dff2ef;
    color: #17665f;
}


/* Field work started */

.activity-directory-card[
    data-activity-status="field-work-started"
] {
    border-left-color: #c28a26;
    background: #fffaf1;
}

.status-badge[
    data-activity-status="field-work-started"
] {
    background: #faedcf;
    color: #8a5c08;
}


/* Field work completed */

.activity-directory-card[
    data-activity-status="field-work-completed"
] {
    border-left-color: #ca6a24;
    background: #fff8f2;
}

.status-badge[
    data-activity-status="field-work-completed"
] {
    background: #fbe7d7;
    color: #9a4810;
}


/* Report submitted */

.activity-directory-card[
    data-activity-status="report-submitted"
] {
    border-left-color: #5968aa;
    background: #f7f8fd;
}

.status-badge[
    data-activity-status="report-submitted"
] {
    background: #e6e9f8;
    color: #43528f;
}


/* Completed historical activity */

.completed-activity-card {
    border-left-color: #3d8354;
    background: #f7faf7;
}

.completed-activity-card:hover {
    border-left-color: #286a40;
}

.status-badge[
    data-activity-status="completed"
] {
    background: #dfeee2;
    color: #21663a;
}

.completed-activity-card .activity-directory-open {
    color: #45604e;
}

.completed-activity-card .activity-directory-id {
    color: #4d7059;
}


/* Compact layout on smaller screens */

@media (max-width: 700px) {
    .activity-directory-group {
        padding: 16px;
    }

    .activity-directory-card {
        border-left-width: 5px;
    }
}

/* Make Attendance Recorded clearly different from Completed */

.activity-directory-card[
    data-activity-status="attendance-recorded"
] {
    border-left-color: #367fc1;
    background: #f3f8fd;
}

.status-badge[
    data-activity-status="attendance-recorded"
] {
    background: #deecf9;
    color: #245f96;
}


/* Volunteer status colours */

.status-badge[data-volunteer-status] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-badge[data-volunteer-status]::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}


/* Active volunteer */

.status-badge[
    data-volunteer-status="active"
] {
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}


/* Volunteer temporarily on pause */

.status-badge[
    data-volunteer-status="on-pause"
] {
    border: 1px solid #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}


/* Former volunteer */

.status-badge[
    data-volunteer-status="former-volunteer"
] {
    border: 1px solid #d6dbd8;
    background: #eef1ef;
    color: #59625d;
}


/* Profile avatar reflects the current volunteer status */

.volunteer-profile-hero[
    data-volunteer-status="active"
] .profile-avatar {
    background: #1f6b32;
}

.volunteer-profile-hero[
    data-volunteer-status="on-pause"
] .profile-avatar {
    background: #b47813;
}

.volunteer-profile-hero[
    data-volunteer-status="former-volunteer"
] .profile-avatar {
    background: #68716c;
}


/* Status choices on the management page */

.volunteer-status-choice[
    data-volunteer-status="active"
] {
    border-left: 5px solid #34824b;
}

.volunteer-status-choice[
    data-volunteer-status="on-pause"
] {
    border-left: 5px solid #c18a26;
}

.volunteer-status-choice[
    data-volunteer-status="former-volunteer"
] {
    border-left: 5px solid #7a837e;
}

/* Volunteer Directory avatar status colours */

.volunteer-card[
    data-volunteer-status="active"
] .volunteer-avatar {
    background: #1f6b32;
}

.volunteer-card[
    data-volunteer-status="on-pause"
] .volunteer-avatar {
    background: #b47813;
}

.volunteer-card[
    data-volunteer-status="former-volunteer"
] .volunteer-avatar {
    background: #68716c;
}


/* Existing inactive activity assignments */

.inactive-assignment-panel {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e3ddd0;
    border-radius: 18px;
    background: #fffdf8;
}

.inactive-assignment-panel .panel-heading {
    margin-bottom: 16px;
}

.inactive-assignment-panel .panel-heading p {
    max-width: 760px;
    margin-top: 6px;
    color: #68716c;
}

.inactive-assignment-list {
    display: grid;
    gap: 12px;
}

.inactive-assignment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dde4df;
    border-left: 5px solid #7a837e;
    border-radius: 15px;
    background: #ffffff;
}

.inactive-assignment-card[
    data-volunteer-status="on-pause"
] {
    border-left-color: #b47813;
    background: #fffaf0;
}

.inactive-assignment-card[
    data-volunteer-status="former-volunteer"
] {
    border-left-color: #68716c;
    background: #f5f7f6;
}

.inactive-assignment-card[
    data-volunteer-status="on-pause"
] .volunteer-avatar {
    background: #b47813;
}

.inactive-assignment-card[
    data-volunteer-status="former-volunteer"
] .volunteer-avatar {
    background: #68716c;
}

@media (max-width: 700px) {
    .inactive-assignment-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .inactive-assignment-card .status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* Distinguish Planned from Attendance Recorded */

.activity-directory-card[
    data-activity-status="planned"
] {
    border-left-color: #8296a5;
    background: #f7f9fa;
}

.status-badge[
    data-activity-status="planned"
] {
    border: 1px solid #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Attendance Hub stage colours */

/* Ready for attendance: neutral grey-blue */

.attendance-hub-card[
    data-attendance-state="ready"
] {
    border-left: 6px solid #8296a5;
    background: #f7f9fa;
}

.attendance-state-badge[
    data-attendance-state="ready"
],
.attendance-summary-card[
    data-attendance-state="ready"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Attendance in progress: amber */

.attendance-hub-card[
    data-attendance-state="in_progress"
] {
    border-left: 6px solid #c18a26;
    background: #fffaf1;
}

.attendance-state-badge[
    data-attendance-state="in_progress"
],
.attendance-summary-card[
    data-attendance-state="in_progress"
] {
    border-color: #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}


/* Attendance recorded: blue */

.attendance-hub-card[
    data-attendance-state="recorded"
] {
    border-left: 6px solid #367fc1;
    background: #f3f8fd;
}

.attendance-state-badge[
    data-attendance-state="recorded"
],
.attendance-summary-card[
    data-attendance-state="recorded"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Needs team assignment: purple */

.attendance-hub-card[
    data-attendance-state="needs_team"
] {
    border-left: 6px solid #765aa7;
    background: #fbf9fe;
}

.attendance-state-badge[
    data-attendance-state="needs_team"
],
.attendance-summary-card[
    data-attendance-state="needs_team"
] {
    border-color: #d9ceed;
    background: #eee8f8;
    color: #5e418e;
}


/* Completed attendance record: green and view only */

.attendance-hub-card[
    data-attendance-state="completed"
] {
    border-left: 6px solid #3d8354;
    background: #f7faf7;
}

.attendance-state-badge[
    data-attendance-state="completed"
] {
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}


/* Summary cards keep readable text */

.attendance-summary-card {
    border: 1px solid transparent;
}

.attendance-summary-card span,
.attendance-summary-card strong {
    color: inherit;
}


@media (max-width: 700px) {
    .attendance-hub-card[
        data-attendance-state
    ] {
        border-left-width: 5px;
    }
}

/* Clear Attendance Hub workload indicators */

.attendance-workload-section {
    margin-bottom: 18px;
}

.attendance-workload-heading {
    margin-bottom: 14px;
}

.attendance-workload-heading h2 {
    margin: 4px 0 2px;
}

.attendance-workload-heading p {
    margin: 0;
    color: #68716c;
}

.attendance-summary-card {
    min-height: 124px;
}

.attendance-summary-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}

@media (max-width: 700px) {
    .attendance-summary-card {
        min-height: 112px;
    }
}


/* Manage Activities workload indicators */

.activity-workload-section {
    margin-bottom: 18px;
}

.activity-workload-heading {
    margin-bottom: 14px;
}

.activity-workload-heading h2 {
    margin: 4px 0 2px;
}

.activity-workload-heading p {
    margin: 0;
    color: #68716c;
}

.activity-workload-card {
    min-height: 124px;
    border: 1px solid transparent;
}

.activity-workload-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}


/* Needs setup: neutral grey-blue */

.activity-workload-card[
    data-workflow-stage="needs-setup"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}


/* Team and attendance stage: blue */

.activity-workload-card[
    data-workflow-stage="attendance"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Fieldwork and reporting: orange */

.activity-workload-card[
    data-workflow-stage="fieldwork-reporting"
] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}


/* Completed: green */

.activity-workload-card[
    data-workflow-stage="completed"
] {
    border-color: #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}

.activity-workload-card span,
.activity-workload-card strong {
    color: inherit;
}

@media (max-width: 700px) {
    .activity-workload-card {
        min-height: 112px;
    }
}


/* Our Impact verified snapshot */

.impact-snapshot-section {
    margin-bottom: 18px;
}

.impact-snapshot-heading {
    margin-bottom: 14px;
}

.impact-snapshot-heading h2 {
    margin: 4px 0 2px;
}

.impact-snapshot-heading p {
    margin: 0;
    color: #68716c;
}

.impact-metric-card {
    min-height: 138px;
    border: 1px solid transparent;
}

.impact-metric-card small {
    display: block;
    margin-top: auto;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.82;
}

.impact-metric-card span,
.impact-metric-card strong {
    color: inherit;
}


/* Volunteer attendances: blue */

.impact-metric-card[
    data-impact-metric="attendance"
] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}


/* Unique volunteers: purple */

.impact-metric-card[
    data-impact-metric="volunteers"
] {
    border-color: #d9ceed;
    background: #eee8f8;
    color: #5e418e;
}


/* Programmes with results: orange */

.impact-metric-card[
    data-impact-metric="programmes"
] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}


/* Locations reached: teal */

.impact-metric-card[
    data-impact-metric="locations"
] {
    border-color: #c5e2de;
    background: #dff2ef;
    color: #17665f;
}


@media (max-width: 700px) {
    .impact-metric-card {
        min-height: 120px;
    }
}


/* Keep programme colours exclusive to programme identity */

.impact-snapshot-section {
    padding: 22px;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #f7faf8;
}

.impact-metric-card[
    data-impact-metric
] {
    border-color: #dce7df;
    background: #ffffff;
    color: #24382f;
    box-shadow:
        inset 0 4px 0 #2f7a4a,
        0 6px 18px rgba(22, 45, 35, 0.04);
}

.impact-metric-card[
    data-impact-metric
] span {
    color: #355347;
}

.impact-metric-card[
    data-impact-metric
] strong {
    color: #1f6b32;
}

.impact-metric-card[
    data-impact-metric
] small {
    color: #68716c;
    opacity: 1;
}


/* Attendance register grouping */

.attendance-group-panel {
    margin-bottom: 20px;
}

.attendance-group-panel .section-heading-row p {
    max-width: 680px;
    margin: 4px 0 0;
    color: #68716c;
}


/* Attendance still needed */

.attendance-group-pending {
    border-color: #ead49c;
    background: #fffdf8;
}

.attendance-row-pending {
    border-left: 5px solid #c18a26;
    background: #fffaf1;
}


/* Attendance already recorded */

.attendance-group-recorded {
    border-color: #c9e2cf;
    background: #f7faf8;
}

.attendance-row-recorded {
    border-left: 5px solid #3d8354;
    background: #ffffff;
}

.attendance-row-recorded .volunteer-avatar {
    background: #3d8354;
}


/* Recorded attendance details */

.attendance-recorded-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
}

.attendance-recorded-badge,
.attendance-detail-tag,
.attendance-source-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.attendance-recorded-badge {
    padding: 7px 10px;
    border: 1px solid #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}

.attendance-recorded-badge[
    data-attendance-status="late"
] {
    border-color: #ead49c;
    background: #fff3d5;
    color: #8a5b08;
}

.attendance-recorded-badge[
    data-attendance-status="absent"
] {
    border-color: #efc8c3;
    background: #fbe8e5;
    color: #984239;
}

.attendance-recorded-badge[
    data-attendance-status="excused"
] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}

.attendance-detail-tag,
.attendance-source-label {
    padding: 6px 9px;
    border: 1px solid #dce4df;
    background: #f2f6f3;
    color: #526159;
}

.attendance-source-label {
    margin-top: 7px;
}


@media (max-width: 760px) {
    .attendance-group-panel .section-heading-row {
        align-items: flex-start;
    }

    .attendance-recorded-details {
        margin-bottom: 8px;
    }
}


/* Attendance action and recorded-entry lock */

.attendance-action-needed {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-top: 7px;
    padding: 6px 9px;
    border: 1px solid #e5c36c;
    border-radius: 999px;
    background: #fff0c4;
    color: #805300;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.attendance-row-pending .attendance-options {
    padding: 8px;
    border: 1px solid #ead49c;
    border-radius: 14px;
    background: #ffffff;
}

.attendance-recorded-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    padding: 11px 14px;
    border: 1px solid #c9e2cf;
    border-radius: 999px;
    background: #eaf4ec;
    color: #21663a;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.attendance-recorded-check {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #3d8354;
    color: #ffffff;
    font-size: 0.72rem;
}

.attendance-row-recorded {
    cursor: default;
}

#save-attendance-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 760px) {
    .attendance-recorded-state {
        width: 100%;
        min-width: 0;
    }
}


/* Manual attendance fallback */

.manual-reason-field {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e5c36c;
    border-radius: 14px;
    background: #fff9e8;
}

.manual-reason-field[hidden] {
    display: none;
}

.manual-reason-field label {
    display: block;
    margin-bottom: 7px;
    color: #5f4709;
    font-size: 0.8rem;
    font-weight: 900;
}

.manual-reason-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d7c487;
    border-radius: 10px;
    background: #ffffff;
    color: #24382f;
    font: inherit;
}

.manual-reason-field small {
    display: block;
    margin-top: 7px;
    color: #76622c;
    font-size: 0.74rem;
}

.attendance-row-pending {
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
}

@media (max-width: 760px) {
    .attendance-row-pending {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .attendance-row-pending
    .attendance-options {
        grid-column: 1 / -1;
    }
}


/* Activity report location verification */

.location-verification-intro {
    margin: 4px 0 16px;
    color: #68716c;
    font-size: 0.82rem;
    line-height: 1.45;
}

.location-capture-list {
    display: grid;
    gap: 10px;
}

.location-capture-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #f8faf8;
}

.location-capture-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #21663a;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.location-capture-item div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.location-capture-item strong {
    color: #24382f;
    font-size: 0.85rem;
}

.location-capture-item span {
    color: #526159;
    font-size: 0.76rem;
}

.location-capture-item small {
    color: #68716c;
    font-size: 0.72rem;
}

.location-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.location-result-grid article {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 14px;
    background: #ffffff;
}

.location-result-grid span {
    color: #68716c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.location-result-grid strong {
    color: #1f6b32;
    font-size: 1rem;
    line-height: 1.25;
}

.location-result-grid small {
    color: #68716c;
    font-size: 0.69rem;
    line-height: 1.35;
}

.location-verification-note {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #c9dff2;
    border-radius: 12px;
    background: #f1f7fc;
    color: #365e7e;
    font-size: 0.74rem;
    line-height: 1.45;
}

.gps-technical-details {
    margin-top: 14px;
    border-top: 1px solid #dce7df;
    padding-top: 12px;
}

.gps-technical-details summary {
    color: #21663a;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.gps-technical-details .profile-side-list {
    margin-top: 12px;
}

.gps-technical-details dd {
    overflow-wrap: anywhere;
    font-size: 0.74rem;
}


/* Location verification card */

.location-verification-intro {
    margin: 4px 0 14px;
    color: #68716c;
    font-size: 0.78rem;
    line-height: 1.4;
}

.location-verification-list,
.location-verification-metrics {
    display: grid;
    gap: 10px;
}

.location-verification-list article,
.location-verification-metrics article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dce7df;
    border-radius: 12px;
    background: #f8faf8;
}

.location-verification-metrics {
    margin-top: 10px;
}

.location-verification-list span,
.location-verification-metrics span {
    color: #68716c;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.location-verification-list strong,
.location-verification-metrics strong {
    color: #24382f;
    font-size: 0.84rem;
    line-height: 1.3;
}

.location-verification-list small,
.location-verification-metrics small {
    color: #68716c;
    font-size: 0.7rem;
    line-height: 1.35;
}

.location-verification-note {
    margin: 12px 0 0;
    padding: 11px;
    border: 1px solid #c9dff2;
    border-radius: 11px;
    background: #f1f7fc;
    color: #365e7e;
    font-size: 0.72rem;
    line-height: 1.45;
}

.gps-technical-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dce7df;
}

.gps-technical-details summary {
    color: #21663a;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.gps-technical-details .profile-side-list {
    margin-top: 12px;
}

.gps-technical-details dd {
    overflow-wrap: anywhere;
    font-size: 0.72rem;
}


/* Route checkpoints */

.route-checkpoint-card {
    width: 100%;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #c9dff2;
    border-radius: 18px;
    background: #f5f9fc;
    text-align: left;
}

.route-checkpoint-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.route-checkpoint-heading h2 {
    margin: 4px 0 0;
}

.route-checkpoint-count {
    display: grid;
    min-width: 90px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #e3eef8;
    color: #245f91;
    text-align: center;
}

.route-checkpoint-count strong {
    font-size: 1.35rem;
    line-height: 1;
}

.route-checkpoint-count span {
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.route-checkpoint-card > p {
    max-width: 660px;
    margin: 12px 0 16px;
    color: #526159;
    font-size: 0.84rem;
    line-height: 1.45;
}

.route-checkpoint-form {
    display: grid;
    gap: 8px;
}

.route-checkpoint-button {
    width: fit-content;
}

.route-checkpoint-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.route-checkpoint-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #d7e4ed;
    border-radius: 13px;
    background: #ffffff;
}

.route-checkpoint-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #347eb6;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.route-checkpoint-list article div {
    display: grid;
    gap: 2px;
}

.route-checkpoint-list article strong {
    color: #24382f;
    font-size: 0.82rem;
}

.route-checkpoint-list article small {
    color: #68716c;
    font-size: 0.7rem;
}


@media (max-width: 700px) {
    .route-checkpoint-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .route-checkpoint-count {
        width: fit-content;
    }

    .route-checkpoint-button {
        width: 100%;
    }
}


/* Resume fieldwork message */

.next-step-context {
    display: block;
    max-width: 230px;
    margin-top: 10px;
    color: #68716c;
    font-size: 0.74rem;
    line-height: 1.4;
}


/* Fieldwork movement type */

.fieldwork-mode-options {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.fieldwork-mode-options legend {
    margin-bottom: 3px;
    color: #24382f;
    font-size: 0.88rem;
    font-weight: 900;
}

.fieldwork-mode-choice {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #dce7df;
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
}

.fieldwork-mode-choice:hover {
    border-color: #8fb69a;
    background: #f7faf8;
}

.fieldwork-mode-choice:has(input:checked) {
    border-color: #2f7a4a;
    background: #edf6f0;
    box-shadow: inset 0 0 0 1px #2f7a4a;
}

.fieldwork-mode-choice input {
    width: 18px;
    height: 18px;
    accent-color: #2f7a4a;
}

.fieldwork-mode-icon {
    font-size: 1.4rem;
}

.fieldwork-mode-content {
    display: grid;
    gap: 3px;
}

.fieldwork-mode-content strong {
    color: #24382f;
    font-size: 0.9rem;
}

.fieldwork-mode-content small {
    color: #68716c;
    font-size: 0.76rem;
    line-height: 1.4;
}


@media (max-width: 700px) {
    .fieldwork-mode-choice {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 13px;
    }
}


/* Manual checkpoint and missing-route warning */

.manual-checkpoint-details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d7e4ed;
}

.manual-checkpoint-details summary {
    color: #245f91;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.manual-checkpoint-intro {
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff7df;
    color: #625227;
    font-size: 0.77rem;
    line-height: 1.45;
}

.manual-checkpoint-form {
    display: grid;
    gap: 13px;
    margin-top: 14px;
}

.manual-checkpoint-form label,
.finish-without-route-form label {
    display: grid;
    gap: 6px;
    color: #24382f;
    font-size: 0.78rem;
    font-weight: 800;
}

.manual-checkpoint-form input,
.manual-checkpoint-form select,
.manual-checkpoint-form textarea,
.finish-without-route-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd9d1;
    border-radius: 11px;
    background: #ffffff;
    font: inherit;
}

.manual-checkpoint-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.manual-checkpoint-list article {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid #ead79d;
    border-radius: 12px;
    background: #fffaf0;
}

.manual-checkpoint-list article div {
    display: grid;
    gap: 3px;
}

.manual-checkpoint-list article small {
    color: #6f6753;
    font-size: 0.72rem;
}

.manual-checkpoint-list article > span {
    height: fit-content;
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3e4b8;
    color: #6b571e;
    font-size: 0.65rem;
    font-weight: 900;
}

.finish-route-warning {
    width: 100%;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #e8c16c;
    border-radius: 17px;
    background: #fff8e7;
    text-align: left;
}

.finish-route-warning h2 {
    margin: 5px 0 8px;
    color: #563f12;
}

.finish-route-warning > p {
    margin: 0 0 16px;
    color: #6d5a2c;
    font-size: 0.82rem;
    line-height: 1.45;
}

.finish-warning-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.finish-without-route-form {
    display: grid;
    gap: 11px;
    padding-top: 16px;
    border-top: 1px solid #ead49e;
}

@media (max-width: 700px) {
    .finish-warning-actions {
        display: grid;
    }

    .finish-warning-actions .button,
    .finish-without-route-form .button {
        width: 100%;
    }

    .manual-checkpoint-list article {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Main DYD homepage heading */

h1.home-main-heading {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

/* DYD authenticated session controls */
.app-logout-form {
    display: inline-flex;
    margin: 0;
}

.app-logout-button {
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.72rem;
}

.app-logout-button:hover,
.app-logout-button:focus-visible {
    background: rgba(20, 92, 49, 0.08);
}

@media (max-width: 720px) {
    .app-logout-button {
        font-size: 0.75rem;
        padding: 0.38rem 0.58rem;
    }
}

/* Strong activity edit lock warning */
.activity-edit-lock-warning {
    display: grid !important;
    gap: 0.25rem !important;
    margin: 1rem 0 1.35rem !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid #d8a72f !important;
    border-left: 6px solid #b97800 !important;
    border-radius: 12px !important;
    background: #fff3cd !important;
    color: #5f4300 !important;
    box-shadow: 0 4px 12px rgba(120, 80, 0, 0.08) !important;
}

.activity-edit-lock-warning strong {
    color: #694900 !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
}

.activity-edit-lock-warning span {
    color: #72530b !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

/* Simplified administration alert groups */
.admin-alert-group-heading {
    margin: 20px 0 9px;
    color: #425348;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-alert-group-heading:first-of-type {
    margin-top: 18px;
}

.admin-alert-empty {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #dfe8e1;
    border-radius: 12px;
    background: #f7faf8;
    color: #68746c;
    font-size: 0.78rem;
}

.admin-alert-info {
    border-color: #cfe2d3;
    background: #f3f8f4;
}

.admin-alert-info > span {
    background: #dcecdf;
    color: #236336;
}

/* Simplified administration identity area */
.admin-hero-simple {
    grid-template-columns: minmax(0, 1fr);
}

/* Administration activity status overview */
.admin-pipeline-panel {
    margin-top: 24px;
}

.admin-pipeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-pipeline-heading .panel-heading p {
    max-width: 620px;
    margin: 7px 0 0;
    color: #68746c;
    line-height: 1.5;
}

.admin-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-pipeline-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    gap: 6px;
    padding: 19px;
    border: 1px solid #dce7df;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        inset 0 4px 0 #8296a5,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card > span {
    color: #53665a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.admin-pipeline-card > strong {
    margin: 5px 0;
    color: #1f6b32;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-pipeline-card > small {
    margin-top: auto;
    color: #68746c;
    font-size: 0.76rem;
    line-height: 1.4;
}

.admin-pipeline-card[
    data-pipeline-stage="team-assigned"
] {
    box-shadow:
        inset 0 4px 0 #765aa7,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="attendance-recorded"
] {
    box-shadow:
        inset 0 4px 0 #367fc1,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="fieldwork-pending"
],
.admin-pipeline-card[
    data-pipeline-stage="reports-needed"
] {
    box-shadow:
        inset 0 4px 0 #c98a24,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="waiting-review"
] {
    box-shadow:
        inset 0 4px 0 #5968aa,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="returned"
] {
    box-shadow:
        inset 0 4px 0 #a6534c,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="completed"
] {
    box-shadow:
        inset 0 4px 0 #3d8354,
        0 7px 20px rgba(22, 45, 35, 0.045);
}

.admin-pipeline-card[
    data-pipeline-stage="cancelled"
] {
    background: #fafafa;
    box-shadow:
        inset 0 4px 0 #8a918c,
        0 7px 20px rgba(22, 45, 35, 0.04);
}

@media (max-width: 900px) {
    .admin-pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .admin-pipeline-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pipeline-heading .button {
        width: 100%;
    }

    .admin-pipeline-grid {
        grid-template-columns: 1fr;
    }

    .admin-pipeline-card {
        min-height: 112px;
    }
}

/* Report draft workflow */
.report-draft-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dfb84a;
    border-left: 4px solid #c78900;
    border-radius: 0.75rem;
    background: #fff8dd;
    color: #624600;
}

.report-draft-status strong {
    color: #4f3900;
}

.status-badge[data-activity-status="report-draft"] {
    border-color: #dfb84a;
    background: #fff3c6;
    color: #745000;
}

.admin-pipeline-card[data-pipeline-stage="report-drafts"] {
    border-top-color: #c99a27;
}

/* =========================================================
   Historical activity record details
   ========================================================= */

.historical-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.historical-record-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.historical-record-text article,
.historical-evidence-panel {
    padding: 20px;
    border: 1px solid #dde5df;
    border-radius: 14px;
    background: #fafcfb;
}

.historical-record-text h3 {
    margin: 0 0 8px;
    color: #26352b;
}

.historical-record-text p {
    margin: 0;
    white-space: pre-wrap;
    color: #59685f;
}

.historical-evidence-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.historical-evidence-panel strong,
.historical-evidence-panel small {
    display: block;
}

.historical-evidence-panel small {
    margin-top: 5px;
    color: #748078;
}

@media (max-width: 680px) {
    .historical-record-actions {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }

    .historical-record-text {
        grid-template-columns: 1fr;
    }

    .historical-evidence-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Historical programme-results spacing */
[data-historical-programme-results] h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}


/* Meeting minutes: preserve entered paragraph formatting */
.minutes-preserved-text {
    color: #465149;
    line-height: 1.65;
    white-space: pre-wrap;
}

/* Report draft fieldwork verification */
.report-draft-verification {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid #d8e6dc;
    border-radius: 18px;
    background: #f8fbf8;
}

.report-draft-verification-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.report-draft-verification-heading h2 {
    margin: 5px 0 5px;
}

.report-draft-verification-heading p {
    margin: 0;
    color: #68746c;
    line-height: 1.5;
}

.report-evidence-lock {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #cfe0d3;
    border-radius: 999px;
    background: #edf6ef;
    color: #245e32;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-recorded-evidence-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid #d49a1f;
    border-radius: 10px;
    background: #fff9e8;
}

.report-recorded-evidence-note strong {
    display: block;
    margin-bottom: 4px;
    color: #5b4718;
}

.report-recorded-evidence-note p {
    margin: 0;
    color: #665a3d;
    line-height: 1.5;
}

.report-draft-verification .gps-technical-details {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .report-draft-verification {
        padding: 17px;
    }

    .report-draft-verification-heading {
        flex-direction: column;
        gap: 10px;
    }
}

/* Activity overview fieldwork evidence */
.activity-fieldwork-evidence-panel {
    margin-bottom: 24px;
    background: #f8fbf8;
}

.activity-fieldwork-evidence-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.activity-fieldwork-evidence-heading h2 {
    margin: 5px 0;
}

.activity-fieldwork-evidence-heading p {
    margin: 0;
    max-width: 720px;
    color: #68746c;
    line-height: 1.5;
}

.activity-recorded-evidence-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #cfe0d3;
    border-radius: 999px;
    background: #edf6ef;
    color: #245e32;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.activity-fieldwork-evidence-panel
.location-verification-list,
.activity-fieldwork-evidence-panel
.location-verification-metrics {
    margin-top: 12px;
}

.activity-fieldwork-evidence-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid #d49a1f;
    border-radius: 10px;
    background: #fff9e8;
}

.activity-fieldwork-evidence-note strong {
    display: block;
    margin-bottom: 4px;
}

.activity-fieldwork-evidence-note p {
    margin: 0;
    line-height: 1.5;
}

.activity-fieldwork-evidence-panel
.gps-technical-details {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .activity-fieldwork-evidence-heading {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   Administrator operations dashboard
   ========================================================= */

.admin-ops-page {
    --admin-deep-green: #176b34;
    --admin-dark-forest: #163c27;
    --admin-soft-green: #eaf5ec;
    --admin-orange: #f4a62a;
    --admin-soft-amber: #fff4d8;
    --admin-soft-blue: #eaf3fb;
    --admin-soft-red: #fcebe8;
    --admin-warm-neutral: #f7f9f5;
    display: grid;
    gap: 24px;
}

.admin-ops-page > .activity-topbar {
    margin-bottom: -6px;
}

.admin-ops-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 36px;
    background:
        linear-gradient(135deg, #ffffff 0%, #f3f8f4 100%);
}

.admin-ops-hero-copy h1 {
    margin-bottom: 9px;
    font-size: clamp(32px, 4.5vw, 48px);
}

.admin-ops-hero-copy p {
    font-size: 15px;
}

.admin-ops-quick-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-ops-quick-links a {
    padding: 9px 13px;
    border: 1px solid #d5e2d8;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    color: #31563a;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-ops-quick-links a:hover {
    transform: translateY(-1px);
    border-color: #9fbea6;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(22, 60, 39, 0.07);
}

.admin-ops-latest {
    padding: 32px;
    overflow: hidden;
    border: 1px solid #c3d9c8;
    border-left: 7px solid var(--admin-deep-green);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(22, 60, 39, 0.1);
}

.admin-ops-latest-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: -32px -32px 0;
    padding: 26px 32px 24px;
    border-bottom: 1px solid #dceade;
    background: #f5faf6;
}

.admin-ops-latest-heading h2 {
    max-width: 760px;
    margin: 0 0 6px;
    color: #203126;
    font-size: clamp(25px, 3.2vw, 36px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.admin-ops-latest-heading p {
    margin: 0;
    color: #748078;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.admin-ops-state-stack {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.admin-ops-state {
    padding: 7px 11px;
    border: 1px solid #b9d5bf;
    border-radius: 999px;
    background: var(--admin-soft-green);
    color: var(--admin-deep-green);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.admin-ops-state-report {
    border-color: #d8e0da;
    background: var(--admin-warm-neutral);
    color: #59665d;
}

.admin-ops-state-report--attention {
    border-color: #e7ce91;
    background: var(--admin-soft-amber);
    color: #76530b;
}

.admin-ops-activity-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 26px 0 0;
    border: 1px solid #e0e8e2;
    border-radius: 15px;
    background: #e0e8e2;
}

.admin-ops-activity-meta > div {
    min-width: 0;
    padding: 15px;
    background: #f9fbf9;
}

.admin-ops-activity-meta dt,
.admin-ops-fieldwork-summary dt,
.admin-ops-health-grid dt {
    margin-bottom: 4px;
    color: #78837b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.admin-ops-activity-meta dd,
.admin-ops-fieldwork-summary dd,
.admin-ops-health-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #293b2f;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.admin-ops-participation-totals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.admin-ops-participation-totals article {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    border: 1px solid #dbe5dd;
    border-radius: 15px;
    background: var(--admin-warm-neutral);
}

.admin-ops-participation-totals span {
    color: #5f6e64;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
}

.admin-ops-participation-totals strong {
    color: var(--admin-dark-forest);
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.admin-ops-participation-metric--assigned,
.admin-ops-participation-metric--walk-in {
    border-color: #ccdeec !important;
    background: var(--admin-soft-blue) !important;
}

.admin-ops-participation-metric--attended {
    border-color: #c9dfce !important;
    background: var(--admin-soft-green) !important;
}

.admin-ops-participation-metric--absent {
    border-color: #ead6a3 !important;
    background: var(--admin-soft-amber) !important;
}

.admin-ops-participation-totals
.admin-ops-total-participants {
    border-color: #8fc09a;
    background: #e0f1e4;
    box-shadow: inset 0 0 0 1px rgba(23, 107, 52, 0.08);
}

.admin-ops-total-participants strong {
    color: var(--admin-deep-green);
    font-size: 38px;
}

.admin-ops-fieldwork-summary {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #cbded3;
    border-radius: 16px;
    background: #f2f8f5;
}

.admin-ops-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.admin-ops-subheading .form-kicker {
    margin: 0;
    color: var(--admin-deep-green);
}

.admin-ops-evidence-state {
    padding: 6px 10px;
    border: 1px solid #c2d9c7;
    border-radius: 999px;
    background: var(--admin-soft-green);
    color: var(--admin-deep-green);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-ops-evidence-state--pending {
    border-color: #e7ce91;
    background: var(--admin-soft-amber);
    color: #76530b;
}

.admin-ops-evidence-state--active {
    border-color: #c9dceb;
    background: var(--admin-soft-blue);
    color: #315f83;
}

.admin-ops-fieldwork-summary dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.admin-ops-fieldwork-summary dl > div {
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid #d8e6dc;
}

.admin-ops-latest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.admin-ops-panel,
.admin-ops-metrics-section,
.admin-ops-tools,
.admin-ops-empty-feature {
    margin-top: 0;
}

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

.admin-ops-section-heading h2 {
    margin: 0;
    color: #25372b;
    font-size: 24px;
    font-weight: 900;
}

.admin-ops-section-heading p {
    margin: 6px 0 0;
    color: #6c786f;
    font-size: 13px;
    line-height: 1.5;
}

.admin-ops-participant-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-ops-participant-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7e1;
    border-radius: 15px;
    background: #ffffff;
}

.admin-ops-participant-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #e1e8e3;
    background: #f2f7f3;
}

.admin-ops-participant-group[
    data-participant-group="assigned-attended"
] .admin-ops-participant-group-heading {
    border-color: #cfe1d3;
    background: var(--admin-soft-green);
}

.admin-ops-participant-group[
    data-participant-group="assigned-not-attended"
] .admin-ops-participant-group-heading,
.admin-ops-participant-group[
    data-participant-group="attendance-pending"
] .admin-ops-participant-group-heading {
    border-color: #ead8aa;
    background: var(--admin-soft-amber);
}

.admin-ops-participant-group[
    data-participant-group="walk-ins"
] .admin-ops-participant-group-heading {
    border-color: #cfdfec;
    background: var(--admin-soft-blue);
}

.admin-ops-participant-group-heading h3 {
    margin: 0;
    color: #304b37;
    font-size: 12px;
    font-weight: 900;
}

.admin-ops-participant-group-heading > span {
    display: grid;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: #dfece2;
    color: #2e6239;
    font-size: 11px;
    font-weight: 900;
}

.admin-ops-participant-group[
    data-participant-group="assigned-not-attended"
] .admin-ops-participant-group-heading > span,
.admin-ops-participant-group[
    data-participant-group="attendance-pending"
] .admin-ops-participant-group-heading > span {
    background: #f5e4b9;
    color: #75520c;
}

.admin-ops-participant-group[
    data-participant-group="walk-ins"
] .admin-ops-participant-group-heading > span {
    background: #d8e9f6;
    color: #315f83;
}

.admin-ops-participant-list {
    display: grid;
}

.admin-ops-participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 11px 14px;
    border-bottom: 1px solid #e6ece7;
    background: #ffffff;
}

.admin-ops-participant-row:last-child {
    border-bottom: 0;
}

.admin-ops-participant-row > strong {
    min-width: 0;
    overflow: hidden;
    color: #293a2f;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ops-participant-row > div {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.admin-ops-participant-row small {
    color: #6b776f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-ops-attendance-state {
    padding: 4px 7px;
    border-radius: 999px;
    background: #e3eee6;
    color: #2e633a;
    font-size: 9px;
    font-weight: 900;
}

.admin-ops-attendance-state[
    data-attendance-status="late"
] {
    background: #fff1cf;
    color: #815a05;
}

.admin-ops-attendance-state[
    data-attendance-status="absent"
] {
    background: var(--admin-soft-red);
    color: #8b3932;
}

.admin-ops-attendance-state[
    data-attendance-status="excused"
] {
    background: var(--admin-soft-amber);
    color: #79550b;
}

.admin-ops-attendance-state[
    data-attendance-status="pending"
] {
    background: #ecefed;
    color: #68736b;
}

.admin-ops-participant-group[
    data-participant-group="walk-ins"
] .admin-ops-participant-row small,
.admin-ops-participant-group[
    data-participant-group="walk-ins"
] .admin-ops-attendance-state {
    border-radius: 999px;
    background: var(--admin-soft-blue);
    color: #315f83;
}

.admin-ops-participant-group[
    data-participant-group="walk-ins"
] .admin-ops-participant-row small {
    padding: 4px 7px;
}

.admin-ops-group-empty {
    margin: 0;
    padding: 17px 14px;
    color: #7a857d;
    font-size: 12px;
}

.admin-ops-empty-state,
.admin-ops-all-clear {
    padding: 20px;
    border: 1px dashed #cfddd2;
    border-radius: 14px;
    background: #f8faf8;
}

.admin-ops-empty-state strong,
.admin-ops-all-clear strong {
    display: block;
    color: #31523a;
    font-size: 14px;
}

.admin-ops-empty-state p,
.admin-ops-all-clear span {
    display: block;
    margin: 4px 0 0;
    color: #6d7970;
    font-size: 12px;
    line-height: 1.5;
}

.admin-ops-attention-panel {
    border-color: #e4c87f;
    border-left: 4px solid var(--admin-orange);
    background: #fffaf0;
    box-shadow: 0 10px 28px rgba(111, 77, 12, 0.06);
}

.admin-ops-attention-panel .form-kicker {
    color: #805908;
}

.admin-ops-attention-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.admin-ops-attention-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ead8a8;
    border-radius: 14px;
    background: #fffdf7;
}

.admin-ops-attention-count {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #f4e4b7;
    color: #77520a;
    font-size: 15px;
    font-weight: 900;
}

.admin-ops-attention-item > div {
    min-width: 0;
}

.admin-ops-attention-item strong {
    display: block;
    color: #453d2a;
    font-size: 13px;
    font-weight: 900;
}

.admin-ops-attention-item p {
    margin: 3px 0 0;
    color: #73694d;
    font-size: 11px;
    line-height: 1.4;
}

.admin-ops-attention-item > a {
    padding: 6px 9px;
    border: 1px solid #dfc67f;
    border-radius: 8px;
    background: #ffffff;
    color: #6e500d;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.admin-ops-attention-item > a:hover {
    border-color: #cda84e;
    background: var(--admin-soft-amber);
}

.admin-ops-attention-item[
    data-attention-level="review"
] {
    border-color: #ead8a8;
    background: #fffdf7;
}

.admin-ops-attention-item[
    data-attention-level="review"
] .admin-ops-attention-count {
    background: #f4e4b7;
    color: #77520a;
}

.admin-ops-attention-item[
    data-attention-level="critical"
] {
    border-color: #e7c2bd;
    background: #fff7f6;
}

.admin-ops-attention-item[
    data-attention-level="critical"
] .admin-ops-attention-count {
    background: var(--admin-soft-red);
    color: #973b33;
}

.admin-ops-attention-item[
    data-attention-level="critical"
] > a {
    border-color: #e4bbb5;
    color: #8b3932;
}

.admin-ops-all-clear {
    border-style: solid;
    border-color: #cde1d1;
    background: #f1f8f2;
}

.admin-ops-heading-with-link {
    align-items: center;
}

.admin-ops-heading-with-link .button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
}

.admin-ops-timeline {
    display: grid;
}

.admin-ops-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) minmax(210px, auto);
    gap: 13px;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #e4ebe5;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.admin-ops-timeline-item:hover {
    background: #f1f7f2;
}

.admin-ops-timeline-item:not(:last-child)::before {
    position: absolute;
    z-index: 0;
    top: 50%;
    bottom: -50%;
    left: 16px;
    width: 1px;
    background: #d4e4d7;
    content: "";
}

.admin-ops-timeline-item:last-child {
    border-bottom: 0;
}

.admin-ops-timeline-marker {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--admin-deep-green);
    box-shadow: 0 0 0 2px #c9ddcd;
}

.admin-ops-event-copy,
.admin-ops-event-meta {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-ops-event-copy strong,
.admin-ops-event-meta strong {
    color: #2c3d32;
    font-size: 13px;
    font-weight: 900;
}

.admin-ops-event-copy a,
.admin-ops-event-copy span,
.admin-ops-event-meta span {
    overflow-wrap: anywhere;
    color: #6b776f;
    font-size: 11px;
    line-height: 1.4;
}

.admin-ops-event-copy a {
    color: #356441;
    font-weight: 800;
    text-decoration: none;
}

.admin-ops-event-meta {
    text-align: right;
}

.admin-ops-metrics-section {
    padding: 4px 0 0;
}

.admin-ops-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-ops-metric-grid article {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dbe5dd;
    border-radius: 17px;
    background: var(--admin-warm-neutral);
    box-shadow: 0 8px 22px rgba(22, 60, 39, 0.045);
}

.admin-ops-metric--activities {
    border-color: #cfdfec !important;
    background: var(--admin-soft-blue) !important;
}

.admin-ops-metric--volunteers {
    border-color: #cbe0cf !important;
    background: var(--admin-soft-green) !important;
}

.admin-ops-metric--attendance {
    border-color: #d2e6d6 !important;
    background: #f0f8f2 !important;
}

.admin-ops-metric--reports {
    border-color: #ead8a8 !important;
    background: var(--admin-soft-amber) !important;
}

.admin-ops-metric-grid span {
    color: #68756c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.065em;
    line-height: 1.35;
    text-transform: uppercase;
}

.admin-ops-metric-grid strong {
    margin: 13px 0 8px;
    color: var(--admin-dark-forest);
    font-size: 33px;
    font-weight: 900;
    line-height: 1;
}

.admin-ops-metric-grid small {
    margin-top: auto;
    color: #758078;
    font-size: 11px;
    line-height: 1.4;
}

.admin-ops-health-panel {
    border-color: #c9dfcf;
    background: #f7fbf8;
    box-shadow: 0 8px 24px rgba(22, 60, 39, 0.04);
}

.admin-ops-health-heading {
    align-items: center;
    margin: -28px -28px 20px;
    padding: 21px 28px;
    border-bottom: 1px solid #d3e5d7;
    border-radius: 19px 19px 0 0;
    background: var(--admin-soft-green);
}

.admin-ops-health-state {
    padding: 7px 11px;
    border: 1px solid #bdd6c2;
    border-radius: 999px;
    background: #ffffff;
    color: var(--admin-deep-green);
    font-size: 11px;
    font-weight: 900;
}

.admin-ops-health-state:not([data-health="healthy"]) {
    border-color: #e2bdb8;
    background: #f9e8e6;
    color: #8b3932;
}

.admin-ops-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e0e7e2;
    border-radius: 14px;
    background: #e0e7e2;
}

.admin-ops-health-grid > div {
    min-width: 0;
    padding: 14px;
    background: #ffffff;
}

.admin-ops-health-grid .admin-ops-health-cell--mode,
.admin-ops-health-grid .admin-ops-health-cell--database,
.admin-ops-health-grid .admin-ops-health-cell--backup {
    background: #f2f6f9;
}

.admin-ops-health-grid .admin-ops-health-cell--warning {
    background: var(--admin-soft-amber);
}

.admin-ops-health-grid .admin-ops-health-cell--warning dd {
    color: #76530b;
}

.admin-ops-health-grid .admin-ops-health-cell--danger {
    background: var(--admin-soft-red);
}

.admin-ops-health-grid .admin-ops-health-cell--failed-sign-ins {
    grid-column: 1 / -1;
    background: #ffffff;
}

.admin-ops-health-grid .admin-status-danger {
    color: #9a3d35;
}

.admin-ops-backup-panel {
    margin-top: 0;
    border-color: #dce4de;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 60, 39, 0.045);
}

.admin-ops-backup-panel .panel-heading {
    margin-bottom: 0;
}

.admin-ops-backup-panel .panel-heading p {
    margin: 7px 0 0;
    color: #6c786f;
    font-size: 13px;
}

.admin-ops-backup-panel .admin-backup-warning {
    color: #68756d;
}

.admin-ops-backup-panel .admin-backup-warning--production {
    padding: 12px 14px;
    border: 1px solid #ead8a8;
    border-radius: 11px;
    background: var(--admin-soft-amber);
    color: #76530b;
}

.admin-ops-backup-panel .admin-restore-note {
    border: 1px solid #cde1d1;
    background: var(--admin-soft-green);
}

.admin-ops-tools {
    padding-top: 4px;
}

.admin-ops-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-ops-tool-grid a {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 18px;
    border: 1px solid #dce7de;
    border-top-width: 4px;
    border-radius: 15px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-ops-tool--users,
.admin-ops-tool--volunteers {
    border-top-color: #6ea67a !important;
}

.admin-ops-tool--audit {
    border-top-color: #78a9cf !important;
}

.admin-ops-tool--activities {
    border-top-color: var(--admin-orange) !important;
}

.admin-ops-tool-grid a:hover {
    transform: translateY(-2px);
    border-color: #a7c5ad;
    box-shadow: 0 9px 24px rgba(22, 64, 31, 0.07);
}

.admin-ops-tool-grid strong {
    color: #285233;
    font-size: 14px;
    font-weight: 900;
}

.admin-ops-tool-grid span {
    color: #6e7a72;
    font-size: 11px;
    line-height: 1.4;
}

.admin-ops-empty-feature h2 {
    margin-bottom: 7px;
}

.admin-ops-empty-feature p {
    margin: 0 0 18px;
    color: #6b776f;
}

@media (max-width: 980px) {
    .admin-ops-activity-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-ops-participation-totals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-ops-participant-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-ops-metric-grid,
    .admin-ops-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-ops-hero,
    .admin-ops-latest-heading,
    .admin-ops-section-heading,
    .admin-ops-subheading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-ops-quick-links {
        justify-content: flex-start;
    }

    .admin-ops-state-stack {
        align-items: flex-start;
    }

    .admin-ops-activity-meta,
    .admin-ops-participation-totals,
    .admin-ops-fieldwork-summary dl,
    .admin-ops-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-ops-participant-groups,
    .admin-ops-attention-list {
        grid-template-columns: 1fr;
    }

    .admin-ops-heading-with-link .button {
        width: 100%;
    }

    .admin-ops-timeline-item {
        grid-template-columns: 14px minmax(0, 1fr);
    }

    .admin-ops-event-meta {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .admin-ops-page {
        gap: 18px;
    }

    .admin-ops-hero,
    .admin-ops-latest,
    .admin-ops-panel {
        padding: 21px 17px;
        border-radius: 18px;
    }

    .admin-ops-latest {
        border-left-width: 5px;
        box-shadow: 0 12px 32px rgba(22, 60, 39, 0.08);
    }

    .admin-ops-latest-heading {
        margin: -21px -17px 0;
        padding: 21px 17px 18px;
    }

    .admin-ops-health-heading {
        margin: -21px -17px 18px;
        padding: 18px 17px;
        border-radius: 17px 17px 0 0;
    }

    .admin-ops-activity-meta,
    .admin-ops-participation-totals,
    .admin-ops-fieldwork-summary dl,
    .admin-ops-health-grid,
    .admin-ops-metric-grid,
    .admin-ops-tool-grid {
        grid-template-columns: 1fr;
    }

    .admin-ops-participation-totals article {
        min-height: 94px;
    }

    .admin-ops-participant-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-ops-attention-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .admin-ops-attention-item > a {
        grid-column: 2;
    }

    .admin-ops-metric-grid article {
        min-height: 118px;
    }
}

/* ---------------------------------------------------------
   Activity report — explicit read-only role presentation
   --------------------------------------------------------- */

.report-form-readonly .role-readonly-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
    opacity: 1;
}

.report-form-readonly input:not([type="hidden"]),
.report-form-readonly textarea,
.report-form-readonly select {
    background: #f3f6f2;
    border-color: #d7e1d7;
    color: #536158;
    cursor: not-allowed;
    box-shadow: none;
}

.report-form-readonly input:disabled,
.report-form-readonly textarea:disabled,
.report-form-readonly select:disabled {
    opacity: 1;
    -webkit-text-fill-color: #536158;
}

.report-form-readonly .role-readonly-notice {
    background: #eef5ef;
    border: 1px solid #cddfce;
    color: #275638;
    font-weight: 800;
}

.report-form-readonly .report-form-section {
    background: #fbfcfb;
}



/* DYD team communication + attendance protocol */

.team-communication-reminder {
    margin: 22px 0 4px;
    padding: 18px 20px;
    border: 1px solid #efd293;
    border-radius: 14px;
    background: #fff9e9;
    color: #4d421f;
}

.team-communication-reminder strong {
    display: block;
    margin-bottom: 5px;
    color: #75570b;
}

.team-communication-reminder p {
    margin: 0 0 5px;
}

.team-communication-reminder small {
    color: #776b4e;
}

.team-communication-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(260px, 360px);
    gap: 24px;
    align-items: center;
    margin: 18px 0;
    padding: 22px 24px;
    border-radius: 18px;
}

.team-communication-pending {
    border: 1px solid #edca73;
    background: #fff8e5;
}

.team-communication-confirmed {
    border: 1px solid #c8dfce;
    background: #eef7f0;
}

.team-communication-panel h2 {
    margin: 5px 0 7px;
}

.team-communication-panel p {
    margin: 0;
}

.team-communication-form {
    display: grid;
    gap: 8px;
}

.team-communication-form label {
    font-weight: 800;
}

.team-communication-form select {
    width: 100%;
}

.team-communication-error {
    display: block;
    margin-top: 8px;
    color: #9a3412;
    font-weight: 800;
}

.attendance-team-communication {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 14px 17px;
    border-radius: 13px;
}

.attendance-team-communication-confirmed {
    border: 1px solid #c8dfce;
    background: #eef7f0;
    color: #255c35;
}

.attendance-team-communication-pending {
    border: 1px solid #efd293;
    background: #fff9e9;
    color: #6c5515;
}

.attendance-status-guide {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.attendance-status-guide > div {
    padding: 14px;
    border: 1px solid #dce5dc;
    border-radius: 13px;
    background: #fff;
}

.attendance-status-guide strong,
.attendance-status-guide span {
    display: block;
}

.attendance-status-guide strong {
    margin-bottom: 4px;
    color: #1e6131;
}

.attendance-status-guide span {
    font-size: 0.9rem;
    color: #69736d;
}

.excused-reason-field {
    margin-top: 12px;
}

.excused-reason-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.excused-reason-field input {
    width: 100%;
}

.excused-reason-field small {
    display: block;
    margin-top: 6px;
    color: #6f756f;
}

@media (max-width: 900px) {
    .team-communication-panel {
        grid-template-columns: 1fr;
    }

    .attendance-status-guide {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .attendance-team-communication {
        flex-direction: column;
    }

    .attendance-status-guide {
        grid-template-columns: 1fr;
    }
}



/* DYD report consultation confirmation dialogs */

.dyd-confirmation-dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #183f28;
    box-shadow:
        0 24px 70px rgba(24, 63, 40, 0.24);
}

.dyd-confirmation-dialog::backdrop {
    background: rgba(17, 36, 25, 0.58);
}

.dyd-confirmation-dialog-content {
    padding: 26px;
}

.dyd-confirmation-dialog h3 {
    margin: 5px 0 10px;
    font-size: 1.45rem;
}

.dyd-confirmation-dialog p {
    margin: 0 0 18px;
    color: #59665d;
    line-height: 1.55;
}

.dyd-confirmation-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #cfe0d2;
    border-radius: 14px;
    background: #f2f8f3;
    cursor: pointer;
}

.dyd-confirmation-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.dyd-confirmation-check span {
    font-weight: 700;
    line-height: 1.45;
}

.dyd-confirmation-note {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #efd293;
    border-radius: 12px;
    background: #fff8e5;
    color: #705716;
    font-weight: 700;
}

.dyd-confirmation-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.dyd-confirmation-actions .button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

@media (max-width: 620px) {
    .dyd-confirmation-dialog-content {
        padding: 20px;
    }

    .dyd-confirmation-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dyd-confirmation-actions .button {
        width: 100%;
    }
}

/* Results & Impact dashboard redesign — 2026-08-28 */
.impact-dashboard {
    display: grid;
    gap: 26px;
}

.impact-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
    gap: 28px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid #dbe8de;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(31, 122, 77, 0.10), transparent 38%),
        linear-gradient(135deg, #f8fcf9 0%, #ffffff 62%);
    box-shadow: 0 14px 36px rgba(25, 64, 43, 0.07);
}

.impact-dashboard-hero-copy h1 {
    max-width: 720px;
    margin: 8px 0 12px;
    color: #183d27;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.impact-dashboard-hero-copy > p {
    max-width: 710px;
    margin: 0;
    color: #647169;
    line-height: 1.65;
}

.impact-verified-through {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 22px;
    padding: 10px 14px;
    border: 1px solid #d7e7da;
    border-radius: 999px;
    background: #ffffff;
    color: #647169;
    font-size: 0.84rem;
}

.impact-verified-through strong {
    color: #1f6b32;
}

.impact-dashboard-hero-number {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 18px;
    background: #1f6b32;
    color: #ffffff;
    text-align: center;
}

.impact-dashboard-hero-number strong {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
}

.impact-dashboard-hero-number > span {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 800;
}

.impact-dashboard-hero-number small {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
}

.impact-dashboard-section,
.impact-trust-note {
    padding: 26px;
    border: 1px solid #e0e9e2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 45, 35, 0.045);
}

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

.impact-section-heading h2,
.impact-trust-note h2 {
    margin: 5px 0 0;
    color: #203b2a;
    font-size: 1.45rem;
}

.impact-section-heading > p {
    max-width: 590px;
    margin: 0;
    color: #6a766e;
    line-height: 1.55;
}

.impact-headline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.impact-headline-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    padding: 19px;
    border: 1px solid #dfe9e1;
    border-radius: 16px;
    background: #fbfdfb;
}

.impact-headline-card > span {
    color: #57675d;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.impact-headline-card > strong {
    margin: 10px 0 7px;
    color: #1f6b32;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.impact-headline-card > small {
    margin-top: auto;
    color: #748078;
    line-height: 1.4;
}

.impact-headline-card-outcome {
    background: #f4faf5;
    box-shadow: inset 0 4px 0 #4e9a61;
}

.impact-headline-card-muted {
    background: #fafbfa;
}

.impact-participation-panel {
    background: linear-gradient(145deg, rgba(245, 250, 246, 0.92), #ffffff);
}

.impact-participation-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 0.75fr));
    gap: 14px;
}

.impact-participation-main,
.impact-participation-detail {
    padding: 20px;
    border: 1px solid #dfe9e1;
    border-radius: 16px;
    background: #ffffff;
}

.impact-participation-main strong {
    display: block;
    color: #1f6b32;
    font-size: 3rem;
    line-height: 1;
}

.impact-participation-main > span,
.impact-participation-detail > span {
    display: block;
    margin-top: 8px;
    color: #344b3b;
    font-weight: 800;
}

.impact-participation-main p {
    margin: 9px 0 0;
    color: #748078;
    line-height: 1.45;
}

.impact-participation-detail {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
}

.impact-participation-detail strong {
    color: #214d30;
    font-size: 2rem;
}

.impact-programme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.impact-programme-card {
    padding: 20px;
    border: 1px solid #d9e6dc;
    border-radius: 17px;
    background: #fbfdfb;
}

.impact-programme-card-inactive {
    border-style: dashed;
    background: #fafbfa;
}

.impact-programme-card-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.impact-programme-card-heading > div > span {
    display: block;
    color: #617067;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.impact-programme-card-heading > div > strong {
    display: block;
    margin-top: 6px;
    color: #223f2c;
    font-size: 1.05rem;
}

.impact-verified-badge {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e7f5ea;
    color: #236638;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.impact-programme-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.impact-programme-outcomes > div {
    padding: 14px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e2ebe4;
}

.impact-programme-outcomes strong {
    display: block;
    color: #1f6b32;
    font-size: 1.75rem;
    line-height: 1;
}

.impact-programme-outcomes span {
    display: block;
    margin-top: 6px;
    color: #68766d;
    font-size: 0.78rem;
}

.impact-programme-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e4ebe6;
    color: #718078;
    font-size: 0.76rem;
}

.impact-programme-empty {
    margin: 17px 0 0;
    color: #76827a;
    line-height: 1.5;
}

.impact-latest-card {
    padding: 22px;
    border: 1px solid #d8e6db;
    border-radius: 18px;
    background: linear-gradient(140deg, #f7fbf8 0%, #ffffff 70%);
}

.impact-latest-heading {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.impact-latest-id {
    color: #77837b;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.impact-latest-heading h3 {
    margin: 5px 0 8px;
    color: #193d27;
    font-size: 1.5rem;
}

.impact-latest-heading p {
    margin: 0;
    color: #69766d;
    line-height: 1.5;
}

.impact-latest-heading p span {
    padding: 0 6px;
    color: #a1aaa4;
}

.impact-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 19px;
}

.impact-latest-stat {
    padding: 16px;
    border: 1px solid #e0e9e2;
    border-radius: 14px;
    background: #ffffff;
}

.impact-latest-stat strong {
    display: block;
    color: #1f6b32;
    font-size: 1.9rem;
    line-height: 1;
}

.impact-latest-stat span {
    display: block;
    margin-top: 7px;
    color: #6d7a71;
    font-size: 0.78rem;
    line-height: 1.35;
}

.impact-latest-outcome {
    background: #f4faf5;
}

.impact-empty-state {
    padding: 24px;
    border: 1px dashed #cedad1;
    border-radius: 16px;
    background: #fafbfa;
}

.impact-empty-state strong {
    color: #344b3b;
}

.impact-empty-state p {
    margin: 7px 0 0;
    color: #748078;
}

.impact-trust-note {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    background: #f6faf7;
}

.impact-trust-note p {
    margin: 0;
    color: #617067;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .impact-headline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-participation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .impact-dashboard-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .impact-dashboard-hero-number {
        min-height: 150px;
    }

    .impact-section-heading,
    .impact-latest-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .impact-programme-grid,
    .impact-trust-note {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .impact-dashboard-section,
    .impact-trust-note {
        padding: 20px;
    }

    .impact-headline-grid,
    .impact-participation-grid,
    .impact-programme-outcomes,
    .impact-latest-grid {
        grid-template-columns: 1fr;
    }

    .impact-programme-card-heading {
        flex-direction: column;
    }
}

/* Results & Impact visual redesign V2 — 2026-08-28 */
.impact-v2 {
    --impact-green: #2f7a4a;
    --impact-dark: #163a25;
    --impact-text: #25372d;
    --impact-muted: #6c786f;
    --impact-line: #dfe8e1;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 42px;
}

.impact-v2-topbar {
    margin-bottom: 14px;
}

.impact-v2-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 26px;
    padding: 42px;
    border: 1px solid #d8e6dc;
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 10%, rgba(47, 122, 74, 0.13), transparent 30%),
        linear-gradient(135deg, #f7fbf8 0%, #ffffff 64%);
    box-shadow: 0 20px 46px rgba(25, 65, 43, 0.08);
}

.impact-v2-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -80px;
    border: 34px solid rgba(47, 122, 74, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.impact-v2-hero-copy {
    position: relative;
    z-index: 1;
}

.impact-v2-hero h1 {
    max-width: 720px;
    margin: 9px 0 14px;
    color: var(--impact-dark);
    font-size: clamp(2.45rem, 5vw, 4.15rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.impact-v2-lead {
    max-width: 700px;
    margin: 0;
    color: var(--impact-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.impact-v2-date-pill {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 22px;
    padding: 10px 14px;
    border: 1px solid #d9e8dd;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #66736a;
    font-size: 0.82rem;
}

.impact-v2-date-pill strong {
    color: var(--impact-green);
}

.impact-v2-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
    margin-top: 28px;
}

.impact-v2-hero-facts > div {
    padding: 15px 16px;
    border-left: 3px solid #cfe2d4;
    background: rgba(255, 255, 255, 0.55);
}

.impact-v2-hero-facts strong {
    display: block;
    color: var(--impact-dark);
    font-size: 1.75rem;
    line-height: 1;
}

.impact-v2-hero-facts span {
    display: block;
    margin-top: 6px;
    color: #738077;
    font-size: 0.76rem;
    line-height: 1.35;
}

.impact-v2-highlight {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 22px;
    background: #e8f5ec;
    color: #184b2b;
}

.impact-v2-highlight-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.45rem;
}

.impact-v2-highlight-kicker {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.74;
}

.impact-v2-highlight-value {
    margin-top: 10px;
    font-size: clamp(4rem, 8vw, 6.3rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.impact-v2-highlight-label {
    margin-top: 10px;
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.25;
}

.impact-v2-highlight p {
    margin: 24px 0 0;
    padding-top: 17px;
    border-top: 1px solid rgba(23, 75, 43, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.impact-v2-highlight p small {
    font-weight: 600;
    opacity: 0.72;
}

.impact-v2-highlight[data-programme="schools"] {
    background: #fbe7d7;
    color: #7d3d10;
}

.impact-v2-highlight[data-programme="youth_development"] {
    background: #eee8f8;
    color: #51367e;
}

.impact-v2-highlight[data-programme="community_support"] {
    background: #dff2ef;
    color: #145e58;
}

.impact-v2-participation,
.impact-v2-programmes,
.impact-v2-latest {
    margin-top: 34px;
}

.impact-v2-section-intro {
    max-width: 680px;
    margin-bottom: 19px;
}

.impact-v2-section-intro h2 {
    margin: 5px 0 7px;
    color: var(--impact-dark);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.12;
}

.impact-v2-section-intro p {
    margin: 0;
    color: var(--impact-muted);
    line-height: 1.6;
}

.impact-v2-section-intro-centred {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.impact-v2-participation-story {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(340px, 1.35fr) minmax(220px, 0.78fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--impact-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 68, 46, 0.05);
}

.impact-v2-participation-number,
.impact-v2-attendance,
.impact-v2-participation-summary {
    padding: 28px;
}

.impact-v2-participation-number {
    background: var(--impact-dark);
    color: #ffffff;
}

.impact-v2-participation-number strong {
    display: block;
    font-size: 4.1rem;
    font-weight: 900;
    line-height: 0.95;
}

.impact-v2-participation-number span {
    display: block;
    max-width: 170px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.4;
}

.impact-v2-attendance {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-v2-attendance-heading {
    display: flex;
    gap: 20px;
    align-items: baseline;
    justify-content: space-between;
    color: #425248;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.impact-v2-attendance-heading strong {
    color: var(--impact-green);
    font-size: 1.8rem;
}

.impact-v2-progress {
    overflow: hidden;
    height: 13px;
    margin-top: 13px;
    border-radius: 999px;
    background: #edf2ee;
}

.impact-v2-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b8d58, #67a978);
}

.impact-v2-attendance p {
    margin: 12px 0 0;
    color: #78847c;
    font-size: 0.8rem;
}

.impact-v2-participation-summary {
    display: grid;
    gap: 13px;
    border-left: 1px solid var(--impact-line);
    background: #fafcfb;
}

.impact-v2-participation-summary > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-v2-participation-summary > div + div {
    padding-top: 13px;
    border-top: 1px solid #e6ece8;
}

.impact-v2-participation-summary strong {
    color: var(--impact-dark);
    font-size: 1.85rem;
}

.impact-v2-participation-summary span {
    margin-top: 4px;
    color: #718077;
    font-size: 0.75rem;
    line-height: 1.35;
}

.impact-v2-programme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.impact-v2-programme-card {
    --programme-accent: #2f7a4a;
    --programme-soft: #e7f5eb;
    --programme-border: #cfe4d5;
    --programme-ink: #1f6038;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 24px;
    border: 1px solid var(--programme-border);
    border-radius: 21px;
    background:
        linear-gradient(145deg, var(--programme-soft), #ffffff 62%);
    box-shadow: 0 10px 26px rgba(28, 57, 40, 0.045);
}

.impact-v2-programme-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--programme-accent);
}

.impact-v2-programme-card[data-programme="schools"] {
    --programme-accent: #b66520;
    --programme-soft: #fbe7d7;
    --programme-border: #efcfb7;
    --programme-ink: #854212;
}

.impact-v2-programme-card[data-programme="youth_development"] {
    --programme-accent: #654a9b;
    --programme-soft: #eee8f8;
    --programme-border: #d7caeb;
    --programme-ink: #52367f;
}

.impact-v2-programme-card[data-programme="community_support"] {
    --programme-accent: #237a72;
    --programme-soft: #dff2ef;
    --programme-border: #c5e2de;
    --programme-ink: #17665f;
}

.impact-v2-programme-card.is-inactive {
    min-height: 225px;
    background:
        linear-gradient(145deg, var(--programme-soft), #ffffff 76%);
    box-shadow: none;
}

.impact-v2-programme-card.is-inactive::before {
    opacity: 0.58;
}

.impact-v2-programme-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.impact-v2-programme-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 7px 20px rgba(33, 60, 44, 0.06);
    font-size: 1.5rem;
}

.impact-v2-programme-name {
    display: block;
    color: var(--programme-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.impact-v2-programme-status {
    display: block;
    margin-top: 3px;
    color: var(--programme-ink);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    opacity: 0.67;
}

.impact-v2-programme-feature {
    margin-top: 29px;
}

.impact-v2-programme-feature strong {
    display: block;
    color: var(--programme-ink);
    font-size: 3.7rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.impact-v2-programme-feature span {
    display: block;
    margin-top: 7px;
    color: var(--programme-ink);
    font-size: 0.91rem;
    font-weight: 900;
}

.impact-v2-programme-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 23px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--programme-accent) 18%, transparent);
    color: #6b776f;
    font-size: 0.74rem;
}

.impact-v2-programme-details strong {
    color: var(--programme-ink);
}

.impact-v2-programme-empty {
    margin-top: 32px;
    padding: 18px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.66);
}

.impact-v2-programme-empty strong {
    color: var(--programme-ink);
    font-size: 1rem;
}

.impact-v2-programme-empty p {
    margin: 7px 0 0;
    color: #747f78;
    font-size: 0.8rem;
    line-height: 1.5;
}

.impact-v2-activity-card {
    --activity-accent: #2f7a4a;
    position: relative;
    overflow: hidden;
    padding: 29px 30px 30px 36px;
    border: 1px solid #dce6df;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(28, 62, 42, 0.06);
}

.impact-v2-activity-card[data-programme="schools"] {
    --activity-accent: #b66520;
}

.impact-v2-activity-card[data-programme="youth_development"] {
    --activity-accent: #654a9b;
}

.impact-v2-activity-card[data-programme="community_support"] {
    --activity-accent: #237a72;
}

.impact-v2-activity-accent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 7px;
    background: var(--activity-accent);
}

.impact-v2-activity-header {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    justify-content: space-between;
}

.impact-v2-activity-id {
    color: #819087;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.impact-v2-activity-header h3 {
    margin: 6px 0 8px;
    color: var(--impact-dark);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.impact-v2-activity-header p {
    margin: 0;
    color: #718078;
    font-size: 0.82rem;
}

.impact-v2-activity-header p span {
    padding: 0 5px;
    color: #a4ada7;
}

.impact-v2-verified-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #236739;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.impact-v2-activity-results {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.impact-v2-activity-results > div {
    min-width: 160px;
    flex: 1 1 170px;
    padding: 17px 18px;
    border-radius: 15px;
    background: #f7faf8;
}

.impact-v2-activity-results strong {
    display: block;
    color: var(--impact-dark);
    font-size: 2rem;
    line-height: 1;
}

.impact-v2-activity-results span {
    display: block;
    margin-top: 7px;
    color: #748178;
    font-size: 0.75rem;
    line-height: 1.35;
}

.impact-v2-activity-results .impact-v2-activity-outcome {
    background: color-mix(in srgb, var(--activity-accent) 10%, #ffffff);
}

.impact-v2-activity-results .impact-v2-activity-outcome strong {
    color: var(--activity-accent);
}

.impact-v2-trust {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 30px;
    padding: 22px 25px;
    border-radius: 18px;
    background: #f4f8f5;
}

.impact-v2-trust-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #dff0e4;
    color: #2f7a4a;
    font-size: 1.4rem;
    font-weight: 900;
}

.impact-v2-trust h2 {
    margin: 4px 0 5px;
    color: var(--impact-dark);
    font-size: 1.08rem;
}

.impact-v2-trust p {
    margin: 0;
    color: #6d7a71;
    font-size: 0.8rem;
    line-height: 1.5;
}

.impact-v2-no-records {
    padding: 28px;
    border: 1px dashed #cfdbd2;
    border-radius: 18px;
    background: #fafcfa;
}

@media (max-width: 900px) {
    .impact-v2 {
        max-width: none;
    }

    .impact-v2-hero {
        grid-template-columns: 1fr;
    }

    .impact-v2-highlight {
        min-height: 235px;
    }

    .impact-v2-participation-story {
        grid-template-columns: 1fr 1.5fr;
    }

    .impact-v2-participation-summary {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid var(--impact-line);
        border-left: 0;
    }

    .impact-v2-participation-summary > div + div {
        padding-top: 0;
        padding-left: 18px;
        border-top: 0;
        border-left: 1px solid #e6ece8;
    }
}

@media (max-width: 700px) {
    .impact-v2 {
        padding-top: 16px;
    }

    .impact-v2-hero {
        padding: 27px 23px;
        border-radius: 22px;
    }

    .impact-v2-hero-facts {
        grid-template-columns: 1fr;
    }

    .impact-v2-hero-facts > div {
        border-top: 1px solid #e2ebe4;
        border-left: 0;
    }

    .impact-v2-programme-grid {
        grid-template-columns: 1fr;
    }

    .impact-v2-activity-header {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .impact-v2-participation-story {
        grid-template-columns: 1fr;
    }

    .impact-v2-participation-summary {
        grid-template-columns: 1fr;
    }

    .impact-v2-participation-summary > div + div {
        padding-top: 13px;
        padding-left: 0;
        border-top: 1px solid #e6ece8;
        border-left: 0;
    }

    .impact-v2-participation-number,
    .impact-v2-attendance,
    .impact-v2-participation-summary {
        padding: 22px;
    }

    .impact-v2-activity-card {
        padding: 24px 21px 24px 28px;
    }
}

/* Manage Activities mobile-first redesign — 2026-08-28 */
.manage-activities-v2 {
    --manage-deep: #173f29;
    --manage-green: #2f7a4a;
    --manage-muted: #6d7a71;
    --manage-line: #dce7df;
    display: grid;
    gap: 24px;
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 26px 0 64px;
}

.manage-v2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.manage-v2-top-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.manage-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 31px 34px;
    border: 1px solid #d9e6dc;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(47, 122, 74, 0.12),
            transparent 34%
        ),
        linear-gradient(135deg, #ffffff 0%, #f4f9f5 100%);
    box-shadow: 0 14px 36px rgba(24, 63, 40, 0.065);
}

.manage-v2-hero h1 {
    margin: 5px 0 8px;
    color: var(--manage-deep);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.manage-v2-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--manage-muted);
    line-height: 1.55;
}

.manage-v2-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(115px, 1fr));
    gap: 10px;
}

.manage-v2-hero-stats > div {
    padding: 18px;
    border: 1px solid #d9e7dc;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.manage-v2-hero-stats strong {
    display: block;
    color: var(--manage-deep);
    font-size: 2rem;
    line-height: 1;
}

.manage-v2-hero-stats span {
    display: block;
    margin-top: 5px;
    color: #738077;
    font-size: 0.72rem;
    font-weight: 800;
}

.manage-v2-workflow {
    padding: 20px;
    border: 1px solid var(--manage-line);
    border-radius: 19px;
    background: #ffffff;
}

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

.manage-v2-workflow-heading h2 {
    margin: 4px 0 0;
    color: var(--manage-deep);
    font-size: 1.2rem;
}

.manage-v2-workflow-heading > small {
    color: #849087;
    font-size: 0.7rem;
}

.manage-v2-workflow-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.manage-v2-workflow-chip {
    min-width: 0;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 14px;
}

.manage-v2-workflow-chip strong,
.manage-v2-workflow-chip span,
.manage-v2-workflow-chip small {
    display: block;
}

.manage-v2-workflow-chip strong {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.manage-v2-workflow-chip span {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 900;
}

.manage-v2-workflow-chip small {
    margin-top: 3px;
    font-size: 0.67rem;
    opacity: 0.78;
}

.manage-v2-workflow-chip[data-workflow-stage="needs-setup"] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}

.manage-v2-workflow-chip[data-workflow-stage="attendance"] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}

.manage-v2-workflow-chip[data-workflow-stage="fieldwork-reporting"] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}

.manage-v2-workflow-chip[data-workflow-stage="completed"] {
    border-color: #c9e2cf;
    background: #e2f1e5;
    color: #21663a;
}

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

.manage-v2-section-heading h2 {
    margin: 4px 0 5px;
    color: var(--manage-deep);
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.manage-v2-section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--manage-muted);
    line-height: 1.5;
}

.manage-v2-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8f2ea;
    color: #2b6840;
    font-size: 0.72rem;
    font-weight: 900;
}

.manage-v2-active-list {
    display: grid;
    gap: 14px;
}

.manage-v2-activity-card {
    --programme-accent: #2f7a4a;
    --programme-soft: #e7f5eb;
    --programme-ink: #1f6038;
    position: relative;
    overflow: hidden;
    padding: 23px 25px 24px 30px;
    border: 1px solid #d9e6dc;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--programme-soft) 58%,
                #ffffff
            ),
            #ffffff 58%
        );
    box-shadow: 0 12px 30px rgba(27, 60, 40, 0.06);
}

.manage-v2-activity-card[data-programme="schools"] {
    --programme-accent: #b66520;
    --programme-soft: #fbe7d7;
    --programme-ink: #854212;
}

.manage-v2-activity-card[data-programme="youth_development"] {
    --programme-accent: #654a9b;
    --programme-soft: #eee8f8;
    --programme-ink: #52367f;
}

.manage-v2-activity-card[data-programme="community_support"] {
    --programme-accent: #237a72;
    --programme-soft: #dff2ef;
    --programme-ink: #17665f;
}

.manage-v2-card-accent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 7px;
    background: var(--programme-accent);
}

.manage-v2-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.manage-v2-programme {
    display: flex;
    align-items: center;
    gap: 11px;
}

.manage-v2-programme-icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 1.25rem;
}

.manage-v2-programme > div > span {
    display: block;
    color: var(--programme-ink);
    font-size: 0.8rem;
    font-weight: 900;
}

.manage-v2-programme > div > small {
    display: block;
    margin-top: 2px;
    color: #879188;
    font-size: 0.64rem;
    font-weight: 800;
}

.manage-v2-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #dfb84a;
    border-radius: 999px;
    background: #fff3c6;
    color: #745000;
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.manage-v2-status-badge[data-activity-status="planned"] {
    border-color: #d5dfe5;
    background: #eaf0f3;
    color: #4f6472;
}

.manage-v2-status-badge[data-activity-status="team-assigned"],
.manage-v2-status-badge[data-activity-status="attendance-recorded"] {
    border-color: #c9dff2;
    background: #deecf9;
    color: #245f96;
}

.manage-v2-status-badge[
    data-activity-status="field-work-in-progress"
],
.manage-v2-status-badge[
    data-activity-status="field-work-started"
],
.manage-v2-status-badge[
    data-activity-status="field-work-record-pending"
],
.manage-v2-status-badge[
    data-activity-status="field-work-completed"
],
.manage-v2-status-badge[
    data-activity-status="report-draft"
] {
    border-color: #efcfb7;
    background: #fbe7d7;
    color: #934812;
}

.manage-v2-status-badge[
    data-activity-status="report-pending-review"
],
.manage-v2-status-badge[
    data-activity-status="report-submitted"
] {
    border-color: #ccd3ef;
    background: #e8ebf8;
    color: #465492;
}

.manage-v2-status-badge[
    data-activity-status="report-returned"
],
.manage-v2-status-badge[
    data-activity-status="returned-for-correction"
] {
    border-color: #efc6c2;
    background: #fbe8e5;
    color: #914039;
}

.manage-v2-card-body {
    padding: 22px 0 18px;
}

.manage-v2-card-body h3 {
    margin: 0;
    color: var(--manage-deep);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
}

.manage-v2-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-top: 12px;
    color: #69766e;
    font-size: 0.76rem;
    font-weight: 700;
}

.manage-v2-next-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid
        color-mix(
            in srgb,
            var(--programme-accent) 18%,
            #e5ebe7
        );
}

.manage-v2-next-action > div > span,
.manage-v2-next-action > div > strong {
    display: block;
}

.manage-v2-next-action > div > span {
    color: #7c877f;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.manage-v2-next-action > div > strong {
    margin-top: 4px;
    color: var(--programme-ink);
    font-size: 0.9rem;
}

.manage-v2-action-button {
    min-width: 165px;
    justify-content: center;
}

.manage-v2-action-button span {
    margin-left: 5px;
}

.manage-v2-all-clear {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid #cfe1d3;
    border-radius: 17px;
    background: #eef7f0;
}

.manage-v2-all-clear > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #dcefe1;
    color: #2b7644;
    font-weight: 900;
}

.manage-v2-all-clear strong {
    color: #245f38;
}

.manage-v2-all-clear p {
    margin: 4px 0 0;
    color: #6b786f;
    font-size: 0.8rem;
}

.manage-v2-records-section {
    display: grid;
    gap: 12px;
}

.manage-v2-records-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.manage-v2-records-toolbar h2 {
    margin: 4px 0 0;
    color: var(--manage-deep);
    font-size: 1.2rem;
}

.manage-v2-search {
    width: min(390px, 100%);
}

.manage-v2-search input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #cedbd1;
    border-radius: 13px;
    background: #ffffff;
    color: #293b30;
    font: inherit;
}

.manage-v2-search input:focus {
    outline: 3px solid rgba(47, 122, 74, 0.12);
    border-color: #5a986d;
}

.manage-v2-history {
    overflow: hidden;
    border: 1px solid var(--manage-line);
    border-radius: 19px;
    background: #ffffff;
}

.manage-v2-history > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.manage-v2-history > summary::-webkit-details-marker {
    display: none;
}

.manage-v2-history > summary strong {
    display: block;
    margin-top: 3px;
    color: var(--manage-deep);
    font-size: 0.95rem;
}

.manage-v2-history[open] > summary {
    border-bottom: 1px solid var(--manage-line);
    background: #f7faf8;
}

.manage-v2-history-content {
    padding: 14px;
}

.manage-v2-history-list {
    display: grid;
    gap: 9px;
}

.manage-v2-history-card {
    --programme-accent: #2f7a4a;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 13px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #e1e8e3;
    border-left: 5px solid var(--programme-accent);
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.manage-v2-history-card[data-programme="schools"] {
    --programme-accent: #b66520;
}

.manage-v2-history-card[data-programme="youth_development"] {
    --programme-accent: #654a9b;
}

.manage-v2-history-card[data-programme="community_support"] {
    --programme-accent: #237a72;
}

.manage-v2-history-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #f5f8f6;
}

.manage-v2-history-main {
    min-width: 0;
}

.manage-v2-history-id {
    display: block;
    color: #859088;
    font-size: 0.61rem;
    font-weight: 900;
}

.manage-v2-history-main > strong {
    display: block;
    margin-top: 2px;
    color: #284032;
    font-size: 0.88rem;
}

.manage-v2-history-main > small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #79847c;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-v2-history-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #e2f1e5;
    color: #21663a;
    font-size: 0.63rem;
    font-weight: 900;
}

.manage-v2-history-status[data-activity-status="cancelled"] {
    background: #f7dfdc;
    color: #873a34;
}

.manage-v2-history-open {
    color: #54715e;
    font-size: 0.7rem;
    font-weight: 900;
}

.manage-v2-journey {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid #e0e8e2;
    border-radius: 17px;
    background: #f7faf8;
}

.manage-v2-journey h2 {
    margin: 4px 0 0;
    color: #2d4435;
    font-size: 0.95rem;
}

.manage-v2-journey-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.manage-v2-journey-steps span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #e8f2ea;
    color: #346246;
    font-size: 0.68rem;
    font-weight: 800;
}

.manage-v2-journey-steps b {
    color: #9aa59e;
    font-size: 0.68rem;
}

.manage-v2-empty {
    padding: 40px 24px;
    border: 1px solid #dce7df;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

.manage-v2-empty-icon {
    font-size: 2rem;
}

.manage-v2-empty h2 {
    margin: 9px 0 6px;
    color: var(--manage-deep);
}

.manage-v2-empty p {
    max-width: 540px;
    margin: 0 auto 18px;
    color: var(--manage-muted);
}

@media (max-width: 780px) {
    .manage-v2-hero {
        grid-template-columns: 1fr;
    }

    .manage-v2-workflow-strip {
        overflow-x: auto;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(155px, 43%);
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .manage-v2-workflow-chip {
        scroll-snap-align: start;
    }

    .manage-v2-records-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .manage-v2-search {
        width: 100%;
    }

    .manage-v2-journey {
        align-items: flex-start;
        flex-direction: column;
    }

    .manage-v2-journey-steps {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .manage-activities-v2 {
        width: min(100% - 20px, 1180px);
        gap: 18px;
        padding-top: 17px;
    }

    .manage-v2-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .manage-v2-top-actions {
        display: grid;
        grid-template-columns: 0.82fr 1.18fr;
    }

    .manage-v2-top-actions .button {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .manage-v2-hero {
        gap: 20px;
        padding: 23px 19px;
        border-radius: 20px;
    }

    .manage-v2-hero h1 {
        font-size: 2.2rem;
    }

    .manage-v2-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-v2-workflow {
        margin-right: -10px;
        margin-left: -10px;
        padding: 17px 10px 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .manage-v2-workflow-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 0 2px;
    }

    .manage-v2-workflow-strip {
        grid-auto-columns: minmax(150px, 72%);
    }

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

    .manage-v2-activity-card {
        padding: 18px 16px 18px 22px;
        border-radius: 18px;
    }

    .manage-v2-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .manage-v2-status-badge {
        margin-left: 56px;
    }

    .manage-v2-card-body {
        padding: 18px 0 15px;
    }

    .manage-v2-card-body h3 {
        font-size: 1.55rem;
    }

    .manage-v2-card-meta {
        display: grid;
        gap: 7px;
    }

    .manage-v2-next-action {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .manage-v2-action-button {
        width: 100%;
        min-height: 50px;
    }

    .manage-v2-records-toolbar {
        gap: 12px;
    }

    .manage-v2-search input {
        min-height: 50px;
    }

    .manage-v2-history > summary {
        align-items: flex-start;
        padding: 16px;
    }

    .manage-v2-history-content {
        padding: 10px;
    }

    .manage-v2-history-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .manage-v2-history-status {
        grid-column: 2;
        justify-self: start;
    }

    .manage-v2-history-open {
        grid-column: 2;
        justify-self: start;
    }

    .manage-v2-history-main > small {
        white-space: normal;
    }

    .manage-v2-journey {
        padding: 16px;
    }

    .manage-v2-journey-steps {
        gap: 5px;
    }
}

/* Manage Activities phone containment fix — 2026-08-28 */
@media (max-width: 700px) {
    .manage-activities-page-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .manage-activities-page-body .app-brandbar {
        width: 100%;
        max-width: 100%;
    }

    .activity-directory-page.manage-activities-v2 {
        width: calc(100% - 22px);
        max-width: 1180px;
        min-width: 0;
        gap: 18px;
        margin-right: auto;
        margin-left: auto;
        padding-top: 18px;
        overflow-x: clip;
    }

    .manage-v2-topbar,
    .manage-v2-top-actions,
    .manage-v2-hero,
    .manage-v2-workflow,
    .manage-v2-active-section,
    .manage-v2-records-section,
    .manage-v2-journey {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .manage-v2-topbar {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .manage-v2-top-actions {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .manage-v2-top-actions .button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 48px;
        box-sizing: border-box;
        justify-content: center;
    }

    .manage-v2-top-actions .button-primary {
        order: -1;
    }

    .manage-v2-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 22px 18px;
        overflow: hidden;
        border-radius: 20px;
    }

    .manage-v2-hero > *,
    .manage-v2-hero-stats,
    .manage-v2-hero-stats > div {
        min-width: 0;
        max-width: 100%;
    }

    .manage-v2-hero h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.45rem);
        overflow-wrap: anywhere;
    }

    .manage-v2-hero p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .manage-v2-hero-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .manage-v2-hero-stats > div {
        padding: 16px 10px;
    }

    .manage-v2-workflow {
        margin: 0;
        padding: 18px;
        overflow: hidden;
        border-right: 1px solid var(--manage-line);
        border-left: 1px solid var(--manage-line);
        border-radius: 18px;
    }

    .manage-v2-workflow-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 0;
    }

    .manage-v2-workflow-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 9px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .manage-v2-workflow-chip {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 13px 11px;
        scroll-snap-align: none;
    }

    .manage-v2-workflow-chip span,
    .manage-v2-workflow-chip small {
        overflow-wrap: anywhere;
    }

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

    .manage-v2-count-badge {
        align-self: flex-start;
    }

    .manage-v2-active-list,
    .manage-v2-activity-card,
    .manage-v2-card-header,
    .manage-v2-card-body,
    .manage-v2-next-action {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .manage-v2-activity-card {
        padding: 18px 15px 18px 21px;
        overflow: hidden;
        border-radius: 18px;
    }

    .manage-v2-card-header {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .manage-v2-programme,
    .manage-v2-programme > div {
        min-width: 0;
        max-width: 100%;
    }

    .manage-v2-status-badge {
        max-width: 100%;
        margin-left: 0;
        white-space: normal;
    }

    .manage-v2-card-body {
        padding: 17px 0 15px;
    }

    .manage-v2-card-body h3 {
        max-width: 100%;
        font-size: 1.55rem;
        overflow-wrap: anywhere;
    }

    .manage-v2-card-meta {
        display: grid;
        gap: 7px;
        max-width: 100%;
    }

    .manage-v2-card-meta span {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .manage-v2-next-action {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .manage-v2-next-action > div {
        min-width: 0;
    }

    .manage-v2-action-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 50px;
        box-sizing: border-box;
    }

    .manage-v2-records-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .manage-v2-search,
    .manage-v2-search input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .manage-v2-history,
    .manage-v2-history-content,
    .manage-v2-history-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .manage-v2-history > summary {
        align-items: flex-start;
        padding: 16px;
    }

    .manage-v2-history-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .manage-v2-history-main {
        min-width: 0;
    }

    .manage-v2-history-status,
    .manage-v2-history-open {
        grid-column: 2;
        justify-self: start;
    }

    .manage-v2-history-main > small {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .manage-v2-journey {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .manage-v2-journey-steps {
        max-width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .manage-v2-hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .manage-v2-workflow-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* DYD ADMIN AUDIT V2 — 20260829 */
.admin-audit-v2-body { overflow-x: hidden; }
.admin-audit-v2 { width: min(100% - 32px, 1180px); }
.admin-audit-v2-filter-panel,
.admin-audit-v2-panel { margin-top: 22px; }
.admin-audit-v2-filter-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.admin-audit-v2-filter-heading h2 { margin: 2px 0 0; }
.admin-audit-v2-filters { display: grid; grid-template-columns: minmax(230px, 1.4fr) minmax(150px, .8fr) minmax(180px, 1fr) minmax(150px, .8fr) auto; gap: 12px; align-items: end; }
.admin-audit-v2-filters label { display: grid; gap: 6px; min-width: 0; }
.admin-audit-v2-filters label > span { color: #536159; font-size: .72rem; font-weight: 900; }
.admin-audit-v2-filters input,
.admin-audit-v2-filters select { width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid #d7e1d8; border-radius: 11px; background: #fff; color: #26342b; font: inherit; }
.admin-audit-v2-list { display: grid; gap: 10px; }
.admin-audit-v2-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border: 1px solid #e0e8e1; border-radius: 15px; background: #fbfcfb; }
.admin-audit-v2-row[data-audit-category="volunteer"] { border-left: 5px solid #3e8c55; }
.admin-audit-v2-row[data-audit-category="attendance"] { border-left: 5px solid #3d7db2; }
.admin-audit-v2-row[data-audit-category="fieldwork"] { border-left: 5px solid #6f5a9f; }
.admin-audit-v2-row[data-audit-category="report"] { border-left: 5px solid #d99126; }
.admin-audit-v2-row[data-audit-category="access"] { border-left: 5px solid #8d5b47; }
.admin-audit-v2-row[data-audit-category="system"] { border-left: 5px solid #607169; }
.admin-audit-v2-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #eef4ef; font-size: 1.05rem; }
.admin-audit-v2-copy { display: grid; gap: 7px; min-width: 0; }
.admin-audit-v2-action-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-audit-v2-action-line > strong { color: #203c29; font-size: .94rem; }
.admin-audit-v2-category { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #eef4ef; color: #496052; font-size: .68rem; font-weight: 900; }
.admin-audit-v2-target,
.admin-audit-v2-related { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; color: #657269; font-size: .78rem; }
.admin-audit-v2-target a,
.admin-audit-v2-related a { color: #27683a; font-weight: 900; text-decoration: none; }
.admin-audit-v2-target small { color: #8a958d; font-size: .68rem; }
.admin-audit-v2-meta { display: grid; gap: 2px; min-width: 180px; text-align: right; }
.admin-audit-v2-meta strong { color: #263a2b; font-size: .82rem; }
.admin-audit-v2-meta span,
.admin-audit-v2-meta time { color: #6e7972; font-size: .7rem; }
.admin-audit-v2-empty { padding: 32px 18px; text-align: center; }
@media (max-width: 980px) {
    .admin-audit-v2-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-audit-v2-search { grid-column: 1 / -1; }
    .admin-audit-v2-filters .button { width: 100%; }
}
@media (max-width: 700px) {
    .admin-audit-v2 { width: calc(100% - 22px); min-width: 0; }
    .admin-audit-v2-filter-heading { flex-direction: column; }
    .admin-audit-v2-filter-heading .button { width: 100%; }
    .admin-audit-v2-filters { grid-template-columns: 1fr; }
    .admin-audit-v2-search { grid-column: auto; }
    .admin-audit-v2-row { grid-template-columns: 40px minmax(0, 1fr); align-items: start; padding: 14px 12px; }
    .admin-audit-v2-meta { grid-column: 2; min-width: 0; text-align: left; }
}

/* DYD WEATHER FORECAST CARD */

.weather-forecast-card {
    margin: 1rem 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(21, 79, 45, 0.16);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(22, 59, 40, 0.06);
}

.weather-forecast-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 1.55rem;
    background:
        linear-gradient(
            120deg,
            rgba(235, 247, 239, 0.98),
            rgba(245, 250, 247, 0.96)
        );
    border-bottom: 1px solid rgba(21, 79, 45, 0.12);
}

.weather-condition-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.weather-main-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(21, 79, 45, 0.12);
    font-size: 2.4rem;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(22, 59, 40, 0.07);
}

.weather-condition-copy {
    min-width: 0;
}

.weather-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #17682e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.weather-condition-copy h2 {
    margin: 0;
    color: #15271b;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.12;
}

.weather-condition-copy p {
    margin: 0.35rem 0 0;
    color: #627067;
    font-size: 0.9rem;
    font-weight: 600;
}

.weather-temperature {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 6.5rem;
}

.weather-temperature-value {
    color: #15271b;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.weather-feels-like {
    margin-top: 0.4rem;
    color: #627067;
    font-size: 0.82rem;
    font-weight: 600;
}

.weather-forecast-badge {
    position: absolute;
    top: 1.15rem;
    right: 1.35rem;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: #17682e;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.weather-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #e7ece9;
}

.weather-metric {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.05rem 1.15rem;
    border-right: 1px solid #e7ece9;
}

.weather-metric:last-child {
    border-right: 0;
}

.weather-metric-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f2f7f4;
    font-size: 1.2rem;
}

.weather-metric-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #718078;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weather-metric strong {
    display: block;
    color: #17261c;
    font-size: 0.98rem;
    line-height: 1.25;
}

.weather-coordinator-summary {
    display: flex;
    gap: 0.85rem;
    margin: 1.15rem;
    padding: 1rem 1.1rem;
    background: #f6f8f7;
    border-radius: 14px;
}

.weather-summary-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #17682e;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.weather-summary-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #17682e;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weather-coordinator-summary p {
    margin: 0;
    color: #34443a;
    font-size: 0.91rem;
    line-height: 1.55;
}

.weather-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
    padding: 0 1.15rem 1.15rem;
    color: #748078;
    font-size: 0.7rem;
    font-weight: 600;
}

.weather-source-row span:not(:last-child)::after {
    content: "•";
    margin-left: 1.25rem;
    color: #aab4ae;
}


@media (max-width: 900px) {
    .weather-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-metric:nth-child(2) {
        border-right: 0;
    }

    .weather-metric:nth-child(-n + 2) {
        border-bottom: 1px solid #e7ece9;
    }
}


@media (max-width: 680px) {
    .weather-forecast-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.2rem;
    }

    .weather-main-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .weather-temperature {
        align-items: flex-start;
        padding-right: 0;
    }

    .weather-forecast-badge {
        top: 1rem;
        right: 1rem;
    }

    .weather-metric-grid {
        grid-template-columns: 1fr;
    }

    .weather-metric,
    .weather-metric:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e7ece9;
    }

    .weather-metric:last-child {
        border-bottom: 0;
    }

    .weather-source-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .weather-source-row span::after {
        display: none;
    }
}



/* DYD COMPACT ACTIVITY WEATHER */

.manage-weather-strip {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        auto
        minmax(0, 1.4fr);
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 0.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(23, 104, 46, 0.14);
    border-radius: 15px;
    background:
        linear-gradient(
            110deg,
            rgba(238, 248, 241, 0.96),
            rgba(250, 252, 250, 0.98)
        );
}

.manage-weather-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.manage-weather-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(23, 104, 46, 0.12);
    border-radius: 13px;
    background: #ffffff;
    font-size: 1.55rem;
}

.manage-weather-condition {
    min-width: 0;
}

.manage-weather-condition > span {
    display: block;
    margin-bottom: 0.08rem;
    color: #17682e;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.manage-weather-condition > strong {
    display: block;
    overflow: hidden;
    color: #183120;
    font-size: 0.95rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-weather-condition > small,
.manage-weather-temperature > small {
    display: block;
    margin-top: 0.2rem;
    color: #718078;
    font-size: 0.7rem;
    font-weight: 700;
}

.manage-weather-temperature {
    min-width: 110px;
    padding: 0 1rem;
    border-right: 1px solid #dfe8e2;
    border-left: 1px solid #dfe8e2;
    text-align: center;
}

.manage-weather-temperature > strong {
    display: block;
    color: #16311e;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.manage-weather-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
    color: #58685e;
    font-size: 0.73rem;
    font-weight: 700;
}

.manage-weather-metrics span {
    white-space: nowrap;
}

.manage-weather-metrics strong {
    color: #193221;
    font-weight: 900;
}

.weather-source-row strong {
    color: #52635a;
    font-weight: 900;
}


@media (max-width: 900px) {
    .manage-weather-strip {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .manage-weather-temperature {
        border-right: 0;
    }

    .manage-weather-metrics {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 0.7rem;
        border-top: 1px solid #dfe8e2;
    }
}


@media (max-width: 620px) {
    .manage-weather-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .manage-weather-temperature {
        display: flex;
        align-items: baseline;
        gap: 0.55rem;
        padding: 0.65rem 0 0;
        border: 0;
        border-top: 1px solid #dfe8e2;
        text-align: left;
    }

    .manage-weather-temperature > strong {
        font-size: 1.2rem;
    }

    .manage-weather-temperature > small {
        margin: 0;
    }

    .manage-weather-metrics {
        grid-column: auto;
        flex-wrap: wrap;
        gap: 0.55rem 1rem;
    }

    .manage-weather-condition > strong {
        white-space: normal;
    }
}


/* DYD ACTIVITY LOCATION SEARCH */

.activity-location-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: stretch;
}

.activity-location-search-control .button {
    min-width: 150px;
}

.activity-location-help {
    margin: 0.5rem 0 0;
    color: #68776e;
    font-size: 0.78rem;
    line-height: 1.45;
}

.activity-location-status {
    margin-top: 0.55rem;
    color: #617168;
    font-size: 0.78rem;
    line-height: 1.45;
}

.activity-location-selected {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(23, 104, 46, 0.16);
    border-radius: 13px;
    background: #f1f8f3;
}

.activity-location-selected[hidden] {
    display: none;
}

.activity-location-selected > span {
    font-size: 1.15rem;
}

.activity-location-selected strong,
.activity-location-selected div > span {
    display: block;
}

.activity-location-selected strong {
    color: #17682e;
    font-size: 0.75rem;
    font-weight: 900;
}

.activity-location-selected div > span {
    margin-top: 0.15rem;
    color: #314238;
    font-size: 0.86rem;
    font-weight: 700;
}

.activity-location-results {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.activity-location-results[hidden] {
    display: none;
}

.activity-location-result {
    display: block;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid #d9e4dc;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.activity-location-result:hover,
.activity-location-result:focus-visible {
    border-color: #72a27e;
    background: #f6faf7;
    outline: none;
}

.activity-location-result strong {
    display: block;
    color: #17331f;
    font-size: 0.88rem;
}

.activity-location-result span {
    display: block;
    margin-top: 0.15rem;
    color: #68776e;
    font-size: 0.74rem;
    line-height: 1.4;
}

.activity-location-attribution {
    margin: 0.55rem 0 0;
    color: #77847c;
    font-size: 0.68rem;
}

.weather-forecast-area {
    margin-top: 0.3rem !important;
    color: #53665a !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
}

.weather-forecast-area span {
    color: #7c8981;
    font-weight: 600;
}

.manage-weather-area {
    margin-top: 0.12rem !important;
}


@media (max-width: 620px) {
    .activity-location-search-control {
        grid-template-columns: 1fr;
    }

    .activity-location-search-control .button {
        width: 100%;
    }
}


/* DYD SEPARATE FORECAST REFERENCE */

.field-optional {
    margin-left: 0.35rem;
    color: #7a877f;
    font-size: 0.7rem;
    font-weight: 700;
}

.weather-forecast-area strong {
    color: #365741;
    font-weight: 900;
}


/* DYD REPORT FIELDWORK WEATHER */

.report-fieldwork-weather {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #d9e6dc;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(240, 248, 242, 0.96),
            rgba(255, 255, 255, 0.98)
        );
}

.report-fieldwork-weather-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-fieldwork-weather-heading h3 {
    margin:
        0.2rem
        0
        0.25rem;
    color: #173f2a;
}

.report-fieldwork-weather-heading p {
    margin: 0;
    color: #64746a;
    line-height: 1.5;
}

.report-fieldwork-weather-source {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(248, 249, 247, 0.95);
    color: #54645b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.report-fieldwork-weather-source strong {
    color: #244c33;
}

.report-fieldwork-weather-source span {
    padding:
        0
        0.35rem;
    color: #a9b4ad;
}

@media (max-width: 760px) {
    .report-fieldwork-weather-heading {
        flex-direction: column;
    }
}


/* DYD FIELDWORK WEATHER SNAPSHOT WIDGET */

.fieldwork-weather-snapshot {
    margin:
        1.4rem
        0;
    overflow: hidden;
    border:
        1px
        solid
        #d4e5d8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0
        12px
        30px
        rgba(29, 73, 45, 0.06);
}

.fieldwork-weather-snapshot-hero {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 1.25rem;
    padding:
        1.2rem
        1.3rem;
    background:
        linear-gradient(
            120deg,
            #eef8f0 0%,
            #f8fbf8 60%,
            #ffffff 100%
        );
}

.fieldwork-weather-snapshot-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fieldwork-weather-snapshot-icon {
    display: grid;
    flex:
        0
        0
        auto;
    width: 60px;
    height: 60px;
    place-items: center;
    border:
        1px
        solid
        #d9e5dc;
    border-radius: 16px;
    background: #ffffff;
    font-size: 2rem;
    box-shadow:
        0
        5px
        14px
        rgba(31, 71, 44, 0.08);
}

.fieldwork-weather-snapshot-main h3 {
    margin:
        0.15rem
        0
        0.15rem;
    color: #173f2a;
    font-size: clamp(
        1.35rem,
        2vw,
        1.75rem
    );
    line-height: 1.12;
}

.fieldwork-weather-snapshot-time {
    margin: 0;
    color: #64746a;
    font-size: 0.88rem;
}

.fieldwork-weather-snapshot-temperature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 7.5rem;
    white-space: nowrap;
}

.fieldwork-weather-snapshot-temperature strong {
    color: #173f2a;
    font-size: clamp(
        2rem,
        3vw,
        2.7rem
    );
    line-height: 1;
    letter-spacing: -0.04em;
}

.fieldwork-weather-snapshot-temperature span {
    margin-top: 0.3rem;
    color: #617068;
    font-size: 0.82rem;
}

.fieldwork-weather-snapshot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding:
        0.38rem
        0.65rem;
    border-radius: 999px;
    background: #1d6d32;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.fieldwork-weather-snapshot-metrics {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    border-top:
        1px
        solid
        #dde8df;
    border-bottom:
        1px
        solid
        #dde8df;
}

.fieldwork-weather-snapshot-metrics article {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding:
        0.9rem
        1rem;
}

.fieldwork-weather-snapshot-metrics article
+ article {
    border-left:
        1px
        solid
        #e1e9e3;
}

.fieldwork-weather-metric-icon {
    display: grid;
    flex:
        0
        0
        auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #f3f7f4;
    font-size: 1.1rem;
}

.fieldwork-weather-snapshot-metrics span {
    display: block;
    margin-bottom: 0.12rem;
    color: #6d7a72;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.fieldwork-weather-snapshot-metrics strong {
    display: block;
    color: #163d28;
    font-size: 0.92rem;
    line-height: 1.25;
}

.fieldwork-weather-snapshot-footer {
    display: flex;
    flex-wrap: wrap;
    gap:
        0.35rem
        0.7rem;
    padding:
        0.7rem
        1.1rem
        0.8rem;
    color: #69766f;
    font-size: 0.72rem;
    line-height: 1.45;
}

.fieldwork-weather-snapshot-footer span:not(:last-child)::after {
    content: "•";
    margin-left: 0.7rem;
    color: #aab5ae;
}

.fieldwork-weather-snapshot-footer strong {
    color: #365741;
}


@media (max-width: 900px) {

    .fieldwork-weather-snapshot-hero {
        grid-template-columns: 1fr;
    }

    .fieldwork-weather-snapshot-temperature {
        align-items: flex-start;
        padding-right: 0;
    }

    .fieldwork-weather-snapshot-badge {
        position: static;
        justify-self: start;
    }

    .fieldwork-weather-snapshot-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .fieldwork-weather-snapshot-metrics article:nth-child(3) {
        border-left: 0;
        border-top:
            1px
            solid
            #e1e9e3;
    }

    .fieldwork-weather-snapshot-metrics article:nth-child(4) {
        border-top:
            1px
            solid
            #e1e9e3;
    }

}


@media (max-width: 560px) {

    .fieldwork-weather-snapshot-main {
        align-items: flex-start;
    }

    .fieldwork-weather-snapshot-icon {
        width: 52px;
        height: 52px;
    }

    .fieldwork-weather-snapshot-metrics {
        grid-template-columns: 1fr;
    }

    .fieldwork-weather-snapshot-metrics article
    + article {
        border-left: 0;
        border-top:
            1px
            solid
            #e1e9e3;
    }

    .fieldwork-weather-snapshot-footer {
        display: block;
    }

    .fieldwork-weather-snapshot-footer span {
        display: block;
        margin-bottom: 0.25rem;
    }

    .fieldwork-weather-snapshot-footer span::after {
        display: none;
    }

}


/* DYD WEATHER SNAPSHOT BADGE FINAL FIX */

.fieldwork-weather-snapshot-hero {
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;
}

.fieldwork-weather-snapshot-temperature {
    padding-right: 0;
}

.fieldwork-weather-snapshot-badge {
    position: static;
    top: auto;
    right: auto;
    align-self: start;
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .fieldwork-weather-snapshot-hero {
        grid-template-columns: 1fr;
    }

    .fieldwork-weather-snapshot-badge {
        justify-self: start;
    }

}
