:root {
  --bg: #eef2ef;
  --surface: #ffffff;
  --surface-2: #f6f8f7;
  --ink: #151b19;
  --muted: #64716d;
  --line: #d7dfdc;
  --teal: #08735f;
  --teal-2: #0da684;
  --blue: #315fbe;
  --amber: #b96f0f;
  --red: #bc4337;
  --green: #168856;
  --violet: #5c58b7;
  --shadow: 0 22px 60px rgba(24, 42, 37, 0.12);
  --shadow-soft: 0 10px 28px rgba(24, 42, 37, 0.08);
}

/* Final AI Offer/NEXT OFFER visual override */
html,
body {
  background:
    radial-gradient(circle at 50% -140px, rgba(18, 103, 255, 0.1), transparent 390px),
    linear-gradient(180deg, #f9fbfb 0%, #f4f6f7 52%, #eef4f5 100%) !important;
  color: #101418;
}

.app-shell {
  display: block !important;
  width: min(1720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 48px) 34px;
}

.global-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(640px, 1.55fr) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  width: min(1280px, 100%);
  margin: 0 auto 26px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(24px);
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.global-brand .brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(18, 103, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 103, 255, 0.18), rgba(17, 184, 156, 0.18)),
    #eef6ff;
  color: #1267ff;
  box-shadow: 0 14px 30px rgba(18, 103, 255, 0.16);
}

.global-brand p,
.eyebrow,
.section-label {
  color: #11b89c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-brand h1 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border-radius: 14px;
  background: rgba(16, 20, 24, 0.04);
  padding: 5px;
}

