/* 简报 · aligned with the Open Source Radar design language: dark chrome, cyan accent, tonal bands instead of nested cards. */
/* Same-origin navigations cross-fade instead of repainting from blank; shared chrome keeps its place. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
:root {
  --accent: #06b6d4; --accent-strong: #0e7490; --accent-soft: #e0f7fb; --accent-line: #a5e8f3;
  --accent-fill: linear-gradient(135deg, #06b6d4, #2563eb); --accent-fill-hover: linear-gradient(135deg, #0891b2, #1d4ed8);
  --ink: #0f172a; --text: #1e293b; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-soft: #edf1f6; --line-strong: #cbd5e1;
  --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #f1f5f9; --canvas: #f1f5f9;
  --chrome: #0b1220; --chrome-2: #0f172a; --chrome-ink: #f8fafc; --chrome-muted: #94a3b8; --chrome-hover: rgba(148, 163, 184, .14);
  --ok: #047857; --ok-soft: #e3f6ee; --warn: #b45309; --warn-soft: #fdf3e2; --danger: #dc2626; --danger-soft: #fdecec;
  --hue-brief: #22d3ee; --hue-project: #818cf8; --hue-topic: #34d399;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 0 0 1px rgba(15, 23, 42, .035), 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-lift: 0 0 0 1px rgba(15, 23, 42, .04), 0 4px 10px rgba(15, 23, 42, .06), 0 22px 48px rgba(15, 23, 42, .11);
  --ease: cubic-bezier(.2, .8, .2, 1); --max: 1440px; --bar: 56px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  --masthead: var(--serif);
  --paper: "Iowan Old Style", Charter, Georgia, "Times New Roman", var(--serif);
  color: var(--text); font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); background: var(--canvas); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #eaf0f6 0, var(--canvas) 520px); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.35; }
p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
a { color: var(--accent-strong); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: #155e75; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .nowrap { white-space: nowrap; } .hint { color: var(--muted); font-size: 13px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.business-finding { display: block; min-width: 0; }
.business-finding section { margin-top: 20px; }
.business-finding h4 { margin-bottom: 8px; }
.business-finding .chip { margin: 0 6px 8px 0; }
.business-insights > div + div { margin-top: 12px; }
.business-policy, .business-verification, .business-conflict { padding: 16px; background: var(--surface-2); border-radius: 8px; }
.business-conflict { border-left: 3px solid var(--warn); }
.source-resource { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.source-resource img { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; }
.source-resource img[hidden], [data-image-failure][hidden] { display: none; }
.source-resource .ext { margin-right: 12px; }
[data-image-failure] { color: var(--warn); }
.sources .source-meta { color: var(--muted); margin-top: 8px; }
.sources li > p { grid-column: 2; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lift); }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.count { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, translate .15s; }
.btn:hover { background: var(--surface-3); color: var(--ink); }
.btn:active { translate: 0 1px; }
.btn .icon { width: 15px; height: 15px; }
.btn.primary { background: var(--accent-fill); border-color: transparent; color: #fff; box-shadow: 0 4px 14px -6px rgba(37, 99, 235, .55); }
.btn.primary:hover { background: var(--accent-fill-hover); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #b91c1c; color: #fff; }
.btn.primary-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.btn.primary-soft:hover { background: #cdf1f8; color: #155e75; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.quiet:hover { background: var(--surface-3); color: var(--ink); }
.btn.quiet-danger { background: transparent; border-color: transparent; color: #b91c1c; }
.btn.quiet-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(15, 23, 42, .05); color: var(--text);
  font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent-strong); } .chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.muted { background: var(--surface-3); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
label { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Chrome */
.site-bar { position: sticky; top: 0; z-index: 30; background: rgba(11, 18, 32, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, .08); view-transition-name: site-bar; }
.bar-inner { max-width: var(--max); margin: 0 auto; height: var(--bar); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--chrome-ink); }
.brand:hover { color: var(--chrome-ink); }
.brand-mark { width: 28px; height: 28px; flex: none; overflow: visible; transition: transform .5s var(--ease); }
.brand:hover .brand-mark, .masthead:hover .brand-mark { transform: scale(1.06); }
.brand-text { font-family: var(--masthead); font-size: 21px; letter-spacing: .2em; line-height: 1; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; color: var(--chrome-muted); font-size: 14px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.site-nav a[aria-current] { background: rgba(6, 182, 212, .16); color: #67e8f9; font-weight: 600; }
.main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 24px 72px; }
.site-foot { border-top: 1px solid var(--line-soft); background: rgba(255, 255, 255, .5); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 22px 24px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); letter-spacing: .08em; }
.foot-brand { font-family: var(--masthead); font-weight: 400; font-size: 16px; letter-spacing: .16em; }
.foot-brand .brand-mark { width: 20px; height: 20px; }
.foot-credit { margin-left: auto; margin-right: 56px; } .foot-credit a { color: var(--muted); }

