@font-face { font-family: Inter; src: url('brand/inter.woff2') format('woff2'); font-weight: 400 750; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('brand/space-grotesk.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #1b2c40;
  background: #f8fafc;
  --navy: #101f36;
  --blue: #1e40af;
  --muted: #50637c;
  --line: #dce4e9;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, input:focus-visible { outline: 3px solid #087f62; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; }
[hidden] { display: none !important; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: 10px; padding: 7px 10px; background: #fff; border-radius: 9px; }
.brand img { display: block; width: clamp(112px, 17vw, 166px); height: auto; }
.brand-product { color: #145844; background: #e6f7ef; border-radius: 5px; padding: 4px 6px; font: 700 .74rem 'Space Grotesk',sans-serif; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.04fr) minmax(400px, 1fr); }
.login-intro { position: relative; overflow: hidden; min-height: 100%; background: linear-gradient(110deg, #0a182de8, #11284073), url("brand/bridge-1440.webp") center / cover; padding: clamp(32px, 5vw, 84px); display: flex; flex-direction: column; align-items: start; justify-content: center; color: white; }
.login-intro > .brand { position: absolute; top: clamp(32px, 5vw, 84px); z-index: 1; }
.intro-copy { position: relative; z-index: 1; max-width: 610px; }
.intro-copy p { color: #9aebcc; font-weight: 600; margin-bottom: 24px; }
.intro-copy h1 { font-size: clamp(2.9rem, 5.45vw, 6.15rem); letter-spacing: -.064em; font-weight: 680; line-height: 1.02; }
.login-side { position: relative; display: grid; place-items: center; background: #fff; padding: 94px clamp(28px, 6vw, 110px); }
.login-side > .language { position: absolute; top: 32px; right: clamp(28px, 4vw, 64px); }
.login-content { width: 100%; max-width: 405px; }
.eyebrow { text-transform: uppercase; letter-spacing: .135em; font-size: .72rem; color: #166653; font-weight: 750; margin-bottom: 10px; }
.login-content h2, .content h1 { font-size: clamp(2.05rem, 3.6vw, 3rem); letter-spacing: -.054em; line-height: 1.08; }
.muted { color: var(--muted); line-height: 1.58; }
.login-content > .muted, .content > .muted { margin-top: 12px; }
#login { margin-top: 30px; }
#login label { display: block; margin-bottom: 18px; font-size: .9rem; color: #24364b; font-weight: 660; }
input { margin-top: 8px; width: 100%; min-height: 46px; border: 1px solid #aab8c9; border-radius: 7px; padding: 9px 12px; color: inherit; background: white; }
#login .primary { width: 100%; margin-top: 8px; }
.primary { padding: 11px 18px; background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 8px; font-weight: 650; min-height: 44px; }
.primary:hover { background: #134bb0; }
.language, .plain { background: #fff; border: 1px solid #c6d0df; border-radius: 7px; padding: 8px 12px; min-height: 38px; color: #203a5a; font-size: .82rem; font-weight: 700; }
.link { background: transparent; border: 0; color: #1354c3; font-weight: 650; margin-top: 15px; padding: 8px 0; }
.error { color: #a12129; font-size: .875rem; line-height: 1.45; margin: 8px 0; }
.error:empty { margin: 0; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #fff; padding: 31px 20px; }
.sidebar .brand { margin-left: 7px; }
.sidebar-label { margin: 53px 11px 13px; font-size: .7rem; letter-spacing: .12em; font-weight: 680; text-transform: uppercase; color: #b0c7e6; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar button { width: 100%; text-align: left; border: 1px solid transparent; color: #d8e5f7; background: transparent; padding: 11px; border-radius: 8px; font-weight: 630; min-height: 44px; }
.sidebar button:hover, .sidebar button[aria-current] { color: white; border-color: #35b997; background: #124831; }
.sidebar button span { display: inline-block; width: 22px; color: #afceff; }
.workspace-top { min-height: 73px; background: white; border-bottom: 1px solid var(--line); display: flex; justify-content: end; gap: 13px; align-items: center; padding: 10px clamp(18px, 4vw, 62px); }
.identity { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 630; margin-right: 8px; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 35px; height: 35px; background: #e6f7ef; color: #146147; flex: 0 0 35px; }
.content { width: 100%; max-width: 1500px; margin-inline: auto; padding: clamp(26px, 5vw, 71px) clamp(20px, 4vw, 62px); }
.results { margin-top: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 15px; }
.card, .empty, .table-wrap { border: 1px solid var(--line); border-radius: 13px; background: white; }
.card { min-width: 0; padding: 22px; display: flex; flex-direction: column; align-items: start; }
.card-top { width: 100%; display: flex; gap: 6px; justify-content: space-between; align-items: center; }
.market, .pill { padding: 5px 8px; border-radius: 5px; background: #e8f6ef; color: #146147; font-size: .73rem; font-weight: 730; }
.pill.green { color: #136347; background: #e6f7ef; }
.pill.slate { color: #4d5d75; background: #edf0f5; }
.card h2 { font-size: 1.18rem; letter-spacing: -.023em; margin-top: 20px; overflow-wrap: anywhere; }
.card .muted, .summary { margin-top: 5px; font-size: .9rem; overflow-wrap: anywhere; }
.summary { margin-top: 12px; color: #3d526c; line-height: 1.52; }
.card-action { margin-top: auto; padding: 17px 0 2px; border: 0; color: #1e40af; background: transparent; font-size: .88rem; font-weight: 720; text-align: left; min-height: 44px; }
.card-action span { margin-left: 4px; }
.empty { padding: 25px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f1f5fb; }
tbody tr:last-child td { border-bottom: 0; }
dialog { width: min(500px, calc(100% - 30px)); padding: 27px; border: 1px solid #a9b7c9; border-radius: 14px; color: #1b2c40; overflow-wrap: anywhere; }
dialog h2 { font-size: 1.7rem; letter-spacing: -.03em; }
dialog h3, dialog p:not(.eyebrow), dialog form { margin-top: 10px; }
dialog form { margin-top: 20px; }
dialog::backdrop { background: #10213eb0; }
@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { min-height: 305px; padding: 104px 30px 37px; }
  .login-intro > .brand { top: 29px; }
  .intro-copy p { margin-bottom: 13px; }
  .intro-copy h1 { font-size: clamp(2.35rem, 7.5vw, 4.35rem); }
  .login-side { padding: 70px 27px 45px; }
  .login-side > .language { top: 16px; right: 22px; }
}
@media (max-width: 680px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .sidebar .brand { margin-left: 0; }
  .sidebar-label { margin: 16px 0 8px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar button { width: auto; }
  .workspace-top { justify-content: start; min-height: 0; padding: 9px 15px; }
  .identity { margin-right: auto; }
}
.apply-link { display: inline-block; color: #1e40af; font-weight: 650; margin-top: 23px; }
.apply-page { min-height: 100vh; background: #f8fafc; }
.apply-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px max(24px,calc((100vw - 1120px)/2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand-link,.apply-header .language { text-decoration: none; }
.apply-grid { display: grid; align-items: start; grid-template-columns: .9fr 1.1fr; gap: clamp(25px,6vw,95px); max-width: 1190px; margin: auto; padding: clamp(28px,7vw,92px) clamp(20px,4vw,38px); }
.apply-intro { border-top: 4px solid #10b981; padding-top: 20px; }
.apply-intro h1 { font-size: clamp(2.6rem,5vw,5rem); line-height: 1.03; letter-spacing: -.06em; }
.apply-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-top: 18px; line-height: 1.6; max-width: 390px; }
.apply-intro a,.apply-panel a { display: inline-block; color: #1e40af; font-weight: 650; margin-top: 20px; }
.apply-panel { background: white; padding: clamp(18px,4vw,34px); border: 1px solid var(--line); border-radius: 14px; }
.apply-panel h2 { margin-bottom: 6px; }
.apply-panel .form-grid,.apply-panel form:not(.form-grid) { margin-top: 16px; }
.form-grid { display: grid; gap: 12px; }
.form-grid label,.admission-controls label,.admission-feedback label { display: block; font-weight: 650; font-size: .88rem; min-width: 0; }
.form-grid .check { display: flex; gap: 9px; align-items: start; font-weight: 500; line-height: 1.45; }
.form-grid .check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; }
textarea,select { display: block; width: 100%; margin-top: 8px; padding: 9px 11px; border: 1px solid #aab8c9; border-radius: 7px; background: white; color: inherit; font: inherit; font-weight: 400; min-height: 43px; }
textarea { resize: vertical; }
.form-grid input:not([type=checkbox]) { font-weight: 400; }
textarea:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #087f62; outline-offset: 3px; }
.form-grid .primary { justify-self: start; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 15px; }
.fact-list { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 680; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.apply-panel .muted { margin-top: 9px; }
.admission-controls { display: flex; margin-bottom: 13px; }
.admission-controls label { width: min(260px,100%); }
.pagination { display: flex; gap: 8px; justify-content: end; margin: 12px 0 18px; }
.admission-panel { padding: 15px; background: white; border: 1px solid var(--line); border-radius: 9px; min-width: 0; overflow-wrap: anywhere; }
.admission-panels { display: grid; gap: 9px; max-width: 860px; }
.admission-panel summary { font-weight: 700; cursor: pointer; }
.admission-panel p,.admission-panel form,.admission-panel button:not(form button) { margin-top: 12px; }
.lead-head { margin: 15px 0; max-width: 860px; }
.lead-head h2 { margin-top: 9px; }
.admission-feedback:not(:empty) { margin: 12px 0; padding: 12px; max-width: 860px; background: #e6f7ef; color: #145e45; border-radius: 7px; }
@media(max-width:720px){ .apply-grid { grid-template-columns: 1fr; } .form-grid.two { grid-template-columns: 1fr; } }
.program-terms { padding: 17px 20px; margin-bottom: 16px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.program-terms h2 { font-size: 1rem; }
.program-terms ul { margin-bottom: 0; padding-left: 18px; color: var(--muted); }
.work-panels { display: grid; gap: 12px; max-width: 920px; }
.work-panels fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; min-width: 0; padding: 12px; }
.work-panels details details { margin: 12px 0; background: #f8faff; }
.work-panels details h3 { margin-top: 15px; font-size: .96rem; }
.work-panels progress,.lead-head progress { width: min(100%, 320px); margin: 12px 0 0; accent-color: #1e40af; }
.work-files { display: grid; gap: 8px; list-style: none; padding: 0; }
.work-files li { overflow-wrap: anywhere; }
.work-files form[data-operation="scan"],.work-files form[data-operation="share"],.work-files form[data-operation="revoke"] { display: inline-flex; margin-right: 8px; }
.network-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.network-nav [aria-current="page"] { color: #fff; background: #1e40af; border-color: #1e40af; }
[data-network-content] { display: grid; gap: 12px; min-width: 0; }
[data-network-content] h2,[data-network-content] h3 { margin: 8px 0; }
[data-network-content] .table-wrap { margin: 9px 0; }
[data-network-content] .admission-panel { margin-block: 8px; }
.network-criterion { display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: end; gap: 12px; }
@media(max-width:580px) { .network-criterion { grid-template-columns: 1fr; } }
.network-lookup { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.network-lookup label { flex: 1 1 220px; }
.portal-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:18px}
.portal-metrics div,.portal-project{background:white;border:1px solid var(--line);border-radius:12px;padding:15px}
.portal-metrics strong{display:block;color:#164b9d;font-size:1.55rem}
.portal-metrics span,.portal-project .eyebrow{font-size:.85rem}
.portal-project{margin:0 0 14px}
.portal-project header,.portal-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.portal-project progress{display:block;height:10px;max-width:350px;width:100%;accent-color:#1e40af}
.portal-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px;margin-top:12px}
.portal-list{padding-inline-start:20px;display:grid;gap:9px}
.portal-form{margin-block:10px 16px}
.portal-filters{max-width:420px}
[data-portal-view]{display:grid;gap:10px;min-width:0}
.portal-messages{display:grid;gap:9px}
.portal-actions{justify-content:flex-start}
[data-fin-content] {display:grid;gap:12px;min-width:0;margin-top:14px}
[data-fin-content] [data-fin-lines] {display:grid;gap:13px}
.finance-line {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));align-items:end;gap:10px;border:1px solid var(--line);border-radius:8px}
[data-fin-content] .table-wrap {margin:8px 0}
[data-fin-content] form+form {margin-top:12px}
[data-admin-content] { display: grid; gap: 13px; min-width: 0; }
[data-admin-content] details form { margin-bottom: 13px; }
[data-admin-content] td { max-width: 33rem; white-space: normal; overflow-wrap: anywhere; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: white; color: #143a75; transform: translateY(calc(-100% - 16px)); }
.skip-link:focus { transform: none; }
.apply-panel input, .apply-panel select, .apply-panel textarea { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

[data-assistant], [data-assist-area] { display: grid; gap: 12px; min-width: 0; }
[data-assist-area] > button { justify-self: start; }
[data-assist-area] blockquote { margin: 6px 0 12px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
[data-assist-area] summary { overflow-wrap: anywhere; }
.sidebar { overflow-y: auto; }
@media (max-width: 680px) { .sidebar { overflow-y: visible; } }

@media (max-width: 800px) {
  .login-intro { background-image: linear-gradient(110deg, #0a182de8, #1128408c), url("brand/bridge-768.webp"); }
}
.sidebar button:focus-visible { outline-color: #62e8bc; }
.apply-panel { box-shadow: 0 14px 40px #1429380d; }
.setup-brand { display: block; width: 186px; height: auto; margin: 0 0 20px; }
.sidebar .brand { max-width: calc(100% - 7px); margin-right: 0; }
.sidebar .brand img { width: min(145px, 100%); min-width: 0; }
.portal-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 14px 0; }
.portal-roadmap li { display: grid; align-content: start; gap: 5px; padding: 8px; border-top: 3px solid #c3cfda; border-radius: 5px; background: #f3f6fa; overflow-wrap: anywhere; }
.portal-roadmap li[aria-current] { border-color: #1e40af; background: #ebf1ff; }
.portal-roadmap li[data-state=approved] { border-color: #087f62; background: #edf9f4; }
.portal-roadmap strong { font-size: .75rem; line-height: 1.25; }
.portal-roadmap span { font-size: .7rem; color: var(--muted); }
