/* Studio 2.0 — isolated photographic layer for the review copy only. */

#stage,
#brStage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171310;
  box-shadow:
    inset 0 0 0 1px rgba(232, 221, 205, 0.12),
    inset 0 -36px 80px rgba(20, 13, 10, 0.08);
}

.v2-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-photo.is-current {
  opacity: 1;
}

#stage.v2-photo-active #cv,
#brStage.v2-photo-active #brCv {
  opacity: 0;
}

#stage #cv,
#brStage #brCv {
  transition: opacity 220ms ease;
}

#stage > .stage-badge,
#stage > .stage-tool,
#stage > #scan,
#brStage > .stage-badge {
  z-index: 4;
}

.v2-real-badge {
  position: absolute;
  z-index: 5;
  top: 14px;
  bottom: auto;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 247, 235, 0.3);
  background: rgba(22, 15, 19, 0.78);
  color: #f5eee5;
  font: 700 10px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: calc(100% - 32px);
  line-height: 1.25;
  white-space: normal;
  backdrop-filter: blur(12px) saturate(0.9);
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
  pointer-events: none;
}

/* One disclosure only: the old procedural badge is false in photo mode. */
#stage.v2-photo-active > #stageBadge,
#stage.v2-photo-active > .stage-badge:not(.v2-real-badge),
#stage.v2-procedural-active > #stageBadge,
#stage.v2-procedural-active > .stage-badge:not(.v2-real-badge),
#brStage.v2-photo-active > .stage-badge:not(.v2-real-badge) {
  display: none !important;
}

.v2-photo-caption {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 14px;
  max-width: min(66%, 330px);
  padding: 9px 12px 10px;
  border-left: 2px solid #d9554d;
  background: rgba(22, 15, 19, 0.76);
  color: rgba(255, 247, 235, 0.9);
  font: 600 11px/1.35 Manrope, system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-align: right;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.v2-photo-loading .v2-real-badge::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: #d9554d;
  animation: v2-pulse 800ms ease-in-out infinite alternate;
}

@keyframes v2-pulse {
  from { opacity: 0.35; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

/* The photographic demo is a curated whole-hand proof stage, not a per-nail editor. */
#scEditor.v2-photo-editor #fingers,
#scEditor.v2-photo-editor .statusbar,
#scEditor.v2-photo-editor #editorTabs,
#scEditor.v2-photo-editor #paneShared,
#scEditor.v2-photo-editor #tabKolor,
#scEditor.v2-photo-editor #tabEfekt,
#scEditor.v2-photo-editor #tabKsztalt,
#scEditor.v2-photo-editor #tabDopasuj,
#scEditor.v2-photo-editor .scope,
#scEditor.v2-photo-editor .v2-procedural-slots,
#scEditor.v2-photo-editor #btnFinish {
  display: none !important;
}

#scEditor.v2-photo-editor #msg {
  min-height: 0;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-left: 2px solid #d9554d;
  background: rgba(243, 236, 230, 0.055);
  color: rgba(243, 236, 230, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

#scEditor.v2-photo-editor #nailWhen {
  margin-top: 18px;
}

#scEditor.v2-photo-editor #nailWhenNote {
  display: block;
  margin-top: 9px;
  padding: 0 2px;
  color: rgba(243, 236, 230, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

#scEditor.v2-photo-editor #nailWhenNote.v2-warning {
  color: #e6b0a5;
}

.v2-nail-axis {
  margin: 18px 16px 4px;
  padding: 14px;
  border: 1px solid rgba(243, 236, 230, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(201, 139, 94, 0.14), transparent 42%),
    rgba(36, 24, 29, 0.74);
}

.v2-nail-axis > .panel-label {
  margin: 0 0 10px;
}

.v2-nail-axis-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v2-nail-axis-tabs button {
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 11px;
  color: rgba(243, 236, 230, 0.76);
  background: rgba(14, 10, 12, 0.62);
  font: 650 11px/1.25 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.v2-nail-axis-tabs button.on {
  border-color: rgba(217, 85, 77, 0.82);
  color: #fff7ed;
  background: rgba(92, 29, 31, 0.72);
  box-shadow: 0 0 0 1px rgba(217, 85, 77, 0.22);
}

.v2-nail-axis-intro {
  margin: 11px 2px 10px;
  color: rgba(243, 236, 230, 0.7);
  line-height: 1.5;
}

.v2-set-open {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 85, 77, 0.58);
  border-radius: 12px;
  color: #fff7ed;
  background:
    linear-gradient(104deg, rgba(183, 24, 53, 0.2), rgba(244, 222, 217, 0.07) 48%, rgba(226, 53, 63, 0.14)),
    rgba(14, 10, 12, 0.72);
  font: 700 11px/1.35 Manrope, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.v2-set-open::after {
  content: "→";
  color: #ff9a96;
  font-size: 17px;
  text-align: right;
}

.v2-set-open[hidden] {
  display: none !important;
}

.v2-set-open-swatch {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, #f4ded9 0 33%, #b71835 33% 66%, #e2353f 66%);
  box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.26), 0 4px 12px rgba(0, 0, 0, 0.26);
}

.v2-set-gallery {
  margin: 12px 16px 4px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(243, 236, 230, 0.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(226, 53, 63, 0.13), transparent 31%),
    radial-gradient(circle at 4% 18%, rgba(244, 222, 217, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(36, 23, 27, 0.98), rgba(15, 10, 12, 0.98));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.v2-set-gallery[hidden] {
  display: none !important;
}

.v2-set-badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(255, 247, 235, 0.3);
  border-radius: 999px;
  background: rgba(22, 15, 19, 0.58);
  color: #f5eee5;
  font: 700 9px/1.25 Manrope, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-set-gallery > h2 {
  max-width: 18ch;
  margin: 12px 0 7px;
  color: #fff7ed;
  font: 750 clamp(24px, 5vw, 38px)/1.02 Manrope, system-ui, sans-serif;
  letter-spacing: -0.045em;
}

.v2-set-intro {
  max-width: 65ch;
  margin: 0 0 18px;
  color: rgba(243, 236, 230, 0.68);
  line-height: 1.55;
}

.v2-set-grid {
  display: grid;
  gap: 13px;
}

.v2-set-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 247, 235, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--v2-set-hand) 14%, transparent), transparent 45%, color-mix(in srgb, var(--v2-set-foot) 13%, transparent)),
    rgba(17, 12, 14, 0.76);
}

