/* STRUCT-WAVE-1: founder-approved structural shell for the first census queue slice. */
html.iot-struct-wave-1 .quarto-title-block,
html.iot-struct-wave-1 #title-block-header,
html.iot-struct-wave-1 h1.title,
html.iot-struct-wave-1 .quarto-title-meta,
html.iot-struct-wave-1 .quarto-categories,
html.iot-struct-wave-1 #interactive-game > h1,
html.iot-struct-wave-1 #interactive-game > h2 {
  display: none !important;
}

html.iot-struct-wave-1 .page-columns,
html.iot-struct-wave-1 main.content,
html.iot-struct-wave-1 #quarto-content,
html.iot-struct-wave-1 #quarto-document-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

:is(#apm-app,#bcSim,#cpgGame,#ceSim,#ctiWorkbench,#ddGame,#encapWorkbench,#dpbGame).sw1-shell {
  --sw1-teal:#197F8D;
  --sw1-blue:#3E68A6;
  --sw1-green:#2F8D57;
  --sw1-amber:#B96824;
  --sw1-red:#B9484D;
  --sw1-ink:#20343D;
  --sw1-muted:#526A73;
  --sw1-line:#D8E3E8;
  --sw1-module-tint:color-mix(in srgb,var(--pc-main) 7%,white);
  --sw1-module-tint-strong:color-mix(in srgb,var(--pc-main) 13%,white);
  --sw1-module-border:color-mix(in srgb,var(--pc-main) 42%,white);
  --sw1-module-ink:color-mix(in srgb,var(--pc-main) 72%,#20343D);
  width:min(1180px,calc(100vw - 32px)) !important;
  max-width:none !important;
  margin:0 0 32px 50% !important;
  padding:16px !important;
  transform:translateX(-50%) !important;
  color:var(--sw1-ink) !important;
  background:var(--sw1-module-tint) !important;
  border:1px solid var(--sw1-module-border) !important;
  border-radius:8px !important;
  box-shadow:none !important;
  font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}

:is(#apm-app,#bcSim,#cpgGame,#ceSim,#ctiWorkbench,#ddGame,#encapWorkbench,#dpbGame).sw1-shell,
:is(#apm-app,#bcSim,#cpgGame,#ceSim,#ctiWorkbench,#ddGame,#encapWorkbench,#dpbGame).sw1-shell * {
  box-sizing:border-box;
}

.sw1-hero {
  padding:24px !important;
  margin:0 0 14px !important;
  color:var(--sw1-ink) !important;
  text-align:left !important;
  background:var(--sw1-module-tint-strong) !important;
  border:1px solid var(--sw1-module-border) !important;
  border-radius:8px !important;
  box-shadow:0 14px 34px rgba(32,52,61,.10) !important;
}

.sw1-kicker { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.sw1-pill {
  display:inline-flex; align-items:center; min-height:26px; padding:4px 10px;
  color:var(--sw1-module-ink) !important; background:#fff !important;
  border:1px solid var(--sw1-module-border) !important; border-radius:999px;
  font-size:12px; font-weight:850; letter-spacing:.05em; text-transform:uppercase;
}
.sw1-hero :is(h1,h2) {
  margin:0 0 10px !important; color:var(--sw1-ink) !important;
  font-size:clamp(32px,4vw,40px) !important; line-height:1.08 !important;
  letter-spacing:-.025em !important;
}
.sw1-hero > p { max-width:850px; margin:0 !important; color:#38515B !important; font-size:17px !important; line-height:1.5 !important; }
.sw1-metrics { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:10px !important; max-width:850px; margin-top:18px !important; }
:is(.sw1-metric,.apm-metric,.cpg-metric,.cti-hero-metric,.dd-metric,.encap-metric,.dpb-metric) { min-width:0; padding:10px 12px !important; text-align:left !important; background:#fff !important; border:1px solid var(--sw1-module-border) !important; border-radius:8px !important; }
:is(.sw1-metric,.apm-metric,.cpg-metric,.cti-hero-metric,.dd-metric,.encap-metric,.dpb-metric) strong,
:is(.sw1-metric,.apm-metric,.cpg-metric,.cti-hero-metric,.dd-metric,.encap-metric,.dpb-metric) span { display:block; }
:is(.sw1-metric,.apm-metric,.cpg-metric,.cti-hero-metric,.dd-metric,.encap-metric,.dpb-metric) strong { color:var(--sw1-ink) !important; font-size:16px !important; }
:is(.sw1-metric,.apm-metric,.cpg-metric,.cti-hero-metric,.dd-metric,.encap-metric,.dpb-metric) span { margin-top:2px; color:var(--sw1-muted) !important; font-size:12px !important; }

.sw1-ramp { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
.sw1-ramp-card,.sw1-boundaries,.sw1-legend { padding:12px 14px; background:#fff; border:1px solid var(--sw1-line); border-radius:8px; }
.sw1-ramp-card strong,.sw1-ramp-card span { display:block; }
.sw1-ramp-card strong { color:var(--sw1-teal); font-size:12px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.sw1-ramp-card span { margin-top:4px; color:#38515B; font-size:14px; line-height:1.45; }
.sw1-legend { display:flex; flex-wrap:wrap; gap:8px 14px; margin:12px 0; color:var(--sw1-muted); font-size:12px; font-weight:750; }
.sw1-legend i { display:inline-block; width:10px; height:10px; margin-right:5px; border-radius:50%; vertical-align:-1px; }
.sw1-legend .identity { background:var(--sw1-module-tint-strong); border:2px solid var(--pc-main); }
.sw1-legend .current { background:var(--sw1-teal); }
.sw1-legend .reference { background:var(--sw1-blue); }
.sw1-legend .success { background:var(--sw1-green); }
.sw1-legend .caution { background:var(--sw1-amber); }
.sw1-legend .error { background:var(--sw1-red); }
.sw1-boundaries { margin-top:14px; color:#38515B; font-size:14px; line-height:1.5; }
.sw1-boundaries strong { color:var(--sw1-ink); }

.sw1-shell :is(.apm-toolbar,.apm-status,.cpg-status,.cpg-scenario,.dd-status,.dd-game-area,.dpb-status,.dpb-game-area,.bc-controls,.bc-panel,.bc-canvas-wrap,.bc-compare,.ce-controls,.ce-panel,.ce-chart-box,.ce-battery,.cti-panel,.encap-panel) {
  background:#fff !important; border:1px solid var(--sw1-line) !important; border-radius:8px !important; box-shadow:none !important;
}
.sw1-shell :is(button,.apm-btn,.cpg-btn,.dd-submit,.dpb-submit) { min-height:40px; border-radius:8px !important; font-weight:800 !important; }
.sw1-shell :is(#apm-start,#bcSubmit,#ceStart,#ctiPlay,#encapPlay,.dd-submit,.dpb-submit) { color:#fff !important; background:var(--sw1-teal) !important; border-color:var(--sw1-teal) !important; }
.sw1-shell :is(#bcCompare,#ceStep,#ctiStep,#encapStep,.secondary) { color:#fff !important; background:var(--sw1-blue) !important; border-color:var(--sw1-blue) !important; }
.sw1-shell :is(#apm-reset,#bcReset,#ceReset,#ctiReset,#encapReset) { color:var(--sw1-ink) !important; background:#fff !important; border:1px solid #A9BCC5 !important; }
.sw1-shell :is(input[type="range"]) { accent-color:var(--sw1-teal); }
.sw1-shell .ce-batt-shell::after { right:2px !important; }
.sw1-shell :is(.active,.is-selected,[aria-pressed="true"]) { box-shadow:0 0 0 2px color-mix(in srgb,var(--sw1-teal) 18%,transparent); }

@media (max-width:700px) {
  :is(#apm-app,#bcSim,#cpgGame,#ceSim,#ctiWorkbench,#ddGame,#encapWorkbench,#dpbGame).sw1-shell { width:calc(100vw - 32px) !important; padding:10px !important; }
  .sw1-hero { padding:18px !important; }
  .sw1-metrics,.sw1-ramp { grid-template-columns:1fr !important; }
  .sw1-legend { align-items:flex-start; flex-direction:column; }
}

@media (prefers-reduced-motion:reduce) {
  .sw1-shell *,.sw1-shell *::before,.sw1-shell *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
