/* ─────────────────────────────────────────────────────────────
   STRATA ERP — Design System
   Crisp fintech: ink-navy primary, electric indigo accent.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Neutrals */
  --bg: #f4f7fb;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --surface-3: #f7f9fc;
  --overlay: rgba(10, 37, 64, 0.55);

  /* Ink */
  --ink: #0a2540;
  --ink-2: #324966;
  --ink-3: #6b7c93;
  --ink-4: #a3b1c4;
  --ink-5: #cfd7e3;

  /* Lines */
  --line: #e6ebf3;
  --line-2: #d8dfeb;
  --line-strong: #c1cbdb;

  /* Brand */
  --brand: #0a2540;            /* deep navy, headers + sidebar */
  --accent: #5b5bf5;           /* electric indigo */
  --accent-soft: #ecedff;
  --accent-hover: #4848e8;
  --accent-deep: #2d2db3;

  /* Semantic */
  --pos: #00875a;
  --pos-soft: #e6f6ef;
  --pos-ink: #005c3d;
  --neg: #cf1124;
  --neg-soft: #fdecee;
  --neg-ink: #8a0815;
  --warn: #b76e00;
  --warn-soft: #fff3da;
  --warn-ink: #7a4900;
  --info: #0a6dbd;
  --info-soft: #e6f1fb;
  --info-ink: #084b81;

  /* Radii */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;
  --r-4: 10px;
  --r-5: 14px;
  --r-6: 18px;

  /* Shadows */
  --sh-1: 0 1px 0 rgba(10, 37, 64, 0.04), 0 1px 2px rgba(10, 37, 64, 0.04);
  --sh-2: 0 1px 0 rgba(10, 37, 64, 0.04), 0 4px 12px rgba(10, 37, 64, 0.06);
  --sh-3: 0 2px 0 rgba(10, 37, 64, 0.04), 0 12px 32px rgba(10, 37, 64, 0.10);
  --sh-4: 0 4px 0 rgba(10, 37, 64, 0.05), 0 24px 64px rgba(10, 37, 64, 0.14);
  --sh-focus: 0 0 0 3px rgba(91, 91, 245, 0.18);

  /* Type */
  --f-sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 52px;
  --content-pad: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum";
}

button { font-family: inherit; cursor: default; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(10, 37, 64, 0.14);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(10, 37, 64, 0.28); background-clip: content-box; }

/* ──────────────── App Shell ──────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #061a30 0%, #0a2540 100%);
  color: #cfd7e3;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 4px;
  border-right: 1px solid #03101e;
  overflow-y: auto;
}
.sb-tenant {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 8px 8px 8px;
  border-radius: var(--r-3);
  cursor: default;
  margin-bottom: 4px;
}
.sb-tenant:hover { background: rgba(255, 255, 255, 0.04); }
.sb-tenant-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #5b5bf5, #8a85ff);
  color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sb-tenant-name { font-size: 13px; font-weight: 600; color: #fff; }
.sb-tenant-sub { font-size: 11px; color: #6b7c93; margin-top: 1px; }
.sb-tenant-name-wrap { flex: 1; min-width: 0; }
.sb-tenant-caret { color: #6b7c93; font-size: 10px; }

.sb-search {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 4px 10px 4px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-3);
  color: #8a98ab;
  font-size: 12.5px;
  cursor: text;
}
.sb-search:hover { background: rgba(255, 255, 255, 0.08); }
.sb-search-kbd {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #6b7c93;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
}

.sb-section { margin-top: 14px; padding: 0 8px; }
.sb-section-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #5a6b82; padding: 0 0 6px 0;
}

.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 9px;
  font-size: 13px;
  color: #b6c2d4;
  border-radius: var(--r-2);
  cursor: default;
  position: relative;
}
.sb-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sb-item.active {
  background: rgba(91, 91, 245, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(91, 91, 245, 0.32);
}
.sb-item.active::before {
  content: "";
  position: absolute; left: -10px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.sb-item-icon { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.85; }
.sb-item.active .sb-item-icon { opacity: 1; }
.sb-item-badge {
  margin-left: auto; font-family: var(--f-mono);
  font-size: 10.5px; color: #8a98ab;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px; border-radius: 999px;
}
.sb-item.active .sb-item-badge { background: rgba(91, 91, 245, 0.32); color: #fff; }

.sb-foot {
  margin-top: auto; padding: 12px 4px 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; gap: 9px;
}
.sb-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #d97757, #c1572f);
  color: #fff; font-weight: 600; font-size: 11px;
  display: grid; place-items: center;
}
.sb-foot-name { font-size: 12.5px; color: #e8edf5; font-weight: 500; }
.sb-foot-role { font-size: 11px; color: #6b7c93; }

/* Main */
.main {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--bg);
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 var(--content-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  gap: 16px;
}
.tb-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.tb-crumbs-current { color: var(--ink); font-weight: 500; }
.tb-crumbs-sep { color: var(--ink-4); }

.tb-spacer { flex: 1; }

