/* AI Daily Lab — design tokens & components
   Theme: html[data-theme="light"|"dark"]; without it, follows the system. */

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --ink: #1C1917;
  --ink-2: #44403C;
  --ink-3: #6F6A64;
  --line: #E7E5E4;
  --line-strong: #D6D3D1;
  --accent: #C2410C;
  --accent-ink: #9A3412;
  --accent-soft: #FFF1E8;
  --accent-line: #FED7C3;
  --on-accent: #FFFFFF;
  --try-fg: #166534; --try-bg: #DCFCE7;
  --watch-fg: #1E40AF; --watch-bg: #DBEAFE;
  --know-fg: #44403C; --know-bg: #EFEDEB;
  --ok-fg: #166534; --ok-bg: #DCFCE7;
  --warn-fg: #854D0E; --warn-bg: #FEF3C7;
  --bad-fg: #991B1B; --bad-bg: #FEE2E2;
  --c-news: #C2410C; --c-opensource: #15803D; --c-tools: #1D4ED8;
  --c-ideas: #7C3AED; --c-practices: #0E7490; --c-research: #A16207; --c-skills: #BE185D; --c-kits: #4338CA;
  --bad-tint: #FEF2F2; --bad-line: #FECACA; --good-tint: #F0FDF4; --good-line: #BBF7D0;
  --term-bg: #1C1917; --term-ink: #E7E5E4; --term-ok: #86EFAC; --term-key: #FDBA74;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 4px 16px rgba(28, 25, 23, .06);
  --radius: 14px;
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 300ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-inout: cubic-bezier(.4, 0, .2, 1);
  --font-sans: Inter, "Inter Fallback", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1C1A19; --surface-2: #262422;
  --ink: #F5F5F4; --ink-2: #D6D3D1; --ink-3: #A8A29E;
  --line: #33302D; --line-strong: #44403C;
  --accent: #FB923C; --accent-ink: #FDBA74; --accent-soft: #3A2316; --accent-line: #7C2D12; --on-accent: #1C1917;
  --try-fg: #86EFAC; --try-bg: #14321F; --watch-fg: #93C5FD; --watch-bg: #172554; --know-fg: #D6D3D1; --know-bg: #2E2B29;
  --ok-fg: #86EFAC; --ok-bg: #14321F; --warn-fg: #FDE68A; --warn-bg: #3A2E0B; --bad-fg: #FCA5A5; --bad-bg: #3B1515;
  --c-news: #FB923C; --c-opensource: #4ADE80; --c-tools: #60A5FA; --c-ideas: #C4B5FD; --c-practices: #22D3EE; --c-research: #FACC15; --c-skills: #F9A8D4; --c-kits: #A5B4FC;
    --bad-tint: #2A1414; --bad-line: #5B2121; --good-tint: #12261A; --good-line: #1F4D2E;
  --term-bg: #0C0B0A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --surface: #1C1A19; --surface-2: #262422;
    --ink: #F5F5F4; --ink-2: #D6D3D1; --ink-3: #A8A29E;
    --line: #33302D; --line-strong: #44403C;
    --accent: #FB923C; --accent-ink: #FDBA74; --accent-soft: #3A2316; --accent-line: #7C2D12; --on-accent: #1C1917;
    --try-fg: #86EFAC; --try-bg: #14321F; --watch-fg: #93C5FD; --watch-bg: #172554; --know-fg: #D6D3D1; --know-bg: #2E2B29;
    --ok-fg: #86EFAC; --ok-bg: #14321F; --warn-fg: #FDE68A; --warn-bg: #3A2E0B; --bad-fg: #FCA5A5; --bad-bg: #3B1515;
    --c-news: #FB923C; --c-opensource: #4ADE80; --c-tools: #60A5FA; --c-ideas: #C4B5FD; --c-practices: #22D3EE; --c-research: #FACC15; --c-skills: #F9A8D4; --c-kits: #A5B4FC;
    --bad-tint: #2A1414; --bad-line: #5B2121; --good-tint: #12261A; --good-line: #1F4D2E;
    --term-bg: #0C0B0A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 var(--font-sans); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (prefers-reduced-motion: no-preference) {
  a, button, .item { transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1); }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { flex: none; }
