:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #202421;
  --muted: #68736c;
  --line: #d9ded8;
  --accent: #0e766f;
  --accent-strong: #094f4a;
  --warm: #c26a36;
  --shadow: 0 14px 32px rgba(33, 38, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #15907f);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark-main {
  display: grid;
  gap: 1px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.02;
  text-align: center;
  transform: translateY(-1px);
}

.brand-mark-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffc78d;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
}

.brand-sub {
  display: none;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.global-nav a,
.pill-link,
.category-chip {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.global-nav a {
  padding: 7px 10px;
}

.global-nav a:hover,
.pill-link:hover {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.page-shell {
  padding: 28px 0 56px;
}

.page-shell:has(.article-detail) {
  padding-top: 12px;
}

.page-shell:has(.visual-editor-shell) {
  width: min(1320px, calc(100% - 28px));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-main {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 20, 18, 0.1), rgba(14, 20, 18, 0.74)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
}

.hero-main .eyebrow {
  color: #ffc78d;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 16px;
}

.hero-meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-side,
.side-panel,
.article-card,
.comment-block,
.article-body,
.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-side {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
}

.section-head h2,
.side-panel h2,
.article-list-header h1 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topic-strip a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

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

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

.article-card {
  min-height: 100%;
  display: grid;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.heat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(32, 36, 33, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.article-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.article-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-panel {
  padding: 18px;
}

.rank-list,
.category-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.rank-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

.category-card {
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-list-header {
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.header-stats span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.article-list-header h1 {
  font-size: clamp(26px, 4vw, 42px);
}

.article-list {
  display: grid;
  gap: 16px;
}

.list-card {
  grid-template-columns: 176px minmax(0, 1fr);
}

.list-card .thumb {
  align-self: start;
  aspect-ratio: 4 / 3;
}

.article-detail {
  display: grid;
  grid-template-columns: minmax(0, 832px) 248px;
  gap: 24px;
  justify-content: start;
  align-items: start;
}

.article-body {
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
}

.article-hero {
  position: relative;
}

.article-heat {
  top: 16px;
  left: 16px;
}

.article-content {
  padding: 30px;
}

.article-content h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.28;
  letter-spacing: 0;
}

.lead {
  margin: 10px 0 26px;
  color: #5f6b65;
  font-size: 18px;
}

.visual-editor-shell {
  display: grid;
  gap: 14px;
}

.visual-editor-preview {
  grid-template-columns: minmax(0, 832px);
}

.visual-editor-preview .article-body {
  border: 1px solid var(--line);
}

.visual-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 832px) 220px;
  gap: 16px;
  align-items: start;
}

.visual-editor-sidebar {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 10px;
}

.visual-save-status,
.visual-publish-panel,
.visual-quality-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
}

.visual-save-status {
  display: grid;
  gap: 6px;
}

.visual-save-status small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.visual-publish-panel {
  display: grid;
  gap: 10px;
}

.visual-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visual-publish-head > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.visual-publish-panel label {
  display: grid;
  gap: 5px;
}

.visual-publish-steps {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.visual-publish-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  border: 1px solid #edf1ed;
  border-radius: 7px;
  background: #fbfcfb;
  padding: 7px;
}

.visual-publish-steps li > span {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e9efec;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.visual-publish-steps strong {
  color: var(--ink);
  font-size: 12px;
}

.visual-publish-steps small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.visual-publish-steps li.is-done > span {
  background: var(--accent);
  color: #fff;
}

.visual-publish-steps li.is-warn > span {
  background: #d88a25;
  color: #fff;
}

.visual-publish-review-button {
  border: 0;
  border-radius: 999px;
  background: #fff1d8;
  color: #9a541f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 12px;
}

.visual-publish-panel label > span,
.visual-publish-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.visual-publish-panel select,
.visual-publish-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 8px 9px;
}

.visual-publish-meta {
  display: grid;
  gap: 3px;
}

.visual-publish-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.visual-publish-actions button {
  border: 0;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.visual-publish-actions button:last-child {
  background: var(--accent);
  color: #fff;
}

.visual-quality-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.visual-quality-panel summary::-webkit-details-marker {
  display: none;
}

.visual-quality-panel summary span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.visual-quality-panel summary strong {
  color: var(--ink);
  font-size: 12px;
}

.visual-quality-panel summary small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.visual-quality-panel .quality-check-list {
  margin-top: 8px;
}

.visual-quality-panel .quality-check {
  gap: 7px;
  padding: 7px 0;
  border-radius: 6px;
  cursor: pointer;
}

.visual-quality-panel .quality-check strong {
  font-size: 12px;
}

.visual-quality-panel .quality-check small {
  font-size: 11px;
  line-height: 1.35;
}

.visual-quality-panel .quality-check:hover,
.visual-quality-panel .quality-check:focus-visible {
  background: #f6faf8;
  outline: 0;
}

.visual-edit-target {
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  outline: 1px dashed transparent;
  outline-offset: 6px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}

.visual-edit-target:hover,
.visual-edit-target:focus-visible {
  background: #f8fbf7;
  outline-color: #9ecfc1;
}

.visual-edit-target.is-quality-highlight,
.comment-block.is-quality-highlight,
.reaction-head.is-quality-highlight,
.source-reference-card.is-quality-highlight {
  background: #fff9e8;
  outline: 2px solid #df9629;
  outline-offset: 6px;
  transition: background 0.15s ease, outline-color 0.15s ease;
}

.visual-edit-target::after {
  content: "編集";
  position: absolute;
  right: 0;
  top: -22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.visual-edit-target:hover::after,
.visual-edit-target:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.visual-edit-comment-text {
  display: block;
  margin: 2px 0;
}

.visual-edit-depth-badge {
  border: 0;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
}

.visual-edit-depth-badge:hover,
.visual-edit-depth-badge:focus-visible {
  background: #dcece7;
  outline: 0;
}

.visual-edit-drag-handle {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 1px solid #d7e3de;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  cursor: grab;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
}

.visual-edit-drag-handle:active {
  cursor: grabbing;
}

body.is-visual-comment-dragging {
  cursor: grabbing;
  user-select: none;
}

.visual-editor-preview .comment-block {
  transition: outline-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.visual-editor-preview .comment-block.is-dragging {
  opacity: 0.42;
  transform: scale(0.995);
}

.visual-editor-preview .comment-block.is-drop-target {
  outline: 2px solid #0b7f6f;
  outline-offset: 4px;
  background: #f3faf7;
}

.visual-edit-image-target::after {
  right: 12px;
  top: 12px;
}

.visual-edit-inline-target {
  display: inline-block;
}

.visual-edit-source-url {
  word-break: break-all;
}

.editor-note .visual-edit-target {
  display: block;
  margin: 0;
}

.visual-edit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 28, 25, 0.38);
}

.visual-edit-modal {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(24, 35, 31, 0.22);
}

.visual-edit-modal header,
.visual-edit-modal footer,
.visual-edit-suggestion > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-edit-modal header span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.visual-edit-modal h2 {
  margin: 0;
  font-size: 22px;
}

.visual-edit-modal label,
.visual-edit-suggestion {
  display: grid;
  gap: 6px;
}

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

.visual-edit-comment-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.visual-edit-comment-controls > div {
  display: flex;
  gap: 8px;
}

.visual-edit-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.visual-edit-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.visual-edit-check span {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.visual-edit-hidden-label {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef1ee;
  color: #6d7771;
  font-size: 11px;
  font-weight: 900;
}

.visual-editor-preview .comment-block.is-hidden-in-editor {
  opacity: 0.48;
}

.visual-editor-preview .comment-block.is-hidden-in-editor .translation {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #aab5af;
}

.visual-edit-modal label > span,
.visual-edit-suggestion strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.visual-edit-modal textarea,
.visual-edit-modal select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  padding: 10px 12px;
}

.visual-edit-modal textarea {
  resize: vertical;
}

.visual-edit-modal textarea:focus,
.visual-edit-modal select:focus {
  outline: 0;
  border-color: var(--accent);
}

.visual-edit-modal button {
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 13px;
}

.visual-edit-modal [data-visual-edit-save] {
  background: var(--accent);
  color: #fff;
}

.visual-edit-original {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.visual-edit-original summary {
  width: fit-content;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.visual-edit-original p {
  margin: 0;
  color: #4f5d55;
  font-size: 13px;
  line-height: 1.65;
}

.source-box {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c8780;
  font-size: 12px;
  font-weight: 700;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcf9;
}

.article-share strong,
.article-share small {
  display: block;
}

.article-share strong {
  color: var(--ink);
  font-size: 14px;
}

.article-share small,
.article-share-status {
  color: var(--muted);
  font-size: 12px;
}

.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.article-share-actions button,
.article-share-actions a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #b8d5c8;
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.article-share-actions button:hover,
.article-share-actions a:hover {
  border-color: var(--accent);
  background: #edf7f1;
}

.related-stories {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.related-stories .section-head {
  margin: 0;
}

.related-stories-list {
  display: grid;
  gap: 12px;
}

.source-reference {
  margin: 0 0 26px;
}

.source-reference-head {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.source-reference-head span,
.source-reference-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.source-reference-head strong,
.source-reference-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.source-reference-card a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.visual-editor-preview .source-reference-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.source-reference-card a:hover {
  border-color: #b9d2cb;
  background: #f7fbf9;
}

.source-reference-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-reference-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.source-reference-thumb {
  width: 82px;
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf5f2;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-reference-thumb.is-hn {
  background: #ff6600;
  color: #fff;
  font-size: 20px;
}

.source-reference-thumb.is-reddit {
  background: #ff4500;
  color: #fff;
  font-size: 18px;
}

.source-reference-video iframe,
.source-reference-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #111;
}

.source-reference-reddit-video iframe {
  min-height: 420px;
}

.source-reference-open {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-reference-x {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.source-reference-x .twitter-tweet {
  margin: 0;
}

.summary-box {
  margin: 24px 0 16px;
  padding: 18px;
  border: 1px solid #bfd7d2;
  border-radius: 8px;
  background: #f3faf8;
}

.summary-box h2,
.reaction-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.summary-box p {
  margin: 8px 0 0;
  color: #3c4c48;
}

.reaction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-bottom: 8px;
}

.reaction-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.comment-block {
  margin: 4px 0 8px;
  margin-left: calc(var(--comment-depth, 0) * 36px);
  padding: 10px 0 9px;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.comment-block.is-reply {
  width: calc(100% - (var(--comment-depth, 0) * 36px));
  margin-top: 0;
  padding-top: 7px;
}

.comment-block.is-reply + .comment-block.is-reply {
  margin-top: -2px;
}

.comment-thread-lines {
  position: absolute;
  inset: 0 auto 0 calc(var(--comment-depth, 0) * -36px);
  width: calc(var(--comment-depth, 0) * 36px);
  pointer-events: none;
}

.comment-thread-line {
  position: absolute;
  top: -12px;
  bottom: -8px;
  left: calc((var(--thread-level) - 1) * 36px + 18px);
  width: 1px;
  background: #d8e0dc;
}

.comment-thread-line:not(.continues) {
  bottom: auto;
  height: 32px;
}

.comment-thread-line.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  width: 14px;
  border-top: 1px solid #d8e0dc;
}

.comment-block.is-featured {
  background: transparent;
}

.comment-block.is-featured .comment-meta {
  color: var(--comment-mood-meta, #9a6a12);
}

.comment-block.is-featured .translation {
  color: var(--comment-mood-text, #7a3f13);
  font-size: 17px;
  line-height: 1.5;
}

.comment-block.is-size-large .translation {
  font-size: 18px;
  line-height: 1.5;
}

.comment-block.is-size-small .translation {
  color: color-mix(in srgb, var(--comment-mood-text, #1f2824) 72%, #67736d);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.comment-block.is-mood-warm {
  --comment-mood-mark: #e3b34f;
  --comment-mood-meta: #9b6711;
  --comment-mood-text: #7c430d;
}

.comment-block.is-mood-funny {
  --comment-mood-mark: #64b857;
  --comment-mood-meta: #2f7a2e;
  --comment-mood-text: #245f2a;
}

.comment-block.is-mood-sad {
  --comment-mood-mark: #6f8fd0;
  --comment-mood-meta: #4569aa;
  --comment-mood-text: #354f88;
}

.comment-block.is-mood-relief {
  --comment-mood-mark: #55b9bb;
  --comment-mood-meta: #19797d;
  --comment-mood-text: #14666a;
}

.comment-block.is-mood-surprise {
  --comment-mood-mark: #d26a9b;
  --comment-mood-meta: #9b3970;
  --comment-mood-text: #7d2d5b;
}

.comment-block.is-mood-hot {
  --comment-mood-mark: #c85b4c;
  --comment-mood-meta: #a24b3f;
  --comment-mood-text: #a2382e;
}

.comment-embed {
  margin: 8px 0 4px;
  max-width: 560px;
}

.comment-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #111;
}

.comment-embed a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.comment-embed.is-link-only {
  max-width: 360px;
}

.comment-image-embed {
  width: min(100%, 560px);
  margin: 8px 0 4px;
}

.comment-image-embed a {
  display: grid;
  gap: 6px;
  color: var(--accent-strong);
  text-decoration: none;
}

.comment-image-embed img {
  display: block;
  width: 100%;
  min-height: 140px;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #f6faf8;
}

.comment-image-fallback {
  display: none;
  padding: 10px 12px;
  border: 1px dashed #c7d8d0;
  border-radius: 8px;
  background: #f6faf8;
}

.comment-image-fallback strong,
.comment-image-fallback small {
  display: block;
}

.comment-image-fallback strong {
  color: var(--accent-strong);
  font-size: 13px;
}

.comment-image-fallback small {
  color: var(--muted);
  font-size: 12px;
}

.comment-image-embed.is-broken img {
  display: none;
}

.comment-image-embed.is-broken .comment-image-fallback {
  display: block;
}

.comment-video-link {
  width: 100%;
  display: grid !important;
  gap: 3px;
  margin-top: 0 !important;
  padding: 12px 14px;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #f6faf8;
  color: var(--ink) !important;
}

.comment-video-link span {
  color: #c4302b;
  font-size: 12px;
  font-weight: 900;
}

.comment-video-link strong {
  font-size: 14px;
}

.comment-video-link small {
  color: var(--muted);
  font-size: 12px;
}

.comment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 2px;
}

.comment-links a {
  color: #1769aa;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-links a:hover {
  color: #0b4f83;
}

.comment-links span {
  display: inline-block;
  margin-left: 3px;
  font-size: 11px;
  text-decoration: none;
}

.external-link-icon {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 6px !important;
  vertical-align: -3px;
  text-decoration: none;
}

.external-link-icon::before,
.external-link-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
  background: #fafbf8;
}

.external-link-icon::before {
  left: 1px;
  top: 6px;
  opacity: 0.8;
}

.external-link-icon::after {
  left: 4px;
  top: 3px;
  background: #fafbf8;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-number {
  color: var(--accent-strong);
}

.comment-number::before {
  content: "■";
  display: inline-block;
  margin-right: 6px;
  color: #cdd8d3;
  font-size: 9px;
  transform: translateY(-1px);
}

.comment-block.is-featured .comment-number::before {
  color: var(--comment-mood-mark, #e0b96f);
}

.comment-marker {
  width: 7px;
  height: 7px;
  display: inline-block;
  align-self: center;
  border-radius: 1px;
  background: #cdd8d3;
}

.comment-block.is-featured .comment-marker {
  background: var(--comment-mood-mark, #e0b96f);
}

.comment-score {
  color: #244fd8;
  font-weight: 900;
  margin-left: 1em;
}

.comment-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
}

.comment-actions .original-text {
  margin-left: auto;
}

.comment-related-link {
  margin: 10px 0 12px;
  padding-left: calc(var(--comment-depth, 0) * 32px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.comment-related-link a {
  color: #315bdc;
  text-decoration: none;
}

.comment-related-link a:hover {
  text-decoration: underline;
}

.country-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-icon {
  width: 18px;
  height: 13px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(32, 36, 33, 0.16);
  object-fit: cover;
}

.flag-fallback {
  min-width: 26px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.quote {
  margin: 0 0 10px;
  color: #46504a;
  font-size: 14px;
}

.translation {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.original-text {
  margin-top: 0;
  line-height: 1.2;
  text-align: right;
}

.original-text summary {
  display: inline-flex;
  color: #8b9790;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  list-style: none;
}

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

.original-text summary:hover {
  color: var(--accent-strong);
}

.original-text p {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #46504a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
}

.editor-note {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #f0dfbd;
  border-radius: 8px;
  background: #fff8e8;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.editor-note p {
  margin: 0;
  color: #4d4738;
  font-size: 14px;
  line-height: 1.65;
}

.article-ad-sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
}

.ad-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #cbd8d2;
  border-radius: 8px;
  background: #f7faf8;
  color: #7a8780;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  padding: 12px;
}

.ad-slot span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
}

.ad-slot strong {
  max-width: 18em;
  color: #4f5d55;
  font-size: 13px;
  line-height: 1.35;
}

.ad-slot small {
  max-width: 22em;
  color: #7a8780;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.ad-slot-side {
  min-height: 300px;
}

.ad-slot-side.compact {
  min-height: 180px;
}

.ad-slot-inline {
  min-height: 92px;
  margin-top: 22px;
}

.mascot-avatar {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 999px;
  background: #fff;
  background-image: url("assets/tonakai-mascot.png");
  background-position: center 25%;
  background-size: 210%;
  background-repeat: no-repeat;
  border: 1px solid #f0d5b7;
}

.reader-comments {
  margin-top: 18px;
  padding-top: 12px;
}

.reader-comments-head h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.reader-comments-head span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-empty {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.comment-empty p {
  margin: 0;
}

.comment-empty p + p {
  margin-top: 2px;
}

.reader-comments-list {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.reader-comment {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.reader-comment-main,
.reply-form-main {
  width: 100%;
  min-width: 0;
}

.reader-comment-main {
  padding-left: 0;
}

.reader-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reader-comment-meta strong {
  color: var(--ink);
}

.reader-comment p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.reader-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.reader-comment-actions button {
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
}

.reader-reaction-set {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.reader-reaction-picker {
  position: relative;
  display: inline-flex;
}

.reader-reaction-picker::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -136px;
  bottom: 100%;
  height: 14px;
}

.reader-comment-actions .reader-reaction-trigger {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--accent-strong);
  font-size: 15px;
  line-height: 1;
}

.reader-reaction-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 49, 45, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.reader-reaction-picker:hover .reader-reaction-menu,
.reader-reaction-picker:focus-within .reader-reaction-menu,
.reader-reaction-picker.is-open .reader-reaction-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reader-comment-actions .reader-reaction-choice,
.reader-comment-actions .reader-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 3px;
}

.reader-comment-actions .reader-reaction-choice {
  width: 34px;
  height: 34px;
  padding: 3px;
  background: transparent;
}

.reader-comment-actions .reader-reaction-chip {
  min-width: 40px;
}

.reader-comment-actions .reader-reaction-choice.is-active,
.reader-comment-actions .reader-reaction-chip.is-active {
  background: #e0f0ec;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 129, 111, 0.18);
}

.reaction-face {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(19, 49, 45, 0.1);
  object-fit: cover;
}

.reader-reaction-choice:hover .reaction-face,
.reader-reaction-choice.is-active .reaction-face,
.reader-reaction-chip:hover .reaction-face,
.reader-reaction-chip.is-active .reaction-face {
  transform: translateY(-1px) scale(1.04);
}

.reader-reaction-chip .reaction-count {
  min-width: 0.65em;
  font-variant-numeric: tabular-nums;
}

.reader-replies {
  margin-top: 12px;
}

.reader-replies summary {
  width: fit-content;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

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

.reader-replies summary:hover {
  text-decoration: underline;
}

.reader-replies-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 36px;
}

.reader-replies:not([open]) .reader-replies-list {
  display: none;
}

.reader-reply,
.reply-form {
  display: block;
}

.reader-reply {
  position: relative;
}

.reader-reply-line {
  position: absolute;
  top: -12px;
  left: -18px;
  width: 1px;
  height: 31px;
  background: #d8e0dc;
  pointer-events: none;
}

.reader-reply-line.continues {
  bottom: -10px;
  height: auto;
}

.reader-reply-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 31px;
  width: 14px;
  border-top: 1px solid #d8e0dc;
}

.reader-reply p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.reply-form {
  margin-top: 12px;
}

.reply-form select,
.reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
}

.reply-form select {
  width: auto;
  max-width: 260px;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.reply-form textarea:focus,
.reply-form select:focus {
  outline: 0;
  border-color: var(--accent);
}

.comment-form {
  margin-top: 12px;
}

.comment-form select,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
}

.comment-form select {
  width: auto;
  max-width: 260px;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.comment-form textarea {
  min-height: 42px;
}

.comment-form textarea:focus,
.comment-form select:focus {
  outline: 0;
  border-color: var(--accent);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.comment-form-actions button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
}

.comment-form-actions button[type="submit"] {
  background: var(--accent);
  color: #fff;
}

.comment-error {
  margin: 6px 0 0;
  color: #b5472f;
  font-size: 12px;
  font-weight: 800;
}

.more-feed {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.more-feed-list {
  display: grid;
}

.more-feed-item {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.more-feed-item.has-thumb {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.more-feed-item.has-thumb img {
  width: 132px;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.more-feed-item:first-child {
  border-top: 0;
}

.ad-slot-feed {
  min-height: 86px;
  margin: 8px 0;
}

.more-feed-item > span,
.more-feed-item strong {
  display: block;
}

.more-feed-item strong {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.45;
}

.more-feed-sentinel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-preview-shell {
  display: grid;
  gap: 10px;
  margin: 24px auto 0;
  max-width: var(--content-width);
}

.admin-preview-status,
.admin-preview-loading {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-preview-loading {
  max-width: var(--content-width);
  margin: 40px auto;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.admin-head-actions,
.admin-row-actions,
.admin-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row-actions {
  flex-wrap: wrap;
  align-content: center;
}

.admin-button,
.admin-subhead button,
.admin-row-actions a,
.admin-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 9px 14px;
}

.admin-button.secondary,
.admin-row-actions a,
.admin-row-actions button,
.admin-subhead button {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.admin-row-actions a,
.admin-row-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-row-actions .admin-danger {
  color: #b5472f;
}

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

.admin-stat,
.admin-toolbar,
.admin-table,
.admin-form,
.admin-side section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 16px;
}

.admin-stat strong {
  font-size: 26px;
  line-height: 1;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-login-shell {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.admin-login-card {
  width: min(100%, 380px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 39, 35, 0.08);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.admin-login-card p {
  color: var(--muted);
  margin: 0;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
}

.admin-login-card label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-login-card input {
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  padding: 11px 12px;
}

.admin-login-card button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 11px 18px;
}

.admin-visual-edit-cta {
  border: 1px solid #b9d7ce;
  border-radius: 8px;
  background: #f6fbf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.admin-visual-edit-cta div {
  display: grid;
  gap: 4px;
}

.admin-visual-edit-cta strong {
  color: var(--ink);
  font-size: 15px;
}

.admin-visual-edit-cta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-draft {
  background: #f0f1ee;
  color: #68736c;
}

.status-review {
  background: #fff1d8;
  color: #9a541f;
}

.status-scheduled {
  background: #e8f1fb;
  color: #28639b;
}

.status-published {
  background: #e0f0ec;
  color: var(--accent-strong);
}

.status-visible {
  background: #e0f0ec;
  color: var(--accent-strong);
}

.status-hidden {
  background: #f8e3dc;
  color: #9a3f2a;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 180px 180px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.admin-toolbar label,
.admin-form label,
.admin-comment-row label,
.admin-source-row label {
  display: grid;
  gap: 5px;
}

.admin-toolbar span,
.admin-form label > span,
.admin-comment-row label > span,
.admin-source-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-comment-row input,
.admin-comment-row select,
.admin-comment-row textarea,
.admin-source-row input,
.admin-source-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-comment-row input:focus,
.admin-comment-row select:focus,
.admin-comment-row textarea:focus,
.admin-source-row input:focus,
.admin-source-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.admin-table {
  overflow-x: auto;
}

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

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) 90px 110px 140px minmax(210px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.admin-table-row:first-child {
  border-top: 0;
}

.admin-table-head {
  background: #fafbf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-table-row strong {
  display: block;
  line-height: 1.45;
}

.admin-table-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-comment-table .admin-table-row {
  grid-template-columns: minmax(280px, 1.6fr) 90px minmax(180px, 0.9fr) 110px 150px;
}

.admin-schedule-table .admin-table-row {
  grid-template-columns: 140px minmax(260px, 1fr) 110px 170px;
}

.admin-publish-table .admin-table-row {
  grid-template-columns: 100px minmax(280px, 1.5fr) 110px 150px 190px;
}

.admin-comment-body p {
  font-size: 13px;
}

.admin-comment-body {
  padding-left: calc(var(--admin-comment-depth, 0) * 18px);
}

.admin-comment-meta-line {
  color: var(--accent-strong) !important;
  font-weight: 800;
}

.admin-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-empty strong {
  display: block;
}

.admin-empty p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ng-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.ng-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.ng-word-chip button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #b5472f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.admin-generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-form-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e0f0ec;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.admin-form-notice.is-error {
  background: #f8e3dc;
  color: #9a3f2a;
}

.quality-check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-workflow ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-workflow li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.editorial-workflow li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef0ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.editorial-workflow li.is-done > span {
  background: #e0f0ec;
  color: var(--accent-strong);
}

.editorial-workflow strong,
.editorial-workflow small {
  display: block;
}

.editorial-workflow strong {
  font-size: 13px;
}

.editorial-workflow small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quality-check {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.quality-check:first-child {
  border-top: 0;
  padding-top: 0;
}

.quality-check strong,
.quality-check small {
  display: block;
}

.quality-check strong {
  font-size: 13px;
}

.quality-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quality-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.quality-check.is-warn .quality-dot {
  background: #d8891f;
}

.quality-check.is-fail .quality-dot {
  background: #c74d37;
}

.quality-check button {
  align-self: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.quality-check button:hover,
.quality-check button:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: 0;
}

.quality-request-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.quality-request-modal textarea[readonly] {
  background: #fafbf8;
}

.codex-review-panel {
  display: grid;
  gap: 8px;
}

.codex-review-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.codex-review-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.codex-review-list li:first-child label {
  border-top: 0;
  padding-top: 0;
}

.codex-review-list input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.codex-review-list strong,
.codex-review-list small {
  display: block;
}

.codex-review-list strong {
  color: var(--ink);
  font-size: 13px;
}

.codex-review-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.codex-review-panel + section {
  display: none !important;
}

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

.admin-editor-instruction {
  padding: 12px;
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  background: #fafcf9;
}

.admin-editor-instruction textarea {
  min-height: 96px;
}

.admin-editor-instruction small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.admin-subhead {
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-subhead h2,
.admin-side h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.admin-comment-editor {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.admin-source-material {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.admin-source-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.admin-source-picker .admin-subhead > div {
  display: flex;
  gap: 8px;
}

.admin-source-picker select,
.admin-source-picker button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.admin-source-picker button {
  cursor: pointer;
}

.admin-source-suggestions {
  display: grid;
  gap: 8px;
}

.admin-source-suggestions > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-source-suggestions article {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-source-suggestions strong,
.admin-source-suggestions small {
  display: block;
}

.admin-source-suggestions strong {
  font-size: 13px;
  line-height: 1.45;
}

.admin-source-suggestions small {
  color: var(--muted);
  font-size: 12px;
}

.admin-source-suggestions button {
  width: fit-content;
  margin-top: 3px;
}

.admin-mini-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-generate-result {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

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

.admin-draft-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.admin-draft-preview h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.admin-draft-preview p {
  margin: 0;
  color: var(--muted);
}

.admin-draft-preview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.admin-draft-preview li {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.admin-scrape-notes {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-scrape-notes strong {
  font-size: 12px;
}

.admin-scrape-notes ul {
  display: grid;
  gap: 5px;
}

.admin-scrape-notes li {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.admin-scrape-notes li span {
  display: block;
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 12px;
}

.admin-comment-row {
  display: grid;
  gap: 9px;
  align-items: start;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-left: 4px solid #dbe4de;
  background: #fbfcfa;
}

.admin-comment-row:first-of-type {
  border-top: 0;
}

.admin-comment-edit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-comment-edit-meta > span {
  align-self: center;
}

.admin-comment-edit-meta .admin-comment-index {
  padding-top: 0;
}

.admin-meta-control {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-meta-country {
  width: 112px;
}

.admin-meta-mood {
  width: 150px;
}

.admin-meta-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-meta-control input,
.admin-meta-control select {
  min-height: 34px;
  padding: 7px 9px;
}

.comment-rewrite-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.comment-rewrite-request select,
.comment-rewrite-request button {
  min-height: 34px;
}

.comment-rewrite-request button {
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.comment-rewrite-candidates {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  background: #fff;
}

.comment-rewrite-candidates[hidden] {
  display: none;
}

.comment-rewrite-candidate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.comment-rewrite-candidate-head small {
  color: var(--accent-strong);
  font-size: 11px;
}

.comment-rewrite-option-list {
  display: grid;
  gap: 10px;
}

.comment-rewrite-option {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.comment-rewrite-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-rewrite-option-head strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.comment-rewrite-option-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.comment-rewrite-note {
  display: grid;
  gap: 5px;
}

.comment-rewrite-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.comment-rewrite-note textarea {
  min-height: 54px;
  border-color: #dce5df;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.comment-rewrite-choice {
  display: flex !important;
  width: fit-content;
  grid-template-columns: none;
  align-items: center;
  gap: 6px !important;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.comment-rewrite-choice input {
  width: auto;
  margin: 0;
}

.comment-rewrite-candidates p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
}

.admin-comment-translation textarea {
  min-height: 92px;
  border-color: transparent;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}

.admin-comment-annotations-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f3;
}

.admin-comment-annotations-editor legend {
  padding: 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.admin-comment-annotations-editor > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.admin-comment-annotation-row {
  display: contents;
}

.admin-comment-annotation-row label {
  gap: 5px;
}

.admin-comment-annotation-row textarea {
  min-height: 60px;
  font-size: 13px;
  line-height: 1.6;
}

.admin-comment-edit-tools {
  display: grid;
  grid-template-columns: minmax(220px, 360px);
  justify-content: end;
  gap: 8px;
  align-items: end;
}

.admin-original-editor {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-original-editor summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.admin-original-editor summary::-webkit-details-marker {
  display: none;
}

.admin-original-editor[open] {
  justify-items: stretch;
}

.admin-original-editor[open] summary {
  justify-self: end;
}

.admin-original-editor textarea {
  color: #59645e;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.admin-comment-score {
  color: #2f64d6;
  font-weight: 800;
}

.admin-source-row {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-source-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-source-check {
  align-content: start;
  justify-items: start;
  padding-top: 25px;
}

.admin-source-check input {
  width: auto;
}

.admin-comment-index {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  padding-top: 26px;
}

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

.admin-side section {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-side label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-side dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-side dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-side dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-side dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

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

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

.admin-regenerate-list button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
  text-align: left;
}

.admin-regenerate-list button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.rewrite-preview {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.rewrite-preview span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.rewrite-preview button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.rewrite-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.rewrite-instruction-reference {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  background: #fff;
}

.rewrite-instruction-reference strong {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.rewrite-instruction-reference p {
  margin: 0;
  color: #50615a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.rewrite-preview pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 9px;
  border-radius: 6px;
  background: #fff;
  color: #4f5d55;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
    flex-direction: row;
    padding: 8px 0;
  }

  .global-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .hero,
  .content-grid,
  .article-detail {
    grid-template-columns: 1fr;
  }

  .article-ad-sidebar {
    display: none;
  }

  .admin-head,
  .admin-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-stats,
  .admin-toolbar,
  .admin-editor-layout,
  .admin-generator-layout,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .visual-editor-workspace,
  .visual-edit-style-controls {
    grid-template-columns: 1fr;
  }

  .visual-editor-sidebar {
    position: static;
    order: -1;
  }

  .admin-table-head {
    display: none;
  }

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

  .admin-comment-row,
  .admin-source-row {
    grid-template-columns: 1fr;
  }

  .admin-comment-index,
  .admin-source-check {
    padding-top: 0;
  }

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

  .list-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .hero-main {
    min-height: 420px;
    padding: 22px;
  }

  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .list-card .thumb {
    aspect-ratio: 1 / 1;
  }

  .list-card .card-body {
    padding: 12px;
  }

  .list-card h3 {
    font-size: 15px;
    line-height: 1.45;
  }

  .list-card p,
  .list-card .card-footer {
    display: none;
  }

  .article-content {
    padding: 22px;
  }

  .source-reference-card a {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .source-reference-thumb {
    width: 64px;
    min-height: 54px;
    font-size: 10px;
  }

  .source-reference-thumb.is-hn,
  .source-reference-thumb.is-reddit {
    font-size: 16px;
  }

  .more-feed-item.has-thumb {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .more-feed-item.has-thumb img {
    width: 86px;
    aspect-ratio: 4 / 3;
  }

  .footer-inner {
    flex-direction: column;
  }
}
