:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --paper: #fffef9;
  --ink: #202426;
  --muted: #747a77;
  --line: rgba(32, 36, 38, 0.14);
  --teal: #2b7470;
  --red: #b75a4b;
  --gold: #d3a33f;
  --blue: #435f8a;
  --green-soft: #e5f0e8;
  --gold-soft: #fff3d9;
  --content-width: 720px;
  --page-gutter: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
  letter-spacing: 0;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .shell {
  opacity: 0;
  transform: translateY(4px);
}

body.is-ready .shell {
  opacity: 1;
  transform: none;
}

body.is-loading::before,
body.is-loading::after {
  position: fixed;
  z-index: 999;
  pointer-events: none;
}

body.is-loading::before {
  content: "";
  inset: 0;
  background: var(--bg);
}

body.is-loading::after {
  content: "回响";
  left: 50%;
  top: 50%;
  min-width: 112px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family:
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "PingFang SC", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  padding: 16px 0 18px;
  transform: translate(-50%, -50%);
  animation: loadingPulse 960ms ease-in-out infinite;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.46;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-loading::after {
    animation: none;
  }
}

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

.shell {
  width: min(calc(100% - var(--page-gutter)), var(--content-width));
  margin: 0 auto;
  padding: 16px 0 30px;
}

.site-head,
.form-row,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  min-height: 28px;
}

.section-head .quiet {
  text-align: right;
}

.topic-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topic-head-actions .ghost-button {
  min-height: 30px;
  padding: 0 13px;
}

.brand-note,
.kicker,
.quiet {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-note,
.kicker {
  text-transform: uppercase;
}

.home-hero {
  padding: 24px 0 12px;
}

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

h1 {
  margin-bottom: 10px;
  font-family:
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "PingFang SC", serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 100%;
  margin: 0;
  color: #384141;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.home-hero .lead {
  white-space: nowrap;
}

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

.home-stats div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.64);
  padding: 10px 12px;
}

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

.home-stats strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.home-stats strong span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.daily {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 30px 22px 32px;
  overflow: hidden;
  border: 1px solid rgba(43, 116, 112, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.9), rgba(229, 240, 232, 0.62));
  text-align: center;
}

.daily::before,
.daily::after {
  content: "";
  width: min(210px, 46%);
  height: 1px;
  background: rgba(43, 116, 112, 0.28);
}

.daily::before {
  margin-bottom: 2px;
}

.daily::after {
  margin-top: 2px;
}

.daily canvas {
  display: block;
  width: min(100%, 640px);
  aspect-ratio: 16 / 10;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e6ecea;
}

.daily canvas[hidden],
.daily:not(.has-image) canvas {
  display: none;
}

.daily-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  gap: 10px;
}

.daily-copy .kicker {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(43, 116, 112, 0.22);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.7);
  color: var(--teal);
  padding: 0 12px;
  text-transform: none;
}

