@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b1730;
  --blue: #1769e0;
  --blue-hover: #1257bc;
  --cyan: #24b8e6;
  --ink: #172033;
  --muted: #526074;
  --line: #dce3eb;
  --canvas: #f5f7fa;
  --selected: #eaf2ff;
  --positive: #137151;
  --positive-bg: #eaf7f0;
  --warning: #875006;
  --warning-bg: #fff5e5;
  --negative: #b42332;
  --negative-bg: #fff0f1;
  --rail-width: 15rem;
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }

button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

button:hover:enabled { background: var(--blue-hover); }
button.secondary {
  border-color: #b3bfcd;
  background: #fff;
  color: var(--ink);
}
button.secondary:hover:enabled {
  background: var(--canvas);
  border-color: var(--muted);
}
button:disabled {
  border-color: var(--line);
  background: #e9edf2;
  color: var(--muted);
  cursor: not-allowed;
}
:where(button, input, summary, a, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a { color: var(--blue); text-underline-offset: .2rem; }

.sr, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: #fff;
}

main { padding: clamp(2rem, 12vh, 8rem) 1rem 3rem; }
.logo { display: block; height: auto; max-width: 100%; }
.product {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.access {
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 12px 44px #0b173009;
}
.access-brand {
  display: grid;
  justify-items: start;
  gap: .6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.access-brand .logo { width: 12rem; }
.access-brand .product { color: var(--muted); }
.access h1, .page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.045em;
}
.access p {
  margin: .75rem 0 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}
.access-organization {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: 0 0 1.5rem;
  padding: .875rem 0;
  border-block: 1px solid var(--line);
}
.access-organization dd { margin: 0; font-size: .9rem; }
.access button { width: 100%; justify-content: space-between; padding-inline: 1.125rem; }
.access button span { font-family: Arial, sans-serif; font-size: 1.25rem; }

#workspace-header {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--rail-width);
  padding: 1.25rem 1rem;
  overflow-y: auto;
  background: var(--navy);
  color: #fff;
}
.workspace-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.125rem;
  border-radius: 8px;
  background: #fff;
}
.workspace-brand .logo { width: 10.5rem; }
.workspace-navigation { margin-top: 2rem; }
.workspace-navigation .product { margin: 0 .65rem .75rem; color: #c1d0e3; font-size: .65rem; }
nav { display: grid; gap: .2rem; }
nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .8rem;
  border-inline-start: 3px solid transparent;
  border-radius: 6px;
  color: #e4edfa;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { background: #182842; color: #fff; }
nav a[aria-current] { background: #20334f; border-color: var(--cyan); color: #fff; }
#workspace-header :focus-visible { outline-color: var(--cyan); }
.header-button {
  align-self: flex-start;
  margin: auto 0 0;
  border-color: #65778f;
  background: transparent;
  color: #fff;
}
.header-button:hover:enabled { background: #20334f; }
#workspace-header:not([hidden]) + main {
  margin-inline-start: var(--rail-width);
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 4rem;
}
#dashboard, #workspace-header:not([hidden]) + main > :is(#notice, #error) {
  width: min(100%, 70rem);
  margin-inline: auto;
}
.org { margin: 0 0 .35rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.page-heading, .section-heading, .actions, .pagination, .copy-field {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.page-heading, .section-heading { justify-content: space-between; flex-wrap: wrap; }
.page-heading { margin-bottom: 1.75rem; }
.section-heading h2, dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.card + section { margin-top: 1.5rem; }
#dashboard section { scroll-margin-top: 1rem; }
h3, h4 { margin: 1.25rem 0 .25rem; line-height: 1.4; letter-spacing: -.015em; }
h3 { font-size: 1.055rem; }
h4 { font-size: .95rem; }

.state {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 2rem;
  background: var(--canvas);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.state.good { background: var(--positive-bg); color: var(--positive); }
.state.warn { background: var(--warning-bg); color: var(--warning); }
.facts, .metrics { display: grid; gap: 1rem 1.5rem; margin: 1.25rem 0; }
.facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}
dt, .detail, .description, .hint, .pagination { color: var(--muted); }
dt { font-size: .8125rem; }
dd { margin: .2rem 0 0; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.metrics { grid-template-columns: repeat(2, minmax(0, 14rem)); }
.metrics div { padding: .8rem 1rem; border-inline-start: 2px solid var(--line); }
.metrics div:last-child { background: var(--selected); border-color: var(--blue); }
.metrics dd { color: var(--navy); font-size: 1.75rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.detail, .hint, .pagination { font-size: .85rem; }
.description { font-size: .94rem; }
.detail, .description, .hint { margin: .45rem 0 .9rem; overflow-wrap: anywhere; }
.description, .hint { max-width: 78ch; }
.hint { margin-top: .25rem; }
.actions { flex-wrap: wrap; margin: 1rem 0 0; }
.section-heading .actions, .actions .detail { margin: 0; }

fieldset { min-width: 0; padding: 0; border: 0; }
.provider-choices { display: flex; flex-wrap: wrap; gap: .7rem; margin: .9rem 0; }
.provider-choices label, .check { display: flex; align-items: center; gap: .65rem; }
.provider-choices label {
  min-height: 44px;
  padding: .6rem .9rem;
  border: 1px solid #b3bfcd;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
}
.provider-choices label:has(input:checked) {
  border-color: var(--blue);
  background: var(--selected);
  color: var(--navy);
}
.provider-choices input, .check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.check { align-items: flex-start; margin: 1rem 0; font-size: .9rem; }
.check input { margin-top: .25rem; }
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .35rem;
  margin: .75rem 0;
  font-size: .875rem;
  font-weight: 700;
}
.field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid #9caabc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
.field input[readonly] {
  background: var(--canvas);
  font-family: Consolas, monospace;
  font-size: .875rem;
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.copy-field { max-width: 48rem; gap: .5rem; }
.copy-field button { flex-shrink: 0; }
.provider-choices, details, .check, .fields { max-width: 55rem; }
details { margin: 1rem 0; padding: .3rem 0; border-block: 1px solid var(--line); }
details[open] { padding-bottom: 1rem; }
summary { padding: .65rem 0; cursor: pointer; color: var(--blue-hover); font-size: .9rem; font-weight: 700; }
.reminder-block + .reminder-block { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th { color: var(--muted); background: var(--canvas); font-size: .82rem; }
td, th { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; }
.pagination { justify-content: flex-end; flex-wrap: wrap; margin-top: .85rem; }
.pagination span { margin-inline-end: auto; }
.assignment-list { list-style: none; padding: 0; margin: 0; }
.assignment-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.assignment-text { min-width: min(100%, 14rem); flex: 1; }
.assignment-text strong, .assignment-text small { display: block; overflow-wrap: anywhere; }

#notice, #error, noscript p {
  max-width: 30rem;
  margin: 1rem auto;
  padding: .8rem 1rem;
  border-inline-start: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--selected);
  color: #1553a2;
  overflow-wrap: anywhere;
}
#error { border-color: var(--negative); background: var(--negative-bg); color: var(--negative); }
#workspace-header:not([hidden]) + main > :is(#notice, #error) { max-width: 70rem; }
dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 16px 48px #0b173022;
  overflow-wrap: anywhere;
}
dialog::backdrop { background: #0b1730a8; }
dialog .actions { justify-content: flex-end; }

@media (max-width: 55rem) {
  #workspace-header {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .8rem 1rem;
    padding: .85rem 1rem .5rem;
  }
  .workspace-brand { justify-self: start; padding: .25rem .55rem; }
  .workspace-brand .logo { width: 8.5rem; }
  .workspace-navigation { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .workspace-navigation .product { display: none; }
  nav { display: flex; flex-wrap: wrap; }
  nav a { padding: .5rem .7rem; border-inline: 0; border-bottom: 2px solid transparent; }
  .header-button { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  #workspace-header:not([hidden]) + main { margin: 0; padding: 1.75rem 1rem 3rem; }
  .field input, .field input[readonly] { font-size: 1rem; }
}

@media (max-width: 36rem) {
  main { padding-top: clamp(1.25rem, 7vh, 3rem); }
  .page-heading { align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
  .fields, .facts { grid-template-columns: 1fr; }
  .metrics { gap: .5rem; }
  .metrics div { padding: .5rem .7rem; }
  .metrics dt { font-size: .78rem; }
  .copy-field { align-items: stretch; flex-wrap: wrap; }
  .copy-field input { flex: 1 1 14rem; }
  nav a { font-size: .83rem; }
}

@media (max-width: 23rem) {
  .metrics { grid-template-columns: 1fr; }
}
