:root {
    --navy: #0b2942;
    --navy-dark: #071d30;
    --blue: #0369a1;
    --blue-light: #e0f2fe;
    --teal: #0f766e;
    --green: #16845b;
    --green-light: #e8f8f1;
    --amber: #c76b08;
    --amber-light: #fff4df;
    --purple: #7357b3;
    --purple-light: #f0ebff;
    --red: #b42318;
    --red-light: #fff0ee;
    --ink: #162638;
    --muted: #627284;
    --line: #dce4eb;
    --surface: #ffffff;
    --canvas: #f3f7fa;
    --shadow: 0 12px 34px rgba(9, 37, 58, .08);
    --radius: 16px;
}

/* Tahap 4: review, penilaian, revisi, dan keputusan */
.alert-info {
    color: #0c4a6e;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.review-dashboard-strip {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #f5f3ff, #ffffff);
}

.review-dashboard-strip .strip-heading {
    border-color: #ddd6fe;
}

.review-strip-counts {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
}

.instrument-summary,
.review-step-grid,
.decision-summary-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instrument-summary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instrument-summary article > div {
    display: grid;
    gap: 4px;
}

.instrument-summary article > div > strong {
    color: #0f172a;
    font-size: 32px;
}

.instrument-ready {
    border-left: 4px solid #16a34a;
}

.instrument-warning {
    border-left: 4px solid #f59e0b;
}

.criteria-card {
    margin-bottom: 20px;
}

.criteria-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.standalone-form {
    max-width: 920px;
}

.form-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-proposal-heading h1 {
    max-width: 880px;
}

.heading-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-card {
    border-left: 4px solid #f59e0b;
}

.verification-card.verified {
    border-left-color: #16a34a;
}

.muted-copy {
    color: #64748b;
    line-height: 1.6;
}

.assignment-panel {
    margin-bottom: 20px;
}

.assignment-form {
    display: grid;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #dbe8ee;
    border-radius: 14px;
    background: #f8fbfc;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto;
}

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

.assignment-list article {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    grid-template-columns: 42px minmax(180px, 1fr) auto auto auto;
}

.assignment-list article > div {
    display: grid;
    gap: 3px;
}

.assignment-list article small {
    color: #64748b;
}

.review-info-strip {
    display: grid;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #dbe8ee;
    border-radius: 16px;
    background: #fff;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.review-info-strip > span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 15px;
    border-right: 1px solid #e2e8f0;
}

.review-info-strip > span:last-child {
    border-right: 0;
}

.review-info-strip small {
    color: #64748b;
}

.review-info-strip strong {
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
}

.scoring-card,
.recommendation-card {
    margin-bottom: 20px;
}

.score-total {
    padding: 9px 13px;
    color: #075985;
    border-radius: 999px;
    background: #e0f2fe;
}

.score-list {
    display: grid;
    gap: 14px;
}

