:root {
  --ink: #162033;
  --navy: #1d3557;
  --paper: #fff8f0;
  --mint: #2a9d8f;
  --coral: #e76f51;
  --line: rgba(29, 53, 87, 0.16);
  --soft: rgba(255, 248, 240, 0.78);
  --shadow: 0 20px 60px rgba(22, 32, 51, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(29, 53, 87, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42, 157, 143, 0.06), rgba(255, 248, 240, 0.45) 34rem),
    var(--paper);
  background-size: 56px 56px, auto, auto;
}

button,
input,
select {
  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;
  padding: 28px 20px;
  color: #fff;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand small,
.sidebar-note p,
.nav-tab {
  color: rgba(255, 255, 255, 0.72);
}

.mono,
.eyebrow,
th {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-tabs {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.nav-tab {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-tab:hover,
.nav-tab.active {
  color: #fff;
  background: rgba(255, 248, 240, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.sidebar-note {
  position: absolute;
  right: 20px;
  bottom: 26px;
  left: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-note .mono {
  color: var(--mint);
  font-size: 12px;
}

.sidebar-note p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.workspace {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 44px) 44px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.05;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.search span {
  color: rgba(22, 32, 51, 0.62);
  font-size: 12px;
}

input,
select,
.accent-button,
.step-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

input,
select {
  min-width: 180px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  min-height: 106px;
  padding: 18px;
  background: rgba(255, 248, 240, 0.9);
}

.metric .mono {
  display: block;
  color: rgba(22, 32, 51, 0.56);
  font-size: 11px;
}

.metric strong {
  display: inline-block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
}

.metric small {
  margin-left: 6px;
  color: rgba(22, 32, 51, 0.58);
}

.screen {
  display: none;
  animation: lift 220ms ease both;
}

.screen.active {
  display: block;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-head p,
.section-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(22, 32, 51, 0.62);
}

.accent-button {
  padding: 0 16px;
  color: #fff;
  background: var(--mint);
  border-color: transparent;
}

.lanes {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.lane {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 82px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lane-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.lane header {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.lane header strong,
.lane header span {
  display: block;
}

.lane header span {
  margin-top: 6px;
  color: rgba(22, 32, 51, 0.58);
  font-size: 13px;
}

.lane-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 12px;
}

.resource-chip {
  flex: 0 0 210px;
  min-height: 56px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(22, 32, 51, 0.08);
  transition: transform 160ms ease, border-color 160ms ease;
}

.resource-chip:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
}

.resource-chip span,
.resource-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-chip small {
  margin-top: 4px;
  color: rgba(22, 32, 51, 0.62);
}

.resource-chip.watch {
  border-color: rgba(231, 111, 81, 0.46);
}

.resource-chip.block {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.resource-chip.block small {
  color: rgba(255, 255, 255, 0.82);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: rgba(22, 32, 51, 0.58);
  font-size: 11px;
}

td small {
  display: block;
  margin-top: 5px;
  color: rgba(22, 32, 51, 0.58);
}

.version {
  display: inline-block;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--navy);
  background: rgba(42, 157, 143, 0.12);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.bar {
  width: 124px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 53, 87, 0.12);
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--coral));
}

.step-button {
  padding: 0 12px;
  color: var(--navy);
  background: rgba(42, 157, 143, 0.12);
}

.timeline,
.settings-grid,
.team-grid {
  display: grid;
  gap: 10px;
}

.timeline-item,
.setting-row,
.team-member {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 34px rgba(22, 32, 51, 0.06);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 220px minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.timeline-item time,
.timeline-item span,
.setting-row span,
.team-member span,
.team-member small {
  color: rgba(22, 32, 51, 0.6);
  font-size: 13px;
}

.timeline-item p,
.setting-row p,
.team-member p {
  margin-bottom: 0;
  color: rgba(22, 32, 51, 0.72);
}

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

.setting-row {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.setting-row strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

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

.team-member {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.team-member p,
.team-member meter,
.team-member small {
  grid-column: 1 / -1;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

meter {
  width: 100%;
  height: 10px;
}

.error {
  color: #a33c27;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
  }

  .nav-tab {
    text-align: center;
  }

  .sidebar-note {
    position: static;
    margin-top: 16px;
  }

  .summary-grid,
  .settings-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 18px 12px 34px;
  }

  .topbar,
  .calendar-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .search,
  input,
  select,
  .accent-button {
    width: 100%;
  }

  .nav-tabs,
  .summary-grid,
  .settings-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .lane {
    grid-template-columns: 1fr;
  }

  .lane header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

