@font-face {
  font-family: Archivo;
  src: url("/assets/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --ink: #201e1d;
  --accent: #ec3013;
  --accent-dark: #ae1800;
  --tint: #fff2ef;
  --muted: #605d5d;
  --line: rgba(32, 30, 29, 0.4);
  --track: #d7d3d3;
  --shadow: 0 12px 32px #201e1d26;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 Archivo,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}
button,
a,
input,
select,
textarea {
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
h6,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 6px 0 0;
}
h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
}
h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
h6,
.caps {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
p {
  margin-bottom: 16px;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 12px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.stack > * + * {
  margin-top: 16px;
}
.spaced {
  margin-top: 24px;
}
.btn {
  border: 1px solid var(--line);
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: transparent;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.btn:hover {
  background: #201e1d0a;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 800;
}
.btn.primary:hover {
  background: #dd2b0f;
}
.btn.primary:active {
  background: var(--accent-dark);
}
.btn.ghost {
  border-color: transparent;
  color: var(--accent-dark);
  padding-left: 0;
  padding-right: 0;
}
.btn.ink {
  background: var(--ink);
  color: var(--bg);
}
.icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: none;
}
.tag {
  display: inline-block;
  border: 1px solid transparent;
  background: #eae7e7;
  padding: 2px 7px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.5;
}
.tag.accent {
  background: var(--tint);
  color: #7c1405;
}
.tag.outline {
  border-color: var(--line);
  background: transparent;
}
.bar {
  height: 6px;
  background: var(--track);
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
}
.app-header {
  height: 56px;
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.org {
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.avatar {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
}
.identity {
  line-height: 1.2;
}
.identity small {
  font-size: 11px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}
.nav {
  border-right: 2px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.nav-label {
  padding: 0 20px 10px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav button {
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  text-align: left;
  padding: 9px 16px;
  font-size: 14px;
  min-height: 36px;
}
.nav button:hover {
  background: #eae7e7;
}
.nav button.active {
  border-left-color: var(--accent);
  background: var(--surface);
  font-weight: 800;
}
.nav .signout {
  margin-top: 32px;
}
.main {
  min-width: 0;
  padding-bottom: 64px;
}
.pagehead {
  padding: 32px 40px 20px;
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.subline {
  margin-top: 6px;
  color: var(--muted);
}
.body {
  padding: 28px 40px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.split > .body {
  border-right: 2px solid var(--line);
}
aside {
  padding: 32px 24px;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  margin: 24px 0 0;
}
.section-title h6 {
  margin: 0;
}
.learning-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.learning-row h3 {
  font-size: 17px;
  margin: 0 0 2px;
}
.mini-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ruled {
  border-top: 2px solid var(--line);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--line);
}
.metric {
  padding: 20px 40px;
  border-right: 1px solid var(--line);
  text-align: left;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}
.metric:last-child {
  border-right: 0;
}
.metric .value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 4px 0 8px;
}
.metric.action .value {
  color: var(--accent-dark);
}
.metric p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
}
.table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th:first-child,
.table td:first-child {
  padding-left: 0;
}
.table tbody tr:hover {
  background: #201e1d0a;
}
.table .title {
  font-weight: 800;
}
.table .selected {
  background: var(--surface);
}
.table .disabled-row {
  opacity: 0.5;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 10px;
  min-height: 36px;
  outline-offset: 2px;
}
.filters .input {
  max-width: 300px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.field-error,
.error-text {
  color: var(--accent-dark);
  font-size: 13px;
}
.notice {
  background: var(--surface);
  padding: 16px;
  font-size: 13px;
}
.notice.error {
  border: 2px solid var(--accent);
  background: var(--tint);
}
.empty {
  padding: 40px 0;
  color: var(--muted);
}
.seg {
  display: inline-flex;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.seg button {
  border: 0;
  background: var(--bg);
  padding: 7px 12px;
  min-height: 34px;
}
.seg button.active {
  background: var(--accent);
  color: var(--bg);
}
.tabs {
  display: flex;
  gap: 28px;
  padding: 0 40px;
  border-bottom: 2px solid var(--line);
  overflow: auto;
}
.tabs button {
  padding: 14px 0 10px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom-color: var(--accent);
  font-weight: 800;
}
.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.meta-strip > div {
  padding: 10px 16px 0 0;
}
.meta-strip strong {
  display: block;
  font-weight: 600;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.mark {
  border: 2px solid var(--accent);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  line-height: 1;
  font-weight: 800;
}
.mark.complete {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.mark.blocked {
  background: var(--track);
  border-color: #9b9797;
  color: var(--muted);
}
.mark.not_required {
  border-color: #bab6b6;
  color: #7d7979;
}
.mark.review_pending {
  background: var(--tint);
  color: var(--accent-dark);
}
.check-label {
  flex: 1;
}
.check-label strong {
  display: block;
}
.check-state {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.module-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.module-row .num {
  color: #7d7979;
  font-weight: 800;
  width: 24px;
}
.hero {
  background: var(--ink);
  color: var(--bg);
  padding: 24px;
}
.hero .kicker {
  color: #ffc4b8;
}
.hero h2 {
  margin: 10px 0;
}
.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
}
.detail-panel {
  border-left: 2px solid var(--line);
  padding: 28px 24px;
}
.detail-panel h2 {
  margin: 12px 0;
}
.review-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}
.side-list {
  border-right: 2px solid var(--line);
}
.side-list button {
  display: block;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.side-list button.active {
  border-left-color: var(--accent);
  background: var(--surface);
}
.side-list button:hover {
  background: #eae7e7;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row .control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.setting-row input[type="number"] {
  width: 90px;
}
.toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  border: 2px solid var(--ink);
  position: relative;
  cursor: pointer;
  margin: 0;
  background: transparent;
  flex: none;
}
.toggle:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: var(--ink);
}
.toggle:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle:checked:after {
  left: 20px;
  background: var(--bg);
}
.dirtybar {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 25;
}
.dirtybar .btn {
  border-color: #fff8;
  color: var(--bg);
}
.wizard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 290px;
  min-height: calc(100vh - 175px);
}
.step-rail {
  border-right: 2px solid var(--line);
  padding: 20px 0;
}
.step-rail button {
  width: 100%;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  padding: 14px 28px;
  text-align: left;
  display: flex;
  gap: 20px;
}
.step-rail button.active {
  border-left-color: var(--accent);
  background: var(--surface);
  font-weight: 800;
}
.wizard-content {
  padding: 28px 32px;
}
.wizard-summary {
  border-left: 2px solid var(--line);
  padding: 28px 24px;
}
.keyval {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.keyval > span:first-child {
  color: var(--muted);
}
.wizard-footer {
  border-top: 2px solid var(--line);
  padding: 16px 32px;
  display: flex;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: var(--bg);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #2d2b2b80;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.dialog {
  background: var(--bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  width: 600px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
}
.dialog.wide {
  width: 900px;
}
.dialog h2 {
  margin: 0 0 18px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.dialog .consequence {
  padding: 14px;
  background: var(--surface);
  font-size: 13px;
  margin: 16px 0;
}
.dropzone {
  border: 2px dashed var(--line);
  padding: 28px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
}
.dropzone input {
  display: block;
  margin: 16px auto;
}
.stage-bars {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.stage-bars > span {
  flex: 1;
  border-top: 4px solid var(--track);
  padding-top: 7px;
  font-size: 12px;
}
.stage-bars > .active {
  border-color: var(--accent);
  font-weight: 800;
}
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 48px);
}
#toast:empty {
  display: none;
}
.login {
  max-width: 480px;
  margin: 80px auto;
  padding: 32px;
  border-top: 2px solid var(--line);
}
.login h1 {
  margin-bottom: 24px;
}
.login .btn {
  min-height: 44px;
}
.login details {
  margin-top: 24px;
}
.assessment-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 2px solid var(--line);
}
.timer {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.timer.low {
  color: var(--accent-dark);
}
.assessment-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 90px);
}
.question-nav {
  border-right: 2px solid var(--line);
  padding: 28px 24px;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 8px;
}
.question-grid button {
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
}
.question-grid .answered {
  background: var(--ink);
  color: var(--bg);
}
.question-grid .current {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.question-body {
  max-width: 880px;
  padding: 40px 48px;
  width: 100%;
}
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  margin: 10px 0;
  cursor: pointer;
  min-height: 52px;
}
.answer:has(input:checked) {
  background: var(--tint);
  border-color: var(--accent);
}
input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex: none;
}
.question-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.question-card textarea {
  min-height: 70px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.editor-banner {
  padding: 12px 40px;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}
.editor-body {
  padding: 28px 40px;
}
.editor-body textarea.content {
  min-height: 180px;
}
.mobile-tabs,
.mobile-back {
  display: none;
}
.skeleton {
  height: 20px;
  background: var(--surface);
  margin: 16px 0;
  animation: pulse 1s alternate infinite;
}
@keyframes pulse {
  to {
    opacity: 0.4;
  }
}
.file-hidden {
  display: none;
}
.chip {
  padding: 4px 8px;
  background: var(--surface);
  font-size: 12px;
}
.text-right {
  text-align: right;
}
.ineligible {
  background: #f8f4f4;
}
.save-state {
  font-size: 12px;
  color: var(--muted);
}
.scale {
  display: flex;
  gap: 1px;
  background: var(--line);
  width: max-content;
  max-width: 100%;
}
.scale label {
  background: var(--surface);
  min-width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.scale label:has(input:checked) {
  background: var(--accent);
  color: var(--bg);
}
.scale input {
  position: absolute;
  opacity: 0;
}
.code {
  word-break: break-all;
  font-family: monospace;
}
.list-action {
  color: var(--accent-dark);
  font-weight: 800;
}
.danger {
  color: var(--accent-dark);
}
@media (max-width: 1000px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split > .body {
    border-right: 0;
  }
  .split > aside {
    border-top: 2px solid var(--line);
  }
  .learning-row {
    grid-template-columns: 1.5fr 1fr auto;
  }
  .learning-row > .progress-cell {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .metric {
    padding: 20px;
  }
  .panel-split {
    grid-template-columns: 1fr;
  }
  .detail-panel {
    border-left: 0;
    border-top: 2px solid var(--line);
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .app-header {
    height: 52px;
    padding: 10px 16px;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .org {
    font-size: 11px;
  }
  .identity {
    display: none;
  }
  .layout {
    display: block;
    min-height: calc(100vh - 52px);
  }
  .nav {
    display: none;
  }
  .main {
    padding-bottom: 90px;
  }
  .pagehead {
    padding: 24px 20px 20px;
    align-items: flex-start;
  }
  .pagehead .row {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 22px;
  }
  .body {
    padding: 20px;
  }
  .split > aside {
    padding: 24px 20px;
  }
  .learning-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
  }
  .learning-row > .learning-title {
    width: 100%;
  }
  .learning-row > .deadline-cell {
    flex: 1;
  }
  .learning-row > .progress-cell {
    width: 100%;
    order: 3;
  }
  .learning-row > .btn {
    min-height: 44px;
  }
  .btn {
    min-height: 44px;
  }
  .mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--line);
    background: var(--bg);
    z-index: 30;
  }
  .mobile-tabs button {
    border: 0;
    border-top: 4px solid transparent;
    background: transparent;
    min-height: 58px;
    font-size: 12px;
    padding: 8px 4px;
  }
  .mobile-tabs button.active {
    border-top-color: var(--accent);
    font-weight: 800;
  }
  .mobile-back {
    display: inline-flex;
  }
  .meta-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .check-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .check-label {
    min-width: 180px;
  }
  .check-state {
    margin-left: 34px;
  }
  .check-row .btn {
    margin-left: 34px;
    width: calc(100% - 34px);
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .metric .value {
    font-size: 34px;
  }
  .two,
  .three {
    grid-template-columns: 1fr;
  }
  .dialog {
    padding: 24px 20px;
    max-height: 90vh;
  }
  .modal-backdrop {
    padding: 16px;
    align-items: flex-end;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  .assessment-header {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .assessment-header .title {
    width: 100%;
    font-size: 16px;
  }
  .assessment-header .desktop-save {
    display: none;
  }
  .assessment-header .timer {
    font-size: 18px;
  }
  .assessment-layout {
    display: block;
  }
  .question-nav {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .question-nav h6 {
    display: none;
  }
  .question-grid {
    display: flex;
    overflow: auto;
  }
  .question-grid button {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  .question-body {
    padding: 24px 20px;
  }
  .answer {
    min-height: 56px;
  }
  .tabs {
    padding: 0 20px;
  }
  .login {
    margin: 24px auto;
    padding: 24px 20px;
  }
  .table-stack thead {
    display: none;
  }
  .table-stack tr {
    display: block;
    border-bottom: 2px solid var(--line);
    padding: 12px 0;
  }
  .table-stack td {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    border: 0;
    padding: 6px 0;
  }
  .table-stack td:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
  }
  .hero {
    padding: 24px 20px;
  }
}
.nav button {
  line-height: 1.2;
  min-height: 35px;
}
.mobile-training-header {
  display: none;
}
.filters > .field {
  margin: 0;
  max-width: 180px;
}
.filters > .meta {
  margin-left: auto;
}
.people-body {
  padding-top: 20px;
}
@media (max-width: 700px) {
  body.participant[data-page="training"] .app-header {
    display: none;
  }
  .mobile-training-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    padding: 4px 16px;
    border-bottom: 2px solid var(--line);
  }
  body.participant[data-page="training"] .pagehead {
    padding: 0;
    border-bottom: 2px solid var(--line);
  }
  body.participant[data-page="training"] .pagehead h1,
  body.participant[data-page="training"] .pagehead .btn {
    display: none;
  }
  body.participant[data-page="training"] .meta-strip {
    margin: 0;
    border: 0;
    padding: 14px 20px;
  }
  body.participant[data-page="training"] .meta-strip > div:nth-child(2),
  body.participant[data-page="training"] .meta-strip > div:nth-child(4) {
    display: none;
  }
  .check-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 8px 12px;
    padding: 20px 0;
  }
  .check-label {
    min-width: 0;
  }
  .check-label strong {
    font-size: 16px;
  }
  .check-label .meta {
    font-size: 14px;
    margin-top: 6px;
  }
  .check-state {
    margin: 0;
    grid-column: 3;
    grid-row: 1;
    max-width: 90px;
    text-align: right;
    font-size: 11px;
    font-weight: 800;
  }
  .check-row .btn {
    grid-column: 2 / 4;
    margin: 0;
    width: max-content;
    max-width: 100%;
    background: transparent;
    color: var(--accent-dark);
    border-color: transparent;
    padding-left: 0;
  }
  .check-state {
    color: var(--accent-dark);
  }
}
.popover {
  position: fixed;
  z-index: 100;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 210px;
}
.popover .btn {
  display: flex;
  width: 100%;
  border: 0;
  min-height: 40px;
  text-align: left;
}
.popover .btn:hover {
  background: var(--surface);
}
@media (max-width: 700px) {
  .app-header > .meta {
    display: none;
  }
  .app-header .org {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-header .btn {
    font-size: 12px;
    min-height: 44px;
  }
  .login {
    min-width: 0;
  }
  .popover {
    max-width: calc(100vw - 40px);
  }
}

/* POSH visual learning: brief motion, keyboard controls and reduced-motion support. */
.posh-learning{max-width:1080px;margin:auto;--posh-ink:#133f3a;--posh-accent:#256f63}.posh-hero{background:linear-gradient(120deg,#123d37,#286b5a);border-radius:22px;color:#fff;padding:36px;display:flex;align-items:center;gap:24px;overflow:hidden}.posh-hero h2{font-size:clamp(24px,3vw,38px);line-height:1.12;margin:14px 0}.posh-hero p{color:#e1f3e8;font-size:18px}.posh-hero span{font-size:12px;color:#d2e9df}.posh-eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700}.posh-shield{width:150px;min-width:120px;color:#bfe4bd;animation:posh-in .8s ease-out both}.posh-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.posh-cards article{border:1px solid #d4e2db;background:#f4f8f3;padding:22px;border-radius:16px;animation:posh-in .45s ease-out both;animation-delay:calc(var(--order)*.12s)}.posh-number{color:#327465;font-size:13px;font-weight:700}.posh-cards h3{margin:16px 0 8px;color:#16463d}.posh-cards p{font-size:14px;line-height:1.65}.posh-journey{display:flex;gap:12px;padding:20px 0;align-items:stretch}.posh-journey>div{display:flex;align-items:center;gap:10px;flex:1;border-bottom:3px solid #a3c8b5;padding-bottom:15px;animation:posh-in .5s ease-out both;animation-delay:calc(var(--order)*.15s)}.posh-journey span{background:#19594b;color:white;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}.posh-journey strong{font-size:13px}.posh-reading{font-size:16px;line-height:1.9;max-width:780px;margin:20px auto 36px}.posh-reading p:first-child{padding:20px;background:#f1f5fb;border-left:3px solid #6b87a9;border-radius:8px}.posh-scenario{background:#fcf5e8;border:1px solid #e9d5b2;border-radius:18px;padding:28px;margin:28px 0}.posh-scenario h3{font-size:22px;line-height:1.45}.posh-options{display:grid;gap:10px;margin:20px 0}.posh-options .btn{text-align:left;white-space:normal;height:auto;min-height:48px;justify-content:flex-start;padding:14px 18px}.posh-feedback{background:#fff;border-left:4px solid #347565;padding:20px;border-radius:10px;animation:posh-in .3s ease-out}.posh-preview-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.posh-preview-nav .btn{font-size:12px;white-space:normal;height:auto;min-height:40px}.question-body:has(.posh-assessment){animation:posh-in .35s ease-out}.posh-assessment{border-radius:16px;background:linear-gradient(120deg,#eef6f1,#f6f0e4);padding:20px;margin:20px 0;color:#16463d;display:flex;align-items:center;gap:15px}.posh-assessment span{font-size:28px}.posh-assessment p{margin:5px 0;font-size:13px}.answer:has(input:checked){transition:background .2s,border-color .2s}.posh-learning .btn:focus-visible{outline:3px solid #497dba;outline-offset:3px}@keyframes posh-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.posh-hero{padding:24px}.posh-shield{display:none}.posh-cards{grid-template-columns:1fr}.posh-journey{flex-direction:column}.posh-scenario{padding:20px}}@media(prefers-reduced-motion:reduce){.posh-learning *,.question-body{animation:none!important;transition:none!important}}

.brand-logo{display:inline-block;max-width:130px;max-height:44px;object-fit:contain;vertical-align:middle;margin-right:12px;background:#fff;padding:3px;border-radius:4px}.assessment-header .brand-logo{max-width:100px;max-height:36px}.btn.primary{color:var(--brand-foreground,#fff)}.brand-logo+strong{vertical-align:middle}@media(max-width:700px){.app-header .brand-logo{max-width:76px;max-height:32px}.app-header .brand{font-size:15px;max-width:160px;overflow:hidden;text-overflow:ellipsis}}

/* Standing UI rule: controls fit their expected content, never the viewport. */
.field{width:min(100%,28rem);max-width:100%;min-width:0}
.field--number{width:min(100%,10rem)}
.field--date{width:min(100%,12rem)}
.field--datetime{width:min(100%,17rem)}
.field--colour{width:min(100%,11rem)}
.field--short{width:min(100%,18rem)}
.field--account{width:min(100%,24rem)}
.field--standard{width:min(100%,24rem)}
.field--code{width:min(100%,8rem)}
.field--compact{width:min(100%,12rem)}
.field--title{width:min(100%,32rem)}
.field--long{width:min(100%,36rem)}
.field--question{width:min(100%,60ch)}
.field--notes{width:min(100%,64ch)}
.field--prose{width:min(100%,78ch)}
.field--select{width:min(100%,var(--select-measure,28ch))}
.field>input,.field>select,.field>textarea{max-width:100%;min-width:0;box-sizing:border-box}
.field>input[type="color"]{width:5rem;height:2.5rem;padding:4px;border:1px solid var(--line);background:var(--surface)}
.field:has(input[type="file"]){width:min(100%,28rem)}
.field input[type="file"]{display:block;width:100%;max-width:100%;overflow:hidden}
.field:has(#written-answer){width:min(100%,78ch)}
textarea:not(.field textarea){max-width:78ch}
input[type="number"]:not([style]){max-width:10rem}
input[type="date"]{max-width:12rem}
input[type="datetime-local"]{max-width:17rem}
.setting-row .control{max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end}
.setting-row .control .field{margin-bottom:0}
.question-card .input{width:min(100%,56ch);flex:0 1 56ch;min-width:0}
form.two,form.three{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),max-content));justify-content:start;align-items:start;column-gap:24px}
#ai-form{grid-template-columns:minmax(0,36rem) minmax(0,26rem) max-content;align-items:end;max-width:fit-content}
#ai-form .field{margin-bottom:18px}
#ai-form>div:last-child{min-width:0}
.login .field{width:min(100%,24rem)}
#policies-form>input,#policies-form>select{max-width:28rem}
@media(max-width:1100px){#ai-form{grid-template-columns:minmax(0,36rem) minmax(0,26rem)}#ai-form>div:last-child{grid-column:1/-1}}
@media(max-width:700px){form.two,form.three,#ai-form{grid-template-columns:minmax(0,1fr);max-width:100%;width:100%}.setting-row{flex-wrap:wrap;gap:12px}.setting-row .control{justify-content:flex-start;flex-basis:auto}.field--select{width:min(100%,var(--select-measure,28ch))}.question-card .input{flex:1 1 12rem}.field--prose,.field--notes,.field--question{width:100%}}

.field>input[type="url"],.field>input[type="tel"]{width:100%;border:1px solid var(--line);background:var(--surface);padding:8px 10px;min-height:36px}

.review-layout{grid-template-columns:var(--sidebar-width,340px) minmax(0,1fr)}
.review-layout>*,.editor-layout>*,.panel-split>*,.split>*,.two>*,.three>*{min-width:0}
#policies-form{width:100%;min-width:0}
.notice{overflow-wrap:anywhere}
.pagehead{flex-wrap:wrap}
@media(max-width:700px){.review-layout,.editor-layout{grid-template-columns:minmax(0,1fr)}.review-layout>.side-list,.editor-layout>.side-list{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}.review-layout>.side-list button,.editor-layout>.side-list button{width:auto;padding:12px 16px}.setting-row>.grow{min-width:0;flex-basis:100%}.app-header .org{display:none}}

@media(max-width:700px){body.management .nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:0}body.management .nav .nav-label{display:none}body.management .nav button{flex:0 0 auto;width:auto;min-height:44px;padding:10px 14px;border-left:0;border-bottom:3px solid transparent}body.management .nav button.active{border-bottom-color:var(--accent)}}

/* Structured day lists keep each numeric value compact and independently valid. */
.number-list { max-width: 30rem; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 12px; margin: 12px 0; }
.number-list input { width: 8rem; max-width: 100%; }
.number-list .row { gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.field select[multiple] { height: auto; min-height: 9rem; }
