:root {
  --bg: #f7f7f4;
  --ink: #151713;
  --muted: #6d726a;
  --line: #e2e3dd;
  --paper: #ffffff;
  --paper-strong: #f0f3ed;
  --green: #174f3d;
  --green-dark: #0f382d;
  --coral: #a75541;
  --blue: #38596b;
  --yellow: #c69a34;
  --shadow: 0 16px 40px rgba(23, 28, 22, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Optima", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing {
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 14%, rgba(198, 154, 52, 0.14), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(23, 79, 61, 0.11), transparent 25%),
    linear-gradient(135deg, #f8f4e8 0%, #eef3ec 58%, #f7f7f2 100%);
}

.landing.hidden {
  display: none;
}

.landing-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  width: min(1180px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.nav-note {
  color: #536257;
  font-size: 13px;
  font-weight: 800;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.landing-metrics {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 70px rgba(25, 36, 29, 0.08);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  padding: clamp(34px, 6vw, 78px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 246, 238, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(23, 79, 61, 0.08), transparent 34%);
}

.hero-copy h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 660px;
  margin: 30px 0 0;
  color: #46554b;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

.hero-actions .primary-button {
  width: auto;
  min-width: 236px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
}

.hero-actions span {
  max-width: 190px;
  color: #667066;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(23, 79, 61, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.76);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.hero-panel-head span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel-head b {
  font-size: 14px;
}

.hero-flow {
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-flow article {
  position: relative;
  padding: 20px 20px 20px 62px;
  border: 1px solid rgba(223, 227, 218, 0.92);
  border-radius: 12px;
  background: rgba(251, 252, 247, 0.88);
}

.hero-flow article span {
  position: absolute;
  left: 20px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.hero-flow h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.hero-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.landing-metrics div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.landing-metrics div:last-child {
  border-right: 0;
}

.landing-metrics b,
.landing-metrics span {
  display: block;
}

.landing-metrics b {
  margin-bottom: 6px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.landing-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.onboarding.hidden {
  display: none;
}

.hidden,
.app-shell.hidden,
.generation-screen.hidden {
  display: none;
}

.generation-screen {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.generation-card {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(30, 33, 27, 0.1);
  padding: 30px;
}

.generation-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.generation-card p {
  color: var(--muted);
  line-height: 1.7;
}

.wait-note {
  margin-top: -4px;
  color: var(--green-dark) !important;
  font-size: 13px;
  font-weight: 800;
}

.loading-bar {
  height: 8px;
  margin: 24px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7df;
}

.loading-bar span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.35s ease;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.loading-steps span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fafbf8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.loading-steps span.active {
  color: var(--green-dark);
  border-color: #bed0c5;
  background: #eef4ef;
}

.tip-feed {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 290px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

.tip-feed-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.single-tip {
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.single-tip.fading {
  opacity: 0;
  transform: translateY(6px);
}

.single-tip b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
}

.single-tip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.onboarding-card {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(30, 33, 27, 0.1);
  padding: 28px;
}

.brand.compact {
  min-height: auto;
  padding: 0 0 22px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 34px;
}

.wizard-progress span {
  height: 4px;
  border-radius: 999px;
  background: #e1dbcf;
}

.wizard-progress span.active {
  background: var(--green);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.helper {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

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

.choice {
  min-height: 64px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  font-size: 16px;
  font-weight: 800;
}

.choice.selected {
  border-color: var(--green);
  color: var(--green-dark);
  background: #eef4ef;
  box-shadow: inset 3px 0 0 var(--green);
}

.custom-choice {
  color: var(--muted);
  background: #fafbf8;
}

.custom-input {
  margin-top: 12px;
}

.quick-form {
  display: grid;
  gap: 2px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.wizard-actions .primary-button,
.wizard-actions .ghost-button {
  width: auto;
  min-width: 132px;
}

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

.sidebar,
.workspace {
  min-width: 0;
}

.brand,
.topbar,
.panel,
.tabs {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border-radius: 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 28px;
  font-weight: 800;
}

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

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

h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.panel {
  border-radius: 6px;
}

.input-panel {
  margin-top: 12px;
  padding: 16px;
}

.profile-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

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

.summary-row b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.summary-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.7;
}

.panel-title,
.topic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title span {
  font-size: 16px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7d0c3;
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

input,
select {
  min-height: 43px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 86, 0.14);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button,
.ghost-button,
.tab {
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button.loading {
  opacity: 0.72;
  pointer-events: none;
}

.api-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.api-status.live {
  color: var(--green-dark);
}

.api-status.error {
  color: var(--coral);
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--green-dark);
  background: #edf1ec;
  white-space: nowrap;
}

.wide-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 6px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
}

.status-strip span {
  padding: 7px 9px;
  border-radius: 6px;
  color: #173e33;
  background: #e6ece4;
  font-size: 13px;
  font-weight: 800;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 6px;
}

.tab {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
}

.tab.active {
  color: #fff;
  background: var(--ink);
}

.result-grid,
.tab-page.active {
  min-height: 0;
}

.tab-page {
  display: none;
}

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

.result-panel {
  min-height: calc(100vh - 148px);
  padding: 18px;
  overflow: auto;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  font-weight: 900;
}

.output-stack {
  display: grid;
  gap: 14px;
}

.insight-card,
.topic-card,
.script-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.research-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.research-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

.research-item b {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 15px;
}

.research-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.insight-card {
  padding: 16px;
}

.insight-card h4,
.script-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  color: #24362f;
  background: #eef1eb;
  font-size: 12px;
  font-weight: 800;
}

.big-statement {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

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

.metric {
  padding: 13px;
  border-radius: 6px;
  background: #f6f7f3;
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
}

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

.topic-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.topic-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 15px 15px 15px 52px;
  text-align: left;
  cursor: pointer;
}

.topic-card::before {
  content: attr(data-step);
  position: absolute;
  left: 15px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.topic-card::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 44px;
  bottom: -13px;
  width: 2px;
  background: #dbe5dc;
}

.topic-card:last-child::after {
  display: none;
}

.path-details {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

.topic-card .path-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.path-label {
  color: var(--green-dark);
  font-weight: 900;
}

.path-stage {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.topic-card.selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(31, 111, 86, 0.22);
}

.topic-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score {
  padding: 8px;
  border-radius: 6px;
  background: #f6f7f3;
  font-size: 12px;
  font-weight: 800;
}

.score b {
  color: var(--coral);
  font-size: 18px;
}

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

.content-brief {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.brief-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.brief-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.format-panel {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.format-panel h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.mode-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mode-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fafbf8;
  font-weight: 800;
}

.mode-button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.content-generate-button {
  margin-top: 12px;
}

.topic-select-label {
  margin-bottom: 14px;
}

.content-loading-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f7f9f5);
}

.content-loader {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef4ef;
}

.content-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: loaderPulse 1.1s ease-in-out infinite;
}

.content-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.content-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

.output-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.output-card header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #f6f7f3;
}

.output-card header h4 {
  margin: 0;
  font-size: 17px;
}

.output-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.cover-preview {
  padding: 18px;
  border: 1px solid #d8e3d8;
  border-radius: 6px;
  background: #eef4ef;
}

.cover-preview span,
.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.cover-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.2;
}

.cover-preview p,
.output-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.output-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

.output-section h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.output-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.article-copy {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.article-copy p {
  margin: 0 0 13px;
  color: #242722;
  font-size: 15px;
  line-height: 1.9;
}

.script-table {
  display: grid;
  gap: 10px;
}

.script-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbf8;
}

.script-row strong {
  color: var(--green-dark);
}

.script-row p,
.script-row span {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hook-section {
  background: #eef4ef;
}

.output-tags {
  padding-top: 2px;
}

.script-card {
  overflow: hidden;
}

.script-card header {
  padding: 13px 15px;
  color: #fff;
  background: var(--blue);
}

.script-card:nth-child(2) header {
  background: var(--coral);
}

.script-card .body {
  padding: 15px;
}

.script-card ol,
.insight-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

.publish-path {
  position: relative;
  display: grid;
  gap: 14px;
}

.publish-step {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(31, 111, 86, 0.06), transparent 44%),
    var(--paper);
  box-shadow: 0 14px 34px rgba(24, 41, 34, 0.06);
}

.publish-step::before {
  content: attr(data-step);
  position: absolute;
  left: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.publish-step::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 54px;
  bottom: -15px;
  width: 2px;
  background: #dbe5dc;
}

.publish-step:last-child::after {
  display: none;
}

.publish-step-head span {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #174739;
  background: #e5eee8;
  font-size: 12px;
  font-weight: 900;
}

.publish-step-head h4 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.publish-step ul {
  margin: 0;
  padding: 14px 14px 14px 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #405248;
  background: rgba(250, 251, 248, 0.86);
  line-height: 1.8;
}

.publish-step li + li {
  margin-top: 8px;
}

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

  .result-panel {
    min-height: auto;
  }

  .topbar,
  .panel-title,
  .topic-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-copy {
    min-height: auto;
  }
}

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

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 23px;
  }

  .field-grid,
  .metric-grid,
  .topic-list,
  .content-columns,
  .content-brief,
  .generation-main,
  .landing-metrics,
  .mode-row,
  .tabs,
  .status-strip,
  .choice-grid,
  .research-strip,
  .loading-steps {
    grid-template-columns: 1fr;
  }

  .onboarding-card {
    padding: 18px;
  }

  .landing {
    padding: 14px;
  }

  .landing-shell {
    min-height: calc(100vh - 28px);
  }

  .landing-nav,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel {
    padding: 18px;
  }

  .hero-actions .primary-button {
    width: 100%;
  }

  .landing-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-metrics div:last-child {
    border-bottom: 0;
  }
}
