* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f3ea;
  color: #183c30;
  font:
    16px/1.6 Arial,
    sans-serif;
  --ink: #183c30;
  --photo: url("/themes/forest.jpg");
  --surface: #f6f3ea;
}
body[data-sector="optoelectronics"] {
  --ink: #163c54;
  --photo: url("/themes/fibre.jpg");
  --surface: #f1f6f8;
  background: var(--surface);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
label {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  border: 1px solid #718a7d;
  background: white;
  color: var(--ink);
  padding: 10px 17px;
  border-radius: 8px;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b36800;
  outline-offset: 3px;
}
h1,
h2 {
  font-family: Georgia, serif;
  line-height: 1.15;
  font-weight: 400;
}
h1 {
  font-size: 40px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 18px;
}
.primary {
  background: var(--ink);
  color: white;
  font-weight: bold;
}
.danger {
  border-color: #8e4337;
  color: #75382e;
}
.brand {
  font-weight: bold;
  letter-spacing: 1.5px;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.6px;
  font-weight: normal;
}
#header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 20px max(24px, calc((100vw - 1160px) / 2));
}
.languages {
  display: flex;
  gap: 10px;
}
.languages button {
  border: 0;
  background: transparent;
}
.languages [aria-pressed="true"] {
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  font-weight: bold;
}
#app,
#footer,
#notice {
  max-width: 1160px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: #fff;
  min-height: 465px;
}
.hero-copy {
  padding: 42px;
}
.hero-copy h1 {
  font-size: 42px;
  margin: 18px 0;
}
.hero-copy p {
  color: #e5ece7;
}
.hero-photo {
  background: var(--photo) center/cover;
  position: relative;
  min-height: 220px;
}
.circuit-detail {
  background: url("/themes/circuit.jpg") center/cover;
  width: 100px;
  height: 100px;
  position: absolute;
  right: 20px;
  top: 20px;
  border: 3px solid white;
  border-radius: 50%;
}
.tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.entry-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  margin: 36px 0;
}
.panel {
  background: #fff;
  border: 1px solid #cbd7ce;
  border-radius: 13px;
  padding: 27px;
  margin: 24px 0;
}
.panel > label,
.field {
  display: block;
}
.panel input[type="password"],
form > input[type="password"] {
  width: 100%;
  padding: 13px;
  border: 1px solid #627c6c;
  border-radius: 6px;
  margin: 9px 0 16px;
}
form > .primary {
  width: 100%;
}
.muted,
.small {
  color: #4d6357;
}
.small {
  font-size: 13px;
}
.rights {
  background: #e5ece3;
  padding: 20px;
  border-radius: 9px;
}
body[data-sector="optoelectronics"] .rights {
  background: #e2ecf1;
}
.ribbon {
  background-image: linear-gradient(90deg, #132f29e8, #0b253550), var(--photo);
  background-size: cover;
  background-position: center;
  padding: 22px 30px;
  color: white;
  border-radius: 0 0 12px 12px;
}
.ribbon h1 {
  margin: 8px 0;
  font-size: 30px;
}
.ribbon p {
  margin: 0;
  font-size: 14px;
}
.demo {
  background: #fff1c9;
  color: #554115;
  padding: 8px 15px;
  font-size: 12px;
}
.metrics {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 20px 0 8px;
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--ink);
}
nav,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
nav button[aria-current] {
  background: var(--ink);
  color: #fff;
}
.save-status {
  border-left: 3px solid var(--ink);
  padding-left: 12px;
  font-size: 13px;
}
.why {
  max-width: 850px;
}
.choice-fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.choice-fieldset legend {
  font-size: 14px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: white;
  border: 1.5px solid #9eb3a7;
  border-radius: 10px;
  cursor: pointer;
  min-height: 86px;
}
.choice input {
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
  margin: 0;
  flex-shrink: 0;
}
.choice svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  flex-shrink: 0;
}
.choice:has(input:checked) {
  border: 2px solid var(--ink);
  background: #e9f0e7;
  padding: 19.5px;
}
.choice:has(input:focus-visible) {
  outline: 3px solid #b36800;
  outline-offset: 3px;
}
.choice strong {
  font-size: 16px;
}
.function-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.function-index button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.source {
  border-left: 3px solid #93a891;
  padding: 13px 17px;
  background: #f2f5ef;
  font-size: 14px;
  overflow-wrap: anywhere;
}
a {
  color: var(--ink);
}
.country-map {
  width: 100%;
  max-height: 370px;
  background: #e5edf0;
  margin-top: 15px;
}
.country-map path {
  fill: #a6b7ac;
  stroke: white;
  stroke-width: 0.4;
  cursor: pointer;
}
.country-map .selected {
  fill: #214c3b;
}
.country-map .muted-country {
  opacity: 0.3;
}
.country-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0;
}
.country-list label,
.country-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: white;
  padding: 8px;
  border: 1px solid #ccd8d0;
  border-radius: 5px;
}
.country-list input,
.country-choice input {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
}
.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid #cbd7cf;
  padding: 20px 24px;
  overflow-wrap: anywhere;
}
.review-row .source {
  grid-column: 1/-1;
}
.review-row button {
  align-self: start;
}
.review-row h3 {
  margin: 0;
}
.error {
  padding: 16px;
  background: #fae7e0;
  color: #712f24;
  border-left: 3px solid #8d4635;
}
#notice {
  padding: 14px;
  color: #713c24;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}
