/* Galaxica Spatial v3 — compact, content-first interface. */

[hidden] { display: none !important; }

:root {
  --v3-blue: #175cff;
  --v3-violet: #5d56c9;
  --v3-ink: #111216;
  --v3-muted: #6e7079;
  --v3-glass: rgba(255, 255, 255, .94);
  --v3-line: rgba(17, 18, 22, .07);
  --v3-shadow: 0 14px 38px rgba(20, 22, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .98);
  --gx-blue: #175cff;
  --gx-violet: #5d56c9;
  --gx-cyan: #5ab8ff;
  --gx-glow: rgba(23, 92, 255, .18);
}

html[data-theme="dark"] {
  --v3-ink: #f7f9ff;
  --v3-muted: #a8b2cf;
  --v3-glass: rgba(15, 24, 48, .78);
  --v3-line: rgba(137, 163, 235, .16);
  --v3-shadow: 0 22px 64px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .07);
}

body {
  background: var(--bg);
  background-attachment: fixed;
}

body::before {
  display: none;
}

.galaxy-nebula,
.galaxy-stars { opacity: .08; }

html[data-theme="dark"] body {
  background: var(--bg);
}

.spatial-orbit::before,
.spatial-orbit::after,
.spatial-orbit .orbit-ring,
.spatial-orbit .orbit-core,
.spatial-orbit .orbit-node { display: block; }

.spatial-orbit::before {
  inset: 17%;
  border: 1px solid rgba(255,255,255,.95);
  background:
    radial-gradient(circle at 34% 26%, #fff 0 5%, transparent 20%),
    radial-gradient(circle at 60% 68%, rgba(23,92,255,.1), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,234,240,.52));
  box-shadow:
    inset -32px -38px 72px rgba(42,54,92,.09),
    inset 28px 25px 64px rgba(255,255,255,.98),
    0 0 0 12px rgba(255,255,255,.24),
    0 20px 60px rgba(25,29,45,.1);
  animation: v3Float 7s ease-in-out infinite;
}

.spatial-orbit::after {
  inset: 25%;
  border: 1px solid rgba(108,123,255,.15);
  box-shadow: inset 0 0 42px rgba(255,255,255,.75), 0 0 45px rgba(91,113,255,.14);
}

.spatial-orbit .orbit-ring {
  display: block;
  border-color: rgba(23,92,255,.24);
  box-shadow: none;
}

.spatial-orbit .orbit-ring-one { inset: 8%; transform: rotate(20deg) scaleY(.46); }
.spatial-orbit .orbit-ring-two { inset: 13%; transform: rotate(-43deg) scaleY(.62); border-color: rgba(17,18,22,.13); }
.spatial-orbit .orbit-ring-three { inset: 4%; border-color: rgba(23,92,255,.16); }

.spatial-orbit .orbit-core {
  display: grid;
  inset: 35%;
  color: transparent;
  font-size: clamp(68px, 12vw, 104px);
  background: linear-gradient(145deg, #62baff, #175cff 55%, #5149b8 86%);
  -webkit-background-clip: text;
  background-clip: text;
  box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(88,89,255,.35));
}

