/* 深度消费者调研 · Taste 工作流 — Claude 风格浅色全局 */

:root {
  /* Claude 系：暖纸色底、陶土橙强调、柔和描边 */
  --bg: #f5f2eb;
  --bg-warm: #faf8f4;
  --surface: #ffffff;
  --surface-muted: #f0ede6;
  --border: #e5e0d6;
  --border-strong: #d4cdc0;
  --text: #1a1a18;
  --text-secondary: #3d3a36;
  --text-muted: #6b6560;
  --accent: #c96442;
  --accent-hover: #b55535;
  --accent-soft: rgba(201, 100, 66, 0.12);
  --accent-ring: rgba(201, 100, 66, 0.35);
  --success: #2f6f5e;
  --success-soft: rgba(47, 111, 94, 0.12);
  --warning: #8b6914;
  --warning-bg: rgba(139, 105, 20, 0.08);
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 116px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 24, 0.05);
  --shadow-md: 0 4px 16px rgba(26, 26, 24, 0.06);
  --sketch-stroke: #3d3a36;
  --sketch-bg: #faf8f4;
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.12);
  --blue-ring: rgba(37, 99, 235, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* 导入弹窗已移除 */

a {
  color: var(--accent);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.entry-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.entry-card {
  width: min(860px, 96vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.2rem;
}

.entry-card h1 {
  margin: 0;
  font-size: 1.2rem;
}

.entry-card p {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted);
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.entry-actions .input {
  min-width: 320px;
  flex: 1 1 420px;
}

.entry-hint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* —— 顶部流程导航 —— */
.flow-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem 0.55rem;
  box-shadow: var(--shadow-sm);
}

.workspace {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.flow-nav--side {
  --side-accent: #2563eb;
  --side-accent-soft: rgba(37, 99, 235, 0.12);
  --side-accent-ring: rgba(37, 99, 235, 0.35);
  position: sticky;
  top: 0;
  height: calc(100vh - 0px);
  width: 220px;
  flex: 0 0 220px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  padding: 1rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(245, 242, 235, 0));
}

.flow-nav__steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  max-width: 1180px;
  margin: 0 auto;
}

.flow-nav--side .flow-nav__steps {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
  gap: 0.35rem;
}

.flow-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.3rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  transition: color 0.15s, background 0.15s;
  border-radius: var(--radius-sm);
}

.flow-nav--side .flow-step {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.55rem;
  text-align: left;
}

.flow-step:hover {
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.flow-step--active {
  color: var(--accent);
  font-weight: 600;
}

.flow-nav--side .flow-step--active {
  color: var(--side-accent);
}

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

.flow-step__ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  background: var(--surface);
}

.flow-step--active .flow-step__ring {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.flow-nav--side .flow-step--active .flow-step__ring {
  border-color: var(--side-accent);
  background: var(--side-accent-soft);
  color: var(--side-accent);
}

.flow-step--done .flow-step__ring {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.flow-step__label {
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}

.flow-nav--side .flow-step__label {
  text-align: left;
  font-size: 0.78rem;
}

.flow-nav__progress {
  max-width: 1180px;
  margin: 0.55rem auto 0;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.flow-nav--side .flow-nav__progress {
  max-width: none;
  margin: 0.75rem 0 0;
  height: 4px;
}

.flow-nav__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6f5e, var(--accent));
  border-radius: 2px;
  transition: width 0.28s ease;
}

.flow-nav--side .flow-nav__progress-fill {
  background: linear-gradient(90deg, var(--side-accent), rgba(37, 99, 235, 0.2));
}

/* —— 主内容 —— */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 5.5rem;
  width: 100%;
}

.workspace .main {
  margin: 0;
  max-width: none;
  min-width: 0;
}

@media (max-width: 960px) {
  .workspace {
    display: block;
    max-width: none;
  }
  .flow-nav--side {
    width: auto;
    flex: none;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.25rem 0.55rem;
    background: var(--surface);
  }
  .flow-nav--side .flow-nav__steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
  }
  .flow-nav--side .flow-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.3rem;
    text-align: center;
  }
  .flow-nav--side .flow-step__label {
    text-align: center;
    font-size: 0.68rem;
  }
  .flow-nav--side .flow-nav__progress {
    margin: 0.55rem auto 0;
    height: 3px;
  }
}