.v2-set-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--v2-set-hand) 0 49.5%, rgba(255, 255, 255, 0.32) 49.5% 50.5%, var(--v2-set-foot) 50.5%);
}

.v2-set-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: baseline;
  margin-bottom: 11px;
}

.v2-set-card > header > span {
  grid-row: 1 / span 2;
  color: rgba(243, 236, 230, 0.48);
  font: 700 9px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.v2-set-card h3 {
  margin: 0;
  color: #fff7ed;
  font: 750 20px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.v2-set-card > header p {
  margin: 2px 0 0;
  color: rgba(243, 236, 230, 0.66);
  font: 550 10px/1.35 Manrope, system-ui, sans-serif;
}

.v2-set-frames {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.v2-set-frames::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: rgba(255, 247, 235, 0.36);
  transform: translateX(-50%);
}

.v2-set-frame {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 235, 0.2);
  border-radius: 10px;
  background: #2a1e1c;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.v2-set-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.v2-set-frame-foot img {
  object-position: 50% 42%;
}

.v2-set-frame figcaption {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--v2-set-hand);
  background: rgba(22, 15, 19, 0.78);
  color: #fff7ed;
  font: 700 9px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.v2-set-frame-foot figcaption {
  border-left-color: var(--v2-set-foot);
}

.v2-set-placeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.v2-set-placeholders p {
  margin: 0;
  padding: 9px 10px;
  border: 1px dashed rgba(243, 236, 230, 0.2);
  border-radius: 9px;
  color: rgba(243, 236, 230, 0.76);
  background: rgba(10, 7, 8, 0.34);
  font: 600 10px/1.35 Manrope, system-ui, sans-serif;
}

.v2-set-note {
  margin: 11px 0 0;
  color: rgba(243, 236, 230, 0.66);
  line-height: 1.5;
}

.v2-set-book {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin-top: 13px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.v2-set-close {
  display: block;
  min-height: 42px;
  margin: 7px auto -4px;
}

#scEditor.v2-set-mode #stage,
#scEditor.v2-set-mode #nailWhen,
#scEditor.v2-set-mode #nailWhenNote,
#scEditor.v2-set-mode #msg,
#scEditor.v2-set-mode #v2NailAxis,
#scEditor.v2-set-mode #lookRail,
#scEditor.v2-set-mode .v2-service-pane,
#scEditor.v2-set-mode .pricebar {
  display: none !important;
}

.v2-axis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v2-axis-grid[hidden] {
  display: none !important;
}

.v2-axis-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 12px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.68);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.v2-axis-card:hover {
  transform: translateY(-1px);
}