/* Hub: entry band for the three resources */
.hub { position: relative; overflow: hidden; color: var(--chrome-ink); isolation: isolate; view-transition-name: hub;
  background: radial-gradient(900px 380px at 88% -20%, rgba(6, 182, 212, .22), transparent 62%), radial-gradient(760px 320px at 4% 130%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(180deg, var(--chrome), var(--chrome-2)); }
.hub::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -230px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(103, 232, 249, .09) 0 1px, transparent 1.5px 70px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.hub-inner { max-width: var(--max); margin: 0 auto; padding: 30px 24px 32px; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 2fr); gap: 36px; align-items: end; }
.masthead { display: inline-flex; align-items: center; gap: 12px; color: var(--chrome-ink); }
.masthead:hover { color: var(--chrome-ink); }
.masthead .brand-mark { width: 34px; height: 34px; }
.masthead-name { font-family: var(--masthead); font-size: 30px; letter-spacing: .24em; line-height: 1; }
.masthead-motto { padding-left: 12px; border-left: 1px solid rgba(148, 163, 184, .3); font-family: var(--masthead); font-size: 14px; letter-spacing: .12em; color: var(--chrome-muted); }
.hub-date { margin-top: 22px; font-family: var(--masthead); font-size: 13px; letter-spacing: .1em; color: #67e8f9; }
.hub-title { margin: 4px 0 6px; color: var(--chrome-ink); font-family: var(--masthead); font-weight: 400; font-size: 36px; letter-spacing: .08em; }
.hub-tagline { max-width: 34ch; font-family: var(--masthead); font-size: 15px; letter-spacing: .02em; color: var(--chrome-muted); }
.hub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { --hue: var(--hue-brief); position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; color: var(--chrome-ink);
  background: rgba(148, 163, 184, .06); border: 1px solid rgba(148, 163, 184, .14);
  transition: translate .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.tile-project { --hue: var(--hue-project); } .tile-topic { --hue: var(--hue-topic); }
.tile:hover { color: var(--chrome-ink); translate: 0 -2px; background: rgba(148, 163, 184, .1); border-color: color-mix(in srgb, var(--hue) 45%, transparent); }
.tile[aria-current] { background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 22%, transparent), rgba(148, 163, 184, .05) 70%);
  border-color: color-mix(in srgb, var(--hue) 55%, transparent); box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--hue) 70%, transparent); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--hue); background: color-mix(in srgb, var(--hue) 16%, transparent); }
