@font-face{font-family:"Pretendard Variable";src:url("/fonts/PretendardVariable.woff2") format("woff2");font-weight:45 920;font-display:swap}
.research-home *{box-sizing:border-box}
.research-home body{margin:0;background:#fff;color:var(--ink);font:16px/1.6 var(--sans)}
.research-home button,.research-home input,.research-home textarea,.research-home select{font:inherit}
.research-home button{cursor:pointer}
.research-home button,.research-home a{-webkit-tap-highlight-color:transparent}
.research-home a{color:inherit;text-decoration:none}
.research-home button{border:0}
.research-home button:disabled{cursor:default;opacity:.5}
.research-home [hidden]{display:none!important}
.research-home :focus-visible{outline:3px solid #4768ae;outline-offset:5px}
.research-home .sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.research-home .skip{position:fixed;top:0;left:20px;transform:translateY(-150%);background:white;z-index:20;padding:12px}
.research-home .skip:focus{transform:none}
.research-home .preview-note{text-align:center;margin:0;padding:7px 16px;font-size:11px;color:var(--muted);letter-spacing:.02em}
.research-home .header{position:absolute;z-index:2;top:58px;left:64px;right:64px;display:flex;align-items:center;justify-content:space-between}
.research-home .brand{display:flex;gap:10px;align-items:center;font:25px/1 var(--serif);letter-spacing:-.03em}
.research-home .brand img{width:48px;height:48px;flex:none;border-radius:50%;object-fit:cover;background:white;padding:3px;border:1px solid var(--line)}
.research-home .menu-button,.research-home .primary{background:var(--navy);color:#fff;border-radius:999px;padding:12px 24px}
.research-home .menu-button{display:flex;gap:18px;align-items:center;font-size:14px}
.research-home .home{padding:0 24px}
.research-home .hero{background:var(--paper);border-radius:48px;min-height:840px;text-align:center;padding:134px 32px 42px}
.research-home .eyebrow{font-size:11px;letter-spacing:.15em;margin:0 0 14px;color:var(--muted)}
.research-home h1,.research-home h2{font-weight:400;letter-spacing:-.035em;margin:0;line-height:1.18}
.research-home .hero h1{font-family:var(--sans);font-weight:500;font-size:clamp(40px,5.1vw,72px);letter-spacing:-.055em}
.research-home .mobile-break{display:none}
.research-home .intro{font-size:20px;color:var(--muted);margin:20px 0 48px}
.research-home .hero-stage{position:relative;width:min(100%,720px);margin:auto;aspect-ratio:16/10}
.research-home .editorial{position:absolute;inset:0;background:#d4dcd9;overflow:hidden;border-radius:36px;text-align:left;box-shadow:0 26px 56px #000c1f1c}
.research-home .editorial-scene{position:absolute;inset:0;background:#d4dcd9;opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity 280ms cubic-bezier(.22,1,.36,1),transform 280ms cubic-bezier(.22,1,.36,1);}
.research-home .editorial-scene.is-active{opacity:1;transform:none;}
.research-home .scene-prices{background:#e0e5ed;}
.research-home .scene-earnings{background:#e8e1d7;}
.research-home .scene-prices .paper-back{background:#e9eef6;}
.research-home .scene-earnings .paper-back{background:#f1eadf;}
.research-home .paper svg .comparison-line{stroke:#91a5bf;stroke-dasharray:6 6;}
.research-home .scene-prices .paper svg path{stroke:#47678f;}
.research-home .paper svg rect{fill:#7792b3;stroke:none;rx:4px;}
.research-home .paper svg.mini-bars{height:55px;margin-bottom:12px;}
.research-home .paper svg.earnings-bars rect{fill:#b1966d;}
.research-home .paper svg.earnings-bars .profit-bar{fill:#485f7c;}
.research-home .scene-prices .visual-caption{background:#e0e5ede8;}
.research-home .scene-earnings .visual-caption{background:#e8e1d7e8;}
@media(prefers-reduced-motion:reduce){.research-home .editorial-scene{transition:none!important;transform:none;}}
.research-home .paper{position:absolute;width:54%;height:75%;background:#fff;padding:24px;border-radius:5px;box-shadow:0 14px 24px #000c1f1b}
.research-home .paper-back{left:9%;top:32%;transform:rotate(-11deg);background:#e8eee9}
.research-home .paper-front{right:9%;top:28%;transform:rotate(9deg)}
.research-home .paper span{font-size:8px;letter-spacing:.1em;color:var(--muted);display:block}
.research-home .paper b{font-size:24px;display:block;margin:12px 0 20px;font-weight:500}
.research-home .paper p,.research-home .paper small{font-size:12px;color:var(--muted)}
.research-home .paper svg{width:100%;height:110px;overflow:visible}
.research-home .paper svg path{fill:none;stroke:#406758;stroke-width:2}
.research-home .paper-lines{height:55px;background:repeating-linear-gradient(transparent 0 12px,#e5e8e7 12px 13px)}
.research-home .visual-caption{position:absolute;left:24px;bottom:18px;font-size:11px;color:#36483f;background:#d4dcd9e8;padding:3px 8px;border-radius:8px}
.research-home .landing-composer{position:absolute;inset:16px 16px auto;display:flex;align-items:center;gap:14px;background:#fff;border-radius:999px;padding:14px 14px 14px 28px;box-shadow:0 8px 24px #000c1f19}
.research-home .landing-composer textarea{flex:1;min-width:0;resize:none;border:0;background:transparent;color:var(--ink);line-height:1.5;max-height:128px;padding:8px 0}
.research-home .send{width:48px;height:48px;border-radius:50%;background:var(--navy);color:white;font-size:25px;flex:none}
.research-home .hero-tools{display:flex;justify-content:center;align-items:center;gap:18px;margin:26px 0;color:var(--muted);font-size:15px}
.research-home .hero-tools button{border-radius:50%;width:48px;height:48px;flex:none;font-size:22px;line-height:1;background:#e4e7e3;color:var(--ink);transition:background-color 140ms ease,color 140ms ease}
.research-home .hero-tools button:hover:not(:disabled){background:#d9e2ef;color:var(--navy)}
.research-home .hero-tools button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:767px){.research-home .hero-tools{gap:12px;}}
@media(max-width:360px){.research-home .hero-tools{gap:8px;font-size:14px;}.research-home .hero-tools button{width:44px;height:44px;font-size:21px;}}
.research-home .home-shortcuts{display:flex;gap:24px;justify-content:center;font-size:13px}
.research-home .home-shortcuts button,.research-home .text-link{background:none;color:var(--ink);padding:8px 0;font-weight:600}
.research-home .home-shortcuts span{margin-left:16px}
.research-home .manifesto{text-align:center;margin:130px auto 90px;font-size:clamp(22px,3.2vw,40px);line-height:1.5;letter-spacing:-.025em;color:var(--muted)}
.research-home .manifesto strong{font-weight:500;color:var(--ink)}
.research-home .feature{max-width:1000px;margin:0 auto 130px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:100px}
.research-home .feature-art{aspect-ratio:1;border-radius:36px;background:#f2f3f1;padding:36px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.research-home .art-label{position:absolute;top:26px;left:30px;font-size:10px;letter-spacing:.14em;color:var(--muted)}
.research-home .folder{padding:17px 24px;border-radius:16px;background:white;margin:8px 0;border:1px solid #e5e8e5;display:flex;justify-content:space-between;align-items:center}
.research-home .folder b{font-weight:500}
.research-home .folder small{font-size:11px;color:var(--muted)}
.research-home .folder:nth-child(2){transform:translateX(-20px)}
.research-home .folder:nth-child(4){transform:translateX(20px)}
.research-home .chart-art svg{width:100%;overflow:visible}
.research-home .chart-art path{fill:none;stroke:var(--navy);stroke-width:3}
.research-home .chart-art .second{stroke:#a4b9ac}
.research-home .chart-art .grid{stroke:#dce1dd;stroke-width:1}
.research-home .chart-art small{font-size:12px;margin-top:20px;color:var(--muted)}
.research-home .question-art{background:#e9edeb;text-align:center}
.research-home .big-question{font:140px/1 var(--serif);color:var(--navy)}
.research-home .question-art p{font-size:22px;line-height:1.5}
.research-home .feature-copy h2{font-size:40px;font-weight:500;letter-spacing:-.04em}
.research-home .feature-copy>p:not(.eyebrow){font-size:16px;color:var(--muted);line-height:1.9;margin:22px 0}
.research-home .text-link{font-size:13px}
.research-home .closing{text-align:center;padding:36px 0 110px}
.research-home .closing h2{font:500 52px/1.25 var(--sans);margin-bottom:32px}
.research-home footer{padding:60px 48px 32px;border-top:1px solid var(--line)}
.research-home footer nav{display:flex;justify-content:center;gap:30px;flex-wrap:wrap}
.research-home footer nav button{background:none;padding:6px 0;font-size:18px}
.research-home .footer-brand{font:clamp(32px,11.5vw,180px)/1 var(--serif);text-align:center;letter-spacing:-.055em;margin:76px 0 44px}
.research-home .footer-meta{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted)}
.research-home .workspace{max-width:1120px;margin:auto;min-height:76vh;padding:155px 32px 100px}
.research-home .workspace h1{font:500 54px/1.2 var(--sans);letter-spacing:-.045em}
.research-home .workspace-intro{color:var(--muted);margin:20px 0 48px}
.research-home .archive-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:36px}
.research-home .secondary{background:var(--paper);color:var(--ink);border-radius:999px;padding:12px 22px}
.research-home #collectionState{font-size:12px;color:var(--muted);margin-left:auto}
.research-home .report-list details{border-block-start:1px solid var(--line);padding:24px 0}
.research-home .report-list summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}
.research-home .report-list summary b{display:block;font-size:22px;font-weight:500}
.research-home .report-list summary small{display:block;color:var(--muted);margin-top:4px}
.research-home .report-list ol{color:var(--muted);padding-left:24px;line-height:2.2}
.research-home .fine-print{font-size:12px;color:var(--muted);margin-top:24px}
.research-home .ai-workspace{max-width:860px}
.research-home .suggestions{display:flex;gap:10px;flex-wrap:wrap}
.research-home .suggestions button{background:var(--paper);padding:10px 16px;border-radius:999px;font-size:13px}
.research-home .messages{list-style:none;padding:0;min-height:220px;margin:36px 0}
.research-home .messages li{margin:16px 0;padding:24px;border-radius:24px;max-width:92%;white-space:pre-wrap}
.research-home .messages .answer{background:var(--paper)}
.research-home .messages .question{margin-left:auto;background:var(--navy);color:white}
.research-home .messages small{display:block;font-size:11px;color:var(--muted);margin-top:12px}
.research-home .workspace-composer{position:relative;inset:auto;border:1px solid var(--line);box-shadow:none;margin-top:32px}
.research-home .viz-layout{display:grid;grid-template-columns:220px 1fr;gap:44px}
.research-home .chart-controls{display:flex;flex-direction:column;gap:18px}
.research-home .chart-controls label{font-size:13px}
.research-home .chart-controls input,.research-home .chart-controls select{display:block;min-width:0;width:100%;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink)}
.research-home .chart-controls p{font-size:12px;color:var(--muted)}
.research-home .chart-panel{min-width:0;padding:28px;border:1px solid var(--line);border-radius:28px}
.research-home .chart-panel h2{font-size:22px}
.research-home .chart-panel p{font-size:12px;color:var(--muted)}
.research-home .chart-panel svg{width:100%;margin-top:20px}
.research-home .chart-panel svg text{font:12px var(--sans);fill:#606874}
.research-home dialog{border:0;border-radius:32px;padding:32px;width:min(560px,calc(100% - 32px));color:var(--ink);max-height:85svh}
.research-home dialog::backdrop{background:#000c1f59}
.research-home .dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}
.research-home .dialog-head button{background:var(--paper);width:40px;height:40px;border-radius:50%;font-size:24px}
.research-home dialog nav{display:flex;flex-direction:column;gap:16px}
.research-home dialog nav button{text-align:left;background:none;font:500 26px/1.4 var(--sans);padding:8px}
.research-home fieldset{border:0;padding:0;display:flex;flex-direction:column;gap:16px;margin-bottom:28px}
.research-home fieldset label{display:flex;gap:12px}
@media(max-width:767px){.research-home .header{top:72px;left:32px;right:32px}
.research-home .brand{font-size:18px;gap:8px}
.research-home .brand img{display:block;width:36px;height:36px;padding:2px}
.research-home .menu-button{padding:10px 16px;font-size:12px}
.research-home .preview-note{font-size:10px;min-height:45px}
.research-home .home{padding:0 12px}
.research-home .hero{border-radius:36px;padding:120px 16px 32px;min-height:0}
.research-home .hero h1{font-size:42px;line-height:1.28}
.research-home .mobile-break{display:block}
.research-home .intro{font-size:16px;margin:18px 0 36px}
.research-home .hero-stage{aspect-ratio:4/5}
.research-home .editorial{border-radius:28px}
.research-home .landing-composer{inset:12px 12px auto;padding:12px 12px 12px 18px;border-radius:28px;gap:8px}
.research-home .landing-composer textarea{font-size:16px}
.research-home .send{width:42px;height:42px}
.research-home .paper{width:65%;height:62%;padding:18px}
.research-home .paper-back{left:0;top:33%}
.research-home .paper-front{right:-10%;top:40%}
.research-home .paper b{font-size:20px}
.research-home .paper p,.research-home .paper small{font-size:11px}
.research-home .visual-caption{font-size:10px;bottom:10px;left:10px}
.research-home .home-shortcuts{gap:18px;font-size:12px}
.research-home .manifesto{margin:80px 16px 60px;font-size:24px}
.research-home .feature{grid-template-columns:1fr;gap:28px;margin:0 20px 80px}
.research-home .feature-art{border-radius:28px}
.research-home .feature-copy h2{font-size:32px}
.research-home .feature-copy>p:not(.eyebrow){font-size:15px}
.research-home .closing{padding:0 0 70px}
.research-home .closing h2{font-size:38px}
.research-home footer{padding:36px 24px 28px}
.research-home footer nav{gap:14px}
.research-home footer nav button{font-size:13px}
.research-home .footer-brand{margin:46px 0 28px;font-size:10.9vw}
.research-home .footer-meta{flex-wrap:wrap;font-size:10px}
.research-home .workspace{padding:145px 24px 60px}
.research-home .workspace h1{font-size:38px}
.research-home .workspace-intro{margin-bottom:30px}
.research-home .archive-actions{gap:8px}
.research-home #collectionState{width:100%;margin:8px 0}
.research-home .primary,.research-home .secondary{font-size:13px}
.research-home .viz-layout{grid-template-columns:1fr;gap:20px}
.research-home .chart-controls{display:grid;grid-template-columns:1fr 1fr}
.research-home .chart-controls label:first-child{grid-column:1/-1}
.research-home .chart-controls p{margin:0}
.research-home .chart-panel{padding:18px}
.research-home .messages li{padding:18px}
.research-home .workspace-composer{inset:auto}
.research-home .dialog-head h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.research-home *{scroll-behavior:auto!important}}
@media(max-width:767px){.research-home .hero h1{font-size:clamp(30px,8.5vw,36px)}}:root { --font: "Pretendard Variable", -apple-system, sans-serif; --serif: Georgia, serif; --sans: var(--font); --ink: #000c1f; --navy:#002664; --paper:#f0f1ef; --muted:#606874; --line:#e0e4e8; }
html[data-theme="light"] { --bg:#fff; --surface:#fff; --surface-alt:#f0f1ef; --blue:#002664; --blue-strong:#001b48; --blue-soft:#e9eef5; --blue-line:#cad5e5; --signal:#002664; --signal-soft:#e9eef5; }
html[data-theme="dark"] { --ink:#edf1f7; --navy:#7fa5e8; --paper:#1b2430; --muted:#b2becd; --line:#384452; --blue:#719de4; --blue-strong:#93b7ef; --signal:#719de4; }
body,html[data-theme="dark"] body { background:var(--bg); font-family:var(--font); }
.app-header { position:relative; background:var(--bg); border:0; backdrop-filter:none; }
.header-inner { width:calc(100% - 96px); max-width:1344px; height:96px; }
.brand { font:26px/1 Georgia,serif; gap:10px; }
.brand strong { font-weight:400; }
.brand-avatar { display:block; width:48px;height:48px;flex:none;border-radius:50%;background:white; }
.app-main { max-width:none;width:100%;padding:0; }
.view:not(.research-home) { width:min(1120px,calc(100% - 48px)); margin:40px auto 80px; }
.research-home { padding:0 24px; }
.research-home .hero { padding-top:64px;min-height:740px; }
.research-home .hero h1 {font-family:var(--font);font-weight:500;}
.research-home .landing-composer { color:#000c1f; }
.research-home .landing-composer textarea { font-family:var(--font); }
.research-home .paper { color:#000c1f; }
.research-home .paper-front {background:white;}
.research-home .feature-copy h2 {color:var(--text);}
.research-home .feature-art {background:var(--paper);}
.research-home .primary {background:var(--blue);color:white;}
.research-home .home-shortcuts button,.research-home .text-link {color:var(--text);}
.research-home .folder {background:var(--surface);border-color:var(--border);}
.research-home .question-art {background:var(--paper);}
.research-home .feature-copy>p:not(.eyebrow) {color:var(--subtext);}
.page-heading h1 {font-family:var(--font);font-weight:500; font-size:48px;letter-spacing:-.045em;}
.stage {grid-template-columns:1fr;margin:24px 0 40px;background:var(--surface-alt);box-shadow:none;border:0;}
.stage .stage-portrait-wrap {display:none;}
.stage h1 {font-size:30px;font-weight:500;}
.analyst-layout {grid-template-columns:1fr;max-width:860px;margin:auto;}
.suggestion-panel {border:0;background:transparent;padding:0;}
.suggestion-list {display:flex;gap:10px;flex-wrap:wrap;}
.chat-panel {min-height:420px;}
.research-menu {border:1px solid var(--border);border-radius:28px;background:var(--surface);color:var(--text);width:min(520px,calc(100% - 32px));padding:28px;}
.research-menu::backdrop {background:#000c1f66;}
.menu-heading {display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;}
.research-menu nav {display:grid;gap:12px;margin-bottom:24px;}
.research-menu nav button {background:transparent;text-align:left;color:var(--text);font-size:24px;padding:10px;}
.research-footer {padding:60px 32px 30px;border-top:1px solid var(--border);text-align:center;}
.research-footer nav {display:flex;flex-wrap:wrap;justify-content:center;gap:24px;}
.research-footer button {background:none;color:var(--text);padding:8px;}
.research-footer>p {font:clamp(30px,10vw,150px)/1.1 Georgia,serif;letter-spacing:-.055em;margin:56px 0 30px;}
.research-footer small {color:var(--subtext);}
.archive-filters,.chart-tools {display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:24px 0;}
.archive-filters label,.chart-tools label {display:grid;gap:8px;font-size:13px;min-width:160px;flex:1;}
.archive-filters input,.archive-filters select,.chart-tools input,.chart-tools select {width:100%;min-width:0;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;padding:12px;font:inherit;}
.archive-filters>p,.chart-tools>p {width:100%;font-size:12px;color:var(--subtext);}
.local-storage-note {font-size:12px;color:var(--subtext);margin:16px 0;}
.archive-backup {display:flex;gap:12px;margin:18px 0;flex-wrap:wrap;}
.archive-backup label {cursor:pointer;position:relative;}
.document-list li.report-row {grid-template-columns:8px minmax(0,1fr) 28px;padding:18px 0;}
.document-list .report-title {font-size:14px;white-space:normal;overflow-wrap:anywhere;}
.reading-actions {grid-column:2/-1;display:flex;gap:8px;flex-wrap:wrap;}
.reading-actions button {font-size:12px;padding:8px 12px;}
.reading-actions [aria-pressed="true"] {background:var(--blue-soft);color:var(--blue);border-color:var(--blue-line);}
.report-note {grid-column:2/-1;width:100%;}
.archive-item .report-note>summary {display:block;padding:4px 0;font-size:12px;background:none;}
.report-note label {display:grid;gap:8px;font-size:12px;}
.report-note textarea {width:100%;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);resize:vertical;}
.report-note span {font-size:11px;color:var(--subtext);}
.report-row.is-read .report-title {color:var(--subtext);}
#archiveNoMatch {padding:28px;}
#vizExportCSV:disabled,#vizExportPNG:disabled {opacity:.45;}
@media(max-width:767px) {
 .header-inner {width:calc(100% - 48px);height:84px;} .brand {font-size:18px;gap:8px;} .brand-avatar {width:36px;height:36px;}
 .view:not(.research-home) {width:calc(100% - 32px);margin-top:28px;}
 .research-home {padding:0 12px;} .research-home .hero {padding-top:52px;min-height:0;}
 .page-heading h1 {font-size:34px;} .stage {padding:24px;} .stage h1 {font-size:26px;}
 .document-list {margin-left:18px;} .archive-filters label,.chart-tools label {min-width:140px;}
 .research-footer {padding:40px 20px;} .research-footer nav {gap:10px;}
}

.local-preview-banner{text-align:center;padding:8px;background:var(--surface-alt);color:var(--subtext);font-size:12px;}

[hidden]{display:none!important;}
.view-active{animation:view-fade-in 150ms ease-out both;}
@keyframes view-fade-in{from{opacity:.7}to{opacity:1}}
.stage h2.hero-title{font-size:30px;font-weight:500;line-height:1.3;}

.archive-item>summary{grid-template-columns:auto minmax(0,1fr) auto auto;}

/* Keep the mobile home question preview fully visible beside the send control. */
@media(max-width:767px){
 .research-home .landing-composer{align-items:center;inset:12px 12px auto;padding:12px 12px 12px 18px;min-height:76px;border-radius:30px;}
 .research-home .landing-composer textarea{display:block;height:72px;min-height:72px;max-height:96px;overflow-y:auto;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;}
 .research-home .send{align-self:center;}
}
.archive-item .download-link{display:inline-flex;font-size:12px;}

.blue-button{border-radius:999px;box-shadow:none;}
.research-home .paper p,.research-home .paper small{color:#606874;}

h1[tabindex="-1"]:focus{outline:none;}
/* Full-page conversation: a quiet reading column and a sticky bottom composer. */
body[data-view="analystView"] .research-footer { display:none; }
body[data-view="analystView"] .app-header { position:sticky;top:0;z-index:20; }
body[data-view="analystView"] .app-main { min-height:calc(100svh - 96px); }
body[data-view="analystView"] #analystView {
 width:min(840px,calc(100% - 48px));min-height:calc(100svh - 96px);margin:0 auto;
 display:flex;flex-direction:column;padding-top:24px;
}
#analystView>.page-heading {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);}
.chat-page-toolbar {display:flex;justify-content:space-between;align-items:center;margin:8px 0 40px;color:var(--subtext);font-size:12px;}
.chat-page-toolbar .text-button {margin:0;font-size:12px;}
#analystView .analyst-layout {display:flex;flex-direction:column;flex:1;width:100%;min-height:0;max-width:none;margin:0;border:0;background:transparent;overflow:visible;border-radius:0;}
#analystView .suggestion-panel {background:transparent;padding:0 0 20px;flex:none;border:0;}
body[data-chat-state="conversation"] #analystView .suggestion-panel {display:none;}
#analystView .suggestion-list {margin:0;gap:10px;}
#analystView .suggestion-chip {font-size:12px;background:var(--surface-alt);padding:10px 16px;border-radius:999px;min-height:0;}
#analystView .chat-panel {flex:1;min-height:0;background:transparent;overflow:visible;}
#analystView .chat-messages {overflow:visible;flex:1;padding:12px 0 56px;gap:38px;scroll-behavior:auto;}
#analystView .message {max-width:100%;width:100%;gap:0;scroll-margin-bottom:170px;}
#analystView .message-stamp {display:none;}
#analystView .message-ai .message-body {padding:0;background:transparent;border-radius:0;width:100%;}
#analystView .message-body p {font-size:18px;line-height:1.85;overflow-wrap:anywhere;}
#analystView .citation-marker {display:inline-block;margin-left:4px;color:var(--blue);font-size:.72em;line-height:1;vertical-align:super;text-decoration:none;font-weight:600;}
#analystView .message-sources {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 0;color:var(--subtext);font-size:12px;}
#analystView .message-sources>span {margin-right:2px;font-weight:600;}
#analystView .message-sources>a {padding:5px 10px;border-radius:999px;background:var(--surface-alt);color:var(--subtext);text-decoration:none;overflow-wrap:anywhere;}
#analystView .message-sources>a:hover {color:var(--blue);}
#analystView .message-ai .message-body>small {display:none;}
#analystView .message-user {width:auto;max-width:75%;align-self:flex-end;}
#analystView .message-user .message-body {background:var(--surface-alt);border-radius:28px;padding:16px 24px;}
#analystView .message-user .message-body small {display:none;}
#analystView .message-actions {justify-content:flex-start;margin-top:20px;}
#analystView .copy-answer {font-size:12px;padding:10px 16px;border-radius:999px;background:var(--surface-alt);}
#analystView .typing-body {min-height:48px;}
#analystView .chat-input-dock {position:sticky;bottom:0;z-index:5;background:var(--bg);padding:16px 0 calc(20px + env(safe-area-inset-bottom));margin-top:auto;}
.chat-guidance {text-align:center;font-size:12px;color:var(--subtext);margin:0 0 18px;}
#analystView .composer {padding:14px 16px 14px 26px;gap:12px;border:2px solid var(--text);border-radius:999px;background:var(--surface);box-shadow:0 8px 30px #000c1f0b;}
#analystView .composer-field {padding:6px 0;min-height:44px;border:0;background:transparent;box-shadow:none;}
#analystView .composer textarea {font:18px/1.55 var(--font);color:var(--text);background:transparent;width:100%;max-height:128px;}
#analystView .composer textarea::placeholder {color:var(--subtext);}
#analystView .send-button {width:48px;height:48px;min-width:48px;padding:0;border-radius:50%;display:grid;place-items:center;}
#analystView .send-button svg {width:22px;height:22px;}
@media(max-width:767px) {
 body[data-view="analystView"] #analystView {width:calc(100% - 32px);min-height:calc(100svh - 84px);padding-top:12px;}
 .chat-page-toolbar {margin-bottom:28px;}
 #analystView .message-body p {font-size:16px;line-height:1.85;}
 #analystView .message-user {max-width:88%;}
 #analystView .message-user .message-body {padding:12px 18px;}
 #analystView .chat-messages {gap:28px;padding-bottom:36px;}
 #analystView .composer {padding:10px 10px 10px 18px;border-radius:30px;}
 #analystView .composer textarea {font-size:16px;}
 #analystView .send-button {width:42px;height:42px;min-width:42px;}
 .chat-guidance {font-size:11px;margin-bottom:12px;}
}

#archiveView .archive-item{opacity:1;transform:none;transition:opacity 180ms ease-out;}
#archiveView .archive-item.is-visible{opacity:1;transform:none;}
#archiveView .archive-item:nth-child(n){transition-delay:0ms;}
#archiveView .archive-item[open] .document-list{animation:archive-content-in 150ms ease-out both;}
@keyframes archive-content-in{from{opacity:.55;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 .view-active{animation:none!important;}
 #archiveView .archive-item{opacity:1!important;transform:none!important;transition:none!important;}
 #archiveView .archive-item[open] .document-list{animation:none!important;}
 .research-home .hero-tools button{transition:none!important;}
}

/* America.gov-inspired menu: expand the button surface, then reveal content. */
.research-menu{
 position:fixed;top:var(--menu-top,16px);right:var(--menu-right,32px);left:auto;margin:0;
 width:min(435px,calc(100% - 64px));max-width:none;max-height:var(--menu-max-height,calc(100dvh - 32px));overflow:visible;
 border:0;border-radius:40px;padding:0;background:transparent;color:var(--text);
 box-shadow:none;opacity:1;transform:none;
}
.research-menu .menu-surface{position:absolute;inset:0;pointer-events:none;transform-origin:0 0;
 background:var(--menu-button-color,var(--blue));border-radius:var(--menu-start-radius,999px);
 transform:var(--menu-start-transform,scale(.2,.15));box-shadow:0 20px 70px #000c1f20;
 transition:transform 480ms var(--motion-ease),border-radius 480ms var(--motion-ease),background-color 480ms var(--motion-ease);}
.research-menu:not(.is-open):not(.is-closing) .menu-surface{transition:none;}
.research-menu[open].is-open .menu-surface{transform:none;border-radius:40px;background:var(--surface);}
.research-menu .menu-content{position:relative;max-height:inherit;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;border-radius:40px;padding:32px;opacity:0;transform:translateY(8px);transition:opacity 240ms var(--motion-ease) 120ms,transform 300ms var(--motion-ease) 120ms;}
.research-menu[open].is-open .menu-content{opacity:1;transform:none;}
.research-menu[open].is-closing{pointer-events:none;}
.research-menu[open].is-closing .menu-content{transition:opacity 120ms ease,transform 160ms ease;}
.research-menu::backdrop{opacity:0;background:#000c1f00;backdrop-filter:blur(0);transition:opacity var(--motion-panel) var(--motion-ease),backdrop-filter var(--motion-panel) var(--motion-ease);}
.research-menu[open].is-open::backdrop{opacity:1;background:#000c1f42;backdrop-filter:blur(8px);}
.research-menu .menu-heading{margin-bottom:24px;}
.research-menu nav{gap:8px;}
.research-menu nav button{text-align:center;border-radius:16px;opacity:0;transform:translateY(8px) scale(.99);transition:opacity 180ms var(--motion-ease),transform 220ms var(--motion-ease),color var(--motion-ui) var(--motion-ease),background-color var(--motion-ui) var(--motion-ease);}
.research-menu[open].is-open nav button{opacity:1;transform:none;transition-delay:var(--menu-item-delay),var(--menu-item-delay),0s,0s;}
.research-menu nav button:nth-child(1){--menu-item-delay:48ms;}
.research-menu nav button:nth-child(2){--menu-item-delay:72ms;}
.research-menu nav button:nth-child(3){--menu-item-delay:96ms;}
.research-menu nav button:nth-child(4){--menu-item-delay:120ms;}
.research-menu[open].is-closing nav button{transition:opacity 90ms ease,transform 120ms ease,color var(--motion-ui) var(--motion-ease),background-color var(--motion-ui) var(--motion-ease);transition-delay:0s;}
.research-menu nav button:hover{background:var(--surface-alt);color:var(--blue);}
.research-menu .menu-content>[data-theme-toggle]{display:block;margin:8px auto 0;}

/* Shared motion tokens and feedback across the site's interactive controls. */
.pdf-reader{width:min(1080px,calc(100% - 32px));max-width:none;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);padding:24px;box-sizing:border-box;}
.pdf-reader[open]{display:flex;flex-direction:column;gap:16px;}
.pdf-reader-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.pdf-reader-heading h2{font:500 18px/1.5 var(--font);margin:0;overflow-wrap:anywhere;}
.pdf-reader-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.pdf-reader-tools label{display:flex;gap:8px;align-items:center;font-size:14px;}
.pdf-reader-tools input{width:60px;min-height:40px;padding:8px;border:0;border-radius:12px;background:var(--surface-alt);color:var(--text);}
.pdf-reader-tools .secondary-button{min-height:40px;}
.pdf-reader .secondary-button{border:0;box-shadow:none;border-radius:999px;background:var(--surface-alt);}
.pdf-reader-tools a{text-decoration:none;}
#pdfReaderStatus{margin:0;color:var(--subtext);font-size:13px;}
.pdf-reader-page{min-height:0;flex:1;overflow:auto;background:var(--surface-alt);border-radius:20px;padding:16px;}
.pdf-reader-page canvas{display:block;margin:0 auto;background:white;}
.pdf-reader-page details{margin-top:16px;padding:16px;background:var(--surface);border-radius:16px;}
#pdfText{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;}
@media(max-width:767px){.pdf-reader{padding:16px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);width:calc(100% - 16px);border-radius:24px;}.pdf-reader-heading h2{font-size:15px;}.pdf-reader-tools{gap:6px;}.pdf-reader-tools .secondary-button{padding:0 12px;font-size:12px;}}
:root{--motion-fast:160ms;--motion-ui:200ms;--motion-panel:280ms;--motion-ease:cubic-bezier(.22,1,.36,1);}
.blue-button,.secondary-button,.text-button,.suggestion-chip,.copy-answer,
.viz-presets .viz-preset,.archive-item>summary,.category-grid label,
.report-card,.viz-card,.scope-dialog .close-button{
 transition:color var(--motion-ui) var(--motion-ease),background-color var(--motion-ui) var(--motion-ease),
 border-color var(--motion-ui) var(--motion-ease),box-shadow var(--motion-ui) var(--motion-ease),
 transform var(--motion-fast) var(--motion-ease),opacity var(--motion-ui) var(--motion-ease);
}
.blue-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.suggestion-chip:hover,
.viz-presets .viz-preset:hover:not(:disabled),.archive-item>summary:hover,.category-grid label:hover{
 transform:translateY(-1px);
}
.blue-button:active:not(:disabled),.secondary-button:active:not(:disabled),.suggestion-chip:active,
.viz-presets .viz-preset:active:not(:disabled),.archive-item>summary:active,.category-grid label:active{
 transform:scale(.985);
}
.copy-answer:active,.text-button:active{transform:scale(.98);}
.report-card:hover,.viz-card:hover{box-shadow:0 18px 48px #000c1f0b;}

.scope-dialog{opacity:0;transform:translateY(10px) scale(.985);transform-origin:center;
 transition:opacity var(--motion-panel) var(--motion-ease),transform var(--motion-panel) var(--motion-ease);}
.scope-dialog[open].is-open{opacity:1;transform:translateY(0) scale(1);}
.scope-dialog[open].is-closing{opacity:0;transform:translateY(6px) scale(.99);pointer-events:none;}
.scope-dialog::backdrop{opacity:0;background:#000c1f00;backdrop-filter:blur(0);
 transition:opacity var(--motion-panel) var(--motion-ease),backdrop-filter var(--motion-panel) var(--motion-ease);}
.scope-dialog[open].is-open::backdrop{opacity:1;background:#000c1f42;backdrop-filter:blur(8px);}
@media(max-width:767px){
 .research-menu{top:var(--menu-top,12px);right:16px;left:16px;width:auto;padding:0;}
 .research-menu .menu-content{padding:28px 24px;}
 .research-menu nav button{font-size:22px;}
}
@media(prefers-reduced-motion:reduce){
 .research-menu,.research-menu::backdrop,.research-menu nav button{transition:none!important;}
 .research-menu .menu-surface,.research-menu .menu-content{transition:none!important;}
 .research-menu nav button{opacity:1;transform:none;}
 .research-menu .menu-content{transform:none;}
 .research-menu,.research-menu[open].is-closing{transform:none;}
 .scope-dialog,.scope-dialog::backdrop,:where(.blue-button,.secondary-button,.text-button,.suggestion-chip,.copy-answer,
 .viz-presets .viz-preset,.archive-item>summary,.category-grid label,.report-card,.viz-card){transition:none!important;}
 .scope-dialog,.scope-dialog[open].is-closing{transform:none;}
 :where(.blue-button,.secondary-button,.suggestion-chip,.viz-presets .viz-preset,.archive-item>summary,.category-grid label):hover,
 :where(.blue-button,.secondary-button,.suggestion-chip,.viz-presets .viz-preset,.archive-item>summary,.category-grid label):active,
 :where(.copy-answer,.text-button):active{transform:none;}
}
