/* MEO 角色与聊天只在自身区域生效，沿用子比主题色与深浅色变量。 */
.meo-root {
  --meo-bg: var(--main-bg-color, #fff);
  --meo-page: var(--body-bg-color, #f5f6f8);
  --meo-text: var(--main-color, #303441);
  --meo-muted: var(--muted-color, #727887);
  --meo-accent: var(--focus-color, #7867df);
  --meo-line: color-mix(in srgb, var(--meo-text) 11%, transparent);
  --meo-soft: color-mix(in srgb, var(--meo-accent) 7%, var(--meo-bg));
  --meo-dur: 180ms;
  --meo-panel-dur: 320ms;
  --meo-ease: cubic-bezier(0, 0, .2, 1);
  box-sizing: border-box;
  color: var(--meo-text);
  font-size: 14px;
  line-height: 1.65;
}
.meo-root *, .meo-root *::before, .meo-root *::after { box-sizing: border-box; }
.meo-root [hidden] { display: none !important; }
.meo-root h1, .meo-root h2, .meo-root h3, .meo-root p { color: inherit; margin: 0; }
.meo-root button, .meo-root input, .meo-root textarea { font: inherit; }
.meo-root button, .meo-root a { -webkit-tap-highlight-color: transparent; }
.meo-root button { cursor: pointer; }
.meo-root button:disabled { cursor: not-allowed; opacity: .55; }
.meo-root :focus-visible { outline: 2px solid var(--meo-accent); outline-offset: 4px; }
.meo-root a { text-decoration: none; }
.meo-muted { color: var(--meo-muted) !important; }
.meo-eyebrow { color: var(--meo-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.meo-button, .meo-icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 10px 18px;
  border: 1px solid var(--meo-line); border-radius: 10px;
  color: var(--meo-text); background: var(--meo-bg); font-weight: 600;
  transition: transform var(--meo-dur) var(--meo-ease), opacity var(--meo-dur) var(--meo-ease);
}
.meo-button--primary { color: #fff !important; border-color: transparent; background: var(--meo-accent); }
.meo-button--quiet { background: transparent; border-color: transparent; }
.meo-icon-button { padding: 10px; }
/* 按压反馈来自按钮本身，避免依赖颜色变化。 */
.meo-button:active, .meo-icon-button:active { transform: scale(.97); }
@media (hover: hover) {
  .meo-button:hover, .meo-icon-button:hover { opacity: .82; color: var(--meo-text); }
}
.meo-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.meo-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: var(--meo-soft); }
.meo-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--meo-accent); font-size: 20px; font-weight: 700; }
.meo-role-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; margin: 16px 0 28px; padding: 22px; border: 1px solid var(--meo-line); border-radius: 14px; background: var(--meo-bg); }
.meo-role-cover { width: 100%; height: 100%; min-height: 230px; object-fit: cover; border-radius: 10px; background: var(--meo-soft); }
.meo-role-cover--fallback { display: flex; align-items: center; justify-content: center; color: var(--meo-accent); font-size: 70px; }
.meo-role-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.meo-role-info h2 { font-size: 25px; font-weight: 700; line-height: 1.3; }
.meo-role-intro { color: var(--meo-muted) !important; font-size: 14px; overflow-wrap: anywhere; }
.meo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.meo-tag { font-size: 12px; color: var(--meo-muted); padding: 2px 8px; border-radius: 5px; background: var(--meo-page); }
.meo-role-greeting { border-left: 2px solid var(--meo-accent); padding: 1px 0 1px 12px; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.meo-role-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 5px; }
.meo-role-action small { color: var(--meo-muted); font-size: 12px; }
.meo-role-footnote { font-size: 11px; color: var(--meo-muted) !important; }
.meo-mobile-play { display: none; }
/* Follow Zibll's resolved mode and palette; chat has no separate appearance setting. */
.meo-chat-body {
  --meo-chat-scrim: rgba(15, 19, 28, .38);
  --meo-chat-shadow: rgba(20, 25, 40, .1);
  --meo-background-shade: #ffffff24;
  margin: 0; padding: 0 !important; overflow: hidden; color-scheme: light;
}
.meo-chat-body.dark-theme {
  --meo-chat-scrim: rgba(0, 0, 0, .58);
  --meo-chat-shadow: rgba(0, 0, 0, .28);
  --meo-background-shade: rgba(0, 0, 0, .58);
  color-scheme: dark;
}
.meo-chat-shell { display: flex; height: var(--meo-vh, 100dvh); max-height: 100dvh; width: 100%; position: fixed; top: var(--meo-vtop, 0); left: 0; }
.meo-chat-sidebar { width: 272px; flex: none; background: var(--meo-bg); border-right: 1px solid var(--meo-line); display: flex; flex-direction: column; padding: max(22px, env(safe-area-inset-top)) 18px 20px; min-height: 0; }
.meo-sidebar-brand { display: flex; align-items: center; gap: 9px; margin: 0 10px 30px; font-size: 21px; font-weight: 800; letter-spacing: .02em; color: var(--meo-text); }
.meo-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--meo-accent); color: white; border-radius: 10px; font-size: 16px; }
.meo-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding-left: 10px; }
.meo-sidebar-top h2 { font-size: 13px; font-weight: 500; color: var(--meo-muted); }
.meo-session-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.meo-session { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 10px; min-height: 64px; border: 0; border-radius: 9px; margin-bottom: 4px; color: var(--meo-text); background: transparent; }
.meo-session[aria-current="true"] { background: var(--meo-soft); }
.meo-session > span { display: flex; flex-direction: column; overflow: hidden; }
.meo-session strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meo-session small { color: var(--meo-muted); font-size: 11px; }
.meo-sidebar-bottom { border-top: 1px solid var(--meo-line); padding: 16px 6px max(0px, env(safe-area-inset-bottom)); margin-top: 16px; }
.meo-sidebar-note { display: block; color: var(--meo-muted); font-size: 11px; text-align: center; padding-top: 9px; }
.meo-chat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.meo-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; padding: max(14px, env(safe-area-inset-top)) 28px 14px; background: var(--meo-bg); border-bottom: 1px solid var(--meo-line); }
.meo-chat-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.meo-chat-heading h1 { font-size: 17px; font-weight: 650; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meo-chat-heading p { font-size: 12px; color: var(--meo-muted); }
.meo-chat-actions { display: flex; align-items: center; gap: 8px; }
.meo-balance-button { white-space: nowrap; font-size: 12px; }
.meo-chat-menu { display: none; }
.meo-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 24px max(24px, calc((100% - 800px) / 2)); }
.meo-chat-welcome { text-align: center; padding: 12px 18px 28px; }
.meo-chat-welcome .meo-avatar { width: 64px; height: 64px; font-size: 28px; margin-bottom: 8px; }
.meo-chat-welcome h2 { font-size: 20px; font-weight: 650; }
.meo-chat-welcome p { color: var(--meo-muted); font-size: 12px; margin-top: 6px; }
.meo-message { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.meo-message .meo-avatar { width: 32px; height: 32px; font-size: 14px; }
.meo-message-content { max-width: min(84%, 640px); min-width: 0; }
.meo-message-text { padding: 12px 16px; border-radius: 2px 12px 12px; background: var(--meo-bg); border: 1px solid var(--meo-line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 14px; }
.meo-message--user { justify-content: flex-end; }
.meo-message--user .meo-message-text { background: var(--meo-soft); border-color: transparent; border-radius: 12px 2px 12px 12px; }
.meo-message-status { font-size: 11px; color: var(--meo-muted); margin-top: 5px; }
.meo-thinking { display: flex; align-items: center; gap: 5px; min-height: 24px; }
.meo-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--meo-muted); animation: meo-think 600ms ease-in-out alternate infinite; }
.meo-thinking i:nth-child(2) { animation-delay: 120ms; }
.meo-thinking i:nth-child(3) { animation-delay: 240ms; }
@keyframes meo-think { from { opacity: .3; transform: translateY(1px); } to { opacity: .9; transform: translateY(-2px); } }
.meo-message--new { animation: meo-message-in 200ms var(--meo-ease) both; }
.meo-message--user.meo-message--new { animation:none; }
@keyframes meo-message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.meo-chat-composer { flex: none; padding: 10px max(24px, calc((100% - 800px) / 2)) max(16px, env(safe-area-inset-bottom)); }
.meo-compose-box { display: flex; align-items: flex-end; gap: 12px; border: 1px solid var(--meo-line); background: var(--meo-bg); border-radius: 14px; padding: 10px 10px 10px 16px; box-shadow: 0 2px 8px rgba(20, 25, 40, .025); }
.meo-compose-box textarea { flex: 1; min-width: 0; max-height: 160px; min-height: 44px; line-height: 24px; padding: 10px 0; resize: none; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--meo-text); }
.meo-compose-box textarea:focus { outline: 0; }
.meo-compose-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 10px; margin-top: 8px; color: var(--meo-muted); }
.meo-feedback { margin-bottom: 10px; padding: 10px 14px; border-radius: 8px; font-size: 12px; background: var(--meo-soft); overflow-wrap: anywhere; }
.meo-feedback button { margin-left: 8px; color: var(--meo-accent); background: transparent; border: 0; min-height: 32px; }
.meo-error { border-left: 3px solid #bd5858; }
.meo-login-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 16px; padding: 30px; text-align: center; }
.meo-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.meo-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 19, 28, .38); }
.meo-dialog { display: flex; flex-direction: column; width: min(100%, 560px); max-height: 85dvh; background: var(--meo-bg); border-radius: 18px; box-shadow: 0 12px 35px rgba(15, 19, 28, .13); overflow: hidden; animation: meo-panel-in var(--meo-panel-dur) var(--meo-ease); }
.meo-chat-body .meo-overlay { background: var(--meo-chat-scrim); }
.meo-chat-body .meo-dialog { border: 1px solid var(--meo-line); box-shadow: 0 12px 35px var(--meo-chat-shadow); }
@keyframes meo-panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.meo-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px 24px; border-bottom: 1px solid var(--meo-line); }
.meo-dialog-header h2 { font-size: 18px; font-weight: 650; }
.meo-dialog-content { overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.meo-preferences-form { display: grid; gap: 14px; }
#meo-preferences-overlay { top: var(--meo-preferences-vtop, 0px); height: var(--meo-preferences-vh, 100dvh); bottom: auto; }
#meo-preferences-dialog { max-height: min(85dvh, calc(var(--meo-preferences-vh, 100dvh) - 32px)); }
.meo-preferences-form label { margin: 0; font-weight: 600; }
.meo-preferences-help { margin: 0; color: var(--meo-muted); font-size: 13px; line-height: 1.8; }
.meo-preferences-input { display: block; width: 100%; min-height: 150px; max-height: 40dvh; resize: vertical; padding: 12px; border: 1px solid var(--meo-line); border-radius: 10px; background: var(--meo-bg); color: var(--meo-text); font-size: 16px !important; line-height: 1.65; }
.meo-preferences-input:focus { border-color: var(--meo-accent); outline: 2px solid var(--meo-soft); outline-offset: 1px; }
.meo-preferences-input:disabled { opacity: .65; }
.meo-preferences-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--meo-muted); font-size: 12px; }
.meo-preferences-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meo-preferences-actions .meo-button { flex: 1; min-height: 44px; }
.meo-preferences-status { margin: 0; font-size: 13px; line-height: 1.7; color: var(--meo-muted); }
.meo-preferences-status .meo-button { margin-top: 8px; }
/* Fullscreen chat has no document scrollbar. Bootstrap can still measure the
   entering bottom sheet as overflowing and add a one-sided 15px gutter.
   Clear only that compensation; keep Zibll's widths, margins and safe area. */
