/* MatrixLink — premium visual layer (splash + UI polish) */

:root {
  --display: "Syne", "Inter", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.22);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .app-splash__orb,
  .app-splash__ring,
  .app-splash__emblem--breathe,
  .app-splash__dot,
  .app-splash__progress-bar::after,
  .loader-orbit,
  .app-splash__welcome,
  .app-splash__loading,
  .splash-logo__letter--on,
  .splash-logo__scan {
    animation: none !important;
  }
}

/* —— Splash backdrop —— */
.app-splash {
  background: var(--theme-bg);
  pointer-events: auto;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.app-splash__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(var(--accent-rgb), 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(var(--accent-rgb), 0.1), transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-bg) 88%, #000) 0%, var(--theme-bg) 100%);
}

.app-splash__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
  animation: splash-grid-drift 24s linear infinite;
}

@keyframes splash-grid-drift {
  to { transform: translate(28px, 28px); }
}

.app-splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: splash-orb-float 8s ease-in-out infinite;
}

.app-splash__orb--1 {
  width: min(55vw, 220px);
  height: min(55vw, 220px);
  top: 8%;
  left: -8%;
  background: rgba(var(--accent-rgb), 0.35);
}

.app-splash__orb--2 {
  width: min(45vw, 180px);
  height: min(45vw, 180px);
  top: 42%;
  right: -12%;
  background: rgba(var(--accent-rgb), 0.2);
  animation-delay: -2.5s;
}

.app-splash__orb--3 {
  width: min(38vw, 140px);
  height: min(38vw, 140px);
  bottom: 12%;
  left: 28%;
  background: rgba(var(--accent-rgb), 0.12);
  animation-delay: -4s;
}

@keyframes splash-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.06); }
}

.app-splash__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(100dvh, 100vh);
  max-height: 100dvh;
  justify-content: center;
  gap: 20px;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.app-splash__frame {
  width: 100%;
  padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 24px) clamp(24px, 6vw, 32px);
  border-radius: 28px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.app-splash__logo-stage {
  position: relative;
  width: min(72vw, 260px);
  margin: 0 auto 8px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-height: 700px) {
  .app-splash__logo-stage {
    width: min(58vw, 200px);
  }

  .app-splash__features {
    gap: 6px;
  }

  .app-splash__pill {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .app-splash__copy {
    margin-top: 8px;
  }
}

.app-splash__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}

.app-splash__ring--outer {
  inset: -6%;
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.12);
  animation: splash-ring-spin 12s linear infinite;
}

.app-splash__ring--inner {
  inset: 8%;
  border-color: rgba(232, 197, 71, 0.25);
  animation: splash-ring-spin 18s linear infinite reverse;
}

@keyframes splash-ring-spin {
  to { transform: rotate(360deg); }
}

.app-splash__emblem-wrap {
  width: 88%;
  margin: 0 auto;
}

.app-splash__emblem-wrap--load {
  width: min(52vw, 200px);
  margin-bottom: 4px;
}

.app-splash__emblem {
  filter:
    drop-shadow(0 0 32px rgba(var(--accent-rgb), 0.45))
    drop-shadow(0 12px 40px rgba(0, 0, 0, 0.65));
}

.app-splash__brand {
  margin: 4px 0 2px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(
    120deg,
    var(--text-bright) 0%,
    rgba(var(--accent-rgb), 1) 55%,
    color-mix(in srgb, var(--accent) 75%, var(--text-bright)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-splash__tagline {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--text-tint-rgb), 0.75);
}

.app-splash__welcome {
  animation: splash-enter 0.7s var(--ease-out-expo) both;
}

@keyframes splash-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-splash__title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-splash__text {
  color: rgba(var(--text-tint-rgb), 0.82);
}

.app-splash__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.app-splash__pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: rgba(var(--text-tint-rgb), 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-splash__spectrum {
  margin-top: 18px;
}

.app-splash__dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 16px currentColor;
}

.app-splash__loading {
  gap: 22px;
  padding: 20px 0 8px;
  animation: splash-enter 0.45s var(--ease-out-expo) both;
}

.app-splash__loader-orbit {
  position: relative;
  width: 52px;
  height: 52px;
}

.app-splash__loader-orbit .loader-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.12);
  border-top-color: var(--accent);
  border-right-color: color-mix(in srgb, var(--accent) 70%, transparent);
  animation: spin 0.9s linear infinite;
}

