:root {
  --uuacg-navy: #0b1f3a;
  --uuacg-navy-2: #132b4c;
  --uuacg-magenta: #e823a7;
  --uuacg-deep-magenta: #b6458b;
  --uuacg-green: #478b54;
  --uuacg-soft-green: #b1d5bd;
  --uuacg-gold: #c89b3c;
  --uuacg-soft: #f8f3f7;
  --uuacg-white: #fff;
  --uuacg-line: rgba(11, 31, 58, .12);
  --uuacg-shadow: 0 22px 55px rgba(11, 31, 58, .11);
  --uuacg-app-topbar-height: 72px;
  --uuacg-mobile-nav-height: 68px;
  --uuacg-sidebar-width: 268px;
}

html.uuacg-lock-scroll,
html.uuacg-lock-scroll body { overflow: hidden !important; }
body.uuacg-native-member-app { margin: 0; background: #f4f6f9; color: var(--uuacg-navy); }
body.uuacg-native-member-app #wpadminbar,
body.uuacg-native-member-app > header,
body.uuacg-native-member-app > footer,
body.uuacg-native-member-app .site-header,
body.uuacg-native-member-app .site-footer,
body.uuacg-native-member-app .elementor-location-header,
body.uuacg-native-member-app .elementor-location-footer { display: none !important; }
body.uuacg-native-member-app main,
body.uuacg-native-member-app .site,
body.uuacg-native-member-app .site-content,
body.uuacg-native-member-app .content-area { margin: 0 !important; max-width: none !important; padding: 0 !important; width: 100% !important; }

.uuacg-native-app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: var(--uuacg-app-topbar-height) minmax(0, 1fr);
  background: radial-gradient(circle at 96% 2%, rgba(232,35,167,.07), transparent 24rem), #f4f6f9;
  isolation: isolate;
  overflow: hidden;
}
.uuacg-app-preloader {
  position: fixed; inset: 0; z-index: 999999; display: grid; place-content: center; gap: 15px;
  background: var(--uuacg-navy); color: #fff; text-align: center; transition: opacity .24s ease, visibility .24s ease;
}
.uuacg-app-preloader strong { font-size: clamp(32px, 8vw, 58px); letter-spacing: .24em; margin-right: -.24em; }
.uuacg-app-preloader span { width: 150px; height: 2px; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 99px; }
.uuacg-app-preloader span::after { content: ""; display: block; height: 100%; width: 42%; background: var(--uuacg-magenta); animation: uuacg-preload 1s ease-in-out infinite; }
.uuacg-app-preloader.is-finished { opacity: 0; visibility: hidden; }
@keyframes uuacg-preload { from { transform: translateX(-120%); } to { transform: translateX(330%); } }