.tile-name { font-family: var(--masthead); font-size: 18px; letter-spacing: .08em; }
.tile-go { margin-left: auto; color: var(--chrome-muted); opacity: .5; transition: translate .3s var(--ease), opacity .3s; }
.tile:hover .tile-go, .tile[aria-current] .tile-go { opacity: 1; translate: 3px 0; color: var(--hue); }
.tile-count { margin-top: 6px; font-size: 13px; color: var(--chrome-muted); }
.tile-count b { font-size: 28px; line-height: 1; margin-right: 4px; color: var(--chrome-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile-meta { font-size: 12px; color: var(--chrome-muted); }
/* One navigation at a time: on hub pages the compact bar is fixed and only slides in as the hub leaves the viewport. */
@supports (animation-timeline: view()) and (timeline-scope: --hub) {
  body.with-hub { timeline-scope: --hub; }
  .with-hub .hub { view-timeline: --hub block; }
  .with-hub .site-bar { position: fixed; inset: 0 0 auto; animation: bar-reveal linear both; animation-timeline: --hub; animation-range: exit 45% exit 85%; }
  .with-hub .hub-inner { animation: hub-recede linear both; animation-timeline: --hub; animation-range: exit 0% exit 100%; }
  @keyframes bar-reveal { from { opacity: 0; transform: translateY(-100%); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
  @keyframes hub-recede { to { opacity: .2; transform: translateY(36px) scale(.985); } }
}

/* Browsing */
.browse { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 32px; align-items: start; }
.browse.single { grid-template-columns: minmax(0, 1fr); }
.rail { position: sticky; top: calc(var(--bar) + 24px); }
.rail-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .08em; margin: 6px 12px 10px; }
.rail-links { display: flex; flex-direction: column; gap: 2px; }
.rail-links a { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; color: var(--text); transition: background .2s, color .2s; }
.rail-links a:hover { background: rgba(15, 23, 42, .045); color: var(--ink); }
.rail-links a[aria-current] { background: var(--surface); color: var(--accent-strong); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(15, 23, 42, .03); }
.rail-links a[aria-current]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent-fill); }
.rail-links a[aria-current] .count { color: var(--accent-strong); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 640px; height: 44px; padding: 0 5px 0 14px; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); color: var(--faint); transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft), var(--shadow); color: var(--accent-strong); }
.search input, .search input:focus { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 14px; }
.search .btn { height: 34px; border-radius: 10px; }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.facet-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(15, 23, 42, .045); color: var(--text); font-size: 13px;
  transition: background .2s, color .2s, box-shadow .2s; }
