/* ==========================================================================
   Style B — Modern Ops
   Sans UI text + tabular numerals, soft elevated cards, calmer status
   colours, pill controls. Same markup as Style A.
   ========================================================================== */

:root {
    color-scheme: dark;

    --font-ui: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-num: var(--font-ui);
    --fs: 15px;
    --fs-section: .95em;

    --bg: #0b0d10;
    --surface: #14171c;
    --surface-2: #1c2027;
    --sidebar-bg: #0f1216;
    --topbar-bg: rgba(11, 13, 16, .78);
    --tabbar-bg: rgba(15, 18, 22, .9);
    --border: rgba(255, 255, 255, .07);
    --border-strong: rgba(255, 255, 255, .14);

    --text: #eef1f5;
    --text-2: #a4acb9;
    --text-3: #6d7582;
    --section-color: var(--text);

    --primary: #5aa9ff;
    --on-primary: #06121f;
    --primary-soft: rgba(90, 169, 255, .14);
    --ok: #3ecf8e;
    --ok-soft: rgba(62, 207, 142, .12);
    --warn: #f5a524;
    --bad: #f0506e;
    --bad-soft: rgba(240, 80, 110, .12);
    --cold: #7cc4fa;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px -12px rgba(0, 0, 0, .6);
    --spark-w: 2px;

    --gap-lg: 22px;
    --topbar-h: 60px;
    --tabbar-h: 64px;
}

.topbar, .toolbar, .segmented, .tabbar {
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
}
.topbar h1 { font-size: 1.2em; font-weight: 700; letter-spacing: -.01em; }

.hero-h { font-size: 1.75em; font-weight: 700; letter-spacing: -.02em; }
.kpi-val, .r-val, .fc-temp, .hero-stats .num, .ov-val { letter-spacing: -.02em; }
.r-val { font-weight: 700; }

/* tab bar: active pill behind icon */
.tab .ic { padding: 3px 14px; width: 50px; height: 28px; border-radius: 999px; box-sizing: border-box; }
.tab.is-active .ic { background: var(--primary-soft); }
.tab { font-weight: 600; }

.alert { border-left-width: 1px; }
.alert.tone-bad  { background: linear-gradient(90deg, var(--bad-soft), var(--surface) 55%); }
.alert.tone-warn { background: linear-gradient(90deg, rgba(245, 165, 36, .10), var(--surface) 55%); }
.alert > .ic { width: 20px; height: 20px; }

.farm-card:hover, .action:hover { transform: translateY(-1px); }
.farm-card { gap: 14px; padding: 16px; }
.fc-climate .spark { height: 26px; }

.chip { padding: 7px 14px; }
.seg { border-radius: 999px; }
.segmented { gap: 6px; }

.btn { border-radius: 10px; }
.btn-primary { box-shadow: 0 6px 18px -8px var(--primary); }

.st-tile { border-radius: 12px; }
.st-state { border-radius: 999px; padding: 1px 8px; }

.sensor { border-radius: 10px; }
.fan { border-radius: 8px; }

.cmp thead th { background: var(--surface-2); }
.cmp td.is-best, .cmp td.is-worst { border-radius: 0; }
.table-wrap { box-shadow: var(--shadow); }

.brand-mark { background: linear-gradient(135deg, var(--primary), #8b7bff) !important; color: #fff !important; }
.side-link { border-radius: 10px; }
