:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --ink: #171d29;
  --muted: #667085;
  --line: #d9e0ea;
  --panel: #ffffff;
  --soft: #eef2f6;
  --continue: #067647;
  --test: #087f8c;
  --complete: #2457c5;
  --hold: #b54708;
  --drop: #b42318;
  --archive: #52616f;
  --blue: #2457c5;
  --shadow: 0 18px 48px rgba(24, 29, 41, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 22px;
}

.brand {
  margin-bottom: 24px;
}

.brand p,
.eyebrow,
.side-title span,
.metric span,
.panel-head span,
.lane-head span,
.search span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand h1 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.brand > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: #364152;
  font-size: 12px;
  font-weight: 900;
}

.side-section {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.side-title,
.source-row,
.nav-filter,
.panel-head,
.lane-head,
.project-row-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-title strong,
.source-row strong {
  color: var(--ink);
  font-size: 13px;
}

.nav-filter {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #39465a;
  font-weight: 850;
  text-align: left;
}

.nav-filter strong {
  color: var(--muted);
  font-size: 12px;
}

.nav-filter.is-active {
  border-color: var(--line);
  background: #f4f7fb;
  color: var(--ink);
}

.source-stack {
  display: grid;
  gap: 8px;
}

.source-row {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfe;
}

.source-row span,
.side-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-text {
  margin: 0;
  line-height: 1.5;
}

.side-text.strong {
  color: var(--ink);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.commandbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.commandbar h2 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.commandbar p:last-child {
  margin: 0;
  color: #4b5565;
  font-size: 15px;
  font-weight: 800;
}

.search {
  display: grid;
  gap: 7px;
}

.search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 28px rgba(24, 29, 41, 0.04);
}

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.14);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric,
.panel,
.lane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 16px;
  border-top: 5px solid var(--archive);
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: 42px;
  line-height: 0.9;
}

.metric-continue {
  border-top-color: var(--continue);
}

.metric-test {
  border-top-color: var(--test);
}

.metric-complete {
  border-top-color: var(--complete);
}

.metric-hold {
  border-top-color: var(--hold);
}

.metric-drop {
  border-top-color: var(--drop);
}

.metric-archive {
  border-top-color: var(--archive);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-chip,
.status-chip,
.decision-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5565;
  font-size: 12px;
  font-weight: 900;
}

.source-chip,
.status-chip {
  min-height: 36px;
  padding: 0 13px;
}

.source-chip.is-active,
.status-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  padding: 16px;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.panel-head > strong,
.lane-head strong {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
}

.focus-list,
.project-radar,
.cards {
  display: grid;
  gap: 10px;
}

.focus-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 70px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--continue);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.focus-item > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--continue);
  font-size: 12px;
  font-weight: 950;
}

.focus-item h4,
.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.36;
  letter-spacing: 0;
}

.focus-item p,
.project-row p,
.project,
.summary,
.actions li {
  color: #4b5565;
  font-size: 12px;
  line-height: 1.5;
}

.focus-item p,
.project-row p,
.project {
  margin: 5px 0 0;
  font-weight: 800;
}

.project-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.project-row strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.project-row-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.project-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf1;
}

.project-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--complete), var(--continue));
}

.triage-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 14px;
  align-items: start;
}

.lane {
  min-height: 620px;
  padding: 14px;
  box-shadow: none;
}

.lane-continue {
  border-top: 5px solid var(--continue);
}

.lane-test {
  border-top: 5px solid var(--test);
}

.lane-complete {
  border-top: 5px solid var(--complete);
}

.lane-hold {
  border-top: 5px solid var(--hold);
}

.lane-drop {
  border-top: 5px solid var(--drop);
}

.lane-archive {
  border-top: 5px solid var(--archive);
}

.lane-head {
  margin-bottom: 12px;
}

.work-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.work-card[data-decision="continue"] {
  border-left: 5px solid var(--continue);
}

.work-card[data-decision="test"] {
  border-left: 5px solid var(--test);
}

.work-card[data-decision="complete"] {
  border-left: 5px solid var(--complete);
}

.work-card[data-decision="hold"] {
  border-left: 5px solid var(--hold);
}

.work-card[data-decision="drop"] {
  border-left: 5px solid var(--drop);
}

.work-card[data-decision="archive"] {
  border-left: 5px solid var(--archive);
}

.card-head {
  align-items: start;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.status-active {
  background: var(--continue);
}

.status-waiting {
  background: var(--hold);
}

.status-stale {
  background: var(--drop);
}

.status-done {
  background: var(--complete);
}

.summary {
  margin: 0;
}

.actions {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.actions li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 8px;
}

.actions li::before {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.decision-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.decision-button {
  min-height: 30px;
  padding: 0 8px;
}

.decision-button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.source {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.source {
  background: #e7f0ec;
  color: #276749;
}

.more-row,
.empty {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.more-row {
  min-height: 42px;
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .triage-board {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .commandbar,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace,
  .sidebar {
    padding: 14px;
  }

  .metrics,
  .triage-board {
    grid-template-columns: 1fr;
  }

  .commandbar h2 {
    font-size: 32px;
  }
}
