:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #122039;
  background: #f2f5fa;
  --navy: #122039;
  --blue: #1149b7;
  --border: #a9b7ce;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - 72rem) / 2));
  background: var(--navy);
  color: white;
}
header a { color: inherit; font-weight: 650; text-decoration: none; }
main { max-width: 72rem; margin: 0 auto; padding: 1rem; }
#workspace { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: start; gap: 1rem; }
section, dialog { padding: clamp(1rem, 3vw, 2rem); background: white; border: 1px solid var(--border); border-radius: .6rem; }
#access { max-width: 34rem; margin: 2rem auto; }
h1, h2 { margin-top: 0; line-height: 1.2; }
nav { display: grid; gap: .5rem; }
nav a { color: var(--navy); border-radius: .35rem; padding: .65rem .8rem; }
nav a[aria-current] { color: white; background: var(--blue); }
form { display: grid; gap: 1rem; max-width: 43rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, textarea, select, button {
  color: var(--navy);
  font: inherit;
  padding: .55rem .7rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: .35rem;
}
button { cursor: pointer; justify-self: start; }
button:disabled { cursor: wait; opacity: .66; }
.primary { color: white; background: var(--blue); border-color: var(--blue); }
:focus-visible { outline: 3px solid #1376ef; outline-offset: 3px; }
textarea { resize: vertical; }
dialog { width: min(43rem, calc(100vw - 2rem)); }
dialog::backdrop { background: #12203985; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem .9rem; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 38rem) {
  #workspace { grid-template-columns: minmax(0, 1fr); }
  nav { display: flex; flex-wrap: wrap; }
  dl { grid-template-columns: minmax(0, 1fr); }
}
