:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --surface-dark: #102824;
  --text: #172421;
  --muted: #667672;
  --line: #dce6e3;
  --line-strong: #c8d6d2;
  --brand: #0d7b69;
  --brand-dark: #07594c;
  --brand-soft: #e2f4ef;
  --danger: #c9383c;
  --danger-soft: #fff0f0;
  --warning: #a96508;
  --warning-soft: #fff7e8;
  --success: #14825f;
  --success-soft: #eaf8f2;
  --info: #28678f;
  --info-soft: #edf6fb;
  --shadow-sm: 0 1px 2px rgba(18, 48, 41, .05), 0 8px 24px rgba(18, 48, 41, .04);
  --shadow-md: 0 18px 50px rgba(13, 58, 49, .11);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 252px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 4%, rgba(13, 123, 105, .06), transparent 28rem),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 123, 105, .32);
  outline-offset: 2px;
}

a {
  color: inherit;
}

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

code {
  padding: .08em .36em;
  border: 1px solid #d8e4e1;
  border-radius: 5px;
  color: #07594c;
  background: #f2f7f5;
  font: 600 .91em/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 22px 16px 18px;
  color: #eaf7f4;
  background:
    radial-gradient(circle at 20% 6%, rgba(105, 214, 185, .16), transparent 16rem),
    linear-gradient(180deg, #0d2924 0%, #0a211d 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #b8f2df;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: .01em;
}

.brand small {
  margin-top: 3px;
  color: #98b8b0;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #a9c1bb;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.nav__item:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.nav__item.is-active {
  color: #fff;
  border-color: rgba(183, 241, 222, .16);
  background: linear-gradient(90deg, rgba(48, 167, 139, .25), rgba(48, 167, 139, .08));
  box-shadow: inset 3px 0 0 #6bd4b8;
}

.nav__item span {
  font-size: 13px;
  font-weight: 650;
}

.sidebar__source {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.sidebar__source span,
.sidebar__source strong {
  display: block;
}

.sidebar__source span {
  margin-bottom: 5px;
  color: #86aaa1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar__source strong {
  margin-bottom: 12px;
  color: #e8f3f0;
  font-size: 12px;
  line-height: 1.45;
}

.sidebar__source a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aee4d5;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(230px, 300px) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid rgba(196, 211, 207, .78);
  background: rgba(250, 252, 251, .88);
  backdrop-filter: blur(18px);
}

.topbar__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #c9efe3;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(13,123,105,.08);
}

.topbar__identity strong,
.topbar__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__identity strong {
  font-size: 13px;
}

.topbar__identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

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

.topbar__progress-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.topbar__progress-text strong {
  font-size: 13px;
}

.topbar__progress-text span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.progress-track {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e5;
}

.progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a7865, #36b691);
  transition: width .25s ease;
}

.progress-track--large {
  height: 8px;
  background: rgba(255,255,255,.14);
}

.progress-track--large > span {
  background: linear-gradient(90deg, #9ef0d8, #56d1ae);
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #49625c;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(0,0,0,.02);
  cursor: pointer;
  transition: .16s ease;
}

.icon-button:hover {
  color: var(--brand);
  border-color: #afcbc4;
  transform: translateY(-1px);
}

.content {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 52px) 64px;
}

