.studio-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.studio-hero{
  position:relative;
  overflow:hidden;
  padding:24px 26px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(14,165,233,.18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(243,248,255,.96) 100%);
  box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.studio-hero::after{
  content:'';
  position:absolute;
  inset:auto -90px -100px auto;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.16) 0%, rgba(37,99,235,0) 70%);
  pointer-events:none;
}
.studio-hero-title{
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--text-primary);
  margin:0 0 8px;
}
.studio-hero-sub{
  max-width:760px;
  color:var(--text-secondary);
  font-size:14px;
  line-height:1.7;
}
.studio-pill-row,
.studio-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.studio-pill,
.studio-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.82);
  color:var(--text-secondary);
  font-size:12px;
  font-weight:700;
}
.studio-chip.active,
.studio-pill.active{
  border-color:rgba(37,99,235,.35);
  background:rgba(37,99,235,.09);
  color:var(--accent-hover);
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}
.studio-toolbar{
  position:sticky;
  top:14px;
  z-index:8;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:20px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.studio-toolbar-group{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.segmented{
  display:inline-flex;
  gap:6px;
  padding:4px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:999px;
  background:rgba(248,250,252,.92);
}
.segment{
  border:none;
  background:transparent;
  color:var(--text-muted);
  font-size:12px;
  font-weight:700;
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:all .18s ease;
}
.segment.active{
  background:#fff;
  color:var(--text-primary);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.studio-grid{
  display:grid;
  gap:18px;
}
.studio-grid-2{
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
}
.studio-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.studio-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--bg-card);
  box-shadow:0 12px 32px rgba(15,23,42,.04);
}
.studio-control,
.studio-page .form-input,
.studio-page .form-select,
.studio-page .input,
.studio-page .copy-input{
  min-height:38px;
  padding:7px 11px;
  border-radius:7px !important;
  border:1px solid rgba(148,163,184,.28) !important;
  background:#ffffff !important;
  box-shadow:none;
  font-size:13px;
  line-height:1.45;
  color:var(--text-primary);
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.studio-control:focus,
.studio-page .form-input:focus,
.studio-page .form-select:focus,
.studio-page .input:focus,
.studio-page .copy-input:focus{
  outline:none;
  border-color:rgba(37,99,235,.42) !important;
  box-shadow:0 0 0 2px rgba(37,99,235,.10) !important;
}
.studio-textarea,
.studio-page textarea,
.studio-page .form-textarea,
.studio-page textarea.input{
  width:100%;
  min-height:120px;
  border-radius:7px !important;
  border:1px solid rgba(148,163,184,.28) !important;
  background:#ffffff !important;
  box-shadow:none;
  padding:9px 11px;
  font:13px/1.55 inherit;
  color:var(--text-primary);
  resize:vertical;
}
.studio-textarea:focus,
.studio-page textarea:focus,
.studio-page .form-textarea:focus{
  outline:none;
  border-color:rgba(37,99,235,.42) !important;
  box-shadow:0 0 0 2px rgba(37,99,235,.10) !important;
}
.studio-page select.input,
.studio-page .form-select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364758B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  padding-right:36px;
}
.studio-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:8px 9px 7px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:9px;
  background:linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(249,251,255,.96) 100%);
}
.studio-field .form-label{
  margin-bottom:0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:#607089;
}
.studio-field .form-hint{
  margin-top:0;
  line-height:1.55;
}
.studio-mono{
  font-family:Consolas, Monaco, 'Courier New', monospace;
}
.studio-headerized{
  margin-bottom:18px;
}
.studio-card.soft{
  background:linear-gradient(180deg,#fbfdff 0%,#f5f9ff 100%);
}
.studio-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0;
  font-size:18px;
  font-weight:800;
  color:var(--text-primary);
}
.studio-section-sub{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.65;
}
.studio-option-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
}
.studio-option-card{
  cursor:pointer;
  padding:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.studio-option-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(37,99,235,.08);
}
.studio-option-card.active{
  border-color:rgba(37,99,235,.42);
  background:linear-gradient(180deg,rgba(37,99,235,.08) 0%, rgba(59,130,246,.04) 100%);
  box-shadow:0 18px 36px rgba(37,99,235,.12);
}
.studio-option-title{
  margin:0 0 6px;
  font-size:14px;
  font-weight:800;
  color:var(--text-primary);
}
.studio-option-meta{
  color:var(--text-muted);
  font-size:12px;
  line-height:1.6;
}
.studio-preview-shell{
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:#061120;
  min-height:320px;
}
.studio-preview-shell iframe{
  width:100%;
  min-height:340px;
  border:0;
  display:block;
  background:#061120;
}
.studio-preview-shell.player-frame{
  min-height:420px;
}
.studio-preview-shell.player-frame iframe{
  min-height:420px;
}
.studio-asset-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.studio-asset-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.studio-asset-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:108px;
  border-radius:14px;
  background:linear-gradient(180deg,#eff6ff 0%,#f8fafc 100%);
  overflow:hidden;
}
.studio-asset-thumb img{
  width:100%;
  height:108px;
  object-fit:contain;
}
.studio-sticky-preview{
  position:sticky;
  top:18px;
}
.studio-slim-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.studio-slim-table td,
.studio-slim-table th{
  padding:10px 12px;
}
.studio-slim-table tbody tr{
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.studio-slim-table tbody td:first-child{
  border-radius:14px 0 0 14px;
}
.studio-slim-table tbody td:last-child{
  border-radius:0 14px 14px 0;
}
.studio-code-block{
  position:relative;
  margin:0;
  padding:14px 16px;
  min-height:120px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:16px;
  background:#071223;
  color:#dbeafe;
  font:12px/1.65 Consolas,Monaco,'Courier New',monospace;
  white-space:pre-wrap;
  word-break:break-word;
}
.studio-kpi-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.studio-kpi{
  padding:18px;
  border-radius:18px;
  border:1px solid var(--border);
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.studio-kpi-label{
  color:var(--text-muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.studio-kpi-value{
  margin-top:10px;
  font-size:30px;
  font-weight:800;
  letter-spacing:-0.04em;
  color:var(--text-primary);
}
.studio-kpi-sub{
  margin-top:8px;
  color:var(--text-secondary);
  font-size:12px;
}
.studio-chart-card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--bg-card);
}
.studio-chart-wrap{
  min-height:220px;
}
.studio-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.studio-table th,
.studio-table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(148,163,184,.18);
  text-align:left;
  vertical-align:top;
}
.studio-table th{
  color:var(--text-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.studio-mini-meter{
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.16);
}
.studio-mini-meter > span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb 0%,#0ea5e9 100%);
}
.studio-alert{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid transparent;
}
.studio-alert.warning{
  background:rgba(245,158,11,.1);
  border-color:rgba(245,158,11,.18);
}
.studio-alert.critical{
  background:rgba(239,68,68,.1);
  border-color:rgba(239,68,68,.18);
}
.studio-alert.info{
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.14);
}
.studio-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.studio-profile-list{
  display:grid;
  gap:10px;
}
.studio-profile-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.studio-profile-item.active{
  border-color:rgba(37,99,235,.34);
  background:rgba(37,99,235,.05);
}
.studio-form-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.studio-layer{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.04);
}
.studio-layer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:2px;
}
.studio-layer-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.studio-layer-simple{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
}
.studio-layer-manual{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}
.studio-layer-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.studio-template-workbench{
  display:grid;
  gap:18px;
  grid-template-columns:300px minmax(0,1.05fr) minmax(340px,.95fr);
  align-items:start;
}
.studio-template-library{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.studio-template-tile{
  padding:14px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.studio-template-tile:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(15,23,42,.06);
}
.studio-template-tile.active{
  border-color:rgba(37,99,235,.34);
  box-shadow:0 16px 28px rgba(37,99,235,.10);
  background:linear-gradient(180deg,rgba(37,99,235,.08) 0%,rgba(59,130,246,.04) 100%);
}
.studio-template-tile .title{
  font-size:14px;
  font-weight:800;
  color:var(--text-primary);
  margin-bottom:4px;
}
.studio-template-tile .meta{
  font-size:12px;
  color:var(--text-muted);
}
.studio-summary-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
.studio-summary{
  padding:14px 16px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.studio-summary strong{
  display:block;
  font-size:24px;
  margin-top:8px;
  color:var(--text-primary);
}
.studio-export-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.studio-warning-list{
  display:grid;
  gap:10px;
}
.studio-radio-group{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.studio-radio{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
}
.studio-radio.active{
  border-color:rgba(37,99,235,.36);
  background:rgba(37,99,235,.08);
  color:var(--accent-hover);
}
.studio-empty{
  padding:28px;
  text-align:center;
  border:1px dashed rgba(148,163,184,.3);
  border-radius:18px;
  color:var(--text-muted);
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
@media (max-width: 1100px){
  .studio-grid-2,
  .studio-grid-3{
    grid-template-columns:1fr;
  }
  .studio-template-workbench{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .studio-hero{
    padding:18px;
    border-radius:20px;
  }
  .studio-toolbar{
    top:8px;
  }
  .studio-preview-shell iframe{
    min-height:260px;
  }
  .studio-template-workbench{grid-template-columns:1fr}
}
