/* Ask Miri, the full experience: /ask-miri and the Miri section on
   /research (data-mode="page"). Builds on assets/studies-helper.css.
   One reading column; the conversation grows with the page (no inner
   scroll box, no fixed height) and the composer stays pinned at the bottom
   of the section while it is in view. Script: assets/ask-miri.js. */

/* ----- The chat flows in the page ----- */
.sh[data-mode="page"]{--sh-col:840px}
.sh[data-mode="page"] .sh-box{justify-content:flex-start;min-height:0;max-width:none;height:auto;padding:40px clamp(16px,4vw,48px) 0;border-radius:24px}
.sh[data-mode="page"] .sh-box.is-thread{height:auto;padding-top:24px}
.sh[data-mode="page"] .sh-thread{flex:none;overflow:visible;margin:0 auto;padding:16px 0 24px;width:100%;max-width:var(--sh-col);gap:32px}
.sh[data-mode="page"] .sh-grow{overflow:visible;height:auto!important;transition:none}
.sh[data-mode="page"] .sh-form{position:sticky;bottom:0;margin-bottom:0;box-shadow:0 -12px 24px -8px rgba(255,255,255,.95),0 1px 2px rgba(15,28,63,.04),0 10px 30px -12px rgba(15,28,63,.16)}
.sh[data-mode="page"] .sh-box::after{content:"";display:block;height:20px}
.sh[data-mode="page"] .sh-note{margin:14px auto 0}
.sh[data-mode="page"] .sh-new{top:16px;right:16px}

