/* CipherEdge homepage chapter — isolated command-center composition. */
#cipheredge.ceh-slide {
  --ceh-bg: #02070b;
  --ceh-panel: rgba(6, 17, 24, 0.82);
  --ceh-panel-strong: rgba(7, 20, 29, 0.94);
  --ceh-line: rgba(104, 181, 211, 0.17);
  --ceh-line-strong: rgba(103, 202, 221, 0.3);
  --ceh-text: #f2f7fa;
  --ceh-secondary: #adbbc4;
  --ceh-muted: #81939f;
  --ceh-blue: #20b9f5;
  --ceh-teal: #2de0b1;
  --ceh-green: #38d98c;
  --ceh-amber: #f4aa3e;
  --ceh-red: #ff574d;
  --ceh-violet: #a78bfa;
  --ceh-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  min-width: 0;
  min-height: 100%;
  align-items: stretch;
  padding: 15px clamp(70px, 5.8vw, 96px) 15px clamp(24px, 3.2vw, 52px);
  overflow: hidden;
  color: var(--ceh-text);
  background:
    radial-gradient(48% 58% at 55% 44%, rgba(10, 109, 165, 0.12), transparent 72%),
    linear-gradient(180deg, #02070b 0%, #03090d 54%, #02070b 100%);
}

#cipheredge.ceh-slide::before {
  background:
    radial-gradient(circle at 35% 19%, rgba(32, 185, 245, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 28%, rgba(45, 224, 177, 0.07) 0 1px, transparent 1.4px),
    radial-gradient(58% 65% at 58% 44%, rgba(14, 133, 191, 0.09), transparent 72%);
  background-size: 79px 83px, 113px 101px, auto;
  opacity: 0.9;
}

#cipheredge.ceh-slide,
#cipheredge.ceh-slide * {
  box-sizing: border-box;
}

#cipheredge .ceh-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#cipheredge .ceh-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

#cipheredge .ceh-dashboard {
  position: relative;
  z-index: 1;
  width: min(100%, 1540px);
  height: calc(100dvh - 98px);
  min-height: 620px;
  max-height: 790px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(224px, 0.84fr) minmax(460px, 2fr) minmax(258px, 0.98fr);
  grid-template-rows: 76px minmax(0, 1fr);
  grid-template-areas:
    "intro flow evidence"
    "intro world evidence";
  gap: 12px clamp(12px, 1.15vw, 18px);
  min-width: 0;
}

#cipheredge .ceh-panel {
  min-width: 0;
  background:
    linear-gradient(145deg, rgba(11, 31, 42, 0.67), rgba(3, 11, 16, 0.84)),
    var(--ceh-panel);
  border: 1px solid var(--ceh-line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018), 0 18px 42px rgba(0, 0, 0, 0.18);
}

#cipheredge svg {
  display: block;
}

#cipheredge button,
#cipheredge a {
  -webkit-tap-highlight-color: transparent;
}

/* Left product and fleet column */
#cipheredge .ceh-intro {
  grid-area: intro;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 0 0;
}

#cipheredge .ceh-lockup {
  display: block;
  margin-bottom: 16px;
}

#cipheredge .ceh-lockup strong,
#cipheredge .ceh-lockup small {
  display: block;
}

#cipheredge .ceh-lockup strong {
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1;
}

#cipheredge .ceh-lockup strong span {
  color: var(--ceh-teal);
}

#cipheredge .ceh-product-tm {
  margin-left: 0.1em;
  color: #a8efda;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: super;
}

#cipheredge .ceh-lockup small {
  margin-top: 6px;
  color: var(--ceh-teal);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

#cipheredge .ceh-intro > h2 {
  max-width: 100%;
  margin: 0 0 12px;
  color: var(--ceh-text);
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 510;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

#cipheredge .ceh-intro > h2 em {
  display: block;
  margin-top: 4px;
  color: var(--ceh-teal);
  font-style: normal;
}