.score-item {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.score-heading {
    display: grid;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.score-heading > div {
    display: grid;
    gap: 5px;
}

.score-heading small {
    color: #64748b;
    line-height: 1.5;
}

.score-number {
    display: grid;
    width: 30px;
    height: 30px;
    color: #fff;
    border-radius: 9px;
    background: #0369a1;
    font-weight: 800;
    place-items: center;
}

.score-fields {
    display: grid;
    gap: 14px;
    padding-left: 46px;
    grid-template-columns: 160px minmax(0, 1fr);
}

.recommendation-options {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0;
    border: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recommendation-options legend {
    width: 100%;
    margin-bottom: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.recommendation-options label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #dbe8ee;
    border-radius: 13px;
    cursor: pointer;
    background: #fff;
}

.recommendation-options label:has(input:checked) {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px #e0f2fe;
}

.recommendation-options label span {
    display: grid;
    gap: 4px;
}

.recommendation-options label small {
    color: #64748b;
    line-height: 1.4;
}

.review-actions {
    justify-content: flex-end;
}

.submitted-review-result {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border-radius: 13px;
    background: #f0fdf4;
}

.submitted-review-result small {
    margin-left: auto;
    color: #64748b;
}

.decision-score-card {
    display: grid;
    gap: 4px;
    align-content: center;
    border-left: 4px solid #0284c7;
}

.decision-score-card > strong {
    color: #075985;
    font-size: 44px;
    line-height: 1;
}

.review-result-list {
    display: grid;
    gap: 12px;
}

.review-result-list article {
    display: grid;
    gap: 12px;
    align-items: start;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    grid-template-columns: 42px minmax(220px, 1fr) auto auto auto;
}

.review-result-list article > div {
    display: grid;
    gap: 4px;
}

.review-result-list article p {
    margin: 7px 0 0;
    color: #475569;
    line-height: 1.55;
}

.muted-result {
    opacity: .58;
}

.result-score {
    color: #075985;
    font-size: 22px;
    font-weight: 900;
}

.decision-form-card {
    margin: 20px 0;
    border-top: 4px solid #0369a1;
}

.decision-history {
    display: grid;
    gap: 14px;
}

.decision-history article {
    display: grid;
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    grid-template-columns: auto minmax(0, 1fr);
}

.decision-history article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.decision-history article > div {
    display: grid;
    gap: 4px;
}

.decision-history p {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.6;
}

.revision-request-card,
.proposal-decision-card {
    margin-bottom: 20px;
    border-left: 4px solid #f59e0b;
}

.proposal-decision-card {
    border-left-color: #0284c7;
}

.revision-note {
    padding: 16px;
    margin-bottom: 10px;
    color: #334155;
    border-radius: 12px;
    background: #f8fafc;
    line-height: 1.65;
}

.revision-response-form {
    margin-top: 18px;
}

.revision-history-detail {
    display: grid;
    gap: 14px;
    margin: 0;
}

.revision-history-detail > div {
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
}

.revision-history-detail dt {
    margin-bottom: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.revision-history-detail dd {
    margin: 0;
    color: #334155;
    line-height: 1.65;
}

.review-context-action {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, #075985, #0369a1);
}

.review-context-action > span {
    display: grid;
    gap: 3px;
}

.review-context-action small {
    color: #bae6fd;
}

.review-context-action .button {
    color: #075985;
    background: #fff;
}

@media (max-width: 900px) {
    .instrument-summary,
    .review-step-grid,
    .decision-summary-grid {
        grid-template-columns: 1fr;
    }

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

    .assignment-list article,
    .review-result-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .assignment-list article > .pill,
    .assignment-list article > .button,
    .assignment-list article > form,
    .review-result-list article > .result-score,
    .review-result-list article > .pill,
    .review-result-list article > .button {
        grid-column: 2;
        justify-self: start;
    }

    .review-info-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-info-strip > span {
        border-bottom: 1px solid #e2e8f0;
    }

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

@media (max-width: 640px) {
    .heading-actions,
    .submitted-review-result,
    .review-context-action {
        align-items: stretch;
        flex-direction: column;
    }

    .score-heading {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .score-heading > .pill {
        grid-column: 2;
        justify-self: start;
    }

    .score-fields {
        padding-left: 0;
        grid-template-columns: 1fr;
    }

    .review-info-strip {
        grid-template-columns: 1fr;
    }

    .review-context-action .button {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(11, 41, 66, .08);
    font-size: .9em;
}

.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;
}

.muted {
    color: var(--muted);
}

.small-copy {
    font-size: 12px;
}

.text-right {
    text-align: right;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: 270px;
    flex-direction: column;
    overflow-y: auto;
    color: #dce9f3;
    background:
        radial-gradient(circle at 12% 4%, rgba(14, 165, 233, .2), transparent 24%),
        linear-gradient(175deg, #0c3555 0%, var(--navy-dark) 74%);
    box-shadow: 8px 0 30px rgba(3, 20, 33, .12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: #fff;
    font-size: 19px;
    letter-spacing: .03em;
}

.brand small {
    margin-top: 1px;
    color: #9fc2d9;
    font-size: 11px;
}

.brand-mark {
    display: inline-grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #0ea5e9, #0f766e);
    box-shadow: 0 8px 18px rgba(14, 165, 233, .24);
}

.brand-mark.large {
    width: 52px;
    height: 52px;
}

.brand-mark svg {
    width: 29px;
    fill: currentColor;
}

.side-nav {
    flex: 1;
    padding: 18px 13px;
}

.nav-section {
    display: block;
    padding: 16px 12px 7px;
    color: #6f9ab7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.side-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    margin: 3px 0;
    padding: 9px 11px;
    border-radius: 10px;
    color: #c2d4e1;
    font-size: 13px;
    transition: .18s ease;
}

.side-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.side-nav a.active {
    color: #fff;
    background: linear-gradient(100deg, rgba(14, 165, 233, .28), rgba(15, 118, 110, .19));
    box-shadow: inset 3px 0 #38bdf8;
}

.nav-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #7dd3fc;
    font-size: 18px;
}

.nav-badge {
    margin-left: auto;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    color: #79a2bd;
    font-size: 9px;
}

.nav-sub {
    display: grid;
    margin: 2px 0 8px;
}

.side-nav .nav-sub a {
    min-height: 30px;
    margin: 0;
    padding: 5px 10px 5px 48px;
    color: #8fb0c4;
    font-size: 11px;
}

.side-nav .nav-sub a.active {
    color: #fff;
    background: rgba(56, 189, 248, .1);
    box-shadow: inset 2px 0 #38bdf8;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    color: #89aabd;
    background: rgba(255, 255, 255, .035);
    font-size: 11px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .1);
}

.main-area {
    display: flex;
    min-height: 100vh;
    margin-left: 270px;
    flex-direction: column;
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    padding: 10px 28px;
    border-bottom: 1px solid rgba(209, 221, 230, .85);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 20px rgba(19, 51, 72, .035);
    backdrop-filter: blur(12px);
}

.topbar-title strong,
.topbar-title small {
    display: block;
}

.topbar-title strong {
    font-size: 17px;
}

.topbar-title small {
    color: var(--muted);
    font-size: 11px;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
}

.menu-button {
    display: none;
    margin-right: 12px;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 7px 10px;
    border-radius: 12px;
}

.user-menu:hover {
    background: #f3f7fa;
}

.avatar {
    display: inline-grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    font-weight: 800;
}

.avatar.small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
}

.user-copy strong,
.user-copy small {
    display: block;
}

.user-copy strong {
    max-width: 210px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy small {
    color: var(--muted);
    font-size: 10px;
}

.user-actions {
    position: absolute;
    top: calc(100% - 2px);
    right: 8px;
    display: none;
    min-width: 170px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--shadow);
}

.user-menu:hover .user-actions,
.user-menu:focus-within .user-actions {
    display: block;
}

.user-actions a,
.user-actions button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.user-actions a:hover,
.user-actions button:hover {
    background: var(--canvas);
}

.user-actions form {
    margin: 0;
}

.content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px;
    flex: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 5px 28px 22px;
    color: #82909e;
    font-size: 10px;
}

.card {
    border: 1px solid rgba(217, 227, 234, .92);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(16, 47, 68, .045);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 14px;
}

.card-header h2 {
    margin: 2px 0 0;
    font-size: 18px;
}

.eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
}

.alert-success {
    color: #106345;
    border-color: #b5e2cf;
    background: var(--green-light);
}

.alert-error {
    color: #8f251b;
    border-color: #f2c5bf;
    background: var(--red-light);
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    line-height: 1;
    transition: transform .15s, box-shadow .15s, background .15s;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #087f8c);
    box-shadow: 0 7px 17px rgba(3, 105, 161, .18);
}

.button-secondary {
    color: #19425c;
    border-color: #cbdde8;
    background: #f3f8fb;
}

.button-ghost {
    color: var(--muted);
    border-color: var(--line);
    background: #fff;
}

.button-block {
    width: 100%;
}

.button-large {
    min-height: 48px;
}

.button-small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
}

.button-warning {
    color: #8a4c07;
    border-color: #f0d39f;
    background: var(--amber-light);
}

.button-success {
    color: #08734d;
    border-color: #b9dfce;
    background: var(--green-light);
}

.inline-form {
    display: inline;
    margin: 0;
}

.action-cell {
    min-width: 180px;
    white-space: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #536474;
    background: #eff3f6;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pill-success {
    color: #08734d;
    background: var(--green-light);
}

.pill-muted {
    color: #6f7c88;
    background: #edf0f2;
}

.pill-role {
    color: #0b5f88;
    background: var(--blue-light);
}

.pill-dark {
    color: #41515f;
    background: #dfe5e9;
}

.welcome-panel {
    position: relative;
    display: flex;
    min-height: 175px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 30px 34px;
    border-radius: 20px;
    color: #d7eefa;
    background:
        radial-gradient(circle at 82% 25%, rgba(56, 189, 248, .26), transparent 20%),
        radial-gradient(circle at 70% 90%, rgba(45, 212, 191, .15), transparent 26%),
        linear-gradient(112deg, #092b45, #075985 68%, #0f766e);
    box-shadow: 0 17px 35px rgba(6, 55, 85, .17);
}

.welcome-panel::after {
    position: absolute;
    right: 125px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.welcome-panel h1 {
    margin: 5px 0 7px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.welcome-panel p {
    max-width: 680px;
    margin: 0;
    color: #bad7e8;
}

.welcome-panel .eyebrow {
    color: #7dd3fc;
}

.date-panel {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 145px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.date-panel > span {
    color: #fff;
    font-size: 35px;
    font-weight: 800;
    line-height: 1;
}

.date-panel small {
    color: #b9d9e9;
    line-height: 1.5;
}

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

.metric-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(20, 52, 72, .04);
}

.metric-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.metric-card > div:last-child {
    min-width: 0;
}

.metric-card span,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-card span {
    overflow: hidden;
    color: #4f6170;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card strong {
    margin: 1px 0;
    font-size: 27px;
    line-height: 1.25;
}

.metric-card small {
    color: #91a0ac;
    font-size: 9px;
}

.metric-blue .metric-icon { color: #0369a1; background: var(--blue-light); }
.metric-green .metric-icon { color: var(--green); background: var(--green-light); }
.metric-amber .metric-icon { color: var(--amber); background: var(--amber-light); }
.metric-purple .metric-icon { color: var(--purple); background: var(--purple-light); }

.dashboard-grid {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 20px;
}

.progress-list {
    padding: 4px 24px 23px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.progress-item:last-child {
    border-bottom: 0;
}

.progress-check {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #71808c;
    background: #edf1f4;
    font-size: 12px;
    font-weight: 800;
}

.progress-item.done .progress-check {
    color: #fff;
    background: var(--green);
}

.progress-item strong,
.progress-item small {
    display: block;
}

.progress-item strong {
    font-size: 12px;
}

.progress-item small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.quick-links {
    padding: 3px 16px 18px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 8px;
    border-bottom: 1px solid #edf1f4;
}

.quick-links a:last-child {
    border-bottom: 0;
}

.quick-links a:hover strong {
    color: var(--blue);
}

.quick-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 16px;
}

.quick-links a > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.quick-links strong,
.quick-links small {
    display: block;
}

.quick-links strong {
    font-size: 11px;
}

.quick-links small {
    color: var(--muted);
    font-size: 9px;
}

.quick-links b {
    color: #9aa8b2;
    font-size: 22px;
    font-weight: 400;
}

.activity-card {
    margin-bottom: 5px;
}

.master-dashboard-strip {
    display: grid;
    margin-bottom: 22px;
    border: 1px solid #cfe0e9;
    border-radius: 15px;
    background: linear-gradient(100deg, #f8fcfe, #f0f9f7);
    box-shadow: 0 7px 20px rgba(20, 52, 72, .035);
    grid-template-columns: 220px minmax(0, 1fr);
}

.strip-heading {
    display: flex;
    padding: 18px 20px;
    border-right: 1px solid #d8e7ed;
    flex-direction: column;
    justify-content: center;
}

.strip-heading small,
.strip-heading strong {
    display: block;
}

.strip-heading small {
    color: var(--teal);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.strip-heading strong {
    margin: 2px 0 7px;
    font-size: 13px;
}

.strip-heading a {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
}

.strip-counts {
    display: grid;
    grid-template-columns: repeat(6, minmax(80px, 1fr));
}

.strip-counts > span {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #e0ebf0;
    flex-direction: column;
    text-align: center;
}

.strip-counts > span:last-child {
    border-right: 0;
}

.strip-counts small,
.strip-counts strong {
    display: block;
}

.strip-counts small {
    color: var(--muted);
    font-size: 9px;
}

.strip-counts strong {
    color: var(--navy);
    font-size: 20px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 22px;
}

.page-heading.compact {
    align-items: center;
}

.page-heading h1 {
    margin: 4px 0 2px;
    font-size: 26px;
    line-height: 1.25;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

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

.mini-metrics > div {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.mini-metrics span,
.mini-metrics strong {
    display: block;
}

.mini-metrics span {
    color: var(--muted);
    font-size: 10px;
}

.mini-metrics strong {
    margin-top: 2px;
    font-size: 20px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}

.result-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.search-field {
    max-width: 430px;
    flex: 1;
}

.filter-bar input,
.filter-bar select {
    min-height: 40px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 16px;
    border-bottom: 1px solid #e8edf1;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #617383;
    background: #f8fafb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    color: #344757;
    font-size: 11px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdfe;
}

.person-cell {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 9px;
}

.person-cell strong,
.person-cell small {
    display: block;
}

.person-cell small {
    color: var(--muted);
    font-size: 9px;
}

.empty-cell {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.form-card {
    max-width: 900px;
    padding: 24px;
}

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

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field > span:first-child {
    color: #314859;
    font-size: 11px;
    font-weight: 750;
}

.field small {
    color: #83919e;
    font-size: 9px;
}

.field-full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #cbd8e1;
    border-radius: 9px;
    color: var(--ink);
    outline: 0;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2b94bf;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .11);
}

textarea {
    resize: vertical;
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 85px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 9px;
    font-weight: 800;
    transform: translateY(-50%);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.profile-grid {
    display: grid;
    max-width: 1020px;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
}

.profile-card {
    padding: 28px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), var(--teal));
    box-shadow: 0 12px 25px rgba(3, 105, 161, .2);
    font-size: 31px;
    font-weight: 800;
}

.profile-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.profile-list {
    margin: 23px 0;
    text-align: left;
}

.profile-list div {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
}

.profile-list dt {
    color: var(--muted);
    font-size: 9px;
}

.profile-list dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 700;
}

.empty-state {
    max-width: 760px;
    margin: 45px auto;
    padding: 55px 35px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 18px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 27px;
    font-weight: 800;
}

.empty-state h1 {
    margin: 0 0 7px;
}

.empty-state p {
    max-width: 560px;
    margin: 0 auto 21px;
    color: var(--muted);
}

.planned-label {
    width: fit-content;
    margin: -5px auto 23px;
    padding: 7px 11px;
    border-radius: 99px;
    color: #765007;
    background: var(--amber-light);
    font-size: 10px;
    font-weight: 700;
}

.auth-body {
    min-height: 100vh;
    background: #edf4f7;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(480px, 1.25fr) minmax(390px, .75fr);
}

.auth-intro {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 68% 23%, rgba(56, 189, 248, .24), transparent 23%),
        radial-gradient(circle at 90% 85%, rgba(45, 212, 191, .18), transparent 28%),
        linear-gradient(140deg, #061c2e, #074b70 65%, #0f766e);
}

.auth-intro::before,
.auth-intro::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: "";
}

.auth-intro::before {
    right: -90px;
    bottom: 11%;
    width: 310px;
    height: 310px;
}

.auth-intro::after {
    right: 10%;
    bottom: -170px;
    width: 440px;
    height: 440px;
}

.auth-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(760px, 100%);
    min-height: 100vh;
    margin: auto;
    padding: 45px 64px;
    flex-direction: column;
    justify-content: space-between;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-logo strong,
.auth-logo small {
    display: block;
}

.auth-logo strong {
    font-size: 17px;
}

.auth-logo small {
    max-width: 330px;
    color: #a9ccde;
    font-size: 10px;
}

.hero-copy {
    margin: auto 0;
    padding: 70px 0;
}

.hero-copy .eyebrow {
    color: #7dd3fc;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 11px 0 17px;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.hero-copy p {
    max-width: 600px;
    margin: 0;
    color: #b9d6e5;
    font-size: 15px;
}

.auth-stage {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #c7e0ec;
}

.stage-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    font-size: 17px;
    font-weight: 800;
}

.auth-stage strong,
.auth-stage small {
    display: block;
}

.auth-stage strong {
    font-size: 11px;
}

.auth-stage small {
    color: #8db5c9;
    font-size: 9px;
}

.auth-panel {
    display: grid;
    padding: 40px;
    place-items: center;
    background: #fff;
}

.login-box {
    width: min(400px, 100%);
}

.mobile-brand {
    display: none;
    margin-bottom: 30px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-box h2 {
    margin: 0;
    font-size: 29px;
}

.login-box > .muted {
    margin: 5px 0 25px;
    font-size: 12px;
}

.setup-callout {
    margin-top: 24px;
    padding: 19px;
    border: 1px solid #b9ddec;
    border-radius: 13px;
    background: #f1faff;
}

.setup-callout p {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 11px;
}

.auth-help {
    margin: 24px 0 0;
    color: #8997a4;
    font-size: 10px;
    text-align: center;
}

.setup-page {
    display: grid;
    padding: 38px 20px;
    place-items: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(14, 165, 233, .12), transparent 24%),
        #edf4f7;
}

.setup-shell {
    width: min(850px, 100%);
}

.setup-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.setup-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
}

.setup-heading h1 {
    margin: 2px 0;
    font-size: 25px;
}

.setup-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.master-tabs {
    display: flex;
    overflow-x: auto;
    margin: -5px 0 20px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 48, 68, .03);
    scrollbar-width: thin;
}

.master-tabs a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.master-tabs a:hover {
    color: var(--blue);
    background: #f3f8fb;
}

.master-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    box-shadow: 0 6px 13px rgba(3, 105, 161, .15);
}

.schema-alert {
    margin-bottom: 20px;
}

.master-card-grid {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.master-card {
    position: relative;
    display: flex;
    min-height: 130px;
    align-items: flex-start;
    gap: 13px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(16, 47, 68, .04);
    transition: transform .17s, border-color .17s, box-shadow .17s;
}

.master-card:hover {
    border-color: #9fc9dc;
    box-shadow: 0 12px 28px rgba(16, 72, 102, .09);
    transform: translateY(-2px);
}

.master-card.disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.master-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 11px;
    font-weight: 900;
}

.master-card-copy {
    min-width: 0;
    flex: 1;
}

.master-card-copy small,
.master-card-copy strong,
.master-card-copy em {
    display: block;
}

.master-card-copy small {
    color: var(--teal);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.master-card-copy strong {
    margin: 2px 0 5px;
    font-size: 14px;
}

.master-card-copy em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    line-height: 1.45;
}

.master-count {
    position: absolute;
    right: 12px;
    bottom: -7px;
    color: rgba(3, 105, 161, .08);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.master-summary {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.setup-steps {
    margin: 0;
    padding: 0 24px 22px;
    list-style: none;
}

.setup-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
}

.setup-steps li:last-child {
    border-bottom: 0;
}

.setup-steps li > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 10px;
    font-weight: 900;
}

.setup-steps strong,
.setup-steps small {
    display: block;
}

.setup-steps strong {
    font-size: 11px;
}

.setup-steps small {
    color: var(--muted);
    font-size: 9px;
}

.period-highlight {
    padding: 10px 24px 25px;
}

.period-highlight > strong,
.period-highlight > small {
    display: block;
}

.period-highlight > strong {
    margin: 13px 0 2px;
    font-size: 15px;
}

.period-highlight > small {
    color: var(--muted);
    font-size: 10px;
}

.period-highlight dl {
    display: grid;
    margin: 20px 0 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.period-highlight dl div {
    padding: 10px;
    border-radius: 9px;
    background: var(--canvas);
}

.period-highlight dt {
    color: var(--muted);
    font-size: 8px;
}

.period-highlight dd {
    margin: 2px 0 0;
    font-size: 10px;
    font-weight: 800;
}

.empty-mini {
    padding: 18px 24px 27px;
    text-align: center;
}

.empty-mini strong {
    font-size: 12px;
}

.empty-mini p {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 10px;
}

.master-form-card {
    max-width: 980px;
}

.field-warning {
    color: #9a5b0a !important;
}

.pill-blue {
    color: #075d87;
    background: #dff3fc;
}

.pill-amber,
.pill-warning {
    color: #8a4c07;
    background: var(--amber-light);
}

.pill-danger {
    color: #982d24;
    background: var(--red-light);
}

.pill-purple {
    color: #5f469d;
    background: var(--purple-light);
}

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

.proposal-metrics > div {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 47, 68, .035);
}

.proposal-metrics span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.proposal-metrics strong {
    color: var(--navy);
    font-size: 25px;
}

.proposal-filters select {
    width: auto;
    min-width: 135px;
}

.proposal-title-cell {
    min-width: 280px;
}

.proposal-title-cell .pill {
    margin-right: 7px;
    vertical-align: middle;
}

.proposal-title-cell strong {
    display: inline;
    color: var(--ink);
    font-size: 11px;
}

.proposal-title-cell small,
td > strong + small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.proposal-workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 2px 0 17px;
}

.proposal-workspace-head h1 {
    max-width: 920px;
    margin: 4px 0;
    font-size: 23px;
    line-height: 1.3;
}

.proposal-workspace-head p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.proposal-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 48, 68, .03);
}