.v2-axis-card.on {
  border-color: rgba(217, 85, 77, 0.82);
  background: rgba(80, 27, 30, 0.62);
  box-shadow: 0 0 0 1px rgba(217, 85, 77, 0.2);
}

.v2-axis-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 44%;
  background: #21171b;
}

.v2-axis-card-copy {
  display: block;
  min-height: 68px;
  padding: 9px 10px 10px;
}

.v2-axis-card-copy strong,
.v2-axis-card-copy small {
  display: block;
}

.v2-axis-card-copy strong {
  color: #f3ece6;
  font: 700 11px/1.32 Manrope, system-ui, sans-serif;
}

.v2-axis-card-copy small {
  margin-top: 4px;
  color: rgba(243, 236, 230, 0.58);
  font: 500 10px/1.35 Manrope, system-ui, sans-serif;
}

#scEditor.v2-axis-shape #stage > .stage-tool,
#scEditor.v2-axis-pedicure #stage > .stage-tool {
  display: none !important;
}

#scEditor.v2-axis-shape .v2-colour-only,
#scEditor.v2-axis-pedicure .v2-colour-only,
#scEditor.v2-axis-shape #msg,
#scEditor.v2-axis-pedicure #msg {
  display: none !important;
}

#scEditor.v2-axis-pedicure #stage .v2-photo {
  object-position: 50% 42%;
}

#nailWhen button.v2-disabled,
#nailWhen button:disabled,
#brWhen button.v2-disabled,
#brWhen button:disabled {
  opacity: 0.38;
  filter: grayscale(0.75);
  cursor: not-allowed;
  transform: none !important;
}

#brWhenNote {
  display: block;
  margin: 9px 2px 0;
  color: rgba(243, 236, 230, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

#brWhenNote.v2-warning {
  color: #e6b0a5;
}

.v2-scope-note {
  position: relative;
  margin: 12px 0 0;
  padding: 11px 12px 11px 15px;
  border-left: 2px solid rgba(201, 139, 94, 0.78);
  background: rgba(243, 236, 230, 0.045);
  color: rgba(243, 236, 230, 0.74);
  font: 500 11px/1.55 Manrope, system-ui, sans-serif;
  text-wrap: pretty;
}

.v2-scope-note.v2-limited {
  border-left-color: #d9554d;
  color: #e6b0a5;
}

#brStage[data-photo-tone="limited"] .v2-real-badge {
  border-color: rgba(230, 176, 165, 0.46);
  background: rgba(64, 24, 28, 0.86);
  color: #ffe9e4;
}

#brStage[data-photo-tone="limited"] .v2-photo-caption {
  border-left-color: #e6b0a5;
  background: rgba(48, 20, 24, 0.86);
}

#scBrows #brSave:disabled,
#scBrows #brStory:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
}

/* Each lookbook thumbnail is a crop of its exact stage photo, packed into one 38 KB sprite. */
#lookRail .look .duo.v2-photo-thumb {
  position: relative;
  display: block;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(243, 236, 230, 0.14);
  border-radius: 12px;
  background-image: var(--v2-lookbook-image) !important;
  background-repeat: no-repeat !important;
  background-size: 1300% 100% !important;
  background-color: #251a1f;
  box-shadow: inset 0 -28px 40px rgba(22, 15, 19, 0.16);
}

#lookRail .look .duo.v2-photo-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(to bottom, transparent, rgba(22, 15, 19, 0.28));
  pointer-events: none;
}

#lookRail .look .duo.v2-photo-thumb > canvas,
#lookRail .look .duo.v2-photo-thumb > img {
  visibility: hidden !important;
}

#lookRail .look .duo.v2-photo-thumb.v2-photo-thumb-direct {
  background-image: var(--v2-direct-image) !important;
  background-position: 50% 38% !important;
  background-size: cover !important;
}

