/* Nouvel brand tokens scoped to the public assistant's independent template. */
:root {
  --ha-aqua: #2fb6d3;
  --ha-teal: #177f95;
  --ha-ink: #17303a;
  --ha-slate: #576b73;
  --ha-line: rgba(40, 108, 123, .13);
  --ha-font: "Lexend Deca", system-ui, sans-serif;
  --ha-display: "Geist", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ha-ink); font: 14px/1.65 var(--ha-font); background: radial-gradient(ellipse at 12% 15%, #e0f3f4, transparent 55%), radial-gradient(ellipse at 95% 100%, #e2f1f4, transparent 45%), #f3f8f8; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--ha-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #177f95; outline-offset: 4px; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--ha-display); }
.ha-sr-only, .ha-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ha-skip:focus { position: fixed; z-index: 100; top: 10px; left: 10px; background: white; padding: 12px; }
.ha-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ha-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 24px; height: 100dvh; max-width: 1920px; margin: auto; padding: 20px 24px 20px 20px; }
.ha-glass { background: rgba(255, 255, 255, .68); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 12px 48px -28px rgba(24, 83, 96, .22), inset 0 1px 0 #fff; backdrop-filter: blur(22px); }
.ha-sidebar { border-radius: 24px; padding: 24px 14px 16px; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.ha-brand-row { display: flex; justify-content: center; align-items: center; }
.ha-brand { display: block; }
.ha-brand img { display: block; max-width: 100%; height: 50px; width: 174px; object-fit: contain; }
.ha-brand-caption { font-size: 10px; color: var(--ha-slate); text-align: center; margin: 8px 0 26px; }
.ha-new-chat { border: 1px solid #167b90; border-radius: 13px; color: #fff; background: linear-gradient(120deg, #177f95, #208fa4); box-shadow: 0 6px 16px -10px #177f95; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 500; margin: 0 4px 24px; }
.ha-new-chat:hover, .ha-primary-button:hover, .ha-send:hover { filter: brightness(.94); }
.ha-nav { display: grid; gap: 6px; }
.ha-nav button, .ha-footer-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; padding: 12px; border: 1px solid transparent; background: transparent; border-radius: 12px; text-align: left; font-size: 12px; }
.ha-nav button:hover, .ha-footer-button:hover { background: #edf6f7; }
.ha-nav button.is-active { color: #11697d; border-color: #cee6ea; background: linear-gradient(100deg, #e1f1f4, #edf8f9); font-weight: 500; }
.ha-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ha-teal); margin-left: auto; }
.ha-history { margin: 30px 8px 24px; border-top: 1px solid var(--ha-line); padding-top: 22px; }
.ha-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ha-section-heading h2 { font-size: 12px; font-weight: 600; margin: 0; }
.ha-section-heading > span { font-size: 10px; color: var(--ha-slate); }
.ha-text-button { border: 0; padding: 6px 0 6px 6px; background: none; color: var(--ha-teal); font-size: 10px; min-height: 36px; }
.ha-history-empty { font-size: 11px; color: var(--ha-slate); margin: 12px 0; }
.ha-memory-note { font-size: 10px; color: var(--ha-slate); }
.ha-recent-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ha-recent-list button { display: block; width: 100%; padding: 10px 4px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ha-recent-list button:hover, .ha-recent-list button[aria-current] { background: #e4f2f4; }
.ha-sidebar-footer { margin-top: auto; }
.ha-private-card { background: linear-gradient(120deg, #e7f4f4, #f5fbfb); border: 1px solid #d7e9ec; border-radius: 16px; margin: 4px 4px 16px; padding: 16px 13px; }
.ha-private-card > .ha-icon { display: block; color: var(--ha-teal); margin-bottom: 9px; }
.ha-private-card strong { display: block; font-size: 11px; font-weight: 500; }
.ha-private-card p { font-size: 10px; color: var(--ha-slate); margin: 5px 0 0; line-height: 1.8; }
.ha-footer-button { color: var(--ha-slate); font-size: 11px; }
.ha-back-link { display: block; color: var(--ha-slate); font-size: 11px; padding: 12px; }
.ha-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ha-topbar { min-height: 66px; padding: 0 4px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ha-topbar-title, .ha-topbar-actions { display: flex; align-items: center; gap: 14px; }
.ha-eyebrow { font-size: 10px; color: #277b89; font-weight: 500; margin-bottom: 6px; }
.ha-topbar-title .ha-eyebrow { font-size: 9px; color: var(--ha-slate); margin: 0; }
.ha-topbar-name { font-family: var(--ha-display); font-size: 17px; font-weight: 600; margin: 0; }
.ha-guest { font-size: 11px; color: var(--ha-slate); display: flex; align-items: center; gap: 7px; }
.ha-guest > span { width: 6px; height: 6px; background: #237b6e; border-radius: 50%; }
.ha-language { display: flex; align-items: center; background: rgba(255,255,255,.65); border: 1px solid #dbe8ea; border-radius: 10px; padding: 3px; }
.ha-language a { font-size: 10px; color: var(--ha-slate); min-height: 32px; min-width: 34px; display: grid; place-items: center; border-radius: 7px; }
.ha-language a[aria-current] { background: #e0eff2; color: #156c7d; font-weight: 600; }
.ha-columns { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 22px; flex: 1; min-height: 0; }
.ha-main { display: flex; flex-direction: column; border-radius: 24px; min-width: 0; min-height: 0; overflow: hidden; }
.ha-demo-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 13px 20px; gap: 9px; font-size: 10px; color: #65747a; border-bottom: 1px solid var(--ha-line); flex-shrink: 0; text-align: center; background: rgba(250,253,253,.55); }
.ha-demo-pill { display: inline-flex; align-items: center; gap: 5px; color: #79551c; background: #faf0db; border: 1px solid #e9daba; border-radius: 6px; font-size: 9px; padding: 2px 7px; white-space: nowrap; }
.ha-demo-pill::before { content: ""; height: 4px; width: 4px; background: #9d6b24; border-radius: 50%; }
.ha-chat-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ha-chat-scroll { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cadfe3 transparent; }
.ha-welcome { max-width: 740px; margin: auto; padding: clamp(24px, 5vh, 60px) 36px 24px; text-align: center; }
.ha-welcome-symbol { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px solid #c4e6eb; background: linear-gradient(135deg, #e3f6f8, #f9fdfd); color: var(--ha-teal); border-radius: 20px; box-shadow: 0 12px 28px -18px rgba(24,127,149,.45); margin-bottom: 21px; }
.ha-welcome-symbol .ha-icon { height: 30px; width: 30px; }
.ha-welcome h1 { font-size: clamp(30px, 2.9vw, 45px); font-weight: 600; line-height: 1.18; margin-bottom: 18px; }
.ha-welcome h1 span { color: var(--ha-teal); }
.ha-intro { color: var(--ha-slate); max-width: 420px; margin: 0 auto 12px; font-size: 12px; line-height: 1.9; }
.ha-welcome-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--ha-slate); }
.ha-welcome-note .ha-icon { width: 13px; height: 13px; color: var(--ha-teal); }
.ha-suggestions { margin-top: 30px; text-align: left; }
.ha-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ha-topic { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid #dae8ea; border-radius: 14px; text-align: left; background: linear-gradient(130deg, rgba(255,255,255,.9), rgba(244,250,251,.8)); min-width: 0; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ha-topic:hover { border-color: #83c5d1; box-shadow: 0 5px 16px -12px #177f95; transform: translateY(-2px); }
.ha-topic-icon { display: inline-flex; justify-content: center; align-items: center; height: 34px; width: 34px; flex-shrink: 0; background: #edf6f7; color: #277f90; border: 1px solid #dbeef0; border-radius: 10px; }
.ha-topic-icon .ha-icon { width: 18px; height: 18px; }
.ha-topic > span:nth-child(2) { min-width: 0; }
.ha-topic strong { display: block; font-size: 11px; font-weight: 500; }
.ha-topic small { display: block; font-size: 9px; color: var(--ha-slate); margin-top: 2px; }
.ha-topic > .ha-icon { margin-left: auto; width: 13px; height: 13px; color: #58848e; }
.ha-composer-area { flex-shrink: 0; padding: 12px 28px 16px; background: linear-gradient(0deg, #f9fcfc, rgba(249,252,252,.3)); }
.ha-composer { border: 1px solid #cbdfe4; border-radius: 20px; padding: 14px 15px 10px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px -20px rgba(26,91,106,.3); }
.ha-composer:focus-within { border-color: #5eb5c6; box-shadow: 0 0 0 3px rgba(47,182,211,.12); }
.ha-composer textarea { display: block; width: 100%; border: 0; outline: none; resize: vertical; max-height: 170px; min-height: 54px; background: transparent; color: var(--ha-ink); font-size: 12px; padding: 2px; line-height: 1.7; }
.ha-composer textarea::placeholder { color: #647980; opacity: 1; }
.ha-composer textarea:focus-visible { outline: 2px solid #177f95; outline-offset: 2px; border-radius: 5px; }
.ha-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.ha-input-label { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--ha-slate); }
.ha-input-label .ha-icon { height: 14px; width: 14px; }
.ha-composer-controls { display: flex; align-items: center; gap: 7px; }
.ha-count { font-size: 9px; color: var(--ha-slate); }
.ha-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid #d8e7e9; border-radius: 12px; background: #f6fafb; color: #397580; }
.ha-icon-button:hover { background: #e9f4f6; }
.ha-mic { border: 0; background: transparent; }
.ha-mic.is-listening { background: #fce9e5; color: #b52a20; box-shadow: 0 0 0 3px #f7d7cf; }
.ha-send { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #16788d; background: var(--ha-teal); display: flex; align-items: center; justify-content: center; color: white; }
.ha-composer-hint { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 9px; color: var(--ha-slate); margin: 11px 0 5px; }
.ha-composer-hint .ha-icon { height: 12px; width: 12px; }
.ha-medical-note { font-size: 9px; line-height: 1.6; color: #5f7279; text-align: center; margin: 0; }
.ha-request-status { color: #95362a; font-size: 11px; text-align: center; margin: 0; }
.ha-request-status:not(:empty) { padding: 6px 0; }
.ha-context { display: flex; flex-direction: column; min-height: 0; gap: 15px; overflow-y: auto; scrollbar-width: thin; padding: 0 2px 6px; }
.ha-context-card { border-radius: 20px; padding: 20px 18px; }
.ha-context-label { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.ha-context-label .ha-icon { color: var(--ha-teal); width: 17px; height: 17px; }
.ha-context-label h2 { font-family: var(--ha-font); font-size: 11px; font-weight: 500; margin: 0; }
.ha-topic-context { background: linear-gradient(120deg, rgba(228,245,247,.88), rgba(248,253,253,.9)); }
.ha-context-card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin-bottom: 10px; }
.ha-topic-tag { display: inline-block; background: #e2eff1; color: #216e7e; font-size: 9px; padding: 3px 9px; border-radius: 7px; }
.ha-context-divider { height: 1px; background: var(--ha-line); margin: 18px 0 14px; }
.ha-context-card h4 { font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.ha-context-card p { color: var(--ha-slate); font-size: 11px; line-height: 1.85; margin-bottom: 0; overflow-wrap: anywhere; }
.ha-context-sources { display: grid; gap: 10px; }
.ha-context-sources a { display: grid; grid-template-columns: 1fr 14px; gap: 2px 8px; color: var(--ha-ink); font-size: 10px; padding: 0 0 10px; border-bottom: 1px solid var(--ha-line); }
.ha-context-sources a:last-child { padding-bottom: 0; border-bottom: 0; }
.ha-source-publisher { grid-column: 1 / -1; color: var(--ha-teal); font-size: 9px; font-weight: 600; }
.ha-context-sources .ha-icon { width: 12px; height: 12px; color: #6a929c; }
.ha-context-card .ha-source-note, .ha-source-note { color: var(--ha-slate); font-size: 9px; line-height: 1.8; margin: 12px 0 0; }
.ha-context-care-link { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; font-weight: 500; margin-top: 15px; }
.ha-context-care-link .ha-icon { width: 15px; height: 15px; }
.ha-safety-card { border: 1px solid #e6dcc9; background: rgba(252,247,236,.75); padding: 16px 17px; border-radius: 18px; }
.ha-safety-card .ha-icon { color: #93662a; }
.ha-safety-card p { color: #725733; font-size: 10px; line-height: 1.8; margin: 0; }
.ha-safety-card .ha-safety-limit { margin-top: 10px; color: #706451; font-size: 9px; }
.ha-info-view { padding: 34px; overflow-y: auto; }
.ha-info-view h1 { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 0 0 16px; }
.ha-info-view > p { color: var(--ha-slate); font-size: 13px; line-height: 1.9; }
.ha-info-view h2 { font-size: 19px; margin: 25px 0 10px; }
.ha-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ha-library-card { padding: 20px; border: 1px solid #d8e8eb; border-radius: 18px; background: #f9fcfc; }
.ha-library-card small { display: block; font-size: 10px; color: var(--ha-slate); margin-top: 14px; }
.ha-library-card h2 { margin: 5px 0 10px; }
.ha-library-card p { font-size: 11px; color: var(--ha-slate); }
.ha-primary-button, .ha-secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 14px; min-height: 44px; border: 1px solid var(--ha-teal); border-radius: 12px; background: var(--ha-teal); color: #fff; font-size: 11px; }
.ha-primary-button .ha-icon { width: 16px; height: 16px; }
.ha-secondary-button { color: var(--ha-ink); background: #f5fafa; border-color: #d3e5e8; }
.ha-care-options { display: grid; gap: 12px; margin: 25px 0; }
.ha-care-options a { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid #d8e8eb; border-radius: 16px; background: #f7fbfc; font-size: 13px; }
.ha-safety-box { border-radius: 18px; padding: 20px; background: #fcf4e6; border: 1px solid #ead8b8; }
.ha-safety-box h2 { margin-top: 0; }
.ha-safety-box p { font-size: 12px; margin: 0; }
.ha-messages { padding: 25px 28px 0; }
.ha-messages:empty { display: none; }
.ha-message { margin-bottom: 28px; overflow-wrap: anywhere; }
.ha-message-user { margin-left: auto; max-width: 86%; width: fit-content; background: #e5f2f5; border: 1px solid #cce6ec; border-radius: 18px 18px 5px 18px; padding: 14px 18px; }
.ha-message-user p { font-size: 13px; margin: 0; white-space: pre-wrap; }
.ha-message-author { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; margin: 0 0 10px; }
.ha-message-author .ha-icon { color: var(--ha-teal); }
.ha-answer-notice { display: inline-block; font-size: 10px; color: #79551d; background: #fbf2df; padding: 4px 9px; border-radius: 7px; margin-bottom: 15px; }
.ha-answer-section { padding: 16px 18px; background: rgba(255,255,255,.8); border: 1px solid #e0ebed; border-radius: 14px; margin-bottom: 10px; }
.ha-answer-section h3 { font-size: 15px; margin: 0 0 7px; font-weight: 600; }
.ha-answer-section p { font-size: 12px; line-height: 1.9; margin: 0 0 8px; }
.ha-answer-section p:last-child { margin-bottom: 0; }
.ha-answer-section-warning { border-color: #ecd7b6; background: #fcf7ed; }
.ha-inline-citations { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ha-inline-citations a { font-size: 10px; text-decoration: underline; }
.ha-answer-sources { padding: 16px 3px; }
.ha-answer-sources h3 { font-size: 13px; margin-bottom: 8px; }
.ha-answer-sources a { display: block; font-size: 11px; text-decoration: underline; margin-top: 8px; }
.ha-answer-uncertainty, .ha-answer-warning { color: var(--ha-slate); font-size: 10px; line-height: 1.9; margin: 10px 3px; }
.ha-answer-warning { border-left: 2px solid #d5ae72; padding-left: 12px; }
.ha-loading { display: flex; align-items: center; gap: 12px; padding: 12px 28px; color: var(--ha-slate); font-size: 11px; }
.ha-loading-dots { display: flex; gap: 4px; }
.ha-loading-dots i { height: 5px; width: 5px; background: #2e8e9f; border-radius: 50%; animation: ha-breathe 1s ease-in-out infinite alternate; }
.ha-loading-dots i:nth-child(2) { animation-delay: .2s; }.ha-loading-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ha-breathe { to { opacity: .25; } }
.ha-voice-dialog { width: min(500px, calc(100% - 32px)); border: 1px solid #cee4e8; border-radius: 22px; background: #f8fcfc; color: var(--ha-ink); padding: 28px; box-shadow: 0 25px 90px -25px #326773; }
.ha-voice-dialog::backdrop { background: rgba(25,57,66,.3); backdrop-filter: blur(4px); }
.ha-voice-dialog h2 { font-size: 23px; margin-bottom: 12px; }.ha-voice-dialog p { font-size: 13px; color: var(--ha-slate); line-height: 1.9; }
.ha-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ha-menu-toggle, .ha-context-toggle, .ha-drawer-close, .ha-context-mobile-heading { display: none; }
.ha-mobile-safety { display: none; }
.ha-noscript { padding: 20px; background: #fff3d8; }
.ha-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(23,48,58,.28); backdrop-filter: blur(3px); }
@media (min-width: 1600px) { .ha-shell { grid-template-columns: 260px minmax(0,1fr); padding: 28px; gap: 30px; }.ha-columns { grid-template-columns: minmax(0,1fr) 310px; gap: 28px; }.ha-welcome { padding-top: 7vh; }.ha-topic { padding: 18px 15px; }.ha-topic strong { font-size: 12px; }.ha-intro { font-size: 14px; } }
@media (max-width: 1200px) {
  .ha-shell { grid-template-columns: 215px minmax(0,1fr); gap: 18px; padding: 16px; }
  .ha-columns { display: flex; }.ha-main { flex: 1; }
  .ha-context { display: none; position: fixed; right: 12px; top: 12px; bottom: 12px; width: min(350px, calc(100vw - 24px)); z-index: 40; padding: 18px; background: #f1f8f9; border: 1px solid white; border-radius: 22px; box-shadow: 0 20px 70px -20px #577a85; }
  .ha-context.is-open { display: flex; }.ha-context-toggle { display: inline-flex; }
  .ha-mobile-safety { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 5px 12px; margin: 3px auto 0; border: 0; background: transparent; color: #80571f; font-size: 11px; }
  .ha-mobile-safety .ha-icon { width: 14px; height: 14px; }
  .ha-context-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }.ha-context-mobile-heading h2 { font-size: 16px; margin: 0; }
  .ha-welcome h1 { font-size: clamp(30px, 3.8vw, 44px); }
}
@media (max-width: 760px) {
  .ha-shell { display: block; padding: 0; height: 100dvh; }
  .ha-workspace { height: 100%; padding: 0; }
  .ha-sidebar { display: none; position: fixed; top: 10px; bottom: 10px; left: 10px; width: min(300px, calc(100vw - 30px)); background: #f5fbfc; z-index: 40; padding: 22px 16px; box-shadow: 0 20px 70px -20px #577a85; }
  .ha-sidebar.is-open { display: flex; }.ha-drawer-close, .ha-menu-toggle { display: inline-flex; }
  .ha-brand-row { justify-content: space-between; }.ha-brand img { width: 166px; }.ha-brand-caption { text-align: left; margin-left: 8px; }
  .ha-topbar { min-height: 76px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; gap: 8px; }
  .ha-topbar-title, .ha-topbar-actions { gap: 8px; }.ha-topbar-title .ha-eyebrow { font-size: 8px; }.ha-topbar-name { font-size: 13px; }
  .ha-topbar .ha-icon-button { height: 42px; width: 42px; }.ha-guest { display: none; }.ha-language a { min-width: 28px; }
  .ha-columns { flex: 1; min-height: 0; padding: 0 8px 8px; }
  .ha-main { border-radius: 20px; }
  .ha-demo-banner { padding: 9px 12px; font-size: 9px; gap: 5px; }.ha-demo-pill { font-size: 8px; }
  .ha-welcome { padding: 28px 18px 16px; }.ha-welcome-symbol { height: 50px; width: 50px; border-radius: 16px; margin-bottom: 16px; }
  .ha-welcome h1 { font-size: clamp(28px, 6.6vw, 40px); margin-bottom: 14px; }.ha-welcome .ha-eyebrow { font-size: 9px; }
  .ha-intro { font-size: 12px; max-width: 330px; }.ha-welcome-note { font-size: 9px; }
  .ha-suggestions { margin-top: 24px; }.ha-topic-grid { gap: 8px; }.ha-topic { padding: 12px 9px; gap: 8px; }.ha-topic-icon { height: 29px; width: 29px; }.ha-topic strong { font-size: 12px; }.ha-topic small { font-size: 10px; }.ha-topic > .ha-icon { display: none; }
  .ha-composer-area { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }.ha-composer { padding: 12px 12px 8px; border-radius: 17px; }.ha-composer textarea { font-size: 16px; min-height: 50px; }.ha-input-label { display: none; }.ha-composer-controls { margin-left: auto; }.ha-composer-hint { font-size: 8px; align-items: flex-start; }.ha-medical-note { font-size: 8px; }
  .ha-messages { padding: 22px 16px 0; }.ha-message-user { max-width: 94%; }.ha-answer-section { padding: 14px; }.ha-answer-section p { font-size: 13px; }.ha-message-user p { font-size: 14px; }
  .ha-info-view { padding: 24px 18px; }.ha-info-view h1 { font-size: 30px; }.ha-library-grid { grid-template-columns: 1fr; }
  .ha-composer-hint, .ha-medical-note { font-size: 10px; }
  .ha-nav button, .ha-footer-button { font-size: 13px; }.ha-history-empty, .ha-memory-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* The homepage hosts this same conversation UI in a same-origin drawer. */
.ha-embedded .ha-shell { display: block; padding: 0; height: 100dvh; }
.ha-embedded .ha-workspace { height: 100%; }
.ha-embedded .ha-sidebar, .ha-embedded .ha-menu-toggle { display: none !important; }
.ha-embedded .ha-topbar { padding: 10px 16px; min-height: 60px; }
.ha-embedded .ha-columns { display: flex; padding: 0 8px 8px; }
.ha-embedded .ha-main { flex: 1; }
.ha-embedded .ha-context { display: none; }
.ha-embedded .ha-context.is-open { display: flex; }
.ha-embedded .ha-embed-nav { display: flex; gap: 5px; overflow-x: auto; flex-shrink: 0; padding: 0 12px 10px; }
.ha-embed-nav button { border: 1px solid #d4e6ea; background: #f6fbfc; min-height: 44px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; display: flex; align-items: center; gap: 5px; font-size: 10px; }
.ha-embed-nav button:hover, .ha-embed-nav button.is-active { background: #e1f1f5; color: #146c7f; }
.ha-embed-nav .ha-icon { width: 15px; height: 15px; }
.ha-embedded .ha-welcome { padding-top: 22px; }
.ha-embedded .ha-welcome h1 { font-size: clamp(27px, 5.2vw, 38px); }

/* Readable public assistant typography; the rest of Nouvel uses its own CSS. */
.ha-message-user p, .ha-answer-section p { font-size: 16px; line-height: 1.8; }
.ha-answer-section h3 { font-size: 19px; line-height: 1.4; }
.ha-message-author { font-size: 14px; }
.ha-answer-notice, .ha-inline-citations a, .ha-answer-sources a { font-size: 13px; }
.ha-answer-sources h3 { font-size: 17px; }
.ha-answer-uncertainty, .ha-answer-warning { font-size: 13px; line-height: 1.8; }
.ha-context-label h2, .ha-context-card h4 { font-size: 14px; line-height: 1.5; }
.ha-context-card p, .ha-context-sources a, .ha-context-care-link { font-size: 13px; }
.ha-source-publisher, .ha-context-card .ha-source-note, .ha-source-note { font-size: 12px; }
.ha-safety-card p, .ha-safety-card .ha-safety-limit { font-size: 12px; }
.ha-composer textarea { font-size: 16px; }
.ha-composer-hint, .ha-medical-note, .ha-count { font-size: 12px; }
.ha-request-status, .ha-loading { font-size: 14px; }
.ha-voice-dialog p { font-size: 16px; }
.ha-dialog-actions button { font-size: 14px; }
.ha-retry { margin: 7px auto; display: flex; font-size: 14px; }
.ha-home-hero .ha-topbar { padding: 10px 24px; }
.ha-home-hero .ha-topbar-name { font-size: 18px; }
.ha-home-hero .ha-guest { font-size: 13px; }
.ha-home-hero .ha-language a { font-size: 13px; min-height: 38px; min-width: 40px; }
.ha-home-hero .ha-embed-nav { padding-left: 24px; }
.ha-home-hero .ha-embed-nav button { font-size: 13px; }
.ha-home-hero .ha-demo-banner { font-size: 13px; padding: 10px 18px; }
.ha-home-hero .ha-demo-pill { font-size: 12px; }
.ha-home-hero .ha-welcome .ha-eyebrow, .ha-home-hero .ha-welcome-note { font-size: 13px; }
.ha-home-hero .ha-intro { font-size: 16px; max-width: 690px; }
.ha-home-hero .ha-topic strong { font-size: 14px; }
.ha-home-hero .ha-topic small { font-size: 12px; }
.ha-home-hero .ha-welcome h1 { font-size: clamp(32px, 4.5vw, 48px); }
.ha-home-hero .ha-composer-area { padding-bottom: 12px; }
.ha-home-hero .ha-chat-scroll { overscroll-behavior-y: auto; }
.ha-home-hero .ha-messages, .ha-home-hero .ha-composer-area, .ha-home-hero .ha-loading { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; }
.ha-home-hero .ha-context-toggle { display: inline-flex; }
.ha-home-hero .ha-context { position: fixed; right: 12px; top: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); z-index: 40; padding: 18px; background: #f1f8f9; border: 1px solid #fff; border-radius: 22px; box-shadow: 0 20px 70px -20px #577a85; }
.ha-home-hero .ha-context-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ha-home-hero .ha-context-mobile-heading h2 { font-size: 17px; margin: 0; }
.ha-home-hero .ha-input-label { font-size: 12px; }
@media (max-width: 760px) {
  .ha-home-hero .ha-topbar { padding: 8px 14px; min-height: 56px; }
  .ha-home-hero .ha-topbar-name { font-size: 15px; }
  .ha-home-hero .ha-embed-nav { padding: 0 12px 8px; }
  .ha-home-hero .ha-embed-nav button { font-size: 12px; }
  .ha-home-hero .ha-demo-banner { font-size: 11px; padding: 7px 10px; }
  .ha-home-hero .ha-demo-pill { font-size: 10px; }
  .ha-composer-hint, .ha-medical-note { font-size: 11px; }
  .ha-home-hero .ha-messages { padding-top: 16px; }
  .ha-home-hero .ha-composer textarea { min-height: 44px; }
  .ha-home-hero .ha-composer-area { padding-bottom: 8px; }
}
