:root {
  --text: #14252f;
  --muted: #3b5158;
  --accent: #184b49;
  --accent-soft: #deeee8;
  --focus: #095a66;
  --surface: #f5fcfc;
  --line: #a7b9bb;
  --border: rgba(105, 129, 134, .26);
  --radius: 18px;
  --glass-border: rgba(255, 255, 255, .72);
  --glass: rgba(244, 251, 250, .64);
  --glass-shadow: 0 20px 55px rgba(25, 53, 60, .13), inset 0 1px 0 rgba(255, 255, 255, .45);
}

html { min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 3% 1%, #78aeb8 0%, transparent 55%),
    radial-gradient(ellipse at 42% -20%, #b8dde0 0%, transparent 57%),
    radial-gradient(ellipse at 103% 42%, #625c5b 0%, transparent 43%),
    radial-gradient(ellipse at 89% 98%, #ad9290 0%, transparent 35%),
    radial-gradient(ellipse at 3% 73%, #e3e5d9 0%, transparent 53%),
    linear-gradient(140deg, #c2d4d0 12%, #92a9a8 73%, #c1aeaa 100%);
  background-attachment: fixed;
  color: var(--text);
}
.frame { width: min(1380px, calc(100% - 92px)); }
.glass, .workspace-nav {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(23px) saturate(120%);
  -webkit-backdrop-filter: blur(23px) saturate(120%);
}

.masthead { background: transparent; border-bottom: 0; }
.mastinner { height: 64px; }
.brand {
  padding: 6px 10px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(241, 252, 249, .56);
  border-radius: 999px;
  font-weight: 700;
}
.brand img { width: 22px; height: 20px; }
.location {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(240, 246, 243, .72);
  color: #233e46;
  font-size: .79rem;
}
.workspace {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.workspace-body { min-width: 0; }
.workspace-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 8px;
  overflow: visible;
}
.workspace-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 2px;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #304a52;
  font-size: .68rem;
  line-height: 1.15;
}
.workspace-nav button[aria-current] {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(236, 250, 249, .72);
  color: #123e43;
  box-shadow: 0 3px 12px rgba(27, 62, 70, .12);
}
.workspace-nav button:hover { background: rgba(251, 255, 254, .5); }
.workspace-nav button:focus-visible { outline-offset: 2px; }
.nav-icon { position: relative; display: block; width: 19px; height: 19px; }
.icon-plan {
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(currentColor,currentColor) 0 4px / 100% 1px no-repeat;
}
.icon-plan::after {
  position: absolute;
  inset: 8px 3px 3px;
  content: "";
  background: repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px);
  opacity: .58;
}
.icon-metrics {
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  border-radius: 0 0 0 3px;
  background:
    linear-gradient(currentColor,currentColor) 3px 11px / 3px 5px no-repeat,
    linear-gradient(currentColor,currentColor) 8px 7px / 3px 9px no-repeat,
    linear-gradient(currentColor,currentColor) 13px 3px / 3px 13px no-repeat;
}
.icon-studios {
  width: 15px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(currentColor,currentColor) 3px 4px / 7px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 3px 7px / 7px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 5px 11px / 3px 5px no-repeat;
}

.overview-header {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 13px;
  margin-bottom: 13px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: clamp(17px, 3vw, 30px);
  min-height: 158px;
  background: linear-gradient(145deg, rgba(233, 248, 249, .7), rgba(235, 244, 242, .53));
}
.hero-context {
  margin-bottom: 7px;
  color: #23484e;
  font-size: .84rem;
  font-weight: 660;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 4.15rem);
  font-weight: 610;
  line-height: .99;
  letter-spacing: -.065em;
}
.hero .intro { margin-top: 10px; color: #355159; font-size: .91rem; }
.view-link, .primary-action {
  color: #17343e;
  background: rgba(253, 255, 254, .88);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(28, 54, 61, .09);
  border-radius: 999px;
}
.view-link:hover, .primary-action:hover { background: #fff; }
.overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  column-gap: 15px;
  row-gap: 10px;
  padding: 13px 17px;
}
.overview > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.overview .summary-progress { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid rgba(70, 103, 107, .22); }
.overview .overview-label { color: #2c4850; font-weight: 650; font-size: .76rem; }
.overview strong { font-size: 1.35rem; }
.overview small, #progress { font-size: .74rem; }
.overview progress { background: rgba(255, 255, 255, .51); }
.overview progress::-webkit-progress-bar { background: rgba(255, 255, 255, .51); }

#plan {
  display: grid;
  grid-template-columns: minmax(0, 2.26fr) minmax(238px, 1fr);
  gap: 13px;
}
.timeline-panel, .tasks, .view-panel { padding: clamp(14px, 2vw, 23px); min-width: 0; }
.timeline-panel { grid-column: 1; grid-row: 1; }
.timeline-panel .section-head { align-items: start; }
.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 8px;
}
.milestone {
  min-height: 96px;
  padding: 10px 12px;
  color: #18323a;
  background: rgba(245, 253, 252, .48);
  border: 1px solid rgba(255, 255, 255, .59);
  border-radius: 13px;
}
.milestone:hover { background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .9); }
.milestone[aria-pressed="true"] { border-color: #356b68; box-shadow: inset 0 0 0 1px #356b68; }
.milestone[data-stage="current"] { background: rgba(223, 244, 232, .83); border-color: #91b9a3; }
.milestone[data-stage="done"] { background: rgba(230, 245, 235, .65); border-color: #a2c1af; }
.milestone .phase-status { font-size: .75rem; }

.gate {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 11px 15px;
  background: rgba(247, 251, 248, .73);
}
.gate > div, .gate > div:nth-child(n + 3) {
  padding: 6px 0;
  border: 0;
}
.gate > div + div, .gate > div:nth-child(n + 3) { border-top: 1px solid rgba(76, 107, 109, .18); }
.gate-option p { margin-top: 1px; font-size: .82rem; line-height: 1.36; }
.gate-date { font-size: .75rem; font-weight: 660; }
.gate h3 { font-size: 1.12rem; }
.gate .status { margin-top: 4px; }

.tasks {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-bottom: 0;
}
h2 { font-size: clamp(1.5rem, 2.6vw, 2.06rem); font-weight: 610; letter-spacing: -.049em; }
h3 { font-weight: 670; }
.section-head p, .panel > p { color: #38535b; }
.status-filter {
  background: color-mix(in srgb, var(--signal-bg) 78%, transparent);
  border-color: rgba(255, 255, 255, .53);
  border-radius: 12px;
}
.status-filter[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-bg); }
.controls select, .form-fields input, .form-fields select, .mix-head select {
  background: rgba(253, 255, 253, .73);
  border-color: #a3b9ba;
  border-radius: 9px;
}
.table-scroll {
  background: rgba(251, 255, 254, .72);
  border-color: rgba(255, 255, 255, .76);
  border-radius: 14px;
}
th { background: rgba(222, 238, 236, .8); color: #244650; }
th, td { border-bottom-color: rgba(88, 125, 130, .15); }

.view-panel { background: rgba(237, 247, 245, .61); }
.figure, .panel {
  background: rgba(251, 255, 253, .72);
  border-color: rgba(255, 255, 255, .76);
  box-shadow: 0 5px 18px rgba(35, 65, 67, .06);
  border-radius: 15px;
}
.scenario > div { background: rgba(212, 230, 229, .8); }
.scenario button[aria-pressed="true"] { background: rgba(251, 255, 254, .94); }
.track { background: #dbe8e5; }
.track i { background: linear-gradient(90deg, #74a6ab, #39766e); }
.chart-bar[data-series="cpl"] { background: #8ba9b9; }
.chart-bar[data-series="cac"] { background: #3e717b; }
.chart-legend [data-series="cpl"]::before { background: #8ba9b9; }
.chart-legend span::before { background: #3e717b; }
.trend-line { stroke: #287669; }
.chart-point { background: #287669; }
.mix-ring[data-has-values="true"] { background: conic-gradient(#4c7f9a 0 var(--share), #68a590 var(--share) 100%); }
.mix-labels dt::before { background: #4c7f9a; }
.mix-labels dt[data-source="organic"]::before { background: #68a590; }
.draft-metrics > div { background: rgba(218, 238, 234, .63); }

footer.frame {
  margin-top: 14px !important;
  padding: 6px 11px;
  width: fit-content;
  max-width: calc(100% - 30px);
  margin-bottom: 18px;
  color: #304950;
  background: rgba(242, 249, 244, .57);
  border: 0;
  border-radius: 999px;
  font-size: .78rem;
}

@media (max-width: 1120px) {
  .frame { width: calc(100% - 54px); }
  .workspace { grid-template-columns: 76px minmax(0, 1fr); gap: 11px; }
  .hero { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
}
@media (max-width: 900px) {
  .frame { width: calc(100% - 34px); }
  .workspace { grid-template-columns: 1fr; }
  .workspace-nav {
    position: static;
    grid-template-columns: repeat(3,minmax(0,1fr));
    width: min(100%, 400px);
    padding: 4px;
    border-radius: 13px;
  }
  .workspace-nav button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 4px; font-size: .76rem; }
}
@media (max-width: 680px) {
  body { background-attachment: scroll; }
  .frame { width: calc(100% - 24px); }
  .mastinner { height: 52px; }
  .overview-header, #plan { grid-template-columns: 1fr; gap: 9px; }
  .timeline-panel, .tasks, .gate { grid-column: 1; grid-row: auto; }
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.15rem); }
  .timeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .timeline-panel .section-head { flex-wrap: wrap; }
  .overview .summary-progress { grid-column: 1 / -1; }
  .task-scroll, .studio-scroll { background: transparent; border: 0; border-radius: 0; }
  .tasks tr, .studio-scroll tr { background: rgba(252, 255, 254, .73); border-color: rgba(255, 255, 255, .75); }
}

.task-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 7px 11px; }
#preview-tasks[aria-pressed="true"] { background: #dfeee8; border-color: #82a69a; }
@media (max-width: 680px) {
  .task-head { flex-wrap: wrap; }
  .task-actions { justify-content: start; }
}
