:root {
  --bg: #07080f;
  --glow: rgba(92, 78, 220, 0.28);
  --head: rgba(10, 11, 18, 0.88);
  --card: #13151f;
  --card-2: #1a1d2a;
  --line: rgba(var(--ice-rgb), 0.12);
  --ink: #eef0f7;
  --muted: #8b90a5;
  --ice: #8af4ff;
  --ice-rgb: 110, 231, 255;
  --ice-dim: rgba(var(--ice-rgb), 0.45);
  --ice-ink: #041018;
  --violet: #8b7cff;
  --ok: #7dffa8;
  --warn: #ffb86b;
  --cta-top: rgba(42, 118, 148, 0.62);
  --cta-bot: rgba(10, 28, 44, 0.88);
  --cta-shine: rgba(var(--ice-rgb), 0.18);
  --cta-line: rgba(var(--ice-rgb), 0.38);
  --pill: rgba(var(--ice-rgb), 0.16);
  --skin-overlay: linear-gradient(180deg, rgba(8, 16, 26, 0) 0%, rgba(8, 16, 26, 0.12) 42%, rgba(6, 12, 20, 0.48) 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-height: calc(100dvh + 80px);
  background: #0b1420 url("/img/home-bg-phone.jpg?v=140") center top / cover no-repeat;
}

html,
body {
  margin: 0;
  min-height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior-y: contain;
}

body {
  background: transparent;
}

body.app {
  min-height: 100vh;
  min-height: calc(100dvh + 80px);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  background: transparent;
}

body.app::before {
  content: "";
  position: fixed;
  top: -120px;
  right: 0;
  bottom: -80px;
  left: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/img/home-bg-phone.jpg?v=140") center top / cover no-repeat;
}

body.app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--skin-overlay);
}

/* Country wallpaper (set via html[data-bg] + --bg-photo). */
html[data-bg],
html[data-bg] body.app::before {
  background-image: var(--bg-photo) !important;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: #000;
  transition: opacity 0.5s ease;
  cursor: pointer;
  touch-action: manipulation;
}

#boot-splash.is-fade {
  opacity: 0;
  visibility: hidden;
}

#boot-splash .boot-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@keyframes veil {
  0% { background-position: 0 0, 0% 0%, 100% 100%; }
  50% { background-position: 0 0, 80% 40%, 20% 60%; }
  100% { background-position: 0 0, 0% 0%, 100% 100%; }
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rock-sheen {
  0% { background-position: 0% 0%, 0% 50%; }
  50% { background-position: 0% 0%, 100% 50%; }
  100% { background-position: 0% 0%, 0% 50%; }
}

body.app.day::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(6, 10, 18, 0.08) 40%, rgba(6, 10, 18, 0.45) 100%);
}

body.app.day {
  --bg: #eef1fb;
  --glow: rgba(108, 92, 255, 0.16);
  --head: rgba(255, 255, 255, 0.86);
  --card: #ffffff;
  --card-2: #f3f5ff;
  --line: rgba(40, 48, 80, 0.1);
  --ink: #14182a;
  --muted: #66708a;
  --ice: #3a6cff;
  --ice-ink: #ffffff;
  --violet: #6d5efc;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.shell {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(96px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y;
  transition: transform 0.22s ease;
}

#ptr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 36;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
}

#ptr .ptr-ring {
  width: 28px;
  height: 28px;
  margin: 0 0 10px;
  border-radius: 50%;
  border: 2.5px solid rgba(var(--ice-rgb), 0.22);
  border-top-color: var(--ice);
  opacity: 0;
}

#ptr.on .ptr-ring {
  opacity: 1;
}

#ptr.ready .ptr-ring {
  border-color: rgba(var(--ice-rgb), 0.35);
  border-top-color: #e8fbff;
  box-shadow: 0 0 14px rgba(var(--ice-rgb), 0.4);
}

#ptr.spin .ptr-ring {
  animation: ptr-spin 0.7s linear infinite;
}

@keyframes ptr-spin {
  to { transform: rotate(360deg); }
}

.head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 16px;
}

.head-space {
  width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
}

body.can-dev .head-space {
  width: 48px;
}

body.can-dev.dev-on .head-space {
  width: 106px;
  min-width: 106px;
}

#dev-toggle,
#heal-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  aspect-ratio: 1;
  box-sizing: border-box;
}

#dev-toggle {
  overflow: hidden;
  padding: 4px;
}

#heal-toggle {
  color: #9ef6ff;
}

#heal-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#dev-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#dev-toggle.on {
  color: #9ef6ff;
  border-color: rgba(var(--ice-rgb), 0.55);
  box-shadow: 0 0 18px rgba(var(--ice-rgb), 0.28);
}

.brand-title {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ice);
  text-shadow: 0 0 22px var(--ice-dim);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 18, 32, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--ice-rgb), 0.55);
  box-shadow: 0 0 16px rgba(var(--ice-rgb), 0.28);
  color: #9ef6ff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}

body.app.day .mark {
  background: linear-gradient(160deg, #dfe7ff, #c9d4ff);
  color: #3140c8;
}

.brand b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  z-index: 1;
}

.orb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.45);
  backdrop-filter: blur(12px);
  color: #d7f7ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.orb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hi {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.pc-hero {
  display: none;
}

.subline {
  margin: 0 0 8px;
  color: rgba(230, 240, 255, 0.82);
  font-size: 15px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  margin: 0;
  border-radius: 999px;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  color: #d8f7ff;
  font-size: 14px;
  font-weight: 750;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b90a5;
}

.chip.ok {
  background: rgba(73, 255, 138, 0.12);
  border-color: rgba(125, 255, 168, 0.35);
  color: #d8ffe8;
}

.chip.ok::before {
  background: #49ff8a;
  box-shadow: 0 0 8px #49ff8a;
}

#home .hi,
#sub .hi,
#bal .hi,
#ref .hi,
#set .hi,
#srv .hi,
#notes .hi,
#d-promo .hi,
#d-part .hi,
#d-news .hi,
#d-users .hi,
#d-stats .hi,
#d-price .hi,
#profile .hi,
#skin .hi,
#help .hi,
#help-guide .hi,
#help-fix .hi,
#support .hi,
#docs .hi,
#studio .hi {
  margin: 0 0 16px;
  font-size: clamp(18px, 5.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

#d-promo .hi,
#d-part .hi,
#d-news .hi,
#d-users .hi,
#d-stats .hi,
#d-price .hi {
  white-space: normal;
}

#docs.doc-on .hi {
  white-space: normal;
}

#home .hi #hello {
  color: var(--ice);
  text-shadow: 0 0 22px var(--ice-dim);
}

#home .subline {
  margin-bottom: 18px;
  font-size: 16px;
}

#home .chip {
  font-size: 14px;
}

#home .offer,
#sub .offer,
#bal .offer,
#ref .offer,
#d-promo .offer,
#d-part .offer,
#d-news .offer,
#d-users .offer,
#d-stats .offer,
#d-price .offer {
  text-align: center;
  padding: 18px 16px 16px;
}

#home .offer-status,
#sub .offer-status,
#bal .offer-status,
#ref .offer-status,
#d-promo .offer-status,
#d-part .offer-status,
#d-news .offer-status,
#d-users .offer-status,
#d-stats .offer-status,
#d-price .offer-status {
  margin: 0 0 12px;
  color: rgba(220, 236, 248, 0.86);
  font-size: 14px;
}

#home .offer h2,
#sub .offer h2,
#bal .offer h2,
#ref .offer h2,
#d-promo .offer h2,
#d-part .offer h2,
#d-news .offer h2,
#d-users .offer h2,
#d-stats .offer h2,
#d-price .offer h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

#bal .offer h2 {
  font-size: 40px;
  letter-spacing: -0.05em;
}

#home .offer h2 em,
#sub .offer h2 em,
#ref .offer h2 em,
#d-promo .offer h2 em,
#d-part .offer h2 em,
#d-news .offer h2 em,
#d-users .offer h2 em,
#d-stats .offer h2 em,
#d-price .offer h2 em,
.confirm-copy em,
.glow-data {
  color: #4de2ff;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px rgba(var(--ice-rgb), 0.7),
    0 0 22px rgba(62, 200, 255, 0.38);
}

.offer-hint {
  margin: 0 0 18px;
  color: rgba(210, 228, 242, 0.8);
  font-size: 15px;
  line-height: 1.35;
}

.offer-hint.news-body,
.sheet-card .news-body {
  white-space: normal;
  line-height: 1.45;
  word-break: break-word;
  overflow: visible;
}

.sheet-card .news-body {
  margin: 0;
  color: rgba(210, 228, 242, 0.88);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

#home .hero-stats,
#sub .hero-stats,
#bal .hero-stats,
#ref .hero-stats,
#d-promo .hero-stats,
#d-part .hero-stats,
#d-news .hero-stats,
#d-users .hero-stats,
#d-stats .hero-stats,
#d-price .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

#d-price .hero-stats div {
  min-width: 0;
  overflow: hidden;
}

#home .hero-stats div,
#sub .hero-stats div,
#ref .hero-stats div,
#d-promo .hero-stats div,
#d-part .hero-stats div,
#d-news .hero-stats div,
#d-users .hero-stats div,
#d-stats .hero-stats div,
#d-price .hero-stats div {
  position: relative;
}

#home .hero-stats div + div::before,
#sub .hero-stats div + div::before,
#ref .hero-stats div + div::before,
#d-promo .hero-stats div + div::before,
#d-part .hero-stats div + div::before,
#d-news .hero-stats div + div::before,
#d-users .hero-stats div + div::before,
#d-stats .hero-stats div + div::before,
#d-price .hero-stats div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(var(--ice-rgb), 0.18);
}

#home .hero-stats b,
#sub .hero-stats b,
#ref .hero-stats b,
#d-promo .hero-stats b,
#d-part .hero-stats b,
#d-news .hero-stats b,
#d-users .hero-stats b,
#d-stats .hero-stats b,
#d-price .hero-stats b {
  display: block;
  font-size: clamp(22px, 8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(var(--ice-rgb), 0.35);
}

#home .hero-stats span,
#sub .hero-stats span,
#ref .hero-stats span,
#d-promo .hero-stats span,
#d-part .hero-stats span,
#d-news .hero-stats span,
#d-users .hero-stats span,
#d-stats .hero-stats span,
#d-price .hero-stats span {
  color: rgba(210, 230, 245, 0.78);
  font-size: 13px;
}

#d-users .hero-stats span[data-i18n-html="dev_hs_keys"] {
  display: block;
  line-height: 1.15;
}

#home .buy-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  margin: 0 0 12px;
}

#home .buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

#home .buy-row span {
  flex: 1;
}

#home .buy-row svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

#home .buy-row .chev,
.fold-head .chev {
  display: none;
}

.confirm-copy b.danger {
  color: #ff5b6e;
}

#sub #s-rekey small.act-warn {
  color: #ff5b6e;
}

.gift-who {
  min-height: 56px;
  text-align: center;
  font-weight: 800;
}

.choice.on {
  box-shadow:
    inset 0 0 0 1px rgba(var(--ice-rgb), 0.42),
    inset 0 1px 0 rgba(var(--ice-rgb), 0.18),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.gift-err {
  margin: 0;
  text-align: center;
  color: #ff5b6e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

#home .plans-body {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  min-width: 0;
  transition: grid-template-rows 0.32s ease;
}

#home .buy-card.open .plans-body {
  grid-template-rows: 1fr;
}

#home .plans-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 14px;
}

#home .buy-card.open .plans-inner {
  padding-bottom: 14px;
}

#home .plans-inner .flab {
  margin: 2px 0 8px;
  text-align: left;
}

#plan-devices.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
}

#plan-devices.plans button {
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 12, 20, 0.45);
  color: #d7f7ff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#plan-devices.plans button.on {
  color: #9ef6ff;
  border-color: rgba(var(--ice-rgb), 0.5);
  background: rgba(var(--ice-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--ice-rgb), 0.22);
}

#plan-periods.choice-grid {
  margin: 0;
}

.tariff {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 12px;
  min-height: 76px;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  background:
    linear-gradient(180deg, rgba(38, 102, 132, 0.58), rgba(8, 22, 36, 0.86)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.16), transparent 46%, rgba(120, 160, 255, 0.12));
  background-size: 100% 100%, 240% 240%;
  animation: rock-sheen 14s ease-in-out infinite;
  color: #e8fbff;
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
    0 10px 24px rgba(0, 0, 0, 0.28);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tariff-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.14);
  border: 1px solid rgba(var(--ice-rgb), 0.3);
}

.tariff-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tariff-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.tariff b {
  font-size: 14px;
  font-weight: 800;
}

.tariff small {
  color: rgba(200, 230, 242, 0.78);
  font-size: 12px;
}

.tariff.period {
  min-height: 72px;
}

.tariff.period b {
  font-size: 16px;
}

.tariff-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(var(--ice-rgb), 0.45);
  flex: none;
}

.tariff.period em {
  position: absolute;
  top: 8px;
  right: 8px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8fbff;
  background: rgba(var(--ice-rgb), 0.2);
  border: 1px solid rgba(var(--ice-rgb), 0.35);
  border-radius: 999px;
  padding: 3px 7px;
}

.pay-facts {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.pay-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(var(--ice-rgb), 0.12);
}

.pay-facts div:last-child {
  border-bottom: 0;
}

.pay-facts span {
  color: rgba(190, 214, 230, 0.78);
}

.pay-facts b {
  font-size: 16px;
}

.pay-facts .sum {
  background: rgba(var(--ice-rgb), 0.1);
}

.pay-facts .sum b {
  color: var(--ice);
  font-size: 20px;
}

.pay-legal {
  margin: 0 0 16px;
  color: rgba(190, 214, 230, 0.75);
  font-size: 13px;
  line-height: 1.4;
}

.pay-legal a {
  color: var(--ice);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-view {
  max-height: min(52vh, 420px);
  overflow: auto;
  text-align: left;
  padding-right: 4px;
}

.sheet-card.legal {
  width: min(430px, 100%);
}

.sub-actions {
  display: grid;
  gap: 10px;
}

#sub .act.rock,
#set .act.rock,
#help .act.rock,
#docs .doc.act {
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
}

.act-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.28);
}

.act-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-list {
  display: grid;
  gap: 8px;
}

.dev-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 8px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 14, 24, 0.42);
  cursor: pointer;
}

.dev-row:hover {
  border-color: rgba(var(--ice-rgb), 0.32);
  background: rgba(10, 22, 34, 0.58);
}

.dev-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.12);
}

.dev-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-meta {
  flex: 1;
  min-width: 0;
}

.dev-meta b {
  display: block;
  font-size: 15px;
}

.dev-meta small {
  display: block;
  color: rgba(190, 214, 230, 0.7);
  line-height: 1.35;
}

.dev-meta small.dev-joined {
  margin-top: 2px;
}

.dev-kick {
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 90, 90, 0.14);
  color: #ffb4b4;
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}

.dev-kick svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffb4b4;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-now {
  font-size: 11px;
  font-weight: 700;
  color: var(--ice);
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.dev-ico.ios,
.dev-ico.mac {
  background: #171a20;
  color: #f4fbff;
}

.dev-ico.android {
  background: rgba(61, 220, 132, 0.16);
  color: #3ddc84;
}

.dev-ico.windows {
  background: rgba(0, 164, 239, 0.16);
  color: #5cc8ff;
}

.dev-ico.linux {
  background: rgba(255, 196, 90, 0.14);
  color: #ffd27a;
}

.dev-ico svg.fill {
  fill: currentColor;
  stroke: none;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #e8fbff;
}

#s-extend .act-ico svg { stroke: var(--ice); }

#s-auto.off {
  border-color: rgba(255, 92, 92, 0.5);
  background: linear-gradient(180deg, rgba(118, 24, 30, 0.64), rgba(28, 8, 10, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 140, 140, 0.22);
}
#s-auto.off b,
#s-auto.off small { color: #ffd0d0; }
#s-auto.off .act-ico {
  background: rgba(255, 90, 90, 0.16);
  border-color: rgba(255, 120, 120, 0.4);
}
#s-auto.off .act-ico svg { stroke: #ffb4b4; }
#s-auto.on {
  border-color: rgba(80, 220, 120, 0.55);
  background: linear-gradient(180deg, rgba(12, 92, 44, 0.74), rgba(6, 24, 14, 0.86));
  box-shadow: inset 0 0 0 1px rgba(120, 255, 168, 0.32);
}
#s-auto.on b,
#s-auto.on small { color: #d4ffe8; }
#s-auto.on .act-ico {
  background: rgba(80, 220, 120, 0.2);
  border-color: rgba(80, 220, 120, 0.48);
}
#s-auto.on .act-ico svg { stroke: #7dffa8; }

