/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* =============================================================================
   Infra Manager — design system
   Plain CSS (no framework). A calm, guided "infrastructure cockpit": plain
   English first, architecture detail behind Advanced.
   ========================================================================== */

:root {
  --bg: #0d1117;
  --bg-raised: #161b22;
  --bg-inset: #0b0f14;
  --panel: #161b22;
  --panel-2: #1c232c;
  --border: #2d333b;
  --border-strong: #444c56;
  --text: #e6edf3;
  --text-dim: #9da7b1;
  --text-faint: #6e7681;

  --accent: #3b82f6;
  --accent-dim: #1d4ed8;

  /* status palette — mapped to plain-English labels */
  --good: #3fb950; /* Healthy / Good / Safe */
  --good-bg: #12261a;
  --warn: #d29922; /* Warning / Needs setup */
  --warn-bg: #2b2410;
  --bad: #f85149; /* Broken / Blocked / Dangerous */
  --bad-bg: #2d1416;
  --info: #58a6ff; /* Info / Unknown */
  --info-bg: #11233f;
  --muted: #6e7681; /* Not configured / Unknown */
  --muted-bg: #1a2027;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: "NotoSans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Light theme — applied when <html data-theme="light">. Default (no attribute) is dark. */
[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-raised: #ffffff;
  --bg-inset: #eef1f4;
  --panel: #ffffff;
  --panel-2: #f0f3f6;
  --border: #d0d7de;
  --border-strong: #afb8c1;
  --text: #1f2328;
  --text-dim: #57606a;
  --text-faint: #818b98;

  --accent: #0969da;
  --accent-dim: #0860ca;

  --good: #1a7f37;
  --good-bg: #dafbe1;
  --warn: #9a6700;
  --warn-bg: #fff8c5;
  --bad: #cf222e;
  --bad-bg: #ffebe9;
  --info: #0969da;
  --info-bg: #ddf4ff;
  --muted: #6e7681;
  --muted-bg: #eaeef2;

  --shadow: 0 1px 0 rgba(31, 35, 40, 0.04), 0 8px 24px rgba(140, 149, 159, 0.2);
}

/* Smooth the switch (not on first paint — only color-ish props). */
body,
.sidebar,
.card,
.callout,
.btn,
.table td,
.pill,
input,
select,
textarea {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 0.8em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

/* ---- Layout shell --------------------------------------------------------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-inset);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px;
  position: -webkit-sticky;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; font-weight: 700; font-size: 15px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.nav-section { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 8px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 13px; }
.nav-link:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--panel-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav-link .badge { margin-left: auto; }

.main { padding: 24px 32px 64px; max-width: 1280px; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.topbar .crumbs { color: var(--text-faint); font-size: 12px; }
.topbar .spacer { flex: 1 1; }
.page-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.page-title .sub { color: var(--text-dim); font-size: 13px; font-weight: 400; }

/* ---- Cards & panels ------------------------------------------------------- */
.grid { display: grid; grid-gap: 16px; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.pad-lg { padding: 22px; }
.card h2 { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head .spacer { flex: 1 1; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-size: 30px; font-weight: 700; line-height: 1; }
.stat .label { color: var(--text-dim); font-size: 12px; }
.stat.good .n { color: var(--good); }
.stat.warn .n { color: var(--warn); }
.stat.bad .n { color: var(--bad); }

/* ---- Status pills --------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--good); background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.pill.warn { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.pill.bad { color: var(--bad); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.pill.info { color: var(--info); background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.pill.muted { color: var(--muted); background: var(--muted-bg); border-color: var(--border); }
.pill.plain::before { display: none; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 700; background: var(--bad); color: #fff; }
.badge.muted { background: var(--border-strong); color: var(--text); }

/* ---- Tables --------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--panel-2); }
.table .right { text-align: right; }
.table.fixed { table-layout: fixed; }

/* ---- Buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: filter 0.1s, background 0.1s; }
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good); color: #06210f; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Tabs ----------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 9px 14px; color: var(--text-dim); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---- Forms ---------------------------------------------------------------- */
label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 8px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-inset); color: var(--text); font-family: inherit; font-size: 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field { margin-bottom: 16px; }
.field .hint { color: var(--text-faint); font-size: 12px; margin-top: 5px; font-weight: 400; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; }
.choice:hover { border-color: var(--accent); }
.choice.selected { border-color: var(--accent); background: var(--info-bg); }
.choice .t { font-weight: 600; }
.choice .d { color: var(--text-dim); font-size: 12px; }

/* ---- Callouts / "why this matters" --------------------------------------- */
.callout { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; border: 1px solid var(--border); display: flex; gap: 10px; }
.callout .ico { flex-shrink: 0; margin-top: 1px; }
.callout.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.callout.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.callout.good { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.callout .title { font-weight: 700; margin-bottom: 2px; }
.why { color: var(--text-faint); font-size: 12px; font-style: italic; margin-top: 6px; }

/* ---- Diff ----------------------------------------------------------------- */
.diff { font-family: var(--mono); font-size: 12.5px; background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: auto; }
.diff .line { padding: 1px 12px; white-space: pre-wrap; }
.diff .add { background: rgba(63, 185, 80, 0.12); color: #7ee787; }
.diff .del { background: rgba(248, 81, 73, 0.12); color: #ffa198; }
.diff .ctx { color: var(--text-dim); }
.diff .hunk { color: var(--info); background: var(--panel-2); }

/* ---- Misc ----------------------------------------------------------------- */
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.spacer { flex: 1 1; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.kv { display: grid; grid-template-columns: 160px 1fr; grid-gap: 8px 16px; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.empty { text-align: center; color: var(--text-faint); padding: 48px 0; }
.sep { height: 1px; background: var(--border); margin: 18px 0; }
.toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.toggle button { border: none; background: var(--bg-inset); color: var(--text-dim); padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.toggle button.on { background: var(--accent); color: #fff; }
.redacted { font-family: var(--mono); color: var(--text-faint); letter-spacing: 1px; }
.scroll-x { overflow-x: auto; }

/* sun/moon dark/light toggle (sidebar brand row) */
.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--text-dim);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ===========================================================================
   Catalog / cockpit — cluster sync, health strip, env chips, table polish
   ========================================================================== */

/* ---- Motion --------------------------------------------------------------- */
@keyframes im-spin { to { transform: rotate(360deg); } }
.spin { animation: im-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---- Cluster sync button + result toast ----------------------------------- */
.cluster-sync { position: relative; display: inline-flex; }
.cluster-sync-toast {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  display: inline-flex; align-items: center; gap: 7px; max-width: 360px;
  padding: 7px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel);
  box-shadow: var(--shadow); font-size: 12px; font-weight: 600; line-height: 1.35;
}
.cluster-sync-toast svg { flex-shrink: 0; }
.cluster-sync-toast.good {
  color: var(--good); background: var(--good-bg);
  border-color: color-mix(in srgb, var(--good) 30%, transparent);
}
.cluster-sync-toast.bad {
  color: var(--bad); background: var(--bad-bg);
  border-color: color-mix(in srgb, var(--bad) 30%, transparent);
}

/* ---- Health distribution bar ---------------------------------------------- */
.health-bar {
  display: flex; width: 100%; height: 8px; border-radius: 999px;
  overflow: hidden; background: var(--bg-inset); border: 1px solid var(--border);
}
.health-bar .seg { display: block; min-width: 4px; }
.health-bar .seg + .seg { box-shadow: inset 1px 0 0 var(--bg); }
.health-bar .seg.good { background: var(--good); }
.health-bar .seg.warn { background: var(--warn); }
.health-bar .seg.bad { background: var(--bad); }
.health-bar .seg.info { background: var(--info); }
.health-bar .seg.muted { background: var(--border-strong); }

.health-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.legend-item .dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-item .dot.good { background: var(--good); }
.legend-item .dot.warn { background: var(--warn); }
.legend-item .dot.bad { background: var(--bad); }
.legend-item .dot.muted { background: var(--border-strong); }

/* ---- Summary bar (catalog toolbar) ---------------------------------------- */
.summary-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.summary-metrics { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.metric { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--text-dim); }
.metric b { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.metric.good b { color: var(--good); }
.metric.warn b { color: var(--warn); }
.metric.bad b { color: var(--bad); }
.summary-bar-graph { flex: 1 1 200px; min-width: 160px; max-width: 340px; }

/* ---- Environment presence chips ------------------------------------------- */
.env-chips { display: inline-flex; gap: 4px; }
.env-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; padding: 2px 7px; border-radius: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent;
}
.env-chip.on {
  color: var(--good); background: var(--good-bg);
  border-color: color-mix(in srgb, var(--good) 28%, transparent);
}
.env-chip.off {
  color: var(--text-faint); background: var(--bg-inset);
  border-color: var(--border); opacity: 0.65;
}

/* ---- Stat cards (home) ---------------------------------------------------- */
.stat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border-strong);
}
.stat-card.good::before { background: var(--good); }
.stat-card.warn::before { background: var(--warn); }
.stat-card.bad::before { background: var(--bad); }
.stat-card .stat-top {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 12px; font-weight: 600;
}
.stat-card .stat-top .ico { margin-left: auto; opacity: 0.55; display: inline-flex; }
.stat-card .n {
  font-size: 34px; font-weight: 700; line-height: 1;
  letter-spacing: -0.02em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.stat-card.good .n { color: var(--good); }
.stat-card.warn .n { color: var(--warn); }
.stat-card.bad .n { color: var(--bad); }

/* ---- Table cell helpers --------------------------------------------------- */
.cell-mono { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.truncate {
  display: inline-block; max-width: 260px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
/* Attention-first: a subtle colored edge on rows that need a look. */
.table tr.attn-broken td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.table tr.attn-warning td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

