/* ════════════════════════════════════════════════════════════════
   Yenda v3 — Team Management (250-scale)
   ════════════════════════════════════════════════════════════════ */

:root {
  --ink: #111111;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --muted-3: #d1d5db;
  --line: #e5e7eb;
  --line-2: #f0f0ee;
  --paper: #ffffff;
  --paper-2: #fafaf9;
  --paper-3: #f5f4f1;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --mint: #80FFD1;
  --coral: #FF7A8A;
}

html, body { margin: 0; padding: 0; height:100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper-3);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "cv11" 1;
}
#root { height: 100vh; }
*, *::before, *::after { box-sizing: border-box; }
button { font-family: inherit; }
.mono { font-family: 'Inconsolata', ui-monospace, monospace; font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* ── App shell ────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  overflow: hidden;
}
.app-main {
  overflow-y: auto;
  background: var(--paper-3);
}
.app-main-inner {
  padding: 28px 36px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sb {
  background: #111;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px;
  overflow: hidden;
}
.sb-top { padding: 0 20px; }
.sb-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 17px;
  letter-spacing: -0.01em; color: #fff;
  margin-bottom: 20px;
}
.sb-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(128,255,209,0.6);
}

.sb-team {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.sb-team-name {
  font-size: 14px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em;
}
.sb-team-meta {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 3px; display: flex; gap: 6px;
}
.sb-team-meta .dotsep { color: rgba(255,255,255,0.2); }
.sb-team-switch {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 11px; font-weight: 500;
  margin-top: 8px; padding: 0;
  cursor: pointer;
}
.sb-team-switch:hover { color: #fff; }

/* Sidebar nav */
.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 12px 20px;
}
.sb-nav-sec {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 8px;
  margin: 14px 0 8px;
}
.sb-nav-sec:first-child { margin-top: 0; }
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  width: 100%;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 2px;
}
.sb-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sb-nav-item.active {
  background: #fff;
  color: #111;
  font-weight: 600;
}
.sb-nav-item .lbl { flex: 1; }
.sb-badge {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  min-width: 20px;
  text-align: center;
}
.sb-nav-item.active .sb-badge {
  background: #111;
  color: #fff;
}
.sb-badge.danger { background: var(--danger); color: #fff; }
.sb-badge.warn { background: var(--warn); color: #fff; }
.sb-nav-item.active .sb-badge.danger { background: var(--danger); color: #fff; }
.sb-nav-item.active .sb-badge.warn { background: var(--warn); color: #fff; }

/* Sidebar footer */
.sb-foot {
  padding: 12px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 6px;
}
.sb-fresh {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.sb-fresh .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
}
.sb-fresh .dot.stale { background: var(--coral); }
.sb-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sb-user .nm { font-size: 12px; font-weight: 600; color: #fff; }
.sb-user .rl { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── Page header ─────────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  color: var(--ink);
}
.page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.015em; }
h2 { font-size: 15px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 700; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.card-hd {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-bd { padding: 4px 20px 20px; }
.card-hd-bottomline {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 14px;
}

/* ── Meta / utility text ─────────────────────────────────────── */
.meta { font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }

/* ── Chips ──────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-mini { font-size: 10px; padding: 2px 7px; }
.chip-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.chip-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.chip-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.chip-info { background: var(--info-bg); color: var(--info); border-color: #bfdbfe; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: 600 12px 'Inter', sans-serif;
  cursor: pointer;
  color: #374151;
  white-space: nowrap;
  transition: all 0.1s;
}
.btn:hover { background: var(--paper-2); border-color: #111; color: #111; }
.btn-dark { background: #111; color: #fff; border-color: #111; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--paper-2); color: #111; border-color: transparent; }
.btn-sm { padding: 5px 9px; font-size: 11px; }
.btn.icon { padding: 6px 8px; }

/* ── Segmented bar ───────────────────────────────────────────── */
.segbar {
  display: inline-flex;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.segbar button {
  background: transparent; border: 0;
  font: 600 11px 'Inter', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.segbar button:hover { color: #111; }
.segbar button.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ── KPI tiles ──────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.kpi-tile .lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kpi-tile .val {
  font-family: 'Inconsolata', monospace;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-tile .val .denom { color: var(--muted); font-weight: 500; }
.kpi-tile .sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Utility layout ─────────────────────────────────────────── */
.row { display: flex; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.flex { display: flex; }
.g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; }
.f1 { flex: 1; min-width: 0; }
.ac { align-items: center; }
.jb { justify-content: space-between; }

/* ════════════════════════════════════════════════════════════════
   OVERVIEW — Triage banner
   ════════════════════════════════════════════════════════════════ */
.triage-banner {
  background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.triage-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.triage-hd-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3px 0 0;
}
.triage-hd-title .n {
  font-family: 'Inconsolata', monospace;
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.triage-hd-title .t {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.triage-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.triage-tier {
  background: var(--sev-bg, #fff);
  border: 1px solid var(--sev-border, var(--line));
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s;
  font-family: inherit;
}
.triage-tier:hover:not(.passive) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.triage-tier.passive { cursor: default; opacity: 0.85; }
.triage-tier-hd {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--sev-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.triage-tier-num {
  font-family: 'Inconsolata', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sev-color);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.triage-tier-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Today grid */
.today-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.today-tile {
  padding: 14px 12px;
  border: 1px solid;
  border-radius: 10px;
  text-align: center;
}
.today-tile-num {
  font-family: 'Inconsolata', monospace;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.today-tile-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 6px;
}

/* Leaderboard mini */
.lbx-row {
  display: grid;
  grid-template-columns: 24px 28px 1fr 60px 80px;
  gap: 10px;
  align-items: center;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line-2);
}
.lbx-row:last-child { border-bottom: 0; }
.lbx-rank { font-family: 'Inconsolata', monospace; font-weight: 700; font-size: 11px; color: var(--muted); }
.lbx-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbx-pace { text-align: right; font-size: 13px; font-weight: 600; }
.lbx-res { text-align: right; font-size: 13px; font-weight: 700; color: #111; }

/* Action log mini */
.al-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 12px;
}
.al-when { font-size: 11px; color: var(--muted); font-family: 'Inconsolata', monospace; }
.al-action .subject { color: var(--muted); }
.al-by { font-size: 11px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   CLOCK-IN
   ════════════════════════════════════════════════════════════════ */

.clockin-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.clockin-strip-hero {
  padding: 22px 24px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.clockin-strip-hero-num {
  font-family: 'Inconsolata', monospace;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.clockin-strip-hero-lbl .t {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111;
}
.clockin-strip-hero-lbl .s {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.clockin-strip-progress {
  min-width: 280px;
  text-align: right;
}
.clockin-strip-progress-track {
  height: 10px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.clockin-strip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  border-radius: 99px;
}
.clockin-strip-progress-lbl {
  font-size: 11px;
  color: var(--muted);
}

.clockin-strip-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.clockin-strip-chip {
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line-2);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
}
.clockin-strip-chip:last-child { border-right: 0; }
.clockin-strip-chip:hover { background: var(--paper-2); }
.clockin-strip-chip.active {
  background: var(--paper-2);
}
.clockin-strip-chip .row {
  display: flex; align-items: center; gap: 8px;
}
.clockin-strip-chip .num {
  font-family: 'Inconsolata', monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #111;
}
.clockin-strip-chip .t {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-top: 6px;
}
.clockin-strip-chip .s {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* Bulk bar */
.ci-bulk-bar {
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.ci-bulk-bar-lbl {
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.ci-bulk-bar-lbl strong { font-size: 15px; font-weight: 700; }
.ci-bulk-bar-lbl .btn { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.ci-bulk-bar-lbl .btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.ci-bulk-bar-actions { display: flex; gap: 6px; }
.ci-bulk-bar-actions .btn {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.ci-bulk-bar-actions .btn:hover { background: #f5f4f1; }
.ci-bulk-bar-actions .btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: transparent;
}
.ci-bulk-bar-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Groups */
.ci-groups { display: flex; flex-direction: column; gap: 12px; }
.ci-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ci-group.sev-critical { border-left: 4px solid var(--danger); }
.ci-group.sev-high { border-left: 4px solid var(--warn); }
.ci-group.sev-watch { border-left: 4px solid #a16207; }
.ci-group.sev-ok { border-left: 4px solid var(--muted-3); }
.ci-group.sev-leave { border-left: 4px solid var(--info); }

.ci-group-hd {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.ci-group.collapsed .ci-group-hd { border-bottom: 0; }
.ci-group:not(.collapsed) .ci-group-hd { border-bottom: 1px solid var(--line-2); }

.ci-group-chev {
  background: none; border: 0; padding: 0;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
}
.ci-group-title {
  display: flex; align-items: center; gap: 10px;
}
.ci-group-title .t {
  font-size: 14px; font-weight: 700; color: #111;
  letter-spacing: -0.01em;
}
.ci-group-title .n {
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f3f4f6;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.ci-group.sev-critical .ci-group-title .n { background: var(--danger-bg); color: var(--danger); }
.ci-group.sev-high .ci-group-title .n { background: var(--warn-bg); color: var(--warn); }
.ci-group.sev-leave .ci-group-title .n { background: var(--info-bg); color: var(--info); }

.ci-group-sub {
  font-size: 11px;
  color: var(--muted);
}
.ci-group-bulk {
  display: flex; align-items: center; gap: 10px;
}
.ci-select-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}
.ci-select-all input { cursor: pointer; }

.ci-group-bd {
  background: var(--paper-2);
}
.ci-group-list { display: flex; flex-direction: column; }
.ci-group-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.ci-group-more {
  width: 100%;
  padding: 10px;
  background: var(--paper-2);
  border: 0;
  border-top: 1px solid var(--line-2);
  font: 600 12px 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
}
.ci-group-more:hover { color: #111; background: #f3f4f6; }

/* Row: detailed */
.ci-row {
  background: #fff;
  padding: 14px 18px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.ci-row:last-child { border-bottom: 0; }
.ci-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #111;
  cursor: pointer;
}

.ci-row-detailed {
  grid-template-columns: 20px 36px 1fr auto;
  gap: 12px;
  padding: 16px 18px;
}
.ci-row-detailed.sev-critical { background: #fef9f9; }
.ci-row-detailed .ci-row-main { min-width: 0; }
.ci-row-detailed .nm {
  font-size: 14px; font-weight: 700; color: #111;
  letter-spacing: -0.005em;
  display: flex; align-items: center;
}
.ci-row-detailed .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.ci-row-detailed .meta .sep { opacity: 0.5; }
.ci-row-timeline {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
}
.ci-row-timeline-item .t {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
}
.ci-row-timeline-item .v {
  font-size: 11px;
  color: #111;
  font-weight: 500;
  margin-top: 1px;
  display: block;
}
.ci-row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Row: compact */
.ci-row-compact {
  grid-template-columns: 20px 26px 1.5fr 80px 80px 90px 90px auto;
  gap: 12px;
  font-size: 12px;
  padding: 10px 18px;
}
.ci-row-compact .nm { font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-row-compact .meta { font-size: 11px; color: var(--muted); }
.ci-row-compact .shift { font-family: 'Inconsolata', monospace; font-size: 11px; color: var(--ink-2); }
.ci-row-compact .late {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--warn);
}
.ci-row-compact .pace { font-family: 'Inconsolata', monospace; font-size: 11px; color: var(--muted); }

/* Row: minimal */
.ci-row-minimal {
  grid-template-columns: 22px 1.5fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 8px 18px 8px 48px;
  font-size: 12px;
}
.ci-row-minimal .nm { font-weight: 500; color: #111; }
.ci-row-minimal .meta { font-size: 11px; color: var(--muted); }
.ci-row-minimal .shift { font-size: 11px; color: var(--ink-2); }

/* ════════════════════════════════════════════════════════════════
   PERFORMANCE — heatmap
   ════════════════════════════════════════════════════════════════ */
.perf-hm {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.perf-hm th {
  text-align: left;
  padding: 10px 10px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: sticky;
  top: 0;
}
.perf-hm th.num { text-align: right; }
.perf-hm th.d { text-align: center; padding: 10px 4px; }
.perf-hm th.d.today { color: #111; }
.perf-hm th.d.today::after {
  content: '●';
  display: block;
  color: #111;
  font-size: 6px;
  margin-top: 1px;
}
.perf-hm td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.perf-hm td.name .nm { font-weight: 600; color: #111; font-size: 12px; }
.perf-hm td.name .rl {
  font-size: 10px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.perf-hm td.cell-td { padding: 3px; text-align: center; }
.perf-hm td.cell-td .cell {
  display: block;
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.perf-hm td.cell-td.today .cell {
  outline: 2px solid #111;
  outline-offset: -2px;
}
.perf-hm td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.weekpct {
  display: flex; align-items: center; gap: 8px;
  justify-content: flex-end;
}
.weekpct-bar {
  width: 70px;
  height: 6px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
}
.weekpct-fill {
  height: 100%;
  border-radius: 99px;
}

.pt-more {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
}

/* ════════════════════════════════════════════════════════════════
   ROSTER
   ════════════════════════════════════════════════════════════════ */
.roster-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.roster-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
}
.roster-search input {
  flex: 1;
  border: 0;
  outline: 0;
  font: 400 13px 'Inter', sans-serif;
  background: transparent;
}
.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.roster-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.roster-table th.num { text-align: right; }
.roster-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}
.roster-table tr:hover td { background: var(--paper-2); }
.roster-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Inconsolata', monospace; }

/* ════════════════════════════════════════════════════════════════
   ACTION LOG
   ════════════════════════════════════════════════════════════════ */
.al-list { display: flex; flex-direction: column; }
.al-entry {
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.al-entry:last-child { border-bottom: 0; }
.al-entry-when {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  color: var(--muted);
  padding-top: 1px;
}
.al-entry-hd {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px;
}
.al-entry-action { font-weight: 700; color: #111; }
.al-entry-arrow { color: var(--muted-3); }
.al-entry-subject { color: var(--ink-2); }
.al-entry-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.al-entry-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

/* ════════════════════════════════════════════════════════════════
   P&L
   ════════════════════════════════════════════════════════════════ */
.pl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.pl-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.pl-table th.num { text-align: right; }
.pl-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.pl-table tr:last-child td { border-bottom: 0; }
.pl-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Inconsolata', monospace; }

/* ── Sev chip (for overview filter UI) ──────────────────────── */
.sev-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
}
.sev-chip .ct {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(0,0,0,0.05);
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  z-index: 1000;
  animation: toast-in 0.18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }

