:root {
  color-scheme: light;
  --navy: #14264b;
  --royal: #244eb6;
  --royal-hover: #193c96;
  --muted: #4a5e7d;
  --border: #c4d0e4;
  --surface: #f3f6fb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--surface);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
}
.top { border-bottom: 1px solid #dbe4f3; background: #fff; }
.top-inner { max-width: 72rem; margin: auto; min-height: 4.3rem; padding: .8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { color: var(--navy); font-weight: 800; font-size: 1.1rem; letter-spacing: .095em; }
main { max-width: 72rem; margin: auto; padding: clamp(2rem, 5vw, 4.5rem) 1.5rem 4rem; }
.intro { max-width: 45rem; margin-bottom: 2.25rem; }
.intro > p:last-child { color: var(--muted); margin: .7rem 0 0; }
.environment { color: var(--royal); font-size: .875rem; font-weight: 750; letter-spacing: .08em; margin: 0 0 .58rem; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.043em; font-weight: 760; }
h2 { margin: 0 0 .78rem; font-size: 1.25rem; letter-spacing: -.022em; line-height: 1.3; }
p { line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); align-items: start; gap: 1.3rem; }
.workspace.intake-workspace { grid-template-columns: minmax(0, 44rem); }
.panel-stack { display: grid; gap: 1rem; }
.card {
  min-width: 0; padding: clamp(1.25rem, 3.1vw, 2.2rem); border-radius: 1rem;
  border: 1px solid #dbe4f3; background: #fff;
  box-shadow: 0 .3rem 1.25rem rgb(20 38 75 / .045);
}
.login { max-width: 44rem; }
.side-card { padding: 1.35rem; transition: transform 180ms ease; }
@media (hover: hover) { .side-card:hover { transform: translateY(-2px); } }
.side-card h2 { font-size: 1rem; }
.side-card p { margin: .4rem 0 0; }
.issuer { color: var(--royal); font-weight: 750; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .45rem 1rem; }
fieldset { margin: 1.1rem 0 0; padding: .9rem 0 1rem; min-inline-size: 0; border: 0; border-bottom: 1px solid #dee7f4; }
legend { padding: 0; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .9rem; }
.address-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.span-two { grid-column: span 2; }
label { display: grid; gap: .35rem; align-content: start; min-inline-size: 0; font-size: .9rem; font-weight: 640; }
input, select, button { font: inherit; }
input, select {
  color: var(--navy); border: 1px solid var(--border); border-radius: .55rem;
  background: #fff; width: 100%; min-width: 0; min-height: 2.75rem; padding: .6rem .65rem;
}
select {
  appearance: none; padding-right: 2rem;
  background: #fff linear-gradient(45deg, transparent 50%, var(--royal) 50%) calc(100% - 1.05rem) 52% / .32rem .32rem no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, var(--royal) 50%), linear-gradient(135deg, var(--royal) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - .73rem) 52%;
  background-size: .32rem .32rem; background-repeat: no-repeat;
}
::placeholder { color: #5a6d8d; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.hint { color: var(--muted); margin: .65rem 0 0; font-size: .9rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.15rem; }
button {
  color: #fff; background: var(--royal); border: 1px solid transparent; border-radius: .63rem; cursor: pointer;
  padding: .65rem 1rem; min-height: 2.75rem; font-weight: 670;
}
button:hover { background: var(--royal-hover); }
button:disabled { opacity: .58; cursor: wait; }
.secondary { color: var(--royal); background: white; border-color: var(--border); }
.secondary:hover { background: #eaf1fe; }
.compact { font-size: .9rem; }
.notice { border: 1px solid #e0b1af; background: #fff1ef; color: #802524; padding: .8rem 1rem; border-radius: .7rem; margin: 0 0 1rem; }
dl { margin: .95rem 0; display: grid; grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr); column-gap: .9rem; row-gap: .65rem; }
dt { font-weight: 680; }
dd { margin: 0; overflow-wrap: anywhere; }
.status { width: fit-content; margin: 0 0 .65rem; padding: .22rem .6rem; border-radius: .5rem; background: #dff4e6; color: #1a5b39; font-size: .875rem; font-weight: 730; }
ul { list-style: none; padding: 0; margin: 0; }
li { border-top: 1px solid #e2e9f5; margin-top: .72rem; padding-top: .72rem; }
li .status { margin: .35rem 0 0; }
.protocol { overflow-wrap: anywhere; font-size: .9rem; font-variant-numeric: tabular-nums; }
#intake-login { max-width: 24rem; }
#intake-history summary { cursor: pointer; overflow-wrap: anywhere; padding-block: .35rem; }
@media (max-width: 49rem) { .workspace { grid-template-columns: 1fr; } }
@media (max-width: 31rem) {
  main { padding: 1.35rem 1rem 2rem; }
  .top-inner { min-height: 3.5rem; padding: .35rem 1rem; }
  .intro { margin-bottom: 1.1rem; }
  h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .intro > p:last-child { margin-top: .45rem; font-size: .9rem; }
  .card { padding: 1rem; }
  .fields { column-gap: .6rem; }
  .address-fields { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .mobile-wide { grid-column: 1 / -1; }
  input, select { min-height: 3rem; font-size: 1rem; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .actions button { min-height: 3rem; }
}
@media (max-width: 22rem) {
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .side-card { transition: none; } .side-card:hover { transform: none; } }
