/* ==========================================================================
   Clovertechno enterprise index (sample, index only)
   Loaded after ct.css and ct-light.css. Brand lane, dials V6 / M7 / D6:
   corporate buyers read tables and code, so density goes up a step.
   Signature: the integration hub in the hero, a live server with data
   moving between the client's systems. Code and log panels sit on ink,
   the one dark surface, used only where a developer would expect it.
   ========================================================================== */

:root {
  --ink: #17131F;
  --ink-2: #221D2C;
  --ink-line: rgba(255, 255, 255, 0.08);
  --ink-text: #E9E6EF;
  --ink-muted: #8F899A;
  --ink-faint: #7A7485;
  --tk-key: #FF8A65;
  --tk-str: #7FD1A6;
  --tk-fn: #F2C46D;
  --tk-num: #C3A6FF;
  --success-text: #17633F;
  --accent-text: #B5330F;
  --wire: rgba(23, 19, 31, 0.22);
}

/* --------------------------------------------------------------------------
   Hero: integration hub
   -------------------------------------------------------------------------- */

.hub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hub-bar,
.editor-bar,
.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--text-muted);
}

.hub-bar strong {
  color: var(--text);
  font-weight: 500;
}

.status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--success-tint);
  color: var(--success-text);
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: ent-blink 1600ms steps(1, end) infinite;
}

.hub-map {
  display: block;
  width: 100%;
  height: auto;
  background-image: radial-gradient(rgba(23, 19, 31, 0.08) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

.hub-wire {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.5;
}

.hub-node rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.2;
}

.hub-node text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
}

.hub-node .dot {
  fill: var(--success);
}

.hub-rack {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.hub-unit {
  fill: var(--surface-2);
}

.hub-slot {
  stroke: rgba(23, 19, 31, 0.18);
  stroke-width: 2;
  stroke-linecap: round;
}

.hub-led {
  fill: var(--success);
  animation: ent-blink 1100ms steps(1, end) infinite;
}

.hub-led--accent {
  fill: var(--accent);
  animation-duration: 760ms;
}

.hub-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
}

.hub-ring {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ent-ring 2800ms var(--ease-out) infinite;
}

.hub-packet {
  fill: var(--accent);
}

.hub-packet--back {
  fill: var(--success);
}

@keyframes ent-blink {
  50% { opacity: 0.25; }
}

@keyframes ent-ring {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* Live log, the same events the hub is drawing */
.log {
  background: var(--ink);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  line-height: 1.9;
  color: var(--ink-text);
  height: calc(5 * 1.9em + var(--s-6));
  overflow: hidden;
}

.log-line {
  display: grid;
  grid-template-columns: 7ch minmax(0, 1.3fr) minmax(0, 1fr) 4ch 6ch;
  gap: var(--s-3);
  white-space: nowrap;
  animation: ent-line-in 360ms var(--ease-out);
}

.log-line > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-time,
.log-ms { color: var(--ink-muted); }
.log-ok { color: var(--tk-str); }
.log-retry { color: var(--tk-fn); }
.log-ev { color: var(--tk-num); }
.log-ms { text-align: right; }

@keyframes ent-line-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   Benchmark tables
   -------------------------------------------------------------------------- */

.bench + .bench {
  margin-top: var(--s-16);
}

.bench-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-bottom: var(--s-4);
}

.bench-title h3 {
  font-size: var(--t-21);
}

.bench-note {
  font-size: var(--t-13);
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: var(--t-14);
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  padding: 14px var(--s-4);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table thead th {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--paper);
}

.table tbody th {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.table td {
  color: var(--text-body);
}

/* The recommended column carries the accent from head to foot */
.table .is-pick {
  background: var(--accent-tint);
}

.table thead .is-pick {
  color: var(--accent-text);
}

.pick-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: 1px;
}

.meter {
  display: inline-flex;
  gap: 3px;
  margin-right: 10px;
  vertical-align: -1px;
}

.meter i {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
}

.m1 i:nth-child(-n+1),
.m2 i:nth-child(-n+2),
.m3 i:nth-child(-n+3),
.m4 i:nth-child(-n+4),
.m5 i:nth-child(-n+5) {
  background: var(--text-muted);
}

.is-pick .meter i:nth-child(-n+5) { background: rgba(201, 58, 20, 0.16); }
.is-pick .m1 i:nth-child(-n+1),
.is-pick .m2 i:nth-child(-n+2),
.is-pick .m3 i:nth-child(-n+3),
.is-pick .m4 i:nth-child(-n+4),
.is-pick .m5 i:nth-child(-n+5) {
  background: var(--accent);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r);
  font-size: var(--t-12);
  font-weight: 500;
  white-space: nowrap;
}

.chip--live {
  background: var(--success-tint);
  color: var(--success-text);
}

.chip--batch {
  background: var(--surface-2);
  color: var(--text-body);
}

.chip--warn {
  background: var(--warning-tint);
  color: #8A4700;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-13);
}

