    .builder[data-theme="dark"] {
      --app-ink: #ffffff;
      --page-bg: #2a2a2a;
      --page-fg: #f4f4f4;
      --glass: rgba(255, 255, 255, 0.04);
      --glass-stroke: rgba(255, 255, 255, 0.2);
      --glass-shine: rgba(255, 255, 255, 0.18);
      --icon-btn-bg: rgba(255, 255, 255, 0.08);
      --icon-btn-stroke: rgba(255, 255, 255, 0.35);
      --icon-btn-fg: #fff;
      --icon-cut: #252525;
      --blob: #1c1c1c;
      --tab-bar: #252525;
      --tab-ink: #fff;
      --tab-shadow: 0 -4px 8px rgba(0, 0, 0, 0.31);
      --dots: rgba(255, 255, 255, 0.35);
      --dots-on: #fff;
      --pill-bg: rgba(255, 255, 255, 0.12);
      --pill-fg: rgba(255, 255, 255, 0.75);
      --hr: rgba(255, 255, 255, 0.1);
      --track: rgba(255, 255, 255, 0.13);
      --meta: rgba(255, 255, 255, 0.42);
      --req-line: rgba(255, 255, 255, 0.12);
      --demo-border: #555;
      --demo-input-bg: #333;
      --demo-btn-bg: #3a3a3a;
      --demo-panel: #333;
      --demo-btn-fg: #fff;
      --app-accent: #ff7145;
    }

    .builder[data-theme="light"] {
      --app-ink: #252525;
      --page-bg: #f3f3f3;
      --page-fg: #1c1c1c;
      --glass: rgba(255, 255, 255, 0.28);
      --glass-stroke: rgba(255, 255, 255, 0.75);
      --glass-shine: rgba(255, 255, 255, 0.55);
      --icon-btn-bg: rgba(255, 255, 255, 0.42);
      --icon-btn-stroke: rgba(255, 255, 255, 0.8);
      --icon-btn-fg: #252525;
      --icon-cut: #fff;
      --blob: #ffffff;
      --tab-bar: #fff;
      --tab-ink: #252525;
      --tab-shadow: 0 -4px 8px rgba(0, 0, 0, 0.12);
      --dots: rgba(37, 37, 37, 0.22);
      --dots-on: #252525;
      --pill-bg: rgba(37, 37, 37, 0.08);
      --pill-fg: rgba(37, 37, 37, 0.55);
      --hr: rgba(37, 37, 37, 0.1);
      --track: rgba(37, 37, 37, 0.12);
      --meta: rgba(37, 37, 37, 0.42);
      --req-line: rgba(37, 37, 37, 0.1);
      --demo-border: #ddd;
      --demo-input-bg: #fff;
      --demo-btn-bg: #fff;
      --demo-panel: #fff;
      --demo-btn-fg: #1c1c1c;
      --app-accent: #2a92a7;
    }



    .demo-block {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .demo-block[hidden] {
      display: none !important;
    }

    .demo-block + .demo-block {
      padding-top: 14px;
      border-top: 1px solid var(--demo-border);
    }

    .demo-block__title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      opacity: 0.45;
    }

    .demo-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
    }

    .demo-row--slide {
      display: grid;
      grid-template-columns: 108px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 10px;
    }

    .demo-row--slide > span {
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }

    .demo label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
    }

    .demo input[type="color"] {
      width: 36px;
      height: 28px;
      padding: 0;
      border: 1px solid var(--demo-border);
      border-radius: 6px;
      background: var(--demo-input-bg);
      cursor: pointer;
    }

    .demo button,
    .file__btn {
      height: 32px;
      padding: 0 12px;
      border: 0;
      border-radius: 999px;
      background: var(--demo-input-bg);
      color: var(--demo-btn-fg);
      box-shadow: 0 0 0 1px var(--demo-border);
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      line-height: 32px;
      cursor: pointer;
    }

    .file {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .file__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .file input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .demo input[type="range"] {
      width: 100%;
      min-width: 0;
      accent-color: var(--app-accent, #2a92a7);
      cursor: pointer;
    }

    .demo output {
      font-size: 13px;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
      text-align: right;
      opacity: 0.7;
    }

    .demo input[type="text"] {
      flex: 1;
      min-width: 0;
      height: 32px;
      padding: 0 10px;
      border: 1px solid var(--demo-border);
      border-radius: 8px;
      background: var(--demo-input-bg);
      color: var(--demo-btn-fg);
      font: inherit;
      font-size: 13px;
      font-weight: 500;
    }


    .phone-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .phone-col__cap {
      font-size: 13px;
      font-weight: 600;
      opacity: 0.5;
    }

    .wl-phone { width: 399px; flex: none; }

    .wl-phone__body {
      position: relative;
      padding: 12px;
      background: #111;
      border-radius: 54px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a2a2c;
    }

    .wl-phone__island {
      position: absolute;
      z-index: 5;
      left: 50%;
      top: 22px;
      width: 118px;
      height: 34px;
      transform: translateX(-50%);
      background: #111;
      border-radius: 20px;
    }

    .wl-screen {
      position: relative;
      width: 375px;
      height: 812px;
      overflow: hidden;
      border-radius: 42px;
      background: var(--app-bg);
      isolation: isolate;
    }

    .wl-photo {
      display: none;
      position: absolute;
      left: 50%;
      top: 50%;
      width: 140%;
      height: 140%;
      z-index: 0;
      transform: translate(-50%, -50%);
      object-fit: cover;
      object-position: var(--photo-x, 50%) var(--photo-y, 50%);
      filter: blur(var(--photo-blur, 0px));
      pointer-events: none;
    }

    .has-photo .wl-photo { display: block; }
    .has-photo .wl-bg { display: none; }

    .wl-bg {
      position: absolute;
      left: -18%;
      top: 18%;
      width: 150%;
      height: 52%;
      z-index: 0;
      opacity: 0.55;
      pointer-events: none;
    }

    .wl-bg svg { width: 100%; height: 100%; display: block; }

    .theme-switch {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      width: 100%;
      padding: 3px 0;
      background: none;
      box-shadow: none;
    }

    .theme-switch button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 44px;
      padding: 0 12px;
      border: 0;
      border-radius: 999px;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      opacity: 1;
      outline: 2px solid transparent;
      outline-offset: 2px;
    }

    .theme-switch [data-theme-set="light"] {
      background: #f4f4f6;
      color: #1d1d1f;
      box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
    }

    .theme-switch [data-theme-set="dark"] {
      background: #1d1d1f;
      color: #f5f5f7;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .theme-switch button.is-on {
      outline-color: var(--ink, #1d1d1f);
    }

    .theme-switch__icon {
      display: grid;
      place-items: center;
      width: 18px;
      height: 18px;
    }

    .glass {
      background: var(--glass);
      backdrop-filter: blur(12px) saturate(140%);
      -webkit-backdrop-filter: blur(12px) saturate(140%);
      border: 1px solid var(--glass-stroke);
      box-shadow: inset 0 1px 0 var(--glass-shine);
    }

    .app {
      position: relative;
      z-index: 1;
      height: 100%;
      color: var(--app-ink);
    }

    .app-head {
      flex: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 52px 24px 14px;
    }

    .icon-btn {
      width: 45px;
      height: 45px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: var(--icon-btn-bg);
      box-shadow: inset 0 0 0 1px var(--icon-btn-stroke);
      color: var(--icon-btn-fg);
    }

    .icon-btn svg { display: block; }

    .app-head__title {
      flex: 1;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
    }

    .app-head__bell { position: relative; }

    .badge {
      position: absolute;
      top: -12px;
      right: -10px;
      min-width: 29px;
      height: 29px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--app-accent);
      color: #fff;
      font-size: 16px;
      font-weight: 500;
    }

    .app-scroll {
      position: absolute;
      left: 0;
      right: 0;
      top: 111px;
      bottom: 60px;
      overflow: auto;
      scrollbar-width: none;
    }

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

    .stories {
      display: flex;
      gap: 8px;
      padding: 3px 10px 2px;
      margin-bottom: 15px;
      overflow: hidden;
    }

    .story {
      flex: none;
      width: 80px;
      height: 124px;
      overflow: hidden;
      border-radius: 13px;
      background: #fff;
    }

    .story--ring { box-shadow: 0 0 0 2px var(--app-accent); }

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

    .pad { padding: 0 20px; }

    .balance {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      margin-bottom: 15px;
      border-radius: 16px;
    }

    .balance img {
      width: 32px;
      height: 32px;
      transform: rotate(-12deg);
    }

    .balance__sum {
      flex: 1;
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .btn-accent {
      width: 142px;
      height: 32px;
      border: 0;
      border-radius: 8px;
      background: var(--app-accent);
      color: #fff;
      font: inherit;
      font-size: 14px;
      font-weight: 500;
    }

    .hello {
      padding: 10px 16px;
      margin-bottom: 10px;
      border-radius: 16px;
      text-align: center;
      font-size: 24px;
      font-weight: 700;
    }

    .dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2px;
      margin-bottom: 15px;
    }

    .dots i {
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 3px;
      background: var(--dots);
    }

    .dots i.is-on {
      width: 16px;
      background: var(--dots-on);
    }

    .panel {
      padding: 16px 19px;
      margin-bottom: 15px;
      border-radius: 16px;
    }

    .panel__head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .panel__head h2 { font-size: 16px; font-weight: 700; }

    .more {
      color: #edc601;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
    }

    .chips { display: flex; flex-wrap: wrap; gap: 8px; }

    .chip {
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid #848484;
      font-size: 14px;
      font-weight: 500;
      white-space: nowrap;
    }

    .plans-wrap {
      overflow: hidden;
      padding: 0 10px;
      margin-bottom: 6px;
    }

    .plans {
      display: flex;
      gap: 10px;
      width: max-content;
      transform: translateX(-303px);
    }

    .plan {
      flex: none;
      width: 320px;
      min-height: 298px;
      padding: 18px 20px 16px;
      border-radius: 20px;
    }

    .plan--july { min-height: 365px; }

    .plan--side { opacity: 0.55; }

    .plan__top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .plan__top h3 { font-size: 16px; font-weight: 700; }

    .plan__pill {
      min-width: 76px;
      height: 22px;
      padding: 0 8px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      background: var(--pill-bg);
      color: var(--pill-fg);
      font-size: 11px;
      font-weight: 500;
    }

    .plan__hr {
      height: 1px;
      margin-bottom: 14px;
      background: var(--hr);
    }

    .goal { margin-bottom: 14px; }

    .goal__row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .goal__name {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 500;
    }

    .goal__val {
      font-size: 13px;
      font-weight: 600;
    }

    .goal__track {
      display: flex;
      gap: 3px;
      height: 12px;
      margin-bottom: 4px;
    }

    .goal__track b,
    .goal__track i {
      display: block;
      flex: 1;
      border-radius: 3px;
    }

    .goal__track i { background: var(--track); }

    .goal__meta {
      font-size: 11px;
      color: var(--meta);
    }

    .c-green { color: #4cd86a; }
    .c-orange { color: #ff6b1c; }
    .c-teal { color: #2a92a7; }
    .c-violet { color: #7b5cf0; }
    .b-green { background: #4cd86a; }
    .b-orange { background: #ff6b1c; }
    .b-teal { background: #2a92a7; }
    .b-violet { background: #7b5cf0; }

    .reqs { display: flex; flex-direction: column; }

    .req {
      display: grid;
      grid-template-columns: 32px 1fr 16px;
      gap: 12px;
      align-items: start;
      padding: 16px 0 12px;
    }

    .req + .req { border-top: 1px solid var(--req-line); }

    .req img { display: block; width: 32px; height: 32px; }

    .req__title {
      color: #edc601;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
    }

    .req__status {
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
    }

    .req__date {
      margin-top: 4px;
      font-size: 12px;
      font-weight: 400;
    }

    .req__go {
      width: 16px;
      height: 16px;
      margin-top: 4px;
      opacity: 0.7;
    }

    .tabbar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3;
      height: 92px;
    }

    .tabbar__bar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 60px;
      background: var(--tab-bar);
      border-radius: 16px 16px 0 0;
      box-shadow: var(--tab-shadow);
    }

    .tab {
      position: absolute;
      top: 0;
      width: 75px;
      height: 92px;
      color: var(--tab-ink);
      font-size: 10px;
      font-weight: 500;
      line-height: 1;
      text-decoration: none;
    }

    .tab span {
      position: absolute;
      top: 69px;
      white-space: nowrap;
    }

    .tab svg { display: block; position: absolute; }

    .tab--home { left: 0; }
    .tab--home svg {
      left: 35px;
      top: 44px;
      width: 18px;
      height: 19px;
      filter: drop-shadow(0 1px 4px color-mix(in srgb, var(--app-accent) 72%, transparent));
    }
    .tab--home span { left: 21px; }

    .tab--cheki { left: 75px; }
    .tab--cheki svg { left: 33px; top: 43px; width: 16px; height: 18px; }
    .tab--cheki span { left: 32px; }

    .tab--scan { left: 150px; }
    .tab--scan span { left: 17px; }
    .tab--scan .scan {
      position: absolute;
      left: 10px;
      top: 6px;
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      background: var(--app-accent);
      background-image: none;
      box-shadow: 0 4px 10px color-mix(in srgb, var(--app-accent) 50%, transparent);
    }
    .tab--scan .scan svg { position: static; width: 22px; height: 23px; }

    .tab--pay { left: 225px; }
    .tab--pay svg { left: 24px; top: 42px; width: 20px; height: 20px; }
    .tab--pay span { left: 5px; }

    .tab--profile { left: 300px; }
    .tab--profile svg { left: 28px; top: 46px; width: 16px; height: 16px; }
    .tab--profile span { left: 6px; }

    .tab--profile svg.tab__ok {
      left: 44px;
      top: 30px;
    }

    .ios-screen {
      background: #d7eef6;
    }

    .ios-wall {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      pointer-events: none;
    }

    .ios-grid {
      position: absolute;
      left: 27px;
      right: 27px;
      top: 463px;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(4, 60px);
      justify-content: space-between;
      row-gap: 20px;
    }

    .ios-app {
      width: 60px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: #fff;
      text-decoration: none;
    }

    .ios-app[hidden] { display: none; }

    .ios-icon {
      width: 60px;
      height: 60px;
      border-radius: 13.4px;
      overflow: hidden;
      display: grid;
      place-items: center;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    }

    .ios-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .ios-icon svg { display: block; }

    .ios-app__name {
      max-width: 72px;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.15;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    }

    .ios-icon--brand { background: var(--app-accent, #2a92a7); color: #fff; font-size: 26px; font-weight: 700; }
    .ios-icon.has-img { background: #ddd; }

    .ios-icon--mbonus {
      background: none;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    }

    .ios-icon--mbonus img,
    .ios-icon--mbonus svg {
      width: 100%;
      height: 100%;
    }

.builder {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.phones-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 18px;
}

.builder .phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
}

.builder .phone-col__cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  opacity: 1;
}

.phone-col__scale {
  width: 100%;
  aspect-ratio: 399 / 836;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: calc(54px * var(--s, 0.58));
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.16));
}

.phone-col__scale .wl-phone {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  transform: scale(var(--s, 0.58));
  transform-origin: top left;
}

.builder .wl-phone__body {
  box-shadow: inset 0 0 0 2px #2a2a2c;
}

.builder .wl-phone,
.builder .wl-phone * {
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
}

.builder .demo {
  width: 100%;
}

.builder .demo,
.builder .demo label,
.builder .demo-row--slide > span {
  color: var(--ink);
}

.builder .demo-row,
.builder .demo-row--slide,
.builder .theme-switch {
  width: 100%;
}

.builder .theme-switch {
  background: none;
  box-shadow: none;
}

.builder .theme-switch button {
  height: 44px;
  border-radius: 999px;
  opacity: 1;
}

.builder .theme-switch [data-theme-set="light"] {
  background: #f4f4f6;
  color: #1d1d1f;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
}

.builder .theme-switch [data-theme-set="dark"] {
  background: #1d1d1f;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.builder .theme-switch button.is-on {
  background: #f4f4f6;
  color: #1d1d1f;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.builder .theme-switch [data-theme-set="dark"].is-on {
  background: #1d1d1f;
  color: #f5f5f7;
}

.builder .demo-row > label {
  flex: 1 1 auto;
  min-width: 0;
}

.builder .demo-row--colors {
  gap: 12px;
}

.builder .demo-row--colors > label {
  flex: 0 0 auto;
}

.builder .demo input[type="text"] {
  width: 100%;
}

.builder .demo-block + .demo-block { border-color: var(--line); }

.builder .demo-block__title {
  color: var(--ink-3);
  opacity: 1;
}

.builder .demo button[data-preset].is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.builder .file__btn,
.builder .demo button:not([data-theme-set]) {
  background: var(--plate);
  color: var(--ink);
  box-shadow: none;
}

.builder .demo input[type="text"],
.builder .demo input[type="color"] {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.builder .demo output { color: var(--ink-3); opacity: 1; }

.hint { margin-top: 6px; color: var(--ink-3); font-size: 12px; }

.builder .demo-row--icon .hint {
  margin: 0;
  flex: 1 1 160px;
}

@media (max-width: 1000px) {
  .builder { max-width: 360px; margin: 0 auto; width: 100%; }
}

@media (max-width: 560px) {
  .phones-preview { gap: 12px; }
}