#cipheredge .ceh-lede {
  max-width: 33ch;
  margin: 0 0 14px;
  color: var(--ceh-secondary);
  font-size: 12px;
  line-height: 1.58;
}

#cipheredge .ceh-capabilities {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

#cipheredge .ceh-capabilities li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: #cbd8df;
  font-size: 11px;
  line-height: 1.28;
}

#cipheredge .ceh-capabilities svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ceh-green);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ceh-fleet {
  min-height: 0;
  margin-top: auto;
  padding: 11px 12px 12px;
}

#cipheredge .ceh-fleet > header,
#cipheredge .ceh-feed > header,
#cipheredge .ceh-risk > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#cipheredge .ceh-fleet > header p,
#cipheredge .ceh-fleet > header h3 {
  margin: 0;
}

#cipheredge .ceh-fleet > header p {
  color: var(--ceh-muted);
  font-family: var(--ceh-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#cipheredge .ceh-fleet > header h3 {
  margin-top: 2px;
  color: var(--ceh-text);
  font-size: 12.5px;
  font-weight: 570;
}

#cipheredge .ceh-fleet > header > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ceh-green);
  font-family: var(--ceh-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#cipheredge .ceh-fleet > header > span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 9px currentColor;
}

#cipheredge .ceh-fleet-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 7px;
}

#cipheredge .ceh-fleet-total strong {
  color: var(--ceh-green);
  font-family: var(--ceh-mono);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 540;
  letter-spacing: -0.04em;
}

#cipheredge .ceh-fleet-total small {
  color: var(--ceh-muted);
  font-size: 9.5px;
}

#cipheredge .ceh-fleet-grid {
  display: grid;
  grid-template-columns: minmax(72px, 0.86fr) minmax(90px, 1.14fr);
  gap: 9px;
  align-items: center;
}

#cipheredge .ceh-device-classes,
#cipheredge .ceh-fleet-health ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#cipheredge .ceh-device-classes {
  display: grid;
  gap: 5px;
}

#cipheredge .ceh-device-classes li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--ceh-secondary);
  font-size: 9.5px;
  line-height: 1.2;
}

#cipheredge .ceh-device-classes svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ceh-green);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ceh-device-classes span,
#cipheredge .ceh-device-classes strong {
  display: block;
}

#cipheredge .ceh-device-classes strong {
  margin-top: 1px;
  color: var(--ceh-green);
  font-family: var(--ceh-mono);
  font-size: 9px;
  font-weight: 520;
}

#cipheredge .ceh-fleet-health {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

#cipheredge .ceh-donut {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ceh-green) 0 79.7%, var(--ceh-amber) 79.7% 95.1%, var(--ceh-red) 95.1% 100%);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(56, 217, 140, 0.08);
}

#cipheredge .ceh-donut::before {
  position: absolute;
  inset: 10px;
  content: "";
  background: #061018;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

#cipheredge .ceh-donut > span {
  position: relative;
  z-index: 1;
  color: var(--ceh-text);
  font-family: var(--ceh-mono);
  font-size: 11px;
  font-weight: 560;
  line-height: 1;
  text-align: center;
}

#cipheredge .ceh-donut small {
  display: block;
  margin-top: 3px;
  color: var(--ceh-muted);
  font-family: inherit;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

#cipheredge .ceh-fleet-health ul {
  width: 100%;
  display: grid;
  gap: 3px;
}

#cipheredge .ceh-fleet-health li {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  color: var(--ceh-muted);
  font-size: 9px;
}

#cipheredge .ceh-fleet-health li i {
  width: 5px;
  height: 5px;
  background: var(--ceh-green);
  border-radius: 50%;
}

#cipheredge .ceh-fleet-health li i.is-warning { background: var(--ceh-amber); }
#cipheredge .ceh-fleet-health li i.is-risk { background: var(--ceh-red); }
#cipheredge .ceh-fleet-health li strong { color: var(--ceh-secondary); font-family: var(--ceh-mono); font-size: 9px; font-weight: 500; }

