.controls,
.slide-rail { display: none !important; }

.story-shell {
  left: 30px;
  top: 106px;
  bottom: 112px;
  width: min(410px, 31vw);
}

.story-card {
  background: linear-gradient(145deg, rgba(6,14,18,.88), rgba(5,10,13,.61));
  border-color: rgba(135,196,208,.18);
}

.metric-strip {
  right: auto;
  left: 30px;
  bottom: 26px;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
}

.engineering-shell {
  position: absolute;
  z-index: 12;
  top: 108px;
  right: 26px;
  width: 350px;
  color: #eef9fb;
}

.engineering-toggle {
  position: absolute;
  right: 0;
  top: -42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(135,196,208,.2);
  background: rgba(5,12,15,.78);
  color: #8ea8ae;
  backdrop-filter: blur(14px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  cursor: pointer;
}
.engineering-toggle:hover { color: #fff; border-color: rgba(49,216,255,.55); }
.engineering-toggle-icon { color: #31d8ff; font-size: 17px; line-height: 1; }

.engineering-panel {
  max-height: calc(100vh - 166px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(49,216,255,.28) transparent;
  border: 1px solid rgba(135,196,208,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8,16,20,.91), rgba(4,9,12,.76));
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
  transform-origin: top right;
  transition: opacity .26s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .26s;
}
.engineering-shell.closed .engineering-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
}

.eng-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(135,196,208,.13);
  background: rgba(6,13,16,.92);
  backdrop-filter: blur(14px);
}
.eng-head > div { display: flex; flex-direction: column; gap: 4px; }
.eng-head small { font-size: 7px; color: #637b82; letter-spacing: .2em; }
.eng-head strong { font-size: 14px; }
.eng-version {
  padding: 6px 8px;
  border: 1px solid rgba(49,216,255,.24);
  border-radius: 8px;
  color: #31d8ff;
  font-size: 8px;
  letter-spacing: .12em;
}

.eng-tabs {
  position: sticky;
  top: 57px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(135,196,208,.13);
  background: rgba(6,13,16,.94);
}
.eng-tab {
  height: 35px;
  border: 0;
  border-right: 1px solid rgba(135,196,208,.09);
  background: transparent;
  color: #5e747a;
  font-size: 7px;
  letter-spacing: .13em;
  cursor: pointer;
}
.eng-tab:last-child { border-right: 0; }
.eng-tab.active { color: #f0fbfd; box-shadow: inset 0 -1px #31d8ff; background: rgba(49,216,255,.035); }

.eng-tab-panel { display: none; padding: 16px 18px 18px; }
.eng-tab-panel.active { display: block; }

.eng-hero-metric {
  padding: 14px;
  border: 1px solid rgba(49,216,255,.14);
  border-radius: 13px;
  background: radial-gradient(circle at 15% 0%, rgba(49,216,255,.1), transparent 54%), rgba(255,255,255,.018);
}
.eng-hero-metric span,
.eng-section-title,
.eng-grid small,
.eng-flow-row span,
.eng-callout small,
.automation-card small,
.status-title {
  font-size: 7px;
  letter-spacing: .15em;
  color: #617a81;
}
.eng-hero-metric strong { display: block; margin-top: 7px; font-size: 29px; letter-spacing: -.04em; }
.eng-hero-metric strong i { font-style: normal; font-size: 11px; color: #728a90; letter-spacing: .1em; }
.eng-hero-metric > small { display: block; margin-top: 4px; color: #729098; font-size: 9px; }

.eng-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 9px; }
.eng-grid > div { padding: 11px; border: 1px solid rgba(135,196,208,.1); border-radius: 10px; background: rgba(255,255,255,.015); }
.eng-grid strong { display: block; margin-top: 4px; font-size: 12px; }

.eng-section-title { margin: 18px 0 8px; }
.eng-jumps { display: grid; gap: 6px; }
.eng-jump {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(135,196,208,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
  color: #c8dadd;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.eng-jump span { font-size: 11px; font-weight: 700; }
.eng-jump small { color: #587078; font-size: 8px; }
.eng-jump:hover { transform: translateX(-2px); border-color: rgba(49,216,255,.38); background: rgba(49,216,255,.035); }

.eng-flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(135,196,208,.09);
}
.eng-flow-row span { display: flex; align-items: center; gap: 8px; }
.eng-flow-row strong { font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.clean { background: #31d8ff; box-shadow: 0 0 11px rgba(49,216,255,.45); }
.dot.max { background: #80e9ff; }
.dot.line { background: #22b8ae; box-shadow: 0 0 11px rgba(34,184,174,.4); }
.dot.maxline { background: #ffd44a; }

.flow-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 13px 0;
}
.flow-box { padding: 11px; border: 1px solid rgba(135,196,208,.1); border-radius: 10px; background: rgba(255,255,255,.015); }
.flow-box small { display: block; color: #5f7880; font-size: 7px; letter-spacing: .13em; }
.flow-box strong { display: block; margin-top: 5px; font-size: 16px; }
.flow-plus { color: #4d6971; font-weight: 800; }

.hydraulic-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(34,184,174,.045);
  border: 1px solid rgba(34,184,174,.13);
  color: #91a8ad;
  font-size: 7px;
  letter-spacing: .08em;
}
.hydraulic-chain b { color: #22b8ae; }

.eng-callout {
  margin-top: 13px;
  padding: 13px;
  border-left: 2px solid #31d8ff;
  border-radius: 0 10px 10px 0;
  background: rgba(49,216,255,.035);
}
.eng-callout.compact { border-left-color: #79d26d; background: rgba(121,210,109,.03); }
.eng-callout strong { display: block; margin-top: 5px; font-size: 12px; }
.eng-callout p { margin: 7px 0 0; color: #849ba1; font-size: 9px; line-height: 1.55; }
.eng-callout button {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #31d8ff;
  font-size: 8px;
  letter-spacing: .12em;
  cursor: pointer;
}
.eng-footnote { margin: 12px 0 0; color: #536a71; font-size: 8px; line-height: 1.5; }

.automation-card {
  padding: 13px;
  border: 1px solid rgba(121,210,109,.14);
  border-radius: 12px;
  background: radial-gradient(circle at 90% 0%, rgba(121,210,109,.1), transparent 48%), rgba(255,255,255,.014);
}
.automation-card strong { display: block; margin-top: 5px; font-size: 14px; }
.automation-card p { margin: 7px 0 0; color: #83999f; font-size: 9px; line-height: 1.55; }
.feed-clock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.feed-clock > div { padding: 11px; border-radius: 10px; border: 1px solid rgba(121,210,109,.12); background: rgba(121,210,109,.025); }
.feed-clock small { display: block; color: #60796a; font-size: 7px; letter-spacing: .12em; }
.feed-clock strong { display: block; margin-top: 4px; color: #aee1a8; font-size: 12px; }
.automation-list { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.automation-list li { position: relative; padding-left: 14px; color: #859ca2; font-size: 9px; line-height: 1.35; }
.automation-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #79d26d; box-shadow: 0 0 8px rgba(121,210,109,.4); }

.status-block + .status-block { margin-top: 14px; }
.status-title { display: flex; align-items: center; gap: 7px; }
.status-title span { width: 7px; height: 7px; border-radius: 50%; }
.status-block.locked .status-title span { background: #79d26d; }
.status-block.provisional .status-title span { background: #ffd44a; }
.status-block ul { margin: 9px 0 0; padding: 0 0 0 16px; }
.status-block li { margin: 0 0 6px; color: #81979d; font-size: 9px; line-height: 1.4; }

.eng-shortcuts {
  display: flex;
  gap: 12px;
  padding: 11px 18px 14px;
  border-top: 1px solid rgba(135,196,208,.1);
  color: #4e666d;
  font-size: 7px;
  letter-spacing: .08em;
}
kbd { padding: 2px 4px; border: 1px solid rgba(135,196,208,.16); border-radius: 4px; background: rgba(255,255,255,.025); color: #779097; font: inherit; }

.explore-nav {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(135,196,208,.16);
  border-radius: 14px;
  background: rgba(4,10,13,.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
}
.explore-nav-label { padding: 0 8px; color: #4f676e; font-size: 7px; letter-spacing: .15em; }
.explore-button {
  min-width: 38px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #61777d;
  font-size: 8px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: .18s ease;
}
.explore-button:hover { color: #d9f5f8; background: rgba(49,216,255,.045); }
.explore-button.active { color: #031015; background: #31d8ff; box-shadow: 0 0 22px rgba(49,216,255,.2); }

.phase-ribbon {
  position: absolute;
  z-index: 9;
  right: 28px;
  bottom: 28px;
  display: none;
}

.interaction-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(3,8,10,.48);
  color: #4d646b;
  font-size: 7px;
  letter-spacing: .14em;
  pointer-events: none;
}

.clean-view .story-shell,
.clean-view .metric-strip,
.clean-view .engineering-shell,
.clean-view .explore-nav,
.clean-view .interaction-hint,
.clean-view .topbar { opacity: 0; pointer-events: none; }
.clean-view .story-shell,
.clean-view .metric-strip,
.clean-view .engineering-shell,
.clean-view .explore-nav,
.clean-view .interaction-hint,
.clean-view .topbar { transition: opacity .22s ease; }

@media (max-width: 1200px) {
  .engineering-shell { width: 320px; }
  .story-shell { width: 360px; }
  .metric-strip > div:nth-child(4), .metric-strip > div:nth-child(5) { display: none; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .explore-button { padding: 0 7px; }
}

@media (max-width: 900px) {
  .story-shell { left: 18px; top: 82px; width: calc(100vw - 36px); bottom: auto; }
  .story-card { max-width: 390px; }
  .engineering-shell { top: auto; right: 14px; bottom: 84px; width: min(330px, calc(100vw - 28px)); }
  .engineering-toggle { top: -38px; }
  .engineering-panel { max-height: 52vh; }
  .metric-strip { display: none; }
  .explore-nav { left: 12px; right: 12px; bottom: 14px; transform: none; overflow-x: auto; justify-content: flex-start; }
  .explore-nav-label { position: sticky; left: 0; background: rgba(4,10,13,.92); height: 34px; display: flex; align-items: center; }
  .explore-button { flex: 0 0 auto; }
  .interaction-hint { bottom: 60px; white-space: nowrap; }
}
