/* ============================================
   Centro Resources — Project Update Portal
   Aesthetic: clean corporate, Linear/Notion feel
   ============================================ */

:root {
  /* Neutrals (cool, very low chroma) */
  --bg:           oklch(0.985 0.002 250);
  --surface:      oklch(1 0 0);
  --surface-2:    oklch(0.975 0.003 250);
  --line:         oklch(0.92 0.004 250);
  --line-strong:  oklch(0.86 0.005 250);
  --ink:          oklch(0.18 0.006 250);
  --ink-2:        oklch(0.38 0.006 250);
  --ink-3:        oklch(0.55 0.006 250);
  --ink-4:        oklch(0.70 0.005 250);

  /* Accent — ember (oil & gas nod, subtle) */
  --accent:       oklch(0.55 0.13 50);
  --accent-soft:  oklch(0.95 0.03 50);
  --accent-line:  oklch(0.82 0.07 50);

  /* Status */
  --ok:           oklch(0.55 0.12 155);
  --ok-soft:      oklch(0.96 0.025 155);
  --warn:         oklch(0.65 0.13 75);
  --warn-soft:    oklch(0.96 0.04 80);
  --risk:         oklch(0.55 0.16 25);
  --risk-soft:    oklch(0.96 0.025 25);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* ----- App shell ----- */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 1px;
}

.nav-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 0 8px 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.nav-glyph {
  width: 16px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-3);
}
.nav-item.active .nav-glyph { color: var(--ink); }

.sidebar-foot {
  margin-top: auto;
  padding: 8px;
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ----- Main ----- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.crumb {
  font-size: 12.5px;
  color: var(--ink-3);
}
.crumb strong { color: var(--ink); font-weight: 500; }
.crumb .sep { margin: 0 8px; color: var(--ink-4); }

.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who-label { font-size: 12px; color: var(--ink-3); }
.who-select {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.who-select:focus { outline: none; border-color: var(--ink-3); }

.content {
  padding: 36px 36px 80px;
  max-width: 1180px;
  width: 100%;
}

/* ----- Page header ----- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 32px;
}
.page-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
}
.page-sub {
  color: var(--ink-3);
  font-size: 13.5px;
  max-width: 540px;
}
.page-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}

/* ----- KPI strip ----- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 28px;
}
.kpi {
  padding: 18px 20px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi:last-child { border-right: none; }
.kpi-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.kpi-foot {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-trend {
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.kpi-trend.up { color: var(--ok); }
.kpi-trend.down { color: var(--risk); }
.kpi-trend.flat { color: var(--ink-3); }

/* ----- Section ----- */
.section {
  margin-bottom: 36px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* ----- Project list (overview) ----- */
.projects {
  display: flex;
  flex-direction: column;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 1.2fr 1fr 1fr 1.4fr;
  align-items: center;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 80ms ease;
}
.project-row:hover { background: var(--surface-2); }
.project-row.head {
  cursor: default;
  padding: 8px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.project-row.head:hover { background: transparent; }

.project-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.project-name-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-name-sub {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.owner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  display: inline-block;
}

.due {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}
.due-label {
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-sans);
}

/* Progress bar */
.bar-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}
.bar-meta .pct { color: var(--ink); font-weight: 500; }
.bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width 240ms ease;
}
.bar-fill.warn { background: var(--warn); }
.bar-fill.risk { background: var(--risk); }
.bar-fill.ok { background: var(--ok); }

/* Status chip cluster */
.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 10.5px;
  padding: 2px 7px 2.5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--surface);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  line-height: 1.4;
}
.chip.on {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}
.chip.on .chip-dot { background: var(--ok); }
.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
}

/* ----- Detail drawer (expanded row) ----- */
.detail {
  padding: 20px 4px 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--surface-2);
}
.detail-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.kv-label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.kv-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item.on { color: var(--ink); }
.checklist-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
}
.checklist-item.on .checklist-mark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* History sparkline-style */
.history {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
}
.history-row {
  display: grid;
  grid-template-columns: 84px 1fr 88px 88px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}
.history-row:last-child { border-bottom: none; }
.history-bar {
  height: 3px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.history-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

/* ----- Employee form ----- */
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: flex-start;
}

/* New: project-picker shell (projects left, fields right) */
.picker-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}
.picker {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  max-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
}
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.picker-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}
.picker-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-feature-settings: "tnum";
}
.picker-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.picker-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background 80ms ease, border-color 80ms ease;
  border-left: 2px solid transparent;
}
.picker-item:last-child { border-bottom: none; }
.picker-item:hover { background: var(--surface-2); }
.picker-item.active {
  background: var(--surface-2);
  border-left-color: var(--ink);
}
.picker-item.active .picker-name { color: var(--ink); font-weight: 600; }
.picker-name {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.picker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
}
.picker-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-feature-settings: "tnum";
}
.picker-status.done {
  color: var(--ok);
  font-weight: 500;
}
.picker-owner {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}
.picker-item.done { background: oklch(0.985 0.015 155 / 0.4); }
.picker-item.done:hover { background: oklch(0.97 0.025 155 / 0.5); }
.picker-item.done.active { background: oklch(0.96 0.03 155 / 0.6); border-left-color: var(--ok); }