.nav-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  font-weight: 850;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.nav-btn.active {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.global-start.primary-button {
  width: auto;
  min-width: 138px;
  min-height: 48px;
  border-radius: 13px;
  white-space: nowrap;
}

.workspace {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
}

.topbar.page-intro {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(22px);
}

.page-intro h1 {
  margin: 8px 0 10px;
  color: #101418;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.page-intro p {
  max-width: 920px;
  margin: 0;
  color: #66706f;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.65;
}

.primary-button {
  border-color: transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #101f4d, #1267ff 62%, #11b89c) !important;
  box-shadow: 0 18px 36px rgba(18, 103, 255, 0.2);
}

.ghost-button,
.mini-button,
.segment,
.deadline-chip,
.tab,
.accept-button,
.tool {
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.setup-panel,
.visual-panel,
.pipeline,
.product-tabs,
.insight-card,
.pressure-card,
.package-main,
.package-side,
.deliverable-card,
.issue-card,
.qa-panel,
.validation-main,
.validation-side,
.names-main,
.names-side,
.name-card,
.claim-card,
.evidence-map,
.word-preview,
.style-check,
.score-panel,
.fix-panel,
.plan-card,
.funnel-panel {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(22px);
}

.hero-grid {
  grid-template-columns: minmax(380px, 0.54fr) minmax(520px, 1fr);
  gap: 20px;
}

textarea,
select,
input {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #101418;
}

.segment.active,
.tab.active,
.status-pill,
.confidence-badge,
.quality-chip,
.deadline-chip.active {
  border-color: transparent;
  color: #155eef;
  background: rgba(18, 103, 255, 0.08);
  box-shadow: none;
}

.tab.active {
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.visual-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  overflow: hidden;
  padding: 24px;
}

.visual-panel img {
  display: none;
}

.audit-console {
  position: static;
  width: 100%;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #101418;
  box-shadow: none;
}

.audit-head span,
.audit-score span,
.audit-bars span,
.visual-overlay span,
.visual-overlay small {
  color: #66706f;
}

.audit-head strong {
  background: rgba(17, 184, 156, 0.1);
  color: #067647;
}

.audit-score div:not(.score-arrow) {
  border-color: rgba(16, 20, 24, 0.1);
  background: rgba(248, 250, 252, 0.82);
}

.audit-score strong {
  color: #101418;
}

.audit-bars i,
.progress-track span,
.validation-meter i {
  background: linear-gradient(90deg, #1267ff, #11b89c);
}

.visual-overlay {
  position: static;
  max-width: none;
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.file-drop,
.deadline-box,
.metric-row div,
.source-table div,
.score-lift div,
.mini-metrics div,
.unlock-strip div,
.validation-steps article {
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    min-width: 96px;
    flex: 0 0 auto;
  }

  .global-start.primary-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .global-header {
    top: 8px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .global-brand .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .topbar.page-intro {
    padding: 18px;
  }

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

  .visual-panel {
    min-height: auto;
    padding: 16px;
  }
}

/* AI Offer style refresh */
:root {
  --bg: #f4f6f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #f8fafc;
  --ink: #101418;
  --muted: #66706f;
  --line: rgba(16, 20, 24, 0.1);
  --teal: #11b89c;
  --teal-2: #0ea5a1;
  --blue: #1267ff;
  --amber: #f59e0b;
  --red: #e5484d;
  --green: #12b76a;
  --violet: #315fbe;
  --shadow: 0 28px 80px rgba(23, 31, 38, 0.1);
  --shadow-soft: 0 10px 30px rgba(23, 31, 38, 0.07);
}

html,
body {
  background:
    radial-gradient(circle at 50% -140px, rgba(18, 103, 255, 0.1), transparent 390px),
    linear-gradient(180deg, #f9fbfb 0%, #f4f6f7 52%, #eef4f5 100%);
}

.app-shell {
  display: block;
  width: min(1720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 48px) 34px;
}

.global-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(640px, 1.55fr) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  width: min(1280px, 100%);
  margin: 0 auto 26px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.global-brand .brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(18, 103, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 103, 255, 0.18), rgba(17, 184, 156, 0.18)),
    #eef6ff;
  color: #1267ff;
  box-shadow: 0 14px 30px rgba(18, 103, 255, 0.16);
}

.global-brand p,
.eyebrow,
.section-label {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-brand h1 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border-radius: 14px;
  background: rgba(16, 20, 24, 0.04);
  padding: 5px;
}

.nav-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

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

.nav-btn.active {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.global-start.primary-button {
  width: auto;
  min-width: 138px;
  min-height: 48px;
  border-radius: 13px;
  white-space: nowrap;
}

.workspace {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.topbar.page-intro {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.page-intro h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.page-intro p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.65;
}

.status-pill,
.confidence-badge,
.quality-chip,
.score-pill,
.source-type,
.name-rank {
  background: rgba(18, 103, 255, 0.08);
  color: #155eef;
}

.primary-button {
  border-color: transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #101f4d, #1267ff 62%, #11b89c);
  box-shadow: 0 18px 36px rgba(18, 103, 255, 0.2);
}

.primary-button:hover {
  background: linear-gradient(135deg, #0d1b3f, #155eef 58%, #0ea5a1);
}

.ghost-button,
.mini-button,
.segment,
.deadline-chip,
.tab,
.accept-button,
.tool {
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.setup-panel,
.visual-panel,
.pipeline,
.product-tabs,
.insight-card,
.pressure-card,
.package-main,
.package-side,
.deliverable-card,
.issue-card,
.qa-panel,
.validation-main,
.validation-side,
.names-main,
.names-side,
.name-card,
.claim-card,
.evidence-map,
.word-preview,
.style-check,
.score-panel,
.fix-panel,
.plan-card,
.funnel-panel {
  border-color: var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.hero-grid {
  grid-template-columns: minmax(380px, 0.54fr) minmax(520px, 1fr);
  gap: 20px;
}

.panel-heading h2,
.pipeline-head h2 {
  font-size: 24px;
}

textarea,
select,
input {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.file-drop,
.deadline-box,
.metric-row div,
.source-table div,
.score-lift div,
.mini-metrics div,
.unlock-strip div,
.validation-steps article,
.plan-metrics article,
.paid-value-grid article,
.price-option {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}

.segment.active,
.tab.active {
  border-color: transparent;
  color: #155eef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.deadline-chip.active {
  border-color: rgba(18, 103, 255, 0.24);
  background: rgba(18, 103, 255, 0.08);
  color: #155eef;
}

.visual-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  overflow: hidden;
  padding: 24px;
}

.visual-panel img {
  display: none;
}

.audit-console {
  position: static;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: none;
}

.audit-head span,
.audit-score span,
.audit-bars span {
  color: var(--muted);
}

.audit-head strong {
  background: rgba(17, 184, 156, 0.1);
  color: #067647;
}

.audit-score div:not(.score-arrow) {
  border-color: var(--line);
  background: rgba(248, 250, 252, 0.82);
}

.audit-score strong {
  color: var(--ink);
}

.audit-bars i {
  background: linear-gradient(90deg, #1267ff, #11b89c);
}

.visual-overlay {
  position: static;
  max-width: none;
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.pressure-card.urgent,
.deliverable-card.done,
.name-card.recommended {
  border-color: rgba(17, 184, 156, 0.24);
  background:
    linear-gradient(135deg, rgba(17, 184, 156, 0.08), rgba(18, 103, 255, 0.04)),
    rgba(255, 255, 255, 0.9);
}

.progress-track span,
.validation-meter i {
  background: linear-gradient(90deg, #1267ff, #11b89c);
}

.toast {
  border-radius: 16px;
  background: #101418;
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    min-width: 96px;
    flex: 0 0 auto;
  }

  .global-start.primary-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .global-header {
    top: 8px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .global-brand .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .topbar.page-intro {
    padding: 18px;
  }

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

  .visual-panel {
    min-height: auto;
    padding: 16px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0) 260px),
    radial-gradient(circle at 20% 0%, rgba(8,115,95,0.08), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sprite {
  display: none;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 18px 12px;
  background: linear-gradient(180deg, #0d211d, #15201e);
  color: #fff;
  z-index: 5;
  box-shadow: 10px 0 34px rgba(19, 34, 30, 0.13);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f8ef;
  color: var(--teal);
  font-weight: 900;
  font-size: 22px;
}

.side-nav {
  display: grid;
  gap: 12px;
  width: 100%;
}

.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #c8d6d1;
  background: transparent;
}

.icon-button svg,
.ghost-button svg,
.primary-button svg,
.file-drop svg,
.check-row svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-button:hover,
.icon-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.icon-button::after {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  content: attr(data-tooltip);
  display: none;
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 6px;
  background: #17201d;
  color: #fff;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.icon-button:hover::after {
  display: block;
}

.bottom-action {
  margin-top: auto;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

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

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 850;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.ghost-button,
.primary-button,
.mini-button,
.segment,
.deadline-chip,
.tab,
.accept-button,
.tool {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ghost-button,
.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  font-weight: 720;
}

.ghost-button:hover,
.mini-button:hover,
.tab:hover,
.segment:hover,
.deadline-chip:hover,
.accept-button:hover,
.tool:hover {
  border-color: #b6c8c1;
  background: #f8fbfa;
  transform: translateY(-1px);
}

.primary-button {
  width: 100%;
  border-color: var(--teal);
  background: linear-gradient(135deg, #08735f, #0b8b74);
  color: #fff;
  box-shadow: 0 14px 28px rgba(8, 115, 95, 0.23);
}

.primary-button:hover {
  background: linear-gradient(135deg, #075f51, #08735f);
  transform: translateY(-1px);
}

.primary-button.compact {
  width: auto;
  min-height: 40px;
}

.hero-grid {
  display: none;
  grid-template-columns: minmax(390px, 0.86fr) minmax(520px, 1.14fr);
  gap: 20px;
  align-items: stretch;
}

.hero-grid.active {
  display: grid;
}

.setup-panel,
.visual-panel,
.pipeline,
.product-tabs {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.setup-panel {
  padding: 22px;
}

.panel-heading,
.pipeline-head,
.map-heading,
.claim-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.pipeline-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.confidence-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.field-label {
  display: block;
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
  line-height: 1.55;
  background: #fbfcfc;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 123, 104, 0.12);
}

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

.segment {
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.segment.active {
  border-color: var(--teal);
  background: #e8f6f1;
  color: var(--teal);
  font-weight: 780;
  box-shadow: inset 0 0 0 1px rgba(8, 115, 95, 0.13);
}

.deadline-box {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfc, #f5faf8);
}

.deadline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.deadline-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deadline-head strong {
  color: var(--teal);
  font-size: 14px;
}

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

.deadline-chip {
  min-height: 34px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.deadline-chip.active {
  border-color: rgba(185, 111, 15, 0.42);
  background: #fff4e4;
  color: #8a520a;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(185, 111, 15, 0.12);
}

.file-drop {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed #b9c9c4;
  border-radius: 14px;
  background: #f7faf9;
}

.file-drop svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: #e7f3ef;
  color: var(--teal);
}

.file-drop strong,
.file-drop span {
  display: block;
}

.file-drop strong {
  font-size: 14px;
}

.file-drop span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 720;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.metric-row div,
.source-table div,
.score-panel,
.fix-panel,
.plan-card,
.funnel-panel,
.style-check {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
}

.metric-row div {
  padding: 12px;
}

.metric-row span,
.source-table span,
.plan-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.visual-panel {
  position: relative;
  min-height: 428px;
  overflow: hidden;
  background: #dcebe8;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}

.visual-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.visual-overlay span,
.visual-overlay small {
  display: block;
  color: var(--muted);
}

.visual-overlay strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.audit-console {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(380px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(15, 28, 25, 0.88);
  color: #fff;
  box-shadow: 0 24px 60px rgba(10, 24, 20, 0.28);
  backdrop-filter: blur(18px);
}

.audit-head,
.audit-score {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.audit-head span {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 800;
}

.audit-head strong {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(13, 166, 132, 0.18);
  color: #bdf6e6;
  font-size: 12px;
}

.audit-score {
  margin: 18px 0;
}

.audit-score div:not(.score-arrow) {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.audit-score span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

.audit-score strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
}

.score-arrow {
  color: rgba(255,255,255,0.58);
  font-weight: 900;
}

.audit-bars {
  display: grid;
  gap: 10px;
}

.audit-bars div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.audit-bars span {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.audit-bars i {
  position: relative;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.audit-bars i::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b84b, #19c8a2);
}

.pipeline {
  margin-top: 18px;
  padding: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.insight-card {
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
}

.insight-card h3 {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.insight-card p,
.insight-card li {
  color: var(--muted);
  line-height: 1.6;
}

.insight-card p {
  margin: 0;
}

.insight-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #eaf7f3;
  color: var(--teal);
}

.price-strip strong {
  font-size: 22px;
}

.price-strip span {
  color: #43635b;
  font-size: 13px;
}

.pressure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.pressure-card {
  min-height: 154px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
}

.pressure-card.urgent {
  border-color: rgba(185, 111, 15, 0.28);
  background: linear-gradient(180deg, #fff8ed, rgba(255,255,255,0.94));
}

.pressure-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.pressure-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pipeline-head {
  align-items: center;
}

#runState {
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  height: 10px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeec;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal-2));
  transition: width 0.45s ease;
}

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

.step {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fbfcfc;
  font-size: 13px;
  font-weight: 720;
}

.step svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.step.active,
.step.done {
  color: var(--teal);
  border-color: rgba(12, 123, 104, 0.32);
  background: #eaf7f3;
  box-shadow: inset 0 0 0 1px rgba(8, 115, 95, 0.06);
}

.step.done {
  color: var(--green);
}

.product-tabs {
  margin-top: 18px;
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  white-space: nowrap;
}

.tab.active {
  border-color: rgba(8, 115, 95, 0.42);
  color: var(--teal);
  background: #eaf7f3;
  font-weight: 800;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 300px;
  gap: 16px;
}

.package-main,
.package-side,
.deliverable-card,
.issue-card,
.qa-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.package-main,
.package-side {
  padding: 16px;
}

.package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.package-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.quality-chip {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eaf7f3;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.deliverable-card {
  min-height: 156px;
  padding: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.deliverable-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 115, 95, 0.32);
  box-shadow: var(--shadow-soft);
}

.deliverable-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 10px;
  fill: currentColor;
  color: var(--teal);
  background: #e8f6f1;
}

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

.deliverable-card strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.deliverable-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.deliverable-card.done {
  border-color: rgba(12, 123, 104, 0.32);
  background: linear-gradient(180deg, #f2faf7, #fbfcfc);
}

.unlock-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.unlock-strip div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.unlock-strip span,
.validation-side span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.unlock-strip strong {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
}

.score-lift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.score-lift div,
.mini-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.score-lift span,
.mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-lift strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 38px;
  line-height: 1;
}

.mini-metrics {
  display: grid;
  gap: 8px;
}

.mini-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

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

.claim-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.claim-card.selected {
  border-color: rgba(12, 123, 104, 0.42);
  background: #f3fbf8;
}

.source-type {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: #e5f3ef;
  font-size: 12px;
  font-weight: 800;
}

.source-type.amber {
  color: var(--amber);
  background: #fff4df;
}

.source-type.red {
  color: var(--red);
  background: #fdecea;
}

.accept-button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.accept-button.accepted {
  border-color: rgba(28, 140, 87, 0.35);
  color: var(--green);
  background: #eaf7ef;
}

.claim-card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.42;
}

.claim-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.claim-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.claim-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf1f0;
  color: var(--muted);
  font-size: 12px;
}

.evidence-map {
  min-height: 440px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.map-heading strong {
  color: var(--muted);
  font-size: 13px;
}

.graph-canvas {
  position: relative;
  height: 285px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d9e2de;
  border-radius: 16px;
  background:
    linear-gradient(#eff5f2 1px, transparent 1px),
    linear-gradient(90deg, #eff5f2 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c9d8d3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 40, 34, 0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.node.main {
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  min-width: 110px;
  min-height: 56px;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.n1 { left: 8%; top: 12%; }
.n2 { right: 10%; top: 10%; }
.n3 { left: 12%; bottom: 14%; }
.n4 { right: 9%; bottom: 16%; }

.line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: left center;
  background: #9eb5ae;
}

.l1 { left: 25%; top: 35%; width: 170px; transform: rotate(22deg); }
.l2 { left: 52%; top: 35%; width: 160px; transform: rotate(-24deg); }
.l3 { left: 27%; top: 62%; width: 160px; transform: rotate(-24deg); }
.l4 { left: 54%; top: 61%; width: 155px; transform: rotate(24deg); }

.source-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.source-table div {
  padding: 12px;
}

.source-table strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.draft-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 300px;
  gap: 16px;
}

.word-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e7ecea;
}

.word-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tool {
  width: 34px;
  height: 32px;
  font-weight: 800;
}

.tool.active {
  color: var(--teal);
  background: #eaf7f3;
}

.word-toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.paper-page {
  width: min(720px, calc(100% - 28px));
  min-height: 520px;
  margin: 14px auto;
  padding: 42px 50px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(25, 39, 36, 0.14);
}

.paper-page h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
}

.paper-page h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.paper-page p {
  margin: 0 0 12px;
  line-height: 1.85;
}

.paper-page mark {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--red);
  background: #fdecea;
}

.paper-page blockquote {
  margin: 18px 0;
  padding: 10px 12px;
  border-left: 4px solid var(--amber);
  background: #fff8ed;
  color: #6a4d23;
}

.style-check {
  padding: 16px;
}

.style-check h3,
.fix-panel h3,
.funnel-panel h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.check-row:last-of-type {
  margin-bottom: 14px;
}

.check-row.pass svg {
  color: var(--green);
}

.check-row.warn svg {
  color: var(--amber);
}

.review-grid {
  display: grid;
  grid-template-columns: 220px minmax(360px, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.score-panel {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  padding: 18px;
}

.score-panel strong {
  margin: 10px 0;
  font-size: 68px;
  line-height: 1;
  color: var(--teal);
}

.score-panel span:last-child {
  color: var(--muted);
}

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

.risk-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfc;
}

.risk-item strong,
.risk-item span {
  display: block;
}

.risk-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.issue-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.issue-card {
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.issue-card.high {
  border-color: rgba(200, 70, 54, 0.32);
}

.issue-card.medium {
  border-color: rgba(197, 122, 18, 0.36);
}

.issue-card.low {
  border-color: rgba(12, 123, 104, 0.28);
}

.issue-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.issue-top span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.issue-card.medium .issue-top span {
  color: var(--amber);
}

.issue-card.low .issue-top span {
  color: var(--teal);
}

.issue-top strong {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.issue-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.issue-card > p,
.issue-card small {
  color: var(--muted);
  line-height: 1.55;
}

.rewrite-box {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.rewrite-box div {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.rewrite-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rewrite-box p {
  margin: 0;
  line-height: 1.55;
}

.fix-panel {
  padding: 16px;
}

.fix-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.checkout-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(12, 123, 104, 0.28);
  border-radius: 14px;
  background: #f0faf6;
}

.checkout-box strong {
  color: var(--teal);
  font-size: 28px;
}

.checkout-box span {
  color: var(--muted);
}

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

.plan-card {
  padding: 18px;
  min-height: 172px;
  box-shadow: var(--shadow-soft);
}

.plan-card.featured {
  border-color: rgba(8, 115, 95, 0.42);
  background: linear-gradient(180deg, #f1faf6, #ffffff);
}

.plan-card strong {
  display: block;
  margin: 10px 0;
  font-size: 26px;
  line-height: 1.2;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.funnel-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.qa-panel {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.validation-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 320px;
  gap: 16px;
}

.validation-main,
.validation-side {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfc;
  box-shadow: var(--shadow-soft);
}

.validation-main h3 {
  margin: 6px 0 16px;
  font-size: 20px;
}

.validation-steps {
  display: grid;
  gap: 10px;
}

.validation-steps article {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.validation-steps span,
.validation-side p,
.validation-side small {
  color: var(--muted);
  line-height: 1.55;
}

.validation-side strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--teal);
  font-size: 44px;
  line-height: 1;
}

.validation-meter {
  height: 10px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeec;
}

.validation-meter i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--teal-2));
}

.names-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 300px;
  gap: 16px;
}

.names-main,
.names-side,
.name-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfc;
}

.names-main,
.names-side {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.names-main h3 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.names-main > p,
.names-side p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.58;
}

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

.name-card {
  min-height: 156px;
  padding: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.name-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 115, 95, 0.32);
  box-shadow: var(--shadow-soft);
}

.name-card.recommended {
  border-color: rgba(8, 115, 95, 0.36);
  background: linear-gradient(180deg, #f0faf6, #fbfcfc);
}

.name-rank {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.name-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.name-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.names-side strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--teal);
  font-size: 30px;
  line-height: 1.1;
}

.name-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.name-score-row span {
  color: var(--muted);
}

.name-score-row strong {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.qa-panel h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.qa-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.qa-row span {
  color: var(--muted);
}

.qa-row strong {
  line-height: 1.45;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.funnel-row span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 14px;
  background: #17201d;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.is-running .audit-console {
  box-shadow: 0 26px 70px rgba(8, 115, 95, 0.32);
}

body.is-running #auditStatus {
  background: rgba(49, 95, 190, 0.2);
  color: #d8e4ff;
}

body.package-unlocked .deliverable-card {
  border-color: rgba(8, 115, 95, 0.34);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-grid,
  .insight-grid,
  .pressure-grid,
  .package-layout,
  .validation-layout,
  .names-layout,
  .evidence-layout,
  .draft-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .deliverable-grid,
  .issue-detail-grid,
  .names-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-panel {
    min-height: 340px;
  }

  .style-check {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 20px;
  }

  .side-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: auto;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .icon-button::after {
    display: none;
  }

  .bottom-action {
    margin-top: 0;
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .segmented,
  .insight-grid,
  .pressure-grid,
  .deliverable-grid,
  .issue-detail-grid,
  .names-grid,
  .unlock-strip,
  .validation-layout,
  .names-layout,
  .metric-row,
  .deadline-row,
  .source-table,
  .steps,
  .growth-grid {
    grid-template-columns: 1fr;
  }

  .file-drop {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .file-drop .mini-button {
    grid-column: 1 / -1;
  }

  .visual-panel {
    min-height: 260px;
  }

  .paper-page {
    width: calc(100% - 18px);
    padding: 28px 22px;
  }

  .risk-item,
  .funnel-row,
  .qa-row,
  .validation-steps article {
    grid-template-columns: 1fr;
  }

  .package-head,
  .issue-top {
    flex-direction: column;
  }

  .issue-top strong {
    text-align: left;
  }
}

/* Final AI Offer/NEXT OFFER visual override */
html,
body {
  background:
    radial-gradient(circle at 50% -140px, rgba(18, 103, 255, 0.1), transparent 390px),
    linear-gradient(180deg, #f9fbfb 0%, #f4f6f7 52%, #eef4f5 100%) !important;
  color: #101418;
}

.app-shell {
  display: block !important;
  width: min(1720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 48px) 34px;
}

.global-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(640px, 1.55fr) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  width: min(1280px, 100%);
  margin: 0 auto 26px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(24px);
}

.global-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.global-brand .brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(18, 103, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 103, 255, 0.18), rgba(17, 184, 156, 0.18)),
    #eef6ff;
  color: #1267ff;
  box-shadow: 0 14px 30px rgba(18, 103, 255, 0.16);
}

.global-brand p,
.eyebrow,
.section-label {
  color: #11b89c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-brand h1 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border-radius: 14px;
  background: rgba(16, 20, 24, 0.04);
  padding: 5px;
}

.nav-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  font-weight: 850;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.nav-btn.active {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.global-start.primary-button {
  width: auto;
  min-width: 138px;
  min-height: 48px;
  border-radius: 13px;
  white-space: nowrap;
}

.workspace {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
}

.topbar.page-intro {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(22px);
}

.page-intro h1 {
  margin: 8px 0 10px;
  color: #101418;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.page-intro p {
  max-width: 920px;
  margin: 0;
  color: #66706f;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.65;
}

.primary-button {
  border-color: transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #101f4d, #1267ff 62%, #11b89c) !important;
  box-shadow: 0 18px 36px rgba(18, 103, 255, 0.2);
}

.ghost-button,
.mini-button,
.segment,
.deadline-chip,
.tab,
.accept-button,
.tool {
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.setup-panel,
.visual-panel,
.pipeline,
.product-tabs,
.insight-card,
.pressure-card,
.package-main,
.package-side,
.deliverable-card,
.issue-card,
.qa-panel,
.validation-main,
.validation-side,
.names-main,
.names-side,
.name-card,
.claim-card,
.evidence-map,
.word-preview,
.style-check,
.score-panel,
.fix-panel,
.plan-card,
.funnel-panel {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 31, 38, 0.07);
  backdrop-filter: blur(22px);
}

.hero-grid {
  grid-template-columns: minmax(380px, 0.54fr) minmax(520px, 1fr);
  gap: 20px;
}

textarea,
select,
input {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #101418;
}

.segment.active,
.tab.active,
.status-pill,
.confidence-badge,
.quality-chip,
.deadline-chip.active {
  border-color: transparent;
  color: #155eef;
  background: rgba(18, 103, 255, 0.08);
  box-shadow: none;
}

.tab.active {
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.visual-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  overflow: hidden;
  padding: 24px;
}

.visual-panel img {
  display: none;
}

.audit-console {
  position: static;
  width: 100%;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #101418;
  box-shadow: none;
}

.audit-head span,
.audit-score span,
.audit-bars span,
.visual-overlay span,
.visual-overlay small {
  color: #66706f;
}

.audit-head strong {
  background: rgba(17, 184, 156, 0.1);
  color: #067647;
}

.audit-score div:not(.score-arrow) {
  border-color: rgba(16, 20, 24, 0.1);
  background: rgba(248, 250, 252, 0.82);
}

.audit-score strong {
  color: #101418;
}

.audit-bars i,
.progress-track span,
.validation-meter i {
  background: linear-gradient(90deg, #1267ff, #11b89c);
}

.visual-overlay {
  position: static;
  max-width: none;
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.file-drop,
.deadline-box,
.metric-row div,
.source-table div,
.score-lift div,
.mini-metrics div,
.unlock-strip div,
.validation-steps article {
  border-color: rgba(16, 20, 24, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    min-width: 96px;
    flex: 0 0 auto;
  }

  .global-start.primary-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .global-header {
    top: 8px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .global-brand .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .topbar.page-intro {
    padding: 18px;
  }

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

  .visual-panel {
    min-height: auto;
    padding: 16px;
  }
}
