/* ══════════════════════════════════════════
   BIOHYDROGEN MONITOR — MAN 2 JOMBANG
   Main CSS | Barlow | Dark/Light | Responsive
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --font: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;

  /* Brand */
  --green-primary: #2d6a2d;
  --green-light:   #4caf50;
  --green-dim:     #1a3d1a;
  --green-glow:    rgba(76,175,80,0.3);
  --amber:         #f59e0b;
  --red:           #ef4444;
  --blue:          #3b82f6;
  --cyan:          #06b6d4;

  /* Transition */
  --tr: 0.22s ease;
}

/* ── DARK THEME (default) ── */
[data-theme="dark"] {
  --bg:           #0a0f0a;
  --bg-2:         #0f1a0f;
  --bg-3:         #141f14;
  --surface:      #1a271a;
  --surface-2:    #1f2e1f;
  --border:       #2a3d2a;
  --border-light: #344d34;
  --text:         #e2ece2;
  --text-2:       #a8c4a8;
  --text-3:       #6a8a6a;
  --text-inv:     #0a0f0a;
  --nav-bg:       rgba(10,15,10,0.92);
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --card-glow:    0 0 0 1px rgba(45,106,45,0.3);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:           #f4f7f4;
  --bg-2:         #edf2ed;
  --bg-3:         #e6ede6;
  --surface:      #ffffff;
  --surface-2:    #f0f5f0;
  --border:       #d0ddd0;
  --border-light: #c4d4c4;
  --text:         #1a2a1a;
  --text-2:       #3a5a3a;
  --text-3:       #6a8a6a;
  --text-inv:     #ffffff;
  --nav-bg:       rgba(244,247,244,0.95);
  --shadow:       0 4px 24px rgba(0,0,0,0.1);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --card-glow:    0 0 0 1px rgba(45,106,45,0.15);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: background var(--tr), color var(--tr);
  min-height: 100vh;
}
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
button { font-family:var(--font); cursor:pointer; border:none; background:none; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), border-color var(--tr);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--green-primary);
  display: flex; align-items:center; justify-content:center;
  background: var(--green-dim);
  flex-shrink:0;
}
.nav-logo-img img { width:100%; height:100%; object-fit:cover; }
.logo-fallback {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  color: var(--green-light);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-main {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 1px;
}
.nav-logo-sub {
  font-size: 10px;
  color: var(--green-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--tr);
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.nav-link.active {
  background: var(--green-dim);
  color: var(--green-light);
  border-color: var(--green-primary);
  font-weight: 600;
}
.nav-icon { font-size: 16px; }

/* Nav controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

/* Live badge */
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.3);
  padding: 4px 10px;
  border-radius: 20px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100%{ opacity:1; box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50%    { opacity:0.6; box-shadow: 0 0 0 4px rgba(76,175,80,0); }
}
.live-text {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-light);
}

/* Theme button */
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 18px;
  display: flex; align-items:center; justify-content:center;
  transition: all var(--tr);
}
.theme-btn:hover { border-color: var(--green-primary); transform: scale(1.05); }
[data-theme="dark"]  .theme-icon-light { display:none; }
[data-theme="dark"]  .theme-icon-dark  { display:block; }
[data-theme="light"] .theme-icon-dark  { display:none; }
[data-theme="light"] .theme-icon-light { display:block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--tr);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}
.mobile-menu.open { display: flex; }
.mob-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: all var(--tr);
}
.mob-link:hover, .mob-link.active {
  background: var(--green-dim);
  color: var(--green-light);
}

/* ══════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════ */
.main-content {
  padding-top: 64px;
  min-height: 100vh;
}
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

/* ── Page header ── */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title {
  font-family: var(--font-cond);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.page-title span { color: var(--green-light); }
.page-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: background var(--tr), border-color var(--tr);
}
.card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
}
.card-body { padding: 20px; }

/* ── Status Cards ── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--tr);
}
.status-card.on  { border-color: rgba(76,175,80,0.5);  background: rgba(76,175,80,0.06); }
.status-card.off { border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.04); }
.status-indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-card.on  .status-indicator { background: var(--green-light); box-shadow: 0 0 8px rgba(76,175,80,0.6); animation: livePulse 1.5s infinite; }
.status-card.off .status-indicator { background: var(--red); }
.status-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform:uppercase; letter-spacing:0.5px; }
.status-val { font-size: 11px; font-weight:700; margin-top:2px; }
.status-card.on  .status-val { color: var(--green-light); }
.status-card.off .status-val { color: var(--red); }

/* ── Sensor Metric Cards ── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content:'';
  position: absolute;
  top:0; left:0; right:0;
  height: 2px;
  background: var(--metric-color, var(--green-primary));
  border-radius: 8px 8px 0 0;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}
.metric-icon { font-size: 20px; margin-bottom: 8px; }
.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.metric-value {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.metric-unit {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   FLOW PAGE — REACTOR DIAGRAM
   ══════════════════════════════════════════ */
.flow-page { padding: 28px 20px 40px; max-width:1400px; margin:0 auto; }

.flow-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 900px;
  padding: 20px 0;
  flex-wrap: nowrap;
}

