@charset "UTF-8";

:root {
  color-scheme: light;
  --background: oklch(1 0 0);
  --surface: oklch(1 0 0);
  --foreground: oklch(0.32109 0 0);
  --muted: oklch(0.94912 0 0);
  --muted-foreground: oklch(0.44953 0 0);
  --primary: oklch(0.53851 0.20189 28.019);
  --primary-hover: oklch(0.46641 0.1731 27.999);
  --primary-foreground: oklch(1 0 0);
  --neutral-soft: oklch(0.94912 0 0);
  --neutral-strong: oklch(0.38665 0 0);
  --accent-soft: oklch(0.94808 0.01971 21.362);
  --border: oklch(0.84522 0 0);
  --ring: var(--primary);
  --error: oklch(0.43964 0.15961 27.486);
  --error-background: oklch(0.97764 0.01085 24.318);
  --shadow: 0 4px 16px oklch(0 0 0 / 0.035);
  --nav-shadow: 0 -5px 30px oklch(0 0 0 / 0.035);
  --avatar-shadow: 0 2px 4px oklch(0 0 0 / 0.025);
  --status-glow: 0 0 0 3px oklch(0.53851 0.20189 28.019 / 0.08);
  --dialog-shadow: 0 -20px 80px oklch(0 0 0 / 0.15);
  --dialog-backdrop: oklch(0.25 0 0 / 0.44);
  --banner-background: var(--muted);
  --code-font: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --radius: 0.75rem;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.20463 0 0);
  --surface: oklch(0.24353 0 0);
  --foreground: oklch(0.95283 0.00455 78.298);
  --muted: oklch(0.28502 0 0);
  --muted-foreground: oklch(0.77755 0.00657 75.395);
  --primary: oklch(0.7354 0.11706 24.798);
  --primary-hover: oklch(0.79487 0.09252 25.097);
  --primary-foreground: oklch(0.21077 0.03359 23.364);
  --neutral-soft: oklch(0.28502 0 0);
  --neutral-strong: oklch(0.87066 0.00465 78.296);
  --accent-soft: oklch(0.29269 0.02588 22.596);
  --border: oklch(0.41406 0.00424 67.709);
  --ring: var(--primary);
  --error: var(--primary);
  --error-background: var(--accent-soft);
  --shadow: 0 4px 16px oklch(0 0 0 / 0.12);
  --nav-shadow: 0 -5px 30px oklch(0 0 0 / 0.12);
  --avatar-shadow: none;
  --status-glow: none;
  --dialog-shadow: 0 -20px 80px oklch(0 0 0 / 0.35);
  --dialog-backdrop: oklch(0 0 0 / 0.64);
  --banner-background: var(--muted);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--foreground); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled, fieldset:disabled, input:disabled { cursor: wait; }
