:root {
  --paper: #f5f1e8;
  --ink: #18221c;
  --muted: #74766e;
  --line: #d9d4c8;
  --green: #527665;
  --hero: #b9cbbd;
  --lime: #c9e26a;
  --coral: #ef765b;
  --blue: #8bbbc4;
  --card: #fffdf8;
  --shadow: 0 18px 45px rgba(38, 45, 39, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(201, 226, 106, 0.18), transparent 24rem),
    var(--paper);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 20px 116px;
}

.topbar,
.section-heading,
.hero,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow,
.section-heading p,
.daily-note p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-family: "DM Serif Display", "Noto Sans SC", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto;
  border-radius: 50%;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 260px;
  margin-top: 24px;
  padding: 30px;
  overflow: hidden;
  border-radius: 30px;
  color: #263a31;
  background: linear-gradient(135deg, #c8d6cb, var(--hero));
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy > p {
  margin-bottom: 12px;
  color: #496657;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero h2 {
  margin-bottom: 24px;
  font-family: "DM Serif Display", "Noto Sans SC", serif;
  font-size: clamp(34px, 9vw, 50px);
  font-weight: 400;
  line-height: 1.16;
}

.hero h2 small {
  display: block;
  margin-top: 12px;
  color: rgba(38, 58, 49, 0.68);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  opacity: 0.7;
}

.orbit {
  position: absolute;
  right: 14px;
  width: 170px;
  height: 170px;
}

.orbit-ring {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(38, 58, 49, 0.24);
  border-radius: 50%;
  animation: orbit-spin 18s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  border: 1px solid rgba(38, 58, 49, 0.14);
  border-radius: 50%;
  content: "";
}

.orbit-ring::before {
  inset: 24px;
}

.orbit-ring::after {
  inset: 48px;
}

.orbit-center {
  position: absolute;
  top: 52px;
  left: 52px;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: #435f50;
  background: #e3edbd;
  font-family: serif;
  font-size: 26px;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
}

.dot-one {
  top: 5px;
  left: 76px;
}

.dot-two {
  right: 18px;
  bottom: 26px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.topic-switcher {
  display: flex;
  gap: 8px;
  margin: 30px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prototype-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #e4c77c;
  border-radius: 18px;
  background: #fff7df;
}

.prototype-notice strong {
  font-size: 13px;
}

.prototype-notice p,
.source-intro {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.topic,
.preference {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.topic small,
.education-branch small,
.rank-copy small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.68;
}

.education-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.education-switcher[hidden] {
  display: none;
}

.education-branch {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.education-branch.active {
  border-color: #8168a7;
  color: #584475;
  background: #eee8f5;
  font-weight: 700;
}

.topic.active,
.preference.active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.ranking-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.ranking-tabs::-webkit-scrollbar {
  display: none;
}

.rank {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.rank-copy {
  display: block;
  text-align: left;
}

.rank.active {
  color: var(--ink);
  font-weight: 700;
}

.rank.active::after {
  position: absolute;
  right: 5px;
  bottom: -1px;
  left: 5px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--coral);
  content: "";
}

.rank-mark {
  color: var(--coral);
  font-family: "DM Serif Display", serif;
  font-size: 16px;
}

.section-heading {
  margin: 34px 0 16px;
}

.section-heading h3 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Sans SC", serif;
  font-size: 25px;
  font-weight: 400;
}

.text-button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.card-list {
  display: grid;
  gap: 14px;
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 16px;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 28, 0.08);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(38, 45, 39, 0.04);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:active {
  transform: scale(0.985);
}

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

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.source-target {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #edf2e5;
  font-size: 10px;
  font-weight: 700;
}

.research-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 10px;
  line-height: 1.5;
}

.research-header span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.research-header b {
  margin-right: 5px;
  color: var(--green);
}

.card-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.story-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.48;
}

.story-card p {
  display: -webkit-box;
  margin-bottom: 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.science-score {
  color: var(--green);
  font-weight: 700;
}

.metric-help {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.card-visual {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--accent-soft);
}

.story-illustration {
  width: 100%;
  height: 100%;
  padding: 14px 8px 6px;
  color: var(--accent);
  opacity: 0.88;
}

.author-portrait {
  position: relative;
  width: 100%;
  height: 100%;
}

.author-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(0.96);
}

.bookmark {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.bookmark::before {
  display: block;
  width: 8px;
  height: 11px;
  margin: auto;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  content: "";
}

.bookmark.saved::before {
  background: var(--ink);
}

.daily-note {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: var(--lime);
}

.note-number {
  font-family: "DM Serif Display", serif;
  font-size: 72px;
  line-height: 1;
}

.daily-note h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.daily-note h3 small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.daily-note button,
.primary-button {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(24, 34, 28, 0.08);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.nav-item small {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.nav-item.active {
  color: var(--green);
  font-weight: 700;
}

.nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
}

.nav-home {
  border-radius: 50% 50% 5px 5px;
}

.nav-bookmark {
  width: 15px;
  border-radius: 2px;
}

.nav-history {
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--card);
}

.archive-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ede8dc;
}

.archive-bar[hidden] {
  display: none;
}

.archive-bar > div:first-child {
  display: grid;
  gap: 4px;
}

.archive-bar small {
  color: var(--muted);
  font-size: 10px;
}

.archive-dates {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.archive-dates.open {
  display: grid;
}

.archive-date {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 52px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--card);
  font-size: 11px;
  cursor: pointer;
}

.archive-date small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.archive-date.active {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.archive-date.active small {
  color: rgba(255, 255, 255, 0.78);
}

.calendar-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(82, 118, 101, 0.18);
  border-radius: 13px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.78);
  font-size: 21px;
  cursor: pointer;
}