.picker-new {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.picker-new .picker-name {
  font-size: 13.5px;
  color: var(--ink-2);
}
.picker-new.active .picker-name { color: var(--ink); }
.picker-plus {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1;
}
.picker-new.active .picker-plus {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* Form placeholder (when no project selected) */
.form-placeholder {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 460px;
  justify-content: center;
}
.form-placeholder-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.form-placeholder-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.form-placeholder-sub {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 360px;
  line-height: 1.55;
}

/* form-section-sub label */
.form-section-sub {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.form-section {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row.single { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.field-hint {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 6px;
}
.input, .input-mono {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  transition: border-color 80ms ease, box-shadow 80ms ease;
}
.input-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}
.input:focus, .input-mono:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px oklch(0.92 0.005 250);
}
.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix .prefix {
  position: absolute;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  pointer-events: none;
}
.input-prefix .input-mono {
  padding-left: 22px;
  width: 100%;
}

/* Checkbox grid */
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  transition: background 80ms ease;
}
.check:hover { background: var(--surface-2); }
.check:nth-child(2n) { border-right: none; }
.check:nth-last-child(-n+2) { border-bottom: none; }
.check:nth-child(odd):last-child {
  border-right: none;
  grid-column: 1 / -1;
}
.check input { display: none; }
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 100ms ease;
}
.check.on .check-box {
  background: var(--ink);
  border-color: var(--ink);
}
.check-tick {
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--surface);
  border-bottom: 1.6px solid var(--surface);
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 100ms ease;
}
.check.on .check-tick { opacity: 1; }
.check-label {
  font-size: 13.5px;
  color: var(--ink-2);
}
.check.on .check-label { color: var(--ink); font-weight: 500; }

/* Form footer */
.form-foot {
  padding: 18px 28px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.form-foot-msg {
  font-size: 12px;
  color: var(--ink-3);
}
.form-foot-msg.ok { color: var(--ok); }

.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  transition: background 80ms ease, border-color 80ms ease;
}
.btn:hover { background: oklch(0.28 0.006 250); border-color: oklch(0.28 0.006 250); }
.btn:disabled { background: var(--ink-4); border-color: var(--ink-4); cursor: not-allowed; }
.btn.ghost {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn.danger-ghost {
  background: var(--surface);
  color: var(--risk);
  border-color: var(--line);
  margin-right: auto;
}
.btn.danger-ghost:hover {
  background: var(--risk-soft);
  border-color: var(--risk);
  color: var(--risk);
}

/* Side rail (in form) */
.rail {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}
.rail-card-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 10px;
}
.rail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.rail-item:last-child { border-bottom: none; }
.rail-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.rail-empty {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 8px 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  animation: toast-in 200ms ease;
}
.toast-dot {
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Burn meter (budget) ----- */
.burn-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burn-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}
.burn-meta .spent { color: var(--ink); font-weight: 500; }
.burn-meta .total { color: var(--ink-3); }
.burn-pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.burn-pct-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "tnum";
  margin-left: auto;
  padding-left: 8px;
}
.burn-pct-val.warn { color: var(--warn); }
.burn-pct-val.risk { color: var(--risk); }
.burn-pct-val.ok { color: var(--ink); }

.burn-notify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px 3.5px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  width: fit-content;
  border: 1px solid transparent;
}
.burn-notify.warn {
  background: var(--warn-soft);
  color: oklch(0.42 0.13 75);
  border-color: oklch(0.88 0.07 75);
}
.burn-notify.risk {
  background: var(--risk-soft);
  color: var(--risk);
  border-color: oklch(0.85 0.08 25);
}
.burn-notify-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Empty */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* Top-bar actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.export-btn:hover {
  background: var(--surface-2);
  border-color: var(--ink-4);
  color: var(--ink);
}
.export-btn svg { color: var(--ink-3); }
.export-btn:hover svg { color: var(--ink); }

/* Print / PDF export — show only the overview content, dropped chrome */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 12mm; }

  html, body { background: #fff !important; height: auto !important; }
  .app { display: block !important; }
  .sidebar, .topbar { display: none !important; }
  .main { display: block !important; height: auto !important; overflow: visible !important; }
  .content { padding: 0 !important; max-width: none !important; }

  /* Keep cards and rows from splitting awkwardly across pages */
  .kpis, .kpi, .section, .project-row, .detail { break-inside: avoid; }
  .section-head { break-after: avoid; }
  .project-row:hover { background: transparent !important; }
}

/* Utility */
.hide-mobile { }
@media (max-width: 900px) {
  .form-shell { grid-template-columns: 1fr; }
  .picker-shell { grid-template-columns: 1fr; }
  .picker { position: static; max-height: none; }
  .project-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .project-row > :nth-child(4), .project-row > :nth-child(5) { display: none; }
}
