/* Tiny tent live panel + charts, styled with Resin Manual's own tokens (blue editorial theme).
   The site is light-only, so there is no dark variant here. Fallbacks apply outside the site. */
#tt-live, #tt-charts {
  --tt-surface: var(--paper-up, #ffffff); --tt-ink: var(--ink, #191f29); --tt-ink-2: var(--ink-soft, #57606a);
  --tt-grid: var(--hairline, #d5d9db); --tt-border: var(--hairline, #d5d9db); --tt-strong: var(--hairline-strong, #aeb6c1);
  --tt-series: var(--gold, #123ebc); --tt-band: rgba(18, 62, 188, .08);
  --tt-good: #0ca30c; --tt-warn: #c98500;
  --tt-sans: var(--sans, "Satoshi", "Avenir Next", system-ui, sans-serif);
  --tt-mono: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--tt-ink); font-family: var(--tt-sans);
}
#tt-live { background: var(--tt-surface); border: 1px solid var(--tt-border); padding: 1rem 1.1rem; margin: 2rem 0; }
.tt-live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-bottom: .9rem; }
.tt-live-head strong { font-family: var(--tt-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--tt-series); }
.tt-dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--tt-good); box-shadow: 0 0 0 3px rgba(12, 163, 12, .16); margin-right: -.5rem; }
.tt-dot.is-stale { background: var(--tt-ink-2); box-shadow: none; }
.tt-muted { color: var(--tt-ink-2); font: .78rem/1.5 var(--tt-sans); }
.tt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); border-top: 1px solid var(--tt-border); }
.tt-tile { padding: .8rem .9rem .7rem 0; }
.tt-tile + .tt-tile { border-left: 1px solid var(--tt-border); padding-left: .9rem; }
.tt-tile.is-stale { opacity: .55; }
.tt-tile-label { font-family: var(--tt-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-ink-2); }
.tt-tile-value { font-family: var(--display, Georgia, serif); font-size: 2rem; line-height: 1.15; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.tt-unit { font-family: var(--tt-sans); font-size: .85rem; color: var(--tt-ink-2); }
.tt-status { font-size: .74rem; color: var(--tt-ink-2); }
.tt-icon { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: 9px; font-weight: 700; color: #fff; vertical-align: -2px; }
.tt-status.is-good .tt-icon { background: var(--tt-good); }
.tt-status.is-warn .tt-icon { background: var(--tt-warn); }
@media (max-width: 560px) {
  .tt-tiles { grid-template-columns: 1fr; }
  .tt-tile { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: .75rem; padding: .6rem 0; }
  .tt-tile + .tt-tile { border-left: 0; padding-left: 0; border-top: 1px solid var(--tt-border); }
  .tt-tile-value { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; text-align: right; }
  .tt-status { grid-column: 1; }
  .tt-axis { font-size: 15px; }
}
.tt-chart { margin: 1.5rem 0; background: var(--tt-surface); border: 1px solid var(--tt-border); padding: .8rem 1rem .4rem; }
.tt-chart figcaption { font-size: .8rem; margin-bottom: .3rem; }
.tt-chart figcaption strong { font-family: var(--tt-mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-series); }
.tt-plot { position: relative; }
.tt-plot svg { width: 100%; height: auto; display: block; margin: 0; }
.tt-grid { stroke: var(--tt-grid); stroke-width: 1; }
.tt-axis { fill: var(--tt-ink-2); font-family: var(--tt-mono); font-size: 10px; }
.tt-band { fill: var(--tt-band); }
.tt-flip { stroke: var(--tt-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.tt-line { fill: none; stroke: var(--tt-series); stroke-width: 2; stroke-linejoin: round; }
.tt-cross { stroke: var(--tt-strong); stroke-width: 1; }
.tt-hover-dot { fill: var(--tt-series); stroke: var(--tt-surface); stroke-width: 2; }
.tt-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--tt-ink); color: var(--tt-surface); font: .72rem/1.4 var(--tt-sans); padding: 3px 7px; white-space: nowrap; pointer-events: none; }
.tt-note { margin: .4rem 0; }
.tt-table summary { cursor: pointer; font: .8rem var(--tt-sans); color: var(--tt-ink-2); }
.tt-table table { border-collapse: collapse; font: .78rem/1.5 var(--tt-sans); font-variant-numeric: tabular-nums; margin-top: .5rem; }
.tt-table th, .tt-table td { padding: .2rem 1rem .2rem 0; text-align: right; border-bottom: 1px solid var(--tt-border); }
.tt-table th:first-child, .tt-table td:first-child { text-align: left; }