/* Telemetry flow */
#cipheredge .ceh-flow {
  grid-area: flow;
  min-width: 0;
  padding: 9px 13px 8px;
}

#cipheredge .ceh-flow > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#cipheredge .ceh-flow > header h3 {
  margin: 0;
  color: #dbe6eb;
  font-size: 12px;
  font-weight: 540;
}

#cipheredge .ceh-flow > header h3 span {
  color: var(--ceh-green);
}

#cipheredge .ceh-flow > header h3 span::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  vertical-align: 1px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 9px currentColor;
}

#cipheredge .ceh-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

#cipheredge .ceh-flow li {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--ceh-secondary);
  transition: opacity 180ms ease, color 180ms ease;
}

#cipheredge .ceh-flow li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -17px;
  width: 13px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(45, 224, 177, 0.72), rgba(32, 185, 245, 0.32));
}

#cipheredge .ceh-flow li:not(:last-child)::before {
  position: absolute;
  top: calc(50% - 2px);
  right: -17px;
  width: 4px;
  height: 4px;
  content: "";
  border-top: 1px solid rgba(45, 224, 177, 0.72);
  border-right: 1px solid rgba(45, 224, 177, 0.72);
  transform: rotate(45deg);
}

#cipheredge .ceh-flow li > i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--ceh-green);
  background: rgba(4, 34, 27, 0.58);
  border: 1px solid rgba(56, 217, 140, 0.25);
  border-radius: 50%;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#cipheredge .ceh-flow li svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ceh-flow li > span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 520;
  line-height: 1.22;
  text-overflow: ellipsis;
}

#cipheredge .ceh-flow li[data-state="pending"] { opacity: 0.28; }
#cipheredge .ceh-flow li[data-state="active"] { color: var(--ceh-text); opacity: 1; }
#cipheredge .ceh-flow li[data-state="active"] > i { border-color: rgba(45, 224, 177, 0.62); background: rgba(8, 57, 43, 0.72); box-shadow: 0 0 18px rgba(45, 224, 177, 0.24); }
#cipheredge .ceh-flow li[data-state="completed"] { opacity: 1; }

/* Custom Three.js world */
#cipheredge .ceh-world {
  position: relative;
  grid-area: world;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px;
  margin: 0;
}

#cipheredge .ceh-world > figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#cipheredge .ceh-world-root {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  isolation: isolate;
}

#cipheredge .ceh-world-root::before {
  position: absolute;
  z-index: -1;
  inset: 5% 0 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(20, 157, 213, 0.12), transparent 48%),
    radial-gradient(ellipse at 50% 62%, rgba(45, 224, 177, 0.045), transparent 67%);
  filter: blur(2px);
}

#cipheredge .ceh-world-root::after {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 3%;
  left: 0;
  height: 20%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 7, 11, 0.74));
}

#cipheredge .ceh-world-canvas,
#cipheredge .ceh-world-labels,
#cipheredge .ceh-world-fallback {
  position: absolute;
  inset: 0;
}

#cipheredge .ceh-world-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 280ms ease;
}

#cipheredge .ceh-world-labels {
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

#cipheredge .ceh-world-root[data-render-state="ready"] .ceh-world-canvas,
#cipheredge .ceh-world-root[data-render-state="ready"] .ceh-world-labels {
  opacity: 1;
}

#cipheredge .ceh-world-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 220ms ease;
}

#cipheredge .ceh-world-root[data-render-state="ready"] .ceh-world-fallback {
  visibility: hidden;
  opacity: 0;
}

#cipheredge .ceh-world-fallback > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#cipheredge .ceh-world-fallback > span {
  position: absolute;
  bottom: 17px;
  left: 50%;
  color: var(--ceh-muted);
  font-family: var(--ceh-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  white-space: nowrap;
}

#cipheredge .ceh-fallback-grid {
  fill: none;
  stroke: #168ac7;
  stroke-opacity: 0.15;
  stroke-width: 1;
}