.spatial-orbit .orbit-node {
  display: grid;
  width: clamp(20px, 5.5vw, 34px);
  border: 2px solid rgba(255,255,255,.9);
  color: transparent;
  background: radial-gradient(circle at 34% 27%, #fff 0 10%, #8ee7ff 24%, #5779ff 58%, #7957e8 100%);
  box-shadow: 0 8px 20px rgba(76,92,210,.28), inset 0 1px 5px rgba(255,255,255,.9);
}

.spatial-orbit .orbit-node-two { background: radial-gradient(circle at 34% 27%, #fff 0 10%, #d4c5ff 25%, #8867ff 62%, #5531bf 100%); }
.spatial-orbit .orbit-node-three { background: radial-gradient(circle at 34% 27%, #fff 0 10%, #bdedff 28%, #4da2ff 65%, #4b6fe8 100%); }

.site-header {
  border-color: rgba(255, 255, 255, .86);
  /* 21-09: тема-aware фон (был жёстко светлый — в тёмной теме текст не читался). */
  background: var(--header-bg);
  box-shadow: 0 10px 30px rgba(20, 22, 32, .06), inset 0 1px 0 #fff;
}
html[data-theme="dark"] .site-header {
  border-color: rgba(142, 169, 255, 0.14);
}

.galaxy {
  background:
    radial-gradient(circle at 68% 48%, #fff 0 10%, transparent 38%),
    linear-gradient(145deg, #fff, #f1f2f6);
  box-shadow: 0 18px 60px rgba(20,22,32,.07);
}

.hero-content .display {
  color: var(--v3-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.btn-hero-solid,
.btn-solid,
.btn-pill {
  background: var(--accent-cta);
  box-shadow: 0 10px 24px rgba(23,92,255,.18);
}

.icon-btn:focus,
.header-avatar:focus { outline: none; }
/* focus-visible таба — в dock.css (канон Д4) */

.icon-btn:focus-visible,
.header-avatar:focus-visible {
  outline: 2px solid rgba(0, 113, 227, .45);
  outline-offset: 2px;
}

.tile,
.pcard,
.panel,
.list-group,
.profile-account {
  border-color: var(--v3-line);
  background: var(--v3-glass);
  box-shadow: var(--v3-shadow);
}

.tile,
.pcard {
  isolation: isolate;
}

.tile::before,
.pcard::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.72), transparent 52%);
  pointer-events: none;
}

.inner-visual {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 20px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 60px rgba(40,55,104,.10), inset 0 1px 0 #fff;
}

.inner-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.premium-view,
#earn-view-referral,
#earn-view-dev,
#screen-profile .container {
  max-width: 780px;
  margin-inline: auto;
}

.premium-view > .section-title,
#earn-view-referral > .section-title,
#earn-view-dev > .section-title {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.05em;
}

.premium-view > .page-note,
#earn-view-referral > .page-note,
#earn-view-dev > .page-note {
  max-width: 660px;
}

.wallet {
  background:
    radial-gradient(circle at 90% 0, rgba(90,184,255,.13), transparent 15rem),
    var(--v3-glass);
}

.history:empty,
.history:not(:has(.hrow)) {
  min-height: 62px;
  padding: 18px 20px;
  border: 1px solid var(--v3-line);
  border-radius: 14px;
  color: var(--v3-muted);
  background: rgba(255,255,255,.62);
}

.back-btn {
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.back-btn:hover { background: rgba(23,92,255,.08); }
.back-btn:active { transform: scale(.97); }

.btn-solid,
.btn-hero,
.tile,
.pcard,
.list-row-btn,
.icon-btn,
.header-avatar {
  -webkit-tap-highlight-color: transparent;
}

.btn-solid:active,
.btn-hero:active,
.tile:active,
.pcard:active { transform: scale(.985); }

.tile-art,
.pcard-cover { background-color: var(--art-tile); }

/* Рецепт apple.com/mac (09-09, playwright-замер): заголовок 28/600 и описание
   17px по центру карточки; радиус углов даёт только сама карточка (28px). */
.tile { text-align: center; }
.tile-name, .tile-desc, .tile-link { display: block; margin-left: auto; margin-right: auto; }
@media (min-width: 641px) {
  .pcard { text-align: center; }
  .pcard-body { display: block; }
  .pcard-name, .pcard-desc { margin-left: auto; margin-right: auto; }
}

/* Глифы обложек «строго как Apple» (09-09): тонкий контур,
   светлая тема — чернильный, тёмная — светло-серый. */
.tile-art svg,
.pcard-cover svg,
.inner-visual svg { color: #1d1d1f; }
.tile-art svg .gl-fill,
.pcard-cover svg .gl-fill,
.inner-visual svg .gl-fill { fill: currentColor; stroke: none; }
html[data-theme="dark"] .tile-art svg,
html[data-theme="dark"] .pcard-cover svg,
html[data-theme="dark"] .inner-visual svg { color: #f5f5f7; }

html[data-theme="dark"] .tile,
html[data-theme="dark"] .pcard,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .list-group,
html[data-theme="dark"] .profile-account {
  border-color: var(--v3-line);
  background: var(--v3-glass);
  box-shadow: var(--v3-shadow);
}

/* Тёмная пара арт-банда (Д5, 10-09): в тьме — приподнятая тёмная плитка,
   как у tile-art/pcard-cover (var(--art-tile) #1c1c1e), а не светлый банд. */
html[data-theme="dark"] .inner-visual {
  border-color: var(--v3-line);
  background: var(--art-tile);
  box-shadow: var(--v3-shadow);
}

html[data-theme="dark"] .tile-art,
html[data-theme="dark"] .pcard-cover { background-color: var(--art-tile); }

/* Иконки таба — в dock.css (канон Д4: 24px, вес 2, все табы обоих аппов) */

.header-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: #fff;
  background: var(--accent-cta);
  box-shadow: 0 2px 8px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.header-avatar span { font-size: 15px; font-weight: 800; }

@keyframes v3Float {
  0%, 100% { transform: translateY(0) scale(.985); }
  50% { transform: translateY(-9px) scale(1.01); }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

  body::before { opacity: .3; background-size: 40px 40px; }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 24px);
    min-height: 54px;
    padding: 4px 2px 4px 4px;
    border: 1px solid rgba(17,18,22,.06);
    border-radius: 14px;
    background: rgba(252,253,255,.88);
    box-shadow: 0 12px 36px rgba(40,51,91,.10), inset 0 1px 0 #fff;
    backdrop-filter: blur(20px) saturate(130%);
  }
  /* 21-09: тёмная тема — панель тёмная (была светлой при светлом тексте — нечитаемо). */
  html[data-theme="dark"] .site-header {
    border-color: rgba(139,165,235,.18);
    background: rgba(20,24,38,.86);
    box-shadow: 0 12px 36px rgba(0,0,0,.40);
  }

  .galaxy-nebula,
  .galaxy-stars { display: none; }

  .brand { font-size: 18px; }
  .icon-btn { width: 38px; height: 38px; }
  #theme-toggle {
    font-size: 0;
    background: rgba(255,255,255,.78);
  }
  #theme-toggle::before {
    content: "◐";
    color: var(--v3-blue);
    font-size: 17px;
  }
  .lang-btn > span:first-child { display: none; }
  .lang-btn { min-width: 44px; padding: 0 11px; }
  .header-avatar { width: 38px; height: 38px; }
  .balance-pill {
    min-width: 50px;
    height: 38px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 12px;
  }
  .lang-menu {
    position: fixed;
    top: calc(max(8px, env(safe-area-inset-top)) + 62px);
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-height: min(420px, 58svh);
    padding: 8px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(95, 108, 150, .34) transparent;
    scrollbar-width: thin;
    border-color: rgba(100,115,170,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 70px rgba(35,45,91,.22);
    backdrop-filter: blur(24px);
  }
  .lang-menu::-webkit-scrollbar { width: 4px; }
  .lang-menu::-webkit-scrollbar-track { background: transparent; }
  .lang-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(95, 108, 150, .34);
  }
  html[data-theme="dark"] .lang-menu {
    border-color: rgba(139,165,235,.18);
    background: rgba(10,17,35,.97);
  }

  .galaxy {
    width: 100%;
    min-height: 650px;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .hero-content {
    width: 100%;
    padding: 68px 28px 340px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-kicker {
    min-height: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: var(--v3-muted);
    background: transparent;
    backdrop-filter: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
  }

  .hero-content .display {
    font-size: clamp(48px, 15vw, 62px);
    line-height: .94;
  }

  .welcome-text {
    display: -webkit-box;
    max-width: 330px;
    margin-top: 15px;
    overflow: hidden;
    color: var(--v3-muted);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-cta {
    position: absolute;
    z-index: 9;
    left: 50%;
    right: auto;
    bottom: 24px;
    width: calc(100% - 44px);
    margin: 0;
    padding: 8px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 15px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--v3-shadow);
    backdrop-filter: blur(20px) saturate(145%);
    transform: translateX(-50%);
  }
  html[data-theme="dark"] .hero-cta {
    border-color: rgba(140,166,235,.18);
    background: rgba(11,19,39,.76);
  }

  .btn-hero {
    min-height: 50px;
    border-radius: 16px;
    font-size: 14px;
  }

  .spatial-orbit {
    top: 220px;
    right: 50%;
    bottom: auto;
    width: min(108vw, 440px);
    transform: translateX(50%);
    filter: none;
  }

  .home-band {
    margin-top: 0;
    padding-top: 18px;
  }

  .home-band .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 0 26px;
  }
  .container { width: calc(100% - 32px); }

  .section-center {
    grid-column: 1 / -1;
    order: 2;
    margin: 16px 2px 4px;
    font-size: 28px;
    letter-spacing: -.055em;
  }

  .home-band .tile-grid {
    display: contents;
  }

  .home-band .tile {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 180px;
    padding: 15px;
    border-radius: 16px;
    text-align: left;
  }


  .home-band .tile-art {
    grid-column: 1;
    width: 66px;
    min-height: 66px;
    border-radius: 14px;
  }


  .home-band .tile-name {
    grid-column: 1;
    align-self: end;
    margin-top: 16px;
    font-size: 19px;
  }


  .home-band .tile-desc {
    grid-column: 1;
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }


  .home-band .tile-link {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .home-band .btn-pill {
    display: grid;
    position: relative;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    overflow: hidden;
    color: transparent;
    border: 1px solid rgba(91,107,170,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 3 5 5-5 5' fill='none' stroke='%235674ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    box-shadow: 0 8px 18px rgba(55,67,125,.1);
  }
  html[data-theme="dark"] .home-band .btn-pill {
    border-color: rgba(140,166,235,.2);
    background-color: rgba(20,31,59,.92);
  }

  .home-band .btn-pill::after { content: none; }

  .screen:not(#screen-home) .container {
    width: calc(100% - 20px);
    padding: 16px 0 88px;
  }

  .screen:not(#screen-home) {
    min-height: 100svh;
    /* Канон Apple (09-09): фон страницы плоский, без цветных подсветок */
    background: var(--bg);
  }

  .screen:not(#screen-home) .band { padding: 0; }

  .screen .page-title {
    position: relative;
    margin: 0 0 18px;
    padding: 14px 6px 0;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1;
    letter-spacing: -.06em;
  }

  .screen .page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--v3-blue), #5ab8ff, var(--v3-violet));
    box-shadow: 0 5px 16px rgba(65, 100, 255, .22);
  }

  .page-note {
    margin: 10px 6px 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .tile-grid,
  .pcard-grid { gap: 12px; }

  #screen-premium .tile,
  #screen-earn .tile {
    display: grid;
    grid-template: auto auto / 92px 1fr;
    min-height: 136px;
    padding: 12px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 18px 48px rgba(36,49,98,.10), inset 0 1px 0 #fff;
  }

  #screen-premium .tile-art,
  #screen-earn .tile-art {
    grid-row: 1 / 4;
    grid-column: 1;
    width: 80px;
    min-height: 112px;
    border-radius: 14px;
  }

  #screen-premium .tile-name,
  #screen-earn .tile-name {
    grid-column: 2;
    align-self: end;
    margin: 8px 0 4px;
    font-size: 18px;
  }

  #screen-premium .tile-desc,
  #screen-earn .tile-desc {
    grid-column: 2;
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #screen-premium .tile-link,
  #screen-earn .tile-link { display: none; }

  .pcard-grid { grid-template-columns: 1fr; }

  .pcard {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 146px;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(36,49,98,.10), inset 0 1px 0 #fff;
  }

  .pcard-cover {
    /* Иконка карточки — фиксированный «квадратик» слева, не растягивается
       на всю высоту карточки (иначе эмодзи-обложка уезжает в полосы). */
    align-self: center;
    width: 104px;
    height: 130px;
    min-height: 0;
    border-radius: 14px;
  }

  /* Узкие иконки: сцену 400×240 в квадратном окне режет по бокам — показываем
     центрированный эмодзи (находка автора 05-09, «кривая иконка карточки Agents»).
     data-sheet-art — открытая карточка (модал): там сцена нужна и на мобильном. */
  .cover-scene:not([data-sheet-art]) { display: none; }
  .cover-emoji { display: block; }

  .pcard-body {
    align-self: center;
    min-width: 0;
    padding: 10px 12px 10px 8px;
  }

  .pcard-name { font-size: 19px; }
  .pcard-desc {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #catalog:not(:has(.pcard)):not(:has(.skeleton)) {
    position: relative;
    display: block;
    min-height: 154px;
    padding: 82px 24px 22px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    color: var(--v3-muted);
    background:
      radial-gradient(circle at 50% 10%, rgba(102,120,255,.15), transparent 42%),
      rgba(255,255,255,.68);
    box-shadow: var(--v3-shadow);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
  }
  html[data-theme="dark"] #catalog:not(:has(.pcard)):not(:has(.skeleton)) {
    border-color: rgba(139,165,235,.16);
    background:
      radial-gradient(circle at 50% 10%, rgba(102,120,255,.18), transparent 42%),
      rgba(13,22,44,.8);
  }

  #catalog:not(:has(.pcard)):not(:has(.skeleton))::before {
    content: "✦";
    position: absolute;
    top: 24px;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #65d7ff, var(--v3-blue), var(--v3-violet));
    box-shadow: 0 12px 26px rgba(81,102,255,.26);
    transform: translateX(-50%);
  }

  #catalog:has(.skeleton) {
    display: grid;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #catalog:has(.skeleton)::before { content: none; }

  #catalog .skeleton {
    height: 146px;
    border-color: rgba(255,255,255,.76);
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(82,103,170,.16), rgba(82,103,170,.07)) 132px 36px / 42% 17px no-repeat,
      linear-gradient(90deg, rgba(82,103,170,.10), rgba(82,103,170,.04)) 132px 66px / 58% 11px no-repeat,
      linear-gradient(90deg, rgba(82,103,170,.09), rgba(82,103,170,.04)) 132px 88px / 38% 11px no-repeat,
      rgba(255,255,255,.72);
    box-shadow: 0 18px 48px rgba(36,49,98,.08), inset 0 1px 0 #fff;
  }

  #catalog .skeleton::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 8px;
    width: 104px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 34% 30%, rgba(255,255,255,.9), transparent 20%),
      linear-gradient(145deg, rgba(90,184,255,.24), rgba(93,86,201,.2));
  }

  #catalog .skeleton:nth-child(n + 4) { display: none; }

  #screen-agents { position: relative; overflow: hidden; }
  #screen-agents .container { position: relative; z-index: 1; }
  #screen-agents:has(#catalog > .pcard:only-child)::after {
    content: "✦";
    position: absolute;
    top: 390px;
    left: 50%;
    display: grid;
    width: 250px;
    height: 250px;
    place-items: center;
    border: 1px solid rgba(79, 104, 220, .08);
    border-radius: 50%;
    color: rgba(67, 100, 238, .14);
    font-size: 34px;
    background:
      radial-gradient(circle, rgba(87, 130, 255, .07) 0 2px, transparent 3px 31%, rgba(84, 111, 224, .08) 31.5% 32%, transparent 32.5% 46%, rgba(90, 184, 255, .08) 46.5% 47%, transparent 47.5%),
      radial-gradient(circle at 28% 24%, rgba(90,184,255,.22) 0 3px, transparent 4px),
      radial-gradient(circle at 78% 68%, rgba(93,86,201,.2) 0 4px, transparent 5px);
    box-shadow: 0 0 70px rgba(80, 126, 255, .05);
    transform: translateX(-50%) rotate(-12deg);
    pointer-events: none;
  }

  .panel { padding: 20px; border-radius: 16px; }
  .profile-account { min-height: 0; padding: 14px 16px; }
  .profile-id { flex: 1; }
  .profile-account .agent-name {
    overflow: visible;
    font-size: 19px;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .profile-avatar,
  .profile-avatar-img { width: 54px; height: 54px; }
  .profile-avatar-wrap { width: 54px; height: 54px; }
  .profile-edit-btn { width: 36px; height: 36px; }
  #screen-profile .list-group { margin-top: 10px; }
  .list-group { border-radius: 16px; }
  .list-row { min-height: 62px; padding: 12px 14px; }

  .earn-card { gap: 12px; }
  .earn-link-box { min-height: 48px; }
  .earn-actions { gap: 10px; }
  .earn-card .hint { margin: 10px 0 0; }

  .inner-visual {
    height: 150px;
    margin: 16px 0 14px;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(36,49,98,.11), inset 0 1px 0 #fff;
  }

  .premium-view > .section-title,
  #earn-view-referral > .section-title,
  #earn-view-dev > .section-title {
    font-size: 30px;
    line-height: 1.08;
  }

  .premium-view > .page-note,
  #earn-view-referral > .page-note,
  #earn-view-dev > .page-note {
    margin-top: 10px;
    margin-bottom: 0;
  }

  .premium-view .panel,
  #earn-view-referral .panel,
  #earn-view-dev .panel {
    box-shadow: 0 20px 54px rgba(36,49,98,.11), inset 0 1px 0 #fff;
  }

  /* Док @≤640 снят 10-09: скин — dock.css, геометрия подписей — #tabbar в style.css (Д4) */
}

@media (max-width: 350px) {
  .home-band .tile-grid { grid-template-columns: 1fr; }
  .home-band .tile { min-height: 150px; }
  /* подпись таба ≤350px — в style.css, #tabbar (Д4) */
}

@media (prefers-reduced-motion: reduce) {
  .orbit-visual { animation: none; }
}

/* ── «Док 2026-v2» (09-09) перенесён в общий dock.css 10-09 (канон Д4) ── */
