:root {
  --ink: #2d3142;
  --paper: #f7fff7;
  --accent: #ff9f1c;
  --aqua: #2ec4b6;
  --danger: #d64545;
  --muted: #6d7280;
  --line: rgba(45, 49, 66, .18);
  --panel: rgba(255, 255, 255, .72);
  --shadow: 0 22px 70px rgba(45, 49, 66, .16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(45, 49, 66, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(45, 49, 66, .04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.command-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) auto minmax(220px, .7fr);
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 255, 247, .94);
  backdrop-filter: blur(14px);
}

.seal {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.seal img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.seal strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: .95;
}

.seal small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
}

.tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid rgba(247, 255, 247, .24);
  color: var(--paper);
  background: transparent;
  transition: background .18s ease, color .18s ease;
}

.tab:last-child {
  border-right: 0;
}

.tab.is-active {
  color: var(--ink);
  background: var(--accent);
}

.search-box {
  display: grid;
  gap: 4px;
}

.search-box span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-box input:focus {
  box-shadow: 0 0 0 4px rgba(46, 196, 182, .22);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.18fr) minmax(360px, 1.35fr);
  gap: 22px;
  align-items: start;
  padding: 24px clamp(16px, 3vw, 36px) 132px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric {
  min-height: 122px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(45, 49, 66, .12);
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .95;
}

.metric-good {
  border-left: 10px solid var(--aqua);
}

.metric-watch {
  border-left: 10px solid var(--accent);
}

.metric-risk {
  border-left: 10px solid var(--danger);
}

.learning-path {
  display: grid;
  gap: 16px;
}

.path-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.path-heading h1,
.board-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.path-heading h1 {
  max-width: 660px;
  font-size: clamp(34px, 5vw, 70px);
}

.path-heading p,
.board-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.icon-action {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--aqua);
  box-shadow: 4px 4px 0 var(--ink);
}

.is-loading .icon-action span {
  display: inline-block;
  animation: turn .75s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.lane-grid {
  display: grid;
  gap: 12px;
}

.lane {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: end;
  padding: 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .78);
  transition: transform .16s ease, box-shadow .16s ease;
}

.lane:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.lane strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.lane-label {
  font-weight: 850;
  font-size: 20px;
}

.lane-count {
  color: var(--muted);
  font-size: 13px;
}

.lane i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 7px;
  background: var(--aqua);
}

.dense-board {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.board-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.board-head h2 {
  font-size: clamp(28px, 3vw, 46px);
}

.status-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.status-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.dot.ready,
.status-pill.ready {
  background: var(--aqua);
}

.dot.watch,
.status-pill.watch {
  background: var(--accent);
}

.dot.risk,
.status-pill.risk {
  color: #fff;
  background: var(--danger);
}

.asset-list,
.request-grid,
.document-table,
.finance-grid {
  display: grid;
  gap: 10px;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, .32fr) 58px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, .72);
  transition: border-color .18s ease, background .18s ease;
}

.asset-row:hover {
  border-color: var(--ink);
  background: #fff;
}

.asset-main {
  min-width: 0;
}

.asset-main h3,
.request-template h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.asset-main p,
.request-template p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.stage-chip,
.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.stage-chip {
  background: var(--paper);
}

.asset-progress {
  display: grid;
  gap: 5px;
}

.asset-progress strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.asset-progress i {
  height: 7px;
  border: 1px solid var(--ink);
  background: rgba(45, 49, 66, .08);
}

.asset-progress b {
  display: block;
  height: 100%;
  background: var(--aqua);
}

.row-action,
.create-request {
  min-height: 38px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--accent);
  font-weight: 850;
}

.request-template,
.document-table article,
.finance-row {
  min-height: 96px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, .78);
}

.request-template {
  display: grid;
  gap: 8px;
}

.request-template span,
.finance-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.document-table article {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 130px 92px;
  gap: 12px;
  align-items: center;
}

.document-table span,
.document-table time,
.finance-row p,
.finance-row small {
  color: var(--muted);
}

.finance-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.finance-row {
  display: grid;
  align-content: space-between;
}

.finance-row strong {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.empty-state {
  padding: 18px;
  border: 2px dashed var(--danger);
  background: #fff;
}

.event-stream {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  min-height: 96px;
  border-top: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.stream-title {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px clamp(16px, 3vw, 36px);
  border-right: 1px solid rgba(247, 255, 247, .18);
}

.stream-title span {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid var(--paper);
  color: var(--ink);
  background: var(--aqua);
  font-size: 12px;
  font-weight: 850;
}

.stream-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  overflow-x: auto;
}

.stream-event {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-content: center;
  padding: 14px 16px;
  border-right: 1px solid rgba(247, 255, 247, .18);
}

.stream-event time {
  color: var(--accent);
  font-weight: 850;
}

.stream-event p {
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .command-bar {
    grid-template-columns: 1fr;
  }

  .screen-tabs {
    width: 100%;
  }

  .workspace {
    grid-template-columns: 1fr 1.1fr;
  }

  .overview-strip {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  .command-bar {
    position: static;
    gap: 12px;
  }

  .seal small {
    white-space: normal;
  }

  .screen-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-bottom: 260px;
  }

  .metric-grid,
  .finance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-heading,
  .board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-legend {
    justify-content: flex-start;
  }

  .asset-row,
  .document-table article {
    grid-template-columns: 1fr;
  }

  .row-action {
    width: 100%;
  }

  .event-stream {
    grid-template-columns: 1fr;
  }

  .stream-title {
    border-right: 0;
    border-bottom: 1px solid rgba(247, 255, 247, .18);
  }
}

@media (max-width: 460px) {
  .metric-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .path-heading h1 {
    font-size: 32px;
  }
}