#cipheredge .ceh-fallback-land {
  fill: rgba(27, 173, 232, 0.3);
  stroke: #2cc4f5;
  stroke-opacity: 0.32;
  stroke-width: 0.8;
}

#cipheredge .ceh-fallback-routes {
  fill: none;
  stroke: url(#ceh-route-fill);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-opacity: 0.8;
}

#cipheredge .ceh-fallback-routes .is-risk { stroke: var(--ceh-red); stroke-width: 3; stroke-opacity: 1; }
#cipheredge .ceh-fallback-core { fill: rgba(6, 33, 44, 0.9); stroke: #5eead4; stroke-width: 1.2; stroke-opacity: 0.78; }
#cipheredge .ceh-fallback-core circle:last-child { fill: var(--ceh-violet); stroke: none; }
#cipheredge .ceh-fallback-nodes circle { fill: #d5fff0; stroke: var(--ceh-green); stroke-width: 3; }
#cipheredge .ceh-fallback-nodes circle.is-risk { fill: #ffd0cf; stroke: var(--ceh-red); stroke-width: 4; }

#cipheredge .ceh-world-assurance {
  position: relative;
  z-index: 5;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: var(--ceh-secondary);
  font-size: 9.5px;
  line-height: 1;
}

#cipheredge .ceh-world-assurance strong {
  color: var(--ceh-green);
  font-weight: 520;
}

#cipheredge .ceh-world-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#cipheredge .ceh-world-assurance span::before {
  width: 3px;
  height: 3px;
  content: "";
  background: var(--ceh-green);
  border-radius: 50%;
}

/* Renderer-created HTML labels */
#cipheredge .ce-world-label {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 112px;
  max-width: 150px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 5px;
  align-items: center;
  gap: 5px;
  padding: 5px 6px 5px 5px;
  color: var(--ceh-text);
  font: inherit;
  text-align: left;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(2, 10, 15, 0.9);
  border: 1px solid rgba(56, 217, 140, 0.28);
  border-radius: 5px;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(7px);
  transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

#cipheredge .ce-world-label-icon {
  width: 23px;
  height: 23px;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  color: var(--ceh-green);
  background: rgba(8, 45, 31, 0.48);
  border: 1px solid rgba(56, 217, 140, 0.2);
  border-radius: 50%;
}

#cipheredge .ce-world-label-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ce-world-label-copy {
  min-width: 0;
  display: block;
  grid-column: 2;
  grid-row: 1;
}

#cipheredge .ce-world-label-name,
#cipheredge .ce-world-label-copy small {
  display: block;
}

#cipheredge .ce-world-label-name {
  overflow: hidden;
  color: var(--ceh-text);
  font-size: 9.25px;
  font-weight: 570;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cipheredge .ce-world-label-copy small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--ceh-secondary);
  font-family: var(--ceh-mono);
  font-size: 7.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cipheredge .ce-world-label-status {
  width: 5px;
  height: 5px;
  grid-column: 3;
  grid-row: 1;
  background: var(--ceh-green);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(56, 217, 140, 0.72);
}

