:root{
  --bg: #0a1310;
  --bg-panel: #0f1e19;
  --bg-panel-2: #132621;
  --ink: #ece7db;
  --ink-dim: #93a49c;
  --ink-faint: #5e7069;
  --amber: #e2a33d;
  --amber-dim: #8a6a30;
  --teal: #59a89f;
  --danger: #e2604f;
  --line: rgba(236,231,219,0.10);
  --line-strong: rgba(236,231,219,0.18);
}

/* ============================================================
SELF-CONTAINED COMPONENT — everything under .ost-* is scoped
and can be copied as-is into any page. It relies only on the
three Google Fonts above (already used on the Oil Screen site).
============================================================ */

.ost{
  --bg-panel: #0f1e19;
  --bg-panel-2: #132621;
  --ink: #ece7db;
  --ink-dim: #93a49c;
  --ink-faint: #5e7069;
  --amber: #e2a33d;
  --amber-soft: rgba(226,163,61,0.14);
  --teal: #59a89f;
  --line: rgba(236,231,219,0.10);
  --line-strong: rgba(236,231,219,0.18);

  width:100%;
  max-width:620px;
  background:linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border:1px solid var(--line-strong);
  border-radius:10px;
  padding:28px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,0.6);
  color:var(--ink);
}

.ost-top{
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:18px; margin-bottom:26px;
  border-bottom:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace; font-size:12px;
  letter-spacing:0.08em; color:var(--ink-dim);
}
.ost-live{display:flex; align-items:center; gap:8px; color:var(--teal);}
.ost-dot{
  width:7px; height:7px; border-radius:50%; background:var(--teal);
  animation:ost-pulse 1.8s ease-in-out infinite;
}
@keyframes ost-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(89,168,159,0.5);}
  50%{box-shadow:0 0 0 6px rgba(89,168,159,0);}
}

/* sensors feeding the agent */
.ost-sensors{
  display:flex; justify-content:center; gap:22px; margin-bottom:6px;
}
.ost-sensor{color:var(--ink-faint);}
.ost-sensors-label{
  text-align:center; font-family:'IBM Plex Mono', monospace;
  font-size:11px; color:var(--ink-faint); letter-spacing:0.05em;
  margin-bottom:18px;
}
.ost-feed-line{
  width:1px; height:16px; background:var(--line-strong);
  margin:0 auto 4px;
}

/* main row: agent -> pipe -> service */
.ost-row{
  display:flex; align-items:center; gap:16px;
}
.ost-node{flex:0 0 auto; width:120px; text-align:center;}
.ost-icon-box{
  width:80px; height:80px; border-radius:12px;
  background:rgba(236,231,219,0.02);
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 10px;
  position:relative;
}
.ost-icon-box.ost-service{
  background:var(--amber-soft);
  border-color:rgba(226,163,61,0.4);
}
.ost-node-title{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:700; font-size:17px; text-transform:uppercase;
  letter-spacing:0.3px;
}
.ost-node-sub{font-size:11.5px; color:var(--ink-dim); margin-top:2px;}

.ost-pipe{
  flex:1; position:relative; height:2px;
  background-image:repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
  min-width:80px;
}
.ost-packet{
  position:absolute; top:50%; left:0;
  width:20px; height:14px; margin-top:-7px;
  background:var(--amber);
  border-radius:3px;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:8px; font-weight:600;
  color:#0a1310;
  opacity:0;
}

/* receive ping on the service icon */
.ost-ping{
  position:absolute; top:-4px; right:-4px;
  width:10px; height:10px; border-radius:50%;
  background:var(--teal);
  opacity:0;
}

.ost-status{
  text-align:center; margin-top:22px;
  font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  color:var(--teal);
}
.ost-status .ost-dot{margin-right:6px; display:inline-block; vertical-align:1px;}

@media (max-width:520px){
  .ost-row{flex-direction:column; gap:20px;}
  .ost-pipe{width:2px; height:60px; min-width:0;
    background-image:repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);}
  .ost-packet{left:50%; top:0; margin-top:0; margin-left:-7px; width:14px; height:20px;}
}

@media (prefers-reduced-motion: reduce){
  .ost-dot, .ost-packet, .ost-ping{animation:none !important;}
}

