/* A dark notebook, with the same ink, blue controls and reading rhythm as the atlas. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
#panel-heading{text-transform:none;letter-spacing:0;font-size:14px}
#chat-dock{position:fixed;bottom:0;left:0;z-index:24;width:var(--atlas-width);height:58px;display:flex;align-items:center;gap:12px;padding:10px 18px;border:0;border-top:1px solid #39414b;background:#171b20;color:#abb7c7;text-align:left;font-size:15px;border-radius:0}
#chat-dock span{flex:1}#chat-dock svg{width:22px;height:22px;flex-shrink:0}
#atlas-panel{padding-bottom:58px;box-sizing:border-box}
#atlas-map-controls #report-info-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid #556070;border-radius:50%;background:#242a33;color:#e8edf5;box-shadow:0 2px 8px #0004}
.section-question{display:flex;align-items:center;gap:14px;width:100%;padding:20px!important;margin:26px 0 8px!important;border:1px solid #303a47!important;border-radius:18px!important;background:#15191f!important;text-align:left;color:#d8e3f3;font-size:16px;line-height:1.5}
.section-question span{flex:1}.section-question svg{width:22px;height:22px;flex:0 0 22px;color:#a8c8ff}
.section-question:hover{background:#202936!important;border-color:#647996!important}
#knowledge-window{position:fixed;inset:24px;margin:auto;padding:0;width:calc(100vw - 48px);max-width:1300px;height:calc(100dvh - 48px);max-height:none;border:1px solid #414b58;border-radius:24px;background:#1d2026;color:#d7dee9;box-shadow:0 20px 80px #0009;overflow:hidden}
#knowledge-window::backdrop{background:#080c12c9;backdrop-filter:blur(4px)}
#knowledge-window [hidden]{display:none!important}
#knowledge-window *{box-sizing:border-box}
.knowledge-shell{height:100%;display:flex;flex-direction:column;min-height:0}
#knowledge-window .knowledge-header{position:static!important;inset:auto!important;width:100%!important;display:flex;align-items:center;justify-content:space-between;padding:24px 30px!important;min-height:90px;background:#1d2026;flex-shrink:0;box-shadow:none}
.knowledge-eyebrow{font-size:12px;letter-spacing:1.5px;color:#9dacc0}.knowledge-header h2{font-size:25px;line-height:1.3;margin:5px 0 0;font-weight:550;color:#f0f3f8}
#knowledge-close{display:flex;width:48px;height:48px;flex:0 0 48px;align-items:center;justify-content:center;border:0;border-radius:50%;background:#292f38;color:#d7dee9;padding:10px;pointer-events:auto;touch-action:manipulation;position:relative;z-index:10}
#knowledge-window .knowledge-header{pointer-events:auto!important;height:auto!important}
#knowledge-close svg{pointer-events:none}
#knowledge-window svg{width:22px;height:22px;flex-shrink:0}
.knowledge-tabs{display:flex;padding:0 30px;gap:26px;border-bottom:1px solid #3a424f;flex-shrink:0}
.knowledge-tabs button{display:flex;align-items:center;gap:9px;padding:14px 0;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:#9eacbd;font-size:15px;min-height:50px}
.knowledge-tabs button[aria-current=page]{border-bottom-color:#a8c8ff;color:#edf3ff}
#report-view{display:grid;grid-template-columns:265px minmax(0,1fr);min-height:0;flex:1}
#report-index{overflow-y:auto;border-right:1px solid #353d49;padding:24px 18px;background:#181c22}
#report-index label{display:block;font-size:13px;color:#aab9cc;margin-bottom:10px}
#report-search,#mobile-report-search{width:100%;min-width:0;border:1px solid #465160;border-radius:10px;padding:11px;background:#222832;color:#e8edf5;font-size:14px}
#report-toc,#mobile-report-toc{display:grid;gap:4px;margin-top:16px}
#report-toc button,#mobile-report-toc button{border:0;background:none;color:#adbacb;text-align:left;padding:11px 10px;border-radius:8px;font-size:14px;line-height:1.5}
#report-toc button[aria-current=page],#mobile-report-toc button[aria-current=page]{background:#2d3c53;color:#d6e6ff}
#report-page{overflow-y:auto;min-width:0;padding:32px clamp(24px,4vw,58px);scroll-behavior:auto;scroll-padding:24px}
#report-article{max-width:920px;margin:auto;outline:none}
.report-page-heading{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#97a9be;font-size:12px;line-height:1.5;margin-bottom:22px}
#report-article h1{font-size:clamp(26px,3vw,36px);font-weight:550;line-height:1.2;letter-spacing:-.6px;margin:0 0 30px;color:#edf1f8}
#report-article h3{font-size:22px;font-weight:550;line-height:1.35;margin:34px 0 16px;color:#e9eff8}
#report-article p{font-size:16px;line-height:1.85;margin:0 0 22px;color:#c8d1de;overflow-wrap:anywhere}
#report-article a{color:#a8c8ff;text-decoration:none}.report-source-link{display:inline-block;font-size:14px;margin:-10px 0 22px}
.report-citation{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:2px 6px;margin:0 2px;border:0;border-radius:50px;min-width:24px;min-height:24px;background:#12161c;color:#aacbff;font-size:12px;line-height:1.5}
.report-table-wrap{max-width:100%;overflow-x:auto;margin:28px 0;border:1px solid #414b58;border-radius:12px;outline-offset:3px}
.report-table-wrap table{border-collapse:collapse;width:100%;min-width:520px;font-size:14px;line-height:1.55}
.report-table-wrap th{background:#2c3644;color:#ebf1fb;font-weight:550;text-align:left}
.report-table-wrap th,.report-table-wrap td{padding:14px 16px;border:0;border-bottom:1px solid #353e4b;vertical-align:top;max-width:350px;min-width:90px}
.report-table-wrap tr:nth-child(even){background:#222830}
#report-article figure{margin:30px 0;border:1px solid #343e4c;border-radius:16px;padding:12px;background:#181e26}
#report-article figure img{display:block;width:100%;height:auto;border-radius:8px}
#report-article figcaption{font-size:13px;line-height:1.6;color:#a9b8ca;margin:14px 6px}
#report-article figure details{border-top:1px solid #343d48;padding-top:12px;font-size:13px;color:#9fbde7}
#report-article figure summary{cursor:pointer;margin:0 6px 10px}
#report-pagination{display:flex;justify-content:space-between;gap:16px;max-width:920px;margin:32px auto 12px}
#report-pagination button{min-height:46px;padding:10px 16px;border:1px solid #46536a;background:#253247;color:#bed8ff;border-radius:10px;font-size:14px}
#report-pagination button:disabled{opacity:.35;cursor:default}
#mobile-report-index{display:none}
#chat-view{display:flex;flex-direction:column;min-height:0;flex:1;width:min(850px,100%);align-self:center}
#chat-transcript{flex:1;min-height:0;overflow-y:auto;padding:28px 36px;overscroll-behavior:contain;scroll-padding:24px}
.chat-welcome{margin:10px 0 38px}.knowledge-mark{display:flex;width:48px;height:48px;background:#2a3c57;color:#b9d4ff;border-radius:16px;align-items:center;justify-content:center}
.chat-welcome h3{font-size:27px;font-weight:500;margin:18px 0 12px;color:#e9eff8}.chat-welcome p{line-height:1.65;font-size:16px;color:#bcc8d9}
.chat-welcome .chat-mode-note{font-size:13px;color:#a4b2c5;padding:12px 14px;background:#171b21;border-radius:10px}
.chat-message{margin:0 0 26px;font-size:16px;line-height:1.75;overflow-wrap:anywhere}.chat-message p{white-space:pre-wrap;margin:6px 0}
.message-label{font-size:12px;color:#92a8c5}.chat-message.user{margin-left:12%;background:#2a3546;padding:14px 20px;border-radius:20px 20px 4px 20px;color:#e6effc}
.chat-message blockquote{font-size:15px;margin:18px 0 10px;padding:10px 16px;border-left:2px solid #769fd5;background:#19212c;color:#c8d5e5;white-space:pre-wrap}
.chat-sources{display:flex;gap:8px;flex-wrap:wrap}.chat-sources button{font-size:12px;color:#b6d1fb;padding:7px 10px;background:#151a21;border:1px solid #3b4b60;border-radius:8px;text-align:left;line-height:1.4}
#chat-form{display:flex;align-items:center;gap:12px;margin:0 28px;border:1px solid #4c586b;border-radius:20px;padding:12px 14px;background:#252b34;flex-shrink:0}
#chat-input{min-width:0;flex:1;resize:none;background:transparent;color:#edf2fa;border:0;padding:4px;font:16px/1.55 Arial,sans-serif;max-height:130px;outline:none}
#chat-input::placeholder{color:#929fb1}
#chat-send{width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:10px;border:0;border-radius:50%;background:#a8c8ff;color:#172536;flex-shrink:0}
#chat-send:disabled{opacity:.4}#chat-stop{background:#384455;border:0;border-radius:10px;padding:10px;color:#e6effa}
.chat-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#99aabd;padding:12px 32px 20px;gap:12px}
.chat-footer button{border:0;background:none;color:#a8c8ff;padding:6px}
#knowledge-status{padding:16px 28px;font-size:14px;color:#b4c8e5;background:#202a38;margin:0}
#knowledge-window button:focus-visible,#chat-dock:focus-visible{outline:2px solid #c5dbff;outline-offset:3px}
@media(max-width:760px){
 #chat-dock{width:100%;height:calc(52px + env(safe-area-inset-bottom));padding-bottom:calc(10px + env(safe-area-inset-bottom));font-size:14px}
 #atlas-panel{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
 #panel-tools,body[data-sheet=full] #panel-tools{bottom:calc(52px + env(safe-area-inset-bottom));padding-bottom:7px;min-height:58px}
 #knowledge-window{inset:auto 0;top:var(--notebook-top,0px);width:100%;height:var(--notebook-height,100dvh);max-width:none;border:0;border-radius:0;margin:0}
 #knowledge-window .knowledge-header{padding:max(16px,env(safe-area-inset-top)) 18px 16px!important;min-height:78px}
 .knowledge-header h2{font-size:22px}.knowledge-tabs{padding:0 18px;gap:24px}.knowledge-tabs button{font-size:14px;gap:7px}
 #report-view{display:block;overflow:hidden}#report-index{display:none}#report-page{height:100%;padding:18px 20px 32px}
 #mobile-report-index{display:block;border:1px solid #3b485b;border-radius:12px;padding:12px 14px;margin-bottom:26px;color:#b8d3fa;font-size:14px}
 #mobile-report-index[open]{max-height:55dvh;overflow:auto}#mobile-report-index summary{cursor:pointer;min-height:26px}
 #mobile-report-search{margin-top:12px}
 #report-article h1{font-size:27px}#report-article h3{font-size:21px}#report-article p{font-size:16px;line-height:1.75}
 #chat-transcript{padding:20px}.chat-welcome{margin-top:0}.chat-welcome h3{font-size:24px}.chat-message{font-size:16px}
 #chat-form{margin:0 12px;padding:10px;border-radius:16px}.chat-footer{padding:10px 16px max(14px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){#report-page{scroll-behavior:auto}}

/* Plain close glyph, with the existing mobile touch target. */
#knowledge-window #knowledge-close{background:transparent;border:0;border-radius:4px;box-shadow:none}
#knowledge-window #knowledge-close:hover{background:rgba(255,255,255,.06)}
#knowledge-window #knowledge-close:focus:not(:focus-visible){outline:none}
#knowledge-window #knowledge-close:focus-visible{outline:2px solid #d7dee9;outline-offset:2px}
#chat-transcript{overflow-anchor:none}

