:root{color-scheme:dark;--bg:#111222;--panel:#191a30;--ink:#f5edf5;--muted:#b9b3c9;--pink:#f6a9d4;--line:#39354e}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 0 30%,#31203c80,transparent 48%),var(--bg);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.65}a{color:var(--pink);text-underline-offset:4px}button,input,textarea,select{font:inherit}button,a,select,textarea{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--pink);outline-offset:4px}.skip{position:fixed;top:-100px;background:var(--panel);padding:12px;z-index:9}.skip:focus{top:0}header{max-width:1440px;margin:auto;padding:28px 5vw;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;color:var(--ink);font-size:15px;font-weight:800;line-height:1.05;letter-spacing:.06em;text-decoration:none}.brand small{display:block;font-size:9px;letter-spacing:.2em;margin-top:8px;color:var(--pink)}.triangle{font-size:46px;color:var(--pink);line-height:1}.preview{border:1px solid #70536e;border-radius:30px;padding:4px 12px;color:#e6b9d4;font-size:11px;letter-spacing:.05em}.atlas-link{margin-left:auto;font-size:12px}main{max-width:1440px;margin:auto;padding:50px 5vw 35px;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(420px,1.3fr);gap:7vw}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:700;color:var(--pink)}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(52px,5.8vw,84px);line-height:1.02;letter-spacing:-.04em;margin:25px 0 30px}h1 em{color:var(--pink);font-weight:400}.intro{max-width:410px;min-width:0}.intro p{color:var(--muted)}.intro .lead{font-size:20px;color:var(--ink);margin-bottom:8px}.rule{height:1px;background:var(--line);width:70px;margin:32px 0}.intro h2{font-family:Georgia,serif;font-weight:400;font-size:24px;line-height:1.35}.key{list-style:none;padding:0;display:grid;gap:10px;font-size:13px}.key li{display:flex;gap:10px;align-items:center}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.documented{background:var(--pink)}.shared{background:#b7afff}.possible{border:1px solid #e6bed2}.small{font-size:11px;color:var(--muted);line-height:1.65}.conversation{background:linear-gradient(145deg,#232138,#18192c 60%);border:1px solid var(--line);border-radius:20px;padding:25px;min-width:0;display:flex;flex-direction:column;box-shadow:0 24px 90px #0003}.conversation-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.conversation-top p{margin:2px 0 20px;color:var(--muted);font-size:12px}.quiet{border:0;background:none;color:var(--muted);font-size:11px;padding:8px}.focus-label{font-size:12px;display:block}.focus-label span{display:block;color:var(--muted);font-size:10px}select{margin:7px 0 15px;width:100%;background:#141525;border:1px solid var(--line);color:var(--ink);padding:10px;border-radius:8px}#messages{min-height:280px;max-height:550px;overflow:auto;overscroll-behavior:contain;padding:0 8px 15px 0;scrollbar-color:#76526c transparent}.welcome{padding:20px 0 24px}.welcome h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin:0 0 8px}.welcome p{color:var(--muted);font-size:13px}.suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:20px}.suggestions button,.follow-ups button{color:var(--pink);border:1px solid #6a4c66;background:#3c294532;border-radius:9px;padding:9px 13px;text-align:left;font-size:12px}.turn{border-top:1px solid var(--line);padding:20px 0;overflow-wrap:anywhere}.turn.user{padding:12px 16px;border:1px solid #78536e;background:#4a2c4733;border-radius:12px;margin:15px 0;font-size:14px}.turn h3{font-family:Georgia,serif;font-size:20px;line-height:1.4;font-weight:400;margin:12px 0 5px}.turn p{font-size:13px;color:#e0d9e6;margin:7px 0}.record{padding:12px 0;border-top:1px solid #39354e}.record summary{cursor:pointer;font-size:13px}.record .badge{font-size:9px;color:var(--pink);text-transform:uppercase;letter-spacing:.07em;display:block}.metadata{font-size:11px;color:var(--muted)}.sources{font-size:11px;padding-left:18px}.sources li{margin:7px 0}.sources small{display:block;color:var(--muted)}.person-links{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.person-links a{border:1px solid var(--line);border-radius:7px;padding:5px 9px;font-size:11px;text-decoration:none}.mode-notice{padding:10px 12px;background:#322c41;border-left:2px solid var(--pink);font-size:12px;color:var(--muted)}.lead-card{border:1px dashed #95718c;border-radius:9px;padding:12px;margin:12px 0}.lead-card h3{font-size:17px}.follow-ups{display:flex;flex-direction:column;gap:8px;margin-top:15px}#ask{border:1px solid #7b607c;border-radius:12px;background:#11121f;overflow:hidden;margin-top:auto}textarea{resize:vertical;max-height:180px;min-height:80px;width:100%;border:0;background:transparent;color:var(--ink);padding:14px;font-size:13px}textarea::placeholder{color:#aaa1b4}.compose-bottom{display:flex;align-items:center;justify-content:space-between;padding:0 10px 10px;gap:10px}.compose-bottom>span{font-size:9px;color:var(--muted)}#send{border:0;border-radius:8px;background:var(--pink);color:#211522;font-size:12px;padding:9px 18px;font-weight:700}button:disabled{opacity:.5;cursor:wait}#notice{margin-bottom:0}#error{color:#ffc6cd;font-size:13px}footer{max-width:1440px;margin:auto;padding:20px 5vw 30px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:10px;border-top:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:800px){header{padding:20px 5vw;flex-wrap:wrap;gap:14px}.atlas-link{font-size:10px}main{grid-template-columns:minmax(0,1fr);padding-top:30px;gap:25px}.intro{max-width:none}.intro h1{font-size:54px;margin:15px 0}h1 br{display:none}h1 em{margin-left:.15em}.intro .rule,.intro h2,.intro h2+p,.intro .key,.intro .small:not(#collection-count){display:none}.intro p{font-size:13px}.intro .lead{font-size:18px}.conversation{padding:18px;border-radius:14px}#messages{max-height:55vh;min-height:240px}.compose-bottom>span{max-width:140px}footer{flex-direction:column;gap:5px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s}button:hover{filter:brightness(1.12)}}
.embedded-companion body{background:#19192d;font-size:13px}
.embedded-companion body>header,.embedded-companion .intro,.embedded-companion body>footer,.embedded-companion .skip{display:none}
.embedded-companion main{display:block;padding:0;max-width:none;margin:0;height:100dvh}
.embedded-companion .conversation{padding:12px;border:0;border-radius:0;height:100dvh;box-shadow:none;background:#19192d}
.embedded-companion .conversation-top .eyebrow{display:none}
.embedded-companion .conversation-top p{font-size:10px;margin-bottom:12px}
.embedded-companion .conversation-top .quiet{font-size:10px}
.embedded-companion .focus-label{font-size:11px}.embedded-companion .focus-label span{display:none}
.embedded-companion select{padding:7px;font-size:12px;margin-bottom:8px}
.embedded-companion #messages{flex:1;min-height:100px;max-height:none;padding-bottom:8px}
.embedded-companion .welcome{padding-top:12px}.embedded-companion .welcome h2{font-size:22px}
.embedded-companion .welcome p{font-size:12px}.embedded-companion .suggestions{margin-top:12px}
.embedded-companion .suggestions button{font-size:11px;padding:7px 10px}
.embedded-companion #ask{flex:none}.embedded-companion textarea{min-height:66px;max-height:130px;font-size:13px;padding:10px}
.embedded-companion #notice{font-size:9px;line-height:1.45;margin-top:8px}
.embedded-companion .compose-bottom>span{font-size:8px;max-width:150px}
.embedded-companion .turn h3{font-size:18px}.embedded-companion .turn p{font-size:12px}

.expanded-companion .conversation {
  width: min(100%, 80ch);
  margin-inline: auto;
  padding: clamp(12px, 3vw, 30px);
  font-size: 16px;
}
.expanded-companion #messages { min-height: 0; }
.expanded-companion .turn p,
.expanded-companion .turn.user,
.expanded-companion .record summary,
.expanded-companion textarea { font-size: 1rem; }
.expanded-companion .turn h3 { font-size: 1.4rem; }
.expanded-companion .sources,
.expanded-companion .metadata,
.expanded-companion .person-links a,
.expanded-companion .suggestions button,
.expanded-companion .follow-ups button,
.expanded-companion select { font-size: .875rem; }
.expanded-companion #notice { font-size: .6875rem; }
@media (max-height: 400px) {
  .expanded-companion .conversation { min-height: 100dvh; height: auto; }
  .expanded-companion #messages { flex: none; min-height: 8rem; max-height: 55dvh; }
}

.chat-tab body { display: flex; flex-direction: column; height: 100dvh; }
.chat-tab header { width: 100%; padding: 12px max(16px, calc((100% - 78ch) / 2)); gap: 12px; flex-wrap: nowrap; }
.chat-tab .brand, .chat-tab .intro, .chat-tab footer { display: none; }
.chat-tab .preview { padding: 0; border: 0; color: var(--ink); font: 24px/1.3 Georgia, serif; }
.chat-tab .atlas-link { font-size: 14px; white-space: nowrap; }
.chat-tab main { display: flex; flex: 1; min-height: 0; width: 100%; padding: 0; }
.chat-tab .conversation { min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.chat-tab #messages { flex: 1; max-height: none; }
.chat-tab #ask { flex-shrink: 0; }
.chat-tab #notice { margin-block: 5px 0; }
@media (max-height: 460px) {
  .chat-tab body { min-height: 100dvh; height: auto; }
  .chat-tab #messages { flex: none; min-height: 8rem; max-height: 55dvh; }
}

/* Readability and keyboard access across compact, expanded and tab views. */
body,.embedded-companion body{font-size:1rem;line-height:1.6}
.conversation-top p,.embedded-companion .conversation-top p,
.focus-label,.embedded-companion .focus-label,
.quiet,.embedded-companion .conversation-top .quiet,
.focus-label span,.metadata,.sources,.person-links a,.mode-notice,
.small,.expanded-companion #notice,.embedded-companion #notice,
.compose-bottom>span,.embedded-companion .compose-bottom>span{font-size:.875rem;line-height:1.5}
.welcome p,.embedded-companion .welcome p,
.turn p,.embedded-companion .turn p,.turn.user,
.record summary,.embedded-companion textarea,textarea,
select,.embedded-companion select{font-size:1rem}
.suggestions button,.embedded-companion .suggestions button,
.follow-ups button,#send{font-size:.875rem;min-height:44px}
button,select{min-height:44px}
.record .badge{font-size:.75rem}
summary:focus-visible,#messages:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
#ask:focus-within{outline:3px solid var(--pink);outline-offset:2px}
#ask textarea:focus-visible{outline-offset:-4px}
#messages{scroll-padding:6px}
.embedded-companion .conversation-top{align-items:flex-start}
.embedded-companion .conversation-top p{margin:0 0 10px}
.embedded-companion .focus-label{line-height:1.5}
.compose-bottom{flex-wrap:wrap}
.compose-bottom>span,.embedded-companion .compose-bottom>span{max-width:none;flex:1 1 9rem}
@media(max-height:650px){
 .embedded-companion .conversation,.chat-tab .conversation{height:auto;min-height:100dvh}
 .embedded-companion #messages,.chat-tab #messages{flex:none;min-height:10rem;max-height:45dvh}
 .chat-tab body{height:auto;min-height:100dvh}
}
@media(forced-colors:active){
 #ask,select,.conversation{border:1px solid CanvasText}
 button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,#messages:focus-visible,#ask:focus-within{outline-color:Highlight}
}
