:root {
  --ink: #182431;
  --muted: #6c7d88;
  --sky: #4ba0c5;
  --sky-deep: #267da4;
  --cream: #fffdf5;
  --sand: #fff3e3;
  --line: #c7dfe5;
  --shadow: 0 24px 65px rgba(43, 84, 101, .16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Manrope, Inter, Arial, sans-serif;
}

button {
  font: inherit;
  cursor: pointer;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3.5vw, 76px);
  border-bottom: 1px solid rgba(132, 164, 174, .22);
  background: rgba(255, 253, 245, .95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(140, 169, 181, 0.3);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  border-color: var(--sky);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1.7px solid var(--ink);
  border-radius: 50%;
  font-size: 7px;
  letter-spacing: -.07em;
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  font-weight: 800;
}

.brand-mark span:first-child {
  translate: -7px -2px;
}

.brand-mark span:last-child {
  translate: 8px 2px;
}

.topbar-actions,
.device-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  height: 32px;
  border-radius: 999px;
  background: #f1eee6;
  color: #384853;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.header-contact-btn:hover {
  background: #e4dfd4;
  color: var(--ink);
  transform: translateY(-1px);
}

.header-contact-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Hide public topbar contact button when inside partner workspace (invited/active) */
body[data-workspace="invited"] .header-contact-btn,
body[data-workspace="active"] .header-contact-btn,
body:has(.experience[data-workspace="invited"]) .header-contact-btn,
body:has(.experience[data-workspace="active"]) .header-contact-btn {
  display: none !important;
}

.device-switcher {
  padding: 3px;
  background: #f1eee6;
  border-radius: 999px;
}

.device-option,
.language-switch {
  border: 0;
  background: transparent;
  color: #65727a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
}

.device-option.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(29, 57, 68, .12);
}

.language-switch {
  border: 1px solid #dbe5df;
  color: var(--ink);
  padding-inline: 12px;
}

.manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 22px;
  padding: 6px 18px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.manual-btn:hover {
  background: linear-gradient(135deg, #f04251 0%, #e53030 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.48);
  color: #ffffff !important;
}

.experience {
  min-height: calc(100svh - 72px);
  padding: clamp(20px, 3vw, 44px);
  background: radial-gradient(circle at 50% 43%, rgba(248, 219, 151, .34), transparent 27%), linear-gradient(145deg, #fffdf5 0%, #f6faf8 100%);
}

.product-stage {
  width: min(1140px, 100%);
  min-height: calc(100svh - 160px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: start;
}

.stage-main {
  width: 100%;
  display: flex;
  align-items: center;
  /* панель по центру телефона */
  justify-content: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.experience[data-workspace="public"] .device-wrap {
  position: relative;
  top: auto;
  transform: none;
}

.info-panel {
  align-self: center;
  width: min(100%, 410px);
  flex: 0 1 410px;
  min-width: 0;
}

.eyebrow,
.screen-kicker {
  margin: 0 0 10px;
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info-panel .motto-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

.info-panel .motto-title .motto-mute {
  display: block;
  color: var(--navy-deep, #0f172a);
  font-weight: 800;
}

.info-panel .motto-title .motto-accent {
  display: block;
  margin-top: 2px;
  background: linear-gradient(135deg, #007aff 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.info-panel .motto-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.device-wrap {
  display: grid;
  place-items: center;
  position: sticky;
  top: max(104px, calc(50vh - 380px));
  z-index: 5;
}

.phone {
  width: min(100%, 410px);
  height: min(780px, calc(100svh - 132px));
  min-height: 550px;
  padding: 9px;
  background: #182027;
  border: 4px solid #2a3239;
  border-radius: 43px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .26);
  position: relative;
  transition: width .42s ease, border-radius .3s ease, background .3s ease;
}

.screen {
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: var(--cream);
  position: relative;
}

.android-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  translate: -50%;
  box-shadow: inset 0 0 0 2px #252c30;
}

.app-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 150, 179, .45) transparent;
  padding: 23px 22px 55px;
  overscroll-behavior: contain;
}

.android-statusbar,
.android-nav {
  height: 18px;
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #243039;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

.android-statusbar {
  top: 4px;
}

.android-nav {
  height: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 46px;
  background: #202529;
  color: #d5d8d8;
  font-size: 15px;
}

.app-screen {
  min-height: 100%;
  padding-top: 28px;
  position: relative;
  animation: show .26s ease both;
}

.app-screen.is-hidden {
  display: none;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translateX(7px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.settings,
.back {
  position: absolute;
  top: 25px;
  right: 0;
  border: 0;
  background: transparent;
  color: #58616f;
  font-size: 24px;
}

.back {
  left: -3px;
  right: auto;
  font-size: 37px;
  font-weight: 300;
  line-height: .55;
}

.home-logo {
  width: 144px;
  aspect-ratio: 1;
  margin: 51px auto 24px;
  border: 2px solid #293542;
  border-radius: 50%;
  box-shadow: 0 0 24px 11px rgba(250, 222, 151, .52), inset 0 0 0 6px #fcfbf4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.13em;
}

.home-logo span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #2e3942;
  border-radius: 50%;
  background: rgba(255, 253, 245, .76);
}

.home-logo span+span {
  margin-left: -12px;
}

.home-logo b {
  position: absolute;
  bottom: 20px;
  font-size: 33px;
  font-weight: 500;
  color: #455561;
}

.app-home h2 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  letter-spacing: .12em;
}

.learning-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 37px 0 17px;
}

.learning-controls button {
  border: 1px solid #dde0d2;
  border-radius: 30px;
  padding: 11px 15px;
  color: #3a4851;
  background: #fff8e8;
  font-weight: 700;
  font-size: 12px;
}

.learning-controls button+button {
  background: #f1f9fa;
  border-color: #c4dfe5;
  color: #5495b2;
}

.daily-goal {
  color: #707885;
  font-size: 12px;
  text-align: center;
  margin: 0 0 36px;
}

.daily-goal i {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #ccd0d9;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -1px;
}

.home-actions {
  display: grid;
  gap: 13px;
}

.home-actions button {
  min-height: 57px;
  padding: 11px 18px;
  border: 2px solid var(--line);
  border-radius: 17px;
  background: transparent;
  color: #5494ae;
  font-size: 15px;
  font-weight: 800;
}

.home-actions .primary-action {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  box-shadow: 0 8px 16px rgba(75, 160, 197, .18);
}

.home-actions button:nth-child(2) {
  background: var(--sand);
  color: #c38345;
  border-color: #efd5b8;
}

.home-actions small {
  margin-left: 7px;
  padding: 4px 7px;
  background: #d9edf2;
  border-radius: 6px;
  font-size: 9px;
  letter-spacing: .05em;
}

.home-more {
  padding: 34px 3px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--sky-deep);
  font-weight: 800;
}

.app-screen:not(.app-home) {
  padding-top: 65px;
}

.app-screen h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.055em;
  line-height: 1.16;
}

.screen-lead {
  margin: 13px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.topic-list button {
  display: grid;
  grid-template-columns: 39px 1fr 15px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  text-align: left;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
}

.topic-list b {
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7f4f6;
  color: var(--sky-deep);
}

.topic-list span {
  display: grid;
  gap: 3px;
}

.topic-list strong {
  font-size: 14px;
}

.topic-list small {
  color: var(--muted);
  font-size: 10px;
}

.topic-list em {
  color: #8b9da4;
  font-style: normal;
  font-size: 21px;
}

.mode-card {
  display: grid;
  grid-template-columns: 41px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
  padding: 15px;
  border: 1px solid #dbe8e4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.mode-icon {
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e3f3f5;
  color: var(--sky-deep);
}

.mode-card div {
  display: grid;
  gap: 4px;
}

.mode-card strong {
  font-size: 13px;
}

.mode-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.mode-card button {
  border: 0;
  border-radius: 10px;
  background: #eef7f8;
  color: var(--sky-deep);
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
}

.study-card {
  border-color: #b8dce5;
}

.lesson-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #5b6c74;
}

.lesson-head span:last-child {
  color: var(--sky-deep);
}

.progress {
  height: 5px;
  margin: 12px 0 39px;
  border-radius: 99px;
  overflow: hidden;
  background: #e4ece9;
}

.progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--sky);
  border-radius: inherit;
}

