:root {
  color-scheme: light;
  --ink: #17241f;
  --muted: #5f6e67;
  --surface: #ffffff;
  --surface-soft: #f5f7f6;
  --line: #dce4e0;
  --brand: #175b48;
  --brand-strong: #0d4637;
  --brand-soft: #e4f1ec;
  --focus: #1967d2;
  --danger: #a3322c;
  --warning: #8a5a00;
  --success: #176b45;
  /* Transitional tokens used by frozen Guardian/integration templates. */
  --opj-primary: var(--brand);
  --opj-border: var(--line);
  --opj-bg: var(--surface-soft);
  --opj-text: var(--ink);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(26, 48, 40, 0.07);
}

.pilot-one-landing { overflow: hidden; }

.pilot-one-service {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.25rem;
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.pilot-one-service span,
.pilot-one-service strong { display: block; }

.pilot-one-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 -1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--brand-soft);
}

.pilot-one-next h2,
.pilot-one-next p { margin-bottom: .25rem; }

.pilot-one-next .opj-btn { flex: 0 0 auto; }

.pilot-one-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem 0 1rem;
}

.pilot-one-line article {
  display: flex;
  gap: .75rem;
  min-width: 0;
}

.pilot-one-line__number {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 780;
}

.pilot-one-line h2 { margin: .2rem 0 .3rem; font-size: 1rem; }
.pilot-one-line p { margin: 0; color: var(--muted); font-size: .9rem; }

.pilot-one-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pilot-one-footer p { max-width: 65ch; margin: 0; color: var(--muted); }
.pilot-one-footer a { flex: 0 0 auto; font-weight: 700; }

@media (max-width: 700px) {
  .pilot-one-service,
  .pilot-one-line { grid-template-columns: 1fr; }
  .pilot-one-next,
  .pilot-one-footer { align-items: stretch; flex-direction: column; }
  .pilot-one-next { margin-inline: -1rem; padding-inline: 1rem; }
  .pilot-one-next .opj-btn { width: 100%; }
}

* { box-sizing: border-box; }

html { background: var(--surface-soft); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-strong); text-underline-offset: 0.18em; }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.skip-link:focus { top: 1rem; }

.opj-top {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0 max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(220, 228, 224, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.2rem;
}

.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 0.25rem; flex: 1; }

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.session { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.session form { margin: 0; }
.session__role { color: #74827c; }

.account-menu { position: relative; }
.account-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .45rem;
  border-radius: 11px;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--brand-soft); }
.account-menu__avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
}
.account-menu__label { display: none; }
.account-menu__panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + .45rem);
  right: 0;
  width: min(280px, calc(100vw - 2rem));
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.account-menu__identity { display: grid; margin: 0 0 .45rem; padding: .35rem .45rem .65rem; border-bottom: 1px solid var(--line); }
.account-menu__identity strong { overflow-wrap: anywhere; }
.account-menu__identity span { color: var(--muted); font-size: .8rem; }
.account-menu__action {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .55rem .65rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 670;
  text-align: left;
  text-decoration: none;
}
.account-menu__action:hover { background: var(--brand-soft); }
.account-menu__logout { color: var(--muted); }

.test-rights-menu { position: relative; }
.test-rights-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: var(--brand-strong);
  cursor: pointer;
  white-space: nowrap;
}
.test-rights-menu summary:hover, .test-rights-menu[open] summary { background: var(--brand-soft); }
.test-rights-menu__panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.test-rights-menu__identity { margin: 0 0 0.55rem; font-weight: 680; }
.test-rights-menu label { margin-top: 0; font-size: 0.82rem; }
.test-rights-menu select { min-height: 44px; }
.test-rights-menu noscript .opj-btn { width: 100%; margin-top: 0.6rem; }
.test-rights-menu__logout { margin-top: 0.55rem !important; border-top: 1px solid var(--line); padding-top: 0.35rem; }
.test-rights-menu__logout .text-button { width: 100%; justify-content: flex-start; text-align: left; }