.daily-copy h2,
.submitted-state h2,
.result-block h2 {
  margin-bottom: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

.daily-copy h2 {
  max-width: 100%;
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.daily[data-kind="word"] .daily-copy h2 {
  font-family:
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "PingFang SC", serif;
  font-size: 116px;
  line-height: 0.95;
}

.daily[data-kind="image"] .daily-copy h2 {
  font-size: 44px;
}

.submitted-state h2,
.result-block h2 {
  font-size: 30px;
}

.daily-copy p:last-child,
.submitted-state p,
.result-block p:last-child,
.hint {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.daily-copy p:last-child {
  max-width: 560px;
  color: #59625f;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.58;
}

.reply-form,
.submitted-state {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.reply-form label {
  font-size: 15px;
  font-weight: 800;
}

textarea {
  width: 100%;
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.68;
  outline: none;
  padding: 13px 14px;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(43, 116, 112, 0.1);
}

#counter {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

button,
.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  padding: 0 18px;
}

button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: #e3e6e0;
  color: #8c918d;
}

.primary-link,
.secondary-link {
  width: 100%;
}

.secondary-link {
  margin-top: 18px;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.result-home-link {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.text-link,
.top-action {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.top-action {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  padding: 0 12px;
}

.is-hidden {
  display: none !important;
}

.discover {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.discover summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.hint {
  margin: 10px 0 12px;
}

.topic-list {
  display: grid;
  gap: 8px;
}

.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
  padding: 10px 12px;
}

.topic h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.35;
}

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

.topic-copy {
  min-width: 0;
}

.vote-badge {
  min-width: 48px;
  min-height: 38px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(43, 116, 112, 0.22);
  border-radius: 8px;
  background: rgba(43, 116, 112, 0.07);
  color: var(--teal);
  line-height: 1;
}

.vote-badge strong {
  font-size: 16px;
  line-height: 1;
}

.vote-badge span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
}

.topic button {
  width: 70px;
  min-height: 34px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  padding: 0 12px;
}

.result-shell {
  padding-bottom: 38px;
}

.result-title {
  position: relative;
  padding: 24px 0 12px;
}

.result-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 34px;
  height: 2px;
  background: var(--teal);
  opacity: 0.72;
}

.discover-hero {
  padding: 22px 0 6px;
}

.discover-hero h1 {
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
  font-size: clamp(34px, 9vw, 50px);
  font-weight: 900;
  line-height: 1.05;
}

.lead.small {
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(17px, 2.7vw, 21px);
  font-weight: 700;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.result-title h1 {
  max-width: 610px;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
  font-size: clamp(25px, 6.2vw, 38px);
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.result-block {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.report-block {
  border: 1px solid rgba(43, 116, 112, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.92), rgba(239, 245, 242, 0.44));
  padding: 24px;
}

.report-block .section-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.report-block h2 {
  max-width: 640px;
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.18;
}

.report-title-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.report-block .quiet {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(43, 116, 112, 0.18);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.68);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
  white-space: nowrap;
}

#viewpointInsight {
  max-width: 650px;
  margin: 0 0 22px;
  color: #374140;
  font-size: 16px;
  line-height: 1.72;
}

.result-block.accent,
.result-block.minority,
.affinity-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.result-block.accent {
  background: var(--green-soft);
}

.affinity-block {
  background: rgba(255, 254, 249, 0.68);
}

.result-block.minority {
  display: grid;
  gap: 12px;
  border-color: rgba(43, 116, 112, 0.14);
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(244, 247, 244, 0.68));
  padding: 22px;
}

.result-block.minority .kicker {
  color: var(--teal);
}

.result-block.minority h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.22;
}

.result-block.minority p:last-child {
  max-width: 620px;
  margin: 0;
  color: #5f6864;
  font-size: 16px;
  line-height: 1.72;
}

.viewpoint-list,
.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-list {
  counter-reset: echo-note;
}

.viewpoint-row {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(32, 36, 38, 0.1);
  border-left: 3px solid rgba(43, 116, 112, 0.26);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.7);
  padding: 14px 15px 15px;
}

.viewpoint-row:last-child {
  padding-bottom: 15px;
}

.viewpoint-row h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.32;
}

.viewpoint-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.viewpoint-row-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
}

.viewpoint-row-head strong {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(43, 116, 112, 0.18);
  border-radius: 999px;
  background: rgba(43, 116, 112, 0.07);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.1;
  padding: 0 10px;
  white-space: nowrap;
}

.viewpoint-row p {
  margin: 0;
  color: #68716d;
  font-size: 15px;
  line-height: 1.72;
}

.viewpoint-bar {
  display: none;
}

.report-waiting {
  border-left: 3px solid rgba(43, 116, 112, 0.26);
  background: rgba(255, 254, 249, 0.54);
  padding: 10px 12px;
}

.highlight-block {
  padding-bottom: 2px;
}

.ghost-button {
  min-height: 34px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  padding: 0 12px;
}

.compact-action {
  justify-self: start;
  width: auto;
}

.contribution {
  display: grid;
  gap: 10px;
}

.contribution-form {
  display: grid;
  gap: 10px;
}