#s-adblock.off {
  border-color: rgba(255, 168, 184, 0.58);
  background: linear-gradient(180deg, rgba(168, 48, 64, 0.52), rgba(48, 14, 22, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 192, 0.28);
}
#s-adblock.off b,
#s-adblock.off small { color: #ffe0e6; }
#s-adblock.off .act-ico {
  background: rgba(255, 140, 160, 0.22);
  border-color: rgba(255, 168, 184, 0.5);
}
#s-adblock.off .act-ico svg { stroke: #ffb0bc; }
#s-adblock.on {
  border-color: rgba(48, 220, 214, 0.58);
  background: linear-gradient(180deg, rgba(8, 86, 90, 0.74), rgba(6, 24, 32, 0.86));
  box-shadow: inset 0 0 0 1px rgba(90, 240, 230, 0.32);
}
#s-adblock.on b,
#s-adblock.on small { color: #c8fff8; }
#s-adblock.on .act-ico {
  background: rgba(48, 220, 214, 0.2);
  border-color: rgba(70, 230, 220, 0.48);
}
#s-adblock.on .act-ico svg { stroke: #5ef0e4; }

#s-clear .act-ico svg { stroke: #ffb4b4; }

.cta.ghost {
  margin-top: 8px;
  background: rgba(8, 18, 28, 0.45);
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  color: #d7f7ff;
  box-shadow: none;
}

.sheet-card .cta.ghost {
  color: #d7f7ff;
}

#home .rock,
#sub .rock,
#bal .rock,
#ref .rock,
#set .rock,
#notes .rock,
#profile .rock,
#help .rock,
#help-guide .rock,
#help-fix .rock,
#support .rock,
#docs .rock,
.sheet-card.rock {
  background:
    linear-gradient(180deg, rgba(10, 20, 32, 0.62), rgba(7, 12, 22, 0.66)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.1), transparent 42%, rgba(120, 160, 255, 0.1));
  background-size: 100% 100%, 240% 240%;
  animation: rock-sheen 14s ease-in-out infinite;
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(var(--ice-rgb), 0.1);
  backdrop-filter: blur(18px);
}

#home #home-plans.buy-card {
  padding: 0;
  border: 1px solid rgba(var(--ice-rgb), 0.42);
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.22),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

#home .card.rock,
#sub .card.rock,
#bal .card.rock,
#ref .card.rock,
#profile .card.rock,
#help .card.rock,
#help-guide .card.rock,
#help-fix .card.rock,
#support .card.rock,
#docs .card.rock {
  padding: 16px 16px 14px;
}

#home #home-sub {
  padding: 22px 18px 18px;
}

#home #h-sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #e8fbff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#home #h-sub-title svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(var(--ice-rgb), 0.45));
}

#home #home-sub .kv {
  padding: 14px 0;
}

#home .kv {
  align-items: center;
}

#home .kv span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(210, 228, 242, 0.78);
  font-size: 16px;
}

#home .kv span svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

#home .kv b {
  color: #f4fbff;
  white-space: pre-line;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#home .kv b.on {
  color: #8fffb0;
}

#home .kv b.on::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #49ff8a;
  box-shadow: 0 0 8px #49ff8a;
  vertical-align: middle;
}

#home .cta.happ,
#sub .cta.happ,
#d-promo .cta.happ,
#d-news .cta.happ,
#d-users .cta.happ,
#d-price .cta.happ {
  margin-top: 14px;
  justify-content: space-between;
  padding: 0 16px;
  gap: 10px;
  min-height: 58px;
  font-size: 17px;
}

#bal .cta.happ,
#ref .cta.happ,
#help .cta.happ,
#notes .cta.happ {
  margin-top: 14px;
  justify-content: center;
  padding: 0 16px;
  min-height: 58px;
  font-size: 17px;
  text-align: center;
}

#home .cta.happ svg,
#sub .cta.happ svg,
#bal .cta.happ svg,
#ref .cta.happ svg,
#notes .cta.happ svg,
#d-promo .cta.happ svg,
#d-news .cta.happ svg,
#d-users .cta.happ svg,
#d-price .cta.happ svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#home .cta.happ span,
#sub .cta.happ span,
#bal .cta.happ span,
#ref .cta.happ span,
#notes .cta.happ span,
#d-promo .cta.happ span,
#d-news .cta.happ span,
#d-users .cta.happ span,
#d-price .cta.happ span {
  flex: 1;
  text-align: center;
}

#home .tile.rock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 12px 16px;
  min-height: 136px;
  overflow: visible;
  text-align: center;
}

#home .tile small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  color: rgba(210, 228, 242, 0.88);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

#home .tile small svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(var(--ice-rgb), 0.4));
}

#home .tile-sum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
}

#home .tile-sum b {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(var(--ice-rgb), 0.28);
}

#home .tile-sum em {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  font-style: normal;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  color: #7dffa8;
  text-shadow: 0 0 12px rgba(125, 255, 168, 0.35);
}

#home .plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}

#home .plan-head.back {
  cursor: pointer;
}

#home .plan-head > svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#home .plan-head span {
  flex: 1;
  min-width: 0;
}

#home .plan-head b {
  display: block;
  font-size: 16px;
}

#home .plan-head small {
  display: block;
  margin-top: 2px;
  color: rgba(210, 228, 242, 0.7);
  font-size: 12px;
}

#home .plan-head .chev {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

#home .plan-head.back .chev {
  opacity: 1;
}

#home .price.pick {
  gap: 12px;
  margin: 0 0 8px;
  padding: 14px 14px;
  min-height: 54px;
  font-size: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.26);
  border-radius: 16px;
  background: rgba(6, 14, 24, 0.42);
}

#home .price.pick:first-child {
  border-top: 1px solid rgba(var(--ice-rgb), 0.26);
}

#home .price.pick::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #5ce8f7;
  box-shadow: 0 0 10px rgba(92, 232, 247, 0.25);
}

#home .act.rock {
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
}

#home .act.rock b {
  font-size: 16px;
}

#home .act.rock small {
  font-size: 13px;
}

#home .act.rock > svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 4px 0 18px;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  text-align: center;
}

.glow-stats svg {
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  display: block;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(var(--ice-rgb), 0.55));
}

.glow-stats b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(var(--ice-rgb), 0.45);
}

.glow-stats span {
  color: rgba(210, 230, 245, 0.78);
  font-size: 12px;
}

body.app.day .chip {
  color: #d8ffe8;
}

.hero {
  background: linear-gradient(180deg, #1a1d2e 0%, #12141f 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px 18px;
  text-align: center;
  margin-bottom: 12px;
}

body.app.day .hero {
  background: #fff;
}

.spark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--ice-rgb), 0.08);
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  color: var(--ice);
}

.spark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.hero .hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stats b {
  display: block;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.cta.glow {
  min-height: 54px;
  border: 1px solid var(--cta-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--cta-top), var(--cta-bot)),
    linear-gradient(120deg, var(--cta-shine), transparent 48%, rgba(120, 160, 255, 0.12));
  background-size: 100% 100%, 240% 240%;
  animation: rock-sheen 14s ease-in-out infinite;
  color: #e8fbff;
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.22),
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(var(--ice-rgb), 0.22);
  font-weight: 800;
}

.cta.ice {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bot));
  color: #e8fbff;
  border: 1px solid var(--cta-line);
}

body.app.day .cta.ice {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bot));
  color: #e8fbff;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bot));
  color: #e8fbff;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14);
}

body.app.day .bar {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bot));
  color: #e8fbff;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.adblock-card {
  margin: 0;
  min-height: 72px;
}

.sub-auto {
  display: grid;
  gap: 10px;
}

#sub .sub-auto .act {
  margin: 0;
}

.tile {
  background: rgba(10, 16, 28, 0.58);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--ice-rgb), 0.14);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  color: inherit;
}

.tile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.tile b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.tile em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.page {
  display: none;
}

.page.on {
  display: block;
  overscroll-behavior-y: contain;
}

.title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.app.day .hi,
body.app.day .title,
body.app.day .brand b,
body.app.day .subline,
body.app.day .glow-stats b,
body.app.day .glow-stats span {
  color: #f4fbff;
}

.card {
  background: rgba(10, 16, 28, 0.58);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--ice-rgb), 0.14);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.card.fold {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.fold-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fold-lead {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.fold-lead h2,
.fold-lead h3,
.fold-lead .block-title,
.fold-lead .help-head,
.fold-lead .offer-status {
  margin: 0;
  width: 100%;
}

#home .offer .fold-head,
#sub .offer .fold-head,
#bal .offer .fold-head,
#ref .offer .fold-head,
#srv .offer .fold-head,
#d-promo .offer .fold-head,
#d-part .offer .fold-head,
#d-news .offer .fold-head,
#d-users .offer .fold-head,
#d-stats .offer .fold-head,
#d-price .offer .fold-head {
  justify-content: center;
  text-align: center;
}

#home .offer .fold-lead,
#sub .offer .fold-lead,
#bal .offer .fold-lead,
#ref .offer .fold-lead,
#srv .offer .fold-lead,
#d-promo .offer .fold-lead,
#d-part .offer .fold-lead,
#d-news .offer .fold-lead,
#d-users .offer .fold-lead,
#d-stats .offer .fold-lead,
#d-price .offer .fold-lead {
  align-items: center;
  text-align: center;
}

.fold-head .chev {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

.card.fold.open .fold-head .chev {
  transform: rotate(90deg);
}

.fold-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.card.fold.open .fold-body {
  grid-template-rows: 1fr;
}

.fold-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px;
}

.card.fold.open .fold-inner {
  padding-bottom: 16px;
}

.card.fold.profile-hero .fold-lead {
  align-items: center;
}

#home .card.rock.fold,
#sub .card.rock.fold,
#bal .card.rock.fold,
#ref .card.rock.fold,
#srv .card.rock.fold,
#profile .card.rock.fold,
#help .card.rock.fold,
#help-guide .card.rock.fold,
#support .card.rock.fold,
#docs .card.rock.fold {
  padding: 0;
}

.field {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  padding: 12px 14px;
  outline: none;
  margin-bottom: 10px;
}

#otp-target,
#bind-target {
  text-transform: lowercase;
}

textarea.field {
  min-height: 110px;
  resize: vertical;
}

.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 12px;
}

.contact .bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}

.contact .bubble svg,
.empty i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.contact p {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.contact b {
  display: block;
  font-size: 13px;
}

.contact small {
  color: var(--muted);
  font-size: 12px;
}

.write {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  font-size: 13px;
  white-space: nowrap;
}

.empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 10px;
}

.empty i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card-2);
  display: grid;
  place-items: center;
}

.prices {
  display: grid;
  gap: 8px;
}

.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.price:first-child {
  border-top: 0;
}

.price b {
  color: var(--ice);
}

.link {
  word-break: break-all;
  color: var(--ice);
  font-size: 13px;
  line-height: 1.4;
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tickets {
  display: grid;
  gap: 14px;
}

#list-card .tickets {
  margin: 0;
}

.tk-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  border-color: rgba(var(--ice-rgb), 0.28);
  background: linear-gradient(180deg, rgba(10, 38, 56, 0.92), rgba(6, 14, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.12),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.tk-row::before {
  background: var(--ice);
}

.tk-row .op-ico {
  background: rgba(var(--ice-rgb), 0.16);
  border-color: rgba(var(--ice-rgb), 0.34);
}

.tk-row .op-ico svg {
  stroke: var(--ice);
}

.tk-row.tk-g0 {
  border-color: rgba(var(--ice-rgb), 0.42);
  background: linear-gradient(180deg, rgba(22, 86, 112, 0.68), rgba(8, 22, 34, 0.9));
}
.tk-row.tk-g0::before { background: #8af6ff; }
.tk-row.tk-g0 .op-ico { background: rgba(var(--ice-rgb), 0.2); border-color: rgba(var(--ice-rgb), 0.4); }
.tk-row.tk-g0 .op-ico svg { stroke: #8af6ff; }

.tk-row.tk-g1 {
  border-color: rgba(90, 210, 245, 0.38);
  background: linear-gradient(180deg, rgba(16, 74, 100, 0.64), rgba(7, 20, 32, 0.9));
}
.tk-row.tk-g1::before { background: #6fe8f8; }
.tk-row.tk-g1 .op-ico { background: rgba(90, 210, 245, 0.16); border-color: rgba(90, 210, 245, 0.34); }
.tk-row.tk-g1 .op-ico svg { stroke: #6fe8f8; }

.tk-row.tk-g2 {
  border-color: rgba(70, 190, 230, 0.36);
  background: linear-gradient(180deg, rgba(12, 64, 90, 0.66), rgba(6, 18, 30, 0.9));
}
.tk-row.tk-g2::before { background: #58d6ee; }
.tk-row.tk-g2 .op-ico { background: rgba(70, 190, 230, 0.15); border-color: rgba(70, 190, 230, 0.32); }
.tk-row.tk-g2 .op-ico svg { stroke: #58d6ee; }

.tk-row.tk-g3 {
  border-color: rgba(56, 172, 214, 0.34);
  background: linear-gradient(180deg, rgba(10, 56, 80, 0.68), rgba(6, 16, 28, 0.92));
}
.tk-row.tk-g3::before { background: #46c4e4; }
.tk-row.tk-g3 .op-ico { background: rgba(56, 172, 214, 0.14); border-color: rgba(56, 172, 214, 0.3); }
.tk-row.tk-g3 .op-ico svg { stroke: #46c4e4; }

.tk-row.tk-g4 {
  border-color: rgba(42, 156, 198, 0.34);
  background: linear-gradient(180deg, rgba(8, 48, 72, 0.7), rgba(5, 14, 26, 0.92));
}
.tk-row.tk-g4::before { background: #38b4d8; }
.tk-row.tk-g4 .op-ico { background: rgba(42, 156, 198, 0.14); border-color: rgba(42, 156, 198, 0.28); }
.tk-row.tk-g4 .op-ico svg { stroke: #38b4d8; }

.tk-row.tk-g5 {
  border-color: rgba(30, 140, 184, 0.32);
  background: linear-gradient(180deg, rgba(6, 42, 64, 0.72), rgba(4, 12, 22, 0.94));
}
.tk-row.tk-g5::before { background: #2aa4cc; }
.tk-row.tk-g5 .op-ico { background: rgba(30, 140, 184, 0.14); border-color: rgba(30, 140, 184, 0.28); }
.tk-row.tk-g5 .op-ico svg { stroke: #2aa4cc; }

.tk-main {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.tk-x {
  position: static;
  top: auto;
  right: auto;
  width: 42px;
  height: 42px;
  flex: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  background:
    linear-gradient(180deg, rgba(38, 102, 132, 0.52), rgba(8, 22, 36, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.18),
    0 8px 16px rgba(0, 0, 0, 0.22);
  color: var(--ice);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: none;
  appearance: none;
  -webkit-appearance: none;
}

.tk-x:hover,
.tk-x:focus-visible {
  border-color: rgba(var(--ice-rgb), 0.5);
  background:
    linear-gradient(180deg, rgba(48, 122, 152, 0.62), rgba(10, 28, 42, 0.9));
  color: #e8fbff;
}

.tk-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-cancel-all {
  width: 100%;
  min-height: 48px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.26);
  background: rgba(8, 18, 28, 0.48);
  color: #d7f4ff;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.08);
  animation: none;
  appearance: none;
  -webkit-appearance: none;
}

.tk-cancel-all b {
  font-weight: 800;
}

.tk-cancel-all:hover,
.tk-cancel-all:focus-visible {
  border-color: rgba(var(--ice-rgb), 0.46);
  background: rgba(16, 42, 58, 0.62);
  color: #e8fbff;
}

.tk-row.is-done {
  opacity: 0.72;
}

.tk-row .op-meta {
  min-width: 0;
}

.tk-id {
  color: rgba(var(--ice-rgb), 0.78);
  font-weight: 800;
}

.tk-main .op-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tk-main .tk-preview {
  margin-top: 3px;
  color: rgba(210, 230, 242, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.tk-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(190, 220, 232, 0.78);
}

.tk-view {
  display: grid;
  gap: 12px;
  text-align: left;
}

.tk-view-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tk-view-top .op-kind {
  margin-bottom: 0;
}

.tk-view-top .op-kind.tk-open {
  color: #ffe08a;
  background: rgba(255, 224, 138, 0.14);
  border-color: rgba(255, 224, 138, 0.26);
}

.tk-view-top .op-kind.tk-done {
  color: #7dffa8;
  background: rgba(125, 255, 168, 0.12);
  border-color: rgba(125, 255, 168, 0.22);
}

.tk-view-top .op-kind.tk-cancel {
  color: #ffb4b4;
  background: rgba(255, 140, 140, 0.12);
  border-color: rgba(255, 140, 140, 0.24);
}

.tk-view-top .op-when {
  color: rgba(190, 214, 230, 0.7);
  font-size: 13px;
  font-weight: 600;
}

.tk-view-body {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: linear-gradient(180deg, rgba(16, 34, 50, 0.78), rgba(7, 14, 24, 0.86));
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.1);
  color: #e8fbff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 12px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(var(--ice-rgb), 0.12);
  backdrop-filter: blur(18px);
  z-index: 20;
}

html.ios-pwa .tabs {
  bottom: 8px;
}

html.ios-pwa .shell {
  padding-top: calc(50px + env(safe-area-inset-top, 0px));
  padding-bottom: 96px;
}

@media (orientation: landscape) and (max-height: 540px) {
  html.ios-pwa .shell {
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
  }
}

html.ios-pwa .toast {
  bottom: 88px;
}

.tab-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 16px;
  background: var(--pill);
  box-shadow: 0 0 18px var(--ice-dim);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s ease, height 0.32s ease;
  pointer-events: none;
  z-index: 0;
}

body.app.day .tabs {
  background: rgba(255, 255, 255, 0.92);
}

.tabs button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px 8px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.tabs button.on {
  background: transparent;
  color: #9ef6ff;
  box-shadow: none;
}

.tabs svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs img.dev-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tabs button[data-tab="notes"] {
  display: none;
}

.tabs button.dev-tab,
.tabs button[data-tab="dev"] {
  display: none;
}

#dev-toggle-side .tab-user-lab {
  display: none;
}

body.dev-on #dev-toggle-side .tab-dev-lab {
  display: none;
}

body.dev-on #dev-toggle-side .tab-user-lab {
  display: inline;
}

.tabs button.dev-tab .tab-m {
  display: none;
}

.tabs button.dev-tab .tab-d {
  display: inline;
}

body.dev-on .tabs button.dev-tab {
  display: flex;
}

body.dev-on .tabs button[data-tab="home"],
body.dev-on .tabs button[data-tab="sub"],
body.dev-on .tabs button[data-tab="bal"],
body.dev-on .tabs button[data-tab="srv"],
body.dev-on .tabs button[data-tab="ref"],
body.dev-on .tabs button[data-tab="notes"],
body.dev-on .tabs button[data-tab="set"] {
  display: none !important;
}

.side-user,
.tab-d {
  display: none;
}

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 36, 0.28);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.sheet.on {
  display: flex;
}

.sheet-card {
  width: min(430px, 100%);
  border-radius: 24px;
  max-height: 88vh;
  overflow: auto;
  padding: 22px 18px 16px;
}

.sheet-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
}

.sheet-card .sheet-back {
  margin: 0 0 12px;
}

.sheet-card .cta.happ {
  width: 100%;
  margin-top: 4px;
}

.sheet-card .cta.ghost,
.sheet-card .cta.happ#sheet-cancel {
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
}

.app [hidden] {
  display: none !important;
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kv:last-of-type {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
  flex: none;
}

.kv b {
  font-size: 13px;
  font-weight: 650;
  text-align: right;
  line-height: 1.35;
  word-break: break-word;
}

#profile .profile-facts {
  padding: 22px 18px 16px;
}

#profile .profile-facts h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e8fbff;
}

#profile .profile-facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(var(--ice-rgb), 0.14);
}

#profile .profile-facts .fact:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

#profile .profile-facts .fact > span:not(.fact-end) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  max-width: 100%;
  margin: 0;
  color: #e8fbff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-width: 0;
}

#profile .profile-facts .fact span svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(var(--ice-rgb), 0.45));
}

#profile .profile-facts .fact > b {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  padding: 0 0 0 38px;
  color: rgba(228, 246, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: left;
  text-shadow: none;
  word-break: break-word;
}

#profile .profile-facts .fact-date > b,
#profile .profile-facts .fact-name.fact-hi > b,
#profile .profile-facts .fact-hi .fact-end b {
  color: var(--ice);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(var(--ice-rgb), 0.42);
}

#profile .profile-facts .fact-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  flex: none;
  margin: 0;
  max-width: min(100%, 220px);
  flex-wrap: wrap;
}

#profile .profile-facts .fact-end b {
  display: block;
  margin: 0;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 750;
  text-align: right;
  text-shadow: none;
  word-break: break-word;
}

