.dex-dialog{width:min(520px,calc(100% - 24px));max-height:85dvh;margin:auto;padding:0;border:1px solid var(--line,#333);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 24px 90px #0008;overflow:auto}
/* Message actions stay inside the bubble; their menu sits above scroll containment. */
.message-bubble .dex-message-more{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:20px;margin:0 0 0 3px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;font:700 20px/1 system-ui;cursor:pointer;opacity:.65}
.message-bubble .dex-message-more:hover,.message-bubble .dex-message-more:focus-visible{opacity:1;background:#ffffff20}
.message-bubble .dex-message-select{display:none;align-items:center;justify-content:center;float:left;width:24px;height:24px;margin:0 8px 4px 0;padding:3px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.dex-message-select svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;visibility:hidden}
.dex-selecting-messages .dex-message-select{display:inline-flex}
.dex-message-selected .dex-message-select{background:var(--accent);color:#fff;border-color:var(--accent)}
.dex-message-selected .dex-message-select svg{visibility:visible}
.dex-message-selected .message-bubble{outline:2px solid var(--accent);outline-offset:-2px}
.dex-selecting-messages .message-bubble{cursor:pointer}
.dex-message-selection{display:flex;align-items:center;gap:8px;width:min(860px,100%);margin:0 auto 8px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-sizing:border-box;flex:0 0 auto}
.dex-message-selection-count{flex:1;min-width:0;font-size:13px;font-weight:600}
.dex-message-selection button{font:inherit;font-size:13px;font-weight:600;padding:9px 12px;border:0;border-radius:9px;background:var(--surface-2);color:var(--text);cursor:pointer}
.dex-message-selection .dex-message-delete{background:#f0445420;color:#ff6978}
.dex-message-selection button:disabled{opacity:.4;cursor:default}
.dex-message-menu{position:fixed;z-index:1500;min-width:174px;max-width:calc(100vw - 16px);padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 8px 28px #0004;box-sizing:border-box}
.dex-message-menu-item{display:block;width:100%;min-height:42px;text-align:left;border:0;border-radius:8px;padding:10px 14px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.dex-message-menu-item:hover,.dex-message-menu-item:focus-visible{background:var(--surface-2);outline:2px solid var(--accent);outline-offset:-2px}
.dex-message-menu-item.danger{color:#ff6978}
:root[data-theme="light"] .dex-message-menu-item.danger,:root[data-theme="light"] .dex-message-selection .dex-message-delete{color:#b11f36}
:root[data-theme="light"] .message-bubble .dex-message-more{color:inherit}
@media(hover:hover) and (pointer:fine){.message-bubble .dex-message-more{opacity:0}.message-row:hover .dex-message-more,.message-row:focus-within .dex-message-more,.dex-selecting-messages .dex-message-more{opacity:.7}}
@media(hover:none),(pointer:coarse){.message-bubble .dex-message-more{width:32px;height:28px;flex-basis:32px}}
@media(max-width:420px){.dex-message-selection{gap:5px;padding:7px 8px}.dex-message-selection button{padding:9px 8px}}
.dex-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
.dex-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--line,#333)}
.dex-dialog-head h2{margin:0;font-size:20px}.dex-dialog-body{display:flex;flex-direction:column;gap:14px;padding:20px}
.dex-dialog-body p{margin:0;color:var(--text-soft);line-height:1.5}.dex-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}
.dex-field input,.dex-field textarea,.dex-dialog select{padding:12px;width:100%;border-radius:12px;border:1px solid var(--line,#333);background:var(--surface-2);color:var(--text);font:inherit;box-sizing:border-box}
.dex-field textarea{min-height:90px;resize:vertical}.dex-dialog input:focus,.dex-dialog textarea:focus,.dex-dialog select:focus{outline:2px solid var(--accent,#8555ff);outline-offset:2px}
.dex-member-picker,.dex-discover-results{max-height:230px;overflow:auto}.dex-member-option{display:flex;align-items:center;gap:10px;padding:10px 0}.dex-member-option input{width:18px;height:18px;accent-color:var(--accent,#8555ff)}
.dex-member-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--line,#333);padding:12px 0}.dex-member-row small{width:100%;color:var(--text-soft)}
.dex-chat-policy{flex:0 0 auto;text-align:center;color:var(--text-soft);font-size:11px;padding:5px}.dex-copy-protected,.dex-copy-protected *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
.info-action-tile.muted{opacity:.55}.dex-dialog .verified-name-text{color:var(--text)}
.dex-message-sender{display:flex;align-items:center;gap:5px;font-size:12px;margin-bottom:4px;color:var(--text)}
.dex-photo-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dex-photo-picker .avatar{width:64px;height:64px;flex-shrink:0}.dex-photo-picker .dex-field{flex:1;min-width:160px}.dex-photo-picker input{max-width:100%;color:var(--text);font:inherit}.dex-photo-picker .danger{width:100%;text-align:left}
@media(max-width:680px){.dex-dialog{max-height:90dvh}.dex-dialog-head,.dex-dialog-body{padding:16px}}
@media(prefers-reduced-motion:reduce){.dex-dialog::backdrop{backdrop-filter:none}}

/* Keep the full label inside the rail button without changing the fixed base CSS. */
:root[data-theme]{--rail-width:80px}
.nav-rail .rail-button{box-sizing:border-box;width:64px;padding-inline:2px;max-width:100%}
.nav-rail .rail-button>span{display:block;max-width:100%;white-space:nowrap;text-align:center;line-height:1.25;letter-spacing:0;font-size:10px}
.nav-rail #savedButton>span{font-size:9px}

/* Auto/lite mode still animates names; costly shadows and filters remain disabled. */
@media(prefers-reduced-motion:no-preference){
  :root[data-performance="lite"] .nickname-effect-gradient{animation:nickname-flow 4s linear infinite!important}
  :root[data-performance="lite"] .nickname-effect-shine{animation:nickname-flow 2.8s linear infinite!important}
  :root[data-performance="lite"] .nickname-effect-rainbow{animation:nickname-flow 3.5s linear infinite!important}
  :root[data-performance="lite"] .nickname-effect-neon{animation:nickname-pulse 1.8s ease-in-out infinite!important}
  :root[data-performance="lite"] .nickname-effect-hologram{animation:nickname-flow 2.4s linear infinite!important}
  :root[data-performance="lite"] .nickname-effect-pulse{animation:nickname-pulse 1.45s ease-in-out infinite!important}
  :root[data-performance="lite"] .nickname-effect-glitch{animation:nickname-glitch 1.9s steps(2,end) infinite!important}
  :root[data-performance="lite"] .nickname-effect-fire{animation:nickname-flow 2.2s linear infinite!important}
  :root[data-performance="lite"] .nickname-effect-ice{animation:nickname-flow 3.4s linear infinite reverse!important}
}

/* R27: readable animated names on a light background, including auto/lite mode. */
:root[data-theme="light"] .nickname-effect{
  -webkit-text-stroke:0.45px #000;
  paint-order:stroke fill;
}

/* The profile keeps scrolling, without the visible scrollbar from the screenshot. */
.info-panel{scrollbar-width:none;-ms-overflow-style:none}
.info-panel::-webkit-scrollbar{display:none;width:0;height:0}

/* Four actions fit narrow phones as well as the centered desktop profile. */
.info-panel .info-action-row{
  width:100%;
  max-width:358px;
  margin-inline:auto;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.info-panel .info-more-wrap{width:auto}

/* Late dark-theme card styles must not override the selected light theme. */
:root[data-theme="light"] .info-about-card,
:root[data-theme="light"] .info-block,
:root[data-theme="light"] .info-admin-tools{
  background:#f5f7fb!important;
  border-color:#dbe2ed!important;
  color:#172335;
}
:root[data-theme="light"] .info-action-tile{
  background:#edf1f7;
  border-color:#dbe2ed;
  color:#172335;
}
:root[data-theme="light"] .info-action-tile:hover{
  background:#e2e9f3;
  border-color:#bbc8dc;
}
:root[data-theme="light"] .info-more-menu{
  background:#fff;
  border-color:#dbe2ed;
  color:#172335;
  box-shadow:0 12px 32px rgba(23,35,53,.18);
}
:root[data-theme="light"] .info-more-item{
  color:#172335;
}
:root[data-theme="light"] .info-more-item:hover{
  background:#edf1f7;
}
:root[data-theme="light"] .info-panel .info-label{
  color:#53647c;
}
:root[data-theme="light"] .info-about-card #infoDescription,
:root[data-theme="light"] .info-panel .info-tagline,
:root[data-theme="light"] .info-admin-tools h3{
  color:#172335;
}
:root[data-theme="light"] .info-admin-tools select{
  background:#fff!important;
  border-color:#bbc8dc!important;
  color:#172335!important;
}
:root[data-theme="light"] .info-panel .moderation-tools .text-button{
  background:#fff;
  border-color:#dbe2ed;
  color:#172335;
}
:root[data-theme="light"] .info-more-item.danger,
:root[data-theme="light"] .info-panel .moderation-tools .text-button.danger,
:root[data-theme="light"] .info-bottom-danger{
  color:#b42336;
}
:root[data-theme="light"] .info-bottom-danger{
  background:#fff4f5;
  border-color:#f0c5cc;
}
:root[data-theme="light"] .info-bottom-danger:hover{
  background:#ffe8ec;
}

/* R28: hidden call actions must not leave a fourth empty column. */
.info-panel .info-action-row[data-action-count="3"]{
  max-width:266px;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* The selected account uses a text label, independent of verification badges. */
.account-active-mark{
  display:inline;
  width:auto;
  height:auto;
  padding:0;
  border-radius:0;
  background:none;
  color:var(--text-soft);
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}

.auth-card .auth-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.auth-tabs .auth-tab{min-width:0;flex:1;padding-inline:6px;font-size:12px;white-space:nowrap}
.auth-help-actions{display:flex;justify-content:center;min-width:0}
.auth-help-actions .text-button{padding:8px;color:var(--text-soft);font-size:13px}
.auth-help-actions .text-button:hover{color:var(--text)}
.auth-form .field-hint{overflow-wrap:anywhere}
.auth-form .code-input-wrap{min-width:0}
.auth-form #emailCodeInput{min-width:0;letter-spacing:2px}
.auth-form .code-button{flex-shrink:0;font-size:11px;padding-inline:10px}
.auth-help-actions button:focus-visible,.dex-chat-choice:focus-visible,.dex-contact-open:focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;
}

.dex-new-chat-dialog{width:min(620px,calc(100% - 24px))}
.dex-dialog .dex-dialog-intro{font-size:13px;line-height:1.6;color:var(--text-soft)}
.dex-chat-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dex-chat-choice{
  display:flex;align-items:center;gap:14px;min-width:0;min-height:116px;
  padding:18px;text-align:left;border:1px solid var(--line-strong);
  border-radius:16px;background:var(--surface-2);color:var(--text);font:inherit;
  transition:border-color 160ms ease,background 160ms ease,transform 160ms ease;
}
.dex-chat-choice:first-child{grid-column:1/-1;min-height:98px;background:linear-gradient(115deg,var(--accent-soft),var(--surface-2))}
.dex-chat-choice:hover{border-color:var(--accent);background:var(--surface-hover);transform:translateY(-1px)}
.dex-chat-choice-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--line-strong);border-radius:13px;background:var(--surface);color:var(--accent)}
.dex-chat-choice-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dex-chat-choice-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
.dex-chat-choice-copy strong{font-size:14px;line-height:1.25;color:var(--text)}
.dex-chat-choice-copy small{font-size:12px;line-height:1.5;color:var(--text-soft)}

.dex-contacts-list{display:grid;gap:8px;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.dex-contact-row{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);min-width:0}
.dex-contact-open{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding:0;border:0;background:transparent;color:var(--text);text-align:left;font:inherit}
.dex-contact-open .avatar{flex-shrink:0}
.dex-contact-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.dex-contact-copy strong{max-width:100%;font-size:14px;color:var(--text)}
.dex-contact-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);font-size:12px}
.dex-contact-row>button:last-child{flex-shrink:0;font-size:11px}
.dex-contact-row .dex-contact-remove{color:var(--text-soft)}
.dex-contact-row .dex-contact-remove:hover{color:var(--danger)}
.dex-dialog .dex-contact-hint{font-size:12px;color:var(--text-soft)}
:root[data-theme="light"] .dex-dialog .dex-dialog-intro,
:root[data-theme="light"] .dex-chat-choice-copy small,
:root[data-theme="light"] .dex-contact-copy small,
:root[data-theme="light"] .dex-dialog .dex-contact-hint,
:root[data-theme="light"] .dex-contact-row .dex-contact-remove,
:root[data-theme="light"] .account-active-mark,
:root[data-theme="light"] .auth-help-actions .text-button{color:#53647c}
@media(max-width:420px){
  .dex-chat-choices{grid-template-columns:1fr;gap:10px}
  .dex-chat-choice,.dex-chat-choice:first-child{min-height:86px;padding:15px}
  .dex-contact-row{padding:8px;gap:6px}
  .dex-contact-open{gap:8px}
  .auth-tabs .auth-tab{font-size:11px}
  .auth-form input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.dex-chat-choice{transition:none}.dex-chat-choice:hover{transform:none}}
/* R29: call stage. Keep the user's original styles.css untouched. */
.toast-region { z-index: 210; }
.round-call-button.danger svg.hangup-icon,
.call-control.end svg.hangup-icon {
  width: 26px;
  height: 26px;
  transform: none;
  fill: currentColor;
  stroke: none;
}
.call-overlay {
  position: fixed;
  z-index: 200;
  background: #101013;
  color: #fff;
  color-scheme: dark;
  isolation: isolate;
}
.call-overlay .call-backdrop {
  padding: 110px 24px 155px;
  background: radial-gradient(ellipse 360px 280px at 50% 49%, #433072 0%, #182b50 50%, transparent 100%), #101013;
}
.call-overlay .call-backdrop h2 { order: 0; color: #fff; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.035em; }
.call-overlay .call-backdrop #callStatus { order: 1; color: #c9cbd6; margin: 7px 0 24px; }
.call-overlay .call-avatar { order: 2; width: clamp(120px, 15vw, 200px); height: clamp(120px, 15vw, 200px); border: none; margin: 0; box-shadow: none; font-size: 58px; }
.call-overlay .call-remote-media { order: 3; font-size: 12px; padding: 8px 12px; border-radius: 12px; background: #17181ecc; color: #dddfee; margin-top: 16px; }
.call-overlay .remote-video { object-fit: cover; }
.call-overlay.remote-ready .remote-video { opacity: 1; }
.call-overlay.remote-screen .remote-video { object-fit: contain; }
.call-overlay.remote-ready .call-backdrop {
  align-content: start;
  justify-items: start;
  justify-content: start;
  padding: 28px;
  text-align: left;
  background: linear-gradient(180deg, #0009, transparent 28%, transparent 72%, #0009);
  pointer-events: none;
}
.call-overlay.remote-ready .call-avatar { display: none; }
.call-overlay.remote-ready .call-backdrop #callStatus { margin-bottom: 0; }
.call-self-tile {
  position: absolute;
  z-index: 2;
  top: 78px;
  right: 18px;
  display: grid;
  place-items: center;
  width: clamp(150px, 19vw, 250px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at center, #253f5c, #26262e);
  border: 1px solid #ffffff0d;
}
.call-overlay .call-self-avatar { width: 76px; height: 76px; font-size: 24px; }
.call-overlay .local-video {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  background: transparent;
}
.call-overlay.local-screen .local-video { transform: none; object-fit: contain; }
.call-self-label { position: absolute; z-index: 3; bottom: 12px; left: 16px; color: #fff; font-size: 13px; font-weight: 650; text-shadow: 0 1px 5px #000; }
.call-overlay .call-controls {
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  padding: 0;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.call-overlay .call-control,
.call-utility {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #414153;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.call-overlay .call-control.off { background: #fff; color: #24242c; }
.call-overlay .call-control.end { width: 56px; background: #ce3e57; color: #fff; }
.call-overlay .call-control.active { background: #7956f1; color: #fff; }
.call-overlay .call-control svg,
.call-utility svg,
.call-device-menu svg,
.call-settings-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.call-device-control { display: flex; align-items: center; gap: 0; background: #414153; border-radius: 30px; }
.call-device-menu { display: grid; place-items: center; width: 26px; height: 52px; margin-right: 2px; border: 0; border-radius: 0 30px 30px 0; padding: 0; background: transparent; color: #fff; cursor: pointer; }
.call-device-menu svg { width: 18px; height: 18px; }
.call-utility:hover,
.call-device-menu:hover { background: #56566c; }
.call-overlay button:focus-visible,
.call-overlay select:focus-visible,
.call-overlay input:focus-visible { outline: 2px solid #bda5ff; outline-offset: 3px; }
.call-overlay button:disabled { cursor: not-allowed; opacity: .42; }
.call-minimize { position: absolute; z-index: 3; top: 18px; right: 18px; width: 48px; height: 48px; }
.call-minimize .restore-icon { display: none; }
.call-secondary-controls { position: absolute; z-index: 3; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: 18px; display: flex; gap: 12px; }
.call-settings { position: absolute; z-index: 5; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); right: 18px; width: min(350px, calc(100% - 24px)); max-height: calc(100% - 112px); overflow-y: auto; overscroll-behavior: contain; padding: 20px; border: 1px solid #ffffff20; border-radius: 22px; background: #20212af5; box-shadow: 0 12px 48px #0008; color: #fff; scrollbar-width: thin; }
.call-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.call-settings-heading h3 { margin: 0; color: #fff; font-size: 17px; }
.call-settings-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: #ffffff0c; color: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.call-setting-field { display: grid; gap: 7px; margin: 0 0 14px; color: #ececf7; font-size: 12px; }
.call-setting-field > span { display: flex; justify-content: space-between; align-items: center; }
.call-overlay .call-setting-field select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #ffffff20; border-radius: 10px; background: #30313d; color: #fff; font: inherit; font-size: 13px; }
.call-overlay .call-setting-field select:disabled { opacity: .55; }
.call-setting-field input[type="range"] { width: 100%; accent-color: #9c7bff; }
.call-setting-check { display: flex; align-items: center; gap: 9px; font-size: 12px; margin: 4px 0 16px; color: #ececf7; }
.call-setting-check input { accent-color: #9c7bff; width: 16px; height: 16px; }
.call-settings-hint { color: #bfc1d0; font-size: 11px; line-height: 1.5; margin: -4px 0 16px; }
.call-settings-hint:last-child { margin: 0; }
.call-overlay button.call-control:not(.off),
.call-overlay button.call-utility,
.call-overlay button.call-device-menu,
.call-overlay button.call-settings-close,
button.round-call-button.danger,
button.round-call-button.accept { color: #fff; }
.call-overlay.minimized {
  inset: auto 18px calc(88px + env(safe-area-inset-bottom, 0px)) auto;
  width: 320px;
  height: 210px;
  border: 1px solid #ffffff25;
  border-radius: 20px;
  box-shadow: 0 12px 50px #0006;
}
.call-overlay.minimized .call-backdrop { padding: 20px 42px 64px 18px; align-content: center; }
.call-overlay.minimized .call-backdrop h2 { font-size: 16px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-overlay.minimized .call-backdrop #callStatus { margin: 4px 0 8px; font-size: 11px; }
.call-overlay.minimized .call-avatar { width: 54px; height: 54px; font-size: 20px; }
.call-overlay.minimized .call-self-tile,
.call-overlay.minimized .call-secondary-controls,
.call-overlay.minimized .call-device-menu,
.call-overlay.minimized .call-remote-media { display: none; }
.call-overlay.minimized .call-controls { bottom: 12px; gap: 10px; }
.call-overlay.minimized .call-control { width: 38px; height: 38px; }
.call-overlay.minimized .call-control svg { width: 19px; height: 19px; }
.call-overlay.minimized .call-control.end svg.hangup-icon { width: 21px; height: 21px; }
.call-overlay.minimized .call-minimize { width: 32px; height: 32px; top: 10px; right: 10px; }
.call-overlay.minimized .call-minimize svg { width: 19px; height: 19px; }
.call-overlay.minimized .minimize-icon { display: none; }
.call-overlay.minimized .restore-icon { display: block; }
@media (max-width: 680px) {
  .call-overlay .call-controls { gap: 12px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .call-overlay .call-control { width: 46px; height: 46px; }
  .call-overlay .call-control.end { width: 46px; }
  .call-device-menu { width: 22px; height: 44px; }
  .call-overlay .call-backdrop { padding: 150px 18px 175px; }
  .call-overlay .call-avatar { width: 134px; height: 134px; font-size: 40px; }
  .call-self-tile { width: 122px; top: 65px; right: 14px; border-radius: 15px; }
  .call-overlay .call-self-avatar { width: 50px; height: 50px; font-size: 18px; }
  .call-self-label { font-size: 11px; left: 10px; bottom: 8px; }
  .call-minimize { top: 14px; right: 14px; width: 38px; height: 38px; }
  .call-secondary-controls { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); right: 14px; gap: 10px; }
  .call-secondary-controls .call-utility { width: 38px; height: 38px; }
  .call-secondary-controls .call-utility svg { width: 20px; height: 20px; }
  .call-settings { right: 12px; bottom: calc(130px + env(safe-area-inset-bottom, 0px)); max-height: calc(100% - 150px); padding: 16px; }
  .call-overlay.minimized { width: 272px; max-width: calc(100% - 24px); height: 192px; right: 12px; }
  .call-overlay.minimized .call-control { width: 38px; height: 38px; }
}
@media (max-height: 460px) {
  .call-overlay:not(.minimized) .call-backdrop { padding: 20px 24px 100px; }
  .call-overlay:not(.minimized) .call-avatar { width: 90px; height: 90px; font-size: 28px; }
  .call-overlay:not(.minimized) .call-backdrop h2 { font-size: 20px; }
  .call-overlay:not(.minimized) .call-backdrop #callStatus { margin: 5px 0 12px; }
  .call-overlay:not(.minimized) .call-self-tile { width: 118px; top: 72px; }
}

/* R30: resolve wallpaper presets after theme overrides in styles.css. */
:root[data-chat-background="aurora"] {
  --chat-background-base: #071423;
  --chat-glow-one: rgba(38, 184, 255, .22);
  --chat-glow-two: rgba(126, 73, 255, .2);
  --chat-pattern: rgba(194, 225, 255, .1);
}
:root[data-chat-background="cosmos"] {
  --chat-background-base: #090a1b;
  --chat-glow-one: rgba(100, 76, 255, .28);
  --chat-glow-two: rgba(218, 67, 255, .15);
  --chat-pattern: rgba(194, 199, 255, .13);
}
:root[data-chat-background="sunset"] {
  --chat-background-base: #24111c;
  --chat-glow-one: rgba(255, 112, 84, .28);
  --chat-glow-two: rgba(255, 189, 84, .16);
  --chat-pattern: rgba(255, 226, 206, .11);
}
:root[data-chat-background="forest"] {
  --chat-background-base: #071a18;
  --chat-glow-one: rgba(42, 204, 156, .22);
  --chat-glow-two: rgba(80, 144, 255, .13);
  --chat-pattern: rgba(197, 255, 233, .1);
}
:root[data-theme="light"][data-chat-background="aurora"] {
  --chat-background-base: #ecf7ff;
  --chat-glow-one: rgba(38, 156, 226, .12);
  --chat-glow-two: rgba(126, 73, 255, .09);
  --chat-pattern: rgba(63, 93, 130, .08);
}
:root[data-theme="light"][data-chat-background="cosmos"] {
  --chat-background-base: #f1ecfa;
  --chat-glow-one: rgba(100, 76, 255, .14);
  --chat-glow-two: rgba(218, 67, 255, .09);
  --chat-pattern: rgba(84, 72, 137, .08);
}
:root[data-theme="light"][data-chat-background="sunset"] {
  --chat-background-base: #fff1e8;
  --chat-glow-one: rgba(255, 112, 84, .16);
  --chat-glow-two: rgba(255, 189, 84, .12);
  --chat-pattern: rgba(132, 78, 53, .08);
}
:root[data-theme="light"][data-chat-background="forest"] {
  --chat-background-base: #eaf6ef;
  --chat-glow-one: rgba(42, 180, 136, .13);
  --chat-glow-two: rgba(80, 144, 255, .08);
  --chat-pattern: rgba(41, 109, 83, .08);
}
:root[data-chat-background="minimal"] {
  --chat-background-base: var(--bg);
  --chat-glow-one: transparent;
  --chat-glow-two: transparent;
  --chat-pattern: transparent;
}
:root[data-chat-background="custom"] {
  --chat-background-base: var(--chat-custom-color);
  --chat-glow-one: transparent;
  --chat-glow-two: transparent;
  --chat-pattern: transparent;
}
:root[data-chat-background] .conversation {
  background:
    radial-gradient(circle at 89% 4%, var(--chat-glow-one), transparent 38%),
    radial-gradient(circle at 15% 100%, var(--chat-glow-two), transparent 38%),
    var(--chat-background-base) !important;
}
:root[data-performance="lite"][data-chat-background] .conversation,
:root[data-chat-background="minimal"] .conversation,
:root[data-chat-background="custom"] .conversation {
  background: var(--chat-background-base) !important;
}
:root[data-chat-background] .conversation::before {
  background-image: radial-gradient(circle at center, var(--chat-pattern) 1px, transparent 1.1px);
  background-size: 30px 30px;
  opacity: .45;
}
:root[data-chat-background] .conversation::after,
:root[data-chat-background="minimal"] .conversation::before,
:root[data-chat-background="custom"] .conversation::before {
  display: none;
}

/* R31: community management, member identities and photo selection. */
.dex-dialog {
  box-sizing: border-box;
  overflow: hidden;
  max-height: min(85dvh, 800px);
}
.dex-dialog[open] { display: flex; flex-direction: column; }
.dex-dialog-head { flex: 0 0 auto; min-width: 0; }
.dex-dialog-head h2 { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.dex-dialog-head .text-button { flex-shrink: 0; white-space: nowrap; }
.dex-dialog-body {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dex-dialog-body::-webkit-scrollbar { width: 0; height: 0; }
.dex-dialog-body > .primary-button,
.dex-dialog-body > .secondary-button { flex-shrink: 0; }
.dex-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dex-dialog-actions > button { flex: 1 1 120px; min-width: 0; }
.dex-dialog .danger-button { background: #bb2d46; border-color: #bb2d46; color: #fff; }
.dex-dialog .danger-button:hover { background: #a3233a; border-color: #a3233a; }
.dex-dialog .dex-delete-warning { color: var(--danger); }
.dex-dialog .dex-username-hint { font-size: 12px; line-height: 1.55; }
.dex-community-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 358px;
  margin: 16px auto 0;
}
.dex-community-actions > button { min-height: 40px; min-width: 0; margin: 0; white-space: normal; }
.dex-community-actions #dexMembersButton { flex: 0 1 auto; }
.dex-community-actions #dexChatEditButton { flex: 1 1 160px; }
.dex-member-picker { display: grid; gap: 4px; min-width: 0; }
.dex-member-option {
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
}
.dex-member-option:hover { background: var(--surface-2); }
.dex-member-option > input { margin: 0; flex-shrink: 0; }
.dex-member-option > .avatar { width: 36px; height: 36px; font-size: 14px; }
.dex-member-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dex-member-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 14px; }
.dex-member-name .verification-badge { margin-inline-start: 0; flex-shrink: 0; }
.dex-member-name .verified-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dex-member-copy small { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; color: var(--text-soft); }
.dex-member-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); min-width: 0; gap: 10px; }
.dex-member-row > .avatar { width: 40px; height: 40px; font-size: 14px; }
.dex-member-row > .text-button { grid-column: 2; justify-self: start; text-align: left; }
.dex-dialog .dex-picker-empty { padding: 10px 0; font-size: 12px; line-height: 1.5; }
.dex-photo-picker { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 14px; min-width: 0; }
.dex-photo-copy { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dex-photo-copy > strong { font-size: 13px; line-height: 1.4; }
.dex-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dex-photo-actions > button { min-height: 38px; min-width: 0; }
.dex-photo-actions > .danger { width: auto; }
.dex-photo-status { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; color: var(--text-soft); }
.dex-photo-picker input[hidden] { display: none !important; }
@media (max-width: 680px) {
  .dex-dialog { max-height: 90dvh; }
  .dex-dialog-head h2 { font-size: 18px; }
}
@media (max-width: 375px) {
  .dex-photo-picker { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .dex-photo-picker .avatar { width: 52px; height: 52px; }
}

/* R32: account email sign-in, readable action menus and notification cards. */
.accounts-modal .account-mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.accounts-modal .account-mode-tab { min-width: 0; padding: 8px 6px; line-height: 1.3; white-space: nowrap; }
.accounts-modal .account-code-hint { font-size: 12px; color: var(--text-soft); }
.accounts-modal .add-account-form > .secondary-button { min-height: 40px; }
.info-panel .info-more-menu { width: min(300px, calc(100vw - 40px)); max-height: min(60dvh, 480px); overflow-y: auto; padding: 6px; box-sizing: border-box; }
.info-panel .info-more-item { grid-template-columns: 22px minmax(0, 1fr); width: 100%; min-width: 0; gap: 12px; padding: 12px 10px; border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.45; white-space: normal; }
.info-panel .info-more-item > span { min-width: 0; font-size: inherit; line-height: inherit; overflow-wrap: normal; word-break: normal; }
.info-more-item .dex-menu-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.info-more-item .dex-menu-icon svg { display: block; width: 22px; height: 22px; }
.info-more-item .dex-menu-label { text-align: left; }
.dex-community-actions { margin-top: 6px; margin-bottom: 14px; width: calc(100% - 28px); }
.verification-badge.bronze,
.verification-badge.silver { width: 15px; height: 15px; flex: 0 0 15px; background-color: transparent !important; background-position: center; background-size: contain; background-repeat: no-repeat; clip-path: none; box-shadow: none; filter: none; }
.verification-badge.bronze.small,
.verification-badge.silver.small { width: 13px; height: 13px; flex: 0 0 13px; }
.verification-badge.bronze { background-image: url('/verification-blue.png?v=3.71') !important; }
.verification-badge.silver { background-image: url('/verification-silver.png?v=3.71') !important; }
.verification-badge.bronze svg,
.verification-badge.silver svg { display: none; }
.dex-notification-dialog { width: min(560px, calc(100% - 24px)); }
.dex-notification-dialog .dex-notification-intro { font-size: 13px; line-height: 1.6; }
.dex-notification-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); min-width: 0; }
.dex-notification-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--accent-soft); font-size: 21px; }
.dex-notification-copy { min-width: 0; }
.dex-notification-copy h3 { margin: 0 0 6px; color: var(--text); font-size: 14px; line-height: 1.4; }
.dex-notification-copy p { font-size: 12px; line-height: 1.55; }
.dex-notification-status { display: block; margin-top: 7px; color: var(--text); font-size: 12px; line-height: 1.5; }
.dex-notification-actions { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dex-notification-toggle { min-width: 112px; min-height: 40px; padding: 9px 14px; border-radius: 12px; font-size: 12px; }
.dex-notification-toggle[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.dex-sound-preview { font-size: 12px; min-height: 40px; padding: 8px; }
.dex-notification-dialog .dex-notification-hint { font-size: 11px; line-height: 1.6; }
@media (max-width: 420px) {
  .accounts-modal .accounts-content { padding: 16px; gap: 16px; }
  .accounts-modal .account-mode-tab { font-size: 12px; padding-inline: 3px; }
  .accounts-modal .add-account-form { padding: 14px; min-width: 0; }
  .accounts-modal .add-account-form .primary-button { width: 100%; min-width: 0; justify-self: stretch; }
  .dex-notification-card { padding: 12px; gap: 10px; }
  .dex-notification-actions { grid-column: 1 / -1; }
  .dex-notification-actions > button { flex: 1 1 110px; }
}


/* R33: chat context menus, privacy and lightweight rendering. */
.dex-chat-filters{display:flex;gap:6px;padding:0 12px 9px;flex:0 0 auto}
.dex-chat-filter{flex:1;min-height:34px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-soft);font-size:12px;font-weight:600;cursor:pointer}
.dex-chat-filter[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--line-strong);color:var(--text)}
.dex-chat-row{position:relative;min-width:0}
.dex-chat-row>.chat-item,.dex-chat-row>.user-result{width:100%;padding-right:48px}
.dex-chat-row .chat-copy-head{gap:8px}
.dex-chat-row .chat-meta{flex-direction:row;gap:4px}
.dex-chat-more{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:9px;background:var(--surface-2);color:var(--text-soft);font-size:23px;line-height:1;opacity:0;pointer-events:none;cursor:pointer}
.dex-chat-row:hover .dex-chat-more,.dex-chat-row:focus-within .dex-chat-more,.dex-chat-more[aria-expanded="true"]{opacity:1;pointer-events:auto}
.dex-chat-more:hover{border-color:var(--line-strong);color:var(--text)}
.dex-chat-more:focus-visible,.dex-chat-filter:focus-visible,.dex-chat-menu-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dex-pin-mark{font-size:10px;line-height:1}
.dex-chat-context{position:fixed;z-index:250;padding:5px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);max-height:calc(100dvh - 24px);overflow-y:auto}
.dex-chat-menu-item{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:43px;padding:9px 11px;border:0;border-radius:9px;text-align:left;background:transparent;color:var(--text);font-size:13px;line-height:1.35;cursor:pointer}
.dex-chat-menu-item:hover{background:var(--surface-hover)}
.dex-chat-menu-item .dex-menu-icon{display:flex;width:20px;height:20px}
.dex-chat-menu-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dex-chat-menu-item .dex-menu-label{min-width:0;overflow-wrap:anywhere}
.dex-privacy-dialog{width:min(600px,calc(100vw - 28px))}
.dex-privacy-list{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.dex-privacy-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:10px;min-height:58px;padding:10px 13px;border-bottom:1px solid var(--line);color:var(--text);font-size:14px}
.dex-privacy-row:last-child{border-bottom:0}
.dex-privacy-copy{display:flex;align-items:center;gap:10px;min-width:0;line-height:1.4}
.dex-privacy-icon{flex:0 0 22px;text-align:center;font-size:17px}
.dex-privacy-row select{width:100%;min-width:0;min-height:36px;padding:6px 5px;background:var(--surface-2);border:1px solid var(--line-strong);border-radius:9px;color:var(--accent);font-size:13px}
:root[data-theme] .dex-privacy-row select{color:var(--accent)!important}
.dex-privacy-extra{display:grid;gap:8px}
.dex-privacy-link{min-height:44px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);text-align:left;color:var(--text);font-size:13px;line-height:1.5;cursor:pointer}
.dex-privacy-link:hover{border-color:var(--accent)}
.dex-privacy-link:disabled{opacity:.6;cursor:default}
.dex-inactivity-dialog{width:min(450px,calc(100vw - 28px))}
.dex-inactivity-options{display:grid;gap:4px;margin:0;padding:0;border:0}
.dex-inactivity-options legend{padding:0 0 8px;color:var(--text-soft);font-size:12px}
.dex-inactivity-option{display:flex;align-items:center;gap:12px;min-height:43px;padding:8px 10px;border-radius:10px;cursor:pointer;color:var(--text)}
.dex-inactivity-option:has(input:checked){background:var(--accent-soft)}
.dex-inactivity-option input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:var(--accent)}
.dex-blocked-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0}
:root[data-performance="lite"] .dex-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-performance="lite"] .dex-dialog,:root[data-performance="lite"] .dex-chat-context{box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-performance="lite"] .dex-chat-row,:root[data-performance="lite"] .dex-chat-more,:root[data-performance="lite"] .dex-chat-filter,:root[data-performance="lite"] .dex-chat-menu-item{transition:none!important}
:root[data-performance="lite"] .nickname-effect.dex-offscreen-name,:root[data-tab-hidden="true"] .nickname-effect{animation-play-state:paused!important}
@media(hover:none){.dex-chat-more{opacity:1;pointer-events:auto;width:38px;height:38px;right:5px}.dex-chat-row>.chat-item,.dex-chat-row>.user-result{padding-right:49px}}
@media(max-width:420px){.dex-privacy-row{grid-template-columns:minmax(0,1fr) 116px;gap:6px;padding:9px 10px;font-size:12px}.dex-privacy-copy{gap:6px}.dex-privacy-row select{font-size:12px}.dex-privacy-icon{flex-basis:18px;font-size:15px}.dex-blocked-row{grid-template-columns:34px minmax(0,1fr);gap:8px}.dex-blocked-row>.text-button{grid-column:2;justify-self:start}.dex-chat-row .chat-time{font-size:9px}}

/* R35: gold nickname shimmer uses the existing clipped-text rendering. */
.nickname-effect-gold{
  background-image:linear-gradient(105deg,#c3912a 0%,#e9b949 24%,#fff5bd 42%,#f4cd65 54%,#bb8420 72%,#e9b949 86%,#c3912a 100%);
  animation:nickname-flow 3.8s linear infinite;
  filter:none;
  text-shadow:none;
}
@media(prefers-reduced-motion:reduce){.nickname-effect-gold{animation:none!important}}

/* R35: static supplied Premium icon, adjacent badges and visibility setting. */
.verified-name-badges{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;vertical-align:middle;white-space:nowrap}
.verified-name-badges .verification-badge{margin:0!important}
.verification-badge.premium{width:16px;height:16px;flex:0 0 16px;display:inline-flex;align-items:center;justify-content:center;background:transparent!important;clip-path:none!important;mask:none!important;-webkit-mask:none!important;box-shadow:none!important;filter:none!important;animation:none!important;border:0!important}
.verification-badge.premium.small{width:14px;height:14px;flex-basis:14px}
.verification-badge.premium::before,.verification-badge.premium::after{display:none!important}
.verification-badge.premium img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;border:0;background:transparent;animation:none!important;pointer-events:none}
.dex-premium-badge-setting{display:flex;align-items:center;gap:10px;margin:14px 0 4px;color:var(--text);cursor:pointer}
.dex-premium-badge-setting input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--accent)}
.dex-premium-badge-status{display:block;min-height:1.4em;color:var(--text-soft);font-size:12px}
.dex-premium-dialog{width:min(580px,calc(100% - 24px))}
.dex-premium-hero{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(115deg,var(--accent-soft),var(--surface-2))}
.verification-badge.premium.dex-premium-preview{width:36px;height:36px;flex-basis:36px}

/* R37: the three supplied badge images have equal painted bounds and no text tick. */
.verification-badge:is(.bronze,.silver,.gold){display:inline-flex;align-items:center;justify-content:center;width:15px!important;height:15px!important;flex:0 0 15px!important;padding:0!important;background-color:transparent!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;clip-path:none!important;box-shadow:none!important;filter:none!important}
.verification-badge:is(.bronze,.silver,.gold).small{width:13px!important;height:13px!important;flex-basis:13px!important}
.verification-badge.gold{background-image:url('/verification-gold.png?v=3.71')!important}
.verification-badge:is(.bronze,.silver,.gold) svg{display:none!important}
.verification-badge:is(.bronze,.silver,.gold)::before,.verification-badge:is(.bronze,.silver,.gold)::after{display:none!important}
#infoName .verification-badge:is(.bronze,.silver,.gold){width:16px!important;height:16px!important;flex:0 0 16px!important;background-size:contain!important}
.dex-premium-heading{font-size:19px;font-weight:700;line-height:1.4;color:var(--text)}
.dex-premium-perks{display:grid;gap:12px;padding-left:22px;margin:8px 0;line-height:1.5;color:var(--text)}
.dex-premium-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dex-premium-plan{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:17px;border:1px solid var(--line-strong);border-radius:15px;background:var(--surface-2);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.dex-premium-plan:hover{border-color:var(--accent);background:var(--surface-hover)}
.dex-premium-plan strong{font-size:14px}.dex-premium-price{font-size:24px;font-weight:700}.dex-premium-plan small{color:var(--text-soft)}
.dex-premium-publish{display:flex;align-items:flex-start;gap:10px;color:var(--text);font-size:13px;line-height:1.5}
.dex-premium-publish input{width:17px;height:17px;flex:0 0 17px;accent-color:var(--accent);margin-top:2px}
.dex-premium-continuation{display:grid;gap:10px;min-width:0}.dex-premium-continuation a{display:flex;justify-content:center;text-decoration:none;overflow-wrap:anywhere}
.dex-admin-premium{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--line);margin-top:14px}
.dex-admin-premium select,.dex-premium-dialog select{min-width:0;max-width:100%;padding:10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-2);color:var(--text);font:inherit}
:root[data-theme] .dex-admin-premium select,:root[data-theme] .dex-premium-dialog select{color:var(--text)!important}
.dex-attach-button{flex:0 0 34px;width:34px;height:34px;color:var(--text-soft)}
.dex-attachment-tray{display:flex;align-items:center;gap:12px;justify-content:space-between;width:min(850px,100%);margin:0 auto 7px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px;color:var(--text)}
.dex-attachment-tray>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dex-attachment-tray button{flex-shrink:0}
.dex-message-attachment{display:flex;flex-direction:column;gap:7px;max-width:100%;min-width:0;color:inherit}
.dex-message-attachment img,.dex-message-attachment video{display:block;width:auto;max-width:min(320px,100%);max-height:280px;height:auto;object-fit:contain;border-radius:10px;background:var(--surface-2)}
.dex-message-attachment a{color:inherit;text-decoration:none;overflow-wrap:anywhere}.dex-message-attachment>a{padding:9px 4px}
.dex-message-attachment small{font-size:10px;line-height:1.4;opacity:.75}
.dex-message-attachment.dex-attachment-expired{flex-direction:row;align-items:center;gap:8px;padding:10px 0;font-size:12px}
@media(max-width:420px){.dex-premium-hero{padding:14px;gap:10px}.dex-premium-heading{font-size:17px}.dex-premium-plan{padding:12px}.dex-premium-price{font-size:21px}.dex-message-attachment img,.dex-message-attachment video{max-height:220px}.dex-attachment-tray{padding:7px 9px}}