#cipheredge .ce-world-label[data-status="warning"] { border-color: rgba(244, 170, 62, 0.52); }
#cipheredge .ce-world-label[data-status="warning"] .ce-world-label-icon { color: var(--ceh-amber); background: rgba(88, 59, 7, 0.32); border-color: rgba(244, 170, 62, 0.3); }
#cipheredge .ce-world-label[data-status="warning"] .ce-world-label-status { background: var(--ceh-amber); box-shadow: 0 0 10px rgba(244, 170, 62, 0.74); }
#cipheredge .ce-world-label[data-status="risk"] { background: rgba(31, 8, 12, 0.94); border-color: rgba(255, 87, 77, 0.64); }
#cipheredge .ce-world-label[data-device-id="smart-meter-7843"] { min-width: 154px; max-width: 174px; }
#cipheredge .ce-world-label[data-status="risk"] .ce-world-label-icon { color: #ff7c73; background: rgba(98, 24, 24, 0.35); border-color: rgba(255, 87, 77, 0.35); }
#cipheredge .ce-world-label[data-status="risk"] .ce-world-label-copy small { color: #ff8a82; }
#cipheredge .ce-world-label[data-status="risk"] .ce-world-label-status { background: var(--ceh-red); box-shadow: 0 0 11px rgba(255, 87, 77, 0.84); }
#cipheredge .ce-world-label[data-focused="true"],
#cipheredge .ce-world-label:hover { border-color: rgba(94, 234, 212, 0.72); background: rgba(5, 22, 27, 0.98); }
#cipheredge .ce-world-label:focus-visible { outline: 2px solid var(--ceh-teal); outline-offset: 2px; }

/* Evidence rail */
#cipheredge .ceh-evidence {
  grid-area: evidence;
  min-width: 0;
  min-height: 0;
  height: min(100%, 586px);
  display: grid;
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-self: start;
  gap: 12px;
}

#cipheredge .ceh-feed,
#cipheredge .ceh-risk {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#cipheredge .ceh-feed {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
}

#cipheredge .ceh-feed > header,
#cipheredge .ceh-risk > header {
  padding: 0 12px;
  border-bottom: 1px solid var(--ceh-line);
}

#cipheredge .ceh-feed > header h3,
#cipheredge .ceh-risk > header h3 {
  margin: 0;
  color: var(--ceh-text);
  font-size: 13px;
  font-weight: 550;
}

#cipheredge .ceh-feed > header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ceh-green);
  font-family: var(--ceh-mono);
  font-size: 9px;
  text-transform: uppercase;
}

#cipheredge .ceh-feed > header > span::after {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 9px currentColor;
}

#cipheredge .ceh-feed ol {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

#cipheredge .ceh-feed li {
  min-height: 0;
  border-bottom: 1px solid rgba(104, 181, 211, 0.12);
  animation: ceh-event-in 300ms ease both;
}

#cipheredge .ceh-feed li:last-child { border-bottom: 0; }
#cipheredge .ceh-feed li[hidden] { display: none; }

#cipheredge .ceh-feed button {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 28px 50px minmax(0, 1fr) 5px;
  align-items: center;
  gap: 7px;
  padding: 6px 1px;
  color: var(--ceh-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

#cipheredge .ceh-feed button > i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--ceh-green);
  background: rgba(8, 45, 31, 0.42);
  border: 1px solid rgba(56, 217, 140, 0.16);
  border-radius: 50%;
}

#cipheredge .ceh-feed button > i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ceh-feed time {
  color: var(--ceh-muted);
  font-family: var(--ceh-mono);
  font-size: 9px;
}

#cipheredge .ceh-feed button > span,
#cipheredge .ceh-feed strong,
#cipheredge .ceh-feed small {
  min-width: 0;
  display: block;
}

#cipheredge .ceh-feed strong {
  overflow: hidden;
  color: #d7e2e8;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cipheredge .ceh-feed small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ceh-muted);
  font-family: var(--ceh-mono);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cipheredge .ceh-feed button > b {
  width: 5px;
  height: 5px;
  background: var(--ceh-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(56, 217, 140, 0.7);
}

#cipheredge .ceh-feed li.is-warning button > i,
#cipheredge .ceh-feed li.is-warning strong { color: var(--ceh-amber); }
#cipheredge .ceh-feed li.is-warning button > i { background: rgba(88, 59, 7, 0.25); border-color: rgba(244, 170, 62, 0.22); }
#cipheredge .ceh-feed li.is-warning button > b { background: var(--ceh-amber); box-shadow: 0 0 8px rgba(244, 170, 62, 0.72); }
#cipheredge .ceh-feed li.is-risk button > i,
#cipheredge .ceh-feed li.is-risk strong { color: var(--ceh-red); }
#cipheredge .ceh-feed li.is-risk button > i { background: rgba(94, 24, 22, 0.28); border-color: rgba(255, 87, 77, 0.25); }
#cipheredge .ceh-feed li.is-risk button > b { background: var(--ceh-red); box-shadow: 0 0 9px rgba(255, 87, 77, 0.76); }
#cipheredge .ceh-feed button:hover { background: rgba(45, 224, 177, 0.025); }
#cipheredge .ceh-feed button:focus-visible { outline: 2px solid var(--ceh-teal); outline-offset: -2px; }

#cipheredge .ceh-risk {
  display: grid;
  grid-template-rows: 46px auto auto auto;
  align-content: start;
  border-color: rgba(255, 87, 77, 0.38);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

#cipheredge[data-story-enhanced="true"] .ceh-risk[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
}