/* --------------------------------------------------------------------------
   Code
   -------------------------------------------------------------------------- */

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-16);
  align-items: center;
}

.check-list {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s-3);
  color: var(--text-body);
}

.check-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.check-list svg,
.check-list i {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.editor {
  background: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.editor-bar {
  gap: 0;
  padding: 0 var(--s-2);
  border-bottom-color: var(--ink-line);
  overflow-x: auto;
}

.dots {
  display: inline-flex;
  gap: 6px;
  padding: 0 var(--s-3) 0 var(--s-2);
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-line);
}

.editor-tab {
  padding: 12px var(--s-4);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.editor-tab[aria-selected='true'] {
  color: var(--ink-text);
  border-bottom-color: var(--tk-key);
}

.editor-tab:focus-visible {
  outline: 2px solid var(--tk-key);
  outline-offset: -2px;
}

.editor pre {
  margin: 0;
  padding: var(--s-4) 0 var(--s-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  line-height: 1.75;
  color: var(--ink-text);
  counter-reset: ln;
  min-height: 25em;
}

.editor code {
  display: block;
  min-width: max-content;
}

.editor .ln {
  display: block;
  padding-right: var(--s-6);
  counter-increment: ln;
}

.editor .ln::before {
  content: counter(ln);
  display: inline-block;
  width: 3.2em;
  padding-right: 1.2em;
  text-align: right;
  color: var(--ink-faint);
  user-select: none;
}

[role='tabpanel'].is-active .ln {
  animation: ent-line-in 420ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}

.tk-c { color: var(--ink-muted); }
.tk-k { color: var(--tk-key); }
.tk-s { color: var(--tk-str); }
.tk-f { color: var(--tk-fn); }
.tk-n { color: var(--tk-num); }

.editor-foot {
  display: flex;
  gap: var(--s-4);
  padding: 10px var(--s-4);
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--ink-muted);
}

.editor-foot .log-ok::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--tk-str);
  vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   Dashboard showcase
   -------------------------------------------------------------------------- */

.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-bar .url {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: var(--r);
  background: var(--paper);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser .dots i {
  background: var(--surface-2);
}

.show-panel[hidden] {
  display: none;
}

.show-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.show-thumb {
  display: grid;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.show-thumb strong {
  color: var(--text);
  font-size: var(--t-14);
  font-weight: 600;
}

.show-thumb span {
  color: var(--text-muted);
  font-size: var(--t-12);
  line-height: 1.4;
}

.show-thumb:active {
  transform: scale(0.98);
}

.show-thumb[aria-selected='true'] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.show-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .show-thumb:hover { border-color: var(--border-strong); }
  .show-thumb[aria-selected='true']:hover { border-color: var(--accent); }
}

/* Mock dashboard: built in markup so it stays sharp and can move */
.mock {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  background: var(--paper);
  font-size: var(--t-13);
}

.mock-side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.mock-side i,
.mock-side svg {
  width: 18px;
  height: 18px;
}

.mock-side .is-on {
  padding: 8px;
  border-radius: var(--r);
  background: var(--accent-tint);
  color: var(--accent);
  box-sizing: content-box;
}

.mock-main {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
}

.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
}

.mock-head h3 {
  font-size: var(--t-18);
}

.mock-head p {
  color: var(--text-muted);
  font-size: var(--t-12);
}

.mock-head .status {
  font-size: var(--t-12);
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.mock-card {
  min-width: 0;
  overflow-x: auto;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.mock-card h4 {
  margin-bottom: var(--s-3);
  font-size: var(--t-13);
  font-weight: 600;
}

.kpi-label {
  color: var(--text-muted);
  font-size: var(--t-12);
}

.kpi-value {
  display: block;
  margin: 4px 0 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--t-21);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.kpi-delta {
  font-size: var(--t-12);
  color: var(--success-text);
}

.kpi-delta.is-neutral {
  color: var(--text-muted);
}

.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--s-3);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1400ms var(--ease-out-alt);
}

.chart-area {
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 600ms;
}

.reveal.is-in .chart-line,
.no-js .chart-line { stroke-dashoffset: 0; }
.reveal.is-in .chart-area,
.no-js .chart-area { opacity: 1; }

.bars {
  display: grid;
  gap: var(--s-3);
  list-style: none;
}

.bars li {
  display: grid;
  gap: 6px;
}

.bars .bar-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-12);
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
}

.bars .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.bars .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out-alt);
}

.bars li:nth-child(2) .bar i { transition-delay: 80ms; }
.bars li:nth-child(3) .bar i { transition-delay: 160ms; }
.bars li:nth-child(4) .bar i { transition-delay: 240ms; }

.reveal.is-in .bars .bar i,
.no-js .bars .bar i { transform: none; }

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-12);
  font-variant-numeric: tabular-nums;
}

