.nav-links .rai-nav { position: relative; overflow: visible; white-space: nowrap; }
.rai-beta { position: absolute; top: -7px; right: -10px; padding: 1px 6px; border-radius: 999px; background: #fff; border: 1px solid #bfe3dd; color: #0f857e; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; box-shadow: 0 2px 6px rgba(15,100,95,.14); pointer-events: none; }
.nav-links .rai-nav[hidden] { display: none !important; }
.nav-links .rai-nav.active,
.nav-links .rai-nav:hover { color: #fff; border-color: transparent; background: linear-gradient(110deg,#2473ff 0%,#168dc4 50%,#15b5a0 100%); box-shadow: 0 9px 22px rgba(14,136,169,.2); }

/* R.ai 页面占满导航以下的整块视窗，侧栏贴左边缘 */
body.rai-mode { overflow: hidden; }
body.rai-mode .app-shell > .global-nav { margin-bottom: 0; }
.rai-page {
  --rai-top: 77px;
  --rai-green: #0f857e;
  --rai-green-soft: #e3f4f1;
  --rai-ink: #15233f;
  --rai-muted: #6b7686;
  --rai-line: #e3e8ee;
  --rai-side-bg: #f4f7f6;
}
.rai-page [hidden] { display: none !important; }
.rai-page.active { position: fixed; top: var(--rai-top); left: 0; right: 0; bottom: 0; z-index: 5; background: #fbfcfc; }
.rai-shell { display: flex; height: 100%; min-height: 0; }

/* 侧栏 */
.rai-sidebar { flex: 0 0 280px; width: 280px; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 16px; background: var(--rai-side-bg); overflow: hidden; transition: flex-basis .28s ease, width .28s ease, padding .28s ease; }
.rai-side-top { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 8px; }
.rai-toggle { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dfe7e6; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(20,60,70,.08); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.rai-toggle:hover { transform: scale(1.05); box-shadow: 0 5px 16px rgba(20,90,100,.16); }
.rai-toggle:focus-visible, .rai-side-item:focus-visible, .rai-conv-title:focus-visible, .rai-plus:focus-visible, .rai-send:focus-visible, .rai-suggestion:focus-visible { outline: 2px solid #1a9c90; outline-offset: 2px; }
.rai-r { font-family: "Inter", "SF Pro Display", "PingFang SC", system-ui, sans-serif; font-weight: 900 !important; font-size: 22px; line-height: 1; background: linear-gradient(135deg,#2269ff 0%,#12b8c4 48%,#13c89a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rai-side-title { flex: 1; font-size: 17px; font-weight: 800; color: var(--rai-ink); white-space: nowrap; }
.rai-side-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #26354d; font-weight: 650; text-align: left; white-space: nowrap; cursor: pointer; }
.rai-side-item:hover { background: #e7eeed; }
.rai-side-item svg, .rai-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rai-new { background: #e4ecea; }
.rai-side-section { flex: 1; min-height: 0; overflow-y: auto; margin-top: 10px; }
.rai-side-label { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 12px 6px; color: #7a8698; font-size: 13px; }
.rai-count { font-variant-numeric: tabular-nums; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #e7eceb; color: #5d6b7d; }
.rai-count.full { background: #fdeee6; color: #b0521b; }
.rai-conversations { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; }
.rai-conv { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 12px; border-radius: 999px; color: #263449; }
.rai-conv:hover { background: #e7eeed; }
.rai-conv.active { background: var(--rai-green-soft); color: #0b5e58; font-weight: 650; }
.rai-conv-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; font-size: 14px; }
.rai-archive { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #6f7c8d; cursor: pointer; opacity: 0; }
.rai-archive svg { width: 17px; height: 17px; }
.rai-conv:hover .rai-archive, .rai-conv.active .rai-archive, .rai-archive:focus-visible { opacity: 1; }
.rai-archive:hover { background: #d8e3e1; color: #1c3a4f; }
.rai-side-empty { margin: 4px 12px; color: #8b95a4; font-size: 13px; line-height: 1.6; }
.rai-archived { margin-top: 4px; }
.rai-archived summary { list-style: none; cursor: pointer; padding: 8px 12px; color: #7a8698; font-size: 13px; border-radius: 999px; }
.rai-archived summary::-webkit-details-marker { display: none; }
.rai-archived summary:hover { background: #e7eeed; }
.rai-archived .rai-conv { color: #8a95a3; }
.rai-side-note { margin: 0; padding: 8px 12px 0; color: #8b95a4; font-size: 12px; line-height: 1.55; border-top: 1px solid #e3e9e8; }

/* 测试说明入口与弹窗 */
.rai-info { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #7a8698; cursor: pointer; }
.rai-info:hover { background: #e7eeed; color: #26354d; }
.rai-info:focus-visible, .rai-tag:focus-visible, .rai-dialog-ok:focus-visible { outline: 2px solid #1a9c90; outline-offset: 2px; }
.rai-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(16,28,40,.32); backdrop-filter: blur(3px); animation: rai-fade .2s ease both; }
.rai-dialog { width: min(460px, 100%); padding: 24px 24px 20px; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(15,35,55,.25); color: #1c2a42; }
.rai-dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rai-dialog-head h2 { margin: 0; font-size: 19px; }
.rai-dialog ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
.rai-dialog li { position: relative; padding-left: 18px; line-height: 1.65; font-size: 14.5px; color: #3c4a60; }
.rai-dialog li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,#13a596,#2473ff); }
.rai-dialog li b { color: #15233f; }
.rai-dialog-foot { display: flex; align-items: center; gap: 16px; }
.rai-dialog-check { display: inline-flex; align-items: center; gap: 8px; color: #5f6c80; font-size: 14px; cursor: pointer; user-select: none; }
.rai-dialog-check input { width: 18px; height: 18px; margin: 0; accent-color: #0f857e; cursor: pointer; }
.rai-dialog-ok { display: block; margin-left: auto; min-width: 128px; padding: 0 24px; min-height: 44px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#13a596,#0f857e); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.rai-toast { position: absolute; z-index: 25; top: 18px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 10px 18px; border-radius: 999px; background: #1f2d3f; color: #fff; font-size: 14px; box-shadow: 0 10px 28px rgba(15,30,50,.22); animation: rai-fade .2s ease both; }
.rai-toast.error { background: #a4333d; }
@keyframes rai-fade { from { opacity: 0; } to { opacity: 1; } }

/* 收起：只留 R 与新对话图标的窄栏 */
.rai-shell.collapsed .rai-sidebar { flex-basis: 68px; width: 68px; padding-left: 14px; padding-right: 14px; }
.rai-shell.collapsed .rai-side-title,
.rai-shell.collapsed .rai-info,
.rai-shell.collapsed .rai-side-item span,
.rai-shell.collapsed .rai-side-section,
.rai-shell.collapsed .rai-archived,
.rai-shell.collapsed .rai-side-note { display: none; }
.rai-shell.collapsed .rai-side-item { padding: 0; justify-content: center; width: 40px; }

/* 主区与背后的绿色炫光 */
.rai-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.rai-glow { position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1100px, 120%); height: 760px; transform: translate(-50%,-50%); pointer-events: none; transition: top .6s ease, opacity .6s ease;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(79,205,170,.42), rgba(79,205,170,0) 72%),
    radial-gradient(closest-side at 30% 40%, rgba(38,170,220,.20), rgba(38,170,220,0) 70%),
    radial-gradient(closest-side at 72% 62%, rgba(150,226,120,.22), rgba(150,226,120,0) 70%);
  filter: blur(18px); animation: rai-breathe 9s ease-in-out infinite alternate; }
.rai-main.chatting .rai-glow { top: 100%; opacity: .55; }
@keyframes rai-breathe { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-50%,-50%) scale(1.07) rotate(4deg); } }

.rai-scroll { flex: 0 0 auto; margin-top: auto; overflow-y: auto; padding: 0 24px; }
.rai-main.chatting .rai-scroll { flex: 1; margin-top: 0; padding-top: 26px; }
.rai-column { width: min(860px, 100%); margin: 0 auto; }
.rai-hero { text-align: center; padding: 0 0 28px; transition: transform .5s ease, opacity .5s ease; }
.rai-hero.exiting { opacity: 0; transform: translateY(-46px); }
.rai-hero.gone { display: none; }
.rai-wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 800; color: var(--rai-ink); letter-spacing: -.02em; margin-bottom: 14px; }
.rai-wordmark svg { width: 38px; height: 38px; }
.rai-hero h1 { margin: 0 0 10px; font-size: clamp(28px,3vw,40px); font-weight: 800; color: var(--rai-ink); letter-spacing: -.02em; text-wrap: balance; }
.rai-hero p { margin: 0; color: #5f6c80; font-size: 18px; }

.rai-dock { flex: 0 0 auto; margin-bottom: auto; padding: 0 24px 14px; }
.rai-main.chatting .rai-dock { margin-bottom: 0; padding-top: 8px; }
.rai-dock > * { width: min(860px, 100%); margin-left: auto; margin-right: auto; }
.rai-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: #fff7ef; border: 1px solid #f4dcc4; color: #8a4a16; font-size: 14px; }
.rai-banner button { margin-left: auto; border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: #8a4a16; font-weight: 700; box-shadow: 0 1px 0 #f0d6bd; cursor: pointer; }

/* 提问框 */
.rai-composer { position: relative; border-radius: 30px; background: #fff; box-shadow: 0 10px 34px rgba(18,90,82,.12), 0 1px 0 rgba(15,60,60,.04); border: 1px solid #e3ecea; padding: 10px 10px 10px 12px; }
.rai-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.rai-plus-wrap { position: relative; flex: 0 0 auto; }
.rai-plus { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #2a384e; cursor: pointer; transition: background .15s ease, transform .2s ease; }
.rai-plus svg { width: 24px; height: 24px; }
.rai-plus:hover { background: #eef3f2; }
.rai-plus[aria-expanded="true"] { background: #e6ecec; transform: rotate(45deg); }
.rai-menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 20; min-width: 270px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 16px 44px rgba(20,40,60,.16); border: 1px solid #e8edf1; }
.rai-dock.up .rai-menu { top: auto; bottom: calc(100% + 10px); }
.rai-menu-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: #1d2a40; font-size: 15px; cursor: pointer; }
.rai-menu-item:hover, .rai-menu-item:focus-within { background: #f1f6f5; }
.rai-menu-item small { display: block; color: #8a95a4; font-size: 12px; margin-top: 2px; }
.rai-composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 200px; resize: none; border: 0; outline: 0; background: transparent; color: #14233e; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 4px; }
.rai-composer textarea::placeholder { color: #8b95a3; }
.rai-send { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#13a596,#0f857e); box-shadow: 0 6px 16px rgba(15,133,126,.28); cursor: pointer; }
.rai-send svg { width: 20px; height: 20px; }
.rai-send:disabled { background: #cfd8dc; box-shadow: none; cursor: not-allowed; }
.rai-attach { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 6px 6px; padding: 6px 8px 6px 6px; border-radius: 14px; background: #f3f7f6; border: 1px solid #e1ebe9; max-width: calc(100% - 12px); }
.rai-attach img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #e6eceb; }
.rai-attach span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4a5a6e; font-size: 13px; }
.rai-attach button { flex: 0 0 26px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #dfe7e6; color: #33445a; font-size: 16px; line-height: 1; cursor: pointer; }

/* 推荐问题：灰色文字行＋校徽 */
.rai-welcome { margin-top: 18px; padding: 0 8px; }
.rai-welcome.hidden { display: none; }
.rai-suggestions { display: grid; gap: 2px; }
.rai-suggestion { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 6px 14px; border: 0; border-radius: 14px; background: transparent; color: #7c8594; font-size: 16px; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.rai-suggestion:hover { background: rgba(255,255,255,.7); color: #2a3a52; }
.rai-suggestion > span:last-child { min-width: 0; }
.rai-q-icons { flex: 0 0 66px; display: flex; align-items: center; gap: 6px; }
.rai-q-icons > * { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #e6ebef; object-fit: contain; padding: 2px; box-shadow: 0 1px 3px rgba(20,40,60,.06); }
.rai-q-icons > .crop { object-fit: cover; object-position: left center; padding: 3px; }
.rai-q-mono { display: grid; place-items: center; font-size: 10px; letter-spacing: -.02em; font-weight: 800; color: #9b2c2c; }
.rai-shuffle { display: inline-flex; margin: 6px 0 0 14px; border: 0; background: transparent; color: #8a94a3; font-size: 13px; cursor: pointer; padding: 4px 0; }
.rai-shuffle:hover { color: var(--rai-green); }
.rai-status { margin: 10px auto 0; color: #8b95a3; font-size: 12px; text-align: center; }
.rai-status.error { color: #b03a44; }

/* 对话 */
.rai-messages { display: grid; align-content: start; gap: 22px; padding-bottom: 20px; }
.rai-message { display: flex; gap: 14px; align-items: flex-start; animation: rai-arrive .3s ease both; }
.rai-message.user { justify-content: flex-end; }
.rai-avatar { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #e3e9ee; box-shadow: 0 3px 10px rgba(20,60,80,.08); }
.rai-avatar .rai-r { font-size: 21px; }
.rai-user-avatar { background: #e8edf4; border-color: #e1e7ef; color: #6a7c96; }
.rai-user-avatar svg { width: 22px; height: 22px; fill: currentColor; }
.rai-bubble { max-width: min(640px, 78%); padding: 12px 18px; border-radius: 20px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: #1b2c49; background: #edf2f8; }
.rai-bubble .rai-sent-img { display: block; max-width: 220px; max-height: 160px; border-radius: 12px; margin-bottom: 8px; }
.rai-img-flag { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #7b889a; justify-content: flex-end; }
.rai-img-flag svg { width: 14px; height: 14px; }
.rai-waiting { padding: 10px 18px; border-radius: 18px; background: #f1f5f8; color: #2a3b55; }
.rai-wait-line { height: 26px; overflow: hidden; display: inline-block; vertical-align: middle; }
.rai-wait-line span { display: inline-block; }
.rai-wait-line span.flip { animation: rai-flip .35s ease both; }

.rai-card { flex: 1; min-width: 0; padding: 18px 22px 14px; border-radius: 20px; background: #fff; border: 1px solid #e3e9ef; box-shadow: 0 8px 26px rgba(20,50,80,.06); color: #1c2a42; line-height: 1.75; font-size: 15.5px; }
.rai-card-label { font-size: 12px; font-weight: 700; color: var(--rai-green); letter-spacing: .04em; margin-bottom: 6px; }
.rai-card.error { border-color: #f1d2d5; background: #fff8f8; color: #8e2f38; }
.rai-md > :first-child { margin-top: 0; }
.rai-md > :last-child { margin-bottom: 0; }
.rai-md h3, .rai-md h4 { margin: 18px 0 8px; font-size: 17px; color: #13213b; }
.rai-md h4 { font-size: 15.5px; }
.rai-md p { margin: 0 0 10px; }
.rai-md ul, .rai-md ol { margin: 0 0 12px; padding-left: 22px; }
.rai-md li { margin: 3px 0; }
.rai-md strong { color: #0e2340; }
.rai-md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #f1f4f7; padding: 1px 5px; border-radius: 5px; }
.rai-md pre { background: #f5f7fa; padding: 12px 14px; border-radius: 12px; overflow-x: auto; }
.rai-md pre code { background: none; padding: 0; }
.rai-md a { color: #0e7c8a; }
.rai-md .rai-table { overflow-x: auto; margin: 4px 0 12px; border: 1px solid #e5eaf0; border-radius: 12px; }
.rai-md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rai-md th, .rai-md td { padding: 8px 12px; border-bottom: 1px solid #edf1f5; text-align: left; font-variant-numeric: tabular-nums; }
.rai-md th { background: #f6f9fa; color: #4b5b70; font-weight: 700; }
.rai-md tr:last-child td { border-bottom: 0; }
.rai-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef2f5; color: #8a95a4; font-size: 12px; }
.rai-card-foot svg { width: 15px; height: 15px; }
.rai-tag { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 4px 10px 4px 8px; background: #f1f5f7; color: #6b7889; font-size: 12px; cursor: pointer; }
.rai-tag:hover { background: #e6eef0; color: #1f3350; }
.rai-copy { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 5px 10px; background: transparent; color: #6b7889; font-size: 12px; cursor: pointer; }
.rai-copy:hover { background: #f1f5f7; color: #1f3350; }

/* 拖拽上传遮罩 */
.rai-drop { position: absolute; inset: 12px; z-index: 30; display: grid; place-items: center; border: 2px dashed #3cb3a2; border-radius: 26px; background: rgba(236,249,246,.86); color: #0d6f67; font-size: 20px; font-weight: 800; pointer-events: none; }
.rai-drop small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #4f8d86; text-align: center; }
.rai-scrim { display: none; }
.rai-float-toggle { display: none; }

@keyframes rai-flip { from { transform: translateY(26px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes rai-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  body.rai-mode .app-shell > .global-nav { flex-direction: row; flex-wrap: wrap; align-items: center; row-gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  body.rai-mode .nav-brand { width: auto; flex: 0 0 auto; }
  body.rai-mode .nav-actions { width: auto; margin-left: auto; flex-wrap: nowrap; }
  body.rai-mode .nav-actions .user-pill { display: none; }
  body.rai-mode .nav-links { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px 2px 0; }
  .rai-sidebar { position: absolute; z-index: 40; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); flex-basis: auto; box-shadow: 12px 0 40px rgba(15,30,50,.18); transform: translateX(0); transition: transform .28s ease; }
  .rai-shell.collapsed .rai-sidebar { transform: translateX(-105%); width: min(300px, 84vw); padding: 14px 12px 16px; }
  .rai-shell.collapsed .rai-side-title, .rai-shell.collapsed .rai-side-item span { display: revert; }
  .rai-shell.collapsed .rai-info { display: grid; }
  .rai-toast { top: 64px; border-radius: 16px; }
  .rai-shell.collapsed .rai-side-section, .rai-shell.collapsed .rai-archived { display: revert; }
  .rai-shell.collapsed .rai-side-item { width: 100%; padding: 0 12px; justify-content: flex-start; }
  .rai-scrim { display: block; position: absolute; inset: 0; z-index: 35; background: rgba(15,25,40,.28); }
  .rai-shell.collapsed .rai-scrim { display: none; }
  .rai-float-toggle { display: grid; position: absolute; z-index: 10; top: 12px; left: 12px; }
  .rai-main.chatting::before { content: ""; position: absolute; z-index: 9; top: 0; left: 0; right: 0; height: 64px; background: linear-gradient(#fbfcfc 70%, rgba(251,252,252,0)); pointer-events: none; }
  .rai-scroll, .rai-dock { padding-left: 14px; padding-right: 14px; }
  .rai-main.chatting .rai-scroll { padding-top: 64px; }
  .rai-hero { padding-bottom: 20px; }
  .rai-wordmark { font-size: 30px; }
  .rai-wordmark svg { width: 30px; height: 30px; }
  .rai-hero h1 { font-size: 26px; }
  .rai-hero p { font-size: 15px; }
  .rai-welcome { margin-top: 12px; padding: 0; }
  .rai-suggestion { font-size: 14.5px; gap: 12px; padding: 6px 8px; min-height: 46px; }
  .rai-message { gap: 10px; }
  .rai-message.assistant .rai-avatar { display: none; }
  .rai-bubble { max-width: 86%; }
  .rai-card { padding: 14px 16px 12px; }
  .rai-archive { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rai-hero, .rai-message, .rai-wait-line span.flip, .rai-glow, .rai-sidebar, .rai-plus, .rai-modal, .rai-toast { animation: none; transition: none; }
}

.rai-tools{margin:12px 0 12px 58px;color:#64748b;font-size:13px}.rai-tools summary{cursor:pointer}.rai-sources{padding:12px 0;color:#64748b}.rai-sources a{display:inline-block;margin:6px 12px 0 0;color:#087e83}.rai-search-suggestions{width:100%;height:110px;border:0}.rai-incomplete{color:#b45309}.rai-sources a{overflow-wrap:anywhere}@media(max-width:600px){.rai-tools{margin-left:35px}}

/* Compact source markers retain full titles in the source list and tooltip. */
.rai-md a.rai-inline-source{display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;height:1.35em;margin:0 .2em;padding:0 .25em;border-radius:999px;background:#e8f5f3;color:#087e78;font-size:.78em;line-height:1;text-decoration:none;vertical-align:super;}
