:root {
    --navy: #123e78;
    --blue: #155fa0;
    --teal: #0b766e;
    --green: #16835d;
    --ink: #172b45;
    --muted: #6c7b8f;
    --line: #dce5ee;
    --bg: #f4f7fb;
    --radius: 16px
}

* {
    box-sizing: border-box
}

body {
    font-family: "Segoe UI","Nirmala UI",sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    margin: 0
}

a {
    text-decoration: none;
    color: var(--blue)
}

button, input, select, textarea {
    font: inherit
}

h1, h2, h3, p {
    margin-top: 0
}

h1 {
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.7px
}

h2 {
    font-size: 18px;
    font-weight: 730
}

h3 {
    font-size: 15px;
    font-weight: 700
}

p {
    line-height: 1.65
}

small {
    font-size: 12px
}

label {
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 6px
}

button, a, input, select, textarea {
    outline-offset: 3px
}

    button:focus-visible, a:focus-visible {
        outline: 3px solid #2c8ad4
    }

.muted {
    color: var(--muted)
}

.topbar {
    height: 78px;
    background: linear-gradient(100deg,#123e78,#155fa0 65%,#0b766e);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 4px 18px #17365d24
}

.brand {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg,#fff,#f3f6fb);
    border: 2px solid #ead7a7;
    box-shadow: 0 0 0 3px #ffffff16,0 4px 12px #092d4f33;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 21px;
    font-weight: 850;
    line-height: 1
}

    .brand-logo {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
        background: #fff
    }

.topbar > div > strong {
    display: block;
    font-size: 17px;
    font-weight: 650
}

.topbar small {
    display: block;
    color: #d4e4f0;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: .2px
}

.user-chip {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px
}

    .user-chip b {
        font-size: 12px
    }

.user-avatar {
    background: #ffffff26;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    height: 35px;
    width: 35px;
    display: grid;
    place-items: center;
    font-weight: 750
}

.top-button, .year-chip {
    border: 1px solid #ffffff50;
    background: #ffffff12;
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px
}

.year-chip {
    margin-left: auto
}

.sidebar {
    position: fixed;
    left: 0;
    top: 78px;
    bottom: 0;
    width: 218px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 26px 14px;
    display: flex;
    flex-direction: column;
    z-index: 20
}

.nav-label {
    font-size: 9px;
    color: #8c9aab;
    font-weight: 750;
    letter-spacing: 1.3px;
    margin: 0 14px 13px
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: #617087;
    font-size: 12px;
    font-weight: 650;
    border-radius: 9px;
    margin: 3px 0
}

    .nav-item > span {
        font-size: 18px;
        color: #8797ab;
        width: 20px;
        text-align: center
    }

    .nav-item:hover {
        background: #f5f8fc
    }

    .nav-item.active {
        background: #eaf2fb;
        color: #155fa0
    }

        .nav-item.active > span {
            color: #155fa0
        }

    .nav-item i {
        margin-left: auto;
        width: 5px;
        height: 5px;
        background: #155fa0;
        border-radius: 50%
    }

.sidebar-note {
    margin-top: auto;
    background: #f6f9fc;
    border: 1px solid #e6edf4;
    border-radius: 12px;
    padding: 13px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6
}

    .sidebar-note p {
        font-weight: 400;
        font-size: 10px;
        color: #7e8c9c;
        margin: 8px 0
    }

    .sidebar-note small {
        font-size: 9px;
        color: #8291a3
    }

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: #1c9c7a;
    margin-right: 5px
}

.workspace {
    margin-left: 218px;
    padding: 0 30px 25px;
    max-width: 1900px
}

.workspace-top {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    gap: 12px
}

.cycle-picker {
    display: flex;
    align-items: center;
    gap: 10px
}

    .cycle-picker label {
        margin: 0;
        color: #8090a2;
        font-size: 10px;
        white-space: nowrap
    }

    .cycle-picker select {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 8px 28px 8px 10px;
        background: #fff;
        color: var(--ink);
        font-size: 11px;
        max-width: 300px
    }

.eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin-bottom: 9px
}

    .eyebrow.light {
        color: #add6de
    }

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0 25px
}

    .page-heading h1 {
        margin-bottom: 8px
    }

    .page-heading p {
        font-size: 12px;
        color: var(--muted);
        margin: 0
    }

.export-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0
}

.btn {
    font-size: 11px;
    font-weight: 650;
    border-radius: 8px;
    padding: 9px 13px;
    white-space: nowrap
}

.btn-main {
    background: linear-gradient(100deg,var(--blue),var(--teal));
    border: 0;
    color: #fff
}

    .btn-main:hover {
        color: #fff;
        filter: brightness(1.09)
    }

.btn-outline-secondary {
    border-color: #d1dce6;
    color: #566b81;
    background: #fff
}

.btn-outline-success {
    border-color: #bcded1;
    background: #fff;
    color: #087453
}

.btn:disabled {
    opacity: .5
}

.cardx {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 17px #23456704
}

.overview-banner {
    background: linear-gradient(105deg,#143f77,#125a87 57%,#137c79);
    border-radius: 16px;
    padding: 26px 29px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden
}

    .overview-banner:after {
        content: "";
        position: absolute;
        right: 110px;
        top: -50px;
        width: 230px;
        height: 230px;
        border: 35px solid #ffffff05;
        border-radius: 50%;
        pointer-events: none
    }

    .overview-banner h2 {
        font-size: 23px;
        font-weight: 600;
        letter-spacing: -.4px;
        margin: 0 0 10px
    }

    .overview-banner p {
        color: #c2dce6;
        font-size: 11px;
        margin: 0
    }

.banner-action {
    color: white;
    background: #ffffff14;
    border: 1px solid #ffffff45;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 10px;
    white-space: nowrap;
    position: relative;
    z-index: 1
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 22px
}

    .metrics-grid.three {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

.metric-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 18px 20px;
    color: var(--ink);
    transition: .18s
}

    .metric-card:hover {
        border-color: #a7c4df;
        box-shadow: 0 6px 20px #143a6a08
    }

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #61758a;
    font-size: 11px
}

.metric-card > span {
    font-size: 11px;
    color: var(--muted)
}

.metric-icon {
    height: 32px;
    width: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0
}

.blue {
    background: #eaf3fc !important;
    color: #155fa0 !important
}

.teal {
    background: #e7f6f3;
    color: #138775
}

.amber {
    background: #fff6e6 !important;
    color: #b6791d !important
}

.green {
    background: #e9f7ef !important;
    color: #158559 !important
}

.red {
    background: #fff0ee !important;
    color: #b64637 !important
}

.gray {
    background: #dce5ee !important
}

.metric-card > strong {
    display: block;
    font-size: 34px;
    font-weight: 650;
    line-height: 1.2;
    margin: 11px 0
}

.metric-card > small {
    color: #8a98a8;
    font-size: 10px;
    display: block
}

    .metric-card > small > b {
        float: right;
        color: #7b8e9f
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
    gap: 20px;
    margin-bottom: 20px
}

    .dashboard-grid.lower {
        grid-template-columns: minmax(0,1.55fr) minmax(0,1fr)
    }

.chart-card {
    padding: 24px;
    margin-bottom: 20px
}

.dashboard-grid > .chart-card {
    margin-bottom: 0
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px
}

    .section-heading h2 {
        font-size: 16px;
        margin-bottom: 6px
    }

    .section-heading p {
        font-size: 10px;
        color: #8b98a7;
        margin-bottom: 0
    }

    .section-heading > a {
        font-size: 10px;
        white-space: nowrap
    }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 5px 8px;
    background: #f0f4f8;
    color: #6d7f91;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.4;
    max-width: 100%
}

.stage-bars {
    display: grid;
    gap: 10px
}

.stage-bar {
    display: grid;
    grid-template-columns: minmax(180px,1.4fr) 1fr 23px 10px;
    gap: 11px;
    align-items: center;
    font-size: 10px;
    color: #708298
}

.stage-label {
    color: #52667c;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2
}

    .stage-label i {
        font-style: normal;
        color: #a1afbd;
        font-size: 9px
    }

.bar-track {
    height: 10px;
    background: #f0f4f8;
    border-radius: 3px;
    overflow: hidden
}

.bar-fill {
    display: block;
    height: 100%;
    background: #4987bb;
    min-width: 0;
    border-radius: 3px
}

.stage-3, .stage-4 {
    background: #429ba5
}

.stage-5, .stage-6 {
    background: #2b8f8d
}

.stage-7, .stage-8 {
    background: #528c9e
}

.stage-9, .stage-10, .stage-11 {
    background: #1c9a7a
}

.stage-bar > b {
    text-align: right;
    color: #325675
}

.donut-link {
    display: block;
    text-align: center
}

.donut {
    height: 194px;
    width: 194px;
    margin: -4px auto 8px
}

.donut-number {
    font-size: 25px;
    fill: #183b53;
    font-weight: 700
}

