/* Sentinel page: builds on css/optimisation.css (shared .opt-page sections) with Sentinel-specific previews. */
.opt-page.sentinel-page .snt-big b {
  font-size: clamp(64px, 8vw, 112px);
}
.opt-page.sentinel-page .snt-big .to.zero {
  color: var(--go-fill);
}
.opt-page .zz-intro {
  font-size: 15.5px;
  line-height: 1.5;
  color: #4b4842;
  margin: 0 0 12px;
}

/* Incident queue: noise collapses, real incidents are assigned */
.opt-page .snt-queue .q-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 38px;
  max-height: 38px;
  border-bottom: 1px solid #f3f2f1;
  font: 12.5px var(--ui-ms);
  overflow: hidden;
  transition:
    max-height 0.35s var(--ease),
    opacity 0.35s var(--ease),
    background 0.3s var(--ease);
}
.opt-page .snt-queue .q-row > span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-page .snt-queue .q-row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.opt-page .snt-queue .q-row.noise.out {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.opt-page .snt-queue .q-row.real.on {
  background: #f3fcf6;
}
.opt-page .snt-queue .q-row.real.on em {
  opacity: 1;
  color: var(--go);
  background: var(--go-bg);
  border: 1px solid var(--go-line);
}
.opt-page .snt-queue .sev {
  font: 600 10.5px var(--ui-ms);
  display: flex;
  align-items: center;
  gap: 5px;
  color: #424242;
}
.opt-page .snt-queue .sev::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
}
.opt-page .snt-queue .sev.h {
  --c: #e1063a;
}
.opt-page .snt-queue .sev.m {
  --c: #e75a00;
}
.opt-page .snt-queue .sev.l {
  --c: #8a8886;
}
.opt-page .snt-queue .sev.i {
  --c: #c8c6c4;
}