.stage {
  display: none;
  flex: 1;
  animation: fadeIn 0.22s ease;
}

.stage--visible {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stage-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stage-sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.stage-body {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .stage-body {
    grid-template-columns: 1fr;
  }

  .taste-panel {
    order: -1;
  }
}

.stage-body--ppt {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(320px, 420px);
  grid-template-rows: auto auto;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .stage-body--ppt {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ppt-sidebar {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ppt-canvas-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ppt-materials {
    grid-column: 1 / -1;
    grid-row: auto;
    position: relative;
    top: auto;
    max-height: min(420px, 55vh);
  }

  .ppt-thumbs {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.ppt-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.slide-item__del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--text-muted);
  flex: 0 0 auto;
}

.slide-item__del:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.ppt-side-h {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.ppt-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ppt-side-head .btn {
  padding: 0.32rem 0.55rem;
  font-size: 0.74rem;
}

.ppt-canvas-wrap {
  grid-column: 2;
  grid-row: 1;
  min-height: 660px;
  min-width: 0;
}

.ppt-canvas-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.ppt-canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.ppt-canvas-toolbar .btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.ppt-materials {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(var(--nav-h) + 10px);
  max-height: calc(100vh - var(--nav-h) - 36px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ppt-materials__head {
  padding: 0.85rem 0.9rem 0.65rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ppt-materials__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.ppt-materials__hint {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ppt-materials__search {
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

.ppt-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ppt-tab {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}

.ppt-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.ppt-tab--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.ppt-materials__scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-content: start;
  overflow-y: auto;
  flex: 1;
  padding: 0.65rem 0.75rem 0.85rem;
  min-height: 120px;
}

@media (max-width: 1100px) {
  .ppt-materials__scroll {
    grid-template-columns: 1fr;
  }
}

.ppt-mat-card {
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-size: 0.78rem;
}

.ppt-mat-card:last-child {
  margin-bottom: 0;
}

.ppt-mat-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.ppt-mat-card__badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.ppt-mat-card__id {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ppt-mat-card__title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  margin: 0 0 0.3rem;
  line-height: 1.35;
}

.ppt-mat-card__body {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
  max-height: 6.8em;
  overflow: hidden;
}

.ppt-mat-card__hint {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ppt-mat-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ppt-mat-card__actions .btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
}

.ppt-mat-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.ppt-mat-story-preview {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.ppt-mat-story-preview .story-sketch {
  min-height: 72px;
  min-width: 88px;
  padding: 0.35rem;
}

.ppt-mat-story-preview .story-sketch svg {
  max-width: 72px;
}

.ppt-thumbs {
  grid-column: 2;
  grid-row: 2;
}

.stage-body--polish {
  grid-template-columns: 240px 1fr;
}

.stage-body--story {
  grid-template-columns: 1fr 280px;
}

@media (max-width: 960px) {
  .stage-body--story {
    grid-template-columns: 1fr;
  }
}

/* —— Story 工作流条 + 分镜 —— */
.story-pipeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}

.story-pipeline__title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.story-pipeline__track {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.story-pipe {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}

.story-pipe:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--border);
  z-index: 1;
}

.story-pipe--active {
  background: var(--accent-soft);
  border-color: rgba(201, 100, 66, 0.35);
  color: var(--accent);
  font-weight: 600;
}

.story-pipe--done {
  background: var(--success-soft);
  border-color: rgba(47, 111, 94, 0.35);
  color: var(--success);
}

.story-pipe__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.story-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.story-badge--ok {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(47, 111, 94, 0.35);
}

.story-test-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.story-test-panel[hidden] {
  display: none !important;
}

.story-test-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.story-test-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.story-test-panel li {
  margin-bottom: 0.4rem;
}

.story-test-panel__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.metric-pill {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-secondary);
}

/* 分镜：4 列 × 4 行（16 卡） */
.story-grid--board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: 0.65rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .story-grid--board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .story-grid--board {
    grid-template-columns: 1fr;
  }
}

.story-frame--board {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.story-frame--board .story-sketch {
  flex-shrink: 0;
  min-height: 96px;
  padding: 0.3rem 0.35rem;
}

.story-frame--board .story-sketch svg {
  max-width: 124px;
}

.story-frame--board .story-sketch__label {
  font-size: 0.58rem;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.story-sketch {
  border-radius: var(--radius-sm);
  background: radial-gradient(120% 120% at 20% 0%, rgba(26, 26, 24, 0.03), rgba(26, 26, 24, 0) 55%),
    repeating-linear-gradient(0deg, rgba(26, 26, 24, 0.02), rgba(26, 26, 24, 0.02) 1px, rgba(255, 255, 255, 0) 6px, rgba(255, 255, 255, 0) 10px),
    var(--sketch-bg);
  border: 1px solid rgba(212, 205, 192, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.story-sketch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 24, 0.05), rgba(26, 26, 24, 0) 45%);
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
}

.story-sketch::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px dashed rgba(212, 205, 192, 0.9);
  pointer-events: none;
}

.story-sketch svg {
  width: 100%;
  max-width: 140px;
  height: auto;
  color: var(--sketch-stroke);
  filter: drop-shadow(0 2px 0 rgba(26, 26, 24, 0.06));
}

.story-sketch svg .sketch-accent {
  fill: var(--accent);
  stroke: var(--accent);
  opacity: 0.92;
}

.story-sketch__label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--mono);
  position: relative;
}

.story-frame__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.story-frame__num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.story-frame--board .story-frame__num {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
}

.story-frame__content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.story-frame__beat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.story-frame--board .story-frame__beat {
  margin: 0;
  font-size: 0.6rem;
}

.story-frame--board h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.story-frame--board .story-frame__excerpt {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-frame--board p:not(.story-frame__excerpt) {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.story-frame__cite {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.55rem;
}

.story-frame--board .story-frame__cite {
  font-size: 0.62rem;
  padding-left: 0.45rem;
  margin-top: auto;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* —— 通用 —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover:not(:disabled) {
  background: var(--surface-muted);
  border-color: var(--border);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--accent-soft);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.tag--text {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.tag--audio {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.tag--video {
  background: rgba(219, 39, 119, 0.1);
  color: #be185d;
}

.tag--photo {
  background: rgba(47, 111, 94, 0.15);
  color: var(--success);
}

.evidence-grid {
  display: grid;
  gap: 0.6rem;
}

.evidence-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.evidence-card__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.evidence-card__star:hover,
.evidence-card__star--on {
  opacity: 1;
}

.evidence-card__body {
  min-width: 0;
}

.evidence-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.evidence-card__quote {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.evidence-card__id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.chain-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chain-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chain-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.chain-row__conf {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}

/* 定义 Insight：瀑布流（多列，卡片高度随内容错落） */
.insight-list {
  min-width: 0;
  column-width: 260px;
  column-gap: 0.75rem;
  column-fill: balance;
}

.insight-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.insight-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.insight-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.insight-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.insight-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 100, 66, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.insight-card__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.insight-card__btn {
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.insight-card__btn:hover {
  background: var(--surface-muted);
}

.insight-card__summary {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.insight-card__ref {
  font-size: 0.74rem;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.insight-card__conf {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.taste-panel {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.taste-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}

.taste-slider {
  margin-bottom: 1rem;
}

.taste-slider:last-of-type {
  margin-bottom: 0;
}

.taste-slider label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.taste-slider label span:last-child {
  font-family: var(--mono);
  color: var(--accent);
}

.taste-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.taste-hint {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.taste-panel--story .taste-slider-extra label {
  color: var(--text-secondary);
}

.slide-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 400px;
  overflow-y: auto;
}

.slide-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.82rem;
  background: transparent;
  color: inherit;
  text-align: left;
  width: 100%;
  font: inherit;
}

.slide-item:hover {
  background: var(--surface-muted);
}

.slide-item--active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slide-item__idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  width: 1.25rem;
}

.ppt-canvas {
  /* 编辑画布：更高的工作区（不完全等同 PPT 比例） */
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: radial-gradient(circle at 1px 1px, rgba(26, 26, 24, 0.12) 1px, rgba(255, 255, 255, 0) 1px),
    linear-gradient(160deg, #faf8f4 0%, #f0ebe3 45%, #e8e2d8 100%);
  background-size: 16px 16px, auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.ppt-canvas__layer {
  position: absolute;
  inset: 0;
}

.ppt-block {
  position: absolute;
  min-width: 160px;
  max-width: 360px;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(229, 224, 214, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(26, 26, 24, 0.08);
  cursor: grab;
  user-select: none;
}

.ppt-block:active {
  cursor: grabbing;
}

.ppt-block__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.ppt-block__badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.ppt-block__id {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ppt-block__del {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  border-radius: 8px;
  padding: 0.1rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.ppt-block__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.ppt-block__body {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  white-space: pre-wrap;
}

.ppt-block__body[contenteditable="true"],
.ppt-block__title[contenteditable="true"] {
  cursor: text;
  user-select: text;
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
  padding: 0.15rem 0.25rem;
  background: rgba(37, 99, 235, 0.06);
}

.ppt-block--note {
  background: rgba(255, 250, 205, 0.92);
  border-color: rgba(234, 179, 8, 0.35);
}

.ppt-block--note .ppt-block__badge {
  color: #a16207;
}

.ppt-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.4rem 0;
}

.ppt-thumb {
  flex: 0 0 88px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.ppt-thumb--active {
  border-color: var(--accent);
}

.polish-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 460px;
  overflow-y: auto;
}

.polish-item {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}

.polish-item:hover {
  border-color: var(--border-strong);
}

.polish-item--active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .compare-wrap {
    grid-template-columns: 1fr;
  }
}

.compare-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.compare-box {
  min-height: 200px;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.compare-box--editable:focus {
  outline: 2px solid rgba(201, 100, 66, 0.45);
  outline-offset: 2px;
}

.compare-box--new {
  border-color: rgba(201, 100, 66, 0.35);
  background: var(--accent-soft);
}

.mentor-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mentor-note strong {
  color: var(--warning);
}

.polish-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-muted);
  font: inherit;
}

.filter-chip--on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.empty-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* —— 项目条 —— */
.project-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.project-bar__main {
  min-width: 0;
  flex: 1;
  max-width: 720px;
}

.project-bar__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.project-bar__code {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-bar__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-bar__note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.project-bar__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.project-bar__stats span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.project-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* —— Toast —— */
.toast-region {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(420px, 92vw);
}

.toast {
  pointer-events: auto;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--surface);
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.28s ease;
}

.toast--ok {
  background: var(--success);
  color: #fff;
}

.toast--warn {
  background: #7a5c20;
  color: #fff;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }

  .stage {
    animation: none;
  }
}

/* —— 走查进度 —— */
.flow-checklist {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(300px, calc(100vw - 2rem));
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.flow-checklist__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: var(--surface-muted);
  border-radius: var(--radius) var(--radius) 0 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
}

.flow-checklist__toggle:hover {
  background: var(--border);
}

.flow-checklist__pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.flow-checklist__body {
  padding: 0.5rem 0.65rem 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.flow-checklist.is-collapsed .flow-checklist__body {
  display: none;
}

.flow-checklist.is-collapsed {
  border-radius: var(--radius);
}

.flow-checklist.is-collapsed .flow-checklist__toggle {
  border-radius: var(--radius);
}

.flow-checklist__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.flow-checklist__item:last-child {
  border-bottom: none;
}

.flow-checklist__item.is-done {
  color: var(--success);
}

.flow-checklist__item.is-done .flow-checklist__mark {
  color: var(--success);
}

.flow-checklist__mark {
  flex-shrink: 0;
  font-weight: 700;
}

.flow-checklist__text {
  min-width: 0;
}

@media (max-width: 900px) {
  .flow-checklist {
    right: 0.5rem;
    bottom: 0.5rem;
    width: min(280px, calc(100vw - 1rem));
  }

  .toast-region {
    bottom: 5.5rem;
  }
}

/* —— 问答式证据 —— */
.evidence-hint {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.evidence-card__qa-q {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.evidence-card__qa-q span {
  font-weight: 600;
  color: var(--accent);
}

.evidence-card__qa-a {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.evidence-card__who {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--mono);
}

.btn:focus-visible,
.flow-step:focus-visible,
.input:focus-visible,
.filter-chip:focus-visible,
.ppt-tab:focus-visible,
.polish-item:focus-visible,
.slide-item:focus-visible,
.evidence-card__star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.insight-card--low {
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
}

.insight-list--review .insight-card--low {
  background: var(--accent-soft);
}

.insight-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(440px, 94vw);
  box-shadow: var(--shadow-md);
}

.insight-dialog::backdrop {
  background: rgba(26, 26, 24, 0.45);
}

.insight-dialog form {
  padding: 1.25rem;
}

.insight-dialog h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.insight-dialog__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.65rem 0 0.35rem;
}

.insight-dialog__ta {
  min-height: 100px;
  resize: vertical;
}

.insight-dialog__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.qa-wall-dialog {
  border: none;
  padding: 0;
  width: min(1220px, 96vw);
  height: min(760px, 88vh);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(26, 26, 24, 0.25);
  overflow: hidden;
  background: transparent;
}

.qa-wall-dialog::backdrop {
  background: rgba(26, 26, 24, 0.55);
}

.qa-wall {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(26, 26, 24, 0.07), rgba(26, 26, 24, 0) 55%),
    repeating-linear-gradient(0deg, rgba(26, 26, 24, 0.028), rgba(26, 26, 24, 0.028) 1px, rgba(255, 255, 255, 0) 7px, rgba(255, 255, 255, 0) 12px),
    linear-gradient(160deg, #faf8f4 0%, #f0ebe3 45%, #e8e2d8 100%);
}

.qa-wall__top {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 224, 214, 0.9);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.qa-wall__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 224, 214, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(26, 26, 24, 0.10);
  min-width: min(520px, 92vw);
}

.qa-wall__search {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  width: 100%;
}

.qa-wall__iconbtn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  cursor: pointer;
  color: var(--text-muted);
  font: inherit;
  line-height: 1;
}

.qa-wall__iconbtn:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.qa-wall__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.qa-wall__chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 224, 214, 0.95);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s, background 0.12s, border-color 0.12s, color 0.12s;
}

.qa-wall__chip:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.qa-wall__chip.is-on {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.qa-wall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.qa-wall__canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.qa-wall__layer {
  position: absolute;
  inset: 0;
}

.qa-card {
  position: absolute;
  width: clamp(220px, 22vw, 360px);
  border-radius: 16px;
  border: 1px solid rgba(229, 224, 214, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(26, 26, 24, 0.14);
  backdrop-filter: blur(8px);
  cursor: grab;
  user-select: none;
  overflow: hidden;
}

.qa-card:active {
  cursor: grabbing;
}

.qa-card__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.45rem;
  border-bottom: 1px solid rgba(229, 224, 214, 0.9);
  background: rgba(250, 248, 244, 0.72);
}

.qa-card__badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.qa-card__id {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.qa-card__meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qa-card__who {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-card__body {
  padding: 0.6rem 0.7rem 0.7rem;
}

.qa-card__q {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 650;
}

.qa-card__q span {
  color: var(--accent);
  font-weight: 750;
}

.qa-card__a {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa-card__media {
  margin-top: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(229, 224, 214, 0.95);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(201, 100, 66, 0.08));
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 26, 24, 0.55);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.qa-card--photo .qa-card__media {
  background: linear-gradient(135deg, rgba(47, 111, 94, 0.12), rgba(37, 99, 235, 0.08));
}
.qa-card--video .qa-card__media {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.10), rgba(37, 99, 235, 0.08));
}
.qa-card--audio .qa-card__media {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(201, 100, 66, 0.08));
}

.qa-wall__hint {
  padding: 0.6rem 0.95rem 0.75rem;
  font-size: 0.72rem;
  color: rgba(26, 26, 24, 0.58);
  border-top: 1px solid rgba(229, 224, 214, 0.9);
  background: rgba(255, 255, 255, 0.58);
}

.qa-wall__pill:focus-within {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 10px 24px rgba(26, 26, 24, 0.10);
}

.qa-wall__chip:focus-visible,
.qa-wall__iconbtn:focus-visible,
.qa-wall__search:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.65);
  outline-offset: 2px;
}

.style-check-result {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.style-check-result strong {
  color: var(--text);
}