.donut-caption {
    font-size: 9px;
    fill: #8394a2
}

.legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eff3f7;
    color: #738396
}

    .legend-row b {
        color: #36516d
    }

.legend-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px
}

    .legend-dot.green {
        background: #168b7a !important
    }

    .legend-dot.blue {
        background: #3980b9 !important
    }

.insight {
    margin-top: 17px;
    padding: 13px;
    background: #f4f9fa;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    color: #27787a
}

    .insight > span {
        font-size: 19px
    }

    .insight p {
        color: #6b8b90;
        font-size: 10px;
        margin: 0
    }

.module-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 20px
}

    .module-mini-grid > a {
        display: flex;
        gap: 9px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #edf2f7;
        color: var(--ink)
    }

.module-number {
    display: inline-grid;
    place-items: center;
    height: 31px;
    min-width: 31px;
    background: #eef4f9;
    border: 1px solid #e2eaf2;
    color: #507995;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700
}

.module-mini-grid b {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 650
}

.module-mini-grid small {
    display: block;
    color: #98a4b1;
    font-size: 8px;
    margin-top: 3px
}

.module-mini-grid strong {
    margin-left: auto;
    font-size: 16px;
    font-weight: 650;
    color: #2c5875
}

.action-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7
}

    .action-highlight > span {
        background: #ecf5fb;
        color: #3a7fa8;
        border-radius: 10px;
        display: grid;
        place-items: center;
        width: 31px;
        height: 31px;
        flex-shrink: 0
    }

    .action-highlight b {
        font-size: 11px;
        font-weight: 650
    }

    .action-highlight p {
        color: #8a9aaa;
        font-size: 10px;
        margin: 4px 0 0
    }

    .action-highlight > b {
        margin-left: auto
    }

    .action-highlight.warning > span {
        background: #fff5e4;
        color: #b17f2b
    }

.team-summary {
    display: flex;
    gap: 30px;
    align-items: center;
    padding-top: 21px;
    margin-top: 8px
}

    .team-summary strong {
        display: block;
        font-size: 22px;
        font-weight: 650
    }

    .team-summary small {
        display: block;
        font-size: 9px;
        color: #97a4b0
    }

    .team-summary > a {
        margin-left: auto;
        font-size: 10px
    }

.empty-state {
    text-align: center;
    padding: 36px;
    color: #8d9bad
}

    .empty-state > div {
        font-size: 25px;
        color: #56a897;
        margin-bottom: 12px
    }

    .empty-state h3 {
        font-size: 14px;
        color: #647c90
    }

    .empty-state p {
        font-size: 11px
    }

    .empty-state.compact {
        padding: 25px 18px
    }

.award-table {
    font-size: 11px;
    vertical-align: middle;
    margin-bottom: 0;
    --bs-table-bg: transparent
}

    .award-table thead th {
        background: #f7f9fc;
        border-bottom: 1px solid #e5ebf2;
        color: #8090a2;
        font-size: 9px;
        font-weight: 650;
        padding: 12px 11px;
        white-space: nowrap
    }

    .award-table td {
        padding: 15px 11px;
        border-color: #edf1f6;
        color: #566d83;
        line-height: 1.5
    }

    .award-table small {
        display: block;
        font-size: 9px;
        color: #8f9dac;
        margin-top: 4px
    }

    .award-table .table-title {
        font-size: 12px;
        font-weight: 650
    }

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 44px;
    background: #157347;
    color: #fff;
    padding: 10px 18px;
    border: 1px solid #157347;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    white-space: nowrap
}

    .table-action:hover, .table-action:focus-visible {
        background: #115c39;
        border-color: #115c39;
        color: #fff
    }

    .table-action:active {
        background: #0e4c2f;
        border-color: #0e4c2f;
        color: #fff
    }

.table-responsive {
    border-radius: 9px
}

.empty-cell {
    text-align: center;
    padding: 35px !important;
    color: #8a9bad !important
}

.page-footer {
    font-size: 10px;
    color: #9aa6b3;
    margin: 28px 0 4px
}

    .page-footer span {
        float: right
    }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    padding: 20px;
    margin-bottom: 20px
}

    .filter-bar > div {
        flex: 1;
        min-width: 150px
    }

    .filter-bar label {
        font-size: 10px;
        color: #6b8095
    }

    .filter-bar > a {
        font-size: 11px;
        padding: 11px 0
    }

.form-control, .form-select {
    font-size: 12px;
    border-color: #cfdae5;
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 40px;
    color: #243f59
}

    .form-control:focus, .form-select:focus {
        border-color: #73a2c6;
        box-shadow: 0 0 0 3px #3980ac14
    }

    .form-control[readonly] {
        background: #f6f9fc;
        color: #567085
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.span-two {
    grid-column: span 2
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 22px
}

.align-end {
    align-self: end
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 14px
}

    .inline-form .form-select {
        max-width: 430px
    }

.application-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 26px;
    margin-bottom: 19px
}

.identity-icon {
    background: linear-gradient(130deg,#e9f2fa,#e3f4ef);
    height: 56px;
    width: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #2b7d88;
    font-size: 28px
}

.application-identity h2 {
    font-size: 23px;
    margin-bottom: 5px
}

.application-identity p {
    font-size: 12px;
    color: #7a8b9c;
    margin-bottom: 5px
}

.application-identity small {
    font-size: 10px;
    color: #91a0af
}

.identity-state {
    margin-left: auto;
    text-align: right
}

    .identity-state small {
        display: block;
        max-width: 300px;
        margin-top: 9px
    }

.flowbar {
    overflow: auto;
    padding: 20px;
    margin-bottom: 18px
}

.workflow-steps {
    display: flex;
    min-width: 1120px;
    gap: 3px
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative
}

    .workflow-step:not(:last-child):after {
        content: "→";
        position: absolute;
        right: -6px;
        top: 8px;
        color: #afbcc8
    }

    .workflow-step > span {
        display: grid;
        place-items: center;
        background: #f0f4f8;
        border: 1px solid #dfe7ed;
        color: #8b9cad;
        height: 34px;
        width: 34px;
        border-radius: 10px;
        font-weight: 700;
        margin: 0 auto 9px
    }

    .workflow-step small {
        display: block;
        font-size: 9px;
        color: #8192a2;
        max-width: 95px;
        margin: auto;
        line-height: 1.4
    }

    .workflow-step.done > span {
        background: #e6f5ee;
        border-color: #b9dfce;
        color: #16835d
    }

    .workflow-step.current > span {
        background: #155fa0;
        border-color: #155fa0;
        color: #fff
    }

    .workflow-step.current small {
        font-weight: 700;
        color: #155fa0
    }

.info-strip {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #d4e4f0;
    border-left: 4px solid #2d79af;
    background: #eef6fc;
    color: #4a7392;
    padding: 14px 17px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 11px
}

    .info-strip.success {
        border-color: #c4e3d8;
        border-left-color: #219977;
        background: #eef8f3;
        color: #34836c
    }

.profile-summary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

    .profile-summary span {
        display: block;
        color: #96a3af;
        font-size: 10px;
        margin-bottom: 7px
    }

    .profile-summary strong {
        display: block;
        color: #415a70;
        font-size: 13px
    }

.eligibility-strip {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: #f5faf8;
    border: 1px solid #d9eae2;
    border-radius: 12px
}

    .eligibility-strip > div > span {
        font-size: 9px;
        color: #699082;
        font-weight: 750;
        letter-spacing: 1px
    }

    .eligibility-strip strong {
        display: block;
        font-size: 26px;
        color: #157453;
        margin-top: 6px;
        font-weight: 700
    }

        .eligibility-strip strong small {
            font-size: 12px;
            font-weight: 400;
            color: #7ea08d
        }

.eligibility-track {
    flex: 1
}

    .eligibility-track > div {
        height: 9px;
        border-radius: 4px;
        background: #dfece5;
        overflow: hidden
    }

        .eligibility-track > div > span {
            height: 100%;
            display: block;
            background: #269c78
        }

    .eligibility-track small {
        display: block;
        color: #739480;
        margin-top: 8px;
        font-size: 10px
    }

.module-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.module-choice {
    display: flex;
    gap: 12px;
    border: 1px solid #dee7ef;
    padding: 17px;
    border-radius: 12px;
    align-items: center
}

    .module-choice h3 {
        font-size: 13px;
        margin: 0 0 5px
    }

    .module-choice p {
        font-size: 10px;
        color: #8b9aa9;
        margin: 0 0 6px
    }

    .module-choice small {
        font-size: 9px;
        color: #5c89a8
    }

    .module-choice form {
        margin-left: auto
    }

.assignment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

    .assignment-cards > a {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 11px
    }

    .assignment-cards strong {
        display: block;
        font-size: 13px
    }

    .assignment-cards small {
        display: block;
        font-size: 10px;
        color: #8e9bac;
        margin-top: 7px
    }

    .assignment-cards > a > span:last-child {
        margin-left: auto
    }

.assessment-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 29px 0 17px
}

    .assessment-intro h2 {
        font-size: 21px;
        margin-bottom: 7px
    }

    .assessment-intro p {
        font-size: 11px;
        color: #8a9bad;
        margin: 0
    }

    .assessment-intro input {
        min-width: 280px
    }

