.studio-page{--calm-bg:#0b0d0f;--calm-panel:#121517;--calm-card:#1a1e21;--calm-line:rgba(255,255,255,.075);--calm-muted:#8e969e;--calm-accent:#b7ef19;background:var(--calm-bg);color:#f5f6f7}
.studio-page .studio-announcement,.studio-page .workflow-launcher,.studio-page .capability-note,.studio-page .public-creation-note,.studio-page .creator-tool-actions .library-save-button span{display:none}
.studio-page .studio-topbar{border-top:1px solid #e83c91;border-bottom:1px solid var(--calm-line);background:rgba(11,13,15,.95);backdrop-filter:blur(18px)}
.studio-page .studio-header-main{min-height:68px;padding:0 22px}.studio-page .studio-brand img{width:34px;height:34px}.studio-page .studio-brand span,.studio-page .studio-brand strong{color:var(--calm-muted)}
.studio-page .studio-topbar nav{gap:30px}.studio-page .studio-topbar nav :is(a,button){color:#8e9499;font-size:15px;font-weight:600}.studio-page .studio-topbar nav :is(a,button):hover,.studio-page .studio-topbar nav .nav-active,.studio-page .studio-topbar nav .studio-nav-mode.is-active{color:#fff}.studio-page .studio-topbar nav .nav-active:after,.studio-page .studio-topbar nav .studio-nav-mode.is-active:after{background:var(--calm-accent)}
.studio-page .studio-nav-mode[data-mode="director"].is-active~.studio-nav-mode[data-mode="text-to-video"].is-active{color:#8e9499}.studio-page .studio-nav-mode[data-mode="director"].is-active~.studio-nav-mode[data-mode="text-to-video"].is-active:after{display:none}
.studio-page .studio-layout{padding:14px}.studio-page .studio-main{max-width:1580px;margin:auto}.studio-page .workspace-grid{grid-template-columns:minmax(340px,430px) minmax(0,1fr);gap:14px;align-items:start}
.studio-page .creator-column{position:sticky;top:82px;max-height:calc(100vh - 96px);overflow:auto;padding:14px;border:1px solid var(--calm-line);border-radius:28px;background:var(--calm-panel);scrollbar-width:thin}
.studio-page .creator-brand{padding:2px 4px 12px;border-bottom:1px solid var(--calm-line)}.studio-page .creator-brand .tiny-label{display:none}.studio-page .creator-brand strong{font:650 22px/1.2 "DM Sans",sans-serif;letter-spacing:-.025em}
.studio-page .creator-tool-actions{margin:12px 0;gap:8px}.studio-page .style-apply-button,.studio-page .creator-tool-actions .library-save-button{min-height:48px;border:1px solid var(--calm-line);border-radius:15px;background:var(--calm-card);color:#f5f6f7;box-shadow:none}.studio-page .style-apply-button{padding:0 15px}.studio-page .style-apply-button em{display:none}.studio-page .creator-tool-actions .library-save-button{width:48px;padding:0}
.studio-page .creator-card{border:0;border-radius:0;background:transparent;box-shadow:none}.studio-page .creator-form-content{padding:0;gap:10px}.studio-page .asset-grid{gap:10px}
.studio-page .upload-slot{min-height:148px;padding:24px 18px;justify-content:center;flex-direction:column;text-align:center;border:1px dashed rgba(255,255,255,.11);border-radius:18px;background:var(--calm-card);transition:.18s ease}.studio-page .upload-slot:hover{border-color:rgba(183,239,25,.5);background:#212629;transform:translateY(-1px)}
.studio-page .upload-preview{width:48px;height:48px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:linear-gradient(145deg,#353a3e,#1b1f22)}.studio-page .upload-slot b{font-size:16px;line-height:1.2}.studio-page .upload-slot small{margin-top:5px;color:var(--calm-muted);font-size:13px}
.studio-page .prompt-toggle-row,.studio-page .creator-accordion{min-height:56px;border:1px solid var(--calm-line);border-radius:15px;background:var(--calm-card)}.studio-page .prompt-toggle-row{padding:0 16px}.studio-page .creator-accordion summary{min-height:56px;padding:9px 16px}.studio-page .creator-accordion summary span{color:var(--calm-muted);font-size:12px}.studio-page .creator-accordion summary strong{font-size:16px;color:#f5f6f7}.studio-page .creator-accordion-body{padding:0 14px 14px}
.studio-page .creator-accordion .setting-row select,.studio-page .creator-accordion .setting-row input,.studio-page .creator-card .prompt-field textarea{border:1px solid var(--calm-line);border-radius:13px;background:#0f1214;color:#f5f6f7}.studio-page .creator-card .prompt-field textarea{min-height:112px;padding:15px}.studio-page .prompt-enhance small{display:none}.studio-page .consent-row{color:#a9b0b6;font-size:12px;line-height:1.45}.studio-page .saved-media-card{border-color:var(--calm-line);background:var(--calm-card)}
.studio-page .creator-footer{position:static;padding:10px 0 0;border:0;background:transparent}.studio-page .creator-footer .privacy-note,.studio-page .price-estimate-detail{display:none}.studio-page .creator-footer .price-estimate{padding:10px 3px 3px;border:0;background:transparent}.studio-page .price-estimate .tiny-label{color:var(--calm-muted);font-size:10px}
.studio-page .creator-footer .generate-button{min-height:58px;border-radius:16px;background:var(--calm-accent);color:#111500;font-size:16px;font-weight:750;box-shadow:0 5px 0 #6f900e}.studio-page .creator-footer .generate-button:hover{background:#c5ff22;transform:translateY(-1px)}.studio-page .creator-footer .generate-button:disabled{filter:saturate(.35);opacity:.58}
.studio-page .preview-column,.studio-page .library-shell{min-width:0;border:1px solid var(--calm-line);border-radius:28px;background:var(--calm-panel)}.studio-page .library-shell{overflow:hidden}.studio-page .library-tabs{min-height:64px;padding:9px 14px;gap:6px;border-bottom:1px solid var(--calm-line);background:#171a1d}.studio-page .library-tab{min-height:42px;padding:0 18px;border-radius:999px;color:var(--calm-muted)}.studio-page .library-tab.is-active{background:#f7f8f8;color:#202326}.studio-page .library-tab.is-active:after{display:none}
.studio-page .sample-gallery{padding:16px}.studio-page .library-heading{min-height:auto;margin-bottom:12px}.studio-page .library-heading h1{font:650 24px/1.2 "DM Sans",sans-serif;letter-spacing:-.03em}.studio-page .library-heading p{margin-top:3px;color:var(--calm-muted)}.studio-page .gallery-toolbar{padding:8px 0 14px}.studio-page .sample-filters{gap:6px}.studio-page .sample-filters button,.studio-page .gallery-sort button{border:1px solid var(--calm-line);border-radius:999px;background:#1c2023;color:var(--calm-muted)}.studio-page .sample-filters button.is-active,.studio-page .gallery-sort button.is-active{background:#303539;color:#fff}.studio-page .sample-filters button.is-active:after{display:none}.studio-page #sampleGalleryGrid .sample-card{border-radius:18px;background:#202427}.studio-page #sampleGalleryGrid .sample-card-media{border-radius:18px}
@media(max-width:980px){.studio-page .studio-layout{padding:10px}.studio-page .workspace-grid{grid-template-columns:1fr}.studio-page .creator-column{position:static;max-height:none}.studio-page .studio-header-main{padding:0 14px}.studio-page .studio-brand span,.studio-page .studio-brand strong{display:none}}
@media(max-width:620px){.studio-page .studio-header-main{min-height:58px}.studio-page .studio-topbar nav{gap:18px;overflow-x:auto}.studio-page .studio-topbar nav a:first-child,.studio-page .topbar-actions .wallet-pill{display:none}.studio-page .creator-column,.studio-page .preview-column,.studio-page .library-shell{border-radius:20px}.studio-page .creator-column{padding:12px}.studio-page .asset-grid{grid-template-columns:1fr}.studio-page .upload-slot{min-height:92px;padding:14px 16px;justify-content:flex-start;flex-direction:row;text-align:left}.studio-page .upload-preview{width:42px;height:42px;flex:0 0 42px}.studio-page .upload-slot>span:last-child{align-items:flex-start}.studio-page .upload-slot small{font-size:12px}.studio-page .library-tabs{overflow-x:auto}.studio-page .sample-gallery{padding:12px}}

.studio-page {
  --calm-panel: #121619;
  --calm-card: #1a1f22;
  --calm-line: rgba(255, 255, 255, .11);
  --calm-muted: #9aa3a9;
}

.studio-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--calm-accent);
  outline-offset: 3px;
}

.studio-page .workspace-grid {
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: 16px;
}

.studio-page .creator-column {
  height: calc(100vh - 96px);
  max-height: calc(100vh - 96px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--calm-line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.studio-page .creator-form-content {
  overscroll-behavior: contain;
  scrollbar-color: #3b4149 transparent;
  scrollbar-width: thin;
}

.studio-page .creator-form-content > details {
  flex: 0 0 auto;
}

.studio-page .upload-slot {
  min-height: 82px;
  justify-content: flex-start;
  flex-direction: row;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 13px;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}

.studio-page .upload-slot:hover,
.studio-page .upload-slot:focus-within {
  border-color: rgba(183, 239, 25, .6);
  background: #212629;
  transform: none;
}

.studio-page .upload-slot > span:last-child { justify-items: start; gap: 4px; }
.studio-page .upload-preview {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.studio-page .upload-slot b { font-size: 13px; line-height: 1.3; }
.studio-page .upload-slot small { margin-top: 0; font-size: 11px; line-height: 1.4; }
.studio-page .prompt-toggle-row,
.studio-page .creator-accordion { border-radius: 12px; }
.studio-page .prompt-toggle-row { min-height: 52px; }
.studio-page .creator-accordion summary { min-height: 52px; }
.studio-page .creator-accordion summary strong { font-size: 15px; }
.studio-page .creator-card .prompt-field textarea { border-radius: 11px; }
.studio-page .consent-row { color: #b2b9be; font-size: 11px; line-height: 1.5; }

.studio-page .model-limit-note:not([hidden]) {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(183, 239, 25, .2);
  border-radius: 11px;
  background: rgba(183, 239, 25, .055);
  color: #c4cbb9;
  font-size: 11px;
  line-height: 1.5;
}

.studio-page .creator-form-content > .model-limit-note:not([hidden]) {
  flex: 0 0 auto;
  align-self: stretch;
}

.studio-page .model-limit-note svg {
  width: 14px;
  height: 14px;
}

.studio-page .model-limit-note span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.studio-page .preview-column,
.studio-page .library-shell {
  border: 1px solid var(--calm-line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.studio-page .library-tabs { min-height: 58px; padding: 8px 14px; }
.studio-page .library-tab { min-height: 40px; padding: 0 16px; border-radius: 10px; }
.studio-page .sample-gallery { padding: 20px; }
.studio-page #sampleGalleryGrid .sample-card,
.studio-page #sampleGalleryGrid .sample-card-media { border-radius: 14px; }

@media (max-width: 980px) {
  .studio-page .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .studio-page .creator-column {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .studio-page .creator-card,
  .studio-page .creator-form-content { overflow: visible; }
}

@media (max-width: 620px) {
  .studio-page .creator-column,
  .studio-page .preview-column,
  .studio-page .library-shell { border-radius: 16px; }
  .studio-page .upload-slot { min-height: 76px; padding: 10px 12px; }
  .studio-page .upload-preview { flex-basis: 36px; width: 36px; height: 36px; }
  .studio-page .upload-slot b { font-size: 12px; }
  .studio-page .upload-slot small { font-size: 10px; }
  .studio-page .sample-gallery { padding: 14px; }
}

.studio-page .studio-topbar {
  display: flex;
  border-top: 1px solid var(--calm-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.studio-page .studio-header-main {
  width: 100%;
  min-width: 0;
  min-height: 68px;
}

.studio-page .studio-brand { flex: 0 0 auto; gap: 8px; }
.studio-page .studio-brand strong { color: #e8ebee; }

.studio-page .library-heading {
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 8px 0 20px;
  text-align: left;
}

.studio-page .library-heading h1 {
  color: #f1f3f4;
  font: 650 24px/1.2 "DM Sans", sans-serif;
  letter-spacing: -.03em;
  text-transform: none;
}

.studio-page .library-heading p {
  margin: 6px 0 0;
  color: #a4adb3;
  font-size: 12px;
}

.studio-page .gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}

.studio-page .sample-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  overflow: visible;
  padding: 0;
}

.studio-page .sample-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: #191e21;
  color: #b7c0c5;
  font-size: 11px;
  font-weight: 600;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.studio-page .sample-filters button:hover {
  border-color: rgba(183, 239, 25, .38);
  color: #f2f5ee;
}

.studio-page .sample-filters button.is-active {
  border-color: rgba(183, 239, 25, .38);
  background: rgba(183, 239, 25, .1);
  color: #e4f0c4;
}

.studio-page .gallery-sort {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 11px;
  background: #14181a;
}

.studio-page .gallery-sort button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #aab3b8;
  font-size: 10px;
  font-weight: 600;
}

.studio-page .gallery-sort button.is-active {
  background: #2a3033;
  color: #f3f5f6;
}

@media (max-width: 980px) {
  .studio-page .studio-topbar {
    display: flex;
    height: 64px;
    grid-template-rows: none;
    padding: 0 16px;
  }

  .studio-page .studio-header-main {
    min-height: 64px;
    padding: 0;
  }

  .studio-page .studio-brand b,
  .studio-page .studio-brand span,
  .studio-page .studio-brand strong { display: inline; }

  .studio-page .studio-topbar nav {
    display: flex;
    min-width: 0;
    gap: clamp(8px, 1.3vw, 16px);
    margin: 0 12px 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .studio-page .studio-topbar nav::-webkit-scrollbar { display: none; }
  .studio-page .studio-topbar nav :is(a, button) { font-size: 12px; }
}

@media (max-width: 620px) {
  .studio-page .studio-topbar {
    height: 60px;
    padding: 0 12px;
  }

  .studio-page .studio-header-main { min-height: 60px; }
  .studio-page .studio-brand { gap: 7px; }
  .studio-page .studio-brand img { width: 26px; height: 26px; }
  .studio-page .studio-brand b,
  .studio-page .studio-brand span { display: none; }
  .studio-page .studio-brand strong { display: inline; font-size: 12px; white-space: nowrap; }

  .studio-page .studio-topbar nav {
    flex: 1 1 auto;
    gap: 3px;
    margin: 0 7px 0 auto;
  }

  .studio-page .studio-topbar nav > a { display: none; }
  .studio-page .studio-topbar nav :is(a, button) { font-size: 10px; }
  .studio-page .studio-topbar nav button { padding: 0 5px; }
  .studio-page .topbar-actions { flex: 0 0 auto; margin-left: 0; }
  .studio-page .topbar-actions .wallet-pill { display: none; }
  .studio-page .signin-button { min-height: 32px; padding: 0 10px; font-size: 10px; }

  .studio-page .library-heading { padding: 4px 0 16px; }
  .studio-page .library-heading h1 { font-size: 20px; }
  .studio-page .library-heading p { font-size: 11px; }
  .studio-page .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
  }

  .studio-page .sample-filters { width: 100%; }
}