.text-button {
  min-height: 44px;
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 650;
}

.opj-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem) 3rem;
}

.opj-messages { list-style: none; margin: 0 0 1rem; padding: 0; }
.message { padding: 0.8rem 1rem; border: 1px solid #bdd9cd; border-radius: 12px; background: #eaf5ef; }
.message--error { color: #781f1a; border-color: #e0b5b2; background: #fff0ef; }
.message + .message { margin-top: 0.5rem; }

h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.18; letter-spacing: -0.025em; }
h1 { margin-bottom: 0.5rem; font-size: clamp(1.8rem, 5vw, 2.65rem); }
h2 { margin-bottom: 0.65rem; font-size: clamp(1.2rem, 3vw, 1.55rem); }
h3 { font-size: 1.05rem; }
p { margin-top: 0; }

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede { max-width: 72ch; color: var(--muted); font-size: 1.04rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

.opj-card, .workspace-card {
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.opj-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.opj-btn:hover { background: var(--brand-strong); }
.opj-btn.secondary { border-color: var(--line); background: #fff; color: var(--brand-strong); }
.opj-btn.secondary:hover { border-color: var(--brand); background: var(--brand-soft); }
.opj-btn.danger { border-color: var(--danger); background: var(--danger); }

label { display: block; margin: 0.7rem 0 0.25rem; color: var(--ink); font-weight: 680; }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bdc9c3;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 112px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: #eef1ef; color: #65736c; }

.table-scroll { max-width: 100%; overflow-x: auto; }
table.opj-table { width: 100%; border-collapse: collapse; }
table.opj-table th, table.opj-table td { padding: 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.opj-table th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.empty-state { margin: 0; padding: 1rem; border-radius: 12px; background: #f2f5f3; color: var(--muted); }
.status-pill { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 760; text-transform: capitalize; }
.status-pill--hoog { background: #fde9e7; color: #8c251f; }
.status-pill--midden { background: #fff1ce; color: #765000; }
.status-pill--laag { background: #e4f1ec; color: #15543f; }

.login-page .opj-top { position: relative; }
.login-page .opj-main {
  width: min(1120px, 100%);
  display: grid;
  align-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.login-intro { max-width: 650px; padding: clamp(.5rem, 3vw, 2rem); }
.login-intro h1 { max-width: 14ch; font-size: clamp(2.35rem, 5.4vw, 4.4rem); }
.login-intro__lead { max-width: 54ch; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); }
.login-points { display: grid; gap: .65rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: #34463e; font-weight: 640; }
.login-points li { display: flex; align-items: center; gap: .65rem; }
.login-points li span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: .8rem;
}
.login-card {
  padding: clamp(1.2rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 22px 65px rgba(24, 51, 42, .1);
}
.login-card__heading h2 { margin-bottom: .35rem; font-size: clamp(1.55rem, 4vw, 2rem); }
.login-card__heading > p:last-child { margin-bottom: 1.2rem; color: var(--muted); }
.login-form label:first-of-type { margin-top: 0; }
.login-form input { min-height: 50px; }
.login-submit { width: 100%; min-height: 52px; margin-top: 1.1rem; }
.login-error { display: grid; gap: .1rem; margin: 0 0 1rem; padding: .75rem .85rem; border-left: 4px solid var(--danger); border-radius: 10px; background: #fff0ef; color: #781f1a; }
.login-error span { font-size: .86rem; }
.login-help { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.login-help summary { min-height: 44px; display: flex; align-items: center; color: var(--brand-strong); cursor: pointer; font-weight: 700; }
.login-help p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }

.beheer-page { max-width: 1040px; margin-inline: auto; }
.role-preview-banner { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem clamp(.8rem, 3vw, 1.5rem); background: #2f235a; color: #fff; }
.role-preview-banner div { display: grid; gap: .1rem; }
.role-preview-banner span { font-size: .78rem; opacity: .9; }
.role-preview-banner form { margin: 0; }
.role-preview-banner button { min-height: 40px; border: 1px solid #fff; border-radius: 10px; padding: .45rem .75rem; background: #fff; color: #2f235a; font-weight: 800; white-space: nowrap; }
.role-preview-grid { display: grid; gap: .65rem; }
.role-preview-grid form { margin: 0; }
.role-preview-choice { width: 100%; min-height: 72px; display: grid; gap: .25rem; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: #fff; color: var(--text); }
.role-preview-choice:hover { border-color: #8fb6ab; background: var(--brand-soft); }
.role-preview-choice span { color: var(--muted); font-size: .82rem; }
.beheer-page--narrow { max-width: 760px; }
.beheer-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.beheer-header h1 { margin-bottom: .35rem; }
.beheer-back { margin-bottom: .8rem; }
.beheer-back a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.beheer-nav { display: flex; gap: .35rem; margin-bottom: 1rem; padding: .3rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.beheer-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .5rem .75rem; border-radius: 9px; color: var(--muted); font-weight: 700; text-decoration: none; }
.beheer-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.beheer-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .7fr)) auto;
  align-items: end;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.beheer-filters label { margin-top: 0; font-size: .78rem; }
.beheer-list { display: grid; gap: .55rem; }
.beheer-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto) auto;
  align-items: center;
  gap: .8rem;
  min-height: 78px;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.beheer-row:hover { border-color: #a9c9ba; box-shadow: var(--shadow); }
.beheer-avatar { width: 42px; height: 42px; display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 820; }
.beheer-avatar--large { width: 58px; height: 58px; flex-basis: 58px; font-size: 1rem; }
.beheer-row__identity { display: grid; min-width: 0; }
.beheer-row__identity strong, .beheer-row__identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beheer-row__identity span { color: var(--muted); font-size: .8rem; }
.beheer-row__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem; }
.beheer-row__meta small { width: 100%; color: var(--muted); text-align: right; }
.beheer-pill { display: inline-flex; padding: .2rem .5rem; border-radius: 999px; background: #e9edef; color: #52615a; font-size: .69rem; font-weight: 780; }
.beheer-pill--active, .beheer-pill--afgehandeld { background: #e4f1ec; color: #15543f; }
.beheer-pill--inactive { background: #fff0ef; color: #8c251f; }
.beheer-pill--nieuw { background: #e8f1fa; color: #174f78; }
.beheer-pill--opvolgen { background: #fff1ce; color: #765000; }
.beheer-row__action { color: var(--brand-strong); font-size: .8rem; font-weight: 760; }
.beheer-feedback-category { min-width: 76px; padding: .35rem .5rem; border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong); font-size: .74rem; font-weight: 800; text-align: center; }
.beheer-pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1rem; }
.beheer-card { margin-bottom: 1rem; padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.beheer-form { display: grid; gap: .65rem; }
.beheer-form label { margin-top: 0; }
.beheer-form .errorlist { margin: .2rem 0 0; padding-left: 1.2rem; color: var(--danger); font-size: .84rem; }
.beheer-help { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }
.beheer-notice { margin: .35rem 0; padding: .75rem; border-left: 4px solid var(--warning); border-radius: 10px; background: #fff7e3; }
.beheer-notice p { margin: .15rem 0 0; color: #684600; font-size: .84rem; }
.beheer-profile { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.beheer-profile h1 { margin-bottom: .2rem; }
.beheer-profile p:last-child { margin: 0; color: var(--muted); }
.beheer-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.beheer-status-grid div { min-width: 0; padding: .75rem; border-radius: 11px; background: var(--surface-soft); }
.beheer-status-grid span { display: block; color: var(--muted); font-size: .72rem; }
.beheer-status-grid strong { display: block; overflow-wrap: anywhere; }
.beheer-danger { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.beheer-danger summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; font-weight: 700; }
.beheer-danger > p, .beheer-danger > form { max-width: 620px; }
.beheer-secret { border-color: #d7b962; background: #fffdf4; }
.beheer-secret textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.beheer-secret p { color: var(--muted); font-size: .84rem; }
.beheer-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.beheer-evidence div { min-width: 0; padding: .7rem; border-radius: 10px; background: var(--surface-soft); }
.beheer-evidence dt { color: var(--muted); font-size: .7rem; font-weight: 780; text-transform: uppercase; }
.beheer-evidence dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-weight: 680; }
.beheer-evidence dd span { color: var(--muted); font-size: .8rem; font-weight: 400; }
.beheer-evidence code { white-space: normal; overflow-wrap: anywhere; }
.beheer-feedback-body { margin-top: .8rem; padding: .8rem; border-left: 4px solid var(--brand); border-radius: 0 11px 11px 0; background: var(--brand-soft); }
.beheer-feedback-body span { color: var(--muted); font-size: .7rem; font-weight: 780; text-transform: uppercase; }
.beheer-feedback-body p { margin: .25rem 0 0; }
.beheer-triage { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: .65rem; }
.beheer-triage label { grid-column: 1 / -1; margin-bottom: -.45rem; }

.quality-board { display: grid; gap: 1rem; }
.quality-youth--urgent { border-left: 4px solid #b23b32; }
.quality-youth__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.quality-signal { margin-top: 0.85rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: 12px; }
.quality-signal--hoog { border-color: #e8b8b4; background: #fff8f7; }
.quality-signal__title { display: flex; align-items: center; gap: 0.6rem; }
.quality-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1rem; margin: 0.8rem 0 0; }
.quality-evidence div { min-width: 0; }
.quality-evidence dt { color: var(--muted); font-size: 0.76rem; font-weight: 760; text-transform: uppercase; }
.quality-evidence dd { margin: 0.1rem 0 0; }
.professional-review { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.professional-review summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.professional-review__item { display: grid; grid-template-columns: 1fr minmax(240px, 0.7fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }

.mobile-nav { display: none; }

.mobile-sheet[hidden] { display: none; }
.mobile-sheet {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
}
.mobile-sheet__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 30, 25, 0.46);
  cursor: pointer;
}
.mobile-sheet__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  margin-inline: auto;
  overflow-y: auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -14px 44px rgba(17, 36, 30, 0.2);
}
.mobile-sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mobile-sheet__header h2 { margin-bottom: 0; }
.mobile-capture-sheet .mobile-sheet__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(88vh, 760px);
  height: min(88dvh, 760px);
  overflow: hidden;
  padding: 0;
}
.mobile-capture-sheet .mobile-sheet__header {
  padding: 1rem max(1rem, env(safe-area-inset-right)) .75rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.mobile-capture-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .15rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
}
.mobile-sheet__eyebrow {
  margin-bottom: 0.2rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-sheet__close {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.mobile-sheet__status { min-height: 2.7rem; margin: 0.65rem 0; color: var(--muted); }
.mobile-capture-target { display: flex; align-items: center; gap: .45rem; margin: .65rem 0 .1rem; color: var(--brand-strong); font-size: .88rem; font-weight: 780; }
.mobile-capture-target[hidden] { display: none; }
.mobile-capture-target > span:first-child { color: var(--brand); font-size: .65rem; }
.mobile-capture-speech { margin-bottom: 0.75rem; }
.mobile-capture-permission-help { margin: -.25rem 0 .8rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.mobile-capture-permission-help summary { min-height: 44px; display: flex; align-items: center; color: var(--brand-strong); cursor: pointer; font-size: .84rem; font-weight: 720; }
.mobile-capture-permission-help p { margin: .15rem 0 0; color: var(--muted); font-size: .8rem; }
.mobile-sheet__help { margin: 0.45rem 0 0.85rem; color: var(--muted); font-size: 0.82rem; }
.mobile-capture-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin: 0.75rem 0; padding: 0; border: 0; }
.mobile-capture-context legend { grid-column: 1 / -1; font-weight: 750; }
.mobile-capture-context label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.mobile-capture-context input, .mobile-capture-context select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 0.45rem 0.55rem; }
.mobile-capture-work-context { margin: .7rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.mobile-capture-work-context > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 48px; padding: .65rem .75rem; color: var(--brand-strong); cursor: pointer; font-size: .84rem; font-weight: 720; }
.mobile-capture-work-context > summary strong { color: var(--ink); font-size: .8rem; text-align: right; }
.mobile-capture-work-context[open] > summary { border-bottom: 1px solid var(--line); }
.mobile-capture-work-context .mobile-capture-context { margin: 0; padding: .75rem; }
.mobile-sheet__notice { padding: 0.65rem 0.75rem; border-radius: 10px; background: #fff4d6; color: #684600; font-size: 0.82rem; }
.mobile-sheet__optional { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.mobile-sheet textarea,
.mobile-sheet input,
.mobile-sheet button { font-size: 16px; }
.mobile-sheet__submit {
  flex: 1 1 12rem;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}
.mobile-sheet__submit:disabled { border-color: #b9c5bf; background: #dfe5e2; color: #68766f; cursor: not-allowed; }
.mobile-sheet__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.mobile-capture-footer {
  padding: .55rem max(1rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -8px 22px rgba(17, 36, 30, .08);
}
.mobile-capture-submit-note { margin: 0 0 .4rem; color: var(--muted); font-size: .76rem; text-align: center; }
.mobile-capture-submit-bar { flex-wrap: nowrap; }
.mobile-capture-submit-bar > * { flex: 1 1 0; min-width: 0; padding-inline: .55rem; font-size: .875rem; line-height: 1.15; }
.mobile-capture-clear { display: block; min-height: 44px; margin: .25rem auto 0; padding: .45rem .75rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 680; }
.mobile-capture-submit-bar[aria-busy="true"] { opacity: .72; }
.mobile-sheet__secondary {
  flex: 0 1 auto;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 700;
}
.mobile-capture-state { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; color: var(--brand-strong); font-size: 0.82rem; font-weight: 750; }
.mobile-capture-state__pulse { width: 12px; height: 12px; border: 3px solid var(--brand-soft); border-radius: 50%; background: var(--brand); }
.mobile-capture-state[data-mobile-capture-state="listening"] { color: #8b251f; }
.mobile-capture-state[data-mobile-capture-state="listening"] .mobile-capture-state__pulse { border-color: #ffd5d1; background: #b83229; animation: capture-pulse 1.2s ease-in-out infinite; }
.mobile-capture-state[data-mobile-capture-state="denied"] .mobile-capture-state__pulse,
.mobile-capture-state[data-mobile-capture-state="network"] .mobile-capture-state__pulse,
.mobile-capture-state[data-mobile-capture-state="unavailable"] .mobile-capture-state__pulse { border-color: #ffd5d1; background: var(--danger); }
.pilot-feedback-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0.9rem 0; padding: 0; border: 0; }
.pilot-feedback-options legend { grid-column: 1 / -1; margin-bottom: 0.1rem; font-weight: 750; }
.pilot-feedback-options label { display: flex; align-items: center; gap: 0.45rem; min-height: 48px; margin: 0; padding: 0.55rem 0.65rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.pilot-feedback-options input { width: 22px; min-height: 22px; margin: 0; }
.mobile-sheet-open { overflow: hidden; }
.mobile-sheet-open [data-sheet-shell][inert] { user-select: none; }

@keyframes capture-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 50, 41, 0.18); }
  50% { box-shadow: 0 0 0 9px rgba(184, 50, 41, 0); }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .opj-top { min-height: 56px; justify-content: space-between; }
  .desktop-nav, .session__name { display: none; }
  .account-menu__label { display: inline; font-size: .78rem; }
  .test-rights-menu summary { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-size: 0.82rem; }
  .opj-main { padding-top: 1rem; padding-bottom: 1.25rem; }
  .opj-card, .workspace-card { border-radius: 14px; box-shadow: none; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    padding: 0.35rem max(0.5rem, env(safe-area-inset-right)) max(0.35rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
  }
  .mobile-nav__item {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.25rem 0.2rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
  }
  .mobile-nav__icon { font-size: 1.1rem; line-height: 1; }
  .mobile-nav__item[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
  .mobile-nav__primary {
    min-height: 68px;
    margin-top: -18px;
    touch-action: manipulation;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .mobile-nav__primary-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.12rem;
    border: 5px solid rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 5px 18px rgba(13, 70, 55, 0.24);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
  }
  .mobile-nav__primary[aria-current="page"] { background: transparent; }
  .mobile-nav__primary[aria-current="page"] .mobile-nav__primary-icon { outline: 3px solid #b8ddce; outline-offset: 1px; }
  .mobile-nav__primary[data-state="arming"] .mobile-nav__primary-icon,
  .mobile-nav__primary[data-state="starting"] .mobile-nav__primary-icon { transform: scale(1.05); background: #226b55; }
  .mobile-nav__primary[data-state="listening"] .mobile-nav__primary-icon { background: #a3322c; animation: capture-pulse 1.2s ease-in-out infinite; }
  .mobile-nav__primary[data-state="denied"] .mobile-nav__primary-icon,
  .mobile-nav__primary[data-state="network"] .mobile-nav__primary-icon,
  .mobile-nav__primary[data-state="unavailable"] .mobile-nav__primary-icon { background: var(--danger); }
  .mobile-nav__feedback { appearance: none; }
  .quality-youth__header, .professional-review__item { display: block; }
  .quality-youth__header .opj-btn { width: 100%; margin-top: 0.5rem; }
  .quality-evidence { grid-template-columns: 1fr; }
  table.opj-table thead { display: none; }
  table.opj-table, table.opj-table tbody, table.opj-table tr, table.opj-table td { display: block; width: 100%; }
  table.opj-table tr { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
  table.opj-table td { border: 0; padding: 0.2rem 0; }
  .login-page { padding-bottom: 0; }
  .login-page .opj-top { min-height: 60px; }
  .login-page .opj-main { min-height: auto; padding-top: 1rem; padding-bottom: 2rem; }
  .login-shell { grid-template-columns: 1fr; gap: .75rem; }
  .login-intro { padding: 0 .2rem; }
  .login-intro h1 { max-width: none; margin-bottom: .55rem; font-size: clamp(1.85rem, 8.2vw, 2.2rem); line-height: 1.08; }
  .login-intro__lead { margin-bottom: 0; font-size: .94rem; line-height: 1.45; }
  .login-points { display: none; }
  .login-card { padding: 1rem 1.15rem; border-radius: 18px; box-shadow: none; }
  .login-card__heading > p:last-child { margin-bottom: .85rem; }
  .login-submit { margin-top: .8rem; }
  .beheer-header { align-items: stretch; flex-direction: column; }
  .beheer-header > .opj-btn { width: 100%; }
  .beheer-filters { grid-template-columns: 1fr; }
  .beheer-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .beheer-row__meta { grid-column: 2 / -1; justify-content: flex-start; }
  .beheer-row__meta small { width: auto; text-align: left; }
  .beheer-row__action { align-self: center; font-size: 0; }
  .beheer-row__action span { font-size: 1.4rem; }
  .beheer-row--feedback { grid-template-columns: minmax(0, 1fr) auto; }
  .beheer-row--feedback .beheer-feedback-category { width: fit-content; }
  .beheer-row--feedback .beheer-row__identity { grid-column: 1 / -1; grid-row: 2; }
  .beheer-row--feedback .beheer-row__meta { grid-column: 1 / -1; grid-row: 3; }
  .beheer-row--feedback .beheer-row__action { grid-column: 2; grid-row: 1; }
  .beheer-status-grid, .beheer-evidence { grid-template-columns: 1fr; }
  .beheer-triage { grid-template-columns: 1fr; }
  .beheer-triage label { grid-column: auto; margin-bottom: -.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* One unmistakable environment-level boundary; dossier content stays natural. */
.training-environment-marker {
  background: #68420a;
  color: #fff8e7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  text-align: center;
}
