/* BARTA Studio. Shared by Home, Public Answers and Project Starter. */
@font-face {
  font-family: 'BARTA Studio Sans';
  src: url('assets/fonts/ubuntu-sans-studio.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.assistant-entry { display:inline-flex; align-items:center; min-height:44px; margin-top:18px; padding:8px 0; font:inherit; font-size:13px; font-weight:600; border:0; border-bottom:1px solid var(--line); background:none; color:var(--green); cursor:pointer; }
.assistant-entry[hidden], #barta-assistant [hidden] { display:none!important; }
.assistant-launcher { flex:none; min-width:130px; }
.assistant-nav-button { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; width:100%; min-height:54px; padding:9px 15px; border:1px solid #9ba491; border-radius:12px; background:#ffffff50; color:var(--ink); font:inherit; font-size:13px; font-weight:600; line-height:1.25; text-align:left; }
.assistant-nav-button:hover { background:#e8ecdf; border-color:#68795c; }
.assistant-availability { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); font-weight:400; }
.assistant-availability:before { content:''; width:5px; height:5px; border-radius:50%; background:#737b6c; }
.assistant-launcher[data-state=connected] .assistant-availability { color:#446343; }
.assistant-launcher[data-state=connected] .assistant-availability:before { background:#527444; box-shadow:0 0 0 3px #52744415; }
.header nav { gap:clamp(13px,1.7vw,28px); }
.hero-copy>.text-link { display:flex; width:fit-content; min-height:44px; margin-top:9px; }

/* A distinct room over the site, without compressing or reflowing the page. */
#barta-assistant {
  --studio-bg:#171b1b; --studio-panel:#222827; --studio-ink:#f2f0e8;
  --studio-muted:#b2b9b1; --studio-line:#3b4340; --studio-accent:#f2aa8b;
  --ink:var(--studio-ink); --muted:var(--studio-muted); --line:var(--studio-line); --green:var(--studio-accent);
  position:fixed; inset:0; width:min(820px,calc(100% - 40px));
  height:min(880px,calc(100dvh - 40px)); max-width:none; max-height:none; margin:auto; padding:0;
  border:1px solid #49504a; border-radius:18px; background:var(--studio-bg); color:var(--studio-ink);
  overflow:hidden; box-shadow:0 28px 100px #0b151650; color-scheme:dark;
  font-family:'BARTA Studio Sans','Trebuchet MS',sans-serif; font-size:15px; line-height:1.6;
}
#barta-assistant[open] { display:flex; flex-direction:column; }
#barta-assistant::backdrop { background:#15201d55; backdrop-filter:blur(3px); }
body.assistant-open { overflow:hidden; }
#barta-assistant :is(button,a,summary,[tabindex]):focus-visible { outline:2px solid var(--studio-accent); outline-offset:4px; }
#barta-assistant button { font-family:inherit; }
#barta-assistant .text-link { font-size:12px; font-weight:500; color:var(--studio-muted); }
#barta-assistant .text-link:hover { color:var(--studio-ink); }
.assistant-header { display:flex; flex:none; justify-content:space-between; align-items:center; gap:16px; padding:26px 36px 18px; }
.assistant-brand { display:flex; align-items:center; gap:13px; min-width:0; }
.assistant-studio-mark { display:grid; place-items:center; width:43px; height:43px; border:1px solid #796253; border-radius:50%; font:italic 35px/.9 Georgia,serif; letter-spacing:-.13em; padding:0 5px 4px 0; color:var(--studio-accent); }
.assistant-header h2 { font-size:20px; font-weight:500; letter-spacing:-.035em; line-height:1.2; margin:0; }
.assistant-studio-label { display:block; margin-top:5px; font-size:9px; letter-spacing:.16em; color:var(--studio-muted); }
.assistant-close { flex:none; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--studio-line); border-radius:50%; background:transparent; color:var(--studio-ink); font:300 27px/1 sans-serif; }
.assistant-close:hover { background:#343b35; border-color:var(--studio-accent); transform:rotate(90deg); }
.assistant-toolbar { display:flex; flex:none; justify-content:space-between; align-items:center; gap:12px; margin:0 36px; padding:0 0 12px; border-bottom:1px solid var(--studio-line); }
#assistant-context { font-size:11px; color:var(--studio-muted); line-height:1.5; }
.assistant-toolbar .text-link { flex:none; min-height:44px; }
.assistant-toolbar .text-link:before { content:'+'; font-size:19px; color:var(--studio-accent); }
#assistant-export:before { content:'↓'; }
.assistant-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; scrollbar-color:#657065 transparent; padding:24px 30px 10px 36px; }
.assistant-welcome { margin:0; }
.assistant-opening { display:grid; grid-template-columns:1.22fr 1fr; align-items:center; min-height:220px; gap:12px; }
.assistant-opening-copy { position:relative; z-index:1; }
.assistant-welcome .eyebrow { font-size:9px; font-weight:500; letter-spacing:.14em; color:var(--studio-muted); margin-bottom:22px; }
.assistant-welcome h3 { font-size:clamp(40px,4.2vw,59px); font-weight:400; line-height:1.02; letter-spacing:-.055em; }
.assistant-welcome h3 em { font-family:Georgia,'Times New Roman',serif; font-weight:400; color:var(--studio-accent); letter-spacing:-.065em; }
.assistant-opening-copy>p:last-child, #assistant-planning-intro>p:last-child { font-size:13px; line-height:1.7; color:var(--studio-muted); margin-top:20px; }
.assistant-idea-field { position:relative; align-self:stretch; display:flex; align-items:center; justify-content:center; min-width:0; margin:0; }
.assistant-idea-field img { width:100%; height:auto; max-width:220px; object-fit:contain; filter:hue-rotate(310deg) saturate(.55); position:relative; z-index:1; }
.assistant-orbit { position:absolute; width:90%; aspect-ratio:1; border:1px solid #61655645; border-radius:50%; }
.assistant-orbit:before,.assistant-orbit:after { content:''; position:absolute; border-radius:50%; }
.assistant-orbit:before { inset:12%; border:1px dashed #61655645; }
.assistant-orbit:after { width:5px; height:5px; background:var(--studio-accent); left:14%; top:14%; box-shadow:0 0 0 5px #f2aa8b09; }
.assistant-idea-field figcaption { position:absolute; bottom:-4px; left:10%; right:7%; display:flex; justify-content:space-between; align-items:center; gap:4px; font-size:9px; letter-spacing:.12em; color:var(--studio-muted); }
.assistant-idea-field figcaption span { color:var(--studio-accent); font-size:19px; }
.assistant-routes-label { display:flex; justify-content:space-between; gap:12px; margin:24px 0 9px; font-size:9px; font-weight:500; letter-spacing:.12em; color:var(--studio-muted); }
.assistant-routes-label span:last-child { color:var(--studio-accent); }
.assistant-suggestions { border-top:1px solid var(--studio-line); }
.assistant-suggestions button { display:flex; align-items:center; gap:19px; width:100%; min-height:70px; padding:11px 4px; border:0; border-bottom:1px solid var(--studio-line); border-radius:0; background:transparent; color:var(--studio-ink); text-align:left; transition:background .2s,padding .2s; }
.assistant-route-number { align-self:flex-start; padding-top:5px; color:var(--studio-accent); font-size:10px; font-variant-numeric:tabular-nums; }
.assistant-route-copy { display:block; flex:1; }
.assistant-route-copy strong { display:block; font-weight:400; font-size:20px; letter-spacing:-.025em; line-height:1.3; }
.assistant-route-copy small { display:block; margin-top:4px; color:var(--studio-muted); font-size:12px; line-height:1.4; }
.assistant-route-arrow { flex:none; display:grid; place-items:center; width:33px; height:33px; border-radius:50%; border:1px solid #525a51; font-size:19px; color:var(--studio-accent); transition:transform .2s,background .2s; }
.assistant-suggestions button:hover { background:#ffffff05; padding-left:12px; padding-right:8px; }
.assistant-suggestions button:hover .assistant-route-arrow { transform:rotate(45deg); background:var(--studio-accent); color:var(--studio-bg); border-color:var(--studio-accent); }
.assistant-links { display:flex; flex-wrap:wrap; gap:0 20px; margin-top:14px; font-size:11px; color:var(--studio-muted); }
.assistant-links a { display:flex; align-items:center; gap:7px; min-height:44px; text-decoration:none; }
.assistant-links a:after { content:'↗'; color:var(--studio-accent); }
.assistant-links a:hover { color:var(--studio-ink); text-decoration:underline; text-underline-offset:5px; }
#barta-assistant[data-populated=true] .assistant-links, #barta-assistant[data-planning=true] .assistant-links { display:none; }
#barta-assistant[data-ready=false] .assistant-links { display:flex; }
#assistant-retry { min-height:44px; margin:12px 0; padding:0 14px; border:1px solid #736455; border-radius:5px; color:var(--studio-accent)!important; }
.assistant-status-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; }
.assistant-status-row #assistant-status { flex:1 1 240px; margin-bottom:10px; }
.assistant-status-row #assistant-retry { flex:none; margin:0 0 10px; }
.assistant-session-note { padding:12px 0; margin:0 0 22px; border-block:1px solid var(--studio-line); color:var(--studio-muted); font-size:12px; line-height:1.7; }

/* Responses follow a readable editorial rhythm instead of nested chat cards. */
.assistant-turn { position:relative; margin:0 0 30px; font-size:15px; overflow-wrap:anywhere; }
.assistant-turn>strong { display:flex; align-items:center; gap:8px; font-size:10px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; margin-bottom:12px; color:var(--studio-accent); }
.assistant-turn[data-role=assistant] { padding:0 0 0 22px; border-left:1px solid #806653; }
.assistant-turn[data-role=assistant]>strong:before { content:''; display:block; width:6px; height:6px; border:1px solid var(--studio-accent); transform:rotate(45deg); }
.assistant-turn[data-role=user] { margin-left:60px; padding:18px 22px; background:var(--studio-panel); border:1px solid var(--studio-line); border-radius:12px 12px 3px 12px; }
.assistant-turn[data-role=user]>strong { color:var(--studio-muted); font-size:9px; margin-bottom:7px; }
.assistant-turn p { white-space:pre-wrap; line-height:1.85; margin:12px 0; }
.assistant-turn[data-role=user]>p { margin:0; line-height:1.7; }
.assistant-turn ul,.assistant-turn ol { padding-left:21px; margin:15px 0; }
.assistant-turn li { margin:10px 0; line-height:1.8; padding-left:3px; }
.assistant-turn li::marker { color:var(--studio-accent); }
.assistant-turn h3,.assistant-turn h4,.assistant-turn h5,.assistant-turn h6 { margin:22px 0 10px; font-size:1.12em; line-height:1.4; font-weight:600; letter-spacing:0; }
.assistant-turn h3 { font-size:1.3em; }
.assistant-turn details { font-size:12px; line-height:1.75; margin-top:22px; border-block:1px solid var(--studio-line); padding:0 1px; color:var(--studio-muted); }
.assistant-turn summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; cursor:pointer; font-weight:500; }
.assistant-turn summary:after { content:'+'; font-size:17px; font-weight:400; color:var(--studio-accent); }
.assistant-turn details[open]>summary:after { content:'−'; }
.assistant-turn details a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; color:var(--studio-accent); }
.assistant-turn blockquote { margin:5px 0 16px; padding-left:14px; border-left:2px solid #697b67; color:var(--studio-muted); white-space:pre-wrap; }
.assistant-turn pre { white-space:pre-wrap; overflow-wrap:anywhere; background:#101515; border:1px solid var(--studio-line); padding:16px; border-radius:6px; font-size:12px; line-height:1.7; }
.assistant-table-wrap { overflow-x:auto; max-width:100%; margin:16px 0; }
.assistant-table-wrap table { border-collapse:collapse; font-size:12px; width:100%; }
.assistant-table-wrap th,.assistant-table-wrap td { border:1px solid var(--studio-line); padding:10px; text-align:left; vertical-align:top; min-width:72px; }
.assistant-table-wrap th { background:var(--studio-panel); font-weight:500; color:var(--studio-accent); }
.assistant-turn-notes { display:flex; align-items:center; gap:7px; margin-top:12px; padding-top:10px; border-top:1px solid var(--studio-line); font-size:11px; color:var(--studio-muted); }
.assistant-answer-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:10px; }
.assistant-answer-actions button { min-height:44px; }
#assistant-handoff { margin-bottom:6px; font-size:12px; line-height:1.6; color:var(--studio-accent); }

/* Drafting is local. Only the existing valid-session Send action transmits it. */
.assistant-composer { flex:none; max-height:min(56dvh,56%); overflow-y:auto; padding:18px 36px max(12px,env(safe-area-inset-bottom)); border-top:1px solid var(--studio-line); background:#1d2321; }
#assistant-status { font-size:12px; line-height:1.6; color:var(--studio-accent); margin:0 0 12px; overflow-wrap:anywhere; }
#assistant-status:empty { display:none; }
#assistant-form>label.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.assistant-input-shell { padding:7px; border:1px solid #788173; border-radius:10px; background:#f2f0e8; box-shadow:0 4px 16px #00000010; color-scheme:light; }
.assistant-input-shell:focus-within { outline:2px solid var(--studio-accent); outline-offset:3px; }
#assistant-question { display:block; box-sizing:border-box; min-width:0; width:100%; min-height:58px; max-height:min(260px,28dvh); resize:none; padding:8px 10px; border:0; border-radius:4px; font:inherit; font-size:16px; line-height:1.55; background:transparent; color:#202723; margin:0; }
#assistant-question:focus-visible { outline:none; }
#assistant-question::placeholder { color:#626b60; opacity:1; }
.assistant-input-row { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:0 2px 1px 10px; }
.assistant-composer-note { color:#626b60; font-size:10px; }
#assistant-send { margin-left:auto; display:flex; align-items:center; justify-content:center; gap:14px; flex:none; padding:9px 17px; min-height:44px; border:1px solid #222b25; border-radius:6px; background:#242d26; color:#fff9ef; font:inherit; font-size:12px; font-weight:500; transform:none; }
#assistant-send:hover { background:#3a463b; }
#assistant-send:after { content:'↑'; font-size:19px; }
#assistant-send:disabled { background:#dde0d5; border-color:#c9cec0; color:#697164; cursor:not-allowed; }
#barta-assistant #assistant-send:focus-visible { outline-color:#6a4734; }
.assistant-keyboard { font-size:10px; color:var(--studio-muted); margin-top:7px; }
.assistant-input-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 14px; margin-top:7px; }
.assistant-input-meta .assistant-keyboard { margin:0; }
#assistant-message-limit,#assistant-notes-limit { font-size:11px; color:var(--studio-muted); line-height:1.5; }
#assistant-message-limit[data-invalid=true],#assistant-notes-limit[data-invalid=true] { color:var(--studio-accent); }
.assistant-waiting { position:sticky; top:0; z-index:1; background:#1d2321; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0 10px; }
.assistant-waiting #assistant-progress { display:flex; align-items:center; gap:12px; flex:1; min-width:0; margin:0; font-size:13px; color:var(--studio-ink); line-height:1.5; }
#assistant-elapsed { margin-left:7px; color:var(--studio-muted); font-variant-numeric:tabular-nums; font-size:11px; }
#assistant-cancel { min-height:44px; border:1px solid #71695b; border-radius:6px; padding:6px 13px; background:transparent; font:inherit; font-size:12px; color:var(--studio-accent); }
#assistant-cancel:hover { background:#393b31; }
.assistant-morph { display:inline-block; flex:none; width:24px; height:24px; border:1px solid var(--studio-accent); border-radius:50%; position:relative; }
.assistant-morph:before { content:''; position:absolute; inset:3px 7px; border:1px solid var(--studio-accent); border-radius:50%; transform:rotate(35deg); }
.assistant-morph:after { content:''; position:absolute; width:5px; height:5px; border-radius:50%; top:0; left:1px; background:var(--studio-accent); }
#barta-assistant[open][data-pending=true] .assistant-morph.is-active { animation:barta-orbit 3s linear infinite; }
@keyframes barta-orbit { to { transform:rotate(360deg); } }
#barta-assistant[data-pending=true] .assistant-input-shell, #barta-assistant[data-pending=true] .assistant-keyboard { display:none; }
.assistant-connection { font-size:11px; color:var(--studio-muted); line-height:1.6; margin-top:4px; }
.assistant-connection>summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; }
.assistant-connection>summary:after { content:'+'; font-size:17px; color:var(--studio-accent); }
.assistant-connection[open]>summary:after { content:'−'; }
.assistant-connection>p { margin-bottom:10px; }
.assistant-health-controls { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin:10px 0; }
.assistant-health-controls button { min-height:44px; border:0; background:none; color:var(--studio-accent); font:inherit; text-decoration:underline; }
.assistant-disclosure { font-size:11px; line-height:1.7; color:var(--studio-muted); }
.assistant-disclosure a { text-decoration:underline; text-underline-offset:3px; color:var(--studio-ink); }

/* Existing reviewable Project Starter notes and replacement decision. */
.assistant-notes { margin:0 0 14px; padding:12px 14px; border:1px solid #58634f; border-radius:8px; background:#293329; }
.assistant-notes-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#assistant-notes-title { font-size:12px; font-weight:500; overflow-wrap:anywhere; }
#assistant-notes-remove { flex:none; min-width:44px; min-height:44px; padding:4px; border:0; border-radius:6px; background:none; color:var(--studio-ink); font-size:23px; }
.assistant-notes small { font-size:10px; color:var(--studio-muted); }
.assistant-notes details { margin-top:4px; font-size:11px; color:var(--studio-muted); }
.assistant-notes summary { display:flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
.assistant-notes textarea { box-sizing:border-box; width:100%; min-height:100px; max-height:220px; resize:vertical; overflow:auto; font:inherit; font-size:13px; line-height:1.6; padding:10px; margin-top:5px; background:#171f18; color:var(--studio-ink); border:1px solid var(--studio-line); border-radius:4px; }
.assistant-notes label { display:block; font-size:12px; }
.assistant-notes #assistant-notes-limit { margin:6px 0 0; }
.assistant-planning-review { flex:1; min-height:0; overflow-y:auto; padding:38px 36px; }
.assistant-planning-review h3, #assistant-planning-intro h3 { font-size:36px; font-weight:400; line-height:1.15; letter-spacing:-.04em; }
.assistant-planning-review p { max-width:560px; font-size:15px; line-height:1.8; margin-top:20px; color:var(--studio-muted); }
.assistant-planning-review>div { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.assistant-planning-review button { min-height:48px; padding:12px 16px; border:1px solid #817767; border-radius:6px; background:transparent; font:inherit; font-size:13px; color:var(--studio-ink); }
.assistant-planning-review button:first-child { background:var(--studio-accent); color:#251f18; border-color:var(--studio-accent); }
#barta-assistant[data-planning-review=true]>.assistant-scroll, #barta-assistant[data-planning-review=true]>.assistant-composer { display:none; }
#barta-assistant[data-reset-review=true]>.assistant-scroll, #barta-assistant[data-reset-review=true]>.assistant-composer { display:none; }
.assistant-toolbar-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 18px; }
.assistant-toolbar-actions .text-link { min-height:44px; }
#barta-assistant[data-planning=true][data-populated=false]:not([data-planning-review=true]) { height:auto; max-height:calc(100dvh - 40px); }
#barta-assistant[data-planning=true][data-populated=false] .assistant-scroll { flex:0 1 auto; padding-block:18px; }
#barta-assistant[data-planning=true][data-populated=false] .assistant-composer { max-height:65dvh; }
#assistant-planning-intro .eyebrow { margin-bottom:8px; }
#assistant-planning-intro h3 { font-size:26px; }
#assistant-planning-intro>p:last-child { margin-top:8px; }

@media(max-width:1100px) and (min-width:621px) {
  .header { padding-inline:28px; } .header nav { gap:14px; }
  .header nav>a[href='#about'],.header nav>a[href='#process'] { display:none; }
  .nav-cta { margin-left:0; padding-inline:12px; } .assistant-launcher { min-width:120px; }
}
@media(max-width:800px) {
  .header .assistant-launcher { min-width:120px; } .assistant-nav-button { min-height:54px; }
  .starter-header { height:auto; min-height:100px; gap:12px; flex-wrap:wrap; padding-block:18px; }
  .starter-header nav { flex-wrap:wrap; }
  #barta-assistant { width:calc(100% - 24px); height:min(880px,calc(100dvh - 24px)); }
}
@media(max-width:620px) {
  .header nav .assistant-launcher { width:100%; padding:8px 0; }
  #barta-assistant { inset:0; width:100%; height:100dvh; border:0; border-radius:0; }
  .assistant-header { padding:18px 20px 10px; }
  .assistant-header h2 { font-size:19px; }
  .assistant-studio-label { font-size:9px; }
  .assistant-studio-mark { width:38px; height:38px; font-size:31px; }
  .assistant-toolbar { margin-inline:20px; padding-bottom:8px; gap:8px; }
  #assistant-context { font-size:10px; max-width:52%; }
  .assistant-toolbar .text-link { font-size:10px!important; gap:7px; }
  .assistant-scroll { padding:24px 14px 14px 20px; }
  .assistant-opening { min-height:174px; grid-template-columns:1.45fr .8fr; gap:0; }
  .assistant-welcome .eyebrow { font-size:9px; letter-spacing:.04em; margin-bottom:15px; }
  .assistant-welcome h3 { font-size:40px; }
  .assistant-opening-copy>p:last-child { font-size:11px; margin-top:15px; }
  .assistant-idea-field { margin-left:-12px; }
  .assistant-idea-field img { width:100%; max-width:100%; }
  .assistant-idea-field figcaption { display:none; }
  .assistant-orbit { width:100%; }
  .assistant-routes-label { margin-top:26px; font-size:9px; letter-spacing:.08em; }
  .assistant-routes-label span:last-child { display:none; }
  .assistant-suggestions button { gap:14px; min-height:74px; padding-block:12px; }
  .assistant-route-copy strong { font-size:19px; }
  .assistant-route-copy small { font-size:11px; max-width:215px; }
  .assistant-route-number { font-size:9px; }
  .assistant-route-arrow { width:29px; height:29px; font-size:17px; }
  .assistant-links { gap:0 15px; font-size:10px; margin-top:8px; }
  .assistant-composer { padding:14px 20px max(8px,env(safe-area-inset-bottom)); }
  .assistant-composer-note { display:none; }
  .assistant-input-shell { padding:5px; }
  #assistant-question { min-height:52px; padding:7px; }
  #assistant-send { min-height:44px; }
  .assistant-keyboard { font-size:9px; }
  .assistant-connection { font-size:10px; margin-top:1px; }
  .assistant-turn { font-size:14px; }
  .assistant-turn[data-role=user] { margin-left:25px; padding:15px 17px; }
  .assistant-turn[data-role=assistant] { padding-left:15px; }
  .assistant-planning-review { padding:28px 20px; }
  .assistant-planning-review h3, #assistant-planning-intro h3 { font-size:30px; }
}
@media(max-width:360px) {
  .assistant-header { padding-inline:16px; } .assistant-toolbar { margin-inline:16px; }
  .assistant-scroll { padding-left:16px; padding-right:10px; }
  .assistant-composer { padding-inline:16px; }
  .assistant-welcome h3 { font-size:35px; }
  .assistant-opening { grid-template-columns:1.6fr .7fr; }
  .assistant-opening-copy>p:last-child { font-size:10px; }
  .assistant-route-copy small { max-width:190px; }
  .assistant-links { gap:0 11px; font-size:9px; }
  .assistant-route-copy strong { font-size:18px; }
  .assistant-suggestions button { gap:11px; }
}
@media(max-height:820px) and (min-width:621px) {
  .assistant-header { padding-top:12px; padding-bottom:6px; }
  .assistant-toolbar { padding-bottom:4px; }
  .assistant-scroll { padding-top:18px; }
  .assistant-opening { min-height:158px; }
  .assistant-idea-field img { max-width:158px; }
  .assistant-orbit { width:180px; }
  .assistant-idea-field figcaption { bottom:-4px; }
  .assistant-welcome .eyebrow { margin-bottom:12px; font-size:9px; }
  .assistant-welcome h3 { font-size:43px; }
  .assistant-opening-copy>p:last-child { margin-top:12px; font-size:12px; }
  .assistant-routes-label { margin-top:20px; margin-bottom:7px; }
  .assistant-suggestions button { min-height:62px; padding-block:8px; }
  .assistant-route-copy strong { font-size:18px; }
  .assistant-route-copy small { font-size:11px; margin-top:2px; }
  .assistant-composer { padding-top:12px; padding-bottom:8px; }
  .assistant-input-shell { display:flex; align-items:flex-end; gap:8px; }
  #assistant-question { flex:1; min-height:54px; }
  .assistant-input-row { flex:none; padding:0; }
  .assistant-composer-note { display:none; }
}
@media(max-height:560px) {
  #barta-assistant { inset:0; width:100%; height:100dvh; border:0; border-radius:0; }
  .assistant-header { min-height:60px; padding:8px 24px; }
  .assistant-toolbar { position:absolute; top:8px; right:84px; margin:0; padding:0; border:0; }
  #assistant-context, .assistant-studio-label, .assistant-keyboard { display:none; }
  .assistant-composer { max-height:58dvh; padding-top:10px; padding-bottom:4px; }
  .assistant-input-shell { display:flex; align-items:flex-end; gap:8px; }
  #assistant-question { flex:1; min-height:48px; }
  .assistant-input-row { flex:none; padding:0; }
  .assistant-composer-note { display:none; }
  .assistant-connection>summary { min-height:36px; }
  #barta-assistant[data-planning=true][data-populated=false]:not([data-planning-review=true]) { max-height:100dvh; }
  #barta-assistant[data-planning=true][data-populated=false] .assistant-composer { max-height:65dvh; }
  #assistant-planning-intro .eyebrow,#assistant-planning-intro>p:last-child { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  #barta-assistant *, #barta-assistant *:before, #barta-assistant *:after { animation:none!important; scroll-behavior:auto; transition:none; }
}
@media print {
  #barta-assistant,.assistant-entry,.assistant-launcher { display:none!important; }
  body.assistant-open { overflow:visible; }
}

/* assistant.js always reveals the Ask BARTA launcher. When scripting is
   available, hold its space from first paint so the header does not grow or
   reflow (and move the page) when the deferred script runs. */
@media (scripting: enabled) {
  .assistant-launcher .assistant-nav-button[hidden] { display:flex!important; visibility:hidden; }
}
