/* messes.net unified restrained-luxury design system — loaded last on purpose. */
:root{
  color-scheme:light;
  --lux-bg:#f6f6f3;
  --lux-panel:#ffffff;
  --lux-panel-2:#fafaf8;
  --lux-ink:#111915;
  --lux-muted:#68716c;
  --lux-line:#dedfd9;
  --lux-line-strong:#c9cdc6;
  --lux-green:#123d2e;
  --lux-green-2:#1d533d;
  --lux-lime:#cfff57;
  --lux-on-accent:#ffffff;
  --lux-lime-soft:#efffc9;
  --lux-danger:#b72d3a;
  --lux-danger-soft:#fff4f4;
  --lux-shadow:0 18px 55px #18251d18;
  --lux-radius:24px;
  --lux-capsule:999px;
  --navy:var(--lux-green);
  --ink:var(--lux-ink);
  --muted:var(--lux-muted);
  --line:var(--lux-line);
  --blue:var(--lux-green);
  --lime:var(--lux-lime);
  --soft:var(--lux-panel-2)
}
html[data-theme=dark]{
  color-scheme:dark;
  --lux-bg:#060b08;
  --lux-panel:#0b1410;
  --lux-panel-2:#101b16;
  --lux-ink:#f3f6f2;
  --lux-muted:#9ca79f;
  --lux-line:#26352d;
  --lux-line-strong:#3a4b42;
  --lux-green:#cfff57;
  --lux-green-2:#a8dc42;
  --lux-lime:#cfff57;
  --lux-on-accent:#0b160f;
  --lux-lime-soft:#20351c;
  --lux-danger:#ff7b86;
  --lux-danger-soft:#29171a;
  --lux-shadow:0 22px 70px #0009;
  --navy:#0b1410;
  --ink:var(--lux-ink);
  --muted:var(--lux-muted);
  --line:var(--lux-line);
  --blue:var(--lux-lime);
  --lime:var(--lux-lime);
  --soft:var(--lux-panel-2)
}
*,*:before,*:after{box-sizing:border-box}
html,body{background:var(--lux-bg)!important;color:var(--lux-ink)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif!important;-webkit-font-smoothing:antialiased}
body{overflow:hidden}
button,input,textarea,select{font:inherit;color:inherit}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--lux-green)!important;outline-offset:3px}
h1,h2,h3,h4,.chat-list h1,.auth-card h2,.modal-card h2,.profile-hero h2,.admin-panel h2,.call-overlay h2,.welcome-message strong{font-family:inherit!important;letter-spacing:-.025em}

