/* Reading Library member resource: visionOS liquid-glass layout and material recipes. */
:root {
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
  --white: #fff;
  --shell-ink: #173b55;
  --blue: #24618f;
  --blue-soft: rgba(54,120,171,.12);
  --txt-dim: #38556b;
  --txt-dim2: #4a6578;
  --glass-win: rgba(218,237,253,.54);
  --glass-panel: rgba(247,252,255,.46);
  --glass-pill-dark: rgba(255,255,255,.55);
  --glass-pill-light: rgba(255,255,255,.56);
  --stroke-soft: rgba(38,90,130,.14);
  --pad: clamp(10px,1.35vw,26px);
  --gap: clamp(9px,1.05vw,20px);
  --gap-sm: clamp(6px,.7vw,13px);
  --r-win: clamp(18px,1.9vw,40px);
  --r-lg: clamp(14px,1.5vw,30px);
  --r-md: clamp(11px,1.15vw,22px);
  --r-pill: 999px;
  --t-2xs: clamp(9px,.70vw,13px);
  --t-xs: clamp(10px,.80vw,15px);
  --t-sm: clamp(11px,.92vw,17px);
  --t-md: clamp(12px,1.05vw,20px);
  --t-lg: clamp(15px,1.30vw,26px);
  --t-xl: clamp(18px,1.65vw,33px);
  --t-hero: clamp(25px,2.95vw,60px);
  --gutter: clamp(44px,calc((100vw - 1000px) / 2),140px);
  --wincols: minmax(180px,23%) minmax(0,1fr);
  --display: "Helvetica Neue", "Hiragino Sans GB", sans-serif;
  --paper: #f8f5f0;
  --surface: #fffdf9;
  --ink: #252722;
  --muted: #746f66;
  --faint: #938b7e;
  --line: #ded7cd;
  --line-dark: #45413b;
  --accent: #9e4a35;
  --accent-soft: #f0e3d9;
  --hover: #eee8df;
  --focus: #175c91;
  --backdrop: #24262277;
  --shadow: #24262224;
  --photo-ink: #fffdf7;
  color: var(--shell-ink);
  background: #dceeff;
  font-synthesis: none;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow: hidden; }