.view {
  animation: view-in .28s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  min-height: 430px;
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  border-radius: 28px;
  color: #f4fbf9;
  background:
    radial-gradient(circle at 80% 18%, rgba(94, 219, 184, .18), transparent 25rem),
    radial-gradient(circle at 6% 96%, rgba(23, 116, 95, .28), transparent 24rem),
    linear-gradient(135deg, #102e28 0%, #0d2521 58%, #091c19 100%);
  box-shadow: var(--shadow-md);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.hero-panel__content,
.prompt-card {
  position: relative;
  z-index: 1;
}

.hero-panel h1 {
  max-width: 750px;
  margin: 18px 0 20px;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero-panel__content > p {
  max-width: 700px;
  margin-bottom: 28px;
  color: #b8ceca;
  font-size: 15px;
  line-height: 1.75;
}

.hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: .17s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #06221b;
  background: #8fe4cc;
  box-shadow: 0 8px 24px rgba(61, 185, 151, .22);
}

.button--primary:hover {
  background: #a0ebd6;
}

.button--ghost {
  color: inherit;
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.hero-panel .button--ghost {
  color: #d5e7e2;
  border-color: rgba(255,255,255,.18);
}

.button--secondary {
  color: #17493f;
  border-color: #c5dad5;
  background: #f3f8f6;
}

.button--success {
  color: #0d694d;
  border-color: #b8dfd1;
  background: #e8f7f1;
}

.hero-panel__progress {
  max-width: 520px;
  margin-top: 36px;
}

.hero-panel__progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #9dbab3;
  font-size: 11px;
}

.hero-panel__progress strong {
  color: #b8f1e0;
}

.prompt-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: #152a26;
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  transform: rotate(1deg);
}

.prompt-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.prompt-card figcaption {
  display: grid;
  gap: 5px;
  padding: 17px 19px 19px;
}

.prompt-card figcaption span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8ec9b9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prompt-card figcaption strong {
  color: #eef8f5;
  font-size: 12px;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d5dfdc;
  border-radius: 999px;
  color: #53635f;
  background: #f4f7f6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

.badge--danger {
  color: #a92429;
  border-color: #f0c4c5;
  background: var(--danger-soft);
}

.badge--warning {
  color: #895100;
  border-color: #efd59b;
  background: var(--warning-soft);
}

.badge--success {
  color: #0a6c4c;
  border-color: #bee2d3;
  background: var(--success-soft);
}

.badge--info {
  color: #175d85;
  border-color: #c4dce9;
  background: var(--info-soft);
}

.hero-panel .badge--danger {
  color: #ffc6c8;
  border-color: rgba(255, 170, 174, .24);
  background: rgba(185, 35, 42, .18);
}

.section-block {
  margin-top: 58px;
}

.section-block--compact {
  margin-top: 38px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.score-card strong,
.score-card small {
  display: block;
}

.score-card strong {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.score-card small {
  color: var(--muted);
  font-size: 10px;
}

.score-ring {
  --ring-color: var(--brand);
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), #e7eeec 0);
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-size: 19px;
  font-weight: 850;
}

.score-ring--danger { --ring-color: var(--danger); color: var(--danger); }
.score-ring--warning { --ring-color: #e09a26; color: #9d6100; }
.score-ring--success { --ring-color: #15a675; color: #087253; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}

.metric-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.metric-card > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  letter-spacing: -.02em;
}

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

.evidence-card {
  position: relative;
  min-height: 192px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.evidence-card::after {
  content: '';
  position: absolute;
  inset: auto -28px -34px auto;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: currentColor;
  opacity: .035;
}

.evidence-card--danger { border-top: 3px solid var(--danger); }
.evidence-card--warning { border-top: 3px solid #d99122; }
.evidence-card--info { border-top: 3px solid var(--info); }

.evidence-card h3 {
  margin: 20px 0 9px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.evidence-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

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

.finding-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #3c5750;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.finding-card > svg {
  margin-bottom: 23px;
  color: var(--brand);
}

.finding-card span,
.finding-card strong {
  display: block;
}

.finding-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.finding-card strong {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.03em;
}

.finding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.finding-card--featured {
  color: #a8decf;
  border-color: #1f4a41;
  background: linear-gradient(145deg, #123b33, #102c27);
}

.finding-card--featured > svg,
.finding-card--featured strong {
  color: #a8f0db;
}

.finding-card--featured span,
.finding-card--featured p {
  color: #a7c2bb;
}

.phase-overview {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.phase-overview__item {
  display: grid;
  grid-template-columns: 48px 1fr auto 24px;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 16px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .15s ease;
}

.phase-overview__item:last-child {
  border-bottom: 0;
}

.phase-overview__item:hover {
  background: #f4faf7;
}

.phase-overview__number {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 850;
}

.phase-overview__item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.phase-overview__item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.phase-overview__count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.plan-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 25px 0 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.plan-summary > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.plan-summary strong {
  font-size: 22px;
  letter-spacing: -.03em;
}

.plan-summary span {
  color: var(--muted);
  font-size: 11px;
}

.plan-summary .button {
  margin-left: auto;
}

.filters {
  position: sticky;
  top: 88px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 180px auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 34px;
  padding: 13px;
  border: 1px solid rgba(204, 218, 214, .92);
  border-radius: 15px;
  background: rgba(248, 251, 250, .93);
  box-shadow: 0 12px 30px rgba(20, 55, 48, .07);
  backdrop-filter: blur(14px);
}

.search-field {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.search-field svg {
  flex: 0 0 auto;
  color: #78908a;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.filters > label:not(.search-field):not(.switch) {
  display: grid;
  gap: 5px;
}

.filters > label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filters select {
  height: 42px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 4px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch > span {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: #cfdad7;
  transition: .18s ease;
}

.switch > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: .18s ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(15px);
}

.switch em {
  color: #4e645e;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
}

.filter-actions button {
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.phase-section {
  margin-bottom: 48px;
}

.phase-header {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
}

.phase-header > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 850;
}

.phase-header h2 {
  margin-bottom: 3px;
  font-size: 19px;
  letter-spacing: -.025em;
}

.phase-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.task-stack {
  display: grid;
  gap: 10px;
}

.task-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.task-card.is-open {
  border-color: #bdd3cd;
  box-shadow: 0 13px 36px rgba(14, 61, 51, .08);
}

.task-card.is-complete {
  border-color: #c4e1d7;
  background: linear-gradient(90deg, #f4fbf8, #fff 22%);
}

.task-card__header {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: stretch;
}

.task-check {
  display: grid;
  place-items: center;
  align-self: start;
  width: 24px;
  height: 24px;
  margin: 22px 0 0 18px;
  padding: 0;
  border: 1.5px solid #afc0bc;
  border-radius: 7px;
  color: #fff;
  background: #fff;
  cursor: pointer;
  transition: .16s ease;
}

.task-check:hover {
  border-color: var(--brand);
}

.task-check.is-checked {
  border-color: var(--success);
  background: var(--success);
}

.task-card__toggle {
  width: 100%;
  padding: 20px 20px 17px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.task-card__title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.task-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.task-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: -.015em;
}

.task-card__toggle p {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #69817a;
  background: #f7faf9;
  transition: .18s ease;
}

.chevron.is-open {
  color: var(--brand);
  transform: rotate(90deg);
}

.task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #edf2f0;
}

.task-card__meta span {
  color: #425b55;
  font-size: 10px;
}

.task-card__meta strong {
  margin-right: 6px;
  color: #899b97;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.task-card__body {
  padding: 0 22px 22px 54px;
  border-top: 1px solid #edf2f0;
  background: #fbfdfc;
}

.task-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 38px;
  padding-top: 22px;
}

.task-card__body h4 {
  margin-bottom: 12px;
  color: #49615b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.step-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
}

.step-list li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 850;
}

.step-list p {
  margin: 2px 0 0;
  color: #40534e;
  font-size: 11px;
  line-height: 1.62;
}

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

.validation-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: #38534c;
  font-size: 11px;
  line-height: 1.52;
}

.validation-list svg {
  margin-top: 1px;
  color: var(--success);
}

.inline-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.inline-note > svg {
  margin-top: 1px;
}

.inline-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.inline-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.inline-note--evidence {
  margin-top: 20px;
  color: var(--info);
  border-color: #cee1eb;
  background: var(--info-soft);
}

.inline-note--warning {
  margin-top: 16px;
  color: var(--warning);
  border-color: #ecd7a9;
  background: var(--warning-soft);
}

.task-code-links {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.task-code-links h4 {
  margin-bottom: 2px;
}

.task-code-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #c8ddd7;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #f2f9f6;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.task-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #edf2f0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  border: 1px dashed #bdcfca;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 14px 0 5px;
  color: var(--text);
}

.empty-state p {
  font-size: 12px;
}

.code-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 28px;
}

.code-menu {
  position: sticky;
  top: 95px;
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.code-menu button {
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #60736e;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.code-menu button span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.code-menu button.is-active {
  color: var(--brand-dark);
  border-color: #c6ddd7;
  background: var(--brand-soft);
}

.code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.code-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.code-panel h2 {
  margin: 10px 0 6px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.code-panel header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.code-panel pre {
  max-height: 630px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #d9f0ea;
  background: #0e2420;
  font: 12px/1.72 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

.code-panel pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  white-space: pre;
}

.code-panel > .inline-note {
  margin: 16px 20px 20px;
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-steps article {
  min-height: 138px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.mini-steps article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 850;
}

.mini-steps strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.mini-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.acceptance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 28px;
}

.acceptance-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.acceptance-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.acceptance-card h3 {
  margin: 17px 0 12px;
  font-size: 15px;
}

.acceptance-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acceptance-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.acceptance-card li svg {
  color: var(--success);
}

.retest-timeline {
  display: grid;
  border-left: 1px solid #bdcec9;
  margin-left: 18px;
}

.retest-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 17px;
  min-height: 96px;
  margin-left: -19px;
}

.retest-timeline article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 850;
}

.retest-timeline strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.retest-timeline p {
  max-width: 850px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.decision-banner {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 17px;
  margin-top: 42px;
  padding: 24px;
  border-radius: 18px;
  color: #e9f7f3;
  background: linear-gradient(135deg, #12372f, #0d2924);
  box-shadow: var(--shadow-md);
}

.decision-banner > svg {
  color: #82d9c1;
}

.decision-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.decision-banner p {
  margin: 0;
  color: #adc8c1;
  font-size: 11px;
  line-height: 1.55;
}

.source-list {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.source-card {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 15px;
  min-height: 88px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: .16s ease;
}

.source-card:hover {
  border-color: #b2ccc5;
  transform: translateY(-1px);
}

.source-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.source-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.source-card > svg {
  color: #869993;
}

.limitations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.limitations article {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.limitations h3 {
  margin: 17px 0 7px;
  font-size: 14px;
}

.limitations p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.included-files {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.included-files span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #4e625d;
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
}

.included-files svg {
  color: var(--brand);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: #7c8d89;
  font-size: 9px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #99cdbd;
  border-radius: 12px;
  color: #eafff9;
  background: #0d5e4f;
  box-shadow: 0 18px 45px rgba(3, 41, 34, .24);
  font-size: 11px;
  font-weight: 750;
  animation: toast-in .2s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 222px; }
  .topbar { grid-template-columns: minmax(240px, 1fr) 220px auto; }
  .hero-panel { grid-template-columns: 1fr 390px; gap: 32px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 140px 160px; }
  .switch { grid-column: 1 / 2; }
  .filter-actions { grid-column: 2 / 4; justify-content: flex-end; }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 0px; }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .brand { flex: 0 0 auto; padding: 0 13px 0 0; border: 0; border-right: 1px solid rgba(255,255,255,.1); }
  .brand__mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand strong { font-size: 11px; }
  .brand small { display: none; }
  .nav { display: flex; flex: 0 0 auto; margin: 0; gap: 4px; }
  .nav__item { min-height: 38px; padding: 0 10px; }
  .nav__item span { font-size: 10px; white-space: nowrap; }
  .sidebar__source { display: none; }
  .app-main { margin-left: 0; }
  .topbar { top: 58px; grid-template-columns: minmax(0, 1fr) 210px auto; min-height: 68px; }
  .hero-panel { grid-template-columns: 1fr; }
  .prompt-card { max-width: 560px; transform: none; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-grid, .finding-grid, .acceptance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-columns { grid-template-columns: 1fr; gap: 24px; }
  .code-layout { grid-template-columns: 1fr; }
  .code-menu { position: static; display: flex; overflow-x: auto; }
  .code-menu button { flex: 0 0 220px; }
  .mini-steps, .included-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .sidebar { top: 0; }
  .brand { display: none; }
  .nav__item svg { display: none; }
  .nav__item { min-height: 36px; padding: 0 10px; }
  .topbar { top: 57px; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 15px; }
  .topbar__progress { display: none; }
  .topbar__identity small { display: none; }
  .topbar__actions { gap: 5px; }
  .icon-button { width: 36px; height: 36px; }
  .content { padding: 25px 15px 48px; }
  .hero-panel { min-height: auto; padding: 28px 20px; border-radius: 20px; }
  .hero-panel h1 { font-size: clamp(31px, 10vw, 43px); }
  .hero-panel__content > p { font-size: 13px; }
  .hero-panel__actions { display: grid; }
  .hero-panel__actions .button { width: 100%; }
  .score-grid, .evidence-grid, .finding-grid, .acceptance-grid, .limitations { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-card { min-height: 100px; }
  .phase-overview__item { grid-template-columns: 42px 1fr auto; padding: 14px; }
  .phase-overview__item > svg { display: none; }
  .phase-overview__number { width: 39px; height: 39px; }
  .plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .plan-summary > div { display: grid; gap: 0; }
  .plan-summary .button { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; }
  .filters { position: static; grid-template-columns: 1fr 1fr; padding: 10px; }
  .search-field { grid-column: 1 / -1; }
  .filters > label:nth-of-type(4) { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .phase-header { grid-template-columns: 43px 1fr auto; }
  .phase-header > span:first-child { width: 42px; height: 42px; }
  .phase-header p { display: none; }
  .task-card__header { grid-template-columns: 40px 1fr; }
  .task-check { margin-left: 13px; }
  .task-card__toggle { padding-right: 13px; }
  .task-card__title-row { gap: 9px; }
  .task-card__toggle p { display: none; }
  .task-card__meta { gap: 13px; }
  .task-card__body { padding: 0 14px 16px; }
  .inline-note--evidence { margin-top: 14px; }
  .task-card__footer .button { width: 100%; }
  .code-panel > header { display: grid; }
  .code-panel > header .button { width: 100%; }
  .code-panel pre { padding: 16px; font-size: 10px; }
  .mini-steps, .included-files { grid-template-columns: 1fr; }
  .decision-banner { grid-template-columns: 40px 1fr; }
  .decision-banner .button { grid-column: 1 / -1; width: 100%; }
  .source-card { grid-template-columns: 39px 1fr; }
  .source-card > svg { display: none; }
  .footer { display: grid; }
}

@media (max-width: 440px) {
  .nav__item { padding: 0 8px; }
  .topbar__identity strong { max-width: 170px; }
  .topbar__actions .icon-button:nth-child(2) { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 86px; }
  .phase-overview__item p { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters > * { grid-column: 1 !important; }
}

@media print {
  :root {
    --bg: #fff;
  }
  body { background: #fff; }
  .sidebar,
  .topbar,
  .footer,
  .toast,
  .hero-panel__actions,
  .filters,
  .task-check,
  .task-card__footer,
  .task-code-links,
  .button,
  .icon-button { display: none !important; }
  .app-main { margin: 0; }
  .content { width: 100%; padding: 0; }
  .hero-panel { min-height: auto; color: #111; background: #fff; border: 1px solid #bbb; box-shadow: none; }
  .hero-panel__content > p { color: #333; }
  .prompt-card { box-shadow: none; }
  .section-block { break-inside: avoid; }
  .task-card { break-inside: avoid; box-shadow: none; }
  .task-card__body { display: block !important; }
  .score-card,
  .metric-card,
  .finding-card,
  .evidence-card { box-shadow: none; }
  a { text-decoration: none; }
}