.app-splash__loader-orbit .loader-orbit__core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), 0.35), transparent 70%);
  animation: splash-core-pulse 1.6s ease-in-out infinite;
}

@keyframes splash-core-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.app-splash__progress {
  width: min(280px, 88%);
}

.app-splash__progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.app-splash__progress-bar {
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, var(--text-bright)));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55);
  transition: width 0.55s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.app-splash__progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: splash-shimmer 1.4s ease-in-out infinite;
}

@keyframes splash-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.app-splash__load-text {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(var(--text-tint-rgb), 0.88);
}

.app-splash__footer {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--text-tint-rgb), 0.4);
}

.app-splash--out {
  opacity: 0;
  transform: scale(1.01);
  pointer-events: none;
  transition:
    opacity 0.5s var(--ease-out-expo),
    visibility 0.5s,
    transform 0.5s var(--ease-out-expo);
}

body.is-booting .matrix-overlay {
  opacity: 0.42;
  background:
    radial-gradient(ellipse 100% 80% at 50% 20%, rgba(var(--accent-rgb), 0.08), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* —— App shell polish —— */
.premium-header {
  padding: 12px 14px;
  margin: -4px -6px 12px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.brand-mark {
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25);
}

/* Шапка: тот же логотип, что на splash */
.brand-row--splash-title {
  align-items: center;
  gap: 10px;
}

.brand-row--splash-title .brand-row__title-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-brand-logo.splash-logo {
  flex-shrink: 0;
  max-width: min(52vw, 200px);
  min-height: 30px;
  padding: 0;
  font-size: clamp(0.5rem, 3.4vw, 0.72rem);
  letter-spacing: 0.045em;
  line-height: 1.1;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.35));
}

.header p#subtitle {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.icon-btn {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.2s, border-color 0.2s;
}

.icon-btn:active {
  transform: scale(0.94);
}

.preset-strip {
  border-radius: 16px;
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
}

