:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f6f1;--surface:#fff;--surface-muted:#eef1eb;--surface-strong:#17201a;--border:#d7ddcf;--text:#17201a;--muted:#5e6b60;--accent:#0d766e;--accent-strong:#075852;--accent-soft:#dff3ef;--warning:#8a4b0f;--danger:#b3261e;--shadow:0 24px 70px #17201a1f}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,textarea,select{font:inherit}button,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}.app-shell{min-height:100vh;padding:24px}.chat-shell{grid-template-rows:auto minmax(0,1fr) auto;gap:18px;max-width:1280px;min-height:calc(100vh - 48px);margin:0 auto;display:grid}.app-header,.chat-panel,.app-footer{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}.app-header{border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;display:flex}.eyebrow{color:var(--accent-strong);letter-spacing:.16em;text-transform:uppercase;margin:0 0 8px;font-size:.76rem;font-weight:800}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(2rem,4vw,3.8rem);line-height:.95}h2{margin-bottom:10px;font-size:1rem;line-height:1.25}.header-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.edition-control{color:var(--muted);align-items:center;gap:10px;font-size:.92rem;font-weight:700;display:flex}.edition-control select{border:1px solid var(--border);background:var(--surface);min-height:40px;color:var(--text);border-radius:6px;padding:0 34px 0 12px}.content-grid{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;display:grid}.app-footer{color:var(--muted);font-size:.94rem;line-height:1.6}.chat-panel{border-radius:8px;grid-template-rows:minmax(0,1fr) auto auto;min-height:70vh;display:grid;overflow:hidden}.message-list{align-content:start;gap:14px;padding:20px;display:grid;overflow:auto}.empty-state{gap:14px;max-width:760px;padding:32px 12px;display:grid}.empty-state h2{margin:0;font-size:clamp(1.7rem,4vw,3.2rem);line-height:1}.empty-state p{max-width:620px;color:var(--muted);line-height:1.6}.example-list{flex-wrap:wrap;gap:10px;display:flex}.example-button,.secondary-button,.primary-button{border:1px solid #0000;border-radius:6px;min-height:42px;padding:0 14px;font-weight:750}.example-button,.secondary-button{border-color:var(--border);background:var(--surface-muted);color:var(--text)}.primary-button{background:var(--accent);color:#fff}.primary-button:hover:not(:disabled){background:var(--accent-strong)}.message{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:min(820px,100%);padding:15px 16px}.message-user{background:var(--surface-strong);color:#fff;justify-self:end}.message-assistant{justify-self:start}.message-loading{color:var(--muted)}.message-meta{letter-spacing:.1em;text-transform:uppercase;color:var(--accent-strong);margin-bottom:8px;font-size:.76rem;font-weight:800}.message-user .message-meta{color:#b8d6c9}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.58}.citation-list{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.citation-chip{background:var(--accent-soft);max-width:100%;min-height:30px;color:var(--accent-strong);overflow-wrap:anywhere;border:1px solid #a8d6ce;border-radius:999px;align-items:center;padding:4px 10px;font-size:.83rem;font-weight:760;text-decoration:none;display:inline-flex}.citation-chip:hover{border-color:var(--accent);background:#ccece5}.error-message{color:var(--danger);margin:0 20px 14px;font-size:.92rem;line-height:1.5}.composer{border-top:1px solid var(--border);background:var(--surface-muted);grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px;display:grid}.composer textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:74px;max-height:220px;color:var(--text);border-radius:6px;outline:none;padding:12px 14px}.composer textarea:focus,.edition-control select:focus{border-color:var(--accent);box-shadow:0 0 0 4px #0d766e1f}.composer .primary-button{align-self:end;min-width:98px}.app-footer{box-shadow:none;border-radius:8px;padding:14px 18px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.section-shell{background:var(--bg);min-height:100vh;padding:24px}.section-document{border:1px solid var(--border);background:var(--surface);max-width:920px;box-shadow:var(--shadow);border-radius:8px;margin:0 auto;padding:28px}.back-link{color:var(--accent-strong);margin-bottom:22px;font-weight:760;text-decoration:none;display:inline-flex}.back-link:hover{text-decoration:underline}.section-document h1{margin-bottom:12px;font-size:clamp(2rem,5vw,4rem);line-height:.98}.section-document h2{color:var(--muted);margin-bottom:22px;font-size:1.15rem;line-height:1.45}.section-note{color:var(--warning);background:#fff7e8;border:1px solid #e3c89e;border-radius:6px;padding:12px 14px;line-height:1.5}.pdf-callout{background:var(--accent-soft);color:var(--accent-strong);border:1px solid #a8d6ce;border-radius:6px;gap:4px;margin:18px 0;padding:12px 14px;line-height:1.45;display:grid}.pdf-frame{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;width:100%;height:min(78vh,980px);min-height:620px}.section-text-fallback{margin-top:18px}.section-text-fallback summary{cursor:pointer;color:var(--accent-strong);font-weight:760}.section-text{gap:14px;margin-top:22px;display:grid}.section-text p{color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.04rem;line-height:1.72}.section-footer{border-top:1px solid var(--border);color:var(--muted);margin:28px 0 0;padding-top:18px;font-size:.92rem;line-height:1.6}@media (max-width:860px){.app-shell{padding:14px}.chat-shell{min-height:calc(100vh - 28px)}.app-header{flex-direction:column;align-items:flex-start}.content-grid{grid-template-columns:1fr}.chat-panel{min-height:68vh}.composer{grid-template-columns:1fr}.composer .primary-button{width:100%}.section-shell{padding:14px}.section-document{padding:20px}}