#lookRail .look.v2-photo-selected {
  border-color: rgba(217, 85, 77, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(217, 85, 77, 0.32), 0 12px 34px rgba(0, 0, 0, 0.2);
}

/* Гасим образ без кадра ТОЛЬКО в фото-режиме демо-руки: в режиме своего
   фото ногти рисует движок, и там доступны все цвета палитры. Без этого
   уточнения снятие образа из LOOK_STATES убивало бы рабочий путь. */
body.v2-demo-mode #lookRail .look.v2-photo-unsupported {
  opacity: 0.42;
  pointer-events: none;
}

.v2-photo-book {
  display: none !important;
}

/* Normal flow prevents the mobile price panel from covering the lookbook. */
#scEditor.v2-photo-editor .pricebar {
  position: relative !important;
  inset: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(243, 236, 230, 0.12);
  border-radius: 16px;
  background: rgba(22, 15, 19, 0.92);
  box-shadow: none !important;
  transform: none !important;
}

#scEditor.v2-photo-editor .pricebar .v2-photo-book {
  display: inline-flex !important;
  min-height: 48px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#scEditor.v2-photo-editor {
  padding-bottom: 26px !important;
}

.v2-brow-ready {
  margin: 16px 0 12px;
  padding: 14px;
  border: 1px solid rgba(243, 236, 230, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(201, 139, 94, 0.14), transparent 42%),
    rgba(36, 24, 29, 0.74);
}

.v2-brow-ready .panel-label {
  margin: 0;
}

.v2-brow-ready-intro {
  margin: 6px 0 12px;
  max-width: 54ch;
}

.v2-brow-ready-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v2-ready-look {
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 12px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.66);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.v2-ready-look:hover,
.v2-ready-look:focus-visible {
  border-color: rgba(201, 139, 94, 0.7);
  transform: translateY(-1px);
}

.v2-ready-look.on {
  border-color: var(--copper);
  background: rgba(201, 139, 94, 0.13);
  box-shadow: 0 0 0 1px rgba(201, 139, 94, 0.18);
}

.v2-ready-look strong,
.v2-ready-look span {
  display: block;
}

.v2-ready-look strong {
  font-size: 12.5px;
  line-height: 1.28;
}

.v2-ready-look span {
  margin-top: 5px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.32;
}

.v2-brow-more {
  margin-top: 10px !important;
  min-height: 44px;
}

/* Entry hierarchy: three decisions first; capture methods stay nested. */
.studio-entry-heading {
  margin: 0 0 7px;
  color: var(--milk);
  font: 750 clamp(24px, 6vw, 34px)/1.04 Manrope, system-ui, sans-serif;
  letter-spacing: -0.04em;
}

.studio-entry-lead {
  max-width: 46ch;
  margin: 0 0 16px;
  line-height: 1.5;
}

.studio-entry-main {
  min-height: 58px;
  margin: 0;
  font-size: 15px;
  box-shadow: 0 15px 36px rgba(154, 36, 42, 0.28);
}

.studio-entry-secondary {
  min-height: 48px;
  margin-top: 9px;
}

.studio-entry-tertiary {
  margin-top: 4px;
}

.studio-entry-photo-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border-left: 2px solid rgba(201, 139, 94, 0.64);
  background: rgba(243, 236, 230, 0.045);
}

.studio-entry-photo-choices[hidden] {
  display: none !important;
}

.studio-entry-photo-choices .btn {
  min-height: 46px;
  margin: 0;
  padding: 9px 7px;
  /* Было 10.5px. Это три ГЛАВНЫЕ кнопки режима своего фото — «Zrób
     zdjęcie», «Wybierz z galerii», «Podgląd na żywo». Единственный
     выбор на экране не может быть подписан мельче нормы сайта. */
  font-size: 11.5px;
  line-height: 1.25;
}

/* Independent hands + feet builder. Presets are shortcuts, never packages. */
.v2-set-section-label {
  margin: 18px 0 8px;
}

.v2-set-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v2-set-preset,
.v2-set-choice {
  min-width: 0;
  border: 1px solid rgba(243, 236, 230, 0.14);
  border-radius: 11px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.68);
  font-family: Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.v2-set-preset {
  min-height: 72px;
  padding: 10px;
  text-align: left;
}

.v2-set-preset strong,
.v2-set-preset span {
  display: block;
}

.v2-set-preset strong {
  font-size: 11px;
}