#profile .profile-facts .fact-name,
#profile .profile-facts .fact-bind {
  cursor: pointer;
}

#profile .profile-facts .fact .bind-go {
  align-self: center;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  font-size: 15px;
}

.bind-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.bind-row:last-child {
  border-bottom: 0;
}

.bind-row span {
  color: var(--muted);
  flex: 1;
}

.bind-row b {
  font-size: 13px;
  font-weight: 650;
  text-align: right;
  word-break: break-word;
}

.bind-go {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ice-rgb), 0.35);
  background: linear-gradient(180deg, rgba(70, 196, 220, 0.32), rgba(24, 90, 110, 0.5));
  color: #e8fbff;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}

.act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.14);
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.58);
  backdrop-filter: blur(16px);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.act b {
  display: block;
  font-size: 14px;
}

.act small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.plans {
  display: grid;
  gap: 8px;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.toggle:last-child {
  border-bottom: 0;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.notify-card h3 {
  margin: 0 0 8px;
}

.notify-card .block-title {
  margin: 0 0 12px;
}

.notify-card > .note {
  margin: 0 0 22px;
}

.switch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 0 0 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 42, 60, 0.92), rgba(10, 20, 32, 0.78));
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  cursor: pointer;
}

.switch-card span:nth-of-type(2) {
  flex: 1;
  min-width: 0;
}

.switch-card b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.switch-card small {
  display: block;
  margin-top: 2px;
  color: rgba(190, 214, 230, 0.7);
  font-size: 12px;
}

.switch-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.switch-gutter {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 90, 90, 0.28);
  border: 1px solid rgba(255, 120, 120, 0.35);
  position: relative;
  flex: none;
  display: block;
  transition: 0.2s ease;
}

.switch-gutter::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4fbff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  transition: 0.2s ease;
}

.switch-card:has(input:checked) {
  border-color: rgba(110, 255, 180, 0.38);
  box-shadow: 0 0 18px rgba(80, 255, 180, 0.08);
}

.switch-card:has(input:checked) .switch-gutter {
  background: rgba(73, 255, 138, 0.38);
  border-color: rgba(73, 255, 138, 0.55);
}

.switch-card:has(input:checked) .switch-gutter::after {
  left: 23px;
}

.switch-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.28);
}

.switch-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.switch-ico.games {
  background: rgba(168, 120, 255, 0.16);
  border-color: rgba(176, 140, 255, 0.32);
}

.switch-ico.games svg {
  stroke: #d2b8ff;
}

.srv-list {
  display: grid;
  gap: 10px;
}

.srv-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
}

.srv-row.on {
  box-shadow: 0 0 0 1px rgba(var(--ice-rgb), 0.55), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.srv-flag {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.srv-flag.nl {
  background: linear-gradient(#AE1C28 0 33.4%, #F9F9F9 33.4% 66.6%, #21468B 66.6%);
}

.srv-flag.nl svg {
  display: none;
}

.srv-flag.ch {
  background: #d52b1e;
  position: relative;
}

.srv-flag.ch::before,
.srv-flag.ch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.srv-flag.ch::before {
  width: 18px;
  height: 6px;
}

.srv-flag.ch::after {
  width: 6px;
  height: 18px;
}

.srv-flag.gb {
  background: #012169;
}

.srv-flag.gb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.srv-flag.de {
  background: linear-gradient(#000 0 33.4%, #DD0000 33.4% 66.6%, #FFCE00 66.6%);
}

.srv-flag.it {
  background: linear-gradient(to right, #009246 0 33.4%, #fff 33.4% 66.6%, #CE2B37 66.6%);
}

.srv-flag.ru {
  background: linear-gradient(#fff 0 33.4%, #0039A6 33.4% 66.6%, #D52B1E 66.6%);
}

.srv-flag.fr {
  background: linear-gradient(to right, #002395 0 33.4%, #fff 33.4% 66.6%, #ED2939 66.6%);
}

.srv-flag.lte {
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  box-shadow: none;
}

.srv-flag.lte svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.srv-meta {
  min-width: 0;
}

.srv-meta b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4fbff;
  line-height: 1.2;
}

.srv-meta small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(214, 236, 248, 0.72);
}

.srv-ms {
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  color: #d7f7ff;
  min-width: 76px;
  text-align: right;
  letter-spacing: -0.03em;
}

.srv-ms.good {
  color: #7dffa8;
}

.srv-ms.mid {
  color: #ffe08a;
}

.srv-ms.bad {
  color: #ff9a9a;
}

.srv-ms.load {
  min-width: 84px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ice);
}

.ping-scope {
  width: 52px;
  height: 22px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(8, 18, 26, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ice-rgb), 0.32),
    0 0 10px rgba(var(--ice-rgb), 0.16);
}

.ping-scope::before {
  content: "";
  position: absolute;
  inset: 3px -52px 3px 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 16' preserveAspectRatio='none'><path fill='none' stroke='%236ee7ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M0 8 H8 L11 8 L14 2.2 L18 13.8 L21 8 H30 L33 8 L36 2.2 L40 13.8 L43 8 H52'/></svg>");
  background-repeat: repeat-x;
  background-size: 52px 16px;
  background-position: 0 50%;
  filter: drop-shadow(0 0 4px rgba(110, 231, 255, 0.55));
  animation: ping-scope-run 0.95s linear infinite;
}

.ping-scope::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 10px;
  right: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(125, 255, 168, 0.95));
  filter: blur(0.2px);
  animation: ping-scope-glow 0.95s ease-in-out infinite;
}

@keyframes ping-scope-run {
  to { background-position: -52px 50%; }
}

@keyframes ping-scope-glow {
  0%, 100% { opacity: 0.25; transform: scaleY(0.55); }
  45% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ping-scope::before,
  .ping-scope::after {
    animation: none;
  }
  .ping-scope::before {
    background-position: 0 50%;
  }
  .ping-scope::after {
    opacity: 0.55;
  }
}

#srv-refresh {
  margin-top: 14px;
}

#srv-refresh:disabled {
  opacity: 0.64;
  pointer-events: none;
}

.people {
  display: grid;
  gap: 8px;
}

.person {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 13px;
}

.person small {
  color: var(--muted);
}

.panel {
  display: none;
}

.panel.on {
  display: block;
}

.page.panel > .back {
  width: 100%;
}

#acc-devs-card .note {
  margin: 0 0 12px;
}

#acc-devs .dev-list {
  margin-top: 0;
}

.back {
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  margin: 0 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(38, 102, 132, 0.58), rgba(8, 22, 36, 0.86));
  color: #e8fbff;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.doc {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 16, 0.58);
  backdrop-filter: blur(12px);
}

#notes .notes-tabs {
  margin: 0 0 14px;
}

#privacy-gate {
  z-index: 32;
}

#name-gate {
  z-index: 33;
}

.gate .card {
  width: min(380px, 100%);
  text-align: center;
}

.gate .privacy-card {
  width: min(430px, 100%);
  max-height: 92vh;
  overflow: hidden;
  text-align: left;
}

.gate h2 {
  margin: 0 0 8px;
  font-size: 22px;
  text-align: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
  width: 100%;
}

.login-tabs button {
  width: 100%;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  background: rgba(8, 18, 28, 0.45);
  color: inherit;
  border-radius: 12px;
  min-height: 38px;
  font-weight: 700;
  cursor: pointer;
}

.login-tabs button.on {
  background: linear-gradient(180deg, rgba(38, 102, 132, 0.62), rgba(8, 22, 36, 0.88));
  color: #e8fbff;
  border-color: rgba(var(--ice-rgb), 0.4);
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.16);
}

.privacy-scroll {
  max-height: 46vh;
  overflow: auto;
  padding-right: 6px;
  margin: 10px 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(230, 242, 250, 0.9);
}

.privacy-scroll h1,
.doc-html h1 {
  font-size: 20px;
  margin: 0 0 10px;
}

.privacy-scroll h2,
.doc-html h2 {
  font-size: 16px;
  margin: 16px 0 8px;
}

.privacy-scroll p,
.doc-html p,
.privacy-scroll li,
.doc-html li {
  margin: 0 0 8px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
}

.check-line.wait {
  opacity: 0.4;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.doc-html {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(230, 242, 250, 0.92);
}

.doc-html a {
  color: var(--ice);
}

#tg-login {
  margin-top: 16px;
}

