/* Component stylesheet for game.notification-designer. */
html.iot-component-frame body {
  margin: 0;
  padding: 0;
  background: transparent;
}

html.iot-component-frame main,
html.iot-component-frame .page-columns,
html.iot-component-frame .content,
html.iot-component-frame #quarto-content,
html.iot-component-frame #quarto-document-content {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

html.iot-component-frame h1.title,
html.iot-component-frame #interactive-game > h2,
html.iot-component-frame #reference-material > h2,
html.iot-component-frame #related-resources,
html.iot-component-frame header,
html.iot-component-frame .quarto-title-block,
html.iot-component-frame nav,
html.iot-component-frame .sidebar,
html.iot-component-frame .toc-active,
html.iot-component-frame #quarto-header {
  display: none !important;
}

/* The raw Quarto title block duplicates the page's own styled hero title
   (#ndgTitle inside .ndg-hero) whenever this page is viewed standalone
   (not just inside the iot-component-frame embed). Same unconditional
   hide as the approved animations/sensor-network-pipeline.qmd template
   (recolor-pilot design review, ceo-decision-packs.md Pack B,
   2026-07-22). */
body .quarto-title-block,
body #title-block-header {
  display: none;
}

html.ndg-page:not(.iot-component-frame) main.content,
html.ndg-page:not(.iot-component-frame) .page-columns,
html.ndg-page:not(.iot-component-frame) #quarto-content,
html.ndg-page:not(.iot-component-frame) #quarto-document-content {
  width: min(1160px, calc(100vw - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

html.ndg-page:not(.iot-component-frame) .page-columns {
  display: block;
}

html.iot-component-frame #ndgGame,
html.iot-component-frame .ndg-reference-material {
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  box-shadow: none;
}

html.iot-resource-frame-standalone #ndgGame {
  margin-bottom: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.iot-resource-frame-standalone #ndgGame .ndg-hero {
  display: none;
}

#ndgGame,
#ndgGame *,
.ndg-reference-material,
.ndg-reference-material * {
  box-sizing: border-box;
}

#ndgGame {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 18px;
  color: #243641;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f9f7f1;
  border: 1px solid #e5e0d6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(57, 45, 31, 0.1);
}

#ndgGame h1,
#ndgGame h2,
#ndgGame h3,
#ndgGame h4,
#ndgGame h5,
#ndgGame p {
  margin: 0;
  letter-spacing: 0;
}

.ndg-hero {
  padding: 22px;
  margin-bottom: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #20343d 0%, #0f7d85 54%, #c46a1d 100%);
  border-radius: 8px;
}

.ndg-kicker,
.ndg-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ndg-kicker {
  margin-bottom: 14px;
}

.ndg-pill,
.ndg-reqs span,
.ndg-scenario-tag,
.ndg-scenario-score {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.ndg-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.ndg-hero h1 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.1;
}

.ndg-hero p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.ndg-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ndg-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 18px;
}

.ndg-metric {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.ndg-metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
}