.proposal-tabs a {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.proposal-tabs a:hover {
    color: var(--blue);
    background: #f3f8fb;
}

.proposal-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.proposal-tabs small {
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 99px;
    color: inherit;
    background: rgba(127, 146, 160, .15);
    font-size: 8px;
}

.proposal-tabs a.active small {
    background: rgba(255, 255, 255, .2);
}

.proposal-form-card {
    max-width: 1050px;
}

.form-section-title {
    margin-top: 6px;
    padding: 14px 0 3px;
    border-top: 1px solid var(--line);
}

.form-section-title span,
.form-section-title small {
    display: block;
}

.form-section-title span {
    font-size: 12px;
    font-weight: 800;
}

.form-section-title small {
    color: var(--muted);
    font-size: 9px;
}

.proposal-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
    gap: 20px;
}

.compact-card {
    align-self: start;
    padding: 0 20px 22px;
}

.compact-card .card-header {
    padding-right: 0;
    padding-left: 0;
}

.team-list,
.document-list,
.schedule-list {
    padding: 0 22px 22px;
}

.team-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.team-item:last-child {
    border-bottom: 0;
}

.team-item.leader {
    margin-bottom: 5px;
    padding: 14px;
    border: 1px solid #bfe0d2;
    border-radius: 12px;
    background: var(--green-light);
}