.assessment-totals {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 24px
}

.assessment-total {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 10px;
    color: #557189
}

    .assessment-total > span {
        display: block;
        font-size: 8px;
        min-height: 28px
    }

    .assessment-total strong {
        font-size: 21px;
        display: block;
        color: #275775;
        margin: 5px 0
    }

        .assessment-total strong small {
            font-size: 10px;
            font-weight: 400
        }

    .assessment-total > small {
        font-size: 8px;
        color: #94a3ae
    }

    .assessment-total.current {
        background: #edf6fd;
        border-color: #8ebbdc
    }

.question-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
    scroll-margin-top: 95px
}

.question-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 15px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid #e2eaf1
}

.qno {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    border-radius: 9px;
    font-weight: 750
}

.question-head strong {
    font-size: 11px;
    display: block
}

.question-head small {
    display: block;
    font-size: 10px;
    color: #8a9bac;
    margin-top: 4px
}

.qmax {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #27709f
}

.question-body {
    padding: 23px
}

.question-text {
    white-space: pre-line;
    font-size: 16px;
    font-weight: 550;
    line-height: 1.9;
    margin-bottom: 20px
}

.unattempted {
    font-size: 11px;
    color: #96a4b3;
    padding: 14px;
    background: #f9fbfd;
    border-radius: 8px;
    margin-bottom: 15px
}

.observation-history {
    border: 1px solid #dce6ee;
    border-radius: 11px;
    margin-bottom: 20px;
    overflow: hidden
}

.history-heading {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #7a90a3;
    background: #f2f6fa;
    padding: 10px 13px
}

.history-entry {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 16px;
    border-top: 1px solid #e6edf3
}

.history-meta strong {
    display: block;
    font-size: 13px;
    color: #17765a;
    margin-top: 10px
}

.history-meta small {
    display: block;
    font-size: 9px;
    color: #8799aa;
    line-height: 1.6;
    margin-top: 8px
}

.history-response > b {
    font-size: 13px;
    white-space: pre-line;
    font-weight: 600
}

.history-response > p {
    font-size: 12px;
    white-space: pre-line;
    color: #748a9e;
    margin: 8px 0 10px
}

.evidence-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.evidence-file {
    display: flex;
    gap: 9px;
    align-items: center;
    border: 1px solid #dfe9f1;
    border-radius: 8px;
    padding: 8px;
    max-width: 270px;
    background: #fff
}

    .evidence-file img {
        height: 41px;
        width: 49px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #ebeff5
    }

    .evidence-file b {
        display: block;
        font-size: 10px;
        color: #46677f;
        max-width: 165px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    .evidence-file small {
        display: block;
        font-size: 8px;
        color: #9ba9b7;
        margin-top: 4px
    }

.file-symbol {
    height: 41px;
    width: 39px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
    display: grid;
    place-items: center
}

    .file-symbol.pdf {
        background: #fff0ef;
        color: #ba6157
    }

    .file-symbol.office {
        background: #e9f5f0;
        color: #318269
    }

.response-form {
    border: 1px solid #bcd5e8;
    background: #f6faff;
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 20px
}

.editor-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px
}

    .editor-heading strong {
        font-size: 12px;
        color: #296b99
    }

    .editor-heading span {
        font-size: 9px;
        color: #8fa4b7
    }

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px
}

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px;
    background: #fff;
    border: 1px solid #d5e2ed;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    cursor: pointer
}

    .option-card:has(input:checked) {
        background: #eaf5ff;
        border-color: #699ec8
    }

    .option-card input {
        margin-top: 6px;
        accent-color: #155fa0
    }

.option-letter {
    background: #edf3f8;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 9px;
    color: #4d7897;
    font-weight: 750;
    flex-shrink: 0
}

.editor-bottom {
    display: grid;
    grid-template-columns: 1fr 175px;
    gap: 14px;
    margin-top: 16px
}

    .editor-bottom label {
        font-size: 10px;
        color: #708da5
    }

.marks-editor {
    background: #eef8f2;
    border: 1px solid #d3e7dc;
    padding: 12px;
    border-radius: 9px
}

    .marks-editor input {
        border: 0;
        border-bottom: 1px solid #b3d6c0;
        border-radius: 0;
        background: transparent !important;
        color: #247a54;
        font-size: 24px;
        font-weight: 700;
        padding: 3px 0
    }

    .marks-editor small {
        font-size: 9px;
        color: #789d87;
        margin-top: 7px;
        display: block
    }

.evidence-upload {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dce8f3
}

    .evidence-upload > div {
        flex: 1
    }

    .evidence-upload label {
        display: block;
        font-size: 11px
    }

    .evidence-upload small {
        display: block;
        font-size: 9px;
        color: #8ba0b2;
        margin-bottom: 8px
    }

    .evidence-upload input {
        font-size: 10px;
        background: white
    }

.required {
    color: #b64536
}

.question-guidance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

    .question-guidance > div {
        background: #f6f8fb;
        border: 1px solid #e6ebf1;
        padding: 13px;
        border-radius: 9px
    }

    .question-guidance span {
        font-size: 8px;
        letter-spacing: .8px;
        color: #8499ac;
        font-weight: 750
    }

    .question-guidance p {
        white-space: pre-line;
        font-size: 11px;
        line-height: 1.7;
        color: #697f94;
        margin: 8px 0 0
    }

.source-note {
    margin-top: 12px;
    font-size: 10px;
    color: #9d7c45;
    background: #fffaf0;
    border: 1px solid #f1e7d2;
    border-radius: 8px;
    padding: 10px
}

    .source-note p {
        margin: 8px 0 0;
        white-space: pre-line
    }

    .source-note summary {
        cursor: pointer;
        font-weight: 600
    }

.ratio-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

.ratio-result {
    border: 1px solid #bedfcf;
    border-radius: 9px;
    background: #eefaf4;
    padding: 10px 14px
}

    .ratio-result strong {
        display: block;
        color: #17845c;
        font-size: 24px
    }

    .ratio-result small {
        font-size: 9px;
        color: #79a28e
    }

.timeline {
    list-style: none;
    padding: 0 0 0 10px;
    margin: 0
}

    .timeline li {
        border-left: 2px solid #d7e6ef;
        position: relative;
        padding: 0 0 23px 23px;
        margin-left: 5px
    }

        .timeline li:last-child {
            padding-bottom: 0
        }

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 2px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #4d97a1;
    border: 2px solid #e1f0f2
}

.timeline strong {
    font-size: 12px;
    display: block
}

.timeline small {
    display: block;
    font-size: 10px;
    color: #8fa1b1;
    margin-top: 7px
}

.timeline p {
    margin: 9px 0 0;
    font-size: 12px;
    color: #7b8fa1
}

.submit-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 26px;
    background: linear-gradient(120deg,#fff,#f2faf7)
}

    .submit-panel p {
        font-size: 12px;
        color: #7f96a6
    }

.scheduled-event {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 185px
}

    .scheduled-event > span {
        display: grid;
        place-items: center;
        background: #edf4f9;
        color: #5f8baa;
        border-radius: 8px;
        font-size: 10px;
        width: 30px;
        height: 30px;
        flex-shrink: 0
    }

.schedule-table input {
    font-size: 11px;
    min-width: 175px
}

.schedule-table .pill {
    white-space: nowrap
}

.library-table {
    table-layout: fixed;
    min-width: 950px
}

    .library-table th:nth-child(1) {
        width: 16%
    }

    .library-table th:nth-child(2) {
        width: 34%
    }

    .library-table th:nth-child(3) {
        width: 5%
    }

    .library-table th:nth-child(4) {
        width: 29%
    }

    .library-table th:nth-child(5) {
        width: 16%
    }

    .library-table td {
        font-size: 12px;
        vertical-align: top
    }

    .library-table small {
        overflow-wrap: anywhere
    }

.preserve-lines {
    white-space: pre-line
}

.audit-detail {
    max-width: 460px;
    overflow-wrap: anywhere
}

    .audit-detail pre {
        font-size: 10px;
        white-space: pre-wrap;
        max-width: 420px
    }

.start-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px
}

    .start-card p {
        font-size: 12px;
        color: #8497a9;
        margin: 0
    }

.large-icon {
    font-size: 32px;
    color: #219f7e
}

.start-card form {
    margin-left: auto
}

.notice {
    position: fixed;
    bottom: 25px;
    right: 25px;
    max-width: 480px;
    background: #153e62;
    color: white;
    padding: 15px 22px;
    border-radius: 10px;
    box-shadow: 0 5px 25px #0002;
    z-index: 100;
    display: none;
    font-size: 13px
}

    .notice.error {
        background: #a44235
    }

    .notice.visible {
        display: block
    }