@media (max-width: 768px) {
  body.meo-chat-body .modal.bottom { padding-left: 0 !important; padding-right: 0 !important; }
}
/* Wallet uses Zibll's native modal shell and native buttons, not the custom overlay. */
.meo-wallet-sheet { --meo-muted: var(--muted-color); --meo-line: var(--main-border-color, rgba(128,128,128,.15)); color: var(--main-color); font-size: 14px; }
.meo-wallet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.meo-wallet-header .modal-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.meo-wallet-header .close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px; padding: 6px; position: relative; }
.meo-wallet-header .close::after { content: ''; position: absolute; inset: -6px; }
.meo-wallet-scroll { max-height: min(66dvh, 540px); overscroll-behavior: contain; }
.meo-wallet-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-radius: var(--main-radius, 8px); }
.meo-wallet-amount { font-size: 30px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.meo-wallet-amount small { font-size: 12px; margin-left: 6px; color: var(--muted-color); font-weight: 400; letter-spacing: 0; }
.meo-wallet-pricing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.meo-wallet-pricing .badg { padding: 4px 8px; font-size: 12px; }
.meo-wallet-sheet .but { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.meo-wallet-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--meo-line); }
.meo-wallet-section h3 { font-size: 13px; margin: 0 0 10px; font-weight: 600; }
.meo-wallet-explain { font-size: 12px; color: var(--muted-color); margin: 8px 0; }
.meo-memberships { display: grid; gap: 8px; }
.meo-membership { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-radius: var(--main-radius, 8px); background: var(--muted-bg-color); }
.meo-membership h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.meo-membership p { font-size: 12px; color: var(--muted-color); margin: 0; }
.meo-membership strong { color: var(--main-color); font-weight: 500; }
.meo-membership-action .but { font-size: 12px; flex: none; }
.meo-wallet-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.meo-wallet-section-heading h3 { margin: 0; }
.meo-wallet-section-heading .but { font-size: 12px; padding: 3px 10px; }
.meo-ledger { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.meo-ledger li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--meo-line); margin: 0; font-size: 12px; }
.meo-ledger li:last-child { border-bottom: 0; }
.meo-ledger small { display: block; font-size: 11px; color: var(--muted-2-color); margin-top: 2px; }
.meo-ledger b { white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; background: transparent; }
.meo-wallet-more summary { font-size: 12px; padding: 8px 0; cursor: pointer; }
.meo-payment { margin-top: 14px; }
.meo-payment a, .meo-payment button { min-height: 44px; }
@media (max-width: 700px) {
  .meo-wallet-sheet .but { min-height: 44px; }
  .meo-wallet-scroll { max-height: 64dvh; }
}
.meo-sidebar-scrim { display: none; }
@media (max-width: 960px) {
  .meo-chat-sidebar { width: 230px; }
  .meo-chat-header { padding-inline: 18px; }
  .meo-chat-scroll, .meo-chat-composer { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .meo-role-card { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .meo-role-cover { min-height: 170px; }
  .meo-role-info h2 { font-size: 21px; }
  .meo-role-info { gap: 10px; }
  .meo-role-greeting { font-size: 12px; }
  .meo-role-intro { font-size: 13px; }
  .meo-role-action { gap: 7px; }
  .meo-role-action .meo-button { width: 100%; }
  .meo-chat-menu { display: inline-flex; }
  .meo-chat-sidebar { position: absolute; z-index: 30; inset: 0 auto 0 0; width: min(86vw, 290px); transform: translateX(-100%); transition: transform var(--meo-panel-dur) var(--meo-ease); padding-top: max(20px, env(safe-area-inset-top)); }
  .meo-chat-shell[data-sidebar-open="true"] .meo-chat-sidebar { transform: translateX(0); }
  .meo-chat-shell[data-sidebar-open="true"] .meo-sidebar-scrim { display: block; position: absolute; z-index: 29; inset: 0; background: rgba(15, 19, 28, .35); border: 0; }
  .meo-sidebar-brand { margin-bottom: 20px; }
  .meo-chat-header { min-height: 74px; padding: max(9px, env(safe-area-inset-top)) 12px 9px; gap: 8px; }
  .meo-chat-heading { gap: 8px; }
  .meo-chat-heading .meo-avatar { width: 36px; height: 36px; }
  .meo-chat-heading h1 { font-size: 15px; max-width: 28vw; }
  .meo-chat-heading p { font-size: 10px; }
  .meo-chat-actions { gap: 4px; }
  .meo-chat-actions .meo-detail-link { display: none; }
  .meo-balance-button { padding: 8px 10px; font-size: 11px; gap: 5px; }
  .meo-chat-scroll { padding: 20px 14px; }
  .meo-chat-welcome { padding-bottom: 24px; }
  .meo-chat-composer { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); }
  .meo-compose-box { gap: 8px; padding-left: 12px; }
  .meo-compose-box textarea { font-size: 16px; }
  .meo-message { gap: 8px; }
  .meo-message-content { max-width: 85%; }
  .meo-message-text { padding: 10px 13px; font-size: 14px; }
  .meo-overlay { align-items: flex-end; padding: 0; }
  .meo-dialog { border-radius: 18px 18px 0 0; max-height: 85dvh; width: 100%; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .meo-dialog-content { padding: 20px; }
}
@media (max-width: 400px) {
  .meo-role-card { grid-template-columns: 1fr; }
  .meo-role-cover { max-height: 220px; aspect-ratio: 4/3; object-position: center 30%; }
  .meo-role-info h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .meo-root *, .meo-root *::before, .meo-root *::after { animation: none !important; transition-duration: 100ms !important; scroll-behavior: auto !important; }
}

/* Role detail: a compact play panel over a cover fading into the page surface. */
body.meo-role-detail-body.nav-fixed { padding-top: var(--meo-detail-header-height, 68px); }
body.meo-role-detail-body:not(.nav-fixed) .header { margin-bottom: 0; }
.meo-role-detail {
  --meo-detail-accent: #655b98;
  --meo-detail-border: #e9e8ef;
  --meo-detail-surface: #fff;
  --meo-detail-muted: #83828e;
  --meo-detail-ink: #292833;
  --meo-detail-dur: 180ms;
  --meo-detail-ease: cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--meo-detail-ink);
}
.dark-theme .meo-role-detail {
  --meo-detail-accent: #b8afe5; --meo-detail-border: #303037;
  --meo-detail-surface: #1b1b20; --meo-detail-muted: #9c9ba8; --meo-detail-ink: #eeeef4;
}
.meo-detail-hero { position: relative; height: clamp(440px, 38vw, 550px); isolation: isolate; overflow: hidden; }
.meo-detail-art, .meo-detail-art-soft {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: center 30%; pointer-events: none;
}
.meo-detail-art {
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 22%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.28) 72%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 22%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.28) 72%, transparent 97%);
}
.meo-detail-art-soft {
  z-index: 1; filter: blur(24px); transform: scale(1.06);
  -webkit-mask-image: linear-gradient(to bottom, transparent 28%, rgba(0,0,0,.7) 52%, rgba(0,0,0,.28) 72%, transparent 97%);
  mask-image: linear-gradient(to bottom, transparent 28%, rgba(0,0,0,.7) 52%, rgba(0,0,0,.28) 72%, transparent 97%);
}
.meo-detail-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 36%, color-mix(in srgb, var(--body-bg-color, var(--meo-detail-surface)) 38%, transparent) 62%, transparent 100%);
}
.meo-detail-hero--empty { background: linear-gradient(150deg, color-mix(in srgb, var(--meo-detail-accent) 22%, transparent), transparent 85%); }
.meo-detail-hero-inner {
  position: relative; z-index: 3; width: min(100%, 1048px); height: 100%;
  padding: 24px 24px 42px; margin: auto; display: flex; flex-direction: column; align-items: flex-start;
}
.meo-detail-back {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  flex: none; gap: 4px; height: 32px; min-height: 32px; padding: 0 8px;
  border-radius: 8px; color: #fff !important; background: rgba(20,24,32,.24);
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(12px); font-size: 12px;
}
.meo-detail-back::before { content: ''; position: absolute; inset: -8px; border-radius: 8px; }
.meo-role-detail .meo-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.meo-detail-heading { margin-top: auto; max-width: min(100%, 780px); color: var(--meo-detail-ink); }
.meo-detail-kicker { display: block; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .08em; color: var(--meo-detail-ink); }
.meo-detail-heading h1 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.25; font-weight: 700; margin: 5px 0 5px; color: var(--meo-detail-ink); overflow-wrap: anywhere; }
.meo-detail-author-row { display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; font-size: 12px; }
.meo-detail-author-row > a:first-child { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; min-height: 44px; margin: -7px -2px -7px -8px; }
.meo-detail-author-row .meo-detail-author-avatar { --this-size: 27px; width: var(--this-size); height: var(--this-size); }
.meo-detail-author-name { display: flex; align-items: center; min-width: 0; }
.meo-detail-author-link { display: block; line-height: 30px; padding: 7px 0; margin: -7px 0; color: var(--meo-detail-ink) !important; }
.meo-detail-author-row .meo-detail-follow { position: relative; flex: none; min-width: 64px; margin: 0 0 0 2px; padding: 0 10px; min-height: 30px; line-height: 30px; font-size: 11px; border-radius: 99px; }
.meo-detail-follow::before { content: ''; position: absolute; inset: -7px 0; }
.meo-detail-follow count { position: relative; }
.meo-detail-column { position: relative; z-index: 4; width: min(100% - 48px, 1000px); margin: -30px auto 48px; }
.meo-role-detail .meo-detail-play {
  padding: 20px 24px; margin-bottom: 20px; border: 1px solid var(--meo-detail-border); border-radius: 18px;
  background: var(--meo-detail-surface); box-shadow: 0 8px 26px rgba(20,24,36,.045), 0 1px 3px rgba(20,24,36,.025);
}
.meo-detail-play-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 12px; }
.meo-detail-play-heading h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 650; color: var(--meo-detail-ink); }
.meo-detail-play-heading h2 .meo-icon { width: 17px; height: 17px; }
.meo-detail-status { font-size: 11px; color: var(--meo-detail-muted); }
.meo-detail-costs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.meo-detail-cost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: 99px;
  border: 1px solid #e9d7b2; background: #fffcf6; font-size: 11px; white-space: nowrap;
}
.meo-detail-cost-label { color: #9b7741; padding-right: 6px; border-right: 1px solid #eadcc4; }
.meo-detail-cost-value { display: inline-flex; align-items: center; gap: 3px; color: #806034; font-weight: 600; }
.meo-detail-cost-value .meo-icon { width: 15px; height: 15px; }
.meo-detail-cost-unit { font-size: 10px; color: #9b7741; }
.meo-detail-cost--pending { color: var(--meo-detail-muted); border-color: var(--meo-detail-border); background: transparent; }
.meo-detail-cost--pending .meo-detail-cost-label { color: var(--meo-detail-muted); border-color: var(--meo-detail-border); }
.dark-theme .meo-detail-cost:not(.meo-detail-cost--pending) { border-color: #584b35; background: #28241e; }
.dark-theme .meo-detail-cost:not(.meo-detail-cost--pending) .meo-detail-cost-label { color: #cbb28b; border-color: #584b35; }
.dark-theme .meo-detail-cost-value, .dark-theme .meo-detail-cost-unit { color: #e3c89e; }
.meo-detail-play .meo-detail-start {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,.12); border-radius: 11px;
  color: #fff; background: linear-gradient(110deg, #586780, #77648a);
  box-shadow: 0 4px 12px rgba(92,83,127,.15);
  transition: transform var(--meo-detail-dur) var(--meo-detail-ease), opacity var(--meo-detail-dur) var(--meo-detail-ease);
}
.meo-detail-start .meo-icon { width: 18px; height: 18px; }
.meo-detail-categories { margin-top: 10px; }
.meo-detail-categories > .article-tags { margin: 0; }
.meo-detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.meo-detail-actions .meo-detail-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 6px; border: 1px solid var(--meo-detail-border); border-radius: 10px; background: transparent; color: var(--meo-detail-ink); font-size: 12px; margin: 0; white-space: nowrap; }
.meo-detail-action .icon, .meo-detail-action .meo-icon { width: 16px; height: 16px; margin: 0; }
.meo-detail-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; padding: 0; color: var(--meo-detail-muted); font-size: 11px; line-height: 1.8; }
.meo-detail-note .meo-icon { width: 14px; height: 14px; margin-top: 3px; }
.meo-detail-introduction, .meo-detail-discussion { scroll-margin-top: calc(var(--meo-detail-header-height, 68px) + 16px); }
.meo-detail-introduction > .breadcrumb, .meo-detail-introduction > .single-head-cover, .meo-detail-introduction .article > .article-header { display: none; }
.meo-detail-introduction > .article { padding: 24px; margin-bottom: 20px; border: 1px solid var(--meo-detail-border); border-radius: 18px; background: var(--meo-detail-surface); box-shadow: none; }
/* Zibll hardcodes these footer nodes; keep its content/payment hooks and native actions. */
.meo-detail-introduction .article > .article-content > .separator,
.meo-detail-introduction .article > .article-content > .article-tags { display: none; }
.meo-introduction-title { margin: 0 0 16px; font-size: 16px; font-weight: 650; color: var(--meo-detail-ink); }
.meo-detail-public-intro { margin-bottom: 20px; }
.meo-detail-intro-text { line-height: 1.95; font-size: 14px; overflow-wrap: anywhere; color: var(--meo-detail-ink); }
.meo-detail-intro-more summary { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--meo-detail-accent); font-size: 12px; list-style: none; cursor: pointer; }
.meo-detail-intro-more summary::-webkit-details-marker { display: none; }
.meo-detail-intro-more summary .meo-icon { width: 16px; height: 16px; transition: transform var(--meo-detail-dur) var(--meo-detail-ease); }
.meo-detail-intro-collapse, .meo-detail-intro-more[open] .meo-detail-intro-expand { display: none; }
.meo-detail-intro-more[open] .meo-detail-intro-collapse { display: inline; }
.meo-detail-intro-more[open] summary .meo-icon { transform: rotate(180deg); }
.meo-detail-introduction .wp-posts-content { min-height: 0; line-height: 1.95; }
.meo-detail-introduction .wp-posts-content p { margin-bottom: 1.4em; }
.meo-detail-discussion { margin-top: 24px; }
.meo-detail-back, .meo-detail-action { transition: transform var(--meo-detail-dur) var(--meo-detail-ease), opacity var(--meo-detail-dur) var(--meo-detail-ease); }
.meo-detail-start:active, .meo-detail-action:active, .meo-detail-back:active { transform: scale(.98); }
.meo-role-detail a:focus-visible, .meo-detail-intro-more summary:focus-visible { outline: 2px solid var(--meo-detail-accent) !important; outline-offset: 3px; }
@media (hover: hover) {
  .meo-detail-start:hover { transform: translateY(-1px); }
  .meo-detail-action:hover, .meo-detail-back:hover { opacity: .85; }
}
@media (max-width: 767px) {
  body.meo-role-detail-body.nav-fixed { padding-top: var(--meo-detail-header-height, 50px); }
  .meo-role-detail-body .float-right { display: none; }
  .meo-detail-hero { height: 430px; }
  .meo-detail-art, .meo-detail-art-soft { object-position: center 25%; }
  .meo-detail-hero-inner { padding: 16px 22px 38px; }
  .meo-detail-heading h1 { font-size: 28px; }
  .meo-detail-column { width: calc(100% - 28px); margin-top: -26px; }
  .meo-role-detail .meo-detail-play, .meo-detail-introduction > .article { padding: 17px; border-radius: 17px; }
  .meo-detail-play-heading { gap: 6px; margin-bottom: 10px; }
  .meo-detail-costs { gap: 6px; margin-bottom: 13px; }
  .meo-detail-cost { padding: 4px 8px; }
  .meo-detail-play .meo-detail-start { min-height: 44px; }
  .meo-detail-action .icon { width: 14px; height: 14px; }
  .meo-detail-actions .meo-detail-action { font-size: 11px; gap: 4px; }
  .meo-introduction-title { font-size: 15px; }
  .meo-detail-intro-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .meo-role-detail *, .meo-role-detail *::before, .meo-role-detail *::after { transition: none !important; animation: none !important; }
  .meo-detail-start:hover, .meo-detail-start:active, .meo-detail-action:active, .meo-detail-back:active { transform: none; }
}

/* UU reference: uninterrupted chat canvas, compact header, floating composer. */
.meo-chat-shell { --meo-chat-font: 14px; --meo-line: color-mix(in srgb, var(--meo-text) 10%, transparent); }
.meo-chat-main { position: relative; isolation: isolate; }
.meo-chat-main::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: none; }
.meo-chat-header { min-height: 76px; padding: max(12px, env(safe-area-inset-top)) max(24px, calc((100% - 1100px) / 2)) 12px; background: color-mix(in srgb, var(--meo-bg) 88%, transparent); border-bottom: 1px solid var(--meo-line); gap: 16px; }
.meo-chat-heading { gap: 14px; flex: 1; min-width: 0; }
.meo-chat-header .meo-icon-button { background: transparent; border: 0; border-radius: 50%; color: var(--meo-muted); flex: none; }
.meo-role-heading { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; color: var(--meo-text); cursor: pointer; }
.meo-role-heading > span { min-width: 0; }
.meo-role-heading .meo-avatar { width: 42px; height: 42px; }
.meo-chat-heading h1 { font-size: 17px; font-weight: 650; max-width: none; line-height: 1.5; }
.meo-role-subtitle { color: var(--meo-muted); font-size: 12px; white-space: nowrap; }
.meo-chat-actions { gap: 8px; flex: none; }
.meo-chat-actions .meo-balance-button { border: 1px solid color-mix(in srgb, var(--meo-accent) 12%, transparent); background: var(--meo-bg); color: var(--meo-accent); border-radius: 24px; min-height: 40px; padding: 8px 16px; box-shadow: 0 3px 12px color-mix(in srgb, var(--meo-accent) 6%, transparent); }
.meo-chat-scroll { padding: 26px max(24px, calc((100% - 1000px) / 2)) 32px; scrollbar-gutter: auto; }
.meo-conversation-start { text-align: center; color: var(--meo-muted); font-size: 11px; margin: 4px 0 32px; opacity: .75; }
.meo-message { gap: 10px; margin-bottom: 18px; }
.meo-message .meo-avatar { width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.meo-message-content { max-width: min(75%, 720px); }
.meo-message-text { font-size: var(--meo-chat-font); line-height: 1.65; padding: 8px 12px; background: var(--meo-bg); border-radius: 4px 16px 16px; border: 1px solid color-mix(in srgb, var(--meo-text) 10%, transparent); box-shadow: 0 2px 3px rgba(25,35,50,.035); }
.meo-message--user .meo-message-text { background: color-mix(in srgb, var(--meo-accent) 12%, var(--meo-bg)); border: 1px solid color-mix(in srgb, var(--meo-accent) 12%, transparent); border-radius: 16px 4px 16px 16px; }
.meo-reply-group { margin-bottom: 18px; }
.meo-reply-group > .meo-message { margin-bottom: 8px; }
.meo-reply-group > .meo-message:last-child { margin-bottom: 0; }
.meo-message-copy { font-size: 11px; min-height: 32px; padding: 4px 8px; border: 0; background: transparent; color: var(--meo-muted); font-weight: 400; margin-top: 2px; }
.meo-chat-composer { flex: none; width: 100%; margin: 0; padding: 10px 20px max(8px, env(safe-area-inset-bottom)); background: var(--meo-bg); border-top: 1px solid var(--meo-line); }
.meo-compose-box { width: min(100%, 1008px); margin: 0 auto; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.meo-compose-input { display: flex; align-items: flex-end; flex: 1; min-width: 0; padding: 0 4px 0 12px; border: 1px solid transparent; border-radius: 13px; background: var(--meo-page); }
.meo-compose-tools { display: flex; gap: 2px; align-items: center; flex: none; padding-bottom: 1px; }
.meo-compose-tools .meo-icon-button { border: 0; border-radius: 50%; background: transparent; color: var(--meo-text); }
.meo-compose-box .meo-icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: none; padding: 10px; }
.meo-compose-box > .meo-composer-toggle { border: 0; border-radius: 50%; background: transparent; color: var(--meo-text); }
.meo-compose-box > .meo-composer-toggle .meo-icon, .meo-compose-tools .meo-icon { width: 28px; height: 28px; flex: none; stroke-width: 1.65; }
.meo-compose-tools .meo-icon { width: 25px; height: 25px; }
.meo-compose-box .meo-composer-toggle[aria-expanded="true"] { color: var(--meo-text); background: transparent; }
.meo-composer-toggle[data-meo-action="more"] .meo-icon { transition: transform var(--meo-dur) var(--meo-ease); }
.meo-composer-toggle[data-meo-action="more"][aria-expanded="true"] .meo-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .meo-composer-toggle[data-meo-action="more"] .meo-icon { transition: none; } }
.meo-chat-composer :is(:focus, :focus-visible) { outline: none; box-shadow: none; }
/* Plain chat feedback sits above the composer without changing its layout. */
#meo-chat-notice {
  position: relative; flex: none; width: 100%; height: 0; min-height: 0;
  inset: auto; margin: 0; padding: 0; transform: none; animation: none;
  z-index: 40; pointer-events: none;
}
#meo-chat-notice .meo-chat-points-text {
  position: absolute; left: 50%; right: auto; top: auto; bottom: 16px; float: none;
  width: max-content; min-width: 0; max-width: calc(100% - 32px); margin: 0;
  padding: 0; border: 0; border-radius: 0; background: none; color: var(--meo-muted);
  font-size: 13px; line-height: 1.6; text-align: center; overflow-wrap: anywhere;
  transform: translateX(-50%); animation: none; box-shadow: none; pointer-events: auto;
}
#meo-chat-notice .meo-chat-points-link {
  display: inline; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
  border-radius: 0; background: none; box-shadow: none; color: var(--meo-accent);
  font: inherit; line-height: inherit; vertical-align: baseline; text-decoration: none;
  transform: none; outline: none;
}
.meo-composer-panel { width: min(100%, 1008px); height: clamp(180px, 32dvh, 300px); max-height: max(90px, calc(var(--meo-vh, 100dvh) - 260px)); margin: 8px auto 0; padding: 8px 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; }
.meo-emoji-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.meo-emoji-tabs button { min-height: 44px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--meo-muted); font-size: 13px; }
.meo-emoji-tabs button[aria-selected="true"] { color: var(--meo-text); background: transparent; }
.meo-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.meo-emoji-grid .meo-emoji-choice { min-width: 44px; min-height: 44px; padding: 6px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; }
.meo-emoji-grid .meo-emoji-choice:hover:not(:disabled) { background: var(--meo-soft); }
.meo-sticker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; align-items: center; }
.meo-emoji-grid .meo-sticker-choice { min-width: 0; height: 64px; padding: 4px; }
.meo-sticker-choice img { width: auto; height: auto; max-width: 52px; max-height: 52px; object-fit: contain; }
.meo-sticker-grid .meo-sticker-add { position: relative; justify-self: center; width: 56px; height: 56px; min-width: 0; min-height: 0; padding: 0; border: 1px dashed color-mix(in srgb, var(--meo-text) 28%, transparent); border-radius: 14px; background: transparent; color: var(--meo-muted); }
.meo-sticker-add::before, .meo-sticker-add::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.7px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.meo-sticker-add::after { transform: translate(-50%, -50%) rotate(90deg); }
.meo-sticker-add:hover:not(:disabled) { color: var(--meo-accent); border-color: currentColor; background: var(--meo-soft); }
.meo-composer-panel .meo-sticker-status { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: var(--meo-soft); color: var(--meo-text); font-size: 12px; line-height: 1.6; }
.meo-sticker-image-error { font-size: 11px; color: var(--meo-muted); }
.meo-composer-panel .meo-composer-panel-note { margin: 12px 0 2px; font-size: 11px; line-height: 1.7; color: var(--meo-muted); }
.meo-emoji-grid > .meo-composer-panel-note { grid-column: 1 / -1; }
.meo-attachment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; padding: 14px 0; }
.meo-attachment-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: transparent; color: var(--meo-muted); font-size: 13px; cursor: not-allowed; }
.meo-attachment-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 16px; background: var(--meo-page); }
.meo-attachment-icon .meo-icon { width: 24px; height: 24px; }
.meo-attachment-option small { font-size: 10px; }
.meo-user-sticker { display: block; width: auto; height: auto; max-width: min(120px, 100%); max-height: 120px; object-fit: contain; margin-inline-start: auto; }
.meo-user-sticker--native { max-width: 40px; max-height: 40px; }
.meo-user-sticker:not(:first-child), .meo-user-sticker + .meo-message-text { margin-top: 8px; }
.meo-compose-box textarea { min-height: 44px; padding: 10px 0; font-size: 16px; }
.meo-compose-box textarea::placeholder { color: var(--meo-muted); opacity: .65; }
.meo-compose-box textarea:disabled { opacity: .7; cursor: not-allowed; }
.meo-compose-input #meo-send { border: 0; border-radius: 8px; background: transparent; color: var(--meo-accent); flex: none; width: 36px; min-width: 36px; height: 44px; min-height: 44px; padding: 8px; }
.meo-compose-input #meo-send:disabled { background: transparent; color: var(--meo-muted); opacity: .55; }
.meo-compose-input .meo-chat-login { border: 0; background: transparent; color: var(--meo-accent); min-width: 44px; padding: 8px; }
.meo-compose-note { font-size: 10px; opacity: .8; margin-top: 6px; }
.meo-feedback { width: fit-content; max-width: 100%; margin: 0 auto 12px; background: color-mix(in srgb, var(--meo-bg) 92%, transparent); border: 1px solid var(--meo-line); border-radius: 12px; padding: 9px 14px; color: var(--meo-muted); }
.meo-feedback.meo-error { border-left: 3px solid #bd5858; }
.meo-chat-sidebar { position: absolute; z-index: 30; inset: 0 auto 0 0; width: min(86vw, 330px); transform: translateX(-100%); transition: transform var(--meo-panel-dur) var(--meo-ease); padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); border-right: 1px solid var(--meo-line); box-shadow: 8px 0 40px var(--meo-chat-shadow, rgba(20,30,50,.06)); }
.meo-chat-shell[data-sidebar-open="true"] .meo-chat-sidebar { transform: translateX(0); }
.meo-chat-shell[data-sidebar-open="true"] .meo-sidebar-scrim { display: block; position: absolute; z-index: 29; inset: 0; background: var(--meo-chat-scrim, rgba(15,19,28,.25)); border: 0; }
.meo-sidebar-title { display: flex; align-items: center; justify-content: space-between; }
.meo-sidebar-title h2 { font-size: 19px; font-weight: 650; }
.meo-sidebar-title button { border: 0; background: transparent; }

