@import url("fonts/fonts.021f4dece787.css");

:root {
  color-scheme: light;
  --paper:#f3f1ea; --card:#fff; --ink:#111110; --dim:#69665e;
  --soft:#e9e6dc; --field:#faf9f6; --rule:#dcd8cd; --field-focus:#8a877c;
  --accent:#d4f24d; --accent-hover:#c6e639; --accent-ink:#111110; --lede:#f3f6e7;
  --error:#8d2f23; --error-bg:#faeee8; --link:#496000;
  --radius:20px; --control-radius:10px; --control-height:40px;
  --card-padding:24px; --card-gap:16px; --field-gap:8px; --form-gap:24px;
  --input-font:16px; --nav-height:64px; --sans:Inter,Arial,sans-serif; --mono:Cousine,monospace;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#141414; --card:#1c1c1c; --ink:#ededed; --dim:#ababab;
  --soft:#292929; --field:#222222; --rule:#3d3d3d; --field-focus:#767676;
  --accent:#d4f24d; --accent-hover:#c6e639; --accent-ink:#111110;
  --lede:#252525; --error:#ffb4ab; --error-bg:#382222; --link:#d4f24d;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-height) + 100px); }
html:has(.reader-layout) {
  --reader-header-height:var(--nav-height); --reader-menu-height:0px;
  scroll-padding-top:calc(var(--reader-header-height) + var(--reader-menu-height));
}
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.5 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-underline-offset:4px; }
button,input,textarea { font:inherit; }
button,summary { cursor:pointer; }
a,button,input,textarea,summary { outline-offset:4px; -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--ink); }
::selection { background:var(--accent); color:var(--accent-ink); }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:28px; line-height:1.2; letter-spacing:-.03em; font-weight:600; }
h2 { font-size:24px; line-height:1.3; letter-spacing:-.03em; font-weight:600; }
.muted { color:var(--dim); }
.shell { padding:0 24px 48px; margin:auto; }
.nav { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:24px; min-height:var(--nav-height); padding:8px 0; background:var(--paper); border-bottom:1px solid var(--rule); }
.brand { display:block; flex-shrink:0; text-decoration:none; font-size:24px; font-weight:800; line-height:1; letter-spacing:-1.2px; }
.brand em { font-weight:500; color:var(--dim); }
.primary-nav { display:flex; align-items:center; }
.nav-link { display:inline-flex; align-items:center; min-height:var(--control-height); padding:9px 14px; border:1px solid transparent; border-radius:999px; background:var(--card); text-decoration:none; font-size:14px; line-height:20px; font-weight:500; }
.nav-link:hover { background:var(--soft); }
.nav-account { display:flex; align-items:center; gap:8px; margin-left:auto; }
.theme-toggle,.account-menu>summary { display:grid; place-items:center; width:var(--control-height); height:var(--control-height); padding:10px; border:0; border-radius:50%; color:var(--ink); background:var(--soft); list-style:none; }
.theme-toggle:hover,.account-menu>summary:hover { background:var(--rule); }
.theme-toggle svg,.account-menu svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .icon-sun { display:none; }
[data-theme="dark"] .theme-toggle .icon-sun { display:block; }
[data-theme="dark"] .theme-toggle .icon-moon { display:none; }
.account-menu { position:relative; }
.account-menu>summary::-webkit-details-marker { display:none; }
.account-popover { --menu-radius:12px; --menu-padding:4px; position:absolute; right:0; top:calc(var(--control-height) + 8px); min-width:192px; padding:var(--menu-padding); background:var(--card); border:1px solid var(--rule); border-radius:var(--menu-radius); box-shadow:0 10px 35px #0002; }
.account-popover form { margin:0; }
.account-popover a,.account-popover button { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:var(--control-height); padding:6px 8px; border:0; border-radius:calc(var(--menu-radius) - var(--menu-padding) - 1px); text-align:left; text-decoration:none; background:transparent; color:var(--ink); font-size:14px; line-height:20px; }
.account-popover a:hover,.account-popover button:hover { background:var(--soft); }
.account-popover a:focus-visible,.account-popover button:focus-visible { outline:none; background:var(--soft); }
@media(forced-colors:active) {
  .account-popover a:focus-visible,.account-popover button:focus-visible { forced-color-adjust:none; background:Highlight; color:HighlightText; }
}
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:var(--control-height); padding:9px 14px; border:1px solid transparent; border-radius:999px; text-decoration:none; font-size:14px; font-weight:500; line-height:20px; }
.button-accent { background:var(--accent); color:var(--accent-ink); }
.button-accent:hover { background:var(--accent-hover); }
.button-dark { background:var(--ink); color:var(--paper); }
.button-dark:hover { opacity:.85; }
.button-soft { background:var(--soft); color:var(--ink); }
.button-soft:hover { background:var(--rule); }
.button-small { padding:9px 14px; }
.login-submit { width:100%; }
.button:disabled { cursor:wait; opacity:.65; }
.back-link { display:inline-flex; align-items:center; min-height:var(--control-height); color:var(--dim); text-decoration:none; font-size:14px; }
.skip { position:fixed; top:-90px; left:20px; padding:15px; background:var(--accent); color:var(--accent-ink); z-index:99; }
.skip:focus { top:16px; }
.sr-only { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.messages { margin-top:20px; }
.message { padding:14px 18px; background:var(--lede); border-radius:12px; font-size:14px; margin:0 0 12px; }
.message.error { background:var(--error-bg); color:var(--error); }
.login-layout { max-width:384px; margin:64px auto; background:var(--card); border:1px solid var(--rule); border-radius:var(--radius); }
.login-card { padding:var(--card-padding); }
.login-card h1 { font-size:24px; line-height:32px; font-weight:600; letter-spacing:-.025em; margin:0 0 24px; }
.auth-form { display:flex; flex-direction:column; gap:var(--form-gap); }
.field label { display:block; margin-bottom:var(--field-gap); font-size:14px; line-height:14px; font-weight:500; }
.auth-form input,.search input,.request-form textarea { display:block; width:100%; min-width:0; height:var(--control-height); padding:7px 12px; border:1px solid var(--rule); border-radius:var(--control-radius); background:var(--field); color:var(--ink); font-size:var(--input-font); line-height:24px; }
.auth-form input:focus,.search input:focus,.request-form textarea:focus { outline:none; border-color:var(--field-focus); }
@media(forced-colors:active) {
  .auth-form input:focus,.search input:focus,.request-form textarea:focus { border-color:Highlight; }
}
.field-error,.errorlist { color:var(--error); font-size:14px; }
.field-error { padding:12px; background:var(--error-bg); border-radius:8px; margin-bottom:0; }
.errorlist { padding-left:20px; margin:10px 0 16px; }
.helptext { margin-top:10px; color:var(--dim); font-size:13px; line-height:1.6; }
.helptext ul { padding-left:18px; margin:0; }
.helptext li { margin:6px 0; }
.simple-card { max-width:600px; margin:32px auto; padding:24px; background:var(--card); border:1px solid var(--rule); border-radius:var(--radius); }
.simple-card>.back-link { margin-bottom:16px; }
.simple-card h1 { font-size:16px; line-height:22px; letter-spacing:0; margin-bottom:16px; overflow-wrap:anywhere; }
.simple-card>p { font-size:14px; margin-bottom:24px; }
.workspace-heading { width:100%; min-width:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; padding:var(--card-padding); border-bottom:1px solid var(--rule); }
.workspace-heading h1 { display:flex; align-items:center; gap:12px; margin:0; }
.count { min-width:24px; height:24px; padding:0 8px; display:inline-grid; place-items:center; border-radius:6px; background:var(--soft); color:var(--dim); font:12px var(--mono); letter-spacing:0; }
.workspace-layout { --composer-width:340px; display:grid; grid-template-columns:minmax(0,1fr) var(--composer-width); align-items:start; gap:24px; margin-top:24px; }
.library,.request-workspace { min-width:0; border:1px solid var(--rule); border-radius:var(--radius); background:var(--card); }
.library { overflow:hidden; }
.request-workspace { padding:var(--card-padding); }
.search { display:flex; gap:8px; width:max-content; max-width:100%; }
.search input { width:calc(var(--composer-width) - 2 * var(--card-padding) - 2px); }
.search .button { flex-shrink:0; }
input::placeholder,textarea::placeholder { color:var(--dim); opacity:1; }
.search-context { display:flex; gap:16px; padding:16px var(--card-padding) 0; font-size:14px; overflow-wrap:anywhere; }
.report-list { display:grid; }
.report-card { display:grid; grid-template-columns:minmax(0,1fr) var(--control-height); gap:12px 24px; align-items:start; padding:var(--card-padding); text-decoration:none; }
.report-card:not(:last-child) { border-bottom:1px solid var(--rule); }
.report-card:hover { background:var(--field); }
.report-card:focus-visible { outline-offset:-3px; }
.card-identity { grid-column:1; grid-row:1; }
.card-summary { grid-column:1; grid-row:2; max-width:72ch; }
.report-card h2 { margin:0 0 8px; font-size:24px; overflow-wrap:anywhere; }
.report-card>p { font-size:14px; line-height:1.6; margin:0; color:var(--dim); }
.report-card .card-subtitle { font-size:13px; margin:0; color:var(--dim); line-height:1.7; }
.card-arrow { grid-column:2; grid-row:1 / 3; align-self:center; display:grid; place-items:center; width:var(--control-height); height:var(--control-height); background:var(--accent); color:var(--accent-ink); border-radius:50%; font-size:18px; }
.request-panel { scroll-margin-top:16px; }
.request-label { display:block; margin-bottom:var(--field-gap); font-size:14px; font-weight:500; line-height:20px; cursor:text; }
.request-form textarea { height:auto; min-height:88px; resize:vertical; }
.request-actions { margin-top:16px; }
.request-actions .button { width:100%; border-radius:var(--control-radius); }
.request-actions .button:disabled { opacity:1; cursor:not-allowed; background:var(--soft); color:var(--dim); border-color:transparent; }
.saved-section { margin-top:24px; }
.saved-section:empty { margin-top:0; }
.saved-section h2 { font-size:16px; line-height:22px; margin-bottom:16px; }
.saved-request { position:relative; padding:var(--card-padding); margin-top:12px; border:1px solid var(--rule); border-radius:var(--radius); }
.saved-request time { font:12px var(--mono); color:var(--dim); }
.saved-request h3 { font-size:14px; line-height:1.6; font-weight:500; margin:8px 0 0; overflow-wrap:anywhere; white-space:pre-line; }
.delete-request { font-size:14px; margin-top:8px; }
.delete-request summary { display:inline-flex; align-items:center; min-height:var(--control-height); color:var(--dim); text-decoration:underline; }
.delete-request summary::-webkit-details-marker { display:none; }
.delete-request form { padding:12px; background:var(--soft); border-radius:10px; }
.delete-request p { margin-bottom:10px; }
.empty-state { padding:var(--card-padding); }
.empty-state h2 { font-size:16px; margin:0; }
.report-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; margin-bottom:16px; }
.reader-actions { display:flex; flex-wrap:wrap; gap:8px; }
.reader-actions .button { color:var(--ink); }
.reader-layout { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; gap:24px; margin-top:24px; }
.reader-nav { position:sticky; top:calc(var(--reader-header-height, var(--nav-height)) + 16px); max-height:calc(100dvh - var(--reader-header-height, var(--nav-height)) - 32px); overflow:auto; border:1px solid var(--rule); border-radius:var(--radius); background:var(--card); padding:8px; }
.chapter-toggle { display:none; }
.chapter-nav { display:flex; flex-direction:column; gap:4px; }
.chapter-nav a { display:flex; align-items:center; min-height:var(--control-height); padding:6px 10px; border-radius:var(--control-radius); text-decoration:none; font-size:14px; line-height:20px; color:var(--dim); }
.chapter-nav a:hover { background:var(--soft); color:var(--ink); }
.chapter-nav a[aria-current="location"] { background:var(--accent); color:var(--accent-ink); }
.report-paper { min-width:0; border-radius:var(--radius); background:var(--card); }
.report-body { padding:40px; font-size:18px; line-height:1.75; overflow-wrap:anywhere; }
.reader-end-space { height:var(--reader-end-space, 0px); }
.report-body h1 { font-size:36px; line-height:1.2; margin:0 0 16px; letter-spacing:-.03em; }
.report-heading h1 { min-width:0; max-width:100%; margin:0; }
.report-body>.report-title-row+p,.report-body>h1+p { font-size:15px; color:var(--dim); margin-bottom:30px; }
.report-body>.report-title-row+p strong,.report-body>h1+p strong { font-weight:500; }
.report-body h2 { font-size:29px; line-height:1.3; margin:44px 0 20px; scroll-margin-top:16px; }
.report-body h2:first-of-type { margin-top:28px; }
.report-body>p.report-verdict { padding:20px 24px; background:var(--lede); border-left:4px solid var(--accent); border-radius:0 12px 12px 0; }
.report-body h3 { font-size:22px; line-height:1.4; margin:32px 0 16px; }
.report-body p { margin:0 0 22px; }
.report-body ul,.report-body ol { padding-left:25px; margin:20px 0 26px; }
.report-body li { margin:8px 0; }
.report-body a { color:var(--link); text-decoration-thickness:1px; }
.report-body a:hover { text-decoration-thickness:2px; }
.report-body blockquote { border-left:3px solid var(--accent); background:var(--lede); padding:16px 20px; margin:24px 0; }
.report-body blockquote p:last-child { margin-bottom:0; }
.table-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; margin:28px 0; border:1px solid var(--rule); border-radius:var(--control-radius); overscroll-behavior-x:contain; }
.report-body table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.6; }
.report-body td,.report-body th { padding:14px; border-bottom:1px solid var(--rule); min-width:100px; text-align:left; vertical-align:top; overflow-wrap:normal; }
.report-body table>:last-child>tr:last-child>* { border-bottom:0; }
.report-body th { background:var(--soft); font-weight:600; }
.report-body code { background:var(--soft); padding:2px 5px; border-radius:4px; font:.85em var(--mono); }
.report-body pre { max-width:100%; overflow:auto; padding:18px; border-radius:10px; background:var(--soft); }
.report-body hr { border:0; border-top:1px solid var(--rule); margin:32px 0; }
@media(min-width:1600px) { .report-body { font-size:20px; padding:44px; } }
@media(max-width:1000px) {
  .workspace-layout { --composer-width:300px; }
  .reader-layout { display:flex; flex-direction:column; gap:14px; }
  .reader-nav { position:static; top:var(--reader-header-height, var(--nav-height)); z-index:20; width:100%; max-height:none; overflow:visible; padding:0; border:0; border-radius:0; background:var(--paper); }
  .reader-navigation-ready .reader-nav { position:sticky; }
  .reader-navigation-ready .chapter-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:var(--control-height); padding:7px 12px; border:1px solid var(--rule); border-radius:var(--control-radius); background:var(--card); color:var(--ink); font-size:14px; line-height:20px; text-align:left; }
  .chapter-toggle:hover { background:var(--soft); }
  .chapter-toggle:focus-visible { outline:none; border-color:var(--field-focus); background:var(--soft); }
  .chapter-current { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .chapter-toggle svg { flex-shrink:0; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .chapter-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
  .reader-navigation-ready .chapter-nav { --menu-radius:12px; --menu-padding:4px; display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; max-height:var(--chapter-menu-height, 0px); overflow-y:auto; overscroll-behavior:contain; padding:var(--menu-padding); border:1px solid var(--rule); border-radius:var(--menu-radius); background:var(--card); box-shadow:0 10px 35px #0002; }
  .reader-navigation-ready .chapter-toggle[aria-expanded="true"]+.chapter-nav { display:flex; }
  .reader-navigation-ready .chapter-nav a { border-radius:calc(var(--menu-radius) - var(--menu-padding) - 1px); }
  .reader-navigation-ready .chapter-nav a:focus-visible { outline:none; background:var(--soft); color:var(--ink); }
  .report-paper { width:100%; }
  .report-body { padding:32px; }
}
@media(max-width:760px) {
  :root { --nav-height:64px; --radius:18px; --control-height:44px; --input-font:16px; }
  .shell { padding:0 16px 32px; }
  .nav { gap:12px; padding:8px 0; }
  .brand { font-size:22px; }
  .nav-account { gap:6px; }
  .login-layout { margin:32px auto; }
  .simple-card { padding:24px; margin:28px auto; }
  .workspace-heading { flex-direction:column; align-items:stretch; gap:16px; }
  .search { width:100%; }
  .search input { flex:1; width:0; }
  .workspace-layout { display:flex; flex-direction:column; }
  .library,.request-workspace { width:100%; }
  .card-summary { grid-column:1 / -1; }
  .card-arrow { grid-row:1; }
  .saved-section { margin-top:20px; }
  .report-body { padding:26px 24px 32px; font-size:16px; line-height:1.8; }
  .report-body h1 { font-size:32px; margin-bottom:16px; }
  .report-heading h1 { margin:0; }
  .report-body>.report-title-row+p,.report-body>h1+p { font-size:13px; line-height:1.65; margin-bottom:24px; }
  .report-body h2 { font-size:25px; margin-top:34px; }
  .report-body>p.report-verdict { padding:16px; }
  .report-body h3 { font-size:21px; }
  .report-body th,.report-body td { padding:11px; }
}
@media(max-width:359px) {
  .shell { padding-left:12px; padding-right:12px; }
  .nav { gap:8px; }
  .brand { font-size:21px; }
  .nav-account { gap:4px; }
  .nav-link { padding:5px 8px; }
  .report-body { padding-left:20px; padding-right:20px; }
  .report-body h1 { font-size:30px; }
}
@media(pointer:coarse) {
  :root { --control-height:44px; --input-font:16px; }
  .nav { padding-top:8px; padding-bottom:8px; }
}
@media(max-width:1000px) and (forced-colors:active) {
  .chapter-toggle:focus-visible { border-color:Highlight; }
  .reader-navigation-ready .chapter-nav a:focus-visible { forced-color-adjust:none; background:Highlight; color:HighlightText; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}
@page { size:A4; margin:16mm; }
@media print {
  :root,:root[data-theme="dark"] { color-scheme:light; --paper:#fff; --card:#fff; --ink:#111; --dim:#444; --soft:#eee; --field:#fff; --rule:#ccc; --lede:#f6f6f0; --link:#111; }
  html { scroll-behavior:auto; }
  .shell { padding:0; }
  .nav,.skip,.messages,.reader-actions,.reader-nav { display:none!important; }
  .reader-layout { display:block; }
  .report-paper { border-radius:0; }
  .report-body { padding:0; font-size:11pt; line-height:1.65; }
  .reader-end-space { display:none; }
  .report-body h1 { font-size:27pt; }
  .report-body>.report-title-row+p,.report-body>h1+p { font-size:10pt; }
  .report-body h2 { font-size:18pt; break-after:avoid; }
  .report-body h3 { font-size:14pt; break-after:avoid; }
  .report-body>p.report-verdict { padding:12px 14px; }
  .table-scroll { overflow:visible; border-radius:0; }
  .report-body table { font-size:9pt; }
  .report-body th,.report-body td { min-width:0; padding:7px; }
  .report-body tr { break-inside:avoid; }
  .report-body pre { white-space:pre-wrap; overflow:visible; }
}
/* Public report library has no private research-request sidebar. */
.workspace-layout.public-library { grid-template-columns: minmax(0, 1fr); }

/* Owner controls stay outside report links and never appear in print. */
.report-entry { border-bottom:1px solid var(--rule); }
.report-entry:last-child { border-bottom:0; }
.report-entry .report-card { border-bottom:0; }
.report-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.report-entry .report-controls { padding:0 var(--card-padding) var(--card-padding); }
.report-controls form { margin:0; }
.report-status { display:inline-flex; align-items:center; min-height:32px; margin-right:auto; padding:4px 10px; border-radius:6px; background:var(--lede); color:var(--link); font-size:12px; font-weight:500; }
.report-status.status-hidden { background:var(--soft); color:var(--dim); }
.report-filters { display:flex; flex-wrap:wrap; gap:4px 8px; padding:16px var(--card-padding); border-bottom:1px solid var(--rule); }
.report-filters a { display:inline-flex; align-items:center; gap:6px; min-height:var(--control-height); padding:8px 12px; border-radius:999px; text-decoration:none; color:var(--dim); }
.report-filters a:hover { background:var(--soft); }
.report-filters a[aria-current="page"] { background:var(--soft); color:var(--ink); }
.report-filters span { font:12px var(--mono); }
.button-danger { background:var(--error-bg); color:var(--error); }
.button-danger:hover { border-color:var(--error); }
.report-admin { margin-top:24px; padding:16px 24px; border:1px solid var(--rule); border-radius:var(--radius); background:var(--card); }
.report-admin p { margin:12px 0 0; }
.delete-report-confirm .delete-report-name { font-weight:600; overflow-wrap:anywhere; }
.confirm-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
@media(max-width:760px) {
  .report-filters { gap:4px; padding:12px 16px; }
  .report-filters a { padding:8px 10px; font-size:13px; }
  .report-admin { padding:16px; }
}
@media print { .report-admin,.report-controls,.report-filters { display:none!important; } }