.print-only {
    display: none !important
}

.login-wrap {
    max-width: 1090px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    margin: 65px auto;
    border: 1px solid #dde6ee;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 80px #193c6c0c
}

.login-art {
    background: linear-gradient(135deg,#143f77,#176794 65%,#0e7873);
    padding: 45px;
    color: white
}

    .login-art h1 {
        font-size: 31px;
        font-weight: 550;
        line-height: 1.65;
        margin: 26px 0 20px;
        letter-spacing: 0
    }

        .login-art h1 em {
            font-style: normal;
            color: #b1e8d2
        }

    .login-art > p {
        font-size: 12px;
        color: #bbd4e2;
        line-height: 1.9;
        max-width: 380px
    }

.login-stats {
    display: flex;
    gap: 31px;
    margin-top: 29px;
    padding: 22px 0;
    border-top: 1px solid #ffffff20;
    border-bottom: 1px solid #ffffff20
}

    .login-stats strong {
        display: block;
        font-size: 25px;
        font-weight: 600
    }

    .login-stats span {
        display: block;
        font-size: 9px;
        color: #9fc2d4;
        margin-top: 8px
    }

.journey-art {
    width: 100%;
    margin-top: 27px
}

.login-trust {
    font-size: 9px;
    color: #add3dd
}

    .login-trust span {
        margin-left: 17px
    }

.login-form {
    padding: 49px 43px;
    background: #fff
}

.login-symbol {
    height: 43px;
    width: 43px;
    background: #edf6fa;
    color: #3585a7;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 25px
}

.login-form h2 {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 12px
}

.login-form .muted {
    font-size: 12px
}

.login-form .form-label {
    font-size: 11px
}

.login-form input {
    height: 47px
}

.access-note {
    border-top: 1px solid #e5edf2;
    margin-top: 32px;
    padding-top: 24px
}

    .access-note strong {
        font-size: 11px
    }

    .access-note p {
        font-size: 10px;
        color: #8a9bab;
        margin: 10px 0 13px;
        line-height: 1.9
    }

    .access-note small {
        font-size: 9px;
        color: #a2afbb
    }

.pdf-export .no-export {
    display: none !important
}

.pdf-export .print-only {
    display: block !important
}

.pdf-export .table-responsive {
    overflow: visible
}

.pdf-export details > p {
    display: block
}

.pdf-export .flowbar {
    overflow: visible
}

.pdf-export .workflow-steps {
    min-width: 0
}

.pdf-export .question-card {
    break-inside: avoid
}

.pdf-export h1 {
    font-size: 24px
}

.pdf-export .page-heading {
    margin-top: 0
}

@media(min-width:1700px) {
    .workspace {
        padding-left: 42px;
        padding-right: 42px
    }

    .stage-bar {
        font-size: 12px
    }

    .module-mini-grid b {
        font-size: 13px
    }
}

@media(max-width:1200px) {
    .sidebar {
        width: 190px
    }

    .workspace {
        margin-left: 190px;
        padding-left: 20px;
        padding-right: 20px
    }

    .topbar > div > strong {
        font-size: 14px
    }

    .user-chip {
        max-width: 220px
    }

    .metrics-grid {
        gap: 12px
    }

    .metric-card {
        padding: 15px
    }

    .dashboard-grid, .dashboard-grid.lower {
        grid-template-columns: 1.3fr 1fr
    }

    .chart-card {
        padding: 19px
    }

    .stage-bar {
        grid-template-columns: 155px 1fr 15px 8px;
        gap: 8px
    }

    .assessment-totals {
        grid-template-columns: repeat(4,1fr)
    }

    .form-grid {
        grid-template-columns: 1fr 1fr
    }

    .module-choice-grid {
        grid-template-columns: 1fr
    }

    .question-text {
        font-size: 15px
    }

    .export-actions {
        gap: 5px
    }

        .export-actions .btn {
            padding: 8px;
            font-size: 10px
        }
}

@media(max-width:960px) {
    .sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        overflow: auto;
        padding: 8px 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .nav-label, .sidebar-note {
        display: none
    }

    .nav-item {
        white-space: nowrap;
        padding: 9px 13px;
        margin: 0;
        font-size: 11px
    }

        .nav-item > span {
            font-size: 15px
        }

        .nav-item i {
            display: none
        }

    .workspace {
        margin-left: 0;
        padding: 0 20px 20px
    }

    .topbar {
        position: relative;
        padding: 0 20px
    }

    .user-chip small {
        display: none
    }

    .dashboard-grid, .dashboard-grid.lower {
        grid-template-columns: 1.3fr 1fr
    }

    .overview-banner {
        padding: 24px
    }

        .overview-banner h2 {
            font-size: 20px
        }

    .page-heading {
        gap: 10px
    }

    .login-wrap {
        margin: 35px 20px
    }

    .login-art {
        padding: 33px
    }

    .login-form {
        padding: 38px 30px
    }

    .topbar > div > strong {
        font-size: 13px
    }

    .topbar > div > small {
        font-size: 9px
    }
}

@media(max-width:700px) {
    .topbar {
        height: auto;
        min-height: 76px;
        padding: 13px 15px;
        gap: 10px;
        flex-wrap: wrap
    }

        .topbar > div > strong {
            font-size: 12px
        }

        .topbar > div > small {
            max-width: 230px;
            font-size: 8px
        }

    .brand {
        width: 46px;
        height: 46px;
        flex-shrink: 0
    }

    .user-chip {
        margin-left: 0;
        font-size: 10px
    }

        .user-chip .user-avatar {
            display: none
        }

        .user-chip b {
            font-size: 10px
        }

    .top-button {
        padding: 5px 8px;
        font-size: 9px
    }

    .topbar form {
        margin-left: auto
    }

    .sidebar {
        padding: 6px
    }

    .nav-item {
        font-size: 10px;
        gap: 5px
    }

    .workspace {
        padding: 0 12px 20px
    }

    .workspace-top {
        height: auto;
        min-height: 67px;
        gap: 9px;
        flex-wrap: wrap;
        padding: 12px 0
    }

        .workspace-top > span {
            font-size: 10px
        }

    .cycle-picker {
        width: 100%
    }

        .cycle-picker select {
            flex: 1;
            max-width: 100%
        }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 13px;
        gap: 15px
    }

        .page-heading h1 {
            font-size: 25px
        }

        .page-heading p {
            font-size: 11px
        }

    .export-actions {
        align-self: flex-end
    }

    .overview-banner {
        padding: 23px 19px;
        align-items: flex-start;
        flex-direction: column;
        gap: 17px
    }

        .overview-banner h2 {
            font-size: 22px;
            line-height: 1.45
        }

        .overview-banner p {
            font-size: 10px
        }

    .metrics-grid, .metrics-grid.three {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .metric-card {
        padding: 15px
    }

    .metric-top {
        font-size: 10px;
        gap: 7px
    }

    .metric-card > strong {
        font-size: 29px
    }

    .metric-icon {
        width: 26px;
        height: 26px;
        font-size: 15px
    }

    .metric-card > small {
        font-size: 9px;
        line-height: 1.5
    }

    .dashboard-grid, .dashboard-grid.lower {
        grid-template-columns: 1fr
    }

    .chart-card {
        padding: 18px
    }

    .section-heading h2 {
        font-size: 15px
    }

    .stage-bar {
        grid-template-columns: 177px 1fr 18px 9px;
        gap: 9px;
        font-size: 10px
    }

    .module-mini-grid {
        gap: 4px 14px
    }

        .module-mini-grid b {
            font-size: 10px
        }

        .module-mini-grid small {
            font-size: 8px
        }

    .module-number {
        height: 26px;
        min-width: 26px;
        font-size: 9px
    }

    .team-summary {
        padding-bottom: 5px
    }

    .filter-bar {
        padding: 15px;
        gap: 12px
    }

        .filter-bar > div {
            min-width: 135px
        }

    .application-identity {
        flex-wrap: wrap;
        padding: 19px;
        gap: 12px
    }

        .application-identity h2 {
            font-size: 21px
        }

    .identity-state {
        margin-left: 0;
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid #e8eef4
    }

    .info-strip {
        align-items: flex-start;
        flex-wrap: wrap;
        font-size: 10px;
        gap: 7px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .span-two {
        grid-column: span 1
    }

    .profile-summary {
        grid-template-columns: 1fr 1fr;
        gap: 16px
    }

    .eligibility-strip {
        gap: 15px;
        flex-wrap: wrap;
        padding: 17px
    }

    .eligibility-track {
        min-width: 140px
    }

    .module-choice {
        padding: 14px
    }

        .module-choice h3 {
            font-size: 12px
        }

        .module-choice p {
            font-size: 9px
        }

    .assignment-cards {
        grid-template-columns: 1fr
    }

    .assessment-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

        .assessment-intro h2 {
            font-size: 19px
        }

        .assessment-intro > div:last-child {
            width: 100%
        }

        .assessment-intro input {
            min-width: 0
        }

    .assessment-totals {
        grid-template-columns: repeat(3,1fr)
    }

    .assessment-total {
        padding: 11px 8px
    }

    .question-head {
        padding: 13px;
        gap: 10px
    }

        .question-head strong {
            font-size: 10px
        }

    .question-body {
        padding: 15px
    }

    .question-text {
        font-size: 15px;
        line-height: 1.9
    }

    .history-entry {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 13px
    }

    .history-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px
    }

        .history-meta strong {
            margin: 0;
            font-size: 12px
        }

        .history-meta small {
            margin: 0;
            width: 100%
        }

    .response-form {
        padding: 13px
    }

    .editor-heading {
        gap: 8px;
        align-items: flex-start;
        flex-direction: column
    }

    .option-grid {
        grid-template-columns: 1fr
    }

    .editor-bottom {
        grid-template-columns: 1fr
    }

    .marks-editor {
        max-width: 210px
    }

    .evidence-upload {
        flex-direction: column;
        align-items: stretch;
        gap: 13px
    }

    .question-guidance {
        grid-template-columns: 1fr
    }

    .ratio-grid {
        grid-template-columns: 1fr
    }

    .submit-panel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px
    }

    .inline-form {
        flex-wrap: wrap
    }

        .inline-form .form-select {
            width: 100%
        }

    .page-footer {
        font-size: 9px;
        line-height: 1.7
    }

        .page-footer span {
            float: none;
            display: block
        }

    .login-wrap {
        grid-template-columns: 1fr;
        margin: 20px 13px
    }

    .login-art {
        padding: 29px
    }

        .login-art h1 {
            font-size: 27px;
            margin: 15px 0
        }

        .login-art > p {
            font-size: 11px
        }

    .login-stats {
        padding: 16px 0;
        margin-top: 20px
    }

    .journey-art, .login-trust {
        display: none
    }

    .login-form {
        padding: 31px
    }

        .login-form h2 {
            font-size: 25px
        }

    .notice {
        bottom: 15px;
        left: 15px;
        right: 15px;
        font-size: 12px
    }

    .start-card {
        flex-wrap: wrap;
        padding: 20px
    }

        .start-card form {
            margin-left: 0
        }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm
    }

    body {
        background: white;
        font-size: 11px
    }

    .no-export, .topbar, .sidebar, .workspace-top, .page-footer, .notice {
        display: none !important
    }

    .workspace {
        margin: 0;
        padding: 0;
        max-width: none
    }

    .print-only {
        display: block !important
    }

    .cardx, .question-card {
        box-shadow: none
    }

    .overview-banner {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact
    }

    .metrics-grid {
        grid-template-columns: repeat(4,1fr)
    }

    .dashboard-grid, .dashboard-grid.lower {
        grid-template-columns: 1fr
    }

    .chart-card {
        padding: 16px
    }

    .table-responsive {
        overflow: visible
    }

    .award-table {
        font-size: 9px
    }

        .award-table th, .award-table td {
            padding: 8px
        }

        .award-table thead {
            display: table-header-group
        }

    .flowbar {
        display: none
    }

    .question-head {
        break-after: avoid
    }

    .history-entry, .question-guidance, .metric-card, .timeline li, tr {
        break-inside: avoid
    }

    .question-body {
        padding: 15px
    }

    .question-text {
        font-size: 13px
    }

    .source-note {
        display: block
    }

    .form-grid {
        grid-template-columns: 1fr 1fr 1fr
    }

    .page-heading {
        display: block
    }

    .library-table {
        min-width: 0
    }

        .library-table td {
            font-size: 9px
        }

        .library-table th {
            white-space: normal
        }

    .assessment-totals {
        grid-template-columns: repeat(4,1fr)
    }

    .profile-summary {
        grid-template-columns: repeat(3,1fr)
    }

    a {
        color: inherit
    }

    .pill, .question-head {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact
    }
}

