/* ==========================================================================
   console — authored product screenshots of the InfraWeaver Console.
   Rendered as live DOM at production fidelity, not raster captures. Every
   view here is labelled synthetic; the console itself sits behind SSO.
   ========================================================================== */

.shots { display: grid; gap: var(--s-4); }

.shots__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: var(--bg-panel);
}

.shot-tab {
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
  color: var(--txt-3);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.shot-tab:last-child { border-right: 0; }
.shot-tab:hover { color: var(--txt); background: var(--bg-raised); }

.shot-tab[aria-selected="true"] { color: var(--phos); background: var(--bg-raised); }

.shot-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--phos);
}

/* ---- browser frame ----------------------------------------------------- */

.frame {
  border: 1px solid var(--rule-bright);
  background: var(--bg-panel);
  box-shadow: var(--lift-3);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-inset);
}

.frame__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 3px var(--s-3);
  border: 1px solid var(--rule);
  background: var(--bg);
  font-size: var(--t-xs);
  color: var(--txt-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame__url b { color: var(--txt-2); font-weight: 400; }
.frame__lock { color: var(--phos); flex: none; }

.frame__stage {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 860px) {
  .frame__stage { height: 460px; }
}

.frame__stage[data-boot="on"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--phos);
  animation: shot-power 460ms var(--ease-crt) forwards;
  pointer-events: none;
}

@keyframes shot-power {
  0%   { opacity: 0.75; transform: scaleY(0.004); }
  40%  { opacity: 0.32; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .frame__stage[data-boot="on"]::after { animation: none; opacity: 0; }
}

.frame__caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
  background: var(--bg-panel);
  font-size: var(--t-xs);
  color: var(--txt-3);
}

/* ---- console chrome ---------------------------------------------------- */

.ui {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  height: 100%;
  font-size: var(--t-xs);
}

@media (max-width: 720px) {
  .ui { grid-template-columns: 54px minmax(0, 1fr); }
  .ui__nav-label { display: none; }
}

.ui__side {
  border-right: 1px solid var(--rule);
  background: var(--bg-panel);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.ui__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  color: var(--txt);
  font-size: var(--t-sm);
}

.ui__nav { padding: var(--s-2) 0; overflow-y: auto; scrollbar-width: none; }
.ui__nav::-webkit-scrollbar { display: none; }

.ui__navgroup {
  padding: 10px var(--s-3) 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--txt-3);
}

.ui__navitem {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px var(--s-3);
  color: var(--txt-2);
  border-left: 1px solid transparent;
}

.ui__navitem svg { flex: none; }
.ui__navitem[data-on="1"] {
  color: var(--phos);
  background: var(--phos-ghost);
  border-left-color: var(--phos);
}

.ui__user {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  border-top: 1px solid var(--rule);
  color: var(--txt-3);
}

.ui__avatar {
  width: 20px;
  height: 20px;
  flex: none;
  background: var(--phos-dim);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-family: var(--font-display);
}

.ui__main { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; }

.ui__top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-panel);
}

.ui__crumb { color: var(--txt-3); }
.ui__crumb b { color: var(--txt); font-weight: 400; }
.ui__actions { margin-left: auto; display: flex; gap: var(--s-2); }

.ui__btn {
  padding: 3px var(--s-3);
  border: 1px solid var(--rule-bright);
  color: var(--txt-2);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.ui__btn--go { border-color: var(--phos-dim); color: var(--phos); }

.ui__body {
  padding: var(--s-4);
  overflow-y: auto;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-hot) transparent;
}

/* ---- console widgets --------------------------------------------------- */

.w {
  border: 1px solid var(--rule);
  background: var(--bg-panel);
}

.w__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule);
  color: var(--txt-3);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.w__head .st { margin-left: auto; }
.w__body { padding: var(--s-3); }
.w__body--flush { padding: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--rule); }
.kpi { background: var(--bg-panel); padding: var(--s-3); display: grid; gap: 2px; }
.kpi__v { font-family: var(--font-display); font-size: 20px; color: var(--txt); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__v--ok { color: var(--phos); }
.kpi__v--warn { color: var(--amber); }
.kpi__k { font-size: 9px; letter-spacing: 0.1em; color: var(--txt-3); }
.kpi__d { font-size: 10px; color: var(--txt-3); }

.rows { display: grid; }

.rw {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  padding: 6px var(--s-3);
  border-bottom: 1px solid var(--rule);
  color: var(--txt-2);
}

.rw:last-child { border-bottom: 0; }
.rw--head { color: var(--txt-3); font-size: 9px; letter-spacing: 0.1em; background: var(--bg-inset); }
.rw b { color: var(--txt); font-weight: 400; }
.rw__mono { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .rw { grid-template-columns: minmax(0, 1fr) auto; }
  .rw > :nth-child(2), .rw > :nth-child(3) { display: none; }
}

.bars { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.bars i { flex: 1; background: var(--phos-dim); display: block; min-height: 2px; }
.bars i.hot { background: var(--phos); }
.bars i.warn { background: var(--amber); }

.axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--txt-3); margin-top: 4px; }

.pill {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.pill--ok { color: var(--phos); }
.pill--warn { color: var(--amber); }
.pill--err { color: var(--red); }
.pill--info { color: var(--cyan); }
.pill--off { color: var(--txt-3); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1px; background: var(--rule); }
.tile { background: var(--bg-panel); padding: var(--s-2) var(--s-3); display: grid; gap: 2px; }
.tile__n { color: var(--txt); font-size: 11px; }
.tile__s { font-size: 9px; color: var(--txt-3); }

.diffline { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: var(--s-2); font-size: 11px; padding: 1px var(--s-3); }
.diffline--add { color: var(--phos); background: color-mix(in srgb, var(--phos) 8%, transparent); }
.diffline--del { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.diffline--ctx { color: var(--txt-3); }