#cipheredge .ceh-risk > header h3 { color: #ff736a; }

#cipheredge .ceh-risk > header > span {
  padding: 4px 7px;
  color: var(--ceh-red);
  font-family: var(--ceh-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 87, 77, 0.12);
  border: 1px solid rgba(255, 87, 77, 0.22);
  border-radius: 999px;
}

#cipheredge .ceh-risk-device {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px 5px;
}

#cipheredge .ceh-meter {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ff7e74;
  background: radial-gradient(circle, rgba(92, 33, 31, 0.62), rgba(16, 12, 15, 0.86));
  border: 1px solid rgba(255, 87, 77, 0.46);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 87, 77, 0.14);
}

#cipheredge .ceh-meter svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cipheredge .ceh-risk-device strong,
#cipheredge .ceh-risk-device small {
  display: block;
}

#cipheredge .ceh-risk-device strong {
  color: var(--ceh-text);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

#cipheredge .ceh-risk-device small {
  margin-top: 3px;
  color: var(--ceh-muted);
  font-size: 9.5px;
}

#cipheredge .ceh-risk dl {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 5px 12px 9px;
}

#cipheredge .ceh-risk dl > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
}

#cipheredge .ceh-risk dt,
#cipheredge .ceh-risk dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.32;
}

#cipheredge .ceh-risk dt { color: var(--ceh-muted); }
#cipheredge .ceh-risk dd { color: var(--ceh-secondary); text-align: right; }
#cipheredge .ceh-risk dd em { color: var(--ceh-red); font-style: normal; }

#cipheredge .ceh-risk > a {
  min-height: 40px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 11px 10px;
  padding: 0 11px;
  color: var(--ceh-green);
  font-size: 10.5px;
  font-weight: 550;
  text-decoration: none;
  background: rgba(21, 75, 53, 0.2);
  border: 1px solid rgba(56, 217, 140, 0.42);
  border-radius: 7px;
}

#cipheredge .ceh-risk > a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

#cipheredge .ceh-risk > a b { font-size: 12px; font-weight: 400; }
#cipheredge .ceh-risk > a:hover { color: #8bf4d5; background: rgba(30, 103, 72, 0.25); }
#cipheredge .ceh-risk > a:focus-visible { outline: 2px solid var(--ceh-teal); outline-offset: 2px; }

@keyframes ceh-event-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keep the editorial rail compact and reserve the visual center for the world. */
@media (min-width: 1200px) {
  #cipheredge .ceh-dashboard {
    grid-template-columns: minmax(270px, 280px) minmax(500px, 1fr) minmax(258px, 326px);
  }

  #cipheredge .ceh-fleet { width: 228px; align-self: flex-start; padding: 8px 10px 9px; }
  #cipheredge .ceh-fleet > header p { display: none; }
  #cipheredge .ceh-fleet > header h3 { margin-top: 0; font-size: 12px; }
  #cipheredge .ceh-fleet-total { margin: 4px 0; }
  #cipheredge .ceh-fleet-total strong { font-size: 22px; }
  #cipheredge .ceh-fleet-grid { display: none; }
  #cipheredge .ceh-device-classes { gap: 3px; }
  #cipheredge .ceh-device-classes li { grid-template-columns: 14px minmax(0, 1fr); gap: 5px; font-size: 8.5px; }
  #cipheredge .ceh-device-classes svg { width: 13px; height: 13px; }
  #cipheredge .ceh-device-classes strong { font-size: 8.5px; }
  #cipheredge .ceh-donut { width: 56px; height: 56px; }
  #cipheredge .ceh-donut::before { inset: 8px; }
  #cipheredge .ceh-fleet-health { gap: 4px; }
  #cipheredge .ceh-fleet-health li,
  #cipheredge .ceh-fleet-health li strong { font-size: 8px; }
}