/* Panchayat preparation follows the four source-document steps. */
.gp-step-nav {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    padding: 12px;
    margin: 20px 0
}

.gp-step-link {
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f5f8fc;
    color: var(--ink);
    text-align: left;
    padding: 14px;
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 9px;
    align-items: center
}

    .gp-step-link > span {
        grid-row: span 2;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #e0eaf5;
        color: var(--blue);
        font-weight: 750
    }

    .gp-step-link strong {
        font-size: 12px
    }

    .gp-step-link small {
        font-size: 10px;
        color: var(--muted);
        margin-top: 4px
    }

    .gp-step-link.active {
        background: #e8f5f3;
        border-color: #77b7ac
    }

        .gp-step-link.active > span {
            background: var(--teal);
            color: white
        }

    .gp-step-link:disabled {
        opacity: .5;
        cursor: not-allowed
    }

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px
}

.application-step, .question-card {
    scroll-margin-top: 100px
}

    .application-step[hidden] {
        display: none !important
    }

@media(max-width:700px) {
    .gp-step-nav {
        grid-template-columns: 1fr 1fr;
        padding: 8px;
        gap: 6px
    }

    .gp-step-link {
        padding: 11px 8px;
        grid-template-columns: 25px 1fr;
        column-gap: 7px
    }

        .gp-step-link strong {
            font-size: 10px
        }

        .gp-step-link > span {
            width: 24px;
            height: 24px
        }

    .step-actions {
        flex-wrap: wrap
    }

    .application-step, .question-card {
        scroll-margin-top: 15px
    }
}

@media print {
    .application-step[hidden] {
        display: block !important
    }
}

/* Show local selection immediately; saved evidence remains in the chronology. */
.attachment-status {
    font-size: 12px;
    color: var(--blue);
    margin-top: 10px;
    line-height: 1.6
}

.attachment-previews {
    display: grid;
    gap: 9px;
    margin-top: 10px
}

.attachment-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #b9d9d4;
    border-radius: 10px;
    background: #f1faf8;
    min-width: 0
}

    .attachment-preview > img, .attachment-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 7px;
        object-fit: cover;
        background: #e4edf7
    }

.attachment-icon {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800
}

.attachment-info {
    flex: 1;
    min-width: 0
}

    .attachment-info strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: 12px
    }

    .attachment-info small {
        display: block;
        margin-top: 4px;
        font-size: 11px;
        color: var(--teal)
    }

.attachment-remove {
    border: 1px solid #cbd9e5;
    background: white;
    color: #52687e;
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 11px
}

.attachment-preview.invalid {
    background: #fff2ef;
    border-color: #e2aca1
}

.attachment-errors, .upload-failed {
    color: #a13327;
    font-size: 12px;
    line-height: 1.6
}

    .attachment-errors:not(:empty) {
        margin-top: 9px
    }

.evidence-saved {
    color: var(--green);
    font-weight: 700
}

.attachment-status.uploading:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #bfd5e9;
    border-top-color: var(--teal);
    border-radius: 50%;
    vertical-align: middle;
    animation: attachment-spin .8s linear infinite
}

@keyframes attachment-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:700px) {
    .attachment-preview {
        gap: 8px;
        padding: 10px
    }

        .attachment-preview > img, .attachment-icon {
            width: 44px;
            height: 44px
        }

    .attachment-remove {
        padding: 6px;
        font-size: 10px
    }
}

.language-picker {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

    .language-picker label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%)
    }

    .language-picker select {
        background: #fff;
        color: #173a5e;
        border: 1px solid #dce5ee;
        border-radius: 7px;
        padding: 6px;
        max-width: 95px
    }

    .language-picker ~ .user-chip {
        margin-left: 12px
    }

.annual-context {
    flex-wrap: wrap
}

.choose-evidence {
    display: inline-block;
    margin-top: 8px
}

.evidence-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    overflow: hidden
}

.choose-evidence:has(+input:focus-visible) {
    outline: 2px solid #155fa0;
    outline-offset: 3px
}

html[lang=hi] .topbar > div > strong {
    font-size: 16px
}

html[lang=hi] .nav-item {
    line-height: 1.5
}

html[lang=hi] .stage-bar {
    line-height: 1.6
}

html[lang=hi] .qmax {
    white-space: nowrap
}

@media(max-width:1100px) {
    .topbar {
        flex-wrap: wrap;
        height: auto;
        min-height: 76px
    }

    .language-picker ~ .user-chip {
        margin-left: 0
    }

    .language-picker {
        margin-left: auto
    }
}