.v2-set-preset span {
  margin-top: 5px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.35;
}

.v2-set-preset.on,
.v2-set-choice.on {
  border-color: rgba(217, 85, 77, 0.86);
  background: rgba(92, 29, 31, 0.68);
  box-shadow: 0 0 0 1px rgba(217, 85, 77, 0.2);
}

.v2-set-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v2-set-selector h3 {
  margin: 0 0 7px;
  color: var(--milk);
  font: 700 13px/1.2 Manrope, system-ui, sans-serif;
}

.v2-set-choice-grid {
  display: grid;
  gap: 6px;
}

.v2-set-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  overflow: hidden;
  padding: 4px 8px 4px 4px;
  text-align: left;
}

.v2-set-choice img {
  width: 42px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.v2-set-choice span {
  overflow-wrap: anywhere;
  font-size: 9.5px;
  line-height: 1.2;
}

.v2-set-preview {
  margin-top: 13px;
}

/* Honest procedural geometry: deliberately diagrammatic, not photographic. */
.v2-shape-schematic {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(243, 236, 230, 0.14);
  border-radius: 13px;
  background: rgba(10, 7, 8, 0.38);
}

.v2-shape-schematic.v2-shape-fallback {
  border-style: dashed;
  border-color: rgba(201, 139, 94, 0.52);
}

.v2-shape-schematic[hidden] {
  display: none !important;
}

.v2-schematic-badge {
  display: inline-flex;
  padding: 6px 8px;
  border: 1px solid rgba(201, 139, 94, 0.46);
  border-radius: 999px;
  color: #ddb08c;
  font: 750 8px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.13em;
}

.v2-shape-diagram {
  --v2-shape-length: 3;
  display: flex;
  height: calc(86px + var(--v2-shape-length) * 9px);
  margin: 13px 0 11px;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  transition: height 160ms ease;
}

.v2-shape-diagram-nail {
  display: block;
  width: 42px;
  height: calc(66px + var(--v2-shape-length) * 8px);
  border: 1px solid rgba(255, 247, 235, 0.58);
  border-radius: 48% 48% 34% 34%;
  background: linear-gradient(155deg, rgba(217, 85, 77, 0.34), rgba(244, 222, 217, 0.09));
  box-shadow: inset 8px 5px 14px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 100%;
}

.v2-shape-diagram-left { transform: scale(.82) rotate(-7deg); }
.v2-shape-diagram-right { transform: scale(.82) rotate(7deg); }
.v2-shape-diagram[data-shape="square"] .v2-shape-diagram-nail { border-radius: 7px 7px 30% 30%; }
.v2-shape-diagram[data-shape="soft"] .v2-shape-diagram-nail { border-radius: 16px 16px 32% 32%; }
.v2-shape-diagram[data-shape="oval"] .v2-shape-diagram-nail { border-radius: 48% 48% 34% 34%; }
.v2-shape-diagram[data-shape="almond"] .v2-shape-diagram-nail { clip-path: polygon(50% 0, 83% 16%, 100% 58%, 87% 100%, 13% 100%, 0 58%, 17% 16%); }
.v2-shape-diagram[data-shape="ballerina"] .v2-shape-diagram-nail { clip-path: polygon(28% 0, 72% 0, 94% 58%, 87% 100%, 13% 100%, 6% 58%); }
.v2-shape-diagram[data-shape="stiletto"] .v2-shape-diagram-nail { clip-path: polygon(50% 0, 82% 35%, 94% 72%, 84% 100%, 16% 100%, 6% 72%, 18% 35%); }

.v2-shape-label {
  margin: 0 0 7px;
}

.v2-shape-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

/* 23.08 Claude: было min-height 43px и шрифт 8.5px — палец промахивается,
   а текст мельче всего, что есть на сайте (подписи работ подняли до 13,5px
   как раз по этой причине). Норма попадания 44, шрифт 11. */
.v2-shape-family {
  min-height: 44px;
  padding: 6px 4px;
  border: 1px solid rgba(243, 236, 230, 0.14);
  border-radius: 8px;
  color: var(--dim);
  background: rgba(14, 10, 12, 0.62);
  font: 650 11px/1.2 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.v2-shape-family.on {
  border-color: rgba(217, 85, 77, 0.84);
  color: #fff7ed;
  background: rgba(92, 29, 31, 0.68);
}

.v2-shape-length {
  display: flex;
  margin: 13px 0 6px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 10px;
}

.v2-shape-length strong {
  color: var(--milk);
  font-size: 11px;
}

#v2ShapeLength {
  width: 100%;
  accent-color: #d9554d;
}

.v2-schematic-note {
  margin: 8px 0 0;
  line-height: 1.45;
}

.v2-schematic-badge[hidden],
.v2-shape-diagram[hidden],
.v2-schematic-note[hidden] {
  display: none !important;
}

.v2-pedicure-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.v2-palette-panel,
.v2-finish-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 236, 230, 0.13);
}