#tg-login .cta {
  width: 100%;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(360px, calc(100% - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.lang-list {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 16, 26, 0.62);
  color: #e8fbff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.lang-opt .lang-flag {
  flex: none;
  width: 34px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  display: block;
  font-size: 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lang-opt .lang-flag img,
.lang-opt .lang-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-opt b {
  flex: 1;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lang-opt .lang-check {
  flex: none;
  width: 22px;
  height: 22px;
  opacity: 0;
}

.lang-opt .lang-check svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-opt.on {
  border-color: rgba(var(--ice-rgb), 0.48);
  background: linear-gradient(180deg, rgba(32, 100, 128, 0.55), rgba(8, 24, 36, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.14),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.lang-opt.on .lang-check {
  opacity: 1;
}

.lang-opt:hover {
  border-color: rgba(var(--ice-rgb), 0.34);
}

.skin-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.skin-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 16, 26, 0.62);
  color: #e8fbff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.skin-opt b {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
}

.skin-opt .skin-swatch {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 12px rgba(0, 0, 0, 0.28);
}

.skin-opt .lang-check {
  flex: none;
  width: 22px;
  height: 22px;
  opacity: 0;
}

.skin-opt .lang-check svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skin-opt.on {
  border-color: rgba(var(--ice-rgb), 0.46);
  background: linear-gradient(180deg, rgba(var(--ice-rgb), 0.22), rgba(8, 22, 36, 0.86));
}

.skin-opt.on .lang-check {
  opacity: 1;
}

.skin-swatch[data-skin="caucasus"],
.skin-swatch[data-skin="north"] { background: linear-gradient(135deg, #164a62, #8af4ff); }
.skin-swatch[data-skin="beige"] { background: linear-gradient(135deg, #3a2a12, #e8c98a); }
.skin-swatch[data-skin="green"] { background: linear-gradient(135deg, #063a18, #5cff7a); }
.skin-swatch[data-skin="brown"] { background: linear-gradient(135deg, #3a1808, #f0a15a); }
.skin-swatch[data-skin="red"] { background: linear-gradient(135deg, #4a0810, #ff6a78); }
.skin-swatch[data-skin="aqua"] { background: linear-gradient(135deg, #043a3a, #2ee8e0); }
.skin-swatch[data-skin="grey"] { background: linear-gradient(135deg, #1c242c, #d0d8e0); }
.skin-swatch[data-skin="pink"] { background: linear-gradient(135deg, #4a1228, #ff92b8); }
.skin-swatch[data-skin="purple"] { background: linear-gradient(135deg, #2a0848, #c878ff); }
.skin-swatch[data-skin="black"] { background: linear-gradient(135deg, #0a0a0c, #f0f0f0); }

html[data-skin="caucasus"],
html[data-skin="north"] {
  --ice: #8af4ff;
  --ice-rgb: 110, 231, 255;
  --ink: #eef0f7;
  --cta-top: rgba(42, 118, 148, 0.62);
  --cta-bot: rgba(10, 28, 44, 0.88);
  --cta-line: rgba(var(--ice-rgb), 0.38);
  --pill: rgba(var(--ice-rgb), 0.16);
}
html[data-skin="beige"] {
  --ice: #e8c98a;
  --ice-rgb: 216, 176, 96;
  --ink: #f6ecd4;
  --muted: #c4b08a;
  --cta-top: rgba(176, 132, 52, 0.88);
  --cta-bot: rgba(48, 32, 10, 0.94);
  --cta-shine: rgba(255, 214, 140, 0.28);
  --cta-line: rgba(232, 196, 120, 0.58);
  --pill: rgba(216, 176, 96, 0.2);
}
html[data-skin="green"] {
  --ice: #5cff7a;
  --ice-rgb: 70, 255, 120;
  --ink: #e8ffe8;
  --muted: #9ad8a8;
  --cta-top: rgba(12, 148, 56, 0.9);
  --cta-bot: rgba(4, 36, 14, 0.94);
  --cta-shine: rgba(120, 255, 150, 0.28);
  --cta-line: rgba(90, 255, 130, 0.55);
  --pill: rgba(70, 255, 120, 0.18);
}
html[data-skin="brown"] {
  --ice: #f0a15a;
  --ice-rgb: 232, 140, 64;
  --ink: #ffe8d0;
  --muted: #c4a088;
  --cta-top: rgba(176, 88, 28, 0.9);
  --cta-bot: rgba(48, 20, 8, 0.94);
  --cta-shine: rgba(255, 176, 96, 0.26);
  --cta-line: rgba(240, 160, 80, 0.55);
  --pill: rgba(232, 140, 64, 0.2);
}
html[data-skin="red"] {
  --ice: #ff7484;
  --ice-rgb: 255, 88, 100;
  --ink: #ffe8ea;
  --muted: #d8a0a8;
  --cta-top: rgba(176, 28, 44, 0.92);
  --cta-bot: rgba(48, 8, 14, 0.95);
  --cta-shine: rgba(255, 120, 140, 0.26);
  --cta-line: rgba(255, 100, 112, 0.55);
  --pill: rgba(255, 88, 100, 0.18);
}
html[data-skin="aqua"] {
  --ice: #2ee8e0;
  --ice-rgb: 46, 232, 224;
  --ink: #e4fffc;
  --muted: #8ec8c4;
  --cta-top: rgba(8, 148, 148, 0.92);
  --cta-bot: rgba(4, 36, 42, 0.94);
  --cta-shine: rgba(90, 255, 245, 0.28);
  --cta-line: rgba(60, 240, 230, 0.55);
  --pill: rgba(46, 232, 224, 0.18);
}
html[data-skin="grey"] {
  --ice: #d4dce4;
  --ice-rgb: 176, 188, 204;
  --ink: #eef2f6;
  --muted: #a8b4c0;
  --cta-top: rgba(72, 84, 96, 0.88);
  --cta-bot: rgba(16, 20, 28, 0.94);
  --cta-shine: rgba(210, 220, 230, 0.2);
  --cta-line: rgba(190, 202, 214, 0.48);
  --pill: rgba(176, 188, 204, 0.18);
}
html[data-skin="pink"] {
  --ice: #ff92b8;
  --ice-rgb: 255, 130, 176;
  --ink: #ffe8f0;
  --muted: #d8a8b8;
  --cta-top: rgba(176, 48, 96, 0.9);
  --cta-bot: rgba(48, 12, 28, 0.94);
  --cta-shine: rgba(255, 160, 196, 0.28);
  --cta-line: rgba(255, 140, 180, 0.55);
  --pill: rgba(255, 130, 176, 0.18);
}
html[data-skin="purple"] {
  --ice: #c878ff;
  --ice-rgb: 176, 88, 255;
  --ink: #f4e8ff;
  --muted: #c0a8d8;
  --cta-top: rgba(108, 36, 176, 0.92);
  --cta-bot: rgba(28, 8, 52, 0.95);
  --cta-shine: rgba(200, 140, 255, 0.28);
  --cta-line: rgba(190, 110, 255, 0.55);
  --pill: rgba(176, 88, 255, 0.2);
}
html[data-skin="black"] {
  --ice: #f0f0f0;
  --ice-rgb: 220, 220, 224;
  --ink: #f4f4f6;
  --muted: #b0b0b4;
  --cta-top: rgba(36, 36, 40, 0.94);
  --cta-bot: rgba(8, 8, 10, 0.98);
  --cta-shine: rgba(255, 255, 255, 0.12);
  --cta-line: rgba(230, 230, 234, 0.42);
  --pill: rgba(220, 220, 224, 0.14);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 8px;
}

.choice {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 12px;
  min-height: 76px;
  width: 100%;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(38, 102, 132, 0.58), rgba(8, 22, 36, 0.86)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.16), transparent 46%, rgba(120, 160, 255, 0.12));
  background-size: 100% 100%, 240% 240%;
  animation: rock-sheen 14s ease-in-out infinite;
  color: #e8fbff;
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
    0 10px 24px rgba(0, 0, 0, 0.28);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.choice:hover,
.tariff:hover,
.cta.glow:hover,
.back:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.22),
    0 14px 28px rgba(0, 0, 0, 0.32);
}
.choice:not(.choice-b):not(.choice-c):not(.choice-d):hover,
.tariff:hover,
.cta.glow:hover,
.back:hover {
  border-color: rgba(var(--ice-rgb), 0.5);
}
.choice.choice-b:hover { border-color: rgba(200, 170, 255, 0.55); }
.choice.choice-c:hover { border-color: rgba(255, 210, 120, 0.55); }
.choice.choice-d:hover { border-color: rgba(125, 255, 180, 0.55); }

.choice:active,
.tariff:active,
.cta.glow:active {
  transform: translateY(1px);
}

.choice-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.14);
  border: 1px solid rgba(var(--ice-rgb), 0.3);
}

.choice-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice.choice-b {
  border-color: rgba(180, 150, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(68, 42, 118, 0.58), rgba(16, 12, 36, 0.86)),
    linear-gradient(120deg, rgba(180, 150, 255, 0.16), transparent 48%);
  background-size: 100% 100%, 240% 240%;
}

.choice.choice-b .choice-ico {
  background: rgba(180, 150, 255, 0.16);
  border-color: rgba(180, 150, 255, 0.38);
}

.choice.choice-b .choice-ico svg { stroke: #d2b8ff; }

.choice.choice-c {
  border-color: rgba(230, 185, 80, 0.4);
  background:
    linear-gradient(180deg, rgba(108, 78, 18, 0.56), rgba(28, 18, 8, 0.86)),
    linear-gradient(120deg, rgba(255, 210, 120, 0.14), transparent 48%);
  background-size: 100% 100%, 240% 240%;
}

.choice.choice-c .choice-ico {
  background: rgba(230, 185, 80, 0.16);
  border-color: rgba(230, 185, 80, 0.4);
}

.choice.choice-c .choice-ico svg { stroke: #ffd27a; }

.choice.choice-d {
  border-color: rgba(90, 220, 150, 0.38);
  background:
    linear-gradient(180deg, rgba(16, 78, 52, 0.56), rgba(8, 24, 18, 0.86)),
    linear-gradient(120deg, rgba(125, 255, 180, 0.14), transparent 48%);
  background-size: 100% 100%, 240% 240%;
}

.choice.choice-d .choice-ico {
  background: rgba(90, 220, 150, 0.16);
  border-color: rgba(90, 220, 150, 0.38);
}

.choice.choice-d .choice-ico svg { stroke: #7dffa8; }

.choice b {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.choice small {
  color: rgba(200, 230, 242, 0.78);
  font-size: 12px;
}

.choice .tariff-ico {
  margin-bottom: 4px;
}

.choice .tariff-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-box {
  display: grid;
  place-items: center;
  margin: 8px auto 4px;
  padding: 12px;
  width: min(248px, 100%);
  border-radius: 18px;
  background: #e8fbff;
}

.qr-box canvas,
.qr-box img {
  display: block;
  width: 220px;
  height: 220px;
}

#s-auto.on .act-ico svg {
  stroke: #7dffa8;
}

#s-adblock.on .act-ico {
  background: rgba(48, 220, 214, 0.2);
  border-color: rgba(70, 230, 220, 0.48);
}

#s-adblock.on .act-ico svg {
  stroke: #5ef0e4;
}

.tabs button {
  font-size: 10px;
}

.choice-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.choice-grid.three .choice {
  padding: 12px 6px;
}

.choice-grid.three .choice b {
  font-size: 12.5px;
  letter-spacing: -0.02em;
  text-align: center;
  justify-content: center;
}

.flab {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(210, 228, 242, 0.8);
}

.flab .field {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
  margin-top: 8px;
}

.form-row .cta {
  margin-top: 0;
  width: 100%;
}

.form-row .cta.ghost {
  margin-top: 0;
}

#bal .block-title,
#ref .block-title,
#set .act b,
#profile h3,
#docs h3 {
  font-size: 18px;
}

#set .act.rock {
  position: relative;
  min-height: 80px;
  padding: 16px 20px;
}

#set .act.rock > span:not(.act-ico) {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 58px;
  text-align: center;
  pointer-events: none;
}

#set .act b {
  font-size: 16px;
  text-align: center;
}

#set .act small {
  font-size: 13px;
  text-align: center;
}

#bal .note,
#ref .note,
#set .note,
#profile .note,
#docs .note {
  font-size: 15px;
  line-height: 1.45;
}

.pay-tile b {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.partner-hero .partner-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
}

.empty-people {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 10px 8px;
  color: rgba(210, 228, 242, 0.78);
}

.empty-people p {
  margin: 10px 0 0;
  max-width: 260px;
  font-size: 15px;
  line-height: 1.4;
}

.empty-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(var(--ice-rgb), 0.1);
  border: 1px solid rgba(var(--ice-rgb), 0.22);
}

.empty-ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.6;
}

.ava {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border: 0;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a52, #0c1824);
  color: var(--ice);
  font-size: 32px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(var(--ice-rgb), 0.28), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero h2 {
  margin: 10px 0 0;
  width: 100%;
  text-align: center;
}

#profile .profile-hero .fold-head {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#profile .profile-hero .fold-lead {
  align-items: center;
  text-align: center;
  width: 100%;
}

#profile .profile-hero .ava {
  margin: 0 auto;
}

.notes-card {
  width: min(430px, 100%);
  text-align: left;
  max-height: 88vh;
  overflow: auto;
}

.notes-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.notes-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 34px 20px 30px;
  border-radius: 22px;
  text-align: center;
  color: inherit;
}

.notes-empty .empty-ico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.34);
  box-shadow: 0 0 22px rgba(var(--ice-rgb), 0.2);
}

.notes-empty .empty-ico svg {
  width: 30px;
  height: 30px;
}

.notes-empty b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e8fbff;
  text-shadow: 0 0 18px rgba(var(--ice-rgb), 0.28);
}

.notes-empty small {
  display: block;
  max-width: 280px;
  color: rgba(200, 226, 240, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.notes-toolbar {
  margin: 0 0 12px;
}

.notes-list .op-row {
  width: 100%;
  margin: 0;
  align-items: start;
  overflow: visible;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.notes-list .op-row.is-unread {
  box-shadow:
    inset 0 0 0 1px rgba(var(--ice-rgb), 0.38),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.notes-list .op-row.is-unread .op-kind::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(var(--ice-rgb), 0.8);
}

#notes-read-all {
  width: 100%;
  justify-content: center;
  margin: 0 0 12px;
}

.notes-list .op-meta small:not(.op-when) {
  display: block;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  -webkit-line-clamp: unset;
  text-overflow: unset;
}

.notes-list .op-meta small.note-lines {
  display: block;
  overflow: visible;
  white-space: normal;
  line-height: 1.45;
  margin-top: 10px;
  padding-bottom: 2px;
  word-break: break-word;
  -webkit-line-clamp: unset;
  text-overflow: unset;
}

.flash-hl {
  animation: flash-hl 1.5s ease;
  outline: 2px solid rgba(var(--ice-rgb), 0.95);
  outline-offset: 4px;
}

@keyframes flash-hl {
  0% {
    outline-color: rgba(var(--ice-rgb), 1);
    box-shadow: 0 0 0 8px rgba(var(--ice-rgb), 0.28), 0 12px 32px rgba(0, 0, 0, 0.28);
  }
  100% {
    outline-color: transparent;
    box-shadow: none;
  }
}

#docs-list {
  display: grid;
  gap: 10px;
}

#docs .doc.act {
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 14px 16px;
}

#doc-view {
  padding: 18px 16px 20px;
}

#doc-title {
  margin: 4px 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.doc-html {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(236, 246, 252, 0.94);
}

.doc-html h1 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.doc-html h2 {
  margin: 22px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(var(--ice-rgb), 0.08);
  border: 1px solid rgba(var(--ice-rgb), 0.16);
  font-size: 16px;
  color: #c8f7ff;
}

.doc-html p,
.doc-html li {
  margin: 0 0 10px;
}

.doc-html .muted {
  color: rgba(190, 214, 230, 0.7);
  font-size: 13px;
}

#bal .field,
#ref .field,
#profile .field {
  min-height: 50px;
  border-radius: 14px;
  background: rgba(6, 12, 20, 0.55);
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  font-size: 16px;
}

#ref textarea.field {
  min-height: 120px;
}

#s-auto.on {
  box-shadow: inset 0 0 0 1px rgba(120, 255, 168, 0.32);
}
#s-adblock.on {
  box-shadow: inset 0 0 0 1px rgba(90, 240, 230, 0.32);
}

.choice-col {
  display: grid;
  gap: 10px;
}

.choice-col .choice {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  min-height: 64px;
  padding: 12px 16px;
  gap: 12px;
}

.choice-col .choice b {
  width: auto;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.gift-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.gift-who {
  min-height: 56px;
  text-align: center;
  font-weight: 800;
}

.gift-row .choice.is-off {
  opacity: 0.42;
  filter: saturate(0.55);
}

.gift-row .gift-main {
  display: grid;
  gap: 8px;
  color: #e8fbff;
  border-color: rgba(var(--ice-rgb), 0.38);
  background:
    linear-gradient(180deg, rgba(38, 102, 132, 0.5), rgba(8, 22, 36, 0.84));
  padding: 14px 14px 12px;
}

.gift-who-in {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  background: rgba(6, 14, 22, 0.55);
  color: #e8fbff;
  text-align: center;
  font-weight: 750;
  font-size: 16px;
}

.gift-who-in:disabled {
  opacity: 0.45;
}

.gift-who-in::placeholder {
  color: rgba(200, 230, 245, 0.55);
}

.confirm-copy {
  text-align: center;
  padding: 4px 6px 12px;
}

.confirm-copy b {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f4fbff;
}

.confirm-copy em {
  display: inline-block;
  margin-inline-start: 0.45em;
  letter-spacing: 0.04em;
}

.confirm-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(220, 236, 248, 0.88);
}

.qr-hint {
  margin: 0 0 4px;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(230, 246, 255, 0.92);
}

.dev-foot {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(190, 214, 230, 0.8);
}

.dev-rename {
  border: 0;
  background: rgba(var(--ice-rgb), 0.14);
  color: #d7f7ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

#ops-list {
  display: grid;
  gap: 10px;
}

.op-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  background:
    linear-gradient(90deg, rgba(80, 180, 220, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(10, 18, 30, 0.88), rgba(6, 10, 18, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.1),
    0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.op-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: var(--ice);
}

.op-row.op-buy::before { background: #5cff88; }
.op-row.op-add::before { background: #b388ff; }
.op-row.op-chg::before { background: #e0b8ff; }
.op-row.op-topup::before { background: #7dffa8; }
.op-row.op-earn::before { background: #ffd56a; }
.op-row.op-out::before { background: #ffb86b; }
.op-row.op-wait::before { background: #ffe08a; }
.op-row.op-bad::before { background: #ff8a8a; }
.op-row.op-gift::before { background: #4ef0c8; }
.op-row.op-gift-on::before { background: #3ee8e0; }
.op-row.op-conn::before { background: var(--ice); }

.op-row.op-buy {
  border-color: rgba(92, 255, 136, 0.32);
  background:
    linear-gradient(90deg, rgba(30, 140, 70, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(8, 18, 12, 0.9), rgba(5, 12, 8, 0.95));
}

.op-row.op-add {
  border-color: rgba(179, 136, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(110, 50, 210, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(14, 10, 28, 0.9), rgba(8, 6, 18, 0.95));
}

.op-row.op-chg {
  border-color: rgba(224, 184, 255, 0.36);
  background:
    linear-gradient(90deg, rgba(150, 90, 200, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(16, 10, 24, 0.9), rgba(10, 6, 16, 0.95));
}

.op-row.op-conn {
  border-color: rgba(var(--ice-rgb), 0.36);
  background:
    linear-gradient(90deg, rgba(20, 110, 140, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.9), rgba(6, 12, 18, 0.95));
}

.op-row.op-topup {
  border-color: rgba(125, 255, 168, 0.3);
  background:
    linear-gradient(90deg, rgba(40, 140, 90, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(8, 18, 14, 0.9), rgba(5, 12, 10, 0.95));
}

.op-row.op-earn {
  border-color: rgba(255, 213, 106, 0.36);
  background:
    linear-gradient(90deg, rgba(160, 120, 20, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(18, 14, 6, 0.9), rgba(12, 10, 4, 0.95));
}

.op-row.op-out {
  border-color: rgba(255, 184, 107, 0.32);
  background:
    linear-gradient(90deg, rgba(160, 90, 30, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(16, 12, 8, 0.9), rgba(10, 8, 6, 0.95));
}

.op-row.op-wait {
  border-color: rgba(255, 224, 138, 0.32);
  background:
    linear-gradient(90deg, rgba(150, 110, 20, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(16, 14, 8, 0.9), rgba(10, 8, 6, 0.95));
}

.op-row.op-bad {
  border-color: rgba(255, 138, 138, 0.34);
  background:
    linear-gradient(90deg, rgba(160, 40, 50, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(18, 8, 10, 0.9), rgba(10, 6, 8, 0.95));
}

.op-row.op-gift {
  border-color: rgba(78, 240, 200, 0.36);
  background:
    linear-gradient(90deg, rgba(20, 140, 120, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(6, 18, 16, 0.9), rgba(4, 12, 12, 0.95));
}

.op-row.op-gift-on {
  border-color: rgba(62, 232, 224, 0.36);
  background:
    linear-gradient(90deg, rgba(20, 130, 140, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(6, 16, 18, 0.9), rgba(4, 12, 14, 0.95));
}

.op-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.22);
}

.op-ico svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-row.op-buy .op-ico {
  background: rgba(92, 255, 136, 0.14);
  border-color: rgba(92, 255, 136, 0.28);
}
.op-row.op-buy .op-ico svg { stroke: #5cff88; }

.op-row.op-add .op-ico {
  background: rgba(179, 136, 255, 0.16);
  border-color: rgba(179, 136, 255, 0.3);
}
.op-row.op-add .op-ico svg { stroke: #c9a8ff; }

.op-row.op-chg .op-ico {
  background: rgba(224, 184, 255, 0.16);
  border-color: rgba(224, 184, 255, 0.3);
}
.op-row.op-chg .op-ico svg { stroke: #e8c8ff; }

.op-row.op-conn .op-ico {
  background: rgba(var(--ice-rgb), 0.14);
  border-color: rgba(var(--ice-rgb), 0.3);
}
.op-row.op-conn .op-ico svg { stroke: var(--ice); }

.op-row.op-topup .op-ico {
  background: rgba(125, 255, 168, 0.14);
  border-color: rgba(125, 255, 168, 0.28);
}
.op-row.op-topup .op-ico svg { stroke: #7dffa8; }

.op-row.op-earn .op-ico {
  background: rgba(255, 213, 106, 0.16);
  border-color: rgba(255, 213, 106, 0.3);
}
.op-row.op-earn .op-ico svg { stroke: #ffd56a; }

.op-row.op-out .op-ico {
  background: rgba(255, 184, 107, 0.14);
  border-color: rgba(255, 184, 107, 0.28);
}
.op-row.op-out .op-ico svg { stroke: #ffb86b; }

.op-row.op-wait .op-ico {
  background: rgba(255, 224, 138, 0.14);
  border-color: rgba(255, 224, 138, 0.28);
}
.op-row.op-wait .op-ico svg { stroke: #ffe08a; }

.op-row.op-bad .op-ico {
  background: rgba(255, 138, 138, 0.14);
  border-color: rgba(255, 138, 138, 0.28);
}
.op-row.op-bad .op-ico svg { stroke: #ffb4b4; }

.op-row.op-gift .op-ico {
  background: rgba(78, 240, 200, 0.14);
  border-color: rgba(78, 240, 200, 0.3);
}
.op-row.op-gift .op-ico svg { stroke: #4ef0c8; }

.op-row.op-gift-on .op-ico {
  background: rgba(62, 232, 224, 0.14);
  border-color: rgba(62, 232, 224, 0.3);
}
.op-row.op-gift-on .op-ico svg { stroke: #3ee8e0; }

.op-meta .op-kind,
.tk-view-top .op-kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #7dffa8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(125, 255, 168, 0.12);
  border: 1px solid rgba(125, 255, 168, 0.22);
}

.op-row.op-buy .op-kind {
  color: #9dffb8;
  background: rgba(92, 255, 136, 0.14);
  border-color: rgba(92, 255, 136, 0.28);
}

.op-row.op-add .op-kind {
  color: #e4d0ff;
  background: rgba(179, 136, 255, 0.16);
  border-color: rgba(179, 136, 255, 0.3);
}

.op-row.op-chg .op-kind {
  color: #f0dcff;
  background: rgba(224, 184, 255, 0.16);
  border-color: rgba(224, 184, 255, 0.3);
}

.op-row.op-conn .op-kind {
  color: #b8fbff;
  background: rgba(var(--ice-rgb), 0.14);
  border-color: rgba(var(--ice-rgb), 0.28);
}

.op-row.op-out .op-kind {
  color: #ffd7a8;
  background: rgba(255, 184, 107, 0.14);
  border-color: rgba(255, 184, 107, 0.26);
}

.op-row.op-earn .op-kind {
  color: #ffe7a8;
  background: rgba(255, 213, 106, 0.16);
  border-color: rgba(255, 213, 106, 0.3);
}

.op-row.op-gift .op-kind {
  color: #b8fff0;
  background: rgba(78, 240, 200, 0.14);
  border-color: rgba(78, 240, 200, 0.28);
}

.op-row.op-gift-on .op-kind {
  color: #b8fbff;
  background: rgba(62, 232, 224, 0.14);
  border-color: rgba(62, 232, 224, 0.28);
}

.op-row.op-wait .op-kind {
  color: #ffe08a;
  background: rgba(255, 224, 138, 0.14);
  border-color: rgba(255, 224, 138, 0.26);
}

.op-row.op-bad .op-kind {
  color: #ffb4b4;
  background: rgba(255, 138, 138, 0.14);
  border-color: rgba(255, 138, 138, 0.26);
}

.op-meta .op-title {
  display: block;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.op-meta small {
  display: block;
  margin-top: 3px;
  color: rgba(210, 230, 242, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.op-meta .op-when {
  color: rgba(190, 214, 230, 0.62);
  font-weight: 600;
}

.op-meta .op-wait {
  color: #ffe08a;
}

.op-row em {
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  color: var(--ice);
  letter-spacing: -0.03em;
  flex: none;
  min-width: 76px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.22);
}

.op-row.op-buy em {
  color: #5cff88;
  background: rgba(92, 255, 136, 0.14);
  border-color: rgba(92, 255, 136, 0.28);
}

.op-row.op-add em {
  color: #d2b8ff;
  background: rgba(179, 136, 255, 0.16);
  border-color: rgba(179, 136, 255, 0.3);
}

.op-row.op-chg em {
  color: #e8c8ff;
  background: rgba(224, 184, 255, 0.16);
  border-color: rgba(224, 184, 255, 0.3);
}

.op-row.op-conn em {
  color: #b8fbff;
  background: rgba(var(--ice-rgb), 0.14);
  border-color: rgba(var(--ice-rgb), 0.28);
}

.op-row.op-topup em,
.op-row.op-earn em {
  color: #9cffc0;
  background: rgba(125, 255, 168, 0.14);
  border-color: rgba(125, 255, 168, 0.28);
}

.op-row.op-earn em {
  color: #ffe7a8;
  background: rgba(255, 213, 106, 0.16);
  border-color: rgba(255, 213, 106, 0.3);
}

.op-row.op-gift em {
  color: #4ef0c8;
  background: rgba(78, 240, 200, 0.14);
  border-color: rgba(78, 240, 200, 0.3);
}

.op-row.op-gift-on em {
  color: #3ee8e0;
  background: rgba(62, 232, 224, 0.14);
  border-color: rgba(62, 232, 224, 0.3);
}

.op-row.op-out em,
.op-row.op-bad em {
  color: #ffd0a8;
  background: rgba(255, 184, 107, 0.12);
  border-color: rgba(255, 184, 107, 0.24);
}

.op-row.op-bad em {
  color: #ffb4b4;
  background: rgba(255, 138, 138, 0.12);
  border-color: rgba(255, 138, 138, 0.24);
}

#sub .act b,
#set .act b,
#bal .block-title,
#ref .block-title {
  font-size: 17px;
}

#sub .act small,
#set .act small {
  font-size: 13px;
  margin-top: 7px;
}

#set .act.rock.set-a,
#sub .act.rock.set-a {
  border-color: rgba(90, 200, 220, 0.38);
  background: linear-gradient(180deg, rgba(28, 88, 108, 0.58), rgba(10, 24, 36, 0.72));
}
#set .act.rock.set-a .act-ico,
#sub .act.rock.set-a .act-ico {
  background: rgba(90, 200, 220, 0.16);
  border-color: rgba(90, 200, 220, 0.38);
}
#set .act.rock.set-a .act-ico svg,
#sub .act.rock.set-a .act-ico svg { stroke: #8eebff; }
#set .act.rock.set-a b,
#set .act.rock.set-a small,
#sub .act.rock.set-a b,
#sub .act.rock.set-a small { color: #d6f7ff; }
#set .act.rock.set-b,
#sub .act.rock.set-b {
  border-color: rgba(170, 140, 230, 0.38);
  background: linear-gradient(180deg, rgba(68, 42, 118, 0.56), rgba(16, 12, 36, 0.72));
}
#set .act.rock.set-b .act-ico,
#sub .act.rock.set-b .act-ico {
  background: rgba(170, 140, 230, 0.16);
  border-color: rgba(170, 140, 230, 0.38);
}
#set .act.rock.set-b .act-ico svg,
#sub .act.rock.set-b .act-ico svg { stroke: #d2b8ff; }
#set .act.rock.set-c,
#sub .act.rock.set-c {
  border-color: rgba(230, 185, 80, 0.38);
  background: linear-gradient(180deg, rgba(108, 78, 18, 0.54), rgba(28, 18, 8, 0.72));
}
#set .act.rock.set-c .act-ico,
#sub .act.rock.set-c .act-ico {
  background: rgba(230, 185, 80, 0.16);
  border-color: rgba(230, 185, 80, 0.38);
}
#set .act.rock.set-c .act-ico svg,
#sub .act.rock.set-c .act-ico svg { stroke: #ffd27a; }
#set .act.rock.set-d,
#sub .act.rock.set-d {
  border-color: rgba(90, 155, 230, 0.38);
  background: linear-gradient(180deg, rgba(24, 64, 118, 0.56), rgba(8, 20, 40, 0.72));
}
#set .act.rock.set-d .act-ico,
#sub .act.rock.set-d .act-ico {
  background: rgba(90, 155, 230, 0.16);
  border-color: rgba(90, 155, 230, 0.38);
}
#set .act.rock.set-d .act-ico svg,
#sub .act.rock.set-d .act-ico svg { stroke: #9ad0ff; }
#set .act.rock.set-e,
#sub .act.rock.set-e {
  border-color: rgba(230, 140, 70, 0.38);
  background: linear-gradient(180deg, rgba(118, 56, 16, 0.56), rgba(32, 16, 8, 0.72));
}
#set .act.rock.set-e .act-ico,
#sub .act.rock.set-e .act-ico {
  background: rgba(230, 140, 70, 0.16);
  border-color: rgba(230, 140, 70, 0.38);
}
#set .act.rock.set-e .act-ico svg,
#sub .act.rock.set-e .act-ico svg { stroke: #ffb086; }
#set .act.rock.set-f,
#sub .act.rock.set-f {
  border-color: rgba(220, 90, 90, 0.42);
  background: linear-gradient(180deg, rgba(118, 28, 34, 0.62), rgba(36, 10, 14, 0.76));
}
#set .act.rock.set-f .act-ico,
#sub .act.rock.set-f .act-ico {
  background: rgba(220, 90, 90, 0.18);
  border-color: rgba(220, 90, 90, 0.42);
}
#set .act.rock.set-f .act-ico svg,
#sub .act.rock.set-f .act-ico svg { stroke: #ffb4b4; }
#set .act.rock.set-f b,
#set .act.rock.set-f small,
#sub .act.rock.set-f b,
#sub .act.rock.set-f small { color: #ffd6d6; }

#sub #s-auto.off,
#sub .act.rock.set-auto.off {
  border-color: rgba(255, 92, 92, 0.5);
  background: linear-gradient(180deg, rgba(118, 24, 30, 0.64), rgba(28, 8, 10, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 140, 140, 0.22);
}
#sub #s-auto.off b,
#sub #s-auto.off small,
#sub .act.rock.set-auto.off b,
#sub .act.rock.set-auto.off small { color: #ffd0d0; }
#sub #s-auto.off .act-ico,
#sub .act.rock.set-auto.off .act-ico {
  background: rgba(255, 90, 90, 0.16);
  border-color: rgba(255, 120, 120, 0.4);
}
#sub #s-auto.off .act-ico svg,
#sub .act.rock.set-auto.off .act-ico svg { stroke: #ffb4b4; }
#sub #s-auto.on,
#sub .act.rock.set-auto.on {
  border-color: rgba(80, 220, 120, 0.55);
  background: linear-gradient(180deg, rgba(12, 92, 44, 0.74), rgba(6, 24, 14, 0.86));
  box-shadow: inset 0 0 0 1px rgba(120, 255, 168, 0.32);
}
#sub #s-auto.on b,
#sub #s-auto.on small,
#sub .act.rock.set-auto.on b,
#sub .act.rock.set-auto.on small { color: #d4ffe8; }
#sub #s-auto.on .act-ico,
#sub .act.rock.set-auto.on .act-ico {
  background: rgba(80, 220, 120, 0.2);
  border-color: rgba(80, 220, 120, 0.48);
}
#sub #s-auto.on .act-ico svg,
#sub .act.rock.set-auto.on .act-ico svg { stroke: #7dffa8; }

#sub #s-adblock.off,
#sub .act.rock.set-ad.off {
  border-color: rgba(255, 168, 184, 0.58);
  background: linear-gradient(180deg, rgba(168, 48, 64, 0.52), rgba(48, 14, 22, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 192, 0.28);
}
#sub #s-adblock.off b,
#sub #s-adblock.off small,
#sub .act.rock.set-ad.off b,
#sub .act.rock.set-ad.off small { color: #ffe0e6; }
#sub #s-adblock.off .act-ico,
#sub .act.rock.set-ad.off .act-ico {
  background: rgba(255, 140, 160, 0.22);
  border-color: rgba(255, 168, 184, 0.5);
}
#sub #s-adblock.off .act-ico svg,
#sub .act.rock.set-ad.off .act-ico svg { stroke: #ffb0bc; }
#sub #s-adblock.on,
#sub .act.rock.set-ad.on {
  border-color: rgba(48, 220, 214, 0.58);
  background: linear-gradient(180deg, rgba(8, 86, 90, 0.74), rgba(6, 24, 32, 0.86));
  box-shadow: inset 0 0 0 1px rgba(90, 240, 230, 0.32);
}
#sub #s-adblock.on b,
#sub #s-adblock.on small,
#sub .act.rock.set-ad.on b,
#sub .act.rock.set-ad.on small { color: #c8fff8; }
#sub #s-adblock.on .act-ico,
#sub .act.rock.set-ad.on .act-ico {
  background: rgba(48, 220, 214, 0.2);
  border-color: rgba(70, 230, 220, 0.48);
}
#sub #s-adblock.on .act-ico svg,
#sub .act.rock.set-ad.on .act-ico svg { stroke: #5ef0e4; }

#set .act.rock.set-lang {
  border-color: rgba(232, 110, 186, 0.48);
  background: linear-gradient(180deg, rgba(108, 28, 78, 0.62), rgba(28, 8, 24, 0.84));
}
#set .act.rock.set-lang .act-ico {
  background: rgba(232, 110, 186, 0.2);
  border-color: rgba(232, 110, 186, 0.48);
}
#set .act.rock.set-lang .act-ico svg { stroke: #ffb4e4; }
#set .act.rock.set-lang b,
#set .act.rock.set-lang small { color: #ffe0f4; }
#set .act.rock.set-notify {
  border-color: rgba(110, 231, 255, 0.38);
  background: linear-gradient(180deg, rgba(18, 78, 98, 0.58), rgba(8, 22, 34, 0.72));
}
#set .act.rock.set-notify .act-ico {
  background: rgba(110, 231, 255, 0.16);
  border-color: rgba(110, 231, 255, 0.38);
}
#set .act.rock.set-notify .act-ico svg { stroke: #8af6ff; }
#set .act.rock.set-notify b,
#set .act.rock.set-notify small { color: #d6f7ff; }

html[dir="rtl"] .hi,
html[dir="rtl"] .tab-lab,
html[dir="rtl"] .act,
html[dir="rtl"] .srv-meta,
html[dir="rtl"] .login-card {
  text-align: right;
}
html[dir="rtl"] .act {
  flex-direction: row-reverse;
}

#notes .back {
  width: 100%;
}

#notes #notes-push {
  width: 100%;
  margin-top: 0;
  margin-bottom: 14px;
}

#notes #notes-push[hidden] {
  display: none !important;
}

.notes-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  width: 100%;
}

.notes-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  background: linear-gradient(180deg, rgba(38, 102, 132, 0.58), rgba(8, 22, 36, 0.86));
  color: #e8fbff;
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
    0 8px 20px rgba(0, 0, 0, 0.24);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.notes-tab.on {
  background: linear-gradient(180deg, rgba(48, 122, 154, 0.78), rgba(8, 22, 36, 0.92));
  color: #e8fbff;
  border-color: rgba(var(--ice-rgb), 0.46);
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.22),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.notes-tab-n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: rgba(var(--ice-rgb), 0.18);
  color: #bff8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.notes-tab.on .notes-tab-n {
  background: rgba(var(--ice-rgb), 0.28);
  color: #e8ffff;
}

.ops-tabs {
  margin: 10px 0 14px;
}

.ops-tabs .notes-tab {
  font-size: 12px;
  min-height: 40px;
  padding: 7px 8px;
  line-height: 1.2;
  text-align: center;
}

#ops-tabs [data-ops-tab="earn"] { color: #ffe7a8; border-color: rgba(255, 213, 106, 0.32); }
#ops-tabs [data-ops-tab="earn"].on {
  background: linear-gradient(180deg, rgba(140, 100, 20, 0.62), rgba(28, 20, 6, 0.9));
  color: #fff6d0;
  border-color: rgba(255, 213, 106, 0.46);
}
#ops-tabs [data-ops-tab="topup"] { color: #b8ffd0; border-color: rgba(125, 255, 168, 0.3); }
#ops-tabs [data-ops-tab="topup"].on {
  background: linear-gradient(180deg, rgba(28, 110, 70, 0.62), rgba(8, 24, 16, 0.9));
  color: #e8fff0;
  border-color: rgba(125, 255, 168, 0.46);
}
#ops-tabs [data-ops-tab="out"] { color: #ffd7a8; border-color: rgba(255, 184, 107, 0.32); }
#ops-tabs [data-ops-tab="out"].on {
  background: linear-gradient(180deg, rgba(140, 80, 24, 0.62), rgba(28, 16, 6, 0.9));
  color: #fff0d8;
  border-color: rgba(255, 184, 107, 0.46);
}
#ops-tabs [data-ops-tab="buy"] { color: #9dffb8; border-color: rgba(92, 255, 136, 0.3); }
#ops-tabs [data-ops-tab="buy"].on {
  background: linear-gradient(180deg, rgba(24, 120, 60, 0.62), rgba(8, 24, 14, 0.9));
  color: #e8ffe8;
  border-color: rgba(92, 255, 136, 0.46);
}
#ops-tabs [data-ops-tab="gift"] { color: #b8fff0; border-color: rgba(78, 240, 200, 0.32); }
#ops-tabs [data-ops-tab="gift"].on {
  background: linear-gradient(180deg, rgba(16, 120, 100, 0.62), rgba(6, 24, 20, 0.9));
  color: #e8fff8;
  border-color: rgba(78, 240, 200, 0.46);
}
#ops-tabs [data-ops-tab="gift_on"] { color: #b8fbff; border-color: rgba(62, 232, 224, 0.32); }
#ops-tabs [data-ops-tab="gift_on"].on {
  background: linear-gradient(180deg, rgba(16, 110, 120, 0.62), rgba(6, 22, 24, 0.9));
  color: #e8ffff;
  border-color: rgba(62, 232, 224, 0.46);
}
#ops-tabs [data-ops-tab="add"] { color: #e4d0ff; border-color: rgba(179, 136, 255, 0.34); }
#ops-tabs [data-ops-tab="add"].on {
  background: linear-gradient(180deg, rgba(90, 40, 160, 0.64), rgba(18, 8, 32, 0.9));
  color: #f4e8ff;
  border-color: rgba(179, 136, 255, 0.5);
}
#ops-tabs [data-ops-tab="chg"] { color: #f0dcff; border-color: rgba(224, 184, 255, 0.34); }
#ops-tabs [data-ops-tab="chg"].on {
  background: linear-gradient(180deg, rgba(120, 70, 170, 0.6), rgba(20, 10, 28, 0.9));
  color: #faf0ff;
  border-color: rgba(224, 184, 255, 0.5);
}
#ops-tabs [data-ops-tab="conn"] { color: #b8fbff; border-color: rgba(var(--ice-rgb), 0.34); }
#ops-tabs [data-ops-tab="conn"].on {
  background: linear-gradient(180deg, rgba(16, 90, 110, 0.64), rgba(6, 18, 24, 0.9));
  color: #e8ffff;
  border-color: rgba(var(--ice-rgb), 0.5);
}

