/* byteomi-runtime-atlas/storage-architecture-map.html — storage topology observatory */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--storage-architecture {
  max-width: min(100%, 72rem);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  border: 1px solid rgba(55, 75, 110, 0.32);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(5, 9, 16, 0.99) 0%, rgba(3, 6, 12, 0.99) 100%);
  padding: 0.65rem 0.75rem 0.85rem;
}

.doc-byteomi-preset--storage-architecture .doc-byteomi-preset__tag {
  color: rgba(100, 200, 220, 0.9);
  letter-spacing: 0.14em;
}

.doc-byteomi-preset--storage-architecture .doc-byteomi-preset__lead {
  color: rgba(155, 180, 215, 0.88);
}

.doc-atlas-guide__read-list {
  --atlas-label-grad: linear-gradient(
    108deg,
    #6ee7f2 0%,
    #5ec8ff 28%,
    #8890ff 58%,
    #7ee8d8 92%
  );
  margin: 0.5rem 0 0;
  padding-left: 0;
  list-style: none;
  color: rgba(175, 192, 215, 0.92);
}

.doc-atlas-guide__read-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  line-height: 1.58;
}

.doc-atlas-guide__read-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ec8ff 0%, #8890ff 100%);
}

.doc-atlas-guide__label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--atlas-label-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8ec5ff;
}

.doc-atlas-guide__steps {
  margin: 0.65rem 0;
  padding-left: 1.25rem;
  list-style: none;
  counter-reset: atlas-step;
}

.doc-atlas-guide__steps li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 0.35rem;
  line-height: 1.5;
  color: rgba(175, 200, 230, 0.92);
}

.doc-atlas-guide__steps li::before {
  counter-increment: atlas-step;
  content: counter(atlas-step);
  position: absolute;
  left: -1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(100, 200, 230, 0.9);
}

.doc-atlas-guide__stage-map {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .doc-atlas-guide__stage-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-atlas-guide__stage-map li {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 95, 140, 0.22);
  background: rgba(5, 9, 16, 0.65);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__stage-map strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(102deg, #7ee8d8 0%, #5ec8ff 50%, #9890ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.doc-atlas-guide__insight {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid rgba(80, 170, 200, 0.5);
  border-radius: 0 8px 8px 0;
  background: rgba(5, 9, 16, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(190, 210, 235, 0.92);
}

.doc-atlas-guide__controls {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.doc-atlas-guide__controls div {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 95, 140, 0.22);
  background: rgba(5, 9, 16, 0.55);
}

.doc-atlas-guide__controls dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(102deg, #7ee8d8 0%, #5ec8ff 45%, #9890ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.doc-atlas-guide__controls dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(165, 190, 225, 0.88);
}

.doc-atlas-guide__control-insight {
  display: block;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(60, 95, 140, 0.28);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(150, 175, 210, 0.88);
}

.doc-atlas-guide__control-insight em {
  font-style: normal;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: rgba(100, 200, 230, 0.92);
}

.doc-atlas-guide__plain {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 80, 120, 0.28);
  background: rgba(4, 8, 14, 0.85);
}

.doc-atlas-guide__plain--under-demo {
  margin-top: 0.55rem;
}

.doc-atlas-guide__plain .doc-h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.doc-atlas-guide__plain p {
  font-size: 0.86rem;
  line-height: 1.58;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__plain a {
  color: #6ee7f2;
}

.doc-atlas-guide__signals {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .doc-atlas-guide__signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-atlas-guide__signal {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(55, 80, 120, 0.35);
  background: rgba(5, 9, 16, 0.7);
}

.doc-atlas-guide__signal .doc-h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.doc-atlas-guide__signal ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(165, 190, 220, 0.88);
}

.doc-atlas-guide__signal--ok {
  border-color: rgba(80, 200, 180, 0.35);
}

.doc-atlas-guide__signal--warn {
  border-color: rgba(230, 180, 90, 0.35);
}

.doc-atlas-guide__signal--bad {
  border-color: rgba(255, 120, 110, 0.35);
}

.doc-atlas-guide__crosslink {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: rgba(150, 175, 210, 0.88);
}

.doc-sam-lab__runtime-note {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-left: 2px solid rgba(70, 150, 190, 0.45);
  border-radius: 0 6px 6px 0;
  background: rgba(4, 8, 14, 0.85);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(150, 175, 210, 0.88);
}

.doc-sam-lab__runtime-note-label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(90, 170, 210, 0.8);
}

.doc-sam-lab__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.45);
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.98) 0%, rgba(5, 9, 16, 0.95) 100%);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-sam-lab__rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6ee7f2;
}

.doc-sam-lab__rec::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ec8ff;
  animation: sam-rec-pulse 1.4s ease-in-out infinite;
}

.doc-sam-lab__rec.is-paused {
  color: rgba(130, 150, 170, 0.8);
}

.doc-sam-lab__rec.is-paused::before {
  animation: none;
  background: rgba(120, 130, 150, 0.6);
}

@keyframes sam-rec-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.doc-sam-lab__pause-btn {
  padding: 0.26rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(70, 95, 130, 0.4);
  background: rgba(6, 10, 18, 0.95);
  color: rgba(175, 200, 230, 0.9);
  font-family: inherit;
  font-size: 0.54rem;
  cursor: pointer;
}

.doc-sam-lab__hud-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(40, 60, 90, 0.35);
  background: rgba(3, 6, 12, 0.75);
}