.voice-chat-controls,.report-voice-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 20px;background:#252b34;border-bottom:1px solid #3a424e;flex-shrink:0}
.voice-chat-controls button,.report-voice-controls button{min-height:44px;padding:9px 14px;font-size:14px;border-radius:22px;background:#35465d;border:1px solid #63748a;color:#eef3fa}
.voice-chat-controls span,.report-voice-controls span{font-size:13px;color:#becadb;line-height:1.4}
#voice-chat-start[aria-pressed=true]{background:#614042;border-color:#bf898b}
#voice-notice{position:fixed;z-index:140;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:min(440px,72vw);padding:10px 14px;background:#252b34;color:#e5edf9;border:1px solid #536070;border-radius:12px;box-shadow:0 4px 20px #0005;font-size:14px;line-height:1.4;display:flex;align-items:center;gap:10px}
#voice-notice[hidden]{display:none}#voice-notice button{min-height:44px;white-space:nowrap;font-size:14px}
@media(max-width:720px){.voice-chat-controls,.report-voice-controls{padding:10px 14px;gap:8px}.voice-chat-controls span{flex-basis:100%}}
/* Shared compact voice controls. Read and Talk remain separate choices. */
.voice-chat-controls,.report-voice-controls{gap:8px;flex-wrap:nowrap;padding:8px 14px;min-height:60px;box-sizing:border-box;background:#222832;border-bottom:1px solid #39414c}
.voice-chat-controls button,.report-voice-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;font-size:14px;line-height:1;border-radius:10px;white-space:nowrap;flex-shrink:0;background:#2e3b4e;border:1px solid #536277}
.voice-chat-controls button svg,.report-voice-controls button svg{width:17px;height:17px;flex-shrink:0}
.voice-chat-controls span[role=status],.report-voice-controls span[role=status]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.3}
#atlas-map-controls #map-voice-talk{position:static;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;margin:0;border:1px solid #556070;border-radius:50%;background:#242a33;color:#e8edf5;box-shadow:0 2px 8px #0004}
#map-voice-talk svg{width:22px;height:22px}
#atlas-map-controls #map-voice-talk[aria-pressed=true]{background:#334d71;border-color:#9cbff8}
#map-voice-session{position:fixed;z-index:145;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:min(460px,76vw);min-height:48px;padding:2px 6px 2px 14px;border:1px solid #536277;border-radius:14px;background:#222832;color:#e8edf5;box-shadow:0 4px 20px #0004;font-size:14px}
#map-voice-session>span{min-width:0;line-height:1.35}#map-voice-session button{min-height:44px;min-width:44px;padding:8px;font-size:14px;border:0;border-radius:9px;background:transparent;white-space:nowrap}
#map-voice-session #map-voice-end{font-size:24px;color:#ccd6e5}
#map-voice-session[hidden],.voice-chat-controls button[hidden],.report-voice-controls button[hidden],#map-voice-session button[hidden]{display:none}
@media(max-width:720px){.voice-chat-controls,.report-voice-controls{gap:6px;padding:8px 12px}.voice-chat-controls span[role=status]{flex-basis:auto}.voice-chat-controls button,.report-voice-controls button{padding:8px 10px}}