.brand-mark { fill: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.header-spacer { flex: 1; }
.icon-btn { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon { display: none; }
:root[data-theme-pref="system"] .theme-icon.system,
:root[data-theme-pref="light"] .theme-icon.light,
:root[data-theme-pref="dark"] .theme-icon.dark { display: block; }
:root:not([data-theme-pref]) .theme-icon.system { display: block; }

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: var(--line-strong); color: var(--ink); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.05); }
.btn-ghost { border-color: transparent; background: none; color: var(--ink-3); padding: 0 6px; height: 30px; font-size: 13px; }
.btn-ghost:hover { color: var(--accent); }
.kbd { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.6; padding: 0 8px; border-radius: 999px; white-space: nowrap; }
.act-try { color: var(--try-fg); background: var(--try-bg); }
.act-watch { color: var(--watch-fg); background: var(--watch-bg); }
.act-know { color: var(--know-fg); background: var(--know-bg); }
.status-passed { color: var(--ok-fg); background: var(--ok-bg); }
.status-partial { color: var(--warn-fg); background: var(--warn-bg); }
.status-failed { color: var(--bad-fg); background: var(--bad-bg); }
.status-pending { color: var(--know-fg); background: var(--know-bg); }
.top-mark { font-size: 12px; font-weight: 700; color: var(--accent); }
.tags { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: inline-flex; flex-wrap: wrap; gap: 0 10px; }
.tag-link { color: var(--ink-3); background: none; border: 0; padding: 0; font: inherit; }
.tag-link:hover { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot-news { background: var(--c-news); } .dot-opensource { background: var(--c-opensource); } .dot-tools { background: var(--c-tools); }
.dot-ideas { background: var(--c-ideas); } .dot-practices { background: var(--c-practices); } .dot-research { background: var(--c-research); }
.dot-skills { background: var(--c-skills); }
.dot-kits { background: var(--c-kits); }
.dot-all { background: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel-title { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.panel-title small { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* ---------- three-column layout ---------- */
.layout { display: grid; grid-template-columns: 200px minmax(0, 680px) 280px; gap: 40px; justify-content: center; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.side-label { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 6px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 14px; text-align: left; }
.cat-btn:hover { background: var(--surface-2); color: var(--ink); }
.cat-btn[aria-pressed="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.cat-btn .count { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.check .count { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.keys { font-size: 13px; color: var(--ink-2); line-height: 2.1; }
.rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.no-js .js-only { display: none !important; }

@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .side { position: static; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
  .side-label, .side .keys-block { display: none; }
  .cat-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-btn { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .cat-btn[aria-pressed="true"] { box-shadow: none; border-color: var(--ink); }
  .cat-btn .count { margin-left: 2px; }
  .filters { display: flex; gap: 16px; }
  .filters .check .count { margin-left: 4px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .rail { position: static; }
  .side > div:first-child { width: 100%; min-width: 0; }
  .cat-list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .cat-btn { flex: none; min-height: 36px; }
  .header-inner { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; }
  .brand-text { display: none; }
  .js-help { display: none !important; }
  .icon-btn, .search-btn { width: 36px; height: 36px; }
  .filters { flex-wrap: wrap; gap: 4px 16px; }
  .check { white-space: nowrap; }
}

/* ---------- issue head ---------- */
.issue-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink-3); }
.issue-kicker .badge { background: var(--accent-soft); color: var(--accent-ink); }
.issue-kicker .spacer { flex: 1; }
.issue-kicker a { color: var(--ink-3); }
.issue-kicker a:hover { color: var(--accent); }
.issue-title { margin: 12px 0 0; font-family: var(--font-serif); font-size: 44px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.lede { margin: 16px 0 0; font-size: 17px; line-height: 1.85; color: var(--ink-2); }

.tldr { margin-top: 28px; }
.tldr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tldr-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.tldr-head .spacer { flex: 1; }
.tldr ol { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tldr li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: baseline; }
.tldr .num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; }
.tldr a { font-size: 16px; line-height: 1.6; }
.hands-on { margin-top: 16px; }
.hands-on > ol { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.hands-on > ol > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.hands-on > ol > li > .badge { margin-top: 3px; }
.hands-on-title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.hands-on-reason { margin: 4px 0 0; color: var(--ink-2); line-height: 1.6; }
.hands-on-steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
@media (max-width: 560px) { .hands-on > ol > li { grid-template-columns: 1fr; gap: 6px; } .hands-on > ol > li > .badge { justify-self: start; } }

/* ---------- toolbar ---------- */
.toolbar { position: sticky; top: 64px; z-index: 10; margin-top: 28px; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.toolbar .status { font-size: 13px; color: var(--ink-3); }
.toolbar .spacer { flex: 1; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.active-filter button { border: 0; background: none; color: inherit; width: 22px; height: 22px; border-radius: 50%; }
.active-filter button:hover { background: var(--accent-line); }

/* ---------- items ---------- */
.group { margin-top: 32px; }
.group-title { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.group-title .count { font-weight: 500; color: var(--ink-3); }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.item.is-focused { margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 12px; border-bottom-color: transparent; background: var(--surface); box-shadow: 0 0 0 1px var(--accent-line); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.exp-mark { font-size: 12px; font-weight: 600; color: var(--ok-fg); }
.item-title { margin: 8px 0 0; font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: -.005em; }
.item-summary { margin: 6px 0 0; color: var(--ink-2); }
.item-full { margin-top: 10px; }
.points { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.why { margin: 12px 0 0; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.why b { color: var(--ink); margin-right: 8px; }
.item-foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.item-foot .spacer { flex: 1; }
.item-foot a { color: var(--ink-3); }
.item-foot a:hover { color: var(--accent); }

.feed[data-density="title"] .item-summary,
.feed[data-density="title"] .item-full,
.feed[data-density="title"] .item-foot { display: none; }
.feed[data-density="title"] .item { padding: 12px 0; }
.feed[data-density="title"] .item-title { margin-top: 6px; font-size: 16px; font-weight: 600; }
.feed[data-density="summary"] .item-full { display: none; }
.feed .item.is-expanded .item-summary, .feed .item.is-expanded .item-foot { display: block; }
.feed .item.is-expanded .item-foot { display: flex; }
.feed .item.is-expanded .item-full { display: block; }
.feed[data-density="title"] .item.is-expanded .item-title { font-size: 19px; font-weight: 700; }
.empty { margin-top: 40px; color: var(--ink-3); }

/* ---------- Skill 精选 ---------- */
.kit-strip { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.kit-kind { font-size: 12px; font-weight: 700; color: var(--c-kits); border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; }
.kit-name { font-family: var(--font-mono); font-weight: 600; }
.kit-ver { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 0 6px; }
.kit-compat { color: var(--ink-3); }
.kit-caps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.feed[data-density="title"] .kit-strip, .feed[data-density="title"] .kit-caps { display: none; }
.feed .item.is-expanded .kit-strip { display: flex; }
.feed .item.is-expanded .kit-caps { display: flex; }
.kit-panel { margin-top: 28px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kit-head .kit-name { font-size: 17px; }
.kit-repo { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.kit-panel .kit-compat { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.kit-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.kit-panel h3 { margin: 0 0 6px; font-size: 14px; }
.kit-panel ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kit-changes { margin-top: 16px; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; }
.kit-install { margin-top: 16px; }
.kit-install-head { display: flex; align-items: center; justify-content: space-between; }
.kit-install .terminal { margin-top: 8px; border-radius: 10px; border-top: 0; white-space: pre-wrap; }
@media (max-width: 640px) { .kit-grid { grid-template-columns: 1fr; } }

/* ---------- AI 软技能 contrast ---------- */
.contrast { margin-top: 12px; }
.contrast-scenario { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.contrast-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contrast-bad, .contrast-good { border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.contrast-bad { background: var(--bad-tint); border: 1px solid var(--bad-line); }
.contrast-good { background: var(--good-tint); border: 1px solid var(--good-line); }
.contrast-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.contrast-bad .contrast-label { color: var(--bad-fg); }
.contrast-good .contrast-label { color: var(--ok-fg); }
.contrast-bad .contrast-label::before { content: "✕"; margin-right: 6px; }
.contrast-good .contrast-label::before { content: "✓"; margin-right: 6px; }
.contrast-label { justify-content: flex-start; }
.contrast-label .btn { margin-left: auto; }
.contrast p { margin: 0; white-space: pre-line; color: var(--ink); }
.contrast-detail .contrast-bad, .contrast-detail .contrast-good { padding: 14px 18px; font-size: 15px; }
.contrast-why { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.contrast-practice { margin: 14px 0 0; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 14px; }
.contrast-practice b { margin-right: 8px; }
.contrast-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.feed[data-density="title"] .item-contrast { display: none; }
.feed .item.is-expanded .item-contrast { display: block; }
@media (max-width: 640px) { .contrast-pair { grid-template-columns: 1fr; } }

/* ---------- rail ---------- */
.rail-exp { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rail-exp strong { line-height: 1.5; }
.rail-exp + .rail-exp { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-stats { margin: 12px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.mini-stats dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mini-stats dd { margin: 0; text-align: right; color: var(--ink-3); }
.tag-cloud { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- item page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); padding-top: 28px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.detail { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 48px; justify-content: center; padding: 20px 0 80px; align-items: start; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink-3); }
.detail-cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.detail h1 { margin: 14px 0 0; font-family: var(--font-serif); font-size: 36px; line-height: 1.3; font-weight: 700; }
.actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.detail .lead { margin: 28px 0 0; font-size: 18px; line-height: 1.85; color: var(--ink); }
.detail article h2 { margin: 40px 0 12px; font-size: 18px; font-weight: 700; }
.detail .points { color: var(--ink); gap: 8px; }
.why-panel { margin-top: 24px; padding: 16px 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; }
.why-panel .label { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.why-panel p { margin: 6px 0 0; }
.exp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exp-card-head { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.exp-card-head .title { font-size: 17px; font-weight: 700; }
.exp-card-head p { margin: 0; color: var(--ink-2); }
.terminal { margin: 0; border-top: 1px solid var(--line); background: var(--term-bg); color: var(--term-ink); padding: 16px 20px; font: 13px/1.75 var(--font-mono); overflow-x: auto; white-space: pre; }
.terminal .ok { color: var(--term-ok); }
.terminal .key { color: var(--term-key); }
.exp-card-foot { padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; border-top: 1px solid var(--line); }
.exp-card-foot code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; }
.exp-card-foot .spacer { flex: 1; }
.exp-card-foot .more { font-size: 14px; font-weight: 600; color: var(--accent); }
.sources { border-top: 1px solid var(--line); }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.source .name { font-weight: 600; }
.source .where { font-size: 13px; color: var(--ink-3); }
.kind { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 6px; }
.kind-primary { color: var(--ok-fg); background: var(--ok-bg); }
.kind-secondary { color: var(--watch-fg); background: var(--watch-bg); }
.kind-discussion { color: var(--know-fg); background: var(--know-bg); }
.rel-list { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.rel-list a { display: flex; flex-direction: column; font-size: 14px; line-height: 1.55; }
.rel-list .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a { display: flex; flex-direction: column; max-width: 48%; }
.pager .dir { font-size: 12px; color: var(--ink-3); }
.pager .next { text-align: right; margin-left: auto; }
@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .issue-title { font-size: 32px; }
  .detail h1 { font-size: 26px; }
  .lede, .detail .lead { font-size: 16px; }
}

/* ---------- archive / experiments ---------- */
.page-head { padding-top: 40px; }
.page-head h1 { margin: 8px 0 0; font-family: var(--font-serif); font-size: 36px; line-height: 1.25; }
.page-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 720px; }
.narrow { max-width: 880px; margin: 0 auto; padding-bottom: 80px; }
.archive { list-style: none; padding: 0; margin: 24px 0 0; }
.archive > li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.archive .date { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.archive .date small { display: block; font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.archive ol { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.archive p { margin: 0; }
.exp-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.exp-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.exp-tile:hover { border-color: var(--accent); color: inherit; box-shadow: var(--shadow); }
.exp-tile strong { line-height: 1.5; }
.exp-tile .sub { font-size: 13px; color: var(--ink-3); }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.prose { margin-top: 28px; overflow-wrap: anywhere; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: var(--surface-2); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 4px 10px; }
.code-file { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.code-file summary { cursor: pointer; padding: 10px 16px; font-family: var(--font-mono); font-size: 13px; display: flex; align-items: center; gap: 12px; }
.code-file summary .spacer { flex: 1; }
.code-file .highlight { background: none !important; }
.code-file .highlight pre { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); font: 13px/1.65 var(--font-mono); overflow-x: auto; }
details.more-out { margin-top: 10px; }
details.more-out summary { cursor: pointer; color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) {
  .archive > li { grid-template-columns: 1fr; gap: 6px; }
  .page-head h1 { font-size: 28px; }
}

/* ---------- phase 2: search, saved, read, tags, calendar ---------- */
.search-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; width: 280px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-3); font-size: 14px; }
.search-btn:hover { border-color: var(--line-strong); color: var(--ink-2); }
.search-btn svg { width: 16px; height: 16px; flex: none; }
.search-btn .search-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-link { position: relative; }
.saved-link[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.saved-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 1100px) { .search-btn { width: 40px; padding: 0; justify-content: center; } .search-btn .search-label, .search-btn .search-kbd { display: none; } }

.read-mark { font-size: 12px; color: var(--ink-3); }
.item.is-read .item-title a { color: var(--ink-3); font-weight: 600; }
.item.is-read .item-title a:hover { color: var(--accent); }
.js-save[aria-pressed="true"] { color: var(--accent); }
.js-save[aria-pressed="true"] svg { fill: currentColor; }
.btn.js-save[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.rail-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.item.compact { padding: 14px 0; }
.item.compact .item-title { font-size: 17px; margin-top: 6px; }
.item.compact .item-summary { font-size: 14px; }
.group-title a { color: inherit; }

dialog.palette { padding: 0; border: 0; background: none; width: min(640px, calc(100% - 24px)); max-height: none; margin: 12vh auto auto; overflow: visible; }
dialog.palette::backdrop { background: rgba(0, 0, 0, .35); }
.palette-box { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow), 0 24px 64px rgba(0, 0, 0, .18); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.palette-input input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: none; color: var(--ink); font: 16px var(--font-sans); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-results { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .06em; }
.palette-opt { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.palette-opt[aria-selected="true"] { background: var(--accent-soft); }
.palette-opt .po-main { flex: 1; min-width: 0; }
.palette-opt .po-title { display: block; font-size: 15px; line-height: 1.5; }
.palette-opt .po-sub { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-opt .po-side { font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-top: 3px; }
.palette-opt mark { background: none; color: var(--accent); font-weight: 600; }
.palette-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.palette-foot .js-palette-count { margin-left: auto; }

.tag-index { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tag-tile { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tag-tile:hover { border-color: var(--accent); color: inherit; }
.tag-name { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.tag-count { font-weight: 700; color: var(--ink-2); }
.tag-bar { grid-column: 1 / -1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.tag-bar span { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--accent); border-radius: 2px; }
.tag-latest { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-trend { margin-top: 24px; }
.trend-bars { margin-top: 12px; display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.trend-col { flex: 1 1 0; max-width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; color: var(--ink-3); }
.trend-bar { width: 100%; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.trend-col:hover .trend-bar { opacity: 1; }
.trend-val { font-size: 12px; color: var(--ink-2); }
.trend-label { font-size: 11px; font-family: var(--font-mono); }
.co-tags { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.month { margin-top: 28px; }
.month-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 12px; }
.month-title .muted { font-size: 13px; font-weight: 400; }
.cal { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { font-size: 12px; color: var(--ink-3); text-align: center; }
.cal-cell { min-height: 96px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; color: var(--ink-3); overflow: hidden; }
.cal-cell.is-blank { background: none; }
.cal-cell.has-issue { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.cal-cell.has-issue:hover { border-color: var(--accent); }
.cal-day { font-family: var(--font-serif); font-weight: 700; font-size: 16px; }
.cal-count { font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.cal-top { font-size: 12px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  .cal-cell { min-height: 52px; padding: 6px; }
  .cal-top, .cal-count { display: none; }
  .cal-cell.has-issue::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: auto; }
  .search-btn { display: inline-flex; }
}

.saved-group { margin-top: 28px; }
.saved-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved-row .main { flex: 1; min-width: 0; }
.saved-row .title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.saved-row .sub { font-size: 13px; color: var(--ink-3); }

/* ---------- category & skill-area icons ---------- */
.cat-ic { display: inline-flex; flex: none; }
.cat-ic .ic { display: block; }
.c-news { color: var(--c-news); } .c-opensource { color: var(--c-opensource); } .c-tools { color: var(--c-tools); }
.c-kits { color: var(--c-kits); } .c-ideas { color: var(--c-ideas); } .c-practices { color: var(--c-practices); }
.c-skills { color: var(--c-skills); } .c-research { color: var(--c-research); }
.cat-btn .cat-ic { margin: -2px 0; }
.area-badge { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 1px 8px 1px 6px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--c-skills); background: var(--surface-2); border: 1px solid var(--line); vertical-align: 2px; letter-spacing: 0; }
h2 .area-badge { margin: 0 0 0 10px; }

/* ---------- structure figures (item.figure) ---------- */
.fig { margin: 18px 0 6px; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fig-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.fig-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.item-figure .fig { margin: 12px 0 4px; }
.feed[data-density="title"] .item-figure { display: none; }
.fig-flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 28px; }
.fig-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.fig-step b { font-size: 15px; color: var(--accent-ink); overflow-wrap: anywhere; }
.fig-step .fig-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.fig-sub { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.fig-step + .fig-step::before { content: ""; position: absolute; left: -22px; top: 50%; width: 16px; height: 2px; background: var(--line-strong); }
.fig-step + .fig-step::after { content: ""; position: absolute; left: -11px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 6px solid var(--line-strong); border-right: 0; }
.fig-loop { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 6px 10px;
  border: 1.5px dashed var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; font-size: 13px; color: var(--ink-2); }
.fig-loop .ic { color: var(--accent); flex: none; }
.fig-base { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.fig-base b { font-size: 14px; }
@media (max-width: 640px) {
  .fig { padding: 14px 14px 12px; }
  .fig-flow { flex-direction: column; gap: 18px; }
  .fig-step + .fig-step::before { left: 50%; top: -14px; width: 2px; height: 10px; }
  .fig-step + .fig-step::after { left: calc(50% - 4px); top: -6px; border: 5px solid transparent; border-top: 6px solid var(--line-strong); border-bottom: 0; }
  .fig-loop { border: 1.5px dashed var(--line-strong); border-radius: 10px; }
}
.fig-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 0 12px; font-size: 12px; color: var(--ink-2); }
.fig-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fig-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fig-sw.s0, .fig-bar.s0 { background: var(--line-strong); }
.fig-sw.s1, .fig-bar.s1 { background: var(--accent); }
.fig-rows { display: flex; flex-direction: column; gap: 12px; }
.fig-row { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; }
.fig-label { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.fig-track { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fig-bar { position: relative; display: block; height: 14px; width: var(--w); border-radius: 0 4px 4px 0; }
.fig-bar em { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px;
  font-family: var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.fig-bar.s1 em { color: var(--accent-ink); font-weight: 600; }
.fig-track { padding-right: 64px; }
.fig-delta { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--try-fg); text-align: right; }
@media (max-width: 640px) {
  .fig-row { grid-template-columns: minmax(0, 1fr) 52px; row-gap: 4px; }
  .fig-label { grid-column: 1 / -1; }
}

/* ---------- share card dialog ---------- */
dialog.share { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  width: min(460px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.share::backdrop { background: rgba(0, 0, 0, .45); }
.share-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.share-head h2 { margin: 0; font-size: 17px; }
.share-head .muted { font-size: 13px; }
.share-preview { position: relative; aspect-ratio: 1080 / 1350; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.share-preview img { display: block; width: 100%; height: 100%; }
.share-preview img:not([src]) { visibility: hidden; }
.share-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-3); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.share-actions form { margin: 0; }

/* ---------- issue cover (bubble cluster) ---------- */
.cover { display: block; overflow: visible; }
.cv { opacity: .9; }
.cv-news { fill: var(--c-news); } .cv-opensource { fill: var(--c-opensource); } .cv-tools { fill: var(--c-tools); }
.cv-kits { fill: var(--c-kits); } .cv-ideas { fill: var(--c-ideas); } .cv-practices { fill: var(--c-practices); }
.cv-skills { fill: var(--c-skills); } .cv-research { fill: var(--c-research); }
.cv-link .cv { transition: opacity var(--dur-1), stroke-width var(--dur-1); stroke: var(--bg); stroke-width: 0; }
.cv-link:hover .cv, .cv-link:focus-visible .cv { opacity: 1; stroke-width: 1.6; }
.issue-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
.issue-cover { margin-bottom: -6px; }
.archive-cover { display: block; margin-bottom: 8px; }
.archive-cover .cover { width: 64px; height: 64px; }
@media (max-width: 640px) {
  .issue-head { grid-template-columns: minmax(0, 1fr) 84px; gap: 8px 12px; }
  .issue-cover .cover { width: 84px; height: 84px; }
  .issue-head .issue-kicker { grid-column: 1 / -1; }
}

/* ---------- experiment results (parsed from real output) ---------- */
.viz { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.viz .fig { margin: 0; }
.viz-label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.viz-result { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.viz-result p { margin: 4px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.viz-checks { padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.viz-checks-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.viz-checks-head strong { font-size: 14px; }
.viz-meter { display: inline-flex; gap: 3px; }
.viz-meter i { width: 14px; height: 8px; border-radius: 2px; background: var(--ok-fg); }
.viz-meter i.bad { background: var(--bad-fg); }
.viz-checks ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.viz-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.viz-checks li.ok span { color: var(--ok-fg); font-weight: 700; }
.viz-checks li.bad span { color: var(--bad-fg); font-weight: 700; }
.viz-checks li.bad { color: var(--ink); }
.viz-note { margin: 0; font-size: 12px; color: var(--ink-3); }
.viz-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok-fg); }
.viz-pill.is-bad { color: var(--bad-fg); }
.viz-pill .viz-meter i { width: 8px; height: 8px; }
.viz-inline { margin: 6px 0 0 !important; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.viz-inline b { margin-right: 8px; color: var(--accent-ink); }
.exp-overview { margin: 24px 0 20px; }
.exp-ov-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.exp-ov-bar span, .exp-ov-stats i { display: block; }
.seg-passed { background: var(--ok-fg); } .seg-partial { background: var(--warn-fg); } .seg-failed { background: var(--bad-fg); } .seg-pending { background: var(--line-strong); }
.exp-ov-stats { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.exp-ov-stats dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.exp-ov-stats dt i { width: 8px; height: 8px; border-radius: 2px; }
.exp-ov-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-family: var(--font-serif); }
.exp-ov-stats dd small { margin-left: 4px; font-size: 12px; font-weight: 400; font-family: var(--font-sans); color: var(--ink-3); }
.exp-tile-result { font-size: 13px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ---------- followed tags, practice log, weekly quiz ---------- */
.tag-link.is-follow { color: var(--accent-ink); font-weight: 600; }
.tag-link.is-follow::after { content: "★"; margin-left: 2px; font-size: .85em; }
.item.is-followed { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
.item.is-followed.is-focused { box-shadow: 0 0 0 1px var(--accent-line), inset 3px 0 0 var(--accent); }
.btn.js-follow[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.btn.js-follow[aria-pressed="true"] svg { fill: currentColor; }
.followed { margin-bottom: 20px; }
.followed .tag-cloud { margin-top: 12px; }
.chip-follow { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; }
.chip-follow a { color: inherit; }
.chip-follow button { border: 0; background: none; color: var(--ink-3); font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.chip-follow button:hover { color: var(--bad-fg); background: var(--surface-2); }
.mine { margin-top: 48px; }
.mine .tag-cloud { margin-top: 12px; }
.mine .month-title .muted { margin-left: 10px; font-size: 13px; font-weight: 400; }

.practice { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn.js-practice[aria-pressed="true"] { border-color: color-mix(in srgb, var(--try-fg) 35%, transparent); background: var(--try-bg); color: var(--try-fg); }
.practice-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.practice-area { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid transparent; opacity: .55; }
.practice-area small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.practice-area.is-current { border-color: var(--line-strong); opacity: .85; }
.practice-area.is-practiced { opacity: 1; color: var(--c-skills); background: color-mix(in srgb, var(--c-skills) 12%, var(--surface)); }
.practice-sum { font-size: 13px; color: var(--ink-3); }
.practice-areas-lg { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.practice-areas-lg .practice-area { width: auto; height: auto; padding: 12px; justify-content: flex-start; gap: 8px; opacity: .6; border-radius: 12px; position: static; }
.practice-areas-lg .practice-area small { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; color: var(--ink-2); }
.practice-areas-lg .practice-area b { margin-left: auto; font-size: 12px; }
.practice-areas-lg .practice-area.is-practiced { opacity: 1; }
.practice-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.practice-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.practice-list a { color: var(--ink); }
.practice-list .muted { font-size: 12px; }

.wk-h small { margin-left: 10px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.quiz { display: flex; flex-direction: column; gap: 14px; }
.quiz-q { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.quiz-q legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; display: flex; gap: 10px; font-weight: 600; line-height: 1.6; }
.quiz-q legend + * { clear: both; }
.quiz-n { flex: none; font-family: var(--font-serif); font-size: 20px; line-height: 1.3; color: var(--accent); }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.quiz-opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-key { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--surface-2); }
.quiz-q.is-answered .quiz-opt { cursor: default; }
.quiz-q.is-answered .quiz-opt:hover { background: none; border-color: var(--line); }
.quiz-opt.is-right, .quiz-q.is-answered .quiz-opt.is-right:hover { border-color: color-mix(in srgb, var(--try-fg) 45%, transparent); background: var(--try-bg); }
.quiz-opt.is-right .quiz-key { background: var(--try-fg); color: var(--surface); }
.quiz-opt.is-wrong, .quiz-q.is-answered .quiz-opt.is-wrong:hover { border-color: var(--bad-line); background: var(--bad-tint); }
.quiz-opt.is-wrong .quiz-key { background: var(--bad-fg); color: var(--surface); }
.quiz-ans { margin-top: 10px; font-size: 14px; }
.quiz-ans summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.quiz-ans p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.7; }
.quiz-ans b { margin-right: 8px; color: var(--ink); }
.quiz-ans a { display: block; margin-top: 4px; font-size: 13px; }
.quiz.is-live .quiz-ans summary { display: none; }
.quiz.is-live .quiz-ans:not([open]) { display: none; }
.quiz-foot { display: flex; align-items: center; gap: 12px; min-height: 32px; }

/* ---------- weekly banner & index ---------- */
.wk-banner { position: relative; margin-bottom: 20px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.wk-banner-link { display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 16px; color: var(--ink); }
.wk-banner-link:hover { color: var(--ink); }
.wk-banner .badge { flex: none; background: var(--surface); color: var(--accent-ink); }
.wk-banner-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.wk-banner-text strong { font-size: 15px; line-height: 1.5; }
.wk-banner-text .muted { font-size: 12px; }
.wk-banner-go { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.wk-banner-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; }
.wk-banner-x:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 640px) {
  .wk-banner-link { flex-wrap: wrap; gap: 6px 10px; }
  .wk-banner-go { display: none; }
  .wk-banner-text { flex-basis: 100%; }
}
.wk-latest { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding: 22px 24px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.wk-latest:hover { color: var(--ink); box-shadow: var(--shadow); }
.wk-latest-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.35; }
.wk-latest p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.wk-latest-themes { margin: 4px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-weight: 500; }
.wk-latest .muted { font-size: 13px; }

/* ---------- weekly report ---------- */
.wk-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.wk .actions { margin-top: 18px; }
.wk-overview { margin-top: 28px; }
.wk-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wk-stats div { min-width: 0; }
.wk-stats dt { font-size: 12px; color: var(--ink-3); }
.wk-stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 700; font-family: var(--font-serif); line-height: 1.2; }
.wk-stats dd small { margin-left: 4px; font-size: 12px; font-weight: 400; font-family: var(--font-sans); color: var(--ink-3); }
.wk-days { margin-top: 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.wk-dots { display: flex; flex-wrap: wrap-reverse; align-items: center; align-content: flex-start; justify-content: center; gap: 4px; width: 100%; max-width: 76px; min-height: 40px; }
.wk-dot { display: block; border-radius: 50%; width: 8px; height: 8px; }
.wk-dot.imp-3 { width: 11px; height: 11px; } .wk-dot.imp-4 { width: 14px; height: 14px; } .wk-dot.imp-5 { width: 17px; height: 17px; }
.wk-day-label { display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 2px solid var(--line); padding-top: 6px; width: 100%; text-align: center; }
.wk-day-label small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.wk-day.is-empty .wk-day-label { color: var(--ink-3); font-weight: 400; }
a.wk-day-label:hover { color: var(--accent); border-top-color: var(--accent); }
.wk-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-2); }
.wk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wk-h { margin: 40px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.wk-themes { display: flex; flex-direction: column; gap: 14px; }
.wk-theme { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wk-theme-n { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.wk-theme h3 { margin: 0; font-size: 18px; line-height: 1.45; }
.wk-theme p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.8; }
.wk-refs { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.wk-refs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.wk-refs .cat-ic { align-self: center; }
.wk-refs a { color: var(--ink); }
.wk-refs .muted { font-size: 12px; font-family: var(--font-mono); }
.wk-picks { margin: 0; padding: 0; list-style: none; counter-reset: pk; display: flex; flex-direction: column; }
.wk-picks li { counter-increment: pk; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.wk-picks li::before { content: counter(pk); position: absolute; left: 0; top: 12px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--accent); }
.wk-picks a { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.wk-picks p { margin: 4px 0 6px; color: var(--ink-2); }
.wk-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.wk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wk-list li { display: flex; gap: 12px; align-items: baseline; }
.wk-list li .badge { flex: none; }
.wk-list a { font-weight: 600; color: var(--ink); }
.wk-list p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.wk-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wk-mini { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.wk-mini li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.wk-mini li .muted { flex-basis: 100%; font-size: 12px; }
.wk-mini a { color: var(--ink); }
.wk-mini .area-badge { margin-right: 0; }
.wk-grid .tag-cloud { margin-top: 12px; }
.wk-up { margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--try-fg); }
.wk-eye { color: var(--accent); font-weight: 700; }
.wk-from { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; }
.wk-from a { font-weight: 400; color: var(--ink-3); }
.wk-foot { margin: 40px 0 0; font-size: 13px; }
.wk-archive { margin-top: 24px; }
.wk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wk-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.wk-card:hover { border-color: var(--accent-line); }
.wk-card-kicker { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.wk-card strong { line-height: 1.5; }
.wk-card .muted { font-size: 12px; }
.rail-weekly { display: flex; flex-direction: column; gap: 8px; color: var(--ink); background: var(--accent-soft); border-color: var(--accent-line); }
.rail-weekly .badge { align-self: flex-start; background: var(--surface); color: var(--accent-ink); }
.rail-weekly strong { line-height: 1.5; }
.rail-weekly .muted { font-size: 13px; }
@media (max-width: 640px) {
  .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-grid { grid-template-columns: 1fr; }
  .wk-theme { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .wk-refs li { grid-template-columns: auto minmax(0, 1fr); }
  .wk-refs .muted { display: none; }
}

/* ---------- motion & stability ----------
   Durations: --dur-1 press/hover, --dur-2 in-page changes, --dur-3 page-level. Exits are faster than entrances.
   Only transform/opacity animate. Reduced motion: no movement, cross-fades only. */
@font-face {   /* metric-matched stand-in for Inter while the web font loads, so text does not jump on swap */
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%;
}
.item, .group, .detail h2, .sources, [id] { scroll-margin-top: 88px; }
.feed .item, .feed .group { scroll-margin-top: 140px; }

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(*) { animation-duration: var(--dur-3); animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation-duration: var(--dur-2); animation-timing-function: var(--ease-in); }
::view-transition-new(root) { animation-duration: var(--dur-3); }
:root.vt-local::view-transition-group(*) { animation-duration: var(--dur-2); }
:root.vt-local::view-transition-old(*) { animation-duration: var(--dur-1); animation-timing-function: var(--ease-in); }
::view-transition-group(vt-title) { animation-timing-function: var(--ease-inout); }
::view-transition-old(vt-title), ::view-transition-new(vt-title) { height: 100%; object-fit: none; object-position: left top; }
::view-transition-group(site-header) { animation: none; z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* button feedback: icon turns into a check for a moment */
.btn.is-done, .btn-ghost.is-done { color: var(--try-fg); border-color: color-mix(in srgb, var(--try-fg) 35%, transparent); }
.is-done > svg:first-child { visibility: hidden; }
.is-done { position: relative; }
.is-done::before { content: ""; position: absolute; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn.is-done::before { left: 14px; top: calc(50% - 7.5px); }
.btn-sm.is-done::before { left: 12px; }
.btn-ghost.is-done::before { left: 6px; top: calc(50% - 7.5px); }
@media (prefers-reduced-motion: no-preference) {
  .is-done::before { animation: done-in var(--dur-2) var(--ease-out); }
  .is-popped svg { animation: pop var(--dur-3) var(--ease-out); }
  .btn:active, .cat-btn:active, .chip:active, .icon-btn:active { transform: scale(.97); transition: transform var(--dur-1); }
}
@keyframes done-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- footer, toast, dialog ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-3); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity .18s, transform .18s; } }
dialog.help { border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); max-width: 420px; width: calc(100% - 32px); }
dialog.help::backdrop { background: rgba(0, 0, 0, .35); }
dialog.help h2 { margin: 0 0 12px; font-size: 17px; }
dialog.help dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; align-items: center; }
dialog.help dd { margin: 0; color: var(--ink-2); }
dialog.help .close { margin-top: 20px; }

@media print {
  .site-header, .side, .rail, .toolbar, dialog.palette, .actions, .item-foot, .site-footer, .toast { display: none !important; }
  .layout, .detail { display: block; }
  .feed .item-summary, .feed .item-full { display: block !important; }
  body { background: #fff; color: #000; }
}

@media (max-width: 860px) { .search-btn { width: 36px; height: 36px; } }
@media (max-width: 400px) {
  .brand { display: none; }
  .nav a { padding: 8px 6px; font-size: 14px; }
  .header-inner { gap: 4px; }
}
@media (max-width: 360px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 4px; font-size: 13.5px; }
  .icon-btn, .search-btn { width: 34px; height: 34px; }
  .header-inner { gap: 3px; }
}

/* pygments */
pre { line-height: 125%; }
td.linenos .normal { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #666666; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #f0f0f0; }
.highlight .c { color: #60A0B0; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #F00 } /* Error */
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
.highlight .o { color: #666 } /* Operator */
.highlight .ch { color: #60A0B0; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #60A0B0; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #007020 } /* Comment.Preproc */
.highlight .cpf { color: #60A0B0; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #60A0B0; font-style: italic } /* Comment.Single */
.highlight .cs { color: #60A0B0; background-color: #FFF0F0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #F00 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888 } /* Generic.Output */
.highlight .gp { color: #C65D09; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #04D } /* Generic.Traceback */
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #007020 } /* Keyword.Pseudo */
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #902000 } /* Keyword.Type */
.highlight .m { color: #40A070 } /* Literal.Number */
.highlight .s { color: #4070A0 } /* Literal.String */
.highlight .na { color: #4070A0 } /* Name.Attribute */
.highlight .nb { color: #007020 } /* Name.Builtin */
.highlight .nc { color: #0E84B5; font-weight: bold } /* Name.Class */
.highlight .no { color: #60ADD5 } /* Name.Constant */
.highlight .nd { color: #555; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #D55537; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #007020 } /* Name.Exception */
.highlight .nf { color: #06287E } /* Name.Function */
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
.highlight .nn { color: #0E84B5; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #BB60D5 } /* Name.Variable */
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
.highlight .w { color: #BBB } /* Text.Whitespace */
.highlight .mb { color: #40A070 } /* Literal.Number.Bin */
.highlight .mf { color: #40A070 } /* Literal.Number.Float */
.highlight .mh { color: #40A070 } /* Literal.Number.Hex */
.highlight .mi { color: #40A070 } /* Literal.Number.Integer */
.highlight .mo { color: #40A070 } /* Literal.Number.Oct */
.highlight .sa { color: #4070A0 } /* Literal.String.Affix */
.highlight .sb { color: #4070A0 } /* Literal.String.Backtick */
.highlight .sc { color: #4070A0 } /* Literal.String.Char */
.highlight .dl { color: #4070A0 } /* Literal.String.Delimiter */
.highlight .sd { color: #4070A0; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #4070A0 } /* Literal.String.Double */
.highlight .se { color: #4070A0; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #4070A0 } /* Literal.String.Heredoc */
.highlight .si { color: #70A0D0; font-style: italic } /* Literal.String.Interpol */
.highlight .sx { color: #C65D09 } /* Literal.String.Other */
.highlight .sr { color: #235388 } /* Literal.String.Regex */
.highlight .s1 { color: #4070A0 } /* Literal.String.Single */
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #06287E } /* Name.Function.Magic */
.highlight .vc { color: #BB60D5 } /* Name.Variable.Class */
.highlight .vg { color: #BB60D5 } /* Name.Variable.Global */
.highlight .vi { color: #BB60D5 } /* Name.Variable.Instance */
.highlight .vm { color: #BB60D5 } /* Name.Variable.Magic */
.highlight .il { color: #40A070 } /* Literal.Number.Integer.Long */
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
:root[data-theme="dark"] .highlight .hll { background-color: #49483e }
:root[data-theme="dark"] .highlight { background: #272822; color: #F8F8F2 }
:root[data-theme="dark"] .highlight .c { color: #959077 } /* Comment */
:root[data-theme="dark"] .highlight .err { color: #ED007E; background-color: #1E0010 } /* Error */
:root[data-theme="dark"] .highlight .esc { color: #F8F8F2 } /* Escape */
:root[data-theme="dark"] .highlight .g { color: #F8F8F2 } /* Generic */
:root[data-theme="dark"] .highlight .k { color: #66D9EF } /* Keyword */
:root[data-theme="dark"] .highlight .l { color: #AE81FF } /* Literal */
:root[data-theme="dark"] .highlight .n { color: #F8F8F2 } /* Name */
:root[data-theme="dark"] .highlight .o { color: #FF4689 } /* Operator */
:root[data-theme="dark"] .highlight .x { color: #F8F8F2 } /* Other */
:root[data-theme="dark"] .highlight .p { color: #F8F8F2 } /* Punctuation */
:root[data-theme="dark"] .highlight .ch { color: #959077 } /* Comment.Hashbang */
:root[data-theme="dark"] .highlight .cm { color: #959077 } /* Comment.Multiline */
:root[data-theme="dark"] .highlight .cp { color: #959077 } /* Comment.Preproc */
:root[data-theme="dark"] .highlight .cpf { color: #959077 } /* Comment.PreprocFile */
:root[data-theme="dark"] .highlight .c1 { color: #959077 } /* Comment.Single */
:root[data-theme="dark"] .highlight .cs { color: #959077 } /* Comment.Special */
:root[data-theme="dark"] .highlight .gd { color: #FF4689 } /* Generic.Deleted */
:root[data-theme="dark"] .highlight .ge { color: #F8F8F2; font-style: italic } /* Generic.Emph */
:root[data-theme="dark"] .highlight .ges { color: #F8F8F2; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
:root[data-theme="dark"] .highlight .gr { color: #FF4689 } /* Generic.Error */
:root[data-theme="dark"] .highlight .gh { color: #F8F8F2 } /* Generic.Heading */
:root[data-theme="dark"] .highlight .gi { color: #A6E22E } /* Generic.Inserted */
:root[data-theme="dark"] .highlight .go { color: #66D9EF } /* Generic.Output */
:root[data-theme="dark"] .highlight .gp { color: #FF4689; font-weight: bold } /* Generic.Prompt */
:root[data-theme="dark"] .highlight .gs { color: #F8F8F2; font-weight: bold } /* Generic.Strong */
:root[data-theme="dark"] .highlight .gu { color: #959077 } /* Generic.Subheading */
:root[data-theme="dark"] .highlight .gt { color: #66D9EF } /* Generic.Traceback */
:root[data-theme="dark"] .highlight .kc { color: #66D9EF } /* Keyword.Constant */
:root[data-theme="dark"] .highlight .kd { color: #66D9EF } /* Keyword.Declaration */
:root[data-theme="dark"] .highlight .kn { color: #FF4689 } /* Keyword.Namespace */
:root[data-theme="dark"] .highlight .kp { color: #66D9EF } /* Keyword.Pseudo */
:root[data-theme="dark"] .highlight .kr { color: #66D9EF } /* Keyword.Reserved */
:root[data-theme="dark"] .highlight .kt { color: #66D9EF } /* Keyword.Type */
:root[data-theme="dark"] .highlight .ld { color: #E6DB74 } /* Literal.Date */
:root[data-theme="dark"] .highlight .m { color: #AE81FF } /* Literal.Number */
:root[data-theme="dark"] .highlight .s { color: #E6DB74 } /* Literal.String */
:root[data-theme="dark"] .highlight .na { color: #A6E22E } /* Name.Attribute */
:root[data-theme="dark"] .highlight .nb { color: #A6E22E } /* Name.Builtin */
:root[data-theme="dark"] .highlight .nc { color: #A6E22E } /* Name.Class */
:root[data-theme="dark"] .highlight .no { color: #66D9EF } /* Name.Constant */
:root[data-theme="dark"] .highlight .nd { color: #A6E22E } /* Name.Decorator */
:root[data-theme="dark"] .highlight .ni { color: #F8F8F2 } /* Name.Entity */
:root[data-theme="dark"] .highlight .ne { color: #A6E22E } /* Name.Exception */
:root[data-theme="dark"] .highlight .nf { color: #A6E22E } /* Name.Function */
:root[data-theme="dark"] .highlight .nl { color: #F8F8F2 } /* Name.Label */
:root[data-theme="dark"] .highlight .nn { color: #F8F8F2 } /* Name.Namespace */
:root[data-theme="dark"] .highlight .nx { color: #A6E22E } /* Name.Other */
:root[data-theme="dark"] .highlight .py { color: #F8F8F2 } /* Name.Property */
:root[data-theme="dark"] .highlight .nt { color: #FF4689 } /* Name.Tag */
:root[data-theme="dark"] .highlight .nv { color: #F8F8F2 } /* Name.Variable */
:root[data-theme="dark"] .highlight .ow { color: #FF4689 } /* Operator.Word */
:root[data-theme="dark"] .highlight .pm { color: #F8F8F2 } /* Punctuation.Marker */
:root[data-theme="dark"] .highlight .w { color: #F8F8F2 } /* Text.Whitespace */
:root[data-theme="dark"] .highlight .mb { color: #AE81FF } /* Literal.Number.Bin */
:root[data-theme="dark"] .highlight .mf { color: #AE81FF } /* Literal.Number.Float */
:root[data-theme="dark"] .highlight .mh { color: #AE81FF } /* Literal.Number.Hex */
:root[data-theme="dark"] .highlight .mi { color: #AE81FF } /* Literal.Number.Integer */
:root[data-theme="dark"] .highlight .mo { color: #AE81FF } /* Literal.Number.Oct */
:root[data-theme="dark"] .highlight .sa { color: #E6DB74 } /* Literal.String.Affix */
:root[data-theme="dark"] .highlight .sb { color: #E6DB74 } /* Literal.String.Backtick */
:root[data-theme="dark"] .highlight .sc { color: #E6DB74 } /* Literal.String.Char */
:root[data-theme="dark"] .highlight .dl { color: #E6DB74 } /* Literal.String.Delimiter */
:root[data-theme="dark"] .highlight .sd { color: #E6DB74 } /* Literal.String.Doc */
:root[data-theme="dark"] .highlight .s2 { color: #E6DB74 } /* Literal.String.Double */
:root[data-theme="dark"] .highlight .se { color: #AE81FF } /* Literal.String.Escape */
:root[data-theme="dark"] .highlight .sh { color: #E6DB74 } /* Literal.String.Heredoc */
:root[data-theme="dark"] .highlight .si { color: #E6DB74 } /* Literal.String.Interpol */
:root[data-theme="dark"] .highlight .sx { color: #E6DB74 } /* Literal.String.Other */
:root[data-theme="dark"] .highlight .sr { color: #E6DB74 } /* Literal.String.Regex */
:root[data-theme="dark"] .highlight .s1 { color: #E6DB74 } /* Literal.String.Single */
:root[data-theme="dark"] .highlight .ss { color: #E6DB74 } /* Literal.String.Symbol */
:root[data-theme="dark"] .highlight .bp { color: #A6E22E } /* Name.Builtin.Pseudo */
:root[data-theme="dark"] .highlight .fm { color: #A6E22E } /* Name.Function.Magic */
:root[data-theme="dark"] .highlight .vc { color: #F8F8F2 } /* Name.Variable.Class */
:root[data-theme="dark"] .highlight .vg { color: #F8F8F2 } /* Name.Variable.Global */
:root[data-theme="dark"] .highlight .vi { color: #F8F8F2 } /* Name.Variable.Instance */
:root[data-theme="dark"] .highlight .vm { color: #F8F8F2 } /* Name.Variable.Magic */
:root[data-theme="dark"] .highlight .il { color: #AE81FF } /* Literal.Number.Integer.Long */
@media (prefers-color-scheme: dark) {
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
:root:not([data-theme="light"]) .highlight .hll { background-color: #49483e }
:root:not([data-theme="light"]) .highlight { background: #272822; color: #F8F8F2 }
:root:not([data-theme="light"]) .highlight .c { color: #959077 } /* Comment */
:root:not([data-theme="light"]) .highlight .err { color: #ED007E; background-color: #1E0010 } /* Error */
:root:not([data-theme="light"]) .highlight .esc { color: #F8F8F2 } /* Escape */
:root:not([data-theme="light"]) .highlight .g { color: #F8F8F2 } /* Generic */
:root:not([data-theme="light"]) .highlight .k { color: #66D9EF } /* Keyword */
:root:not([data-theme="light"]) .highlight .l { color: #AE81FF } /* Literal */
:root:not([data-theme="light"]) .highlight .n { color: #F8F8F2 } /* Name */
:root:not([data-theme="light"]) .highlight .o { color: #FF4689 } /* Operator */
:root:not([data-theme="light"]) .highlight .x { color: #F8F8F2 } /* Other */
:root:not([data-theme="light"]) .highlight .p { color: #F8F8F2 } /* Punctuation */
:root:not([data-theme="light"]) .highlight .ch { color: #959077 } /* Comment.Hashbang */
:root:not([data-theme="light"]) .highlight .cm { color: #959077 } /* Comment.Multiline */
:root:not([data-theme="light"]) .highlight .cp { color: #959077 } /* Comment.Preproc */
:root:not([data-theme="light"]) .highlight .cpf { color: #959077 } /* Comment.PreprocFile */
:root:not([data-theme="light"]) .highlight .c1 { color: #959077 } /* Comment.Single */
:root:not([data-theme="light"]) .highlight .cs { color: #959077 } /* Comment.Special */
:root:not([data-theme="light"]) .highlight .gd { color: #FF4689 } /* Generic.Deleted */
:root:not([data-theme="light"]) .highlight .ge { color: #F8F8F2; font-style: italic } /* Generic.Emph */
:root:not([data-theme="light"]) .highlight .ges { color: #F8F8F2; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
:root:not([data-theme="light"]) .highlight .gr { color: #FF4689 } /* Generic.Error */
:root:not([data-theme="light"]) .highlight .gh { color: #F8F8F2 } /* Generic.Heading */
:root:not([data-theme="light"]) .highlight .gi { color: #A6E22E } /* Generic.Inserted */
:root:not([data-theme="light"]) .highlight .go { color: #66D9EF } /* Generic.Output */
:root:not([data-theme="light"]) .highlight .gp { color: #FF4689; font-weight: bold } /* Generic.Prompt */
:root:not([data-theme="light"]) .highlight .gs { color: #F8F8F2; font-weight: bold } /* Generic.Strong */
:root:not([data-theme="light"]) .highlight .gu { color: #959077 } /* Generic.Subheading */
:root:not([data-theme="light"]) .highlight .gt { color: #66D9EF } /* Generic.Traceback */
:root:not([data-theme="light"]) .highlight .kc { color: #66D9EF } /* Keyword.Constant */
:root:not([data-theme="light"]) .highlight .kd { color: #66D9EF } /* Keyword.Declaration */
:root:not([data-theme="light"]) .highlight .kn { color: #FF4689 } /* Keyword.Namespace */
:root:not([data-theme="light"]) .highlight .kp { color: #66D9EF } /* Keyword.Pseudo */
:root:not([data-theme="light"]) .highlight .kr { color: #66D9EF } /* Keyword.Reserved */
:root:not([data-theme="light"]) .highlight .kt { color: #66D9EF } /* Keyword.Type */
:root:not([data-theme="light"]) .highlight .ld { color: #E6DB74 } /* Literal.Date */
:root:not([data-theme="light"]) .highlight .m { color: #AE81FF } /* Literal.Number */
:root:not([data-theme="light"]) .highlight .s { color: #E6DB74 } /* Literal.String */
:root:not([data-theme="light"]) .highlight .na { color: #A6E22E } /* Name.Attribute */
:root:not([data-theme="light"]) .highlight .nb { color: #A6E22E } /* Name.Builtin */
:root:not([data-theme="light"]) .highlight .nc { color: #A6E22E } /* Name.Class */
:root:not([data-theme="light"]) .highlight .no { color: #66D9EF } /* Name.Constant */
:root:not([data-theme="light"]) .highlight .nd { color: #A6E22E } /* Name.Decorator */
:root:not([data-theme="light"]) .highlight .ni { color: #F8F8F2 } /* Name.Entity */
:root:not([data-theme="light"]) .highlight .ne { color: #A6E22E } /* Name.Exception */
:root:not([data-theme="light"]) .highlight .nf { color: #A6E22E } /* Name.Function */
:root:not([data-theme="light"]) .highlight .nl { color: #F8F8F2 } /* Name.Label */
:root:not([data-theme="light"]) .highlight .nn { color: #F8F8F2 } /* Name.Namespace */
:root:not([data-theme="light"]) .highlight .nx { color: #A6E22E } /* Name.Other */
:root:not([data-theme="light"]) .highlight .py { color: #F8F8F2 } /* Name.Property */
:root:not([data-theme="light"]) .highlight .nt { color: #FF4689 } /* Name.Tag */
:root:not([data-theme="light"]) .highlight .nv { color: #F8F8F2 } /* Name.Variable */
:root:not([data-theme="light"]) .highlight .ow { color: #FF4689 } /* Operator.Word */
:root:not([data-theme="light"]) .highlight .pm { color: #F8F8F2 } /* Punctuation.Marker */
:root:not([data-theme="light"]) .highlight .w { color: #F8F8F2 } /* Text.Whitespace */
:root:not([data-theme="light"]) .highlight .mb { color: #AE81FF } /* Literal.Number.Bin */
:root:not([data-theme="light"]) .highlight .mf { color: #AE81FF } /* Literal.Number.Float */
:root:not([data-theme="light"]) .highlight .mh { color: #AE81FF } /* Literal.Number.Hex */
:root:not([data-theme="light"]) .highlight .mi { color: #AE81FF } /* Literal.Number.Integer */
:root:not([data-theme="light"]) .highlight .mo { color: #AE81FF } /* Literal.Number.Oct */
:root:not([data-theme="light"]) .highlight .sa { color: #E6DB74 } /* Literal.String.Affix */
:root:not([data-theme="light"]) .highlight .sb { color: #E6DB74 } /* Literal.String.Backtick */
:root:not([data-theme="light"]) .highlight .sc { color: #E6DB74 } /* Literal.String.Char */
:root:not([data-theme="light"]) .highlight .dl { color: #E6DB74 } /* Literal.String.Delimiter */
:root:not([data-theme="light"]) .highlight .sd { color: #E6DB74 } /* Literal.String.Doc */
:root:not([data-theme="light"]) .highlight .s2 { color: #E6DB74 } /* Literal.String.Double */
:root:not([data-theme="light"]) .highlight .se { color: #AE81FF } /* Literal.String.Escape */
:root:not([data-theme="light"]) .highlight .sh { color: #E6DB74 } /* Literal.String.Heredoc */
:root:not([data-theme="light"]) .highlight .si { color: #E6DB74 } /* Literal.String.Interpol */
:root:not([data-theme="light"]) .highlight .sx { color: #E6DB74 } /* Literal.String.Other */
:root:not([data-theme="light"]) .highlight .sr { color: #E6DB74 } /* Literal.String.Regex */
:root:not([data-theme="light"]) .highlight .s1 { color: #E6DB74 } /* Literal.String.Single */
:root:not([data-theme="light"]) .highlight .ss { color: #E6DB74 } /* Literal.String.Symbol */
:root:not([data-theme="light"]) .highlight .bp { color: #A6E22E } /* Name.Builtin.Pseudo */
:root:not([data-theme="light"]) .highlight .fm { color: #A6E22E } /* Name.Function.Magic */
:root:not([data-theme="light"]) .highlight .vc { color: #F8F8F2 } /* Name.Variable.Class */
:root:not([data-theme="light"]) .highlight .vg { color: #F8F8F2 } /* Name.Variable.Global */
:root:not([data-theme="light"]) .highlight .vi { color: #F8F8F2 } /* Name.Variable.Instance */
:root:not([data-theme="light"]) .highlight .vm { color: #F8F8F2 } /* Name.Variable.Magic */
:root:not([data-theme="light"]) .highlight .il { color: #AE81FF } /* Literal.Number.Integer.Long */
}
.highlight, .highlight pre { background: none !important; }