.team-item > div {
    min-width: 0;
    flex: 1;
}

.team-item strong,
.team-item small,
.team-item em {
    display: block;
}

.team-item strong {
    font-size: 11px;
}

.team-item small {
    color: var(--muted);
    font-size: 9px;
}

.team-item em {
    margin-top: 3px;
    color: #425767;
    font-size: 9px;
    font-style: normal;
}

.icon-delete {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--red);
    background: var(--red-light);
    font-size: 18px;
}

.hidden {
    display: none !important;
}

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

.budget-summary > div {
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.budget-summary small,
.budget-summary strong {
    display: block;
}

.budget-summary small {
    color: var(--muted);
    font-size: 9px;
}

.budget-summary strong {
    margin-top: 2px;
    font-size: 17px;
}

.budget-summary .over-budget {
    color: var(--red);
    border-color: #edb9b3;
    background: var(--red-light);
}

.mini-form-grid {
    gap: 10px;
}

.schedule-item {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f4;
    grid-template-columns: 32px minmax(160px, .75fr) minmax(160px, 1fr) auto;
}

.schedule-item:last-child {
    border-bottom: 0;
}

.schedule-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 10px;
    font-weight: 900;
}

.schedule-item strong,
.schedule-item small {
    display: block;
}

.schedule-item strong {
    font-size: 10px;
}