@media(max-width:680px) {
    .topbar {
        gap: 8px;
        padding: 10px 12px
    }

        .topbar > div:not(.user-chip) {
            max-width: calc(100% - 62px)
        }

    .language-picker {
        order: 3;
        margin-left: 0
    }

    .user-chip {
        order: 4
    }

    .topbar > form:not(.language-picker) {
        order: 5
    }

    .language-picker select {
        padding: 4px
    }

    .topbar > div > strong, html[lang=hi] .topbar > div > strong {
        font-size: 12px
    }

    .cycle-picker select {
        min-width: 0
    }

    .language-picker .top-button {
        font-size: 11px
    }

    .stage-bar {
        grid-template-columns: minmax(130px,1.7fr) minmax(20px,1fr) 18px 9px
    }

    .annual-context span {
        line-height: 1.8
    }
}

/* Shared typography for every role, both languages, mobile and exported pages. */
h1, h2, h3, h4, h5, h6, [role="heading"], .topbar > div > strong,
.question-head strong, .editor-heading strong, .history-heading,
.question-guidance span, .gp-step-link strong, .award-table thead th {
    font-size: 16px !important;
    color: #000 !important;
    letter-spacing: normal;
    line-height: 1.5;
}

    h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
        color: inherit !important;
        font-size: inherit !important;
    }

input::placeholder, textarea::placeholder {
    color: #000 !important;
    font-size: 12px !important;
    opacity: 1 !important;
}

.question-text, .library-table tbody td:nth-child(2) {
    font-size: 14px !important;
}

.award-table thead th {
    white-space: normal;
}
/* Keep black headings readable on the existing dark brand panels. */
.topbar > div > strong, .login-art h1, .overview-banner h2 {
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    width: fit-content;
    max-width: 100%;
}

.topbar {
    height: auto;
    min-height: 78px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Supporting copy must remain legible on the portal's light surfaces. */
:root {
    --muted: #000;
    --bs-secondary-color: #000;
    --bs-secondary-color-rgb: 0,0,0;
}

.muted, .text-muted, .text-secondary, .text-body-secondary, .unattempted,
.workspace p, .login-form p, .login-form small, .sidebar-note p, .sidebar-note small,
.nav-label, .nav-item, .cycle-picker label, .workspace-top, .page-footer,
.metric-top, .metric-card > span, .metric-card > small, .section-heading p,
.stage-bar, .stage-label, .stage-label i, .legend-row, .module-mini-grid small,
.team-summary small, .empty-state, .empty-cell, .award-table td, .award-table small,
.filter-bar label, .form-control[readonly], .application-identity small,
.workflow-step small, .info-strip, .profile-summary span, .eligibility-strip > div > span,
.eligibility-strip strong small, .eligibility-track small, .module-choice small,
.assignment-cards small, .assessment-total > span, .assessment-total > small,
.question-head small, .qmax, .history-meta small, .evidence-file small,
.editor-heading > span, .editor-bottom label, .marks-editor small, .evidence-upload small,
.question-guidance p, .source-note, .ratio-result small, .timeline small,
.access-note p, .access-note small, .gp-step-link small, .attachment-status,
.attachment-info small, .attachment-errors, .evidence-saved, .pill {
    color: #000 !important;
    font-size: 12px !important;
    line-height: 1.7;
}
/* Question prompts and headings retain their requested sizes. */
.workspace .question-text, .library-table tbody td:nth-child(2) {
    font-size: 14px !important;
}

.gp-step-link:disabled {
    opacity: 1;
    background: #f1f3f5;
    border: 1px dashed #aeb8c2;
}
/* Dark panels use solid white copy rather than faint tinted text. */
.topbar small, .overview-banner p, .login-art > p, .login-stats span, .login-trust,
.eyebrow.light {
    color: #fff !important;
    font-size: 12px !important;
}

.donut-caption {
    fill: #000;
    font-size: 12px;
}

/* Mutually exclusive question views and an accessible draft-reset control. */
.question-readonly[hidden], .response-form[hidden] {
    display: none !important;
}

.question-prompt-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

    .question-prompt-row > .question-text {
        flex: 1;
        min-width: 0;
        margin: 0;
    }

.question-view-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

    .question-view-actions[hidden] {
        display: none !important;
    }

.editor-heading > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .editor-heading > div:first-child > span {
        color: #000;
        font-size: 12px;
    }

.question-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.question-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #8293a5;
    border-radius: 7px;
    background: #fff;
    color: #000;
    font-size: 24px;
    line-height: 1;
}

    .question-reset > span {
        font-size: 24px;
        color: #000;
        line-height: 1;
    }

    .question-reset:hover {
        background: #eaf2fb;
    }

    .question-reset:focus-visible {
        outline: 3px solid #155fa0;
        outline-offset: 2px;
    }

    .question-reset:disabled {
        cursor: wait;
    }

@media(max-width:600px) {
    .editor-heading {
        flex-wrap: wrap;
        gap: 10px;
    }

    .question-editor-actions {
        margin-left: auto;
    }
}

@media print {
    .question-readonly[hidden] {
        display: block !important;
    }
}

/* Stage reports retain a readable geography column while scrolling stages. */
.summary-table {
    min-width: 1600px;
}

    .summary-table thead th {
        min-width: 110px;
        vertical-align: top;
    }

    .summary-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 190px;
        background: #fff;
        color: #000;
        font-size: 12px;
    }

    .summary-table thead th:first-child {
        z-index: 2;
    }

    .summary-table .summary-district-name {
        padding-left: 28px;
        font-weight: 500;
    }

    .summary-table .summary-division > * {
        background: #eaf2fb;
        font-weight: 700;
    }

    .summary-table .summary-total > * {
        background: #e7f6f3;
        font-weight: 700;
        border-top: 2px solid #54736d;
    }

    .summary-table th small {
        display: block;
        color: #000;
        font-weight: 400;
    }

.summary-count {
    display: inline-flex;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
    font-weight: 700;
}

.summary-zero {
    color: #000;
    font-weight: 400;
}

.summary-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #000;
}

.summary-scroll:focus-visible {
    outline: 3px solid #155fa0;
    outline-offset: 3px;
}

@media print {
    .summary-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

        .summary-table thead th, .summary-table th:first-child {
            position: static;
            min-width: 0;
            overflow-wrap: anywhere;
        }

    .summary-count {
        min-width: 0;
    }

    .summary-scroll {
        overflow: visible;
    }
}

.pdf-export .summary-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

    .pdf-export .summary-table thead th, .pdf-export .summary-table th:first-child {
        position: static;
        min-width: 0;
        overflow-wrap: anywhere;
    }

.pdf-export .summary-count {
    min-width: 0;
}

.pdf-export .summary-scroll {
    overflow: visible;
}

