.welcome-page{
  display:grid;place-items:center;min-height:100vh;min-height:100dvh;
  padding:32px 20px;
  background:radial-gradient(ellipse at 0 0,#3c102459,transparent 57%),radial-gradient(ellipse at 100% 0,#3d352c36,transparent 54%),#090c11;
  background-repeat:no-repeat;background-size:100% 100%;
}
.welcome-card{
  width:min(500px,100%);padding:38px 36px;text-align:center;
  border:0;border-radius:18px;background:linear-gradient(130deg,#080b10,#11141a);
}
.welcome-card>img{display:block;width:min(320px,100%);height:auto;max-height:84px;object-fit:contain;margin:0 auto 28px}
.welcome-card h1{font-size:30px;line-height:1.25;letter-spacing:-.6px;margin:0 0 18px}
.welcome-card p{font-size:16px;line-height:1.5;color:#b1bacb;margin:0 0 30px}
.welcome-card>.button{min-height:46px;padding:12px 20px;font-size:15px;border-radius:10px}

.studio-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0 0 20px}
.studio-toolbar h2{font-size:22px;line-height:1.3}
.studio-toolbar p{font-size:14px;line-height:1.5;margin-top:7px}
.studio-toolbar [data-editor-tab]{min-height:44px;padding:10px 18px;font-size:15px;background:transparent;color:#a6adbd;border-radius:9px}
.studio-toolbar [data-editor-tab].active,.studio-toolbar [data-editor-tab][aria-selected=true],.studio-toolbar [data-editor-tab][aria-pressed=true]{background:#292c36;color:#fff}
.studio-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.studio-tools button{min-height:42px;padding:10px 14px;font-size:14px;line-height:1.3;border-radius:9px}
.studio-tools [data-undo],.studio-tools [data-redo]{width:42px;padding:0}
.studio-tools svg{width:20px;height:20px;flex-shrink:0}
.studio-tools button:focus-visible,.studio-toolbar [data-editor-tab]:focus-visible{outline:2px solid #8e97ac;outline-offset:2px}
.studio-workbench{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;align-items:start}
.studio-workbench>.studio-inspector{grid-column:1;grid-row:1;display:block;min-width:0;padding:18px;background:#15171f;border-radius:12px}
.studio-workbench>.studio-preview{grid-column:2;grid-row:1;position:sticky;top:22px;min-width:0;padding:16px;background:#101218;border-radius:12px}
.studio-preview>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0 0 14px}
.studio-preview>header strong{font-size:16px;line-height:1.4;font-weight:600}
.studio-preview [data-expand]{min-height:38px;padding:8px 12px;font-size:13px;background:#252831;color:#d9dfeb;border-radius:8px}
.studio-preview [data-expand] svg{width:19px;height:19px}
.studio-workbench .studio-stage{position:relative;width:100%;height:auto;aspect-ratio:16/9;padding:0;overflow:hidden;background:#08090d;border-radius:8px;touch-action:auto;outline:none}
.studio-stage iframe{position:absolute;inset:0;width:1600px;height:900px;border:0;transform-origin:0 0;pointer-events:none}
.studio-workbench .studio-caption{font-size:13px;line-height:1.5;margin:12px 0 0;color:#8b95a8}
.studio-inspector h3{font-size:16px;line-height:1.4;font-weight:600}
.studio-inspector [data-inspector]{max-width:none}
.studio-inspector .inspector-detail{padding:18px 0 0}
.studio-inspector .inspector-detail p{font-size:14px;line-height:1.5;margin:10px 0;color:#9ba5b7}
.studio-inspector [data-open-settings]{min-height:42px;font-size:14px}
.studio-inspector .studio-block-list{display:flex;flex-direction:column;gap:5px;margin:14px 0 0}
.studio-inspector .studio-block-row{display:flex;align-items:center;min-height:43px;border-radius:8px;background:transparent}
.studio-inspector .studio-block-row:hover{background:#ffffff04}
.studio-inspector .studio-block-row.selected{background:#2a2e39}
.studio-inspector .studio-block-row [data-select]{justify-content:flex-start;flex:1;min-height:43px;min-width:0;padding:10px 12px;font-size:15px;line-height:1.4;color:#b8c0d0}
.studio-inspector .studio-block-row.selected [data-select]{color:#fff}
.studio-inspector .studio-block-row [data-toggle-slot]{width:40px;min-height:40px;padding:0;flex-shrink:0}
.studio-inspector .visibility-dot{width:9px;height:9px;background:#31d38b}
.studio-inspector .visibility-dot.is-hidden{background:#5b6275}
.studio-inspector .studio-float{position:static!important;inset:auto!important;width:100%;max-width:none;overflow:visible;border-radius:0;background:transparent;box-shadow:none;animation:none;margin-top:18px}
.studio-inspector .studio-float>header{display:none}
.studio-inspector .studio-float-body{display:flex;flex-direction:column;gap:14px;padding:0;max-height:none;overflow:visible;scrollbar-width:auto}
.studio-inspector .studio-float-body .form-field{gap:8px}
.studio-inspector .form-field>span{font-size:14px;line-height:1.4;color:#b7c0d1}
.studio-inspector input:not([type=checkbox]),.studio-inspector select,.studio-inspector textarea{font-size:15px;line-height:1.4;padding:12px 13px;min-height:44px;border:0;border-radius:8px;background:#222630;color:#f1f4fa;box-shadow:none}
.studio-inspector input:focus-visible,.studio-inspector select:focus-visible,.studio-inspector textarea:focus-visible{outline:2px solid #7d889e;outline-offset:0}
.studio-inspector .studio-float-body .switch-row{padding:5px 0;font-size:15px;line-height:1.4;gap:16px}
.studio-inspector .studio-float-body small{font-size:12px;line-height:1.5;color:#8995aa}
.studio-inspector .studio-float-body .logo-setting{gap:14px;margin:0;flex-wrap:wrap}
.studio-inspector .studio-float-body .logo-setting img{max-width:100%;max-height:72px}
.studio-inspector .studio-float-body .site-picker-grid{grid-template-columns:1fr}
.scene-theme-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.scene-theme-choice{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;min-width:0;min-height:0;padding:0;text-align:left;overflow:hidden;border:0;border-radius:9px;background:#21242e;color:#e8edf7}
.scene-theme-choice:hover{background:#2b303b}
.scene-theme-choice.selected,.scene-theme-choice[aria-pressed=true]{background:#313643;color:#fff}
.scene-theme-choice:focus-visible{outline:2px solid #8491a8;outline-offset:3px}
.scene-theme-mini{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#0c0e15}
.scene-theme-mini svg{display:block;width:100%;height:100%}
.scene-theme-name{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:11px 11px 5px}
.scene-theme-name strong{min-width:0;font-size:14px;line-height:1.35;font-weight:600}
.scene-theme-name>svg,.scene-theme-name .theme-check{width:17px;height:17px;flex-shrink:0;color:#68e8aa}
.scene-theme-check{width:17px;height:17px;flex:0 0 17px;color:#68e8aa;visibility:hidden;display:flex}.scene-theme-check svg{display:block;width:17px;height:17px}.scene-theme-choice.selected .scene-theme-check{visibility:visible}
.scene-theme-choice>p,.scene-theme-choice .scene-theme-description{padding:0 11px 12px;margin:0;font-size:12px;line-height:1.4;font-weight:400;color:#a2aec3}
.studio-workbench .studio-fields{z-index:3}
.studio-workbench .studio-field-hit:hover,.studio-workbench .studio-field-hit:focus-visible{background:#ffffff12!important;box-shadow:inset 0 -2px #ffffff75;outline:none}
.studio-preview:fullscreen{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100vw;height:100dvh;max-width:none;max-height:none;padding:20px 24px;background:#0d1016;border-radius:0;overflow:hidden}
.studio-preview:fullscreen>header{align-self:stretch;flex:0 0 54px;min-height:54px;padding:0 0 14px}
.studio-preview:fullscreen .studio-stage{flex:0 0 auto;align-self:center;width:min(calc(100vw - 48px),calc((100dvh - 104px)*16/9));height:auto;margin:auto 0;aspect-ratio:16/9;border-radius:8px}
.studio-preview:fullscreen .studio-caption{display:none}
@media(max-width:950px){
  .studio-workbench{grid-template-columns:minmax(0,1fr);gap:18px}
  .studio-workbench>.studio-preview{grid-column:1;grid-row:1;position:relative;top:auto}
  .studio-workbench>.studio-inspector{grid-column:1;grid-row:2;display:block}
  .scene-theme-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .scene-theme-name{padding:9px 8px 5px}
  .scene-theme-name strong{font-size:13px}
  .scene-theme-choice>p,.scene-theme-choice .scene-theme-description{padding:0 8px 10px;font-size:11px}
  .studio-inspector .studio-block-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
}
@media(max-width:600px){
  .welcome-page{padding:20px 16px}
  .welcome-card{padding:30px 24px}
  .welcome-card>img{margin-bottom:24px}
  .welcome-card h1{font-size:27px}
  .welcome-card p{font-size:15px}
  .studio-toolbar{align-items:stretch;gap:12px}
  .studio-toolbar [data-editor-tab]{font-size:15px;padding:10px 14px}
  .studio-tools{gap:7px}
  .studio-tools button{font-size:13px;min-height:42px;padding:10px 12px}
  .studio-workbench>.studio-preview{padding:12px}
  .studio-workbench>.studio-inspector{padding:16px}
  .scene-theme-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .scene-theme-name{padding:11px 11px 5px}
  .scene-theme-name strong{font-size:15px}
  .scene-theme-choice>p,.scene-theme-choice .scene-theme-description{padding:0 11px 12px;font-size:12px}
  .studio-inspector .studio-block-list{grid-template-columns:minmax(0,1fr)}
  .studio-preview:fullscreen{padding:14px 12px}
  .studio-preview:fullscreen .studio-stage{width:min(calc(100vw - 24px),calc((100dvh - 92px)*16/9))}
}

.studio-inspector .studio-float-body .logo-setting{display:flex;align-items:center;gap:14px}
.studio-inspector .studio-float-body .logo-setting img{display:block;width:100%;height:88px;max-height:none;object-fit:contain;padding:10px;background:#0e1118;border-radius:9px}
.studio-inspector .studio-float-body .logo-setting .button{min-height:44px;padding:12px 16px;font-size:15px}
.studio-inspector .logo-recommendation{flex:0 0 100%;margin:0;font-size:14px;line-height:1.55;color:#aab5c8}
.studio-workbench .studio-stage{user-select:none}
@media(prefers-reduced-motion:reduce){.scene-theme-choice{transition:none}}