.schedule-item small,
.schedule-item p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.schedule-bar-wrap {
    position: relative;
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8eef2;
}

.schedule-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.schedule-actions {
    display: flex;
    gap: 5px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f4;
}

.document-item:last-child {
    border-bottom: 0;
}

.document-icon {
    display: grid;
    width: 42px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: #a83228;
    background: var(--red-light);
    font-size: 9px;
    font-weight: 900;
}

.document-item > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.document-item strong,
.document-item small {
    display: block;
}

.document-item strong {
    margin-top: 5px;
    font-size: 11px;
}

.document-item small {
    color: var(--muted);
    font-size: 9px;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-field input {
    padding: 7px;
    background: #f8fafb;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.completion-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 17px 20px;
    border: 1px solid;
    border-radius: 14px;
}

.completion-panel > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.completion-panel.complete {
    border-color: #a9dbc4;
    background: var(--green-light);
}

.completion-panel.incomplete {
    border-color: #ecd09c;
    background: var(--amber-light);
}

.completion-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--green);
    font-size: 17px;
    font-weight: 900;
}

.incomplete .completion-icon {
    background: var(--amber);
}

.completion-panel strong,
.completion-panel small {
    display: block;
}

.completion-panel strong {
    font-size: 12px;
}

.completion-panel small {
    color: var(--muted);
    font-size: 9px;
}

