:root {
  --ren-paper: #faf9f6;
  --ren-card: #fffefb;
  --ren-ink: #111827;
  --ren-muted: #6b7280;
  --ren-line: #e8e4dc;
  --ren-accent: #5c6b73;
  --ren-accent-soft: #f3f1eb;
  --ren-teal: #0d9488;
  --ren-bg: var(--ren-paper);
  --ren-fg: var(--ren-ink);
  --ren-surface: #f3f1eb;
}
body.ren-body, .ren-app {
  background: var(--ren-paper) !important;
}
.ren-app {
  max-width: 520px; margin: 0 auto; padding: 16px 18px 108px;
  color: var(--ren-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Helvetica Neue", sans-serif;
}
/* Kill md-reader global chrome bleed (blue h1 rules, default link blue) */
.ren-app h1, .ren-app h2, .ren-app h3 {
  border-bottom: none !important;
  color: var(--ren-ink);
}
/* Links default to ink — not mint */
.ren-app a { color: var(--ren-ink); text-decoration-color: var(--ren-line); }
.ren-app a:hover { color: var(--ren-ink); opacity: 0.75; }
.ren-card h3 a, .ren-series-list a.row, .ren-series-list a.row .ttl {
  color: var(--ren-ink) !important;
}
.ren-series-list a.row:hover .ttl { color: var(--ren-ink) !important; opacity: 0.7; }
.ren-card h3 a:hover { color: var(--ren-ink); opacity: 0.7; }
.ren-issue a { color: var(--ren-ink); text-decoration: underline; text-underline-offset: 2px; }
.ren-mast .date {
  border-bottom: none !important;
}
.ren-app, .ren-app * { box-sizing: border-box; }
.ren-top { margin-bottom: 4px; }
/* Sticky date head — full size at rest, compact when scrolled */
.ren-sticky-head {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -18px 10px;
  padding: 4px 18px 10px;
  background: color-mix(in srgb, var(--ren-paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.72s cubic-bezier(0.33, 1, 0.32, 1),
    box-shadow 0.72s cubic-bezier(0.33, 1, 0.32, 1),
    border-color 0.6s ease;
  will-change: padding;
}
.ren-sticky-head.is-compact {
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom-color: var(--ren-line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ren-mast {
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.ren-mast .date {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC",
    "Noto Serif TC", Georgia, serif;
  transform-origin: left top;
  transition:
    font-size 0.72s cubic-bezier(0.33, 1, 0.32, 1),
    letter-spacing 0.72s cubic-bezier(0.33, 1, 0.32, 1),
    line-height 0.72s cubic-bezier(0.33, 1, 0.32, 1);
}
.ren-sticky-head.is-compact .date {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ren-mast .meta {
  color: var(--ren-muted); font-size: 0.88rem; margin-top: 8px; line-height: 1.45;
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 0.68s cubic-bezier(0.33, 1, 0.32, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.68s cubic-bezier(0.33, 1, 0.32, 1);
  opacity: 1;
}
.ren-mast .meta > .ren-meta-inner {
  overflow: hidden;
  min-height: 0;
}
.ren-sticky-head.is-compact .meta {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}
.ren-issue-nav {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin: 4px 0 18px; font-size: 0.84rem;
}
.ren-issue-nav a {
  color: var(--ren-ink); text-decoration:none; padding: 6px 12px;
  border-radius: 999px; background: transparent;
  border: 1px solid var(--ren-line); font-weight: 600;
}
.ren-issue-nav a.disabled { opacity: 0.35; pointer-events: none; }
.ren-issue-nav .cur {
  font-weight: 600; color: var(--ren-ink); font-size: 0.84rem;
  cursor: pointer; border-bottom: 1px dashed var(--ren-line);
  padding: 4px 2px; background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.ren-issue-nav .cur:hover { border-bottom-color: var(--ren-ink); }
.ren-issue-nav .cur:focus-visible { outline: 2px solid var(--ren-ink); outline-offset: 2px; }
.ren-sec {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ren-muted); margin: 20px 0 10px;
  display:flex; align-items:center; gap: 6px;
}
.ren-card {
  background: var(--ren-card); border-radius: 12px; padding: 14px 14px;
  margin-bottom: 10px; border: 1px solid var(--ren-line);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.ren-card h3 {
  margin: 0 0 6px; font-size: 1.02rem; line-height: 1.38; font-weight: 700;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
}
.ren-card h3 a { color: var(--ren-ink); text-decoration: none; }
.ren-card h3 a:hover { color: var(--ren-ink); opacity: 0.7; }
.ren-card .dek {
  font-size: 0.88rem; color: #4b5563; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-card .foot {
  margin-top: 8px; font-size: 0.75rem; color: #9ca3af;
  display:flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.ren-chip {
  display:inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--ren-surface); color: var(--ren-muted); font-size: 0.72rem; font-weight: 600;
}
.ren-chip.muted { background: #f3f4f6; color: #6b7280; font-weight: 500; }
.ren-finish {
  margin: 32px 0 8px; padding: 20px 16px; text-align: center;
  background: transparent; border: none; border-top: 1px solid var(--ren-line);
  color: #334155; font-size: 0.95rem;
}
.ren-finish strong {
  display:block; margin-bottom: 6px; font-size: 1.08rem;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
}
.ren-finish a { color: var(--ren-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ren-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  background: rgba(250,249,246,0.96); border-top: 1px solid var(--ren-line);
  backdrop-filter: blur(10px); padding: 4px 8px calc(6px + env(safe-area-inset-bottom));
}
.ren-tabs-inner {
  display:flex; width: 100%; max-width: 520px; justify-content: space-around;
}
.ren-tabs a {
  flex:1; text-align:center; padding: 8px 6px 6px; text-decoration:none;
  color: #9ca3af; font-size: 0.72rem; font-weight: 500;
  border-radius: 0; letter-spacing: 0.02em;
  border-top: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.ren-tabs a.active {
  color: #111827; font-weight: 600;
  background: transparent;
  border-top-color: #111827;
}
.ren-tabs a .ren-tab-ico {
  display:block; height: 22px; margin: 0 auto 3px;
}
.ren-tabs a .ren-tab-ico svg {
  width: 22px; height: 22px; display:block; margin: 0 auto;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ren-tabs a.active .ren-tab-ico svg { stroke-width: 1.85; }
.ren-box {
  background: var(--ren-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--ren-line);
}
.ren-box.quiet { background: transparent; border-style: dashed; }
.ren-box h2 { font-size: 0.9rem; margin: 0 0 8px; color: #374151; }
.ren-box form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ren-box input[type=url], .ren-box input[type=text] {
  flex:1; min-width:160px; padding:10px 12px; border:1px solid #d1d5db;
  border-radius: 8px; font-size: 16px; background: #fff;
}
.ren-box button, .ren-btn {
  padding: 10px 16px; border: 1px solid var(--ren-ink); border-radius: 999px;
  background: var(--ren-ink); color:#fff;
  font-weight: 600; cursor:pointer; font-size: 0.88rem; text-decoration:none; display:inline-block;
}
.ren-btn.secondary, .ren-box button.secondary {
  background: transparent; color: var(--ren-ink); border: 1px solid var(--ren-line);
}
.ren-filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 12px; overflow-x: auto; }
.ren-filters a {
  padding: 6px 12px; border-radius: 999px; text-decoration:none; font-size: 0.82rem;
  background: #f3f4f6; color: #111; white-space: nowrap;
}
.ren-filters a.active { background: var(--ren-ink); color: #fff; }
.ren-who { font-size: 0.78rem; color: var(--ren-muted); margin-bottom: 4px; }
.ren-who strong { color: var(--ren-ink); font-weight: 600; }
.ren-preview { background: #f9fafb; border-radius: 8px; padding: 12px; margin-top: 10px; font-size: 0.9rem; }
.ren-preview code { background: #e5e7eb; padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }
.ren-check { display:flex; align-items:center; gap:8px; margin: 8px 0; font-size: 0.92rem; }
.ren-src-list { list-style:none; padding:0; margin:0; }
.ren-src-list li {
  padding: 14px 0; border-bottom: 1px solid var(--ren-line);
  display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; align-items:flex-start;
}
.ren-badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; }
.ren-badge.on { background: #e8e4dc; color: #374151; }
.ren-badge.off { background: #f3f4f6; color: #6b7280; }
.ren-badge.pending { background: #f3f1eb; color: #6b7280; }
.ren-badge.broken { background: #fee2e2; color: #991b1b; }
.ren-detail h1 {
  font-size: 1.35rem; line-height: 1.35; margin: 0 0 10px;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
}
.ren-detail .why { color: #4b5563; font-size: 0.95rem; margin-bottom: 12px; }
.ren-detail .body { font-size: 1.05rem; line-height: 1.75; white-space: pre-wrap; color: #1f2937; }
.ren-detail-kicker {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: none;
  color: var(--ren-muted); margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ren-teal); display: inline-block;
}
.ren-detail .ren-detail-src { margin: 0 0 14px; }
.ren-detail .ren-open-orig {
  display: inline-block; margin-top: 18px; font-size: 0.9rem;
  color: var(--ren-muted); text-decoration: underline; text-underline-offset: 2px;
}
.ren-actions {
  position: sticky; bottom: 64px; display:flex; gap:8px; flex-wrap:wrap;
  padding: 12px 0; background: linear-gradient(transparent, var(--ren-paper) 30%);
}
.ren-actions .ren-btn.ghost {
  background: transparent; border: 1px solid var(--ren-line); color: var(--ren-ink);
  font-weight: 500;
}
.ren-sec-head {
  display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  margin: 22px 0 10px;
}
.ren-sec-head h2 {
  font-size: 0.95rem; margin: 0; font-weight: 700; letter-spacing: 0.02em;
}
.ren-sec-head .ren-count {
  font-size: 0.72rem; min-width: 1.4em; text-align:center;
  padding: 1px 7px; border-radius: 999px; background: var(--ren-surface);
  color: var(--ren-muted); border: 1px solid var(--ren-line);
}
.ren-pending-card {
  background: var(--ren-card); border: 1px solid var(--ren-line);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 10px;
}
.ren-pending-card .who {
  font-size: 0.72rem; color: var(--ren-muted); margin: 0 0 4px;
}
.ren-pending-card .name { font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.ren-pending-card .reason { font-size: 0.85rem; color: var(--ren-muted); margin: 0 0 10px; }
.ren-pending-card .acts { display:flex; gap:8px; flex-wrap:wrap; }
.ren-src-item .ren-src-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.ren-chip-filters { display:flex; gap:6px; flex-wrap:wrap; margin: 0 0 12px; }
.ren-chip-filters a, .ren-chip-filters span {
  font-size: 0.78rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--ren-line); color: var(--ren-muted); text-decoration:none;
}
.ren-chip-filters a.on, .ren-chip-filters span.on {
  border-color: var(--ren-ink); color: var(--ren-ink); background: #fff;
}
.ren-lang { font-size: 0.85rem; color: var(--ren-muted); margin-bottom: 10px; }
.ren-lang a { color: var(--ren-ink); margin-left: 6px; font-weight: 600; text-decoration: underline; }
/* Digest Content — paper editorial */
.ren-digest-content h1 { font-size: 1.5rem; margin: 24px 0 12px; line-height: 1.4; font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif; }
.ren-digest-content h2 { font-size: 1.25rem; margin: 20px 0 10px; line-height: 1.4; }
.ren-digest-content h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.ren-digest-content p { margin: 0 0 16px; line-height: 1.8; }
.ren-digest-content ul, .ren-digest-content ol { margin: 0 0 16px; padding-left: 24px; }
.ren-digest-content li { margin-bottom: 6px; line-height: 1.6; }
.ren-digest-content blockquote { border-left: 3px solid var(--ren-ink); padding: 8px 16px; margin: 16px 0; color: var(--ren-muted); font-style: italic; }
.ren-digest-content code { background: var(--ren-surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.ren-digest-content pre { background: var(--ren-surface); padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.ren-digest-content a { color: var(--ren-ink); text-decoration: underline; }
.ren-digest-content strong { font-weight: 600; }
.ren-digest-content hr { border: none; border-top: 1px solid var(--ren-line); margin: 24px 0; }
/* Calendar Picker — paper */
/* Calendar trigger sits on middle date in issue-nav */
.ren-calendar-trigger { cursor: pointer; border-bottom: 1px dashed var(--ren-line); }
.ren-calendar-trigger:hover { border-bottom-color: var(--ren-ink); }
.ren-calendar-overlay {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(17,24,39,0.35); z-index:200;
  justify-content:center; align-items:center; padding: 16px;
}
.ren-calendar-overlay.show { display:flex; }
.ren-calendar {
  background: var(--ren-paper); color: var(--ren-ink);
  border: 1px solid var(--ren-line); border-radius:14px; padding:18px 16px;
  width:min(340px, 100%); box-shadow:0 12px 40px rgba(15,23,42,0.14);
}
.ren-calendar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.ren-calendar-header #cal-month-year { font-weight: 700; font-size: 0.95rem; }
.ren-calendar-header button {
  background:none; border:1px solid var(--ren-line); border-radius:8px;
  font-size:1.1rem; cursor:pointer; color:var(--ren-ink); padding:4px 10px;
}
.ren-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.ren-calendar-dow { font-size:0.72rem; color:var(--ren-muted); padding:6px 0; font-weight:600; }
.ren-calendar-day {
  padding:9px 4px; border-radius:8px; cursor:pointer; font-size:0.85rem;
  color: var(--ren-muted); border: 1px solid transparent;
}
.ren-calendar-day:hover { background:var(--ren-surface); }
.ren-calendar-day.has-digest {
  background: transparent; color: var(--ren-ink); font-weight:600;
  border-color: var(--ren-line);
  box-shadow: inset 0 -2px 0 var(--ren-ink);
}
.ren-calendar-day.has-digest:hover { background: var(--ren-surface); }
.ren-calendar-day.today { border:1px solid var(--ren-ink); }
.ren-calendar-day.no-digest { cursor: default; opacity: 0.4; }
.ren-calendar-day.no-digest:hover { background: transparent; }
.ren-calendar-day.empty { cursor:default; }
.ren-calendar-day.empty:hover { background:transparent; }
.ren-calendar-hint {
  margin-top: 12px; font-size: 0.72rem; color: var(--ren-muted); text-align: center;
}
/* Hero Carousel — ink gradients, not mint rainbow */
.ren-hero-wrap { margin: 4px 0 4px; }
.ren-hero {
  display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding: 8px 0 10px; -webkit-overflow-scrolling:touch;
}
.ren-hero::-webkit-scrollbar { display:none; }
.ren-hero-card {
  flex:0 0 78%; scroll-snap-align:start; border-radius:16px; overflow:hidden;
  position:relative; color:white; padding:18px 18px 16px; min-height:178px;
  display:flex; flex-direction:column; justify-content:flex-end; text-decoration:none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ren-hero-card::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events:none;
}
.ren-hero-card > * { position:relative; z-index:1; }
.ren-hero-card h3 {
  font-size:1.08rem; margin:0 0 10px; line-height:1.35; font-weight:700;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  color:#fff !important;
}
.ren-hero-card .meta { font-size:0.78rem; opacity:0.9; color:rgba(255,255,255,0.9); line-height:1.35; }
.ren-hero-card .topic-badge {
  font-size:0.72rem; background:rgba(255,255,255,0.2); padding:3px 10px; border-radius:999px;
  display:inline-flex; align-items:center; gap:6px; margin-bottom:10px; width:fit-content;
  color:#fff; font-weight:600;
}
.ren-hero-card .topic-badge .dot {
  width:6px; height:6px; border-radius:50%; background:#fff; flex-shrink:0;
}
.ren-hero-dots {
  display:flex; justify-content:center; gap:6px; padding: 2px 0 8px;
}
.ren-hero-dots span {
  width:6px; height:6px; border-radius:50%; background:#d1d1d6;
}
.ren-hero-dots span.on { background:#111827; }
/* Topic Tabs */
.ren-topic-tabs { display:flex; gap:8px; overflow-x:auto; padding:8px 0 14px; -webkit-overflow-scrolling:touch; }
.ren-topic-tabs::-webkit-scrollbar { display:none; }
.ren-topic-tab {
  flex:0 0 auto; padding:7px 14px; border-radius:999px; font-size:0.84rem;
  white-space:nowrap; text-decoration:none; border:1px solid #e5e5ea;
  color:var(--ren-ink); background:#f2f2f7; display:flex; align-items:center; gap:6px;
  font-weight:500;
}
.ren-topic-tab.active {
  background:#111827; color:#fff; border-color:#111827;
}
.ren-topic-tab.active .ren-topic-dot { display:none; }
.ren-topic-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.ren-empty { color: var(--ren-muted); padding: 32px 8px; text-align: center; line-height: 1.5; }
.ren-raw-link { font-size: 0.75rem; color: #c4c4c4; margin-top: 28px; text-align:center; }
.ren-raw-link a { color: #a3a3a3; }
/* Full editorial issue — Paper journal deep-read */
.ren-issue {
  background:
    linear-gradient(180deg, rgba(250,249,246,0.92) 0%, rgba(250,249,246,0.97) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(120,100,70,0.015) 0px,
      rgba(120,100,70,0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  border: none;
  border-radius: 0;
  padding: 8px 2px 28px;
  margin-bottom: 8px;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ren-ink);
  -webkit-font-smoothing: antialiased;
}
.ren-issue h1 {
  font-size: 1.32rem; line-height: 1.32; margin: 0 0 10px;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  letter-spacing: -0.015em;
}
.ren-issue h2 {
  font-size: 1.12rem; margin: 1.85em 0 0.7em; padding-top: 0.75em;
  border-top: 1px solid var(--ren-line);
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  letter-spacing: -0.01em;
}
.ren-issue h2:first-child { border-top: none; margin-top: 0.5em; padding-top: 0; }
.ren-issue h3 {
  font-size: 1.02rem; margin: 1.5em 0 0.55em; color: #111; font-weight: 700;
}
.ren-issue p { margin: 0.9em 0; }
.ren-issue blockquote {
  margin: 1.1em 0; padding: 0.5em 0 0.5em 14px;
  border-left: 3px solid var(--ren-line); color: #4b5563; font-size: 0.98rem;
}
.ren-issue hr { border: none; border-top: 1px solid var(--ren-line); margin: 1.6em 0; }
.ren-issue strong { font-weight: 700; }
.ren-issue ul, .ren-issue ol { padding-left: 1.25em; margin: 0.65em 0; }
.ren-issue a { color: var(--ren-ink); text-decoration: underline; text-underline-offset: 2px; }
/* Paper journal: thesis + data + 所以呢 — teal only on stats underline / bullets */
.ren-deep-thesis {
  margin: 0.35em 0 1.25em;
  padding: 14px 16px;
  background: #f4f2ed;
  border: 1px solid #e6e1d6;
  border-radius: 12px;
  font-size: 1.0rem;
  line-height: 1.55;
  color: #1f2937;
  font-weight: 500;
}
.ren-deep-thesis strong { font-weight: 700; }
.ren-issue .ren-deep-data,
.ren-deep-data {
  display: inline;
  padding: 0 1px;
  background: transparent !important;
  border-radius: 0;
  font-weight: 700;
  color: var(--ren-ink) !important;
  font-size: inherit;
  border-bottom: 2px solid var(--ren-teal);
  margin: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.ren-issue .ren-deep-highlight {
  background: transparent;
  border-bottom: 2px solid var(--ren-teal);
  padding: 0 1px;
}
.ren-issue .ren-deep-cta,
.ren-deep-cta {
  margin: 1.5em 0 0.4em;
  padding: 14px 16px;
  background: #f3f1eb;
  border: 1px solid #e6e1d6;
  border-left: 3px solid #c4bfb4;
  border-radius: 12px;
  font-weight: 500;
  color: #374151;
  font-size: 0.94rem;
  line-height: 1.58;
}
.ren-issue .ren-deep-cta::before,
.ren-deep-cta::before {
  content: "所以呢？";
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ren-muted);
  margin-bottom: 6px;
}
.ren-deep-list {
  margin: 1.15em 0;
  padding-left: 1.15em;
  line-height: 1.75;
  list-style: none;
}
.ren-deep-list li {
  margin-bottom: 0.75em;
  padding-left: 0.55em;
  position: relative;
}
.ren-deep-list li::before {
  content: "";
  position: absolute;
  left: -0.85em;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ren-teal);
}
.ren-deep-list li::marker { content: none; color: transparent; }
/* Deep accordion: kicker + title (category-in-title pattern) */
.ren-acc.ren-acc-deep > summary {
  align-items: flex-start;
}
.ren-deep-sum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 8px;
}
.ren-deep-kicker {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ren-muted);
  text-transform: none;
}
.ren-deep-ttl {
  display: block;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ren-ink);
}
.ren-deep-article {
  padding: 4px 2px 8px;
  max-width: 40rem;
}
.ren-deep-article p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: #1f2937;
}
.ren-deep-article .ren-item-src {
  margin-top: 14px;
  margin-bottom: 4px;
}
.ren-deep-article .ren-src-line,
.ren-deep-article p:has(a[href]) {
  font-size: 0.78rem;
}
/* Don't treat deep body as scan cards */
.ren-acc-deep .ren-items { display: none; }
.ren-issue .ren-src-line, .ren-src-line {
  display: block; margin: 0.35em 0 1.15em !important;
  font-size: 0.78rem !important; color: #9ca3af !important; font-weight: 400 !important;
  line-height: 1.4;
}
/* neutralize red pin emoji — keep monochrome source caption */
.ren-src-line {
  font-variant-emoji: text;
}
.ren-src-line::before {
  content: none;
}
.ren-lede {
  color: var(--ren-muted); font-size: 0.95rem; margin: 0 0 16px; line-height: 1.5;
  font-style: italic;
}
.ren-toc {
  background: transparent; border-radius: 0; padding: 0 0 12px; margin-bottom: 8px;
  font-size: 0.88rem; border-bottom: 1px solid var(--ren-line);
}
.ren-toc summary {
  cursor: pointer; font-weight: 600; color: var(--ren-ink); list-style: none;
}
.ren-toc summary::-webkit-details-marker { display: none; }
.ren-toc summary::before { content: "目錄  "; color: var(--ren-muted); font-weight: 700; }
.ren-toc ol {
  list-style: none; margin: 10px 0 0; padding: 0; color: #4b5563;
}
.ren-toc li {
  padding: 5px 0 5px 0; border: none;
  position: relative;
}
.ren-toc li::before {
  content: "▪"; color: #d1d5db; margin-right: 8px; font-size: 0.7rem;
}
.ren-toc a { color: #374151; text-decoration: none; }
.ren-toc a:hover { color: var(--ren-ink); opacity: 0.75; }
.ren-degraded {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 0.88rem; color: #9a3412;
}
.ren-page-title {
  font-size: 1.35rem; font-weight: 700; margin: 0 0 4px;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
}
.ren-page-sub { color: var(--ren-muted); font-size: 0.88rem; margin: 0 0 14px; }
.ren-legacy-wrap { margin-top: 18px; }
.ren-legacy-wrap summary {
  cursor: pointer; color: var(--ren-muted); font-size: 0.88rem; font-weight: 600;
}
/* Accordion directory (v1.2.3) */
.ren-dir-tools {
  display:flex; gap:12px; align-items:center; margin: 0 0 14px;
  font-size: 0.82rem;
}
/* 今日一句 — top epigraph */
.ren-epigraph {
  margin: 4px 0 18px;
  padding: 14px 16px 14px;
  background: #fff;
  border: 1px solid var(--ren-line);
  border-radius: 14px;
  border-left: 3px solid var(--ren-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ren-epi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ren-muted);
  margin-bottom: 8px;
}
.ren-epi-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ren-ink);
  font-weight: 600;
}
.ren-epi-attr {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ren-muted);
  line-height: 1.4;
}
/* 當日快訊 — condensed card at top (after epigraph); collapsed by default */
.ren-flash {
  margin: 0 0 16px;
  padding: 0;
  background: var(--ren-card);
  border: 1px solid var(--ren-line);
  border-radius: 14px;
  border-left: 3px solid var(--ren-teal);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.ren-flash > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ren-muted);
  user-select: none;
}
.ren-flash > summary::-webkit-details-marker { display: none; }
.ren-flash > summary .ren-flash-meta {
  order: -1;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ren-muted);
  opacity: 0.9;
  min-width: 1.5em;
}
.ren-flash > summary .ren-flash-ttl {
  flex: 1;
}
.ren-flash > summary::after {
  content: "▸";
  font-size: 0.7rem;
  color: var(--ren-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.ren-flash[open] > summary::after { content: "▾"; }
.ren-flash[open] > summary {
  border-bottom: 1px solid var(--ren-line);
}
.ren-flash-body {
  padding: 10px 16px 14px;
}
.ren-flash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ren-flash-list li {
  margin: 0;
  padding: 8px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ren-muted);
  border-top: 1px solid var(--ren-line);
}
.ren-flash-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.ren-flash-list li:last-child {
  padding-bottom: 0;
}
.ren-flash-list li .lead {
  color: var(--ren-ink);
  font-weight: 700;
  margin-right: 0.35em;
}
.ren-flash-list li .lead::after {
  content: none;
}
.ren-dir-tools a {
  color: var(--ren-ink); text-decoration:none; font-weight: 600; cursor: pointer;
  border-bottom: 1px solid var(--ren-line);
}
.ren-acc {
  border-top: 1px solid var(--ren-line);
}
.ren-acc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 0; font-weight: 700; font-size: 1.02rem;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  line-height: 1.35;
  /* Stick category under compact date head */
  position: sticky;
  top: var(--ren-stick-h, 0px);
  z-index: 20;
  /* full-bleed sticky bar within column */
  margin-left: -18px; margin-right: -18px;
  padding-left: 18px; padding-right: 18px;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ren-paper) 94%, transparent);
}
.ren-acc[open] > summary {
  border-bottom-color: var(--ren-line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.ren-acc > summary::-webkit-details-marker { display: none; }
.ren-acc > summary::before {
  content: "▪"; color: #c4c4c4; font-size: 0.7rem; margin-top: 0.35em; flex-shrink: 0;
}
.ren-acc[open] > summary::before { color: var(--ren-ink); content: "▾"; font-size: 0.75rem; }
.ren-acc > summary .ren-acc-meta {
  display:block; font-weight: 500; font-size: 0.8rem; color: var(--ren-muted);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  margin-top: 4px;
}
/* Same level for nested categories — no indent */
.ren-acc-body {
  padding: 4px 0 14px 0;
}
.ren-acc.ren-acc-child {
  border-top-color: var(--ren-line);
  margin-left: 0;
}
.ren-acc.ren-acc-child > summary {
  font-size: 1.0rem; font-weight: 700; padding-top: 14px; padding-bottom: 14px;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  top: var(--ren-stick-h, 0px);
  z-index: 21;
}
.ren-acc-body .ren-issue { padding-top: 0; }
/* News item cards — enhanced v2 display */
.ren-items {
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 0 4px;
}
.ren-item {
  background: var(--ren-card);
  border: 1px solid var(--ren-line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.ren-item:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border-color: #d1d5db;
}
/* Importance variants */
.ren-item.imp-red {
  border-left: 3px solid #ef4444;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.ren-item.imp-yellow {
  border-left: 3px solid #f59e0b;
}
.ren-item.imp-green {
  border-left: 3px solid #10b981;
  padding: 12px 16px 10px;
}
.ren-item.imp-green .ren-item-body {
  font-size: 0.88rem;
  color: #6b7280;
}
/* Source badge */
.ren-item-src {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0ebe3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.35;
}
.ren-src-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  font-size: 0.72rem;
  white-space: nowrap;
}
.ren-src-badge .ren-src-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ren-ink);
  flex-shrink: 0;
}
.ren-src-date {
  color: #9ca3af;
  font-size: 0.72rem;
  margin-right: 4px;
}
/* Click to expand */
.ren-item-expand {
  cursor: pointer;
}
.ren-item-expand summary {
  list-style: none;
  cursor: pointer;
}
.ren-item-expand summary::-webkit-details-marker {
  display: none;
}
.ren-item-expand summary::after {
  content: "展開";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--ren-muted);
  font-weight: 600;
  transition: color 0.15s;
}
.ren-item-expand[open] summary::after {
  content: "收起";
}
.ren-item-expand summary:hover::after {
  color: var(--ren-ink);
}
/* Teaser — collapsed state */
.ren-item-teaser {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ren-item-expand[open] .ren-item-teaser {
  display: none;
}
/* Deep dive legacy blocks superseded by Paper journal rules above */
.ren-deep-quote { display: none; }
/* Section divider between deep dives */
.ren-deep-divider {
  border: none;
  border-top: 1px solid var(--ren-line);
  margin: 2em 0;
}
/* Deep dive section titles */
.ren-acc-body .ren-acc > summary {
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--ren-ink);
}
.ren-acc-body .ren-acc > summary:hover {
  color: var(--ren-accent);
}
/* Typography improvements */
.ren-item-ttl {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ren-ink);
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
  word-break: break-word;
}
.ren-item-body {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #374151;
  word-break: break-word;
}
.ren-item-body p { margin: 0 0 0.6em; }
.ren-item-body p:last-child { margin-bottom: 0; }
.ren-item-body .ren-src-line { display: none !important; }
/* Circle — series list craft */
.ren-series-head {
  text-align: left; margin: 0 0 8px; padding-bottom: 8px;
  border-bottom: none;
}
.ren-series-head h1 {
  font-size: 1.35rem; margin: 0; font-weight: 700;
  font-family: "Iowan Old Style", Palatino, "Songti TC", Georgia, serif;
}
.ren-series-head .sub {
  color: var(--ren-muted); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 2px;
}
/* Domain filter tabs — horizontal scroll */
.ren-domain-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ren-domain-tabs::-webkit-scrollbar { display: none; }
.ren-domain-tab {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  color: var(--ren-muted); background: transparent;
  border: 1px solid var(--ren-line); transition: all 0.15s;
  white-space: nowrap;
}
.ren-domain-tab.active {
  background: #111827; color: #fff; border-color: #111827;
}
.ren-domain-tab:not(.active):hover {
  border-color: var(--ren-ink); color: var(--ren-ink);
}
.ren-domain-tab .count {
  font-size: 0.72rem; opacity: 0.7; margin-left: 3px;
}
/* Circle item list — media rows */
.ren-series-list { list-style: none; padding: 0; margin: 0; }
.ren-series-list > li {
  border-bottom: 1px solid var(--ren-line);
}
.ren-series-list > li:last-child { border-bottom: none; }
.ren-series-list a.row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
  align-items: start;
  text-decoration: none; color: inherit;
  padding: 14px 0;
}
.ren-series-list .row-main { min-width: 0; }
.ren-series-list .meta-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.72rem; color: #8e8e93; margin-bottom: 5px; font-weight: 500;
}
.ren-series-list .meta-line .dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ren-series-list .meta-line .sep { color: #c7c7cc; }
.ren-series-list .ttl {
  font-size: 0.98rem; font-weight: 650; line-height: 1.35;
  color: var(--ren-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-series-list a.row:hover .ttl { color: var(--ren-ink); opacity: 0.7; }
.ren-series-list .dek {
  font-size: 0.84rem; color: #8e8e93; line-height: 1.45; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-series-list .when {
  font-size: 0.72rem; color: #aeaeB2; margin-top: 7px;
}
.ren-series-list .thumb {
  width: 72px; height: 72px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* Circle item inline expand (legacy fallback) */
.ren-circle-item summary.row {
  display: block; cursor: pointer; padding: 12px 0;
  list-style: none;
}
.ren-circle-item summary.row::-webkit-details-marker { display: none; }
.ren-expand-body {
  display: block; padding: 0 0 8px 0;
  font-size: 0.88rem; color: #4b5563; line-height: 1.5;
}
.ren-expand-body p { margin: 0 0 6px; }
.ren-expand-body a { color: var(--ren-ink); text-decoration: underline; }
/* Domain pills — settings page */
.ren-domain-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.ren-domain-pill {
  padding: 4px 12px; border-radius: 16px; font-size: 0.78rem;
  background: var(--ren-surface); color: var(--ren-muted);
  font-weight: 500; border: 1px solid var(--ren-line);
}
/* Domain tag — inline on source items */
.ren-domain-tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 0.7rem; font-weight: 500; margin-left: 6px;
  background: var(--ren-surface); color: var(--ren-muted);
}
.ren-domain-tag.muted {
  background: #f3f4f6; color: #9ca3af;
}
/* Source list items */
.ren-src-list { list-style: none; padding: 0; margin: 0; }
.ren-src-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--ren-line);
  gap: 12px;
}
.ren-src-item:last-child { border-bottom: none; }
.ren-src-info { flex: 1; min-width: 0; }
.ren-src-info strong { font-size: 0.95rem; }
.ren-src-actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
@media (min-width: 720px) {
  .ren-app { max-width: 560px; }
  .ren-mast .date { font-size: 2.15rem; }
  .ren-sticky-head.is-compact .date { font-size: 1.12rem; }
}
/* v1.5.1 Q&A bottom sheet — mockup: 4 option cards + input; hidden until open */
.ren-qa-backdrop {
  position: fixed; inset: 0; background: rgba(17,24,39,0.28); z-index: 80;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}
.ren-qa-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.ren-qa-sheet {
  position: fixed; left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: #fffefb;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 36px rgba(0,0,0,.14);
  transform: translateY(calc(100% + 24px));
  transition: transform .28s cubic-bezier(.32,.72,0,1), visibility .28s;
  max-height: min(82vh, 620px);
  display: flex; flex-direction: column;
  visibility: hidden; pointer-events: none;
  border: 1px solid var(--ren-line); border-bottom: none;
}
.ren-qa-sheet.open {
  transform: translateY(0);
  visibility: visible; pointer-events: auto;
}
.ren-qa-head {
  position: relative;
  padding: 18px 44px 8px 16px;
  text-align: center;
}
.ren-qa-head h3 {
  margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--ren-ink);
  letter-spacing: 0.01em;
}
.ren-qa-ctx {
  font-size: .78rem; color: var(--ren-muted); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-align: center;
}
.ren-qa-close {
  position: absolute; right: 12px; top: 14px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--ren-line); background: #fff;
  color: #6b7280; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.ren-qa-close:active { background: var(--ren-surface); }
.ren-qa-body { padding: 10px 14px 16px; overflow-y: auto; flex: 1; }
/* 4 equal cards in one row — mockup */
.ren-qa-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 4px 0 14px;
}
.ren-qa-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  border: 1px solid var(--ren-line); border-radius: 14px;
  background: #fff; padding: 12px 6px 10px;
  cursor: pointer; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  font: inherit; color: var(--ren-ink);
}
.ren-qa-card:active { background: var(--ren-surface); }
.ren-qa-card .ico {
  width: 28px; height: 28px; margin-bottom: 8px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ren-qa-card .ttl {
  font-size: .78rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px;
}
.ren-qa-card .sub {
  font-size: .62rem; color: var(--ren-muted); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* pill input + teal send */
.ren-qa-compose {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--ren-line); border-radius: 999px;
  background: #fff; padding: 6px 6px 6px 14px;
}
.ren-qa-compose input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: .92rem; color: var(--ren-ink); padding: 8px 0;
}
.ren-qa-compose input::placeholder { color: #9ca3af; }
.ren-qa-send {
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: #0d9488; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ren-qa-send svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ren-qa-send:active { opacity: .88; }
.ren-qa-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.ren-qa-extra .ren-btn { font-size: .82rem; padding: 7px 12px; }
.ren-qa-loading { text-align: center; color: var(--ren-muted); padding: 28px 8px; }
.ren-qa-answer h4 { margin: 0 0 6px; font-size: 1.05rem; }
.ren-qa-answer .thesis { color: var(--ren-muted); font-size: .9rem; margin: 0 0 12px; }
.ren-qa-answer .body { font-size: .95rem; line-height: 1.65; white-space: pre-wrap; }
.ren-qa-picker .ren-circle-pick {
  display: block; width: 100%; text-align: left; border: 1px solid var(--ren-line);
  background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.ren-qa-picker .ren-circle-pick strong { display: block; }
.ren-qa-picker .ren-circle-pick span { font-size: .8rem; color: var(--ren-muted); }
.ren-swipeable { touch-action: pan-y; }
.ren-swipe-hint-bar { display: none !important; } /* never show floating tool chrome */
.ren-circle-card {
  display: block; border-radius: 16px; padding: 18px 16px; margin-bottom: 12px;
  background: linear-gradient(145deg, #1f2937 0%, #374151 100%); color: #fff;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.ren-circle-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.ren-circle-card .meta { font-size: .82rem; opacity: .85; }
.ren-circle-card .bar { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.ren-circle-card .bar > i { display: block; height: 100%; background: #5eead4; width: 40%; }
/* ── Circle mockup v2: 近期動態 rail + topic cards ── */
.ren-csec {
  display:flex; align-items:baseline; justify-content:space-between;
  margin: 4px 0 12px;
}
.ren-csec h2 {
  margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ren-ink);
  letter-spacing: -0.01em;
}
.ren-csec a {
  font-size: .82rem; color: var(--ren-muted); text-decoration: none; font-weight: 500;
}
.ren-rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 0 16px; margin: 0 -4px 8px; -webkit-overflow-scrolling: touch;
}
.ren-rail::-webkit-scrollbar { display: none; }
.ren-rail-card {
  flex: 0 0 42%; max-width: 168px; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden; position: relative;
  min-height: 168px; text-decoration: none; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.ren-rail-card .badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .65rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(13,148,136,.92); color: #fff;
  padding: 3px 8px; border-radius: 999px;
}
.ren-rail-card .ttl {
  font-size: .88rem; font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-rail-card .ts {
  font-size: .68rem; opacity: .88; margin-top: 6px;
}
.ren-topic-card {
  display: block; position: relative;
  border-radius: 16px; padding: 16px 14px 14px;
  margin-bottom: 12px; text-decoration: none; color: var(--ren-ink);
  border: 1px solid var(--ren-line);
  background: #fffefb;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
  overflow: hidden;
}
.ren-topic-card.t0 { background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%); }
.ren-topic-card.t1 { background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fc 100%); }
.ren-topic-card.t2 { background: linear-gradient(135deg, #faf6f1 0%, #f3ebe3 100%); }
.ren-topic-card.t3 { background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f3 100%); }
.ren-topic-card .inner { display: flex; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.ren-topic-ico {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,148,136,.12); color: #0d9488;
}
.ren-topic-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ren-topic-ico.gold { background: rgba(180,131,71,.15); color: #a16207; }
.ren-topic-ico.ink { background: rgba(17,24,39,.08); color: #1f2937; }
.ren-topic-body { flex: 1; min-width: 0; padding-right: 36px; }
.ren-topic-body h3 {
  margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; line-height: 1.3;
  color: var(--ren-ink);
}
.ren-topic-body .sub {
  margin: 0 0 8px; font-size: .82rem; color: var(--ren-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-topic-body .upd {
  display: inline-block; font-size: .78rem; font-weight: 600; color: #0d9488;
  margin-bottom: 8px;
}
.ren-src-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ren-src-dot {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 700; color: #fff;
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.ren-src-more {
  font-size: .68rem; color: var(--ren-muted); font-weight: 600;
  padding: 2px 6px; background: rgba(0,0,0,.04); border-radius: 999px;
}
.ren-topic-go {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(17,24,39,.06); color: #374151;
  display: flex; align-items: center; justify-content: center;
}
.ren-topic-go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.ren-topic-mark {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  color: #9ca3af; background: none; border: 0; padding: 4px; cursor: default;
}
.ren-topic-mark svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ren-topic-new {
  position: absolute; top: 12px; right: 40px; z-index: 2;
  font-size: .68rem; font-weight: 700; color: #fff;
  background: #c2410c; padding: 2px 7px; border-radius: 999px;
}
.ren-topic-foot {
  margin-top: 10px; font-size: .72rem; color: #9ca3af; text-align: right;
}
.ren-cdetail-hero {
  border-radius: 16px; padding: 18px 16px; margin-bottom: 16px;
  background: linear-gradient(145deg, #f8fafc, #eef6f5);
  border: 1px solid var(--ren-line);
}
.ren-cdetail-hero .row { display:flex; gap: 12px; align-items: flex-start; }
.ren-cdetail-hero h1 {
  margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; line-height: 1.25;
}
.ren-cdetail-hero .sub { color: var(--ren-muted); font-size: .88rem; margin: 0 0 10px; }
.ren-cdetail-hero .upd { color: #0d9488; font-weight: 600; font-size: .85rem; }
.ren-citem {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--ren-line);
  text-decoration: none; color: var(--ren-ink);
}
.ren-citem .k {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 6px;
  background: #ccfbf1; color: #0f766e;
}
.ren-citem .k.feed { background: #f3f4f6; color: #4b5563; }
.ren-citem h3 { margin: 0 0 4px; font-size: .98rem; line-height: 1.35; font-weight: 650; }
.ren-citem .dek { font-size: .84rem; color: var(--ren-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ren-citem .meta { font-size: .72rem; color: #9ca3af; margin-top: 6px; }
.ren-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .88rem; color: var(--ren-muted); text-decoration: none; margin-bottom: 10px;
  font-weight: 500;
}
/* ── Circle detail mockup (精選故事 / 最新動態 / 建議擴展) ── */
.ren-cd-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 10px;
}
.ren-cd-head .back {
  flex-shrink: 0; width: 36px; height: 36px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ren-ink); text-decoration: none; border-radius: 999px;
}
.ren-cd-head .back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.ren-cd-head .titles { flex: 1; min-width: 0; }
.ren-cd-head h1 {
  margin: 0; font-size: 1.45rem; font-weight: 750; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ren-ink);
}
.ren-cd-status {
  flex-shrink: 0; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .78rem; font-weight: 600; color: #0f766e;
  border: 1px solid rgba(13,148,136,.35); background: #f0fdfa;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.ren-cd-status.paused { color: #6b7280; border-color: var(--ren-line); background: #f9fafb; }
.ren-cd-desc {
  margin: 0 0 20px; font-size: .9rem; line-height: 1.55; color: #4b5563;
}
.ren-sec-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 12px;
}
.ren-sec-bar h2 {
  margin: 0; font-size: .98rem; font-weight: 700; color: var(--ren-ink);
  display: flex; align-items: center; gap: 8px;
}
.ren-sec-bar h2::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: #0d9488;
}
.ren-sec-bar a { font-size: .8rem; color: var(--ren-muted); text-decoration: none; }
.ren-fs-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;
}
.ren-fs-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 168px; border-radius: 14px; overflow: hidden; padding: 12px;
  text-decoration: none; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.ren-fs-card .tag {
  position: absolute; top: 10px; left: 10px;
  font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(13,148,136,.92); color: #fff;
}
.ren-fs-card .ttl {
  font-size: .84rem; font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-fs-card .meta {
  margin-top: 8px; font-size: .68rem; opacity: .9;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.ren-upd-list { margin: 0 0 8px; }
.ren-upd-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--ren-line);
  text-decoration: none; color: var(--ren-ink);
}
.ren-upd-row:last-child { border-bottom: none; }
.ren-upd-logo {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.ren-upd-main { flex: 1; min-width: 0; }
.ren-upd-src { font-size: .72rem; font-weight: 600; color: var(--ren-muted); margin-bottom: 3px; }
.ren-upd-ttl {
  font-size: .92rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-upd-ts {
  flex-shrink: 0; font-size: .72rem; color: #9ca3af; margin-top: 2px; white-space: nowrap;
}
.ren-exp-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ren-exp-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--ren-line);
  background: #fffefb;
}
.ren-exp-card .ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(13,148,136,.12); color: #0d9488;
  display: flex; align-items: center; justify-content: center;
}
.ren-exp-card .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ren-exp-card .txt { flex: 1; min-width: 0; }
.ren-exp-card .txt strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.ren-exp-card .txt span {
  font-size: .78rem; color: var(--ren-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ren-exp-acts { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ren-exp-acts button {
  font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  cursor: pointer; min-width: 64px;
}
.ren-exp-acts .join {
  background: #0f766e; color: #fff; border: 0;
}
.ren-exp-acts .skip {
  background: transparent; color: var(--ren-muted); border: 1px solid var(--ren-line);
}
.ren-cd-pause {
  position: fixed; left: 0; right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 42; display: flex; justify-content: center; pointer-events: none;
  padding: 0 16px;
}
.ren-cd-pause button {
  pointer-events: auto; width: 100%; max-width: 520px;
  background: #0f766e; color: #fff; border: 0; border-radius: 12px;
  font-size: .95rem; font-weight: 650; padding: 14px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(15,118,110,.28); cursor: pointer;
}
.ren-cd-pause button svg { width: 16px; height: 16px; fill: currentColor; }
.ren-cd-pause button.resume { background: #111827; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.ren-app.has-cd-pause { padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
.ren-empty-soft {
  font-size: .88rem; color: var(--ren-muted); padding: 12px 0; line-height: 1.5;
}
.ren-fs-hero {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 12px; margin: 0 -4px;
}
.ren-fs-hero a {
  flex: 0 0 78%; scroll-snap-align: start; border-radius: 14px; padding: 16px;
  background: linear-gradient(145deg, #111827, #1e3a5f); color: #fff; text-decoration: none;
  min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end;
}
.ren-fs-hero a .badge { font-size: .72rem; opacity: .9; margin-bottom: 6px; }
.ren-fs-hero a h3 { margin: 0; font-size: .98rem; color: #fff; line-height: 1.35; }
.ren-fs-hero a .meta { font-size: .75rem; opacity: .8; margin-top: 6px; }
.ren-detail-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; }
.ren-detail-tabs a {
  flex-shrink: 0; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--ren-line);
  font-size: .85rem; text-decoration: none; color: var(--ren-muted); background: #fff;
}
.ren-detail-tabs a.active { background: var(--ren-ink); color: #fff; border-color: var(--ren-ink); }
.ren-timeline-item {
  padding: 12px 0; border-bottom: 1px solid var(--ren-line);
}
.ren-timeline-item .kind {
  display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 8px;
  background: var(--ren-surface); color: var(--ren-muted); margin-bottom: 4px;
}
.ren-timeline-item .kind.fs { background: #ccfbf1; color: #0f766e; }
/* Brand masthead — all tabs */
.ren-brand {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--ren-line);
}
.ren-brand-mark { display: flex; flex-direction: column; gap: 2px; }
.ren-brand-mark .logo {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC", serif;
  font-size: 1.55rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
  color: var(--ren-ink);
}
.ren-brand-mark .logo-sub {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ren-muted); font-weight: 600;
}
.ren-brand-tag {
  font-size: 0.92rem; color: var(--ren-ink); font-weight: 500;
  letter-spacing: 0.02em; margin-top: 6px;
}
.ren-brand-tag .dot { color: #0d9488; margin: 0 0.2em; }
.ren-tabs { z-index: 45; }
.ren-app { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.ren-series-list .row-wrap {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--ren-line);
}
.ren-series-list .row-wrap .row { flex: 1; border-bottom: none; min-width: 0; }
.ren-series-list .qa-link {
  flex-shrink: 0; align-self: center; padding: 10px 10px 10px 4px;
  font-size: 0.78rem; color: #0d9488; background: none; border: 0;
  white-space: nowrap; cursor: pointer; font-weight: 600;
}
.ren-series-list .thumb { display: none !important; }
.ren-src-code { display: none !important; }