/* Echo ocean palette, shared by Web and H5. */
:root {
  color-scheme: dark;
  --canvas: #061c22;
  --base: #102b30;
  --surface: #17383d;
  --input: #21454a;
  --text: #f1ede3;
  --ink: #f1ede3;
  --muted: #abc1be;
  --quiet: #8da9a5;
  --line: #29474a;
  --border: #29474a;
  --soft: #17383d;
  --panel: #102b30;
  --gold: #d8bd89;
  --accent: #d8bd89;
  --mint: #d8bd89;
  --mint-deep: #d8bd89;
  --mint-pale: #25484a;
  --rail: #102b30;
  --received: #214247;
  --sent: #35625e;
  --coral: #d69c8d;
  --shadow: 0 20px 64px rgba(0, 10, 14, .28);
  color: var(--text);
  background: var(--canvas);
}
body, .app-shell { background: var(--canvas); }
body, button, input, select, textarea { letter-spacing: 0; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection { color: #102b30; background: #d8bd89; }
* { scrollbar-color: #3c6264 transparent; }
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
.conversations, .details { background: var(--base); }
.main-panel { background: #0c252b; }
.conv-head { padding: 31px 23px 21px; }
.conv-title-line { gap: 12px; }
.conv-title { gap: 11px; font-size: 25px; font-weight: 650; line-height: 1.3; }
.brand-header-logo { width: 34px; height: 34px; border-radius: 10px; }
.eyebrow { color: var(--quiet); font-size: 9px; font-weight: 500; margin-bottom: 8px; }
.conv-subtitle { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.conv-title-line > .icon-btn { color: var(--gold); border: 1px solid var(--line); border-radius: 12px; }
.icon-btn { color: var(--muted); }
.icon-btn:hover { color: var(--gold); background: #25484a; }
.search-box { height: 44px; margin-top: 22px; background: #1a3c42; border-color: #2a4a4e; border-radius: 14px; color: var(--quiet); padding-inline: 13px; }
.search-box:focus-within { background: #21454a; border-color: #819181; }
.search-box input { color: var(--text); }
.search-box .icon { width: 18px; height: 18px; }
.tabs { gap: 22px; padding: 4px 23px 12px; }
.tab { color: var(--quiet); font-size: 13px; }
.tab.active { color: var(--gold); font-weight: 600; }
.tab.active::after { height: 2px; background: var(--gold); }
.tab-count { background: #2d4c4e; color: var(--muted); }
.conversation-list { padding: 10px 12px; }
.conversation { padding: 15px 11px; gap: 13px; border: 1px solid transparent; border-radius: 15px; text-align: start; margin-bottom: 3px; }
.conversation:hover { background: #193b40; }
.conversation.active { background: #1d4145; border-color: #34565a; }
.conversation-name { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.conversation-time { color: var(--quiet); font-size: 10px; }
.conversation-preview { color: var(--muted); margin-top: 6px; font-size: 12px; line-height: 1.5; }
.conversation-badge { background: var(--gold); color: #163337; font-weight: 700; min-width: 19px; height: 19px; }
.empty-list, .sidebar-footer { color: var(--quiet); }
.sidebar-footer { padding: 14px 8px 16px; }
.sidebar-footer .icon { color: var(--quiet); }
.avatar { border-radius: 30%; background: #355c5a; color: #e1dcc9; }
.avatar.coral, .avatar.peach { background: #614b45; color: #e6c8b4; }
.avatar.lavender { background: #454b62; color: #d2cee3; }
.avatar.slate { background: #385158; color: #c7d7d8; }
.avatar.blue { background: #344f65; color: #c6d8e7; }
.avatar.md { width: 50px; height: 50px; }
.notice-entry { background: #17383d; border-color: var(--line); border-radius: 13px; margin: 0 12px 9px; width: calc(100% - 24px); padding: 11px 12px; gap: 11px; min-height: 65px; }
.notice-entry:hover, .notice-entry:focus-visible { background: #1e4145; border-color: #49686a; }
.notice-entry > .icon { color: var(--gold); background: #294a4b; border-radius: 11px; width: 20px; height: 20px; padding: 8px; }
.notice-entry-copy strong { font-size: 12px; padding-inline-end: 30px; }
.notice-entry-copy small { color: var(--quiet); font-size: 10px; }
.official-badge { color: var(--gold); font-size: 9px; }
.notice-entry > .official-badge { top: 10px; right: 10px; }
.notice-entry-count, .notice-heading-count, .notice-tab-count { background: var(--gold); color: #163337; }
.notice-unread-dot { background: var(--gold); }
.notice-card:hover, .notice-card:focus-visible { background: #17383d; }
.notice-date, .notice-card-footer > span:last-child, .notice-empty { color: var(--quiet); }
.notice-body { color: var(--text); }
.notice-load-error { background: #3d3331; border-color: #6f4c43; color: #edbcaa; }
.chat-header { height: 83px; background: var(--base); padding-inline: 28px; gap: 13px; }
.chat-title { font-weight: 600; font-size: 17px; line-height: 1.5; }
.chat-subtitle { color: var(--quiet); font-size: 11px; margin-top: 3px; }
.chat-subtitle .icon { color: var(--gold); }
.header-actions { gap: 7px; }
.header-actions .icon-btn { color: #bdc5b1; }
.message-scroller { background: #0c252b; padding-top: 25px; }
.date-separator { color: #8fa9a5; font-size: 10px; margin: 4px 0 27px; }
.date-separator::before, .date-separator::after { background: #29474a; width: 28px; }
.message-row { max-width: 85%; gap: 10px; margin-block: 23px; }
.message-meta, .message-caption { color: #8da9a5; font-size: 10px; line-height: 1.5; }
.message-meta { margin-bottom: 6px; }
.message-caption:empty { display: none; }
.bubble { background: var(--received); border: 1px solid #2c4c50; border-radius: 15px 15px 15px 5px; color: #e8ebdf; box-shadow: none; padding: 12px 15px; font-size: 14px; line-height: 1.8; }
.message-row.mine .bubble { background: var(--sent); border-color: #426f68; color: var(--text); border-radius: 15px 15px 5px 15px; }
.message-row > .avatar { border-radius: 10px; }
.message-actions { opacity: .6; }
.message-actions .icon-btn { color: var(--quiet); }
.audio-play { background: #42625f; color: var(--gold); }
.composer-wrap { background: var(--base); padding: 12px 25px 21px; }
.composer-tools { gap: 5px; margin-bottom: 10px; }
.composer-tools .icon-btn { color: #a8bfba; }
.composer-tools .record-button { color: var(--gold); }
.composer-note { min-width: 0; color: var(--quiet); font-size: 10px; line-height: 1.6; margin-inline-start: 6px; }
.composer { gap: 11px; }
.composer textarea { background: var(--input); border: 1px solid #36585b; border-radius: 14px; color: var(--text); min-height: 48px; padding: 13px 15px; }
.composer textarea:focus { background: #264b50; border-color: #a99973; }
.send-btn { height: 48px; width: 48px; color: #17373a; background: var(--gold); border-radius: 14px; }
.send-btn:hover { background: #e5cfa6; }
.emoji-popover { background: #17383d; border-color: #3d5d5f; }
.preview-banner { color: #d8c59f; background: #2d3d3c; border-color: #485248; font-size: 10px; }
.preview-banner button { color: #eddbb5; }
.search-results-note { background: #193b40; border-color: var(--line); color: var(--muted); }
.details { padding: 30px 23px; }
.details-title { color: var(--muted); font-size: 12px; }
.detail-profile .avatar { width: 68px; height: 68px; border-radius: 21px; }
.detail-name { color: var(--text); font-weight: 600; }
.detail-actions { gap: 19px; }
.detail-action { color: #b4c6bf; }
.detail-action .icon { color: var(--gold); }
.info-label { color: var(--quiet); }
.info-line { color: var(--muted); }
.info-line .value { color: var(--quiet); }
.inline-icon .icon { color: #a7bdb7; }
.status-dot { color: var(--gold); }
.expiry-select { color: var(--muted); background: #1d4045; border-color: #37585a; }
.privacy-note { background: #17383d; border-color: #2b4b4e; color: #a5bab5; }
.privacy-note .icon { color: var(--gold); }
.preview-start p { color: var(--muted); }
.text-btn, .surface-links a { color: var(--gold); }
.fingerprint { background: #1d4145; color: #e2cda3; }
.empty-state { color: var(--quiet); }
.empty-state .icon { color: #9ab9af; }
.empty-state h3 { color: var(--text); }
.bottom-nav, .mobile-tabs { background: var(--base); border-color: #2a484c; }
.mobile-tab { color: #8fa9a5; gap: 5px; position: relative; }
.mobile-tab:hover { background: #17383d; }
.mobile-tab.active { color: var(--gold); font-weight: 500; }
.mobile-tab .icon { position: relative; z-index: 1; width: 23px; height: 23px; }
.mobile-tab.active::before { content: ""; position: absolute; width: 54px; height: 30px; border-radius: 11px; background: #26474a; top: 7px; left: calc(50% - 27px); }
.mobile-tab.active .icon { stroke-width: 1.8; }
.calls-view, .moments-view, .contacts-view, .discover-view, .notices-view { background: var(--base); }
.other-view .main-panel { background: var(--base); }
.view-heading h2 { font-size: 29px; color: var(--text); font-weight: 600; line-height: 1.35; }
.view-heading p { color: var(--muted); font-size: 12px; }
.view-heading > .primary-btn { min-height: 44px; max-width: 46%; height: auto; padding-block: 9px !important; }
.module-list { background: transparent; border-color: var(--line); }
.module-row:hover { background: #1b3c41; }
.module-icon { color: var(--gold); background: #26494a; }
.module-copy strong { font-size: 15px; }
.subpage-back { color: var(--gold); }
.contact-card { background: #17383d; border-color: #2e4c50; }
.contact-card:hover { background: #21454a; border-color: #577474; }
.contact-card .avatar { color: #e1dcc9; }
.settings-row { border-color: #29474a; }
.settings-row strong { color: var(--text); }
.settings-row > .icon-btn { color: var(--gold); background: #26484a; }
.settings-row > .icon { color: var(--quiet); }
.profile-summary { gap: 19px; }
.profile-summary .avatar { border-radius: 23px; }
.profile-avatar-button { border-radius: 23px; }
.profile-avatar-edit { background: var(--gold); color: #17373a; border-color: var(--base); }
.profile-qr-button { background: #26484a; color: var(--gold); }
.post-text { color: var(--text); }
.post-actions button { color: var(--muted); }
.post-actions button.liked { color: #d69c8d; }
.call-toolbar { display: flex; gap: 4px; padding: 5px; margin: 0 0 25px; background: #0b252b; border: 1px solid #2a4749; border-radius: 13px; }
.call-toolbar button { flex: 1; min-width: 0; min-height: 38px; padding: 7px 12px; border-radius: 9px; background: transparent; color: var(--quiet); font-size: 12px; }
.call-toolbar button[aria-pressed="true"] { background: #29484a; color: #e8d9b5; font-weight: 600; }
.call-people { display: flex; gap: 19px; overflow-x: auto; padding: 0 0 24px; margin-bottom: 4px; scrollbar-width: none; }
.call-person { display: flex; flex: 0 0 56px; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 0; background: transparent; }
.call-person .avatar { width: 52px; height: 52px; border-radius: 17px; }
.call-person > span:last-child { display: block; max-width: 68px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.call-date-heading { color: var(--quiet); font-size: 11px; font-weight: 400; margin: 16px 0 0; padding-bottom: 5px; }
.call-item { padding: 18px 0; gap: 13px; }
.call-item > .avatar { width: 47px; height: 47px; border-radius: 15px; }
.call-copy { min-width: 0; }
.call-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.call-copy span { display: flex; align-items: center; gap: 5px; color: var(--quiet); font-size: 11px; margin-top: 6px; }
.call-copy span .icon { width: 12px; height: 12px; }
.call-item.is-missed .call-copy strong, .call-item.is-missed .call-copy span { color: #d69c8d; }
.call-item .call-type { color: #d4ccb1; }
.call-item .call-type .icon { width: 19px; height: 19px; }
.call-stage p { color: var(--muted); }
.call-stage video { background: #061c22; }
.call-stage #local-video { border-color: #879a8d; }
.call-control.toggle { background: #294b4f; color: var(--text); }
.call-control.toggle.is-off { background: #365153; color: #b1bbb5; }
.call-control.accept { background: #75a69a; color: #0c252b; }
.login-screen { background: var(--canvas); }
.login-layout { background: var(--base); border-color: var(--line); box-shadow: var(--shadow); }
.login-intro { background: #17383d; }
.login-copy, .feature-chip, .form-note, .field label { color: var(--muted); }
.login-tagline { color: var(--text); }
.field input, .field select, .modal textarea, .support-reply textarea, .shop-search input, .shop-refund-form select, .shop-refund-form textarea { background: #21454a; color: var(--text); border: 1px solid #37595c; }
.field input:focus, .field select:focus { background: #264b50; border-color: var(--gold); }
.country-search-results { background: #17383d; border-color: #37595c; box-shadow: 0 12px 28px rgba(0, 10, 14, .28); }
.primary-btn, .modal-actions .confirm, .shop-search .confirm, .shop-success .confirm { color: #17373a; background: var(--gold); }
.primary-btn:hover, .modal-actions .confirm:hover { background: #e4cca1; }
.secondary-btn, .modal-actions .cancel { color: var(--muted); border-color: #3b5b5d; background: #1c3e43; }
.secondary-btn:hover, .modal-actions .cancel:hover { background: #294b4f; }
.secondary-btn.danger-btn { color: #e4ad9d; border-color: #684d46; }
.error-text { color: #e9ac9c; }
.login-divider { color: var(--quiet); }
.modal-backdrop { background: rgba(1, 13, 18, .72); backdrop-filter: blur(5px); }
.modal { background: var(--base); color: var(--text); border-color: #355357; border-radius: 16px; box-shadow: 0 24px 96px rgba(0, 6, 9, .5); }
.modal-head { background: #153339; border-bottom-color: var(--line); }
.modal-body p { color: var(--muted); }
.modal-body { overflow-wrap: anywhere; }
.modal-actions { flex-wrap: wrap; }
.modal-body textarea { border-radius: 10px; padding: 12px; }
.language-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0 16px; color: var(--muted); font-size: 12px; }
.language-picker.compact { justify-content: flex-end; }
.language-select { max-width: 65%; min-width: 0; min-height: 38px; padding: 7px 11px; color: var(--text); background: #21454a; border: 1px solid #37595c; border-radius: 9px; }
.login-language { margin-bottom: 15px; }
.select-contact:has(input:checked) { border-color: var(--gold); background: #284b4c; }
.switch { background: #3b5c60; }
.switch.on { background: var(--gold); }
.switch::after { background: #e7e3d7; }
.toast { background: #244b50; border-color: #48686a; color: var(--text); }
.toast.success { background: #2e6358; }
.toast.error { background: #774b43; }
.support-ticket, .shop-number, .shop-order, .me-commerce-shortcuts button { background: #17383d; border-color: #345256; }
.support-ticket:hover { background: #21454a; border-color: #617c78; }
.support-privacy, .support-warning, .shop-notice { background: #303f3c; border-color: #5c5c48; color: #d7c49e; }
.shop-notice strong { color: #e7d4af; }
.support-status { background: #2d484b; color: #b2c4bf; }
.status-open { background: #4e4936; color: #e5c998; }
.status-pending { background: #294752; color: #aec8d9; }
.status-resolved { background: #294d42; color: #b2d5c1; }
.status-closed { background: #334849; color: #b3c1ba; }
.support-message { background: var(--received); }
.support-message.from-user { background: var(--sent); }
.support-message p { color: var(--text); }
.shop-filters button { background: #17383d; border-color: #3c5a5c; border-radius: 8px; }
.shop-filters button.selected { background: #36514e; border-color: #a79975; color: #e5d2ab; }
.shop-number-main strong, .shop-order strong { letter-spacing: 0; }
.shop-number-state, .shop-order-status { color: #d6c297; }
.shop-success code { color: var(--gold); background: #24474a; }
.profile-avatar-preview { border-radius: 30px; background: #355c5a; color: var(--gold); }
.profile-display-name, .my-qr-view strong { color: var(--text); }
.profile-handle, .profile-hint, .profile-status, .my-qr-view > span, .my-qr-view p, .qr-scanner p { color: var(--muted); }
.my-qr-avatar { border-color: #5c7770; border-radius: 13px; }
.my-qr-image { color-scheme: light; background: #fff; border-color: #fff; }
.qr-payload { color: var(--quiet); }
.translation-toolbar { background: var(--base); color: var(--quiet); border-color: var(--line); }
.translation-toolbar .translation-language-select { display: inline-flex; align-items: center; gap: 7px; max-width: none; padding: 0; color: var(--muted); border: 0; background: transparent; }
.translation-language-select select { min-width: 0; max-width: 145px; padding: 6px 8px; border-radius: 8px; background: #1c3e43; color: var(--text); border: 1px solid #3b5b5d; font: inherit; }
.message-translation, .message-row.mine .message-translation { border-color: #3b6160; color: #d9e1d5; }
.message-translation .translation-label { color: var(--muted); letter-spacing: 0; }
.message-translation.is-error { color: #e2aa98; }
html[dir="rtl"] .message-row.mine { margin-inline-start: auto; margin-inline-end: 0; }
html[dir="rtl"] .message-row:not(.mine) { margin-inline-start: 0; margin-inline-end: auto; }
html[dir="rtl"] .message-row.mine .message-meta, html[dir="rtl"] .message-row.mine .message-caption { text-align: start; }
html[dir="rtl"] .notice-entry > .official-badge { right: auto; left: 10px; }
html[data-surface="h5"] .conv-head { padding: 27px 21px 21px; }
html[data-surface="h5"] .conv-title { font-size: 28px; }
html[data-surface="h5"] .conv-subtitle { font-size: 12px; }
html[data-surface="h5"] .conversation-list { padding-inline: 12px; }
html[data-surface="h5"] .conversation { min-height: 84px; padding: 15px 12px; }
html[data-surface="h5"] .conversation-name { font-size: 15px; }
html[data-surface="h5"] .chat-header { height: calc(74px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; gap: 7px; }
html[data-surface="h5"] .chat-title { font-size: 15px; }
html[data-surface="h5"] .chat-subtitle { font-size: 10px; }
html[data-surface="h5"] .header-actions { gap: 0; }
html[data-surface="h5"] .message-row { max-width: 94%; gap: 7px; }
html[data-surface="h5"] .message-row > .avatar { width: 29px; height: 29px; }
html[data-surface="h5"] .message-scroller { padding: 20px 14px 16px; }
html[data-surface="h5"] .bubble { padding: 10px 13px; font-size: 14px; }
html[data-surface="h5"] .composer-wrap { padding: 8px 13px calc(13px + env(safe-area-inset-bottom)); }
html[data-surface="h5"] .composer-tools { margin-bottom: 7px; }
html[data-surface="h5"] .composer-tools .icon-btn { width: 37px; height: 38px; }
html[data-surface="h5"] .composer-note { font-size: 9px; margin-inline-start: 2px; }
html[data-surface="h5"] .composer textarea { font-size: 16px; }
html[data-surface="h5"] .mobile-tabs { height: calc(67px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
html[data-surface="h5"] .mobile-tab.active::before { top: 7px; }
html[data-surface="h5"] .mobile-tab .icon { width: 22px; height: 22px; }
html[data-surface="h5"] .conversations { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
html[data-surface="h5"] .view-heading h2 { font-size: 28px; }
html[data-surface="h5"] .calls-view, html[data-surface="h5"] .moments-view, html[data-surface="h5"] .contacts-view, html[data-surface="h5"] .discover-view, html[data-surface="h5"] .notices-view { padding: calc(25px + env(safe-area-inset-top)) 21px calc(88px + env(safe-area-inset-bottom)); }
html[data-surface="h5"] .translation-toolbar { padding: 8px 14px; font-size: 10px; }
@media (min-width: 701px) {
  html[data-surface="h5"] .app-shell { border-inline-color: #345256; box-shadow: 0 0 80px rgba(0, 8, 12, .25); }
}
@media (max-width: 700px) {
  .conv-head { padding: 27px 21px 21px; }
  .conv-title { font-size: 28px; }
  .conversation { min-height: 84px; padding: 15px 12px; }
  .chat-header { height: calc(74px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; gap: 7px; }
  .chat-title { font-size: 15px; }
  .chat-subtitle { font-size: 10px; }
  .header-actions { gap: 0; }
  .message-row { max-width: 94%; gap: 7px; }
  .message-scroller { padding: 20px 14px 16px; }
  .bubble { padding: 10px 13px; }
  .composer-wrap { padding: 8px 13px calc(13px + env(safe-area-inset-bottom)); }
  .composer-tools { margin-bottom: 7px; }
  .composer-tools .icon-btn { width: 37px; height: 38px; }
  .composer-note { font-size: 9px; margin-inline-start: 2px; }
  .mobile-tabs { height: calc(67px + env(safe-area-inset-bottom)); }
  .mobile-tab .icon { width: 22px; height: 22px; }
  .conversations { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .view-heading h2 { font-size: 28px; }
  .calls-view, .moments-view, .contacts-view, .discover-view, .notices-view { padding: calc(25px + env(safe-area-inset-top)) 21px calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .conv-title { font-size: 25px; }
  .chat-header .header-actions .icon-btn { width: 30px; min-width: 30px; }
  .composer-note { max-width: 106px; font-size: 8px; }
  .view-heading { flex-wrap: wrap; }
  .view-heading > .primary-btn { max-width: 100%; }
}
