/* A single continuous workspace; the existing composer is never remounted. */
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) .chat-main .chat-wrap {
  overflow-y:auto; overflow-x:hidden; justify-content:flex-start;
  padding:clamp(28px,5vh,72px) clamp(22px,4vw,64px) 28px;
}
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) .chat-main .msgs {
  flex:none; overflow:visible; height:auto; min-height:0; padding:0;
  width:100%; max-width:960px; margin:0 auto 26px;
}
.chat-start-heading {display:flex;align-items:center;justify-content:space-between;gap:24px;text-align:left;padding:0 4px;font-family:var(--font-ui,system-ui,sans-serif);animation:chat-start-enter 360ms ease-out both}
.chat-start-intro {min-width:0}
.chat-start-eyebrow {display:flex;align-items:center;gap:8px;color:#66738b;font-size:12px;font-weight:550;letter-spacing:.02em;margin-bottom:16px}
.chat-start-brand-dot {width:6px;height:6px;border-radius:50%;background:#356dff;box-shadow:0 0 0 4px #356dff0b}
.chat-start-heading h2 {font-size:clamp(27px,2.5vw,36px);line-height:1.3;font-weight:600;letter-spacing:-.04em;color:#252b35;margin:0 0 12px;text-wrap:balance}
.chat-start-heading p {font-size:14px;line-height:1.7;color:#747b86;margin:0}
.chat-start-heading h2>span {color:#3568da}
.chat-start-brand-art {position:relative;display:grid;place-items:center;flex:none;width:154px;height:144px;isolation:isolate;pointer-events:none}
.chat-start-brand-art::before {content:"";position:absolute;inset:7px;border-radius:50%;background:radial-gradient(ellipse,#e9efff85,transparent 70%);z-index:-1}
.chat-start-brand-art img {width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 12px 12px #2459b91c);transform:rotate(-8deg);animation:chat-start-greet 1800ms ease-in-out 2}
.chat-start-orbit {position:absolute;width:142px;height:88px;border:1px solid #dce5f7;border-radius:50%;transform:rotate(-24deg);z-index:-1}
.chat-start-art-spark {position:absolute;right:3px;top:17px;font-size:20px;color:#bea57a}
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) .chat-main .composer {
  width:100%;max-width:960px;margin:0 auto;flex:none;border:1px solid #dfe2e8;
  border-radius:20px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(120deg,#d4e1fc,#e7e9ef 48%,#e9dfce) border-box;border-color:transparent;box-shadow:0 2px 3px #293d6505,0 12px 36px -18px #29436d28;
  transition:border-color 160ms,box-shadow 160ms;
}
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) .composer:focus-within {border-color:#9ab4ff;box-shadow:0 0 0 4px #356dff08,0 14px 40px -20px #385f9b38}
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) #ta {min-height:94px;font-size:15px;line-height:1.65;padding:20px 18px 10px}
html:root body .chat-workspace.chat-start-active:has(.chat-start-heading) .composer-bar {border-top-color:#f0f1f4}
#chatStartHub {width:100%;max-width:960px;margin:0 auto;flex:none;font-family:var(--font-ui,system-ui,sans-serif);color:#303641}
.chat-workspace:not(:has(.chat-start-heading)) #chatStartHub {display:none}
.chat-start-tip {display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:11px;color:#7a818c;padding:14px 4px 30px;line-height:1.5}
#chatStartHub svg {width:16px;height:16px;flex-shrink:0;stroke-width:1.65}
.chat-start-tip svg {width:13px!important;height:13px!important}
.chat-start-section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding-inline:4px}
.chat-start-section-head h3 {font-size:13px;font-weight:600;margin:0;color:#444c58}
#chatStartHub button {font-family:inherit;cursor:pointer}
.chat-start-actions {margin:12px 0 0;padding:14px 16px;border:1px solid #e1e8f4;border-radius:12px;background:#fafcff}
.chat-start-actions[hidden] {display:none}
.chat-start-actions>header {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#58677c}
.chat-start-actions>header button {display:grid;place-items:center;border:0;background:transparent;color:#758297;padding:4px}
.chat-start-actions>div {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chat-start-actions [data-entry-action] {flex:1 1 180px;text-align:left;border:1px solid #e4eaf3;border-radius:8px;background:#fff;padding:10px 12px;color:#36475f}
.chat-start-actions b {display:block;font-size:13px;font-weight:550}.chat-start-actions small {display:block;margin-top:4px;font-size:12px;color:#788395;line-height:1.5}
.chat-start-actions button:focus-visible {outline:2px solid #7097dc;outline-offset:2px}
.chat-start-section-head button,.chat-start-foot button {display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#68717e;background:transparent;border:0;padding:6px 0}
.chat-start-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;animation:chat-start-enter 420ms 80ms ease-out both}
.chat-start-module {--entry-ink:#4b70bc;--entry-tint:#eef3fd;display:flex;align-items:center;min-width:0;border:1px solid #e9ecf2;border-radius:15px;background:#fff;transition:transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease}
.chat-start-module:hover,.chat-start-module:focus-within {transform:translateY(-2px);border-color:#cdd8ed;box-shadow:0 7px 18px -9px #263d7130}
.chat-start-module:active {transform:translateY(0)}
.chat-start-module[data-module="projects"],.chat-start-module[data-module="application-materials"] {--entry-ink:#9a7644;--entry-tint:#faf4e9}
.chat-start-module[data-module="interview"] {--entry-ink:#478473;--entry-tint:#eff7f3}
.chat-start-module-main {display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;text-align:left;padding:20px 8px 20px 16px;border:0;background:transparent;color:inherit}
.chat-start-module-main>span:last-child {min-width:0}
.chat-start-icon {display:grid;place-items:center;width:36px;height:36px;flex:none;color:var(--entry-ink);background:var(--entry-tint);border-radius:11px;box-shadow:inset 0 1px 0 #fff;transition:transform 180ms ease}
.chat-start-module:hover .chat-start-icon {transform:rotate(-5deg)}
#chatStartHub .chat-start-icon svg {width:19px;height:19px;stroke-width:1.6}
.chat-start-module strong {display:block;font-size:14px;line-height:1.6;font-weight:550;color:#303641}
.chat-start-module small {display:block;font-size:12px;line-height:1.65;color:#7a818c;margin-top:5px;text-wrap:pretty}
.chat-start-open {flex:none;align-self:flex-start;margin:16px 7px 0 0;border:0;background:transparent;color:#9198a3;padding:4px;border-radius:6px}
.chat-start-open:hover {color:#3268e8;background:#edf2ff}
.chat-start-library {margin-top:16px;border-bottom:1px solid #eceef1;padding-bottom:14px}
.chat-start-library summary {display:flex;align-items:center;gap:5px;width:fit-content;cursor:pointer;font-size:12px;color:#7a818c;padding:5px 4px;list-style:none}
.chat-start-library summary::-webkit-details-marker {display:none}
.chat-start-library[open] summary svg {transform:rotate(180deg)}
.chat-start-search {display:flex;align-items:center;gap:8px;border-bottom:1px solid #e7e9ee;margin:12px 4px 6px;color:#8b929d}
.chat-start-search input {width:100%;min-width:0;border:0;background:transparent;padding:10px 0;font:inherit;font-size:13px;color:#303641;outline:0}
.chat-start-search:focus-within {border-color:#356dff}
.chat-start-library-items {display:grid;grid-template-columns:1fr 1fr;gap:2px 24px}
.chat-start-library-items button {display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:0;border-radius:6px;background:transparent;padding:10px 8px;font-size:13px;color:#444c58}
.chat-start-library-items button:hover {background:#f6f7f9}
.chat-start-library-items small {display:flex;align-items:center;gap:5px;color:#8b929d;font-size:11px;white-space:nowrap}
.chat-start-no-results {font-size:12px;color:#7a818c;padding:12px 4px;grid-column:1/-1}
.chat-start-foot {display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:13px 4px 0;font-size:12px;color:#959ba4}
#chatStartHub button:focus-visible,#chatStartHub summary:focus-visible {outline:2px solid #356dff;outline-offset:3px;border-radius:6px}
@container caddie-conversation (max-width:800px) {
  .chat-start-brand-art {width:100px;height:116px}
  .chat-start-brand-art img {width:88px;height:88px}
  .chat-start-orbit {width:104px;height:72px}
  .chat-start-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .chat-start-active .composer-hint {display:none!important}
  .chat-start-active .composer-bar {flex-wrap:nowrap!important}
}
@container caddie-conversation (max-width:480px) {
  .chat-start-brand-art {display:none}
  .chat-start-grid,.chat-start-library-items {grid-template-columns:1fr}
  .chat-start-tip>span {display:none}
  .chat-start-heading h2 {font-size:27px}
  .chat-start-module-main {padding-block:12px}
}
/* Answer hierarchy respects the selected reading family and size. */
html:root body .chat-main .chat-answer .prose {max-width:1080px}
html:root body .chat-main .chat-answer .prose :is(h1,h2,h3,h4) {color:#303640;font-weight:600;line-height:1.45;letter-spacing:-.02em;max-width:100%;margin:1.6em 0 .65em}
html:root body .chat-main .chat-answer .prose h1 {font-size:1.5em!important}
html:root body .chat-main .chat-answer .prose h2 {font-size:1.3em!important}
html:root body .chat-main .chat-answer .prose h3 {font-size:1.13em!important}
html:root body .chat-main .chat-answer .prose>:first-child {margin-top:0}
html:root body .chat-main .chat-answer .prose p {margin:0 0 1em;max-width:105ch}
html:root body .chat-main .chat-answer .prose :is(ul,ol) {margin:.6em 0 1.2em;padding-left:1.5em}
html:root body .chat-main .chat-answer .prose li {margin:.4em 0;padding-left:.2em}
html:root body .chat-main .chat-answer .prose table {border-collapse:collapse;border-radius:0;font-size:.9em!important;margin:1em 0 1.5em}
html:root body .chat-main .chat-answer .prose :is(th,td) {padding:11px 14px;border:0;border-bottom:1px solid #e6e8ec;line-height:1.7;vertical-align:top}
html:root body .chat-main .chat-answer .prose th {background:#f7f8fa;font-weight:600;color:#46505f}
html:root body .chat-main .chat-answer .prose blockquote {background:transparent;border-left:2px solid #d8dee8;padding:2px 0 2px 16px;margin:1em 0;color:#707987;border-radius:0}
@media(prefers-reduced-motion:reduce) {#chatStartHub *,.chat-start-active .composer {transition:none!important}}
@keyframes chat-start-enter {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes chat-start-greet {0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-4px) rotate(-3deg)}}
@media(prefers-reduced-motion:reduce) {
  .chat-start-heading,.chat-start-brand-art img,.chat-start-grid {animation:none!important}
  .chat-start-module:hover,.chat-start-module:focus-within,.chat-start-module:hover .chat-start-icon {transform:none!important}
}
/* Older cross-module :is() rules contain IDs; scope these overrides explicitly. */
html:root body .chat-main #msgs .chat-answer .prose {max-width:min(100%,1080px)}
html:root body .chat-main #msgs .chat-answer .prose p {max-width:105ch;margin:0 0 1em}
html:root body .chat-main #msgs .chat-answer .prose .caddie-table-scroll {width:fit-content;max-width:100%;border:0;border-radius:0;padding:0;margin:1em 0 1.5em;overflow-x:auto}
html:root body .chat-main #msgs .chat-answer .prose table {width:auto;max-width:none;display:table;border:0;border-radius:0;padding:0;margin:0;border-collapse:collapse}
html:root body .chat-main #msgs .chat-answer .prose :is(th,td) {padding:11px 16px;border:0;border-bottom:1px solid #e6e8ec;line-height:1.7;vertical-align:top}
html:root body .chat-main #msgs .chat-answer .prose th {background:#f7f8fa;font-weight:600;color:#46505f}