#notes-read-all {
  min-height: 48px;
  padding: 12px 14px;
  flex-direction: row;
  border-radius: 18px;
  gap: 0;
}

.note-card {
  text-align: left;
  margin-bottom: 10px;
}

.note-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.note-body {
  margin: 8px 0 0;
  color: rgba(210, 228, 242, 0.86);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.tabs button {
  white-space: nowrap;
  line-height: 1.15;
  font-size: 9px;
}

@media (max-width: 959px) {
  .tabs .tab-lab {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.dev-on .tabs {
    grid-template-columns: repeat(6, 1fr);
  }
}

#sub .hi,
#bal .hi,
#ref .hi,
#set .hi,
#srv .hi,
#notes .hi,
#d-promo .hi,
#d-part .hi,
#d-news .hi,
#d-users .hi,
#d-stats .hi,
#d-price .hi,
#profile .hi,
#help .hi,
#help-guide .hi,
#help-fix .hi,
#support .hi,
#docs .hi,
#studio .hi {
  font-size: clamp(22px, 5.4vw, 30px);
}

@media (min-width: 960px) and (min-height: 640px) {
  html,
  body.app {
    height: 100%;
    overflow: hidden;
  }
  html {
    background-image: url("/img/home-bg-pc.jpg?v=140");
    background-position: center top;
  }
  body {
    background: transparent;
  }
  body.app::before {
    background-image: url("/img/home-bg-pc.jpg?v=140");
    background-position: center top;
  }
  html[data-bg],
  html[data-bg] body.app::before {
    background-image: var(--bg-photo) !important;
    background-position: center top;
  }
  body.app::after {
    background: linear-gradient(90deg, rgba(8, 12, 18, 0.12) 0, rgba(8, 16, 24, 0.1) 300px, rgba(8, 16, 24, 0.16) 420px, rgba(8, 16, 24, 0.22) 100%);
  }
  .shell {
    width: auto;
    max-width: none;
    margin: 0 28px 0 328px;
    height: 100dvh;
    max-height: 100dvh;
    padding: 20px 24px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
  }
  .head {
    display: none;
  }
  .tabs {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 16px 22px;
    border-radius: 0;
    background: rgba(8, 12, 18, 0.42);
    border: 0;
    border-right: 1px solid rgba(var(--ice-rgb), 0.14);
    backdrop-filter: blur(18px);
  }
  body.app.day .tabs {
    background: rgba(8, 12, 18, 0.42);
  }
  .tab-pill {
    display: none;
  }
  .tab-m {
    display: inline;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
  }
  .tab-d {
    display: none;
  }
  .side-user {
    display: none !important;
  }
  .tabs button.side-user-main {
    flex: 1;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #eef8ff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    gap: 0;
    flex-direction: row;
    align-items: flex-start;
  }
  .tabs button.side-bell {
    flex: none;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #e8fbff;
    display: grid;
    place-items: center;
    cursor: pointer;
    gap: 0;
    flex-direction: row;
    font-size: 0;
  }
  .tabs button.side-bell:hover {
    color: #fff;
    background: transparent;
  }
  .side-user-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
  }
  .side-user-text b {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #f2f4f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .side-user-text small {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  .tabs button.side-bell svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
  }
  .side-user-badge {
    flex: none;
    min-width: 34px;
    height: 26px;
    padding: 0 7px;
    border-radius: 8px;
    background: #5ee7f0;
    color: #041018;
    font-weight: 800;
    font-size: 13px;
    display: grid;
    place-items: center;
  }
  .tabs button[data-tab] {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px 10px 10px;
    gap: 14px;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: rgba(236, 250, 255, 0.78);
    text-align: left;
    white-space: nowrap;
    line-height: 1.15;
    border-radius: 18px;
    background: transparent;
    border: 1px solid transparent;
  }
  .tabs button[data-tab]:hover {
    color: #f4fbff;
    background: rgba(var(--ice-rgb), 0.08);
    border-color: rgba(var(--ice-rgb), 0.16);
  }
  .tabs button[data-tab] .tab-lab {
    order: 2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tabs button[data-tab="ref"] {
    white-space: normal;
    min-height: 72px;
    align-items: center;
  }
  .tabs button[data-tab="ref"] .tab-lab {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    display: block;
    line-height: 1.15;
  }
  .tabs button[data-tab] svg,
  .tabs button[data-tab] img.dev-logo {
    order: 1;
    width: 48px;
    height: 48px;
    padding: 10px;
    flex: none;
    opacity: 1;
    border-radius: 16px;
    background: rgba(var(--ice-rgb), 0.12);
    border: 1px solid rgba(var(--ice-rgb), 0.26);
    box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14);
    stroke-width: 1.7;
  }
  .tabs button[data-tab] img.dev-logo {
    padding: 0;
    object-fit: cover;
  }
  .tabs button[data-tab].on {
    color: #f4fbff;
    background: linear-gradient(180deg, rgba(36, 108, 138, 0.5), rgba(10, 28, 42, 0.78));
    border-color: rgba(var(--ice-rgb), 0.32);
    box-shadow:
      inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
      0 10px 24px rgba(0, 0, 0, 0.22);
  }
  .tabs button[data-tab].on svg,
  .tabs button[data-tab].on img.dev-logo {
    opacity: 1;
    color: var(--ice);
    background: rgba(var(--ice-rgb), 0.2);
    border-color: rgba(var(--ice-rgb), 0.46);
    box-shadow: 0 0 18px rgba(var(--ice-rgb), 0.28);
  }
  .tabs button[data-tab="notes"] {
    display: flex;
  }
  .tabs button[data-tab="notes"].has-news::after {
    top: 12px;
    left: 40px;
    right: auto;
  }
  .tabs button[data-tab="set"] {
    margin-top: auto;
  }
  body.dev-on .tabs button[data-tab="set"] {
    display: flex !important;
    order: 20;
    margin-top: auto;
  }
  body.dev-on #dev-toggle-side .tab-user-lab {
    display: inline;
  }
  body.dev-on #dev-toggle-side .tab-dev-lab {
    display: none;
  }
  .tabs button[data-tab="dev"] {
    display: none;
  }
  body.can-dev .tabs button[data-tab="dev"] {
    display: flex;
    order: -1;
    margin-bottom: 8px;
  }
  body.dev-on .tabs button[data-tab="dev"] {
    color: #9ef6ff;
    background: rgba(var(--ice-rgb), 0.12);
    border-color: rgba(var(--ice-rgb), 0.26);
  }
  body.dev-on .tabs button.dev-tab {
    display: flex;
  }
  body.dev-on .tabs button.dev-tab .tab-m {
    display: inline;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
  }
  body.dev-on .tabs button.dev-tab .tab-d {
    display: none;
  }
  body.dev-on .tabs button[data-tab="d-promo"] {
    margin-top: 4px;
  }
  html[dir="rtl"] .shell {
    margin: 0 328px 0 28px;
  }
  html[dir="rtl"] .tabs {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
  html[dir="rtl"] .tabs button[data-tab],
  html[dir="rtl"] .side-user-text {
    text-align: right;
  }
  .pc-hero {
    display: block;
    margin: 0 0 6px;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.38);
    text-shadow: none;
  }
  #home.on > .hi,
  #sub .hi,
  #set .hi,
  #srv .hi,
  #bal .hi,
  #ref .hi,
  #notes .hi,
  #d-promo .hi,
  #d-part .hi,
  #d-news .hi,
  #d-users .hi,
  #d-stats .hi,
  #d-price .hi,
  #profile .hi,
  #help .hi,
  #help-guide .hi,
  #help-fix .hi,
  #support .hi,
  #docs .hi,
  #studio .hi {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  #home.on > .hi {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #fff;
    -webkit-text-stroke: 0;
  }
  #sub .hi,
  #set .hi,
  #srv .hi,
  #bal .hi,
  #ref .hi,
  #notes .hi,
  #d-promo .hi,
  #d-part .hi,
  #d-news .hi,
  #d-users .hi,
  #d-stats .hi,
  #d-price .hi,
  #profile .hi,
  #help .hi,
  #help-guide .hi,
  #help-fix .hi,
  #support .hi,
  #docs .hi,
  #studio .hi {
    font-size: clamp(36px, 4.4vw, 64px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 0.92;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.38);
    text-shadow: none;
  }
  .page.on {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    height: auto;
    padding-bottom: 28px;
  }
  .page.on > * {
    flex: 0 0 auto;
    min-height: auto;
    width: 100%;
  }
  .page.on .card.fold.open .fold-body {
    display: block;
    height: auto;
    grid-template-rows: none;
  }
  .page.on .card.fold.open .fold-inner {
    overflow: visible;
    min-height: auto;
    height: auto;
  }
  .page.on.panel {
    overflow: auto;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
  }
  .page.on .card.fold:not(.open) {
    min-height: 0 !important;
    height: auto;
  }
  #home .fold-head,
  #sub .fold-head,
  #bal .fold-head,
  #ref .fold-head,
  #srv .fold-head {
    min-height: 84px;
    padding: 20px 24px;
  }
  #home.on > .hi {
    grid-column: 1 / -1;
  }
  #home .tiles {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    height: auto;
    min-height: 0;
  }
  #home #add-home {
    display: none !important;
  }
  #home #go-tg {
    display: flex;
    width: 100%;
    margin: 0;
    min-height: 88px;
    padding: 18px 20px;
  }
  #home #go-tg b {
    font-size: 18px;
  }
  #home #home-offer,
  #home #home-plans {
    margin: 0;
    min-height: 0;
    height: auto;
    width: 100%;
  }
  #home #home-offer.fold {
    display: flex;
    flex-direction: column;
  }
  #home #home-offer.fold:not(.open) {
    justify-content: center;
  }
  #home #home-offer.fold.open .fold-body {
    flex: none;
    min-height: auto;
    height: auto;
  }
  #home .buy-card.open .plans-body {
    grid-template-rows: max-content;
  }
  #home .buy-card.open .plans-inner {
    overflow: visible;
  }
  #home .buy-row {
    min-height: 88px;
    font-size: 22px;
    padding: 22px 26px;
  }
  #home .tile.rock {
    min-height: 180px;
    height: auto;
    padding: 24px 18px 22px;
  }
  #home .cta.happ,
  #sub .cta.happ,
  #bal .cta.happ,
  #ref .cta.happ,
  #srv .cta.happ,
  #d-promo .cta.happ,
  #d-news .cta.happ,
  #d-users .cta.happ,
  #d-price .cta.happ,
  #help-guide .choice,
  #help-fix .choice {
    min-height: 64px;
    font-size: 18px;
    border-radius: 18px;
  }
  #help-guide .choice b,
  #help-fix .choice b {
    font-size: 18px;
  }
  #sub.on,
  #set.on,
  #srv.on,
  #bal.on,
  #ref.on,
  #notes.on {
    height: auto;
    margin: 0;
    min-height: 0;
  }
  #sub .hi,
  #set .hi,
  #srv .hi,
  #bal .hi,
  #ref .hi,
  #notes .hi,
  #d-promo .hi,
  #d-part .hi,
  #d-news .hi,
  #d-users .hi,
  #d-stats .hi,
  #d-price .hi {
    width: 100%;
  }
  #sub .offer,
  #srv .offer,
  #d-promo .offer,
  #d-part .offer,
  #d-news .offer,
  #d-users .offer,
  #d-stats .offer,
  #d-price .offer {
    margin: 0;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    width: 100%;
  }
  #sub .sub-actions,
  #set .sub-actions,
  #help .sub-actions,
  #help .help-actions {
    margin: 0;
    gap: 14px;
    height: auto;
    width: 100%;
    grid-template-columns: 1fr;
  }
  #sub .sub-auto {
    height: auto;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  #sub .sub-auto .act.rock {
    min-height: 88px;
    height: auto;
    margin: 0;
    width: 100%;
  }
  #sub #sub-clear {
    grid-template-columns: 1fr;
    height: auto;
  }
  #sub #sub-clear .act.rock {
    height: auto;
    min-height: 92px;
    width: 100%;
  }
  #sub #my-devs {
    min-height: 0;
    overflow: auto;
    width: 100%;
  }
  #srv-list {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible;
    align-content: start;
    gap: 12px;
  }
  #sub .act.rock,
  #set .act.rock,
  #help .act.rock,
  #docs .act.rock,
  #help-guide .help-os {
    min-height: 88px;
    height: auto;
    padding: 18px 20px;
    margin: 0;
  }
  #sub .act b,
  #set .act b,
  #help .act b,
  #docs .act b,
  #help-guide .help-os b {
    font-size: 18px;
  }
  #sub .act small,
  #set .act small,
  #help .act small,
  #docs .act small {
    font-size: 13px;
    margin-top: 6px;
  }
  #help-guide .os-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  #help-guide .os-logo svg {
    width: 26px;
    height: 26px;
  }
  #sub .act-ico,
  #set .act-ico,
  #help .act-ico,
  #docs .act-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  #sub .act-ico svg,
  #set .act-ico svg,
  #help .act-ico svg,
  #docs .act-ico svg {
    width: 26px;
    height: 26px;
  }
  #bal.on,
  #ref.on {
    overflow: auto;
    align-content: start;
  }
  #bal #ops-card,
  #ref .people,
  #ref .partner-hero {
    grid-column: 1 / -1;
  }
  .gift-row {
    grid-template-columns: 1fr;
  }
  #notes .back {
    display: none;
  }
  .srv-row {
    min-height: 88px;
    padding: 18px 20px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 16px;
  }
  .srv-flag {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
  .srv-flag.nl svg {
    display: none;
  }
  .srv-meta b {
    font-size: 20px;
  }
  .srv-meta small {
    font-size: 14px;
  }
  .dev-row {
    min-height: 68px;
    padding: 14px;
  }
  #ops-list {
    gap: 12px;
  }
  .op-row {
    min-height: 84px;
    padding: 16px 16px 16px 18px;
    gap: 16px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    border-radius: 20px;
  }
  .op-ico {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .op-ico svg {
    width: 22px;
    height: 22px;
  }
  .op-meta .op-title {
    font-size: 18px;
  }
  .op-row em {
    font-size: 18px;
    min-width: 96px;
    padding: 10px 12px;
  }
  .switch-card {
    min-height: 80px;
  }
  #profile .profile-facts .fact > span:not(.fact-end) {
    font-size: 20px;
  }
  #profile .profile-facts .fact > b,
  #profile .profile-facts .fact-end b {
    font-size: 17px;
  }
  #profile .profile-facts .fact span svg {
    width: 28px;
    height: 28px;
  }
  #home .tile-sum b {
    font-size: 40px;
  }
  #home .tile small {
    font-size: 16px;
  }
  #home .tile small svg {
    width: 36px;
    height: 36px;
  }
  .login-logo img {
    width: 96px;
    height: 96px;
  }
}