/* ----- Masthead: Miri's portrait beside her name ----- */
.sh-id{display:flex;align-items:center;justify-content:center;gap:16px}
.sh-face{display:block;width:72px;height:72px;flex:none;border-radius:999px;background:#F4EDE2;box-shadow:0 0 0 4px #fff,0 6px 18px -8px rgba(15,28,63,.35)}
.sh[data-mode="page"] .sh-intro{margin-bottom:20px}
.sh[data-mode="page"] .sh-chips{margin:0 auto 24px}
.sh-box.is-thread .sh-chips{display:none}
.sh-open-row{flex-basis:100%;margin:6px 0 0;text-align:center}
.sh-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 6px;color:var(--blue,#1E3EAF);font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.sh-open svg{flex:none}

/* ----- Answers ----- */
.sh[data-mode="page"] .sh-mark{width:28px;height:28px;object-fit:cover;background:#F4EDE2}
.sh[data-mode="page"] .sh-who{font-size:1rem;color:var(--sh-ink)}
.sh[data-mode="page"] .sh-body{font-size:1.0625rem;line-height:1.75}
.sh[data-mode="page"] .sh-body .sh-md-h{margin:1.4em 0 .5em;font-size:1.1875rem}
.sh[data-mode="page"] .sh-body > p:first-child{font-size:1.1875rem;line-height:1.6}
.sh-body a.am-cite{cursor:pointer}

/* Continue Exploring: a titled list of three, like a reading list. */
.sh[data-mode="page"] .sh-next{width:100%;margin:12px 0 0;padding:16px 0 0;border-top:1px solid var(--sh-line)}
.sh[data-mode="page"] .sh-next-label{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--navy,#27277C)}
.sh-next-list.is-col{flex-direction:column;gap:0}
.sh-next-item{border-bottom:1px solid var(--sh-line)}
.sh-next-item:last-child{border-bottom:0}
.sh-next-list.is-col .sh-next-q{display:flex;justify-content:space-between;width:100%;min-height:48px;padding:10px 4px;border:0;border-radius:8px;background:transparent;color:var(--blue,#1E3EAF);font-size:1rem;font-weight:500;text-align:left}
.sh-next-list.is-col .sh-next-q svg{width:18px;height:18px;flex:none;color:var(--blue,#1E3EAF)}

/* Tools under each answer */
.am-tools-row{gap:2px 4px}
.am-fb{display:inline-flex;align-items:center;gap:0;margin-left:auto}
.am-fb-q{padding:0 6px;font-size:.9375rem;color:var(--sh-ink2)}
.am-fb-b{width:44px;justify-content:center;padding:0}
.am-fb-b[aria-pressed="true"]{color:var(--blue,#1E3EAF);background:rgba(30,62,175,.08)}
.am-link-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;background:transparent;color:var(--blue,#1E3EAF);font:500 .9375rem/1 var(--f);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}

/* Charts: horizontal bars, values written on every bar */
.am-chart-box{margin:4px 0 16px}
.am-chart{margin:0;padding:16px 18px;border:1px solid var(--sh-line);border-radius:14px;background:#FBFCFE}
.am-chart[hidden]{display:none}
.am-chart-t{margin:0 0 10px;font-size:.9375rem;font-weight:600;color:var(--navy,#27277C)}
.am-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 10px;font-size:.875rem;color:var(--sh-ink2)}
.am-legend span{display:inline-flex;align-items:center;gap:6px}
.am-legend i{display:inline-block;width:12px;height:12px;border-radius:3px}
.am-bar-list{display:flex;flex-direction:column;gap:12px}
.am-bar-row{display:grid;grid-template-columns:minmax(80px,30%) 1fr;align-items:center;gap:12px}
.am-bar-label{font-size:.9375rem;line-height:1.3;color:var(--sh-ink)}
.am-bars{display:flex;flex-direction:column;gap:4px}
.am-bar{display:flex;align-items:center;gap:8px;min-width:0}
.am-bar-fill{display:block;height:14px;border-radius:0 4px 4px 0;flex:none}
.am-bar-val{font-size:.875rem;font-weight:600;color:var(--sh-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:600px){.am-bar-row{grid-template-columns:1fr;gap:4px}}

/* Source cards */
.am-sources{width:100%;margin:4px 0 0}
.am-sources-h{margin:0 0 8px;font-size:.875rem;font-weight:600;letter-spacing:.01em;color:var(--sh-ink2)}
.am-src{margin:0 0 8px;border:1px solid var(--sh-line);border-radius:12px;background:#fff}
.am-src summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px;cursor:pointer;list-style:none}
.am-src summary::-webkit-details-marker{display:none}
.am-src summary::after{content:"";width:8px;height:8px;margin-left:auto;flex:none;border-right:2px solid var(--sh-mute);border-bottom:2px solid var(--sh-mute);transform:rotate(45deg) translateY(-2px);transition:transform .16s}
.am-src[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.am-src-n{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:999px;background:var(--sh-soft);font-size:.8125rem;font-weight:600;color:var(--navy,#27277C)}
.am-src-t{font-size:.9375rem;font-weight:500;color:var(--sh-ink);line-height:1.35}
.am-src-y{flex:none;font-size:.875rem;color:var(--sh-mute)}
.am-src-q{margin:0 14px 10px;padding:10px 14px;border-left:3px solid var(--blue,#1E3EAF);background:var(--sh-soft);border-radius:0 8px 8px 0;font-size:.9375rem;line-height:1.6;color:var(--sh-ink)}
.am-src-a{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 14px 6px;color:var(--blue,#1E3EAF);font-size:.9375rem;font-weight:500;text-decoration:underline;text-underline-offset:4px}

/* San Diego and national */
.am-cmp{width:100%;margin:4px 0 0;padding:16px;border:1px solid var(--sh-line);border-radius:14px;background:#FBFCFE}
.am-cmp[hidden]{display:none}
.am-cmp-h{margin:0;font-weight:600;color:var(--navy,#27277C)}
.am-cmp-sub,.am-cmp-wait,.am-cmp-note{margin:4px 0 0;font-size:.875rem;color:var(--sh-ink2)}
.am-cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.am-cmp-side{min-width:0;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid var(--sh-line)}
.am-cmp-k{margin:0 0 6px;font-size:.8125rem;font-weight:600;letter-spacing:.02em;color:var(--sh-ink2)}
.am-cmp-q{margin:0 0 8px;font-size:.9375rem;line-height:1.55}
.am-cmp-q strong{color:var(--navy,#27277C);font-weight:600}
.am-cmp-none{margin:0;font-size:.9375rem;color:var(--sh-ink2)}
.am-cmp-src{display:inline-flex;min-height:44px;align-items:center;font-size:.875rem;color:var(--blue,#1E3EAF);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:700px){.am-cmp-grid{grid-template-columns:1fr}}

.am-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ----- /ask-miri: rail and reading column ----- */
.am{background:#F5F7FA}
.am-shell{display:grid;grid-template-columns:288px minmax(0,1fr);gap:24px;max-width:1440px;margin:0 auto;padding:24px clamp(16px,3vw,32px) 48px}
html.am-rail-hidden .am-shell{grid-template-columns:minmax(0,1fr)}
.am-rail{position:sticky;top:96px;align-self:start;display:flex;flex-direction:column;max-height:calc(100vh - 120px);padding:16px;border:1px solid #E2E8F0;border-radius:20px;background:#fff;font-family:var(--f)}
html.am-rail-hidden .am-rail{display:none}
.am-rail-head{display:flex;align-items:center;gap:8px}
.am-new{display:inline-flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--blue,#1E3EAF);color:#fff;font:500 1rem/1 var(--f);cursor:pointer}
.am-new:hover{background:var(--navy,#27277C)}
.am-rail-hide,.am-rail-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #E2E8F0;border-radius:999px;background:#fff;color:#475569;cursor:pointer}
.am-rail-close{display:none}
.am-rail-h{margin:18px 4px 6px;font-size:.9375rem;font-weight:600;color:var(--navy,#27277C)}
.am-list{flex:1;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto;scrollbar-width:thin}
.am-item{position:relative;display:flex;flex-wrap:wrap;align-items:center;border-radius:12px}
.am-item.is-on{background:#EEF2F7}
.am-item-open{flex:1;min-width:0;min-height:44px;padding:8px 10px;border:0;background:transparent;color:#2D3748;font:400 .9375rem/1.35 var(--f);text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:12px}
.am-item-more{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:12px;background:transparent;color:#64748B;cursor:pointer}
.am-item-menu{display:flex;flex-basis:100%;gap:6px;padding:0 6px 8px}
.am-item-menu[hidden]{display:none}
.am-menu-b{min-height:44px;padding:0 14px;border:1px solid #E2E8F0;border-radius:999px;background:#fff;color:#2D3748;font:500 .9375rem/1 var(--f);cursor:pointer}
.am-menu-b.is-danger{color:#B42318;border-color:#F3C9C4}
.am-rename{display:flex;flex-wrap:wrap;gap:6px;width:100%;padding:6px}
.am-rename-in{flex:1 1 100%;min-height:44px;padding:8px 12px;border:1px solid #CBD5E0;border-radius:10px;font:400 1rem/1.3 var(--f)}
.am-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;padding:8px}
.am-confirm-q{flex-basis:100%;margin:0 0 2px;font-size:.9375rem}
.am-list-empty{margin:6px 4px;font-size:.9375rem;color:#64748B}
.am-device{margin:12px 4px 0;padding-top:12px;border-top:1px solid #E2E8F0;font-size:.875rem;color:#64748B}
.am-rail-open{display:none;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid #E2E8F0;border-radius:999px;background:#fff;color:#2D3748;font:500 .9375rem/1 var(--f);cursor:pointer}
html.am-rail-hidden .am-rail-open{display:inline-flex}
.am-topbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.am-topbar:empty{display:none}
.am-tools{margin-left:auto}
.am-tools[hidden]{display:none}
.am-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid #CBD5E0;border-radius:999px;background:#fff;color:#2D3748;font:500 .9375rem/1 var(--f);cursor:pointer}
.am-btn.is-primary{border-color:var(--blue,#1E3EAF);background:var(--blue,#1E3EAF);color:#fff}
.am-btn svg{width:18px;height:18px}
.am-main{min-width:0;padding:0;background:transparent;border:0}
.am-main .sh-box{border-radius:24px}
.am-scrim{position:fixed;inset:0;z-index:300;background:rgba(15,28,63,.4)}
.am-scrim[hidden]{display:none}
@media(max-width:899px){
  .am-shell{grid-template-columns:minmax(0,1fr);padding:12px 12px 40px}
  .am-rail{position:fixed;top:0;bottom:0;left:0;z-index:310;width:min(320px,86vw);height:100vh;height:100dvh;max-height:none;border-radius:0 20px 20px 0;transform:translateX(-105%);transition:transform .24s cubic-bezier(.22,1,.36,1);visibility:hidden}
  html.am-rail-hidden .am-rail{display:flex}
  html.am-rail-out .am-rail{transform:none;visibility:visible}
  .am-rail-close{display:grid}
  .am-rail-hide{display:none}
  .am-rail-open{display:inline-flex}
}
@media(prefers-reduced-motion:reduce){.am-rail{transition:none}}

/* ----- The one-page brief ----- */
.am-brief{padding:24px 16px 48px;background:#EDF2F7}
.am-brief[hidden]{display:none}
html.am-brief-open .am-shell{display:none}
.am-brief-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;max-width:820px;margin:0 auto 12px}
.am-brief-page{max-width:820px;margin:0 auto;padding:clamp(20px,5vw,48px);background:#fff;border-radius:6px;box-shadow:0 10px 40px -20px rgba(15,28,63,.35);color:#2D3748;font-family:var(--f)}
.am-brief-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:3px solid var(--blue,#1E3EAF)}
.am-brief-head img{width:200px;height:auto}
.am-brief-k{margin:0;font-weight:600;color:var(--blue,#1E3EAF);text-align:right}
.am-brief-d{margin:0;font-size:.875rem;color:#475569;text-align:right}
.am-brief-h{margin:20px 0 8px;font-size:1.75rem;font-weight:500;line-height:1.2;color:var(--navy,#27277C)}
.am-brief-sec{padding:14px 0;border-bottom:1px solid #E2E8F0;break-inside:avoid}
.am-brief-sec h2{margin:0 0 6px;font-size:1.0625rem;font-weight:600;color:var(--navy,#27277C)}
.am-brief-sum{margin:0 0 8px;font-size:1rem;line-height:1.55}
.am-brief-l{margin:8px 0 4px;font-size:.8125rem;font-weight:600;letter-spacing:.03em;color:#475569}
.am-brief-sec ul{margin:0 0 10px;padding-left:1.2em;list-style:disc}
.am-brief-sec li{margin:3px 0;font-size:.9375rem;line-height:1.5}
.am-brief-sec a,.am-brief-sum a{color:#2D3748;text-decoration:none}
.am-brief-sec strong,.am-brief-sum strong{color:var(--navy,#27277C)}
.am-brief-sec .am-chart{margin:8px 0}
.am-brief-src h2{margin:14px 0 6px;font-size:1rem;font-weight:600;color:var(--navy,#27277C)}
.am-brief-src ol{margin:0;padding-left:1.3em;list-style:decimal;font-size:.875rem;line-height:1.5}
.am-brief-src li{margin:0 0 4px}
.am-brief-src span{color:#64748B;overflow-wrap:anywhere}
.am-brief-foot{margin-top:16px;font-size:.8125rem;color:#64748B}

/* ----- Print ----- */
@media print{
  .ubar,.hdr,header.hdr,footer,.ft,.m-drawer,.m-overlay,.jsw,.am-rail,.am-rail-open,.am-topbar,.sh-form,.sh-chips,.sh-note,.sh-voice-note,.sh-voice-msg,.sh-acts,.sh-next,.sh-new,.am-brief-bar,.rx-jumpbar,.am-link-btn{display:none!important}
  body,.am,.sh,.am-brief{background:#fff!important}
  .am-shell{display:block;padding:0}
  .sh-box{border:0!important;box-shadow:none!important;padding:0!important}
  .am-src{break-inside:avoid}
  .am-src summary::after{display:none}
  .am-chart{break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html.am-print-one .sh-thread > :not(.is-print),html.am-print-one .sh-intro,html.am-print-one main > :not(.am):not(#ask),html.am-print-one .cx > :not(#ask){display:none!important}
  html.am-brief-open main > :not(.am-brief),html.am-brief-open .am-shell{display:none!important}
  .am-brief-page{box-shadow:none;padding:0;max-width:none}
  .am-brief{padding:0}
  @page{margin:16mm}
}
.sh[data-mode="page"] .sh-thread,.sh[data-mode="page"] .sh-form,.am-sources,.am-cmp{text-align:left}
.am-src-p{flex:none;font-size:.875rem;color:var(--sh-mute)}
/* Page-wide paragraph rules (centered, 520px) do not apply inside answers. */
.sh[data-mode="page"] .sh-thread p,.sh[data-mode="page"] .sh-thread blockquote,.am-brief p{max-width:none;margin-left:0;margin-right:0}
.sh[data-mode="page"] .sh-thread .sh-who{margin:0}

/* ----- Miri herself: big, in the masthead, with a hello ----- */
.sh[data-mode="page"] .sh-id{display:flex;align-items:center;justify-content:center;gap:28px;text-align:left}
.mi-face{position:relative;display:block;width:180px;height:180px;flex:none;border-radius:999px;background:#F4EDE2;box-shadow:0 0 0 6px #fff,0 18px 40px -18px rgba(15,28,63,.45)}
.mi-face .sh-face{width:100%;height:100%;border-radius:999px;box-shadow:none;background:transparent}
.mi-lid{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.mi-lid-g{transform-origin:294px 166px;transform:scaleY(0);opacity:0}
.mi-face.is-wink .mi-lid-g{animation:mi-wink .18s ease-in-out 1}
@keyframes mi-wink{0%{transform:scaleY(0);opacity:1}45%,55%{transform:scaleY(1);opacity:1}100%{transform:scaleY(0);opacity:1}}
.mi-face.is-breathing .sh-face{animation:mi-breathe 6s ease-in-out infinite}
@keyframes mi-breathe{0%,70%,100%{transform:scale(1)}85%{transform:scale(1.015)}}
.mi-hello{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.mi-bubble{position:relative;margin:0;width:min(340px,100%);min-height:3.2em;padding:12px 16px;border:1px solid #E2E8F0;border-radius:18px 18px 18px 6px;background:#fff;color:#2D3748;font-size:1.0625rem;line-height:1.45;box-shadow:0 8px 24px -16px rgba(15,28,63,.35)}
.sh-box.is-thread .mi-bubble{display:none}
.mi-greet .mi-face{animation:mi-in .6s cubic-bezier(.22,1,.36,1) both}
.mi-greet .mi-bubble{animation:mi-up .4s .45s cubic-bezier(.22,1,.36,1) both}
@keyframes mi-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes mi-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.sh[data-mode="page"] .sh-sub{margin-top:14px}
.sh[data-mode="page"] .sh-intro .sh-h{text-align:left}
@media(max-width:640px){
  .sh[data-mode="page"] .sh-id{flex-direction:column;gap:14px;text-align:center}
  .mi-face{width:120px;height:120px}
  .mi-hello{align-items:center}
  .sh[data-mode="page"] .sh-intro .sh-h{text-align:center}
  .mi-bubble{border-radius:18px}
}
@media(prefers-reduced-motion:reduce){.mi-face,.mi-face .sh-face,.mi-bubble,.mi-lid-g{animation:none!important}}
html[data-motion="reduce"] .mi-face *,html[data-a11y-motion="off"] .mi-face *{animation:none!important}

/* Thinking: three soft dots beside her avatar */
.sh-dots{display:inline-flex;align-items:center;gap:5px;padding:10px 14px;border-radius:16px 16px 16px 4px;background:var(--sh-soft)}
.sh-dots i{display:block;width:7px;height:7px;border-radius:999px;background:#94A3B8;animation:sh-dot 1.2s ease-in-out infinite}
.sh-dots i:nth-child(2){animation-delay:.15s}
.sh-dots i:nth-child(3){animation-delay:.3s}
@keyframes sh-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.sh-dots i{animation:none}}

/* /research: browse the page, your chats, full screen */
.sh-browse{margin:-12px auto 8px;font-size:.9375rem;color:var(--sh-ink2);text-align:center}
.sh-browse a{color:var(--blue,#1E3EAF);text-decoration:underline;text-underline-offset:3px}
.sh-box.is-thread .sh-browse{display:none}
.sh-open-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 auto 8px}
.sh-chats.am-rail-open{display:inline-flex}
.am-rail.is-panel{position:fixed;top:0;bottom:0;left:0;z-index:310;width:min(340px,88vw);height:100vh;height:100dvh;max-height:none;border-radius:0 20px 20px 0;transform:translateX(-105%);visibility:hidden;transition:transform .24s cubic-bezier(.22,1,.36,1),visibility 0s .24s}
html.am-rail-out .am-rail.is-panel{transform:none;visibility:visible;transition:transform .24s cubic-bezier(.22,1,.36,1)}
.am-rail.is-panel .am-rail-close{display:grid}
.am-flash{animation:am-flash 2.2s ease-out 1;border-radius:14px}
@keyframes am-flash{0%,30%{box-shadow:0 0 0 4px rgba(30,62,175,.45);background-color:rgba(210,233,255,.55)}100%{box-shadow:0 0 0 4px rgba(30,62,175,0);background-color:transparent}}
@media(prefers-reduced-motion:reduce){.am-flash{animation:none;box-shadow:0 0 0 3px rgba(30,62,175,.5)}}
/* The composer pins to the bottom only once a conversation runs; before
   that it sits in place under the starters. */
.sh[data-mode="page"] .sh-box:not(.is-thread) .sh-form{position:relative;box-shadow:0 1px 2px rgba(15,28,63,.04),0 10px 30px -12px rgba(15,28,63,.16)}
/* On /research Miri shares the first screen with the page. */
.sh[data-surface="research"]{padding:24px 0 32px}
.sh[data-surface="research"] .sh-box{padding-top:28px}
.sh[data-surface="research"] .mi-face{width:160px;height:160px}
.sh[data-surface="research"] .sh-intro{margin-bottom:14px}
.sh[data-surface="research"] .sh-sub{margin-top:10px}
.sh[data-surface="research"] .sh-chips{margin-bottom:16px}
.sh[data-surface="research"] .sh-chips-label{display:none}
@media(max-width:640px){.sh[data-surface="research"] .mi-face{width:120px;height:120px}}
.am-rail h2.am-rail-h{margin:18px 4px 6px;font-size:.9375rem;font-weight:600;line-height:1.3;letter-spacing:0;color:var(--navy,#27277C)}
/* The rail follows the chat in reading order and sits in the left column. */
.am-shell > .am-rail{grid-column:1;grid-row:1}
.am-shell > .am-main{grid-column:2;grid-row:1}
html.am-rail-hidden .am-shell > .am-main{grid-column:1}
@media(max-width:899px){.am-shell > .am-main{grid-column:1}}
@media print{html.am-brief-open .am > :not(.am-brief){display:none!important}}
.am-rail[hidden]{display:none!important}
html.am-rail-out .am-rail{animation:am-slide .24s cubic-bezier(.22,1,.36,1) both}
@keyframes am-slide{from{transform:translateX(-105%)}to{transform:none}}
@media(prefers-reduced-motion:reduce){html.am-rail-out .am-rail{animation:none}}

/* Who to talk to, and programs that serve this group */
.am-who-box{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;margin:12px 0 0;padding:16px 0 0;border-top:1px solid var(--sh-line)}
.am-who-h{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--navy,#27277C)}
.am-who-list,.am-prog-list{margin:0;padding:0;list-style:none}
.am-who-p{display:flex;align-items:center;gap:12px;padding:8px 0}
.am-who-face{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:999px;object-fit:cover;object-position:center top;background:var(--sh-soft)}
.am-who-face.is-initials{background:#D2E9FF;color:var(--navy,#27277C);font-weight:600;font-size:1rem}
.am-who-txt{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.am-who-n{font-weight:600;color:var(--sh-ink)}
.am-who-t{font-size:.875rem;color:var(--sh-ink2)}
.am-who-e{display:inline-flex;align-items:center;min-height:44px;margin:-8px 0 -10px;font-size:.9375rem;color:var(--blue,#1E3EAF);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.am-prog{display:flex;flex-direction:column;gap:2px;min-height:44px;padding:8px 10px;margin:0 -10px;border-radius:10px;color:var(--sh-ink);text-decoration:none}
.am-prog:hover{background:var(--sh-hover)}
.am-prog-n{font-weight:600;color:var(--blue,#1E3EAF);text-decoration:underline;text-underline-offset:3px}
.am-prog-a{font-size:.875rem;line-height:1.45;color:var(--sh-ink2)}
@media(max-width:700px){.am-who-box{grid-template-columns:1fr}}
/* Use these numbers: how to cite, and a copy button */
.am-use{margin:0 14px 12px;padding:10px 12px;border-radius:10px;background:#F8FAFC;border:1px dashed var(--sh-line2)}
.am-use-k{margin:0 0 2px;font-size:.8125rem;font-weight:600;color:var(--sh-ink2)}
.am-use-t{margin:0 0 4px;font-size:.875rem;line-height:1.5;color:var(--sh-ink);overflow-wrap:anywhere}
.am-cite-copy{margin-left:-12px}
/* A quiet vote for Miri answering out loud */
.sh-vote{width:100%;max-width:var(--sh-col);margin:4px auto 0;text-align:center}
.sh-vote-b{min-height:44px;padding:0 6px;border:0;background:transparent;color:var(--sh-ink2);font:400 .875rem/1.4 var(--f);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.sh-vote-b:disabled{text-decoration:none;cursor:default;color:var(--sh-mute)}
.sh-box.is-thread .sh-vote{display:none}

/* Welcome back, a rating note, and the day on each saved chat */
.am-welcome{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px 14px;border-radius:14px;background:#F4EDE2;color:var(--sh-ink)}
.am-welcome img{width:28px;height:28px;border-radius:999px}
.sh[data-mode="page"] .sh-thread .am-welcome p{flex:1;margin:0;font-weight:500}
.am-fb-more{display:flex;flex-direction:column;gap:6px;width:100%;margin:4px 0 0;padding:12px 14px;border:1px solid var(--sh-line);border-radius:12px;background:#fff}
.am-fb-l{font-size:.9375rem;font-weight:500;color:var(--sh-ink)}
.am-fb-c{width:100%;min-height:64px;padding:8px 10px;border:1px solid var(--sh-line2);border-radius:10px;font:400 1rem/1.45 var(--f);resize:vertical}
.am-fb-row{display:flex;flex-wrap:wrap;gap:8px}
.am-item-open{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.am-item-t{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-item-d{font-size:.8125rem;color:#64748B}