/* SVG tank filter */
.tank-ss { filter: drop-shadow(0 2px 8px rgba(45,106,45,0.4)); }
.tank-ss:hover { filter: drop-shadow(0 4px 16px rgba(76,175,80,0.6)); }

/* Pipe connector */
.pipe-h {
  width: 50px; height: 30px;
  display: flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.pipe-v {
  width: 20px;
  display: flex; flex-direction:column; align-items:center;
  flex-shrink:0;
}
/* Animated flow */
.flow-anim {
  stroke-dasharray: 8 4;
  animation: flowMove 1.2s linear infinite;
}
@keyframes flowMove { to { stroke-dashoffset: -24; } }
.flow-anim-up {
  stroke-dasharray: 8 4;
  animation: flowUp 1.2s linear infinite;
}
@keyframes flowUp { to { stroke-dashoffset: -24; } }

/* Node label */
.node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink:0;
}
.node-label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-2);
}
.node-sub {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  max-width: 110px;
  line-height: 1.3;
}

/* Sensor badge on diagram */
.sensor-tag {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  pointer-events:none;
}

/* ══════════════════════════════════════════
   DATA PAGE
   ══════════════════════════════════════════ */

/* Filter bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink:0;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-input {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--tr);
}
.filter-input:focus { border-color: var(--green-primary); }
.filter-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}
[data-theme="dark"] .filter-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}
.filter-sep { color: var(--text-3); font-size: 13px; }

.btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); transform:translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--green-primary); color: var(--green-light); }
.btn-excel { color: #16a34a; border-color: #16a34a; }
.btn-excel:hover { background: rgba(22,163,74,0.1); }
.btn-pdf   { color: #dc2626; border-color: #dc2626; }
.btn-pdf:hover   { background: rgba(220,38,38,0.1); }

.btn-group { display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; }

/* Summary cards row */
.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.sum-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.sum-card .slabel { font-size:10px; color:var(--text-3); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.sum-card .sval   { font-family:var(--font-cond); font-size:20px; font-weight:700; color:var(--text); margin-top:2px; }
.sum-card .sunit  { font-size:10px; color:var(--text-3); }

/* Data table */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top:0; z-index:1;
}
.data-table tbody td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background var(--tr);
  white-space: nowrap;
}
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.badge-on  { background:rgba(76,175,80,0.15);  color:var(--green-light); border:1px solid rgba(76,175,80,0.3);  padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; }
.badge-off { background:rgba(239,68,68,0.1);   color:var(--red);         border:1px solid rgba(239,68,68,0.3);  padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; }

/* Charts grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.chart-card .chart-title {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-card canvas { max-height: 220px; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items:center;
  justify-content:space-between;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-version {
  font-family: var(--font-cond);
  letter-spacing:1px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .live-badge .live-text { display:none; }

  .status-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: repeat(2, 1fr); }
  .filter-bar  { gap: 8px; }
  .btn-group   { margin-left:0; }
}
@media (max-width: 480px) {
  .status-grid  { grid-template-columns: 1fr; }
  .metric-grid  { grid-template-columns: 1fr 1fr; }
  .page-header  { flex-direction: column; align-items:flex-start; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── Fade in animation ── */
.fade-in { opacity:0; animation: fadeInUp 0.5s ease forwards; }
.fade-in:nth-child(1){animation-delay:.05s}
.fade-in:nth-child(2){animation-delay:.10s}
.fade-in:nth-child(3){animation-delay:.15s}
.fade-in:nth-child(4){animation-delay:.20s}
.fade-in:nth-child(5){animation-delay:.25s}
.fade-in:nth-child(6){animation-delay:.30s}
.fade-in:nth-child(7){animation-delay:.35s}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ══════════════════════════════════════════
   v1.2 ADDITIONS
   ══════════════════════════════════════════ */

/* ── Sort header ── */
.sort-th {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sort-th:hover { color: var(--green-light); }
.sort-icon { font-size: 11px; opacity: 0.4; }
.sort-icon.active { opacity: 1; color: var(--green-light); }

/* ── Pagination ── */
.pagination-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pg-left  { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.pg-right { display:flex; align-items:center; gap:8px; }

.pg-btn {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-btn:hover:not([disabled]) {
  border-color: var(--green-primary);
  color: var(--green-light);
  background: var(--green-dim);
}
.pg-btn.pg-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45,106,45,0.35);
  cursor: default;
}
.pg-btn[disabled] { opacity: 0.28; cursor: not-allowed; pointer-events:none; }
.pg-ellipsis {
  color: var(--text-3);
  font-size: 16px;
  padding: 0 2px;
  user-select: none;
  line-height: 34px;
}
/* Jump */
.pg-jump {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-cond);
  letter-spacing: 0.5px;
}
.pg-jump input[type=number] {
  width: 48px;
  height: 34px;
  text-align: center;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--tr);
  -moz-appearance: textfield;
}
.pg-jump input[type=number]::-webkit-inner-spin-button,
.pg-jump input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.pg-jump input[type=number]:focus { border-color: var(--green-primary); }
.pg-jump-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-cond);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex; align-items:center;
}
.pg-jump-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-light);
  background: var(--green-dim);
}
.pg-info {
  font-family: var(--font-cond);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 0 4px;
}

/* ── Light theme flow stage background ── */
[data-theme="light"] .flow-stage { background: #f4f8f4; }