.login-card {
  position: relative;
  text-align: center;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

.login-logo img {
  width: min(168px, 48vw);
  height: min(168px, 48vw);
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.login-card .login-back {
  align-self: flex-start;
  margin: 0 0 12px;
}

.login-lang {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  background: linear-gradient(180deg, rgba(38, 102, 132, 0.52), rgba(8, 22, 36, 0.86));
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.16);
  color: var(--ice);
  display: grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.login-lang svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[dir="rtl"] .login-lang {
  right: auto;
  left: 12px;
}

.otp-code-box {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 372px);
  margin: 4px auto 18px;
  direction: ltr;
}

.otp-code-cell {
  width: 100%;
  aspect-ratio: 1;
  min-height: 54px;
  padding: 0;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  border-radius: 12px;
  outline: none;
  background: linear-gradient(180deg, rgba(21, 55, 74, 0.82), rgba(7, 18, 30, 0.92));
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.1);
  color: #f5fcff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  caret-color: transparent;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.otp-code-cell:focus {
  border-color: rgba(var(--ice-rgb), 0.96);
  background: linear-gradient(180deg, rgba(33, 93, 117, 0.94), rgba(10, 33, 48, 0.98));
  box-shadow: 0 0 0 3px rgba(var(--ice-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.otp-code-cell.is-filled {
  border-color: rgba(var(--ice-rgb), 0.64);
}

.bind-tg-actions {
  display: grid;
  gap: 8px;
}

.sheet-card .bind-tg-actions > .cta.happ {
  width: 100%;
  margin: 0;
}

.otp-sent {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  background:
    linear-gradient(180deg, rgba(28, 88, 108, 0.5), rgba(8, 22, 36, 0.82)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.14), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.16);
  text-align: center;
}

.otp-sent-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--ice-rgb), 0.14);
  border: 1px solid rgba(var(--ice-rgb), 0.32);
}