/* Incident workflow: an incident travels Detect, Triage, Respond, Review */
.opt-page .fl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 16px 10px;
  --p: 0;
}
.opt-page .fl-track {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 38px;
  height: 3px;
  background: #ece9e2;
}
.opt-page .fl-track i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  background: var(--go-fill);
}
.opt-page .fl-dot {
  position: absolute;
  top: 39px;
  left: calc(12.5% + 75% * var(--p));
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 104, 27, 0.22);
  opacity: var(--o, 0);
  z-index: 2;
}
.opt-page .fl-step {
  position: relative;
  text-align: center;
  font: 12px var(--ui-ms);
}
.opt-page .fl-node {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d6d3cf;
  display: grid;
  place-items: center;
  font: 700 12px "JetBrains Mono";
  color: #8a8886;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.opt-page .fl-step.on .fl-node {
  background: var(--go-fill);
  border-color: var(--go-fill);
  color: #fff;
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .fl-step h4 {
  font: 700 13px "Sora";
  margin: 0 0 3px;
}
.opt-page .fl-step p {
  margin: 0 0 8px;
  color: #616161;
  font-size: 11px;
  line-height: 1.35;
}
.opt-page .fl-own {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  color: #8a8886;
  background: #f3f1ec;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.opt-page .fl-own svg {
  width: 11px;
  height: 11px;
}
.opt-page .fl-step.on .fl-own {
  color: var(--go);
  background: var(--go-bg);
}
.opt-page .snt-flow .caveat {
  padding-top: 4px;
}

/* Configuration slider: one column of rows */
.opt-page .snt-ba {
  margin-top: 0;
}
.opt-page .snt-ba .ba-layer {
  padding: 18px 18px 16px;
}

/* Three-up: MITRE tiles, log bars, playbook */
.opt-page .snt-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.opt-page .snt-col {
  padding: 16px 18px 20px;
}
.opt-page .snt-col .lw {
  margin-bottom: 18px;
}
.opt-page .snt-col h3 {
  font: 700 19px/1.15 "Sora";
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.opt-page .snt-col > p {
  font-size: 14.5px;
  color: #4b4842;
  margin: 0 0 10px;
}
.opt-page .snt-col .mk-list li {
  font-size: 14px;
}
.opt-page .mt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 12px;
}
.opt-page .mt {
  border-radius: 5px;
  padding: 6px 6px 7px;
  font: 10px/1.2 var(--ui-ms);
  border: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.opt-page .mt b {
  display: block;
  font: 700 10px "JetBrains Mono";
}
.opt-page .mt span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-page .mt.cov,
.opt-page .mt.on {
  background: var(--go-bg);
  border-color: var(--go-line);
  color: var(--go);
}
.opt-page .mt.gap {
  background: var(--bad-bg);
  border-color: #f2c4c8;
  color: var(--bad);
}
.opt-page .mt.data {
  background: #fff4ce;
  border-color: #f0dc9a;
  color: #6b4b00;
}
.opt-page .mt.gap.on,
.opt-page .mt.data.on {
  background: var(--go-bg);
  border-color: var(--go-line);
  color: var(--go);
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .mt-legend {
  display: flex;
  gap: 12px;
  padding: 0 12px 12px;
  font-size: 10.5px;
  color: #616161;
}
.opt-page .mt-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
.opt-page .mt-legend i.cov {
  background: var(--go-bg);
  border: 1px solid var(--go-line);
}
.opt-page .mt-legend i.gap {
  background: var(--bad-bg);
  border: 1px solid #f2c4c8;
}
.opt-page .mt-legend i.data {
  background: #fff4ce;
  border: 1px solid #f0dc9a;
}
.opt-page .lg-list {
  padding: 8px 12px 12px;
}
.opt-page .lg {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f3f2f1;
  font: 11.5px var(--ui-ms);
}
.opt-page .lg b {
  display: block;
  font-weight: 600;
}
.opt-page .lg small {
  color: #616161;
  font-size: 10.5px;
}
.opt-page .lg i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #ece9e2;
  position: relative;
  overflow: hidden;
}
.opt-page .lg i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--go-fill);
  transition: width 0.8s var(--ease);
}
.opt-page [data-mock="logs"].go .lg i::after {
  width: var(--w);
}
.opt-page .lg em {
  grid-column: 1 / -1;
  justify-self: start;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  color: #6b4b00;
  background: #fff4ce;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.opt-page .lg em:empty {
  display: none;
}
.opt-page [data-mock="logs"].tagged .lg em {
  opacity: 1;
}
.opt-page .pb-done {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 18px 16px;
  font-size: 12px;
  color: #616161;
  opacity: 0.25;
  transition: opacity 0.3s var(--ease);
}
.opt-page .pb-done span {
  font: 700 13px "Sora";
  color: #fff;
  background: var(--go-fill);
  padding: 5px 12px;
  border-radius: 999px;
}
.opt-page .pb-done.on {
  opacity: 1;
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1100px) {
  .opt-page .snt-three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .opt-page .snt-three {
    grid-template-columns: 1fr;
  }
  .opt-page .fl {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }
  .opt-page .fl-track,
  .opt-page .fl-dot {
    display: none;
  }
  .opt-page .snt-queue .q-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .opt-page .snt-queue .q-row em {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .snt-queue .q-row,
  .opt-page .mt,
  .opt-page .lg i::after,
  .opt-page .pb-done,
  .opt-page .fl-node,
  .opt-page .fl-own {
    transition: none !important;
    animation: none !important;
  }
}

/* Analytics rule list: each chip flips to its tuned state */
.opt-page .snt-rules .pp-li {
  padding: 8px 0;
  font: 12.5px var(--ui-ms);
}
.opt-page .snt-rules .pp-li small {
  display: block;
  font-size: 10.5px;
  color: #616161;
}
.opt-page .snt-rules .pp-list {
  padding: 2px 16px 6px;
}
.opt-page .snt-rules .pp-flip {
  font-size: 10.5px;
}
.opt-page .snt-rules .hp-done .pp-flip {
  background: var(--go-bg);
  color: var(--go);
  border: 1px solid var(--go-line);
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .snt-rules-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 6px;
  font: 600 12px var(--ui-ms);
}
.opt-page .snt-rules-top span {
  color: var(--bad);
  transition: opacity 0.3s var(--ease);
}
.opt-page .snt-rules-top b {
  color: var(--go);
  opacity: 0.2;
  transition: opacity 0.3s var(--ease);
}
.opt-page .snt-rules.done .snt-rules-top span {
  opacity: 0.35;
  text-decoration: line-through;
}
.opt-page .snt-rules.done .snt-rules-top b {
  opacity: 1;
}
@media (max-width: 960px) {
  .opt-page.sentinel-page .pa-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .opt-page.sentinel-page .snt-big {
    gap: 10px;
  }
  .opt-page.sentinel-page .snt-big b {
    font-size: clamp(40px, 13vw, 64px);
  }
  .opt-page.sentinel-page .snt-big .arrow {
    font-size: 30px;
  }
}
.opt-page .mt {
  min-width: 0;
}
@media (max-width: 1100px) {
  .opt-page .snt-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .opt-page .snt-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .opt-page .mt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