.v2-palette-panel[hidden],
.v2-finish-panel[hidden],
.v2-finish-options[hidden] {
  display: none !important;
}

.v2-palette-panel h3,
.v2-finish-panel h3 {
  margin: 0 0 5px;
  color: var(--milk);
  font: 750 15px/1.25 Manrope, system-ui, sans-serif;
}

.v2-palette-panel > .tiny,
.v2-finish-panel > .tiny {
  margin: 0 0 11px;
  color: var(--dim);
  line-height: 1.45;
}

.v2-palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.v2-palette-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas: "circle name" "circle source";
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 7px;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 10px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.58);
  text-align: left;
  cursor: pointer;
}

.v2-palette-option.on {
  border-color: rgba(217, 85, 77, 0.88);
  background: rgba(92, 29, 31, 0.66);
  box-shadow: 0 0 0 1px rgba(217, 85, 77, 0.2);
}

.v2-palette-circle {
  grid-area: circle;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 7px 10px rgba(255, 255, 255, 0.18), 0 4px 9px rgba(0, 0, 0, 0.24);
}

.v2-palette-name {
  grid-area: name;
  overflow-wrap: anywhere;
  /* Было 9px. Это НАЗВАНИЕ ЦВЕТА — то, что клиентка ищет глазами
     в сетке из 32 кнопок. Мельче него на сайте не было ничего. */
  font: 650 11px/1.2 Manrope, system-ui, sans-serif;
}

.v2-source-badge {
  grid-area: source;
  justify-self: start;
  display: inline-flex;
  padding: 2px 5px;
  border-radius: 999px;
  /* Было 6.5px — самый мелкий текст на всём сайте. И это ровно та
     пометка, ради которой 25.08 разбирали подмену кадров: она говорит
     клиентке, настоящий перед ней снимок или подбор движком. Смысла
     в честной пометке нет, если её не прочесть. */
  font: 750 11px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.v2-source-badge.is-photo {
  border: 1px solid rgba(217, 85, 77, 0.55);
  color: #ffaaa2;
}

.v2-source-badge.is-procedural {
  border: 1px solid rgba(201, 139, 94, 0.5);
  color: #ddb08c;
}

.v2-palette-status {
  margin: 10px 0 0;
  color: #fff7ed;
  font: 700 11px/1.35 Manrope, system-ui, sans-serif;
}

.v2-lucky-button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(201, 139, 94, 0.62);
  border-radius: 11px;
  color: #fff7ed;
  background: linear-gradient(110deg, rgba(201, 139, 94, 0.22), rgba(92, 29, 31, 0.66));
  font: 750 11px/1.25 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.v2-finish-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.v2-finish-types button {
  min-height: 56px;
  padding: 9px;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 10px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.58);
  text-align: left;
  cursor: pointer;
}

.v2-finish-types button strong,
.v2-finish-types button span {
  display: block;
}

.v2-finish-types button strong { font-size: 11.5px; }
/* Было 8px — доплата «+35 zł · 20 min». Цена доплаты обязана читаться. */
.v2-finish-types button span { margin-top: 4px; color: #ddb08c; font-size: 11px; }

.v2-finish-types button.on,
.v2-finish-photo.on {
  border-color: rgba(217, 85, 77, 0.88);
  background: rgba(92, 29, 31, 0.66);
}

.v2-finish-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.v2-finish-options > .panel-label {
  grid-column: 1 / -1;
  margin: 0 0 1px;
}

.v2-finish-photo {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 10px;
  color: var(--milk);
  background: rgba(14, 10, 12, 0.58);
  text-align: left;
  cursor: pointer;
}

.v2-finish-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #160f13;
}