.missing-card {
    margin-bottom: 18px;
}

.missing-card ul {
    margin: 0;
    padding: 0 28px 22px 46px;
    color: #75511a;
    font-size: 10px;
}

.missing-card li {
    padding: 3px 0;
}

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

.summary-section:first-child {
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    margin: 0;
    padding: 0 24px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.detail-grid > div {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
}

.detail-grid dt {
    color: var(--muted);
    font-size: 8px;
}

.detail-grid dd {
    margin: 2px 0 0;
    font-size: 10px;
    font-weight: 700;
}

.detail-grid .detail-full {
    grid-column: 1 / -1;
}

.detail-grid .long-copy {
    font-weight: 400;
    line-height: 1.7;
}

.compact-list {
    padding: 0 22px 17px;
}

.compact-list > div {
    position: relative;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f4;
}

.compact-list > div:last-child {
    border-bottom: 0;
}

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

.compact-list strong {
    font-size: 10px;
}

.compact-list small {
    color: var(--muted);
    font-size: 8px;
}

.compact-actions {
    position: absolute;
    top: 10px;
    right: 0;
}

.compact-actions a {
    margin-left: 6px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    background: #f8fafb;
}

.summary-total span {
    color: var(--muted);
    font-size: 9px;
}

.summary-total strong {
    font-size: 12px;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 16px 19px;
    border: 1px solid #efd1a2;
    border-radius: 12px;
    background: #fffbf3;
}

.danger-zone strong,
.danger-zone small {
    display: block;
}

.danger-zone strong {
    font-size: 11px;
}

.danger-zone small {
    color: var(--muted);
    font-size: 9px;
}

.sidebar-overlay {
    display: none;
}

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

    .mini-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .master-dashboard-strip {
        grid-template-columns: 175px minmax(0, 1fr);
    }

    .strip-counts {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
    }

    .strip-counts > span:nth-child(3) {
        border-right: 0;
    }

    .strip-counts > span:nth-child(-n+3) {
        border-bottom: 1px solid #e0ebf0;
    }

    .auth-content {
        padding-right: 42px;
        padding-left: 42px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-102%);
        transition: transform .22s ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 40;
        inset: 0;
        background: rgba(3, 19, 31, .48);
    }

    .sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-area {
        margin-left: 0;
    }

    .menu-button {
        display: inline-grid;
    }

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

    .proposal-two-column {
        grid-template-columns: 1fr;
    }

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

    .summary-section:first-child {
        grid-column: auto;
    }

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

    .auth-intro {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
    }

    .mobile-brand {
        display: block;
    }
}

