@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #111411;
  --surface: #1b201b;
  --surface-2: #222922;
  --border: #3a4438;
  --white: #f3f5ed;
  --muted: #aab5a7;
  --lime: #d0ff71;
  --amber: #ffd592;
  --red: #ffb4a1;
  --display: Impact, "Arial Narrow", sans-serif;
  --body: Arial, "Segoe UI", sans-serif;
  --mono: Consolas, "Courier New", monospace;
  font-family: var(--body);
  color: var(--white);
  background: var(--bg);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
html,
body {
  min-width: 320px;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: var(--lime);
  text-underline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}
h1 {
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0.2px;
}
h3 {
  font-size: 24px;
  line-height: 1.15;
}
p {
  line-height: 1.6;
}
small {
  font-size: 13px;
  line-height: 1.5;
}
strong {
  font-weight: 650;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
::selection {
  color: var(--bg);
  background: var(--lime);
}
[hidden] {
  display: none !important;
}
h1:focus,
main:focus {
  outline: none;
}
.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 14px 20px;
  color: var(--bg);
  background: var(--lime);
  transform: translateY(-160%);
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Studio frame */
.app-shell {
  margin-left: 216px;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 216px;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 3px;
  color: var(--bg);
  background: var(--lime);
}
.brand-mark .icon {
  width: 28px;
  height: 28px;
}
.brand-name {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.35px;
}
.brand-name span,
.brand-name small {
  color: var(--lime);
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 7px;
}
.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 43px;
}
.side-nav button,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  text-align: left;
  line-height: 1.3;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.side-nav button:hover,
.sidebar-bottom button:hover {
  color: var(--white);
  background: var(--surface-2);
}
.side-nav button[aria-current="page"] {
  border-left: 3px solid var(--lime);
  background: var(--surface-2);
  color: var(--white);
  font-weight: 650;
}
.side-nav button .icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-bottom > p,
.sidebar-bottom > small {
  display: block;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.sidebar-bottom > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.sidebar-bottom > p strong {
  color: var(--white);
}
.sidebar-bottom button {
  padding-left: 12px;
  font-size: 14px;
}
.sidebar-bottom .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.topbar {
  min-height: 56px;
  padding: 5px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}
.crumb strong {
  color: var(--white);
  font-weight: 500;
}
.crumb .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  opacity: 0.55;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.topbar-actions .btn {
  padding: 7px 12px;
}
.topbar-actions .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 11px/1.4 var(--mono);
  color: var(--muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.demo-tag::before {
  content: "";
  display: none;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--lime);
  vertical-align: 1px;
}
.main {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.page-head > div:first-child {
  min-width: 0;
}
.page-head p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 760px;
}
.eyebrow,
.overline,
.small-label {
  font: 11px/1.5 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow {
  margin-bottom: 10px;
}
.head-progress {
  min-width: 180px;
  max-width: 230px;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}
.head-progress > div:not(.progress-track),
.head-progress > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.head-progress strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
}
.progress-track {
  height: 4px;
  overflow: hidden;
  background: #394236;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 0.25s ease;
}
.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.stage-strip .stage {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 18px;
}
.stage-strip .stage:last-child {
  border-right: 0;
}
.stage-strip .stage > span:first-child {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  font: 18px var(--mono);
}
.stage-strip .stage > span .icon {
  width: 17px;
  height: 17px;
}
.stage-strip .stage.active {
  color: var(--white);
  background: var(--surface-2);
}
.stage-strip .stage.active > span:first-child,
.stage-strip .stage.complete > span:first-child {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}
.stage-strip .stage.complete {
  color: var(--white);
}
.stage-strip .stage small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* Library */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.project-card:hover {
  border-color: #708262;
  transform: translateY(-2px);
}
.project-cover {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.project-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-card:hover .project-cover > img {
  transform: scale(1.025);
}
.format-label {
  position: absolute;
  z-index: 1;
  top: 12px;
  bottom: auto;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #ffffff3d;
  border-radius: 3px;
  color: #fff;
  background: #111411c9;
  font: 11px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.format-label .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 0;
}
.card-body h2,
.card-body h3 {
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.card-body > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.topic {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface-2);
  font: 14px/1.4 var(--body);
}
.topic .icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  margin-right: 4px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 3px 18px;
  margin: 12px -18px 0;
  border-top: 1px solid var(--border);
}
.card-footer > div {
  min-width: 0;
  flex: 1;
  max-width: 130px;
}
.card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font: 13px/1.5 var(--body);
}
.card-footer > span .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  color: var(--lime);
}
.card-footer > .text-link {
  flex-shrink: 0;
  font-size: 14px;
  text-decoration: none;
}
.card-footer > .text-link .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.card-footer small,
.card-footer .card-progress {
  display: block;
  color: var(--muted);
  font: 13px/1.4 var(--body);
}
.card-footer .progress-track {
  height: 3px;
  margin-top: 7px;
}
.card-footer .btn {
  min-height: 44px;
  padding: 8px 11px;
  font-size: 14px;
  white-space: nowrap;
}
.card-footer .btn .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.notice > .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  color: var(--lime);
  margin-top: 1px;
}
.notice strong {
  color: var(--white);
}
.notice p + p {
  margin-top: 6px;
}
.notice .text-link {
  font-size: inherit;
}

/* Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-primary {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}
.btn-primary:hover:not(:disabled) {
  background: #e0ff9d;
  border-color: #e0ff9d;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--muted);
}
.btn-quiet {
  color: var(--muted);
  background: transparent;
}
.btn-quiet:hover:not(:disabled) {
  color: var(--white);
  background: var(--surface-2);
}
.btn.wide {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  color: var(--lime);
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
}
.text-link:hover {
  color: #e0ff9d;
}
.text-link .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 2px 0;
  margin: -10px 0 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover {
  color: var(--lime);
}
.back-link .icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

/* Project review */
.project-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.project-heading h1 {
  font-size: 46px;
}
.project-heading p {
  max-width: 760px;
  color: var(--muted);
  margin-top: 10px;
}
.project-heading .topic-list {
  margin-top: 12px;
}
.step-tabs {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.step-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.step-tab > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font: 12px var(--mono);
}
.step-tab .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.step-tab.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.step-tab.active > span:first-child {
  color: var(--bg);
  background: var(--lime);
  border-color: var(--lime);
}
.step-tab.done {
  color: var(--white);
}
.step-tab.done > span:first-child {
  color: var(--lime);
  border-color: #6a8056;
  background: #27311f;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-header h2 {
  font-size: 27px;
}
.panel-header > span,
.panel-header > small {
  color: var(--muted);
  font: 11px/1.4 var(--mono);
}
.panel-header > .risk-tag {
  color: var(--amber);
}
.panel-header .text-link {
  font-size: 12px;
  min-height: 44px;
}
.panel > p {
  color: var(--muted);
}
.panel > p + p {
  margin-top: 12px;
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 18px;
}
.tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.tabs button:hover {
  color: var(--white);
  background: var(--surface-2);
}
.tabs button[aria-selected="true"] {
  color: var(--lime);
  background: #2a341f;
  border-color: #7d9952;
}
.tabs button .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.material-wrap {
  min-width: 0;
}
.material {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.material-photo > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}
.media-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.media-meta .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.caption {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.caption > strong,
.caption > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.caption p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
}
.caption mark,
.material-context mark {
  color: var(--bg);
  background: var(--amber);
  padding: 1px 3px;
}
.material-context {
  padding: 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.material-context h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 12px;
}
.material-context p + p {
  margin-top: 12px;
}
.material-context dl {
  margin: 0;
}
.material-context dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.material-context dl > div:last-child {
  border-bottom: 0;
}
.material-context dt {
  color: var(--muted);
  font: 12px/1.6 var(--mono);
}
.material-context dd {
  margin: 0;
  color: var(--white);
  overflow-wrap: anywhere;
}
.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #52683b;
  border-radius: 4px;
  background: #252f1e;
  color: var(--muted);
}
.ai-note > .icon {
  color: var(--lime);
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}
.ai-note strong {
  color: var(--lime);
  font-size: 13px;
}
.ai-note p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.65;
}
.risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #786449;
  border-radius: 3px;
  color: var(--amber);
  background: #302a20;
  font: 11px/1.4 var(--mono);
}
.risk-tag .icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}
.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}
.decision-head > .risk-tag {
  margin-bottom: 14px;
}
.decision-head h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.decision-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.decision-head .policy-ref {
  margin-top: 10px;
}
.choice-list,
.independent-choices {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  margin: 20px 0;
  border: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--white);
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.choice:hover {
  border-color: #7d8f6e;
}
.choice.selected,
.choice[aria-pressed="true"] {
  background: #29351f;
  border-color: var(--lime);
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
}
.choice.selected .choice-icon,
.choice[aria-pressed="true"] .choice-icon {
  color: var(--lime);
  border-color: #6f8b48;
}
.choice-icon .icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}
.choice-copy {
  display: block;
  min-width: 0;
}
.choice-copy > strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}
.choice-copy > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.choice.selected .choice-copy > strong {
  color: var(--lime);
}
.choice > .icon:last-child {
  margin-left: auto;
  color: var(--lime);
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.reason-field {
  margin-top: 20px;
}
.reason-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
.reason-field label span,
.reason-field label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
textarea {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 110px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
textarea::placeholder {
  color: #818d7c;
}
textarea:hover {
  border-color: #66745e;
}
textarea[aria-invalid="true"] {
  border-color: var(--red);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  cursor: pointer;
}
.check-row input {
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  flex: 0 0 19px;
  accent-color: var(--lime);
  cursor: pointer;
}
.check-row strong {
  color: var(--white);
}
.field-error {
  margin-top: 9px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
}
.feedback {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-2);
}
.feedback.blocked {
  border-color: #7b5947;
  background: #30241e;
}
.feedback.ready {
  border-color: #708b49;
  background: #28331f;
}
.feedback-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.feedback-title .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.feedback.blocked .feedback-title {
  color: var(--amber);
}
.feedback.ready .feedback-title {
  color: var(--lime);
}
.feedback p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.7;
}
.feedback small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.decision-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.decision-actions .btn {
  flex: 1;
}
.decision-actions > small {
  flex: 1;
  color: var(--muted);
}
.competence-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.competence-bar .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: var(--lime);
}
.competence-bar strong {
  color: var(--white);
}
.policy-ref {
  color: var(--muted);
  font: 11px/1.65 var(--mono);
}
.policy-ref .text-link {
  font: inherit;
}
.empty-material {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 300px;
  padding: 30px;
  text-align: center;
  background: var(--surface-2);
  color: var(--muted);
}
.empty-material > .icon {
  color: var(--lime);
  width: 42px;
  height: 42px;
}
.empty-material strong {
  color: var(--white);
}
.empty-material p {
  max-width: 340px;
  font-size: 14px;
}
.transform-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #28331f;
  color: var(--lime);
  border-bottom: 1px solid #52683b;
  font: 11px/1.5 var(--mono);
}
.transform-label .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 8px 0 0;
}
.zoom-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--white);
}

/* Selectable overlays for practice materials */
.photo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #343c31;
}
.photo-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.redacted-photo {
  filter: blur(16px);
  transform: scale(1.07);
}
.face-mask {
  position: absolute;
  left: 21%;
  top: 5%;
  width: 31%;
  height: 43%;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--lime);
  background: var(--bg);
  border: 1px solid #d0ff7199;
  border-radius: 40% 40% 20% 20%;
  font: 11px/1.4 var(--mono);
  text-align: center;
}
.plate-field {
  position: absolute;
  left: 56%;
  top: 61%;
  width: 17%;
  height: 6%;
  display: grid;
  place-items: center;
  background: #eef0e6;
  color: #151a16;
  border: 1px solid #666d65;
  border-radius: 2px;
  font:
    700 clamp(7px, 1vw, 13px)/1 Arial,
    sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}