.calendar-toggle.active {
  color: white;
  background: var(--green);
}

.selected-date-label {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.nav-user {
  border-radius: 50%;
}

.nav-notes {
  position: relative;
  border-radius: 4px;
}

.nav-notes::before,
.nav-notes::after {
  position: absolute;
  right: 4px;
  left: 4px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.nav-notes::before {
  top: 7px;
}

.nav-notes::after {
  top: 12px;
}

.selection-mark-popover {
  position: fixed;
  z-index: 60;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(82, 118, 101, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 28px rgba(42, 61, 49, 0.18);
  backdrop-filter: blur(12px);
}

.selection-mark-popover[hidden] {
  display: none;
}

.mark-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(82, 118, 101, 0.16);
  border-radius: 50%;
  cursor: pointer;
}

.yellow-swatch {
  background: rgba(255, 236, 139, 0.9);
}

.green-swatch {
  background: rgba(195, 226, 177, 0.95);
}

.underline-swatch {
  position: relative;
  background: rgba(255, 253, 248, 0.95);
}

.underline-swatch::after {
  position: absolute;
  right: 8px;
  bottom: 9px;
  left: 8px;
  height: 3px;
  border-radius: 999px;
  background: #c94b43;
  content: "";
}

.annotation-mark.highlight-yellow {
  background: rgba(255, 236, 139, 0.72);
  border-radius: 4px;
}

.annotation-mark.highlight-green {
  background: rgba(195, 226, 177, 0.74);
  border-radius: 4px;
}

.annotation-mark.underline-red {
  text-decoration-line: underline;
  text-decoration-color: #c94b43;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.sheet {
  width: min(calc(100% - 24px), 520px);
  max-height: 86vh;
  margin: auto auto 12px;
  padding: 30px 24px;
  overflow-y: auto;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-sheet {
  width: min(calc(100% - 24px), 720px);
  max-height: 92vh;
}

.sheet[open] {
  animation: sheet-up 220ms ease-out;
}

.sheet::backdrop {
  background: rgba(17, 26, 21, 0.48);
  backdrop-filter: blur(3px);
}

@keyframes sheet-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  cursor: pointer;
}

.sheet h2 {
  margin-bottom: 24px;
  font-family: "DM Serif Display", "Noto Sans SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.sheet h2 small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.method-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.method-item p,
.article-lead,
.article-body {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.setting-row {
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.setting-row span {
  display: grid;
  gap: 5px;
}

.setting-row small {
  color: var(--muted);
}

.setting-row input[type="checkbox"] {
  width: 42px;
  height: 24px;
  accent-color: var(--green);
}

.setting-row input[type="time"] {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.setting-row select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.source-group {
  margin-top: 24px;
}

.source-group h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.source-link span {
  display: grid;
  gap: 3px;
}

.source-link small {
  color: var(--muted);
  font-size: 10px;
}

.source-link::after {
  color: var(--coral);
  content: "↗";
}

.source-static::after {
  content: "";
}

.preference-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.preference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}

.primary-button {
  width: 100%;
  padding: 14px;
}

.source-button {
  display: block;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
}

.bilingual-title span,
.bilingual-title small {
  display: block;
}

.bilingual-title small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.5;
}

.article-title small {
  margin-top: 10px;
}

.article-actions {
  display: grid;
  gap: 10px;
}

.secondary-button {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
}

.article-sheet .article-topic {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

.original-title {
  margin: -14px 0 18px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  line-height: 1.55;
}

.article-sheet h2 {
  padding-right: 30px;
  line-height: 1.35;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.article-research-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.article-research-meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
}

.article-research-meta b {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.article-research-meta span {
  font-size: 12px;
  line-height: 1.5;
}

.article-research-meta small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.copyright-note {
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #755b20;
  background: #fff4d5;
  font-size: 11px;
  line-height: 1.6;
}

.reader-intro {
  margin: 0 0 18px;
  padding: 20px;
  border-radius: 18px;
  color: #f7f4ea;
  background: var(--green);
}

.reader-intro span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.reader-intro p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.85;
}

.reader-intro .english-copy {
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.reader-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.reader-section {
  scroll-margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.source-abstract {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.source-abstract summary {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.source-abstract p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.continuous-reader {
  padding: 8px 4px;
}

.article-prose {
  max-width: 66ch;
  margin: 0 auto;
}

.prose-paragraph {
  padding: 0;
}

.prose-paragraph p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 2.05;
}

.prose-paragraph .english-copy {
  margin-top: 0;
}

.primary-reading {
  margin: 0 0 8px;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px !important;
  line-height: 1.95 !important;
}

.secondary-translation {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.knowledge-sections,
.work-facts {
  display: grid;
  gap: 14px;
}

.knowledge-section,
.work-facts section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.knowledge-section h3,
.work-facts h3 {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.literature-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.literature-directory a {
  padding: 11px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.section-hint {
  margin: -3px 0 13px;
  color: var(--muted);
  font-size: 11px;
}

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

.writer-timeline {
  position: relative;
  display: grid;
  gap: 13px;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid #d9cdb6;
}

.writer-timeline div {
  position: relative;
}

.writer-timeline div::before {
  position: absolute;
  top: 5px;
  left: -24px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.writer-timeline time {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.writer-timeline p {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.75;
}

.writer-timeline small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.concept-comparison > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.concept-comparison > div:first-of-type {
  border-top: 0;
}

.concept-comparison strong {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 13px;
}

@media (max-width: 560px) {
  .research-header,
  .article-research-meta {
    grid-template-columns: 1fr;
  }
}

/* Quiet, low-saturation editorial system */
:root {
  --paper: #f3f0e8;
  --ink: #312f2b;
  --muted: #77736b;
  --line: #d8d2c6;
  --green: #66756b;
  --hero: #d5d8cf;
  --lime: #d9d6c8;
  --coral: #9a685d;
  --blue: #84989a;
  --card: #faf8f2;
  --shadow: 0 10px 28px rgba(55, 50, 43, 0.055);
}

body {
  background: var(--paper);
  font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.005em;
}

.app-shell {
  max-width: 780px;
  padding-top: 34px;
}

h1,
.hero h2,
.section-heading h3,
.sheet h2,
.note-number {
  font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: 27px;
}

.eyebrow,
.section-heading p,
.daily-note p {
  font-weight: 500;
  letter-spacing: 0.1em;
}

.icon-button,
.sheet-close {
  border-radius: 2px;
  background: transparent;
}

.hero {
  min-height: 235px;
  padding: 34px;
  border: 1px solid #c9ccc3;
  border-radius: 3px;
  color: #3d443f;
  background: #d7dad2;
  box-shadow: none;
}

.hero::after {
  display: none;
}

.hero-copy > p {
  color: #677168;
  font-weight: 500;
}

.hero h2 {
  font-size: clamp(31px, 8vw, 45px);
  line-height: 1.24;
}

.hero h2 small {
  color: #6f766f;
  font-weight: 500;
}

.orbit {
  right: 20px;
  opacity: 0.48;
}

.orbit-ring {
  border-color: #879188;
  animation: none;
}

.orbit-center {
  border: 1px solid #adb2a8;
  border-radius: 50%;
  color: #5d685f;
  background: #e4e3d9;
}

.orbit-dot {
  background: #9a685d;
}

.dot-two {
  background: #84989a;
}

.prototype-notice {
  padding: 17px 18px;
  border-color: var(--line);
  border-radius: 2px;
  background: #ebe7dc;
}

.topic,
.preference {
  padding: 9px 14px;
  border-radius: 2px;
  background: #f8f5ee;
}

.topic.active,
.preference.active {
  border-color: #6d706b;
  color: var(--ink);
  background: #dedbd2;
}

.education-branch {
  border-radius: 2px;
  background: #f8f5ee;
}

.education-branch.active {
  border-color: #9a8e83;
  color: #554f48;
  background: #e5e0d8;
}

.ranking-tabs {
  margin-top: 5px;
}

.rank {
  padding: 18px 7px 16px;
}

.rank.active::after {
  right: 7px;
  left: 7px;
  height: 2px;
  border-radius: 0;
  background: var(--coral);
}

.rank-mark {
  color: #8e6b62;
  font-family: inherit;
  font-size: 13px;
}

.text-button {
  border-bottom-color: #918c83;
  color: #625f59;
}

.story-card {
  min-height: 166px;
  padding: 21px;
  border-color: #ddd8ce;
  border-radius: 3px;
  background: var(--card);
  box-shadow: none;
}

.story-card:hover {
  transform: none;
  border-color: #bdb6aa;
  box-shadow: var(--shadow);
}

.card-tag::before {
  border-radius: 0;
  background: #9a685d;
}

.source-target {
  border: 1px solid #d9ddd5;
  border-radius: 2px;
  color: #647168;
  background: #eef0eb;
  font-weight: 500;
}

.research-header {
  border: 1px solid #e3ded4;
  border-radius: 2px;
  background: #f4f1e9;
}

.research-header b {
  color: #69756d;
}

.card-visual {
  border: 1px solid rgba(89, 86, 79, 0.09);
  border-radius: 2px;
  background: #e4e1d8 !important;
}

.story-illustration {
  color: #7d817b !important;
  opacity: 0.72;
}

.author-portrait img {
  filter: grayscale(0.42) saturate(0.62) contrast(0.94);
}

.bookmark {
  border: 1px solid rgba(80, 76, 69, 0.16);
  border-radius: 2px;
  background: rgba(250, 248, 242, 0.9);
}

.daily-note {
  border: 1px solid #d1ccbf;
  border-radius: 2px;
  background: #dedbd0;
}

.note-number {
  color: #6e706b;
  font-size: 62px;
}

.daily-note button,
.primary-button {
  border-radius: 2px;
  background: #687269;
  font-weight: 500;
}

.bottom-nav {
  border-top-color: #d7d1c6;
  background: rgba(243, 240, 232, 0.96);
  backdrop-filter: blur(12px);
}

.nav-item.active {
  color: #657169;
}

.archive-bar {
  border: 1px solid #d7d1c6;
  border-radius: 2px;
  background: #e7e3d9;
}

.archive-date {
  border-radius: 2px;
  background: #f7f4ed;
}

.archive-date.active {
  color: var(--ink);
  border-color: #aaa398;
  background: #d8d4ca;
}

.sheet {
  border: 1px solid #d7d1c6;
  border-radius: 3px;
  background: #faf8f2;
  box-shadow: 0 18px 50px rgba(48, 44, 38, 0.14);
}

.sheet::backdrop {
  background: rgba(52, 49, 44, 0.42);
  backdrop-filter: none;
}

.article-research-meta div,
.knowledge-section,
.work-facts section,
.source-abstract,
.example-item,
.language-origin {
  border-color: #ded8cd;
  border-radius: 2px;
  background: #f8f5ee;
}

.copyright-note {
  border-left: 3px solid #a58d72;
  border-radius: 0;
  color: #665c4d;
  background: #eee8dc;
}

.literature-directory {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.literature-directory a {
  border-radius: 0;
  background: #f7f4ed;
}

.work-list button {
  border-radius: 2px;
  background: #fbf9f4;
}

.language-meaning {
  border: 1px solid #d5d8d0;
  border-radius: 2px;
  background: #e8ebe5;
}

.secondary-button,
.article-back {
  border-radius: 2px;
}

.writer-timeline {
  border-left-color: #c8c1b5;
}

.writer-timeline div::before {
  border-color: #f8f5ee;
  background: #967065;
}

.writer-timeline time,
.concept-comparison strong,
.article-sheet .article-topic,
.source-link::after {
  color: #8c685f;
}

.work-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.work-list button span {
  color: var(--green);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 9px;
}

.article-back {
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.language-meaning {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 16px;
  background: #edf2e5;
}

.language-meaning span,
.example-item > span,
.language-origin strong {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.language-meaning p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.language-origin {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.language-origin p {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.8;
}

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

.example-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
}

.example-item .primary-reading {
  margin-top: 9px;
}

@media (max-width: 620px) {
  .archive-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

.abstract-section {
  border-color: #b9cdbf;
  background: #f2f6ef;
}

.reader-section h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.reader-section p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
}

.reader-label {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.reader-label:first-child {
  margin-top: 0;
}

.reader-section .english-copy {
  color: #5f655f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.vocab-grid {
  display: grid;
  gap: 8px;
}

.vocab-grid div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) 1.4fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.vocab-grid span {
  color: var(--muted);
}

.practice-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.9;
}

.evidence-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #edf2e5;
}

.evidence-box strong {
  color: var(--green);
}

.evidence-box p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  z-index: 50;
  padding: 10px 16px;
  transform: translate(-50%, 20px);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.empty-state {
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 470px) {
  .app-shell {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero {
    min-height: 245px;
    padding: 26px 22px;
  }

  .orbit {
    right: -34px;
    transform: scale(0.84);
  }

  .story-card {
    grid-template-columns: 1fr 80px;
    padding: 17px;
  }

  .rank {
    justify-content: center;
  }

  .rank-copy {
    text-align: center;
  }

  .rank-mark {
    display: none;
  }

  .prototype-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Low-saturation blue editorial palette */
:root {
  --paper: #edf5f8;
  --ink: #263b46;
  --muted: #687e89;
  --line: #c9dce4;
  --green: #587f93;
  --hero: #d7e8ef;
  --lime: #c9dde6;
  --coral: #7395a8;
  --blue: #8eb1c1;
  --card: #f8fcfd;
  --shadow: 0 10px 28px rgba(45, 78, 94, 0.07);
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(174, 207, 220, 0.28), transparent 25rem),
    var(--paper);
}

.hero {
  background: linear-gradient(145deg, #dcebf1, #cddfe7);
}

.topic-switcher,
.ranking-tabs,
.education-switcher,
.archive-bar,
.story-card,
.sheet,
.article-sheet {
  border-color: var(--line);
}

.topic,
.rank,
.education-pill,
.archive-date,
.article-back {
  background: #e5f0f4;
}

.topic.active,
.rank.active,
.education-pill.active,
.archive-date.active {
  color: #f8fcfd;
  background: #5d8295;
}

.story-card,
.sheet,
.article-sheet,
.work-list button,
.example-item {
  background: var(--card);
}

.card-visual {
  border-color: #c3d6df !important;
  background: #dfeaf0 !important;
}

.bottom-nav {
  border-color: #c4d7df;
  background: rgba(237, 245, 248, 0.96);
}

.bottom-nav button,
.bottom-nav .nav-icon,
.bookmark {
  border-color: #7998a8;
  color: #496f83;
  background-color: transparent;
}

.orbit-center {
  border-color: #b9d0da;
  color: #6b8fa0;
  background: #e4f0f4;
}

.orbit-dot {
  background: #7599aa;
}

.research-header span,
.article-research-meta > div,
.reader-section,
.language-origin {
  background: #f0f7f9;
}

.language-meaning,
.evidence-box,
.abstract-section {
  border-color: #c2d7e0;
  background: #e5f0f4;
}

.writer-timeline time,
.concept-comparison strong,
.article-sheet .article-topic,
.source-link::after {
  color: #648ca0;
}

.article-research-meta a {
  color: #476f84;
  font-weight: 700;
}

/* Layered, low-saturation green library system */
:root {
  --paper: #edf1e9;
  --ink: #26362d;
  --muted: #68766c;
  --line: #c9d4c9;
  --green: #587063;
  --hero: #d8e2d8;
  --lime: #d1dcc9;
  --coral: #788f79;
  --blue: #809a8d;
  --card: #f8faf5;
  --shadow: 0 14px 34px rgba(42, 61, 49, 0.075);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(132, 158, 137, 0.14), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(55, 75, 61, 0.018) 0, rgba(55, 75, 61, 0.018) 1px, transparent 1px, transparent 5px),
    #edf1e9;
}

.hero {
  border-color: #bdcbbc;
  background:
    linear-gradient(135deg, rgba(248, 250, 245, 0.42), transparent 52%),
    repeating-linear-gradient(45deg, rgba(66, 89, 72, 0.022) 0, rgba(66, 89, 72, 0.022) 1px, transparent 1px, transparent 7px),
    linear-gradient(145deg, #dce6dc, #cddacd);
}

.topic-switcher,
.ranking-tabs,
.education-switcher,
.archive-bar {
  border-color: #c3d0c4;
  background:
    linear-gradient(rgba(248, 250, 245, 0.72), rgba(239, 244, 236, 0.72)),
    repeating-linear-gradient(90deg, rgba(60, 82, 66, 0.02) 0, rgba(60, 82, 66, 0.02) 1px, transparent 1px, transparent 8px);
}

.topic,
.rank,
.education-branch,
.archive-date,
.article-back {
  background: #e6ece4;
}

.topic.active,
.rank.active,
.education-branch.active,
.archive-date.active {
  color: #f7faf5;
  border-color: #5d7566;
  background:
    linear-gradient(145deg, #708878, #597064);
}

.story-card {
  border-color: #c5d1c5;
  background:
    radial-gradient(circle at 95% 8%, var(--accent-soft), transparent 11rem),
    repeating-linear-gradient(0deg, rgba(48, 68, 54, 0.016) 0, rgba(48, 68, 54, 0.016) 1px, transparent 1px, transparent 6px),
    #f8faf5;
  box-shadow: var(--shadow);
}

.story-card:hover {
  border-color: #9fb19f;
  box-shadow: 0 18px 42px rgba(42, 61, 49, 0.105);
}

.card-visual {
  border-color: #b9c8ba !important;
  background:
    linear-gradient(160deg, rgba(249, 251, 247, 0.5), transparent 55%),
    repeating-linear-gradient(45deg, rgba(52, 76, 59, 0.035) 0, rgba(52, 76, 59, 0.035) 1px, transparent 1px, transparent 6px),
    #dfe7dc !important;
}

.story-illustration {
  color: #657c6d !important;
}

.author-portrait,
.book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 126px;
  overflow: hidden;
}

.author-portrait img,
.book-cover img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.08) contrast(0.96);
}

.book-cover span {
  position: absolute;
  right: 8px;
  bottom: 10px;
  left: 8px;
  padding: 7px 5px;
  border-top: 1px solid rgba(55, 77, 61, 0.3);
  color: #385044;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.sheet,
.article-sheet,
.work-list button,
.example-item {
  border-color: #c6d2c6;
  background:
    repeating-linear-gradient(0deg, rgba(58, 79, 64, 0.014) 0, rgba(58, 79, 64, 0.014) 1px, transparent 1px, transparent 6px),
    #f8faf5;
}

.research-header span,
.article-research-meta > div,
.reader-section,
.language-origin,
.knowledge-section,
.work-facts section {
  border-color: #ced8ce;
  background: #f1f5ef;
}

.bottom-nav {
  border-top-color: #bdcbbf;
  background: rgba(237, 241, 233, 0.95);
}

.bottom-nav button,
.bottom-nav .nav-icon,
.bookmark {
  border-color: #789080;
  color: #4c6958;
}

.orbit-center {
  border-color: #b6c7b7;
  color: #627a69;
  background: #e5ece2;
}

.orbit-dot,
.writer-timeline div::before {
  background: #6d8573;
}

.language-meaning,
.evidence-box,
.abstract-section,
.copyright-note {
  border-color: #c1d0c1;
  color: #405649;
  background: #e5ede3;
}

.writer-timeline time,
.concept-comparison strong,
.article-sheet .article-topic,
.source-link::after,
.article-research-meta a {
  color: #587565;
}

.motif-map {
  display: grid;
  gap: 0;
}

.motif-map article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.motif-map article:first-of-type {
  border-top: 0;
}

.motif-map article > span {
  color: #7b927f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.motif-map h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.motif-map h4 small {
  display: block;
  margin-top: 4px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.motif-work-open {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.motif-work-open span {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.motif-work-open:hover h4 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.motif-map p {
  margin: 0;
}

.motif-expansion {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(102, 132, 94, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 244, 232, 0.94), rgba(222, 234, 217, 0.76));
}

.motif-expansion strong {
  display: block;
  margin-bottom: 7px;
  color: var(--olive);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motif-expansion p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(82, 118, 101, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.68);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.search-toggle {
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.top-search-panel {
  margin: 12px 0 18px;
  padding: 10px;
  border: 1px solid rgba(82, 118, 101, 0.12);
  border-radius: 20px;
  background: rgba(248, 250, 245, 0.58);
}

.top-search-panel[hidden] {
  display: none;
}

.global-search-box {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
  align-items: center;
}

.global-search input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(82, 118, 101, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.95);
  outline: none;
}

.global-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(82, 118, 101, 0.12);
}

#clearSearchButton {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(82, 118, 101, 0.1);
  cursor: pointer;
}

.global-search-results {
  display: grid;
  gap: 8px;
  max-height: 34vh;
  margin-top: 10px;
  overflow-y: auto;
}

.global-search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(82, 118, 101, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  text-align: left;
  cursor: pointer;
}

.search-result strong {
  font-size: 14px;
}

.search-result small {
  color: var(--muted);
  font-size: 12px;
}

.search-result span,
.search-empty {
  color: var(--olive);
  font-size: 11px;
}

.notes-sheet textarea {
  width: 100%;
  min-height: 132px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid rgba(82, 118, 101, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.95);
  outline: none;
}

.notes-sheet textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(82, 118, 101, 0.12);
}

.note-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
}

.note-editor-actions small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

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

.note-entry {
  padding: 12px 14px;
  border: 1px solid rgba(82, 118, 101, 0.12);
  border-radius: 18px;
  background: rgba(248, 250, 245, 0.7);
}

.note-entry > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.note-entry p {
  margin: 0 0 10px;
  line-height: 1.75;
}

.note-entry button {
  border: 0;
  color: var(--olive);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.app-shell {
  padding-bottom: 116px;
}

.rank-mark,
.card-tag::before {
  color: #617b69;
  background: #6f8874;
}

.text-button {
  border-bottom-color: #7f9382;
  color: #506758;
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 5px;
  color: #718075;
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.collection-meta span + span::before {
  margin-right: 12px;
  color: #9cac9e;
  content: "·";
}

.reading-length {
  margin-bottom: 14px;
  color: #718477;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.long-reading .primary-reading,
.long-reading .secondary-translation {
  margin-top: 0;
  margin-bottom: 14px;
}

.long-reading .primary-reading {
  font-size: 14px;
  line-height: 1.92;
}

.long-reading .secondary-translation {
  font-size: 12px;
  line-height: 1.86;
}

.criticism-timeline {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.criticism-timeline article {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.criticism-timeline time {
  color: #5c7564;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.criticism-timeline p {
  margin-top: 0;
}

.verified-overview {
  margin-bottom: 18px;
  padding: 16px;
  border-left: 3px solid #789080;
  background: #e7eee5;
}

.verified-overview strong {
  color: #587063;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.verified-overview p {
  margin: 9px 0 0;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .criticism-timeline article {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* Pantone PMS green system
   PMS 373 C #CDEA80 · PMS 372 C #D4EB8E · PMS 359 C #A1D884 · PMS 388 C #E0E721 */
:root {
  --pms-373: #CDEA80;
  --pms-372: #D4EB8E;
  --pms-359: #A1D884;
  --pms-388: #E0E721;
  --paper: #F6FAEA;
  --ink: #26351F;
  --muted: #667457;
  --line: rgba(161, 216, 132, 0.46);
  --green: #6B9F55;
  --olive: #5E7E34;
  --hero: #D4EB8E;
  --lime: #CDEA80;
  --coral: #E0E721;
  --blue: #A1D884;
  --card: #FEFFF8;
  --shadow: 0 16px 42px rgba(77, 116, 48, 0.11);
}

body {
  background:
    radial-gradient(circle at 12% 7%, rgba(224, 231, 33, 0.16), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(205, 234, 128, 0.22), transparent 22rem),
    repeating-linear-gradient(0deg, rgba(161, 216, 132, 0.035) 0, rgba(161, 216, 132, 0.035) 1px, transparent 1px, transparent 6px),
    var(--paper);
}

.hero {
  border-color: rgba(107, 159, 85, 0.38);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(254, 255, 248, 0.46), transparent 50%),
    repeating-linear-gradient(45deg, rgba(107, 159, 85, 0.035) 0, rgba(107, 159, 85, 0.035) 1px, transparent 1px, transparent 7px),
    linear-gradient(145deg, var(--pms-372), var(--pms-373));
}

.hero-copy > p,
.hero h2 small,
.section-heading p,
.eyebrow,
.collection-meta,
.reading-length {
  color: var(--muted);
}

.topic-switcher,
.ranking-tabs,
.education-switcher,
.archive-bar {
  border-color: rgba(161, 216, 132, 0.42);
  background:
    linear-gradient(rgba(254, 255, 248, 0.72), rgba(246, 250, 234, 0.78)),
    repeating-linear-gradient(90deg, rgba(107, 159, 85, 0.026) 0, rgba(107, 159, 85, 0.026) 1px, transparent 1px, transparent 8px);
}

.topic,
.rank,
.education-branch,
.archive-date,
.article-back,
.tool-button,
#clearSearchButton {
  border-color: rgba(107, 159, 85, 0.28);
  color: var(--olive);
  background: rgba(212, 235, 142, 0.3);
}

.topic.active,
.preference.active,
.rank.active,
.education-branch.active,
.archive-date.active,
.daily-note button,
.primary-button {
  color: #203018;
  border-color: var(--pms-359);
  background:
    linear-gradient(145deg, var(--pms-373), var(--pms-359));
}

.rank.active::after,
.rank-mark,
.card-tag::before,
.orbit-dot,
.writer-timeline div::before {
  color: var(--olive);
  background: var(--pms-388);
}

.story-card {
  border-color: rgba(161, 216, 132, 0.38);
  background:
    radial-gradient(circle at 95% 8%, var(--accent-soft), transparent 11rem),
    repeating-linear-gradient(0deg, rgba(107, 159, 85, 0.022) 0, rgba(107, 159, 85, 0.022) 1px, transparent 1px, transparent 6px),
    var(--card);
  box-shadow: var(--shadow);
}

.story-card:hover {
  border-color: rgba(107, 159, 85, 0.62);
  box-shadow: 0 20px 48px rgba(77, 116, 48, 0.15);
}

.research-header,
.research-header span,
.article-research-meta > div,
.reader-section,
.language-origin,
.knowledge-section,
.work-facts section,
.language-meaning,
.evidence-box,
.source-abstract,
.source-link,
.method-item,
.example-item,
.note-entry,
.verified-overview {
  border-color: rgba(161, 216, 132, 0.34);
  background: rgba(205, 234, 128, 0.16);
}

.source-target,
.top-search-panel,
.global-search input,
.search-result,
.notes-sheet textarea {
  border-color: rgba(107, 159, 85, 0.24);
  color: var(--ink);
  background: rgba(254, 255, 248, 0.86);
}

.global-search input:focus,
.notes-sheet textarea:focus,
.search-result:hover {
  border-color: var(--pms-359);
  box-shadow: 0 0 0 3px rgba(161, 216, 132, 0.22);
}

.card-visual {
  border-color: rgba(161, 216, 132, 0.42) !important;
  background:
    linear-gradient(160deg, rgba(254, 255, 248, 0.58), transparent 55%),
    repeating-linear-gradient(45deg, rgba(107, 159, 85, 0.04) 0, rgba(107, 159, 85, 0.04) 1px, transparent 1px, transparent 6px),
    rgba(212, 235, 142, 0.34) !important;
}

.story-illustration,
.science-score,
.research-header b,
.article-research-meta a,
.motif-work-open span,
.note-entry button,
.search-result span,
.search-empty,
.verified-overview strong,
.criticism-timeline time {
  color: var(--olive) !important;
}

.orbit-center {
  border-color: rgba(107, 159, 85, 0.36);
  color: var(--olive);
  background: rgba(205, 234, 128, 0.74);
}

.sheet,
.article-sheet,
.work-list button {
  border-color: rgba(161, 216, 132, 0.38);
  background:
    repeating-linear-gradient(0deg, rgba(107, 159, 85, 0.018) 0, rgba(107, 159, 85, 0.018) 1px, transparent 1px, transparent 6px),
    var(--card);
}

.bottom-nav {
  border-top-color: rgba(107, 159, 85, 0.34);
  background: rgba(246, 250, 234, 0.94);
}

.bottom-nav button,
.bottom-nav .nav-icon,
.bookmark {
  border-color: rgba(107, 159, 85, 0.36);
  color: var(--olive);
}

.text-button {
  border-bottom-color: var(--olive);
  color: var(--olive);
}