/* Full-width report in Recent applications: fixed headers within its own viewport. */
.application-summary > .table-responsive {
    max-height: 560px;
    max-height: min(65vh,560px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.application-summary .award-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .application-summary .award-table thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #edf3fa;
        color: #000;
        box-shadow: 0 1px 0 #c6d4e3;
    }

    .application-summary .award-table tbody td, .application-summary .award-table tbody th {
        padding: 10px 12px;
        vertical-align: middle;
    }

.application-summary .summary-table {
    width: 100%;
    table-layout: fixed;
}

    .application-summary .summary-table th:first-child {
        width: 190px;
    }

    .application-summary .summary-table thead th:first-child {
        z-index: 4;
        background: #edf3fa;
    }

    .application-summary .summary-table tbody tr:nth-child(even) > * {
        background: #f8fafc;
    }

    .application-summary .summary-table tbody .summary-division > * {
        background: #eaf2fb;
        border-top: 1px solid #c6d4e3;
    }

    .application-summary .summary-table tbody .summary-total > * {
        background: #e7f6f3;
    }

    .application-summary .summary-table .summary-district-name {
        padding-left: 28px;
    }

    .application-summary .summary-table tbody tr:hover > * {
        background: #edf5ff;
    }

@media(max-width:600px) {
    .application-summary > .section-heading {
        flex-wrap: wrap;
        gap: 10px;
    }

    .application-summary > .table-responsive {
        max-height: 60vh;
    }
}

@media print {
    .application-summary > .table-responsive {
        max-height: none;
        overflow: visible;
        border-radius: 0;
    }

    .application-summary .award-table thead th {
        position: static;
    }

    .application-summary .summary-table th:first-child {
        width: auto;
    }
}

.pdf-export .application-summary > .table-responsive {
    max-height: none;
    overflow: visible;
    border-radius: 0;
}

.pdf-export .application-summary .award-table thead th {
    position: static;
}

.pdf-export .application-summary .summary-table th:first-child {
    width: auto;
}

/* Public navigation and award-portal switching on the sign-in page only. */
.public-navigation {
    position: relative;
    z-index: 25;
    background: #fff;
    border-bottom: 3px solid #eea33a;
    box-shadow: 0 3px 12px #123e780a;
}

.public-navigation-inner {
    max-width: 1280px;
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 60px;
}

.public-navigation a, .public-navigation button {
    color: #000;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}

    .public-navigation a:focus-visible, .public-navigation button:focus-visible, .award-portal-link:focus-visible {
        outline: 3px solid #155fa0;
        outline-offset: 3px;
    }

.public-home {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

    .public-home > span {
        font-size: 23px;
        line-height: 1;
    }

.public-menu {
    display: flex !important;
    align-items: center;
    gap: 20px;
    flex: 1;
}

    .public-menu > a, .public-menu > .dropdown > button {
        padding: 18px 0;
    }

    .public-menu > .dropdown > button {
        border: 0;
        background: transparent;
    }

        .public-navigation a:hover, .public-menu > .dropdown > button:hover {
            text-decoration: underline;
            text-underline-offset: 5px;
        }

.public-navigation .dropdown-menu {
    padding: 7px;
    min-width: 235px;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    box-shadow: 0 10px 24px #153e621a;
}

.public-navigation .dropdown-item {
    padding: 10px;
    border-radius: 6px;
    white-space: normal;
}

    .public-navigation .dropdown-item:hover, .public-navigation .dropdown-item:focus {
        background: #edf4fb;
        color: #000;
    }

.public-file-type {
    display: inline-block;
    padding: 1px 5px;
    margin-left: 5px;
    border: 1px solid #ccd6df;
    border-radius: 4px;
}

.public-login {
    background: #ffcf83;
    border: 1px solid #eab665;
    border-radius: 24px;
    padding: 9px 17px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.public-menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid #c4d2df;
    border-radius: 7px;
    padding: 8px 12px;
}

.award-portal-switcher {
    max-width: 1090px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.award-portal-label {
    font-size: 12px;
    font-weight: 650;
    color: #000;
}

.award-portal-links {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.award-portal-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border: 1px solid #c7d7e5;
    border-radius: 9px;
    color: #000;
    background: #fff;
    font-size: 12px;
    font-weight: 650;
}

    .award-portal-link:hover {
        color: #000;
        border-color: #155fa0;
        background: #edf4fb;
    }

    .award-portal-link.current {
        background: #e8f3f0;
        border-color: #458f80;
        box-shadow: inset 0 -2px 0 #0b766e;
    }

.current-portal-label {
    font-size: 12px;
    font-weight: 400;
    border-left: 1px solid #9cc3b9;
    padding-left: 9px;
}

.award-portal-link > span[aria-hidden] {
    font-size: 18px;
    line-height: 1;
}

.login-page .login-wrap {
    margin-top: 20px;
}

.login-form #login {
    scroll-margin-top: 110px;
}

@media(max-width:1150px) {
    .public-navigation-inner {
        gap: 14px;
        padding: 0 20px;
    }

    .public-menu {
        gap: 14px;
    }

    .public-questionnaire {
        max-width: 200px;
    }

    .award-portal-switcher {
        margin-left: 24px;
        margin-right: 24px;
    }

    .login-page .login-wrap {
        margin-left: 24px;
        margin-right: 24px;
    }
}

@media(max-width:950px) {
    .public-navigation-inner {
        flex-wrap: wrap;
        padding: 10px 20px;
        gap: 10px;
    }

    .public-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .public-login {
        margin-left: 0;
    }

    .public-menu {
        display: none !important;
        order: 4;
        flex-basis: 100%;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #dce5ee;
    }

        .public-menu.show, .public-menu.collapsing {
            display: flex !important;
            flex-direction: column;
        }

        .public-menu > a, .public-menu > .dropdown > button {
            display: block;
            width: 100%;
            padding: 12px;
            text-align: left;
        }

    .public-questionnaire {
        max-width: none;
    }

    .public-navigation .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin: 0 0 5px;
        box-shadow: none;
    }

    .award-portal-switcher {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media(max-width:600px) {
    .public-navigation-inner {
        padding: 10px 14px;
    }

    .award-portal-switcher {
        margin: 18px 13px 0;
    }

    .award-portal-links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .award-portal-link {
        padding: 10px;
        flex-wrap: wrap;
        align-content: center;
        gap: 5px;
        line-height: 1.6;
    }

    .current-portal-label {
        border-left: 0;
        padding-left: 0;
        flex-basis: 100%;
    }

    .login-page .login-wrap {
        margin-left: 13px;
        margin-right: 13px;
    }

    .login-form #login {
        scroll-margin-top: 20px;
    }
}

/* Public home/login palette matched to cmawards.upprd.in; workspace colors stay scoped separately. */
body.login-page {
    --home-navy: #0b2545;
    --home-saffron: #ff6b35;
    --home-gold: #f59e0b;
    background-color: #660644;
    background-image: linear-gradient(to right,#ffffff0b 1px,transparent 1px),linear-gradient(#ffffff0b 1px,transparent 1px),radial-gradient(circle at 80% 15%,#e87e3057,transparent 28%),radial-gradient(circle at 18% 82%,#11865b47,transparent 30%),linear-gradient(135deg,#8e3a10 0%,#660644 48%,#d0c63c 100%);
    background-size: 22px 22px,22px 22px,100% 100%,100% 100%,100% 100%;
    background-attachment: scroll;
}

.login-page .topbar {
    background: #fff;
    color: var(--home-navy);
    box-shadow: none;
    border-bottom: 1px solid #f1f5f9;
    padding-top: 14px;
}

    .login-page .topbar:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 4px;
        background: linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66%);
    }

    .login-page .topbar > div > strong {
        color: var(--home-navy) !important;
        background: transparent;
        padding: 0;
    }

    .login-page .topbar small {
        color: #b64d19 !important;
    }

.login-page .brand {
    background: #fff;
    border-color: #ead7a7;
    box-shadow: 0 3px 12px #0b25451a;
}

.login-page .top-button, .login-page .year-chip {
    background: #f4f6fa;
    color: var(--home-navy);
    border-color: #cbd5e1;
}

.login-page .language-picker select {
    border-color: #cbd5e1;
    color: var(--home-navy);
}

.login-page .public-navigation {
    background: var(--home-navy);
    border-bottom-color: var(--home-gold);
    box-shadow: 0 4px 15px #0b254526;
}

    .login-page .public-navigation a, .login-page .public-navigation button {
        color: #fff;
    }

    .login-page .public-navigation .dropdown-menu {
        background: #fff;
        border-color: #d8e0e9;
    }

    .login-page .public-navigation .dropdown-item {
        color: #000;
    }

        .login-page .public-navigation .dropdown-item:hover, .login-page .public-navigation .dropdown-item:focus {
            background: #fff0dc;
            color: #000;
        }

.login-page .public-menu-toggle {
    background: #ffffff12;
    border-color: #ffffff60;
}

.login-page .public-navigation .public-login, .login-page .login-form .btn-main {
    background: linear-gradient(90deg,var(--home-saffron),var(--home-gold));
    border-color: transparent;
    color: #111;
    box-shadow: 0 5px 16px #ff6b3526;
}

    .login-page .public-navigation .public-login:hover, .login-page .login-form .btn-main:hover {
        color: #000;
        filter: brightness(1.08);
    }

.login-page .public-navigation a:focus-visible, .login-page .public-navigation button:focus-visible, .login-page .award-portal-link:focus-visible {
    outline-color: #ffd166;
}

.login-page .award-portal-label {
    color: #fff;
}

.login-page .award-portal-link {
    background: #0b2545e6;
    color: #fff;
    border-color: #ffffff60;
}

    .login-page .award-portal-link:hover {
        background: var(--home-navy);
        border-color: #ffd166;
        color: #fff;
    }

    .login-page .award-portal-link.current {
        background: #fff3df;
        color: #000;
        border-color: #f59e0b;
        box-shadow: inset 0 -2px 0 #f59e0b;
    }

.login-page .current-portal-label {
    border-left-color: #d3a05a;
}

.login-page .login-wrap {
    background: #ffffff08;
    border-color: #ffffff40;
    box-shadow: 0 20px 70px #1e0b2733;
}

.login-page .login-art {
    background: #210b2d33;
}

    .login-page .login-art h1 {
        color: #fff !important;
        background: transparent;
        padding: 0;
    }

        .login-page .login-art h1 em {
            color: #ffd166 !important;
        }

    .login-page .login-art .eyebrow.light {
        color: #ffe0a3 !important;
    }

.login-page .login-stats {
    border-color: #ffffff45;
}

    .login-page .login-stats strong {
        color: #ffd166;
    }

.login-page .login-form {
    background: #fffdf9;
}

.login-page .login-symbol {
    background: #fff0dc;
    color: #9b440e;
}

.login-page .login-form .form-control {
    background: #fff;
    border-color: #cbd5e1;
    color: #000;
}

    .login-page .login-form .form-control:focus {
        border-color: #bc650d;
        box-shadow: 0 0 0 .2rem #f59e0b26;
    }

.login-page .access-note {
    border-top-color: #e8dccc;
}

@media(max-width:950px) {
    .login-page .public-menu {
        border-top-color: #ffffff35;
    }
}

@media print {
    body.login-page {
        background: #fff;
    }

    .login-page .login-art {
        background: #fff;
        color: #000;
    }

        .login-page .login-art h1, .login-page .login-art h1 em, .login-page .login-art p, .login-page .login-art .eyebrow.light, .login-page .login-stats strong, .login-page .login-stats span {
            color: #000 !important;
        }
}

/* Approved conditions pack short ranges together; longer explanations take half a row. */
.approved-rule-conditions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px 10px;
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    color: #000;
}

    .approved-rule-conditions > li {
        flex: 0 1 auto;
        min-width: 0;
        padding: 3px 7px;
        border: 1px solid #d7e2ec;
        border-radius: 5px;
        background: #fff;
        color: #000;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .approved-rule-conditions > .rule-long {
        flex: 1 1 calc(50% - 5px);
    }

.approved-rule-intro {
    margin: 4px 0 0;
}

@media(max-width:480px) {
    .approved-rule-conditions > .rule-long {
        flex-basis: 100%;
    }
}

/* Shared authenticated-page toolbar: breadcrumb, centered year, then exports. */
.workspace-top.portal-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(240px,390px) minmax(0,1fr);
    align-items: center;
    gap: 14px;
    height: auto;
    min-height: 76px;
    padding: 14px 0;
    color: #000;
}