.meo-new-conversation { margin: 12px 0 20px; width: 100%; background: var(--meo-soft); color: var(--meo-accent); border: 0; font-size: 13px; }
.meo-session-list > p { font-size: 12px; padding: 16px 8px; }
@media (max-width: 700px) {
  .meo-chat-header { min-height: 68px; padding: max(9px, env(safe-area-inset-top)) 12px 9px; gap: 8px; }
  .meo-chat-heading { gap: 6px; }
  .meo-header-back { min-width: 32px; padding-inline: 5px; }
  .meo-role-heading { gap: 9px; }
  .meo-role-heading .meo-avatar { width: 36px; height: 36px; }
  .meo-chat-heading h1 { font-size: 16px; max-width: 30vw; }
  .meo-role-subtitle { display: block; max-width: 29vw; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .meo-chat-actions { gap: 0; }
  .meo-chat-actions .meo-balance-button { padding-inline: 10px; gap: 5px; min-width: 50px; min-height: 36px; font-size: 12px; }
  .meo-chat-actions .meo-icon-button { min-width: 40px; padding: 8px; }
  .meo-chat-scroll { padding: 20px 14px 24px; }
  .meo-conversation-start { margin: 0 0 24px; font-size: 10px; }
  .meo-message { gap: 8px; margin-bottom: 16px; }
  .meo-reply-group { margin-bottom: 16px; }
  .meo-message .meo-avatar { width: 32px; height: 32px; }
  .meo-message-content { max-width: 82%; }
  .meo-message-text { padding: 7px 11px; font-size: var(--meo-chat-font); }
  .meo-chat-composer { padding: 10px 8px max(8px, env(safe-area-inset-bottom)); }
  .meo-compose-box { padding: 0; gap: 4px; }
  .meo-compose-tools { gap: 0; }
  .meo-compose-tools .meo-icon-button { padding: 10px; min-width: 44px; }
  .meo-compose-note { font-size: 10px; margin-top: 6px; }
}
.meo-chat-shell .meo-avatar { object-position: center top; }

.meo-chat-name { display: block; font-size: 17px; font-weight: 650; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .meo-chat-name { font-size: 16px; max-width: 30vw; } }
/* Conversation tools share the theme's existing modal shell and color tokens. */
.meo-native-dialog .modal-content{overflow:hidden}
.meo-native-sheet .meo-dialog-header{padding:0 0 14px;border-bottom:1px solid var(--meo-line);gap:12px}
.meo-native-sheet .meo-dialog-header h2{font-size:17px;font-weight:600}
.meo-native-sheet .meo-dialog-header .meo-icon-button{flex:none;border:0;background:transparent;margin:-6px -6px -6px 0}
.meo-native-sheet .meo-dialog-content{padding:18px 0 2px;max-height:min(66dvh,calc(var(--meo-sheet-vh,100dvh) - 155px));overflow:auto;overscroll-behavior:contain}
.meo-native-sheet .meo-preferences-form{margin-top:16px}
.meo-native-sheet .meo-confirm-description{margin:0 0 20px;line-height:1.85;color:var(--meo-muted)}
.meo-memory-switch{display:flex;gap:10px;align-items:center;min-height:44px}
.meo-memory-switch input{width:18px;height:18px;flex:none;accent-color:var(--meo-accent)}
.meo-memory-clear-confirm{display:grid;gap:14px;padding:14px;border:1px solid color-mix(in srgb,#d34b4b 30%,var(--meo-line));border-radius:10px;background:color-mix(in srgb,#d34b4b 5%,var(--meo-bg))}
.meo-memory-clear-confirm p{font-size:13px;line-height:1.8}
.meo-button--danger{background:#b83535;color:#fff;border-color:#b83535}
.meo-memory-clear{color:var(--meo-muted);justify-self:start}
/* The input keeps its existing shape while a held gesture owns the recorder. */
.meo-compose-tools [data-meo-action="record"] > span { display: inline-flex; }
.meo-compose-tools [data-meo-action="record"] .meo-record-icon-keyboard,
.meo-compose-tools [data-meo-action="record"][aria-pressed="true"] .meo-record-icon-voice { display: none; }
.meo-compose-tools [data-meo-action="record"][aria-pressed="true"] .meo-record-icon-keyboard { display: inline-flex; }
.meo-compose-input.is-voice-mode { padding: 0; }
.meo-compose-input.is-voice-mode #meo-input,
.meo-compose-input.is-voice-mode #meo-send { display: none; }
.meo-hold-to-talk {
  display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 44px;
  margin: 0; padding: 10px 12px; border: 0; border-radius: inherit; background: transparent;
  color: var(--meo-text); font-size: 16px !important; font-weight: 500; line-height: 24px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.meo-hold-to-talk:active { background: color-mix(in srgb, var(--meo-text) 7%, transparent); }
.meo-recording-overlay {
  --meo-recording-color: #78e578; --meo-recording-ink: #254b2d;
  --meo-recording-anchor: max(calc(var(--meo-sheet-vh, 100dvh) * .3), 150px);
  --meo-recording-target: rgba(226, 228, 231, .88); --meo-recording-bottom: #dfe1e2;
  position: fixed; z-index: 100001; top: var(--meo-sheet-top, 0px); left: 0; right: 0;
  height: var(--meo-sheet-vh, 100dvh); max-height: 100dvh; overflow: clip; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.68) 43%, rgba(255,255,255,.95) 80%, #fff);
  color: var(--meo-text); user-select: none; -webkit-user-select: none;
}
.meo-recording-overlay[hidden] { display: none !important; }
.meo-recording-overlay :is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.meo-recording-indicator {
  position: absolute; bottom: var(--meo-recording-anchor); left: 50%; transform: translateX(-50%); width: min(58%, 340px);
  display: flex; flex-direction: column; align-items: center;
}
.meo-recording-bubble {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative;
  width: 100%; min-height: 64px; padding: 17px 20px; border-radius: 22px;
  background: var(--meo-recording-color); color: var(--meo-recording-ink); transition: background-color 120ms ease;
}
.meo-recording-bubble::after {
  content: ''; position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%);
  width: 22px; height: 12px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.meo-recording-wave { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); align-items: center; gap: 2px; flex: 1; min-width: 0; height: 30px; }
.meo-recording-wave i { display: block; height: 28px; border-radius: 8px; background: #fff; transform: scaleY(.14); transform-origin: center; }
.meo-recording-wave i:first-child, .meo-recording-wave i:last-child { opacity: .3; }
.meo-recording-wave i:nth-child(2), .meo-recording-wave i:nth-last-child(2) { opacity: .5; }
.meo-recording-wave i:nth-child(3), .meo-recording-wave i:nth-last-child(3) { opacity: .75; }
.meo-recording-status { flex: none; max-width: calc(100% - 80px); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meo-recording-status:empty { display: none; }
.meo-recording-transcript { flex: 1; min-width: 0; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.meo-recording-bottom { position: absolute; inset: 0; pointer-events: none; }
.meo-recording-label { position: absolute; bottom: 24.5%; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--meo-muted); }
.meo-recording-targets { position: absolute; bottom: 14.5%; left: 50%; transform: translateX(-50%); width: min(calc(100% - 112px), 420px); display: flex; justify-content: space-between; gap: 28px; }
.meo-recording-target {
  display: flex; align-items: center; justify-content: center; flex: none; width: 76px; height: 76px;
  border-radius: 50%; background: var(--meo-recording-target); color: var(--meo-text); font-size: 17px; font-weight: 600;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.meo-recording-release {
  position: absolute; left: -25%; right: -25%; top: 88%; height: 35%;
  border-radius: 50% 50% 0 0 / 44px 44px 0 0; border-top: 3px solid rgba(255,255,255,.55);
  background: linear-gradient(var(--meo-recording-bottom), transparent);
}
.meo-recording-overlay.is-cancelling { --meo-recording-color: #e86575; --meo-recording-ink: #fff; }
.meo-recording-overlay.is-cancelling #meo-recording-cancel-target { background: #df596c; color: #fff; transform: scale(1.1); }
.meo-recording-overlay.is-cancelling .meo-recording-label { color: #be354b; }
.meo-recording-overlay.is-transcribing #meo-recording-text-target { background: var(--meo-recording-color); color: var(--meo-recording-ink); transform: scale(1.1); }
.meo-recording-overlay.is-transcribing .meo-recording-bubble { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.meo-recording-overlay.is-transcribing .meo-recording-status { max-width: 100%; font-size: 12px; }
.meo-recording-text-preview {
  display: block; flex: none; width: 100%; height: auto; min-height: 28px;
  max-height: min(34dvh, max(28px, calc(var(--meo-sheet-vh, 100dvh) - var(--meo-recording-anchor) - 76px)));
  margin: 0; padding: 0; overflow-y: auto;
  border: 0; border-radius: 0; resize: none; outline: none; box-shadow: none; background: transparent;
  color: var(--meo-recording-ink); font-size: 16px !important; line-height: 1.75;
  user-select: text; -webkit-user-select: text;
}
.meo-recording-text-preview:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.meo-recording-edit { position: absolute; right: 12px; bottom: 6px; display: grid; place-items: center; width: 36px; height: 32px; margin: 0; padding: 6px; border: 0; background: transparent; color: var(--meo-recording-ink); opacity: .65; cursor: pointer; }
.meo-recording-edit .meo-icon { width: 19px; height: 19px; }
.meo-recording-preview-actions { position: absolute; bottom: 14.5%; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 18px; width: min(calc(100% - 72px), 420px); z-index: 1; }
.meo-recording-preview-actions .meo-recording-action { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--meo-muted); font-size: 13px; line-height: 20px; white-space: nowrap; cursor: pointer; }
.meo-recording-action-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--meo-recording-target); color: var(--meo-text); }
.meo-recording-action-icon .meo-icon { width: 26px; height: 26px; }
.meo-recording-preview-actions .meo-recording-send { grid-column: 3; display: grid; place-items: center; width: 86px; height: 86px; border: 0; border-radius: 50%; margin: 0; padding: 10px; background: #ff3d2e; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.meo-recording-preview-actions button:disabled { opacity: .4; cursor: default; }
.meo-recording-validation { position: absolute; bottom: calc(100% + 10px); left: 0; width: 100%; color: var(--meo-muted); text-align: center; font-size: 12px; }
.meo-recording-overlay.is-preview { pointer-events: auto; }
.meo-recording-overlay.is-preview .meo-recording-indicator { width: min(78%, 420px); }
.meo-recording-overlay.is-preview .meo-recording-bubble { flex-direction: column; align-items: stretch; min-height: 64px; padding: 18px 20px; }
.meo-recording-overlay.is-preview-ready .meo-recording-bubble { min-height: 84px; padding-bottom: 38px; }
.meo-recording-overlay.is-preview .meo-recording-bubble::after { left: auto; right: 28px; transform: none; }
.meo-recording-overlay.is-preview .meo-recording-status { width: 100%; max-width: 100%; font-size: 12px; white-space: normal; }
.meo-recording-overlay.is-preview .meo-recording-label, .meo-recording-overlay.is-preview .meo-recording-targets { display: none; }
.dark-theme .meo-recording-overlay {
  --meo-recording-target: rgba(72, 77, 82, .94); --meo-recording-bottom: #44494f;
  background: linear-gradient(180deg, rgba(17,20,25,.28), rgba(17,20,25,.7) 43%, rgba(17,20,25,.96) 80%, #111419);
}
.dark-theme .meo-recording-overlay.is-cancelling .meo-recording-label { color: #ff8b9c; }
@media (max-height: 520px) {
  .meo-recording-overlay { --meo-recording-anchor: max(calc(var(--meo-sheet-vh, 100dvh) * .45), 140px); }
  .meo-recording-bubble { min-height: 56px; padding-block: 13px; }
  .meo-recording-label { bottom: 33%; }
  .meo-recording-targets { bottom: 10%; width: min(calc(100% - 112px), 420px); }
  .meo-recording-target { width: 64px; height: 64px; font-size: 15px; }
  .meo-recording-release { top: 86%; }
  .meo-recording-overlay.is-preview .meo-recording-bubble { padding: 14px 16px; }
  .meo-recording-overlay.is-preview-ready .meo-recording-bubble { min-height: 76px; padding-bottom: 34px; }
  .meo-recording-preview-actions { bottom: 10%; }
  .meo-recording-preview-actions .meo-recording-send { width: 70px; height: 70px; font-size: 17px; }
  .meo-recording-preview-actions .meo-recording-action { gap: 5px; font-size: 12px; }
  .meo-recording-action-icon { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .meo-recording-bubble, .meo-recording-target { transition: none; } }
.meo-chat-shell .meo-message-voice{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:126px;max-width:100%;min-height:42px;padding:9px 14px;border:1px solid color-mix(in srgb,var(--meo-accent) 12%,transparent);border-radius:14px 3px 14px 14px;background:color-mix(in srgb,var(--meo-accent) 12%,var(--meo-bg));color:var(--meo-text);font-size:14px;font-variant-numeric:tabular-nums;cursor:pointer}
.meo-chat-shell .meo-message-voice:disabled{cursor:default;opacity:1}
.meo-message-voice.is-playing{color:var(--meo-accent)}
.meo-message-voice[aria-busy="true"] .meo-voice-wave{opacity:.45}
.meo-voice-delivery{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 10px;margin-top:5px}
.meo-voice-delivery .meo-message-status{flex-basis:100%;text-align:right}
.meo-voice-delivery .meo-button{border:0;background:transparent;min-height:32px;padding:3px 0;color:var(--meo-accent);font-size:12px}
.meo-message-sticker{display:block;width:auto;height:auto;max-width:min(160px,100%);max-height:160px;object-fit:contain;border-radius:12px}
.meo-message-sticker:not(:first-child){margin-top:10px}
.meo-message-sticker--native{max-width:min(40px,100%);max-height:40px;border-radius:0}
.meo-message-sticker--native:not(:first-child){margin-top:8px}
.meo-message--streaming .meo-message-text::after{content:'';display:inline-block;width:2px;height:1em;margin-left:3px;background:var(--meo-accent);vertical-align:-.12em;animation:meo-stream-caret 700ms ease-in-out infinite alternate}
@keyframes meo-stream-caret{from{opacity:.25}to{opacity:1}}
@media(max-width:700px){.meo-native-sheet .meo-dialog-content{max-height:calc(var(--meo-sheet-vh,100dvh) - 160px);padding-bottom:max(8px,env(safe-area-inset-bottom))}.meo-message-copy{min-height:44px;min-width:44px}.meo-native-sheet .meo-preferences-actions{gap:10px}}
@media(prefers-reduced-motion:reduce){.meo-message--streaming .meo-message-text::after{animation:none;opacity:.7}}
@media(min-width:641px){.modal-dialog.meo-editor-dialog{width:560px;max-width:calc(100vw - 32px)}}
.meo-editor-dialog .meo-preferences-input{height:140px;min-height:140px;max-height:30dvh}
.meo-editor-dialog .meo-preferences-help{font-size:12px;line-height:1.65}
.meo-editor-dialog .meo-preferences-form{gap:10px}
.meo-editor-actions{position:sticky;bottom:0;z-index:1;background:var(--meo-bg);padding:10px 0 6px;border-top:1px solid var(--meo-line)}
/* Public character profile and account-backed options use Zibll's native sheets. */
.meo-panel-actions{display:flex;gap:8px;align-items:center}
.meo-native-sheet .meo-panel-actions .meo-icon-button{margin:-6px 0;min-width:44px;min-height:44px;padding:12px}
.meo-native-sheet .meo-panel-actions .meo-icon{width:18px;height:18px}
.meo-profile-summary{display:flex;align-items:center;gap:14px}
.meo-profile-summary .meo-profile-avatar{width:64px;height:64px;border-radius:12px;object-position:center top}
.meo-profile-identity{min-width:0;flex:1}
.meo-profile-identity h3{font-size:18px;line-height:1.45;font-weight:600;overflow-wrap:anywhere;margin:0 0 6px}
.meo-profile-author{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--meo-muted);min-height:24px}
.meo-profile-author-name{min-width:0;max-width:100%;display:flex}
.meo-profile-author a{max-width:100%;color:var(--meo-muted)}
.meo-profile-categories{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.meo-profile-categories .but{font-size:12px;padding:5px 10px;min-height:32px;display:inline-flex;align-items:center}
.meo-profile-section{border-top:1px solid var(--meo-line);margin-top:20px;padding-top:18px}
.meo-profile-section h4{font-size:13px;font-weight:600;margin:0 0 9px;color:var(--meo-text)}
.meo-profile-section p{font-size:13px;line-height:1.85;color:var(--meo-muted);white-space:pre-wrap;overflow-wrap:anywhere}
.meo-options-form{display:grid;gap:0}
.meo-option-model{display:grid;gap:10px;padding-bottom:18px}
.meo-option-model>label{margin:0;font-weight:500}
.meo-options-form .form-control{font:inherit;font-size:14px;color:var(--meo-text);background:var(--meo-page);border:1px solid var(--meo-line);border-radius:8px;min-height:44px;padding:8px 12px;width:100%;box-shadow:none}
.meo-options-form .form-control:disabled{opacity:.55;cursor:not-allowed}
.meo-option-group{border-top:1px solid var(--meo-line);padding:7px 0}
.meo-option-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;margin:0;font-weight:400;cursor:pointer}
.meo-option-row>span{line-height:1.5}
.meo-option-row small{display:block;color:var(--meo-muted);font-size:11px;font-weight:400;margin-top:3px}
.meo-option-row small:empty{display:none}
.meo-option-row input[role="switch"]{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:46px;height:26px;padding:0;box-shadow:none;margin:0;background:color-mix(in srgb,var(--meo-muted) 32%,var(--meo-bg));border:0;border-radius:20px;cursor:pointer;transition:background-color 180ms}
.meo-option-row input[role="switch"]::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform 180ms}
.meo-option-row input[role="switch"]:checked{background:var(--meo-accent)}
.meo-option-row input[role="switch"]:checked::after{transform:translateX(20px)}
.meo-option-row input[role="switch"]:disabled{opacity:.4;cursor:not-allowed}
.meo-option-row input[role="switch"]::before{content:"";position:absolute;left:9px;top:9px;width:8px;height:5px;border:0;border-left:2px solid #fff;border-bottom:2px solid #fff;border-radius:0;background:none;opacity:0;transform:rotate(-45deg)}
.meo-option-row input[role="switch"]:checked::before{opacity:1;transform:rotate(-45deg)}
.meo-option-context{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 9px;color:var(--meo-muted);font-size:12px}
.meo-option-context label{font-weight:400;margin:0}
.meo-option-context .form-control{width:142px;font-size:12px}
.meo-option-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;border:0;background:transparent;padding:5px 0;color:var(--meo-muted);font-size:12px}
.meo-option-link .meo-icon{width:16px;height:16px}
.meo-options-status{font-size:12px;margin:10px 0 0;max-width:100%}
.meo-options-form .meo-editor-actions{margin-top:10px;padding-top:14px}
.meo-options-form #meo-options-save{width:100%}
.meo-chat-actions .meo-header-settings{min-width:44px;min-height:44px;flex:none}
.meo-chat-actions .meo-header-settings .meo-icon{width:18px;height:18px}
@media(min-width:641px){.modal-dialog.meo-profile-dialog{width:480px;max-width:calc(100vw - 32px)}}
@media(max-width:700px){.meo-chat-header{padding-inline:8px}.meo-chat-heading{min-width:0;flex:1}.meo-chat-actions{gap:4px}.meo-chat-actions>.meo-icon-button{min-width:44px}.meo-chat-actions .meo-balance-button{padding-inline:8px;min-width:44px;min-height:44px}.meo-role-heading .meo-avatar{width:32px;height:32px}.meo-chat-name{max-width:100%;font-size:14px}.meo-role-heading{gap:7px;overflow:hidden}.meo-chat-heading .meo-header-back{min-width:44px}.meo-profile-categories .but{min-height:44px;padding:8px 12px}.meo-native-sheet .meo-profile-content{max-height:min(62dvh,calc(var(--meo-sheet-vh,100dvh) - 150px))}}
@media(prefers-reduced-motion:reduce){.meo-option-row input[role="switch"],.meo-option-row input[role="switch"]::after{transition:none}}
/* Older WebViews still use the same Zibll palette and chat layout. */
@supports not (color: color-mix(in srgb, black, white)) {
  .meo-chat-shell {
    --meo-line: var(--main-border-color, rgba(48, 52, 65, .1));
    --meo-soft: var(--focus-color-opacity05, var(--meo-page));
  }
  .meo-chat-shell .meo-chat-header,
  .meo-chat-shell .meo-feedback,
  .meo-chat-shell .meo-has-background .meo-conversation-start > span,
  .meo-chat-shell .meo-has-background .meo-message-copy { background: var(--meo-bg); }
  .meo-chat-shell .meo-balance-button { border: 1px solid var(--focus-color-opacity1, var(--meo-line)); }
  .meo-chat-shell .meo-message-text { border: 1px solid var(--meo-line); }
  .meo-chat-shell .meo-message-voice { border: 1px solid var(--meo-line); }
  .meo-chat-shell .meo-message--user :is(.meo-message-text, .meo-message-voice) {
    --meo-chat-tint: var(--focus-color-opacity1, rgba(120, 103, 223, .1));
    background: linear-gradient(var(--meo-chat-tint), var(--meo-chat-tint)) var(--meo-bg);
    border: 1px solid var(--meo-chat-tint);
  }
  .meo-option-row input[role="switch"] { background: var(--muted-4-color, #a7a9ad); }
}
@supports not (height: 100dvh) {
  .meo-chat-shell { height: var(--meo-vh, 100vh); max-height: 100vh; }
  .meo-chat-shell .meo-composer-panel {
    height: clamp(180px, 32vh, 300px);
    max-height: max(90px, calc(var(--meo-vh, 100vh) - 260px));
  }
}
.meo-chat-body:has(.modal.in .meo-profile-dialog) .meo-chat-shell,
.meo-chat-body:has(.modal.in .meo-options-dialog) .meo-chat-shell { filter: blur(3px); }

/* Quick settings reuse Zibll's modal lifecycle, with one full-height right drawer. */
.meo-chat-header .meo-header-settings { color: var(--meo-text); width: 44px; height: 44px; }
.meo-chat-actions .meo-header-settings .meo-icon { width: 27px; height: 27px; stroke-width: 1.8; }
.meo-chat-body .modal.meo-drawer-modal { top: var(--meo-sheet-top, 0); height: var(--meo-sheet-vh, 100dvh); bottom: auto; padding: 0 !important; justify-content: flex-end; align-items: stretch; overflow: hidden; }
.meo-chat-body .meo-drawer-modal .modal-dialog.meo-side-dialog { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(280px, 74vw, 420px); max-width: calc(100vw - 48px); height: 100%; margin: 0; transform: translateX(100%); transition: transform 180ms cubic-bezier(0, 0, .2, 1); }
.meo-chat-body .meo-drawer-modal.in .modal-dialog.meo-side-dialog { transform: translateX(0); }
.meo-chat-body .meo-side-dialog .modal-content { height: 100% !important; max-height: none !important; border: 0; border-radius: 0; overflow: hidden !important; background: var(--body-bg-color, #f5f6f8); box-shadow: -10px 0 45px rgba(0,0,0,.08); }
.meo-chat-body .meo-side-dialog .modal-body { height: 100%; padding: 0; }
.meo-side-dialog .meo-native-sheet { height: 100%; display: flex; flex-direction: column; min-height: 0; background: var(--meo-page); }
.meo-side-dialog .meo-dialog-header { flex: none; min-height: 76px; padding: max(16px, env(safe-area-inset-top)) 16px 16px; border: 0; gap: 8px; }
.meo-side-dialog .meo-dialog-header h2 { flex: 1; font-size: 17px; white-space: nowrap; }
.meo-side-dialog .meo-dialog-header .meo-icon-button { width: 36px; min-width: 36px; height: 44px; margin: 0; padding: 8px; }
.meo-side-dialog .meo-dialog-content { flex: 1; min-height: 0; max-height: none; padding: 0 16px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.meo-side-dialog .meo-quick-header { min-height: 86px; gap: 10px; }
.meo-quick-wallet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 55%; padding: 4px 5px 4px 7px; border: 0; border-radius: 24px; background: var(--meo-bg); color: var(--meo-text); }
.meo-quick-wallet > [data-balance] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.meo-quick-wallet > .meo-icon { width: 23px; height: 23px; }
.meo-quick-topup { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 50%; background: #ffbb24; color: #fff; }
.meo-quick-topup .meo-icon { width: 17px; height: 17px; stroke-width: 2.4; }
.meo-quick-card { background: var(--meo-bg); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.meo-quick-profile { padding: 16px 14px 10px; }
.meo-quick-identity { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 0 16px; border: 0; background: transparent; color: var(--meo-text); text-align: left; }
.meo-quick-identity .meo-avatar { width: 49px; height: 49px; object-position: center top; }
.meo-quick-identity > span { min-width: 0; flex: 1; }
.meo-quick-identity strong { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.meo-quick-identity small { display: block; margin-top: 5px; font-size: 10px; color: var(--meo-muted); }
.meo-quick-identity > .meo-icon { width: 15px; height: 15px; color: var(--meo-muted); }
.meo-quick-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 12px; border-top: 1px solid var(--meo-line); }
.meo-quick-shortcuts :is(button,a) { display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 70px; padding: 8px 0; border: 0; background: transparent; color: var(--meo-muted); font-size: 12px; text-decoration:none; }
.meo-quick-shortcuts .meo-icon { width: 25px; height: 25px; color: var(--meo-accent); stroke-width: 1.8; }
.meo-quick-row { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 15px 14px; border: 0; background: transparent; color: var(--meo-text); text-align: left; }
.meo-quick-row + .meo-quick-row { border-top: 1px solid var(--meo-line); }
.meo-quick-row > span:first-child { flex: none; font-size: 14px; }
.meo-quick-value { min-width: 0; margin-left: auto; color: var(--meo-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.meo-quick-row > .meo-icon { width: 17px; height: 17px; margin-left: auto; color: var(--meo-muted); }
.meo-quick-row > .meo-quick-value + .meo-icon { margin-left: 0; }
.meo-quick-close { width: 100%; margin-top: 0; font-size: 12px; font-weight: 400; color: var(--meo-muted); }
@media (hover: hover) {
  .meo-quick-row:hover, .meo-quick-shortcuts :is(button,a):hover { background: var(--meo-soft); }
}
:is(.meo-quick-row,.meo-quick-shortcuts a,.meo-quick-identity,.meo-quick-wallet) { touch-action: manipulation; }
:is(.meo-quick-row,.meo-quick-shortcuts a,.meo-quick-identity):active,
[data-mivo-setting-pending], .meo-quick-row[aria-busy="true"] { background: var(--meo-soft); }
.meo-drawer-modal[data-mivo-settings-pending]::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: max(0px, env(safe-area-inset-top)) 0 auto;
  height: 3px;
  width: 38%;
  background: var(--meo-accent, var(--focus-color, currentColor));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .meo-drawer-modal[data-mivo-settings-pending]::after {
    animation: mivo-route-progress 1.1s .1s ease-in-out infinite alternate;
  }
}
.modal.meo-proactive-modal.flex.fade { padding:0!important; align-items:center; }
.modal.meo-proactive-modal .meo-proactive-native.modal-dialog { width:min(500px,calc(100% - 40px)); max-width:500px; margin:auto!important; }
.modal.meo-proactive-modal .modal-content { height:auto!important; max-height:calc(var(--meo-sheet-vh,100dvh) - 24px); border-radius:18px; overflow:hidden; }
.meo-proactive-native .modal-body { padding:0; }
.meo-proactive-sheet { display:flex; flex-direction:column; max-height:calc(var(--meo-sheet-vh,100dvh) - 24px); background:var(--meo-bg); color:var(--meo-text); }
.meo-proactive-header { position:relative; display:flex; align-items:center; justify-content:center; min-height:64px; padding:16px 56px; flex:none; }
.meo-proactive-header h2 { margin:0; font-size:17px; font-weight:600; }
.meo-proactive-header .meo-icon-button { position:absolute; right:12px; top:10px; border:0; background:transparent; width:44px; height:44px; }
.meo-proactive-body { padding:0 20px max(16px,env(safe-area-inset-bottom)); min-height:0; overflow:auto; overscroll-behavior:contain; }
.meo-proactive-toggle { padding:4px 0 14px; border-bottom:1px solid var(--meo-line); font-size:15px; }
.meo-proactive-frequency { margin:0; padding:0 0 18px; border:0; min-width:0; }
.meo-proactive-frequency legend { margin:0 0 12px; padding:18px 0 0; border:0; font-size:14px; color:var(--meo-text); }
.meo-proactive-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.meo-proactive-choice { position:relative; display:block; margin:0; cursor:pointer; min-width:0; font-weight:400; }
.meo-proactive-choice>input[type="radio"] { position:absolute; width:1px; height:1px; min-width:0; margin:0; opacity:0; }
.meo-proactive-choice>span { display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 3px; border:1px solid var(--meo-line); border-radius:12px; background:var(--meo-soft); text-align:center; }
.meo-proactive-choice strong { font-size:14px; font-weight:500; }
.meo-proactive-choice span>span { font-size:12px; }
.meo-proactive-choice small { color:var(--meo-muted); font-size:11px; }
.meo-proactive-choice input:checked+span { border-color:var(--meo-accent); color:var(--meo-accent); background:color-mix(in srgb,var(--meo-accent) 8%,var(--meo-bg)); }
.meo-proactive-choice input:focus-visible+span { outline:2px solid var(--meo-accent); outline-offset:3px; }
.meo-proactive-choice input:disabled+span { opacity:.5; cursor:default; }
.meo-proactive-hint { margin:10px 0 0; font-size:11px; color:var(--meo-muted); }
.meo-proactive-quiet { padding:14px 0; border-top:1px solid var(--meo-line); font-size:14px; }
.meo-proactive-note { margin:4px 0 0; font-size:11px; color:var(--meo-muted); text-align:center; }
.meo-proactive-status { margin:10px 0 0; color:var(--meo-accent); font-size:12px; }
.meo-proactive-status:empty { display:none; }
@media(max-width:768px) {
  .modal.meo-proactive-modal.flex.fade { align-items:flex-end; }
  .modal.meo-proactive-modal .meo-proactive-native.modal-dialog { width:100%; max-width:none; margin:0!important; }
  .modal.meo-proactive-modal .modal-content { border-radius:20px 20px 0 0; }
  .meo-proactive-body { padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
}
.meo-side-dialog .meo-options-form, .meo-side-dialog .meo-preferences-form, .meo-side-dialog .meo-profile-content { font-size: 13px; }
.meo-side-dialog .meo-option-group { padding: 7px 14px; }
.meo-side-dialog .meo-option-model, .meo-side-dialog .meo-option-group { background: var(--meo-bg); border: 0; border-radius: 14px; }
.meo-side-dialog .meo-option-model { padding: 14px; }
.meo-side-dialog .meo-option-model select { width: 100%; max-width: 100%; }
.meo-side-dialog .meo-option-row { gap: 12px; }
.meo-side-dialog .meo-preferences-input { height: 180px; min-height: 120px; max-height: 40dvh; }
.meo-side-dialog .meo-editor-actions { background: var(--meo-page); }
.meo-side-dialog .meo-preferences-meta { flex-wrap: wrap; gap: 4px; }
.meo-side-dialog .meo-preferences-actions { flex-wrap: wrap; }
.meo-side-dialog .meo-session-list { overflow: visible; }
.meo-side-dialog .meo-profile-content { max-height: none; }
@media (min-width: 641px) {
  .meo-side-dialog .meo-dialog-header { padding-inline: 22px; }
  .meo-side-dialog .meo-dialog-content { padding-inline: 22px; }
  .meo-quick-profile { padding: 20px 18px 12px; }
  .meo-quick-row { min-height: 64px; padding-inline: 18px; }
  .meo-quick-row > span:first-child { font-size: 15px; }
  .meo-quick-card { border-radius: 20px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .meo-chat-body .meo-drawer-modal .modal-dialog.meo-side-dialog { transition: none; } }

/* The chat and its preview share the theme's shade over the selected image. */
.meo-chat-main.meo-has-background::before,
.meo-background-preview.meo-has-background {
  background-image: linear-gradient(var(--meo-background-shade), var(--meo-background-shade)), var(--meo-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.meo-has-background .meo-conversation-start > span, .meo-has-background .meo-message-copy { display: inline-block; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--meo-bg) 90%, transparent); }
.meo-background-form { display: grid; gap: 14px; margin-top: 16px; }
.meo-background-help { font-size: 12px; line-height: 1.8; color: var(--meo-muted) !important; }
.meo-background-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 270px; padding: 16px; border: 1px solid var(--meo-line); border-radius: 16px; background-color: var(--meo-soft); overflow: hidden; }
.meo-background-preview > span:first-child { align-self: center; margin-bottom: 25px; padding: 3px 10px; border-radius: 20px; font-size: 10px; color: var(--meo-muted); background: var(--meo-bg); }
.meo-background-bubble { padding: 8px 12px; font-size: 12px; border-radius: 3px 12px 12px; color: var(--meo-text); background: var(--meo-bg); box-shadow: 0 1px 4px #0001; }
.meo-background-bubble--mine { align-self: flex-end; border-radius: 12px 3px 12px 12px; }
.meo-background-name { font-size: 12px; overflow-wrap: anywhere; color: var(--meo-muted) !important; }
.meo-background-presets { min-width: 0; container: meo-background-presets / inline-size; }
.meo-background-preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.meo-background-preset { position: relative; display: grid; min-width: 0; gap: 5px; align-content: start; padding: 4px; border: 1px solid var(--meo-line); border-radius: var(--mini-radius, 8px); background: var(--meo-bg); color: var(--meo-text); text-align: center; }
.meo-background-preset img { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; background: var(--meo-page); object-fit: cover; }
.meo-background-preset span { display: block; padding-bottom: 1px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.meo-background-preset[aria-pressed="true"], .meo-background-upload-actions [aria-pressed="true"] { border-color: var(--meo-accent); color: var(--meo-accent); }
.meo-background-preset[aria-pressed="true"]::after { content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border: 1px solid var(--meo-bg); border-radius: 50%; background: var(--meo-accent); }
.meo-background-preset[aria-pressed="true"]::before { content: ''; position: absolute; z-index: 1; top: 14px; right: 14px; width: 8px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.meo-background-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meo-background-upload-actions .meo-button { flex: 1 0 auto; min-height: 42px; padding: 8px 12px; font-size: 13px; }
@container meo-background-presets (max-width: 299px) {
  .meo-background-preset-grid { gap: 6px; }
  .meo-background-preset { padding: 3px; }
  .meo-background-preset img { aspect-ratio: 1; }
}
@container meo-background-presets (max-width: 225px) {
  .meo-background-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meo-background-preset img { aspect-ratio: 16 / 9; }
}
.meo-background-actions { display: grid; gap: 6px; }
.meo-background-status { width: 100%; font-size: 12px; margin: 0; }
.meo-background-status .meo-button { margin-top: 8px; }
@media (max-height: 780px) { .meo-background-preview { min-height: 210px; } }
@media (max-height: 580px) { .meo-background-preview { min-height: 175px; } .meo-background-preview > span:first-child { margin-bottom: 8px; } }

/* The remark form stays above quick settings while the user edits. */
.modal.meo-remark-modal.flex.fade {
  top: var(--meo-sheet-top, 0px);
  bottom: auto;
  height: var(--meo-sheet-vh, 100vh);
  align-items: center;
  padding: 0 !important;
}
.modal.meo-remark-modal .meo-remark-native.modal-dialog {
  width: min(460px, calc(100% - 40px));
  max-width: none;
  margin: auto !important;
}
.meo-remark-native .modal-content { height: auto !important; border-radius: 18px; overflow: hidden; }
.meo-remark-native .modal-body { padding: 0; }
.meo-remark-native .meo-settings-sheet-host {
  display: flex;
  flex-direction: column;
  max-height: var(--meo-sheet-vh, 100vh);
  background: var(--meo-bg);
  color: var(--meo-text);
}
.meo-remark-native .meo-dialog-header { flex: none; min-height: 56px; padding: 8px 16px 8px 20px; }
.meo-remark-native .meo-dialog-header [data-meo-action="settings"] { display: none; }
.meo-remark-native .meo-dialog-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.meo-remark-native .meo-identity-form { display: flex; flex: 1; flex-direction: column; }
.meo-remark-native .meo-personal-field { padding: 0; border: 0; }
.meo-remark-native label[for="meo-role-remark"] { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.meo-remark-native #meo-role-remark { min-height: 46px; font-size: 16px; }
.meo-remark-native #meo-identity-save { width: 100%; min-height: 44px; margin-top: auto; }
@media (max-width: 768px) {
  .modal.meo-remark-modal.flex.fade {
    align-items: flex-end;
    transition-property: opacity, background-color;
  }
  .modal.meo-remark-modal .meo-remark-native.modal-dialog { width: 100%; margin: 0 !important; }
  .meo-remark-native .modal-content { border-radius: 20px 20px 0 0; }
  .meo-remark-modal .touch-close { top: 0; height: 14px; touch-action: none; }
  .meo-remark-modal .touch-close::before { margin: 6px auto; }
  .meo-remark-native .meo-dialog-header { padding-top: 16px; touch-action: none; }
  .meo-remark-native .meo-settings-sheet-host { height: max(220px, calc(var(--meo-sheet-vh, 100vh) / 2)); }
  .modal.meo-remark-modal[data-remark-keyboard].flex.fade { height: var(--meo-remark-height); }
  .modal.meo-remark-modal[data-remark-keyboard] .meo-remark-native.modal-dialog {
    position: absolute;
    top: var(--meo-remark-top);
    left: 0;
  }
  .meo-remark-modal[data-remark-keyboard] .modal-content { max-height: none; }
  .meo-remark-modal[data-remark-keyboard] .meo-settings-sheet-host {
    height: calc(var(--meo-remark-height) - var(--meo-remark-top));
    max-height: none;
  }
  .meo-remark-modal[data-remark-keyboard] .meo-dialog-content {
    flex: 1;
    margin-bottom: var(--meo-remark-covered);
    padding-bottom: 12px;
  }
  .meo-remark-modal[data-remark-keyboard] #meo-identity-save { flex-shrink: 0; }
}

/* Account-owned role editor and memory cards share the site's light/dark tokens. */
.meo-quick-row[href]{text-decoration:none;color:var(--meo-text)}
.meo-avatar-value .meo-avatar{width:28px;height:28px;margin:0}
.meo-personal-fields,.meo-identity-form{display:grid;gap:16px}
.meo-personal-field{display:grid;gap:9px;padding:16px;border:1px solid var(--meo-line);border-radius:16px;background:var(--meo-bg);min-width:0}
.meo-personal-field label{margin:0;font-size:13px;font-weight:600;color:var(--meo-text)}
.meo-personal-field .form-control{width:100%;min-width:0;max-width:100%;padding:12px;border:1px solid var(--meo-line);border-radius:10px;background:var(--meo-page);color:var(--meo-text);font:inherit;line-height:1.7;box-shadow:none}
.meo-personal-field textarea{min-height:110px;resize:vertical}
.meo-personal-field small{font-size:11px;color:var(--meo-muted)}
.meo-personal-field [data-count]{text-align:right;font-variant-numeric:tabular-nums}
.meo-personal-field [aria-invalid="true"]{border-color:#e76079}
.meo-identity-card{display:flex;align-items:center;flex-direction:column;gap:12px;border-radius:18px;padding:24px 16px;background:var(--meo-bg);border:1px solid var(--meo-line)}
.meo-identity-card .meo-profile-avatar{width:88px;height:88px;object-fit:cover;border-radius:50%;margin:0}
.meo-identity-card small{text-align:center;color:var(--meo-muted);font-size:11px;line-height:1.6}
.meo-memory-setting{padding:10px 16px 14px;border:1px solid var(--meo-line);background:var(--meo-bg);border-radius:16px}
.meo-memory-setting .meo-option-row{gap:12px;min-height:54px;align-items:center}
.meo-memory-setting .meo-option-row>span{font-size:13px;font-weight:600}
.meo-memory-setting .meo-option-row small{font-size:11px;line-height:1.65;margin-top:5px}
.meo-memory-setting>p{margin:8px 0 0;border-top:1px solid var(--meo-line);padding-top:12px;font-size:11px;color:var(--meo-muted);line-height:1.6}
.meo-memory-editor{border:1px solid var(--meo-line);border-radius:16px;background:var(--meo-bg);overflow:hidden}
.meo-memory-editor-heading{padding:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--meo-line)}
.meo-memory-editor-heading label{margin:0;font-size:13px;font-weight:600}
.meo-memory-editor-heading>span{font-size:10px;color:var(--meo-muted);white-space:nowrap}
.meo-side-dialog .meo-memory-editor #meo-memory-input{display:block;width:calc(100% - 28px);margin:14px;padding:12px;height:220px;min-height:180px;max-height:45dvh;border:1px solid var(--meo-line);border-radius:10px;background:var(--meo-page);color:var(--meo-text);line-height:1.8;box-shadow:none;resize:vertical}
.meo-memory-editor .meo-preferences-meta{margin:0;padding:0 15px;font-size:11px;line-height:1.7}
.meo-memory-editor .meo-preferences-help{margin:0;padding:12px 15px 15px;font-size:11px;line-height:1.65}
#meo-memory-form{gap:16px}
#meo-memory-form .meo-memory-clear{justify-content:center;width:100%;color:var(--meo-muted)}

/* TA's voice follows the active Zibll palette and native action styles. */
.meo-voice-page { height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
.meo-voice-header { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:12px; padding:max(12px,env(safe-area-inset-top)) 20px 12px; background:var(--meo-bg); border-bottom:1px solid var(--main-border-color); flex:none; }
.meo-voice-header h1 { font-size:18px; font-weight:600; text-align:center; }
.meo-voice-header .meo-icon-button { border:0; background:transparent; }
.meo-voice-header-spacer { width:44px; }
.meo-voice-scroll { flex:1; overflow:auto; min-height:0; overscroll-behavior:contain; }
.meo-voice-container { width:100%; max-width:760px; margin:auto; padding:28px 20px 32px; }
.meo-voice-workspace { background:var(--meo-bg); border-radius:var(--main-radius,12px); box-shadow:0 2px 10px var(--main-shadow); }
.meo-voice-tabs { display:flex; gap:30px; padding:0 24px; border-bottom:1px solid var(--main-border-color); }
.meo-voice-tabs button { position:relative; min-height:62px; padding:0 2px; border:0; background:transparent; color:var(--meo-muted); font-size:15px; }
.meo-voice-tabs [aria-selected="true"] { color:var(--meo-accent); font-weight:600; }
.meo-voice-tabs [aria-selected="true"]::after { content:""; position:absolute; height:3px; width:28px; bottom:0; left:50%; transform:translateX(-50%); border-radius:3px 3px 0 0; background:var(--meo-accent); }
.meo-voice-panel { padding:24px; }
.meo-voice-list { display:grid; gap:12px; }
.meo-voice-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:4px 16px; border:1px solid var(--meo-line); border-radius:var(--main-radius,12px); background:var(--meo-bg); }
.meo-voice-row:has(input:checked) { border-color:color-mix(in srgb,var(--meo-accent) 48%,transparent); background:color-mix(in srgb,var(--meo-accent) 4%,var(--meo-bg)); }
.meo-voice-choice { display:flex; align-items:center; gap:12px; min-height:62px; margin:0; flex:1; min-width:140px; cursor:pointer; }
.meo-voice-choice input { width:18px; height:18px; margin:0; accent-color:var(--meo-accent); flex:none; }
.meo-voice-row-text { min-width:0; }
.meo-voice-row-text strong,.meo-voice-row-text small { display:block; }
.meo-voice-row-text strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.meo-voice-row-text small { font-size:12px; color:var(--meo-muted); margin-top:3px; }
.meo-voice-row-text small:empty { display:none; }
.meo-voice-row button { font-size:12px; padding:8px; min-width:44px; color:var(--meo-accent); }
.meo-voice-row-preview { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.meo-voice-row-wave { display:none; height:17px; align-items:center; gap:2px; }
.meo-voice-row-preview.is-playing .meo-voice-row-wave { display:inline-flex; }
.meo-voice-row-wave i { width:2px; height:100%; background:currentColor; border-radius:2px; transform:scaleY(.45); animation:meo-voice-row-wave .72s ease-in-out infinite alternate; }
.meo-voice-row-wave i:nth-child(2),.meo-voice-row-wave i:nth-child(4) { animation-delay:-.48s; }
.meo-voice-row-wave i:nth-child(3) { animation-delay:-.26s; }
.meo-voice-row-wave i:nth-child(5) { animation-delay:-.61s; }
@keyframes meo-voice-row-wave { from { transform:scaleY(.3); } to { transform:scaleY(1); } }
@media(prefers-reduced-motion:reduce) {
  .meo-voice-row-wave i { animation:none; }
  .meo-voice-row-wave i:nth-child(3) { transform:scaleY(.9); }
}
.meo-voice-clone-offer { position:fixed; inset:0; width:min(320px,calc(100% - 48px)); max-width:none; max-height:calc(100% - 24px); margin:auto; padding:0; border:0; background:transparent; text-align:center; overflow:auto; }
.meo-voice-clone-offer::backdrop { background:#0007; }
.meo-voice-clone-offer-card { position:relative; isolation:isolate; margin-top:48px; padding:78px 20px 22px; border-radius:21px; background:linear-gradient(180deg,color-mix(in srgb,var(--meo-accent) 11%,var(--meo-bg)),var(--meo-bg) 56%); }
.meo-voice-clone-offer-card img { position:absolute; top:-48px; left:50%; width:min(196px,78%); height:auto; transform:translateX(-50%); pointer-events:none; }
.meo-voice-clone-offer-card h2 { margin-bottom:18px; font-size:24px; line-height:1.35; font-weight:700; }
.meo-voice-clone-offer-card .but { display:block; width:100%; min-height:46px; border:0; border-radius:999px; font-weight:600; }
#meo-voice-clone-offer-close { margin:16px auto 2px; border-radius:50%; border-color:#fffb; background:transparent; color:#fff; }
#meo-voice-clone-offer-close .meo-icon { width:22px; height:22px; }
.meo-voice-row-error { width:100%; font-size:12px; color:#d45468!important; line-height:1.7; padding:4px 0 8px; }
.meo-voice-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 10px; }
.meo-voice-section-heading h2 { font-size:14px; font-weight:600; }
.meo-voice-add { display:inline-flex; align-items:center; gap:4px; padding:8px 0 8px 8px; min-height:44px; border:0; background:transparent; color:var(--meo-accent); font-size:12px!important; }
.meo-voice-add .meo-icon { width:16px; height:16px; }
.meo-voice-page .meo-voice-empty { padding:25px 16px; text-align:center; border-radius:var(--main-radius,12px); background:var(--muted-bg-2-color); color:var(--meo-muted); font-size:13px; }
/* Voice creation stays inside the theme's native modal. */
.meo-voice-create { display:grid; gap:20px; }
.meo-voice-field { min-width:0; }
.meo-voice-field>label { display:block; margin:0 0 9px; font-size:14px; font-weight:500; }
.meo-voice-create .form-control,.meo-voice-result .form-control { display:block; width:100%; min-width:0; height:46px; border:1px solid transparent; border-radius:var(--mini-radius,8px); background:var(--muted-bg-2-color); color:var(--meo-text); padding:11px 14px; line-height:1.7; box-shadow:none; font-size:14px; }
.meo-voice-create .form-control:focus,.meo-voice-result .form-control:focus { border-color:var(--meo-accent); outline:0; }
.meo-voice-create .form-control::placeholder,.meo-voice-result .form-control::placeholder { color:var(--muted-2-color); }
.meo-voice-prompt-box { border:1px solid var(--meo-line); border-radius:var(--main-radius,12px); overflow:hidden; }
.meo-voice-description-wrap { position:relative; }
.meo-voice-create textarea.form-control { resize:vertical; height:125px; min-height:100px; padding:12px 14px 28px; background:transparent; border-radius:0; }
#meo-voice-description-count { position:absolute; right:14px; bottom:8px; font-size:11px; color:var(--meo-muted); pointer-events:none; }
.meo-voice-prompts { display:flex; gap:8px; flex-wrap:wrap; padding:10px 12px; border-top:1px solid var(--meo-line); }
.meo-voice-prompts button { border:0; background:var(--muted-bg-2-color); color:var(--meo-muted); border-radius:6px; padding:5px 11px; min-height:32px; font-size:12px; }
.meo-voice-prompts button:hover { color:var(--meo-accent); }
.meo-voice-action.but { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 22px; border-radius:var(--mini-radius,8px); font-size:14px; font-weight:500; }
.meo-voice-create .meo-voice-consent { display:flex; align-items:flex-start; gap:8px; font-size:12px; font-weight:400; color:var(--meo-muted); margin:0; line-height:1.7; }
.meo-voice-consent input { margin:4px 0 0; accent-color:var(--meo-accent); flex:none; }
.meo-voice-text-card { padding:9px 24px; border-radius:var(--main-radius,12px); background:var(--meo-bg); margin-bottom:20px; box-shadow:0 2px 10px var(--main-shadow); }
.meo-voice-text-card .meo-option-row { min-height:58px; gap:16px; }
.meo-voice-text-card .meo-option-row>span { font-size:14px; font-weight:500; }
.meo-voice-speed { border-top:1px solid var(--main-border-color); }
.meo-voice-speed-heading { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:58px; border:0; background:transparent; padding:0; color:var(--meo-text); font-size:14px; font-weight:500; }
.meo-voice-speed-heading label { margin:0; font-size:14px; font-weight:500; }
.meo-voice-speed-heading output { padding:0; color:var(--meo-accent); font-size:14px; font-variant-numeric:tabular-nums; }
#meo-voice-speed { --meo-speed-progress:33.333%; display:block; width:100%; height:30px; margin:0; padding:0; appearance:none; -webkit-appearance:none; background:transparent; border:0; box-shadow:none; cursor:pointer; }
#meo-voice-speed::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(to right,var(--meo-accent) var(--meo-speed-progress),var(--meo-line) var(--meo-speed-progress)); }
#meo-voice-speed::-moz-range-track { height:4px; border-radius:4px; background:var(--meo-line); }
#meo-voice-speed::-moz-range-progress { height:4px; border-radius:4px; background:var(--meo-accent); }
#meo-voice-speed::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:18px; height:18px; margin-top:-7px; border:2px solid var(--meo-accent); border-radius:50%; background:var(--meo-bg); box-shadow:0 1px 3px var(--main-shadow); }
#meo-voice-speed::-moz-range-thumb { width:14px; height:14px; border:2px solid var(--meo-accent); border-radius:50%; background:var(--meo-bg); }
#meo-voice-speed:disabled { opacity:.4; cursor:not-allowed; }
.meo-voice-speed-scale { display:flex; justify-content:space-between; color:var(--meo-muted); font-size:11px; }
.meo-voice-footer { flex:none; background:var(--meo-accent); padding:0; }
.meo-voice-footer-inner { display:flex; width:100%; }
.meo-voice-footer .meo-voice-action { width:100%; min-height:56px; border:0; border-radius:0; padding:16px max(20px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
.meo-voice-page #meo-voice-status { margin-top:18px; }
@media(max-width:640px) {
  .meo-voice-header { padding-left:12px; padding-right:12px; }
  .meo-voice-container { padding:20px 16px 28px; }
  .meo-voice-tabs { padding:0 20px; gap:28px; }
  .meo-voice-tabs button { min-height:58px; }
  .meo-voice-panel { padding:20px; }
  .meo-voice-text-card { padding:8px 20px; margin-bottom:16px; }
}

.meo-memory-description{display:block;color:var(--meo-muted);font-size:11px;line-height:1.7;margin:0 0 10px}

.meo-voice-frequency-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; border-top:1px solid var(--main-border-color); }
.meo-voice-frequency-row>span { margin:0; font-size:14px; font-weight:500; }
#meo-voice-frequency { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-height:44px; border:0; color:var(--meo-muted); background:transparent; padding:6px 0 6px 8px; font-size:14px; }
.meo-voice-speed-summary { display:flex; align-items:center; gap:9px; color:var(--meo-muted); }
.meo-voice-speed-summary .meo-icon { width:16px; height:16px; transition:transform 180ms; }
[aria-expanded="true"] .meo-voice-speed-summary .meo-icon { transform:rotate(90deg); }
#meo-voice-speed-panel { padding:0 0 15px; animation:meo-voice-reveal 160ms ease-out; }
@keyframes meo-voice-reveal { from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)} }
.meo-voice-create-tile.but { width:100%; min-height:48px; display:flex; justify-content:center; align-items:center; gap:8px; padding:12px 20px; border:0; border-radius:10px; font-size:14px; font-weight:500; }
.meo-voice-create-tile .meo-icon { width:20px; height:20px; }
#meo-voice-owned:not(:empty),#meo-voice-drafts:not(:empty) { margin-top:16px; }
.meo-voice-draft { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px dashed var(--meo-line); border-radius:var(--mini-radius,8px); background:transparent; color:var(--meo-text); padding:15px; text-align:left; }
.meo-voice-draft span { overflow-wrap:anywhere; }
.meo-voice-draft small { color:var(--meo-muted); flex:none; font-size:11px; }
.modal.meo-voice-modal.flex.fade { padding:0!important; align-items:center; }
.modal.meo-voice-modal .meo-voice-native.modal-dialog { width:min(560px,calc(100% - 40px)); max-width:560px; margin:auto; }
.modal.meo-voice-modal .meo-voice-native .modal-content { height:auto!important; max-height:calc(var(--meo-voice-vh,100dvh) - 40px); overflow:hidden!important; border-radius:var(--main-radius,12px); }
.meo-voice-native .modal-body { padding:0; }
.meo-voice-sheet { position:relative; display:flex; flex-direction:column; min-height:360px; max-height:calc(var(--meo-voice-vh,100dvh) - 40px); background:var(--meo-bg); }
.meo-voice-sheet-header { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; align-items:center; flex:none; gap:8px; padding:16px 16px 12px; }
.meo-voice-sheet-header h2 { font-size:17px; text-align:center; font-weight:600; }
.meo-voice-sheet-header .meo-icon-button { border:0; background:transparent; padding:8px; min-width:40px; min-height:40px; }
.meo-voice-sheet-header .meo-icon { width:20px; height:20px; }
.meo-voice-sheet-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:8px 24px 20px; }
.meo-voice-sheet-footer { flex:none; padding:14px 24px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid var(--main-border-color); }
.meo-voice-sheet-footer>.but { width:100%; min-height:46px; border-radius:10px; }
#meo-voice-result-actions { display:flex; flex-direction:column; align-items:center; gap:8px; }
#meo-voice-result-actions .but { width:100%; min-height:46px; border-radius:10px; }
.meo-voice-create-options { display:grid; gap:14px; padding:10px 0 20px; }
.meo-voice-create-options button { display:flex; align-items:center; gap:14px; border:1px solid var(--meo-line); border-radius:var(--main-radius,12px); background:transparent; color:var(--meo-text); min-height:78px; padding:18px; text-align:left; }
.meo-voice-create-options button>.meo-icon:first-child { width:25px; height:25px; color:var(--meo-accent); }
.meo-voice-create-options button>span { flex:1; font-size:15px; font-weight:500; }
.meo-voice-create-options button>.meo-icon:last-child { width:16px; height:16px; color:var(--meo-muted); }
.meo-voice-source-tabs { display:flex; gap:28px; margin-bottom:18px; border-bottom:1px solid var(--meo-line); }
.meo-voice-source-tabs button { border:0; border-bottom:2px solid transparent; padding:10px 0; background:transparent; color:var(--meo-muted); font-size:14px; }
.meo-voice-source-tabs [aria-selected="true"] { border-bottom-color:var(--meo-accent); color:var(--meo-accent); }
.meo-voice-upload-area { width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; padding:20px 12px; min-height:130px; border:1px dashed var(--meo-line); border-radius:var(--main-radius,12px); background:var(--muted-bg-2-color); color:var(--meo-text); }
.meo-voice-upload-area .meo-icon { color:var(--meo-accent); width:26px; height:26px; }
.meo-voice-upload-area small,.meo-voice-upload-help { font-size:11px; color:var(--meo-muted); }
.meo-voice-upload-help { display:block; margin-top:8px; text-align:center; }
#meo-voice-record-pane { text-align:center; }
.meo-voice-sheet .meo-voice-read-label { color:var(--meo-muted); font-size:12px; text-align:left; }
.meo-voice-read-text { padding:12px 14px; margin:8px 0 16px; background:var(--muted-bg-2-color); border:0; border-radius:var(--mini-radius,8px); font-size:14px; line-height:1.85; text-align:left; }
#meo-voice-record-status { color:var(--meo-muted); font-size:12px; margin-top:10px; overflow-wrap:anywhere; }
#meo-voice-record-status:empty { display:none; }
.meo-voice-sheet audio { display:block; width:100%; margin-top:12px; height:42px; }
.meo-voice-result { padding:12px 0 32px; }
.meo-voice-result>.meo-voice-field { margin-bottom:24px; }
.meo-voice-result>p { color:var(--meo-muted); font-size:13px; margin-bottom:14px; }
.meo-voice-audition { display:flex; align-items:center; gap:12px; }
.meo-voice-audition img { width:48px; height:48px; border-radius:50%; object-fit:cover; flex:none; }
#meo-voice-result-play { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; flex:none; min-width:104px; max-width:144px; height:46px; padding:0 14px; color:var(--meo-accent); border:0; border-radius:0 12px 12px 12px; background:var(--meo-soft); }
#meo-voice-result-play::before { content:''; position:absolute; top:0; left:-6px; border-top:6px solid var(--meo-soft); border-left:6px solid transparent; }
#meo-voice-result-listen { padding:8px 0; border:0; background:transparent; color:var(--meo-muted); font-size:12px; flex:none; }
.meo-voice-wave { display:flex; align-items:center; gap:3px; height:24px; }
.meo-voice-wave i { width:3px; height:9px; border-radius:3px; background:currentColor; }
.meo-voice-wave i:nth-child(3n) { height:21px; }.meo-voice-wave i:nth-child(3n + 1) { height:14px; }
.is-playing .meo-voice-wave i { animation:meo-voice-wave 800ms ease-in-out infinite alternate; }.is-playing .meo-voice-wave i:nth-child(2n) { animation-delay:250ms; }
@keyframes meo-voice-wave { from{transform:scaleY(.5)}to{transform:scaleY(1)} }
.meo-voice-pending-copy,.meo-voice-confirm-copy { padding:20px 0; line-height:1.9; }
#meo-voice-sheet-status { margin-top:14px; }
.meo-voice-generating { position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; background:#0001; }
.meo-voice-generating>div { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; width:104px; height:104px; border-radius:14px; background:#202124ed; color:#fff; font-size:13px; box-shadow:0 4px 20px #0002; }
.meo-voice-spinner { width:27px; height:27px; border:2px solid #ffffff40; border-top-color:#fff; border-radius:50%; animation:meo-spin 850ms linear infinite; }
@keyframes meo-spin { to{transform:rotate(360deg)} }
@media(max-width:768px){
  .modal.meo-voice-modal.flex.fade { align-items:flex-end; }
  .modal.meo-voice-modal .meo-voice-native.modal-dialog { width:100%; max-width:none; margin:0!important; }
  .modal.meo-voice-modal .meo-voice-native .modal-content { border-radius:18px 18px 0 0; max-height:calc(var(--meo-voice-vh,100dvh) - 24px); }
  .meo-voice-sheet { min-height:min(50dvh,360px); max-height:calc(var(--meo-voice-vh,100dvh) - 24px); }
  .meo-voice-sheet-body { padding-left:20px; padding-right:20px; }
  .meo-voice-sheet-footer { padding-left:20px; padding-right:20px; }
}
@media(prefers-reduced-motion:reduce){#meo-voice-speed-panel,.is-playing .meo-voice-wave i { animation:none; }.meo-voice-speed-summary .meo-icon { transition:none; }}

.meo-voice-frequency-select { position:relative; flex:none; max-width:65%; }
#meo-voice-frequency .meo-icon { width:16px; height:16px; transition:transform 180ms; }
#meo-voice-frequency[aria-expanded="true"] .meo-icon { transform:rotate(180deg); }
.meo-voice-frequency-select .meo-voice-frequency-menu { position:absolute; right:0; left:auto; top:100%; width:190px; min-width:190px; padding:6px; margin-top:4px; border:1px solid var(--meo-line); overflow-y:auto; overscroll-behavior:contain; }
.meo-voice-frequency-select.dropup .meo-voice-frequency-menu { top:auto; bottom:100%; margin-top:0; margin-bottom:4px; }
.meo-voice-frequency-menu>li { display:flex; align-items:center; gap:10px; min-height:42px; padding:8px 10px; border-radius:6px; cursor:pointer; font-size:14px; }
.meo-voice-frequency-menu>li>span { flex:1; }
.meo-voice-frequency-menu>li>small { color:var(--meo-muted); font-size:12px; }
.meo-voice-frequency-menu>li>i { width:12px; height:8px; flex:none; border-bottom:2px solid transparent; border-left:2px solid transparent; transform:rotate(-45deg) translateY(-2px); }
.meo-voice-frequency-menu>li[aria-selected="true"] { background:var(--meo-soft); color:var(--meo-accent); }
.meo-voice-frequency-menu>li[aria-selected="true"]>i { border-color:var(--meo-accent); }
.meo-voice-frequency-menu>li:hover,.meo-voice-frequency-menu>li:focus-visible { background:var(--muted-bg-2-color); outline:none; }
#meo-voice-record-pane #meo-voice-name-field { text-align:left; margin-bottom:18px; }
#meo-voice-regenerate { display:block; min-height:36px; border:0; padding:5px 14px; background:transparent; color:var(--meo-muted); font-size:13px; }
#meo-voice-regenerate:hover { color:var(--meo-accent); }
@media(prefers-reduced-motion:reduce){#meo-voice-frequency .meo-icon { transition:none; }}

#meo-voice-demo-duration:empty { display:none; }

/* Reuse the theme notice lifecycle; keep voice-sheet feedback out of document flow. */
:is(#meo-voice-notice,#meo-settings-notice,#meo-chat-settings-notice) { position:fixed; top:50%; left:50%; right:auto; bottom:auto; width:max-content; max-width:min(320px,calc(100vw - 48px)); transform:translate(-50%,-50%); z-index:10000001; pointer-events:none; }
:is(#meo-voice-notice,#meo-settings-notice,#meo-chat-settings-notice) .notyf { float:none; min-width:0; width:auto; margin:0; padding:12px 18px; border-radius:10px; background:rgba(32,33,36,.94); color:#fff; font-size:13px; line-height:1.7; text-align:center; overflow-wrap:anywhere; transform:none; animation:none; box-shadow:0 4px 16px #0002; }
:is(#meo-voice-notice,#meo-settings-notice,#meo-chat-settings-notice) .notyf::before { display:none; }

/* Full-page editors reuse the same site surfaces as Role Voice. */
.meo-drawer-modal > .meo-settings-in-chat{position:absolute;inset:0;z-index:1;background:var(--meo-page,var(--body-bg-color,#fff));text-align:start}
.meo-settings-page{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.meo-settings-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:20px}
.meo-settings-container{width:100%;max-width:760px;margin:0 auto;padding:24px 20px 28px}
.meo-settings-form{display:grid;gap:16px;margin:0}
.meo-settings-card{display:grid;gap:12px;min-width:0;padding:18px 22px;border-radius:var(--main-radius,12px);background:var(--meo-bg)}
.meo-settings-card>label{margin:0;font-size:14px;font-weight:500}
.meo-settings-card .meo-option-row{min-height:44px}
.meo-settings-card .form-control{height:auto;min-height:44px;max-width:100%;border:1px solid var(--meo-line);border-radius:8px;padding:10px 12px;background:var(--meo-page);color:var(--meo-text);font:inherit;line-height:1.6;box-shadow:none}
.meo-settings-card select.form-control{padding-right:30px}
.meo-model-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.meo-model-heading h2{font-size:14px;font-weight:500}
.meo-model-heading>span,.meo-model-description,.meo-model-status{font-size:12px;color:var(--meo-muted)!important}
.meo-model-list{display:grid;gap:10px;min-width:0}
.meo-model-group{font-size:12px;font-weight:400;color:var(--meo-muted)!important;padding:6px 0 0}
.meo-model-choice{display:flex;align-items:center;gap:12px;min-width:0;width:100%;min-height:76px;padding:14px 16px;border:1px solid var(--meo-line);border-radius:10px;background:var(--meo-bg);color:var(--meo-text);text-align:left;transition:background .18s,border-color .18s}
.meo-model-choice[aria-checked=true]{border-color:var(--meo-accent);background:var(--meo-soft)}
.meo-model-copy{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}
.meo-model-name{font-size:15px;font-weight:500}
.meo-model-price{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.meo-model-check{display:block;flex:none;position:relative;width:20px;height:20px;border:1px solid var(--meo-line);border-radius:50%}
.meo-model-choice[aria-checked=true] .meo-model-check{border-color:var(--meo-accent);background:var(--meo-accent)}
.meo-model-choice[aria-checked=true] .meo-model-check::after{content:"";position:absolute;width:8px;height:5px;left:5px;top:5px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg)}
.meo-compose-note #meo-cost{color:var(--meo-muted);text-decoration:underline;text-decoration-color:var(--meo-line);text-underline-offset:3px}
.meo-compose-note #meo-cost:empty{display:none}
.meo-setting-context{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:10px;border-top:1px solid var(--meo-line)}
.meo-setting-context label{margin:0;color:var(--meo-muted);font-size:13px;font-weight:400}
.meo-setting-context select{width:136px;flex:none}
.meo-setting-memory-editor textarea{min-height:260px;resize:vertical}
.meo-settings-has-archive .meo-setting-memory-editor textarea{min-height:140px}
.meo-memory-archive-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.meo-memory-archive-heading h2{font-size:14px;font-weight:500}
.meo-memory-archive-heading>span,.meo-memory-archive-status,.meo-memory-archive-pagination>span{color:var(--meo-muted)!important;font-size:12px}
.meo-memory-archive-list{list-style:none;margin:0;padding:0;min-width:0}
.meo-memory-archive-list li{padding:14px 0;border-bottom:1px solid var(--meo-line);font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.meo-memory-archive-list li:first-child{padding-top:0}
.meo-memory-archive-list li:last-child{border-bottom:0;padding-bottom:0}
.meo-memory-archive-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}
.meo-memory-archive-pagination .but,.meo-memory-archive>button{min-height:40px;min-width:80px;border-radius:8px;font-size:13px}
.meo-setting-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--meo-muted);font-variant-numeric:tabular-nums}
.meo-settings-tools{display:flex;gap:12px}
.meo-settings-tools .but{flex:1;min-height:44px;border-radius:8px;font-size:13px}
.meo-settings-secondary.but{min-height:44px;border-radius:8px}
.meo-settings-page .meo-personal-field{border:0;border-radius:var(--main-radius,12px);padding:20px 22px}
.meo-settings-page .meo-personal-field label{font-size:14px;font-weight:500}
.meo-settings-page .meo-personal-field .form-control{font-size:15px}
.meo-settings-page #meo-settings-status{margin:16px 0 0;font-size:13px;line-height:1.7;color:var(--meo-muted)}
.meo-settings-page #meo-settings-status button{margin:8px 0 0;display:block}
.meo-settings-footer{flex:none;background:var(--meo-bg);padding:12px max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border-top:1px solid var(--meo-line)}
.meo-settings-footer .but{display:flex;align-items:center;justify-content:center;width:100%;max-width:720px;margin:auto;min-height:46px;border-radius:8px;font-size:14px}
.meo-settings-confirm{padding:4px}
.meo-settings-confirm-header{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.meo-settings-confirm-header h2{flex:1;margin:0;font-size:17px;font-weight:500}
.meo-settings-confirm-header .close{font-size:24px;min-width:36px;min-height:36px;color:var(--meo-text)}
.meo-settings-confirm>p{font-size:14px;line-height:1.8;color:var(--meo-muted);margin-bottom:24px}
.meo-settings-confirm-actions{display:flex;gap:12px}
.meo-settings-confirm-actions .but{flex:1;min-height:44px;border-radius:8px}
.meo-chat-body .modal-dialog.meo-settings-native{max-width:calc(100vw - 32px);margin-left:auto!important;margin-right:auto!important}
@media(max-width:640px){.meo-settings-container{padding:20px 16px 24px}.meo-settings-card,.meo-settings-page .meo-personal-field{padding:16px}.meo-settings-page .form-control{font-size:16px}.meo-chat-body .modal-dialog.meo-settings-native{width:100%;max-width:100%;margin:0!important}}

/* Character speech uses the chat bubble; transcripts appear only on request. */
.meo-chat-shell .meo-message--assistant-voice .meo-message-voice { position:relative; border-radius:3px 14px 14px 14px; background:var(--meo-bg); border-color:var(--meo-line); }
.meo-assistant-speech.is-unread::after { content:''; position:absolute; right:-3px; top:-3px; width:7px; height:7px; border-radius:50%; background:#f14d60; box-shadow:0 0 0 2px var(--meo-bg); }
.meo-assistant-speech .meo-message-voice-duration:empty { display:none; }
.meo-message-transcript { margin-top:8px; padding:10px 13px; border:1px solid var(--meo-line); border-radius:12px; background:var(--meo-bg); color:var(--meo-text); font-size:14px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; }
.meo-message-transcript[hidden] { display:none; }

/* Completed voice messages scale with their real media duration. */
.meo-chat-shell .meo-message-voice { width:var(--meo-voice-width,126px); }
.meo-chat-shell .meo-message-voice .meo-voice-wave { min-width:0; flex-shrink:1; gap:3px; }
.meo-chat-shell .meo-message-voice .meo-voice-wave i { flex:0 1 3px; min-width:1px; }
.meo-chat-shell .meo-message-voice-duration { flex:none; white-space:nowrap; }
.meo-chat-shell .meo-message[hidden] { display:none!important; }
.meo-chat-shell.meo-keyboard-open .meo-chat-composer { padding-bottom: 8px; }
@media (max-width:700px) {
  .meo-home-app .meo-chat-header { padding-top: calc(9px + env(safe-area-inset-top, 0px)); }
  .meo-home-app .meo-chat-shell:not(.meo-keyboard-open) .meo-chat-composer { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
.meo-chat-name.is-typing { max-width:none; display:flex; align-items:center; gap:4px; font-size:15px; }
.meo-heading-dots { display:inline-flex; gap:3px; align-self:center; }
.meo-heading-dots i { width:3px; height:3px; border-radius:50%; background:currentColor; animation:meoHeadingDot 1.2s ease-in-out infinite; }
.meo-heading-dots i:nth-child(2) { animation-delay:.15s; }
.meo-heading-dots i:nth-child(3) { animation-delay:.3s; }
@keyframes meoHeadingDot { 0%,80%,100% { opacity:.3; } 40% { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .meo-heading-dots i { animation:none; opacity:.7; } }
.meo-image-drafts { display:flex; gap:10px; padding:6px 12px 12px; overflow:auto; }
.meo-image-drafts[hidden] { display:none; }
.meo-image-draft { position:relative; display:block; flex:none; }
.meo-image-draft>img { width:64px; height:64px; border-radius:9px; object-fit:cover; }
.meo-image-remove { position:absolute; right:-6px; top:-5px; display:grid; place-items:center; width:22px; height:22px; padding:0; border:1px solid var(--meo-line); border-radius:50%; background:var(--meo-bg); color:var(--meo-text); line-height:1; font-size:18px; }
.meo-message-images { display:grid; gap:5px; width:220px; max-width:100%; margin-top:4px; justify-items:start; }
.meo-message--user .meo-message-images { margin-left:auto; justify-items:end; }
.meo-message-images.is-multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.meo-message-photo { display:block; max-width:100%; width:auto; height:auto; max-height:280px; border-radius:12px; object-fit:contain; background:var(--meo-soft); }
.meo-message-images.is-multiple .meo-message-photo { width:100%; height:110px; object-fit:cover; }

.meo-detail-gift .meo-gift-art { display: inline-block; width: 19px; height: 19px; margin-right: 3px; vertical-align: -5px; }
.meo-gift-modal .meo-gift-dialog { width: 380px; }
.meo-gift-form { padding: 20px; }
.meo-gift-form .meo-wallet-header { margin-bottom: 8px; }
.meo-gift-form .modal-title { min-width: 0; overflow-wrap: anywhere; }
.meo-gift-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.meo-gift-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meo-gift-option { display: grid; gap: 2px; justify-items: center; padding: 9px 2px; min-width: 0; color: var(--main-color); background: var(--main-bg-color); border: 1px solid var(--main-border-color); border-radius: var(--main-radius, 8px); }
.meo-gift-option:enabled:is(:hover, :active) { border-color: var(--theme-color); background: var(--theme-color-10); }
.meo-gift-option:focus-visible { outline: 2px solid var(--theme-color); outline-offset: -2px; }
.meo-gift-option:disabled { cursor: wait; }
.meo-gift-option small { color: var(--muted-2-color); }
.meo-gift-art { display: block; width: 47px; height: 47px; flex: none; background-repeat: no-repeat; background-size: 300% 200%; }
.meo-gift-art--heart { background-position: 0 0; }
.meo-gift-art--rose { background-position: 50% 0; }
.meo-gift-art--drumstick { background-position: 100% 0; }
.meo-gift-art--cupcake { background-position: 0 100%; }
.meo-gift-art--star { background-position: 50% 100%; }
.meo-gift-art--giftbox { background-position: 100% 100%; }
.meo-gift-status { margin: 10px 0 0; }
.meo-gift-status:empty { display: none; }
@media (max-width: 768px) {
  .meo-gift-modal.modal.bottom { padding-inline: 0 !important; }
}
@media (max-width: 640px) {
  .meo-gift-modal .meo-gift-dialog { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .meo-gift-modal.modal.fade .modal-dialog { transition: none; }
}

.meo-call-record { display:flex; align-items:center; gap:12px; max-width:100%; padding:10px 15px; border-radius:12px; color:var(--main-color); background:var(--main-bg-color,#fff); border:1px solid var(--muted-border-color,rgba(128,128,128,.2)); }
.meo-call-record > i { color:var(--theme-color); font-size:20px; }
.meo-call-record strong,.meo-call-record span { display:block; }
.meo-call-record strong { font-size:14px; }
.meo-call-record span { margin-top:3px; font-size:12px; color:var(--muted-color); }