.otp-sent-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.otp-sent-lab {
  margin: 4px 0 0;
  color: rgba(220, 238, 248, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.otp-sent b {
  color: var(--ice);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: break-all;
  line-height: 1.3;
}

.otp-sent small {
  color: rgba(200, 224, 236, 0.7);
  font-size: 13px;
}

#otp-back {
  width: 100%;
  margin: 10px 0 0;
  min-height: 48px;
}

.otp-err,
.name-err {
  margin: 0 0 10px;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.name-err {
  margin: -2px 0 12px;
}

.gate .login-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(420px, 100%);
  max-height: min(92dvh, 740px);
  overflow: auto;
}

.phone-row {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.phone-row .field {
  flex: 1;
  margin: 0;
  min-width: 0;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dial-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.28);
  background: rgba(8, 22, 34, 0.72);
  color: #e8fbff;
  font-weight: 800;
  cursor: pointer;
}

.dial-list {
  display: grid;
  gap: 6px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 2px;
}

.dial-opt {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  border-radius: 14px;
  background: rgba(8, 18, 28, 0.5);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dial-opt.on {
  border-color: rgba(var(--ice-rgb), 0.55);
  background: rgba(18, 70, 90, 0.55);
}

.dial-opt b {
  font-size: 14px;
}

.dial-opt em {
  font-style: normal;
  color: #9ef6ff;
  font-weight: 800;
}

.help-card .help-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  text-align: left;
}

.help-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.help-head p {
  margin: 0;
  color: rgba(210, 228, 242, 0.75);
  font-size: 13px;
  line-height: 1.4;
}

.help-head .act-ico {
  background: rgba(var(--ice-rgb), 0.18);
  border: 1px solid rgba(var(--ice-rgb), 0.4);
}

.help-card.alt .help-head .act-ico {
  background: rgba(255, 196, 80, 0.18);
  border-color: rgba(255, 196, 80, 0.4);
}

.help-card.alt .help-head .act-ico svg {
  stroke: #ffd27a;
}

.help-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(6, 16, 28, 0.45);
  border: 1px solid rgba(140, 210, 255, 0.12);
  text-align: left;
}

.help-steps i {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(180deg, #7af7ff, #18c8e6);
  color: #041018;
}

.help-card.alt .help-steps i {
  background: linear-gradient(180deg, #ffe08a, #ffb14a);
}

.help-steps span {
  padding-top: 3px;
  font-size: 14px;
  line-height: 1.4;
}

.srv-protos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.srv-p {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(var(--ice-rgb), 0.12);
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  color: #c8f4ff;
}

#help .cta.happ {
  margin-top: 16px;
}

.help-os {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--ice-rgb), 0.32);
  background:
    linear-gradient(180deg, rgba(38, 102, 132, 0.5), rgba(8, 22, 36, 0.82)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.12), transparent 48%);
  color: #e8fbff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(var(--ice-rgb), 0.14);
}

.help-os b {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
}

.os-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #e8fbff;
  background: rgba(8, 18, 28, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.os-logo svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-logo svg.fill,
.os-logo svg .fill,
#help-guide .guide-step > .act-ico svg.fill,
#help-guide .guide-step > .act-ico svg .fill {
  fill: currentColor;
  stroke: none;
}

.os-logo.ios,
.lang-opt .os-logo.ios {
  background: #f3ead6;
  color: #3b3226;
  box-shadow: inset 0 0 0 1px rgba(90, 70, 40, 0.18);
}

.os-logo.android,
.lang-opt .os-logo.android,
.os-logo.tv,
.lang-opt .os-logo.tv {
  background: #1c7a3d;
  color: #d7ffe4;
  box-shadow: inset 0 0 0 1px rgba(180, 255, 200, 0.28);
}

.os-logo.win,
.lang-opt .os-logo.win {
  background: #0b63c6;
  color: #e8f4ff;
  box-shadow: inset 0 0 0 1px rgba(160, 210, 255, 0.35);
}

.os-logo.mac,
.lang-opt .os-logo.mac {
  background: #3a3a42;
  color: #f2f2f6;
  box-shadow: inset 0 0 0 1px rgba(220, 220, 230, 0.28);
}

.os-logo.appletv,
.lang-opt .os-logo.appletv {
  background: #141416;
  color: #f3ead6;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 214, 0.28);
}

.help-os-chev {
  width: 20px;
  height: 20px;
  flex: none;
  margin-left: auto;
  fill: none;
  stroke: rgba(var(--ice-rgb), 0.82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

#help .act.rock {
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  text-align: left;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 14px 16px;
}

#help-guide .choice,
#help-fix .choice {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 16px;
  gap: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

#help .act b {
  font-size: 16px;
}

#help-guide .choice b,
#help-fix .choice b {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

#help .act small {
  font-size: 13px;
  margin-top: 7px;
}

#help .act.rock.set-a {
  border-color: rgba(90, 200, 220, 0.38);
  background: linear-gradient(180deg, rgba(28, 88, 108, 0.58), rgba(10, 24, 36, 0.72));
}

#help .act.rock.set-a .act-ico {
  background: rgba(90, 200, 220, 0.16);
  border-color: rgba(90, 200, 220, 0.38);
}

#help .act.rock.set-b {
  border-color: rgba(170, 140, 230, 0.38);
  background: linear-gradient(180deg, rgba(68, 42, 118, 0.56), rgba(16, 12, 36, 0.72));
}

#help .act.rock.set-b .act-ico {
  background: rgba(170, 140, 230, 0.16);
  border-color: rgba(170, 140, 230, 0.38);
}

#help .act.rock.set-b .act-ico svg {
  stroke: #d2b8ff;
}

#help .act.rock.set-c {
  border-color: rgba(230, 185, 80, 0.38);
  background: linear-gradient(180deg, rgba(108, 78, 18, 0.54), rgba(28, 18, 8, 0.72));
}

#help .act.rock.set-c .act-ico {
  background: rgba(230, 185, 80, 0.16);
  border-color: rgba(230, 185, 80, 0.38);
}

#help .act.rock.set-c .act-ico svg {
  stroke: #ffd27a;
}

#help .act.rock.set-d {
  border-color: rgba(255, 92, 92, 0.5);
  background: linear-gradient(180deg, rgba(128, 28, 32, 0.62), rgba(36, 8, 12, 0.78));
}

#help .act.rock.set-d .act-ico {
  background: rgba(255, 90, 90, 0.18);
  border-color: rgba(255, 110, 110, 0.45);
}

#help .act.rock.set-d .act-ico svg {
  stroke: #ffb4b4;
}

#help-guide.os-ios .help-os,
#help-guide.os-ios .guide-step,
#help-guide.os-ios .choice {
  border-color: rgba(236, 220, 190, 0.46);
  background: linear-gradient(180deg, rgba(92, 78, 58, 0.5), rgba(22, 16, 12, 0.82));
  color: #f6efe2;
}
#help-guide.os-ios .help-os-chev { stroke: #f3ead6; }
#help-guide.os-ios .act-ico {
  background: #f3ead6;
  border-color: rgba(243, 234, 214, 0.7);
  color: #3b3226;
}

#help-guide.os-android .help-os,
#help-guide.os-android .guide-step,
#help-guide.os-android .choice,
#help-guide.os-tv .help-os,
#help-guide.os-tv .guide-step,
#help-guide.os-tv .choice {
  border-color: rgba(80, 210, 120, 0.42);
  background: linear-gradient(180deg, rgba(18, 88, 42, 0.58), rgba(8, 22, 14, 0.82));
  color: #e6ffee;
}
#help-guide.os-android .help-os-chev,
#help-guide.os-tv .help-os-chev { stroke: #b8f5c8; }
#help-guide.os-android .act-ico,
#help-guide.os-tv .act-ico {
  background: #1c7a3d;
  border-color: rgba(180, 255, 200, 0.35);
  color: #d7ffe4;
}

#help-guide.os-win .help-os,
#help-guide.os-win .guide-step,
#help-guide.os-win .choice {
  border-color: rgba(80, 170, 255, 0.46);
  background: linear-gradient(180deg, rgba(16, 64, 128, 0.58), rgba(8, 16, 36, 0.82));
  color: #e6f4ff;
}
#help-guide.os-win .help-os-chev { stroke: #9ad0ff; }
#help-guide.os-win .act-ico {
  background: #0b63c6;
  border-color: rgba(160, 210, 255, 0.4);
  color: #e8f4ff;
}

#help-guide.os-mac .help-os,
#help-guide.os-mac .guide-step,
#help-guide.os-mac .choice {
  border-color: rgba(200, 200, 210, 0.38);
  background: linear-gradient(180deg, rgba(58, 58, 68, 0.58), rgba(16, 16, 20, 0.84));
  color: #f0f0f4;
}
#help-guide.os-mac .help-os-chev { stroke: #d8d8e0; }
#help-guide.os-mac .act-ico {
  background: #3a3a42;
  border-color: rgba(220, 220, 230, 0.32);
  color: #f2f2f6;
}

#help-guide.os-appletv .help-os,
#help-guide.os-appletv .guide-step,
#help-guide.os-appletv .choice {
  border-color: rgba(243, 234, 214, 0.38);
  background: linear-gradient(180deg, rgba(32, 28, 24, 0.7), rgba(10, 10, 12, 0.88));
  color: #f6efe2;
}
#help-guide.os-appletv .help-os-chev { stroke: #f3ead6; }
#help-guide.os-appletv .act-ico {
  background: #141416;
  border-color: rgba(243, 234, 214, 0.35);
  color: #f3ead6;
}

#help-guide .guide-step > .act-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#help-guide .guide-step > .act-ico svg.fill {
  fill: currentColor;
  stroke: none;
}

#help-fix .guide-step {
  border-color: rgba(255, 96, 96, 0.4);
  background: linear-gradient(180deg, rgba(110, 24, 28, 0.5), rgba(28, 8, 10, 0.8));
}
#help-fix .guide-step p {
  margin: 0 0 12px;
  font-size: 15px;
}
#help-fix .guide-step > .act-ico {
  background: rgba(255, 90, 90, 0.2);
  border: 1px solid rgba(255, 140, 140, 0.4);
  color: #ffd0d0;
  font-weight: 800;
  font-size: 15px;
}
#help-fix .choice {
  border-color: rgba(255, 120, 120, 0.4);
  background: linear-gradient(180deg, rgba(128, 32, 36, 0.5), rgba(28, 8, 10, 0.72));
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin: 0 0 12px;
}

.guide-step > div {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.guide-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.guide-step p {
  margin: 0 0 12px;
  color: rgba(210, 228, 242, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.guide-step > .act-ico {
  margin-top: 2px;
}

.guide-stores {
  margin-top: 4px;
}

.tv-code-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

#help-guide #tv-code {
  margin: 0;
  min-height: 58px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 18px;
  font-weight: 800;
}

#set .act.rock.set-studio {
  border-color: rgba(168, 120, 230, 0.42);
  background: linear-gradient(180deg, rgba(72, 36, 108, 0.58), rgba(18, 10, 32, 0.74));
}
#set .act.rock.set-studio .act-ico {
  background: rgba(168, 120, 230, 0.18);
  border-color: rgba(168, 120, 230, 0.42);
  overflow: hidden;
  padding: 0;
}
#set .act.rock.set-studio .act-ico img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.studio-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  margin: 0 0 16px;
  padding: 22px 16px 18px;
}
.studio-logo {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.studio-logo:hover img,
.studio-logo:focus-visible img {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(197, 232, 242, 0.55);
}
.studio-hero img,
.studio-logo img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  display: block;
}
.studio-hero .muted {
  margin: 0;
  color: #c5e8f2;
}
.studio-apps {
  gap: 12px;
}
.studio-group-lab {
  margin: 8px 0 0;
  padding: 0 4px;
  color: rgba(197, 232, 242, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.studio-group-lab:first-child {
  margin-top: 0;
}
.studio-app {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 108px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  background: linear-gradient(180deg, rgba(16, 34, 50, 0.72), rgba(7, 14, 24, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(var(--ice-rgb), 0.1),
    0 8px 22px rgba(0, 0, 0, 0.18);
}
.studio-pic {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 14, 22, 0.5);
  cursor: pointer;
}
.studio-app.set-c .studio-pic {
  background: #eceae6;
}
.studio-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.studio-copy b {
  display: block;
  color: #f4fbff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.studio-copy small {
  display: block;
  margin: 0;
  color: rgba(200, 226, 240, 0.82);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.studio-copy small.studio-clip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
#studio-pop {
  z-index: 34;
}
.studio-pop {
  position: relative;
  width: min(420px, 100%);
  text-align: center;
  padding: 28px 20px 22px;
}
.studio-pop-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 14, 22, 0.45);
  color: #e8fbff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#studio-pop-img {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border-radius: 36px;
  object-fit: cover;
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
#studio-pop-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
#studio-pop-body {
  margin: 0;
  color: rgba(220, 236, 248, 0.9);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  text-align: left;
}
.studio-pop-open {
  margin-top: 20px;
}
.heal-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: stretch;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(56, 196, 220, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(20, 80, 120, 0.35), transparent 50%),
    rgba(4, 10, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}
.heal-screen[hidden] {
  display: none !important;
}
.heal-panel {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 20px 22px;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(var(--ice-rgb), 0.22);
  background: linear-gradient(180deg, rgba(14, 28, 42, 0.94), rgba(7, 14, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.heal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 14, 22, 0.5);
  color: #e8fbff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.heal-hero {
  margin: 8px 8px 18px;
}
.heal-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(158, 246, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.heal-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.heal-lead,
.heal-summary {
  margin: 0;
  color: rgba(220, 236, 248, 0.78);
  line-height: 1.45;
}
.heal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 14px;
}
.heal-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.heal-list,
.heal-actions-log {
  display: grid;
  gap: 10px;
}
.heal-actions-log {
  margin-top: 16px;
}
.heal-actions-log h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(158, 246, 255, 0.7);
}
.heal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.16);
  background: rgba(8, 16, 26, 0.72);
}
.heal-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.heal-card small {
  display: block;
  color: rgba(220, 236, 248, 0.7);
  line-height: 1.4;
}
.heal-card em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.heal-card.ok em {
  color: #08301c;
  background: #7dffb2;
}
.heal-card.bad em {
  color: #3a0d12;
  background: #ff8fa0;
}
@media (max-width: 720px) {
  .heal-actions {
    grid-template-columns: 1fr;
  }
  .heal-panel {
    border-radius: 22px;
    padding: 24px 16px 18px;
  }
}
.orb,
.side-bell {
  position: relative;
}
.orb.has-news::after,
.side-bell.has-news::after,
.tabs button[data-tab="notes"].has-news::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5b6e;
  box-shadow: 0 0 0 2px #1a3344;
  pointer-events: none;
}

@media (min-width: 960px) and (min-height: 640px) {
  .sheet {
    padding: 28px;
  }
  .sheet-card,
  .sheet-card.legal,
  .studio-pop,
  .gate .login-card,
  .gate .privacy-card,
  .gate .card {
    width: min(760px, calc(100vw - 356px));
    max-width: 760px;
    padding: 36px 32px 28px;
    border-radius: 28px;
  }
  .sheet-card h2,
  .studio-pop h2,
  .gate .login-card h2,
  .gate .privacy-card h2,
  .gate h2,
  #sheet-form.bind-login .bind-login-title {
    font-size: 36px;
    margin: 0 0 22px;
  }
  .sheet-card .choice,
  .sheet-card .lang-opt,
  .sheet-card .cta.happ,
  .sheet-card .cta.ghost,
  .sheet-card .cta.glow,
  .gate .cta.happ,
  .gate .cta.glow,
  #otp-back,
  #bind-back {
    min-height: 64px;
    font-size: 18px;
    border-radius: 18px;
  }
  .sheet-card .choice b,
  .sheet-card .lang-opt b {
    font-size: 18px;
  }
  .sheet-card .choice-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .sheet-card .choice-ico svg {
    width: 22px;
    height: 22px;
  }
  .sheet-card .choice-grid.add-devs {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .sheet-card .choice-grid.add-devs .choice {
    min-height: 112px;
    padding: 12px 8px;
  }
  .sheet-card .choice-grid.add-devs .choice b {
    font-size: 14px;
  }
  .sheet-card .choice-grid.add-devs .choice small {
    font-size: 11px;
  }
  .legal-view {
    max-height: min(58vh, 560px);
  }
  #studio-pop-img {
    width: 220px;
    height: 220px;
    border-radius: 44px;
  }
  .notes-empty {
    padding: 48px 28px 42px;
    border-radius: 26px;
  }
  .notes-empty .empty-ico {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }
  .notes-empty .empty-ico svg {
    width: 34px;
    height: 34px;
  }
  .notes-empty b {
    font-size: 28px;
  }
  .notes-empty small {
    font-size: 17px;
    max-width: 360px;
  }
}

