/* Makyaj Stüdyosu (/makyaj-studyosu/, /en/makeup-studio/). Loaded only on the studio pages. */
.studio-hero .detail-lead { max-width: 68ch; }
.studio-privacy { margin-top: 22px; max-width: 72ch; padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--wash); font-size: 15px; line-height: 1.7; }
.studio-privacy p + p { margin-top: 6px; }
.studio { padding-bottom: 48px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.studio-main { position: sticky; top: calc(var(--mast, 84px) + 16px); min-width: 0; }
.studio h2 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 12px; }
.studio-input { border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); background: #fff; }
.studio-input-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 8px; }
.studio-drop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1 1 260px; padding: 18px; border: 1px dashed #8d8b88; cursor: pointer; }
.studio-drop.is-over { border-style: solid; border-color: var(--ink); background: var(--wash); }
.studio-drop .fine { margin-top: 0; }
.studio-drop-small { flex: none; border: 0; padding: 0; }
.studio-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio-file:focus-visible + .studio-drop-button { outline: 2px solid var(--ink); outline-offset: 4px; }
.studio-camera { margin-top: 16px; }
.studio-camera video { display: block; width: 100%; max-height: 60vh; background: #151515; transform: scaleX(-1); object-fit: contain; }
.studio-camera-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.studio-progress progress { width: 100%; height: 8px; margin-top: 18px; accent-color: var(--ink); }
.studio-status { min-height: 1.75em; margin-top: 12px; font-size: 15px; }
.studio-stage { margin: 14px 0 0; }
.studio-compare { --pos: 50%; --ar: .75; position: relative; line-height: 0; max-width: min(100%, calc(78vh * var(--ar))); margin-inline: auto; }
.studio-compare canvas { display: block; width: 100%; height: auto; }
.studio-compare [data-before] { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.studio-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.studio-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.studio-range input[type=range] { width: 100%; min-height: 44px; accent-color: var(--ink); }
.studio-range output { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.studio-compare-range { grid-template-columns: auto 1fr; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.studio-actions .add-status { flex-basis: 100%; }
.studio-controls { min-width: 0; }
.studio-locked { margin: 0 0 14px; padding: 12px 14px; background: var(--wash); color: var(--ink); }
.studio-panel { margin: 0; padding: 0; min-width: 0; }
.studio-panel:disabled { opacity: .55; }
.studio-section { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.studio-section:first-of-type { border-top: 1px solid var(--ink); }
.studio-section > label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.studio-section textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid #8d8b88; border-radius: 0; background: #fff; font-size: 16px; line-height: 1.6; resize: vertical; }
.studio-section textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.studio-section .button { margin-top: 12px; }
.studio-presets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio-preset { display: grid; align-content: start; gap: 2px; }
.studio-preset-button { display: grid; gap: 4px; width: 100%; min-height: 96px; padding: 14px; text-align: left; border: 1px solid #cfcac4; background: #fff; }
.studio-preset-button strong { font-weight: 600; font-size: 15px; }
.studio-preset-button span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.studio-preset-button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.studio-preset-button:disabled { cursor: default; }
.studio-preset .quiet-link { font-size: 13px; }
.studio-understood ul, .studio-reference-result ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.studio-reference-result ul { list-style: none; padding-left: 0; }
.studio-reference-result li { display: flex; align-items: center; gap: 10px; }
.studio-understood-title { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.studio-layer { margin: 0; padding: 14px 0 18px; border-top: 1px solid var(--line); min-width: 0; }
.studio-layer > legend { padding: 0; float: left; width: 100%; }
.studio-layer > legend + * { clear: both; }
.studio-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.studio-check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.studio-layer-toggle span { font-weight: 600; }
.studio-sub { margin: 4px 0 0; padding: 0; min-width: 0; }
.studio-sub > legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.studio-sub .look-pill { margin: 0 6px 6px 0; }
.studio-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px; border: 1px solid #cfcac4; font-size: 13px; cursor: pointer; }
.studio-swatch input[type=radio] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.studio-swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.studio-swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.studio-chip { display: inline-block; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--chip, #ccc); border: 1px solid rgba(0,0,0,.18); }
.studio-custom { padding-left: 4px; }
.studio-custom input[type=color] { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.studio-custom input[type=color]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.studio-how ul { margin: 14px 0 0; padding-left: 20px; max-width: 75ch; display: grid; gap: 10px; font-size: 15px; line-height: 1.8; }
.studio-how h2 { font-size: clamp(30px, 3vw, 44px); }
/* Phones / tablets: the preview sits above the controls, so a small live copy of it stays in reach
   while the visitor scrolls through the layers; tapping it goes back to the full before / after view. */
.studio-mini { display: none; }
@media (max-width: 1023px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-main { position: static; }
  .studio-mini { position: fixed; z-index: 22; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 4px; width: 112px; padding: 6px 6px 4px; border: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 10px 30px -12px rgba(20,19,21,.45); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; }
  .studio-mini canvas { display: block; width: 100%; height: auto; max-height: 132px; object-fit: contain; background: var(--wash); }
  .studio-mini:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  html.studio-mini-on { scroll-padding-bottom: 210px; }
}
@media (max-width: 700px) {
  .studio-mini { bottom: calc(84px + env(safe-area-inset-bottom)); }
  html.studio-mini-on { scroll-padding-bottom: 280px; }
}
@media (max-width: 520px) {
  .studio-presets { grid-template-columns: minmax(0, 1fr); }
  .studio-actions .button { width: 100%; }
  .studio-range { grid-template-columns: 1fr auto; }
  .studio-range > span { grid-column: 1 / -1; }
  .studio-compare-range { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .studio * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