#notice:empty {
  padding: 0;
}
#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid #c7d4c9;
  padding: 24px 0;
  margin-top: 40px;
  font-size: 12px;
}
.vendor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vendor {
  flex-wrap: wrap;
}
.vendor-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.vendor img {
  height: 22px;
  width: auto;
  max-width: 110px;
}
.footer-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links button {
  border: 0;
  padding: 0;
  background: none;
  text-decoration: underline;
  font-size: 12px;
}
dialog {
  max-width: 600px;
  border: 1px solid #91a79a;
  border-radius: 10px;
  padding: 28px;
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field select {
  width: 100%;
  padding: 10px;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 1208px) {
  #app,
  #footer,
  #notice {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 720px) {
  #app,
  #footer,
  #notice {
    margin-left: 16px;
    margin-right: 16px;
  }
  #header {
    padding: 15px 16px;
  }
  .brand {
    font-size: 13px;
  }
  .languages {
    gap: 0;
  }
  .languages button {
    font-size: 14px;
    padding: 8px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    grid-row: 1;
    min-height: 160px;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .entry-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 20px;
  }
  .choices,
  .function-index {
    grid-template-columns: 1fr;
  }
  .country-list {
    grid-template-columns: 1fr 1fr;
  }
  .review-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ribbon {
    padding: 22px;
  }
  .ribbon h1 {
    font-size: 26px;
  }
  .metrics {
    font-size: 12px;
  }
  .actions button {
    flex: 1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  #footer {
    align-items: flex-start;
  }
  .choice {
    padding: 17px;
  }
  .choice:has(input:checked) {
    padding: 16.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
.legal-page {
  max-width: 1000px !important;
}
.legal-page .panel {
  padding: 32px 40px;
}
.legal-page h2 {
  font-size: 25px;
  margin-top: 32px;
}
.legal-page p {
  max-width: 78ch;
}
.legal-page address {
  font-style: normal;
  overflow-wrap: anywhere;
}
.legal-nav {
  gap: 16px 24px;
}
.legal-nav a[aria-current] {
  font-weight: bold;
  text-underline-offset: 5px;
}
.legal-intro {
  font-size: 18px;
}
.legal-page li {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.languages a {
  padding: 8px;
  color: var(--ink);
}
.languages a[aria-current] {
  font-weight: bold;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
@media (max-width: 720px) {
  .legal-page .panel {
    padding: 20px;
  }
  .legal-page h2 {
    font-size: 23px;
  }
}

/* Task-121: important content first, explanations smaller and quieter. */
.why,
.hint {
  font-size: 13.5px;
  line-height: 1.45;
  color: #5b6f66;
  margin: 4px 0 12px;
  max-width: 760px;
}
h2 + .why {
  margin-top: -6px;
}
.q-title {
  font-size: 18px;
  margin: 26px 0 4px;
}
.badge {
  display: inline-block;
  font-size: 11.5px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e3ebe2;
  color: var(--ink);
  white-space: nowrap;
}
.badge.done {
  background: var(--ink);
  color: #fff;
}
.skip-link {
  min-height: 36px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: #5b6f66;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-self: start;
}
.skip-link[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.is-skipped {
  opacity: 0.72;
}
/* Compact segmented choice */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1.5px solid #9eb3a7;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.seg-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg-option:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.seg-option:has(input:focus-visible) {
  outline: 3px solid #b36800;
  outline-offset: 2px;
}
.field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #5b6f66;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
}
/* Site profile form */
.profile-form {
  display: grid;
  border: 1px solid #c9d6cd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.profile-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 20px;
  padding: 16px 20px;
  border-top: 1px solid #e3ebe2;
  align-items: start;
}
.profile-row:first-child {
  border-top: 0;
}
.profile-row.is-invalid {
  background: #fdf6ec;
}
.profile-label {
  font-weight: 700;
  font-size: 14px;
  padding-top: 8px;
}
.profile-value {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}
.profile-value strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.profile-value .badge {
  justify-self: start;
}
.profile-value .source {
  border: 0;
  padding: 0;
  background: none;
  font-size: 12px;
  color: #5b6f66;
}
.profile-actions {
  display: grid;
  gap: 6px;
}
.profile-actions input[type="text"],
.profile-actions input[type="number"] {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1.5px solid #9eb3a7;
  border-radius: 8px;
}
/* Function toggles */
.fn-toggle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.fn-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  border: 1.5px solid #c3d0c7;
}
.fn-toggle img,
.fn-toggle svg,
.row-name img,
.row-name svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
}
.fn-toggle span:not(.badge) {
  flex: 1;
}
.fn-toggle[aria-pressed="true"] {
  border: 2px solid var(--ink);
  background: #e9f0e7;
  font-weight: 700;
}
.fn-toggle[aria-pressed="false"] {
  color: #4d6258;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.function-index button[aria-current="true"] {
  border: 2px solid var(--ink);
  background: #e9f0e7;
}
/* One row per function / item */
.rows {
  display: grid;
  border: 1px solid #c9d6cd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #e3ebe2;
}
.row:first-child {
  border-top: 0;
}
.row-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.skill-row,
.function-row {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}
.function-row .row-name {
  grid-row: span 5;
  flex-wrap: wrap;
  align-self: start;
}
.function-row.is-done {
  background: #f4f8f3;
}
.function-row .skip-link {
  grid-column: 2;
}
.skill-row .row-name {
  grid-row: span 4;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.skill-row .row-name .hint {
  margin: 0;
}
.skill-row .field-label {
  margin: 0;
}
/* 0-10 scale */
.scale-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scale-control input[type="range"] {
  flex: 1;
  min-width: 120px;
  accent-color: var(--ink);
  height: 32px;
}
.scale-control input.unset {
  opacity: 0.4;
}
.scale-end {
  font-size: 12px;
  color: #5b6f66;
}
.scale-value {
  min-width: 2.2em;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}
@media (max-width: 720px) {
  .profile-row,
  .row,
  .skill-row {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .profile-label {
    padding-top: 0;
  }
  .skill-row .row-name,
  .function-row .row-name {
    grid-row: auto;
  }
  .function-row .skip-link {
    grid-column: auto;
  }
  .fn-toggle-list {
    grid-template-columns: 1fr;
  }
}
.fn-toggle .badge {
  white-space: normal;
  text-align: center;
  max-width: 7.5em;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ---- Task-122: five visual families (stage, answers, commands, administration, text) ---- */
.ribbon.slim {
  padding: 12px 24px;
  border-radius: 0 0 10px 10px;
}
.ribbon.slim h1 {
  margin: 2px 0 0;
  font-size: 22px;
}
/* Administration: one quiet sand strip */
.adminbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0 0;
  padding: 8px 14px;
  background: #ebe7dc;
  border-radius: 10px;
  font-size: 13px;
  color: #2c4a3e;
}
.adminbar .admin-spacer {
  flex: 1;
}
.adminbar .admin-warn {
  color: #6b4b00;
  font-weight: 600;
  flex-basis: 100%;
}
.adminbar .save-status,
.adminbar .error {
  border: 0;
  padding: 0;
  font-size: 12.5px;
  max-width: 420px;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #a9b8ad;
  border-radius: 8px;
  background: #f6f3ea;
  font-size: 13px;
  font-weight: 600;
}
.admin-link {
  min-height: 36px;
  padding: 4px 4px;
  border: 0;
  background: none;
  color: #8a3b12;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cmd-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* Stage: connected arrows */
nav.stepper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 18px 0 0;
}
nav.stepper .step {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  margin: 0 0 0 -6px;
  padding: 4px 20px 4px 24px;
  border: 0;
  border-radius: 0;
  background: #ebe7dc;
  color: #4f6259;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
nav.stepper .step:first-child {
  margin-left: 0;
  padding-left: 14px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
nav.stepper .step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
}
nav.stepper .step.done {
  background: #dfe9dc;
  color: var(--ink);
}
nav.stepper .step.current,
nav.stepper .step[aria-current] {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
nav.stepper .step:focus-visible {
  outline: 3px solid #b36800;
  outline-offset: -3px;
}
.step-no {
  font-size: 11.5px;
  opacity: 0.85;
}
.stepper-compact {
  display: none;
}
/* Section intro sits outside the interview card */
#app > h2 {
  margin: 26px 0 4px;
  font-size: 30px;
  font-weight: 400;
}
/* Interview card: questions, answers, help, skip only */
.interview-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 30px;
  margin-top: 14px;
  box-shadow: 0 1px 2px #183c3014, 0 10px 30px #183c3010;
}
.interview-card > .q-title:first-child,
.interview-card > details:first-child + .q-title {
  margin-top: 6px;
}
.interview-card .rows,
.interview-card .profile-form {
  border-color: #e3ddcf;
}
details.about {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #e3ddcf;
  border-radius: 10px;
  background: #faf8f2;
  font-size: 14px;
}
details.about summary {
  cursor: pointer;
  font-weight: 700;
}
details.about p {
  max-width: 820px;
}
.wrong-site {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #d9d3c4;
}
/* Answers: compact tiles with a visible radio marker */
.choice-fieldset legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.choices {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
  max-width: 760px;
}
.choice,
.choice:has(input:checked) {
  min-height: 42px;
  padding: 7px 12px;
  gap: 9px;
  border-radius: 8px;
  background: #fbfaf6;
  border: 1.5px solid #b9c9be;
}
.choice:has(input:checked) {
  border: 2px solid var(--ink);
  background: #eef4ec;
  padding: 6.5px 11.5px;
}
.choice input {
  width: 16px;
  height: 16px;
}
.choice strong {
  font-size: 14px;
  font-weight: 600;
}
.choice:has(input:checked) strong {
  font-weight: 700;
}
.choice > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.choice-sub {
  font-size: 12px;
  color: #4f6259;
}
.seg-option {
  gap: 8px;
  min-height: 38px;
  padding: 6px 11px;
  background: #fbfaf6;
  font-weight: 500;
}
.seg-option input {
  position: static;
  opacity: 1;
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.seg-option:has(input:checked) {
  background: #eef4ec;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 5.5px 10.5px;
}
/* Page commands: pills with icons, one solid primary */
.pagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #d9d3c4;
}
.pagebar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cmd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 8px 6px;
  font-weight: 600;
}
.cmd-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 8px 18px;
  font-weight: 600;
}
.cmd-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 720px) {
  nav.stepper {
    display: none;
  }
  .stepper-compact {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 13px;
  }
  .stepper-bar {
    display: flex;
    gap: 3px;
  }
  .stepper-bar span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #dcd6c7;
  }
  .stepper-bar .done {
    background: #7fa08c;
  }
  .stepper-bar .current {
    background: var(--ink);
  }
  .adminbar .save-status,
  .adminbar .error {
    flex-basis: 100%;
    max-width: none;
  }
  .interview-card {
    padding: 18px 14px;
    border-radius: 12px;
  }
  #app > h2 {
    font-size: 26px;
  }
  .choices {
    grid-template-columns: 1fr 1fr;
  }
  .pagebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 18px -16px 0;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e3ddcf;
    box-shadow: 0 -6px 18px #183c300d;
    flex-wrap: nowrap;
  }
  .pagebar-right {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .cmd-back,
  .cmd-review {
    font-size: 0;
    gap: 0;
    min-width: 46px;
    justify-content: center;
    padding: 8px;
  }
  .cmd-back .cmd-icon,
  .cmd-review .cmd-icon {
    width: 20px;
    height: 20px;
  }
  .cmd-next {
    flex: 1;
    justify-content: center;
    padding: 8px 14px;
    font-size: 15px;
  }
}

