:root {
  color-scheme: light;
  --app-bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #17211c;
  --muted: #64716a;
  --line: #dce5de;
  --accent: #0f766e;
  --accent-dark: #0b4d49;
  --accent-soft: #d8f1eb;
  --warn: #b45309;
  --shadow: 0 16px 48px rgba(23, 33, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.09), transparent 28%),
    linear-gradient(135deg, #f4f7f5 0%, #eef3f1 52%, #f8faf7 100%);
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

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

button,
a,
summary,
select,
input[type="file"] {
  cursor: pointer;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1680px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.topbar h1,
.panel h2,
.section-heading h3 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(17px, 1.6vw + 0.3rem, 22px);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions,
.preview-actions,
.learner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ai-config-menu {
  position: relative;
}

.ai-config-menu summary {
  list-style: none;
}

.ai-config-menu summary::-webkit-details-marker {
  display: none;
}

.ai-config-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(380px, calc(100vw - 28px));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.ai-config-panel .learner-actions {
  gap: 8px;
}

.geo-intro {
  max-width: 1680px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(220,229,222,0.7);
  border-radius: 12px;
  padding: 14px 20px;
}

.geo-intro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
}

.geo-intro-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  white-space: nowrap;
}

.geo-intro-lead {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1 1 360px;
}

.geo-intro-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.geo-intro-features {
  margin: 0;
  padding: 0 0 0 1em;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1 1 100%;
  columns: 2;
  column-gap: 24px;
}

.geo-intro-audience {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  flex: 1 1 100%;
}

.geo-intro-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 11px;
}

.geo-intro-nav a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.geo-intro-nav a:hover {
  text-decoration: underline;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1fr) minmax(430px, 1.3fr);
  gap: 16px;
  max-width: 1680px;
  margin: 0 auto;
}

.panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 229, 222, 0.95);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.editor-panel,
.agent-panel,
.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.panel-heading,
.preview-toolbar,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel h2 {
  font-size: 20px;
  line-height: 1.2;
}

.section-heading {
  align-items: baseline;
  padding-top: 2px;
}

.section-heading h3 {
  font-size: 15px;
}

.section-heading span,
.hint {
  color: var(--muted);
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.checkbox-field {
  color: #35453d;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

textarea {
  resize: vertical;
  min-height: 124px;
  padding: 12px;
  line-height: 1.6;
  overflow: auto;
  scrollbar-gutter: stable;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11);
}

.stretch-field {
  flex: 0 0 auto;
  min-height: 0;
}

.stretch-field textarea {
  height: clamp(360px, calc(100vh - 430px), 620px);
  min-height: 360px;
  max-height: 620px;
  resize: none;
  overflow-y: auto;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.checkbox-field input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.primary-btn,
.ghost-btn,
.icon-btn,
.primary-link,
.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.primary-btn,
.primary-link {
  background: var(--accent);
  color: #ffffff;
}

.primary-btn:hover,
.primary-link:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.ghost-btn,
.file-btn,
.icon-btn {
  background: #ffffff;
  border-color: var(--line);
  color: var(--accent-dark);
}

.ghost-btn:hover,
.file-btn:hover,
.icon-btn:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.icon-btn {
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge[data-state="ok"] {
  background: #e7f7ef;
  color: #166534;
}

.badge[data-state="warn"] {
  background: #fff7ed;
  color: #9a3412;
}

.badge[data-state="checking"] {
  background: #eef2ff;
  color: #3730a3;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

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

.analysis-card {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfb;
  padding: 12px;
}

.analysis-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.analysis-card span {
  font-size: 15px;
  font-weight: 800;
}

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

.template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.template-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  text-align: left;
}

.template-card:hover,
.template-card.active {
  border-color: rgba(15, 118, 110, 0.64);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.1);
}

.template-card strong {
  font-size: 14px;
  line-height: 1.25;
}

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

.template-card .template-ai-summary {
  color: var(--accent-dark);
  font-weight: 700;
}

.template-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.template-card-actions .ghost-btn {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
}

.delete-template-btn {
  color: #9f1239;
}

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

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
  font-size: 13px;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
}

.learner,
.image-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdfb;
}