.tabs {
  gap: 8px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab {
  border-radius: 12px;
  min-width: 48px;
}

.tab.active {
  box-shadow: var(--shadow-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.toolbar--themes {
  margin-bottom: 10px;
}

.card {
  border-radius: 18px;
  border-color: rgba(var(--accent-rgb), 0.14);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s var(--ease-spring),
    border-color 0.2s,
    box-shadow 0.25s;
}

@media (hover: hover) {
  .card:hover {
    border-color: rgba(var(--accent-rgb), 0.32);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    transform: translateY(-2px);
  }
}

.card--elite {
  box-shadow:
    0 0 36px rgba(var(--accent-rgb), 0.22),
    0 12px 36px rgba(0, 0, 0, 0.4);
}

.tab-bar__inner {
  border-radius: 32px;
  padding: 10px 12px;
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.tab-bar__item.active .tab-bar__icon {
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}

.loader {
  padding: 48px 0;
}

.loader .loader-orbit {
  width: 44px;
  height: 44px;
  position: relative;
  margin-bottom: 4px;
}

.loader .loader-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.15);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

.loader .loader-orbit__core {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
}

.loader span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-gate__card {
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.panel-card {
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.5);
}

.panel-title,
.ai-hero__title {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.earn-guide {
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  box-shadow: var(--shadow-soft);
}

.profile-card {
  border-radius: 20px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-highlight);
}

.ai-hero {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.work-hero {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent);
  border-bottom-color: rgba(var(--accent-rgb), 0.12);
}

.work-hero__title {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.screen-work .work-spread-wrap {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* —— Splash: MATRIXLINK по буквам —— */
.splash-logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(32vh, 220px);
  padding: 12px 12px 8px;
  overflow: visible;
}

.splash-logo {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.02em;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: visible;
  font-family: var(--display);
  font-size: clamp(0.95rem, 5.2vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.splash-logo__letter {
  color: rgba(var(--accent-rgb), 0.14);
  text-shadow: none;
  transition:
    color 0.12s ease,
    text-shadow 0.28s ease,
    transform 0.2s var(--ease-spring);
}

.splash-logo__letter--on {
  color: var(--accent);
  transform: scale(1.04);
  text-shadow:
    0 0 8px rgba(var(--accent-rgb), 0.95),
    0 0 22px rgba(var(--accent-rgb), 0.65),
    0 0 42px rgba(var(--accent-rgb), 0.3);
}

.splash-logo--complete .splash-logo__letter--on {
  animation: splash-letter-glow 1.4s ease-in-out infinite;
}

@keyframes splash-letter-glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(var(--accent-rgb), 0.85),
      0 0 20px rgba(var(--accent-rgb), 0.5);
  }
  50% {
    text-shadow:
      0 0 14px rgba(var(--accent-rgb), 1),
      0 0 32px rgba(var(--accent-rgb), 0.7),
      0 0 56px rgba(var(--accent-rgb), 0.35);
  }
}

.splash-logo__scan {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.15) 15%,
    rgba(var(--accent-rgb), 0.75) 50%,
    rgba(var(--accent-rgb), 0.15) 85%,
    transparent
  );
  opacity: 0;
  pointer-events: none;
  filter: blur(0.5px);
}

.splash-logo--complete .splash-logo__scan {
  opacity: 1;
  animation: splash-glitch-scan 2.2s ease-in-out infinite;
}

@keyframes splash-glitch-scan {
  0%, 100% {
    transform: translateY(-8px) scaleX(0.92);
    opacity: 0.35;
  }
  45%, 55% {
    transform: translateY(0) scaleX(1);
    opacity: 0.95;
  }
}

body.is-booting--load-only .app-splash__frame {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: clamp(32px, 12vh, 80px);
}

body.is-booting--load-only .app-splash__backdrop .app-splash__orb {
  opacity: 0.35;
}

body.is-booting--load-only .app-splash__loading {
  padding-top: 0;
}

/* —— Discord-style чат —— */
body[data-screen="community"] {
  overflow: hidden;
  width: 100%;
  height: var(--app-vh, 100dvh);
  max-height: var(--app-vh, 100dvh);
}

.screen-community.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.dc-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px;
  background: rgba(8, 18, 12, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-top__peer {
  flex: 1;
  min-width: 0;
}

.dc-top__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dc-top__sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--hint);
}

.dc-top__online {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dc-top__home,
.dc-top__exit {
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
}

.dc-channels {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.dc-channels::-webkit-scrollbar {
  display: none;
}

.dc-channel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.dc-channel--active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.12);
}

.dc-channel__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dc-channel__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dc-channel__name {
  font-size: 0.82rem;
  font-weight: 800;
}

.dc-channel__preview {
  font-size: 0.65rem;
  color: var(--hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(
    58px + var(--tg-safe-bottom, 16px) + var(--tg-kb-offset, 0px)
  );
}

.screen-community:has(.tg-reply-bar:not(.hidden)) .dc-main {
  padding-bottom: calc(104px + var(--tg-safe-bottom, 16px) + var(--tg-kb-offset, 0px));
}

.screen-community .tg-chat__feed,
.screen-community .tg-thread-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.screen-community .tg-reply-bar:not(.hidden) {
  flex-shrink: 0;
  position: relative;
  z-index: 12;
}

.screen-community .tg-chat__dock {
  flex-shrink: 0;
  position: relative;
  z-index: 12;
  margin: 0;
  padding: 8px 10px calc(10px + var(--tg-safe-bottom, 12px));
}

body.comm-keyboard-open[data-screen="community"] .tg-chat__feed {
  scroll-padding-bottom: 88px;
}

body[data-screen="community"] .tg-msg__bubble {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body[data-screen="community"] .tg-msg--out .tg-msg__bubble {
  background: linear-gradient(145deg, rgba(34, 120, 72, 0.95), rgba(18, 72, 44, 0.98));
}

body[data-screen="community"] .tg-msg--in .tg-msg__bubble {
  background: rgba(28, 36, 32, 0.96);
}

.tg-attach-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(64px + var(--tg-safe-bottom, 12px));
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  z-index: 30;
}

.tg-attach-sheet.hidden {
  display: none !important;
}

.tg-attach-sheet button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
}

.dc-compose-foot {
  flex: 0 0 auto;
  flex-shrink: 0;
}

body.is-booting--load-only .app-splash__load-text {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(var(--text-tint-rgb), 0.55);
}