/* Short desktop windows keep every evidence row while tightening rhythm. */
@media (min-width: 1200px) and (max-height: 760px) {
  #cipheredge .ceh-dashboard {
    height: calc(100dvh - 88px);
    min-height: 550px;
    grid-template-rows: 66px minmax(0, 1fr);
    gap: 9px 13px;
  }

  #cipheredge .ceh-lockup { margin-bottom: 10px; }
  #cipheredge .ceh-lockup strong { font-size: 24px; }
  #cipheredge .ceh-lockup small { margin-top: 4px; font-size: 8px; }
  #cipheredge .ceh-intro > h2 { margin-bottom: 8px; font-size: 22px; }
  #cipheredge .ceh-lede { margin-bottom: 9px; font-size: 10.5px; line-height: 1.45; }
  #cipheredge .ceh-capabilities { gap: 4px; margin-bottom: 9px; }
  #cipheredge .ceh-capabilities li { font-size: 9.5px; }
  #cipheredge .ceh-capabilities svg { width: 14px; height: 14px; }
  #cipheredge .ceh-fleet { padding: 8px 10px 9px; }
  #cipheredge .ceh-fleet-total { margin: 5px 0; }
  #cipheredge .ceh-fleet-total strong { font-size: 20px; }
  #cipheredge .ceh-device-classes { gap: 3px; }
  #cipheredge .ceh-device-classes li { font-size: 8.5px; }
  #cipheredge .ceh-device-classes svg { width: 13px; height: 13px; }
  #cipheredge .ceh-donut { width: 58px; height: 58px; }
  #cipheredge .ceh-donut::before { inset: 9px; }
  #cipheredge .ceh-feed { grid-template-rows: 40px minmax(0, 1fr); }
  #cipheredge .ceh-risk { grid-template-rows: 40px auto auto auto; }
  #cipheredge .ceh-risk-device { grid-template-columns: 40px minmax(0, 1fr); padding-top: 6px; }
  #cipheredge .ceh-meter { width: 38px; height: 38px; }
  #cipheredge .ceh-risk dl { gap: 3px; padding-top: 2px; padding-bottom: 5px; }
  #cipheredge .ceh-risk > a { min-height: 31px; margin-bottom: 7px; }
}