@media (max-width: 680px) {
    .content {
        padding: 18px 14px;
    }

    .topbar {
        min-height: 68px;
        padding: 9px 14px;
    }

    .topbar-title small,
    .user-copy {
        display: none;
    }

    .footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .welcome-panel {
        min-height: 0;
        padding: 26px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .welcome-panel h1 {
        font-size: 25px;
    }

    .date-panel {
        min-width: 0;
    }

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

    .proposal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proposal-filters select {
        width: 100%;
    }

    .proposal-workspace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .proposal-workspace-head h1 {
        font-size: 20px;
    }

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

    .schedule-item {
        align-items: start;
        grid-template-columns: 32px 1fr;
    }

    .schedule-bar-wrap,
    .schedule-actions {
        grid-column: 2;
    }

    .document-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .document-actions {
        width: 100%;
        padding-left: 54px;
        flex-wrap: wrap;
    }

    .completion-panel,
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .completion-panel form .button,
    .danger-zone form .button {
        width: 100%;
    }

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

    .detail-grid .detail-full {
        grid-column: auto;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .mini-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        max-width: none;
    }

    .result-count {
        margin-left: 0;
        text-align: right;
    }

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

    .field-full {
        grid-column: auto;
    }

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

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

    .profile-grid {
        width: 100%;
    }

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

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

    .strip-heading {
        border-right: 0;
        border-bottom: 1px solid #d8e7ed;
    }

    .strip-counts {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
    }

    .strip-counts > span:nth-child(3) {
        border-right: 1px solid #e0ebf0;
    }

    .strip-counts > span:nth-child(even) {
        border-right: 0;
    }

    .strip-counts > span:nth-child(-n+4) {
        border-bottom: 1px solid #e0ebf0;
    }

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

    .auth-panel {
        padding: 28px 20px;
    }

    .setup-card {
        padding: 23px 18px;
    }

    .setup-heading {
        align-items: flex-start;
    }

    .footer {
        gap: 8px;
        flex-direction: column;
    }
}