body::before { content: ""; position: fixed; z-index: -2; inset: -8px; background: url("./reading-library-room.webp") center / cover no-repeat; filter: brightness(1.06) saturate(.25); }
body::after { content: ""; position: fixed; z-index: -1; inset: 0; background: linear-gradient(135deg,rgba(225,241,255,.86),rgba(181,216,245,.78) 58%,rgba(232,247,255,.88)); pointer-events: none; }
body.reading, body.about-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { color: var(--ink); background: var(--accent-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { flex: none; display: inline-block; width: 20px; height: 20px; object-fit: contain; }
.app-shell .icon { filter: none; opacity: .85; }
.hero-story .icon, .cover-story .icon { filter: brightness(0) invert(1); opacity: 1; }
.skip { position: fixed; z-index: 10; inset: 8px auto auto 8px; padding: .7rem 1rem; color: var(--ink); background: var(--surface); transform: translateY(-170%); }
.skip:focus { transform: none; }
.app-shell { display: grid; grid-template-columns: var(--gutter) minmax(0,1fr) var(--gutter); grid-template-rows: auto minmax(0,1fr); gap: var(--gap) 0; height: 100dvh; padding-block: var(--pad); }
.spatial-toolbar { grid-column: 2; display: flex; align-items: center; gap: var(--gap); width: min(1040px,95%); min-height: 47px; margin-inline: auto; padding: 6px 10px 6px 16px; border-radius: var(--r-pill); background: rgba(244,251,255,.62); backdrop-filter: blur(34px) saturate(1.05); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18),0 18px 50px rgba(46,94,130,.12); }
.brand { display: flex; align-items: center; gap: 8px; flex: none; color: var(--shell-ink); text-decoration: none; }
.brand img { width: 27px; height: 24px; object-fit: contain; }
.brand strong { font-size: 17px; font-weight: 500; letter-spacing: .04em; }
h1 { margin: 0; }
.toolbar-search { min-width: 0; flex: 1; }
.toolbar-refresh { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--glass-pill-light); color: var(--shell-ink); }
.toolbar-refresh .icon { width: 17px; height: 17px; }
.spatial-rail { grid-column: 1; grid-row: 2; align-self: center; justify-self: center; display: flex; flex-direction: column; gap: 12px; padding: 10px 8px; border-radius: var(--r-pill); background: rgba(235,247,255,.63); backdrop-filter: blur(30px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28),0 26px 56px rgba(0,0,0,.16); }
.rail-button { display: flex; align-items: center; flex-direction: column; gap: 4px; min-width: 43px; min-height: 51px; padding: 10px 6px; border: 0; border-radius: var(--r-pill); color: var(--shell-ink); background: transparent; transition: background-color .18s,transform .16s; }
.rail-button span { font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
.rail-button:hover { background: rgba(255,255,255,.6); }
.rail-button:active { transform: scale(.94); }
.rail-button[aria-pressed="true"] { background: rgba(255,255,255,.82); box-shadow: 0 2px 7px rgba(42,91,129,.07); }
.rail-button .rail-about-mark { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font: 600 14px/1 Georgia,serif; }
.rail-button .rail-library-mark { width: 20px; height: 20px; font-size: 23px; line-height: 19px; }
.rail-button .rail-history-mark { width: 20px; height: 20px; font-size: 25px; line-height: 18px; }
.window { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; padding: var(--pad); border-radius: var(--r-win); background: var(--glass-win); box-shadow: inset 0 0 0 1px rgba(255,255,255,.36),0 18px 48px rgba(0,0,0,.10); }
/* Do not add backdrop-filter to .window: its children must sample the room. */
.workspace-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--gap); min-height: clamp(72px,6.3vw,100px); padding-bottom: var(--gap); }
#controls { min-width: 0; }
.search { display: flex; align-items: center; gap: 9px; padding: 0 14px; min-height: 38px; background: var(--glass-pill-dark); border-radius: var(--r-pill); }
.search .icon { width: 16px; height: 16px; opacity: .8; }
.search input { width: 100%; min-width: 0; min-height: 38px; padding: 5px 0; border: 0; color: var(--shell-ink); background: transparent; font-size: var(--t-sm); }
.search input::placeholder { color: var(--txt-dim); }
.search input:focus { outline: 0; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.facet { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.facet button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 7px 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--txt-dim); text-align: start; font-size: var(--t-xs); font-weight: 400; transition: background-color .18s; }
.facet button:hover { color: var(--shell-ink); background: rgba(255,255,255,.55); }
.facet button[aria-pressed="true"] { color: #174d78; background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px rgba(52,113,162,.10); }
.facet button > span:last-child { font-size: .85em; color: var(--txt-dim2); font-variant-numeric: tabular-nums; }
#categories { display: flex; align-items: center; gap: 4px; }
#categories button { width: auto; flex: 1 0 auto; justify-content: center; gap: 7px; padding-inline: clamp(9px,1vw,20px); min-height: 38px; font-size: var(--t-sm); }
#categories button > span:last-child { display: none; }
.subcategory-facet { padding-top: 6px; border-top: 1px solid var(--stroke-soft); }
#subcategories { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
#subcategories button { width: auto; flex: 0 1 auto; min-height: 34px; padding: 6px 12px; font-size: var(--t-xs); }
#subcategories button[aria-pressed="true"] { background: #d4e8f9; box-shadow: inset 0 0 0 1px rgba(52,113,162,.16); }
#subcategories button:disabled { opacity: .48; }
#subcategories button:disabled:hover { color: var(--txt-dim); background: transparent; }
.direction-controls { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sort-controls { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.sort-controls button { border: 0; border-radius: var(--r-pill); padding: 6px 13px; min-height: 30px; color: var(--txt-dim); background: transparent; font-size: var(--t-xs); }
.sort-controls button:hover { background: rgba(255,255,255,.45); }
.sort-controls button[aria-pressed="true"] { color: #174d78; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(52,113,162,.12); }
.workspace-meta { display: flex; flex-direction: column; align-items: end; gap: 7px; min-width: 0; }
.ranking-updated { margin: 0; color: var(--txt-dim2); font-size: var(--t-2xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.workspace-label { color: var(--txt-dim); font-size: var(--t-xs); font-weight: 300; white-space: nowrap; }
.window-body { display: grid; grid-template-columns: var(--wincols); gap: var(--gap); min-height: 0; }
.sidebar { display: grid; grid-template-rows: minmax(0,1.15fr) minmax(0,1fr); gap: var(--gap); min-width: 0; min-height: 0; }
.glass-panel { background: var(--glass-panel); backdrop-filter: blur(12px); border-radius: var(--r-lg); }
.shortlist { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: clamp(12px,1.35vw,24px); }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex: none; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: var(--t-sm); font-weight: 400; }
.panel-heading > span { font-size: var(--t-2xs); color: var(--txt-dim2); white-space: nowrap; }
.shortlist ol, .cover-grid, .research-index ol { list-style: none; margin: 0; padding: 0; }
.shortlist ol { overflow-y: auto; min-height: 0; scrollbar-width: none; }
.short-report { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; padding: 7px 0; }
.short-cover { position: relative; height: 52px; overflow: hidden; border-radius: 5px; background: #534f49; }
.short-cover .story-image { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.short-cover .position { position: absolute; inset: auto 0 5px; text-align: center; font-size: 15px; font-weight: 500; color: #fff; }
.short-report h3 { margin: 0 0 7px; font-size: var(--t-xs); line-height: 1.5; font-weight: 400; }
.title-link { padding: 0; margin: 0; border: 0; background: transparent; color: inherit; text-align: start; font: inherit; line-height: inherit; }
.title-link:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.short-report .title-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.short-meta { display: flex; flex-wrap: wrap; gap: 2px 7px; margin: 0; color: var(--txt-dim2); font-size: var(--t-2xs); line-height: 1.4; font-weight: 300; }
.short-meta time { font-variant-numeric: tabular-nums; }
.filter-panel { min-height: 0; overflow-y: auto; padding: 8px clamp(12px,1.35vw,24px) 14px; scrollbar-width: none; }
.filters > summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; list-style: none; font-size: var(--t-sm); font-weight: 400; }
summary::-webkit-details-marker { display: none; }
.filters > summary .icon { width: 15px; height: 15px; opacity: .7; }
.filter-inner { min-width: 0; }
.time-hint { margin: 0 0 5px; color: var(--txt-dim2); font-size: var(--t-2xs); line-height: 1.6; }
.facet-expander { border-top: 1px solid var(--stroke-soft); padding-block: 5px; }
.facet-expander > summary { display: flex; align-items: center; gap: 8px; min-height: 33px; list-style: none; font-size: var(--t-xs); }
.facet-expander > summary .icon { width: 14px; height: 14px; margin-left: auto; opacity: .7; transition: transform .18s; }
.facet-expander[open] > summary .icon { transform: rotate(180deg); }
.filter-selection { color: var(--txt-dim); font-size: var(--t-2xs); margin-left: auto; }
.filter-selection:not(:empty) + .icon { margin-left: 0; }
#institutions { max-height: 220px; overflow: auto; scrollbar-width: none; }
#results { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.results-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; padding: 0 2px 7px; flex: none; }
.status { margin: 0; color: var(--txt-dim); font-size: var(--t-2xs); }
.results-actions { display: flex; align-items: center; gap: 12px; }
.availability { display: flex; align-items: center; gap: 5px; color: var(--txt-dim); font-size: var(--t-2xs); cursor: pointer; }
input[type="checkbox"] { accent-color: var(--blue); width: 12px; height: 12px; margin: 0; }
.quiet, .read { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 32px; padding: 4px 0; border: 0; color: inherit; background: transparent; font-size: var(--t-xs); }
.quiet:hover, .read:hover { opacity: .75; }
.ranking { display: grid; grid-template-rows: minmax(0,1.15fr) minmax(0,1fr); gap: var(--gap); flex: 1; min-height: 0; }
.ranking.solo { grid-template-rows: minmax(0,1fr); }
.story-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-story, .cover-story { --shell-ink: #fff; --txt-dim: rgba(255,255,255,.84); --txt-dim2: rgba(255,255,255,.75); --focus: #fff; color: #fff; }
.hero-story { position: relative; isolation: isolate; display: flex; align-items: end; min-width: 0; min-height: 0; border-radius: var(--r-lg); overflow: hidden; background: #171a2e; container-type: size; }
.hero-story::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(2,5,10,.84),rgba(2,5,10,.55) 53%,rgba(2,5,10,.08) 100%); }
.hero-story > .story-image { position: absolute; z-index: -2; inset: 0; filter: brightness(.72); object-position: center; }
.hero-content { --u: min(1cqi,2.3cqh); position: relative; width: 80%; padding: clamp(18px,calc(var(--u) * 4),40px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: clamp(12px,calc(var(--u) * 3),28px); }
.glass-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 5px 11px; border: 0; border-radius: var(--r-pill); background: rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: inset 0 .5px 0 rgba(255,255,255,.12); color: var(--shell-ink); font-size: var(--t-2xs); font-weight: 400; white-space: nowrap; }
button.glass-chip:hover { background: rgba(255,255,255,.24); }
.glass-chip .icon { width: 13px; height: 13px; }
.hero-story h2 { margin: 0 0 15px; font-size: clamp(23px,calc(var(--u) * 4.4),48px); line-height: 1.28; font-weight: 400; letter-spacing: .005em; text-wrap: pretty; text-shadow: 0 2px 15px #0005; }
.metadata { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin: 0; color: var(--txt-dim); font-size: var(--t-xs); line-height: 1.7; font-weight: 300; }
.metadata time { font-variant-numeric: tabular-nums; }
.hero-original { margin: 9px 0 20px; max-width: 570px; color: var(--txt-dim); font-size: var(--t-sm); line-height: 1.65; font-weight: 300; }
.hero-read { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 40px; padding: 10px 23px; border: 0; border-radius: var(--r-pill); background: #fff; color: #302e2b; font-size: var(--t-sm); font-weight: 400; transition: opacity .18s,transform .16s; }
.hero-read:hover { opacity: .9; }
.hero-read:active { transform: scale(.97); }
.hero-read .icon { width: 18px; height: 18px; filter: none; }
.shelf { display: flex; flex-direction: column; min-height: 0; min-width: 0; container-type: inline-size; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; margin-bottom: var(--gap-sm); }
.shelf-heading h2 { margin: 0; font-size: var(--t-md); font-weight: 400; }
.cover-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--gap-sm); flex: 1; min-height: 0; }
.cover-story { position: relative; isolation: isolate; display: flex; align-items: end; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--r-md); color: #fff; background: #1b2026; }
.cover-story::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,transparent 0% 25%,rgba(8,10,15,.16) 40%,rgba(8,10,15,.68) 65%,rgba(8,10,15,.93) 100%); }
.cover-story > .story-image { position: absolute; z-index: -2; inset: 0; filter: brightness(.8); transition: opacity .2s; }
.cover-story:hover > .story-image { opacity: .87; }
.cover-content { width: 100%; min-width: 0; padding: clamp(12px,1.25vw,22px); }
.cover-category { position: absolute; top: 12px; left: 12px; padding: 4px 9px; min-height: 20px; font-size: var(--t-2xs); }
.cover-position { display: block; margin-bottom: 9px; font-size: clamp(18px,1.8vw,34px); font-weight: 300; }
.cover-story h2 { margin: 0; font-size: var(--t-sm); line-height: 1.5; font-weight: 400; letter-spacing: .01em; }
.cover-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: start; line-height: inherit; }
.cover-link::after { content: ""; position: absolute; inset: 0; }
.cover-story:has(.cover-link:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.cover-link:focus { outline: none; }
.cover-issuer { margin: 8px 0 0; color: var(--txt-dim); font-size: var(--t-2xs); line-height: 1.5; font-weight: 300; }
.cover-source { margin: 3px 0 0; color: var(--txt-dim2); font-size: var(--t-2xs); line-height: 1.5; font-weight: 300; }
.research-index { grid-row: 1 / -1; min-height: 0; overflow: auto; padding: clamp(16px,2vw,30px); scrollbar-width: thin; scrollbar-color: #5d88aa66 transparent; }
.app-shell:is([data-scope="library"],[data-scope="history"]) .sidebar { grid-template-rows: minmax(0,1fr); }
.history-library { flex: 1; min-height: 0; overflow: auto; padding: clamp(18px,2.5vw,34px); scrollbar-width: thin; scrollbar-color: #5d88aa66 transparent; }
.history-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.history-kicker { margin: 0 0 9px; color: var(--txt-dim2); font-size: 9px; letter-spacing: .14em; }
.history-heading h2 { margin: 0; font-size: clamp(24px,2.4vw,34px); font-weight: 400; }
.history-heading > span { padding-bottom: 3px; color: var(--txt-dim); font-size: var(--t-xs); white-space: nowrap; }
.history-description { margin: 17px 0 8px; color: var(--txt-dim); font-size: var(--t-xs); line-height: 1.9; }
#history-rows { list-style: none; padding: 0; margin: 0; }
.history-report { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 23px 0; border-top: 1px solid var(--stroke-soft); }
.history-cover { height: 84px; overflow: hidden; border-radius: 8px; background: #b7c8d4; }
.history-cover .story-image { object-fit: cover; }
.history-report-content { min-width: 0; }
.history-report h3 { margin: 7px 0; font-size: var(--t-md); line-height: 1.6; font-weight: 400; }
.history-report .read { min-height: 44px; white-space: nowrap; }
.history-report .report-original-title { font-size: var(--t-xs); overflow-wrap: anywhere; }
.list-update { color: var(--blue); font-weight: 500; }
.history-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 15px 0 0; }
.history-pagination button { min-height: 42px; padding-inline: 23px; background: rgba(255,255,255,.6); }
.history-pagination p { margin: 0; color: var(--txt-dim); font-size: var(--t-xs); }
.index-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 3px 0 18px; border-bottom: 1px solid var(--stroke-soft); }
.index-heading h2 { margin: 0; font-size: var(--t-xl); font-weight: 400; }
.index-heading p { margin: 0; color: var(--txt-dim); font-size: var(--t-xs); }
.index-heading .glass-chip { margin-left: auto; }
.report { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--stroke-soft); }
.report .position { align-self: start; font-size: 25px; font-weight: 300; color: var(--txt-dim2); }
.report h2 { margin: 0 0 8px; font-size: var(--t-md); line-height: 1.5; font-weight: 400; }
.report-name { min-width: 0; }
.report-original-title { margin: 7px 0 0; color: var(--txt-dim2); font-size: var(--t-xs); line-height: 1.65; font-weight: 300; }
.report .read { white-space: nowrap; }
.report .read .icon { width: 16px; height: 16px; }
.illustration-note { margin: 7px 2px 0; flex: none; color: var(--txt-dim2); text-align: end; font-size: var(--t-2xs); font-weight: 300; line-height: 1.7; }
dialog { --focus: var(--accent); padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 90px var(--shadow); }
dialog[open] { animation: reader-enter 240ms ease-out; }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
#reader { width: min(1060px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overscroll-behavior: contain; }
.reader-top { position: sticky; z-index: 1; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 10px clamp(24px, 5vw, 64px); border-bottom: 1px solid var(--line); background: var(--surface); }
.reader-wordmark { font-size: .98rem; font-weight: 700; letter-spacing: -.04em; }
.reader-wordmark span { display: inline-block; margin-inline-start: 12px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); font-size: .7rem; color: var(--muted); letter-spacing: .08em; font-weight: 500; }
.reader-top .quiet { font-size: .7rem; }
.reader-top .quiet span { margin-inline-start: 8px; font-size: 1.05rem; }
.reader-progress { position: absolute; inset: auto 0 -1px; width: 100%; height: 2px; appearance: none; border: 0; background: transparent; }
.reader-progress::-webkit-progress-bar { background: transparent; }
.reader-progress::-webkit-progress-value { background: var(--accent); }
.reader-progress::-moz-progress-bar { background: var(--accent); }
.reader-inner { max-width: 864px; margin-inline: auto; padding: 48px clamp(24px, 5vw, 56px) 64px; overflow-wrap: anywhere; }
#reader-meta { margin: 0; color: var(--muted); font-size: .71rem; line-height: 1.75; }
#reader-title { margin: 20px 0 30px; font: 600 clamp(1.9rem, 3vw, 2.75rem)/1.38 var(--display); letter-spacing: -.025em; }
.article { font-size: 1.02rem; line-height: 1.95; }
.article h2, .article h3, .article h4 { margin: 1.65em 0 .75em; line-height: 1.5; }
.article h2 { border-top: 1px solid var(--line-dark); padding-top: .9em; font-family: var(--display); font-weight: 600; font-size: 1.55rem; }
.article h3 { font-size: 1.09rem; }
.article p { margin: 1em 0; }
.article ul, .article ol { padding-inline-start: 1.5em; }
.article li + li { margin-top: .4em; }
.article blockquote { border-inline-start: 2px solid var(--accent); margin: 1.4em 0; padding: .15em 1.2em; color: var(--muted); }
.table-scroll { overflow: auto; max-width: 100%; margin-block: 1.4em; border-block: 1px solid var(--line-dark); }
.article table { width: 100%; border-collapse: collapse; background: var(--surface); }
.article th, .article td { min-width: 7rem; padding: .85em .9em; font-size: .84rem; line-height: 1.65; text-align: start; }
.article th { font-weight: 650; }
.article thead { background: var(--hover); }
.article tbody tr + tr { border-top: 1px solid var(--line); }
.asra-public-cover { margin: 0 0 32px; }
.asra-public-illustration { width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: center; display: block; aspect-ratio: 16 / 9; }
.asra-public-cover figcaption, .article .asra-visual-source { font-size: .72rem; color: var(--muted); line-height: 1.7; }
.asra-public-cover figcaption { margin-top: 6px; text-align: end; }
.asra-visual { padding: 22px 0; margin-block: 26px 32px; border-block: 1px solid var(--line); }
.asra-visual, .table-scroll { scroll-margin-block-start: 90px; }
.asra-visual > header h3 { margin: 0 0 10px; color: var(--ink); }
.asra-visual > header p, .asra-bar-context { font-size: .8rem; color: var(--muted); }
.asra-public-plot { display: block; width: 100%; min-width: 460px; }
.asra-line-scroll, .asra-bar-scroll { overflow-x: auto; }
.asra-visual summary { color: var(--muted); padding: 8px 0; font-size: .77rem; }
.asra-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.asra-metric-card { min-width: 0; padding: 20px; background: var(--paper); border-top: 2px solid var(--line-dark); }
.asra-metric-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.article .asra-metric-card h4 { margin: 0 0 16px; font-size: .94rem; line-height: 1.5; }
.asra-card-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 14px; }
.asra-card-values > div { min-width: 0; }
.asra-card-values small { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.asra-card-values strong { display: block; font-size: 1.2rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.asra-card-baseline strong { color: var(--muted); }
.article .asra-card-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.7; }
.asra-flow-step h4 { margin-block: 4px 6px; }
.asra-flow-number { display: none; }
#about { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #e6f1f8; border-radius: 24px; color: #173b55; background: #f6fbff; --focus: #175c91; }
.about-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid #dce9f2; }
.about-brand { font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.about-header .quiet { min-height: 36px; color: #38556b; }
.about-content { padding: 30px 36px 38px; }
.about-eyebrow { margin: 0 0 12px; color: #4a6578; font-size: 12px; letter-spacing: .1em; }
#about-title { margin: 0 0 18px; font-size: 30px; font-weight: 500; }
.about-description { margin: 0 0 28px; color: #38556b; font-size: 14px; line-height: 1.9; }
.social-accounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.social-accounts > div { padding: 18px 20px; border: 1px solid #deebf5; border-radius: 16px; background: #edf6fd; }
.social-accounts dt { margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.social-accounts dd { margin: 0; color: #5b7488; font-size: 13px; }
#access { width: min(420px, calc(100% - 32px)); border-top: 3px solid var(--accent); }
#access form { padding: 38px; }
.access-brand { margin: 0 0 35px; font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; }
.access-brand span { margin-inline-start: 8px; color: var(--muted); font-size: .58rem; font-weight: 500; letter-spacing: .13em; }
#access h2 { margin: 0 0 13px; font-family: var(--display); font-weight: 600; font-size: 1.65rem; }
.access-description { margin: 0 0 26px; color: var(--muted); font-size: .8rem; }
#access label { display: inline-block; margin-bottom: 5px; font-size: .72rem; color: var(--muted); }
#access-error { min-height: 1em; color: var(--accent); font-size: .78rem; }
@keyframes reader-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


.reader-actions { display: flex; align-items: center; gap: 20px; }
.reader-top .quiet { gap: 8px; }
.reader-top .quiet .icon { width: 18px; height: 18px; }
#access-code { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--paper); }
.primary { width: 100%; min-height: 46px; border: 0; border-radius: 30px; padding: 12px 20px; color: var(--photo-ink); background: var(--accent); font-size: .87rem; }
.primary:hover { background: var(--ink); }

/* Published readings retain their quiet, paper-like surface and exact article content. */
dialog { --focus: #9e4a35; letter-spacing: 0; }
.reader-top { font-family: "Helvetica Neue", "Hiragino Sans GB", sans-serif; }
.article h2, #reader-title { font-family: "Helvetica Neue", "Hiragino Sans GB", sans-serif; }
@container (max-height: 330px) {
  .hero-original { display: none; }
  .hero-content { padding: 20px 25px; }
  .hero-chips { margin-bottom: 15px; }
  .hero-story h2 { font-size: clamp(22px,4cqi,34px); }
  .hero-read { margin-top: 18px; }
}
@container (max-width: 620px) {
  .hero-content { width: 88%; padding: 25px; }
  .hero-story h2 { font-size: clamp(25px,5.7cqi,38px); }
  .hero-original { font-size: 12px; }
  .hero-chips { margin-bottom: 18px; }
  .cover-content { padding: 12px; }
  .cover-story h2 { font-size: 12px; }
  .cover-category { font-size: 9px; top: 9px; left: 9px; }
}
@media (max-width: 1180px) {
  :root { --wincols: minmax(205px,25%) minmax(0,1fr); }
  .workspace-label { display: none; }
  .workspace-meta { align-items: start; }
  .workspace-header { grid-template-columns: minmax(0,1fr); }
  .hero-content { width: 90%; }
}
@media (max-width: 1130px) {
  :root { --gutter: 20px; }
  .app-shell { padding-bottom: 90px; }
  .spatial-rail { position: fixed; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); flex-direction: row; gap: 6px; padding: 7px 10px; background: rgba(235,247,255,.80); box-shadow: inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(255,255,255,.08),0 2px 5px rgba(40,89,126,.08),0 18px 44px rgba(40,89,126,.16); backdrop-filter: blur(38px) saturate(1.45) brightness(1.08); }
  .spatial-rail::before { content: ""; position: absolute; top: 0; left: 12%; width: 76%; height: 1px; background: linear-gradient(90deg,transparent,#ffffff77,transparent); filter: blur(.5px); pointer-events: none; }
  .rail-button { min-width: 64px; min-height: 50px; padding: 7px 12px; }
  .rail-button[aria-pressed="true"] { background: rgba(255,255,255,.90); box-shadow: inset 0 .5px 0 #ffffffaa; }
  .spatial-toolbar { width: 100%; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  :root { --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-2xs: 11px; --gap: 14px; }
  .app-shell { height: auto; min-height: 100dvh; grid-template-rows: auto auto; padding-top: 14px; }
  .window { min-height: 0; padding: 16px; }
  .window-body { grid-template-columns: minmax(0,1fr); }
  .workspace-header { grid-template-columns: minmax(0,1fr); min-height: 85px; }
  .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; order: 2; align-items: start; }
  .shortlist, .filter-panel { padding: 16px; }
  .shortlist ol { max-height: 310px; }
  .filter-panel { max-height: 390px; }
  .short-report { grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding-block: 9px; }
  .short-report h3 { font-size: 12px; }
  .panel-heading h2, .filters > summary { font-size: 14px; }
  #results { order: 1; }
  .ranking { display: flex; flex-direction: column; }
  .hero-story { min-height: 390px; height: 390px; flex: none; }
  .hero-content { width: 78%; padding: 30px; }
  .hero-story h2 { font-size: 34px; }
  .hero-original { font-size: 13px; }
  .shelf { margin-top: 7px; }
  .cover-grid { min-height: 300px; }
  .cover-story { min-height: 300px; }
  .cover-story h2 { font-size: 13px; }
  .research-index { max-height: none; overflow: visible; }
  .history-library { overflow: visible; min-height: 300px; }
  .app-shell:is([data-scope="library"],[data-scope="history"]) .sidebar { grid-template-columns: minmax(0,1fr); }
  .report h2 { font-size: 17px; }
  .results-info { min-height: 30px; }
  .illustration-note { margin-top: 12px; }
}
@media (max-width: 680px) {
  :root { --gutter: 12px; }
  .spatial-toolbar { gap: 9px; padding-inline: 12px 7px; }
  .brand { gap: 5px; }
  .brand strong { font-size: 14px; }
  .brand img { width: 23px; height: 22px; }
  .workspace-header { grid-template-columns: minmax(0,1fr); gap: 10px; padding-bottom: 10px; }
  #categories { justify-content: space-between; }
  #categories button { min-height: 34px; font-size: 12px; padding-inline: 10px; }
  #categories button:not([aria-pressed="true"]) { color: var(--txt-dim); }
  #subcategories button { min-height: 40px; padding-inline: 10px; font-size: 12px; }
  .hero-story { min-height: 360px; height: 360px; }
  .hero-content { width: 96%; padding: 26px; }
  .hero-story h2 { font-size: 30px; }
  .hero-chips { margin-bottom: 22px; }
  .cover-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 315px; padding: 2px 2px 6px; scrollbar-width: none; }
  .cover-story { flex: 0 0 37%; min-height: 305px; scroll-snap-align: start; }
  .cover-story h2 { font-size: 14px; }
  .sidebar { grid-template-columns: 1fr; }
  .shortlist ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; max-height: none; }
  .short-report { grid-template-columns: 32px minmax(0,1fr); gap: 8px; }
  .short-cover { height: 48px; }
  .short-meta { font-size: 10px; }
  .filter-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  #time-panel { grid-column: 1 / -1; }
  #times { display: flex; flex-wrap: wrap; gap: 5px; }
  #times button { flex: 1 0 auto; width: auto; min-height: 38px; }
  .filter-selection { max-width: 85px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filter-panel { max-height: none; }
  .report { grid-template-columns: 28px minmax(0,1fr); gap: 8px 12px; }
  .report .read { grid-column: 2; justify-self: start; min-height: 34px; }
  .report h2 { font-size: 16px; }
  .report .position { font-size: 22px; }
  .index-heading p { width: 100%; order: 3; }
  .asra-card-grid { grid-template-columns: minmax(0,1fr); }
  #reader { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .reader-top { padding-inline: 20px; min-height: 61px; gap: 8px; }
  .reader-top .quiet { min-height: 44px; }
  .reader-actions { gap: 16px; }
  .reader-wordmark span { display: none; }
  .reader-inner { padding: 28px 22px 48px; }
  #reader-title { font-size: 1.85rem; margin-top: 18px; }
  .article { font-size: 1rem; }
  .article h2 { font-size: 1.4rem; }
  .asra-visual { padding-block: 18px; }
  .asra-metric-card { padding: 18px; }
  #access form { padding: 30px 25px; }
  #access-code { font-size: 1rem; }
}
@media (max-width: 520px) {
  :root { --gutter: 9px; }
  .window { padding: 11px; }
  .workspace-header { gap: 8px; }
  .spatial-toolbar { min-height: 45px; }
  .spatial-toolbar .search { padding-inline: 10px; gap: 6px; }
  .search input { font-size: 12px; }
  .rail-button { min-width: 0; flex: 1 1 0; padding-inline: 3px; }
  .spatial-rail { gap: 0; padding-inline: 8px; width: min(392px,calc(100vw - 18px)); }
  .toolbar-refresh { width: 30px; height: 30px; }
  .results-info { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 5px; }
  .results-actions { margin-left: auto; }
  .history-library { padding: 21px 17px; }
  .history-heading { align-items: start; gap: 10px; }
  .history-heading > span { padding-top: 28px; font-size: 10px; }
  .history-description { font-size: 11px; }
  .history-report { grid-template-columns: 45px minmax(0,1fr); gap: 7px 12px; padding-block: 20px; align-items: start; }
  .history-cover { height: 64px; margin-top: 4px; }
  .history-report h3 { font-size: 15px; }
  .history-report .metadata { font-size: 10px; gap: 2px 7px; }
  .history-report .read { grid-column: 2; justify-self: start; }
  .history-report .report-original-title { font-size: 11px; }
  .status, .availability { font-size: 10px; }
  .hero-story { min-height: 375px; height: 375px; }
  .hero-content { width: 100%; padding: 23px 21px; }
  .hero-story h2 { font-size: 29px; line-height: 1.35; margin-bottom: 16px; }
  .hero-chips { margin-bottom: 29px; gap: 5px; }
  .hero-chips .glass-chip { padding-inline: 9px; font-size: 10px; }
  .hero-story .metadata { font-size: 11px; gap: 3px 8px; }
  .hero-original { margin-bottom: 20px; font-size: 11px; }
  .hero-read { min-height: 42px; font-size: 13px; }
  .cover-story { flex-basis: 46%; min-height: 290px; }
  .cover-grid { min-height: 300px; }
  .cover-content { padding: 15px; }
  .cover-story h2 { font-size: 14px; }
  .cover-category { font-size: 10px; }
  .cover-position { font-size: 24px; }
  .cover-issuer, .cover-source { font-size: 10px; }
  .shortlist ol { display: block; }
  .short-report h3 { font-size: 13px; }
  .short-cover { height: 53px; }
  .short-report { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .filter-inner { display: block; }
  #times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #times button { width: 100%; }
  .about-header { padding: 16px 22px; }
  .about-content { padding: 25px 23px 30px; }
  .social-accounts { gap: 9px; }
  .social-accounts > div { padding: 16px; }
  .illustration-note { text-align: start; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