/* Tablet and narrow desktop: keep the composition, allow the chapter to grow. */
@media (max-width: 1199px) {
  #cipheredge.ceh-slide {
    min-height: auto;
    align-items: flex-start;
    padding: 30px 62px 42px 28px;
    overflow: visible;
  }

  #cipheredge .ceh-dashboard {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 520px auto;
    grid-template-areas:
      "intro intro"
      "flow flow"
      "world world"
      "evidence evidence";
    gap: 14px;
  }

  #cipheredge .ceh-intro {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(360px, 1.18fr);
    grid-template-rows: auto auto auto auto;
    gap: 0 28px;
    padding: 0;
  }

  #cipheredge .ceh-lockup { grid-column: 1; grid-row: 1; }
  #cipheredge .ceh-intro > h2 { grid-column: 1; grid-row: 2; max-width: 15ch; }
  #cipheredge .ceh-lede { grid-column: 1; grid-row: 3; max-width: 46ch; }
  #cipheredge .ceh-capabilities { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  #cipheredge .ceh-fleet { grid-column: 2; grid-row: 1 / span 4; width: 100%; margin: 0; align-self: start; }
  #cipheredge .ceh-fleet-grid { grid-template-columns: minmax(140px, 0.9fr) minmax(170px, 1.1fr); }
  #cipheredge .ceh-device-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; }
  #cipheredge .ceh-device-classes li { font-size: 9.5px; }
  #cipheredge .ceh-device-classes svg { width: 18px; height: 18px; }
  #cipheredge .ceh-fleet-health { grid-template-columns: 82px minmax(110px, 1fr); justify-items: stretch; }
  #cipheredge .ceh-donut { width: 82px; height: 82px; }
  #cipheredge .ceh-fleet-health li { font-size: 9px; }
  #cipheredge .ceh-fleet-health li strong { font-size: 9px; }
  #cipheredge .ceh-flow { min-height: 76px; }
  #cipheredge .ceh-world-root { min-height: 0; }
  #cipheredge .ceh-evidence { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px; align-self: stretch; }
}

@media (max-width: 899px) {
  #cipheredge.ceh-slide { padding: 25px 20px 38px; }

  #cipheredge .ceh-dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 420px auto;
    grid-template-areas: "intro" "flow" "world" "evidence";
  }

  #cipheredge .ceh-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
  }

  #cipheredge .ceh-lockup,
  #cipheredge .ceh-intro > h2,
  #cipheredge .ceh-lede,
  #cipheredge .ceh-capabilities,
  #cipheredge .ceh-fleet {
    grid-column: 1;
    grid-row: auto;
  }

  #cipheredge .ceh-intro > h2 { max-width: 18ch; }
  #cipheredge .ceh-lede { max-width: 60ch; }
  #cipheredge .ceh-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
  #cipheredge .ceh-fleet { margin: 0; }
  #cipheredge .ceh-flow ol { min-width: 560px; }
  #cipheredge .ceh-flow { overflow-x: auto; scrollbar-width: none; }
  #cipheredge .ceh-flow::-webkit-scrollbar { display: none; }
  #cipheredge .ceh-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px; }
}

@media (max-width: 680px) {
  #cipheredge .ceh-dashboard { grid-template-rows: auto auto 360px auto; }
  #cipheredge .ceh-lockup strong { font-size: 27px; }
  #cipheredge .ceh-intro > h2 { font-size: 27px; }
  #cipheredge .ceh-capabilities { grid-template-columns: minmax(0, 1fr); }
  #cipheredge .ceh-fleet-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  #cipheredge .ceh-device-classes { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #cipheredge .ceh-fleet-health { grid-template-columns: minmax(70px, 0.8fr) minmax(86px, 1.2fr); }
  #cipheredge .ceh-donut { width: 72px; height: 72px; }
  #cipheredge .ceh-flow { overflow: visible; }
  #cipheredge .ceh-flow ol { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  #cipheredge .ceh-flow li { min-height: 31px; }
  #cipheredge .ceh-flow li::before,
  #cipheredge .ceh-flow li::after { display: none; }
  #cipheredge .ceh-evidence { grid-template-columns: minmax(0, 1fr); grid-template-rows: 330px 270px; }
  #cipheredge .ce-world-label { min-width: 94px; max-width: 120px; }
}

@media (max-width: 480px) {
  #cipheredge.ceh-slide { padding: 21px 14px 32px; }
  #cipheredge .ceh-dashboard { grid-template-rows: auto auto 320px auto; gap: 12px; }
  #cipheredge .ceh-flow { padding-right: 10px; padding-left: 10px; }
  #cipheredge .ceh-flow ol { min-width: 0; }
  #cipheredge .ceh-world-assurance { gap: 7px; font-size: 7px; }
  #cipheredge .ceh-world-assurance span { gap: 7px; }
  #cipheredge .ceh-feed button { grid-template-columns: 28px 50px minmax(0, 1fr) 5px; }
}

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