.dev-list {
  display: grid;
  gap: 12px;
}

.dev-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.dev-stats {
  margin: 0;
  width: 100%;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: inherit;
}

#d-promo .field,
#d-news .field,
#d-price .field,
#d-promo .cta,
#d-news .cta,
#d-users .cta,
#d-price .cta {
  width: 100%;
}

#d-users #dev-u-filters {
  margin: 0 0 12px;
}

#d-users #dev-u-filters [data-u-filter="sub_on"] {
  border-color: rgba(80, 220, 120, 0.55);
  background: linear-gradient(180deg, rgba(12, 92, 44, 0.74), rgba(6, 24, 14, 0.86));
  box-shadow: inset 0 0 0 1px rgba(120, 255, 168, 0.32);
  color: #d4ffe8;
}

#d-users #dev-u-filters [data-u-filter="sub_on"].on {
  border-color: rgba(100, 255, 150, 0.72);
  background: linear-gradient(180deg, rgba(16, 112, 54, 0.88), rgba(6, 24, 14, 0.94));
  color: #e8ffe8;
}

#d-users #dev-u-filters [data-u-filter="sub_off"] {
  border-color: rgba(255, 92, 92, 0.5);
  background: linear-gradient(180deg, rgba(118, 24, 30, 0.64), rgba(28, 8, 10, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 140, 140, 0.22);
  color: #ffd0d0;
}

#d-users #dev-u-filters [data-u-filter="sub_off"].on {
  border-color: rgba(255, 140, 140, 0.7);
  background: linear-gradient(180deg, rgba(140, 28, 36, 0.78), rgba(28, 8, 10, 0.94));
  color: #ffe0e0;
}

#d-users #dev-u-filters [data-u-filter="key_on"] {
  border-color: rgba(48, 220, 214, 0.58);
  background: linear-gradient(180deg, rgba(8, 86, 90, 0.74), rgba(6, 24, 32, 0.86));
  box-shadow: inset 0 0 0 1px rgba(90, 240, 230, 0.32);
  color: #c8fff8;
}

#d-users #dev-u-filters [data-u-filter="key_on"].on {
  border-color: rgba(90, 240, 230, 0.72);
  background: linear-gradient(180deg, rgba(10, 104, 108, 0.88), rgba(6, 24, 32, 0.94));
  color: #e8ffff;
}

#d-users #dev-u-filters [data-u-filter="key_off"] {
  border-color: rgba(255, 168, 184, 0.58);
  background: linear-gradient(180deg, rgba(168, 48, 64, 0.52), rgba(48, 14, 22, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 192, 0.28);
  color: #ffe0e6;
}

#d-users #dev-u-filters [data-u-filter="key_off"].on {
  border-color: rgba(255, 180, 192, 0.72);
  background: linear-gradient(180deg, rgba(188, 56, 74, 0.66), rgba(48, 14, 22, 0.92));
  color: #fff0f2;
}

#d-users #dev-u-fold {
  margin: 0 0 12px;
}

#d-users #dev-u-fold svg {
  transition: transform 0.2s ease;
}

#d-users #dev-u-fold.folded svg {
  transform: rotate(180deg);
}

#d-promo #dev-p-gen {
  margin: 0 0 12px;
}

#d-news textarea.field {
  min-height: 112px;
  resize: vertical;
}

#d-promo .plans,
#d-price .plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

#d-price .plans {
  grid-template-columns: repeat(2, 1fr);
}

#d-promo .plans button,
#d-price .plans button {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 12, 20, 0.45);
  color: #d7f7ff;
  font: inherit;
  font-weight: 700;
}

#d-promo .plans button.on,
#d-price .plans button.on {
  color: #9ef6ff;
  border-color: rgba(var(--ice-rgb), 0.5);
  background: rgba(var(--ice-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--ice-rgb), 0.22);
}

.dev-list .offer h2,
#d-users .offer h2,
#d-part .offer h2 {
  word-break: break-word;
}

.dev-list .hero-stats {
  margin-bottom: 12px;
}

.dev-list .hero-stats b {
  font-size: clamp(16px, 5.2vw, 24px);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

#d-promo .hero-stats b {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

#d-promo .hero-stats b.long {
  font-size: clamp(15px, 5vw, 24px);
  letter-spacing: -0.05em;
}

.dev-list .cta.happ {
  width: 100%;
}

#d-users .offer .kv,
#d-stats .kv {
  text-align: left;
}

#d-users .offer .kv span,
#d-stats .kv span {
  color: rgba(210, 228, 242, 0.78);
}

#d-users .chip {
  max-width: 100%;
  white-space: normal;
  height: auto;
  line-height: 1.25;
}

.notes-empty .empty-ico {
  display: grid;
  place-items: center;
}

.notes-empty .empty-ico svg {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev-actions {
  margin-top: 12px;
}

#d-users .dev-actions .choice b {
  white-space: normal;
  line-height: 1.2;
}

.choice.dev-del {
  border-color: rgba(255, 110, 110, 0.45);
  background:
    linear-gradient(180deg, rgba(118, 28, 36, 0.62), rgba(28, 8, 12, 0.86)),
    linear-gradient(120deg, rgba(255, 140, 140, 0.16), transparent 48%);
}

.choice.dev-del:hover {
  border-color: rgba(255, 140, 140, 0.62);
}

.dev-user {
  cursor: pointer;
}

.dev-user h2 {
  margin-bottom: 0;
}

#d-users .dev-person {
  margin: 10px 0 4px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9ef6ff;
  text-align: left;
  text-shadow: 0 0 14px rgba(var(--ice-rgb), 0.35);
}

.dev-user-more {
  display: none;
  margin-top: 4px;
  text-align: left;
}

.dev-user.open {
  padding-bottom: 18px;
}

.dev-user.open h2 {
  margin-bottom: 10px;
}

.dev-user.open .dev-user-more {
  display: grid;
  gap: 12px;
}

#d-users .profile-facts,
#d-stats .profile-facts {
  padding: 4px 0 0;
  text-align: left;
}

#d-users .profile-facts .fact,
#d-stats .profile-facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--ice-rgb), 0.14);
}

#d-users .profile-facts .fact-gap {
  visibility: hidden;
  pointer-events: none;
  border-bottom: 0;
}

#d-users .profile-facts .fact:last-child,
#d-stats .profile-facts .fact:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

#d-users .profile-facts .fact > span,
#d-stats .profile-facts .fact > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e8fbff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

#d-users .profile-facts .fact span svg,
#d-stats .profile-facts .fact span svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(var(--ice-rgb), 0.45));
}

#d-users .profile-facts .fact > b,
#d-stats .profile-facts .fact > b {
  display: block;
  margin: 0;
  padding: 0 0 0 36px;
  color: var(--ice);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: left;
  text-shadow: 0 0 16px rgba(var(--ice-rgb), 0.42);
  word-break: break-word;
}

#d-users .profile-facts .fact-key-on > b {
  color: #7dffa8;
  text-shadow:
    0 0 8px rgba(125, 255, 168, 0.95),
    0 0 22px rgba(80, 255, 140, 0.55);
}

#d-users .profile-facts .fact-key-off > b {
  color: #ff8a8a;
  text-shadow:
    0 0 8px rgba(255, 120, 120, 0.95),
    0 0 22px rgba(255, 70, 70, 0.5);
}

#d-price .hero-stats b,
#d-price .hero-stats b.long {
  display: block;
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

#d-stats .card .block-title .act-ico {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

#d-stats .card .block-title .act-ico svg {
  width: 26px;
  height: 26px;
}

#d-stats .profile-facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 0;
}

#d-stats .profile-facts .fact > span {
  font-size: 19px;
  font-weight: 800;
  gap: 14px;
}

#d-stats .profile-facts .fact span svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

#d-stats .profile-facts .fact > b {
  padding: 0;
  margin: 0;
  text-align: right;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 1.25em;
}

#d-price .flab {
  margin: 2px 0 8px;
  text-align: left;
}

#d-price .dev-price-devs {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 14px;
}

#d-price .dev-price-devs button {
  min-height: 40px;
  font-size: 15px;
}

#d-price .choice-grid {
  margin-bottom: 8px;
}

#dev-s-extra {
  padding-top: 14px;
  padding-bottom: 10px;
}

#dev-s-extra .hero-stats {
  margin: 0;
}

#sheet-extra .plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

#sheet-extra .dev-price-devs {
  grid-template-columns: repeat(5, 1fr);
}

#sheet-extra .plans button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ice-rgb), 0.18);
  background: rgba(6, 12, 20, 0.45);
  color: #d7f7ff;
  font: inherit;
  font-weight: 700;
}

#sheet-extra .plans button.on {
  color: #9ef6ff;
  border-color: rgba(var(--ice-rgb), 0.5);
  background: rgba(var(--ice-rgb), 0.14);
}

#sheet-extra textarea.field {
  min-height: 112px;
  resize: vertical;
  width: 100%;
}

#sheet-extra .field {
  width: 100%;
  margin: 0 0 10px;
}

#sheet-form.bind-login {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#sheet-form.bind-login .bind-login-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
}

#sheet-form.bind-login .cta.happ {
  width: 100%;
  margin-top: 4px;
  min-height: 58px;
  font-size: 17px;
  justify-content: center;
}

#sheet-form.bind-login #bind-back {
  width: 100%;
  margin: 10px 0 0;
  min-height: 48px;
}

#sheet-form.bind-login .otp-code-field {
  text-align: center;
}

#sheet-form.user-plan {
  text-align: left;
}

#sheet-form.user-plan h2 {
  text-align: center;
}

#sheet-form.user-plan .flab {
  margin: 2px 0 8px;
  text-align: left;
}

#sheet-form.user-plan .dev-price-devs {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 14px;
}

#sheet-form.user-plan .dev-price-devs button {
  min-height: 40px;
  font-size: 15px;
}

#sheet-form.user-plan .choice-grid {
  margin: 0 0 4px;
}

#sheet-form.user-plan .choice {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
}

#sheet-form.user-plan .choice b {
  width: auto;
  flex: 1;
  justify-content: flex-start;
  text-align: left;
}

#sheet-form.user-plan .choice.on {
  color: #9ef6ff;
  border-color: rgba(var(--ice-rgb), 0.5);
  background:
    linear-gradient(180deg, rgba(28, 92, 108, 0.7), rgba(8, 24, 36, 0.9)),
    linear-gradient(120deg, rgba(var(--ice-rgb), 0.18), transparent 48%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ice-rgb), 0.22),
    inset 0 1px 0 rgba(var(--ice-rgb), 0.16),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (orientation: landscape) and (max-height: 540px) {
  html,
  body {
    background: transparent;
  }
  body.app {
    background: transparent;
  }
  body.app::before {
    inset: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
  }
  body.app::after {
    background: linear-gradient(180deg, rgba(8, 16, 26, 0.16) 0%, rgba(8, 16, 26, 0.1) 42%, rgba(6, 12, 20, 0.28) 100%);
  }
  .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .head {
    min-height: 40px;
    margin-bottom: 6px;
  }
  .brand-title {
    font-size: 22px;
  }
  .head-space,
  .tools {
    width: 40px;
    height: 40px;
  }
  body.can-dev .head-space {
    width: 40px;
  }
  body.can-dev.dev-on .head-space {
    width: 90px;
  }
  .orb,
  #dev-toggle,
  #heal-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
  }
  #heal-toggle svg {
    width: 18px;
    height: 18px;
  }
  .hi {
    font-size: 20px;
    margin: 0 0 6px;
  }
  .page.on {
    max-width: none;
  }
  .card {
    margin-bottom: 8px;
  }
  .hero-stats b {
    font-size: 22px;
  }
  .tabs {
    width: min(680px, calc(100% - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    bottom: max(4px, env(safe-area-inset-bottom, 0px));
    padding: 4px;
    border-radius: 18px;
  }
  .tabs button {
    min-height: 42px;
    padding: 4px 2px;
  }
  #home .offer h2,
  #sub .offer h2 {
    font-size: 22px;
  }
  #home.on,
  #sub.on,
  #set.on,
  #bal.on,
  #ref.on,
  #srv.on,
  #notes.on,
  #profile.on,
  #acc-devs.on,
  #acc-notify.on,
  #help.on,
  #d-promo.on,
  #d-part.on,
  #d-news.on,
  #d-users.on,
  #d-stats.on,
  #d-price.on {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #home.on > .card,
  #home.on > .tiles,
  #home.on > .act {
    width: 100%;
    margin-bottom: 0;
  }
  #home .tiles {
    grid-template-columns: 1fr 1fr;
  }
  #home .buy-row {
    min-height: 56px;
  }
  #home .cta.happ {
    min-height: 58px;
    margin-top: 8px;
    font-size: 16px;
  }
  #home .act.rock {
    width: 100%;
    min-height: 72px;
  }
  #set .sub-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }
  #set .act.rock {
    width: 100%;
    min-height: 84px;
    padding: 16px 24px;
  }
  #home.on > .hi,
  #sub.on > .hi,
  #set.on > .hi,
  #bal.on > .hi,
  #ref.on > .hi,
  #srv.on > .hi,
  #notes.on > .hi,
  #profile.on > .hi,
  #acc-devs.on > .hi,
  #acc-notify.on > .hi,
  #skin.on > .hi,
  #help.on > .hi,
  #d-promo.on > .hi,
  #d-part.on > .hi,
  #d-news.on > .hi,
  #d-users.on > .hi,
  #d-stats.on > .hi,
  #d-price.on > .hi {
    grid-column: 1 / -1;
  }
  .dev-list,
  #dev-u-fold,
  #dev-u-filters,
  #guide-steps,
  #fix-steps {
    grid-column: 1 / -1;
  }
  .gate {
    padding: 8px max(12px, env(safe-area-inset-left, 0px));
  }
  .gate .login-card {
    max-height: min(96dvh, 640px);
  }
  .sheet {
    padding: 8px max(12px, env(safe-area-inset-left, 0px));
  }
  .sheet-card {
    width: min(720px, 100%);
    max-height: 92vh;
  }
}

/* Offline PWA install progress */
.offline-load-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: end center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: rgba(6, 12, 20, 0.55);
  backdrop-filter: blur(10px);
}
.offline-load-overlay[hidden],
.offline-load-dock[hidden] {
  display: none !important;
}
.offline-load-sheet {
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, rgba(28, 40, 54, 0.98), rgba(16, 24, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #f3f6fa;
}
.offline-load-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.offline-load-top b {
  text-align: center;
  font-size: 15px;
  font-weight: 650;
}
.offline-load-min {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.offline-load-min svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offline-load-body {
  text-align: center;
}
.offline-load-body h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.offline-scan {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 22px;
  border: 1px solid rgba(120, 190, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(70, 140, 220, 0.18), rgba(20, 40, 60, 0.2)),
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(120, 190, 255, 0.08) 10px 11px
    );
  position: relative;
  overflow: hidden;
}
.offline-scan::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ec8ff, transparent);
  animation: offline-scan-y 1.6s ease-in-out infinite;
}
@keyframes offline-scan-y {
  0%, 100% { top: 12%; }
  50% { top: 82%; }
}
.offline-load-progress {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.offline-load-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.offline-load-track > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ea1ff, #7ad0ff);
  transition: width 0.25s ease;
}
.offline-load-progress strong {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.offline-load-sub {
  margin-top: 10px;
  color: rgba(243, 246, 250, 0.72);
  font-size: 13px;
}
.offline-load-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 12000;
  display: grid;
  justify-items: center;
  pointer-events: none;
}
.offline-load-card {
  pointer-events: auto;
  width: min(440px, 100%);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(18, 28, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: #f3f6fa;
}
.offline-load-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.offline-load-card-top b {
  display: block;
  font-size: 14px;
}
.offline-load-card-top span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(243, 246, 250, 0.65);
}
.offline-load-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.offline-load-toggle {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.offline-load-mini-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.offline-load-mini-row small {
  color: rgba(243, 246, 250, 0.78);
}
.offline-load-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(126, 200, 255, 0.25);
  border-top-color: #7ec8ff;
  animation: ptr-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.act.set-offline[hidden] {
  display: none !important;
}


