:root {
  color-scheme: light;
  --ink: #252b30;
  --paper: #f7f6f0;
  --line: #d7dbd8;
  --muted: #505b5d;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #33383d; color: #fff; }
.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.brand-row { min-height: 92px; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.brand-row img { display: block; width: min(40vw, 185px); max-height: 80px; object-fit: contain; }
.brand-row form { margin: 0; }
.brand-row button { border: 1px solid #a6b3b6; background: transparent; }
main { padding-block: 1.75rem 3rem; }
h1 { margin: .35rem 0 1rem; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: 1.2rem; }
p { line-height: 1.55; overflow-wrap: anywhere; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1d765d; outline-offset: 3px; }
.back { display: inline-flex; align-items: center; min-height: 44px; }
.intro, .demo-note, .meta { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.tile, .panel { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.tile { display: flex; justify-content: space-between; align-items: center; min-height: 68px; font-weight: 700; text-decoration: none; }
.tile:hover { border-color: #48645b; }
.panel { margin-block: .85rem; }
.narrow { max-width: 40rem; }
.notice { border: 1px solid #58906e; border-radius: .5rem; background: #e3f3e9; padding: .8rem 1rem; overflow-wrap: anywhere; }
form { display: grid; gap: .85rem; margin-block: .8rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, select, textarea, button { font: inherit; }
input:not([type=radio], [type=checkbox]), select, textarea {
  min-height: 48px; width: 100%; color: var(--ink); padding: .55rem .7rem; border: 1px solid #9da7a5; border-radius: .4rem; background: #fff;
}
textarea { resize: vertical; }
button { min-height: 48px; border: 0; border-radius: .45rem; background: #33383d; color: #fff; font-weight: 650; cursor: pointer; padding: .6rem 1rem; justify-self: start; }
fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: .45rem; padding: .6rem; }
legend { font-weight: 650; }
.choice, .options label { display: flex; gap: .45rem; align-items: center; min-height: 48px; }
.choice input, .options input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: #293b34; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.options label { cursor: pointer; padding: 0 .65rem; border-radius: .4rem; }
.options label:has(:checked) { outline: 2px solid currentColor; outline-offset: -3px; }
.low { --tone: #358156; --tag: #e3f3e9; --tag-ink: #245e3d; }
.medium { --tone: #d38a00; --tag: #fff1d2; --tag-ink: #704700; }
.high { --tone: #c62828; --tag: #fde4e4; --tag-ink: #8a1717; }
.pass { --tone: #17613b; --tag: #17613b; --tag-ink: #fff; }
.fail { --tone: #a82625; --tag: #a82625; --tag-ink: #fff; }
.record { border-inline-start: 4px solid var(--tone); }
.pill, .options label { color: var(--tag-ink); background: var(--tag); }
.pill { border-radius: .35rem; padding: .3rem .5rem; font-size: .85rem; font-weight: 700; }
.record-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; }
.results { padding-left: 1.15rem; line-height: 2.15; }
.sample { display: block; width: min(100%, 25rem); margin-top: .5rem; }
summary { cursor: pointer; min-height: 44px; padding-block: .55rem; font-weight: 650; }
@media (max-width: 550px) {
  button { width: 100%; }
  main { padding-top: 1rem; }
}
.tile small { display: block; margin-top: .35rem; color: var(--muted); font-size: .86rem; }

header .wrap, .hub-frame { width: min(100% - 2rem, 85rem); }
.brand-row { min-height: 76px; }
.session-controls { display: flex; align-items: center; gap: 1rem; }
.profile strong, .profile small { display: block; }
.profile small { color: #d6dedd; }
.hub-frame { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.75rem; }
.hub-sidebar { padding-top: 2rem; }
.hub-sidebar nav { display: grid; gap: .35rem; }
.hub-sidebar a { display: flex; align-items: center; padding: .65rem .75rem; min-height: 44px; font-weight: 600; border-radius: .5rem; text-decoration: none; }
.hub-sidebar a:hover, .hub-sidebar a[aria-current] { background: #e4ece8; color: #183e34; }
.overview-intro { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.overview-intro p { margin: 0; color: var(--muted); }
.workspace-label { background: #e8ebe6; border-radius: .4rem; padding: .35rem .55rem; font-size: .85rem; overflow-wrap: anywhere; }
.dashboard-section { margin-top: 1.6rem; }
.dashboard-section h2 { margin-bottom: .65rem; }
.metric { display: grid; gap: .25rem; border: 1px solid var(--line); border-inline-start: 4px solid #a86a16; padding: 1rem; background: white; border-radius: .75rem; text-decoration: none; }
.metric-checks { border-inline-start-color: #a82625; }
.metric strong { font-size: 2rem; line-height: 1.2; }
.metric small, .activity small { color: var(--muted); }
.activity ul { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .55rem; }
.activity li + li { border-top: 1px solid var(--line); }
.activity a { display: grid; align-content: center; min-height: 44px; text-decoration: none; }
.activity a:hover strong { text-decoration: underline; }
.activity-status { padding: .3rem .5rem; border-radius: .35rem; white-space: nowrap; color: var(--tag-ink); background: var(--tag); font-size: .8rem; font-weight: 700; }
@media (max-width: 760px) {
  .hub-frame { display: block; }
  .hub-sidebar { padding-top: .65rem; }
  .hub-sidebar nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  .hub-sidebar a { font-size: .85rem; padding-inline: .5rem; }
  .profile { display: none; }
}

.employee-frame { max-width: 46rem; }
.view-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.view-options button { width: 100%; background: #fff; color: #33383d; border: 1px solid #a3afaa; min-height: 52px; }
.view-options button[aria-pressed="true"] { background: #33383d; color: white; }
.employee-tiles .tile { min-height: 112px; font-size: 1.2rem; }
.employee-tiles small { font-size: 1rem; font-weight: 400; }
.install-help { margin-top: 1.5rem; }
@media (max-width: 550px) { .employee-tiles { grid-template-columns: 1fr; } }