/* Task-123: participation gate, free text, multi-select and occupation grid */
.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1.5px solid #c9a227;
  border-radius: 10px;
  background: #fff8e1;
  color: #4a3a00;
  font-weight: 600;
}
.gate p {
  margin: 0;
}
.card-body.locked {
  opacity: 0.45;
  filter: grayscale(0.4);
}
.interview-card textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1.5px solid #b9c9be;
  border-radius: 8px;
  background: #fbfaf6;
  font: inherit;
  resize: vertical;
}
.msel .choice input {
  accent-color: var(--ink);
}
.answer-none {
  min-height: 38px;
  padding: 6px 12px;
  border: 1.5px dashed #b9c9be;
  border-radius: 8px;
  background: #fbfaf6;
  font-size: 14px;
}
.occupation-grid .row {
  grid-template-columns: minmax(180px, 1fr) auto;
}
.occupation-grid .seg .choice {
  min-height: 38px;
}
/* Task-128: NKS occupation cards, specializations nested under their parent */
.occupation-grid .occ-name {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.occupation-grid .occ-name .hint,
.occupation-grid .occ-name .occ-desc p {
  margin: 0;
}
.occ-desc summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13.5px;
}
.occ-desc p {
  margin: 4px 0 0;
  max-width: 62ch;
}
.occ-spec {
  padding-left: 40px;
  background: #f8faf6;
}
.occ-group {
  margin: 0;
  padding: 10px 18px;
  font-size: 14px;
  background: #e9f0e7;
}
.occ-legacy {
  margin-bottom: 12px;
}
