/* V40 – dedicated catalog generator. The public site and Quick Add are untouched.
   Keep the background artwork visible, including the user's dynamic neon scene. */
body.page-content-generator{
  --mwb-gen-glass:rgba(15,30,60,.23);
  --mwb-gen-glass-strong:rgba(9,19,47,.37);
  --mwb-gen-input:rgba(9,19,43,.29);
  --mwb-gen-line:rgba(204,235,255,.43);
  --mwb-gen-text:#f2fbff;
  --mwb-gen-hint:#deecfb;
}
body.page-content-generator .site-header{
  background:rgba(19,26,54,.22)!important;
  border-bottom:1px solid rgba(229,243,255,.24);
  backdrop-filter:blur(5px);
}
body.page-content-generator .content-editor-shell{
  width:calc(100% - 28px);
  max-width:2680px;
  margin:0 auto;
  padding:clamp(12px,1.7vw,28px);
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(310px,.72fr);
  align-items:start;
  gap:clamp(14px,2vw,28px);
}
body.page-content-generator .content-editor-shell .studio-sidebar,
body.page-content-generator .content-editor-shell .studio-preview{
  background:var(--mwb-gen-glass)!important;
  background-color:var(--mwb-gen-glass)!important;
  backdrop-filter:blur(6px)!important;
  -webkit-backdrop-filter:blur(6px)!important;
  border:1px solid var(--mwb-gen-line)!important;
  border-radius:22px;
  box-shadow:0 10px 38px rgba(5,10,27,.16)!important;
  color:var(--mwb-gen-text);
}
body.page-content-generator .content-editor-shell .studio-sidebar{
  padding:clamp(17px,2.25vw,34px);
  max-height:none!important;
  overflow:visible;
  min-width:0;
}
body.page-content-generator .content-editor-shell .studio-preview{
  position:sticky;
  top:14px;
  padding:18px;
  min-width:0;
}
body.page-content-generator .content-editor-shell .studio-preview .preview-head{font-size:12px;color:var(--mwb-gen-text);letter-spacing:.07em}
body.page-content-generator .editor-preview-grid{grid-template-columns:minmax(0,400px);padding:8px 0 16px}
body.page-content-generator .studio-sidebar h1{font-size:clamp(26px,2.7vw,43px);letter-spacing:.045em;margin:3px 0 6px}
body.page-content-generator .studio-sidebar .eyebrow{font-size:12px;letter-spacing:.13em;color:var(--mwb-gen-hint)}
body.page-content-generator .studio-sidebar label{color:var(--mwb-gen-text)!important;font-size:clamp(13px,1.02vw,16px);line-height:1.5;margin:6px 0;gap:8px;min-width:0}
body.page-content-generator .studio-sidebar :is(input:not([type=file]),textarea,select),
body.page-content-generator[data-mwb-theme] .studio-sidebar :is(input:not([type=file]),textarea,select){
  width:100%;min-width:0;min-height:48px;
  padding:12px 14px;
  background:var(--mwb-gen-input)!important;
  background-color:var(--mwb-gen-input)!important;
  color:#fff!important;
  border:1px solid rgba(216,239,255,.51)!important;
  border-radius:12px;
  font:500 clamp(15px,1.03vw,18px)/1.35 system-ui,sans-serif;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
  box-shadow:inset 0 1px 5px rgba(4,8,20,.10);
}
body.page-content-generator .studio-sidebar input:read-only{opacity:.82;cursor:default}
body.page-content-generator .studio-sidebar textarea{resize:vertical;min-height:120px}
body.page-content-generator .studio-sidebar :is(input,textarea)::placeholder{color:rgba(240,248,255,.75)!important}
body.page-content-generator .studio-sidebar :is(input,textarea,select):focus-visible{outline:2px solid #a8dfff!important;outline-offset:2px;background:rgba(16,36,69,.43)!important}
body.page-content-generator .studio-sidebar select option{color:#172544;background:#e4eef9;font-weight:600;text-shadow:none}
body.page-content-generator .studio-sidebar button,
body.page-content-generator .studio-sidebar .studio-import{
  background:rgba(33,62,102,.35)!important;
  border:1px solid rgba(219,238,255,.49)!important;
  color:#f5fcff!important;
  border-radius:12px;
  padding:11px 14px;
  min-height:46px;
  font-size:clamp(13px,1vw,16px);
  font-weight:750;
  line-height:1.3;
  cursor:pointer;
  text-shadow:0 1px 4px #09152a;
  box-shadow:none!important;
  transition:background .18s ease,border-color .18s ease;
}
body.page-content-generator .studio-sidebar button:hover{background:rgba(71,102,150,.50)!important;border-color:#d3f4ff!important}
body.page-content-generator .studio-sidebar button:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.page-content-generator .studio-sidebar button:disabled{opacity:.55;cursor:wait}
body.page-content-generator .studio-sidebar .studio-primary{background:rgba(59,112,156,.56)!important;border-color:#e6f8ff!important;color:white!important;box-shadow:0 0 12px rgba(169,228,255,.28)!important}
body.page-content-generator .mwb-editor-titlebar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
body.page-content-generator .mwb-editor-subtitle{margin:0 0 10px;color:var(--mwb-gen-hint);font-size:clamp(13px,1.05vw,17px)}
body.page-content-generator .studio-sidebar .mwb-editor-new-button{background:rgba(69,106,155,.48)!important;font-size:15px;min-height:52px}
body.page-content-generator .mwb-editor-mode{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 14px;
  margin:12px 0;padding:14px 18px;
  border:1px solid rgba(229,247,255,.48);border-radius:15px;
  background:rgba(12,30,61,.26);
  color:#f4fcff;
  font-size:clamp(13px,.96vw,16px);
}
body.page-content-generator .mwb-editor-mode strong{padding:6px 11px;border-radius:10px;border:1px solid rgba(217,240,255,.66);background:rgba(102,150,192,.22);font-size:14px;white-space:nowrap}
body.page-content-generator .mwb-editor-mode small{grid-column:1/-1;font-size:12px;color:#dbefff;margin-top:3px;overflow-wrap:anywhere}
body.page-content-generator .mwb-editor-primary-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
body.page-content-generator .mwb-editor-primary-actions button:first-child{flex:1 1 260px;min-height:56px;font-size:17px}
body.page-content-generator .studio-sidebar .studio-status{font-size:clamp(13px,.96vw,16px);line-height:1.5;background:rgba(18,39,71,.33);border:1px solid rgba(189,232,255,.54);border-left:4px solid #a0deff;color:#f7fcff;padding:12px 16px;margin:10px 0 15px;border-radius:12px;overflow-wrap:anywhere}
body.page-content-generator .studio-sidebar .mwb-editor-info,
body.page-content-generator .studio-sidebar .mwb-editor-find,
body.page-content-generator .studio-sidebar .mwb-category-picker,
body.page-content-generator .studio-sidebar .mwb-advanced-tools,
body.page-content-generator .studio-sidebar .mwb-recovery-banner{
  background:rgba(25,49,80,.17)!important;border:1px solid rgba(215,237,255,.31)!important;border-radius:15px;padding:12px 16px;margin:12px 0;
}
body.page-content-generator .mwb-editor-info>summary{cursor:pointer;font-size:14px;color:#eaf8ff}
body.page-content-generator .studio-sidebar .studio-disclaimer,
body.page-content-generator .studio-sidebar p.studio-help{color:var(--mwb-gen-hint)!important;font-size:clamp(12px,.88vw,14px)}
body.page-content-generator .studio-sidebar .mwb-module-nav{background:rgba(12,25,52,.14)!important;border-color:rgba(217,237,255,.34)!important;gap:8px;padding:10px}
body.page-content-generator .studio-sidebar .mwb-module-nav button{flex:1 1 120px;min-height:46px}
body.page-content-generator .content-editor-shell .mwb-editor-level,
body.page-content-generator[data-mwb-theme] .content-editor-shell .mwb-editor-level{
  background:rgba(18,42,78,.16)!important;
  border:1px solid rgba(225,242,255,.40)!important;
  margin:14px 0;border-radius:16px;
  overflow:visible;
}
body.page-content-generator .content-editor-shell .mwb-editor-level>summary{
  color:#f6fcff!important;
  font-size:clamp(15px,1.18vw,19px);
  padding:18px 20px;
  font-weight:800;
  line-height:1.4;
  text-shadow:0 2px 5px rgba(0,5,20,.85);
}
body.page-content-generator .content-editor-shell .mwb-editor-level[open]>summary{
  border-bottom:1px solid rgba(225,241,255,.38);
  border-radius:16px 16px 0 0;
  background:rgba(65,107,154,.21)!important;
}
body.page-content-generator .content-editor-shell .mwb-editor-section-body{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;
  padding:clamp(16px,2vw,28px);
}
body.page-content-generator .mwb-editor-section-body > :is(.mwb-admin-pair,.mwb-admin-order,.mwb-editor-id,.mwb-episode-nav,.mwb-episode-switch,.mwb-episode-editor-pair,.mwb-episode-videos),
body.page-content-generator .mwb-editor-section-body > label:has(textarea),
body.page-content-generator .mwb-editor-section-body > label:has([data-content-field="title"]),
body.page-content-generator .mwb-editor-section-body > label:has([data-content-field="subtitle"]),
body.page-content-generator .mwb-editor-section-body > label:has([data-content-field="poster"]),
body.page-content-generator .mwb-editor-section-body > label:has([data-content-field="posterFr"]),
body.page-content-generator .mwb-editor-section-body > :not(label):not(.mwb-admin-pair):not(.mwb-admin-order):not(.mwb-editor-id){grid-column:1/-1}
body.page-content-generator .mwb-editor-section-body .mwb-admin-pair,
body.page-content-generator .mwb-editor-section-body .mwb-episode-editor-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.page-content-generator .mwb-editor-id{padding:6px 0}
body.page-content-generator .mwb-editor-id>summary{cursor:pointer;color:#d5e7f7;font-size:12px}
body.page-content-generator .mwb-editor-id input{margin-top:8px}
body.page-content-generator .mwb-admin-save,
body.page-content-generator[data-mwb-theme] .mwb-admin-save{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  position:sticky;bottom:10px;z-index:14;
  padding:12px!important;margin:22px 0 0;
  background:rgba(22,45,82,.56)!important;
  border:1px solid rgba(219,245,255,.57)!important;
  border-radius:16px;
  backdrop-filter:blur(8px)!important;
  box-shadow:0 7px 18px rgba(0,10,33,.14)!important;
}
body.page-content-generator .mwb-admin-save button{min-height:50px;flex:1 1 150px}
body.page-content-generator .mwb-admin-save button:first-child{flex:2 1 270px}
body.page-content-generator .studio-sidebar .mwb-video-editor-form,
body.page-content-generator .studio-sidebar .mwb-video-entry,
body.page-content-generator .studio-sidebar .studio-file,
body.page-content-generator .studio-sidebar .mwb-episode-nav{
  background:rgba(18,41,75,.22)!important;
  border:1px solid rgba(210,238,255,.34)!important;
  border-radius:13px;
}
body.page-content-generator .studio-sidebar .mwb-video-entry{padding:15px}
body.page-content-generator .studio-sidebar .mwb-video-entry-title{font-size:15px}
body.page-content-generator .mwb-content-top-actions{margin-bottom:2px}
body.page-content-generator .mwb-content-status-foot{margin-top:14px}
@media(max-width:1050px){
  body.page-content-generator .content-editor-shell{grid-template-columns:1fr;max-width:900px}
  body.page-content-generator .content-editor-shell .studio-preview{position:static;order:2}
  body.page-content-generator .content-editor-shell .studio-sidebar{order:1}
}
@media(max-width:680px){
  body.page-content-generator .content-editor-shell{width:100%;padding:8px}
  body.page-content-generator .content-editor-shell .studio-sidebar{padding:14px;border-radius:14px}
  body.page-content-generator .content-editor-shell .mwb-editor-section-body{grid-template-columns:1fr;padding:13px}
  body.page-content-generator .mwb-editor-section-body > *{grid-column:1/-1}
  body.page-content-generator .mwb-editor-section-body .mwb-admin-pair,
  body.page-content-generator .mwb-editor-section-body .mwb-episode-editor-pair{grid-template-columns:1fr}
  body.page-content-generator .mwb-admin-order{grid-template-columns:1fr 1fr}
  body.page-content-generator .mwb-admin-order label{grid-column:1/-1}
  body.page-content-generator .mwb-editor-mode{grid-template-columns:1fr}
  body.page-content-generator .mwb-editor-mode small{grid-column:1}
  body.page-content-generator .mwb-admin-save{bottom:4px;padding:7px!important}
  body.page-content-generator .mwb-admin-save button{font-size:12px;min-height:42px}
}
@media(prefers-reduced-motion:reduce){body.page-content-generator .studio-sidebar button{transition:none}}
