/* Education, care, law, and response-career presentations ---------------- */

.professions-game-shell {
  --profession-ink: #17324a;
  --profession-accent: #286b83;
  --profession-support: #ef9e48;
  --profession-paper: #f8fcff;
  --profession-line: color-mix(in srgb, var(--profession-accent) 30%, white);
}

.professions-game-shell button {
  min-width: 48px;
  min-height: 48px;
  touch-action: manipulation;
}

.professions-game-shell button:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--profession-support) 72%, white);
  outline-offset: 3px;
}

.profession-experience {
  position: relative;
  margin-block: 0.9rem;
  padding: clamp(0.72rem, 2vw, 1rem);
  overflow: hidden;
  color: var(--profession-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), var(--profession-paper));
  border: 2px solid var(--profession-line);
  border-radius: 20px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--profession-ink) 10%, transparent);
}

.profession-experience::before {
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -54px;
  width: 170px;
  height: 170px;
  content: "";
  opacity: 0.5;
  background: var(--profession-support);
  border-radius: 50%;
}

.profession-experience > * {
  position: relative;
  z-index: 1;
}

.profession-scene-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.profession-scene-heading small {
  color: var(--profession-accent);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.profession-scene-heading h3 {
  margin: 0.1rem 0 0;
  color: var(--profession-ink);
  font-size: clamp(1.06rem, 2.5vw, 1.38rem);
  line-height: 1.12;
}

.profession-scene-heading > span {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.42rem 0.65rem;
  color: var(--profession-ink);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--profession-line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--profession-ink) 10%, transparent);
}

/* Shared activity workbenches */

.profession-sequence-workbench,
.profession-match-workbench,
.profession-inspect-workbench,
.profession-control-workbench {
  margin-top: 0.72rem;
  padding: 0.68rem;
  background: color-mix(in srgb, var(--profession-paper) 74%, white);
  border: 2px solid var(--profession-line);
  border-radius: 15px;
}

.profession-sequence-workbench h4,
.profession-match-workbench h4,
.profession-control-workbench h4 {
  margin: 0 0 0.52rem;
  font-size: 0.82rem;
}

.profession-sequence-workbench > ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  list-style: none;
}

.profession-sequence-workbench > ol > li {
  display: grid;
  min-width: 0;
  min-height: 94px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem;
  background: white;
  border: 2px dashed var(--profession-line);
  border-radius: 12px;
}

.profession-sequence-workbench > ol > li.is-filled {
  background: color-mix(in srgb, var(--profession-support) 12%, white);
  border-color: var(--profession-accent);
  border-style: solid;
}

.profession-sequence-workbench > ol > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: var(--profession-ink);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 950;
}

.profession-sequence-workbench > ol > li div {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.profession-sequence-workbench > ol > li small {
  opacity: 0.7;
}

.profession-sequence-workbench > ol > li button {
  min-width: 48px;
  padding: 0;
  color: var(--profession-ink);
  background: white;
  border: 2px solid var(--profession-accent);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 950;
}

.profession-token-tray {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-top: 0.55rem;
}

.profession-token-tray button,
.profession-match-item,
.profession-match-slot,
.profession-inspect-workbench button,
.profession-control-workbench fieldset button {
  min-width: 0;
  color: var(--profession-ink);
  background: white;
  border: 2px solid var(--profession-accent);
  border-radius: 12px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--profession-ink) 18%, transparent);
  font-weight: 850;
}

.profession-token-tray button {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem;
  text-align: left;
}

.profession-token-tray button > span {
  font-size: 1.35rem;
}

.profession-match-workbench {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profession-match-workbench > div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.profession-match-item,
.profession-match-slot,
.profession-inspect-workbench button {
  display: grid;
  min-height: 82px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.12rem 0.5rem;
  padding: 0.52rem;
  text-align: left;
}

.profession-match-item > span,
.profession-match-slot > span,
.profession-inspect-workbench button > span {
  grid-row: 1 / -1;
  font-size: 1.35rem;
}

.profession-match-item small,
.profession-match-slot small,
.profession-inspect-workbench small {
  opacity: 0.72;
}

.profession-match-item.is-selected,
.profession-inspect-workbench button.is-selected,
.profession-control-workbench button.is-selected {
  color: white;
  background: var(--profession-ink);
  border-color: var(--profession-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--profession-support) 30%, transparent);
}

.profession-match-item.is-assigned:not(.is-selected),
.profession-match-slot.is-filled {
  color: var(--profession-ink);
  background: color-mix(in srgb, var(--profession-support) 17%, white);
  border-color: var(--profession-support);
}

.profession-match-slot:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.45);
}

.profession-inspect-workbench {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profession-control-workbench > div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.profession-control-workbench fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.55rem;
  background: white;
  border: 2px solid var(--profession-line);
  border-radius: 12px;
}