.mock-table th,
.mock-table td {
  padding: 9px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mock-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.mock-table td {
  color: var(--text-body);
}

.mock-table tr:last-child td {
  border-bottom: 0;
}

.mock-table .num {
  text-align: right;
}

.mock-note {
  justify-self: end;
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Services as a spec list
   -------------------------------------------------------------------------- */

.svc {
  list-style: none;
  border-top: 1px solid var(--border-strong);
}

.svc li {
  border-bottom: 1px solid var(--border);
}

.svc a {
  display: grid;
  grid-template-columns: 44px minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) var(--s-2);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}

.svc .svc-no {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--text-muted);
}

.svc h3 {
  font-size: var(--t-18);
}

.svc p {
  color: var(--text-body);
}

.svc .svc-go {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.svc .svc-go svg,
.svc .svc-go i {
  width: 16px;
  height: 16px;
}

.svc a:active .svc-go {
  transform: scale(0.94);
}

.svc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  .svc a:hover { background: var(--surface); }
  .svc a:hover .svc-go { border-color: var(--accent); color: var(--accent); transform: translateX(3px); }
}

/* Sample-system pieces */
.mock-btn {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--cta-from), var(--cta-to));
  color: var(--on-accent);
  font-size: var(--t-12);
  font-weight: 500;
  white-space: nowrap;
}

.mock-btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.kpi-delta.is-warn {
  color: #8A4700;
}

.mock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.steps {
  display: inline-flex;
  gap: 3px;
  margin-right: 8px;
  vertical-align: 1px;
}

.steps i {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
}

.s1 i:nth-child(-n+1),
.s2 i:nth-child(-n+2),
.s3 i:nth-child(-n+3),
.s4 i:nth-child(-n+4) {
  background: var(--accent);
}

.chain {
  list-style: none;
  display: grid;
  gap: 0;
}

.chain li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: var(--s-3);
  padding-bottom: var(--s-4);
}

.chain li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.chain li.is-done:not(:last-child)::before {
  background: var(--success);
}

.chain-dot {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}

.is-done .chain-dot {
  border-color: var(--success);
  background: var(--success);
}

.is-now .chain-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.chain strong {
  display: block;
  color: var(--text);
  font-size: var(--t-13);
  font-weight: 600;
}

.chain small {
  color: var(--text-muted);
  font-size: var(--t-12);
}

.col {
  fill: rgba(23, 19, 31, 0.16);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 800ms var(--ease-out-alt);
}

.col.is-hi {
  fill: var(--accent);
}

.reveal.is-in .col,
.no-js .col { transform: none; }

.target-line {
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.bars .bar i.is-low {
  background: var(--warning);
}

.heatmap {
  display: grid;
  grid-template-columns: 3ch repeat(5, minmax(0, 1fr));
  gap: 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.hm-day,
.hm-wk {
  color: var(--text-muted);
  text-align: center;
  align-self: center;
}

.hm {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 6px;
  color: var(--text);
}

.hm.h0 { background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, transparent 4px 8px); }
.hm.h1 { background: rgba(31, 127, 82, 0.12); }
.hm.h2 { background: rgba(31, 127, 82, 0.24); }
.hm.h3 { background: rgba(31, 127, 82, 0.42); }
.hm.h4 { background: var(--success); color: var(--on-accent); }

.mock del {
  color: #A3241A;
  background: var(--danger-tint);
  text-decoration: line-through;
  border-radius: 3px;
  padding: 0 3px;
}

.mock ins {
  color: var(--success-text);
  background: var(--success-tint);
  text-decoration: none;
  border-radius: 3px;
  padding: 0 3px;
}

.show-desc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-4) var(--s-12);
  align-items: start;
  margin-top: var(--s-6);
}

.show-desc p {
  color: var(--text-body);
  font-size: var(--t-18);
}

.show-desc strong {
  color: var(--text);
  font-weight: 600;
}

.show-desc ul {
  list-style: none;
  display: grid;
  gap: var(--s-2);
}

.show-desc li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--s-2);
  color: var(--text-body);
}

.show-desc li svg,
.show-desc li i {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--success);
}

/* --------------------------------------------------------------------------
   Responsive and motion
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .code-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
  .show-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .log-line { grid-template-columns: 7ch minmax(0, 1fr) 4ch; }
  .log-line .log-ev,
  .log-line .log-ms { display: none; }

  .mock { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .mock-main { padding: var(--s-4); }
  .mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-row { grid-template-columns: minmax(0, 1fr); }
  .mock-table .hide-sm { display: none; }
  .show-desc { grid-template-columns: minmax(0, 1fr); }
  .mock-head .mock-btn { margin-left: 0; }

  .show-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .svc a { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); }
  .svc .svc-no { display: none; }
  .svc p { grid-column: 1; grid-row: 2; }
  .svc .svc-go { grid-column: 2; grid-row: 1 / 3; }

  .editor pre { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status::before,
  .hub-led,
  .hub-ring,
  .log-line,
  [role='tabpanel'].is-active .ln { animation: none; }
  .hub-ring { opacity: 0; }
  .chart-line { transition: none; stroke-dashoffset: 0; }
  .chart-area { transition: none; opacity: 1; }
  .bars .bar i { transition: none; transform: none; }
  .col { transition: none; transform: none; }
}