.contribution-form textarea {
  height: 96px;
  min-height: 96px;
  resize: none;
}

.contribution-form.is-word-mode #topicTitle {
  width: 86px;
  min-width: 86px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  padding-left: 10px;
  padding-right: 10px;
}

.contribution-form.is-word-mode #topicTitle::placeholder {
  color: #9a9f9b;
  text-align: center;
}

.topic-history {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.topic-history-list {
  display: grid;
  gap: 8px;
}

.topic-history-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.58);
  padding: 10px 12px;
}

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

.topic-history-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.topic-history-item span,
.topic-history-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.topic-history-item p {
  margin: 0;
}

body[data-page="discover"] .submitted-state h2 {
  font-size: clamp(24px, 5.5vw, 32px);
}

body[data-page="discover"] .submitted-state {
  gap: 8px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.choice-row label {
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.72);
  color: #364040;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  word-break: keep-all;
  padding: 0 12px;
}

.choice-row input {
  width: auto;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.choice-row label.is-disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.62;
}

.microcopy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.microcopy.positive-note {
  color: var(--teal);
  font-weight: 800;
}

.microcopy.warning-note {
  color: var(--red);
  font-weight: 800;
}

.field-limit {
  margin: -4px 2px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

input:not([type="radio"]),
.contribution-form input:not([type="radio"]),
.contribution-form textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  padding: 12px 13px;
}

input:not([type="radio"]):focus,
.contribution-form input:not([type="radio"]):focus,
.contribution-form textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 116, 112, 0.13);
}

#adminLoginBlock {
  margin-top: 24px;
  padding: 20px 22px 24px;
}

#adminLoginForm {
  gap: 14px;
}

#adminLoginForm input:not([type="radio"]) {
  min-height: 52px;
}

#adminLoginForm button {
  min-height: 52px;
  margin-top: 2px;
}

#adminLoginMessage {
  min-height: 22px;
  margin: 2px 0 0;
}

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

