/* NEO App redesign — Biznet Gio tokens (from the design system's tokens.json) + console shell. */
:root {
  --background:#ffffff; --surface:#fafafa; --hero:#f2f8f4;
  --foreground:#262626; --foreground-secondary:#404040; --foreground-tertiary:#525252; --muted-foreground:#6b6b6b;
  --border:rgba(0,0,0,.08); --input:#858585; --border-subtle:rgba(0,0,0,.10);
  --primary:#0a7e39; --primary-hover:#086b30; --primary-foreground:#ffffff; --brand:#0b8a3e;
  --brand-tint:#e6f4ec; --brand-tint-strong:#cfe8d8; --on-brand:#f0f9f4; --ring:#086b30;
  --secondary:rgba(0,0,0,.04); --accent:rgba(0,0,0,.04);
  --destructive:#b42318; --destructive-tint:#fef3f2; --warning:#92400e; --warning-tint:#fffbeb; --warning-border:#fde68a;
  --info-tint:#f5f5f5; --code:#fafafa;
  --font-sans:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px; --space-14:56px; --space-18:72px;
  --radius-xs:4px; --radius-sm:6px; --radius-md:8px; --radius-lg:10px; --radius-xl:14px; --radius-full:999px;
  --shadow-xs:0 1px 2px rgba(0,0,0,.06); --shadow-button:0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.12);
  --shadow-popover:0 12px 32px rgba(17,24,39,.12); --shadow-dialog:0 24px 64px rgba(17,24,39,.30);
  --container-max:1240px; --header-height:60px; --panel-width:440px; --dialog-width:640px; --measure:720px; --tap-target:44px;
}
body { margin:0; background:var(--surface); font-family:var(--font-sans); color:var(--foreground); }

/* Shell */
.app { display:flex; flex-wrap:wrap; min-height:100vh; background:var(--surface); font-family:var(--font-sans); color:var(--foreground); font-size:14px; line-height:20px; }
.app-main { flex:999 1 640px; min-width:0; display:flex; flex-direction:column; }
.topbar { height:56px; display:flex; align-items:center; gap:12px; padding:0 24px; border-bottom:1px solid var(--border); background:var(--background); flex-wrap:wrap; }
.crumbs { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--muted-foreground); min-width:0; }
.crumbs b { color:var(--foreground); font-weight:600; }
.crumbs .sep { color:var(--border-subtle); }
.grow { flex:1 1 auto; }
.page { padding:24px; display:flex; flex-direction:column; gap:20px; max-width:1240px; width:100%; box-sizing:border-box; }
.page-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.page-head h1 { margin:0; font-size:24px; line-height:32px; font-weight:700; letter-spacing:-.02em; }
h2.sec { margin:0; font-size:17px; line-height:24px; font-weight:600; }

/* Surfaces */
.panel { background:var(--background); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-xs); }
.panel-h { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.panel-b { padding:20px; }
.eyebrow { font-size:12px; line-height:16px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-foreground); }
.muted { color:var(--muted-foreground); }
.mono { font-family:var(--font-mono); font-size:13px; }
.num { font-variant-numeric:tabular-nums; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:20px; }
.grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.grid4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.stat { padding:16px 20px; display:flex; flex-direction:column; gap:4px; }
.stat .v { font-size:22px; line-height:30px; font-weight:700; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.row { display:flex; align-items:center; gap:12px; }
.wrap { flex-wrap:wrap; }
.scroll-x { overflow-x:auto; }

/* Tabs (page nav) */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); overflow-x:auto; padding:0 24px; background:var(--background); }
.tabs a { padding:12px 10px; font-size:14px; font-weight:500; color:var(--foreground-secondary); text-decoration:none; border-bottom:2px solid transparent; white-space:nowrap; display:inline-flex; gap:6px; align-items:center; }
.tabs a.on { color:var(--foreground); font-weight:600; border-bottom-color:var(--primary); }
.tabs .count { font-size:12px; color:var(--muted-foreground); background:var(--secondary); border-radius:var(--radius-full); padding:0 6px; }

/* Status dot */
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex:none; }
.dot.ok { background:var(--brand); box-shadow:0 0 0 3px var(--brand-tint); }
.dot.warn { background:#d97706; box-shadow:0 0 0 3px var(--warning-tint); }
.dot.err { background:var(--destructive); box-shadow:0 0 0 3px var(--destructive-tint); }
.dot.idle { background:#a3a3a3; }

/* Tables */
table.t { width:100%; border-collapse:collapse; font-size:14px; }
table.t th { text-align:left; font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted-foreground); padding:10px 20px; background:var(--surface); border-bottom:1px solid var(--border); white-space:nowrap; }
table.t td { padding:12px 20px; border-bottom:1px solid var(--border); vertical-align:middle; }
table.t tr:last-child td { border-bottom:0; }

/* Chips / pills */
.chip { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border:1px solid var(--border-subtle); border-radius:var(--radius-full); font-size:13px; color:var(--foreground-secondary); background:var(--background); white-space:nowrap; }
.chip.on { background:var(--brand-tint); border-color:var(--brand-tint-strong); color:var(--primary-hover); font-weight:600; }
.pill { display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; border-radius:var(--radius-sm); font-size:12px; font-weight:500; background:var(--secondary); color:var(--foreground-secondary); white-space:nowrap; }
.pill.ok { background:var(--brand-tint); color:var(--primary-hover); }
.pill.warn { background:var(--warning-tint); color:var(--warning); }
.pill.err { background:var(--destructive-tint); color:var(--destructive); }

/* Inputs (markup look for static mockups) */
.inp { height:36px; border:1px solid var(--input); border-radius:var(--radius-lg); padding:0 12px; font:400 14px/20px var(--font-sans); color:var(--foreground); background:var(--background); box-sizing:border-box; }
.seg { display:inline-flex; background:var(--secondary); border-radius:var(--radius-md); padding:2px; gap:2px; }
.seg span { padding:4px 10px; border-radius:6px; font-size:13px; font-weight:500; color:var(--foreground-secondary); }
.seg span.on { background:var(--background); color:var(--foreground); box-shadow:var(--shadow-xs); font-weight:600; }

/* Bars and sparklines */
.bar { height:6px; background:var(--secondary); border-radius:var(--radius-full); overflow:hidden; }
.bar i { display:block; height:100%; background:var(--brand); border-radius:var(--radius-full); }
.spark { width:100%; height:40px; display:block; }

/* Code / logs */
.code { background:#111814; color:#d9e6dd; font-family:var(--font-mono); font-size:12.5px; line-height:20px; border-radius:var(--radius-lg); }
.lvl { display:inline-block; width:44px; font-weight:600; }

/* Topology canvas */
.canvas { position:relative; height:440px; background-color:var(--background); background-image:radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size:20px 20px; border-radius:var(--radius-lg); border:1px solid var(--border); overflow:hidden; }
.node { position:absolute; width:248px; background:var(--background); border:1px solid var(--border-subtle); border-radius:var(--radius-lg); box-shadow:var(--shadow-popover); padding:14px 16px; display:flex; flex-direction:column; gap:8px; box-sizing:border-box; }
.node.sel { border-color:var(--primary); box-shadow:0 0 0 3px var(--brand-tint-strong), var(--shadow-popover); }
.ntile { width:32px; height:32px; border-radius:8px; background:var(--brand-tint); color:var(--primary-hover); display:flex; align-items:center; justify-content:center; flex:none; }