/* App frame and main navigation */
.app-shell{width:min(1540px,100%)!important;height:100%;background:var(--lux-panel)!important;box-shadow:var(--lux-shadow)!important}
.rail{background:#07100d!important;border-right:1px solid #26352d!important}
.rail button{border:1px solid transparent!important;border-radius:50%!important;color:#a9b4ac!important;transition:.2s ease!important}
.rail button:hover,.rail button.active{border-color:#cfff5748!important;background:#cfff5714!important;color:#cfff57!important;box-shadow:0 8px 24px #0004!important}
.brand{border-radius:50%!important;box-shadow:0 0 0 1px #cfff5740!important}
.mini-avatar{overflow:hidden;border:1px solid #cfff5740!important;border-radius:50%!important;background:#15251d!important}
.chat-list{border-color:var(--lux-line)!important;background:var(--lux-panel)!important}
.chat-list>header{padding:26px 22px 13px!important}
.chat-list>header>span{color:var(--lux-muted)!important;letter-spacing:.19em!important}
.chat-list h1{font-size:25px!important;font-weight:680!important;color:var(--lux-ink)!important}
.chat-header-actions{display:flex!important;align-items:center!important;gap:8px!important}
.chat-list header .luxury-icon-button,.conversation-header button,.profile-close,.modal-close,.about-messenger-close,.admin-panel header button{display:grid!important;place-items:center!important;flex:none!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border:1px solid var(--lux-line)!important;border-radius:50%!important;background:var(--lux-panel)!important;color:var(--lux-green)!important;box-shadow:0 8px 22px #18251d12!important}
html[data-theme=dark] .chat-list header .luxury-icon-button,html[data-theme=dark] .conversation-header button,html[data-theme=dark] .profile-close,html[data-theme=dark] .modal-close,html[data-theme=dark] .about-messenger-close,html[data-theme=dark] .admin-panel header button{background:#111d17!important;color:#cfff57!important;box-shadow:0 9px 24px #0005!important}

/* Search, tabs and lists */
.search,.chat-search,.search.large,.contact-lookup-form input,.profile-section input,.profile-section textarea,.profile-section select,.auth-card input{border:1px solid var(--lux-line)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important;box-shadow:none!important}
.search,.chat-search{min-height:42px!important;margin-inline:18px!important;padding:8px 13px!important;border-radius:var(--lux-capsule)!important}
.search:focus-within,.chat-search:focus-within,.search.large:focus-within{border-color:var(--lux-green)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--lux-green) 12%,transparent)!important}
input::placeholder,textarea::placeholder{color:var(--lux-muted)!important;opacity:.78!important}
.filters,.contact-tabs{gap:7px!important;padding:0 18px 11px!important;border-color:var(--lux-line)!important;background:transparent!important}
.filters button,.contact-tabs button{min-height:36px!important;padding:6px 13px!important;border:1px solid transparent!important;border-radius:var(--lux-capsule)!important;background:transparent!important;color:var(--lux-muted)!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important}
.filters button.active,.contact-tabs button.active{border-color:var(--lux-green)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important;box-shadow:0 8px 22px #123d2e2d!important}
html[data-theme=dark] .filters button.active,html[data-theme=dark] .contact-tabs button.active{border-color:#cfff57!important;background:#cfff57!important;color:#0b160f!important;box-shadow:0 8px 24px #cfff5720!important}
.chats{padding:6px 10px!important}
.chat{min-height:64px!important;padding:8px 9px!important;border:1px solid transparent!important;border-radius:18px!important;background:transparent!important}
.chat:hover,.chat.active{border-color:var(--lux-line)!important;background:var(--lux-panel-2)!important;box-shadow:0 8px 24px #18251d0d!important}
html[data-theme=dark] .chat:hover,html[data-theme=dark] .chat.active{border-color:#304139!important;background:#132019!important}
.chat strong{color:var(--lux-ink)!important;font-size:14px!important}.chat small,.chat time{color:var(--lux-muted)!important}
.avatar,.chat .avatar,.mini-avatar,.profile-avatar,.member-avatar{border-radius:50%!important}
.unread-badge{border-radius:50%!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important;box-shadow:0 6px 18px #123d2e30!important}
html[data-theme=dark] .unread-badge{background:#cfff57!important;color:#0c160f!important}
.secure{display:block!important;width:100%!important;max-width:100%!important;margin:8px 0 max(12px,env(safe-area-inset-bottom))!important;padding:7px 16px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--lux-muted)!important;text-align:center!important}.secure>span{display:flex!important;width:100%!important;min-width:0!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:2px!important;text-align:center!important}.secure strong,.secure small{display:block!important;width:100%!important;margin:0 auto!important;text-align:center!important;white-space:normal!important}.secure strong{color:var(--lux-ink)!important}

/* Conversation */
.conversation{position:relative!important;min-width:0!important;background:var(--lux-bg)!important}
.conversation-header{min-width:0!important;padding:0 22px!important;border-color:var(--lux-line)!important;background:color-mix(in srgb,var(--lux-panel) 94%,transparent)!important;backdrop-filter:blur(18px)!important}
.conversation-header>div,.conversation-header span{min-width:0!important}.conversation-header strong{overflow:hidden;color:var(--lux-ink)!important;text-overflow:ellipsis;white-space:nowrap}.conversation-header small,.presence-online{color:var(--lux-green-2)!important}
html[data-theme=dark] .conversation-header small,html[data-theme=dark] .presence-online{color:#bde959!important}
.messages{min-width:0!important;background-color:var(--lux-bg)!important;background-image:radial-gradient(color-mix(in srgb,var(--lux-green) 10%,transparent) .65px,transparent .65px)!important;background-size:17px 17px!important}
.date,.encrypted{border-color:var(--lux-line)!important;border-radius:var(--lux-capsule)!important;background:color-mix(in srgb,var(--lux-panel) 88%,transparent)!important;color:var(--lux-muted)!important;backdrop-filter:blur(12px)!important}
.bubble,.mine .bubble,html[data-theme=dark] .bubble,html[data-theme=dark] .mine .bubble{padding:3px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--lux-ink)!important;box-shadow:none!important}
.message-line{margin-block:4px!important}.message-line.mine{text-align:right!important}.message-line .attachment{overflow:hidden}.message-line .reply-quote,.message-reaction{border:1px solid var(--lux-line)!important;background:color-mix(in srgb,var(--lux-panel) 88%,transparent)!important}.message-line.mine .reply-quote{background:color-mix(in srgb,var(--lux-green) 9%,var(--lux-panel))!important}.call-history-bubble{padding:2px 0!important}
.bubble p{font-size:16px!important;line-height:1.42!important}.message-line.mine .bubble p{font-size:15.5px!important}.bubble time{color:var(--lux-muted)!important;font-size:10px!important}
.emoji-message{margin-block:7px!important;overflow:visible!important}.emoji-message .emoji-only-bubble{min-width:76px!important;overflow:visible!important;text-align:center!important}.emoji-message .single-emoji,.emoji-message.mine .single-emoji{position:relative!important;display:block!important;margin:0!important;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;font-size:clamp(58px,8vw,82px)!important;line-height:1.08!important;text-align:center!important;transform-origin:50% 70%;will-change:transform,filter}.emoji-message .bubble time{margin-top:2px!important;text-align:center!important}.emoji-effect-heart .single-emoji{animation:emoji-heart 1.15s cubic-bezier(.2,.8,.2,1) both}.emoji-effect-laugh .single-emoji{animation:emoji-laugh 1.05s ease both}.emoji-effect-fire .single-emoji{animation:emoji-fire 1.25s ease-in-out both;filter:drop-shadow(0 5px 12px #ff7a2855)}.emoji-effect-wave .single-emoji{animation:emoji-wave 1.15s ease-in-out both}.emoji-effect-celebrate .single-emoji{animation:emoji-celebrate 1.15s cubic-bezier(.2,.85,.25,1) both}.emoji-effect-applause .single-emoji{animation:emoji-applause .92s ease both}.emoji-effect-kiss .single-emoji{animation:emoji-kiss 1.15s ease both}.emoji-effect-surprise .single-emoji{animation:emoji-surprise .9s ease both}.emoji-effect-sad .single-emoji{animation:emoji-sad 1.35s ease both}.emoji-effect-pop .single-emoji{animation:emoji-pop .72s cubic-bezier(.17,.89,.32,1.35) both}.emoji-effect-celebrate .single-emoji:before,.emoji-effect-heart .single-emoji:before{position:absolute;inset:auto;pointer-events:none;font-size:19px}.emoji-effect-celebrate .single-emoji:before{content:"✦  ✧";top:-10px;left:-17px;color:var(--lux-green);animation:emoji-spark 1.15s ease both}.emoji-effect-heart .single-emoji:before{content:"♥";top:-5px;right:-9px;color:#ff6075;animation:emoji-float 1.15s ease both}@keyframes emoji-heart{0%{opacity:0;transform:scale(.55)}32%{opacity:1;transform:scale(1.18)}52%{transform:scale(.94)}72%{transform:scale(1.09)}100%{transform:scale(1)}}@keyframes emoji-laugh{0%{opacity:0;transform:translateY(14px) scale(.7)}32%{opacity:1;transform:translateY(-10px) rotate(-7deg) scale(1.08)}55%{transform:translateY(3px) rotate(6deg)}76%{transform:translateY(-4px) rotate(-3deg)}100%{transform:none}}@keyframes emoji-fire{0%{opacity:0;transform:translateY(12px) scale(.72);filter:brightness(.8)}40%{opacity:1;transform:translateY(-5px) scale(1.1);filter:brightness(1.28)}65%{transform:translateY(2px) scale(.96) skewX(-3deg)}82%{transform:translateY(-2px) scale(1.04) skewX(2deg)}100%{transform:none;filter:drop-shadow(0 5px 12px #ff7a2855)}}@keyframes emoji-wave{0%{opacity:0;transform:scale(.7) rotate(0)}25%{opacity:1;transform:scale(1.05) rotate(18deg)}48%{transform:rotate(-14deg)}68%{transform:rotate(12deg)}85%{transform:rotate(-7deg)}100%{transform:none}}@keyframes emoji-celebrate{0%{opacity:0;transform:scale(.45) rotate(-16deg)}45%{opacity:1;transform:scale(1.2) rotate(7deg)}70%{transform:scale(.94) rotate(-3deg)}100%{transform:none}}@keyframes emoji-applause{0%{opacity:0;transform:scale(.65)}35%{opacity:1;transform:scale(1.13) rotate(-7deg)}58%{transform:scale(.94) rotate(7deg)}80%{transform:scale(1.06) rotate(-3deg)}100%{transform:none}}@keyframes emoji-kiss{0%{opacity:0;transform:translate(-8px,8px) scale(.7)}45%{opacity:1;transform:translate(4px,-6px) scale(1.14) rotate(5deg)}75%{transform:translate(-2px,1px) scale(.97)}100%{transform:none}}@keyframes emoji-surprise{0%{opacity:0;transform:scale(.45)}45%{opacity:1;transform:scale(1.22)}65%{transform:scale(.92)}80%{transform:scale(1.07)}100%{transform:none}}@keyframes emoji-sad{0%{opacity:0;transform:translateY(-8px) scale(.8)}35%{opacity:1;transform:translateY(1px) scale(1.05)}70%{transform:translateY(5px) scale(.98)}100%{transform:none}}@keyframes emoji-pop{0%{opacity:0;transform:scale(.35) rotate(-8deg)}65%{opacity:1;transform:scale(1.16) rotate(3deg)}100%{transform:none}}@keyframes emoji-spark{0%{opacity:0;transform:translate(8px,15px) scale(.3)}45%{opacity:1;transform:translate(-5px,-6px) scale(1.25)}100%{opacity:0;transform:translate(-12px,-15px) scale(.7)}}@keyframes emoji-float{0%{opacity:0;transform:translateY(12px) scale(.4)}42%{opacity:1;transform:translateY(-5px) scale(1.1)}100%{opacity:0;transform:translate(7px,-20px) scale(.65)}}
.composer{align-items:center!important;border:1px solid var(--lux-line)!important;border-radius:var(--lux-capsule)!important;background:var(--lux-panel)!important;box-shadow:0 12px 34px #18251d12!important}
.composer input{min-width:0!important;background:transparent!important;color:var(--lux-ink)!important}
.composer .send{display:grid!important;place-items:center!important;flex:none!important;border-radius:50%!important;background:var(--lux-green)!important;color:var(--lux-lime)!important;box-shadow:0 8px 24px #123d2e30!important}
html[data-theme=dark] .composer{border-color:#314239!important;background:#0d1712!important;box-shadow:0 12px 38px #0006!important}html[data-theme=dark] .composer .send{background:#cfff57!important;color:#102015!important}
.composer>#attach-button,.composer>#emoji-button{color:var(--lux-green)!important}.emoji-panel{border-color:var(--lux-line)!important;background:var(--lux-panel)!important;box-shadow:var(--lux-shadow)!important}.emoji-panel button{background:var(--lux-panel-2)!important}
.pinned-message{border-color:var(--lux-green)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.pinned-message b{color:var(--lux-green)!important}

/* Auth and informational screens */
.auth-overlay,.modal-overlay,.profile-overlay,.admin-overlay{padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))!important;background:#07100de8!important;backdrop-filter:blur(18px)!important}
.auth-card,.modal-card,.profile-card,.admin-panel,.about-messenger-card{border:1px solid var(--lux-line)!important;border-radius:30px!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important;box-shadow:0 34px 110px #0006!important}
.auth-card{width:min(430px,100%)!important;max-height:calc(var(--app-height,100dvh) - 36px)!important;padding:34px!important;overflow:auto!important;overscroll-behavior:contain!important}
.auth-logo{width:58px!important;height:58px!important;margin-bottom:18px!important;border:1px solid #cfff5744!important;border-radius:50%!important;box-shadow:0 12px 30px #0002!important}
.auth-kicker{color:var(--lux-green)!important}.auth-card h2{font-size:30px!important;color:var(--lux-ink)!important}.auth-card>p,.setting-description{color:var(--lux-muted)!important}
.auth-card label{color:var(--lux-ink)!important;font-size:12px!important}.auth-card input{height:48px!important;border-radius:15px!important;font-size:16px!important}
.primary,.profile-primary,.contact-share-primary,.passkey-button,.about-messenger-done{min-height:48px!important;border:1px solid var(--lux-green)!important;border-radius:var(--lux-capsule)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important;font-weight:800!important;text-align:center!important;box-shadow:0 9px 24px #123d2e25!important}
html[data-theme=dark] .primary,html[data-theme=dark] .profile-primary,html[data-theme=dark] .contact-share-primary,html[data-theme=dark] .passkey-button,html[data-theme=dark] .about-messenger-done{border-color:#cfff57!important;background:#cfff57!important;color:#0d1811!important}
.auth-switch,.about-messenger-open,.profile-hero>button,.privacy-policy-section a{color:var(--lux-green)!important;text-decoration:none!important}.auth-language-switch{border-color:var(--lux-line)!important;background:var(--lux-panel-2)!important}.auth-language-switch button.active{background:var(--lux-green)!important;color:var(--lux-on-accent)!important}
html[data-theme=dark] .auth-language-switch button.active{background:#cfff57!important;color:#0d1811!important}
.about-messenger-overlay{background:#07100de8!important}.about-messenger-card{max-height:calc(var(--app-height,100dvh) - 36px)!important;overflow:auto!important}.about-messenger-features section,.about-messenger-note{border-color:var(--lux-line)!important;background:var(--lux-panel-2)!important}.about-messenger-features b,.about-messenger-brand span{background:var(--lux-green)!important;color:var(--lux-lime)!important}

/* Profiles, contacts, groups and settings */
.profile-card{width:min(520px,100%)!important;max-height:calc(var(--app-height,100dvh) - 30px)!important;background:var(--lux-bg)!important;overscroll-behavior:contain!important}.profile-hero,.profile-actions,.profile-section{border-color:var(--lux-line)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.profile-hero{padding:30px 24px 22px!important}.profile-hero h2,.profile-section h3,.profile-member strong,.session-row strong{color:var(--lux-ink)!important}.profile-hero p,.profile-hero small,.profile-member small,.session-row small{color:var(--lux-muted)!important}.profile-actions{position:sticky!important;top:0!important;z-index:4!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:11px 8px!important}.profile-actions b{border:1px solid var(--lux-line)!important;background:var(--lux-panel-2)!important;color:var(--lux-green)!important}.profile-actions button{min-width:0!important;color:var(--lux-muted)!important}.profile-actions button.active b{border-color:var(--lux-green)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important}
html[data-theme=dark] .profile-actions button.active b{background:#cfff57!important;color:#0d1811!important}
.profile-section{margin-top:8px!important}.profile-section label,.setting-switch{color:var(--lux-ink)!important}.profile-section input,.profile-section textarea,.profile-section select{min-width:0!important;border-radius:15px!important}.profile-section>button:not(.profile-primary):not(.profile-logout-button){border:1px solid var(--lux-line)!important;border-radius:var(--lux-capsule)!important;background:var(--lux-panel-2)!important;color:var(--lux-ink)!important}.setting-switch input{accent-color:var(--lux-green)!important}.profile-member,.session-row{border-color:var(--lux-line)!important}.session-row button{border:1px solid #efb8bd!important;background:var(--lux-danger-soft)!important;color:var(--lux-danger)!important}.profile-logout-button{border-color:#efb8bd!important;border-radius:var(--lux-capsule)!important;background:var(--lux-danger-soft)!important;color:var(--lux-danger)!important}
.session-list{display:grid!important;gap:10px!important}.session-row{grid-template-columns:48px minmax(0,1fr) auto!important;gap:11px!important;padding:13px!important;border:1px solid var(--lux-line)!important;border-radius:20px!important;background:var(--lux-panel-2)!important}.session-row:last-child{border-bottom:1px solid var(--lux-line)!important}.session-device-icon{background:color-mix(in srgb,var(--lux-green) 12%,var(--lux-panel))!important;color:var(--lux-green)!important}.session-row .current-session{padding:5px 9px!important;border-radius:999px!important;background:color-mix(in srgb,var(--lux-green) 13%,transparent)!important;color:var(--lux-green)!important;font-size:10px!important;white-space:nowrap!important}.session-row .session-action{grid-column:1/-1!important;width:100%!important;max-width:none!important;min-height:46px!important;margin:2px 0 0!important;padding:10px 16px!important;border-radius:999px!important;font-size:13px!important;font-weight:780!important;line-height:1.2!important;text-align:center!important;white-space:normal!important;box-shadow:none!important;transition:transform .16s ease,background .16s ease,border-color .16s ease!important}.session-row .session-action:active{transform:scale(.985)!important}.session-row .end-other-sessions{border:1px solid var(--lux-green)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important}.session-row .end-device-session{border:1px solid color-mix(in srgb,var(--lux-danger) 38%,var(--lux-line))!important;background:var(--lux-danger-soft)!important;color:var(--lux-danger)!important}.session-row .session-action:disabled{cursor:wait!important;opacity:.55!important}
.contact-tabs{margin:12px 0 8px!important;padding-inline:0!important}.contact-lookup-form{gap:9px!important}.contact-lookup-form button,.contact-result-actions button,.contact-request-actions button{border:1px solid var(--lux-line)!important;border-radius:var(--lux-capsule)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.contact-lookup-form .primary,.contact-request-actions .accept-contact{border-color:var(--lux-green)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important}.user-result,.group-contact-row{border:1px solid var(--lux-line)!important;border-radius:18px!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.user-result:hover{background:var(--lux-panel-2)!important}.user-result strong{color:var(--lux-ink)!important}.user-result small{color:var(--lux-muted)!important}
.contact-qr-card{border-color:var(--lux-line)!important;background:#fff!important;box-shadow:var(--lux-shadow)!important}.contact-qr-frame{border-color:var(--lux-green)!important;background:var(--lux-green)!important}.contact-qr-brand b,.contact-qr-card strong{color:var(--lux-ink)!important}.contact-copy-row{border-color:var(--lux-line)!important;background:var(--lux-panel-2)!important}.contact-copy-row button{background:var(--lux-green)!important;color:var(--lux-on-accent)!important}
html[data-theme=dark] .contact-qr-card{background:#0e1813!important}.group-create-card,.user-search-card{max-height:calc(var(--app-height,100dvh) - 36px)!important;overflow:hidden!important}.group-title-field input{border-color:var(--lux-line)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.group-create-bar button{border-color:var(--lux-line)!important;background:var(--lux-panel)!important;color:var(--lux-green)!important}

/* Admin, platform, menus and notifications */
.admin-panel{background:var(--lux-bg)!important}.admin-panel>header,.admin-table-head,.admin-user-identity{border-color:var(--lux-line)!important;background:var(--lux-panel)!important}.admin-summary,.admin-user{border-color:var(--lux-line)!important;color:var(--lux-ink)!important}.admin-panel h2,.admin-user strong,.admin-stat b{color:var(--lux-ink)!important}.admin-user small,.admin-stat span,.admin-table-head{color:var(--lux-muted)!important}.admin-actions button{border-color:var(--lux-line)!important;border-radius:var(--lux-capsule)!important;background:var(--lux-panel)!important;color:var(--lux-ink)!important}.admin-actions .admin-delete{border-color:#efb8bd!important;color:var(--lux-danger)!important}.admin-actions .admin-resume{border-color:var(--lux-green)!important;background:var(--lux-green)!important;color:var(--lux-on-accent)!important}
.platform-command-bar{border-color:var(--lux-line)!important;background:var(--lux-panel)!important}.platform-command-bar button{border-color:var(--lux-line)!important;background:var(--lux-panel-2)!important;color:var(--lux-green)!important}
.context-menu,.message-context-menu{border-color:var(--lux-line-strong)!important;background:color-mix(in srgb,var(--lux-panel) 94%,transparent)!important;color:var(--lux-ink)!important;box-shadow:var(--lux-shadow)!important}.context-menu button,.message-context-menu button{color:var(--lux-ink)!important}.context-menu button:hover,.context-menu button:active,.message-context-menu button:hover,.message-context-menu button:active{background:var(--lux-panel-2)!important}.message-context-menu svg{stroke:var(--lux-green)!important}.context-menu .danger,.message-context-menu .danger,.context-menu button[data-action=delete]{color:var(--lux-danger)!important}
.toast,.security-notice{border-color:color-mix(in srgb,var(--lux-green) 50%,var(--lux-line))!important;background:color-mix(in srgb,var(--lux-panel) 94%,transparent)!important;color:var(--lux-ink)!important;box-shadow:var(--lux-shadow)!important;backdrop-filter:blur(18px)!important}.security-notice strong{color:var(--lux-ink)!important}.security-notice small{color:var(--lux-muted)!important}

/* Calls */
.call-overlay{background:#030805ed!important}.call-panel{border-color:#31453a!important;border-radius:30px!important;background:radial-gradient(circle at 50% 25%,#173324,#07100d 64%)!important;box-shadow:0 35px 120px #000b!important}.call-panel h2{font-family:inherit!important}.call-action,.call-controls button{border:1px solid #ffffff25!important;border-radius:50%!important;background:#ffffff10!important;color:#fff!important;backdrop-filter:blur(14px)!important}.call-action.accept,.call-action.video{border-color:#cfff5760!important;background:#cfff571b!important;color:#cfff57!important}.call-controls button.is-off,.call-controls button[aria-pressed=true]{border-color:#ff858d70!important;background:#ff596722!important;color:#ff9ca3!important}.call-controls .hangup,.call-action.reject{border-color:#ff6874!important;background:#cf3b47!important;color:#fff!important}

/* Responsive safety: controls remain reachable on every viewport. */
@media(max-width:900px){.app-shell{grid-template-columns:64px 310px minmax(0,1fr)!important}.chat-list{width:auto!important}.conversation{min-width:0!important}.conversation-header{padding-inline:14px!important}}
@media(max-width:700px){
  body{height:var(--app-height,100dvh)!important;min-height:0!important}
  .app-shell{display:block!important;width:100%!important;height:var(--app-height,100dvh)!important;min-height:0!important;box-shadow:none!important}
  .rail{display:none!important}.chat-list{display:flex!important;width:100%!important;height:var(--app-height,100dvh)!important;min-height:0!important;background:var(--lux-panel)!important}
  body.mobile-chat-open .chat-list{display:none!important}
  .chat-list>header{padding:max(14px,env(safe-area-inset-top)) 14px 10px!important}.chat-list h1{font-size:22px!important}.chat-list header .luxury-icon-button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .search,.chat-search{width:calc(100% - 28px)!important;min-height:40px!important;margin:0 14px 10px!important}.filters{width:100%!important;overflow-x:auto!important;padding:0 14px 10px!important;scrollbar-width:none!important}.filters::-webkit-scrollbar{display:none}.filters button{flex:0 0 auto!important}
  .chats{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:4px 8px!important}.chat-swipe-row{width:100%!important;max-width:100%!important;isolation:isolate!important;clip-path:inset(0 round 18px)!important}.chat-swipe-row:not(.actions-open):not(.swiping):not(.swipe-left-ready):not(.swipe-right-ready) .chat-swipe-actions,.chat-swipe-row:not(.actions-open):not(.swiping):not(.swipe-left-ready):not(.swipe-right-ready) .chat-read-cue{visibility:hidden!important;opacity:0!important}.chat-swipe-row .chat{width:100%!important;margin:0!important}.chat{min-height:61px!important}.secure{flex:none!important}
  .conversation{position:fixed!important;inset:var(--app-top,0) 0 auto!important;width:100%!important;height:var(--app-height,100dvh)!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
  .conversation-header{min-height:calc(58px + env(safe-area-inset-top))!important;padding:max(4px,env(safe-area-inset-top)) 8px 4px!important}.conversation-header>div{gap:7px!important}.conversation-header nav{flex:none!important;gap:5px!important}.conversation-header button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}.conversation-header .back-button{position:relative!important;z-index:20!important;touch-action:manipulation!important;pointer-events:auto!important}.conversation-header strong{max-width:36vw!important}
  .messages{padding:11px 10px 12px!important;overscroll-behavior:contain!important}.bubble{max-width:min(90%,520px)!important}.bubble p{font-size:17px!important;line-height:1.38!important}.message-line.mine .bubble p{font-size:16px!important}.emoji-message .single-emoji,.emoji-message.mine .single-emoji{font-size:clamp(62px,20vw,84px)!important}.bubble time{font-size:10px!important}.composer{width:calc(100% - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)))!important;max-width:none!important;margin:3px max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;box-shadow:0 8px 26px #0002!important}
  .auth-overlay,.modal-overlay,.profile-overlay,.admin-overlay{top:var(--app-top,0)!important;right:0!important;bottom:auto!important;left:0!important;width:100%!important;height:var(--app-height,100dvh)!important;min-height:0!important;padding:0!important;place-items:stretch!important;overflow:hidden!important}
  .auth-overlay{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important;place-items:center!important}.auth-card{width:min(430px,100%)!important;max-height:100%!important;padding:26px 20px!important;border-radius:26px!important}.auth-card input{height:47px!important}
  .modal-card,.admin-panel{width:100%!important;height:100%!important;max-height:100%!important;margin:0!important;border:0!important;border-radius:0!important;padding-bottom:env(safe-area-inset-bottom)!important}
  .profile-overlay{align-items:end!important;background:#07100dcc!important}.profile-card{width:100%!important;height:auto!important;max-height:calc(var(--app-height,100dvh) - max(8px,env(safe-area-inset-top)))!important;margin:0!important;overflow-y:auto!important;border:1px solid var(--lux-line)!important;border-bottom:0!important;border-radius:28px 28px 0 0!important;padding-bottom:env(safe-area-inset-bottom)!important}.profile-hero{padding:30px 18px 20px!important}.profile-close,.modal-close,.about-messenger-close,.admin-panel header button{position:absolute!important;z-index:30!important;top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.profile-card .profile-close{top:12px!important;right:12px!important}
  .profile-actions{position:sticky!important;top:0!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow-x:auto!important;padding:10px 5px!important}.profile-actions button{min-width:0!important;font-size:10px!important}.profile-actions b{width:42px!important;height:42px!important}
  .profile-section{padding:17px 15px!important}.profile-section>button,.profile-section input,.profile-section select{min-height:46px!important}.session-row{grid-template-columns:44px minmax(0,1fr) auto!important;padding:12px 11px!important}.session-row .session-action{max-width:none!important;min-height:48px!important;font-size:14px!important;white-space:normal!important}
  .user-search-card,.group-create-card{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}.user-search-header{padding:max(60px,calc(env(safe-area-inset-top) + 48px)) 14px 8px!important}.user-results,.group-contact-list{min-height:0!important;overflow-y:auto!important;padding:5px 12px calc(14px + env(safe-area-inset-bottom))!important}.contact-tabs{overflow-x:auto!important}.contact-tabs button{min-width:max-content!important}.contact-lookup-form{grid-template-columns:1fr!important}.contact-center .modal-close{display:grid!important}
  .admin-panel>header{position:relative!important;padding:max(18px,env(safe-area-inset-top)) 64px 12px 14px!important}.admin-users-list{min-height:0!important;overflow:auto!important}.admin-table-head>span:first-child,.admin-user-identity{background:var(--lux-panel)!important}
  .about-messenger-overlay{align-items:stretch!important;padding:0!important}.about-messenger-card{width:100%!important;height:var(--app-height,100dvh)!important;max-height:none!important;border:0!important;border-radius:0!important;padding:max(68px,calc(env(safe-area-inset-top) + 52px)) 16px calc(18px + env(safe-area-inset-bottom))!important;overflow-y:auto!important}
  .context-menu{max-width:calc(100vw - 20px)!important;max-height:calc(var(--app-height,100dvh) - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)))!important;overflow:auto!important}
  .toast{right:10px!important;bottom:calc(66px + env(safe-area-inset-bottom))!important;left:10px!important;max-width:none!important;text-align:center!important}.call-overlay:not(.hidden)~.toast{right:10px!important;left:10px!important;transform:none!important}
  .call-panel{width:100%!important;height:var(--app-height,100dvh)!important;max-height:none!important;border:0!important;border-radius:0!important}.call-actions,.call-controls{max-width:calc(100vw - 24px)!important;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))!important}.call-actions button,.call-controls button{min-width:54px!important;min-height:54px!important}
}
@media(max-width:380px){.conversation-header strong{max-width:29vw!important}.conversation-header button{width:38px!important;height:38px!important;min-width:38px!important}.profile-actions{grid-template-columns:repeat(5,62px)!important}.profile-actions button{font-size:9px!important}.bubble p{font-size:16px!important}.message-line.mine .bubble p{font-size:15.5px!important}.filters button{padding-inline:10px!important}.auth-card{padding-inline:16px!important}}
@media(max-height:700px){.auth-card{padding-top:20px!important;padding-bottom:20px!important}.auth-logo{width:46px!important;height:46px!important;margin-bottom:10px!important}.auth-card h2{font-size:25px!important}.auth-card>p{margin-bottom:14px!important}.auth-card form{gap:9px!important}.profile-hero{padding-bottom:16px!important}.profile-avatar{width:88px!important;height:88px!important}}
@media(max-height:600px){.auth-overlay{padding-block:4px!important}.auth-card{padding:14px 16px!important;border-radius:22px!important}.auth-logo{width:40px!important;height:40px!important;margin-bottom:5px!important}.auth-kicker{font-size:9px!important}.auth-card h2{margin-block:5px!important;font-size:23px!important}.auth-card>p{margin:0 0 7px!important;font-size:12px!important;line-height:1.3!important}.auth-card form{gap:5px!important}.auth-card label{gap:3px!important}.auth-card input{height:42px!important}.auth-card .primary,.auth-card .passkey-button{min-height:42px!important}.auth-switch,.about-messenger-open{min-height:28px!important}.auth-language-switch{top:12px!important;right:12px!important}}

/* Incoming call actions mirror the active-call layout: actions above, reject below. */
.call-overlay .call-panel>#incoming-actions.call-actions.hidden{display:none!important}
.call-overlay .call-panel>#incoming-actions.call-actions:not(.hidden){display:grid!important;grid-template-columns:repeat(2,88px)!important;grid-template-rows:auto auto!important;align-items:start!important;justify-content:center!important;column-gap:48px!important;row-gap:22px!important;width:auto!important;max-width:calc(100% - 24px)!important;margin:0 auto!important;padding:0!important}
#incoming-actions .call-action{display:grid!important;grid-template-rows:62px auto!important;justify-items:center!important;align-items:start!important;gap:9px!important;width:88px!important;min-width:88px!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#f1f7f3!important;font-size:14px!important;font-weight:700!important;line-height:1.15!important;white-space:nowrap!important;box-shadow:none!important;backdrop-filter:none!important}
#incoming-actions .call-action>span{display:grid!important;place-items:center!important;width:62px!important;height:62px!important;border:1px solid #cfff5760!important;border-radius:50%!important;background:linear-gradient(145deg,#080e0b,#20392d)!important;color:#cfff57!important;box-shadow:inset 0 1px #ffffff18,0 12px 28px #0007,0 0 22px #cfff5720!important}
#incoming-actions .call-action.accept{grid-column:1!important;grid-row:1!important}
#incoming-actions .call-action.video{grid-column:2!important;grid-row:1!important}
#incoming-actions .call-action.reject{grid-column:1/-1!important;grid-row:2!important;justify-self:center!important}
#incoming-actions .call-action.reject>span{border-color:#ff6874!important;background:linear-gradient(145deg,#da4754,#b92d3a)!important;color:#fff!important;box-shadow:inset 0 1px #ffffff30,0 12px 28px #0008,0 0 20px #e64d5930!important}
@media(max-width:700px){.call-overlay .call-panel>#incoming-actions.call-actions:not(.hidden){bottom:calc(22px + env(safe-area-inset-bottom))!important;column-gap:42px!important;row-gap:20px!important}#incoming-actions .call-action{font-size:13px!important}}
@media(max-width:360px){.call-overlay .call-panel>#incoming-actions.call-actions:not(.hidden){grid-template-columns:repeat(2,82px)!important;column-gap:30px!important}#incoming-actions .call-action{width:82px!important;min-width:82px!important}}
/* Mobile keyboards must resize the card, never expose an old dark underlay. */
body.keyboard-open .auth-overlay{height:var(--app-height,100dvh)!important;min-height:0!important;background:var(--lux-bg)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.keyboard-open .auth-card{max-height:none!important;margin:auto!important}
html[data-theme=dark] body.keyboard-open .auth-overlay{background:#060b08!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Larger cinematic single-emoji messages, bounded for small screens. */
.emoji-message{margin-block:10px!important}
.emoji-message .emoji-only-bubble{min-width:104px!important}
.emoji-message .single-emoji,.emoji-message.mine .single-emoji{font-size:clamp(82px,11vw,116px)!important;line-height:1.04!important}
@media(max-width:700px){.emoji-message .single-emoji,.emoji-message.mine .single-emoji{font-size:clamp(86px,27vw,112px)!important}}

/* Composer: independent attachment/send circles and emoji visually inside the input. */
.conversation .composer:not(.has-recording){
  grid-template-columns:44px minmax(0,1fr) 40px 44px!important;
  column-gap:8px!important;
  align-items:center!important;
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin:2px 12px max(3px,calc(env(safe-area-inset-bottom) - 7px))!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.conversation .composer:not(.has-recording)>#attach-button{grid-column:1;grid-row:1;width:44px!important;height:44px!important;margin:0!important;border:1px solid var(--lux-line)!important;border-radius:50%!important;background:var(--lux-panel)!important;box-shadow:0 7px 20px #15251b16!important}
.conversation .composer:not(.has-recording)>#message-input{grid-column:2/4;grid-row:1;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 46px 0 16px!important;border:1px solid var(--lux-line)!important;border-radius:999px!important;background:var(--lux-panel)!important;box-shadow:0 7px 20px #15251b12!important}
.conversation .composer:not(.has-recording)>#emoji-button{z-index:2;grid-column:3;grid-row:1;width:40px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important}
.conversation .composer:not(.has-recording)>.send{grid-column:4;grid-row:1;width:44px!important;height:44px!important;margin:0!important;border-radius:50%!important}
.conversation .composer:not(.has-recording):focus-within{border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme=dark] .conversation .composer:not(.has-recording){border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme=dark] .conversation .composer:not(.has-recording)>#attach-button,html[data-theme=dark] .conversation .composer:not(.has-recording)>#message-input{border-color:#314239!important;background:#0d1712!important}
@media(max-width:380px){
  .conversation .composer:not(.has-recording){grid-template-columns:42px minmax(0,1fr) 36px 42px!important;column-gap:6px!important;width:calc(100% - 16px)!important;margin-inline:8px!important}
  .conversation .composer:not(.has-recording)>#attach-button,.conversation .composer:not(.has-recording)>.send{width:42px!important;height:42px!important}
  .conversation .composer:not(.has-recording)>#message-input{height:42px!important;min-height:42px!important;padding-left:13px!important;padding-right:42px!important}
  .conversation .composer:not(.has-recording)>#emoji-button{width:36px!important;height:38px!important}
}

/* One quiet connectivity state shared by desktop, mobile web and installed PWA. */
.offline-banner{position:fixed;z-index:145;top:calc(env(safe-area-inset-top) + 64px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;width:min(520px,calc(100% - 28px));min-height:38px;padding:7px 14px;border:1px solid #eda648a8;border-radius:999px;background:color-mix(in srgb,var(--lux-panel) 91%,transparent);color:#eda648;font:750 13px/1.2 inherit;box-shadow:0 10px 28px #0003;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.offline-banner.hidden{display:none!important}.offline-banner.is-restored{border-color:color-mix(in srgb,var(--lux-green) 68%,transparent);color:var(--lux-green)}
.offline-banner-spinner{display:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%}.offline-banner.is-recovering .offline-banner-spinner{display:block;animation:offline-banner-spin .8s linear infinite}
@keyframes offline-banner-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.offline-banner{top:calc(env(safe-area-inset-top) + 56px);width:calc(100% - 24px)}}

/* Stable per-user dimensional fallback avatars. */
.avatar.avatar-orb,.mini-avatar.avatar-orb,.profile-avatar.avatar-orb,.member-avatar.avatar-orb{
  border-radius:50%!important;
  background:radial-gradient(circle at 28% 20%,var(--avatar-light) 0 8%,var(--avatar-base) 30%,var(--avatar-deep) 76%,#09110d 112%)!important;
  color:#fff!important;
  text-shadow:0 1px 3px #0008!important;
  box-shadow:inset 0 1px 1px #fff8,inset -8px -10px 18px #0003,0 7px 20px color-mix(in srgb,var(--avatar-base) 38%,transparent)!important;
  font-weight:850!important;
}
.profile-version{padding:2px 18px calc(15px + env(safe-area-inset-bottom));color:var(--lux-muted);font-size:11px;line-height:1.4;text-align:center;letter-spacing:.02em}
.profile-version span{color:var(--lux-green);font-variant-numeric:tabular-nums}

/* Collapsible chat search opened from the header; 16px prevents iOS zoom. */
.chat-search-drawer{box-sizing:border-box!important;max-height:0!important;min-height:0!important;margin:0 18px!important;padding:0 13px!important;overflow:hidden!important;border-width:0!important;opacity:0;transform:translateY(-10px);pointer-events:none;transition:max-height .3s cubic-bezier(.2,.8,.2,1),min-height .3s cubic-bezier(.2,.8,.2,1),margin .3s ease,padding .3s ease,border-width .2s ease,opacity .2s ease,transform .3s cubic-bezier(.2,.8,.2,1)}
.chat-search-drawer.is-open{max-height:50px!important;min-height:44px!important;margin:0 18px 10px!important;padding:8px 13px!important;border-width:1px!important;opacity:1;transform:translateY(0);pointer-events:auto}
.chat-search-drawer input{font-size:16px!important;line-height:1.25!important;transform:none!important}
.chat-search-drawer .chat-search-clear{display:grid!important;flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0 -4px 0 0!important;font-size:20px!important}
@media(max-width:700px){.chat-search-drawer,.chat-search-drawer.is-open{width:calc(100% - 28px)!important;margin-right:14px!important;margin-left:14px!important}.chat-search-drawer:not(.is-open){margin-bottom:0!important}.chat-search-drawer.is-open{margin-bottom:10px!important}.chat-header-actions{gap:6px!important}}

/* Every search surface stays at iOS' non-zooming minimum font size. */
input[type="search"],input[inputmode="search"],.search input,input[id*="search"],.contact-lookup-form input{font-size:16px!important;line-height:1.25!important;text-size-adjust:100%!important;-webkit-text-size-adjust:100%!important}
input[type="search"]::-webkit-search-cancel-button{display:none!important;-webkit-appearance:none!important}

/* Focus belongs to the complete search capsule, never to its inner controls. */
.search input:focus,.search input:focus-visible,.search button:focus,.search button:focus-visible{outline:0!important;border-color:transparent!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}
.search:focus-within,.chat-search:focus-within,.search.large:focus-within{border-color:var(--lux-green)!important;outline:0!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--lux-green) 20%,transparent),0 8px 22px #15251b12!important}
html[data-theme=dark] .search:focus-within,html[data-theme=dark] .chat-search:focus-within,html[data-theme=dark] .search.large:focus-within{border-color:#cfff57!important;box-shadow:0 0 0 3px #cfff5726,0 9px 24px #0005!important}

/* Rich message text: links and @mentions remain readable in both themes. */
.bubble p .message-link{color:#28765d!important;font-weight:700;text-decoration:none!important;text-underline-offset:0!important;overflow-wrap:anywhere}.bubble p .message-link:hover,.bubble p .message-link:focus-visible{color:#155e49!important;text-decoration:none!important}.bubble p .message-mention{color:#46761f;font-weight:750;overflow-wrap:anywhere}.message-line.mine .bubble p .message-link{color:#8ecfba!important}.message-line.mine .bubble p .message-mention{color:#cfff57!important}html[data-theme=dark] .bubble p .message-link{color:#78d7b8!important}html[data-theme=dark] .bubble p .message-mention{color:#cfff57!important}

/* More readable conversations and chat list, with matching text sizes. */
.gallery-editor{position:fixed;z-index:170;inset:0;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));background:#020806d9;backdrop-filter:blur(16px)}.gallery-editor-card{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(520px,100%);max-height:min(720px,calc(var(--app-height,100dvh) - 32px));overflow:hidden;border:1px solid var(--lux-line);border-radius:26px;background:var(--lux-panel);box-shadow:0 28px 80px #0009}.gallery-editor-card>header{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--lux-line)}.gallery-editor-card h3{margin:0;color:var(--lux-ink);font-size:18px}.gallery-editor-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--lux-line);border-radius:50%;background:var(--lux-panel-2);color:var(--lux-ink);font-size:27px}.gallery-editor-list{display:grid;gap:9px;padding:12px;overflow-y:auto}.gallery-editor-item{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px;border:1px solid var(--lux-line);border-radius:18px;background:var(--lux-panel-2)}.gallery-editor-preview{width:68px;height:68px;overflow:hidden;border-radius:14px;background:#07100d}.gallery-editor-preview img,.gallery-editor-preview video{width:100%;height:100%;object-fit:cover}.gallery-editor-item span{overflow:hidden;color:var(--lux-ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.gallery-editor-remove{min-height:40px;padding:0 15px;border:1px solid #d7636a66;border-radius:999px;background:transparent;color:#e36b72;font-weight:750}@media(max-width:700px){.gallery-editor{place-items:end center;padding-inline:0;padding-bottom:0}.gallery-editor-card{width:100%;max-height:calc(var(--app-height,100dvh) - max(12px,env(safe-area-inset-top)));border-radius:28px 28px 0 0}.gallery-editor-list{padding-bottom:calc(14px + env(safe-area-inset-bottom))}.gallery-editor-item{grid-template-columns:62px minmax(0,1fr) auto}.gallery-editor-preview{width:62px;height:62px}.gallery-editor-remove{padding-inline:12px}}

.contact-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;overflow:visible!important}.contact-tabs button{display:grid!important;place-items:center!important;width:100%!important;min-width:0!important;min-height:42px!important;height:100%!important;padding:7px 8px!important;line-height:1.15!important;text-align:center!important;white-space:normal!important}

.bubble p .message-phone-link{color:#28765d!important;font-weight:750;text-decoration:none!important;white-space:nowrap}.bubble p .message-phone-link:hover,.bubble p .message-phone-link:focus-visible{color:#155e49!important;text-decoration:none!important}.message-line.mine .bubble p .message-phone-link,html[data-theme=dark] .bubble p .message-phone-link{color:#cfff57!important}

.chat{min-height:76px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:12px!important;padding:10px 11px!important}
.chat .avatar{width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;min-height:50px!important;max-height:50px!important}
.chat>span{gap:4px!important}
.chat strong,.chat small{font-size:16px!important;line-height:1.3!important}
.message-line{margin-block:8px!important}
.bubble p,.message-line.mine .bubble p{font-size:18px!important;line-height:1.45!important}
@media(max-width:700px){
  .chat{min-height:74px!important;grid-template-columns:50px minmax(0,1fr) auto!important;padding:9px 10px!important}
  .message-line{margin-block:8px!important}
  .bubble p,.message-line.mine .bubble p{font-size:18px!important;line-height:1.45!important}
}
@media(max-width:380px){
  .chat{min-height:70px!important;grid-template-columns:46px minmax(0,1fr) auto!important;gap:10px!important;padding:8px!important}
  .chat .avatar{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important}
  .chat strong,.chat small{font-size:15.5px!important}
  .bubble p,.message-line.mine .bubble p{font-size:17.5px!important}
}