.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
  padding: 12px;
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.admin-stat span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-subhead {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inline-controls {
  align-items: end;
}

.admin-compact-number {
  display: grid;
  gap: 4px;
  min-width: 118px;
}

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

.admin-compact-number input {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.admin-actions button {
  width: auto;
  min-width: 58px;
  min-height: 36px;
  padding: 0 12px;
  border-color: var(--admin-action-border, var(--ink));
  background: var(--admin-action-bg, var(--ink));
  color: var(--admin-action-fg, var(--paper));
  font-size: 13px;
}

.admin-actions button:not(:disabled):hover {
  filter: brightness(0.97);
}

.admin-actions button[data-admin-prompt-save],
.admin-actions button[data-admin-save],
.admin-actions button[data-admin-save-settings] {
  --admin-action-bg: var(--ink);
  --admin-action-border: var(--ink);
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-ai-sweep][data-admin-ai-apply="true"] {
  --admin-action-bg: #365f73;
  --admin-action-border: #365f73;
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-cluster-condense] {
  --admin-action-bg: #2b7470;
  --admin-action-border: #2b7470;
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-ai-generate-responses] {
  --admin-action-bg: #435f8a;
  --admin-action-border: #435f8a;
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-approve],
.admin-actions button[data-admin-response-action="approve"],
.admin-actions button[data-admin-comment-action="approve"] {
  --admin-action-bg: var(--teal);
  --admin-action-border: var(--teal);
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-prompt-publish],
.admin-actions button[data-admin-publish-topic] {
  --admin-action-bg: var(--blue);
  --admin-action-border: var(--blue);
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-comment-action="feature"] {
  --admin-action-bg: #8a6b30;
  --admin-action-border: #8a6b30;
  --admin-action-fg: var(--paper);
}

.admin-actions button[data-admin-reject],
.admin-actions button[data-admin-delete-topic],
.admin-actions button[data-admin-response-delete],
.admin-actions button[data-admin-comment-delete],
.admin-actions button[data-admin-response-action="reject"],
.admin-actions button[data-admin-comment-action="reject"] {
  --admin-action-bg: #fff7f2;
  --admin-action-border: rgba(183, 90, 75, 0.42);
  --admin-action-fg: #994636;
}

.admin-actions button[data-admin-prompt-archive],
.admin-actions button[data-admin-response-action="review"],
.admin-actions button[data-admin-comment-action="review"],
.admin-actions button[data-admin-comment-action="private"] {
  --admin-action-bg: var(--gold-soft);
  --admin-action-border: rgba(211, 163, 63, 0.45);
  --admin-action-fg: #76591d;
}

.admin-actions button:disabled {
  border-color: var(--line);
  background: #e3e6e0;
  color: #8c918d;
  filter: none;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.admin-tabs button {
  min-height: 36px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  padding: 0 13px;
}

.admin-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.admin-ai-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  border: 1px solid rgba(43, 116, 112, 0.18);
  border-radius: 8px;
  background: rgba(232, 241, 239, 0.4);
  padding: 12px;
}

.admin-ai-copy {
  display: grid;
  gap: 3px;
}

.admin-ai-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-ai-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.admin-ai-opinion {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(43, 116, 112, 0.42);
  background: rgba(232, 241, 239, 0.34);
  padding: 8px 10px;
}

.admin-ai-opinion span,
.admin-ai-opinion small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-ai-opinion p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.admin-cluster {
  gap: 12px;
}

.admin-cluster h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.admin-cluster p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.admin-cluster-report {
  gap: 14px;
}

.admin-cluster-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-cluster-report-heading > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-cluster-report-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.admin-cluster-report-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.admin-cluster-report-heading button {
  width: auto;
  flex: 0 0 auto;
}

.admin-cluster-report-section {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-cluster-report-section > span,
.admin-cluster-report-section small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-cluster-report-section h4 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.admin-cluster-report-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.admin-cluster-report-section.is-primary {
  border-top-color: rgba(43, 116, 112, 0.34);
}

.admin-cluster-list {
  display: grid;
  gap: 12px;
}

.admin-cluster-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-cluster-details summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.admin-cluster-details .admin-cluster-list {
  margin-top: 12px;
}

.admin-cluster-points {
  display: grid;
  gap: 8px;
}

.admin-cluster-points blockquote {
  margin: 0;
  border-left: 3px solid rgba(43, 116, 112, 0.42);
  background: rgba(232, 241, 239, 0.32);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

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

.admin-status-row button {
  width: auto;
  min-height: 34px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  padding: 0 11px;
}

.admin-status-row button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.admin-status-row span {
  margin-left: 5px;
  color: inherit;
  opacity: 0.72;
}

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

.admin-topic {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
  padding: 13px 14px;
}

.admin-topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-topic-fields {
  display: grid;
  gap: 8px;
}

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

.admin-field-grid.compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: end;
}

.admin-topic-fields label {
  display: grid;
  gap: 5px;
}

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

.admin-topic-fields textarea {
  height: 76px;
  min-height: 76px;
  resize: none;
}

.admin-topic-message {
  min-height: 18px;
}

.admin-schedule-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 13px;
}

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

.admin-schedule-row {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(32, 36, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.62);
  padding: 11px;
}

.admin-schedule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.admin-schedule-top button {
  width: auto;
  min-height: 32px;
  border-color: rgba(183, 90, 75, 0.32);
  background: #fff7f2;
  color: #994636;
  font-size: 13px;
  padding: 0 10px;
}

.admin-schedule-foot {
  display: grid;
  gap: 4px;
  align-self: end;
}

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

.admin-filter-row label {
  display: grid;
  gap: 5px;
}

.admin-filter-row span,
.admin-user-meta,
.admin-pagination {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-pagination div {
  display: flex;
  gap: 8px;
}

.admin-pagination button {
  width: auto;
  min-width: 68px;
  min-height: 34px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  padding: 0 12px;
}

.admin-user-meta,
.admin-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.admin-user-meta span,
.admin-log-meta span {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 36, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.62);
  padding: 3px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-note,
.empty-state {
  padding: 9px 0;
}

.admin-review,
.admin-log-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
  padding: 13px 14px;
}

.admin-review {
  display: grid;
  gap: 10px;
}

.admin-review p {
  margin: 0;
  color: #333b3b;
  font-size: 15px;
  line-height: 1.65;
}

.admin-review .admin-ai-opinion p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.admin-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.admin-log-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-log-row strong {
  color: var(--ink);
}

.admin-log-row.is-ai-log {
  border-color: rgba(43, 116, 112, 0.26);
  background: rgba(232, 241, 239, 0.56);
}

.admin-log-action {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ai-log-badge {
  border: 1px solid rgba(43, 116, 112, 0.24);
  border-radius: 999px;
  background: rgba(43, 116, 112, 0.08);
  color: var(--teal);
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
}

.highlight-card {
  position: relative;
  border: 1px solid rgba(32, 36, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.86);
  padding: 26px 14px 13px;
}

.highlight-card::before {
  counter-increment: echo-note;
  content: "回声 " counter(echo-note);
  position: absolute;
  left: 14px;
  top: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.highlight-card:nth-child(2) {
  margin-left: 18px;
}

.highlight-card:nth-child(3) {
  margin-left: 36px;
}

.highlight-card:nth-child(4) {
  margin-left: 24px;
}

.highlight-card:nth-child(5) {
  margin-left: 8px;
}

.highlight-card p {
  margin: 0;
  color: #333b3b;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  h1 {
    font-size: 64px;
  }

  .lead {
    font-size: 22px;
  }

  .daily {
    padding: 26px 18px 28px;
  }

  .daily-copy h2 {
    font-size: 42px;
  }

  .daily[data-kind="word"] .daily-copy h2 {
    font-size: 104px;
  }

  .daily[data-kind="image"] .daily-copy h2 {
    font-size: 38px;
  }

  .lead.small {
    max-width: 13.5em;
    white-space: normal;
  }

  .section-head {
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-head .quiet {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topic-head-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-row > span,
  .form-row > .quiet {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 22px;
  }

  .shell {
    padding-top: 12px;
  }

  .home-hero {
    padding: 20px 0 12px;
  }

  .home-hero .lead {
    max-width: 360px;
    white-space: normal;
  }

  h1 {
    font-size: 54px;
  }

  .lead {
    font-size: 20px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .daily {
    gap: 14px;
    margin-top: 14px;
    padding: 23px 14px 24px;
  }

  .daily-copy {
    gap: 8px;
  }

  .daily-copy h2 {
    font-size: 34px;
  }

  .daily[data-kind="word"] .daily-copy h2 {
    font-size: 88px;
  }

  .daily[data-kind="image"] .daily-copy h2 {
    font-size: 31px;
  }

  .daily-copy p:last-child {
    font-size: 15px;
    line-height: 1.62;
  }

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

  .lead.small {
    overflow-wrap: anywhere;
  }

  .report-block {
    padding: 18px 14px;
  }

  .report-block .section-head {
    gap: 8px;
  }

  .report-block h2 {
    font-size: 28px;
  }

  .report-block .quiet {
    justify-self: flex-start;
  }

  .viewpoint-row-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .result-block.minority {
    padding: 18px 14px;
  }

  .result-block.minority h2 {
    font-size: 25px;
  }

  .vote-badge {
    width: 100%;
    min-height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
  }

  .vote-badge span {
    margin-top: 0;
  }

  .highlight-card:nth-child(2),
  .highlight-card:nth-child(3),
  .highlight-card:nth-child(4),
  .highlight-card:nth-child(5) {
    margin-left: 0;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-field-grid,
  .admin-filter-row,
  .admin-log-row {
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-pagination div {
    width: 100%;
  }

  .admin-pagination button {
    flex: 1;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button {
    width: 100%;
  }

  .admin-cluster-report-heading {
    flex-direction: column;
  }

  .admin-cluster-report-heading button {
    width: 100%;
  }

  button,
  .topic button {
    width: 100%;
  }

  .topic-head-actions button {
    width: auto;
  }
}