.tb-roleswitch {
  display: inline-flex; align-items: center;
  padding: 3px;
  background: var(--bg-2);
  border-radius: var(--r-3);
  border: 1px solid var(--line);
}
.tb-roleswitch button {
  padding: 4px 10px;
  font-size: 12px; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 5px;
  font-weight: 500;
}
.tb-roleswitch button.on {
  background: white; color: var(--ink);
  box-shadow: var(--sh-1);
}

.tb-iconbtn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-3);
  color: var(--ink-2);
  position: relative;
}
.tb-iconbtn:hover { background: var(--surface); border-color: var(--line); }
.tb-iconbtn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neg); border: 2px solid white;
}

.tb-aiask {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
  box-shadow: var(--sh-1);
}
.tb-aiask:hover { border-color: var(--accent); color: var(--accent-deep); }
.tb-aiask .spark {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #5b5bf5, #8a85ff);
  color: white;
}

/* Content */
.content {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 22px var(--content-pad) 80px;
}

/* ──────────────── Common bits ──────────────── */
.page-h {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 18px;
}
.page-h-title {
  font-family: var(--f-sans);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.page-h-sub {
  font-size: 13px; color: var(--ink-3); margin-top: 2px;
}
.page-h-spacer { flex: 1; }
.page-h-actions { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-2);
  background: white;
  color: var(--ink);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
}
.btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn:active { background: var(--bg-2); }
.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn-primary:hover { background: #0e2e4e; border-color: #0e2e4e; }
.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent; border-color: transparent; box-shadow: none;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-sm { padding: 4px 9px; font-size: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--sh-1);
}
.card-h {
  display: flex; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.card-h-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.card-h-sub { font-size: 12px; color: var(--ink-3); }
.card-h-spacer { flex: 1; }
.card-body { padding: 16px; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-3); border-radius: 0 0 var(--r-4) var(--r-4); }

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 14px 16px;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.kpi-label {
  font-size: 11.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.kpi-value {
  font-family: var(--f-sans);
  font-size: 26px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
}
.kpi-value .unit { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.kpi-delta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.kpi-delta.pos { color: var(--pos); }
.kpi-delta.neg { color: var(--neg); }
.kpi-delta-meta { color: var(--ink-3); }
.kpi-spark { height: 36px; margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: 11.5px; font-weight: 500;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pos { background: var(--pos-soft); color: var(--pos-ink); }
.badge.neg { background: var(--neg-soft); color: var(--neg-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.info { background: var(--info-soft); color: var(--info-ink); }
.badge.accent { background: var(--accent-soft); color: var(--accent-deep); }
.badge.outline {
  background: transparent;
  border: 1px solid var(--line-2);
}

.tag {
  display: inline-flex;
  padding: 1px 7px;
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--ink-3);
  background: var(--bg-2);
  border-radius: 4px;
}

/* Tables */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.tbl th {
  text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 8px 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.tbl td {
  padding: 11px 12px;
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .muted { color: var(--ink-3); }
.tbl .mono { font-family: var(--f-mono); font-size: 12.5px; }

/* Alert tiles (F-pattern top-left) */
.alerts {
  display: flex; flex-direction: column; gap: 8px;
}
.alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: white;
  box-shadow: var(--sh-1);
}
.alert-row.neg { border-left: 3px solid var(--neg); }
.alert-row.warn { border-left: 3px solid var(--warn); }
.alert-row.info { border-left: 3px solid var(--info); }
.alert-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
}
.alert-row.neg .alert-icon { background: var(--neg-soft); color: var(--neg); }
.alert-row.warn .alert-icon { background: var(--warn-soft); color: var(--warn); }
.alert-row.info .alert-icon { background: var(--info-soft); color: var(--info); }
.alert-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.alert-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.alert-time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Stripes / progress */
.pbar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pbar.thick { height: 8px; }

/* Map */
.map {
  width: 100%; height: 100%;
  background:
    radial-gradient(900px 600px at 30% 40%, rgba(91,91,245,0.08), transparent 60%),
    radial-gradient(900px 600px at 70% 60%, rgba(0, 135, 90, 0.07), transparent 60%),
    var(--surface-3);
  border-radius: var(--r-4);
  position: relative;
  overflow: hidden;
}

/* Heatmap cell */
.hm {
  display: grid; gap: 2px;
}
.hm-cell {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--bg-2);
  position: relative;
}
.hm-cell[data-occ="0"] { background: #f7f9fc; }
.hm-cell[data-occ="1"] { background: #c8e8d7; }
.hm-cell[data-occ="2"] { background: #6ec99a; }
.hm-cell[data-occ="3"] { background: #00875a; }
.hm-cell[data-occ="vac"] { background: #fdecee; outline: 1px solid #f3b5bd; outline-offset: -1px; }

/* Section grids */
.grid { display: grid; gap: 14px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-7-5 { grid-template-columns: 7fr 5fr; }
.g-6-6 { grid-template-columns: 6fr 6fr; }
.g-8-4 { grid-template-columns: 8fr 4fr; }

/* Avatars & circle initial */
.av {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 10.5px; font-weight: 600; color: #fff;
  font-family: var(--f-sans);
}
.av-stack { display: inline-flex; }
.av-stack .av { border: 2px solid white; margin-left: -8px; }
.av-stack .av:first-child { margin-left: 0; }

/* Spark */
.spark-svg path { fill: none; stroke-width: 1.6; }
.spark-svg .area { stroke: none; opacity: 0.18; }

/* Empty placeholder */
.empty {
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px;
  min-height: 160px;
}

/* Drawer / modal-ish */
.sheet {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-5);
  box-shadow: var(--sh-3);
  padding: 0;
  overflow: hidden;
}

/* Command bar overlay */
.cmd-back {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, 0.32);
  backdrop-filter: blur(2px);
  display: grid; place-items: flex-start center;
  padding-top: 12vh;
  z-index: 1000;
}
.cmd {
  width: 640px; max-width: 92vw;
  background: white;
  border-radius: var(--r-5);
  box-shadow: var(--sh-4);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cmd-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.cmd-input {
  flex: 1; border: 0; outline: 0;
  font-size: 16px; color: var(--ink);
  background: transparent;
}
.cmd-input::placeholder { color: var(--ink-4); }
.cmd-results { max-height: 56vh; overflow-y: auto; padding: 4px 0 8px; }
.cmd-group-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 16px 5px;
}
.cmd-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  font-size: 14px; color: var(--ink);
}
.cmd-row.active { background: var(--accent-soft); color: var(--accent-deep); }
.cmd-row .cmd-row-icon {
  width: 26px; height: 26px; border-radius: var(--r-2);
  background: var(--bg-2); color: var(--ink-2);
  display: grid; place-items: center;
}
.cmd-row.active .cmd-row-icon { background: white; color: var(--accent-deep); }
.cmd-row-sub { font-size: 12px; color: var(--ink-3); }
.cmd-row.active .cmd-row-sub { color: var(--accent-deep); opacity: 0.7; }
.cmd-foot {
  display: flex; gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
  font-size: 11.5px; color: var(--ink-3);
}
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-2);
  background: white; border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  padding: 0 5px; min-width: 18px; height: 18px;
  border-radius: 4px;
}

/* Banner */
.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-3);
  border: 1px solid var(--line);
  background: white;
}
.banner.accent { background: linear-gradient(180deg, #f3f3ff, #ffffff); border-color: #d8d8fb; }
.banner.warn { background: linear-gradient(180deg, var(--warn-soft), white); border-color: #f3e0b5; }
.banner.pos { background: linear-gradient(180deg, var(--pos-soft), white); border-color: #b9e2cd; }

/* Tabs */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tab {
  padding: 8px 12px;
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }

/* Status pill colors */
.st-open { background: #fff4d8; color: #7a4900; }
.st-progress { background: #e1ecff; color: #0a4490; }
.st-blocked { background: var(--neg-soft); color: var(--neg-ink); }
.st-done { background: var(--pos-soft); color: var(--pos-ink); }
.st-sched { background: var(--bg-2); color: var(--ink-2); }

/* Skeletons */
.sk { background: linear-gradient(90deg, var(--bg-2), var(--bg), var(--bg-2)); background-size: 200% 100%; border-radius: 4px; animation: sk 1.6s infinite; height: 12px; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Hairline divider */
.hr { height: 1px; background: var(--line); border: 0; margin: 8px 0; }
.vr { width: 1px; background: var(--line); margin: 0 4px; align-self: stretch; }

/* Detail definition list */
.dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 6px;
  column-gap: 14px;
  font-size: 13px;
}
.dl dt { color: var(--ink-3); font-weight: 400; }
.dl dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Pill chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  font-size: 12px;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
}
.chip.on { background: var(--ink); color: white; border-color: var(--ink); }

/* Layout containers */
.row { display: flex; align-items: center; gap: 8px; }
.row-w { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.text-pos { color: var(--pos); }
.text-neg { color: var(--neg); }
.text-warn { color: var(--warn); }

/* Anim */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.18s ease-out; }

/* Windows desktop chrome */
.win-frame {
  width: 100%; height: 100vh;
  background: #2d2d30;
  display: flex; flex-direction: column;
}
.win-titlebar {
  height: 32px; flex: 0 0 32px;
  background: #1f1f23;
  display: flex; align-items: center;
  padding: 0 0 0 12px;
  color: #cfd7e3;
  font-size: 12px;
  -webkit-app-region: drag;
  gap: 10px;
}
.win-title { color: #e8edf5; }
.win-title small { color: #8a98ab; }
.win-controls { margin-left: auto; display: flex; }
.win-controls button {
  width: 46px; height: 32px; background: transparent;
  border: 0; color: #cfd7e3; font-size: 14px;
}
.win-controls button:hover { background: rgba(255,255,255,0.06); }
.win-controls button.close:hover { background: #e81123; color: white; }
.win-body { flex: 1; min-height: 0; }