.uuacg-app-topbar {
  grid-row: 1; position: relative; z-index: 40; min-width: 0; display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  height: var(--uuacg-app-topbar-height); padding: 0 26px; color: #fff;
  background: rgba(11,31,58,.98); border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 8px 30px rgba(11,31,58,.12);
}
.uuacg-app-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 800; }
.uuacg-app-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.uuacg-app-brand span { white-space: nowrap; }
.uuacg-app-menu-button { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; padding: 11px; }
.uuacg-app-menu-button > span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; background: currentColor; margin: 4px 0; }
.uuacg-app-greeting { min-width: 0; line-height: 1.15; }
.uuacg-app-greeting small { display: block; color: var(--uuacg-soft-green); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.uuacg-app-greeting strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.uuacg-app-toolbar { display: flex; align-items: center; gap: 8px; }
.uuacg-app-toolbar > a { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: #fff !important; text-decoration: none !important; border-radius: 13px; background: rgba(255,255,255,.07); transition: background .16s, transform .16s; }
.uuacg-app-toolbar > a:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.uuacg-app-toolbar b,
.uuacg-app-bottom-nav b { position: absolute; top: -3px; right: -2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--uuacg-navy); border-radius: 99px; background: var(--uuacg-magenta); color: #fff; font-size: 10px; line-height: 1; }
.uuacg-app-toolbar b[hidden], .uuacg-app-bottom-nav b[hidden] { display: none; }
.uuacg-app-avatar img, .uuacg-app-avatar .uuacg-initials-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.uuacg-app-workspace { grid-row: 2; min-height: 0; min-width: 0; display: grid; grid-template-columns: var(--uuacg-sidebar-width) minmax(0, 1fr); }
.uuacg-app-sidebar { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px 14px calc(30px + env(safe-area-inset-bottom, 0px)); background: #fff; border-right: 1px solid var(--uuacg-line); }
.uuacg-app-sidebar-head { display: none; }
.uuacg-app-nav { display: grid; gap: 4px; }
.uuacg-app-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: #3f4e61 !important; font-size: 14px; font-weight: 650; text-decoration: none !important; transition: background .16s, color .16s, transform .16s; }
.uuacg-app-nav a:hover { background: var(--uuacg-soft); color: var(--uuacg-deep-magenta) !important; transform: translateX(2px); }
.uuacg-app-nav a.is-active { background: rgba(232,35,167,.10); color: var(--uuacg-deep-magenta) !important; box-shadow: inset 3px 0 var(--uuacg-magenta); }
.uuacg-app-main { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 28px clamp(20px, 4vw, 64px) calc(38px + env(safe-area-inset-bottom, 0px)); }
.uuacg-app-content { width: min(1500px, 100%); margin: 0 auto; }
.uuacg-app-content > * + * { margin-top: 24px; }
.uuacg-app-main .uuacg-panel,
.uuacg-app-main .uuacg-dashboard-card,
.uuacg-app-main .uuacg-payment-box { border: 1px solid rgba(11,31,58,.085); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 14px 34px rgba(11,31,58,.07); }
.uuacg-app-bottom-nav { display: none; }

.uuacg-motivation { width: min(1500px, 100%); margin: 0 auto 22px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px 24px; border: 1px solid rgba(200,155,60,.25); border-radius: 20px; background: linear-gradient(120deg, rgba(11,31,58,.98), rgba(19,43,76,.98)); box-shadow: var(--uuacg-shadow); color: #fff; overflow: hidden; }
.uuacg-motivation span { color: var(--uuacg-gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.uuacg-motivation strong { font-size: clamp(18px, 2vw, 26px); line-height: 1.2; transition: opacity .22s ease, transform .22s ease; }
.uuacg-motivation strong.is-changing { opacity: 0; transform: translateY(5px); }

.uuacg-dashboard-action-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; padding: 18px 20px; border: 1px solid var(--uuacg-line); border-radius: 16px; background: #fff; }
.uuacg-dashboard-action-card div { min-width: 0; }
.uuacg-dashboard-action-card strong, .uuacg-dashboard-action-card span { display: block; }
.uuacg-dashboard-action-card span { margin-top: 4px; color: #697586; font-size: 13px; }
.uuacg-modal-root { position: fixed; inset: 0; z-index: 100000; display: none; }
.uuacg-modal-root.is-open { display: block; }
.uuacg-modal-backdrop { position: absolute; inset: 0; background: rgba(5,16,32,.64); backdrop-filter: blur(6px); }
.uuacg-app-modal { position: absolute; top: 50%; left: 50%; width: min(720px, calc(100vw - 32px)); max-height: min(88dvh, 900px); display: grid; grid-template-rows: auto minmax(0, 1fr); transform: translate(-50%, -50%); overflow: hidden; border: 1px solid rgba(255,255,255,.45); border-radius: 24px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.28); }
.uuacg-app-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--uuacg-line); background: var(--uuacg-soft); }
.uuacg-app-modal h2 { margin: 0; font-size: 21px; }
.uuacg-app-modal > header button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #fff; color: var(--uuacg-navy); font-size: 24px; }
.uuacg-app-modal-body { min-height: 0; overflow: auto; padding: 22px; }
.uuacg-app-modal-body .uuacg-form { margin: 0; }

.uuacg-card-format-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--uuacg-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(11,31,58,.07); }
.uuacg-card-format-tabs button { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--uuacg-navy); font-weight: 750; }
.uuacg-card-format-tabs button[aria-selected="true"] { background: var(--uuacg-navy); color: #fff; }
.uuacg-card-formats [role="tabpanel"] { margin-top: 24px; }
.uuacg-portrait-card-tool { display: grid; gap: 24px; }
.uuacg-portrait-card-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: clamp(20px, 4vw, 42px); }
.uuacg-portrait-card-side { display: grid; gap: 9px; justify-items: center; }
.uuacg-portrait-card-side > svg { width: min(100%, 318px); aspect-ratio: 54 / 85.6; border-radius: 20px; filter: drop-shadow(0 22px 30px rgba(11,31,58,.18)); }
.uuacg-portrait-card-side > span { color: #6a7482; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.uuacg-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.uuacg-card-print-help { max-width: 720px; margin: 0 auto; padding: 15px 18px; border: 1px solid var(--uuacg-line); border-radius: 14px; background: #fff; }
.uuacg-card-print-help summary { cursor: pointer; font-weight: 750; }

/* Messaging application */
body.uuacg-fullscreen-chat-page { overflow: hidden !important; }
.uuacg-chat-app { grid-template-rows: 64px minmax(0, 1fr) 24px; background: #e9edf2; }
.uuacg-chat-global-header { grid-row: 1; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 20px; background: var(--uuacg-navy); color: #fff; }
.uuacg-chat-global-header > a,
.uuacg-chat-global-header > button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff !important; text-decoration: none !important; font-size: 20px; }
.uuacg-chat-global-header div { min-width: 0; }
.uuacg-chat-global-header strong, .uuacg-chat-global-header span { display: block; }
.uuacg-chat-global-header span { color: var(--uuacg-soft-green); font-size: 11px; }
.uuacg-chat-workspace { grid-row: 2; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr) minmax(0, 0); overflow: hidden; }
.uuacg-chat-list-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; background: #fff; border-right: 1px solid var(--uuacg-line); }
.uuacg-chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--uuacg-line); }
.uuacg-chat-list-head > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.uuacg-chat-list-head strong, .uuacg-chat-list-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uuacg-chat-list-head small { color: var(--uuacg-green); font-size: 11px; }
.uuacg-chat-list-head > button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(232,35,167,.1); color: var(--uuacg-deep-magenta); font-size: 23px; }
.uuacg-chat-search { display: block; padding: 12px 14px; border-bottom: 1px solid var(--uuacg-line); }
.uuacg-chat-search input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--uuacg-line); border-radius: 12px; background: #f6f8fa; color: var(--uuacg-navy); }
.uuacg-conversation-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.uuacg-conversation-row { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 10px 14px; border: 0; border-bottom: 1px solid rgba(11,31,58,.07); background: #fff; color: var(--uuacg-navy); text-align: left; }
.uuacg-conversation-row:hover, .uuacg-conversation-row.is-active { background: var(--uuacg-soft); }
.uuacg-conversation-row.is-active { box-shadow: inset 3px 0 var(--uuacg-magenta); }
.uuacg-chat-avatar { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; overflow: visible; background: linear-gradient(145deg, var(--uuacg-deep-magenta), var(--uuacg-navy)); color: #fff; font-weight: 800; }
.uuacg-chat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #eef1f4; z-index: 1; }
.uuacg-chat-avatar i { font-style: normal; }
.uuacg-chat-avatar em { position: absolute; right: -1px; bottom: 1px; z-index: 2; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #34a853; }
.uuacg-conversation-copy { min-width: 0; }
.uuacg-conversation-copy strong, .uuacg-conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uuacg-conversation-copy strong { font-size: 14px; }
.uuacg-conversation-copy small { margin-top: 5px; color: #6a7482; font-size: 12px; }
.uuacg-conversation-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.uuacg-conversation-meta time { color: #7b8592; font-size: 10px; }
.uuacg-conversation-meta b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--uuacg-magenta); color: #fff; font-size: 10px; }
.uuacg-chat-empty-list { display: grid; place-content: center; gap: 7px; min-height: 220px; padding: 28px; text-align: center; color: #6a7482; }
.uuacg-chat-empty-list strong { color: var(--uuacg-navy); }

.uuacg-active-chat { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); background: #f3f0f3; position: relative; }
.uuacg-active-chat.is-open,
.uuacg-active-chat:has(.uuacg-active-chat-header) { grid-template-rows: 70px minmax(0, 1fr) auto; }
.uuacg-chat-empty { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; color: #6c7785; }
.uuacg-chat-empty img { width: 90px; height: 90px; object-fit: contain; opacity: .72; }
.uuacg-chat-empty h1 { margin: 0; color: var(--uuacg-navy); font-size: 25px; }
.uuacg-active-chat-header { display: grid; grid-template-columns: auto 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--uuacg-line); }
.uuacg-active-chat-header > button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f4f6f8; color: var(--uuacg-navy); }
.uuacg-active-chat-header [data-mobile-chat-back] { display: none; }
.uuacg-active-chat-person { min-width: 0; }
.uuacg-active-chat-person strong, .uuacg-active-chat-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uuacg-active-chat-person small { margin-top: 3px; color: #6c7887; font-size: 11px; }
.uuacg-active-chat-person small.is-typing { color: var(--uuacg-green); font-weight: 700; }
.uuacg-chat-history { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px clamp(14px, 3vw, 44px); background-color: #f3f0f3; background-image: radial-gradient(rgba(11,31,58,.035) 1px, transparent 1px); background-size: 18px 18px; }
.uuacg-chat-date { display: flex; justify-content: center; margin: 13px 0; }
.uuacg-chat-date span { padding: 5px 10px; border: 1px solid rgba(11,31,58,.08); border-radius: 999px; background: rgba(255,255,255,.86); color: #6a7482; font-size: 10px; box-shadow: 0 3px 12px rgba(11,31,58,.05); }
.uuacg-load-older { display: block; margin: 0 auto 15px; padding: 7px 12px; border: 1px solid var(--uuacg-line); border-radius: 99px; background: #fff; color: var(--uuacg-navy); font-size: 11px; }
.uuacg-message-row { display: flex; margin: 5px 0; }
.uuacg-message-row.is-outgoing { justify-content: flex-end; }
.uuacg-message-bubble { width: fit-content; max-width: min(74%, 670px); padding: 9px 11px 7px; border: 1px solid rgba(11,31,58,.075); border-radius: 16px 16px 16px 4px; background: #fff; color: #1a2b40; box-shadow: 0 4px 15px rgba(11,31,58,.055); }
.uuacg-message-row.is-outgoing .uuacg-message-bubble { border-radius: 16px 16px 4px 16px; background: #ddefe2; border-color: rgba(71,139,84,.17); }
.uuacg-message-text { overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.uuacg-message-bubble footer { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; color: #708090; font-size: 9px; }
.uuacg-message-state { color: #73808d; font-size: 11px; letter-spacing: -2px; }
.uuacg-message-state[data-state="read"] { color: var(--uuacg-deep-magenta); }
.uuacg-message-state[data-state="failed"] { color: #b42318; letter-spacing: 0; }
.uuacg-message-reply { margin: -2px 0 7px; padding: 7px 9px; border-left: 3px solid var(--uuacg-magenta); border-radius: 6px; background: rgba(11,31,58,.05); }
.uuacg-message-reply small, .uuacg-message-reply span { display: block; }
.uuacg-message-reply small { color: var(--uuacg-deep-magenta); font-weight: 800; }
.uuacg-message-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 350px; }
.uuacg-message-attachment { min-width: min(320px, 60vw); display: flex; align-items: center; gap: 11px; padding: 9px; border: 0; border-radius: 10px; background: rgba(11,31,58,.065); text-align: left; color: inherit; }
.uuacg-message-attachment > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--uuacg-deep-magenta); }
.uuacg-message-attachment strong, .uuacg-message-attachment small { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uuacg-message-attachment small { color: #71808f; }

.uuacg-chat-composer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 9px; min-width: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--uuacg-line); }
.uuacg-chat-composer > button { width: 42px; height: 42px; border: 0; border-radius: 13px; background: rgba(11,31,58,.07); color: var(--uuacg-navy); font-size: 20px; }
.uuacg-chat-composer [data-chat-send] { background: var(--uuacg-magenta); color: #fff; }
.uuacg-composer-input { min-width: 0; display: grid; align-items: center; border: 1px solid var(--uuacg-line); border-radius: 16px; background: #f8fafb; overflow: hidden; }
.uuacg-composer-input textarea { width: 100%; min-height: 42px; max-height: 132px; resize: none; border: 0 !important; outline: 0; box-shadow: none !important; padding: 11px 13px; background: transparent; color: var(--uuacg-navy); line-height: 1.35; }
.uuacg-composer-input [data-upload-name] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 13px 7px; color: var(--uuacg-deep-magenta); font-size: 10px; }
.uuacg-upload-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; background: rgba(232,35,167,.12); }
.uuacg-upload-progress span { display: block; width: 35%; height: 100%; background: var(--uuacg-magenta); animation: uuacg-upload 1s ease-in-out infinite; }
@keyframes uuacg-upload { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.uuacg-chat-powered { grid-row: 3; display: flex; align-items: center; justify-content: center; min-height: 24px; background: var(--uuacg-navy); color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .04em; }
.uuacg-chat-powered a { margin-left: 4px; color: #fff !important; font-weight: 800; text-decoration: none; }
.uuacg-chat-details { min-width: 0; overflow: auto; background: #fff; border-left: 1px solid var(--uuacg-line); }

.uuacg-chat-dialog[hidden] { display: none; }
.uuacg-chat-dialog { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(5,16,32,.65); backdrop-filter: blur(5px); }
.uuacg-chat-dialog > div { position: relative; width: min(520px, 100%); max-height: min(80dvh, 700px); overflow: auto; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.uuacg-chat-dialog [data-dialog-close] { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f3f5f7; font-size: 23px; }
.uuacg-chat-dialog h2 { margin: 0 44px 18px 0; }
.uuacg-chat-dialog input[type="search"] { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--uuacg-line); border-radius: 12px; }
[data-member-search-results] { display: grid; gap: 7px; margin-top: 14px; }
[data-member-search-results] article { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--uuacg-line); border-radius: 14px; }
[data-member-search-results] strong, [data-member-search-results] small { display: block; }
[data-member-search-results] small { color: #6f7a88; }
[data-member-search-results] button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--uuacg-magenta); color: #fff; font-weight: 700; }
.uuacg-sound-preferences { display: grid; gap: 13px; }
.uuacg-sound-preferences label { display: grid; gap: 5px; font-weight: 700; }
.uuacg-sound-preferences select { width: 100%; min-height: 44px; border: 1px solid var(--uuacg-line); border-radius: 10px; }
.uuacg-sound-preferences .uuacg-check { display: flex; align-items: center; gap: 8px; }

.uuacg-list-skeleton, .uuacg-chat-history-loader { position: relative; min-height: 180px; overflow: hidden; background: linear-gradient(90deg, rgba(11,31,58,.03), rgba(255,255,255,.85), rgba(11,31,58,.03)); background-size: 220% 100%; animation: uuacg-skeleton 1.2s linear infinite; }
.uuacg-chat-history-loader { min-height: 110px; border-radius: 14px; }
@keyframes uuacg-skeleton { to { background-position: -220% 0; } }
.uuacg-app-toasts { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 110000; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.uuacg-app-toast { padding: 13px 15px; border-radius: 12px; background: var(--uuacg-navy); color: #fff; box-shadow: var(--uuacg-shadow); font-size: 13px; }
.uuacg-app-toast.is-error { background: #8d2444; }

.uuacg-btn.is-loading, button.is-loading { position: relative; pointer-events: none; opacity: .75; }
.uuacg-btn.is-loading::after, button.is-loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: uuacg-spin .75s linear infinite; }
@keyframes uuacg-spin { to { transform: rotate(360deg); } }

.uuacg-native-app-shell :focus-visible { outline: 3px solid var(--uuacg-gold) !important; outline-offset: 3px; }

@media (max-width: 899px) {
  :root { --uuacg-app-topbar-height: 64px; }
  .uuacg-app-topbar { grid-template-columns: auto auto minmax(0,1fr) auto; gap: 10px; padding: 0 14px; }
  .uuacg-app-menu-button { display: block; }
  .uuacg-app-brand img { width: 38px; height: 38px; }
  .uuacg-app-brand span { display: none; }
  .uuacg-app-greeting { font-size: 13px; }
  .uuacg-app-greeting small { display: none; }
  .uuacg-app-toolbar > a { width: 38px; height: 38px; }
  .uuacg-app-toolbar > a:nth-child(1), .uuacg-app-toolbar > a:nth-child(2) { display: none; }
  .uuacg-app-workspace { grid-template-columns: minmax(0,1fr); }
  .uuacg-app-sidebar { position: fixed; inset: var(--uuacg-app-topbar-height) auto 0 0; z-index: 80; width: min(320px, 88vw); transform: translateX(-104%); transition: transform .24s ease; box-shadow: 24px 0 60px rgba(11,31,58,.22); }
  .uuacg-native-app-shell.is-menu-open::after { content: ""; position: fixed; inset: var(--uuacg-app-topbar-height) 0 0 0; z-index: 70; background: rgba(5,16,32,.52); }
  .uuacg-native-app-shell.is-menu-open .uuacg-app-sidebar { transform: translateX(0); }
  .uuacg-app-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-bottom: 12px; padding: 0 8px; }
  .uuacg-app-sidebar-head button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--uuacg-soft); font-size: 23px; }
  .uuacg-app-main { padding: 20px 18px calc(var(--uuacg-mobile-nav-height) + env(safe-area-inset-bottom,0px) + 28px); }
  .uuacg-app-bottom-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--uuacg-mobile-nav-height) + env(safe-area-inset-bottom,0px)); display: grid; grid-template-columns: repeat(5,1fr); padding: 5px 8px env(safe-area-inset-bottom,0px); border-top: 1px solid var(--uuacg-line); background: rgba(255,255,255,.97); backdrop-filter: blur(16px); box-shadow: 0 -12px 30px rgba(11,31,58,.08); }
  .uuacg-app-bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; color: #566273 !important; text-decoration: none !important; }
  .uuacg-app-bottom-nav span { font-size: 19px; line-height: 1; }
  .uuacg-app-bottom-nav small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .uuacg-app-bottom-nav b { top: 3px; right: calc(50% - 22px); border-color: #fff; }
  .uuacg-motivation { min-height: 82px; padding: 16px 18px; }
  .uuacg-portrait-card-preview { grid-template-columns: minmax(0, 320px); }
  .uuacg-app-modal { inset: auto 0 0; top: auto; left: 0; width: 100%; max-height: 94dvh; transform: none; border-radius: 22px 22px 0 0; }
  .uuacg-app-modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); }

  .uuacg-chat-app { grid-template-rows: 58px minmax(0, 1fr) 22px; }
  .uuacg-chat-workspace { grid-template-columns: minmax(0,1fr); position: relative; }
  .uuacg-chat-list-panel, .uuacg-active-chat { grid-column: 1; grid-row: 1; }
  .uuacg-active-chat { position: absolute; inset: 0; z-index: 4; transform: translateX(102%); transition: transform .22s ease; }
  .uuacg-chat-app.has-active-conversation .uuacg-active-chat { transform: translateX(0); }
  .uuacg-active-chat-header [data-mobile-chat-back] { display: block; }
  .uuacg-chat-history { padding: 13px 10px; }
  .uuacg-message-bubble { max-width: 86%; }
  .uuacg-chat-composer { padding-left: 9px; padding-right: 9px; }
  .uuacg-message-attachment { min-width: min(245px, 66vw); }
  .uuacg-chat-dialog { align-items: end; padding: 0; }
  .uuacg-chat-dialog > div { width: 100%; max-height: 88dvh; border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); }
}

@media (max-width: 480px) {
  .uuacg-app-topbar { gap: 7px; padding: 0 10px; }
  .uuacg-app-greeting strong { max-width: 115px; font-size: 13px; }
  .uuacg-dashboard-action-card { align-items: flex-start; flex-direction: column; }
  .uuacg-card-actions { display: grid; grid-template-columns: 1fr; }
  .uuacg-card-actions .uuacg-btn { width: 100%; justify-content: center; text-align: center; }
}


/* 1.7.1 focused scroll, chat-shell and card-preview polish. */
html:has(body.uuacg-native-member-app),
body.uuacg-native-member-app {
  width: 100%;
  height: var(--uuacg-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
}
body.uuacg-native-member-app #page,
body.uuacg-native-member-app .echuku-site,
body.uuacg-native-member-app .echuku-main,
body.uuacg-native-member-app .echuku-chat-app-template {
  width: 100%;
  height: var(--uuacg-viewport-height, 100dvh);
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.uuacg-native-app-shell {
  width: 100%;
  height: var(--uuacg-viewport-height, 100dvh);
  min-height: 0;
  max-height: var(--uuacg-viewport-height, 100dvh);
}
.uuacg-app-workspace { overflow: hidden; }
.uuacg-app-sidebar {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}
.uuacg-app-main {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(11,31,58,.32) transparent;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}
.uuacg-app-main::-webkit-scrollbar,
.uuacg-app-sidebar::-webkit-scrollbar,
.uuacg-conversation-list::-webkit-scrollbar,
.uuacg-chat-history::-webkit-scrollbar { width: 9px; height: 9px; }
.uuacg-app-main::-webkit-scrollbar-thumb,
.uuacg-app-sidebar::-webkit-scrollbar-thumb,
.uuacg-conversation-list::-webkit-scrollbar-thumb,
.uuacg-chat-history::-webkit-scrollbar-thumb { background: rgba(11,31,58,.28); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
.uuacg-app-main::-webkit-scrollbar-track,
.uuacg-app-sidebar::-webkit-scrollbar-track,
.uuacg-conversation-list::-webkit-scrollbar-track,
.uuacg-chat-history::-webkit-scrollbar-track { background: transparent; }

body.uuacg-chat-app-active .entry-header,
body.uuacg-chat-app-active .page-header,
body.uuacg-chat-app-active .page-title,
body.uuacg-chat-app-active .entry-title,
body.uuacg-chat-app-active .breadcrumbs,
body.uuacg-chat-app-active .breadcrumb,
body.uuacg-chat-app-active .comments-area { display: none !important; }
body.uuacg-chat-app-active .echuku-builder-site-main,
body.uuacg-chat-app-active .echuku-content,
body.uuacg-chat-app-active .echuku-shell,
body.uuacg-chat-app-active article,
body.uuacg-chat-app-active .entry-content { width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
.uuacg-chat-app {
  height: var(--uuacg-viewport-height, 100dvh);
  max-height: var(--uuacg-viewport-height, 100dvh);
  min-height: 0;
}
.uuacg-chat-workspace {
  grid-template-columns: clamp(320px, 26vw, 400px) minmax(0, 1fr) minmax(0, 0);
}
.uuacg-chat-list-panel,
.uuacg-active-chat,
.uuacg-chat-details { min-height: 0; }
.uuacg-conversation-list,
.uuacg-chat-history {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(11,31,58,.26) transparent;
  touch-action: pan-y;
}
.uuacg-chat-history { position: relative; scroll-padding-bottom: 82px; }
.uuacg-new-messages-button {
  position: sticky;
  z-index: 8;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 38px;
  margin: 12px 10px 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 999px;
  background: #fff;
  color: var(--uuacg-navy);
  box-shadow: 0 10px 25px rgba(11,31,58,.16);
  font-size: 12px;
  font-weight: 750;
}
.uuacg-new-messages-button[hidden] { display: none; }
.uuacg-chat-composer { z-index: 6; }
.uuacg-chat-powered { position: relative; z-index: 7; }
.uuacg-conversation-row { cursor: pointer; }
.uuacg-active-chat-header,
.uuacg-chat-list-head,
.uuacg-chat-search,
.uuacg-chat-composer { flex: 0 0 auto; }

.uuacg-card-formats,
.uuacg-portrait-card-tool,
.uuacg-portrait-card-preview,
.uuacg-portrait-card-side { min-width: 0; max-width: 100%; }
.uuacg-portrait-card-preview { overflow: visible; }
.uuacg-portrait-card-side > svg { display: block; max-width: 100%; height: auto; }

@media (max-width: 899px) {
  body.uuacg-native-member-app #page,
  body.uuacg-native-member-app .echuku-site,
  body.uuacg-native-member-app .echuku-main,
  body.uuacg-native-member-app .echuku-chat-app-template,
  .uuacg-native-app-shell,
  .uuacg-chat-app { height: var(--uuacg-viewport-height, 100dvh); max-height: var(--uuacg-viewport-height, 100dvh); }
  .uuacg-app-main { padding-bottom: calc(var(--uuacg-mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 28px); }
  .uuacg-chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .uuacg-chat-list-panel,
  .uuacg-active-chat { width: 100%; min-height: 0; }
  .uuacg-chat-history { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .uuacg-chat-composer { padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .uuacg-portrait-card-preview { overflow-x: hidden; padding-inline: 2px; }
  .uuacg-portrait-card-side { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .uuacg-native-app-shell *, .uuacg-native-app-shell *::before, .uuacg-native-app-shell *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  body.uuacg-native-member-app { background: #fff !important; }
  .uuacg-app-topbar, .uuacg-app-sidebar, .uuacg-app-bottom-nav, .uuacg-motivation, .uuacg-card-format-tabs, .uuacg-card-actions, .uuacg-card-print-help { display: none !important; }
  .uuacg-native-app-shell, .uuacg-app-workspace, .uuacg-app-main { display: block !important; min-height: 0 !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  .uuacg-portrait-card-preview { display: block !important; }
  .uuacg-portrait-card-side { page-break-after: always; break-after: page; }
  .uuacg-portrait-card-side > svg { width: 54mm !important; height: 85.6mm !important; filter: none !important; }
  .uuacg-portrait-card-side > span { display: none; }
  @page { size: 54mm 85.6mm; margin: 0; }
}

/* 1.8.3 focused chat profile, voice-note and header alignment correction. */
.uuacg-active-chat-header{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px;min-width:0}
.uuacg-active-chat-header>[data-mobile-chat-back]{flex:0 0 auto}
.uuacg-chat-profile-trigger{border:0;background:transparent;padding:0;cursor:pointer;flex:0 0 auto}
.uuacg-active-chat-person{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;align-items:flex-start;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:0}
.uuacg-active-chat-person strong,.uuacg-active-chat-person small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uuacg-active-chat-header-actions{margin-left:auto;display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:8px}
.uuacg-active-chat-header-actions button{display:grid;place-items:center;min-width:40px;min-height:40px;border:0;border-radius:12px;background:rgba(11,31,58,.06);cursor:pointer}
.uuacg-chat-details{overflow:auto}.uuacg-chat-details.is-open{display:block!important}
.uuacg-chat-profile-card{min-height:100%;background:#fff;color:#0b1f3a;padding-bottom:28px}
.uuacg-chat-profile-cover{height:150px;background:linear-gradient(135deg,#0b1f3a,#b6458b);overflow:hidden}
.uuacg-chat-profile-cover img{width:100%;height:100%;object-fit:cover}
.uuacg-chat-profile-avatar{width:104px;height:104px;margin:-52px auto 12px;border:5px solid #fff;border-radius:50%;background:#f8f3f7;overflow:hidden;display:grid;place-items:center;font-size:2rem;font-weight:800}
.uuacg-chat-profile-avatar img{width:100%;height:100%;object-fit:cover}
.uuacg-chat-profile-card h2,.uuacg-chat-profile-title,.uuacg-chat-profile-location{text-align:center;padding-inline:20px}
.uuacg-chat-profile-card h2{margin:0 0 4px;font-size:1.45rem}.uuacg-chat-profile-title,.uuacg-chat-profile-location{margin:4px 0;color:#667085}
.uuacg-chat-profile-card dl,.uuacg-chat-profile-card section{margin:18px;padding:16px;border:1px solid rgba(11,31,58,.1);border-radius:16px}.uuacg-chat-profile-card dt{font-size:.75rem;font-weight:800;color:#b6458b;text-transform:uppercase}.uuacg-chat-profile-card dd{margin:3px 0 12px}.uuacg-chat-profile-card section h3{margin:0 0 8px}.uuacg-chat-profile-actions{padding:0 18px}.uuacg-chat-profile-actions button{width:100%;border:0;border-radius:13px;background:#e823a7;color:#fff;font-weight:800;padding:12px}
.uuacg-profile-loading,.uuacg-chat-profile-error{padding:28px;text-align:center}
.uuacg-voice-message{display:flex;align-items:center;gap:10px;min-width:min(280px,65vw);padding:4px 0}.uuacg-voice-message audio{display:none}.uuacg-voice-play{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;background:#e823a7;color:#fff;cursor:pointer}.uuacg-voice-track{display:grid;flex:1;min-width:0;gap:4px}.uuacg-voice-track input{width:100%;accent-color:#e823a7}.uuacg-voice-track span{display:flex;justify-content:space-between;font-size:.72rem;opacity:.8}.uuacg-voice-preview{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;border-radius:16px;background:#f8f3f7;padding:7px 9px}.uuacg-voice-preview audio{max-width:190px;height:34px}.uuacg-voice-status{font-size:.75rem;min-width:0}.uuacg-voice-retry{border:0;border-radius:10px;background:#0b1f3a;color:#fff;padding:8px 10px}.uuacg-voice-record{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;background:#f8f3f7;color:#e823a7;font-size:1rem}.uuacg-voice-record.is-recording{background:#e823a7;color:#fff;animation:uuacgVoicePulse 1.2s infinite}@keyframes uuacgVoicePulse{50%{box-shadow:0 0 0 8px rgba(232,35,167,.14)}}
@media(max-width:720px){.uuacg-active-chat-header{gap:7px}.uuacg-active-chat-header-actions{gap:4px}.uuacg-active-chat-header-actions button{min-width:36px;min-height:36px}.uuacg-chat-details{position:absolute!important;inset:0!important;z-index:20!important;width:100%!important}.uuacg-voice-message{min-width:min(235px,70vw)}.uuacg-voice-preview audio{max-width:120px}}

/* 1.8.4 chat media pipeline, search, viewer and one-row composer. */
.uuacg-active-chat.is-open,.uuacg-active-chat:has(.uuacg-active-chat-header){grid-template-rows:70px auto minmax(0,1fr) auto}
.uuacg-conversation-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;align-items:center;gap:7px;padding:8px 12px;border-bottom:1px solid var(--uuacg-line);background:#fff;z-index:8}
.uuacg-conversation-search[hidden]{display:none}.uuacg-conversation-search input{min-width:0;height:38px;border:1px solid var(--uuacg-line);border-radius:11px;padding:0 12px}.uuacg-conversation-search span{font-size:11px;color:#667085;white-space:nowrap}.uuacg-conversation-search button{width:36px;height:36px;border:0;border-radius:10px;background:#f3f5f7;color:var(--uuacg-navy);font-weight:800}
.uuacg-chat-composer{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:end!important;gap:9px!important;width:100%;min-width:0;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--uuacg-line)}
.uuacg-composer-attach{grid-column:1;align-self:end;flex:0 0 42px;width:42px!important;height:42px!important}.uuacg-composer-main{grid-column:2;display:grid;min-width:0;gap:7px}.uuacg-composer-input{min-width:0}.uuacg-chat-composer-actions{grid-column:3;display:flex;align-items:center;align-self:end;flex:0 0 auto;flex-wrap:nowrap;gap:7px}.uuacg-chat-composer-actions>button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:0;border-radius:13px;background:rgba(11,31,58,.07);color:var(--uuacg-navy);font-size:18px}.uuacg-chat-composer-actions [data-chat-send]{background:var(--uuacg-magenta);color:#fff}.uuacg-chat-composer button[hidden]{display:none!important}
.uuacg-attachment-queue{display:grid;gap:7px;max-height:190px;overflow:auto;overscroll-behavior:contain}.uuacg-attachment-queue[hidden]{display:none}.uuacg-attachment-queue.is-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uuacg-queued-attachment{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid rgba(11,31,58,.1);border-radius:13px;background:#f8fafb}.uuacg-attachment-queue.is-image-grid .uuacg-queued-attachment{display:block;overflow:hidden;min-height:98px}.uuacg-queued-attachment>img{width:62px;height:54px;object-fit:cover;border-radius:9px}.uuacg-attachment-queue.is-image-grid .uuacg-queued-attachment>img{width:100%;height:105px}.uuacg-queued-attachment audio{width:min(230px,40vw);height:34px}.uuacg-queued-attachment>div{min-width:0}.uuacg-queued-attachment strong,.uuacg-queued-attachment small,.uuacg-queued-attachment em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uuacg-queued-attachment small{font-size:10px;color:#667085}.uuacg-queued-attachment em{font-size:10px;color:#b42318;font-style:normal}.uuacg-queued-attachment progress{width:100%;height:5px;accent-color:var(--uuacg-magenta)}.uuacg-queued-actions{display:flex!important;align-items:center;gap:4px}.uuacg-queued-actions button{min-width:30px;height:30px;border:0;border-radius:8px;background:#fff;color:var(--uuacg-navy);font-size:11px}.uuacg-queued-attachment.is-ready{border-color:rgba(71,139,84,.35);background:#f3fbf5}.uuacg-queued-attachment.is-failed,.uuacg-queued-attachment.is-cancelled{border-color:rgba(180,35,24,.28);background:#fff6f5}
.uuacg-recording-panel{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 9px;border:1px solid rgba(232,35,167,.25);border-radius:13px;background:#fff5fb}.uuacg-recording-panel[hidden]{display:none}.uuacg-recording-panel span:first-child{font-variant-numeric:tabular-nums;font-weight:800;color:var(--uuacg-magenta)}.uuacg-recording-panel [data-voice-status]{min-width:0;flex:1;font-size:11px;color:#667085}.uuacg-recording-panel button{border:0;border-radius:9px;padding:7px 9px;background:#fff;color:var(--uuacg-navy);font-size:11px}.uuacg-recording-panel [data-voice-stop]{background:var(--uuacg-magenta);color:#fff}.uuacg-voice-record.is-recording{background:var(--uuacg-magenta)!important;color:#fff!important;animation:uuacgVoicePulse 1.2s infinite}
.uuacg-message-image-grid{display:grid;gap:3px;overflow:hidden;min-width:min(360px,64vw);max-width:430px;border-radius:12px;margin-bottom:5px}.uuacg-message-image-grid.count-1{grid-template-columns:1fr}.uuacg-message-image-grid.count-2{grid-template-columns:repeat(2,1fr)}.uuacg-message-image-grid.count-3,.uuacg-message-image-grid.count-4{grid-template-columns:repeat(2,1fr)}.uuacg-message-image-grid button{position:relative;display:block;min-width:0;height:150px;border:0;padding:0;background:#e8ebef;overflow:hidden}.uuacg-message-image-grid.count-1 button{height:min(340px,42vh)}.uuacg-message-image-grid.count-3 button:first-child{grid-row:span 2;height:303px}.uuacg-message-image-grid img{width:100%;height:100%;object-fit:cover;display:block}.uuacg-message-image-grid button>span{position:absolute;inset:0;display:grid;place-items:center;background:rgba(11,31,58,.58);color:#fff;font-size:28px;font-weight:800}
.uuacg-image-viewer{position:fixed;inset:0;z-index:100050;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px;background:rgba(4,12,26,.96);color:#fff}.uuacg-image-viewer[hidden]{display:none}.uuacg-image-viewer>button{width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px}.uuacg-image-viewer>[data-image-viewer-close]{position:absolute;top:max(14px,env(safe-area-inset-top));right:18px;z-index:3}.uuacg-image-viewer figure{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;margin:0;overflow:auto}.uuacg-image-viewer img{max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;transition:transform .18s ease;cursor:zoom-in;touch-action:pan-y;transform:translate(var(--uuacg-image-pan-x,0),var(--uuacg-image-pan-y,0)) scale(1)}.uuacg-image-viewer img.is-zoomed{max-width:none;max-height:none;transform:translate(var(--uuacg-image-pan-x,0),var(--uuacg-image-pan-y,0)) scale(1.7);cursor:grab;touch-action:none}.uuacg-image-viewer img.is-zoomed:active{cursor:grabbing}.uuacg-image-viewer figcaption{padding:9px 12px;text-align:center;font-size:12px;color:#e3e8ef}.uuacg-image-viewer-actions{grid-column:1/-1;display:flex;justify-content:center;gap:9px}.uuacg-image-viewer-actions button,.uuacg-image-viewer-actions a{min-height:40px;padding:9px 16px;border:1px solid rgba(255,255,255,.25);border-radius:11px;background:rgba(255,255,255,.1);color:#fff!important;text-decoration:none}.uuacg-message-row.is-search-hit .uuacg-message-bubble{outline:3px solid rgba(232,35,167,.42);box-shadow:0 0 0 7px rgba(232,35,167,.12)}
@media(max-width:720px){.uuacg-conversation-search{grid-template-columns:minmax(0,1fr) auto auto auto}.uuacg-conversation-search span{grid-column:1/-1;grid-row:2}.uuacg-chat-composer{gap:7px!important;padding-inline:8px!important}.uuacg-chat-composer-actions{gap:4px}.uuacg-chat-composer-actions>button,.uuacg-composer-attach{width:39px!important;height:39px!important;flex-basis:39px}.uuacg-attachment-queue.is-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uuacg-message-image-grid{min-width:min(285px,76vw)}.uuacg-message-image-grid button{height:120px}.uuacg-message-image-grid.count-3 button:first-child{height:243px}.uuacg-image-viewer{padding:10px;grid-template-columns:38px minmax(0,1fr) 38px}.uuacg-image-viewer>button{width:38px;height:38px}.uuacg-recording-panel{flex-wrap:wrap}.uuacg-recording-panel [data-voice-status]{flex-basis:calc(100% - 70px)}}
/* 1.8.4 protected shared-media details and touch media-viewer completion. */
.uuacg-chat-shared-media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.uuacg-chat-shared-media button{position:relative;aspect-ratio:1;border:0;border-radius:10px;padding:0;overflow:hidden;background:#eef1f5;cursor:pointer}.uuacg-chat-shared-media img{width:100%;height:100%;object-fit:cover}.uuacg-chat-shared-files{display:grid;gap:8px}.uuacg-chat-shared-files button{display:flex;align-items:center;gap:10px;width:100%;min-width:0;border:1px solid rgba(11,31,58,.1);border-radius:11px;background:#f8f3f7;color:#0b1f3a;padding:10px;text-align:left}.uuacg-chat-shared-files button>span:last-child{display:grid;min-width:0}.uuacg-chat-shared-files strong,.uuacg-chat-shared-files small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uuacg-chat-shared-links{display:grid;gap:8px}.uuacg-chat-shared-links a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b6458b;text-decoration:underline}

/* 1.8.5 strict fixed composer, single-row controls and profile-panel production fix. */
html.uuacg-chat-app-active,
html.uuacg-chat-app-active body,
body.uuacg-chat-app-active,
body.uuacg-fullscreen-chat-page {
  width: 100% !important;
  height: var(--uuacg-viewport-height, 100dvh) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.uuacg-chat-app-active #page,
body.uuacg-chat-app-active .site,
body.uuacg-chat-app-active .echuku-site,
body.uuacg-chat-app-active .site-content,
body.uuacg-chat-app-active .content-area,
body.uuacg-chat-app-active .entry-content,
body.uuacg-chat-app-active .echuku-main,
body.uuacg-chat-app-active .echuku-chat-app-template,
body.uuacg-fullscreen-chat-page #page,
body.uuacg-fullscreen-chat-page .site,
body.uuacg-fullscreen-chat-page .site-content,
body.uuacg-fullscreen-chat-page .content-area,
body.uuacg-fullscreen-chat-page .entry-content,
body.uuacg-fullscreen-chat-page .echuku-chat-app-template {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.uuacg-chat-app-active header:not(.uuacg-chat-global-header):not(.uuacg-active-chat-header),
body.uuacg-chat-app-active .site-header,
body.uuacg-chat-app-active .site-footer,
body.uuacg-chat-app-active .elementor-location-header,
body.uuacg-chat-app-active .elementor-location-footer,
body.uuacg-chat-app-active .entry-header,
body.uuacg-chat-app-active .page-header,
body.uuacg-chat-app-active #wpadminbar {
  display: none !important;
}

.uuacg-chat-app {
  position: fixed !important;
  top: var(--uuacg-chat-offset-top, var(--uuacg-viewport-offset-top, 0px));
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: var(--uuacg-chat-height, var(--uuacg-viewport-height, 100dvh)) !important;
  min-height: 0 !important;
  max-height: var(--uuacg-chat-height, var(--uuacg-viewport-height, 100dvh)) !important;
  display: grid !important;
  grid-template-rows: 64px minmax(0, 1fr) 20px !important;
  overflow: hidden !important;
  contain: layout paint;
}
.uuacg-chat-global-header,
.uuacg-chat-workspace,
.uuacg-chat-powered,
.uuacg-chat-list-panel,
.uuacg-active-chat,
.uuacg-chat-details {
  min-width: 0;
  min-height: 0;
}
.uuacg-chat-workspace {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
  transition: grid-template-columns .18s ease;
}
.uuacg-chat-app.has-profile-open .uuacg-chat-workspace {
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr) minmax(300px, 360px);
}
.uuacg-chat-list-panel {
  height: 100%;
  overflow: hidden !important;
}
.uuacg-conversation-list {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.uuacg-active-chat {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
}
.uuacg-active-chat.is-open {
  display: grid !important;
  grid-template-rows: 70px minmax(0, 1fr) auto !important;
}
.uuacg-active-chat-header {
  grid-row: 1;
  min-height: 0;
  height: 70px;
  overflow: hidden;
  flex-wrap: nowrap !important;
}
.uuacg-active-chat-person,
.uuacg-active-chat-person strong,
.uuacg-active-chat-person small {
  min-width: 0;
}
.uuacg-active-chat-header-actions {
  display: flex !important;
  flex: 0 0 auto;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.uuacg-active-chat-header-actions button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.uuacg-conversation-search {
  position: absolute !important;
  z-index: 18;
  top: 70px;
  right: 0;
  left: 0;
  grid-row: auto !important;
  box-shadow: 0 10px 24px rgba(11,31,58,.1);
}
.uuacg-chat-history {
  grid-row: 2;
  position: relative;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scroll-padding-top: 18px;
  scroll-padding-bottom: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

.uuacg-chat-composer {
  grid-row: 3;
  position: relative !important;
  z-index: 12;
  align-self: end;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 91px !important;
  grid-template-rows: auto !important;
  align-items: end !important;
  column-gap: 7px !important;
  row-gap: 0 !important;
  flex-wrap: nowrap !important;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--uuacg-line);
  box-sizing: border-box;
}
.uuacg-chat-composer > [data-chat-file] { display: none !important; }
.uuacg-composer-attach {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: end;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  flex: 0 0 42px !important;
}
.uuacg-composer-main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end;
  display: grid !important;
  gap: 7px;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
}
.uuacg-composer-input {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
}
.uuacg-composer-input textarea {
  display: block;
  min-width: 0 !important;
  min-height: 42px;
  max-height: 120px !important;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
}
.uuacg-chat-composer-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: end;
  width: 91px;
  min-width: 91px;
  display: grid !important;
  grid-template-columns: repeat(2, 42px) !important;
  align-items: center !important;
  justify-content: end;
  gap: 7px !important;
  flex-wrap: nowrap !important;
  overflow: visible;
}
.uuacg-chat-composer-actions > button,
.uuacg-chat-composer-actions .uuacg-voice-record,
.uuacg-chat-composer-actions [data-chat-send] {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 42px !important;
  white-space: nowrap;
}
.uuacg-chat-composer-actions > button[hidden] { display: grid !important; }
.uuacg-chat-composer-actions > button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.uuacg-attachment-queue {
  width: 100%;
  max-height: min(170px, 24dvh);
  overflow-x: hidden;
  overflow-y: auto;
}
.uuacg-recording-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap !important;
}
.uuacg-recording-panel [data-voice-status] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uuacg-chat-powered {
  grid-row: 3;
  min-height: 20px !important;
  height: 20px;
  line-height: 1;
  overflow: hidden;
}

.uuacg-chat-self-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.uuacg-chat-self-profile > span:last-child {
  min-width: 0;
}
.uuacg-chat-self-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg,var(--uuacg-deep-magenta),var(--uuacg-navy));
  color: #fff;
  font-weight: 800;
}
.uuacg-chat-self-avatar img,
.uuacg-chat-self-avatar .uuacg-initials-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.uuacg-chat-details {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.uuacg-chat-details[hidden] { display: none !important; }
.uuacg-chat-details.is-open { display: block !important; }
.uuacg-chat-details > [data-chat-details-close] {
  position: sticky;
  z-index: 8;
  top: 10px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 10px 10px -50px 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: var(--uuacg-navy);
  box-shadow: 0 6px 18px rgba(11,31,58,.14);
  font-size: 24px;
}
.uuacg-chat-profile-cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%,rgba(232,35,167,.65),transparent 30%),linear-gradient(135deg,#0b1f3a,#263c63 58%,#b6458b);
}
.uuacg-chat-profile-actions {
  display: grid;
  gap: 9px;
}
.uuacg-chat-profile-actions a,
.uuacg-chat-profile-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  text-decoration: none !important;
  font-weight: 800;
}
.uuacg-chat-profile-primary { background: var(--uuacg-magenta); color: #fff !important; }
.uuacg-chat-profile-secondary { background: var(--uuacg-soft); color: var(--uuacg-navy) !important; }
.uuacg-chat-profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.uuacg-chat-profile-tags span { padding: 7px 10px; border-radius: 999px; background: var(--uuacg-soft); font-size: 12px; font-weight: 700; }
.uuacg-chat-profile-items { display: grid; gap: 10px; }
.uuacg-chat-profile-item { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 10px; align-items: start; }
.uuacg-chat-profile-item:has(> div:first-child) { grid-template-columns: minmax(0,1fr); }
.uuacg-chat-profile-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.uuacg-chat-profile-item div { min-width: 0; }
.uuacg-chat-profile-item strong,
.uuacg-chat-profile-item p,
.uuacg-chat-profile-item small { display: block; margin: 0 0 4px; }
.uuacg-chat-profile-item p { color: #667085; font-size: 12px; line-height: 1.45; }
.uuacg-chat-profile-item a { color: var(--uuacg-deep-magenta) !important; font-size: 12px; font-weight: 800; }

@media (max-width: 899px) {
  .uuacg-chat-app {
    grid-template-rows: 58px minmax(0, 1fr) 18px !important;
  }
  .uuacg-chat-app.has-profile-open .uuacg-chat-workspace,
  .uuacg-chat-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .uuacg-active-chat.is-open {
    grid-template-rows: 64px minmax(0, 1fr) auto !important;
  }
  .uuacg-active-chat-header {
    height: 64px;
    padding: 8px 9px;
    gap: 7px !important;
  }
  .uuacg-conversation-search { top: 64px; }
  .uuacg-active-chat-header-actions { gap: 4px; }
  .uuacg-active-chat-header-actions button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .uuacg-chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) 84px !important;
    column-gap: 5px !important;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .uuacg-composer-attach {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
  .uuacg-chat-composer-actions {
    width: 84px;
    min-width: 84px;
    grid-template-columns: repeat(2, 40px) !important;
    gap: 4px !important;
  }
  .uuacg-chat-composer-actions > button,
  .uuacg-chat-composer-actions .uuacg-voice-record,
  .uuacg-chat-composer-actions [data-chat-send] {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
  .uuacg-composer-input textarea { max-height: 96px !important; }
  .uuacg-attachment-queue { max-height: min(150px, 22dvh); }
  .uuacg-chat-details {
    position: absolute !important;
    inset: 0 !important;
    z-index: 40 !important;
    width: 100% !important;
    height: 100% !important;
    border-left: 0;
  }
  .uuacg-chat-profile-card { min-height: 100%; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 390px) {
  .uuacg-chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) 84px !important;
    column-gap: 4px !important;
    padding-inline: 5px !important;
  }
  .uuacg-composer-attach,
  .uuacg-chat-composer-actions > button,
  .uuacg-chat-composer-actions .uuacg-voice-record,
  .uuacg-chat-composer-actions [data-chat-send] {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
  .uuacg-chat-composer-actions {
    width: 84px;
    min-width: 84px;
    grid-template-columns: repeat(2,40px) !important;
    gap: 4px !important;
  }
  .uuacg-active-chat-header .uuacg-chat-avatar {
    width: 40px;
    height: 40px;
  }
  .uuacg-active-chat-person strong { font-size: 13px; }
  .uuacg-active-chat-person small { font-size: 10px; }
}
.uuacg-chat-list-head > .uuacg-chat-self-profile {
  width: auto !important;
  height: auto !important;
  min-height: 46px;
  flex: 1 1 auto;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent !important;
  color: var(--uuacg-navy) !important;
  font-size: inherit;
}

/* UUACG 1.8.7: reliable WhatsApp-style audio, upload and browser-sound experience. */
.uuacg-chat-composer {
  grid-template-columns: 42px minmax(0,1fr) 91px !important;
  align-items: end !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
.uuacg-chat-composer .uuacg-composer-main,
.uuacg-chat-composer .uuacg-composer-input,
.uuacg-chat-composer .uuacg-chat-composer-actions { min-width: 0 !important; }
.uuacg-chat-composer .uuacg-chat-composer-actions {
  display: grid !important;
  grid-template-columns: repeat(2,42px) !important;
  flex-wrap: nowrap !important;
}
.uuacg-chat-composer.is-recording .uuacg-composer-input { display: none !important; }
.uuacg-chat-composer.is-recording .uuacg-recording-panel { display: grid !important; }
.uuacg-recording-panel {
  display: grid;
  grid-template-columns: 9px auto minmax(56px,1fr) auto auto auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 5px 7px;
  border: 1px solid rgba(232,35,167,.24);
  border-radius: 15px;
  background: #fff7fc;
  box-sizing: border-box;
  overflow: hidden;
}
.uuacg-recording-panel[hidden] { display: none !important; }
.uuacg-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--uuacg-magenta);
  box-shadow: 0 0 0 0 rgba(232,35,167,.32);
  animation: uuacgRecordingDot 1.15s infinite;
}
@keyframes uuacgRecordingDot { 55% { box-shadow: 0 0 0 7px rgba(232,35,167,0); } }
.uuacg-recording-panel [data-voice-timer] {
  font-variant-numeric: tabular-nums;
  color: var(--uuacg-magenta);
  white-space: nowrap;
  font-size: 12px;
}
.uuacg-recording-panel [data-voice-status] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 11px;
}
.uuacg-recording-panel button {
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--uuacg-navy);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.uuacg-recording-panel [data-voice-stop] { background: var(--uuacg-magenta); color: #fff; }
.uuacg-chat-composer.is-recording-error .uuacg-recording-panel {
  border-color: #c93654;
  background: #fff3f5;
}
.uuacg-queued-attachment {
  position: relative;
  border: 1px solid rgba(11,31,58,.1);
  box-shadow: 0 4px 14px rgba(11,31,58,.06);
}
.uuacg-queued-attachment.is-ready { border-color: rgba(71,139,84,.38); background: #f7fff9; }
.uuacg-queued-attachment.is-failed,
.uuacg-queued-attachment.is-cancelled { border-color: rgba(201,54,84,.35); background: #fff7f8; }
.uuacg-queued-attachment progress { accent-color: var(--uuacg-magenta); }
.uuacg-queued-attachment em { display: block; margin-top: 3px; color: #a22c45; font-size: 11px; font-style: normal; }
.uuacg-queued-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.uuacg-queued-actions button { white-space: nowrap; }
.uuacg-sound-unlock {
  position: fixed;
  z-index: 2147483000;
  right: max(14px,env(safe-area-inset-right,0px));
  bottom: max(28px,calc(env(safe-area-inset-bottom,0px) + 20px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  box-shadow: 0 16px 38px rgba(11,31,58,.28);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.uuacg-sound-unlock:focus-visible { outline: 3px solid #c89b3c; outline-offset: 3px; }
.uuacg-voice-message [data-voice-total] { min-width: 44px; text-align: right; }
.uuacg-voice-message audio { width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .uuacg-chat-composer {
    grid-template-columns: 40px minmax(0,1fr) 84px !important;
    column-gap: 5px !important;
  }
  .uuacg-chat-composer .uuacg-chat-composer-actions { grid-template-columns: repeat(2,40px) !important; }
  .uuacg-recording-panel {
    grid-template-columns: 8px auto minmax(22px,1fr) 30px 30px 30px;
    gap: 4px;
    min-height: 40px;
    padding: 4px 5px;
  }
  .uuacg-recording-panel button {
    display: grid;
    place-items: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .uuacg-recording-panel [data-voice-pause]::before { content: 'Ⅱ'; font-size: 12px; }
  .uuacg-recording-panel [data-voice-cancel]::before { content: '×'; font-size: 18px; }
  .uuacg-recording-panel [data-voice-stop]::before { content: '✓'; font-size: 15px; }
  .uuacg-recording-panel [data-voice-status] { font-size: 10px; }
  .uuacg-sound-unlock { right: 10px; bottom: max(22px,calc(env(safe-area-inset-bottom,0px) + 14px)); }
}

@media (max-width: 390px) {
  .uuacg-chat-composer { grid-template-columns: 38px minmax(0,1fr) 80px !important; column-gap: 3px !important; }
  .uuacg-composer-attach,
  .uuacg-chat-composer-actions > button,
  .uuacg-chat-composer-actions .uuacg-voice-record,
  .uuacg-chat-composer-actions [data-chat-send] {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex-basis: 38px !important;
  }
  .uuacg-chat-composer .uuacg-chat-composer-actions { width: 80px !important; min-width: 80px !important; grid-template-columns: repeat(2,38px) !important; }
  .uuacg-recording-panel { grid-template-columns: 7px auto minmax(12px,1fr) 27px 27px 27px; gap: 3px; }
  .uuacg-recording-panel button { width: 27px; min-width: 27px; height: 27px; min-height: 27px; }
  .uuacg-recording-panel [data-voice-status] { max-width: 38px; }
}

.uuacg-message-image-grid button.has-media-error{display:grid;place-items:center;background:#eef1f4;color:#5f6c7b}.uuacg-message-image-grid button.has-media-error img{display:none}.uuacg-message-image-grid button.has-media-error::after{content:'Image unavailable';font-size:13px;font-weight:700;padding:14px;text-align:center}