.doc-sam-lab__metric {
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(50, 70, 100, 0.4);
  background: rgba(4, 8, 14, 0.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.doc-sam-lab__metric-label {
  display: block;
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(95, 125, 160, 0.75);
  margin-bottom: 0.1rem;
}

.doc-sam-lab__metric strong {
  font-size: 0.72rem;
  color: rgba(210, 225, 245, 0.95);
}

.doc-sam-lab__metric--quota strong {
  color: #7ee8d8;
}

.doc-sam-lab__metric--eviction strong {
  color: #ff9a90;
}

.doc-sam-lab__metric.is-glow-sync.is-glow-active {
  border-color: rgba(255, 175, 90, 0.42);
  box-shadow: 0 0 10px rgba(255, 160, 70, 0.12);
}

.doc-sam-lab__metric.is-glow-async.is-glow-active {
  border-color: rgba(70, 210, 230, 0.42);
  box-shadow: 0 0 10px rgba(60, 200, 220, 0.12);
}

.doc-sam-lab__metric.is-glow-eviction.is-glow-active {
  border-color: rgba(255, 100, 100, 0.42);
  box-shadow: 0 0 10px rgba(255, 90, 100, 0.14);
}

.doc-sam-lab__insight {
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid rgba(70, 160, 200, 0.4);
  border-radius: 0 6px 6px 0;
  background: rgba(3, 6, 12, 0.9);
  font-size: 0.64rem;
  line-height: 1.52;
  color: rgba(168, 192, 218, 0.94);
}

.doc-sam-lab__insight-label {
  display: block;
  margin-bottom: 0.12rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(105, 180, 210, 0.85);
}

.doc-sam-lab__mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.32rem;
  margin-bottom: 0.45rem;
}

.doc-sam-lab__mode-btn {
  padding: 0.32rem 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(55, 75, 110, 0.45);
  background: rgba(5, 9, 16, 0.92);
  color: rgba(160, 185, 220, 0.88);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.doc-sam-lab__mode-btn.is-active {
  border-color: rgba(90, 200, 220, 0.55);
  color: #6ee7f2;
  background: rgba(8, 18, 28, 0.95);
}

.doc-sam-lab__stage {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

@media (min-width: 720px) {
  .doc-sam-lab__stage {
    grid-template-columns: 1fr minmax(160px, 220px);
  }
}

.doc-sam-lab__map-wrap {
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.5);
  background: #050810;
  overflow: hidden;
  min-height: 360px;
}

.doc-sam-lab__map {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.doc-sam-lab__log-panel {
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.45);
  background: rgba(3, 6, 12, 0.95);
  padding: 0.4rem 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.doc-sam-lab__log-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(60, 100, 140, 0.04) 2px,
    rgba(60, 100, 140, 0.04) 3px
  );
  z-index: 0;
}

.doc-sam-lab__log-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(90, 180, 220, 0.04) 0%,
    transparent 18%,
    transparent 82%,
    rgba(0, 0, 0, 0.15) 100%
  );
  animation: sam-log-phosphor 4.2s ease-in-out infinite;
  z-index: 0;
}

@keyframes sam-log-phosphor {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.doc-sam-lab__log-title {
  margin: 0 0 0.35rem;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(90, 170, 210, 0.8);
  position: relative;
  z-index: 1;
}

.doc-sam-lab__log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.52rem;
  line-height: 1.58;
  color: rgba(152, 180, 210, 0.92);
  max-height: 320px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.doc-sam-lab__log li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(40, 60, 90, 0.25);
}

.doc-sam-lab__log li:first-child,
.doc-sam-lab__log li.is-fresh {
  color: rgba(110, 220, 240, 0.95);
  animation: sam-log-flicker 0.55s ease-out 1;
}

@keyframes sam-log-flicker {
  0% {
    opacity: 0.35;
    text-shadow: 0 0 6px rgba(90, 220, 255, 0.35);
  }
  40% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(90, 220, 255, 0.55);
  }
  100% {
    opacity: 1;
    text-shadow: none;
  }
}

.doc-sam-lab__log-ts {
  color: rgba(105, 165, 200, 0.82);
  letter-spacing: 0.02em;
  animation: sam-ts-pulse 2.8s ease-in-out infinite;
}

.doc-sam-lab__log li.is-fresh .doc-sam-lab__log-ts {
  color: rgba(115, 210, 235, 0.95);
}

@keyframes sam-ts-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-sam-lab__log-panel::after,
  .doc-sam-lab__log li.is-fresh,
  .doc-sam-lab__log-ts {
    animation: none;
  }
}

.doc-sam-lab__readout {
  margin: 0 0 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  line-height: 1.48;
  color: rgba(145, 172, 205, 0.88);
}

.doc-sam-lab__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  color: rgba(130, 160, 195, 0.8);
}

.doc-sam-lab__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.doc-sam-lab__legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  font-style: normal;
}

.doc-sam-lab__legend i[data-c="cookie"] {
  background: #ffb347;
}

.doc-sam-lab__legend i[data-c="local"] {
  background: #e8a84a;
}

.doc-sam-lab__legend i[data-c="idb"] {
  background: #3ecfd6;
}

.doc-sam-lab__legend i[data-c="cache"] {
  background: #8890ff;
}

.doc-sam-lab__legend i[data-c="http"] {
  background: rgba(106, 138, 154, 0.6);
  border: 1px dashed rgba(106, 138, 154, 0.8);
}

.doc-sam-lab__legend i[data-c="origin"] {
  background: #5ec8ff;
  box-shadow: 0 0 6px rgba(94, 200, 255, 0.5);
}

.doc-sam-lab__hint {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.5;
  color: rgba(145, 170, 205, 0.86);
}