.v2-finish-photo > span {
  display: grid;
  min-height: 48px;
  padding: 7px 8px;
  align-content: center;
  gap: 5px;
  font: 650 9px/1.25 Manrope, system-ui, sans-serif;
}

.v2-real-works {
  margin: 13px 0 0;
}

.v2-real-works-rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.v2-real-works img {
  flex: 0 0 108px;
  width: 108px;
  height: auto;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 9px;
  object-fit: contain;
  background: #160f13;
}

.v2-real-works figcaption {
  margin-top: 6px;
  color: var(--dim);
  /* Было 8px. Подпись под настоящими работами салона. */
  font: 600 11px/1.4 Manrope, system-ui, sans-serif;
}

.v2-nail-breakdown {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(243, 236, 230, 0.13);
  border-radius: 10px;
  background: rgba(14, 10, 12, 0.46);
}

.v2-nail-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  color: var(--dim);
  /* Было 9px. Здесь ЦЕНА и время визита — «Hybryda · 145 zł»,
     «Orientacyjnie · 145 zł · 90 min». То, ради чего клиентка пришла,
     не может быть набрано мельче всего остального на экране. */
  font: 600 11px/1.35 Manrope, system-ui, sans-serif;
}

.v2-nail-breakdown strong { color: var(--milk); white-space: nowrap; }
.v2-nail-breakdown .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(243, 236, 230, 0.13); color: var(--milk); }

.v2-set-frame.is-procedural::before {
  content: "DOBÓR · NIE FOTO";
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(22, 15, 19, 0.84);
  color: #ddb08c;
  /* Было 6.5px. Та же пометка «подбор, а не фото» — на кадре комплекта. */
  font: 750 11px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.08em;
}

#brPaneB [hidden],
#brPresets[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .v2-real-badge {
    top: 10px;
    bottom: auto;
    left: 10px;
    min-height: 29px;
    padding-inline: 9px;
    /* Было 8px. На телефоне значок ужимали сильнее, чем на десктопе, —
       ровно наоборот тому, что нужно: экран меньше, а текст мельче.
       11px — базовый размер этого ярлыка, ниже него не опускаемся. */
    font-size: 11px;
  }

  .v2-photo-caption {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 7px 9px 8px;
    /* Было 9px. Это подпись под кадром — она объясняет клиентке, ЧТО
       ей показали («Laminacja rzęs · własne włoski»). Главный поясняющий
       текст экрана не может быть самым мелким на сайте. 11px — база. */
    font-size: 11px;
    text-align: left;
  }

  .v2-set-gallery {
    margin: 10px 10px 3px;
    padding: 14px 10px;
  }

  .v2-set-frame figcaption {
    right: 6px;
    bottom: 6px;
    padding: 5px 6px;
    font-size: 7.5px;
  }

  #lookRail .look .duo.v2-photo-thumb {
    min-height: 98px;
  }

  #scEditor.v2-photo-editor .pricebar {
    margin-top: 18px !important;
    padding: 14px !important;
  }

  .v2-brow-ready {
    margin-top: 12px;
    padding: 12px;
  }

  .v2-set-presets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .v2-set-placeholders {
    grid-template-columns: 1fr;
  }

  .studio-entry-photo-choices,
  .v2-set-selectors {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-photo,
  #stage #cv,
  #brStage #brCv {
    transition: none;
  }

  .v2-photo-loading .v2-real-badge::after {
    animation: none;
  }
}

/* Сцена не уезжает из виду, пока клиентка выбирает — 25.08.2026.

   Замер на 390 × 844: сцена с рукой занимает 108–383 от верха документа,
   палитра 566–1636, лента образов 2422–2637. То есть уже при выборе
   из нижней половины палитры рука за краем экрана, а до ленты образов
   её не видно на две тысячи пикселей. Клиентка нажимает цвет и не видит,
   что изменилось: правило «после нажатия видно, что изменилось, без
   прокрутки» нарушалось на всём главном сценарии.

   Липнет только на телефоне и только в демо-режиме — там, где замер
   и сделан. Всё трое (сцена, палитра, лента) лежат внутри #scEditor,
   поэтому sticky держится на протяжении всего выбора. Родителей
   с overflow, ломающих sticky, на этом пути нет — проверено. */
@media (max-width: 768px) {
  body.v2-demo-mode #stage {
    position: sticky;
    top: 6px;
    z-index: 4;
  }
}
