:root {
    --navy: #17324d;
    --blue: #2a6f97;
    --pale: #edf6f8;
    --mint: #dff3ec;
    --ink: #15232f;
    --muted: #5d6d79;
    --line: #d5e0e6;
    --white: #ffffff;
    --warning: #fff5d8;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f4f7f9;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-width: 1100px;
}
button,
input,
select {
    font: inherit;
}

.training-banner {
    padding: 9px 24px;
    background: #7a3e00;
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    padding: 14px 34px;
    background: var(--navy);
    color: white;
}

.brand-lockup,
.operator {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-lockup div,
.operator {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.brand-lockup small,
.operator small {
    color: #c8d8e4;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #79c6d0;
    color: var(--navy);
    font-weight: 900;
}

main {
    padding: 34px;
}
.dashboard {
    max-width: 1240px;
    margin: 0 auto;
}
.path-card,
.queue-card,
.form-panel,
.source-panel,
.progress-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(23, 50, 77, 0.06);
}
.path-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: linear-gradient(125deg, var(--white), var(--pale));
}
.path-card h1 {
    margin: 6px 0 8px;
    font-size: 34px;
}
.path-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.path-badge,
.count,
.save-state {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mint);
    color: #175b47;
    font-size: 13px;
    font-weight: 800;
}
.queue-card {
    margin-top: 24px;
    padding: 28px;
}
.section-heading,
.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h2 {
    margin: 6px 0 0;
}
.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.table-wrap {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
th {
    background: #f7fafb;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}
td {
    font-size: 14px;
}
.status-ready {
    color: #17634e;
    font-weight: 800;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 11px 17px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font-weight: 800;
}
button.secondary {
    background: #e8eff3;
    color: var(--navy);
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.application-shell {
    display: grid;
    grid-template-columns: 245px minmax(560px, 1fr) 310px;
    gap: 18px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: start;
}
.progress-panel,
.source-panel {
    position: sticky;
    top: 20px;
    padding: 22px;
}
.progress-panel ol {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}
.progress-panel li {
    position: relative;
    padding: 11px 8px 11px 38px;
    color: var(--muted);
    font-size: 13px;
}
.progress-panel li::before {
    content: attr(data-number);
    position: absolute;
    left: 6px;
    color: #8797a3;
    font-size: 11px;
}
.progress-panel li.active {
    border-radius: 7px;
    background: var(--pale);
    color: var(--navy);
    font-weight: 900;
}
.progress-panel li.complete {
    color: #17634e;
}
.boundary-note {
    padding: 14px;
    border-radius: 8px;
    background: var(--warning);
    font-size: 12px;
    line-height: 1.45;
}
.boundary-note span {
    display: block;
    margin-top: 4px;
}
.form-panel {
    padding: 28px;
    min-height: 700px;
}
.form-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.form-heading h1 {
    margin: 6px 0 0;
    font-size: 28px;
}
#application-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 0;
}
.field,
.radio-field {
    min-width: 0;
}
.field.wide,
.radio-field.wide {
    grid-column: 1 / -1;
}
.field label,
legend {
    display: block;
    margin-bottom: 7px;
    color: #314858;
    font-size: 13px;
    font-weight: 800;
}
input,
select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #b9c8d1;
    border-radius: 7px;
    background: white;
    color: var(--ink);
}
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
.radio-options {
    display: flex;
    gap: 10px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 90px;
    padding: 10px 12px;
    border: 1px solid #b9c8d1;
    border-radius: 7px;
}
.radio-option input {
    width: auto;
    min-height: auto;
}
.branch-note {
    margin-top: 18px;
    padding: 14px;
    border-left: 4px solid #d39a21;
    background: var(--warning);
    line-height: 1.5;
}
.form-error {
    min-height: 22px;
    margin-top: 14px;
    color: #a02f2f;
    font-weight: 800;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.source-panel h2 {
    margin-bottom: 18px;
}
.source-group h3 {
    margin: 0 0 12px;
}
.source-group dl {
    margin: 0;
}
.source-group dl div {
    padding: 9px 0;
    border-bottom: 1px solid #e5ecef;
}
.source-group dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.source-group dd {
    margin: 3px 0 0;
    font-size: 13px;
    word-break: break-word;
}
#document-list {
    padding: 22px 0;
}
.document-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 15px;
    margin-bottom: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.document-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: var(--pale);
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}
.document-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
.document-status {
    color: #8b5a00;
    font-weight: 900;
}
.document-status.received {
    color: #17634e;
}
#review-panel {
    padding: 24px 0;
}
.review-hero {
    padding: 22px;
    border-radius: 11px;
    background: var(--mint);
}
.review-hero h2 {
    margin: 0 0 7px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.review-stat {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
}
.review-stat strong {
    display: block;
    font-size: 24px;
}
.review-stat span {
    color: var(--muted);
    font-size: 12px;
}
.stop-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e0bd61;
    border-radius: 9px;
    background: var(--warning);
}

body [hidden] {
    display: none;
}