button:disabled { opacity: 0.6; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button:focus-visible, a:focus-visible, input:focus-visible, main:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
main:focus-visible { outline-offset: -4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 18px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.app-shell { max-width: 840px; min-height: 100dvh; margin: 0 auto; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 24px; padding: calc(24px + var(--safe-top)) 0 22px; border-bottom: 1px solid var(--border); }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 750; letter-spacing: -1.5px; line-height: 1; }
.wordmark-end { font-weight: 420; }
.brand-symbol { color: var(--primary); width: 30px; height: 30px; margin-bottom: 9px; }
.wordmark-caption { display: block; margin-top: 9px; font-family: var(--code-font); font-size: 7px; font-weight: 500; letter-spacing: 0.8px; color: var(--muted-foreground); }
.avatar { display: inline-flex; width: 42px; height: 42px; flex: 0 0 auto; justify-content: center; align-items: center; border: 1px dashed var(--border); border-radius: 50%; background: var(--surface); color: var(--primary); font-family: var(--code-font); font-size: 15px; font-weight: 600; }
.avatar:hover { background: var(--muted); }
main { padding: 0 24px calc(106px + var(--safe-bottom)); }
.page-panel { animation: enter-page 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-intro { padding-top: 30px; padding-bottom: 25px; }
.eyebrow { color: var(--muted-foreground); font-family: var(--code-font); font-size: 10px; font-weight: 500; letter-spacing: 1px; line-height: 1.7; }
.page-intro h1 { margin-top: 14px; max-width: 650px; color: var(--primary); font-size: clamp(34px, 9vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.page-intro h1 span { color: var(--primary); }
.intro-description { margin-top: 16px; max-width: 490px; color: var(--muted-foreground); font-size: 14px; line-height: 1.75; }
.knowledge-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 116px; padding: 18px 20px; border: 1px dashed var(--border); border-radius: 12px; background: var(--banner-background); }
.knowledge-copy { position: relative; min-width: 0; }
.banner-kicker { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-family: var(--code-font); font-size: 9px; font-weight: 500; letter-spacing: 0.7px; line-height: 1.6; }
.status-dot { width: 5px; height: 5px; flex-shrink: 0; background: var(--primary); border-radius: 50%; }
.knowledge-copy p { margin-top: 6px; font-size: 18px; line-height: 1.4; letter-spacing: -0.4px; font-weight: 600; }
.knowledge-copy strong { font-weight: 650; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 650; }
.text-button:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.banner-link { margin-top: 2px; padding: 6px 0; min-height: 30px; font-family: var(--code-font); font-size: 11px; font-weight: 500; }
.banner-link > span:last-child { font-size: 16px; }
.knowledge-art { width: 62px; height: 62px; flex-shrink: 0; color: var(--primary); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 32px 0 18px; padding-bottom: 12px; min-height: 22px; border-bottom: 1px dotted var(--border); }
.section-heading h2 { display: flex; gap: 9px; align-items: center; font-size: 18px; font-weight: 600; letter-spacing: -0.5px; }
.section-meta { color: var(--muted-foreground); font-family: var(--code-font); font-size: 10px; line-height: 1.6; text-align: right; }
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-card { position: relative; overflow: hidden; padding: 22px 21px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.article-card.is-featured { padding-top: 24px; border-top: 2px solid var(--primary); }
.article-card.is-featured::before { content: none; }
.article-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.topic-label { display: inline-block; max-width: calc(100% - 48px); padding: 5px 8px; border: 1px dashed var(--border); border-radius: 4px; color: var(--primary); font-family: var(--code-font); font-size: 10px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.article-card:nth-child(even) .topic-label { color: var(--primary); }
.icon-button { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 7px; color: var(--muted-foreground); background: transparent; }
.article-top .icon-button { margin: -8px -9px 0 0; }
.icon-button svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { background: var(--muted); color: var(--primary); }
.bookmark-button[aria-pressed="true"] { color: var(--primary); }
.bookmark-button[aria-pressed="true"] svg { fill: var(--accent-soft); }
.article-source { display: flex; align-items: center; gap: 6px; margin-top: 17px; color: var(--muted-foreground); font-family: var(--code-font); font-size: 10px; letter-spacing: 0; line-height: 1.65; overflow-wrap: anywhere; }
.source-mark { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 14px; height: 14px; color: var(--primary); font-size: 11px; }
.article-title { margin-top: 9px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.7px; overflow-wrap: anywhere; }
.article-card.is-featured .article-title { font-size: 24px; }
.article-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 13px; color: var(--muted-foreground); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; padding: 7px 0; border-top: 1px dotted var(--border); }
.article-date { color: var(--muted-foreground); font-family: var(--code-font); font-size: 10px; line-height: 1.6; }
.article-open { gap: 9px; padding: 9px 0 9px 8px; min-height: 44px; font-size: 11px; }
.article-open svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.medical-note { margin: 24px auto 0; max-width: 330px; text-align: center; font-size: 9px; line-height: 1.7; color: var(--muted-foreground); }
.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 840px; transform: translateX(-50%); padding: 10px 10px calc(9px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--nav-shadow); }
.nav-item { position: relative; display: flex; align-items: center; flex-direction: column; gap: 6px; min-width: 0; min-height: 49px; padding: 4px 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted-foreground); font-size: 10px; line-height: 1.5; }
.nav-item svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.is-active { color: var(--primary); font-weight: 650; }
.nav-item.is-active::before { content: ""; position: absolute; top: -11px; left: 31%; right: 31%; height: 2px; background: var(--primary); }
.nav-item.is-active svg { fill: var(--accent-soft); }
.nav-item:hover { background: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; transition: transform 0.2s ease-out, opacity 0.2s ease-out; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { color: var(--primary-foreground); background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { color: var(--foreground); background: var(--surface); border-color: var(--border); }
.button-secondary:hover { background: var(--muted); }
.load-more { width: 100%; margin-top: 18px; }
.collection-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-radius: 12px; border: 1px dashed var(--border); background: var(--banner-background); }
.collection-banner p { display: flex; align-items: baseline; gap: 9px; margin-top: 10px; font-size: 13px; color: var(--muted-foreground); }
.collection-banner strong { color: var(--primary); font-family: var(--code-font); font-size: 42px; font-weight: 500; letter-spacing: -2px; }
.collection-symbol { display: flex; width: 62px; height: 62px; flex-shrink: 0; justify-content: center; align-items: center; border: 1px dotted var(--border); background: var(--surface); color: var(--primary); border-radius: 50%; }
.collection-symbol svg { width: 25px; height: 31px; }
.count-pill { padding: 3px 7px; color: var(--primary); background: var(--accent-soft); border-radius: 4px; font-family: var(--code-font); font-size: 10px; letter-spacing: 0; }
.topics-list { display: flex; flex-direction: column; gap: 10px; }
.topic-row { display: flex; align-items: center; gap: 14px; padding: 20px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.topic-icon { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px dashed var(--border); background: var(--surface); border-radius: 8px; color: var(--primary); }
.topic-row:nth-child(even) .topic-icon { color: var(--primary); }
.topic-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.topic-row-copy { flex: 1; min-width: 0; }
.topic-row h3 { font-size: 15px; line-height: 1.5; font-weight: 600; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.topic-row p { margin-top: 5px; font-size: 10px; color: var(--muted-foreground); }
.topic-state { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--neutral-strong); font-size: 9px; }
.topic-state::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.topic-state.is-paused { color: var(--muted-foreground); }
.info-note { display: flex; align-items: flex-start; gap: 10px; padding: 18px 2px; margin-top: 8px; color: var(--muted-foreground); }
.info-note-symbol { flex-shrink: 0; width: 16px; height: 16px; border: 1px solid var(--muted-foreground); border-radius: 50%; font-size: 10px; text-align: center; line-height: 15px; font-family: Georgia, serif; }
.info-note p { font-size: 11px; line-height: 1.7; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; background: var(--muted); }
.avatar-large { width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--border); font-size: 17px; }
.profile-card h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.profile-card p { margin-top: 5px; color: var(--muted-foreground); font-size: 10px; }
.profile-check { display: flex; width: 24px; height: 24px; flex-shrink: 0; justify-content: center; align-items: center; margin-left: auto; color: var(--primary); background: var(--surface); border: 1px dotted var(--border); border-radius: 50%; }
.profile-check svg { width: 16px; height: 16px; }
.settings-group { min-width: 0; margin: 27px 0 0; padding: 0; border: 0; }
.settings-group legend, .setting-label { padding: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.3px; }
.settings-description { margin-top: 7px; color: var(--muted-foreground); font-size: 11px; line-height: 1.65; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.mode-option { position: relative; display: flex; flex-direction: column; padding: 20px 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.mode-option:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.mode-option:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.mode-option:has(input:disabled) { opacity: 0.6; cursor: wait; }
.mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-illustration { position: relative; display: flex; width: 48px; height: 41px; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.mode-compact { height: 41px; padding: 8px; border: 1px solid var(--primary); border-radius: 5px; }
.mode-illustration i { display: block; height: 4px; background: var(--primary); opacity: 0.45; border-radius: 1px; }
.mode-compact i:last-child { width: 60%; }
.mode-separate i { height: 11px; border: 1px solid var(--primary); border-radius: 3px; background: transparent; opacity: 0.8; }
.mode-separate i::before { content: ""; display: block; width: 19px; height: 2px; margin: 3px 0 0 6px; background: var(--primary); opacity: 0.5; }
.mode-option-title { font-size: 12px; font-weight: 650; }
.mode-option-description { margin-top: 5px; max-width: 130px; color: var(--muted-foreground); font-size: 9px; line-height: 1.6; }
.radio-indicator { position: absolute; right: 12px; top: 13px; width: 15px; height: 15px; border: 1px solid var(--muted-foreground); border-radius: 50%; background: var(--surface); }
input:checked ~ .radio-indicator { border: 4px solid var(--primary); }
.delivery-group { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding-top: 23px; margin-top: 23px; border-top: 1px solid var(--border); }
.switch { display: flex; align-items: center; width: 44px; height: 26px; padding: 3px; border: 0; border-radius: 30px; background: var(--muted-foreground); flex-shrink: 0; }
.switch > span:first-child { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transform: translateX(0); transition: transform 0.25s ease-out; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] > span:first-child { transform: translateX(18px); background: var(--primary-foreground); }
.settings-footnote { margin-top: 19px; font-size: 10px; line-height: 1.75; color: var(--muted-foreground); }
.about-mark { margin-top: 38px; padding-top: 25px; text-align: center; border-top: 1px dotted var(--border); color: var(--muted-foreground); }
.about-logo { font-size: 20px; letter-spacing: -1px; font-weight: 550; }
.about-logo span { margin-left: 3px; color: var(--primary); font-size: 15px; }
.about-mark p { margin-top: 8px; font-size: 9px; }
.connection-state { display: flex; flex-direction: column; align-items: center; padding: 80px 0 36px; text-align: center; }
.connection-state h1 { margin-top: 12px; font-size: 27px; letter-spacing: -1px; font-weight: 600; }
.connection-state > p:not(.eyebrow) { max-width: 290px; margin-top: 13px; font-size: 13px; line-height: 1.8; color: var(--muted-foreground); }
.connection-state .button { margin-top: 24px; }
.connection-illustration { position: relative; display: flex; width: 92px; height: 92px; align-items: center; justify-content: center; margin-bottom: 26px; color: var(--primary); background: var(--banner-background); border: 1px solid var(--border); border-radius: 29px; }
.connection-cross { font-size: 57px; font-weight: 300; line-height: 1; }
.loading-ring { position: absolute; inset: -8px; border: 1px dashed var(--primary); border-radius: 35px; opacity: 0.3; animation: loading-orbit 12s linear infinite; }
.connection-state.is-static .loading-ring { animation: none; }
.list-status:empty { display: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 38px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 17px; text-align: center; }
.empty-symbol { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 18px; }
.empty-symbol svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; }
.empty-state p { max-width: 280px; margin-top: 9px; color: var(--muted-foreground); font-size: 12px; line-height: 1.75; }
.empty-state .button { margin-top: 20px; }
.inline-error { padding: 17px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--error-background); color: var(--error); }
.inline-error p { font-size: 12px; line-height: 1.7; }
.inline-error .text-button { margin-top: 6px; color: var(--error); }
.skeleton-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 17px; margin-bottom: 13px; }
.skeleton-line { height: 12px; margin-bottom: 10px; border-radius: 5px; background: var(--muted); animation: skeleton-pulse 1s ease-out infinite alternate; }
.skeleton-line:nth-child(1) { width: 31%; height: 21px; margin-bottom: 24px; }
.skeleton-line:nth-child(2) { width: 88%; height: 17px; }
.skeleton-line:nth-child(3) { width: 68%; height: 17px; margin-bottom: 20px; }
.skeleton-line:nth-child(4) { width: 100%; }
.skeleton-line:nth-child(5) { width: 75%; margin-bottom: 4px; }
.article-dialog { position: fixed; top: auto; bottom: 0; width: 100%; max-width: 840px; max-height: min(92dvh, 950px); margin: 0 auto; padding: 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--surface); color: var(--foreground); box-shadow: var(--dialog-shadow); }
.article-dialog[open] { display: flex; flex-direction: column; animation: enter-sheet 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.article-dialog::backdrop { background: var(--dialog-backdrop); backdrop-filter: blur(3px); }
.sheet-handle { flex-shrink: 0; align-self: center; margin-top: 10px; width: 34px; height: 4px; border-radius: 3px; background: var(--border); }
.sheet-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 18px 10px 24px; flex-shrink: 0; }
.sheet-topbar .eyebrow { font-size: 9px; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 10px 24px 20px; }
.sheet-scroll > .topic-label { max-width: 100%; }
.sheet-scroll h2 { margin-top: 18px; font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -0.9px; overflow-wrap: anywhere; }
.article-meta { margin-top: 16px; color: var(--muted-foreground); font-family: var(--code-font); font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.summary-heading { display: flex; align-items: center; gap: 7px; margin-top: 25px; padding-top: 22px; border-top: 1px dotted var(--border); color: var(--primary); font-family: var(--code-font); font-size: 11px; font-weight: 500; }
.summary-heading span { font-size: 16px; }
.full-summary { margin-top: 13px; color: var(--foreground); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.sheet-disclaimer { margin-top: 24px; color: var(--muted-foreground); font-size: 10px; line-height: 1.7; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px 24px calc(18px + var(--safe-bottom)); border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.sheet-actions .button { padding-left: 8px; padding-right: 8px; }
.sheet-actions .button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.original-link { grid-column: 1 / -1; padding: 6px 4px 2px; text-align: center; color: var(--muted-foreground); font-size: 10px; line-height: 1.6; }
.original-link:hover { color: var(--primary); text-decoration: underline; }
body:has(.article-dialog[open]) { overflow: hidden; }
.toast { position: fixed; z-index: 10; bottom: calc(89px + var(--safe-bottom)); left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 13px 18px; border: 1px solid var(--border); border-radius: 13px; transform: translateX(-50%); background: var(--foreground); color: var(--background); box-shadow: var(--shadow); font-size: 12px; line-height: 1.5; text-align: center; animation: enter-toast 0.3s ease-out; }
body:has(.article-dialog[open]) .toast { z-index: 20; }
.preview-banner { padding: 8px 16px; background: var(--muted); color: var(--muted-foreground); font-family: var(--code-font); font-size: 9px; line-height: 1.6; text-align: center; }
.noscript-message { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; padding: 30px; background: var(--background); color: var(--foreground); line-height: 1.8; text-align: center; }
@keyframes enter-page { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-sheet { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-toast { from { opacity: 0; } to { opacity: 1; } }
@keyframes skeleton-pulse { from { opacity: 0.5; } to { opacity: 1; } }
@keyframes loading-orbit { to { transform: rotate(360deg); } }
@media (min-width: 600px) {
  .app-header { margin-right: 48px; margin-left: 48px; padding-top: calc(26px + var(--safe-top)); padding-bottom: 20px; }
  main { padding-right: 48px; padding-left: 48px; }
  .page-intro { padding-top: 28px; padding-bottom: 24px; }
  .page-intro h1 { font-size: 44px; }
  .intro-description { max-width: 640px; font-size: 14px; }
  .knowledge-banner { padding: 18px 24px; min-height: 112px; }
  .knowledge-copy p { font-size: 21px; }
  .knowledge-art { width: 72px; height: 72px; }
  .banner-kicker, .eyebrow { font-size: 10px; }
  .banner-link { font-size: 11px; }
  .section-heading { margin-top: 30px; }
  .section-heading h2 { font-size: 21px; }
  .article-list { gap: 22px; }
  .article-card { padding: 27px 28px 0; }
  .article-card.is-featured { padding-top: 29px; }
  .article-title { max-width: 620px; font-size: 26px; }
  .article-card.is-featured .article-title { font-size: 29px; }
  .article-summary { max-width: 620px; font-size: 14px; }
  .topic-label, .article-date, .article-source, .section-meta { font-size: 10px; }
  .article-open { font-size: 12px; }
  .nav-item { font-size: 11px; }
  .nav-item svg { width: 23px; height: 23px; }
  .sheet-scroll { padding-right: 40px; padding-left: 40px; }
  .sheet-scroll h2 { font-size: 34px; }
  .sheet-topbar { padding-left: 40px; padding-right: 29px; }
  .sheet-actions { padding-right: 40px; padding-left: 40px; }
  .mode-option { padding: 24px; }
  .mode-option-title { font-size: 14px; }
  .mode-option-description { font-size: 11px; max-width: none; }
  .mode-options { gap: 14px; }
  .settings-description, .settings-footnote { font-size: 12px; }
}
@media (max-width: 350px) {
  main { padding-left: 18px; padding-right: 18px; }
  .app-header { margin-left: 18px; margin-right: 18px; }
  .wordmark { font-size: 26px; gap: 8px; }
  .wordmark-caption { font-size: 6px; letter-spacing: 0.65px; }
  .brand-symbol { width: 27px; height: 27px; }
  .page-intro h1 { font-size: 32px; }
  .knowledge-banner { padding: 16px; gap: 10px; }
  .knowledge-copy p { font-size: 16px; }
  .knowledge-art { width: 44px; height: 44px; }
  .banner-kicker { font-size: 8px; }
  .section-heading h2 { font-size: 16px; }
  .section-meta { max-width: 84px; font-size: 9px; }
  .article-card { padding-left: 17px; padding-right: 17px; }
  .article-title, .article-card.is-featured .article-title { font-size: 22px; }
  .article-source { font-size: 9px; }
  .article-date { font-size: 9px; }
  .nav-item { font-size: 9px; }
  .mode-option { padding: 17px 10px; }
  .mode-option-title { font-size: 11px; }
  .sheet-actions { padding-right: 18px; padding-left: 18px; }
  .sheet-actions .button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.theme-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-options .theme-option { min-width: 0; padding: 18px 10px 14px; }
.theme-illustration { width: 22px; height: 22px; margin-bottom: 15px; color: var(--muted-foreground); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-option:has(input:checked) .theme-illustration { color: var(--primary); }
.theme-option .radio-indicator { top: 12px; right: 10px; }
