.studio { max-width: 1500px; margin: 0 auto; }
.studio .area-head { min-height: 118px; margin-bottom: 16px; }
.studio .area-head h1 { margin: 4px 0; color: #fff; }
.studio .area-head p:not(.eyebrow) { margin: 0; opacity: .9; }
.studio-tabs { display: flex; gap: 9px; overflow-x: auto; padding: 3px 2px 11px; scrollbar-width: none; }
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tab { display: inline-flex; min-width: max-content; min-height: 46px; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 15px; color: #535b78; background: #e9ebf7; font: inherit; font-weight: 700; }
.studio-tab svg { width: 18px; }
.studio-tab.is-selected { color: #fff; background: linear-gradient(135deg, #e44d70, #8638ad); box-shadow: 0 6px 13px rgb(174 48 111 / 27%); }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .83fr); gap: 20px; align-items: start; }
.studio-main { min-width: 0; }
.studio-controls { display: grid; gap: 14px; }
.studio-side { position: sticky; top: 16px; min-width: 0; }
.studio-preview { overflow: hidden; border-radius: 25px; background: #252059; box-shadow: var(--shadow); }
.studio-preview__tools { display: flex; min-height: 57px; align-items: center; gap: 7px; padding: 7px 9px 7px 15px; color: #fff; background: linear-gradient(100deg, #29206c, #5639b4); }
.studio-preview__label { flex: 1; font-size: .87rem; font-weight: 700; }
.studio-preview__tools .btn { min-height: 38px; padding: 6px 9px; color: #fff; background: rgb(255 255 255 / 14%); box-shadow: none; }
.studio-preview__tools .btn svg { width: 17px; }
.studio-preview__stage { position: relative; height: min(72vh, 720px); overflow: hidden; background: #f7f3e9; }
.studio-preview__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 180ms ease; }
.studio-preview__frame.is-visible { opacity: 1; }
.studio-preview.is-desktop .studio-preview__stage { height: min(52vw, 640px); }
.studio-preview.is-desktop .studio-preview__frame { width: 1280px; height: 900px; transform: scale(calc(min(100vw, 680px) / 1280)); transform-origin: top left; }
.studio-see { display: none; width: 100%; margin-top: 14px; }
.studio-block-list { display: grid; gap: 10px; }
.studio-block { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto auto; align-items: center; gap: 9px; padding: 11px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.studio-block--banner { background: linear-gradient(110deg, #fff, #fff4f5); }
.studio-block--featured { background: linear-gradient(110deg, #fff, #effff9); }
.studio-block--about { background: linear-gradient(110deg, #fff, #f2f0ff); }
.studio-block__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #e76175, #8b48c7); }
.studio-block__icon svg { width: 21px; }
.studio-block__copy { min-width: 0; }
.studio-block__copy strong, .studio-block__copy small { display: block; }
.studio-block__copy small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.studio-switch-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.studio-block__moves { display: flex; }
.studio-block__moves .btn { width: 35px; min-height: 40px; padding: 0; }
.studio-drag { width: 44px; padding: 0; cursor: grab; }
.studio-editor { display: grid; gap: 14px; margin: 2px 0 8px; border: 2px solid #ded9ff; }
.studio-editor__head, .studio-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-editor__head h2, .studio-line h2 { margin: 0; }
.studio-line p { margin: 4px 0 0; color: var(--muted); }
.studio-photo { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 13px; align-items: center; }
.studio-photo__image, .studio-photo__empty, .studio-upload__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 15px; background: #edf0fa; }
.studio-photo__empty, .studio-upload__image { display: grid; place-items: center; color: #7165ee; }
.studio-photo__empty svg { width: 38px; height: 38px; }
.studio-photo__actions, .studio-upload__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-fields { display: grid; gap: 14px; }
.studio-field textarea { resize: vertical; }
.studio-field__hint { color: var(--muted); font-size: .78rem; }
.studio-target { min-height: 44px; padding: 8px; }
.studio-search-results { display: grid; gap: 6px; margin-top: 7px; }
.studio-choice { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font: inherit; text-align: left; }
.studio-choice.is-selected { border-color: #6659e8; background: #f0eeff; }
.studio-featured { display: grid; gap: 8px; }
.studio-product { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 6px; border-radius: 13px; background: #f4f5fd; }
.studio-product img, .studio-product > svg { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; object-fit: cover; }
.studio-product span { flex: 1; font-weight: 700; }
.studio-product .btn { width: 42px; min-height: 42px; padding: 0; }
.studio-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.studio-theme { position: relative; min-height: 136px; padding: 9px; border: 2px solid transparent; border-radius: 16px; color: var(--ink); background: #f5f6fc; font: inherit; font-weight: 700; text-align: left; }
.studio-theme.is-selected { border-color: #6659e8; background: #edeaff; box-shadow: 0 0 0 3px #d5d0ff; }
.studio-theme__mini { display: grid; height: 75px; grid-template-columns: 1fr 1fr; grid-template-rows: 22px 1fr; gap: 5px; margin-bottom: 8px; padding: 6px; border-radius: 10px; background: var(--paper); }
.studio-theme__mini i { grid-column: 1 / -1; border-radius: 5px; background: var(--blue); }
.studio-theme__mini b { border-radius: 7px; background: var(--coral); }
.studio-theme__mini em { border-radius: 7px; background: var(--sun); }
.studio-theme__mini u { display: none; background: var(--ink); }
.studio-theme__check { position: absolute; top: 7px; right: 7px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: #493cc4; }
.studio-theme__check svg { width: 16px; }
.studio-upload { display: grid; grid-template-columns: minmax(100px, 180px) 1fr; gap: 15px; align-items: center; }
.studio-upload h3 { grid-column: 1 / -1; margin: 0; }
.studio-announcement-preview { padding: 10px 14px; border-radius: 11px; color: #382300; background: #ffd568; font-weight: 700; text-align: center; }
.studio-announcement-preview.is-off { opacity: .48; }
.studio-words { overflow: hidden; margin: 0; border-radius: 17px; background: #fff; box-shadow: var(--shadow-soft); }
.studio-words summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; cursor: pointer; }
.studio-word { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding: 12px 15px; border-top: 1px solid #ececf5; }
.studio-google-preview { padding: 14px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px #e2e5ee; }
.studio-google-preview small, .studio-google-preview strong, .studio-google-preview p { display: block; margin: 0 0 5px; }
.studio-google-preview small { color: #34743e; }.studio-google-preview strong { color: #2749ad; font-size: 1.08rem; }.studio-google-preview p { color: #535b68; font-size: .88rem; }
.studio-fullscreen { position: fixed; z-index: 200; inset: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: #18133f; }
.studio-preview--full { height: 100%; border-radius: 0; }.studio-preview--full .studio-preview__stage { height: calc(100dvh - 57px); }

@media (max-width: 1099px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-side { display: none; }
  .studio-see { display: inline-flex; }
}
@media (max-width: 620px) {
  .studio .area-head { min-height: 100px; padding: 19px; border-radius: 20px; }
  .studio .area-head h1 { font-size: 1.4rem; }
  .studio-block { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .studio-switch-label { grid-column: 2; justify-content: space-between; }
  .studio-block__moves { grid-column: 3; grid-row: 2; }
  .studio-drag { display: none; }
  .studio-block > .btn--ghost { grid-column: 1 / -1; width: 100%; }
  .studio-photo, .studio-upload { grid-template-columns: 1fr; }
  .studio-photo__image, .studio-photo__empty, .studio-upload__image { max-width: 220px; }
  .studio-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-word { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-preview__frame { transition: none; }
}