.profession-control-workbench legend {
  padding-inline: 0.24rem;
  color: var(--profession-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.profession-control-workbench fieldset > div {
  display: grid;
  gap: 0.42rem;
}

.profession-control-workbench fieldset button {
  width: 100%;
  padding: 0.48rem;
}

.professions-feedback {
  border-color: var(--profession-line);
}

.professions-feedback.is-success {
  background: #e5f8ee;
  border-color: #27865b;
}

/* 1. Elementary classroom */

.profession-elementary-classroom-centers {
  --profession-ink: #47316d;
  --profession-accent: #7a55bd;
  --profession-support: #ffd166;
  --profession-paper: #fff8df;
}

.elementary-classroom-scene {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(230px, 1.5fr);
  gap: 0.7rem;
  padding: 0.75rem;
  overflow: hidden;
  background:
    linear-gradient(#dff4ff 0 57%, #ecc996 57%);
  border: 4px solid #8c653d;
  border-radius: 16px;
}

.classroom-board {
  display: grid;
  align-content: center;
  padding: 0.65rem;
  color: #fff8d0;
  background: #295d54;
  border: 7px solid #a16b36;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #153a34;
  text-align: center;
}

.classroom-board small,
.classroom-board span {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.classroom-board span {
  margin-top: 0.45rem;
  color: #ffd166;
  font-size: 1.35rem;
}

.classroom-rug {
  display: grid;
  min-height: 56px;
  place-items: center;
  align-self: end;
  background: repeating-linear-gradient(90deg, #f7a5b7 0 28px, #ffd166 28px 56px, #78c6e8 56px 84px);
  border-radius: 50%;
}

.classroom-centers {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.classroom-centers article {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 0.15rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  border: 3px dashed #bc94e5;
  border-radius: 14px;
  text-align: center;
}

.classroom-centers article.is-ready {
  background: #e5f8d8;
  border-color: #4e9b57;
  border-style: solid;
}

.classroom-centers article > span {
  font-size: 1.4rem;
}

.classroom-centers article strong {
  overflow-wrap: anywhere;
  font-size: 0.7rem;
}

.classroom-teacher {
  position: absolute;
  z-index: 2;
  left: 17%;
  bottom: 16%;
  font-size: 2.2rem;
}

/* 2. Secondary lesson lab */

.profession-secondary-lesson-lab {
  --profession-ink: #183b5b;
  --profession-accent: #2375a5;
  --profession-support: #71c285;
  --profession-paper: #eff9fc;
}

.secondary-lesson-scene {
  position: relative;
  min-height: 255px;
  padding: 0.8rem;
  background: linear-gradient(165deg, #e5f5ff 0 62%, #b4855e 62%);
  border: 4px solid #36546d;
  border-radius: 16px;
}

.secondary-board {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #efffd7;
  background: #265b4d;
  border: 7px solid #a46e3c;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 950;
}

.secondary-lab-benches {
  display: grid;
  margin-top: 1rem;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.secondary-lab-benches article {
  display: grid;
  min-height: 100px;
  place-items: center;
  padding: 0.5rem;
  background: #fff;
  border: 3px solid #6c89a0;
  border-bottom-width: 8px;
  border-radius: 10px;
  text-align: center;
}

.secondary-lab-benches article.is-ready {
  background: #e4f8e9;
  border-color: #378a50;
}

.secondary-lab-benches small {
  font-size: 0.68rem;
}

.secondary-teacher {
  position: absolute;
  right: 1.1rem;
  top: 2.7rem;
  font-size: 2rem;
}

/* 3. College lecture studio */

.profession-college-lecture-studio {
  --profession-ink: #192946;
  --profession-accent: #365b98;
  --profession-support: #efbd57;
  --profession-paper: #f3f5fb;
}

.college-studio-scene {
  display: grid;
  min-height: 270px;
  grid-template-columns: 0.7fr 1.6fr;
  grid-template-rows: 1fr auto;
  gap: 0.65rem;
  padding: 0.85rem;
  color: white;
  background: radial-gradient(circle at 50% 20%, #40547c, #172641 70%);
  border-radius: 18px;
  box-shadow: inset 0 -10px 0 #0f1c31;
}

.college-podium {
  display: grid;
  align-content: center;
  align-self: end;
  min-height: 145px;
  padding: 0.65rem;
  background: linear-gradient(90deg, #926a3e, #c29255);
  border: 3px solid #e0bd80;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  text-align: center;
}

.college-podium > span {
  font-size: 1.8rem;
}

.college-podium small {
  font-size: 0.68rem;
}

.college-screen {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.7rem;
  color: #192946;
  background: #eff5ff;
  border: 6px solid #0d1728;
  border-radius: 8px;
}

.college-screen article {
  display: grid;
  place-items: center;
  gap: 0.1rem;
  padding: 0.45rem;
  background: white;
  border: 2px dashed #89a0c7;
  border-radius: 8px;
  text-align: center;
}

.college-screen article.is-ready {
  background: #fff3cf;
  border-color: #c28a20;
  border-style: solid;
}

.college-screen b {
  color: #365b98;
}

.college-screen small {
  font-size: 0.62rem;
}

.college-seats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}

.college-seats i {
  height: 24px;
  background: #a9b9d6;
  border-radius: 18px 18px 5px 5px;
}

/* 4. PE movement circuit */

.profession-pe-movement-circuit {
  --profession-ink: #173d44;
  --profession-accent: #167d7b;
  --profession-support: #ff8c42;
  --profession-paper: #effbf5;
}

.movement-circuit-scene {
  position: relative;
  display: grid;
  min-height: 245px;
  align-items: end;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4.2rem 0.8rem 0.8rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.32) 24% 25%),
    linear-gradient(#9cdbed 0 28%, #d5a45f 28%);
  border: 5px solid #4d796c;
  border-radius: 16px;
}

.gym-scoreboard {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  display: grid;
  width: min(72%, 350px);
  padding: 0.45rem;
  transform: translateX(-50%);
  color: #dcff7b;
  background: #132f32;
  border: 4px solid #81948b;
  text-align: center;
}

.movement-circuit-scene article {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 4px dashed #ef7d32;
  border-radius: 18px 18px 9px 9px;
  text-align: center;
}

.movement-circuit-scene article.is-ready {
  background: #e2fae8;
  border-color: #207850;
  border-style: solid;
}

.movement-circuit-scene article > span {
  font-size: 1.55rem;
}

.gym-coach {
  position: absolute;
  right: 0.4rem;
  top: 1.3rem;
  font-size: 2rem;
}

/* 5. Psychiatry care-team board */

.profession-psychiatry-care-team-board {
  --profession-ink: #43365e;
  --profession-accent: #7864a3;
  --profession-support: #83bd9a;
  --profession-paper: #f7f3fb;
}

.psychiatry-care-scene {
  display: grid;
  min-height: 245px;
  gap: 0.65rem;
  grid-template-columns: 0.8fr 1.35fr;
  padding: 0.8rem;
  background: linear-gradient(135deg, #e8e1f1, #f4f8ef);
  border-radius: 18px;
}

.care-room {
  position: relative;
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: space-between;
  padding: 0.8rem;
  background: #fffdf6;
  border: 3px solid #b6a6c7;
  border-radius: 15px;
  font-size: 1.7rem;
}

.care-room i {
  width: 80%;
  height: 16px;
  background: #8eb7a1;
  border-radius: 50%;
}

.care-team-path {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  list-style: none;
}

.care-team-path li {
  display: grid;
  min-height: 44px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem;
  background: white;
  border: 2px dashed #a99ac2;
  border-radius: 10px;
}

.care-team-path li.is-ready {
  background: #e5f5e9;
  border-color: #4d9469;
  border-style: solid;
}

.care-team-path li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: #665485;
  border-radius: 50%;
}

.care-team-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
  color: white;
  background: #51436a;
  border-radius: 10px;
}

/* 6. Psychology research lab */

.profession-psychology-research-lab {
  --profession-ink: #174459;
  --profession-accent: #20809a;
  --profession-support: #f5bd4f;
  --profession-paper: #eefaff;
}

.psychology-lab-scene {
  display: grid;
  min-height: 240px;
  gap: 0.7rem;
  padding: 0.8rem;
  background: linear-gradient(115deg, #cfeefa, #f1f8fb);
  border: 3px solid #75a9bc;
  border-radius: 16px;
}

.observation-moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.observation-moment {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 3px solid #5a8fa3;
  border-radius: 14px;
  box-shadow: 0 5px 0 rgba(23, 68, 89, 0.14);
}

.observation-moment-scene {
  display: grid;
  min-height: 145px;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 0.6rem;
  color: #173f52;
  background:
    radial-gradient(circle at 85% 15%, #fff2a9 0 9%, transparent 10%),
    linear-gradient(145deg, #d9f4ff, #fff8dc);
  text-align: center;
}

.observation-moment:nth-child(2) .observation-moment-scene {
  background: linear-gradient(145deg, #f5e4ff, #e8fbff);
}

.observation-moment:nth-child(3) .observation-moment-scene {
  background: linear-gradient(145deg, #fff0dc, #e9f7e3);
}

.observation-moment-scene > small {
  color: #4c7180;
  font: 850 0.56rem ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.observation-moment-scene > span {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.observation-moment-scene > p {
  margin: 0;
  color: #365e6f;
  font-size: 0.72rem;
}

.observation-moment-choices {
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem;
  background: #f4fbfd;
}

.observation-moment-choices button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.38rem;
  padding: 0.45rem;
  color: #254c5d;
  background: #fff;
  border: 2px solid #9bbfca;
  border-radius: 10px;
  text-align: left;
}

.observation-moment-choices button.is-selected {
  color: #0e3e4d;
  background: #d6f4fb;
  border-color: #20809a;
  box-shadow: inset 5px 0 #20809a;
}

.observation-console {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem;
  color: #dffbff;
  background: #173c4a;
  border: 5px solid #527987;
  border-radius: 13px;
  text-align: left;
}

.observation-console > span {
  font-size: 1.5rem;
}

.observation-console > div {
  display: grid;
}

.observation-console.is-review {
  color: #3f2e04;
  background: #ffe8a6;
  border-color: #c89528;
}

.observation-console.is-ready {
  color: #092d1e;
  background: #a8efc5;
  border-color: #3aa76c;
}

/* 7. Family listening map */

.profession-family-listening-map {
  --profession-ink: #25424b;
  --profession-accent: #377f83;
  --profession-support: #e7aa45;
  --profession-paper: #f4fbf8;
}

.listening-map-scene {
  display: grid;
  min-height: 245px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem;
  background: linear-gradient(#dff3f2 0 62%, #92c4ad 62%);
  border-radius: 18px;
}

.listening-person {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: white;
  border: 4px solid #5c9692;
  border-radius: 50%;
  font-size: 1.8rem;
}

.listening-bridge {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listening-bridge article {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 0.4rem;
  background: #fff9e9;
  border: 4px dashed #ba8a39;
  border-radius: 12px;
  text-align: center;
}

.listening-bridge article.is-ready {
  background: #e6f9eb;
  border-color: #40835c;
  border-style: solid;
}

.listening-bridge article small {
  font-size: 0.65rem;
}

.shared-goal-sign {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.45rem 0.75rem;
  color: white;
  background: #315e64;
  border: 3px solid white;
  border-radius: 999px;
}

/* 8. Pediatric visit */

.profession-pediatric-visit {
  --profession-ink: #344875;
  --profession-accent: #527bc0;
  --profession-support: #ef8da1;
  --profession-paper: #fff7fb;
}

.pediatric-room-scene {
  position: relative;
  display: grid;
  min-height: 265px;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 0.65rem;
  padding: 3.6rem 0.8rem 0.8rem;
  background: linear-gradient(#dff2ff 0 70%, #f1c995 70%);
  border: 4px solid #7898ba;
  border-radius: 18px;
}

.pediatric-wall {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  display: flex;
  width: calc(100% - 1rem);
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  transform: translateX(-50%);
  color: #33466f;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
}

.pediatric-growth-chart {
  display: grid;
  align-content: end;
  gap: 0.3rem;
  padding: 0.55rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #86a5c5 23px 25px),
    #fff;
  border: 4px solid #6c89a6;
  border-radius: 9px;
}

.pediatric-growth-chart small {
  padding: 0.25rem;
  background: white;
  font-weight: 900;
  text-align: center;
}

.pediatric-room-scene > ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.pediatric-room-scene > ol li {
  display: grid;
  min-height: 75px;
  place-items: center;
  padding: 0.4rem;
  background: white;
  border: 3px dashed #e591a7;
  border-radius: 12px;
  text-align: center;
}

.pediatric-room-scene > ol li.is-ready {
  background: #e8fae7;
  border-color: #5f9d55;
  border-style: solid;
}

.pediatric-family,
.pediatric-toys {
  position: absolute;
  bottom: 0.75rem;
  left: 1.15rem;
  font-size: 1.55rem;
}

.pediatric-toys {
  left: auto;
  right: 1.1rem;
}

/* 9. Neurosurgery team board */

.profession-neuro-team-board {
  --profession-ink: #24365f;
  --profession-accent: #435fa4;
  --profession-support: #35aa9c;
  --profession-paper: #eff6fb;
}

.neuro-team-scene {
  display: grid;
  min-height: 250px;
  gap: 0.65rem;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 0.8rem;
  color: #dffcff;
  background: linear-gradient(135deg, #183154, #24616e);
  border: 4px solid #7ba5ae;
  border-radius: 16px;
}

.neuro-image-board,
.neuro-team-huddle,
.neuro-safety-gate {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  background: rgba(8, 25, 49, 0.75);
  border: 2px solid #79c6ce;
  border-radius: 11px;
  text-align: center;
}

.neuro-image-board {
  grid-row: span 2;
}

.neuro-image-board > span {
  font-size: 3.2rem;
  filter: hue-rotate(38deg);
}

.neuro-image-board i {
  width: 80%;
  height: 3px;
  background: #55d4c9;
  box-shadow: 0 9px 0 #55d4c9, 0 -9px 0 #55d4c9;
}

.neuro-team-huddle > span {
  font-size: 1.6rem;
}

.neuro-safety-gate.is-ready {
  color: #092f23;
  background: #9fe4c3;
  border-color: white;
}

.neuro-safety-gate.is-warning {
  color: #551d0d;
  background: #ffd0b2;
  border-color: #ff8254;
}

/* 10. Tooth-alignment model */

.profession-tooth-alignment-model {
  --profession-ink: #244560;
  --profession-accent: #4186ae;
  --profession-support: #e89ab0;
  --profession-paper: #f4fbff;
}

.alignment-model-scene {
  display: grid;
  min-height: 255px;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  padding: 0.8rem;
  background: linear-gradient(145deg, #dceffc, #fff5f7);
  border-radius: 18px;
}

.alignment-photo-strip,
.alignment-mouth-model,
.alignment-bite-meter {
  display: grid;
  place-items: center;
  padding: 0.55rem;
  background: white;
  border: 3px solid #76a9c5;
  border-radius: 13px;
  text-align: center;
}

.alignment-photo-strip i {
  display: inline-block;
  width: 26px;
  height: 20px;
  margin: 0.1rem;
  background: #cce2ee;
  border: 2px solid #6f96ab;
}

.alignment-mouth-model > span {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(4, 1fr);
  color: #c37389;
  font-size: 1.45rem;
}

.alignment-bite-meter i {
  width: 8px;
  height: 58px;
  background: linear-gradient(#61aeca 50%, #ef9daf 50%);
  border-radius: 10px;
}

.alignment-links {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alignment-links span {
  padding: 0.4rem;
  background: white;
  border: 2px dashed #84aabd;
  border-radius: 9px;
  text-align: center;
}

.alignment-links span.is-ready {
  background: #e5f8eb;
  border-color: #3b9a61;
  border-style: solid;
}

/* 11. Lens lab */

.profession-lens-lab {
  --profession-ink: #172d42;
  --profession-accent: #26758b;
  --profession-support: #f3cc5d;
  --profession-paper: #eef7fa;
}

.lens-lab-scene {
  display: grid;
  min-height: 260px;
  align-items: center;
  gap: 0.7rem;
  grid-template-columns: 0.8fr 1.3fr 0.7fr;
  padding: 0.8rem;
  color: #d9f5ff;
  background: radial-gradient(circle at 20% 35%, #315d70, #132a3d 68%);
  border: 4px solid #56879a;
  border-radius: 16px;
}

.vision-chart {
  display: grid;
  place-items: center;
  gap: 0.1rem;
  padding: 0.6rem;
  color: #152b3b;
  background: #f8fcff;
  border: 5px solid #89a4b1;
  border-radius: 7px;
}

.vision-chart strong {
  font-size: 2rem;
}

.vision-chart small {
  margin-top: 0.3rem;
  font-size: 0.55rem;
}

.lens-distance-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.lens-distance-line i {
  height: 5px;
  background: repeating-linear-gradient(90deg, #f3cc5d 0 10px, transparent 10px 17px);
}

.lens-distance-line strong {
  grid-column: 1 / -1;
  text-align: center;
}

.lens-distance-line.is-ready {
  color: #baf3c8;
}

.lens-chair,
.lens-lamp {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  text-align: center;
}

.lens-chair > span,
.lens-lamp > span {
  font-size: 2.2rem;
}

.lens-lamp.is-ready {
  color: #fff2a7;
  text-shadow: 0 0 16px #fff4b1;
}

/* 12. Medication-label bench */

.profession-medication-label-bench {
  --profession-ink: #20443b;
  --profession-accent: #2c816a;
  --profession-support: #e3ad4e;
  --profession-paper: #f1fbf6;
}

.medication-bench-scene {
  display: grid;
  min-height: 255px;
  gap: 0.65rem;
  grid-template-columns: 0.9fr 0.45fr 1.4fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 0.8rem;
  background:
    linear-gradient(0deg, #d6b98d 0 24%, transparent 24%),
    #e6f4ef;
  border: 4px solid #5c8577;
  border-radius: 16px;
}

.practice-prescription {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  background: #fff;
  border: 2px solid #7ba494;
  border-radius: 7px;
  box-shadow: 5px 5px 0 #a7c8bc;
}

.practice-prescription b {
  margin-top: 0.3rem;
  padding: 0.25rem;
  color: #7f2f21;
  background: #ffe4dc;
  border: 2px solid #c7624d;
  text-align: center;
}

.practice-bottle {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  color: #244b40;
  background: #eda84d;
  border: 5px solid white;
  border-radius: 15px 15px 25px 25px;
  box-shadow: 0 -18px 0 #f7f7f3;
  text-align: center;
}

.medication-gates {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  list-style: none;
}

.medication-gates li {
  display: grid;
  min-height: 42px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  background: white;
  border: 2px dashed #75a695;
  border-radius: 9px;
}

.medication-gates li.is-ready {
  background: #dcf5e5;
  border-color: #37865b;
  border-style: solid;
}

.pharmacy-warning {
  grid-column: 1 / -1;
  padding: 0.42rem;
  color: #4d3020;
  background: #fff2c9;
  border: 2px solid #d7aa45;
  border-radius: 9px;
  font-weight: 800;
  text-align: center;
}

/* 13. Balanced meal planner */

.profession-balanced-meal-planner {
  --profession-ink: #31502d;
  --profession-accent: #579448;
  --profession-support: #ef943d;
  --profession-paper: #fbfaed;
}

.meal-planner-scene {
  display: grid;
  min-height: 265px;
  gap: 0.6rem;
  grid-template-columns: 0.55fr 1.45fr;
  padding: 0.8rem;
  background: linear-gradient(125deg, #f7ddb1, #f8f5dc);
  border: 4px solid #769b62;
  border-radius: 18px;
}

.cafeteria-sign {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0.65rem;
  color: white;
  background: #4f8747;
  border: 7px solid #d99a4d;
  border-radius: 11px;
  text-align: center;
}

.cafeteria-sign > span {
  font-size: 2.3rem;
}

.meal-tray {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.65rem;
  background: #b7c4c4;
  border: 8px solid #7f9292;
  border-radius: 24px;
}

.meal-tray article,
.meal-tray > div {
  display: grid;
  min-height: 80px;
  place-items: center;
  padding: 0.35rem;
  background: #f8faf6;
  border: 3px dashed #86a474;
  border-radius: 18px;
  text-align: center;
}

.meal-tray article.is-ready {
  background: #e7f7dc;
  border-color: #579243;
  border-style: solid;
}

.meal-tray small {
  font-size: 0.65rem;
}

.meal-planner-scene > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 750;
}

/* 14. Judge evidence bench */

.profession-judge-evidence-bench {
  --profession-ink: #352a26;
  --profession-accent: #725348;
  --profession-support: #d7a83f;
  --profession-paper: #faf5ec;
}

.judge-bench-scene {
  display: grid;
  min-height: 260px;
  gap: 0.65rem;
  grid-template-columns: 0.65fr 1.15fr 0.7fr;
  padding: 0.8rem;
  color: #fff9e6;
  background: linear-gradient(165deg, #20304a 0 45%, #654632 45%);
  border: 5px solid #a77e49;
  border-radius: 16px;
}

.judge-dais {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0.55rem;
  background: #4d3328;
  border: 4px solid #d5ad64;
  border-radius: 8px;
  text-align: center;
}

.judge-dais > span {
  font-size: 2.4rem;
}

.court-record-stack {
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.court-record-stack span {
  padding: 0.45rem;
  color: #352a26;
  background: #fffdf4;
  border: 2px dashed #b6956b;
  border-radius: 7px;
}

.court-record-stack span.is-ready {
  background: #e5f5dc;
  border-color: #56854b;
  border-style: solid;
}

.court-record-stack span.is-warning {
  background: #ffd9c9;
  border-color: #c85836;
}

.court-balance {
  display: grid;
  place-items: center;
  align-content: center;
}

.court-balance i {
  width: 75%;
  height: 5px;
  background: #f2cd71;
}

.court-balance span {
  width: 5px;
  height: 75px;
  background: #f2cd71;
}

.court-balance b {
  width: 70%;
  height: 7px;
  background: #f2cd71;
}

.court-balance.is-ready {
  color: #c8ffcb;
}

.court-balance.is-warning {
  color: #ffd0bc;
}

/* 15. Defense case board */

.profession-defense-case-board {
  --profession-ink: #213b62;
  --profession-accent: #3569a2;
  --profession-support: #d8aa4a;
  --profession-paper: #f2f6fc;
}

.defense-board-scene {
  display: grid;
  min-height: 250px;
  gap: 0.65rem;
  grid-template-columns: 0.65fr 1.35fr;
  grid-template-rows: 1fr auto;
  padding: 0.8rem;
  color: #eef7ff;
  background: linear-gradient(135deg, #263f68, #466f9d);
  border: 4px solid #7fa4c7;
  border-radius: 16px;
}

.defense-client-card {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0.6rem;
  background: #152b4c;
  border: 3px solid #e1b553;
  border-radius: 13px;
  text-align: center;
}

.defense-client-card > span {
  font-size: 2.6rem;
}

.defense-file-wall {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.defense-file-wall article {
  display: grid;
  place-items: center;
  padding: 0.4rem;
  color: #213b62;
  background: #f4f7fb;
  border: 3px dashed #9bb3c9;
  border-radius: 8px;
  text-align: center;
}

.defense-file-wall article.is-ready {
  background: #fff0bd;
  border-color: #c89428;
  border-style: solid;
}

.defense-role-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem;
  background: #172d4c;
  border-radius: 9px;
}

/* 16. Prosecution case board */

.profession-prosecution-case-board {
  --profession-ink: #4f2632;
  --profession-accent: #8d3e54;
  --profession-support: #d9a343;
  --profession-paper: #fbf3f4;
}

.prosecution-board-scene {
  display: grid;
  min-height: 250px;
  gap: 0.65rem;
  grid-template-columns: 0.65fr 1.35fr;
  grid-template-rows: 1fr auto;
  padding: 0.8rem;
  color: #fff8e8;
  background: linear-gradient(135deg, #542538, #863c4f);
  border: 4px solid #c68d66;
  border-radius: 16px;
}

.public-duty-seal {
  display: grid;
  width: min(100%, 145px);
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 0.7rem;
  color: #4f2632;
  background: #f5d989;
  border: 7px double #925626;
  border-radius: 50%;
  text-align: center;
}

.public-duty-seal > span {
  font-size: 2rem;
}

.prosecution-gates {
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.prosecution-gates article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.43rem;
  color: #4f2632;
  background: #fff9ef;
  border: 3px dashed #c79076;
  border-radius: 8px;
}

.prosecution-gates article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: #753548;
  border-radius: 50%;
}

.prosecution-gates article.is-ready {
  background: #fff1b9;
  border-color: #d39a2b;
  border-style: solid;
}

.fairness-meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.fairness-meter::before {
  grid-column: 1;
  grid-row: 1;
  height: 14px;
  content: "";
  background: #371827;
  border: 2px solid #e1b95d;
  border-radius: 999px;
}

.fairness-meter > span {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: var(--profession-progress);
  height: 10px;
  margin-left: 2px;
  background: #f2cf71;
  border-radius: 999px;
  transition: width 180ms ease;
}

/* 17. Paramedic response board */

.profession-paramedic-response-board {
  --profession-ink: #25384d;
  --profession-accent: #c64045;
  --profession-support: #3b86a5;
  --profession-paper: #f7f8fa;
}

.paramedic-response-scene {
  display: grid;
  min-height: 340px;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  padding: clamp(0.65rem, 2vw, 1rem);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(155deg, #cfe8f2 0 58%, #718395 58%);
  border: 5px solid #455d72;
  border-radius: 17px;
}

.response-map-grid {
  display: grid;
  min-width: 0;
  align-self: stretch;
  gap: 4px;
  grid-template-columns: repeat(var(--response-grid-size), minmax(42px, 1fr));
  padding: 0.55rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    #546a7c;
  border: 4px solid #25384d;
  border-radius: 15px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.16),
    0 6px 0 rgba(37, 56, 77, 0.2);
}

.response-map-grid > div {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  color: #25384d;
  background:
    linear-gradient(90deg, transparent 47%, rgba(37, 56, 77, 0.15) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, rgba(37, 56, 77, 0.15) 47% 53%, transparent 53%),
    #e8eef2;
  border: 2px solid #9bafbb;
  border-radius: 8px;
}

.response-map-grid > div > small {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 0.56rem;
  font-weight: 900;
  opacity: 0.64;
}

.response-map-grid > div > strong {
  font-size: clamp(1rem, 2.7vw, 1.5rem);
  line-height: 1;
}

.response-map-grid > div.is-checkpoint {
  background: #fff7cf;
  border-color: #c58d2e;
}

.response-map-grid > div.is-closed {
  background:
    repeating-linear-gradient(135deg, #e7a4a5 0 7px, #f8d4d4 7px 14px);
  border-color: #9e3035;
}

.response-map-grid > div.is-visited {
  background: #d9f2df;
  border-color: #398055;
  box-shadow: inset 0 0 0 2px white;
}

.response-map-grid > div.is-current {
  z-index: 1;
  background: white;
  border-color: #c64045;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(198, 64, 69, 0.42);
  animation: response-ambulance-arrive 220ms ease-out both;
}

.response-mission-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.response-dispatch,
.response-handoff {
  display: grid;
  place-items: center;
  padding: 0.55rem;
  color: white;
  background: #25384d;
  border: 3px solid #79a9bd;
  border-radius: 10px;
  text-align: center;
}

.response-mission-panel > ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.38rem;
  list-style: none;
}

.response-mission-panel > ol li {
  display: grid;
  min-height: 54px;
  grid-template-columns: 34px 22px 1fr auto;
  align-items: center;
  gap: 0.32rem;
  padding: 0.4rem;
  color: #25384d;
  background: rgba(255, 255, 255, 0.94);
  border: 3px dashed #bf5557;
  border-radius: 10px;
}

.response-mission-panel > ol li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #edf3f6;
  border-radius: 50%;
}

.response-mission-panel > ol li > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: #c64045;
  border-radius: 50%;
  font-size: 0.65rem;
}

.response-mission-panel > ol li > small {
  font-weight: 900;
}

.response-mission-panel > ol li.is-ready {
  background: #e4f6e9;
  border-color: #398055;
  border-style: solid;
}

.response-mission-panel > ol li.is-ready > span,
.response-mission-panel > ol li.is-ready > b {
  color: white;
  background: #398055;
}

.response-direction-pad {
  display: grid;
  width: min(100%, 190px);
  margin: 0 auto;
  gap: 0.3rem;
  grid-template-columns: repeat(3, minmax(48px, 1fr));
}

.response-direction-pad button {
  display: grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  color: white;
  background: #c64045;
  border: 3px solid white;
  border-radius: 10px;
  box-shadow: 0 4px 0 #792d31;
  font: 950 1.2rem/1 var(--font-rounded);
}

.response-direction-pad button:first-child,
.response-direction-pad button:last-child {
  grid-column: 2;
}

.response-direction-pad button:is(:hover, :focus-visible) {
  background: #25384d;
  box-shadow: 0 4px 0 #162536;
  transform: translateY(-1px);
}

.response-handoff {
  grid-column: 1 / -1;
  grid-template-columns: auto auto 1fr;
  justify-content: center;
  text-align: left;
}

.response-handoff.is-ready {
  background: #286a47;
  border-color: #a4e0bb;
  animation: response-handoff-ready 420ms ease-out both;
}

@keyframes response-ambulance-arrive {
  from {
    opacity: 0.65;
    transform: scale(0.78) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes response-handoff-ready {
  0% {
    transform: scale(0.96);
  }

  60% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* 18. 911 routing console */

.profession-911-routing-console {
  --profession-ink: #202f3f;
  --profession-accent: #c34c45;
  --profession-support: #f0bd4c;
  --profession-paper: #f2f5f7;
}

.dispatch-console-scene {
  position: relative;
  display: grid;
  min-height: 270px;
  gap: 0.65rem;
  grid-template-columns: 0.9fr 1.2fr;
  grid-template-rows: 1fr auto;
  padding: 0.8rem;
  color: #d8f5ea;
  background:
    linear-gradient(rgba(14, 34, 46, 0.88), rgba(14, 34, 46, 0.94)),
    repeating-linear-gradient(90deg, #263f50 0 30px, #1e3543 30px 60px);
  border: 5px solid #506573;
  border-radius: 16px;
}

.dispatch-call-card {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 0.6rem;
  color: #1e3040;
  background: #fff8db;
  border: 4px solid #d6aa3d;
  border-radius: 8px;
}

.dispatch-call-card b {
  margin-top: 0.25rem;
  padding: 0.2rem;
  color: #7b2723;
  background: #ffdcd7;
  text-align: center;
}

.dispatch-map {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(30deg, transparent 47%, #86a0a8 48% 52%, transparent 53%),
    linear-gradient(120deg, transparent 47%, #86a0a8 48% 52%, transparent 53%),
    #d7e4df;
  border: 4px solid #78909a;
  border-radius: 9px;
}

.dispatch-map > span {
  font-size: 2.4rem;
}

.dispatch-map > b {
  color: #d53f3f;
  font-size: 1.6rem;
}

.dispatch-map strong {
  padding: 0.25rem 0.45rem;
  color: #19313d;
  background: white;
  border-radius: 999px;
}

.dispatch-headset {
  position: absolute;
  z-index: 2;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 2.1rem;
}

.dispatch-routing-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.38rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dispatch-routing-panel span {
  padding: 0.42rem;
  color: #d7e4e4;
  background: #253b48;
  border: 2px dashed #6c8894;
  border-radius: 8px;
  text-align: center;
}

.dispatch-routing-panel span.is-ready {
  color: #092e24;
  background: #aeeace;
  border-color: #4ab184;
  border-style: solid;
}

.dispatch-routing-panel strong {
  grid-column: 1 / -1;
  color: #f5cc69;
  text-align: center;
}

/* 19. Detective evidence board */

.profession-detective-evidence-board {
  --profession-ink: #2d3d51;
  --profession-accent: #4b6f93;
  --profession-support: #d59a43;
  --profession-paper: #f8f2e8;
}

.detective-board-scene {
  display: grid;
  min-height: 270px;
  gap: 0.65rem;
  grid-template-columns: 0.65fr 1.35fr;
  grid-template-rows: 1fr auto;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.18) 0 3px, transparent 4px),
    #b9824c;
  background-size: 24px 24px;
  border: 7px solid #64462d;
  border-radius: 13px;
}

.detective-case-title {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0.55rem;
  color: #24364b;
  background: #fff9e8;
  border: 2px solid #8e6f4e;
  box-shadow: 4px 4px 0 rgba(72, 45, 25, 0.3);
  text-align: center;
  transform: rotate(-1deg);
}

.detective-case-title > span {
  font-size: 2.4rem;
}

.detective-clue-board {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detective-clue-board article {
  position: relative;
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 0.45rem;
  color: #2d3d51;
  background: #fbf7e9;
  border: 2px solid #735a42;
  box-shadow: 3px 3px 0 rgba(58, 39, 25, 0.3);
  text-align: center;
}

.detective-clue-board article::before {
  position: absolute;
  top: -7px;
  width: 11px;
  height: 11px;
  content: "";
  background: #c44342;
  border-radius: 50%;
}

.detective-clue-board article.is-ready {
  background: #e2f4e6;
  border-color: #386b4b;
}

.detective-clue-board article i {
  width: 70%;
  height: 2px;
  background: #b84b4b;
}

.detective-file-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.48rem;
  color: white;
  background: #2d3d51;
  border-radius: 7px;
}

/* Responsive and operating-system accessibility */

@media (max-width: 820px) {
  .profession-match-workbench,
  .psychology-lab-scene,
  .psychiatry-care-scene,
  .defense-board-scene,
  .prosecution-board-scene,
  .detective-board-scene {
    grid-template-columns: 1fr;
  }

  .observation-moments {
    grid-template-columns: 1fr;
  }

  .defense-role-note,
  .fairness-meter,
  .detective-file-note {
    grid-column: 1;
  }

  .elementary-classroom-scene,
  .college-studio-scene,
  .pediatric-room-scene,
  .medication-bench-scene,
  .meal-planner-scene,
  .paramedic-response-scene,
  .dispatch-console-scene {
    grid-template-columns: 1fr;
  }

  .classroom-centers,
  .college-seats,
  .pediatric-room-scene > ol,
  .pharmacy-warning,
  .meal-planner-scene > p,
  .response-handoff,
  .dispatch-routing-panel {
    grid-column: 1;
  }

  .college-podium {
    min-height: 105px;
  }

  .college-screen,
  .secondary-lab-benches,
  .listening-bridge,
  .alignment-model-scene,
  .judge-bench-scene,
  .lens-lab-scene {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alignment-links {
    grid-column: 1 / -1;
  }

  .judge-dais,
  .court-record-stack {
    min-height: 130px;
  }

  .court-balance,
  .lens-lamp {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .profession-experience {
    padding: 0.58rem;
    border-radius: 15px;
  }

  .profession-scene-heading {
    display: grid;
  }

  .profession-scene-heading > span {
    justify-self: start;
  }

  .profession-sequence-workbench > ol,
  .profession-token-tray,
  .profession-inspect-workbench,
  .profession-control-workbench > div,
  .college-screen,
  .secondary-lab-benches,
  .classroom-centers,
  .listening-bridge,
  .alignment-model-scene,
  .alignment-links,
  .judge-bench-scene,
  .lens-lab-scene,
  .defense-file-wall,
  .detective-clue-board,
  .dispatch-routing-panel {
    grid-template-columns: 1fr;
  }

  .elementary-classroom-scene {
    padding-top: 0.65rem;
  }

  .classroom-centers {
    grid-row: auto;
  }

  .classroom-teacher,
  .secondary-teacher,
  .gym-coach,
  .dispatch-headset {
    display: none;
  }

  .listening-map-scene {
    grid-template-columns: 1fr;
  }

  .listening-person {
    display: none;
  }

  .shared-goal-sign {
    grid-column: 1;
  }

  .pediatric-room-scene > ol,
  .meal-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .response-map-grid {
    gap: 2px;
    grid-template-columns: repeat(var(--response-grid-size), minmax(38px, 1fr));
    padding: 0.35rem;
  }

  .response-map-grid > div {
    min-height: 44px;
  }

  .response-mission-panel > ol li {
    grid-template-columns: 32px 20px 1fr auto;
  }

  .care-team-note,
  .defense-role-note,
  .detective-file-note,
  .response-handoff {
    display: grid;
  }

  .public-duty-seal {
    width: 130px;
  }
}

@media (pointer: coarse) {
  .professions-game-shell button {
    min-height: 52px;
  }

  .profession-token-tray,
  .profession-match-workbench,
  .profession-inspect-workbench,
  .profession-control-workbench {
    gap: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profession-experience *,
  .profession-experience *::before,
  .profession-experience *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .profession-experience,
  .profession-sequence-workbench,
  .profession-match-workbench,
  .profession-inspect-workbench,
  .profession-control-workbench,
  .professions-game-shell button {
    border-width: 3px;
  }

  .profession-scene-heading small,
  .profession-match-item small,
  .profession-match-slot small,
  .profession-inspect-workbench small {
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .profession-experience,
  .profession-experience *,
  .profession-experience *::before,
  .profession-experience *::after {
    forced-color-adjust: auto;
    box-shadow: none;
  }

  .profession-experience,
  .profession-sequence-workbench,
  .profession-match-workbench,
  .profession-inspect-workbench,
  .profession-control-workbench,
  .profession-experience article,
  .profession-experience button {
    border-color: CanvasText;
  }

  .profession-experience .is-ready,
  .profession-experience .is-selected {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }

  .profession-experience .is-warning {
    outline: 3px dashed CanvasText;
  }
}