/* packet travel animation, three staggered copies */
@keyframes ost-travel{
  0%   { left:0%;   opacity:0; }
  8%   { opacity:1; }
  92%  { opacity:1; }
  100% { left:calc(100% - 20px); opacity:0; }
}
@media (max-width:520px){
  @keyframes ost-travel{
    0%   { top:0%;    opacity:0; }
    8%   { opacity:1; }
    92%  { opacity:1; }
    100% { top:calc(100% - 20px); opacity:0; }
  }
}
.ost-packet{ animation:ost-travel 2.2s linear infinite; }
.ost-p1{ animation-delay:0s; }
.ost-p2{ animation-delay:0.75s; }
.ost-p3{ animation-delay:1.5s; }

@keyframes ost-ping{
  0%, 86%  { opacity:0; transform:scale(0.6); }
  92%      { opacity:1; transform:scale(1.3); }
  100%     { opacity:0; transform:scale(0.6); }
}
.ost-ping{ animation:ost-ping 2.2s linear infinite; }

/* ---------- DASHBOARD PANEL ---------- */
.dash{
  margin-top:64px;
  background:linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border:1px solid var(--line-strong);
  border-radius:10px;
  padding:28px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,0.6);
}
.dash-topbar{
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:20px; margin-bottom:24px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap; gap:12px;
}
.dash-title{
  font-family:'IBM Plex Mono', monospace; font-size:13px;
  color:var(--ink-dim); letter-spacing:0.06em;
}
.dash-title b{color:var(--ink); font-weight:600;}
.dash-live{
  display:flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--teal);
}
.pulse{
  width:7px; height:7px; border-radius:50%; background:var(--teal);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(89,168,159,0.5);}
  50%{box-shadow:0 0 0 6px rgba(89,168,159,0);}
}

.dash-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:20px;
}
@media (max-width:900px){ .dash-grid{grid-template-columns:repeat(3, 1fr);} }
@media (max-width:560px){ .dash-grid{grid-template-columns:repeat(2, 1fr);} }

.tank-card{
  background:rgba(236,231,219,0.02);
  border:1px solid var(--line);
  border-radius:6px;
  padding:14px 10px 16px;
  text-align:center;
  position:relative;
}
.tank-card.error{border-color:rgba(226,96,79,0.5);}
.tank-id{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-faint);
  margin-bottom:10px; letter-spacing:0.05em;
}
.tank-svg{width:100%; height:110px; display:block; margin:0 auto;}
.tank-pct{
  font-family:'Big Shoulders Display', sans-serif; font-weight:700;
  font-size:26px; margin-top:8px; color:var(--ink);
}
.tank-label{font-size:10.5px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:0.06em;}
.err-badge{
  position:absolute; top:10px; right:10px;
  width:8px; height:8px; border-radius:50%;
  background:var(--danger);
  animation:blink 1.1s steps(2, start) infinite;
  box-shadow:0 0 8px var(--danger);
}
@keyframes blink{ 50%{opacity:0.15;} }

.wave{ animation:drift 4.5s linear infinite; }
@keyframes drift{ from{transform:translateX(0);} to{transform:translateX(-60px);} }

.dash-footer{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px;
  margin-top:22px; padding-top:18px; border-top:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-faint);
}

@media (prefers-reduced-motion: reduce){
  .wave, .pulse, .err-badge{animation:none !important;}
}

.report-card{
  background:var(--bg-panel);
  border:1px solid var(--line-strong);
  border-radius:8px;
  overflow:hidden;
}
.report-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; border-bottom:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-faint);
}
.report-bar .dots{display:flex; gap:5px;}
.report-bar .dots span{width:7px; height:7px; border-radius:50%; background:var(--line-strong);}
table.report-table{width:100%; border-collapse:collapse; font-family:'IBM Plex Mono', monospace; font-size:12.5px;}
table.report-table th{
  text-align:left; padding:10px 16px; color:var(--ink-faint); font-weight:500;
  border-bottom:1px solid var(--line); text-transform:uppercase; font-size:10.5px; letter-spacing:0.05em;
}
table.report-table td{padding:10px 16px; border-bottom:1px solid var(--line); color:var(--ink-dim);}
table.report-table tr:last-child td{border-bottom:none;}
.status-ok{color:var(--teal);}
.status-warn{color:var(--amber);}
.status-err{color:var(--danger);}

.bi {
  fill: currentColor;
}