.portal-toolbar > span {
    min-width: 0;
    line-height: 1.6;
}

.portal-toolbar .cycle-picker {
    justify-content: center;
    min-width: 0;
    width: 100%;
    gap: 8px;
}

    .portal-toolbar .cycle-picker label {
        flex-shrink: 0;
        color: #000;
    }

    .portal-toolbar .cycle-picker select {
        min-width: 0;
        width: 100%;
        max-width: 310px;
        color: #000;
    }

.portal-toolbar .export-actions {
    justify-self: end;
    align-self: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

    .portal-toolbar .export-actions .btn {
        color: #000;
        background: #fff;
        border: 1px solid #9aafc4;
        min-height: 38px;
    }

    .portal-toolbar .export-actions .btn-main {
        background: #e1f2e8;
        border-color: #6fa588;
    }

.portal-toolbar .cycle-picker {
    grid-column: 2;
}

.portal-toolbar .export-actions {
    grid-column: 3;
}

@media(max-width:1100px) {
    .workspace-top.portal-toolbar {
        grid-template-columns: minmax(0,1fr) minmax(220px,1.3fr);
    }

    .portal-toolbar .export-actions {
        grid-column: 1/-1;
    }
}

@media(max-width:600px) {
    .workspace-top.portal-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portal-toolbar .cycle-picker, .portal-toolbar .export-actions {
        grid-column: 1;
    }

    .portal-toolbar .export-actions {
        justify-self: end;
        flex-wrap: wrap;
    }
}

/* Keep the chronology compact without excluding handovers from exports. */
.submission-timeline.is-collapsed .timeline > li:nth-child(n+3) {
    display: none;
}

.submission-timeline.is-collapsed .timeline > li:nth-child(2) {
    padding-bottom: 0;
}

.timeline-toggle {
    margin-top: 14px;
    color: #000;
    background: #fff;
}

.pdf-export .submission-timeline.is-collapsed .timeline > li {
    display: list-item;
    padding-bottom: 23px;
}

.pdf-export .submission-timeline .timeline > li:last-child {
    padding-bottom: 0;
}

@media print {
    .submission-timeline.is-collapsed .timeline > li {
        display: list-item;
        padding-bottom: 23px;
    }

    .submission-timeline .timeline > li:last-child {
        padding-bottom: 0;
    }
}

.bank-account-fields{min-width:0;border:0;border-top:1px solid #d6e2ee;margin-top:20px;padding:16px 0 0;color:#111}.bank-account-fields legend{float:none;width:auto;font-size:1.08rem;font-weight:700;margin-bottom:12px}.bank-account-fields small,.bank-account-fields [role=status]{display:block;margin:8px 0 0;color:#172b3a}.bank-account-fields input[readonly]{background:#f2f6fa;color:#111}.bank-branch-picker[hidden]{display:none!important}

/* Compact role totals and complete, saved-answer print output. */
.role-dashboard-metrics { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
.upload-signed-note { display:block; color:#111; font-weight:600; margin:6px 0; }
.print-question h3 { font-size:16px; }
.print-answer dl { display:flex; gap:8px; flex-wrap:wrap; }
.print-question { border-bottom:1px solid #ccd7e2; padding:10px 0; }
.pdf-export .dpro-interactive-questions { display:none!important; }
@media print { .dpro-interactive-questions { display:none!important; } .assessment-print { display:block!important; } }
/* Public navigation: consistent line icons, comfortable targets and responsive menus. */
.login-page .public-navigation-refreshed{background:linear-gradient(110deg,#102c4e,#153e62 65%,#104c5b);border-bottom:2px solid #eeab50;box-shadow:0 5px 18px #0b254526}
.public-navigation-refreshed .public-navigation-inner{max-width:1440px;min-height:74px;gap:14px;padding:10px 24px}
.public-navigation-refreshed .public-menu{gap:4px;min-width:0}
.public-navigation-refreshed .public-home,.public-navigation-refreshed .public-menu>a,.public-navigation-refreshed .public-menu>.dropdown>button,.public-navigation-refreshed .public-login{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;border-radius:9px;text-decoration:none;font-size:13px;line-height:1.4;white-space:nowrap;transition:background .18s ease,box-shadow .18s ease}
.public-navigation-refreshed .public-nav-icon{flex:0 0 19px;width:19px;height:19px;color:#ffd291}
.login-page .public-navigation-refreshed .public-home{background:#ffffff0d;border:1px solid #ffffff1c}
.login-page .public-navigation-refreshed .public-menu>a:hover,.login-page .public-navigation-refreshed .public-menu>.dropdown>button:hover,.login-page .public-navigation-refreshed .public-menu>.dropdown>button[aria-expanded=true],.login-page .public-navigation-refreshed .public-home:hover{background:#ffffff14;color:#fff;text-decoration:none;box-shadow:inset 0 -2px #ffc16b}
.public-navigation-refreshed .dropdown-toggle:after{margin-left:2px;opacity:.75}
.login-page .public-navigation-refreshed .public-questionnaire{background:#ffffff0a;border:1px solid #ffffff26;white-space:normal;text-align:left;max-width:330px;font-size:12px}
.public-navigation-refreshed .public-file-type{font-size:9px;letter-spacing:.04em;font-weight:700;border:0;background:#f8c978;color:#20334a;padding:3px 5px;margin-left:0;line-height:1.2}
.login-page .public-navigation-refreshed .public-login{padding:11px 19px;border-radius:10px;color:#172b40;box-shadow:0 4px 12px #020b1926}
.public-navigation-refreshed .public-login .public-nav-icon{color:currentColor}
.public-navigation-refreshed .public-menu-toggle{align-items:center;gap:8px;min-height:44px;border-radius:9px}
.login-page .public-navigation-refreshed .dropdown-menu{margin-top:8px;padding:8px;border:1px solid #dce5ee;border-radius:12px;box-shadow:0 12px 30px #071b3833;max-width:min(340px,calc(100vw - 40px))}
.login-page .public-navigation-refreshed .dropdown-item{padding:12px;line-height:1.6;border-radius:7px;text-decoration:none}
.login-page .public-navigation-refreshed .dropdown-item:hover{background:#eff5fa;color:#123d61;text-decoration:none}
@media(max-width:1150px){
.public-navigation-refreshed .public-navigation-inner{flex-wrap:wrap;gap:10px;padding:10px 20px}
.public-navigation-refreshed .public-menu-toggle{display:inline-flex;margin-left:auto}
.public-navigation-refreshed .public-login{margin-left:0}
.public-navigation-refreshed .public-menu{display:none!important;order:4;flex-basis:100%;align-items:stretch;gap:4px;border-top:1px solid #ffffff26;padding-top:8px}
.public-navigation-refreshed .public-menu.show,.public-navigation-refreshed .public-menu.collapsing{display:flex!important;flex-direction:column}
.public-navigation-refreshed .public-menu>a,.public-navigation-refreshed .public-menu>.dropdown>button{display:flex;width:100%;justify-content:flex-start;text-align:left;padding:12px}
.login-page .public-navigation-refreshed .public-questionnaire{max-width:none}
.public-navigation-refreshed .dropdown-toggle:after{margin-left:auto}
.public-navigation-refreshed .dropdown-menu{position:static!important;transform:none!important;max-width:100%;margin:4px 0 8px;box-shadow:none}
}
@media(max-width:480px){.public-navigation-refreshed .public-navigation-inner{padding:9px 12px;gap:8px}.public-navigation-refreshed .public-home,.public-navigation-refreshed .public-login,.public-navigation-refreshed .public-menu-toggle{padding:10px;font-size:12px}.public-navigation-refreshed .public-nav-icon{width:18px;height:18px;flex-basis:18px}}
@media(prefers-reduced-motion:reduce){.public-navigation-refreshed a,.public-navigation-refreshed button{transition:none}}