.role-progress i {
  width: 47%;
}

.dialogue-card {
  min-height: 206px;
  position: relative;
  padding: 24px 21px;
  border-radius: 23px;
  background: #eef8fa;
  box-shadow: inset 0 0 0 1px #d6e9ed;
}

.dialogue-card.compact {
  min-height: 145px;
}

.speaker {
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 800;
}

.dialogue-card p {
  max-width: 255px;
  margin: 24px 0 9px;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -.04em;
}

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

.sound-button {
  position: absolute;
  right: 16px;
  bottom: 17px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sky-deep);
}

.lesson-note {
  margin: 20px 4px 35px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.next-reply,
.speak {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 16px;
  background: var(--sky);
  color: #fff;
  font-weight: 800;
}

.next-reply span {
  margin-left: 8px;
}

.answer-options {
  display: grid;
  gap: 10px;
  margin: 23px 0 16px;
}

.answer-options button {
  padding: 13px;
  border: 1px solid #cfE3e6;
  border-radius: 14px;
  background: #fff;
  color: #43545e;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.speak {
  background: #f2b55c;
}

.partner-slot {
  align-self: center;
}

.experience[data-device="ios"] .phone {
  width: min(100%, 398px);
  padding: 10px;
  border: 5px solid #1d2024;
  border-radius: 55px;
  background: #1d2024;
}

.experience[data-device="ios"] .screen {
  border-radius: 41px;
}

.experience[data-device="ios"] .android-camera {
  width: 106px;
  height: 29px;
  top: 13px;
  border-radius: 30px;
  background: #050505;
  box-shadow: none;
}

.experience[data-device="ios"] .android-statusbar {
  top: 8px;
  left: 23px;
  right: 23px;
  padding: 0 8px;
  font-size: 9px;
}

.experience[data-device="ios"] .android-statusbar span:last-child {
  font-size: 0;
}

.experience[data-device="ios"] .android-statusbar span:last-child::after {
  content: "▮▮▮  ◔";
  font-size: 10px;
}

.experience[data-device="ios"] .android-nav {
  display: block;
  height: 21px;
  padding: 0;
  background: var(--cream);
  font-size: 0;
}

.experience[data-device="ios"] .android-nav::after {
  content: "";
  display: block;
  width: 115px;
  height: 4px;
  margin: 10px auto;
  border-radius: 20px;
  background: #1c2228;
}

.experience[data-device="ios"] .app-scroll {
  padding-top: 31px;
  padding-bottom: 38px;
}

@media (max-width: 850px) {
  .product-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 15px;
  }

  .stage-main {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .info-panel {
    max-width: 410px;
    margin: 0 auto;
  }

  .info-panel .panel-motto {
    text-align: center;
  }

  .info-panel .motto-title,
  .info-panel .motto-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .phone {
    height: min(790px, 80svh);
  }

  .partner-slot {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 61px;
    padding: 0 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .device-option {
    padding: 6px 7px;
    font-size: 10px;
  }

  .language-switch {
    padding: 6px 8px;
    font-size: 10px;
  }

  .experience {
    min-height: calc(100svh - 61px);
    padding: 13px;
  }

  .info-panel {
    display: none;
  }

  .product-stage {
    min-height: calc(100svh - 87px);
  }

  .phone {
    width: 100%;
    min-height: 520px;
    height: calc(100svh - 87px);
    border-radius: 35px;
  }

  .screen {
    border-radius: 25px;
  }

  .app-scroll {
    padding-inline: 19px;
  }

  .home-logo {
    margin-top: 36px;
  }
}

/* Actual Android UI is supplied as the visual source of truth. */
.topbar {
  height: 96px;
  background: #071b31;
  border: 0;
  padding-inline: clamp(20px, 5vw, 76px);
}

.brand {
  min-width: 188px;
  height: 52px;
  padding: 5px 17px 5px 7px;
  border: 1px solid rgba(223, 236, 245, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  color: #f7fafc;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}

.brand span {
  letter-spacing: -.03em;
}

.topbar .device-switcher,
.topbar .language-switcher {
  background: rgba(255, 255, 255, .1);
}

.topbar .device-option,
.topbar .language-option {
  color: #c0d0dd;
}

.topbar .device-option.is-active,
.topbar .language-option.is-active {
  background: #eaf3f7;
  color: #071b31;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
}

.language-option {
  border: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.experience {
  min-height: calc(100svh - 96px);
  background: radial-gradient(circle at 50% 47%, rgba(255, 255, 255, .96), rgba(246, 248, 249, .45) 31%, transparent 61%), #edf3f8;
}

.experience[data-language="ua"] {
  background: radial-gradient(circle at 50% 47%, rgba(255, 253, 245, .96), rgba(252, 243, 225, .5) 31%, transparent 61%), #f7f5ee;
}

.phone {
  width: min(100%, 398px);
  height: min(790px, calc(100svh - 142px));
  padding: 8px;
  min-height: 560px;
  border: 0;
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(201, 214, 222, .96) 47%, rgba(255, 255, 255, .92));
  box-shadow: 0 31px 58px rgba(26, 59, 80, .16), 0 10px 19px rgba(30, 51, 65, .08), inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 0 2px rgba(182, 200, 210, .28);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13% -16% 1%;
  border-radius: 50%;
  background: rgba(77, 137, 166, .14);
  filter: blur(44px);
}

.screen {
  border-radius: 30px;
  background: #f5f7fc;
}

.app-scroll {
  position: relative;
  height: 100%;
  padding: 0;
  scrollbar-width: none;
  background: #f5f7fc;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.reference-screen {
  width: 100%;
  height: auto;
  margin: 0;
  position: relative;
  line-height: 0;
}

.reference-screen.is-hidden {
  display: none !important;
}

.reference-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.screen-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  outline: 0;
}

.screen-hotspot:focus-visible {
  outline: 3px solid #5ea3d0;
  outline-offset: -3px;
  border-radius: 16px;
}

.home-topic {
  top: 55%;
  left: 9%;
  width: 82%;
  height: 7%;
}

.topic-dating {
  top: 15%;
  left: 48%;
  width: 38%;
  height: 15%;
}

.subtopic-compliments {
  top: 15%;
  right: 7%;
  width: 42%;
  height: 18%;
}

.first-scenario {
  top: 10%;
  left: 6%;
  width: 88%;
  height: 22%;
}

.study-mode {
  position: absolute;
  top: 18%;
  left: 4%;
  width: 92%;
  height: 12%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.dialogue-tail {
  top: 72%;
  left: 4%;
  width: 92%;
  height: 20%;
}

.back-hotspot {
  top: 2%;
  left: 2%;
  width: 15%;
  height: 8%;
}

.settings-hotspot {
  top: 4%;
  right: 4%;
  width: 13%;
  height: 7%;
}

.experience[data-language="ua"] .topic-dating {
  top: 32%;
  left: 49%;
  width: 45%;
  height: 20%;
}

.experience[data-language="ua"] .subtopic-compliments {
  top: 10%;
  right: 6%;
  width: 88%;
  height: 23%;
}

.experience[data-language="ua"] .first-scenario {
  top: 29%;
  left: 6%;
  width: 88%;
  height: 13%;
}

.experience[data-language="ua"] .green-scenario {
  top: 12%;
  left: 4%;
  width: 92%;
  height: 25%;
}

.experience[data-language="ua"] .yellow-scenario {
  top: 38%;
  left: 4%;
  width: 92%;
  height: 58%;
}

.experience[data-language="ua"] .study-mode {
  top: 18%;
  left: 4%;
  width: 92%;
  height: 12%;
}

.experience[data-language="ua"] .guided-mode {
  top: 31%;
  left: 4%;
  width: 92%;
  height: 12%;
}

.experience[data-language="ua"] .dialogue-tail {
  top: 57%;
  left: 4%;
  width: 92%;
  height: 17%;
}

.android-camera,
.android-statusbar,
.android-nav {
  display: none;
}

.experience[data-device="ios"] .phone {
  width: min(100%, 388px);
  padding: 8px;
  border: 0;
  border-radius: 52px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(188, 204, 213, .92) 48%, rgba(255, 255, 255, .95));
  box-shadow: 0 31px 58px rgba(26, 59, 80, .16), 0 10px 19px rgba(30, 51, 65, .08), inset 0 0 0 1px rgba(255, 255, 255, .92), inset 0 0 0 2px rgba(178, 197, 207, .26);
}

.experience[data-device="ios"] .screen {
  border-radius: 43px;
}

.experience[data-device="ios"] .phone::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 102px;
  height: 27px;
  left: 50%;
  top: 11px;
  translate: -50%;
  border-radius: 99px;
  background: #121820;
  pointer-events: none;
}

.experience[data-device="ios"] .reference-screen {
  overflow: hidden;
}

.experience[data-device="ios"] .reference-screen img {
  width: 100%;
  margin-top: -3.9%;
  min-height: 0;
}

.experience[data-device="ios"] .app-scroll {
  padding-bottom: 0;
}

@media (max-width: 480px) {
  .topbar {
    height: 78px;
  }

  .brand {
    min-width: 134px;
    height: 45px;
    padding: 4px 10px 4px 5px;
    border-radius: 14px;
  }

  .brand img {
    width: 35px;
    height: 35px;
  }

  .experience {
    min-height: calc(100svh - 78px);
  }

  .product-stage {
    min-height: calc(100svh - 104px);
  }

  .phone {
    height: calc(100svh - 104px);
    border-radius: 32px;
  }

  .screen {
    border-radius: 25px;
  }
}

/* Interaction and partner-workspace states */
.brand img {
  border-radius: 50%;
}

.workspace-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.workspace-option {
  border: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  color: #c0d0dd;
  font-size: 11px;
  font-weight: 700;
}

.workspace-option.is-active {
  background: #eaf3f7;
  color: #071b31;
}

.guided-mode {
  position: absolute;
  top: 31%;
  left: 4%;
  width: 92%;
  height: 12%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.role-mode {
  position: absolute;
  top: 44%;
  left: 4%;
  width: 92%;
  height: 12%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.mission-mode {
  position: absolute;
  top: 57%;
  left: 4%;
  width: 92%;
  height: 12%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.memory-mode {
  position: absolute;
  top: 70%;
  left: 4%;
  width: 92%;
  height: 12%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.experience[data-language="ru"] .ua-mode-control {
  display: none;
}

.topic-dating,
.topic-health {
  border: 2px solid rgba(75, 160, 197, .72);
  border-radius: 22px;
  animation: topic-pulse 2s ease-in-out infinite;
}

.topic-dating {
  animation-delay: 1s;
}

.topic-health {
  top: 32%;
  left: 48%;
  width: 38%;
  height: 15%;
}

.topic-health-ua {
  display: none;
}

.experience[data-language="ua"] .topic-health-ua {
  display: block;
  top: 32%;
  left: 49%;
  width: 45%;
  height: 17%;
}

.experience[data-language="ua"] .home-topic {
  top: 54.5%;
  left: 6%;
  width: 88%;
  height: 8.5%;
}

@keyframes topic-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(75, 160, 197, .06), inset 0 0 0 0 rgba(75, 160, 197, .1);
    border-color: rgba(75, 160, 197, .35);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(75, 160, 197, .04), inset 0 0 0 2px rgba(75, 160, 197, .14);
    border-color: rgba(75, 160, 197, .95);
  }
}

.headline-letter {
  display: inline-block;
  animation: letter-arrival .5s ease-in-out both;
}

.headline-letter:empty {
  width: .25em;
}

@keyframes letter-arrival {
  0% {
    transform: scale(1.2);
    opacity: .05;
  }

  50% {
    transform: scale(.8);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.partner-slot {
  display: none;
  align-self: stretch;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(140, 169, 181, .32);
  border-radius: 26px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 38px rgba(31, 71, 92, .08);
}

.partner-slot h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -.05em;
}

.partner-slot p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.partner-active {
  display: none;
}

.partner-cards {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.partner-cards span {
  padding: 12px 14px;
  border-radius: 13px;
  background: #edf7f9;
  color: #347f9f;
  font-size: 12px;
  font-weight: 800;
}

.partner-primary,
.media-card button,
.ref-link button {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  background: var(--sky);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.partner-stats div {
  display: grid;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 14px;
  background: #f2f7f8;
}

.partner-stats span,
.ref-link small {
  color: var(--muted);
  font-size: 10px;
}

.partner-stats strong {
  font-size: 17px;
}

.ref-link,
.media-card {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding: 14px;
  border-radius: 15px;
  background: #f8fbfb;
}

.ref-link code {
  color: #267da4;
  font-size: 12px;
}

.media-card b {
  font-size: 14px;
}

.media-card span {
  color: var(--muted);
  font-size: 11px;
}

.media-card button,
.ref-link button {
  justify-self: start;
  padding: 9px 12px;
}

.experience[data-workspace="invited"] .product-stage {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.experience[data-workspace="active"] .product-stage {
  width: min(1480px, 98%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

.experience[data-workspace="active"] .stage-main {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.experience[data-workspace="active"] .info-panel {
  display: block;
  position: absolute;
  right: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-width: none;
  pointer-events: auto;
}

.experience[data-workspace="active"] .info-panel .motto-title {
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.experience[data-workspace="active"] .info-panel .motto-sub {
  font-size: 13px;
  line-height: 1.5;
}

.experience[data-workspace="invited"] .partner-slot,
.experience[data-workspace="active"] .partner-slot {
  display: block;
}

.experience[data-workspace="active"] .partner-invited {
  display: none;
}

.experience[data-workspace="active"] .partner-active {
  display: block;
}

.experience[data-workspace="active"] .phone {
  width: min(100%, 390px);
  height: min(760px, calc(100svh - 132px));
}

@media (max-width: 1400px) {
  .experience[data-workspace="active"] .product-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(960px, 94%);
    margin: 0 auto;
  }

  .experience[data-workspace="active"] .stage-main {
    position: static;
    flex-direction: column;
    align-items: center;
  }

  .experience[data-workspace="active"] .info-panel {
    position: static;
    transform: none;
    width: min(100%, 410px);
    margin-bottom: 16px;
    text-align: center;
  }

  .experience[data-workspace="active"] .info-panel .motto-title,
  .experience[data-workspace="active"] .info-panel .motto-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .experience[data-workspace="active"] .partner-slot {
    max-width: 760px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 960px) {
  .device-wrap {
    position: relative;
    top: auto;
    transform: none;
  }

  .workspace-switcher {
    order: 3;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .experience[data-workspace="invited"] .product-stage,
  .experience[data-workspace="active"] .product-stage {
    grid-template-columns: 1fr;
  }

  .experience[data-workspace="active"] .phone {
    width: min(100%, 398px);
    height: min(790px, calc(100svh - 142px));
  }

  .partner-slot {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .workspace-option {
    padding: 6px 7px;
    font-size: 9px;
  }

  .workspace-switcher {
    width: 100%;
    justify-content: flex-end;
  }

  .topbar {
    height: 102px;
  }

  .experience {
    min-height: calc(100svh - 102px);
  }

  .product-stage {
    min-height: calc(100svh - 128px);
  }
}

/* Final device fidelity: the supplied application captures stay whole and untouched. */
.brand {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.phone {
  padding: 5px;
  border-radius: 38px;
  background: linear-gradient(145deg, #ffffff, #d7e2e8 52%, #fbfdff);
  box-shadow: 0 25px 51px rgba(37, 82, 109, .16), 0 8px 15px rgba(36, 64, 78, .09), inset 0 1px 1px rgba(255, 255, 255, .98), inset 0 0 0 1px rgba(188, 207, 217, .48);
}

.phone::before {
  inset: 15% -17% -2%;
  background: rgba(88, 149, 180, .17);
  filter: blur(48px);
}

.screen {
  border-radius: 33px;
  background: #f5f7fc;
}

.reference-screen img {
  min-height: 0;
  object-fit: contain;
}

.experience[data-device="ios"] .phone {
  padding: 5px;
  border-radius: 49px;
  background: linear-gradient(145deg, #ffffff, #d8e3e9 52%, #fbfdff);
}

.experience[data-device="ios"] .screen {
  border-radius: 44px;
}

.experience[data-device="ios"] .reference-screen {
  overflow: visible;
}

.experience[data-device="ios"] .reference-screen img {
  margin-top: 0;
  width: 100%;
}

.experience[data-device="ios"] .phone::after {
  display: none;
}

/* The title animates letter-by-letter but a word is never allowed to split. */
.headline-word {
  display: inline-block;
  white-space: nowrap;
}

.headline-letter {
  animation-duration: .2s;
}

/* Raster screens receive no hard CSS contour. A calibrated, soft halo only indicates tappable topic cards. */
.topic-dating,
.topic-health,
.experience[data-language="ua"] .home-topic {
  border: 0;
  border-radius: 22px;
  animation: topic-halo 2s ease-in-out infinite;
}

.topic-dating {
  top: 15.8%;
  left: 51.7%;
  width: 44.3%;
  height: 17.3%;
  animation-delay: 1s;
}

.topic-health {
  top: 34.7%;
  left: 51.7%;
  width: 44.3%;
  height: 17.3%;
}

.experience[data-language="ua"] .topic-health-ua {
  top: 34.7%;
  left: 51.7%;
  width: 44.3%;
  height: 17.3%;
}

@keyframes topic-halo {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(76, 158, 198, 0), inset 0 0 0 0 rgba(76, 158, 198, 0);
  }

  50% {
    box-shadow: 0 0 13px 3px rgba(76, 158, 198, .31), inset 0 0 11px rgba(255, 255, 255, .13);
  }
}

/* Partner access is only derived from the invitation URL, never a public mode switch. */
.workspace-switcher {
  display: none !important;
}

.offer {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.offer-copy {
  max-height: 185px;
  overflow-y: auto;
  padding: 13px;
  border: 1px solid #d9e7eb;
  border-radius: 14px;
  background: rgba(248, 251, 252, .94);
  color: #50626c;
  font-size: 11px;
  line-height: 1.55;
}

.offer-copy p {
  margin: 0 0 10px;
}

.offer-copy a,
.partner-template-link {
  color: #277d9f;
  font-weight: 800;
  text-decoration: none;
}

.offer-copy small {
  display: block;
  color: #8b5b21;
  font-weight: 700;
}

.offer label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #50626c;
  font-size: 11px;
  line-height: 1.4;
}

.offer input {
  margin: 2px 0 0;
  accent-color: #3b91b8;
}

.partner-primary:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.partner-template-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
}

.experience[data-workspace="invited"] .product-stage,
.experience[data-workspace="active"] .product-stage {
  width: min(1360px, 100%);
  grid-template-columns: 2fr 1fr;
  gap: clamp(18px, 3vw, 42px);
}

.experience[data-workspace="active"] .product-stage {
  grid-template-columns: 1fr 2fr;
}

@media (max-width: 560px) {
  .topbar {
    height: 78px;
  }

  .brand {
    height: auto;
    padding: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .experience {
    min-height: calc(100svh - 78px);
  }

  .product-stage {
    min-height: calc(100svh - 104px);
  }
}

/* One motion language throughout the interface: a quiet bezier in–out, never linear. */
:root {
  --motion-in-out: cubic-bezier(.42, 0, .58, 1);
  --motion-soft: cubic-bezier(.22, .61, .36, 1);
}

button,
.brand,
.partner-template-link,
.offer-copy a {
  transition: transform .34s var(--motion-in-out), background-color .34s var(--motion-in-out), color .34s var(--motion-in-out), box-shadow .34s var(--motion-in-out), opacity .34s var(--motion-in-out);
}

button:not(:disabled):hover,
.brand:hover {
  transform: translateY(-1px);
}

button:not(:disabled):active {
  transform: translateY(0) scale(.985);
}

.device-option,
.language-option {
  transition-timing-function: var(--motion-in-out);
}

.phone {
  transition: width .48s var(--motion-in-out), height .48s var(--motion-in-out), border-radius .42s var(--motion-in-out), background .42s var(--motion-in-out), box-shadow .42s var(--motion-in-out);
}

.reference-screen:not(.modal-screen) {
  transition: opacity .42s var(--motion-in-out), transform .42s var(--motion-in-out);
}

.experience.language-transition .reference-screen:not(.is-hidden):not(.modal-screen) {
  animation: language-reveal .5s var(--motion-in-out) both;
}

@keyframes language-reveal {
  0% {
    opacity: .18;
    transform: scale(.986);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* A separate, outlined control makes the real logo feel like it hovers above the dark header. */
.brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 56px;
  padding: 0;
  gap: 13px;
}

.brand img {
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 9px rgba(0, 0, 0, .27), inset 0 0 0 1px rgba(255, 255, 255, .8);
  animation: logo-float 16.8s cubic-bezier(.42, 0, .58, 1) infinite;
}

@keyframes logo-float {
  0% {
    transform: translate(0px, -3.5px);
  }

  25% {
    transform: translate(3.5px, 0px);
  }

  50% {
    transform: translate(0px, 3.5px);
  }

  75% {
    transform: translate(-3.5px, 0px);
  }

  100% {
    transform: translate(0px, -3.5px);
  }
}

/* A darker recessed inner edge and highlighted outside edge give the chassis a mirrored volume. */
.phone {
  padding: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #d7e2e8 22%, #9fadb7 51%, #eaf0f4 76%, #ffffff 100%);
  box-shadow: 0 27px 53px rgba(37, 82, 109, .18), 0 8px 16px rgba(31, 56, 70, .12), inset 2px 2px 2px rgba(255, 255, 255, .98), inset -2px -2px 3px rgba(63, 84, 97, .43), inset 0 0 0 1px rgba(95, 118, 132, .54);
}

.screen {
  box-shadow: inset 0 0 0 2px rgba(55, 76, 90, .45), inset 1px 1px 2px rgba(15, 31, 42, .42), inset -1px -1px 1px rgba(255, 255, 255, .64);
}

.experience[data-device="ios"] .phone {
  padding: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #dce7ed 22%, #a4b2bb 51%, #edf3f6 76%, #ffffff 100%);
}

.headline-letter {
  animation-timing-function: var(--motion-in-out);
}

.topic-dating,
.topic-health,
.experience[data-language="ua"] .home-topic {
  animation-timing-function: var(--motion-in-out);
}

/* The mark itself is the button: one precise round seal, matching the application logo. */
.brand {
  width: auto;
  min-height: 52px;
  padding-left: 4px;
}

.brand::before {
  display: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(235, 220, 171, .94);
  border-radius: 50%;
  background: #f7f2e6;
  box-shadow: 0 9px 17px rgba(0, 0, 0, .32), 0 0 0 1px rgba(8, 27, 47, .72), inset 0 1px 2px rgba(255, 255, 255, .92);
}

.brand span {
  margin-left: 3px;
}

/* Invisible link zones — clean, no glow. */
.screen-hotspot {
  position: absolute;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
  border-radius: 18px;
}

.back-hotspot {
  position: absolute;
  top: 2.5%;
  left: 3.5%;
  width: 14%;
  height: 7.5%;
  z-index: 15 !important;
  pointer-events: auto !important;
  cursor: pointer;
  border-radius: 50%;
}

.cards-hotspot {
  top: 64.5%;
  left: 6%;
  width: 88%;
  height: 6.5%;
}

.free-hotspot {
  top: 72%;
  left: 6%;
  width: 88%;
  height: 6.5%;
}

.ai-hotspot {
  top: 79.5%;
  left: 6%;
  width: 88%;
  height: 6.5%;
}

.language-badge,
.level-badge {
  z-index: 8 !important;
  pointer-events: auto !important;
}

.language-badge {
  top: 42.6%;
  left: 21%;
  width: 35%;
  height: 5%;
}

.level-badge {
  top: 42.6%;
  left: 57.5%;
  width: 23%;
  height: 5%;
}

.settings-hotspot {
  position: absolute;
  top: 3.5%;
  right: 4%;
  width: 14%;
  height: 7.5%;
  z-index: 60 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.settings-language-hotspot {
  top: 7%;
  left: 5%;
  width: 90%;
  height: 18%;
}

.settings-language-ru {
  top: 28%;
  left: 8%;
  width: 42%;
  height: 12%;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.settings-language-ua {
  top: 28%;
  right: 8%;
  width: 42%;
  height: 12%;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

/* All hotspot glow/pulse effects removed. Hotspots are transparent and clean. */
.screen-hotspot {
  box-shadow: none !important;
  animation: none !important;
}

.screen-hotspot::after {
  display: none;
}

.reference-screen.is-hidden .screen-hotspot {
  animation: none !important;
  box-shadow: none !important;
}

/* Square logo button, while the logo artwork itself stays round. */
.brand {
  width: auto;
  min-height: 56px;
  padding: 0;
  gap: 13px;
}

.brand::before {
  content: "";
  position: absolute;
  display: block;
  z-index: 0;
  width: 54px;
  height: 54px;
  left: 0;
  top: 1px;
  border: 1px solid rgba(220, 237, 248, .62);
  border-radius: 15px;
  background: linear-gradient(145deg, #17415f, #0a243d);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28), 0 0 22px 3px rgba(195, 228, 247, .23), inset 0 1px 1px rgba(255, 255, 255, .2);
}

.brand img {
  z-index: 1;
  width: 42px;
  height: 42px;
  margin: 6px 6px 6px 6px;
  border-width: 1px;
  border-radius: 50%;
  box-shadow: 0 5px 9px rgba(0, 0, 0, .25), 0 0 10px rgba(255, 250, 226, .28);
}

.brand span {
  position: relative;
  z-index: 1;
  margin-left: 0;
}

.modal-screen {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.52);
  animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-screen img,
.modal-screen .sheet-close,
.modal-screen .screen-hotspot {
  pointer-events: auto;
}

.modal-screen.is-hidden {
  display: none !important;
}

.modal-screen.is-closing {
  animation: modal-slide-down 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modal-slide-up {
  from {
    transform: translate3d(0, 100%, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modal-slide-down {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, 100%, 0);
  }
}

.modal-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* Explicit closing control for bottom sheets: placed directly above the card image. */
.sheet-close {
  position: relative;
  z-index: 12;
  align-self: flex-end;
  margin-right: 14px;
  margin-bottom: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(103, 127, 141, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #35546a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-screen[data-screen="free"] .sheet-close {
  top: 14px;
  right: 14px;
}

.settings-screen {
  position: relative;
  overflow-y: auto;
  max-height: 100%;
}

.settings-screen .sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
}

.free-tarif-img {
  position: absolute;
  bottom: 42px;
  left: 6%;
  width: 88%;
  height: auto;
  z-index: 12 !important;
  pointer-events: none;
  display: none;
}

.free-commands-action {
  position: absolute;
  bottom: 42px;
  left: 6%;
  width: 88%;
  height: 60px;
  z-index: 20 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.free-mic-hotspot {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 14%;
  z-index: 50 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.free-mic-hotspot.is-hidden {
  display: none !important;
}

.home-topic {
  position: absolute;
  top: 53.5%;
  left: 6%;
  width: 88%;
  height: 9.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.topic-card-hotspot,
.subtopic-card-hotspot {
  position: absolute;
  top: 13%;
  left: 4%;
  width: 92%;
  height: 82%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.green-scenario {
  position: absolute;
  top: 12%;
  left: 4%;
  width: 92%;
  height: 14%;
  z-index: 15 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.yellow-scenario {
  position: absolute;
  top: 27%;
  left: 4%;
  width: 92%;
  height: 70%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.experience[data-language="ua"] .green-scenario {
  top: 11.5%;
  left: 4%;
  width: 92%;
  height: 25%;
  z-index: 15 !important;
}

.experience[data-language="ua"] .yellow-scenario {
  top: 37.5%;
  left: 4%;
  width: 92%;
  height: 58%;
  z-index: 10 !important;
}

/* Динамическая инфопанель — каркас (ADR: InfoPanel v1) */
.info-panel {
  position: relative;
}

.panel-motto,
.panel-card {
  transition: opacity .32s ease, transform .32s ease;
}

/* состояние «скрыто» — участвует в cross-fade */
.panel-motto.is-hidden,
.panel-card.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.panel-card {
  background: #f1f9fa;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 26px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience[data-language="ua"] .panel-card {
  background: var(--cream);
}

.panel-card .screen-kicker {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -.01em;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.panel-section h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.panel-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.modes-instruction {
  position: absolute;
  top: 13.5%;
  left: 4%;
  width: 92%;
  height: 10%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.study-mode {
  position: absolute;
  top: 27.5%;
  left: 4%;
  width: 92%;
  height: 10%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.guided-mode {
  position: absolute;
  top: 39.5%;
  left: 4%;
  width: 92%;
  height: 10%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.role-mode {
  position: absolute;
  top: 51.5%;
  left: 4%;
  width: 92%;
  height: 10.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.mission-mode {
  position: absolute;
  top: 64%;
  left: 4%;
  width: 92%;
  height: 10.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.memory-mode {
  position: absolute;
  top: 76.5%;
  left: 4%;
  width: 92%;
  height: 10.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.experience[data-language="ua"] .study-mode {
  top: 28.5%;
  height: 11.5%;
}

.experience[data-language="ua"] .guided-mode {
  top: 41.5%;
  height: 10.5%;
}

.instruction-study-btn {
  position: absolute;
  top: 13.5%;
  left: 4%;
  width: 92%;
  height: 11.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.instruction-guided-btn {
  position: absolute;
  top: 26.5%;
  left: 4%;
  width: 92%;
  height: 11.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.instruction-role-btn {
  position: absolute;
  top: 39.5%;
  left: 4%;
  width: 92%;
  height: 11.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.instruction-mission-btn {
  position: absolute;
  top: 52.5%;
  left: 4%;
  width: 92%;
  height: 11.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.instruction-memory-btn {
  position: absolute;
  top: 65.5%;
  left: 4%;
  width: 92%;
  height: 11.5%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.instruction-poyatno-btn {
  position: absolute;
  top: 79%;
  left: 4%;
  width: 92%;
  height: 12.5%;
  z-index: 15 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.poyatno-action {
  position: absolute;
  bottom: 3.5%;
  left: 4%;
  width: 92%;
  height: 12.5%;
  z-index: 25 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.dialogue-action,
.guided-action,
.role-play-action,
.mission-action,
.memory-action,
.cards-action,
.free-action,
.ai-action {
  position: absolute;
  top: 18%;
  left: 4%;
  width: 92%;
  height: 77%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.ai-card-hotspot,
.mission-card-action {
  position: absolute;
  top: 15%;
  left: 4%;
  width: 92%;
  height: 75%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.ai-mic-hotspot {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 14%;
  z-index: 50 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.cards-down-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.role-select-hotspot {
  position: absolute;
  top: 15%;
  left: 4%;
  width: 92%;
  height: 32%;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.lang-opt-en {
  position: absolute;
  bottom: 35%;
  left: 6%;
  width: 88%;
  height: 30%;
}

.lang-opt-de {
  position: absolute;
  bottom: 5%;
  left: 6%;
  width: 88%;
  height: 30%;
}

/* Partner media library: Collapsible accordion with 4 tabs and phone 9:16 tiles / compact rows */
.media-library {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce9ee;
  border-radius: 18px;
  background: rgba(248, 252, 253, .92);
}

.library-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 14px;
  background: var(--sky);
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(75, 160, 197, .22);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.library-toggle-btn:hover {
  background: var(--sky-deep);
  box-shadow: 0 6px 18px rgba(38, 125, 164, .28);
}

.library-toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-toggle-title b {
  font-size: 15px;
  font-weight: 800;
}

.library-toggle-icon {
  font-size: 16px;
}

.library-toggle-arrow {
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  transition: transform .25s ease;
}

.library-toggle-btn.is-open .library-toggle-arrow {
  transform: rotate(180deg);
}

.library-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.library-body.is-hidden,
.library-empty.is-hidden,
.library-pages.is-hidden {
  display: none !important;
}

.library-empty {
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e1edf0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.library-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: #e7f0f3;
}

.library-tabs button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 8px 4px;
  background: transparent;
  color: #657780;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.library-tabs button.is-active {
  background: #fff;
  color: #237a9e;
  box-shadow: 0 2px 7px rgba(28, 79, 100, .11);
}

.library-grid {
  display: grid;
  gap: 10px;
}

.library-grid.grid-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid.grid-rows {
  grid-template-columns: 1fr;
}

/* 9:16 Vertical Phone Tile (Video & Image) */
.media-card-phone {
  padding: 8px;
  border: 1px solid #d8e5ea;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-preview-container {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #121a22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-preview-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.play-overlay-btn {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(38, 125, 164, .9);
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}

.play-overlay-btn:hover {
  transform: scale(1.1);
  background: rgba(38, 125, 164, 1);
}

.media-phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.media-phone-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-phone-size {
  font-size: 9px;
  color: var(--muted);
}

.media-download-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--sky);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
}

.media-download-btn:hover {
  background: var(--sky-deep);
}

/* Audio Row */
.media-card-audio {
  padding: 10px 12px;
  border: 1px solid #d8e5ea;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #edf7f9;
  color: var(--sky-deep);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-play-btn:hover {
  background: var(--sky-deep);
  color: #fff;
}

.mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 12px;
  flex-shrink: 0;
}

.mini-eq span {
  flex: 1;
  background: var(--sky);
  border-radius: 1px;
  height: 30%;
}

.mini-eq.is-playing span:nth-child(1) {
  animation: eq-bar 0.5s infinite ease-in-out alternate;
}

.mini-eq.is-playing span:nth-child(2) {
  animation: eq-bar 0.7s infinite ease-in-out alternate 0.15s;
}

.mini-eq.is-playing span:nth-child(3) {
  animation: eq-bar 0.6s infinite ease-in-out alternate 0.05s;
}

@keyframes eq-bar {
  0% {
    height: 20%;
  }

  100% {
    height: 100%;
  }
}

.audio-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audio-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-meta {
  font-size: 10px;
  color: var(--muted);
}

/* Text Card Row */
.media-card-text {
  padding: 12px;
  border: 1px solid #d8e5ea;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.text-card-excerpt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  background: #f8fbfb;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed #d0e1e6;
}

.text-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.text-card-actions button,
.text-card-actions a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.btn-copy-text {
  background: #edf7f9;
  color: var(--sky-deep);
}

.btn-copy-text:hover {
  background: #d8edf2;
}

.btn-download-text {
  background: var(--sky);
  color: #fff;
}

.btn-download-text:hover {
  background: var(--sky-deep);
}

.media-download-btn-sm {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sky);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}

.media-download-btn-sm:hover {
  background: var(--sky-deep);
}

/* Lightbox Modal for enlarged image preview */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 20, 30, .85);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: pointer;
}

.media-lightbox.is-hidden {
  display: none !important;
}

.media-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  object-fit: contain;
  pointer-events: auto;
  cursor: pointer;
}

.media-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto !important;
  transition: background .2s ease, transform .2s ease;
}

.media-lightbox-close:hover {
  background: rgba(255, 255, 255, .4);
  transform: scale(1.08);
}


.library-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
}

.library-pages button {
  width: 28px;
  height: 28px;
  border: 1px solid #cfe0e6;
  border-radius: 9px;
  background: #fff;
  color: #267da4;
  font-size: 20px;
  line-height: 1;
}

.library-pages span {
  min-width: 80px;
  color: #566b76;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Global utility rules */
.is-hidden,
[hidden] {
  display: none !important;
}

/* Partner panel header row with exit & instruction buttons */
.partner-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.partner-header-titles {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.partner-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.partner-header-row h2 {
  margin: 0;
}

.partner-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0;
}

.partner-feedback-btn,
.exit-workspace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  margin: 0;
  border: 1px solid rgba(140, 169, 181, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}

.partner-feedback-btn:hover,
.exit-workspace-btn:hover {
  background: #ffffff;
  border-color: var(--sky);
  box-shadow: 0 4px 14px rgba(75, 160, 197, .18);
  transform: translateY(-1px);
}

/* Reset device-wrap sticky on narrow screens */
@media (max-width: 960px) {
  .device-wrap {
    position: relative;
    top: auto;
  }
}

/* Store-кнопки в шапке (ADR: StoreBadges) */
.store-badges {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 12px;
  background: #eaf3f7;
  color: #071b31;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge-text small {
  font-size: 10px;
  font-weight: 600;
  opacity: .75;
}

.store-badge-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* Адаптив: под шапку на узких экранах */
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .store-badges {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* Native Partner Cabinet inside ACTIVE panel */
.partner-cabinet-native {
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cabinet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.partner-stats>div {
  padding: 10px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1edf0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partner-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.partner-stats strong {
  color: var(--sky-deep);
  font-size: 15px;
  font-weight: 800;
}

.cabinet-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cabinet-error {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdf2f2;
  border: 1px solid #f8d7da;
  color: #a94442;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.cabinet-error.is-hidden,
.cabinet-body.is-hidden,
.cabinet-payouts-empty.is-hidden,
.cabinet-payouts-wrap.is-hidden,
.cabinet-channel-tag.is-hidden {
  display: none !important;
}

.cabinet-channel-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e4f1f5;
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 800;
}

.cabinet-card {
  padding: 14px;
  border-radius: 15px;
  background: #f8fbfb;
  border: 1px solid #dce9ee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet-card-label small,
.cabinet-card-label b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cabinet-card-label b {
  color: var(--ink);
  font-size: 13px;
}

.cabinet-ref-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cabinet-ref-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #c7dfe5;
  border-radius: 10px;
  background: #fff;
  color: #267da4;
  font-family: monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  outline: 0;
}

.partner-primary-sm {
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--sky);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease;
}

/* ADR-001 D67: карточка реквизитов выплаты в кабинете партнёра.
   Фон/рамку наследует от .cabinet-card. */
.cabinet-payout-details-hint {
  margin: 0;
}

.cabinet-payout-details-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #c7dfe5;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  outline: 0;
}

.cabinet-payout-details-input:focus {
  border-color: var(--sky);
}

.cabinet-payout-details-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cabinet-payout-details-status {
  font-size: 12px;
  font-weight: 800;
  color: #1f9d55;
}

.partner-primary-sm:hover {
  background: var(--sky-deep);
}

.cabinet-rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cabinet-rate-item {
  padding: 10px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1edf0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-rate-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.cabinet-rate-item strong {
  color: var(--sky-deep);
  font-size: 16px;
  font-weight: 800;
}

.cabinet-rule-item {
  padding: 12px;
  border-radius: 14px;
  background: #f2f7f8;
  border: 1px solid #dce9ee;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-rule-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.cabinet-rule-item strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.cabinet-rule-item small {
  color: var(--muted);
  font-size: 11px;
}

.cabinet-payouts-empty {
  padding: 12px 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.cabinet-payouts-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.cabinet-payouts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.cabinet-payouts-table th {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #dce9ee;
}

.cabinet-payouts-table td {
  padding: 10px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid #edf4f6;
}

.cabinet-payouts-table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================
   ACTIVE — финальная раскладка v2.
   Заменяет предыдущий блок active-layout-fix: если ты вставлял
   его — удали тот кусок и вставь ЭТОТ в конец styles.css.
   Если не вставлял — просто добавь этот в конец файла.

   Широкий экран: инфопанель · телефон (в ряд слева) + кабинет
   справа, вся сцена по центру кадра с равными полями.
   Узкий экран: всё в столбик, инфопанель = ширине телефона.
   Механику девиз/карточка не трогаем (это app.js).
   ============================================================ */

/* Общее: восстанавливаем оригинальную структуру ADR-144 */
.experience[data-workspace="active"] .info-panel {
  display: block !important;
}

.experience[data-workspace="active"] .device-wrap {
  position: static !important;
  top: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  justify-self: center !important;
}

.experience[data-workspace="active"] .partner-slot {
  min-width: 0 !important;
}

/* ---- Широкий экран: три блока в ряд без вылезания за края ---- */
@media (min-width: 1281px) {
  .experience[data-workspace="active"] .product-stage {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: clamp(20px, 2.5vw, 36px) !important;
    width: 100% !important;
    max-width: 1480px !important;
    padding-left: 310px !important;
    /* Отступ под абсолютную панель 280px + 20px зазор */
    padding-right: 20px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    align-items: start !important;
  }

  .experience[data-workspace="active"] .stage-main {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .experience[data-workspace="active"] .info-panel {
    position: absolute !important;
    right: calc(100% + 20px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .experience[data-workspace="active"] .info-panel .motto-title {
    font-size: clamp(20px, 1.8vw, 28px) !important;
    line-height: 1.18 !important;
  }
}

/* ---- Узкий экран (планшет/мобилка): столбик, инфопанель по ширине телефона ---- */
@media (max-width: 1280px) {
  .experience[data-workspace="active"] .product-stage {
    grid-template-columns: 1fr !important;
    width: min(760px, 100%) !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    gap: 28px !important;
  }

  .experience[data-workspace="active"] .stage-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    position: static !important;
  }

  .experience[data-workspace="active"] .info-panel {
    position: static !important;
    transform: none !important;
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    align-self: center !important;
    text-align: left !important;
  }
}

/* ============================================================
   Fix 2 — Media Library Toggle Hit-Zone & Stacking Context
   ============================================================ */
.partner-slot {
  position: relative !important;
  z-index: 10 !important;
}

.media-library {
  position: relative !important;
  z-index: 10 !important;
}

.library-toggle-btn {
  position: relative !important;
  z-index: 15 !important;
  pointer-events: auto !important;
}

/* ============================================================
   Header Actions & Instruction Red Button
   ============================================================ */
.partner-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.instruction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0 24px;
  min-width: 130px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(229, 57, 53, .28);
  transition: background .28s ease, transform .28s ease, box-shadow .28s ease;
}

.instruction-btn:hover {
  background: #d32f2f;
  box-shadow: 0 6px 16px rgba(229, 57, 53, .4);
  transform: translateY(-1px);
}

.instruction-btn:active {
  transform: translateY(0) scale(.985);
}

/* ============================================================
   Fix 3 — Text Material Card Preview Button
   ============================================================ */
.btn-view-text {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sky);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-view-text:hover {
  background: var(--sky-deep);
}

.text-preview-code {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #f4f8fa;
  border: 1px solid #dce9ee;
  color: var(--ink);
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 55vh;
  overflow-y: auto;
}

/* ============================================================
   Shared Site Modal Component (Instruction & Text Preview)
   ============================================================ */
.site-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(7, 27, 49, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: site-modal-fade-in 0.25s var(--motion-in-out) forwards;
}

.site-modal-backdrop.is-hidden {
  display: none !important;
}

@keyframes site-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: site-modal-scale-up 0.28s var(--motion-soft) forwards;
  transition: background 0.25s ease;
}

/* Language background variants for modal card: UA = warm yellowish, RU = cold white */
body[data-language="ua"] .site-modal-card,
[data-language="ua"] .site-modal-card {
  background: #fffdf5;
}

body[data-language="ru"] .site-modal-card,
[data-language="ru"] .site-modal-card {
  background: #ffffff;
}

@keyframes site-modal-scale-up {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.site-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.06);
}

.site-modal-header {
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e8f0f3;
  padding-right: 60px;
}

.site-modal-header.is-hidden {
  display: none !important;
}

.site-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.site-modal-footer {
  padding: 16px 24px;
  background: #f8fbfb;
  border-top: 1px solid #dce9ee;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-modal-footer.is-hidden {
  display: none !important;
}

.site-modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: #edf7f9;
  color: var(--sky-deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #cce5eb;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-modal-btn-secondary:hover {
  background: #dceef3;
  border-color: var(--sky);
  transform: translateY(-1px);
}

.site-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--sky);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(75, 160, 197, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-modal-btn-primary:hover {
  background: var(--sky-deep);
  box-shadow: 0 6px 16px rgba(38, 125, 164, 0.32);
  transform: translateY(-1px);
}

/* Static Instruction modal content styles */
.instruction-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instruction-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instruction-section+.instruction-section {
  padding-top: 20px;
  border-top: 1px dashed #d0e1e6;
}

.instruction-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--sky-deep);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.instruction-intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.instruction-subtitle {
  margin: 8px 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.instruction-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instruction-list li {
  color: #384853;
  line-height: 1.55;
  font-size: 13px;
}

.instruction-list strong {
  color: var(--sky-deep);
}

/* ============================================================
   Site Footer (Legal Links for App Store Compliance)
   ============================================================ */
.site-footer {
  border-top: 1px solid #dbe5df;
  background: rgba(244, 248, 250, .95);
  padding: 20px clamp(20px, 5vw, 76px);
  margin-top: auto;
  position: relative;
  z-index: 10;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Footer color palette per language: RU = cool white-blue, UA = warm cream */
body[data-language="ru"] .site-footer,
.experience[data-language="ru"]~.site-footer,
[data-language="ru"] .site-footer {
  background: rgba(244, 248, 250, .95);
  border-top-color: #dbe5df;
}

body[data-language="ua"] .site-footer,
.experience[data-language="ua"]~.site-footer,
[data-language="ua"] .site-footer {
  background: rgba(255, 253, 245, .95);
  border-top-color: rgba(132, 164, 174, .22);
}

.site-footer-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--sky-deep);
  text-decoration: underline;
}

.site-footer-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}

/* Privacy & Offer link language switching via CSS (ru/ua) */
.footer-link-privacy-ua,
.offer-full-ua,
.offer-link-ua {
  display: none !important;
}

.footer-link-privacy-ru,
.offer-full-ru,
.offer-link-ru {
  display: inline !important;
}

body[data-language="ua"] .footer-link-privacy-ru,
body[data-language="ua"] .offer-full-ru,
body[data-language="ua"] .offer-link-ru,
.experience[data-language="ua"] .footer-link-privacy-ru,
.experience[data-language="ua"] .offer-full-ru,
.experience[data-language="ua"] .offer-link-ru,
[data-language="ua"] .footer-link-privacy-ru,
[data-language="ua"] .offer-full-ru,
[data-language="ua"] .offer-link-ru {
  display: none !important;
}

body[data-language="ua"] .footer-link-privacy-ua,
body[data-language="ua"] .offer-full-ua,
body[data-language="ua"] .offer-link-ua,
.experience[data-language="ua"] .footer-link-privacy-ua,
.experience[data-language="ua"] .offer-full-ua,
.experience[data-language="ua"] .offer-link-ua,
[data-language="ua"] .footer-link-privacy-ua,
[data-language="ua"] .offer-full-ua,
[data-language="ua"] .offer-link-ua {
  display: inline !important;
}

/* ============================================================
   FAQ Footer Link & Accordion Modal
   ============================================================ */

/* Footer FAQ Link visibility: shown in invited and active workspace states */
.footer-link-faq {
  display: none !important;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

body[data-workspace="invited"] .footer-link-faq,
body[data-workspace="active"] .footer-link-faq,
.experience[data-workspace="invited"]~.site-footer .footer-link-faq,
.experience[data-workspace="active"]~.site-footer .footer-link-faq,
[data-workspace="invited"] .footer-link-faq,
[data-workspace="active"] .footer-link-faq {
  display: inline-flex !important;
  align-items: center;
}

/* FAQ Modal Accordion Styles */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--sky-deep);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq-item {
  border: 1px solid #dce9ee;
  border-radius: 12px;
  background: rgba(248, 251, 251, 0.6);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--sky);
  box-shadow: 0 4px 14px rgba(75, 160, 197, 0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--sky-deep);
}

.faq-question-text {
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--sky-deep);
  font-weight: 800;
  font-size: 0.875rem;
  transition: transform 0.25s ease;
}

.faq-icon::after {
  content: "▼";
  font-size: 0.625rem;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem 0.875rem;
  border-top: 1px dashed #e4eff2;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.faq-answer p {
  margin: 0;
  color: #384853;
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* Animated finger pointer guide & canonical cold blue water ripples */
.reference-screen[data-screen="home"] {
  position: relative;
}

.reference-screen[data-screen="home"] .screen-hotspot {
  border-radius: 16px;
}

/* Finger element container */
.tap-finger-guide {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: finger-tap-sequence 14s ease-in-out 3s 1 forwards;
}

.tap-finger-guide .finger-emoji {
  font-size: 30px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
  display: block;
  z-index: 2;
}

/* Water Ripple Rings under the finger - UI/UX Pro Max Refined Translucent Ripple */
.tap-ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border-radius: 50%;
  border: 1px solid rgba(38, 125, 164, 0.4);
  background: rgba(38, 125, 164, 0.06);
  box-shadow: 0 0 10px rgba(38, 125, 164, 0.25);
  filter: blur(1.2px);
  pointer-events: none;
  z-index: 1;
  transform: scale(0.2);
  opacity: 0;
  animation: water-ripple-anim 14s ease-out 3s 1 forwards;
}

.tap-ripple-ring.ring-2 {
  animation-delay: 3.22s;
}

@keyframes water-ripple-anim {

  /* Button 1 tap ripple */
  5% {
    transform: scale(0.2);
    opacity: 1;
  }

  15% {
    transform: scale(4.0);
    opacity: 0;
  }

  /* Button 2 tap ripple */
  30% {
    transform: scale(0.2);
    opacity: 1;
  }

  40% {
    transform: scale(4.0);
    opacity: 0;
  }

  /* Button 3 tap ripple */
  55% {
    transform: scale(0.2);
    opacity: 1;
  }

  65% {
    transform: scale(4.0);
    opacity: 0;
  }

  /* Button 4 tap ripple */
  80% {
    transform: scale(0.2);
    opacity: 1;
  }

  90% {
    transform: scale(4.0);
    opacity: 0;
  }

  0%,
  17%,
  25%,
  42%,
  50%,
  67%,
  75%,
  92%,
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* Sequence of movement and scale (110% -> 90% -> 100%) */
@keyframes finger-tap-sequence {

  /* --- BUTTON 1: "Выбрать тему" --- */
  0% {
    top: 58.5%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0;
  }

  3% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.10);
    /* APPROACH 110% */
  }

  5.5% {
    transform: translate(-50%, -50%) scale(0.90);
    /* PRESS DOWN 90% */
  }

  8% {
    transform: translate(-50%, -50%) scale(1.00);
    /* RELEASE 100% */
  }

  17% {
    /* PAUSE on button 1 with ripple and neon glow */
    top: 58.5%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.00);
    opacity: 1;
  }

  21% {
    opacity: 0;
  }

  /* --- BUTTON 2: "Карточки" --- */
  25% {
    top: 67.8%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0;
  }

  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.10);
    /* APPROACH 110% */
  }

  30.5% {
    transform: translate(-50%, -50%) scale(0.90);
    /* PRESS DOWN 90% */
  }

  33% {
    transform: translate(-50%, -50%) scale(1.00);
    /* RELEASE 100% */
  }

  42% {
    /* PAUSE on button 2 with ripple and neon glow */
    top: 67.8%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.00);
    opacity: 1;
  }

  46% {
    opacity: 0;
  }

  /* --- BUTTON 3: "Свободный разговор" --- */
  50% {
    top: 75.3%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0;
  }

  53% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.10);
    /* APPROACH 110% */
  }

  55.5% {
    transform: translate(-50%, -50%) scale(0.90);
    /* PRESS DOWN 90% */
  }

  58% {
    transform: translate(-50%, -50%) scale(1.00);
    /* RELEASE 100% */
  }

  67% {
    /* PAUSE on button 3 with ripple and neon glow */
    top: 75.3%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.00);
    opacity: 1;
  }

  71% {
    opacity: 0;
  }

  /* --- BUTTON 4: "AI-собеседник" --- */
  75% {
    top: 82.8%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0;
  }

  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.10);
    /* APPROACH 110% */
  }

  80.5% {
    transform: translate(-50%, -50%) scale(0.90);
    /* PRESS DOWN 90% */
  }

  83% {
    transform: translate(-50%, -50%) scale(1.00);
    /* RELEASE 100% */
  }

  92% {
    /* PAUSE on button 4 with ripple and neon glow */
    top: 82.8%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.00);
    opacity: 1;
  }

  96%,
  100% {
    opacity: 0;
  }
}