.plate-field.covered {
  color: var(--lime);
  background: var(--bg);
  border-color: var(--lime);
  font: 9px/1 var(--mono);
  letter-spacing: 0;
}
.shipping-label {
  position: absolute;
  left: 45.5%;
  top: 37.5%;
  width: 31.5%;
  height: 32.5%;
  padding: 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: #f5f4e9;
  color: #1b201b;
  box-shadow: 0 1px 4px #0003;
  font: clamp(7px, 0.75vw, 11px)/1.3 var(--mono);
  transform: rotate(1deg);
}
.shipping-label strong {
  display: block;
  font-size: 1.15em;
}
.shipping-label small {
  font: inherit;
}
.shipping-label.covered {
  color: var(--lime);
  background: var(--bg);
  border: 1px solid var(--lime);
  align-items: center;
  text-align: center;
  font-size: clamp(8px, 0.8vw, 12px);
}
.location-stamp {
  position: absolute;
  left: 5%;
  bottom: 10%;
  max-width: 85%;
  padding: 6px 9px;
  color: #252a20;
  background: #f3f0d9eb;
  font: clamp(8px, 1vw, 13px)/1.4 var(--mono);
}
.location-stamp.covered {
  color: var(--lime);
  background: var(--bg);
  border: 1px solid var(--lime);
}
.portrait-label {
  position: absolute;
  left: 5%;
  bottom: 5%;
  max-width: 88%;
  padding: 6px 9px;
  color: #fff;
  background: #111411df;
  font: clamp(8px, 0.95vw, 12px)/1.4 var(--mono);
}
.mirror-document {
  position: absolute;
  left: 73%;
  top: 51%;
  width: 15%;
  height: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  color: #23271f;
  background: #fffef7;
  font: clamp(8px, 0.55vw, 12px)/1.15 var(--mono);
  overflow-wrap: anywhere;
  transform: rotate(-1deg);
}
.mirror-document strong {
  font-size: 1.1em;
}
.mirror-document.covered {
  background: var(--bg);
  color: var(--lime);
  border: 1px solid var(--lime);
  align-items: center;
  text-align: center;
}
.mirror-face-cover {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 12%;
  height: 18%;
  display: grid;
  place-items: center;
  padding: 5px;
  color: var(--lime);
  background: var(--bg);
  border: 1px solid var(--lime);
  border-radius: 40% 40% 25% 25%;
  font: 9px/1.3 var(--mono);
  text-align: center;
}
.material-messages {
  min-height: 370px;
  padding: 22px;
  background: #dce4dc;
  color: #233229;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  margin-bottom: 20px;
  border-bottom: 1px solid #b6c3b6;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #eff5e9;
  background: #58765b;
  border-radius: 50%;
  font-weight: 650;
  font-size: 15px;
}
.chat-header strong {
  display: block;
  font-size: 14px;
}
.chat-header small {
  display: block;
  color: #5b6d5f;
  font-size: 11px;
}
.chat-bubble {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: 3px 10px 10px 10px;
  color: #25352a;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.chat-bubble.sent,
.chat-bubble.outgoing {
  margin-left: auto;
  background: #c3d6b2;
  border-radius: 10px 3px 10px 10px;
}
.chat-bubble strong {
  font-size: 12px;
  color: #4a6650;
}
.chat-bubble p + p {
  margin-top: 7px;
}
.chat-meta {
  margin-top: 5px;
  color: #5a705e;
  font: 10px/1.5 var(--mono);
  text-align: right;
}
.redacted-text {
  display: inline;
  padding: 1px 4px;
  color: var(--lime);
  background: #1b241b;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.material-medical {
  min-height: 390px;
  padding: 26px;
  background: #f3f0e5;
  color: #293329;
  font-family: Arial, sans-serif;
}
.document-header {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid #6c8065;
}
.document-header > small {
  font: 10px/1.5 var(--mono);
  letter-spacing: 1px;
  color: #65705e;
}
.document-header h3 {
  margin-top: 8px;
  color: #293b2b;
  font:
    700 22px/1.25 Arial,
    sans-serif;
}
.document-header p {
  color: #65705e;
  font-size: 12px;
  margin-top: 5px;
}
.document-row {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #d2d3c4;
  font-size: 13px;
  line-height: 1.5;
}
.document-row > span:first-child {
  color: #687461;
  font-size: 12px;
}
.document-row strong {
  font-weight: 650;
}
.medical-chart {
  margin: 20px 0;
  display: flex;
  align-items: end;
  gap: 12px;
  height: 72px;
  padding: 0 15px;
  border-bottom: 1px solid #aeb9a3;
}
.medical-chart span {
  flex: 1;
  min-height: 20px;
  height: 50%;
  background: #91a47f;
}
.medical-chart span:nth-child(2n) {
  height: 72%;
}
.medical-chart span:nth-child(3n) {
  height: 90%;
}
.document-footer {
  margin-top: 17px;
  color: #65705e;
  font: 10px/1.6 var(--mono);
}
.material-workplace .screen-data {
  position: absolute;
  left: 22%;
  top: 20%;
  width: 55%;
  height: 45%;
  padding: 3%;
  background: #e9eee2;
  color: #25352a;
  border: 1px solid #7d8c75;
  font: clamp(6px, 0.7vw, 10px)/1.4 var(--mono);
  overflow: hidden;
}
.screen-data strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1em;
}
.screen-data table {
  width: 100%;
  border-collapse: collapse;
}
.screen-data td,
.screen-data th {
  padding: 3px;
  border-bottom: 1px solid #c1ccba;
  text-align: left;
  font-weight: 400;
}
.material-workplace .screen-data.covered {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  background: var(--bg);
  border: 1px solid var(--lime);
  text-align: center;
}
.material-audio {
  min-height: 330px;
  padding: 24px;
  background: var(--surface-2);
}
.audio-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.audio-title > .icon {
  width: 35px;
  height: 35px;
  color: var(--lime);
}
.audio-title strong {
  display: block;
  font-size: 16px;
}
.audio-title small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 88px;
  padding: 12px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.waveform span {
  display: block;
  width: 4px;
  height: 24px;
  border-radius: 1px;
  background: var(--lime);
  opacity: 0.8;
}
.material-audio audio {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 16px;
}
.audio-transcript {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.audio-transcript > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font: 11px/1.4 var(--mono);
  text-transform: uppercase;
}
.audio-transcript mark {
  background: var(--amber);
  color: var(--bg);
  padding: 1px 3px;
}
.safe-substitute {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 35px 28px;
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
}
.safe-substitute > .icon {
  width: 60px;
  height: 60px;
  padding: 15px;
  color: var(--bg);
  background: var(--lime);
  border-radius: 5px;
}
.safe-substitute h3,
.safe-substitute strong {
  color: var(--white);
}
.safe-substitute p {
  max-width: 340px;
  font-size: 14px;
}

