:root {
  color-scheme: light;
  --ink: #182321;
  --muted: #66736f;
  --line: #dbe3e1;
  --surface: #ffffff;
  --surface-soft: #f3f7f6;
  --rail: #172421;
  --brand: #146c5b;
  --brand-strong: #0d5446;
  --brand-soft: #dff3ed;
  --mine-bubble: #d9f4e8;
  --accent: #ef765f;
  --warning: #f2b84b;
  --danger: #d84452;
  --shadow: 0 16px 42px rgba(29, 49, 44, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface-soft); color: var(--ink); }
body { min-height: 100dvh; overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[class^="icon-"], [class*=" icon-"] { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.floating-language { position: fixed; z-index: 70; top: 12px; inset-inline-end: 14px; }
.floating-language select { width: auto; padding: 7px 28px 7px 9px; background: rgba(255,255,255,.94); }
.checkbox-row { display: flex; grid-template-columns: none; align-items: center; gap: 9px; }
.checkbox-row input { width: 18px; height: 18px; }

.loading-screen { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--surface); z-index: 100; letter-spacing: .12em; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: white; font-weight: 900; font-size: 28px; box-shadow: var(--shadow); }
.brand-mark.large { width: 68px; height: 68px; font-size: 36px; }
.eyebrow { color: var(--brand); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .16em; }

.auth-screen { height: 100dvh; min-height: 0; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(380px, .85fr); background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
.auth-visual { min-height: 100dvh; padding: clamp(32px, 6vw, 84px); color: white; background: #1a332d; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-visual::after { content: ""; position: absolute; inset: auto -10% -22% 15%; height: 48%; background: var(--accent); transform: rotate(-6deg); opacity: .92; }
.brand-lockup { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.brand-lockup h1 { margin: 0; font-size: clamp(25px, 3vw, 44px); letter-spacing: 0; }
.brand-lockup p { margin: 6px 0 0; color: #c5d6d1; }
.auth-art { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 28px; position: relative; z-index: 1; }
.portrait { width: clamp(90px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 48px; font-weight: 800; border: 5px solid rgba(255,255,255,.8); }
.portrait-one { background: var(--brand); }
.portrait-two { background: #e7a83f; color: #4b3511; }
.voice-wave { display: flex; align-items: center; gap: 6px; height: 100px; }
.voice-wave i { width: 6px; height: 24px; background: white; border-radius: 3px; animation: wave 1s ease-in-out infinite alternate; }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(4) { height: 58px; animation-delay: .2s; }
.voice-wave i:nth-child(3) { height: 86px; animation-delay: .35s; }
@keyframes wave { to { transform: scaleY(.45); opacity: .6; } }
.auth-panel { padding: clamp(28px, 7vw, 90px); align-self: center; width: 100%; max-width: 650px; justify-self: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.auth-tab { border: 0; background: transparent; padding: 14px; color: var(--muted); font-weight: 750; border-bottom: 3px solid transparent; }
.auth-tab.active { color: var(--brand); border-color: var(--brand); }
.auth-form { display: grid; gap: 18px; }
.auth-form h2 { margin: 0; font-size: 32px; letter-spacing: 0; }
.auth-form > p { margin: -10px 0 6px; color: var(--muted); }
.fresh-copy-btn { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.parent-app-link { width:100%; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.about-app-trigger { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }.about-app-trigger span { text-align:start; }.about-app-trigger small { color:var(--muted); font-weight:600; }
.privacy-link { display:block; margin-top:14px; text-align:center; color:var(--brand); font-size:13px; font-weight:700; }
label { display: grid; gap: 7px; color: #3e4a47; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #c9d4d1; border-radius: 6px; padding: 12px 13px; color: var(--ink); background: white; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,108,91,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-field { display: flex; position: relative; }
.password-field input { padding-inline-end: 48px; }
.password-field .icon-btn { position: absolute; inset-inline-end: 4px; top: 4px; }
[dir="rtl"] .password-field input { padding-right: 13px; padding-left: 48px; }
[dir="rtl"] .password-field .icon-btn { right: auto; left: 4px; }
.password-rules { margin: -7px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; list-style: none; color: var(--muted); font-size: 12px; }
.password-rules li::before { content: "○"; margin-inline-end: 6px; }
.password-rules li.valid { color: var(--brand); }
.password-rules li.valid::before { content: "✓"; }
.primary-btn, .secondary-btn { min-height: 42px; border-radius: 6px; padding: 10px 16px; font-weight: 800; border: 1px solid transparent; }
.primary-btn { background: var(--brand); color: white; }
.primary-btn:hover { background: var(--brand-strong); }
.secondary-btn { background: white; border-color: var(--line); color: var(--ink); }
.text-btn { border:0; background:transparent; color:var(--brand); font-weight:750; padding:8px; justify-self:start; }
.admin-bootstrap { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.messenger-shell { height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 74px minmax(300px, 370px) minmax(0, 1fr); background: var(--surface); }
.maintenance-banner { position: fixed; z-index: 125; inset: 0 0 auto; min-height: 58px; padding: 9px max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff4ce; color: #523b00; border-bottom: 1px solid #e8c75c; box-shadow: 0 3px 12px rgba(59,45,0,.12); text-align: start; }
.maintenance-banner[hidden] { display: none; }
.maintenance-banner > i { font-size: 21px; color: #966b00; }.maintenance-banner div { display: grid; gap: 1px; }.maintenance-banner span { font-size: 13px; }
body.maintenance-active { padding-top: 58px; }.maintenance-active .messenger-shell { height: calc(100dvh - 58px); }.maintenance-active .auth-screen { min-height: calc(100dvh - 58px); }
.app-rail { background: var(--rail); padding: 16px 10px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-spacer { flex: 1; }
.rail-btn, .avatar-button, .icon-btn { border: 0; background: transparent; display: inline-grid; place-items: center; color: inherit; }
.rail-btn { width: 46px; height: 46px; border-radius: 8px; color: #a9bbb6; font-size: 19px; position: relative; }
.rail-btn:hover, .rail-btn.active { background: #29413b; color: white; }
.avatar-button { width: 46px; height: 46px; margin-bottom: 12px; padding: 0; }
.avatar-button img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #7fd0bb; }
.nav-badge { position: absolute; top: 2px; inset-inline-end: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: white; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.contacts-pane { min-width: 0; border-inline-end: 1px solid var(--line); background: #fbfdfc; overflow: hidden; display: flex; flex-direction: column; }
.contacts-header { padding: 24px 20px 14px; display: flex; justify-content: space-between; align-items: center; }
.contacts-tools { display: flex; align-items: center; gap: 6px; }.app-language select { width: 58px; padding: 7px; }
.contacts-header h1 { margin: 3px 0 0; font-size: 26px; letter-spacing: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; color: #52605c; font-size: 17px; }
.icon-btn:hover { background: #e7eeec; color: var(--ink); }
.icon-btn.accent, .icon-btn.call { color: var(--brand); background: var(--brand-soft); }
.search-box { margin: 0 20px 12px; display: flex; align-items: center; gap: 10px; background: #edf2f1; padding: 0 12px; border-radius: 6px; color: var(--muted); }
.search-box input { border: 0; box-shadow: none; padding-inline: 0; background: transparent; }
.contact-filters { padding: 0 20px 13px; display: flex; gap: 7px; border-bottom: 1px solid var(--line); }
.filter-chip { border: 0; padding: 7px 12px; border-radius: 16px; background: #edf2f1; color: var(--muted); font-size: 12px; font-weight: 750; }
.filter-chip.active { color: white; background: var(--brand); }
.contacts-list { overflow-y: auto; padding: 8px; }
.contact-row { width: 100%; border: 0; border-radius: 7px; padding: 11px; background: transparent; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 11px; align-items: center; text-align: start; cursor:pointer; }
.contact-row:hover, .contact-row.active { background: #eaf2ef; }
.contact-row:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.avatar-wrap { width: 48px; height: 48px; position: relative; flex: 0 0 auto; }
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.group-avatar { width: 48px; height: 48px; flex: 0 0 48px; position: relative; display: block; border-radius: 50%; background: #dfeae7; color: var(--brand); overflow: hidden; }
.group-avatar > i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; }
.group-avatar img { position: absolute; width: 58%; height: 58%; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.group-avatar img:nth-child(1) { top: 1px; inset-inline-start: 1px; }.group-avatar img:nth-child(2) { bottom: 1px; inset-inline-end: 1px; }.group-avatar img:nth-child(3) { bottom: 0; inset-inline-start: 2px; width: 45%; height: 45%; }
.group-avatar.count-1 img { inset: 0; width: 100%; height: 100%; border: 0; }
.avatar-wrap > .group-avatar { width: 100%; height: 100%; }
.collective-avatar-shell { width: 48px; height: 48px; position: relative; display: block; flex: 0 0 48px; }.collective-avatar-shell > .avatar-wrap { display: block; }.conversation-type-badge { position: absolute; inset-inline-end: -2px; bottom: -2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 2px solid white; background: var(--brand); color: white; font-size: 9px; z-index: 2; }
.online-dot { position: absolute; inset-inline-end: 0; bottom: 1px; width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; background: #2eb872; }
.contact-copy { min-width: 0; }
.contact-copy > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-preview-line { min-width:0; margin-top:3px; display:flex; align-items:center; color:var(--muted); font-size:12px; }
.contact-preview-text { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:start; unicode-bidi:plaintext; }
.contact-meta { text-align: end; color: var(--muted); font-size: 10px; }
.contact-call-join { max-width: 138px; min-height: 28px; padding: 5px 8px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #168b5c; color: white; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.contact-call-join:hover { background: #0f714a; }.contact-call-join span { overflow: hidden; text-overflow: ellipsis; }
.unread-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-top: 5px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: white; font-weight: 800; }

.chat-pane { min-width: 0; min-height: 0; overflow: hidden; position: relative; background: #f5f8f7; }
.empty-chat { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; }
.empty-call-art { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 46px; }
.empty-chat h2 { margin: 22px 0 5px; }
.empty-chat p { color: var(--muted); max-width: 360px; }
.active-chat { height: 100%; min-height: 0; overflow: hidden; display: grid; grid-template-rows: 76px minmax(0,1fr) auto auto; }
.chat-header { width: 100%; min-width: 0; padding: 12px 18px; display: flex; align-items: center; gap: 8px; overflow: hidden; background: white; border-bottom: 1px solid var(--line); }
.chat-person { min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }.chat-person > div:last-child { min-width:0; flex:1 1 0; overflow:hidden; }.chat-person h2,.chat-person p { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-person h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.chat-person p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.chat-actions { min-width: 0; flex: 0 0 auto; display: flex; gap: 5px; }
.chat-join-call { min-height: 38px; max-width: 180px; padding: 7px 11px; border: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #168b5c; color: white; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }.chat-join-call[hidden] { display:none; }.chat-join-call:hover { background:#0f714a; }.chat-join-call span { min-width:0; overflow:hidden; text-overflow:ellipsis; }.chat-join-call strong { flex:0 0 auto; font-variant-numeric:tabular-nums; }
.messages-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 18px; padding: 22px clamp(14px, 4vw, 46px) 30px; display: flex; flex-direction: column; gap: 7px; }
.messages-list > .message:last-child { margin-bottom: 4px; }
.message-day { align-self: center; margin: 10px 0; color: var(--muted); font-size: 11px; }
.message { max-width: min(68%, 620px); min-width: 0; display: flex; gap: 8px; align-items: flex-end; position: relative; }
.message.mine { align-self: flex-end; flex-direction: row-reverse; }
.message.theirs { align-self: flex-start; }
.message-avatar { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.message-bubble { flex: 1 1 auto; min-width: 0; max-width: 100%; padding: 9px 12px 7px; overflow: hidden; background: white; border: 1px solid #e3e9e7; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.03); overflow-wrap: anywhere; }
.message.mine .message-bubble { background: var(--mine-bubble); color: var(--ink); border-color: #b9dfd2; }
.message.selected::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--brand); border-radius: 8px; background: rgba(20,108,91,.08); pointer-events: none; }
.message-select-toggle { display:none; position:absolute; z-index:4; bottom:7px; width:27px; height:27px; padding:0; border:2px solid #8fa39d; border-radius:50%; place-items:center; background:#fff; color:transparent; font-size:12px; box-shadow:0 2px 7px rgba(20,48,40,.16); cursor:pointer; }
.message.theirs .message-select-toggle { inset-inline-start:-36px; }.message.mine .message-select-toggle { inset-inline-end:-36px; }
.message-selection-mode .message.selectable { cursor:pointer; }.message-selection-mode .message-select-toggle { display:grid; }.message-selection-mode .message.selected .message-select-toggle { border-color:var(--brand); background:var(--brand); color:#fff; }
.message-selection-mode .message:not(.selectable) { opacity:.55; }
.message.selection-shake { animation: message-focus .9s ease; }
@keyframes message-focus { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.message.removed .message-bubble { color: var(--muted); background: transparent; border-style: dashed; font-style: italic; }
.message-text { margin: 0; white-space: pre-wrap; }
.message-time { display: block; margin-top: 4px; opacity: .72; font-size: 9px; text-align: end; }
.message-image { display: block; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; object-fit: cover; background:#e7eeec; border-radius: 5px; margin: 0 0 7px; }
.message-media-wrap, .message-video-wrap { width: min(330px, 100%); min-width: 0; max-width: 100%; overflow: hidden; }.message-media-wrap > a:first-child, .media-preview-button { display: block; width: 100%; max-width: 100%; }.media-preview-button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }.message-video-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; object-fit: contain; background: #111; border-radius: 5px; }.message-video-wrap small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.message-file { width: 100%; min-width: 0; max-width: 100%; color: inherit; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.message-file i { font-size: 24px; }
.message-media-wrap, .message-video-wrap { position: relative; }
.media-placeholder { width:280px; max-width:100%; aspect-ratio:4 / 3; display:grid; place-items:center; align-content:center; gap:8px; background:var(--surface-soft); color:var(--muted); font-size:34px; }.media-placeholder small { max-width:90%; font-size:12px; overflow-wrap:anywhere; text-align:center; }
.video-load-button { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:54px; height:54px; border:0; border-radius:50%; display:grid; place-items:center; background:rgba(20,30,28,.82); color:white; font-size:22px; box-shadow:0 3px 14px rgba(0,0,0,.3); }.video-load-button:hover { background:#168d5f; }
.media-save { position: absolute; top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,28,26,.78); color: white; text-decoration: none; }
.downloaded-check { width: 32px; height: 32px; display: grid; place-items: center; color: #2eb872; font-size: 18px; }.message-media-wrap > .downloaded-check, .message-video-wrap > .downloaded-check { position: absolute; top: 4px; inset-inline-end: 4px; border-radius: 50%; background: rgba(255,255,255,.9); }.message-file > .media-save, .message-file > .downloaded-check { position: static; flex: 0 0 34px; margin-inline-start: auto; }.file-open { min-width: 0; color: inherit; display: flex; align-items: center; gap: 9px; text-decoration: none; border: 0; padding: 0; background: transparent; font: inherit; text-align: start; }
.media-download-progress { width:34px; height:34px; position:relative; display:grid; place-items:center; flex:0 0 34px; border-radius:50%; background:conic-gradient(#20a56f var(--download-progress),#d8e5e1 0); color:#0b6d4d; }.media-download-progress::after { content:""; position:absolute; inset:4px; border-radius:50%; background:white; }.media-download-progress i { position:relative; z-index:1; width:5px; height:5px; border-radius:1px; background:currentColor; }.media-download-progress small { position:absolute; top:36px; z-index:1; font-size:8px; color:var(--muted); }.message-media-wrap > .media-download-progress,.message-video-wrap > .media-download-progress { position:absolute; top:4px; inset-inline-end:4px; }.message-file > .media-download-progress { margin-inline-start:auto; }

.image-preview-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #080b0a; color: white; overflow: hidden; }
.image-preview-dialog::backdrop { background: #080b0a; }
.image-preview-toolbar { position: absolute; z-index: 3; inset: max(8px,env(safe-area-inset-top)) 8px auto; display: flex; align-items: center; gap: 4px; direction: ltr; }
.image-preview-toolbar .icon-btn { color: white; background: rgba(8,15,13,.72); }
.toolbar-spacer { flex: 1; }
.image-preview-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; }
.image-preview-stage img { display: block; width: calc(100% - 24px); height: calc(100% - 84px); margin-top: 56px; object-fit: contain; transform-origin: center; will-change: transform; }
.image-preview-close { position: fixed; z-index: 2; top: max(10px, env(safe-area-inset-top)); inset-inline-end: 12px; color: white; background: rgba(0,0,0,.5); }
.file-copy { min-width: 0; }.file-copy span, .file-copy small { display: block; overflow-wrap: anywhere; }.file-copy small { opacity: .72; margin-top: 3px; }
.pdf-preview { display: grid; gap: 7px; width: min(260px, 100%); min-width: 0; max-width: 100%; }.pdf-preview-stage { min-height: 160px; display: grid; place-items: center; gap: 8px; padding: 14px; background: #f3f4f4; color: #c83b47; font-size: 42px; border-radius: 5px; }.pdf-preview-stage span { font-size: 11px; color: var(--muted); }.pdf-preview-stage.loaded { padding: 0; background: #fff; overflow: hidden; }.pdf-preview-stage img { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #fff; border-radius: 4px; }.pdf-meta { font-size: 11px; opacity: .76; }.file-download-btn { margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; color: inherit; text-decoration: none; border-radius: 50%; background: rgba(127,127,127,.14); }
.reply-quote { width: 100%; border: 0; border-inline-start: 3px solid var(--warning); padding: 6px 8px; margin-bottom: 6px; background: rgba(255,255,255,.55); color: inherit; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 7px; align-items: center; text-align: start; font-size: 11px; border-radius: 3px; }
.reply-quote.no-thumb { grid-template-columns: minmax(0,1fr); }.reply-quote img { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; }.reply-quote strong,.reply-quote span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reply-quote span { opacity:.75; margin-top:2px; }
.forwarded-label { display:flex; align-items:center; gap:5px; margin-bottom:5px; font-size:10px; opacity:.7; font-style:italic; }
.message-receipt { display:inline-flex; align-items:center; gap:1px; margin-inline-start:5px; font-size:19px; line-height:1; vertical-align:-3px; opacity:.88; }.message-receipt.read { color:#0a9b70; opacity:1; }
.message { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }.message-text-selection { min-height:190px; resize:vertical; direction:auto; unicode-bidi:plaintext; -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }.compact-dialog { width:min(520px,calc(100vw - 24px)); }
.online-friends-section { padding:8px 12px 7px; margin-bottom:4px; }.online-friends-strip { display:flex; gap:11px; overflow-x:auto; padding:2px 1px 5px; scrollbar-width:thin; scroll-snap-type:x proximity; }.online-friend { width:62px; flex:0 0 62px; display:grid; justify-items:center; gap:5px; border:0; background:transparent; color:var(--ink); cursor:pointer; scroll-snap-align:start; }.online-friend .avatar-wrap { width:48px; height:48px; }.online-friend > span:last-child { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; text-align:center; }.online-friend:hover .avatar-wrap { outline:2px solid #80c8ae; outline-offset:2px; }.filter-chip b { min-width:18px; height:18px; display:inline-grid; place-items:center; margin-inline-start:4px; padding:0 5px; border-radius:9px; background:#dceee7; color:#12654f; font-size:10px; }.contact-avatar-button { flex:0 0 auto; display:grid; place-items:center; border:0; padding:0; background:transparent; cursor:pointer; }.contact-avatar-button:focus-visible { outline:2px solid var(--brand); outline-offset:3px; border-radius:50%; }.contact-receipt { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; margin-inline-end:5px; color:var(--muted); line-height:1; }.contact-receipt i { font-size:18px; }.contact-receipt.read { color:#0a9b70; }.info-avatar-wrap { cursor:zoom-in; }.call-circle.active { color:#fff; background:#16836b; }.call-placeholder small { color:rgba(255,255,255,.76); }
.message-avatar-control { align-self:end; width:30px; height:30px; flex:0 0 30px; padding:0; border:0; border-radius:50%; background:transparent; }.message-avatar-control[data-member-details] { cursor:pointer; }.message-avatar-control[data-member-details]:hover { box-shadow:0 0 0 3px rgba(18,132,102,.18); }
.message-sender-name { display:block; margin:0 0 4px; color:#0b745b; font-size:11px; line-height:1.2; }
.message-selection-bar { position:absolute; z-index:12; top:76px; inset-inline:0; min-height:48px; padding:5px 14px; display:flex; align-items:center; gap:8px; background:#f8fbfa; border-bottom:1px solid var(--line); box-shadow:0 3px 10px rgba(20,40,34,.08); }.message-selection-bar .selection-spacer { flex:1; }.message-selection-bar .danger { color:var(--danger); }
.message:has(.reaction-strip) { margin-bottom: 18px; }
.reaction-strip { position: absolute; z-index: 3; bottom: -16px; inset-inline-end: 8px; display: flex; gap: 3px; padding: 3px; background: white; color: var(--ink); border: 1px solid #d4dfdc; border-radius: 17px; box-shadow: 0 3px 9px rgba(22,45,39,.17); }
.reaction-pill { position: relative; min-width: 29px; height: 29px; padding: 1px 7px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: #f5f8f7; font-size: 19px; line-height: 1; transition: transform .14s ease, background .14s ease, box-shadow .14s ease; }
.reaction-pill:hover, .reaction-pill:focus-visible { z-index: 2; transform: translateY(-2px) scale(1.08); background: #fff4df; box-shadow: 0 3px 9px rgba(46,55,52,.16); outline: none; }
.reaction-pill.mine { background: #dcf4eb; box-shadow: inset 0 0 0 1px #90cfbb; }
.reaction-pill b { color: #52625d; font-size: 11px; font-weight: 800; }
.reaction-pill::after { content: attr(data-reactors); position: absolute; z-index: 5; bottom: calc(100% + 8px); inset-inline-end: 0; width: max-content; max-width: min(260px, 72vw); padding: 6px 8px; border-radius: 5px; background: #172421; color: white; font-size: 11px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease; }
.reaction-pill:hover::after, .reaction-pill:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(0); }
.reaction-picker { position: fixed; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 7px; border: 1px solid #d6e0dd; border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(22,45,39,.24); }
.reaction-picker button { flex: 0 1 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; font-size: 25px; line-height: 1; transition: transform .14s ease, background .14s ease; }
.reaction-picker button:hover, .reaction-picker button:focus-visible { transform: translateY(-3px) scale(1.12); background: #fff2db; outline: none; }
.reaction-picker button.active { background: #d8f2e8; box-shadow: inset 0 0 0 2px #55ad91; }
.reaction-picker .remove-reaction { color: var(--danger); font-size: 16px; background: #fff0f1; }
.typing-indicator { margin: 0 24px 7px; min-height:22px; display: flex; align-items:center; gap: 7px; color:var(--muted); font-size:12px; }
.typing-indicator strong { font-weight:600; }.typing-dots { display:flex; gap:4px; }.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #95a39f; animation: typing .7s infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { to { transform: translateY(-4px); } }
.reply-bar { margin: 0 14px; padding: 8px 12px; background: white; border-inline-start: 4px solid var(--brand); display: flex; align-items: center; justify-content: space-between; }
.reply-bar small { color: var(--brand); font-weight: 800; }.reply-bar p { margin: 2px 0 0; color: var(--muted); }
.reply-bar p { display:flex; align-items:center; gap:8px; }.reply-bar p img { width:34px; height:34px; border-radius:4px; object-fit:cover; }
.composer { width: 100%; min-width: 0; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); display: flex; align-items: flex-end; gap: 5px; overflow: hidden; }
.composer .gallery-btn { color: #13866b; font-size: 19px; }
.composer textarea { flex: 1 1 0; width: 0; min-width: 0; resize: none; max-height: 130px; min-height: 42px; padding: 10px 13px; background: #f0f4f3; border: 0; direction: auto; unicode-bidi: plaintext; text-align: start; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.message-link { color:inherit; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.link-preview-shell:empty { display:none; }.link-preview { width:min(340px,72vw); margin-top:7px; display:block; overflow:hidden; border:1px solid rgba(20,65,53,.18); border-radius:6px; background:rgba(255,255,255,.7); color:var(--ink); text-decoration:none; }.link-preview > img { display:block; width:100%; aspect-ratio:1.91/1; object-fit:cover; background:#e8eeec; }.link-preview-copy { display:grid; gap:3px; padding:9px 10px; }.link-preview-copy small { color:var(--muted); text-transform:uppercase; font-size:9px; }.link-preview-copy strong { font-size:13px; line-height:1.3; }.link-preview-copy > span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:var(--muted); font-size:11px; line-height:1.35; }
.send-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand); color: white; flex: 0 0 auto; }
.voice-record-btn { color: var(--brand); font-size: 19px; }
.voice-recorder-panel { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px 5px 4px 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #b9d9cf; border-radius: 22px; background: #f1f8f6; }
.voice-recording-status { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; color: #ad2c3b; }
.voice-recording-status > i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #db4050; animation: recording-pulse 1s ease-in-out infinite; }
.voice-recording-status strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.voice-recording-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.voice-recorder-panel audio { flex: 1 1 0; width: 0; min-width: 96px; height: 36px; }
.voice-recorder-panel .icon-btn, .voice-recorder-panel .send-btn { width: 36px; height: 36px; flex: 0 0 36px; }
.voice-stop-btn { color: white; background: #d84452; }
.voice-recorder-panel.reviewing .voice-recording-status { display: none; }
.composer.voice-recorder-active > :not(.voice-recorder-panel) { display: none !important; }
.message-audio-player { width:min(350px,calc(100vw - 112px)); min-width:min(245px,calc(100vw - 112px)); display:grid; grid-template-columns:40px minmax(88px,1fr) 38px 34px; align-items:center; gap:7px; direction:ltr; }
.message-audio-player audio { display:none; }
.audio-play-toggle, .audio-speed-toggle { height:38px; border:0; display:grid; place-items:center; cursor:pointer; }
.audio-play-toggle { width:38px; border-radius:50%; background:var(--brand); color:#fff; font-size:15px; }
.mine .audio-play-toggle { background:#fff; color:#136c5b; }
.audio-speed-toggle { width:38px; padding:0; border-radius:6px; background:rgba(255,255,255,.66); color:inherit; font-size:11px; font-weight:900; direction:ltr; }
.audio-timeline { min-width:0; display:grid; gap:4px; }
.audio-timeline input[type=range] { --audio-progress:0%; width:100%; height:18px; margin:0; padding:0; border:0; background:transparent; accent-color:var(--brand); cursor:pointer; }
.audio-timeline input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(to right,var(--brand) 0 var(--audio-progress),rgba(47,69,63,.24) var(--audio-progress) 100%); }
.audio-timeline input[type=range]::-webkit-slider-thumb { width:13px; height:13px; margin-top:-4.5px; border:0; border-radius:50%; background:var(--brand); -webkit-appearance:none; }
.audio-timeline input[type=range]::-moz-range-track { height:4px; border-radius:4px; background:rgba(47,69,63,.24); }
.audio-timeline input[type=range]::-moz-range-progress { height:4px; border-radius:4px; background:var(--brand); }
.audio-timeline input[type=range]::-moz-range-thumb { width:13px; height:13px; border:0; border-radius:50%; background:var(--brand); }
.mine .audio-timeline input[type=range] { accent-color:#fff; }.mine .audio-timeline input[type=range]::-webkit-slider-runnable-track { background:linear-gradient(to right,#fff 0 var(--audio-progress),rgba(255,255,255,.32) var(--audio-progress) 100%); }.mine .audio-timeline input[type=range]::-webkit-slider-thumb,.mine .audio-timeline input[type=range]::-moz-range-thumb { background:#fff; }.mine .audio-timeline input[type=range]::-moz-range-progress { background:#fff; }
.audio-times { display:flex; justify-content:space-between; align-items:center; gap:4px; color:inherit; opacity:.78; font-size:10px; font-variant-numeric:tabular-nums; direction:ltr; }
.message-audio-player .media-save, .message-audio-player .downloaded-check { position:static; width:34px; height:34px; flex:0 0 34px; }
.message-audio-player .media-download-progress { width:34px; height:34px; }
.audio-file-meta { max-width:min(350px,calc(100vw - 112px)); margin-top:5px; display:flex; align-items:center; gap:5px; opacity:.75; font-size:9px; overflow:hidden; }.audio-file-meta span:nth-of-type(1) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.audio-file-meta i { flex:0 0 auto; }
@media (max-width:380px) { .message-audio-player { grid-template-columns:38px minmax(72px,1fr) 34px 32px; gap:5px; min-width:0; }.audio-play-toggle,.audio-speed-toggle { width:34px; height:34px; }.message-audio-player .media-save,.message-audio-player .downloaded-check { width:32px; height:32px; } }
@keyframes recording-pulse { 50% { opacity: .35; transform: scale(.78); } }
.send-btn, .send-btn i { direction: ltr; unicode-bidi: isolate; }
#attachmentButton { font-size: 23px; width: 44px; height: 44px; }

.app-dialog { width: min(94vw, 510px); max-height: 90dvh; padding: 0; border: 0; border-radius: 8px; box-shadow: var(--shadow); color: var(--ink); }
.app-dialog.wide { width: min(94vw, 680px); }
.app-dialog::backdrop, .call-dialog::backdrop { background: rgba(12, 23, 20, .6); backdrop-filter: blur(4px); }
.dialog-head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 4px 0 0; font-size: 21px; }
.dialog-body { padding: 20px; display: grid; gap: 16px; overflow-y: auto; }
.credential-summary input { font-size:18px; font-weight:800; direction:ltr; text-align:center; }
.admin-settings-body fieldset { min-width:0; }
.admin-settings-tabs { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:5px; background:#eef4f2; border:1px solid var(--line); border-radius:7px; }.admin-settings-tabs button { min-width:0; min-height:38px; border:0; border-radius:5px; background:transparent; color:var(--muted); font:inherit; font-weight:700; }.admin-settings-tabs button.active { background:white; color:var(--brand); box-shadow:0 1px 4px rgba(20,50,42,.12); }.inline-help { width:25px; height:25px; margin-inline-start:5px; border:0; border-radius:50%; background:#e6f4ef; color:var(--brand); vertical-align:middle; cursor:pointer; }.has-context-help { position:relative; padding-inline-end:34px; }.has-context-help > .contextual-field-help { position:absolute; top:-4px; inset-inline-end:0; margin:0; z-index:1; }.help-content { line-height:1.7; }.help-content ol { margin:0; padding-inline-start:24px; display:grid; gap:10px; }.friend-request-warning { display:grid; grid-template-columns:28px minmax(0,1fr); gap:9px; align-items:start; padding:10px; margin:0; border-inline-start:3px solid #db9b28; background:#fff8e8; color:#6f4b0e; border-radius:5px; }.friend-request-warning > i { width:28px; height:28px; display:grid; place-items:center; }
.quality-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:end; }
.profile-overrides { display:grid; gap:10px; }
.profile-back { width:max-content; max-width:100%; }.profile-override-section { display:grid; gap:10px; }.profile-override-section > h3 { margin:2px 0 0; padding-bottom:7px; border-bottom:1px solid var(--line); color:var(--brand); font-size:15px; }
.profile-override { display:grid; grid-template-columns:minmax(160px,.8fr) minmax(180px,1.2fr); gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:6px; }
.profile-override.formats { grid-template-columns:1fr; }
.assigned-users { display:flex; flex-wrap:wrap; gap:7px; }
.assigned-user { display:inline-flex; align-items:center; gap:7px; padding:5px 7px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); }
.assigned-user img { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.assigned-user button { border:0; background:transparent; color:var(--danger); }
.member-picker.compact { max-height:220px; }
.form-note { color: var(--muted); font-size: 12px; }
.diagnostic-status { margin:10px 0 0; padding:10px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.5 ui-monospace,monospace; }.diagnostic-status.success { border-color:#8acdaf; background:#edf9f3; color:#12623f; }.diagnostic-status.error { border-color:#e3a3ab; background:#fff2f3; color:#8d2633; }
.request-list { min-height: 130px; }
.request-section { display:grid; gap:0; }.request-section + .request-section { margin-top:16px; padding-top:16px; border-top:2px solid var(--line); }
.request-section h3 { margin:0; padding-bottom:6px; color:var(--brand); font-size:15px; }
.request-card { display: grid; grid-template-columns: 58px 1fr; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.request-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.request-pending { display:inline-flex; align-items:center; gap:6px; width:max-content; margin-top:5px; color:var(--muted); font-size:12px; }
.request-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.danger-btn { color:#fff; background:var(--danger); border:1px solid var(--danger); border-radius:6px; padding:9px 13px; font-weight:750; }
.danger-btn:hover { color:#fff; background:#ad303d; border-color:#ad303d; }
.danger-outline { color:var(--danger); background:#fff; border:1px solid #df8d97; border-radius:6px; padding:9px 13px; font-weight:750; }
.danger-outline:hover { background:#fff2f3; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.dialog-actions > button { flex:1 1 160px; }
.avatar-editor { display: grid; justify-items: center; gap: 12px; }
.avatar-editor canvas { width: min(70vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }
.avatar-editor label { width: 100%; }
.file-label { display: inline-flex; width: auto !important; align-items: center; gap: 8px; cursor: pointer; }
.profile-id { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface-soft); border-radius: 6px; }
.profile-id strong { font-size: 18px; color: var(--brand); }
.profile-app-card { display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); }
.profile-app-card > img { width:52px; height:52px; object-fit:contain; border-radius:12px; }
.profile-app-card > div { min-width:0; display:grid; gap:2px; }
.profile-app-card span,.profile-app-card small { color:var(--muted); overflow-wrap:anywhere; }
.saved-messages-avatar { position:relative; }.saved-messages-avatar > i { position:absolute; inset-inline-end:-2px; bottom:-2px; width:20px; height:20px; display:grid; place-items:center; border:2px solid white; border-radius:50%; background:#e7a927; color:#253631; font-size:9px; }
.delete-choice-list { display:grid; gap:7px; }.delete-choice-list > label { display:grid; grid-template-columns:22px minmax(0,1fr); gap:9px; align-items:start; padding:10px; border:1px solid var(--line); border-radius:6px; cursor:pointer; }.delete-choice-list > label:has(input:checked) { border-color:#c65f6b; background:#fff5f6; }.delete-choice-list input { margin-top:3px; accent-color:var(--danger); }.delete-choice-list span { display:grid; gap:3px; }.delete-choice-list small { color:var(--muted); line-height:1.4; }.destructive-note { margin:0; padding:9px 10px; border-inline-start:3px solid var(--danger); border-radius:4px; background:#fff2f3; color:#7c2933; font-size:12px; line-height:1.5; }

.onboarding-dialog { width:min(94vw,760px); max-height:94dvh; padding:0; border:0; border-radius:8px; color:var(--ink); box-shadow:0 24px 70px rgba(8,25,20,.34); }.onboarding-dialog::backdrop { background:rgba(8,20,17,.72); backdrop-filter:blur(5px); }.tour-shell { position:relative; display:grid; grid-template-columns:minmax(230px,.85fr) minmax(280px,1.15fr); grid-template-areas:"visual copy" "visual progress" "visual actions"; min-height:480px; overflow:hidden; background:white; }.tour-skip { position:absolute; z-index:3; top:14px; inset-inline-end:14px; border:0; padding:7px 9px; border-radius:5px; background:rgba(255,255,255,.9); color:var(--muted); font:inherit; font-size:12px; font-weight:700; cursor:pointer; }.tour-visual { grid-area:visual; min-height:100%; display:grid; place-items:center; overflow:hidden; background:#143e34; }.tour-copy { grid-area:copy; align-self:end; display:grid; gap:10px; padding:58px 34px 18px; }.tour-copy h2 { margin:0; font-size:30px; line-height:1.1; letter-spacing:0; }.tour-copy > p { margin:0; color:#475853; line-height:1.7; }.tour-tip { display:grid; grid-template-columns:24px minmax(0,1fr); gap:8px; align-items:start; padding:10px; border-inline-start:3px solid #e5aa2f; border-radius:4px; background:#fff8e7; color:#624a19; font-size:12px; line-height:1.5; }.tour-tip > i { width:24px; height:24px; display:grid; place-items:center; }.tour-progress { grid-area:progress; display:flex; align-items:center; gap:6px; padding:4px 34px 16px; }.tour-progress button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#c5cfcc; cursor:pointer; transition:width .2s,background .2s; }.tour-progress button.active { width:26px; border-radius:4px; background:#168b68; }.tour-actions { grid-area:actions; align-self:end; display:flex; justify-content:space-between; gap:10px; padding:0 34px 28px; }.tour-actions button { min-width:120px; }.tour-scene { position:relative; width:min(250px,78%); aspect-ratio:1; display:grid; place-items:center; }.tour-main-icon { position:relative; z-index:2; width:112px; height:112px; display:grid; place-items:center; border:2px solid rgba(255,255,255,.64); border-radius:50%; background:#f8fbfa; color:#12664f; font-size:45px; box-shadow:0 14px 34px rgba(0,0,0,.24); animation:tour-main-float 2.6s ease-in-out infinite; }.tour-float-icon { position:absolute; z-index:2; width:48px; height:48px; display:grid; place-items:center; border-radius:50%; color:#20332e; box-shadow:0 8px 20px rgba(0,0,0,.22); animation:tour-orbit 3.4s ease-in-out infinite; }.tour-float-icon.one { top:23px; inset-inline-start:12px; background:#f2b94b; }.tour-float-icon.two { inset-inline-end:10px; bottom:28px; background:#ee7b87; color:white; animation-delay:-1.4s; }.tour-motion-line { position:absolute; width:72%; height:72%; border:1px dashed rgba(255,255,255,.45); border-radius:50%; animation:tour-spin 14s linear infinite; }.tour-scene-files .tour-main-icon,.tour-scene-groups .tour-main-icon { color:#9b3947; }.tour-scene-calls .tour-main-icon { color:#126287; }.tour-scene-security .tour-main-icon { color:#7b5520; }.tour-scene-ready .tour-main-icon { color:#168b68; }
@keyframes tour-main-float { 50% { transform:translateY(-8px) scale(1.025); } } @keyframes tour-orbit { 50% { transform:translate(7px,-9px) rotate(7deg); } } @keyframes tour-spin { to { transform:rotate(360deg); } }
.about-app { text-align:center; justify-items:stretch; }
.about-app > img { width:92px; height:92px; margin:auto; object-fit:contain; border-radius:20px; }
.about-app h3,.about-app p { margin:0; }.about-app p { margin-top:6px; color:var(--muted); line-height:1.55; }
.about-app dl { margin:0; display:grid; border:1px solid var(--line); border-radius:7px; overflow:hidden; text-align:start; }
.about-app dl > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:10px 12px; }.about-app dl > div + div { border-top:1px solid var(--line); }
.about-app dt { color:var(--muted); }.about-app dd { margin:0; font-weight:800; }
.device-list { display:grid; gap:8px; }
.device-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:6px; }
.device-item > i { width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:var(--surface-soft); color:var(--brand); font-size:18px; }
.device-item span { min-width:0; display:grid; gap:2px; }
.device-item strong,.device-item small { overflow-wrap:anywhere; }
.device-item small { color:var(--muted); }
.contact-details { display: grid; justify-items: center; gap: 7px; padding: 8px 0 14px; text-align: center; }
.info-avatar-wrap { width: 92px; height: 92px; }.info-avatar-wrap > img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #d9eee7; }.info-avatar-wrap .group-avatar.large { width: 92px; height: 92px; }.info-avatar-wrap .group-avatar.large img { border-width: 3px; }
.contact-details h3, .contact-details p { margin: 0; }
.contact-details p { color: var(--muted); }
.group-member-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }.group-member { display: flex; align-items: center; gap: 10px; padding: 7px; border-bottom: 1px solid var(--line); }.group-member img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.invite-result { display:grid; gap:9px; padding-top:4px; }.invite-result label { margin:0; }.invite-copy-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.invite-quota { display:grid; grid-template-columns:38px minmax(0,1fr); gap:10px; align-items:center; padding:11px; border:1px solid #b9dfd2; border-radius:7px; background:#f1faf7; color:#185f4f; }.invite-quota > i { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#d8f1e8; font-size:17px; }.invite-quota div { min-width:0; display:grid; gap:3px; }.invite-quota small { color:#52736a; line-height:1.45; }.invite-quota.error { border-color:#e5b7bd; background:#fff4f5; color:var(--danger); }.invite-quota.error > i { background:#f8dfe2; }
.attachment-queue { display: grid; gap: 8px; max-height: 50dvh; overflow: auto; }
.attachment-item { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.attachment-item img { width: 62px; height: 56px; object-fit: cover; border-radius: 5px; }.attachment-thumb { width: 62px; height: 56px; display: grid; place-items: center; background: var(--surface-soft); font-size: 25px; }
.attachment-actions { display: flex; gap: 3px; }.attachment-actions button { width: 31px; height: 31px; }
.active-uploads { padding: 7px 12px; display: grid; gap: 6px; background: #f5f8f7; border-top: 1px solid var(--line); max-height: 190px; overflow-y: auto; }
.active-upload { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px auto; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid #d7e3df; border-radius: 7px; background: white; }
.active-upload > img,.active-upload-file { width: 42px; height: 42px; border-radius: 5px; object-fit: cover; display: grid; place-items: center; background: var(--surface-soft); color: var(--brand); font-size: 19px; }
.active-upload-copy { min-width: 0; display: grid; gap: 2px; }.active-upload-copy strong,.active-upload-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.active-upload-copy small { color: var(--muted); font-size: 11px; }.active-upload.failed { border-color: #e3a3ab; }.active-upload.done { border-color: #83c9ae; }
.upload-progress { --upload-progress: 0deg; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--brand) var(--upload-progress),#dce6e3 0); color: var(--brand); }
.upload-progress::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: white; }.upload-progress > * { position: relative; z-index: 1; }.upload-progress b { font-size: 9px; }.active-upload.failed .upload-progress { color: var(--danger); background: #f7dfe2; }.active-upload.done .upload-progress { color: #087c52; background: #d9f2e8; }
.media-browser-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.conversation-media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(132px,1fr)); gap: 9px; min-height: 120px; }
.conversation-media-item { min-width: 0; padding: 0 0 8px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: grid; gap: 4px; background: white; color: var(--ink); text-align: start; }
.conversation-media-item:hover { border-color: #8bc7b3; background: #f8fcfa; }.conversation-media-thumb { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #e8efed; color: var(--brand); font-size: 30px; }.conversation-media-thumb img { width: 100%; height: 100%; object-fit: cover; }.conversation-media-item strong,.conversation-media-item small { margin-inline: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.conversation-media-item strong { font-size: 12px; }.conversation-media-item small { color: var(--muted); font-size: 9px; }.media-kind-badge { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.65); color: white; font-size: 13px; }.media-browser-empty { grid-column: 1/-1; text-align: center; align-self: center; }
.conversation-media-state { margin:3px 8px 0; display:flex; align-items:center; gap:5px; min-width:0; color:#177f5b; font-size:10px; }.conversation-media-state span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.media-state-progress { width:14px; height:14px; flex:0 0 14px; border-radius:50%; background:conic-gradient(#20a56f var(--download-progress),#d8e5e1 0); position:relative; }.media-state-progress::after { content:""; position:absolute; inset:3px; border-radius:50%; background:white; }
.member-picker { display: grid; gap: 6px; max-height: 280px; overflow: auto; }.member-option { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 7px; border-bottom: 1px solid var(--line); }.member-option img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }.member-option input { width: 18px; }
.contact-copy .live-activity { color: #087c62; font-weight: 700; }
.contact-meta { display: grid; justify-items: end; gap: 5px; }
.contact-pin-btn { width:30px; height:30px; margin:-6px -6px -3px; padding:0; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:#93a09c; opacity:.7; }
.contact-pin-btn:hover,.contact-pin-btn:focus-visible,.contact-pin-btn.active { background:#dcece6; color:#087c62; opacity:1; }
.pinned-mark { color:inherit; font-size:18px; }
.collective-custom-avatar,.collective-custom-avatar img { width:50px; height:50px; border-radius:50%; object-fit:cover; }
.broadcast-avatar { display: grid; place-items: center; background: #e4f4ed; color: #087c62; font-size: 20px; }
.broadcast-avatar.large { font-size: 32px; }
.mode-segments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.mode-segments label { cursor: pointer; }
.mode-segments input { position: absolute; opacity: 0; pointer-events: none; }
.mode-segments span { min-height: 42px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.mode-segments input:checked + span { border-color: #16836b; background: #e4f4ed; color: #08664f; box-shadow: inset 0 0 0 1px #16836b; }
.conversation-settings { display: grid; gap: 12px; padding-block: 12px; border-block: 1px solid var(--line); }
.conversation-avatar-editor,.new-conversation-avatar { display:flex; align-items:center; gap:12px; }.conversation-avatar-editor img,.new-conversation-avatar img { width:72px; height:72px; flex:0 0 72px; border-radius:50%; object-fit:cover; border:2px solid #d9eee7; background:var(--surface-soft); }.conversation-avatar-editor label,.new-conversation-avatar label { cursor:pointer; }
.member-details-avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; border:3px solid #d9eee7; }
.office-file { width: min(330px, 100%); min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; }
.office-preview { grid-column: 1 / -1; display: block; width: min(220px,100%); aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f3f5f4; }
.office-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.format-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.format-grid label { display: flex; align-items: center; gap: 7px; }.format-grid input { width: 17px; }
fieldset { border: 1px solid var(--line); border-radius: 7px; padding: 12px; } legend { font-weight: 800; }
.recovery-guide { margin:0; padding-inline-start:22px; display:grid; gap:9px; }.recovery-guide li { padding-inline-start:3px; }.recovery-guide strong,.recovery-guide span { display:block; }.recovery-guide span { margin-top:2px; color:var(--muted); font-size:12px; line-height:1.5; }

.call-dialog { padding: 0; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.incoming-call { min-width: min(88vw, 360px); padding: 30px; display: grid; justify-items: center; gap: 8px; background: #18322c; color: white; }
.incoming-call img { width: 105px; height: 105px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.7); }
.incoming-call h2 { margin: 4px 0 20px; }
.incoming-call > div { display: flex; gap: 38px; }
.call-overlay { position: fixed; inset: 0; z-index: 80; background: #101716; color: white; display: grid; grid-template-rows: 1fr auto; }
.call-topbar { position:absolute; z-index:5; top:max(12px,env(safe-area-inset-top)); inset-inline-start:14px; display:flex; align-items:center; gap:10px; }
.call-topbar strong { min-width:64px; padding:7px 10px; border-radius:5px; background:rgba(0,0,0,.55); text-align:center; font-variant-numeric:tabular-nums; }
.call-participant-count { min-height: 34px; padding: 6px 9px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); color: white; font-size: 12px; font-variant-numeric: tabular-nums; }.call-participant-count b { font-weight: 800; }.call-layout-reset { background: rgba(0,0,0,.62); }
.call-circle.compact { width:42px; height:42px; font-size:17px; }.call-circle.compact i { font-size:17px; }
.available-call { position:fixed; z-index:75; top:max(12px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); min-height:44px; max-width:calc(100vw - 24px); padding:8px 14px; border:0; border-radius:7px; display:flex; align-items:center; gap:8px; background:#168b5c; color:white; box-shadow:var(--shadow); font-weight:800; white-space:nowrap; }
.available-call[hidden] { display:none; }
.available-call strong { font-variant-numeric:tabular-nums; }
.remote-media { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.remote-media video { width: 100%; height: 100%; object-fit: cover; }
.remote-media.group-media { --call-grid-columns: 1; --call-grid-rows: 1; --call-secondary-count: 1; place-items: stretch; grid-template-columns: repeat(var(--call-grid-columns), minmax(0,1fr)); grid-template-rows: repeat(var(--call-grid-rows), minmax(0,1fr)); grid-auto-flow: dense; gap: 3px; padding: max(62px,calc(env(safe-area-inset-top) + 56px)) 3px 3px; }
.call-participant { min-width: 0; min-height: 0; position: relative; isolation: isolate; display: grid; grid-template-rows: minmax(0,1fr) auto; background: #1c2826; overflow: hidden; cursor: pointer; }
.participant-visual { min-height: 0; display: grid; place-items: center; overflow: hidden; }.participant-visual img { width: clamp(64px,28%,104px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; transition:box-shadow .18s,transform .18s; }.participant-visual video { width: 100%; height: 100%; object-fit: cover; }.participant-state-dot { position:absolute; width:13px; height:13px; border:2px solid #1c2826; border-radius:50%; background:#78827f; transform:translate(39px,39px); }.call-participant.joined .participant-state-dot { background:#2bd27f; }.call-participant.waiting .participant-state-dot { background:#f5b942; }.call-participant.speaking .participant-visual img { box-shadow:0 0 0 5px #2bd27f,0 0 22px rgba(43,210,127,.7); transform:scale(1.03); }.call-participant.speaking .participant-visual { box-shadow:inset 0 0 0 4px #2bd27f; }
.call-participant > span { position: absolute; z-index: 2; inset-inline: 10px auto; bottom: 24px; max-width: calc(100% - 20px); padding: 4px 7px; overflow: hidden; border-radius: 4px; background: rgba(0,0,0,.58); color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.call-participant > small { position:absolute; z-index:2; inset-inline:12px auto; bottom:7px; max-width:calc(100% - 24px); overflow:hidden; color:#dce6e3; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.call-participant.offline { opacity: .55; }
.call-tile-actions { position: absolute; z-index: 4; top: 9px; inset-inline-end: 9px; display: flex; gap: 6px; }.call-tile-actions button { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.58); color: white; font-size: 14px; }.call-tile-actions button:hover,.call-tile-actions button:focus-visible { background: rgba(20,108,91,.92); outline: 2px solid white; outline-offset: 1px; }
.remote-media.group-media.has-enlarged { grid-template-columns: minmax(0,2fr) minmax(130px,1fr); grid-template-rows: repeat(var(--call-secondary-count),minmax(0,1fr)); }.group-media.has-enlarged .call-participant.is-enlarged { grid-column: 1; grid-row: 1 / -1; }.group-media.has-enlarged .call-participant:not(.is-enlarged) { grid-column: 2; }
.remote-media.group-media.is-focused { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }.group-media.is-focused .call-participant:not(.is-focused) { display: none; }.group-media.is-focused .call-participant.is-focused { grid-column: 1; grid-row: 1; }
.remote-audio { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.call-status { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 10px; border-radius: 5px; background: rgba(0,0,0,.55); font-size: 12px; }
.call-placeholder { display: grid; justify-items: center; gap: 8px; }.call-placeholder img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.local-media { position: absolute; top: max(20px, env(safe-area-inset-top)); inset-inline-end: 20px; width: min(28vw, 210px); aspect-ratio: 3/4; border: 2px solid rgba(255,255,255,.75); background: #27312f; box-shadow: var(--shadow); overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.local-media video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.local-media.is-environment video { transform: none; }
.local-media:empty { display: none; }
.call-controls { display:grid; grid-template-columns:repeat(5,minmax(44px,58px)); justify-content:center; gap:clamp(7px,2vw,14px); padding:16px 14px max(16px,env(safe-area-inset-bottom)); overflow:visible; background:rgba(16,23,22,.94); }
.call-controls > * { min-width:0; }.call-output-picker,.call-more-picker { width:100%; }.call-controls > .call-circle,.call-output-picker > .call-circle,.call-more-picker > .call-circle { width:100%; height:auto; aspect-ratio:1; }
.call-circle { width:58px; height:58px; padding:0; border-radius:50%; border:0; display:grid; place-items:center; background:#34423f; color:white; font-size:27px; cursor:pointer; }
.call-circle i { font-size:27px; line-height:1; }.call-circle:hover,.call-circle:focus-visible { background:#465753; outline:2px solid rgba(255,255,255,.88); outline-offset:2px; }.call-circle:disabled { opacity:.55; cursor:wait; }
.call-circle.accept { background: #24a86b; }.call-circle.decline { background: var(--danger); }
.call-circle.is-off { background: #7b8582; color: #dce2e0; }
.call-output-picker,.call-more-picker { position:relative; }.call-output-menu,.call-action-menu { position:absolute; z-index:12; bottom:max(96px,calc(84px + env(safe-area-inset-bottom))); left:50%; transform:translateX(-50%); width:min(280px,calc(100vw - 24px)); max-height:min(50dvh,360px); overflow-y:auto; padding:6px; border-radius:8px; background:white; color:var(--ink); box-shadow:var(--shadow); }
.call-output-menu button,.call-action-menu button { width:100%; min-height:50px; border:0; border-radius:5px; padding:8px 10px; display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:9px; text-align:start; background:transparent; color:inherit; }.call-output-menu button:hover,.call-action-menu button:hover,.call-action-menu button:focus-visible { background:var(--surface-soft); }.call-output-menu button:disabled,.call-action-menu button:disabled { opacity:.48; }.call-output-menu i,.call-action-menu i { color:var(--brand); font-size:24px; }.call-output-menu span,.call-output-menu small { grid-column:2; }.call-output-menu small { color:var(--muted); font-size:10px; }.call-action-menu { display:grid; gap:2px; }.call-action-menu[hidden] { display:none; }.call-action-menu button.active { background:#e3f5ef; color:#096c51; }.call-circle.active { color:#fff; background:#16836b; }
.resume-audio { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 6px; padding: 10px 14px; background: var(--warning); color: #2d250f; font-weight: 800; }

.context-menu { position: fixed; z-index: 90; width: 210px; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.context-menu button { width: 100%; border: 0; background: transparent; padding: 10px; display: flex; gap: 9px; align-items: center; text-align: start; border-radius: 4px; }
.context-menu button:hover { background: var(--surface-soft); }.context-menu button.danger { color: var(--danger); }
.toast-region, .dialog-toast-region { position: fixed; z-index: 110; top: 18px; inset-inline-end: 18px; display: grid; gap: 8px; pointer-events:none; }
.toast { min-width: 230px; max-width: 380px; padding: 12px 14px; border-radius: 6px; background: var(--ink); color: white; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.error { background: #992f3b; }.toast.success { background: var(--brand-strong); }
.forward-friend-list { max-height: min(52dvh,430px); overflow:auto; display:grid; gap:5px; }.stacked-actions { display:grid; gap:9px; }
.native-share-target { width:100%; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--ink); text-align:start; cursor:pointer; }.native-share-target:hover,.native-share-target:has(input:checked) { border-color:#8bc7b3; background:var(--brand-soft); }.native-share-target span { min-width:0; display:grid; gap:2px; }.native-share-target small { color:var(--muted); }.native-share-target input { width:20px; height:20px; accent-color:var(--brand); }
.share-selection-footer { position:sticky; bottom:-14px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0 0; background:white; border-top:1px solid var(--line); }.share-selection-footer span { color:var(--muted); font-size:12px; }.share-selection-footer .primary-btn { width:auto; min-width:130px; }
.processing-card-list { display:grid; gap:9px; max-height:min(50dvh,520px); overflow:auto; padding-inline:1px; }.processing-card { display:grid; grid-template-columns:52px minmax(0,1fr); gap:10px; padding:10px; border:1px solid var(--line); border-radius:7px; background:#fbfcfc; }.processing-file-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:6px; background:var(--brand-soft); color:var(--brand); font-size:23px; }.processing-card-copy { min-width:0; display:grid; gap:8px; }.processing-card-head { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 6px; align-items:center; }.processing-card-head strong,.processing-card-head small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.processing-card-head small { grid-column:1/-1; }.processing-card-head .inline-help { grid-column:2; grid-row:1; }.processing-card-head small,.processing-policy-note { color:var(--muted); font-size:11px; }.processing-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.processing-fields .wide { grid-column:1/-1; }.processing-fields label { margin:0; }.processing-fields input,.processing-fields select { min-width:0; }.processing-policy-note { grid-column:1/-1; margin:0; line-height:1.4; }
.native-share-progress { display:grid; grid-template-columns:1fr auto; gap:5px 10px; align-items:center; padding:10px; border:1px solid #b9dfd2; border-radius:7px; background:#f1faf7; }.native-share-progress > div { grid-column:1/-1; height:8px; overflow:hidden; border-radius:4px; background:#d8e6e1; }.native-share-progress > div span { display:block; width:0; height:100%; background:#138061; transition:width .18s ease; }.native-share-progress strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.native-share-progress small { color:var(--muted); }
.processed-download-list { display:grid; gap:7px; }.processed-download-item { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:9px; align-items:center; padding:8px; border:1px solid var(--line); border-radius:6px; }.processed-download-item > i { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--brand-soft); color:var(--brand); }.processed-download-item span { min-width:0; display:grid; gap:2px; }.processed-download-item strong,.processed-download-item small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.processed-download-item small { color:var(--muted); }
.downloaded-local-open { border:0; padding:0; background:transparent; color:inherit; cursor:pointer; }
.pull-refresh-indicator { position: fixed; z-index: 75; top: 0; left: 50%; transform: translate(-50%,-70px); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--brand); box-shadow: var(--shadow); transition: transform .12s ease-out; }.pull-refresh-indicator.refreshing i { animation: refresh-spin .7s linear infinite; }@keyframes refresh-spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } }
.mobile-only { display: none; }
.quick-actions-button { display:none; }.quick-action-list { display:grid; gap:7px; }.quick-action-list > button { width:100%; min-height:68px; display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); text-align:start; }.quick-action-list > button:hover { border-color:#80bea9; background:#f7fcfa; }.quick-action-list > button > i { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:var(--brand-soft); color:var(--brand); font-size:18px; }.quick-action-list span { min-width:0; display:grid; gap:3px; }.quick-action-list small { color:var(--muted); line-height:1.35; }
.spam-case-list { display:grid; gap:8px; }.spam-case { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:7px; background:white; }.spam-case > img { width:48px; height:48px; border-radius:50%; object-fit:cover; }.spam-case-copy { min-width:0; display:grid; gap:3px; }.spam-case-copy strong,.spam-case-copy span { overflow-wrap:anywhere; }.spam-case-copy small { color:var(--muted); }.restriction-status { width:max-content; max-width:100%; padding:3px 7px; border-radius:4px; background:#eef3f1; color:#51605c; font-size:10px; }.restriction-status.active { background:#fde7e9; color:#9b2634; }.spam-case .secondary-btn { white-space:nowrap; }

@media (max-width: 760px) {
	.maintenance-banner { min-height: 68px; justify-content: flex-start; }.maintenance-banner span { font-size: 12px; line-height: 1.25; } body.maintenance-active { padding-top: 68px; }.maintenance-active .messenger-shell { height: calc(100dvh - 68px); }.maintenance-active .auth-screen { min-height: calc(100dvh - 68px); }
	.maintenance-active .chat-pane { top: 68px; }
	body { overflow: hidden; }
	.processing-card { grid-template-columns:42px minmax(0,1fr); padding:8px; }.processing-file-icon { width:42px; height:42px; font-size:19px; }.processing-fields { grid-template-columns:1fr; }.processing-fields .wide { grid-column:auto; }.share-selection-footer { bottom:-12px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { min-height: 112px; padding: 18px 20px; }
  .auth-visual::after, .auth-art { display: none; }
  .brand-lockup h1 { font-size: 24px; }
  .auth-panel { padding: 22px 20px max(24px, env(safe-area-inset-bottom)); align-self: start; }
  .form-row { grid-template-columns: 1fr; }
  .quality-detail-grid,.profile-override { grid-template-columns:1fr; }
  .profile-toolbar { grid-template-columns:1fr 1fr; }.profile-toolbar label { grid-column:1/-1; }
	.onboarding-dialog { width:min(96vw,560px); max-height:96dvh; }.tour-shell { grid-template-columns:1fr; grid-template-areas:"visual" "copy" "progress" "actions"; min-height:0; }.tour-visual { min-height:190px; }.tour-scene { width:180px; }.tour-main-icon { width:82px; height:82px; font-size:32px; }.tour-float-icon { width:38px; height:38px; }.tour-copy { align-self:auto; padding:24px 20px 12px; }.tour-copy h2 { font-size:24px; }.tour-progress { padding:3px 20px 13px; }.tour-actions { padding:0 20px max(18px,env(safe-area-inset-bottom)); }.tour-actions button { min-width:0; flex:1; }
  .messenger-shell { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) 64px; }
  .app-rail { grid-row: 2; flex-direction: row; padding: 7px max(6px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); justify-content: space-around; gap: 1px; overflow: visible; }
	.native-android .app-rail { padding-top:7px; padding-bottom:7px; }
	.rail-quick-source { display:none; }.quick-actions-button { display:grid; }
	.spam-case { grid-template-columns:42px minmax(0,1fr); }.spam-case > img { width:42px; height:42px; }.spam-case .secondary-btn { grid-column:1/-1; width:100%; }
  .rail-spacer, .avatar-button, #logoutButton { display: none; }
  .rail-btn { width: clamp(38px, 13vw, 46px); height: 44px; flex: 0 1 46px; }
  .contacts-pane { grid-row: 1; border: 0; }
  .chat-pane { position: fixed; inset: 0 0 64px; z-index: 20; transform: translateX(100%); transition: transform .2s ease-out; }
  [dir="rtl"] .chat-pane { transform: translateX(-100%); }
  .chat-pane.mobile-open { transform: translateX(0); }
  .mobile-only { display: inline-grid; }
  .chat-header { padding: 10px 8px; }
  .chat-person { flex: 1; }.chat-person .avatar-wrap { width: 42px; height: 42px; }
	  .chat-actions { gap: 4px; }.chat-actions .icon-btn { width: 38px; height: 38px; }.chat-join-call { max-width: 126px; min-height:38px; padding:6px 8px; font-size:10px; }
  .messages-list { padding: 16px 10px; }
  .message { max-width: 88%; }.message-selection-mode .message { max-width:calc(88% - 32px); }.message-avatar { flex: 0 0 auto; }.message-bubble { min-width: 0; }
  .composer { padding-inline: 6px; }.composer .icon-btn { width: 36px; }
	.voice-recorder-panel { padding-inline-start:8px; }.voice-recording-status span { display:none; }
  .local-media { width: 31vw; inset-inline-end: 12px; }
  .floating-language { top: 7px; inset-inline-end: 8px; }
  .call-controls { justify-content:center; gap:clamp(7px,2vw,10px); padding-inline:10px; }
  .remote-media.group-media.has-enlarged { grid-template-columns: repeat(var(--call-secondary-count),minmax(0,1fr)); grid-template-rows: minmax(0,2fr) minmax(86px,1fr); }.group-media.has-enlarged .call-participant.is-enlarged { grid-column: 1 / -1; grid-row: 1; }.group-media.has-enlarged .call-participant:not(.is-enlarged) { grid-column: auto; grid-row: 2; }.call-tile-actions button { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .call-controls { gap:7px; padding-inline:8px; }
}

.participant-visual { position: relative; }
.call-participant.waiting.offline .participant-state-dot { background: #78827f; }

.attachment-removed-notice { min-width:220px; max-width:100%; display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; padding:9px; border:1px dashed #9aa9a5; border-radius:7px; background:rgba(255,255,255,.5); color:var(--muted); }.attachment-removed-notice > i { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#edf1f0; color:#6d7976; }.attachment-removed-notice span { min-width:0; display:grid; gap:2px; }.attachment-removed-notice strong,.attachment-removed-notice small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.storage-summary { display:grid; gap:9px; padding:14px; border:1px solid var(--line); border-radius:7px; background:#f8fbfa; }.storage-summary > div:first-child { display:flex; justify-content:space-between; gap:12px; }.storage-summary span { color:var(--muted); }.storage-meter { height:9px; overflow:hidden; border-radius:5px; background:#dfe8e5; }.storage-meter > span { display:block; width:0; height:100%; background:#16836b; transition:width .2s ease; }.storage-toolbar,.statistics-toolbar { display:grid; grid-template-columns:repeat(3,minmax(140px,1fr)); gap:10px; align-items:end; }.statistics-toolbar { grid-template-columns:repeat(5,minmax(130px,1fr)) auto; }.attachment-storage-list { display:grid; gap:7px; min-height:90px; }.attachment-storage-item { display:grid; grid-template-columns:22px 42px minmax(0,1fr); gap:9px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:7px; background:#fff; cursor:pointer; }.attachment-storage-item:has(input:checked) { border-color:#54a88e; background:#eef8f4; }.attachment-storage-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:7px; background:#edf2f0; color:var(--brand); font-size:19px; }.attachment-storage-copy { min-width:0; display:grid; gap:2px; }.attachment-storage-copy strong,.attachment-storage-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.attachment-storage-copy small { color:var(--muted); font-size:11px; }.storage-delete-bar { position:sticky; bottom:-16px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0 max(11px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:#fff; }.storage-empty { text-align:center; padding:24px; }
.admin-statistics-launch { width:100%; }.statistics-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }.statistics-summary article { min-width:0; min-height:92px; display:grid; grid-template-columns:32px minmax(0,1fr); grid-template-rows:auto 1fr; gap:2px 8px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:7px; background:#fff; }.statistics-summary article > i { grid-row:1/-1; width:32px; height:32px; display:grid; place-items:center; border-radius:6px; background:var(--brand-soft); color:var(--brand); }.statistics-summary article span { color:var(--muted); font-size:11px; }.statistics-summary article strong { min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:18px; }.statistics-section { display:grid; gap:8px; padding-top:8px; border-top:1px solid var(--line); }.statistics-section h3 { margin:0; }.statistics-user-list,.statistics-event-list { display:grid; gap:7px; }.statistics-user { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px; border:1px solid var(--line); border-radius:7px; background:#fff; }.statistics-user img { width:46px; height:46px; border-radius:50%; object-fit:cover; }.statistics-user > span { min-width:0; display:grid; gap:2px; }.statistics-user strong,.statistics-user small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.statistics-user small { color:var(--muted); }.statistics-user > b { color:var(--brand); white-space:nowrap; }.statistics-event { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:9px 11px; border-inline-start:4px solid #84938f; background:#f7f9f8; }.statistics-event.warning { border-color:#d49a27; }.statistics-event.error { border-color:#cc4f5b; }.statistics-event span { min-width:0; display:grid; }.statistics-event strong,.statistics-event small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.statistics-event small,.statistics-event time { color:var(--muted); font-size:11px; }

.admin-launch-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }.admin-launch-actions > button { width:100%; }.announcement-admin-layout { display:grid; gap:18px; }.announcement-admin-layout > form { display:grid; gap:12px; }.announcement-history { display:grid; gap:9px; padding-top:14px; border-top:1px solid var(--line); }.announcement-history h3 { margin:0; }.announcement-history-list { display:grid; gap:7px; }.announcement-history-item { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:9px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:7px; background:#fff; }.announcement-history-item > i { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#e8f4ef; color:#16755e; }.announcement-history-item.important > i { background:#fff0d9; color:#a86100; }.announcement-history-item.celebration > i { background:#f4eafd; color:#7b3eb1; }.announcement-history-item span { min-width:0; display:grid; gap:2px; }.announcement-history-item strong,.announcement-history-item small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.announcement-history-item small { color:var(--muted); }.announcement-history-item b { color:var(--brand); white-space:nowrap; }.announcement-dialog { width:min(460px,calc(100vw - 24px)); }.announcement-card { display:grid; justify-items:center; gap:10px; padding:26px 22px 22px; text-align:center; background:#fff; }.announcement-card .announcement-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:#e8f4ef; color:#16755e; font-size:26px; }.announcement-card.important .announcement-icon { background:#fff0d9; color:#a86100; }.announcement-card.celebration .announcement-icon { background:#f4eafd; color:#7b3eb1; }.announcement-card h2 { margin:0; max-width:100%; overflow-wrap:anywhere; }.announcement-card p { margin:0; width:100%; white-space:pre-wrap; text-align:start; unicode-bidi:plaintext; line-height:1.65; }.announcement-card small { color:var(--muted); }.announcement-card .primary-btn { width:100%; margin-top:5px; }

@media (max-width:760px) {
	.admin-launch-actions { grid-template-columns:1fr; }.announcement-history-item { grid-template-columns:36px minmax(0,1fr); }.announcement-history-item b { grid-column:2; }
	.storage-toolbar,.statistics-toolbar { grid-template-columns:1fr 1fr; }.statistics-toolbar button { width:100%; }.statistics-user { grid-template-columns:40px minmax(0,1fr); }.statistics-user img { width:40px; height:40px; }.statistics-user > b { grid-column:2; }.statistics-event { grid-template-columns:minmax(0,1fr) auto; }.statistics-event time { grid-column:1/-1; }.storage-delete-bar { align-items:stretch; flex-direction:column; }.storage-delete-bar button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
