:root {
  --ink: #1f211e;
  --muted: #6f716b;
  --paper: #f3f1ec;
  --panel: #fbfaf7;
  --panel-strong: #ffffff;
  --line: #d8d4cc;
  --line-dark: #aaa69d;
  --teal: #6f908a;
  --teal-dark: #476b65;
  --teal-soft: #e8efec;
  --amber: #9a6a21;
  --amber-soft: #f8eddb;
  --red: #9b413c;
  --red-soft: #f6e7e4;
  --blue: #476b8a;
  --blue-soft: #e7eef4;
  --green: #45735f;
  --green-soft: #e6f0eb;
  --black: #171814;
  --shadow: 0 10px 28px rgba(32, 31, 26, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

button, input, textarea { font: inherit; }

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

a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(71, 107, 138, 0.35);
  outline-offset: 3px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: #f8f6f1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 20;
}

.brand {
  padding: 2px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-group { display: grid; gap: 4px; }

.nav-label {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-item {
  min-height: 42px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #555750;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav-item:hover { background: #eeece6; }

.nav-item.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 750;
}

.nav-icon {
  width: 18px;
  text-align: center;
  color: var(--line-dark);
  font-weight: 800;
}

.nav-item.active .nav-icon { color: var(--teal-dark); }

.sidebar-foot {
  margin-top: auto;
  padding: 14px 9px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.workspace { min-width: 0; }

.topbar {
  min-height: 76px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 241, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.top-actions { display: flex; gap: 8px; align-items: center; }

.icon-button,
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
}

.icon-button { width: 42px; padding: 0; }
.button { padding: 10px 14px; }
.button:hover, .icon-button:hover { border-color: var(--line-dark); }

.button.primary {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.button.danger {
  color: var(--red);
  border-color: #dcb6b2;
  background: var(--red-soft);
}

.button[disabled] {
  color: #93958f;
  background: #e9e7e1;
  border-color: #d7d4cd;
  cursor: not-allowed;
}

.mobile-menu { display: none; }

.page {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 80px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 { margin-bottom: 14px; font-size: 22px; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 16px; letter-spacing: 0; }
h4 { margin-bottom: 6px; font-size: 14px; letter-spacing: 0; }

.lede {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-dark);
}

.status.ready { color: var(--green); background: var(--green-soft); border-color: #bbd1c5; }
.status.ready::before { background: var(--green); }
.status.warn { color: var(--amber); background: var(--amber-soft); border-color: #e1cda7; }
.status.warn::before { background: var(--amber); }
.status.blocked { color: var(--red); background: var(--red-soft); border-color: #dfbbb7; }
.status.blocked::before { background: var(--red); }
.status.info { color: var(--blue); background: var(--blue-soft); border-color: #b9ccdc; }
.status.info::before { background: var(--blue); }

.status-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.review-progress-pill {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  background: var(--black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.stage-wrap {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stage-head {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 0 6px;
}

.stage {
  position: relative;
  min-width: 96px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.stage::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.stage:first-child::before { left: 50%; width: 50%; }
.stage:last-child::before { width: 50%; }

.stage-dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border: 2px solid var(--line-dark);
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stage.done .stage-dot { color: #fff; border-color: var(--green); background: var(--green); }
.stage.current .stage-dot { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); box-shadow: 0 0 0 5px rgba(111, 144, 138, 0.18); }
.stage.blocked-stage .stage-dot { color: var(--red); border-color: #d4aaa6; background: var(--red-soft); }
.stage strong { display: block; color: var(--ink); font-size: 12px; }
.stage small { display: block; margin-top: 2px; font-size: 10px; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 246, 241, 0.96);
  overflow-x: auto;
  box-shadow: 0 6px 18px rgba(32, 31, 26, 0.04);
}

.tab {
  min-height: 40px;
  padding: 9px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.tab:hover { background: #ece9e2; }
.tab[aria-selected="true"] { color: var(--teal-dark); background: var(--teal-soft); }

.panel[hidden] { display: none; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card.dark { color: #f5f2eb; background: var(--black); border-color: var(--black); }
.card.dark .muted, .card.dark .card-label { color: #aaa99f; }
.card.teal { background: var(--teal-soft); border-color: #c7d8d3; }
.card.amber { background: var(--amber-soft); border-color: #ead8b6; }
.card.red { background: var(--red-soft); border-color: #e5c5c1; }

.card-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.big-number {
  display: block;
  margin-bottom: 4px;
  font-size: 46px;
  font-weight: 800;
  line-height: 0.95;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.decision-line {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
}

.action-row { display: flex; flex-wrap: wrap; gap: 8px; }

.scope-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.confidence-bar,
.mini-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedbd4;
}

.confidence-bar > span,
.mini-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-dark);
}

.score-list { display: grid; gap: 10px; }

.score-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 2fr) 38px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.score-row strong { text-align: right; }

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

.blocker-list li,
.plain-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.blocker-list li:last-child,
.plain-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.blocker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.blocker-row strong { display: block; margin-bottom: 2px; font-size: 13px; }
.blocker-row span { color: var(--muted); font-size: 12px; }

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

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

.mini-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}

.mini-card.recommended { border: 2px solid var(--teal-dark); }

.tradeoff {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.route-switcher,
.platform-switcher,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-button,
.filter-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.choice-button[aria-pressed="true"],
.filter-button[aria-pressed="true"] {
  color: var(--teal-dark);
  border-color: #9fbab3;
  background: var(--teal-soft);
}

.mockup-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.mockup-grid > *,
.platform-preview { min-width: 0; max-width: 100%; }

.mockup-stage {
  min-height: 560px;
  padding: 22px;
  border-radius: 8px;
  background: #dad7d0;
  display: grid;
  place-items: center;
}

.meta-ad {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid #c9c6bf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(36, 34, 29, 0.12);
}

.ad-brand {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
}

.ad-brand strong { display: block; font-size: 13px; }
.ad-brand span { color: #777; font-size: 11px; }
.ad-copy { padding: 0 14px 13px; font-size: 13px; }
.ad-image { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; display: block; }

.ad-footer {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #f5f5f5;
}

.ad-footer small { display: block; color: #777; text-transform: uppercase; }
.ad-footer strong { display: block; font-size: 14px; }
.ad-cta { padding: 8px 10px; border-radius: 5px; background: #dedede; font-size: 12px; font-weight: 750; }

.google-search {
  width: min(100%, 650px);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(36, 34, 29, 0.12);
}

.sponsored { margin-bottom: 8px; color: #4d5156; font-size: 12px; }
.search-url { color: #202124; font-size: 13px; }
.search-title { margin: 6px 0; color: #1a0dab; font-size: 21px; line-height: 1.2; }
.search-copy { color: #4d5156; font-size: 13px; }
.sitelinks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sitelink { color: #1a0dab; font-size: 13px; }

.video-frame {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 40px rgba(36, 34, 29, 0.18);
}

.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.68; }
.video-copy { position: absolute; inset: auto 18px 22px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.video-copy strong { display: block; font-size: 26px; line-height: 1.08; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 850;
}

.reference-grid { display: grid; gap: 10px; }
.reference {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}
.reference a { color: var(--blue); font-weight: 750; }
.reference p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 4px 0 10px;
}

.journey-step { position: relative; padding: 0 10px; text-align: center; }
.journey-step::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--line); }
.journey-step:first-child::before { left: 50%; }
.journey-step:last-child::before { right: 50%; }
.journey-dot { position: relative; z-index: 1; width: 38px; height: 38px; margin: 0 auto 9px; border: 2px solid var(--teal); border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 850; }
.journey-step strong { display: block; font-size: 12px; }
.journey-step small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

details {
  border-top: 1px solid var(--line);
  padding: 0;
}

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  min-height: 48px;
  padding: 13px 34px 13px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 5px; top: 11px; color: var(--muted); font-size: 20px; }
details[open] summary::after { content: "−"; }
.details-body { padding: 0 0 16px; color: var(--muted); font-size: 13px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

.approval-group { display: grid; gap: 8px; }

.approval-option {
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.approval-option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal-dark); }
.approval-option strong { display: block; font-size: 13px; }
.approval-option small { color: var(--muted); }
.approval-option.locked { color: var(--muted); background: #eceae4; }

.review-note { margin-top: 12px; }
.review-note textarea { width: 100%; min-height: 96px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; resize: vertical; background: #fff; }
.save-state { margin-top: 10px; color: var(--green); font-size: 12px; }

.avatar-photo {
  object-fit: cover;
  object-position: 50% 30%;
  padding: 0;
  background: #eee;
}

.ad-image-wrap {
  position: relative;
  overflow: hidden;
  background: #1f211e;
}

.ad-image-wrap .ad-image { filter: brightness(0.66) saturate(0.82); }

.poster-kicker,
.poster-headline,
.poster-name {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.poster-kicker {
  top: 20px;
  left: 20px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.poster-headline {
  top: 62px;
  left: 20px;
  width: 62%;
  font-size: 29px;
  font-weight: 820;
  line-height: 1.04;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.poster-founder {
  position: absolute;
  z-index: 1;
  right: -8px;
  bottom: 0;
  width: 46%;
  max-height: 78%;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to top, #000 78%, transparent 100%);
  mask-image: linear-gradient(to top, #000 78%, transparent 100%);
}

.poster-founder-cutout {
  right: -2%;
  width: 54%;
  max-height: 88%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.28));
  -webkit-mask-image: none;
  mask-image: none;
}

.creative-approval-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.creative-approval-row strong,
.creative-approval-row span { display: block; }

.poster-name { left: 20px; bottom: 18px; font-size: 11px; font-weight: 800; }

.video-frame img { object-position: 50% 18%; }

.video-topline {
  position: absolute;
  inset: 28px 18px auto;
  padding: 7px 9px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.carousel-preview {
  width: min(100%, 700px);
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 9px;
}

.carousel-card {
  min-height: 290px;
  padding: 16px;
  border-radius: 7px;
  background: #f9f7f2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 12px 30px rgba(36,34,29,.1);
}

.carousel-card > span {
  width: 34px;
  height: 34px;
  margin-bottom: auto;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  display: grid;
  place-items: center;
  font-weight: 850;
}

.carousel-card strong { font-size: 18px; line-height: 1.12; }
.carousel-card small { margin-top: 10px; color: var(--muted); }
.carousel-card.final { color: #fff; background: var(--black); }
.carousel-card.final img { width: 88px; height: 88px; margin-bottom: auto; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.carousel-card.final small { color: #c6c4bd; }

.evidence-board { display: grid; gap: 14px; }

.evidence-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.reference-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ececec;
  display: block;
}

.reference-shot img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: center; display: block; }
.evidence-copy { min-width: 0; }
.evidence-copy h3 { margin-top: 10px; }
.evidence-copy > a { color: var(--blue); font-size: 13px; font-weight: 750; }
.evidence-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }

.evidence-map {
  margin: 13px 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px 10px;
  font-size: 12px;
}

.evidence-map span { color: var(--teal-dark); font-weight: 850; text-transform: uppercase; }
.evidence-map p { margin: 0; color: var(--muted); }
.verified-card { background: var(--green-soft); border-color: #c2d7cd; }

.metric-reference {
  min-height: 240px;
  padding: 26px;
  color: #fff;
  background: var(--green);
  display: grid;
  align-content: center;
  border-radius: 6px;
}

.metric-reference span { font-size: 54px; font-weight: 850; line-height: 1; }
.metric-reference small { margin: 2px 0 20px; font-size: 13px; }

.decision-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
}

.decision-card.is-complete {
  border-color: #9ab7aa;
  box-shadow: inset 4px 0 0 var(--green);
}

.review-status-strip {
  min-height: 70px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-status-strip .card-label { color: #aaa9a2; }
.review-status-strip strong { display: block; font-size: 17px; }
.review-strip-progress { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; }

.decision-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 850;
}

.decision-content { min-width: 0; }
.decision-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.decision-head h2 { margin-bottom: 7px; }

.decision-options {
  margin: 14px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-options label {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.decision-options label:has(input:checked) { color: var(--teal-dark); border-color: #8eada5; background: var(--teal-soft); }
.decision-options input { accent-color: var(--teal-dark); }
.decision-card textarea,
.feedback-grid textarea,
.large-textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  resize: vertical;
}

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

.feedback-grid label,
.field-label { color: var(--muted); font-size: 12px; font-weight: 750; }
.feedback-grid textarea { margin-top: 5px; }
.large-textarea { min-height: 130px; margin-top: 7px; }
.decision-actions { margin-top: 12px; }
.button.ghost { border-color: transparent; background: transparent; }

.conditional-feedback[hidden] { display: none !important; }

.decision-consequence {
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--line-dark);
  background: #f0eee8;
  color: var(--muted);
  font-size: 12px;
}

.decision-consequence strong { color: var(--ink); }

.task-preview { display: grid; gap: 8px; }
.task-item { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-strong); }
.task-item strong { display: block; font-size: 12px; }
.task-item span { color: var(--muted); font-size: 11px; }
.task-owner {
  width: fit-content;
  margin-bottom: 3px;
  color: var(--teal-dark) !important;
  font-size: 10px !important;
  font-weight: 850;
  text-transform: uppercase;
}

.review-sticky-footer {
  position: sticky;
  z-index: 18;
  bottom: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  background: rgba(251,250,247,.98);
  box-shadow: 0 14px 36px rgba(32,31,26,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-sticky-footer > div:first-child { display: grid; gap: 2px; }
.review-sticky-footer span { color: var(--muted); font-size: 11px; }

.payload-preview {
  max-height: 420px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 7px;
  color: #dbe6e2;
  background: #1d2422;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.campaign-table {
  display: grid;
  gap: 8px;
}

.campaign-row {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 42px minmax(220px, 2fr) minmax(120px, 1fr) minmax(190px, 1.4fr) 88px 110px;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.campaign-row.header {
  padding-top: 5px;
  padding-bottom: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.campaign-row:not(.header):hover { border-color: var(--line-dark); background: #fff; }
.rank { font-size: 20px; font-weight: 800; text-align: center; }
.campaign-title { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 780; }
.campaign-purpose { color: var(--muted); font-size: 12px; }
.confidence-number { font-size: 24px; font-weight: 800; }

.notice {
  padding: 13px 15px;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--blue-soft);
  color: #33495b;
  font-size: 13px;
}
.notice.warn { border-left-color: var(--amber); background: var(--amber-soft); color: #6f4b19; }
.notice.danger { border-left-color: var(--red); background: var(--red-soft); color: #6d302c; }

.empty-copy { color: var(--muted); text-align: center; padding: 40px 10px; }

dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(23, 24, 20, 0.28);
}
dialog::backdrop { background: rgba(23, 24, 20, 0.55); }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.dialog-body { padding: 20px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.mobile-nav-dialog { width: min(360px, calc(100% - 24px)); }
.mobile-nav-list { display: grid; gap: 6px; }
.mobile-nav-list a { min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-weight: 750; }
.mobile-nav-list a:hover { background: var(--teal-soft); border-color: #b7cbc5; }

.sticky-mobile-actions { display: none; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .campaign-row { grid-template-columns: 34px minmax(210px, 2fr) minmax(110px, 1fr) 78px 100px; }
  .campaign-row > :nth-child(4) { display: none; }
  .span-8, .span-7 { grid-column: span 12; }
  .span-5, .span-4 { grid-column: span 6; }
  .span-3 { grid-column: span 4; }
  .mockup-grid { grid-template-columns: 1fr; }
  .evidence-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 62px; padding: 10px 14px; position: sticky; top: 0; z-index: 30; }
  .mobile-menu { display: inline-flex; }
  .top-actions .button { display: none; }
  .page { width: min(100% - 24px, 680px); padding: 18px 0 92px; }
  .page-header { display: block; }
  .status { white-space: normal; }
  .status-stack { justify-content: flex-start; margin-top: 12px; }
  h1 { font-size: 29px; }
  .lede { font-size: 14px; }
  .stage-wrap { padding: 14px 8px; }
  .stage-head { padding: 0 6px; }
  .stage-rail { grid-template-columns: repeat(7, 108px); }
  .tabs { top: 62px; margin-left: -2px; margin-right: -2px; }
  .bento { grid-template-columns: 1fr; }
  .span-12, .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: 1; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .card { padding: 17px; }
  .mockup-stage { min-height: 470px; padding: 12px; }
  .meta-ad { width: 100%; }
  .google-search { padding: 16px; }
  .journey { grid-template-columns: repeat(6, 112px); }
  .score-row { grid-template-columns: 100px minmax(80px, 1fr) 34px; }
  .campaign-row,
  .campaign-row.header { grid-template-columns: 34px minmax(0, 1fr) 66px; }
  .campaign-row.header > :nth-child(n+4),
  .campaign-row > :nth-child(n+4) { display: none; }
  .campaign-row { align-items: start; }
  .campaign-row .status { white-space: normal; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .data-table td { padding: 4px 0; border: 0; }
  .data-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
  .approval-option { grid-template-columns: auto minmax(0, 1fr); }
  .approval-option > small { grid-column: 2; }
  .carousel-preview { grid-template-columns: repeat(4, 190px); overflow-x: auto; padding-bottom: 10px; }
  .decision-card { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .decision-number { width: 34px; height: 34px; }
  .decision-head { display: block; }
  .decision-head .status { display: inline-flex; margin-top: 7px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .poster-headline { width: 68%; font-size: 24px; }
  .poster-founder-cutout { width: 58%; }
  .creative-approval-row,
  .review-status-strip { align-items: stretch; flex-direction: column; }
  .review-strip-progress { justify-content: space-between; }
  .review-sticky-footer { display: none !important; }
  .sticky-mobile-actions { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(248, 246, 241, 0.98); }
}

@media print {
  .sidebar, .topbar, .tabs, .action-row, .sticky-mobile-actions, dialog { display: none !important; }
  .app-shell { display: block; }
  .page { width: 100%; padding: 0; }
  .panel[hidden] { display: block; }
  .card, .stage-wrap { break-inside: avoid; box-shadow: none; }
}