/* Final preview and learning outcomes */
.summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.summary-header h1 {
  font-size: 46px;
}
.summary-header p {
  margin-top: 12px;
  max-width: 720px;
  color: var(--muted);
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #708b49;
  border-radius: 3px;
  background: #28331f;
  color: var(--lime);
  font: 11px/1.4 var(--mono);
  white-space: nowrap;
}
.status-pill .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.status-pill.warning,
.status-pill.blocked {
  color: var(--amber);
  border-color: #786449;
  background: #302a20;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 24px;
  background: var(--surface);
}
.metric {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--border);
}
.metric:last-child {
  border-right: 0;
}
.metric > strong {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  color: var(--lime);
  line-height: 1.1;
}
.metric > span,
.metric > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.preview-item {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.preview-item > h2,
.preview-item > h3 {
  padding: 18px 20px;
  font-size: 25px;
}
.preview-item .material {
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.preview-item > p,
.preview-item > .caption,
.preview-item > .preview-caption {
  padding: 18px 20px;
  margin: 0;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.preview-item .status-line {
  padding: 16px 20px;
}
.preview-item .photo-stage {
  aspect-ratio: 3 / 2;
}
.summary-table {
  width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
}
.summary-table th,
.summary-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.summary-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font: 11px/1.5 var(--mono);
  text-transform: uppercase;
}
.summary-table tbody th {
  width: 22%;
  font-weight: 600;
}
.summary-table td {
  color: var(--muted);
}
.summary-table td small {
  display: block;
  margin-top: 5px;
}
.summary-table tr:last-child > * {
  border-bottom: 0;
}
.summary-table .status-pill {
  font-size: 11px;
  padding: 4px 7px;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.outcome-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.outcome-card > .icon {
  margin-bottom: 16px;
  color: var(--lime);
}
.outcome-card h2,
.outcome-card h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.outcome-card p {
  color: var(--muted);
  font-size: 14px;
}
.outcome-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.ksa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ksa-item {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.ksa-item > span {
  display: block;
  color: var(--lime);
  font: 11px/1.5 var(--mono);
  margin-bottom: 13px;
}
.ksa-item h3 {
  font-size: 24px;
  margin-bottom: 9px;
}
.ksa-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.summary-actions > p,
.summary-actions > small {
  margin-right: auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-note {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 11px/1.7 var(--mono);
}
.footer-note .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  margin-right: 5px;
  color: var(--lime);
}
.grid-table {
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.65;
}
.grid-table > table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}
.grid-table th,
.grid-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.grid-table thead th {
  padding: 16px 20px;
  background: var(--surface-2);
  color: var(--lime);
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.grid-table tbody th {
  width: 17%;
  font-weight: 650;
}
.grid-table tbody th small {
  display: block;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
  margin-top: 7px;
}
.grid-table td {
  color: var(--muted);
}
.grid-table td strong {
  color: var(--white);
}
.grid-table tr:last-child > * {
  border-bottom: 0;
}
.grid-table tr > *:last-child {
  border-right: 0;
}
.grid-table p + p {
  margin-top: 10px;
}
.table-scroll {
  overflow-x: auto;
}
.stage-list {
  display: grid;
  gap: 16px;
}
.stage-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.stage-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--lime);
  background: #28331f;
  border: 1px solid #52683b;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 28px;
}
.stage-card h2 {
  font-size: 29px;
  margin-bottom: 10px;
}
.stage-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.stage-card p + p {
  margin-top: 12px;
}
.stage-card h3 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 650;
  margin: 18px 0 7px;
}
.stage-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.stage-card .topic-list {
  margin-top: 16px;
}
.stage-card .text-link {
  margin-top: 12px;
}

dialog {
  width: min(620px, calc(100vw - 40px));
  max-height: calc(100dvh - 60px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #65745a;
  border-radius: 8px;
  background: var(--surface);
  color: var(--white);
  box-shadow: 0 24px 90px #0007;
}
dialog::backdrop {
  background: #050805c9;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 34px;
}
.dialog-head > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-top: -6px;
  margin-right: -6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
}
.dialog-head > button:hover {
  color: var(--white);
  background: var(--surface-2);
}
dialog > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.policy-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.policy-list > li,
.policy-list > div {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.policy-list h3 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 7px;
}
.policy-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.policy-list > li > span:first-child,
.policy-list > div > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font: 11px/1.5 var(--mono);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

/* Context, decision evidence and reflection share the same reading rhythm. */
.main > .panel,
.main > .learning-outcomes,
.notice + .stage-list,
.notice + .grid-table {
  margin-top: 24px;
}
.panel > h2 + p,
.learning-outcomes > h2 + p {
  margin-top: 12px;
}
.learning-outcomes > p {
  color: var(--muted);
  font-size: 14px;
}
.decision-panel > h2 {
  margin-bottom: 12px;
  font-size: 32px;
}
.decision-panel > p {
  font-size: 14px;
  line-height: 1.7;
}
.material-panel > .material-context,
.decision-panel > .material-context {
  margin-top: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.material-context > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 13px;
}
.material > p.caption {
  margin: 0;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.7;
}
.ai-note.neutral {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--border);
  font-size: 13px;
  line-height: 1.7;
}
.choice-list > legend,
.independent-choices > legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 13px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.independent-choices {
  gap: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.choice-radio {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-left: auto;
  border: 1px solid #73806c;
  border-radius: 50%;
}
.choice.selected .choice-radio,
.choice[aria-pressed="true"] .choice-radio {
  border-color: var(--lime);
}
.choice.selected .choice-radio::after,
.choice[aria-pressed="true"] .choice-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.reason-field > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.permission-row {
  padding: 14px;
  margin: 18px 0 0;
  border: 1px solid #756342;
  border-radius: 4px;
  color: var(--amber);
  background: #30291e;
}
#decision-form > .btn {
  width: 100%;
  margin-top: 10px;
}
.your-reason,
.independent-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.your-reason > strong,
.independent-result > strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
}
.your-reason p {
  overflow-wrap: anywhere;
}
.independent-result > strong {
  color: var(--lime);
}
.competence-bar {
  flex-wrap: wrap;
  align-items: center;
}
.competence-bar > span + span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--white);
  font: 11px/1.5 var(--mono);
}
.competence-bar > .text-link {
  margin-left: auto;
  font-size: 12px;
}
.abstract-portrait {
  filter: blur(24px) contrast(1.2);
  image-rendering: pixelated;
  transform: scale(1.12);
}
.shipping-label .barcode {
  height: 16px;
  min-height: 9px;
  margin-top: 3px;
  background: repeating-linear-gradient(
    90deg,
    #1b201b 0 1px,
    transparent 1px 3px,
    #1b201b 3px 5px,
    transparent 5px 6px
  );
}
.mirror-document > small {
  font: inherit;
  font-size: 8px;
}
.material-workplace .screen-data > table {
  table-layout: auto;
}
.material-workplace .screen-data.covered {
  flex-direction: column;
  gap: 7px;
}
.material-audio > small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.material-audio .material-context {
  padding: 16px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.status-line {
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  line-height: 1.6;
}
.status-line > span {
  flex: 1 1 280px;
}
.status-line > .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.status-line.ready > .icon,
.status-line.ready > strong {
  color: var(--lime);
}
.status-line.blocked > .icon,
.status-line.blocked > strong {
  color: var(--amber);
}
.preview-item > details {
  padding: 0 0 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.preview-item > details > summary {
  min-height: 44px;
  padding: 13px 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.preview-item > details > summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.preview-item > .material-context {
  padding: 16px 0;
  margin: 0;
  background: transparent;
}
.preview-item .material {
  border: 1px solid var(--border);
  border-radius: 4px;
}
.reflection-panel > .reason-field {
  max-width: 860px;
}
.reflection-panel .outcome-grid > div > h3 {
  margin-bottom: 12px;
  font-size: 25px;
}
.reflection-panel .outcome-grid > div > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.summary-table > article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
}
.summary-table > article > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.summary-table > article h3 {
  flex: 1;
  min-width: 150px;
  font-size: 25px;
  color: var(--white);
}
.summary-table > article p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.summary-table > article p strong {
  color: var(--white);
}
.summary-table > article .text-link {
  margin-top: 7px;
}
.outcome-card > .risk-tag {
  margin-bottom: 16px;
}
.outcome-card .ksa-item {
  padding: 16px 0 0;
  margin-top: 16px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.ksa-item > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 14px;
}
.ksa-item > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font: 11px/1.7 var(--mono);
}
.policy-list > article {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.policy-list > article .risk-tag {
  margin-bottom: 10px;
}
.dialog-head > .btn {
  width: auto;
  min-width: 60px;
  flex: 0 0 auto;
  padding: 10px 12px;
}
.project-grid + .notice {
  border-color: var(--lime);
  color: var(--bg);
  background: var(--lime);
}
.project-grid + .notice > .icon,
.project-grid + .notice strong {
  color: var(--bg);
}
.progress-step-0 span {
  width: 0.0%;
}
.progress-step-1 span {
  width: 11.1111%;
}
.progress-step-2 span {
  width: 22.2222%;
}
.progress-step-3 span {
  width: 33.3333%;
}
.progress-step-4 span {
  width: 44.4444%;
}
.progress-step-5 span {
  width: 55.5556%;
}
.progress-step-6 span {
  width: 66.6667%;
}
.progress-step-7 span {
  width: 77.7778%;
}
.progress-step-8 span {
  width: 88.8889%;
}
.progress-step-9 span {
  width: 100.0%;
}
.toys-crop {
  position: absolute;
  width: 250% !important;
  max-width: none !important;
  height: 250% !important;
  left: 0;
  bottom: 0;
}
.waveform .wave-height-0 {
  height: 14%;
}
.waveform .wave-height-1 {
  height: 24%;
}
.waveform .wave-height-2 {
  height: 34%;
}
.waveform .wave-height-3 {
  height: 44%;
}
.waveform .wave-height-4 {
  height: 54%;
}
.waveform .wave-height-5 {
  height: 64%;
}
.waveform .wave-height-6 {
  height: 74%;
}
.waveform .wave-height-7 {
  height: 84%;
}
.waveform .wave-height-8 {
  height: 94%;
}
#material-dialog {
  width: min(1200px, 96vw);
}
.inspection-viewport {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--border);
  border-radius: 4px;
  overscroll-behavior: contain;
}
.inspection-viewport .material-photo {
  width: 1100px;
  max-width: none;
}
.inspection-viewport .photo-stage {
  min-width: 1100px;
}
.inspection-viewport .mirror-document,
.inspection-viewport .mirror-document > small {
  font-size: 16px;
}
.inspection-viewport .shipping-label {
  padding: 2%;
  font-size: 16px;
}
.inspection-viewport .material-workplace .screen-data {
  font-size: 14px;
}

