/* AstroCEO - Ask page as a chat with Astra, the AstroCEO AI (ask.js). */
.ak { display: grid; gap: 14px; padding-bottom: 8px }
.ak-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 26px; background: radial-gradient(120% 120% at 0% 0%, rgba(139, 108, 246, .28), transparent 60%), linear-gradient(180deg, rgba(36, 32, 86, .9), rgba(22, 20, 56, .9)); border: 1px solid rgba(233, 230, 242, .08) }
.ak-av { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(224, 177, 90, .45) }
.ak-av svg, .ak-av img { display: block; width: 100%; height: 100%; object-fit: cover }
.ak-av.big { width: 64px; height: 64px; box-shadow: 0 0 0 2px #E0B15A, 0 0 22px rgba(224, 177, 90, .35) }
.ak-who { min-width: 0 }
.ak-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.45rem; line-height: 1.1 }
.ak-badge { font-family: Manrope, system-ui, sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: #151A2C; background: #E0B15A; border-radius: 6px; padding: 2px 6px }
.ak-role { color: var(--muted, #9AA0B8); font-size: .86rem; margin-top: 3px }
.ak-on { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: #7FD8A4; margin-top: 4px }
.ak-on i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18) }
.ak-chat, .ak-log { display: grid; gap: 12px }
.ak-row { display: flex; align-items: flex-end; gap: 8px }
.ak-row.me { justify-content: flex-end }
.ak-msg { max-width: 82%; padding: 12px 15px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .07); line-height: 1.55; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere }
.ak-msg b { color: #F4D58A; font-weight: 700 }
.ak-row.me .ak-msg { background: linear-gradient(135deg, #EBC97A, #D9A954); color: #151A2C; border: 0; border-radius: 20px 20px 6px 20px }
.ak-row.wait .ak-msg { color: var(--muted, #9AA0B8); font-style: italic; animation: ak-pulse 1.4s ease-in-out infinite }
.ak-row.err .ak-msg { border-color: var(--bad, #E06A6A) }
[dir=rtl] .ak-msg { border-radius: 20px 20px 6px 20px } [dir=rtl] .ak-row.me .ak-msg { border-radius: 20px 20px 20px 6px }
@keyframes ak-pulse { 50% { opacity: .55 } }
.ak-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 40px }
.ak-try { width: 100%; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E0B15A; margin-top: 2px }
.ak-chips button { appearance: none; font: inherit; font-size: .86rem; text-align: start; color: var(--fg, #F2EEE6); background: rgba(224, 177, 90, .07); border: 1px solid rgba(224, 177, 90, .35); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: background .2s, border-color .2s }
.ak-chips button:hover { background: rgba(224, 177, 90, .16); border-color: rgba(224, 177, 90, .7) }
.ak-dock { position: sticky; bottom: 12px; z-index: 5; margin-top: 4px; padding: 8px 8px 6px 18px; border-radius: 28px; background: rgba(16, 19, 44, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(224, 177, 90, .3); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6) }
[dir=rtl] .ak-dock { padding: 8px 18px 6px 8px }
body.has-mnav .ak-dock { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) }
@media (min-width: 701px) { body.has-mnav .ak-dock { bottom: 12px } }
.ak-form { display: flex; align-items: flex-end; gap: 8px }
.ak-form textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--fg, #F2EEE6); font: inherit; font-size: 1rem; line-height: 1.45; padding: 10px 0; resize: none; max-height: 140px }
.ak-form textarea::placeholder { color: var(--muted, #9AA0B8) }
.ak-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #151A2C; background: linear-gradient(135deg, #F3D58E, #D9A954); box-shadow: 0 6px 16px -6px rgba(224, 177, 90, .7) }
.ak-send svg { width: 20px; height: 20px }
.ak-send:disabled { opacity: .5; cursor: default }
.ak-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px 2px 0; font-size: .76rem; color: var(--muted, #9AA0B8) }
.ak-meta button { appearance: none; border: 0; background: none; color: #E0B15A; font: inherit; font-weight: 600; cursor: pointer; padding: 2px 0 }
.ak .callout { margin: 8px 0 }
.ak-note { margin: 0; text-align: center; font-size: .74rem; color: var(--faint, #6F7594); padding: 0 12px }
@media (min-width: 1100px) { .ak { max-width: 880px; margin-inline: auto; width: 100% } }

/* Ask Jason (jason.js): Astra / Jason tabs, the real-person profile, times and the unread dot. */
.ak-pane { display: grid; gap: 14px }
.ak-pane[hidden] { display: none }
.ak-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 22px; background: rgba(11, 14, 26, .55); border: 1px solid rgba(233, 230, 242, .1) }
.ak-tabs button { position: relative; appearance: none; border: 1px solid transparent; background: transparent; color: var(--fg, #F2EEE6); font: inherit; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 17px; cursor: pointer; text-align: start; transition: background .2s, border-color .2s }
.ak-tabs button.on { background: rgba(224, 177, 90, .12); border-color: rgba(224, 177, 90, .6) }
.ak-tabs .tx { display: grid; min-width: 0 }
.ak-tabs b { font-size: .95rem; font-weight: 700 }
.ak-tabs small { font-size: .72rem; color: var(--muted, #9AA0B8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ak-tabs .jt small { color: #7FD8A4 }
.ak-tabs .jdot { display: none; position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #FF5A5F }
[dir=rtl] .ak-tabs .jdot { right: auto; left: 10px }
.ak-tabs .j-unread .jdot { display: block }
.ak-av.j { display: grid; place-items: center; background: linear-gradient(135deg, #F3D58E, #C9923A); color: #151A2C; font-family: var(--display); font-weight: 600 }
.ak-av.j span { font-size: 15px; line-height: 1 }
.ak-av.j.big span { font-size: 30px }
.ak-av.j img { width: 100%; height: 100%; object-fit: cover; display: block }
.ak-badge.real { background: #4ADE80; color: #0B2A17 }
.ak-on.soft { color: var(--muted, #9AA0B8) }
.ak-on.soft i { background: #E0B15A; box-shadow: 0 0 0 3px rgba(224, 177, 90, .18) }
.ak-head.j { background: radial-gradient(120% 120% at 0% 0%, rgba(224, 177, 90, .22), transparent 60%), linear-gradient(180deg, rgba(36, 32, 86, .9), rgba(22, 20, 56, .9)) }
.ak-bw { display: grid; gap: 4px; max-width: 82% }
.ak-bw .ak-msg { max-width: 100% }
.ak-row.me .ak-bw { justify-items: end }
.ak-time { font-size: .7rem; color: var(--faint, #6F7594); padding: 0 6px }
.ak-wait { margin: 0; text-align: center; font-size: .8rem; color: var(--muted, #9AA0B8); padding: 0 16px }
.ak-wait[hidden] { display: none }
nav.tabs a.j-unread, .mnav a.j-unread { position: relative }
nav.tabs a.j-unread::after { content: ''; position: absolute; top: 50%; right: 14px; margin-top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 2px rgba(11, 14, 26, .9) }
.mnav a.j-unread::after { content: ''; position: absolute; top: 4px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 2px rgba(9, 12, 28, .96) }
[dir=rtl] nav.tabs a.j-unread::after { right: auto; left: 14px }
/* The tabs are the first block of the page: keep them a plain pill, not the coloured top band other pages get. */
#app .view.ak > .ak-tabs { margin: 0 !important; padding: 5px !important; border-radius: 22px !important; background: rgba(11, 14, 26, .55) !important; box-shadow: none !important }

/* Ask card on Today (ask.js card()). */
.akc { display: grid; gap: 14px }
.akc-head { display: flex; align-items: center; gap: 14px }
.akc-head h2 { margin: 0 0 4px }
.akc-head p { margin: 0; font-size: .9rem }
.akc-pair { display: flex; flex: none }
.akc-pair .ak-av { width: 46px; height: 46px; box-shadow: 0 0 0 2px #E0B15A }
.akc-pair .ak-av + .ak-av { margin-inline-start: -12px }
.akc-pair .ak-av.j span { font-size: 20px }
.akc-form { padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(8, 10, 28, .55); border: 1px solid rgba(224, 177, 90, .3); align-items: center }
[dir=rtl] .akc-form { padding: 6px 18px 6px 6px }
.akc-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--fg, #F2EEE6); font: inherit; font-size: .98rem; padding: 8px 0 }
.akc-form input::placeholder { color: var(--muted, #9AA0B8) }
.akc-chips { padding-inline-start: 0 }
.akc-jason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(74, 222, 128, .06); border: 1px solid rgba(74, 222, 128, .25); color: var(--fg, #F2EEE6); text-decoration: none; font-size: .9rem; font-weight: 600 }
.akc-jason:hover { background: rgba(74, 222, 128, .12) }
.akc-jason .ak-av { width: 30px; height: 30px }
.akc-jason span { flex: 1 }
.akc-jason b { color: #7FD8A4 }
.akc-jason.j-unread { position: relative }
.akc > * { min-width: 0 }
.akc-form { box-sizing: border-box; width: 100% }
#app .akc-form input, .akc-form input { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px 0 !important; border-radius: 0 }
/* Jason's background under his name. */
.ak-head.j { flex-wrap: wrap }
.ak-cv { flex-basis: 100%; display: grid; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(233, 230, 242, .1) }
.ak-cred { display: flex; flex-wrap: wrap; gap: 6px }
.ak-cred span { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(224, 177, 90, .12); border: 1px solid rgba(224, 177, 90, .35); color: #F4D58A }
.ak-cv p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted, #9AA0B8) }
.ak-head .ak-who { flex: 1 1 0; min-width: 0 }
/* Credentials: small, on one line (scrolls sideways if the screen is too narrow). */
.ak-cred { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 6px }
.ak-cred::-webkit-scrollbar { display: none }
.ak-cred span { flex: none; white-space: nowrap; font-size: .72rem; padding: 4px 9px }
@media (max-width: 375px) { .ak-cred span { font-size: .66rem; padding: 4px 7px } .ak-cred { gap: 5px } }
/* Once a conversation exists, Jason's background folds away so the latest messages are in view. */
.ak-head.j.compact .ak-cv { display: none }
.ak-head.j.compact.open .ak-cv { display: grid }
.ak-head.j.compact .ak-av.big { width: 52px; height: 52px }
.ak-more { appearance: none; border: 1px solid rgba(224, 177, 90, .35); background: rgba(224, 177, 90, .08); color: #F4D58A; font: inherit; font-size: .76rem; font-weight: 600; border-radius: 999px; padding: 5px 11px; cursor: pointer; margin-top: 8px; display: inline-block }
.ak-more[hidden] { display: none }
.ak-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(160px + env(safe-area-inset-bottom, 0px)); z-index: 30; appearance: none; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .84rem; font-weight: 700; color: #151A2C; background: linear-gradient(135deg, #F3D58E, #D9A954); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); cursor: pointer }
.ak-pill[hidden] { display: none }
@media (min-width: 701px) { .ak-pill { bottom: 110px } }
/* Simpler Ask page: the tabs say who you talk to, so Astra's big card goes; Jason's card is one compact line; three short suggestions on one line. */
.ak-pane > .ak-head:not(.j) { display: none }
.ak-tabs { gap: 4px; padding: 4px; border-radius: 18px }
#app .view.ak > .ak-tabs { padding: 4px !important; border-radius: 18px !important }
.ak-tabs button { padding: 6px 8px; gap: 8px; border-radius: 14px }
.ak-tabs .ak-av { width: 28px; height: 28px }
.ak-tabs .tx { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap }
.ak-tabs b { font-size: .9rem } .ak-tabs small { font-size: .7rem }
.ak-head.j { padding: 10px 14px; border-radius: 18px; gap: 10px }
.ak-head.j .ak-av.big, .ak-head.j.compact .ak-av.big { width: 40px; height: 40px; box-shadow: 0 0 0 2px #E0B15A }
.ak-head.j .ak-name { font-size: 1.1rem }
.ak-head.j .ak-role { font-size: .78rem; margin-top: 1px }
.ak-head.j .ak-on { display: none }
.ak-head.j .ak-more { margin-top: 5px; padding: 3px 9px; font-size: .72rem }
.ak-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px }
.ak-chips::-webkit-scrollbar { display: none }
.ak-chips button { flex: none; white-space: nowrap; font-size: .82rem; padding: 7px 12px }
/* Desktop: bigger profile tabs, a wider centered column and a taller chat. Phones keep the compact layout above. */
@media (min-width: 900px) {
  #app .view.ak { max-width: 980px; margin-inline: auto; padding-top: 22px }
  .ak-tabs, #app .view.ak > .ak-tabs { gap: 10px; padding: 8px !important; border-radius: 24px !important }
  .ak-tabs button { padding: 14px 18px; gap: 16px; border-radius: 18px }
  .ak-tabs button:hover:not(.on) { background: rgba(255, 255, 255, .04); border-color: rgba(233, 230, 242, .12) }
  .ak-tabs .ak-av { width: 58px; height: 58px; box-shadow: 0 0 0 2px rgba(224, 177, 90, .55), 0 0 18px rgba(224, 177, 90, .18) }
  .ak-tabs .tx { display: grid; gap: 2px }
  .ak-tabs b { font-size: 1.2rem } .ak-tabs small { font-size: .86rem; white-space: normal }
  .ak-tabs .jdot { top: 14px; right: 16px; width: 11px; height: 11px }
  .ak-head.j { padding: 14px 18px }
  .ak-head.j .ak-av.big, .ak-head.j.compact .ak-av.big { width: 52px; height: 52px }
}

/* Voice: talk to Astra (mic) and listen to her answers */
.ak-mic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #F3D58E; background: rgba(224, 177, 90, .1); border: 1px solid rgba(224, 177, 90, .45) }
.ak-mic svg { width: 20px; height: 20px }
.ak-mic.on { color: #fff; background: #E0566A; border-color: #E0566A; animation: ak-rec 1.2s ease-in-out infinite }
@keyframes ak-rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 86, 106, .55) } 50% { box-shadow: 0 0 0 9px rgba(224, 86, 106, 0) } }
.ak-say { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: inherit; font-size: .78rem; font-weight: 600; color: #F3D58E; background: rgba(224, 177, 90, .1); border: 1px solid rgba(224, 177, 90, .35); border-radius: 999px; padding: 4px 11px 4px 9px; cursor: pointer; white-space: nowrap }
.ak-say svg { width: 15px; height: 15px }
.ak-say.on { color: #151A2C; background: linear-gradient(135deg, #F3D58E, #D9A954); border-color: transparent }
.ak-msg .ak-say { display: flex; width: max-content }
.ak-say.load { animation: ak-pulse 1.2s ease-in-out infinite }

/* Chats with Astra: bar above the conversation and a side drawer with every saved conversation */
.ak-bar { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px }
.ak-chatsbtn, .ak-newbtn { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--fg, #F2EEE6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 7px 13px; cursor: pointer }
.ak-chatsbtn svg { width: 17px; height: 17px }
.ak-newbtn { color: #F3D58E; border-color: rgba(224, 177, 90, .4); background: rgba(224, 177, 90, .08) }
.ak-curt { flex: 1; min-width: 0; color: var(--muted, #9AA0B8); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ak-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 16, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px) }
.ak-drawer[hidden] { display: none }
.ak-dpanel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 86vw); background: #0E1230; border-inline-end: 1px solid rgba(255, 255, 255, .08); padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 40px rgba(0, 0, 0, .5); animation: ak-slide .2s ease-out }
@keyframes ak-slide { from { transform: translateX(-30px); opacity: .4 } }
html[dir="rtl"] .ak-dpanel { animation-name: ak-slide-r } @keyframes ak-slide-r { from { transform: translateX(30px); opacity: .4 } }
.ak-dhead { display: flex; align-items: center; justify-content: space-between } .ak-dhead b { font-family: var(--display, serif); font-weight: 400; font-size: 1.25rem }
.ak-dx { font: inherit; font-size: 1.5rem; line-height: 1; color: var(--muted, #9AA0B8); background: none; border: 0; cursor: pointer; padding: 2px 6px }
.ak-dlist { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 4px; margin: 0 -4px; padding: 0 4px }
.ak-dlist .muted { color: var(--muted, #9AA0B8); font-size: .88rem; padding: 6px 4px }
.ak-ditem { display: flex; align-items: center; border-radius: 12px } .ak-ditem:hover, .ak-ditem.on { background: rgba(224, 177, 90, .1) }
.ak-dopen { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: start; font: inherit; color: inherit; background: none; border: 0; padding: 10px; cursor: pointer }
.ak-dopen span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem } .ak-dopen small { color: var(--faint, #6F7693); font-size: .74rem }
.ak-ditem.on .ak-dopen span { color: #F3D58E; font-weight: 600 }
.ak-ddel { flex: none; font: inherit; font-size: 1.15rem; color: var(--faint, #6F7693); background: none; border: 0; padding: 8px 10px; cursor: pointer; opacity: .6 } .ak-ddel:hover { color: var(--bad, #E06A6A); opacity: 1 }


/* The chats list opens inline, just under "Your chats" (no overlay) */
.ak-drawer { position: static; inset: auto; z-index: auto; background: none; backdrop-filter: none; margin: -4px 0 4px }
.ak-dpanel { position: static; width: auto; max-height: 340px; border-radius: 20px; border: 1px solid rgba(224, 177, 90, .25); background: rgba(14, 18, 48, .85); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); padding: 12px; gap: 8px; animation: ak-drop .18s ease-out }
@keyframes ak-drop { from { transform: translateY(-6px); opacity: .3 } }
.ak-dhead, .ak-dpanel > .btn.primary { display: none }
.ak-chatsbtn[aria-expanded="true"] { border-color: rgba(224, 177, 90, .55); color: #F3D58E }
/* Small phones: the chat buttons may shrink so a long label ("Nouvelle conversation") never widens the page. */
@media (max-width: 480px) { .ak-chatsbtn, .ak-newbtn { flex: 0 1 auto; min-width: 0; max-width: 100% } .ak-newbtn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap } }

/* Phones: the chat never grows wider than the screen (a long conversation title used to stretch it). */
.ak, .ak-pane, .ak-chat, .ak-log { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100% }
.ak > *, .ak-pane > *, .ak-bar, .ak-dock, .ak-form { min-width: 0; max-width: 100% }
.ak-curt { width: 0 }
/* After speaking, the words wait in the box: the send button glows until it is tapped. */
.ak-send.ak-ready { animation: ak-glow 1.2s ease-in-out infinite }
@keyframes ak-glow { 50% { box-shadow: 0 0 0 7px rgba(224, 177, 90, .28), 0 6px 16px -6px rgba(224, 177, 90, .7) } }

/* Astra's gold badge next to her name (Astra / Jason switch) */
.vbadge { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-inline-start: 5px; border-radius: 50%; background: linear-gradient(135deg, #F3D58E, #C9923A); color: #fff; font-size: 10px; line-height: 1; vertical-align: 2px; box-shadow: 0 0 0 1.5px rgba(243, 213, 142, .35), 0 2px 6px rgba(201, 146, 58, .35) }
/* Astra tab: let her longer label wrap instead of pushing Jason off screen */
.ak-tabs, #app .view.ak > .ak-tabs { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) }
.ak-tabs button { min-width: 0 }
.ak-tabs .at small, .ak-tabs .jt small { white-space: normal; line-height: 1.25 }
/* Suggested questions: on phones they wrap onto lines (no sideways scroll that hides them, RTL included) */
@media (max-width: 700px) { #app .ak-chips { flex-wrap: wrap !important; overflow: visible !important; padding-inline-start: 0 !important } #app .ak-chips button { flex: 0 1 auto !important; white-space: normal !important; text-align: start } }

/* Roadmap section 7 (27 Nov 2026): easier reading, a clear writing state, answer feedback, friendly errors, chat search. */
/* Reading: more air between lines and paragraphs, a comfortable line length on wide screens, Arabic set a little larger. */
.ak-msg.ak-ans { line-height: 1.66; white-space: normal }
.ak-ans .ak-p { white-space: pre-wrap }
.ak-ans .ak-p + .ak-p { margin-top: .8em }
.ak-ans .ak-h { margin-top: 1.05em }
.ak-ans .ak-h + .ak-p { margin-top: .3em }
.ak-msg.ak-ar { line-height: 1.95; font-size: 1.02rem }
.ak-row.me .ak-msg { line-height: 1.5 }
@media (min-width: 900px) {
  .ak-row.ai .ak-msg { font-size: 1rem; max-width: min(84%, 68ch); padding: 16px 20px }
  .ak-row.ai .ak-msg.ak-ar { font-size: 1.08rem }
  .ak-row.me .ak-msg { max-width: min(72%, 60ch) }
}
/* Who wrote the answer: Astra (AI) or Astra Expert (advanced AI). */
.ak-lab { display: block; margin-bottom: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; line-height: 1.3; color: var(--muted, #9AA0B8) }
.ak-lab::before { content: "✦"; color: #E0B15A; margin-inline-end: 5px }
.ak-lab.x { color: #F4D58A }
.ak-ainote { text-align: center; font-size: .74rem; color: var(--muted, #9AA0B8); margin: -2px 0 2px }
.ak-ainote::before { content: "✦"; color: #E0B15A; margin-inline-end: 6px }
/* Under each answer: Listen on one side, thumbs on the other. */
.ak-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .09) }
.ak-foot .ak-say { margin-top: 0 }
.ak-fb { margin-inline-start: auto; display: inline-flex; gap: 6px }
.ak-fbb { appearance: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--muted, #9AA0B8); background: transparent; border: 1px solid rgba(255, 255, 255, .14); transition: color .15s, background .15s, border-color .15s }
.ak-fbb svg { width: 17px; height: 17px }
.ak-fbb:hover { color: var(--fg, #F2EEE6); border-color: rgba(255, 255, 255, .3) }
.ak-fbb:focus-visible, .ak-why button:focus-visible, .ak-retry:focus-visible, .ak-dsearch:focus-visible { outline: 2px solid #E0B15A; outline-offset: 2px }
.ak-fbb.up[aria-pressed="true"] { color: #151A2C; background: #7FD8A4; border-color: #7FD8A4 }
.ak-fbb.dn[aria-pressed="true"] { color: #151A2C; background: #E9A0A0; border-color: #E9A0A0 }
.ak-fbn { flex-basis: 100%; font-size: .8rem; line-height: 1.4; color: var(--muted, #9AA0B8) }
.ak-fbn:empty { display: none }
.ak-fbn .bad { color: #F0A0A0 }
.ak-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.ak-why span { margin-inline-end: 2px }
.ak-why button { appearance: none; font: inherit; font-size: .78rem; color: var(--fg, #F2EEE6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 12px; cursor: pointer }
.ak-why button:hover, .ak-why button.on { border-color: rgba(224, 177, 90, .7); background: rgba(224, 177, 90, .14) }
/* Astra is writing: three dots, then a line after about 12 seconds. */
.ak-row.wait .ak-msg.ak-typing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-style: normal; animation: none; white-space: normal }
.ak-dots { display: inline-flex; gap: 4px; align-items: center; height: 1.2em }
.ak-dots i { width: 7px; height: 7px; border-radius: 50%; background: #E0B15A; opacity: .35; animation: ak-dot 1.25s ease-in-out infinite }
.ak-dots i:nth-child(2) { animation-delay: .16s } .ak-dots i:nth-child(3) { animation-delay: .32s }
@keyframes ak-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35 } 30% { transform: translateY(-4px); opacity: 1 } }
.ak-tlab { font-size: .88rem }
.ak-row.wait.slow .ak-tlab { color: var(--fg, #F2EEE6) }
/* A question that could not be answered, with Try again. */
.ak-row.err .ak-msg { border-color: rgba(224, 106, 106, .6); background: rgba(224, 106, 106, .08) }
.ak-retry { display: flex; width: max-content; max-width: 100%; margin-top: 10px; cursor: pointer }
.ak-off, .ak-status { font-size: .8rem; line-height: 1.4; padding: 6px 4px 4px; color: var(--muted, #9AA0B8) }
.ak-off { color: #F4D58A }
.ak-off::before { content: "●"; font-size: .6rem; vertical-align: 2px; margin-inline-end: 7px; color: #E0B15A }
.ak-status.bad { color: #F0A0A0 }
.ak-off[hidden], .ak-status[hidden] { display: none }
.ak-mic.off { opacity: .55 }
.ak-mic.wait { color: #151A2C; background: linear-gradient(135deg, #F3D58E, #D9A954); border-color: transparent; animation: ak-pulse 1.2s ease-in-out infinite }
/* Search above the list of saved chats. */
.ak-dsearch { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 100%; font: inherit; font-size: .9rem; color: var(--fg, #F2EEE6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 9px 12px; outline: none }
.ak-dsearch::placeholder { color: var(--muted, #9AA0B8) }
.ak-dsearch[hidden] { display: none }
/* People who turn motion off: nothing moves, the words still say what is happening. */
@media (prefers-reduced-motion: reduce) {
  .ak-dots i { animation: none; opacity: .75 }
  .ak-row.wait .ak-msg, .ak-mic.on, .ak-mic.wait, .ak-say.load, .ak-send.ak-ready, .ak-dpanel { animation: none }
  .ak-fbb { transition: none }
}
/* Day theme. */
html.day .ak-foot { border-top-color: rgba(23, 27, 43, .12) }
html.day .ak-fbb { border-color: rgba(23, 27, 43, .22); color: #6B6F85 } html.day .ak-fbb:hover { color: #171B2B; border-color: rgba(23, 27, 43, .45) }
html.day .ak-fbb.up[aria-pressed="true"] { background: #2E9E63; border-color: #2E9E63; color: #fff } html.day .ak-fbb.dn[aria-pressed="true"] { background: #C4514F; border-color: #C4514F; color: #fff }
html.day .ak-why button { color: #171B2B; background: rgba(23, 27, 43, .04); border-color: rgba(23, 27, 43, .2) }
html.day .ak-lab.x, html.day .ak-off { color: #8A5F12 } html.day .ak-lab::before, html.day .ak-ainote::before, html.day .ak-off::before { color: #A4751F }
html.day .ak-fbn .bad, html.day .ak-status.bad { color: #B23B3B }
html.day .ak-dots i { background: #A4751F }
html.day .ak-dsearch { color: #171B2B; background: #fff; border-color: rgba(23, 27, 43, .2) }
/* A new answer, the writing dots or an error note scroll clear of the message box and the phone bar. */
.ak-log .ak-row { scroll-margin-top: 90px; scroll-margin-bottom: 240px }
@media (min-width: 701px) { .ak-log .ak-row { scroll-margin-bottom: 170px } }
