:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #183348;
  background: #f4f7f9;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 90% -10%, #d8f0e9 0, transparent 32rem), #f4f7f9; line-height: 1.55; }
a { color: #075c7d; font-weight: 650; text-underline-offset: .17em; }
a:hover { color: #03445f; }
.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .7rem 1rem; background: #fff; border-radius: .5rem; box-shadow: 0 5px 20px #001c2d44; }
.skip-link:focus { top: 1rem; }

.site-header { color: #f8fbff; background: #0a3048; box-shadow: 0 2px 16px #0a304822; }
.header-inner { display: flex; width: min(74rem, calc(100% - 2.5rem)); min-height: 4.9rem; margin: auto; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand:hover { color: #fff; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: -.015em; }
.brand small { color: #bdd1de; font-size: .73rem; font-weight: 500; }
.brand-mark { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid #75d6bd; border-radius: .7rem; background: linear-gradient(145deg, #0e6d78, #1ea576); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.pilot-badge { padding: .27rem .56rem; border: 1px solid #55758a; border-radius: 99rem; color: #c7dae4; font-size: .73rem; font-weight: 700; }
.header-link { padding: .48rem .78rem; border: 1px solid #6d97ab; border-radius: .48rem; color: #fff; font-size: .88rem; text-decoration: none; }
.header-link:hover { border-color: #b7e3d4; color: #fff; background: #16475f; }

main { width: min(74rem, calc(100% - 2.5rem)); margin: 2.5rem auto 3.5rem; }
section { margin: 1.2rem 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #e0e8ed; border-radius: 1rem; background: #fff; box-shadow: 0 10px 28px #1833480b; }
h1, h2, h3 { margin: 0 0 .55rem; color: #102f44; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(1.65rem, 4vw, 2.7rem); }
h2 { margin-top: .5rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
h3 { font-size: 1rem; }
p { margin: .45rem 0 1rem; }

.hero { position: relative; overflow: hidden; padding: clamp(1.8rem, 5vw, 4.2rem); border: 0; background: linear-gradient(125deg, #0a3048, #0d5269 62%, #128264); color: #f8fbff; box-shadow: 0 22px 44px #0630442e; }
.hero::after { position: absolute; width: 21rem; height: 21rem; right: -7rem; bottom: -11rem; border: 2.4rem solid #65d6b950; border-radius: 50%; content: ""; }
.eyebrow { display: inline-flex; margin-bottom: 1rem; color: #a9e7d2; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 17ch; color: #fff; }
.lede { max-width: 48rem; margin-top: 1rem; color: #d4e5eb; font-size: clamp(1rem, 2vw, 1.14rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.button-link, button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .58rem; background: #087b75; color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button-link:hover, button:hover { color: #fff; background: #05645f; box-shadow: 0 6px 15px #0a545033; transform: translateY(-1px); }
.button-link.secondary { border-color: #c0d5df; background: #fff; color: #0c506b; }
.button-link.secondary:hover { background: #e9f5f1; color: #073e56; }
.hero .button-link { position: relative; z-index: 1; background: #fff; color: #075c69; }
.hero .button-link.secondary { border-color: #84aebe; background: transparent; color: #fff; }
.hero .button-link.secondary:hover { background: #ffffff18; }

.journey { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.journey-intro p { color: #557080; }
.journey-list { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.journey-list li { position: relative; min-height: 3.75rem; padding: .75rem .8rem .75rem 3.6rem; border-radius: .7rem; background: #f4f8f8; color: #415c6c; }
.journey-list li::before { position: absolute; left: .75rem; top: .75rem; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #d9f0e8; color: #056a62; content: counter(steps); counter-increment: steps; font-size: .85rem; font-weight: 800; }
.journey-list strong { display: block; color: #1a4153; font-size: .92rem; }

.admin-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; border: 0; background: linear-gradient(128deg, #113c53, #176c70); color: #eefafa; box-shadow: 0 15px 32px #0c435228; }
.admin-hero h1 { max-width: 20ch; color: #fff; }
.admin-hero p { max-width: 43rem; margin: .85rem 0 0; color: #cee4e3; }
.admin-hero .eyebrow { margin: 0 0 .8rem; color: #a4e6cf; }
.admin-actions { display: grid; gap: .65rem; min-width: 13rem; }
.admin-actions .button-link { white-space: nowrap; }
.workspace-card { padding: clamp(1.2rem, 3vw, 2rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: .5rem; }
.section-heading .eyebrow { margin: 0 0 .35rem; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 20rem; margin: 0; color: #607987; font-size: .9rem; }
.selection-heading { margin-top: 2rem; padding-top: 1.7rem; border-top: 1px solid #e0e9ec; }
.status-pill { display: inline-flex; align-items: center; min-height: 1.8rem; padding: .25rem .55rem; border-radius: 99rem; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.status-pending, .status-submitted, .status-draft { background: #fff2cb; color: #775300; }
.status-approved, .status-shared { background: #dff5e9; color: #126241; }
.status-rejected { background: #fde5e5; color: #9a3131; }
.logout-action { margin-top: 1.25rem; }

form:not(.inline) { display: grid; gap: .85rem; max-width: 43rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #e5edef; }
label { display: grid; gap: .38rem; color: #28475a; font-size: .91rem; font-weight: 760; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 2.75rem; padding: .62rem .7rem; border: 1px solid #b7c7d1; border-radius: .55rem; background: #fff; color: #183348; transition: border .15s ease, box-shadow .15s ease; }
input:focus, select:focus { outline: 0; border-color: #07867b; box-shadow: 0 0 0 3px #20a28c2b; }
input[type="file"] { padding: .46rem; }
form:not(.inline) button { justify-self: start; margin-top: .2rem; }
button { border: 0; }

table { width: 100%; margin-top: 1rem; overflow: hidden; border: 1px solid #dce6eb; border-radius: .75rem; border-collapse: separate; border-spacing: 0; background: #fff; }
th, td { padding: .85rem; border-bottom: 1px solid #e4ecef; text-align: left; vertical-align: top; }
th { background: #f1f6f7; color: #315465; font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.inline { display: inline-flex; align-items: end; gap: .5rem; margin: .15rem .25rem .15rem 0; padding: 0; border: 0; }
.inline label { min-width: 9rem; font-size: .75rem; }
.inline input, .inline select { min-height: 2.25rem; padding: .38rem .45rem; }
.inline button { min-height: 2.25rem; padding: .45rem .7rem; font-size: .82rem; }

.notice, .warn { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid; border-radius: .65rem; }
.notice { border-color: #9edbbb; background: #effaf2; color: #195938; }
.warn { border-color: #efd593; background: #fff9e9; color: #725016; }
small { color: #617786; }
footer { padding: 1.5rem max(1.25rem, calc((100% - 74rem)/2)); border-top: 1px solid #dbe5e9; color: #5c7482; font-size: .85rem; }
footer div { display: flex; justify-content: space-between; gap: 1rem; }
footer strong { color: #234559; }

@media (max-width: 44rem) {
  .header-inner, main { width: min(100% - 1.4rem, 74rem); }
  .header-inner { min-height: 4.35rem; }
  .pilot-badge { display: none; }
  .brand small { display: none; }
  main { margin-top: 1.2rem; }
  .hero { border-radius: .85rem; }
  .journey { grid-template-columns: 1fr; }
  .admin-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .admin-actions { min-width: 0; }
  .section-heading { display: grid; }
  table { display: block; overflow-x: auto; white-space: normal; }
  th, td { min-width: 8.5rem; }
  footer div { display: grid; }
}