.pill:hover { background: rgba(6, 182, 212, .1); color: var(--accent-strong); }
.pill[aria-current] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line); }
.pill .count { font-size: 11px; }
.result-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.result-line b { color: var(--ink); }
.token { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }
.token .icon { width: 13px; height: 13px; color: var(--faint); }
.token:hover .icon { color: var(--danger); }
.clear { font-size: 12px; color: var(--muted); }
.day { margin-top: 30px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 400; color: var(--muted); }
.day-title { font-family: var(--masthead); font-size: 22px; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.day-count { margin-left: auto; font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card-grid.projects { margin-top: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: clip; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { translate: 0 -3px; box-shadow: var(--shadow-lift); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .cover-bg { transition: scale .8s var(--ease); }
.card:hover .cover-bg { scale: 1.035; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 20px 18px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kicker > span + span::before { content: "·"; margin-right: 6px; color: var(--faint); }
.kicker > .fact::before, .kicker > .fact + .fact::before { content: none; }
.kicker-channel { color: var(--accent-strong); font-weight: 600; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.45; }
.card-link { color: var(--ink); outline: 0; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-link, .topic-row:hover .card-link, .report-row:hover .card-link { color: var(--accent-strong); }
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: var(--muted); line-height: 1.75; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--faint); white-space: normal; }
.card-foot .icon { width: 13px; height: 13px; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.card-go { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--accent-strong); font-weight: 500; opacity: 0; translate: -4px 0; transition: opacity .3s, translate .3s var(--ease); }
.card:hover .card-go, .card:focus-within .card-go { opacity: 1; translate: 0 0; }
.fact { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fact .icon { width: 13px; height: 13px; color: var(--faint); }
.project-card .card-foot { flex-wrap: wrap; column-gap: 12px; row-gap: 6px; }
.project-card .card-foot > .fact { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .card-foot > .fact .icon { margin-right: 4px; vertical-align: -2px; }
.project-card .card-go { flex: none; white-space: nowrap; }
.topic-list, .report-list { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: clip; margin-top: 24px; }
.report-list { box-shadow: none; background: transparent; margin-top: 0; border-radius: 0; overflow: visible; }
.topic-row, .report-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; gap: 18px; align-items: center; padding: 18px 22px;
  transition: background .2s; }
.topic-row + .topic-row, .report-row + .report-row { box-shadow: 0 -1px 0 var(--line-soft); }
.topic-row:hover { background: var(--surface-2); }
.report-row { padding: 14px 4px; grid-template-columns: 36px minmax(0, 1fr) auto 18px; gap: 14px; }
.report-row:hover { background: transparent; }
.row-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #059669; background: color-mix(in srgb, var(--hue-topic) 15%, white); }
.report-row .row-icon { width: 36px; height: 36px; border-radius: 10px; color: #b45309; background: #fdf3e2; }
.row-main { min-width: 0; }
.row-main h3 { font-size: 16px; margin-bottom: 2px; }
.row-main .excerpt { -webkit-line-clamp: 2; font-size: 13.5px; }
.row-stats { display: flex; gap: 22px; margin: 0; }
.row-stats div { text-align: right; }
.row-stats dt { font-size: 11px; color: var(--faint); }
.row-stats dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-go { color: var(--faint); transition: translate .3s var(--ease), color .3s; }
.topic-row:hover .row-go, .report-row:hover .row-go { translate: 3px 0; color: var(--accent-strong); }
.report-row time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.pager-info { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 48px 24px 56px; margin-top: 12px; color: var(--muted); text-align: center; }
.empty-art { width: 168px; height: 126px; margin-bottom: 8px; }
.empty-title { font-family: var(--masthead); font-size: 22px; letter-spacing: .08em; color: var(--ink); }
.empty-detail { font-size: 14px; } .empty-detail:empty { display: none; }
.empty .btn { margin-top: 14px; }

/* Covers */
.cover { margin: 0; }
.cover-frame { position: relative; overflow: hidden; aspect-ratio: 1200 / 630; background: #0f172a; }
.cover-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; right: 6%; top: 24%; width: 26%; height: 50%; object-fit: contain; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.cover-tag { position: absolute; right: 12px; top: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(15, 23, 42, .5); color: #fff; font-size: 11px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover-caption { padding: 8px 16px 0; font-size: 11px; color: var(--muted); }
.cover-caption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Reader */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; font-size: 13px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs .back-link { height: 32px; padding: 0 12px 0 8px; margin: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(15, 23, 42, .05);
  color: var(--ink); font-weight: 500; }
.crumbs .back-link:hover { color: var(--accent-strong); box-shadow: var(--shadow), 0 0 0 1px var(--accent-line); }
.crumb-trail { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.crumb-sep { color: var(--line-strong); }
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; align-items: start; }
.doc { min-width: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: clip; }
.doc-overview { background: linear-gradient(180deg, var(--surface-2), var(--surface) 85%); }
.doc-overview.has-cover { display: grid; grid-template-columns: minmax(0, 1fr) min(44%, 560px); align-items: center; }
.doc-head { padding: 36px 40px 32px; min-width: 0; }
.doc-overview .cover-hero { padding: 24px 24px 24px 0; }
.doc-overview .cover-hero .cover-frame { border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(15, 23, 42, .35); }
.doc-overview .cover-hero .cover-caption { padding: 8px 4px 0; }
.kicker-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.kicker > .kicker-kind + span::before { content: none; }
.doc-title { margin: 14px 0 10px; font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
.lead { font-size: 16px; line-height: 1.85; color: #475569; max-width: 72ch; }
.doc-lead { padding: 0 40px 30px; }
.doc-lead .lead { max-width: 78ch; padding-left: 16px; box-shadow: inset 3px 0 0 var(--accent-line); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; }
.doc-meta dt { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.doc-meta dd { margin: 0; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.doc-section { padding: 30px 40px 34px; box-shadow: 0 -1px 0 var(--line-soft); scroll-margin-top: calc(var(--bar) + 16px); }
.doc-section.quiet { background: var(--surface-2); }
.doc-section > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--masthead); font-size: 23px; font-weight: 400; letter-spacing: .06em; }
.doc-section > h2 .sec-index, .doc-section > h2 .count { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; letter-spacing: 0; }
.doc-section > h2 .count { margin-left: 2px; font-size: 13px; }
.sec-index { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sec-index .icon { width: 14px; height: 14px; }
.doc-section > p { max-width: 78ch; font-size: 15px; line-height: 1.85; }
.doc-section > p + p { margin-top: 10px; }
.doc-section > p + .entries { margin-top: 18px; }
.lbl { font-weight: 600; color: var(--ink); margin-right: .45em; }
.entries.list { display: flex; flex-direction: column; }
.entry { min-width: 0; }
.entries.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ptile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: clip; border-radius: 14px; background: var(--surface);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease); }
.ptile:hover, .ptile:focus-within { translate: 0 -3px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 36px -12px rgba(15, 23, 42, .22); }
.ptile .cover-frame { border-radius: 12px; }
.ptile:hover .cover-bg { scale: 1.04; } .ptile .cover-bg { transition: scale .8s var(--ease); }
.ptile .cover-caption { display: none; }
.ptile-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 4px 10px; }
.ptile-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15.5px; line-height: 1.4; }
.ptile-title .card-link { color: var(--ink); }
.ptile:hover .card-link { color: var(--accent-strong); }
.ptile-intro, .ptile-reason { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font-size: 13px; line-height: 1.7; }
.ptile-intro { -webkit-line-clamp: 3; color: var(--text); }
.ptile-reason { -webkit-line-clamp: 2; color: var(--muted); }
.ptile-reason .lbl { color: var(--accent-strong); font-weight: 600; }
.adoption-tile .ptile-intro { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: pre-wrap; overflow-wrap: anywhere; }
.ptile-uses, .ptile-field, .ptile-details p { font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ptile-uses { color: var(--muted); }
.ptile-field { padding: 8px 10px; border-radius: 8px; background: var(--surface-3); }
.ptile-field .lbl { display: block; font-size: 12px; color: var(--muted); }
.ptile-details { position: relative; z-index: 2; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ptile-details summary { color: var(--accent-strong); font-size: 12px; font-weight: 600; cursor: pointer; }
.ptile-details p { margin-top: 8px; }
.ptile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.ptile-links a { position: relative; z-index: 2; }
.ptile-foot { display: flex; gap: 12px; margin-top: auto; padding-top: 4px; }
.doc-section.quiet .ptile { background: transparent; }
.doc-section.quiet .ptile:hover { background: var(--surface); }
.entries.papers { display: flex; flex-direction: column; counter-reset: paper; }
.paper { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 22px 0; }
.paper + .paper { border-top: 1px solid var(--line-soft); }
.paper:first-child { padding-top: 4px; }
.paper-no { font-family: var(--paper); font-size: 15px; color: var(--faint); padding-top: 3px; }
.paper-body { min-width: 0; max-width: 82ch; }
.paper-title { font-family: var(--paper); font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.paper-title a { color: var(--ink); }
.paper-title a:hover { color: var(--accent-strong); }
.paper-authors { margin-top: 6px; font-family: var(--paper); font-style: italic; font-size: 14.5px; color: #334155; }
.paper-venue { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.paper-venue span + span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.paper-abstract { margin-top: 14px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line); }
.abstract-label { margin-bottom: 4px; font-family: var(--paper); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.paper-abstract p:last-child { font-size: 14px; line-height: 1.85; text-align: justify; color: var(--text); }
.paper-notes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; font-size: 13.5px; line-height: 1.75; }
.paper-notes div { display: contents; }
.paper-notes dt { font-family: var(--masthead); font-size: 14px; color: var(--accent-strong); white-space: nowrap; }
.paper-notes dd { margin: 0; color: var(--text); }
.paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 13px; }
.entries.list > .entry { padding: 16px 0; }
.entries.list > .entry + .entry { box-shadow: 0 -1px 0 var(--line-soft); }
.entries.list > .entry:first-child { padding-top: 4px; }
.entry-body { padding: 16px 18px 18px; }
.entries.list .entry-body { padding: 0; }
.entry h3 { font-size: 16px; margin-bottom: 8px; }
.entry h3 a { color: var(--ink); }
.entry h3 a:hover { color: var(--accent-strong); }
.entry p { font-size: 14px; line-height: 1.8; }
.entry p + p { margin-top: 6px; }
.entries.list .entry p { max-width: 80ch; }
.entry-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.entry.link-only { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ext, .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.ext .icon, .more .icon { width: 13px; height: 13px; opacity: .8; }
.refs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ref { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 600;
  transition: background .2s, color .2s; }
.ref:hover { background: var(--accent-soft); color: var(--accent-strong); }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; scroll-margin-top: calc(var(--bar) + 24px); }
.sources li + li { box-shadow: 0 -1px 0 var(--line-soft); }
.sources li:target, .note-block:target { animation: target-flash 2.4s ease-out; }
@keyframes target-flash { from { background: rgba(6, 182, 212, .16); } to { background: transparent; } }
.src-no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
.toc { position: sticky; top: calc(var(--bar) + 24px); max-height: calc(100vh - var(--bar) - 48px); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 0 2px 14px; border-left: 2px solid var(--line); }
.toc-title { font-family: var(--masthead); font-size: 13px; color: var(--muted); letter-spacing: .2em; margin-bottom: 8px; }
.toc ol, .toc-inline ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0; font-family: var(--masthead); font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .2s; }
.toc a:hover { color: var(--accent-strong); }
.toc .sub a, .toc-inline .sub a { padding-left: 12px; font-size: 12px; color: var(--faint); }
.toc-inline { display: none; padding: 12px 24px; background: var(--surface-2); box-shadow: 0 -1px 0 var(--line-soft); }
.toc-inline summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-strong); }
.toc-inline ol { margin-top: 8px; columns: 2; column-gap: 24px; }
.toc-inline a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); break-inside: avoid; }
.note-block { padding: 22px 0; scroll-margin-top: calc(var(--bar) + 16px); }
.note-block + .note-block { border-top: 1px solid var(--line); }
.note-block:first-of-type { padding-top: 4px; }
.note-block.archived { opacity: .82; }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.note-head h3 { font-size: 17px; }
.note-head time { margin-left: auto; font-size: 12px; color: var(--muted); }
.note-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.note-field { min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.note-field:only-child { grid-column: 1 / -1; }
.note-field h4 { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent-strong); }
.note-field p { font-size: 14px; line-height: 1.8; }
.note-field p + p { margin-top: 6px; }
.note-sources { margin-top: 12px; }
.note-sources summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
.note-sources summary .icon { width: 13px; height: 13px; }
.note-sources .sources { margin-top: 6px; }
.error-state { max-width: 560px; margin: 8vh auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.error-code { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--accent-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-state h1 { font-family: var(--masthead); font-weight: 400; font-size: 26px; letter-spacing: .06em; }
.error-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

/* Back to top: smooth anchor scroll, revealed by scroll position where supported. */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(15, 23, 42, .78); color: #fff; box-shadow: 0 10px 28px -8px rgba(15, 23, 42, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: translate .25s var(--ease), background .25s, bottom .3s var(--ease); }
.to-top:hover { color: #fff; background: var(--accent-fill); translate: 0 -3px; }
.to-top .icon { width: 18px; height: 18px; }
@supports (animation-timeline: scroll()) {
  /* Hidden by default so short, non-scrollable pages (inactive timeline) never show the button. */
  .to-top { opacity: 0; visibility: hidden; animation: to-top-reveal linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
  @keyframes to-top-reveal { 0%, 55% { opacity: 0; transform: translateY(14px) scale(.85); visibility: hidden; } 100% { opacity: 1; transform: none; visibility: visible; } }
}

/* Admin */
.admin { background: linear-gradient(180deg, #e9eef5 0, var(--canvas) 360px); }
.admin-bar .site-nav { margin-left: 16px; }
.bar-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.bar-tools form { margin: 0; }
.bar-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--chrome-muted);
  font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.bar-link:hover { background: var(--chrome-hover); color: var(--chrome-ink); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; }
.toast { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok);
  font-size: 13px; font-weight: 500; box-shadow: 0 0 0 1px rgba(4, 120, 87, .12); animation: toast-in .5s var(--ease) backwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.state-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin-bottom: 14px; border-radius: 13px; background: rgba(15, 23, 42, .05); }
.state-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.state-tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.state-tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(15, 23, 42, .04); }
.state-tabs .count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(15, 23, 42, .06); text-align: center; }
.state-tabs .attention .count { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.admin-main .facet { margin: 12px 0 18px; }
.table-card { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.data th { padding: 11px 14px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.data td { padding: 14px; vertical-align: middle; box-shadow: 0 -1px 0 var(--line-soft); transition: background .15s; }
.data tbody tr:hover td { background: #fafcfe; }
.data tr.selected td { background: #effbfd; }
.data .sel { width: 44px; padding-right: 0; }
.data .actions { text-align: right; }
.title-cell { min-width: 260px; }
.row-title { font-weight: 600; color: var(--ink); }
.row-title:hover { color: var(--accent-strong); }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent-strong); }
.kind-project { background: #eef0ff; color: #4f46e5; } .kind-topic { background: #e3f8ef; color: #047857; }
.kind-report { background: #fdf3e2; color: #b45309; } .kind-note { background: var(--surface-3); color: #475569; }
.id-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; max-width: 100%; padding: 0 7px; border: 0; border-radius: 6px; background: rgba(15, 23, 42, .045);
  color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
.id-chip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-chip .icon { width: 12px; height: 12px; }
.id-chip:hover { background: var(--accent-soft); color: var(--accent-strong); }
.id-chip.copied, .btn.copied { background: var(--ok-soft); color: var(--ok); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }
.row-actions .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.icon-only { width: 30px; padding: 0; }
.batch-bar { position: fixed; left: 50%; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px; border-radius: 16px;
  background: rgba(15, 23, 42, .94); color: #e2e8f0; box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  translate: -50% 160%; opacity: 0; visibility: hidden; transition: translate .4s var(--ease), opacity .3s, visibility .4s; }
body.has-selection .batch-bar, body:has(input[name="ids"]:checked) .batch-bar { translate: -50% 0; opacity: 1; visibility: visible; }
body.has-selection .to-top, body:has(input[name="ids"]:checked) .to-top { bottom: 92px; }
.batch-count { margin-right: 8px; font-size: 13px; white-space: nowrap; }
.batch-count b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.batch-bar .btn { height: 34px; }
.batch-bar .btn.quiet { color: #cbd5e1; } .batch-bar .btn.quiet:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.batch-bar .btn.quiet-danger { color: #fca5a5; } .batch-bar .btn.quiet-danger:hover { background: rgba(220, 38, 38, .2); color: #fecaca; }
.paste-ids { margin-top: 26px; }
.paste-ids summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
.paste-ids summary .icon { width: 14px; height: 14px; }
.paste-ids form { display: grid; gap: 8px; max-width: 640px; margin-top: 12px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.paste-ids textarea { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.form-row { display: flex; gap: 8px; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--accent-strong); }
.back-link .icon { width: 15px; height: 15px; transition: translate .25s var(--ease); }
.back-link:hover .icon { translate: -3px 0; }
.inspect { margin-bottom: 16px; padding: 26px 30px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.inspect-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inspect-head h1 { margin-top: 8px; font-size: 24px; }
.inspect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; margin: 20px 0 0; }
.inspect-grid dt { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.inspect-grid dd { margin: 4px 0 0; font-size: 13px; min-width: 0; }
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.diff > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.diff h2 { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.diff p { font-size: 13.5px; }
.inspect-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; box-shadow: 0 -1px 0 var(--line-soft); }
.inspect-actions .row-actions { justify-content: flex-start; }
.inspect-actions form { margin: 0; }
.preview-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.confirm { max-width: 640px; margin: 4vh auto; padding: 36px 40px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift); }
.confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); }
.confirm-icon .icon { width: 22px; height: 22px; }
.confirm-icon.danger { background: var(--danger-soft); color: var(--danger); }
.confirm h1 { margin: 16px 0 4px; font-size: 22px; }
.impact { list-style: none; margin: 20px 0 14px; padding: 0; }
.impact li { display: flex; align-items: center; gap: 10px; padding: 12px 0; box-shadow: 0 -1px 0 var(--line-soft); }
.impact-title { flex: 1; min-width: 0; font-weight: 500; }
.impact-count { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.confirm form { margin: 0; }
.secret { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--chrome-2); }
.secret code { flex: 1; min-width: 0; color: #a5f3fc; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.steps { margin: 20px 0 0; padding-left: 20px; color: var(--text); }
.steps li { margin: 6px 0; }
.steps code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }
.callout { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(6, 182, 212, .08); font-size: 13px; color: var(--text); }
.callout .icon { margin-top: 3px; color: var(--accent-strong); }
.inline-create { display: flex; gap: 8px; max-width: 560px; margin-bottom: 18px; }
.inline-create input { flex: 1; min-width: 0; height: 38px; }
.inline-create .btn { height: 38px; }
.list-card { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: clip; }
.list-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 20px; transition: background .2s; }
.list-row + .list-row { box-shadow: 0 -1px 0 var(--line-soft); }
.list-row:hover { background: var(--surface-2); }
.list-row .row-icon { width: 38px; height: 38px; border-radius: 11px; color: var(--accent-strong); background: var(--accent-soft); }
.list-row .row-main { flex: 1; }
.list-row h3 { font-size: 15px; }
.status-dot { width: 10px; height: 10px; flex: none; margin: 0 4px; border-radius: 50%; }
.status-dot.on { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.status-dot.off { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.group { margin-bottom: 28px; }
.group > h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.group > .sub { margin: 4px 0 12px; }
.empty-line { padding: 18px 20px; color: var(--muted); }
.login { max-width: 400px; margin: 10vh auto; padding: 36px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lift); text-align: center; }
.login-mark .brand-mark { width: 48px; height: 48px; }
.brand-badge { padding: 1px 8px; border-radius: 999px; background: rgba(148, 163, 184, .16); color: var(--chrome-muted); font-size: 12px; }
.login h1 { margin: 16px 0 2px; font-size: 20px; }
.login form { display: grid; gap: 8px; margin-top: 22px; text-align: left; }
.login input { height: 42px; }
.login .btn { height: 42px; margin-top: 8px; }
.login .hint { margin-top: 16px; }

@media (max-width: 1100px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-inline { display: block; }
}
@media (max-width: 980px) {
  .hub-inner { grid-template-columns: 1fr; gap: 20px; }
  .doc-overview.has-cover { grid-template-columns: 1fr; }
  .doc-overview .cover-hero { order: -1; padding: 0; }
  .doc-overview .cover-hero .cover-frame { border-radius: 0; box-shadow: none; }
  .doc-overview .cover-hero .cover-caption { padding: 8px 24px 0; }
}
@media (max-width: 860px) {
  .browse { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rail { position: static; }
  .rail-title { display: none; }
  .rail-links { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .rail-links a { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(15, 23, 42, .045); white-space: nowrap; }
  .rail-links a[aria-current]::before { content: none; }
  .doc-head { padding: 26px 24px 24px; }
  .doc-lead { padding: 0 24px 26px; }
  .doc-section { padding: 26px 24px 28px; }
  .note-fields, .diff { grid-template-columns: minmax(0, 1fr); }
  .masthead-motto { display: none; }
  .topic-row { grid-template-columns: 40px minmax(0, 1fr) 16px; }
  .topic-row .row-stats { grid-column: 2; grid-row: 2; }
  .topic-row .row-go { grid-column: 3; grid-row: 1 / span 2; }
  .row-stats div { text-align: left; }
}
@media (max-width: 640px) {
  :root { --bar: 54px; }
  .bar-inner { padding: 0 14px; gap: 12px; }
  .site-nav a { padding: 0 10px; font-size: 13px; }
  .main { padding: 20px 14px 60px; }
  .hub-inner { padding: 24px 14px 20px; }
  .masthead-name { font-size: 24px; }
  .hub-date { margin-top: 14px; }
  .hub-title { font-size: 28px; }
  .entries.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .paper { grid-template-columns: 30px minmax(0, 1fr); }
  .paper-notes { grid-template-columns: minmax(0, 1fr); gap: 2px; } .paper-notes dd { margin-bottom: 8px; }
  .foot-credit { margin: 0; }
  .hub-tiles { gap: 8px; }
  .tile { padding: 12px; border-radius: 14px; }
  .tile-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tile-go, .tile-meta { display: none; }
  .tile-count b { font-size: 22px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { border-radius: 16px; }
  .doc { border-radius: 16px; }
  .doc-title { font-size: 24px; }
  .doc-head { padding: 22px 18px 20px; }
  .doc-lead { padding: 0 18px 22px; }
  .doc-lead .lead { font-size: 15px; }
  .doc-section { padding: 22px 18px 24px; }
  .toc-inline { padding: 12px 18px; }
  .toc-inline ol { columns: 1; }
  .report-row { grid-template-columns: 32px minmax(0, 1fr) 16px; }
  .report-row time { display: none; }
  .to-top { right: 16px; bottom: 16px; }
  .admin-bar .bar-inner { height: auto; min-height: var(--bar); flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .admin-bar .site-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .bar-tools .bar-link span { display: none; }
  .data td, .data th { padding: 10px; }
  .data th:nth-child(4), .data td:nth-child(4) { display: none; }
  .title-cell { min-width: 200px; }
  .batch-bar { left: 12px; right: 12px; translate: 0 160%; flex-wrap: wrap; justify-content: center; }
  body.has-selection .batch-bar, body:has(input[name="ids"]:checked) .batch-bar { translate: 0 0; }
  .confirm, .login, .inspect { padding: 24px 20px; }
}
@media (max-width: 480px) { .site-nav .icon { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .to-top { animation: none !important; opacity: 1; visibility: visible; }
}