@media (min-width: 1600px) {
  .main {
    padding-top: 38px;
  }
  .project-cover {
    height: 198px;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head h1 {
    font-size: 50px;
  }
  .head-progress {
    min-width: 150px;
  }
  .stage-strip .stage {
    padding: 12px 10px;
    gap: 7px;
    font-size: 16px;
  }
  .review-grid {
    gap: 18px;
  }
  .panel {
    padding: 20px;
  }
  .tabs {
    gap: 5px;
  }
  .tabs button {
    padding: 9px 10px;
    font-size: 13px;
  }
  .choice {
    padding: 12px;
    gap: 10px;
  }
  .choice-icon {
    width: 32px;
    height: 36px;
    flex-basis: 32px;
  }
  .choice-copy > small {
    font-size: 11px;
  }
  .metric {
    padding: 18px;
  }
  .preview-grid {
    gap: 18px;
  }
  .grid-table th,
  .grid-table td {
    padding: 16px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
    padding-right: 14px;
    padding-left: 14px;
  }
  .app-shell {
    margin-left: 190px;
  }
  .brand {
    gap: 7px;
  }
  .brand-name {
    font-size: 22px;
  }
  .brand-mark {
    width: 40px;
    flex-basis: 40px;
  }
  .brand-mark .icon {
    width: 28px;
    height: 28px;
  }
  .side-nav button {
    font-size: 16px;
    padding: 11px 10px;
    gap: 10px;
  }
  .sidebar-bottom > p,
  .sidebar-bottom > small {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main {
    padding: 26px 22px;
  }
  .topbar {
    padding-right: 22px;
    padding-left: 22px;
  }
  .demo-tag {
    display: none;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .page-head h1 {
    font-size: 48px;
  }
  .head-progress {
    width: 230px;
    max-width: 100%;
  }
  .stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage-strip .stage {
    min-height: 53px;
  }
  .stage-strip .stage:nth-child(2) {
    border-right: 0;
  }
  .stage-strip .stage:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .project-cover {
    height: 160px;
  }
  .card-body {
    padding: 15px 15px 0;
  }
  .card-body h2,
  .card-body h3 {
    font-size: 25px;
  }
  .card-footer {
    padding: 3px 15px;
    margin: 12px -15px 0;
    gap: 10px;
  }
  .card-footer .btn {
    font-size: 13px;
    padding: 8px;
  }
  .card-footer > div {
    max-width: 88px;
  }
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .review-grid > .panel {
    width: 100%;
  }
  .project-heading h1,
  .summary-header h1 {
    font-size: 42px;
  }
  .project-heading {
    align-items: flex-start;
  }
  .step-tab {
    padding: 12px 8px;
    gap: 7px;
    font-size: 12px;
  }
  .choice-copy > small {
    font-size: 13px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .preview-grid,
  .outcome-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ksa-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .grid-table {
    min-width: 0;
  }
  .summary-table {
    font-size: 13px;
  }
  .summary-table th,
  .summary-table td {
    padding: 13px;
  }
  .plate-field {
    font-size: 13px;
  }
  .shipping-label {
    font-size: 11px;
  }
  .mirror-document {
    font-size: 8px;
  }
  .material-workplace .screen-data {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .app-shell {
    margin-left: 0;
  }
  .sidebar {
    position: relative;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    gap: 6px;
    flex-shrink: 0;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .brand-mark .icon {
    width: 24px;
    height: 24px;
  }
  .brand-name {
    max-width: 68px;
    font-size: 17px;
    line-height: 0.95;
    letter-spacing: 0.1px;
  }
  .brand-name small {
    display: none;
  }
  .side-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 4px;
    margin: 0;
  }
  .side-nav button {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    width: auto;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }
  .side-nav button .icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    min-height: 58px;
    height: auto;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 7px 20px;
  }
  .crumb {
    font-size: 14px;
    gap: 7px;
    flex: 1;
    min-width: 120px;
  }
  .crumb .icon {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .topbar-actions .btn {
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
    gap: 5px;
  }
  .topbar-actions .icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .main {
    padding: 26px 20px 30px;
  }
  .page-head {
    gap: 18px;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 46px;
  }
  .page-head p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
  }
  .eyebrow {
    font-size: 11px;
  }
  .head-progress {
    width: 100%;
    max-width: none;
  }
  .head-progress > div:not(.progress-track),
  .head-progress > p {
    margin-bottom: 8px;
  }
  .stage-strip {
    margin-bottom: 22px;
  }
  .stage-strip .stage {
    min-height: 54px;
    padding: 10px;
    gap: 8px;
    font-size: 14px;
  }
  .stage-strip .stage > span:first-child {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 16px;
  }
  .stage-strip .stage small {
    font-size: 11px;
  }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .project-cover {
    height: auto;
    aspect-ratio: 3 / 1.55;
  }
  .card-body {
    padding: 17px 18px 0;
  }
  .card-body h2,
  .card-body h3 {
    font-size: 28px;
  }
  .card-body > p {
    font-size: 14px;
  }
  .topic-list {
    margin-top: 13px;
  }
  .card-footer {
    min-height: 50px;
    padding: 3px 18px;
    margin: 12px -18px 0;
  }
  .card-footer > div {
    max-width: 125px;
  }
  .card-footer .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .notice {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 22px;
  }
  .project-heading {
    display: block;
    margin-bottom: 22px;
  }
  .project-heading h1,
  .summary-header h1 {
    font-size: 40px;
  }
  .project-heading p {
    font-size: 14px;
    line-height: 1.7;
  }
  .project-heading > .status-pill,
  .project-heading > .head-progress {
    margin-top: 16px;
  }
  .back-link {
    margin-top: -8px;
    margin-bottom: 13px;
    font-size: 13px;
  }
  .step-tabs {
    margin-bottom: 22px;
  }
  .step-tab {
    flex-direction: column;
    gap: 7px;
    padding: 10px 5px 12px;
    font-size: 11px;
    line-height: 1.3;
  }
  .step-tab > span:first-child {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 11px;
  }
  .panel {
    padding: 18px;
    border-radius: 5px;
  }
  .panel-header {
    margin-bottom: 17px;
    gap: 10px;
  }
  .panel-header h2 {
    font-size: 26px;
  }
  .panel-header > small,
  .panel-header > span {
    font-size: 11px;
  }
  .tabs {
    gap: 5px;
    margin-bottom: 16px;
  }
  .tabs button {
    flex: 1;
    gap: 5px;
    min-height: 44px;
    padding: 9px 7px;
    font-size: 12px;
  }
  .tabs button .icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .media-meta {
    padding: 9px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .media-meta .icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
  .caption p {
    font-size: 13px;
  }
  .material-context {
    padding: 16px;
    font-size: 13px;
  }
  .material-context dl > div {
    grid-template-columns: 67px 1fr;
    gap: 10px;
  }
  .material-context dt {
    font-size: 11px;
  }
  .ai-note {
    gap: 10px;
    padding: 14px;
  }
  .ai-note strong {
    font-size: 12px;
  }
  .ai-note p {
    font-size: 11px;
  }
  .decision-head h2 {
    font-size: 28px;
  }
  .choice {
    padding: 13px 11px;
    gap: 10px;
    min-height: 84px;
  }
  .choice-icon {
    width: 33px;
    height: 36px;
    flex-basis: 33px;
  }
  .choice-copy > strong {
    font-size: 15px;
  }
  .choice-copy > small {
    font-size: 12px;
  }
  .reason-field label {
    flex-wrap: wrap;
    font-size: 14px;
    gap: 4px;
  }
  .reason-field label span,
  .reason-field label small {
    font-size: 11px;
  }
  textarea {
    min-height: 120px;
    padding: 12px;
  }
  .check-row {
    font-size: 13px;
  }
  .feedback {
    padding: 14px;
  }
  .feedback p {
    font-size: 12px;
  }
  .decision-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  .decision-actions .btn {
    font-size: 14px;
    padding: 11px 12px;
  }
  .decision-actions > small {
    flex-basis: 100%;
  }
  .competence-bar {
    font-size: 11px;
    line-height: 1.75;
  }
  .face-mask {
    font-size: 8px;
    padding: 4px;
  }
  .plate-field {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .plate-field.covered {
    font-size: 6px;
  }
  .shipping-label {
    font-size: 7px;
    gap: 2px;
  }
  .mirror-document {
    font-size: 8px;
    gap: 1px;
    padding: 2px;
  }
  .shipping-label.covered {
    font-size: 8px;
  }
  .location-stamp,
  .portrait-label {
    padding: 4px 6px;
    font-size: 8px;
  }
  .mirror-face-cover {
    font-size: 6px;
  }
  .material-messages {
    min-height: 350px;
    padding: 16px;
  }
  .chat-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  .chat-bubble {
    max-width: 94%;
    font-size: 12px;
    padding: 11px 12px;
  }
  .chat-header strong {
    font-size: 13px;
  }
  .material-medical {
    min-height: 340px;
    padding: 18px;
  }
  .document-header h3 {
    font-size: 19px;
  }
  .document-row {
    grid-template-columns: 85px 1fr;
    gap: 8px;
    font-size: 11px;
  }
  .document-row > span:first-child,
  .document-header p {
    font-size: 10px;
  }
  .document-footer {
    font-size: 9px;
  }
  .material-workplace .screen-data {
    font-size: 6px;
    padding: 2%;
  }
  .screen-data td,
  .screen-data th {
    padding: 2px;
  }
  .material-audio {
    min-height: 300px;
    padding: 18px;
  }
  .audio-title strong {
    font-size: 14px;
  }
  .audio-title small {
    font-size: 11px;
  }
  .waveform {
    gap: 3px;
  }
  .waveform span {
    width: 3px;
  }
  .audio-transcript {
    font-size: 13px;
  }
  .safe-substitute {
    min-height: 270px;
    padding: 26px 20px;
  }
  .safe-substitute p {
    font-size: 13px;
  }
  .summary-header {
    display: block;
    margin-bottom: 22px;
  }
  .summary-header p {
    font-size: 14px;
  }
  .summary-header > .status-pill,
  .summary-header > .status-line {
    margin-top: 16px;
  }
  .metrics {
    margin-bottom: 22px;
  }
  .metric {
    padding: 18px 16px;
  }
  .metric > strong {
    font-size: 34px;
  }
  .metric > span,
  .metric > small {
    font-size: 11px;
  }
  .preview-grid {
    gap: 20px;
  }
  .preview-item > h2,
  .preview-item > h3 {
    padding: 16px 18px;
    font-size: 25px;
  }
  .preview-item > p,
  .preview-item > .caption,
  .preview-item > .preview-caption {
    padding: 16px 18px;
    font-size: 13px;
  }
  .preview-item .status-line {
    padding: 14px 18px;
    font-size: 12px;
  }
  .summary-table {
    display: grid;
    overflow: visible;
    font-size: 12px;
  }
  .summary-table > article {
    padding: 16px;
  }
  .summary-table > article p {
    font-size: 13px;
  }
  .summary-table th,
  .summary-table td {
    min-width: 100px;
    padding: 12px;
  }
  .summary-table td:last-child {
    min-width: 200px;
  }
  .outcome-grid {
    gap: 16px;
    margin-top: 22px;
  }
  .outcome-card {
    padding: 20px;
  }
  .outcome-card p,
  .outcome-card ul {
    font-size: 13px;
  }
  .summary-actions {
    justify-content: stretch;
    margin-top: 24px;
  }
  .summary-actions > p,
  .summary-actions > small {
    flex-basis: 100%;
    margin-bottom: 4px;
  }
  .summary-actions > .btn {
    flex: 1;
    font-size: 14px;
  }
  .footer-note {
    font-size: 11px;
  }
  .stage-list {
    gap: 14px;
  }
  .stage-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .stage-number {
    width: 38px;
    height: 42px;
    font-size: 24px;
  }
  .stage-card h2 {
    font-size: 25px;
  }
  .stage-card p,
  .stage-card ul {
    font-size: 13px;
  }
  .grid-table {
    min-width: 0;
    font-size: 13px;
  }
  .grid-table th,
  .grid-table td {
    padding: 14px;
  }
  dialog {
    width: calc(100vw - 28px);
    padding: 22px;
    max-height: calc(100dvh - 32px);
  }
  .dialog-head h2 {
    font-size: 30px;
  }
  .dialog-actions .btn {
    flex: 1;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  :root {
    color-scheme: light;
    color: #111;
    background: #fff;
  }
  .sidebar,
  .topbar,
  .back-link,
  .btn,
  .text-link,
  .step-tabs,
  .dialog-actions {
    display: none !important;
  }
  .app-shell {
    margin: 0;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .panel,
  .project-card,
  .preview-item,
  .outcome-card,
  .ksa-item,
  .stage-card,
  .metrics {
    color: #111;
    background: #fff;
    border-color: #aaa;
    break-inside: avoid;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 24px;
  }
  .page-head p,
  .project-heading p,
  .summary-header p,
  .outcome-card p,
  .ksa-item p,
  .stage-card p,
  .grid-table td,
  .summary-table td,
  .footer-note {
    color: #333;
  }
  .grid-table,
  .summary-table {
    color: #111;
    background: #fff;
    font-size: 11px;
  }
  .grid-table {
    min-width: 0;
  }
  .grid-table > table {
    min-width: 0;
  }
  .grid-table th,
  .grid-table td,
  .summary-table th,
  .summary-table td {
    padding: 8px;
    border-color: #aaa;
  }
  .table-scroll {
    overflow: visible;
  }
  .preview-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Added cases: generated covers, screen recording mock, group photo cover */
.generated-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 75% 30%, #d0ff7133, transparent 55%),
    linear-gradient(135deg, #1f2a20, #2f3b2c);
}
.generated-cover.cover-remix {
  background:
    radial-gradient(circle at 25% 70%, #ffd59240, transparent 55%),
    linear-gradient(135deg, #2a2320, #3b332c);
}
.generated-cover .cover-icon {
  width: 72px;
  height: 72px;
  color: var(--lime);
  opacity: 0.85;
}
.cover-remix .cover-icon {
  color: var(--amber);
}
.material-mock-screen {
  padding: 18px;
  background: #151a15;
}
.mock-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #3a4438;
  border-radius: 4px;
  background: linear-gradient(180deg, #2b3d52 0%, #3f5a3c 62%, #4d4433 100%);
}
.mock-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.5px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b5a;
}
.mock-game {
  position: absolute;
  inset: 45% 10% 18% 10%;
  display: flex;
  align-items: end;
  justify-content: space-around;
}
.mock-game span {
  width: 18%;
  height: 70%;
  background: #1c2a1c;
  border-radius: 3px 3px 0 0;
}
.mock-game span:nth-child(2) {
  height: 100%;
  background: #233323;
}
.mock-game-label {
  position: absolute;
  left: 12px;
  bottom: 8px;
  margin: 0;
  color: #ffffffb0;
  font: 10px/1.4 var(--mono);
}
.mock-toast {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(58%, 260px);
  padding: 10px 12px;
  border-radius: 8px;
  color: #1e261e;
  background: #f3f5edf2;
  box-shadow: 0 6px 18px #0007;
  font-size: 12px;
  line-height: 1.45;
}
.mock-toast small {
  display: block;
  color: #5a6a5a;
  font: 9px/1.4 var(--mono);
  text-transform: uppercase;
}
.mock-toast strong,
.mock-toast span {
  display: block;
}
.mock-toast.covered {
  display: grid;
  place-items: center;
  min-height: 62px;
  color: var(--lime);
  background: #111411e6;
  border: 1px solid #d0ff7199;
  font: 11px/1.4 var(--mono);
  backdrop-filter: blur(8px);
}
.material-mock-screen .document-footer {
  color: var(--muted);
}
.material-mock .chat-header small {
  line-height: 1.5;
}
.face-mask.group-face-cover {
  left: 60%;
  top: 6%;
  width: 20%;
  height: 34%;
}

/* ---------- Creator checker (rebuild) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.reason-field input,
.reason-field select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
}
.reason-field input:hover,
.reason-field select:hover {
  border-color: #66745e;
}
.new-check .reason-field:first-child {
  margin-top: 0;
}
.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  padding: 24px;
  border: 1.5px dashed #5a6a52;
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover,
.dropzone.dragging,
.dropzone:focus-within {
  border-color: var(--lime);
  background: #161c15;
}
.dropzone label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
}
.dropzone strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.dropzone small {
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}
.drop-icon {
  width: 44px;
  height: 44px;
  color: var(--lime);
}
.drop-thumb {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  object-fit: contain;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.how-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.how-card > .icon {
  width: 24px;
  height: 24px;
  color: var(--lime);
}
.how-card h2 {
  margin: 12px 0 6px;
  font-size: 16px;
}
.how-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.sample-caption {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}
/* Scan */
.scan-page {
  max-width: 620px;
  margin: 40px auto;
  padding: 40px 32px;
  text-align: center;
}
.scan-page h1 {
  margin-top: 18px;
  font-size: 28px;
}
.scan-page > p {
  color: var(--muted);
}
.scan-orb {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #d0ff7166;
  color: var(--lime);
  animation: scan-pulse 1.2s ease-in-out infinite;
}
.scan-orb .icon {
  width: 32px;
  height: 32px;
}
@keyframes scan-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #d0ff7140;
  }
  50% {
    box-shadow: 0 0 0 16px #d0ff7100;
  }
}
.scan-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.scan-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: #6f7a6c;
  font-size: 15px;
}
.scan-steps li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 11px var(--mono);
}
.scan-steps li > span .icon {
  width: 14px;
  height: 14px;
}
.scan-steps li.active {
  color: var(--white);
}
.scan-steps li.active > span {
  color: var(--lime);
  animation: scan-pulse 1.2s ease-in-out infinite;
}
.scan-steps li.done {
  color: var(--muted);
}
.scan-steps li.done > span {
  color: var(--bg);
  background: var(--lime);
  border-color: var(--lime);
}
/* Check workspace */
.step-tab.risk > span:first-child {
  color: var(--bg);
  background: var(--amber);
  border-color: var(--amber);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tag-row .risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.source-tag {
  color: var(--muted);
}
.qa {
  margin-top: 18px;
}
.qa-done {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.qa-done > span {
  grid-column: 1;
  color: var(--muted);
}
.qa-done > strong {
  grid-column: 1;
  color: var(--white);
}
.qa-done > .text-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
}
.qa-question {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #d0ff7166;
  border-radius: 6px;
  background: #1a2117;
}
.qa-step {
  margin: 0 0 6px;
  color: var(--lime);
  font: 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qa-question h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}
.qa-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.qa-option {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.qa-option:hover,
.qa-option:focus-visible {
  border-color: var(--lime);
  background: #283224;
}
.rec {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.rec > .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
}
.rec strong {
  display: block;
  font-size: 15px;
}
.rec p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.rec-ok {
  border-color: #708b49;
  background: #1f2a19;
}
.rec-ok > .icon,
.rec-ok strong {
  color: var(--lime);
}
.rec-edit {
  border-color: #786449;
  background: #2a251b;
}
.rec-edit > .icon,
.rec-edit strong {
  color: var(--amber);
}
.rec-remove {
  border-color: #7d4f45;
  background: #2c1e1b;
}
.rec-remove > .icon,
.rec-remove strong {
  color: var(--red);
}
.rec-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--bg);
  background: var(--lime);
  font: normal 10px/1.4 var(--mono);
  text-transform: uppercase;
  vertical-align: middle;
}
.decision-panel > .btn-primary {
  margin-top: 20px;
}
/* Upload preview */
.upload-material {
  padding: 0;
  background: transparent;
}
.upload-stage {
  aspect-ratio: auto;
  max-height: 420px;
  display: grid;
  place-items: center;
}
.upload-stage > img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}
.upload-video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}
.upload-material audio {
  width: 100%;
  margin: 12px 0;
}
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #786449;
  border-radius: 3px;
  color: var(--amber);
  background: #2a251b;
  font: 11px/1.4 var(--mono);
}
.chip .icon {
  width: 13px;
  height: 13px;
}
.chip.ok {
  color: var(--lime);
  border-color: #708b49;
  background: #1f2a19;
}
.caption-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
.caption-box h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.caption-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
mark.hl {
  padding: 1px 3px;
  border-radius: 2px;
  color: var(--white);
  background: #5a4a2a;
}
mark.hl.current {
  color: var(--bg);
  background: var(--amber);
}
/* Report */
.status-pill.attention,
.status-pill.pending,
.status-pill.risk {
  color: var(--amber);
  border-color: #786449;
  background: #302a20;
}
.status-pill.removed,
.status-pill.edited {
  color: var(--white);
  border-color: var(--border);
  background: var(--surface-2);
}
.qa-summary {
  margin: 10px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.qa-summary strong {
  color: var(--white);
}
.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.codes span {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
}
.clean-text {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--white);
  font: 14px/1.7 var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.flash {
  margin-top: 10px;
  color: var(--lime);
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--lime);
}
.empty-state .summary-actions {
  justify-content: center;
}
.preview-item h3 {
  margin: 0;
  font-size: 15px;
}
@media (max-width: 900px) {
  .upload-grid,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dropzone {
    min-height: 200px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .back-link,
  .summary-actions,
  .text-link {
    display: none !important;
  }
}
.step-tabs {
  flex-wrap: wrap;
  min-width: 0;
}
.step-tab {
  flex: 1 1 150px;
  justify-content: flex-start;
  min-width: 0;
  text-align: left;
  font-size: 13px;
}

/* ---------- Language switch & Chinese typography ---------- */
:root {
  --display: Impact, "Arial Narrow", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --body: Arial, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
html[lang="zh-CN"] body {
  line-height: 1.6;
}
html[lang="zh-CN"] h1 {
  letter-spacing: 0.02em;
}
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.lang-switch button {
  min-width: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.lang-switch button:hover {
  color: var(--white);
}
.lang-switch button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--lime);
  font-weight: 600;
}
.clean-preview {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