.ndg-metric span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.ndg-status {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(100px, 0.6fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ndg-progress-card,
.ndg-stat,
.ndg-scenario-card,
.ndg-panel,
.ndg-design-summary,
.ndg-feedback,
.ndg-final-card {
  background: #ffffff;
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(34, 48, 54, 0.06);
}

.ndg-progress-card {
  min-height: 68px;
  padding: 12px 14px;
}

.ndg-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #34454e;
  font-size: 0.82rem;
  font-weight: 800;
}

.ndg-progress-label span {
  color: #4f626a;
}

.ndg-progress-track {
  height: 8px;
  overflow: hidden;
  background: #e8ece7;
  border-radius: 999px;
}

.ndg-progress-track > div {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, #0f7d85, #c46a1d);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.ndg-stat {
  display: grid;
  min-height: 68px;
  place-items: center;
  padding: 10px;
  text-align: center;
}

.ndg-stat strong {
  color: #243641;
  font-size: 1.8rem;
  line-height: 1;
}

.ndg-stat span {
  margin-top: 4px;
  color: #566870;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-loading,
.ndg-error {
  padding: 18px;
  border: 1px solid #dde2d8;
  border-radius: 8px;
  background: #ffffff;
}

.ndg-error {
  color: #842029;
  background: #fff4f3;
}

.ndg-scenario-card {
  padding: 18px;
  margin-bottom: 14px;
}

.ndg-scenario-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ndg-scenario-tag,
.ndg-scenario-score {
  color: #0f6c73;
  background: #e2f3f2;
}

.ndg-scenario-score {
  color: #7a4b00;
  background: #fff3d2;
  white-space: nowrap;
}

.ndg-scenario-card h3 {
  margin-top: 8px;
  color: #20343d;
  font-size: 1.5rem;
  line-height: 1.2;
}

.ndg-scenario-copy {
  max-width: 920px;
  color: #364f59;
  line-height: 1.55;
}

.ndg-reqs {
  margin-top: 14px;
}

.ndg-reqs span {
  color: #20343d;
  background: #edf3f1;
  font-size: 0.78rem;
  font-weight: 800;
}

.ndg-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ndg-panel {
  min-width: 0;
  padding: 16px;
}

.ndg-step-head {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ndg-step-head > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f7d85;
  font-weight: 900;
}

.ndg-step-head h4 {
  color: #20343d;
  font-size: 1rem;
}

.ndg-step-head p {
  margin-top: 3px !important;
  color: #60757d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ndg-select-control {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #20343d;
  font-size: 0.82rem;
  font-weight: 800;
}

.ndg-select-control select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #bdcfd6;
  border-radius: 8px;
  color: #20343d;
  background: #ffffff;
  font: inherit;
}

.ndg-channel-grid,
.ndg-toggle-grid {
  display: grid;
  gap: 10px;
}

.ndg-channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndg-channel-card,
.ndg-toggle-card {
  padding: 12px;
  border: 1px solid #d8e3e0;
  border-radius: 8px;
  color: #20343d;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.ndg-channel-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 5px 10px;
  min-height: 104px;
}

.ndg-channel-card:hover,
.ndg-channel-card:focus-visible,
.ndg-toggle-card:hover,
.ndg-toggle-card:focus-visible {
  border-color: #c46a1d;
  box-shadow: 0 8px 18px rgba(194, 112, 27, 0.16);
  outline: none;
}

.ndg-channel-card.is-selected,
.ndg-toggle-card.is-selected {
  border-color: #0f7d85;
  background: #eaf7f6;
}

.ndg-channel-card.is-correct,
.ndg-toggle-card.is-correct {
  border-color: #1e8d58;
  background: #ecf8f0;
}

.ndg-channel-card.is-wrong,
.ndg-toggle-card.is-wrong {
  border-color: #bc4b3f;
  background: #fff1ef;
}

.ndg-channel-card:disabled,
.ndg-toggle-card:disabled {
  cursor: default;
}

.ndg-channel-card > span {
  display: inline-flex;
  width: 34px;
  height: 30px;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  border-radius: 8px;
  color: #ffffff;
  background: #20343d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.ndg-channel-card strong,
.ndg-toggle-card strong {
  color: #20343d;
  font-size: 0.92rem;
  line-height: 1.2;
}

.ndg-channel-card em,
.ndg-toggle-card span {
  color: #405761;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.ndg-toggle-card {
  display: grid;
  gap: 5px;
  min-height: 76px;
}

.ndg-meter {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #1b2b34;
}

.ndg-meter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ndg-meter-head span,
.ndg-meter-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-meter-head strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
}

.ndg-budget-badge {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.ndg-meter-row {
  margin-top: 10px;
}

.ndg-meter-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.ndg-meter-row-head .is-good {
  color: #8ee0aa;
}

.ndg-meter-row-head .is-warn {
  color: #f3c67c;
}

.ndg-meter-track {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.ndg-meter-track > div {
  height: 100%;
  border-radius: inherit;
}

.ndg-meter-track .is-good {
  background: #1e8d58;
}

.ndg-meter-track .is-warn {
  background: #c46a1d;
}

.ndg-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ndg-meter-grid div {
  min-height: 56px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ndg-meter-grid strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1;
}

.ndg-design-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
}

.ndg-design-summary span {
  display: block;
  color: #4f636b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-design-summary strong {
  display: block;
  margin-top: 4px;
  color: #20343d;
  font-size: 0.96rem;
}

.ndg-submit {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #0f7d85;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

.ndg-submit:hover,
.ndg-submit:focus-visible {
  background: #0b6870;
  outline: none;
}

.ndg-submit:disabled {
  background: #a4b2b5;
  cursor: not-allowed;
}

.ndg-feedback {
  margin-top: 14px;
  padding: 16px;
}

.ndg-feedback.great {
  border-color: #acd7bc;
  background: #f3fbf5;
}

.ndg-feedback.ok {
  border-color: #edd08d;
  background: #fff9eb;
}

.ndg-feedback.needs-work {
  border-color: #e4b1aa;
  background: #fff4f3;
}

.ndg-feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ndg-feedback-head span {
  color: #4f626a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-feedback-head h4 {
  margin-top: 4px !important;
  color: #20343d;
  font-size: 1.12rem;
}

.ndg-feedback-head > strong {
  color: #0f7d85;
  font-size: 1.7rem;
  line-height: 1;
}

.ndg-score-detail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ndg-score-item {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.ndg-score-item strong {
  display: block;
  font-size: 1.05rem;
}

.ndg-score-item strong.green {
  color: #1e8d58;
}

.ndg-score-item strong.orange {
  color: #a86515;
}

.ndg-score-item strong.red {
  color: #bc4b3f;
}

.ndg-score-item span {
  display: block;
  margin-top: 4px;
  color: #4f636b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-feedback-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.ndg-feedback-grid h5,
.ndg-reasoning h5 {
  margin-bottom: 7px !important;
  color: #20343d;
  font-size: 0.9rem;
}

.ndg-feedback-grid p,
.ndg-feedback-grid li,
.ndg-reasoning li {
  color: #405761;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ndg-feedback-grid ul,
.ndg-reasoning ul {
  margin: 0;
  padding-left: 18px;
}

.ndg-reasoning {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #ffffff;
}

.ndg-next {
  margin-top: 14px;
}

.ndg-final-card {
  padding: 24px;
  text-align: center;
}

.ndg-final-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f6c73;
  background: #e2f3f2;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-final-card h3 {
  margin-top: 10px !important;
  color: #20343d;
  font-size: 1.5rem;
}

.ndg-big-score {
  margin-top: 8px;
  color: #0f7d85;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.ndg-final-card p {
  max-width: 620px;
  margin: 10px auto 0 !important;
  color: #405761;
  line-height: 1.5;
}

.ndg-final-chart {
  display: flex;
  min-height: 150px;
  align-items: end;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
  padding: 12px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #f8faf8;
}

.ndg-final-bar-wrap {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #4f636b;
  font-size: 0.72rem;
  font-weight: 900;
}

.ndg-final-bar {
  width: 20px;
  border-radius: 6px 6px 0 0;
  background: #bc4b3f;
}

.ndg-final-bar.green {
  background: #1e8d58;
}

.ndg-final-bar.orange {
  background: #c46a1d;
}

.ndg-final-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 18px;
}

.ndg-final-stats div {
  padding: 12px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #ffffff;
}

.ndg-final-stats strong {
  display: block;
  color: #20343d;
  font-size: 1.35rem;
}

.ndg-final-stats span {
  display: block;
  margin-top: 3px;
  color: #4f636b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-reference-material {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 28px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.ndg-reference-intro,
.ndg-reference-loading {
  margin: 0 0 12px !important;
  padding: 14px 16px;
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  color: #405761;
  background: #ffffff;
  line-height: 1.5;
}

.ndg-reference-material details {
  margin-bottom: 10px;
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ndg-reference-material summary {
  min-height: 46px;
  padding: 13px 16px;
  color: #20343d;
  cursor: pointer;
  font-weight: 900;
}

.ndg-reference-content {
  padding: 0 16px 16px;
  color: #405761;
}

.ndg-reference-content > p {
  margin: 0 0 12px !important;
  line-height: 1.5;
}

.ndg-reference-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe5df;
  border-radius: 8px;
}

.ndg-reference-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.ndg-reference-table-wrap th,
.ndg-reference-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ece9;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ndg-reference-table-wrap th {
  color: #20343d;
  background: #edf4f2;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ndg-reference-table-wrap tr:last-child td {
  border-bottom: 0;
}

.ndg-reference-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ndg-reference-card-grid article,
.ndg-mini-card-grid article {
  padding: 12px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #f8faf8;
}

.ndg-reference-card-grid h5,
.ndg-mini-card-grid h5 {
  margin: 0 0 6px !important;
  color: #20343d;
  font-size: 0.9rem;
}

.ndg-reference-card-grid p,
.ndg-mini-card-grid p {
  margin: 0 !important;
  color: #405761;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ndg-mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.ndg-mini-card-grid article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}

.ndg-mini-card-grid article > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0f7d85;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .ndg-status,
  .ndg-workspace,
  .ndg-feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #ndgGame {
    padding: 12px;
  }

  .ndg-hero,
  .ndg-scenario-card,
  .ndg-panel,
  .ndg-feedback,
  .ndg-final-card {
    padding: 14px;
  }

  .ndg-hero h1 {
    font-size: 1.55rem;
  }

  .ndg-metrics,
  .ndg-score-detail,
  .ndg-final-stats,
  .ndg-channel-grid,
  .ndg-meter-grid {
    grid-template-columns: 1fr;
  }

  .ndg-scenario-top,
  .ndg-feedback-head {
    display: grid;
  }

  .ndg-scenario-score {
    justify-self: start;
  }

  .ndg-design-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .ndg-meter-head {
    display: grid;
  }

  .ndg-budget-badge {
    justify-self: start;
    white-space: normal;
  }

  .ndg-reference-table-wrap table {
    min-width: 540px;
  }
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"] {
  --ndg-module-accent: #c2185b;
  --ndg-module-strong: #7f0f3c;
  --ndg-module-tint: #fff0f6;
  --ndg-module-border: #efb8ce;
  /* Khan-style design system: wrapper stays white, not a saturated
     per-module wash (recolor-pilot design review, ceo-decision-packs.md
     Pack B, 2026-07-22). */
  color: #20343d;
  background: #ffffff;
  border-color: var(--ndg-module-border);
  box-shadow: none;
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"] .ndg-hero {
  /* Same white-card rule as the wrapper above; the 4px accent border is
     the "purposeful accent" the design system calls for, not a full-card
     wash. */
  color: #20343d;
  background: #ffffff;
  border: 1px solid var(--ndg-module-border);
  border-left: 4px solid var(--ndg-module-accent);
  box-shadow: none;
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(.ndg-hero h1, .ndg-hero p, .ndg-pill, .ndg-metric strong, .ndg-metric span) {
  color: #20343d;
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(.ndg-pill, .ndg-metric) {
  background: #ffffff;
  border-color: var(--ndg-module-border);
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(
    .ndg-progress-card,
    .ndg-stat,
    .ndg-scenario-card,
    .ndg-panel,
    .ndg-feedback,
    .ndg-final-card,
    .ndg-score-item,
    .ndg-channel-card,
    .ndg-meter-card
  ) {
  color: #20343d;
  background: #ffffff;
  border-color: color-mix(in srgb, var(--ndg-module-accent) 24%, #d9e5ea);
  box-shadow: none;
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(.ndg-submit, .ndg-feedback-head > strong, .ndg-final-bar) {
  background: var(--ndg-module-strong);
  border-color: var(--ndg-module-strong);
  color: #ffffff;
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"] .ndg-progress-track div {
  background: linear-gradient(90deg, var(--ndg-module-accent), var(--ndg-module-strong));
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(.ndg-channel-card.is-selected, .ndg-meter-card.is-selected, .ndg-scenario-tag, .ndg-final-badge) {
  color: var(--ndg-module-strong);
  background: var(--ndg-module-tint);
  border-color: var(--ndg-module-accent);
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  :where(.ndg-panel h3, .ndg-feedback-grid h5, .ndg-big-score) {
  color: var(--ndg-module-strong);
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  ~ .ndg-reference-material
  details {
  border-color: var(--ndg-module-border);
  background: var(--ndg-module-tint);
}

#ndgGame[data-iot-recolor-pilot="true"][data-iot-module="ux-design"]
  ~ .ndg-reference-material
  summary {
  color: var(--ndg-module-strong);
}