.learner summary,
.image-tools summary {
  font-size: 14px;
  font-weight: 800;
}

.learner[open] summary,
.image-tools[open] summary {
  margin-bottom: 12px;
}

.learner .field + .field {
  margin-top: 12px;
}

.image-tool-grid,
.template-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.image-tools .learner-actions {
  margin-top: 10px;
}

.image-library {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.image-asset {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 7px;
}

.image-asset img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.image-asset span {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-asset .ghost-btn {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
}

.template-controls {
  align-items: end;
}

.learner textarea {
  min-height: 132px;
}

.rich-paste-box {
  min-height: 150px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  color: var(--ink);
  line-height: 1.7;
  outline: none;
}

.rich-paste-box:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11);
}

.rich-paste-box:empty::before {
  content: "从已排版文章页面或编辑器中复制内容，直接粘贴到这里。";
  color: var(--muted);
  font-size: 13px;
}

.file-btn {
  position: relative;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hint {
  min-height: 18px;
  margin: 8px 0 0;
  line-height: 1.45;
}

.preview-panel {
  min-height: calc(100vh - 118px);
}

.status-line {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.phone-frame {
  flex: 0 0 auto;
  height: 1170px;
  min-height: 0;
  max-height: 1170px;
  overflow: auto;
  scrollbar-gutter: stable;
  border-radius: 18px;
  border: 10px solid #1d2a24;
  background: #eef2ef;
  padding: 18px;
}

.wechat-canvas {
  max-width: 677px;
  min-height: 100%;
  margin: 0 auto;
  background: #ffffff;
  outline: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.wechat-canvas:empty::before {
  content: "生成后的公众号文章会出现在这里。";
  display: block;
  padding: 48px 24px;
  color: #7a877f;
  text-align: center;
}

.source-box {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.source-box summary {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

#htmlOutput {
  height: 220px;
  min-height: 0;
  max-height: 220px;
  margin-top: 10px;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 12px;
  resize: none;
  overflow: auto;
}

.compat-report {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.compat-item {
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.compat-item.ok {
  background: #e7f7ef;
  color: #166534;
}

.compat-item.warn {
  background: #fff7ed;
  color: var(--warn);
}

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  }

  .preview-panel {
    grid-column: 1 / -1;
  }
}

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

  .topbar,
  .panel-heading,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace,
  .option-grid,
  .analysis-cards,
  .template-gallery {
    grid-template-columns: 1fr;
  }

  .stretch-field,
  .stretch-field textarea {
    min-height: 320px;
  }

  .stretch-field textarea {
    height: 52vh;
    max-height: 560px;
  }

  .phone-frame {
    height: 62vh;
    min-height: 420px;
    max-height: 680px;
    padding: 10px;
    border-width: 6px;
  }
}
/* Variant B — Premium Studio
   Refines the original with a deeper jade palette, warm gold accents,
   layered shadows, and more generous spacing. */

:root {
  --app-bg: #f3efe8;
  --panel: #ffffff;
  --ink: #161b18;
  --muted: #6b7670;
  --line: rgba(22, 27, 24, 0.07);
  --line-strong: rgba(22, 27, 24, 0.12);
  --accent: #0a5b4a;
  --accent-dark: #053a2f;
  --accent-soft: #e6f1ec;
  --gold: #c89b3c;
  --gold-soft: #f5ead0;
  --warn: #b45309;
  --shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 1px 2px rgba(20, 35, 28, 0.04),
    0 16px 32px -20px rgba(20, 35, 28, 0.18),
    0 40px 80px -40px rgba(10, 91, 74, 0.18);
}

body {
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 155, 60, 0.08), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(10, 91, 74, 0.08), transparent 42%),
    linear-gradient(160deg, #f5f1ea 0%, #ece8df 100%);
  color: var(--ink);
}

.app-shell { padding: 30px 30px 44px; }

.topbar {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 12px 32px -24px rgba(20,35,28,0.18);
}
.topbar h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 3.1vw, 42px);
  background: linear-gradient(135deg, #0a5b4a 0%, #053a2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.workspace { gap: 26px; }

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(252,250,246,1) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 26px 28px;
}

.panel h2 {
  font-weight: 700;
  letter-spacing: -0.018em;
  font-size: 22px;
}

.panel-heading,
.preview-toolbar,
.section-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.section-heading h3 {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
}
.section-heading span { color: var(--muted); font-size: 12px; }

.field span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="search"],
select,
textarea,
.rich-paste-box {
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(20,35,28,0.03);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus, .rich-paste-box:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(10, 91, 74, 0.14), 0 1px 0 rgba(255,255,255,0.6) inset !important;
}

