:root {
    --navy: #0F75BC;
    --navy2: #0b376f;
    --blue: #1474B8;
    --blue2: #E9F3FB;
    --ink: #1A1D21;
    --muted: #6e7b91;
    --line: #dfe5ee;
    --bg: #f6f8fb;
    --green: #1a9b65;
    --red: #d93b3b;
    --amber: #d98916;
    --purple: #7d5ce7;
    --white: #fff;
    --shadow: 0 6px 20px rgba(20, 35, 59, .07)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink)
}

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

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr
}

.sidebar {
    background: linear-gradient(180deg,#1A1D21, #1A1D21 );
    color: white;
    padding: 28px 16px;
    position: sticky;
    top: 0;
    height: 100vh
}

.brand {
    font-size: 23px;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 4px
}

.brand small {
    color: #63a7ff
}

.tagline {
    font-size: 12px;
    color: #d1dcf0;
    margin: 0 12px 34px
}

.nav {
    display: grid;
    gap: 8px
}

.nav a {
    padding: 13px 15px;
    border-radius: 10px;
    color: #dce7f7;
    font-size: 14px
}

.nav a.active,
.nav a:hover {
    background: #1474B8;
    color: #fff
}

.sidebar-help {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: 14px;
    color: #dce7f7;
    font-size: 12px
}

.sidebar-help b {
    display: block;
    color: white;
    margin-bottom: 6px
}

.main {
    min-width: 0
}

.topbar {
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    gap: 18px
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbe9ff;
    color: #1553a2;
    display: grid;
    place-items: center;
    font-weight: 700
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px
}

.content {
    padding: 26px 30px 50px;
    max-width: 1500px;
    margin: auto
}

.page-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px
}

.page-title h1 {
    margin: 0 0 5px;
    font-size: 28px
}

.page-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #E5F6EE;
    color: #187B4F;
    font-weight: 700;
    font-size: 12px
}

.steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
    flex-wrap: wrap
}

.step {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 12px
}

.step .num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1474B8;
    color: white;
    font-weight: 700
}

.step.active .num {
    background: var(--blue)
}

.step.done .num {
    background: var(--green)
}

.step.active strong,
.step.done strong {
    color: var(--ink)
}

.connector {
    height: 1px;
    background: #cfd6e2;
    width: 62px
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 24px
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.card-header {
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--line)
}

.card-header h2 {
    font-size: 17px;
    margin: 0 0 5px
}

.card-header p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.card-body {
    padding: 20px 22px
}

.section {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line)
}

.section:last-child {
    border-bottom: 0
}

.section h3 {
    font-size: 16px;
    margin: 0 0 4px
}

.section p.sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 18px
}

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

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

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

.field label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 6px
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid #cfd7e4;
    border-radius: 7px;
    background: #fff;
    padding: 10px 11px;
    font-size: 13px;
    color: #26374e;
    min-height: 40px
}

.textarea {
    min-height: 90px
}

.radio-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 8px;
    font-size: 13px
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: #fff
}

.btn {
    display: inline-block;
    border: 1px solid #cbd5e3;
    border-radius: 7px;
    padding: 10px 16px;
    background: white;
    color: #24405f;
    font-weight: 650;
    font-size: 13px
}

.btn.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: white
}

.btn.success {
    background: var(--green);
    border-color: var(--green);
    color: white
}

.doc-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line)
}

.doc-row:last-child {
    border-bottom: 0
}

.icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: var(--blue2)
}

.doc-row h4 {
    margin: 1px 0 4px;
    font-size: 13px
}

.doc-row p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45
}

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

.optional {
    color: var(--muted);
    font-size: 11px
}

.file-pill {
    margin-top: 7px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: #E5F6EE;
    color: #187B4F;
    font-size: 11px;
    font-weight: 650
}

.notice {
    padding: 13px 14px;
    background: #eef5ff;
    border: 1px solid #c9ddff;
    border-radius: 8px;
    color: #2a568b;
    font-size: 12px;
    line-height: 1.5
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.metric {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow)
}

.metric .label {
    font-size: 12px;
    color: var(--muted)
}

.metric .value {
    font-size: 24px;
    font-weight: 750;
    margin-top: 6px
}

.checklist {
    display: grid;
    gap: 10px
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff
}

.check .mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #E5F6EE;
    color: #187B4F;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto
}

.check.pending .mark {
    background: #FFF2DC;
    color: #b06a00
}

.check b {
    font-size: 13px
}

.check small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.4
}

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

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

.table th {
    color: var(--muted);
    font-weight: 700;
    background: #f8fafc
}

.status {
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
    display: inline-block
}

.status.complete {
    background: #e5f6ee;
    color: #187B4F;
}

.status.review {
    background: #fff2dc;
    color: #A15E00;
}

.status.todo {
    background: #eef2f7;
    color: #59677a
}

.review-block {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line)
}

.review-block h3 {
    font-size: 15px;
    margin: 0 0 12px
}

.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 7px 16px;
    font-size: 12px
}

.kv .k {
    color: var(--muted)
}

.signature {
    font-family: "Brush Script MT", cursive;
    font-size: 31px;
    color: #1c3f70;
    padding: 14px 0 3px;
    border-bottom: 1px solid #9faec1;
    max-width: 300px
}

.complete-panel {
    text-align: center;
    padding: 50px 30px
}

.big-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #daf4e8;
    color: #15935f;
    font-size: 34px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px
}

.complete-panel h2 {
    font-size: 24px;
    margin: 0 0 8px
}

.complete-panel p {
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.6
}

.timeline {
    max-width: 620px;
    margin: 28px auto 0;
    text-align: left
}

.timeline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 0 0 20px
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    margin-top: 3px
}

.timeline-item b {
    font-size: 13px
}

.timeline-item small {
    display: block;
    color: var(--muted);
    margin-top: 3px
}

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

@media(max-width:1050px) {
    .shell {
        grid-template-columns: 190px 1fr
    }

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

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

@media(max-width:760px) {
    .shell {
        display: block
    }

    .sidebar {
        position: relative;
        height: auto
    }

    .sidebar-help {
        display: none
    }

    .topbar {
        display: none
    }

    .content {
        padding: 20px 14px
    }

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

    .connector {
        display: none
    }

    .kv {
        grid-template-columns: 1fr
    }

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