.primary-btn,
.primary-link {
  background: linear-gradient(180deg, #0a5b4a 0%, #074c3e 100%);
  border-radius: 10px;
  border: 1px solid #053a2f;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 1px 2px rgba(5, 58, 47, 0.18),
    0 8px 20px -10px rgba(10, 91, 74, 0.45);
}
.primary-btn:hover,
.primary-link:hover {
  background: linear-gradient(180deg, #0d6e58 0%, #074c3e 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 2px 4px rgba(5, 58, 47, 0.18),
    0 14px 28px -12px rgba(10, 91, 74, 0.5);
}

.ghost-btn,
.file-btn,
.icon-btn {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.ghost-btn:hover, .file-btn:hover, .icon-btn:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.badge {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-soft);
  color: #7a5a17;
  border: 1px solid rgba(200, 155, 60, 0.35);
}
.badge[data-state="ok"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(10, 91, 74, 0.25);
}

.analysis-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 16px -12px rgba(20,35,28,0.12);
}
.analysis-card strong { font-weight: 700; letter-spacing: -0.005em; }

.template-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  padding: 16px 16px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 8px 18px -14px rgba(20,35,28,0.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 91, 74, 0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 16px 32px -18px rgba(10,91,74,0.28);
}
.template-card.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(10, 91, 74, 0.5),
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 18px 36px -18px rgba(10, 91, 74, 0.32);
}
.template-card strong { font-weight: 700; letter-spacing: -0.005em; font-size: 15px; }
.template-card p { color: var(--muted); }

.swatches { gap: 5px; }
.swatch {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(22,27,24,0.06) inset;
}

details.learner,
details.image-tools,
.source-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.phone-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 18px 40px -28px rgba(20,35,28,0.22),
    0 60px 100px -60px rgba(10,91,74,0.16);
}

.status-line {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
}

.quickstart-guide {
  flex: 1 1 100%;
  margin-top: 6px;
}

.quickstart-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 3px 0;
}

.quickstart-summary::-webkit-details-marker {
  display: none;
}

.quickstart-summary::before {
  content: "▶";
  font-size: 9px;
  transition: transform 0.18s ease;
  display: inline-block;
}

.quickstart-guide[open] .quickstart-summary::before {
  transform: rotate(90deg);
}

.quickstart-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 6px;
  padding: 0;
  list-style: none;
}

.quickstart-steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 200px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
}

.qs-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.qs-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qs-body strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.qs-body span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.qs-body span strong {
  font-weight: 700;
  color: var(--accent-dark);
}

.quickstart-tip {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  border-left: 2px solid var(--accent);
}

.quickstart-tip strong {
  color: var(--ink);
  font-weight: 700;
}

.step-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.ai-score-result {
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
  max-height: 320px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.ai-score-result .score-badge {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: #1d4ed8;
  margin-right: 8px;
  line-height: 1;
}
.ai-score-result .score-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #eaf2ff;
  border-radius: 8px;
  border-left: 3px solid #1d4ed8;
  font-weight: 600;
}
.ai-score-result .section-heading {
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 4px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.ai-score-result .score-item {
  padding-left: 12px;
  color: var(--muted);
  margin: 3px 0;
  border-left: 2px solid var(--line);
}
.ai-score-result .score-loading {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}
.ai-score-result .score-error {
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 8px;
}

/* AI Rewrite result box */
.ai-rewrite-result {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbf8;
  overflow: hidden;
}
.ai-rewrite-result .rewrite-loading {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}
.ai-rewrite-result .rewrite-error {
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 12px;
  background: #fef2f2;
}
.ai-rewrite-result .rewrite-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
  padding: 16px 18px;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
