/* Shared presentation layer. Existing domain markup and handlers stay intact. */
:root {
  --studio-bg: #f6f7f9;
  --studio-surface: #fff;
  --studio-text: #20242b;
  --studio-muted: #657178;
  --studio-faint: #879298;
  --studio-line: #e1e7e8;
  --studio-accent: #24272e;
  --studio-active: #eef3ff;
  --studio-green: #2459c4;
  --studio-font: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --zao-font: var(--studio-font);
  --ed-sans: var(--studio-font);
  --ed-bg: var(--studio-bg);
  --ed-surface: #fff;
  --ed-subtle: #f4f6f9;
  --ed-line: var(--studio-line);
  --ed-line-strong: #bdc6d3;
  --ed-text: var(--studio-text);
  --ed-text-2: var(--studio-muted);
  --ed-text-3: var(--studio-faint);
  --ed-ink: var(--studio-accent);
  --ed-ink-hover: #383d47;
  --workbench-bg: var(--studio-bg);
  --workbench-text: var(--studio-text);
  --workbench-muted: var(--studio-muted);
  --workbench-faint: var(--studio-faint);
  --workbench-line: var(--studio-line);
  --workbench-line-strong: #bdc6d3;
  --workbench-accent: var(--studio-accent);
  --workbench-accent-hover: #383d47;
  --wb-bg: var(--studio-bg);
  --wb-surface: #fff;
  --wb-text: var(--studio-text);
  --wb-text-2: var(--studio-muted);
  --wb-text-3: var(--studio-faint);
  --wb-line: var(--studio-line);
  --wb-line-strong: #bdc6d3;
  --wb-accent: var(--studio-accent);
  --wb-accent-hover: #383d47;
  --wb-accent-soft: var(--studio-active);
  color-scheme: light;
}
html { background: var(--studio-bg); }
body[data-studio-page] {
  margin: 0;
  background: var(--studio-bg);
  color: var(--studio-text);
  font: 14px/1.55 var(--studio-font);
}
body[data-studio-page] *, body[data-studio-page] *::before, body[data-studio-page] *::after { letter-spacing: 0; }
body[data-studio-page] :is(button,input,textarea,select) { font-family: var(--studio-font); }
body[data-studio-page] :is(h1,h2,h3,h4,strong,b) { font-family: var(--studio-font); }
body[data-studio-page] :is(h1,h2,h3,h4) { color: var(--studio-text); line-height: 1.35; overflow-wrap: anywhere; }
body[data-studio-page] h1 { font-size: 26px; font-weight: 650; }
body[data-studio-page] h2 { font-size: 18px; font-weight: 650; }
body[data-studio-page] h3 { font-size: 15px; font-weight: 650; }
body[data-studio-page] :is(.eyebrow,.section-kicker,.dialog-kicker,.ugc-eyebrow) { color: #657184; font-family: var(--studio-font); font-size: 10px; font-weight: 600; }
body[data-studio-page] :is(button,a,input,textarea,select,summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
body[data-studio-page] button { touch-action: manipulation; font-weight: 550; border-radius: 6px; }
body[data-studio-page] button:disabled { cursor: not-allowed; opacity: .5; }
body[data-studio-page] :is(input,textarea,select) { color: var(--studio-text); border-color: #dce2e5; border-radius: 6px; min-width: 0; }
body[data-studio-page] :is(input,textarea,select):focus { border-color: #657184; box-shadow: 0 0 0 3px #2563eb12; }
body[data-studio-page] input[type=checkbox] { accent-color: #2563eb; }
body[data-studio-page] :is(input,textarea)::placeholder { color: #8b969b; }
body[data-studio-page] :is(.secondary,.back,.ghost) { border-color: var(--studio-line) !important; color: #48566b !important; background: #fff !important; box-shadow: none; border-radius: 6px; }
body[data-studio-page] :is(.secondary,.back,.ghost):hover { border-color: #bdc6d3 !important; background: #f4f6f9 !important; }
body[data-studio-page] .vfx-icon { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.7; pointer-events: none; vertical-align: middle; }
body[data-studio-page] [data-studio-icon] { display: inline-flex; align-items: center; justify-content: center; }
.vfx-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; background: #fff; border-bottom: 1px solid var(--studio-line); color: #6c7278; font-size: 12px; padding: 0 34px; }
.vfx-topbar > span { display: flex; align-items: center; gap: 14px; }
.vfx-topbar .vfx-separator { color: #bdc6d3; }
.vfx-topbar a { display: inline-flex; align-items: center; gap: 7px; color: #6c7278; text-decoration: none; flex: none; }
.vfx-topbar a:hover { color: var(--studio-green); }
.vfx-topbar svg { width: 14px; height: 14px; }

/* One navigation scale across library, operations and production. */
body[data-studio-page] :is(.library-sidebar,.ugc-sidebar,.sidebar) {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: 220px !important; height: 100vh; padding: 24px 16px !important;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border: 0; border-right: 1px solid var(--studio-line);
  border-radius: 0; box-shadow: none; overflow-y: auto; backdrop-filter: none;
}
body[data-studio-page] .library-sidebar-brand { min-height: 30px; padding: 0 10px; margin-bottom: 30px; border: 0; gap: 12px; }
body[data-studio-page] .library-sidebar-brand .brand-mark { width: 52px; height: auto; }
body[data-studio-page] .library-sidebar-brand > span { border: 0; padding: 0; color: var(--studio-text); font-size: 14px; font-weight: 650; }
body[data-studio-page] :is(.library-sidebar-nav,.vfx-global-nav,.side-nav) { display: grid; gap: 4px; padding: 0; margin: 0; border: 0; background: transparent; }
body[data-studio-page] :is(.library-sidebar-nav a,.vfx-global-nav a,.side-nav .tab) {
  display: flex; align-items: center; gap: 11px; min-height: 42px; height: auto;
  min-width: 0; padding: 10px 12px; border: 0; border-radius: 6px;
  background: transparent; box-shadow: none; color: #5f656c;
  text-decoration: none; font-size: 13px; font-weight: 500; text-align: left;
}
body[data-studio-page] :is(.library-sidebar-nav a,.vfx-global-nav a,.side-nav .tab):hover { background: #f4f6f9; color: #303740; }
body[data-studio-page] :is(.library-sidebar-nav a.active,.vfx-global-nav a.active,.side-nav .tab.active) { background: var(--studio-active); color: #2459c4; box-shadow: none; border: 0; }
body[data-studio-page] .library-sidebar-nav :is(i,svg) { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
body[data-studio-page] .library-sidebar-nav a.active i { background: transparent; color: inherit; }
body[data-studio-page] .library-sidebar-nav strong { font-weight: 500; font-size: 13px; }
body[data-studio-page] .library-sidebar-nav a.active strong { font-weight: 650; }
body[data-studio-page] .library-sidebar-nav small { display: none; }
body[data-studio-page] :is(.library-sidebar-foot,.ugc-header-health,.sidebar-foot) { margin-top: auto; padding: 24px 8px 0; border: 0; font-size: 10px; color: #657184; }
body[data-studio-page] :is(.library-sidebar-foot strong,.sidebar-foot strong) { color: #657184; font-size: 11px; font-weight: 500; }
body[data-studio-page] :is(.sidebar-status-dot,.ugc-header-health i) { box-shadow: none; width: 6px; height: 6px; background: #249466; }

/* Project library: same unframed content area as Creator Studio. */
body[data-studio-page=library] .library-main { margin-left: 220px; min-height: 100vh; background: var(--studio-bg); }
body[data-studio-page=library] .wrap { max-width: 1450px; width: 100%; margin: auto; padding: 30px 34px 56px; }
body[data-studio-page=library] .library-header { position: static; background: transparent; padding: 0 0 28px; min-height: 0; border: 0; box-shadow: none; backdrop-filter: none; }
body[data-studio-page=library] .library-identity::before, body[data-studio-page=library] .wrap::after { display: none; }
body[data-studio-page=library] .library-identity { min-width: 0; }
body[data-studio-page=library] .library-count { font-size: 12px; margin-top: 6px; color: var(--studio-faint); }
body[data-studio-page=library] .lib-grid { max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 0; gap: 18px; }
body[data-studio-page=library] .lib-card { border-color: var(--studio-line); border-radius: 8px; box-shadow: none; }
body[data-studio-page=library] .lib-card:hover { transform: none; border-color: #8995a6; box-shadow: 0 5px 18px #24272e09; }
body[data-studio-page=library] .lib-poster { background: #eef1f5; border-bottom-color: var(--studio-line); font-size: 12px; }
body[data-studio-page=library] .lib-body { padding: 18px; min-height: 115px; }
body[data-studio-page=library] .lib-body h3 { font-size: 15px; font-weight: 600; }
body[data-studio-page=library] .lib-body .lb-meta .chip { background: #f4f6f9; color: #657184; border-radius: 4px; }
body[data-studio-page=library] .mini-rail i.a { background: #2563eb; }
body[data-studio-page=library] :is(.lib-create,.dialog-submit) { background: var(--studio-accent); border-color: var(--studio-accent); box-shadow: none; font-size: 13px; font-weight: 550; }
body[data-studio-page=library] :is(.lib-create,.dialog-submit):hover { background: #383d47; }
body[data-studio-page=library] .live { font-size: 11px; background: #fff; color: #657184; border-color: var(--studio-line); box-shadow: none; }
body[data-studio-page=library] .lib-dialog { border-radius: 8px; border-color: var(--studio-line); padding: 28px; }
body[data-studio-page=library] .dialog-market { background: #f4f6f9; }

/* Publishing, assets, account and workspace surfaces. */
body[data-studio-page^=publish] .shell > main { margin-left: 220px; width: calc(100% - 220px); max-width: none; padding: 0 34px 56px; min-width: 0; }
body[data-studio-page^=publish] main > .vfx-topbar { margin: 0 -34px; }
body[data-studio-page^=publish] main > header { max-width: 1382px; margin: 0 auto; padding: 30px 0 28px; border: 0; background: transparent; }
body[data-studio-page^=publish] main > header { justify-content: flex-start; gap: 12px; }
body[data-studio-page^=publish] main > header > div:first-child { margin-right: auto; }
body[data-studio-page^=publish] main > :not(header):not(.vfx-topbar) { max-width: 1382px; margin-left: auto; margin-right: auto; }
body[data-studio-page^=publish] :is(button:not(:where(.secondary,.icon,.scene,.tab,.select-option,.select-trigger,.mode,.calendar-day,.calendar-nav,[role=radio])),.next) { background-color: var(--studio-accent); }
body[data-studio-page^=publish] :is(.sub,.panel-head p,.hintline,.field-hint) { color: #7a878c; }
body[data-studio-page^=publish] .panel {
  margin-top: 0; padding: 26px 0 30px; border: 0; border-top: 1px solid var(--studio-line);
  border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
}
body[data-studio-page^=publish] .publish-plan::before,
body[data-studio-page^=publish] .official-publish-panel::before { display: none; }
body[data-studio-page^=publish] .scene-grid { gap: 14px; margin-top: 20px; }
body[data-studio-page^=publish] .scene { min-height: 150px; border-radius: 8px; padding: 20px; background: #fff; box-shadow: none; border: 1px solid var(--studio-line); }
body[data-studio-page^=publish] .scene:hover { transform: none; border-color: #8995a6; }
body[data-studio-page^=publish] .scene.active { background: #f2f5fc; border-color: #92ade2; box-shadow: none; }
body[data-studio-page^=publish] .scene b { padding: 0; width: 24px; height: 24px; background: transparent; color: #657184; border-radius: 0; }
body[data-studio-page^=publish] .scene strong { font-size: 14px; font-weight: 600; }
body[data-studio-page^=publish] .scene em { color: #48566b; background: #eef1f5; border-color: #dfe4ec; border-radius: 4px; }
body[data-studio-page^=publish] :is(.safe-note,.quota,.api-link,.official-account-badge) { background: #f4f6f9; border-color: #dfe4ec; color: #48566b; border-radius: 4px; }
body[data-studio-page^=publish] .official-account-badge { background: #edf7f1; border-color: #d4e6dc; color: #256e49; }
body[data-studio-page^=publish] .safe-note::before { background: #48566b; }
body[data-studio-page^=publish] :is(.safe-note.warning,.safe-note.error) { background: #fff4df; color: #88601b; border-color: #ead7b1; }
body[data-studio-page^=publish] :is(.check,.check-card,.official-grid>.control-field,.publish-grid>label) { border-radius: 6px; box-shadow: none; }
body[data-studio-page^=publish] .check-card { border: 0; background: transparent; padding: 12px 0; }
body[data-studio-page^=publish] .check-card:has(:checked) { background: transparent; border-color: transparent; }
body[data-studio-page^=publish] :is(.upload-zone,.official-grid .upload-zone) { border: 1px dashed #bdc6d3; background: #f4f6f9; border-radius: 6px; padding: 22px; }
body[data-studio-page^=publish] :is(.upload-zone:hover,.upload-zone:focus,.upload-zone.dragover) { border-color: #48566b; background: #eef1f5; box-shadow: none; }
body[data-studio-page^=publish] .upload-zone-icon { background: #eef1f5; color: #48566b; border-radius: 6px; }
body[data-studio-page^=publish] :is(.official-preview,.plan-summary,.linked-asset,.official-account-summary) { background: #f4f6f9; border-color: #dfe4ec; border-radius: 6px; }
body[data-studio-page^=publish] :is(.official-result,.account,.hub-card,.ops-table) { background: #fff; border: 1px solid var(--studio-line); border-radius: 8px; box-shadow: none; }
body[data-studio-page^=publish] :is(.account:has(input:checked),.account.selected) { background: #f4f6f9; border-color: #8995a6; }
body[data-studio-page^=publish] .official-result code { color: #48566b; }
body[data-studio-page^=publish] :is(.select-trigger,.ops-filters .select-trigger) { background: #fff; color: #303740; border: 1px solid #dce2e5; border-radius: 6px; min-height: 44px; font-size: 13px; font-weight: 500; box-shadow: none; }
body[data-studio-page^=publish] :is(.select-trigger:hover,.select-shell.open .select-trigger) { border-color: #8995a6; box-shadow: 0 0 0 3px #2563eb10; }
body[data-studio-page^=publish] :is(.select-menu,.ops-filters .select-menu) { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--studio-line); border-radius: 6px; box-shadow: 0 12px 28px #30374017; padding: 5px; }
body[data-studio-page^=publish] :is(.select-option,.ops-filters .select-option) { background: transparent; color: #48566b; border-radius: 4px; min-height: 38px; font-weight: 500; }
body[data-studio-page^=publish] :is(.select-option:hover,.select-option.selected,.ops-filters .select-option.selected) { background: #f4f6f9; color: #2459c4; }
body[data-studio-page^=publish] .select-option.selected::after { color: #2459c4; }
body[data-studio-page^=publish] .official-grid .mode-choice { background: #eef1f5; border-color: #dfe4ec; border-radius: 6px; gap: 4px; }
body[data-studio-page^=publish] .official-grid .mode-choice button { background: transparent; color: #657184; border-radius: 4px; font-weight: 550; }
body[data-studio-page^=publish] .official-grid .mode-choice button.active { background: #fff; color: #2459c4; box-shadow: 0 1px 3px #30374013; }
body[data-studio-page^=publish] .calendar-picker { border-color: var(--studio-line); border-radius: 6px; padding: 16px; }
body[data-studio-page^=publish] :is(.calendar-nav,.calendar-shortcuts button,.date-chip) { background: #f4f6f9; border-color: #dfe4ec; color: #48566b; border-radius: 4px; }
body[data-studio-page^=publish] .calendar-day { border-radius: 4px; }
body[data-studio-page^=publish] .calendar-day.selected { background: #48566b; color: #fff; box-shadow: none; }
body[data-studio-page^=publish] .calendar-day.today:not(.selected) { box-shadow: inset 0 0 0 1px #657184; color: #48566b; }
body[data-studio-page^=publish] .calendar-day:hover { background: #eef1f5; color: #303740; }
body[data-studio-page^=publish] .calendar-day.selected:hover { background: #303740; color: #fff; }
body[data-studio-page^=publish] .date-clear { background: transparent; color: #48566b; }
body[data-studio-page^=publish] .date-chip b { color: #657184; }
body[data-studio-page^=publish] :is(.mode button.active,.tab.active,.steps li.active) { background: #eef1f5; border-color: #bdc6d3; color: #48566b; }
body[data-studio-page^=publish] :is(.tab,.mode button) { color: #657184; }
body[data-studio-page^=publish] .official-actions { flex-wrap: wrap; }
body[data-studio-page^=publish] .official-actions .progress { min-width: 180px; }
body[data-studio-page^=publish] .hub-card { padding: 16px; }
body[data-studio-page^=publish] .hub-card:hover { border-color: #8995a6; box-shadow: none; }
body[data-studio-page^=publish] .hub-card video { object-fit: contain; }
body[data-studio-page^=publish] .hub-card:has(>video) { padding: 0; overflow: hidden; }
body[data-studio-page^=publish] .hub-card > video { aspect-ratio: 9/16; max-height: 420px; margin: 0 0 16px; border-radius: 0; background: #eef1f5; }
body[data-studio-page^=publish] .hub-card:has(>video) > :is(strong,small) { margin-left: 16px; margin-right: 16px; }
body[data-studio-page^=publish] .hub-card:has(>video) > small:last-child { margin-bottom: 16px; }
body[data-studio-page^=publish] .hub-card:has(>video) .hub-card-actions { padding: 14px 16px; }
body[data-studio-page^=publish] :is(.hub-stats,.plan-insights) { gap: 0; border-block: 1px solid var(--studio-line); background: transparent; }
body[data-studio-page^=publish] :is(.hub-stat,.insight-card) { padding: 18px 20px; border: 0; border-right: 1px solid var(--studio-line); border-radius: 0; background: transparent; box-shadow: none; }
body[data-studio-page^=publish] :is(.hub-stat b,.insight-card strong) { font-size: 24px; color: var(--studio-text); font-weight: 600; }
body[data-studio-page^=publish] .ops-table { border-radius: 6px; }
body[data-studio-page^=publish] .ops-table th { background: #f4f6f9; color: #657184; font-weight: 550; }
body[data-studio-page^=publish] .ops-table tbody tr:hover { background: #f4f6f9; }
body[data-studio-page^=publish] :is(.records.empty,.hub-empty,.empty) { background: transparent; border-color: #dfe4ec; border-radius: 6px; }
body[data-studio-page^=publish] .empty-icon { background: #eef1f5; color: #48566b; }
body[data-studio-page^=publish] .record-toolbar { gap: 12px; }
body[data-studio-page^=publish] :is(.notice,.scene-notice) { border-color: #dfe4ec; background: #f4f6f9; color: #48566b; }

/* UGC production: preserve grids, workspaces, preview and safety gates. */
body[data-studio-page=ugc] .ugc-app-frame { display: grid; grid-template-columns: 220px minmax(0,1fr) !important; width: 100%; max-width: none; margin: 0; }
body[data-studio-page=ugc] .ugc-factory-main { grid-column: 2; min-width: 0; width: 100%; padding: 0 34px 60px !important; }
body[data-studio-page=ugc] .ugc-factory-main > .vfx-topbar { margin-inline: -34px; }
body[data-studio-page=ugc] .ugc-workspace { max-width: 1382px; margin: auto; padding-top: 0; }
body[data-studio-page=ugc] .ugc-topbar { max-width: 1382px; margin: 0 auto !important; padding: 28px 0 24px !important; min-height: 114px; border: 0; background: transparent; }
body[data-studio-page=ugc] .ugc-topbar-title h1 { font: 650 26px/1.35 var(--studio-font); max-width: 900px; white-space: normal; text-overflow: clip; }
body[data-studio-page=ugc] .ugc-topbar-title > span { color: #657184; font-family: var(--studio-font); }
body[data-studio-page=ugc] .ugc-topbar-title p { max-width: 900px; color: #657184; }
body[data-studio-page=ugc] .ugc-topbar-summary { background: transparent; border-left: 1px solid var(--studio-line); border-radius: 0; box-shadow: none; min-width: 165px; padding: 8px 0 8px 22px; }
body[data-studio-page=ugc] .ugc-brand { display: flex; flex-direction: row; flex-wrap: wrap; gap: 20px; margin: 0 0 18px; padding: 0 10px; border: 0; }
body[data-studio-page=ugc] .ugc-brand img { width: 52px; order: 0; }
body[data-studio-page=ugc] .ugc-brand .vfx-brand-name { display: inline; width: auto; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; font-weight: 650; color: var(--studio-text); white-space: nowrap; }
body[data-studio-page=ugc] .ugc-brand:has(.vfx-brand-name) { flex-wrap: nowrap; gap: 12px; margin-bottom: 30px; }
body[data-studio-page=ugc] .ugc-back-library[hidden] { display: none; }
body[data-studio-page=ugc] .ugc-brand::after { display: none; }
body[data-studio-page=ugc] .ugc-back-library { order: 2; width: 100%; margin: 0; min-height: 38px; padding: 7px 0; border: 0; color: #657184; background: transparent; box-shadow: none; }
body[data-studio-page=ugc] .ugc-side-nav { display: grid; margin: 26px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--studio-line); border-radius: 0; background: transparent; gap: 4px; }
body[data-studio-page=ugc] .ugc-side-nav button { display: flex; gap: 11px; padding: 10px 12px; min-height: 42px; border: 0; border-radius: 6px; color: #48566b; background: transparent; box-shadow: none; }
body[data-studio-page=ugc] .ugc-side-nav button.active { background: #f4f6f9; color: #24272e; border: 0; box-shadow: none; }
body[data-studio-page=ugc] .ugc-side-nav button::after { display: none; }
body[data-studio-page=ugc] .ugc-side-nav button > span { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; background: transparent; color: inherit; }
body[data-studio-page=ugc] .ugc-side-nav small { display: none; }
body[data-studio-page=ugc] .ugc-side-nav strong { font-size: 13px; font-weight: 550; }
body[data-studio-page=ugc] .ugc-tabbar { width: 100% !important; margin: 0 0 24px !important; padding: 0 !important; border: 0; border-bottom: 1px solid var(--studio-line); border-radius: 0; background: var(--studio-bg); gap: 26px; box-shadow: none; backdrop-filter: none; }
body[data-studio-page=ugc] .ugc-tabbar button { padding: 12px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; min-height: 45px; background: transparent; color: #657184; box-shadow: none; }
body[data-studio-page=ugc] .ugc-tabbar button.active { background: transparent; border-bottom-color: #2563eb; color: #2459c4; }
body[data-studio-page=ugc] .ugc-tabbar button::after { display: none; }
body[data-studio-page=ugc] .ugc-tabbar strong::after { display: none; }
body[data-studio-page=ugc] :is(.ugc-campaign-config,.ugc-order-input,.ugc-source-panel,.ugc-pipeline-section,.ugc-ledger-section,.ugc-progress-section,.ugc-queue-section,.ugc-section,.ugc-hotspot-workspace,.ugc-creative-context) { background: transparent; border: 0; border-bottom: 1px solid var(--studio-line); border-radius: 0; box-shadow: none; padding: 0 0 26px; margin-bottom: 24px; }
body[data-studio-page=ugc] :is(.ugc-campaign-head h2,.ugc-section-head h2,.ugc-workbench-head h2)::before { display: none; }
body[data-studio-page=ugc] :is(.ugc-campaign-head h2,.ugc-section-head h2,.ugc-workbench-head h2) { font-size: 18px; font-weight: 600; }
body[data-studio-page=ugc] .ugc-order-input-head > span { background: #eef1f5; color: #48566b; border-color: #dfe4ec; border-radius: 4px; box-shadow: none; }
body[data-studio-page=ugc] .ugc-market-summary { background: transparent; border: 0; border-block: 1px solid var(--studio-line); border-radius: 0; margin-top: 16px; }
body[data-studio-page=ugc] .ugc-market-summary > div { background: transparent; padding: 14px 12px; }
body[data-studio-page=ugc] :is(.ugc-campaign-compact-summary,.ugc-dropzone,.ugc-persona-upload,.ugc-reference-drop,.ugc-reuse-persona,.ugc-order-upload,.ugc-persona-reuse) { border-color: #dfe4ec; background: #f4f6f9; border-radius: 6px; }
body[data-studio-page=ugc] :is(.ugc-input,.ugc-textarea,.ugc-select-trigger) { font-family: var(--studio-font); font-size: 13px; border-color: #dce2e5; border-radius: 6px; min-height: 42px; }
body[data-studio-page=ugc] .ugc-select-menu { border-color: #dfe4ec; border-radius: 6px; box-shadow: 0 12px 28px #24272e17; }
body[data-studio-page=ugc] .ugc-select-menu :is(button:hover,button[aria-selected=true]) { background: #f4f6f9; color: #48566b; }
body[data-studio-page=ugc] :is(.ugc-button,.ugc-btn,.ugc-action,.ugc-action-button,.ugc-primary) { border-radius: 6px; box-shadow: none; }
body[data-studio-page=ugc] :is(.ugc-button.primary,.ugc-btn.primary,.ugc-order-start,.ugc-run-button) { background: var(--studio-accent); color: #fff; border-color: var(--studio-accent); box-shadow: none; }
body[data-studio-page=ugc] :is(.ugc-input-mode,.ugc-input-mode button.active,.ugc-persona-mode button.active) { border-color: var(--studio-line); border-radius: 6px; box-shadow: none; color: #48566b; }
body[data-studio-page=ugc] :is(.ugc-input-mode,.ugc-persona-mode) { background: #eef1f5; }
body[data-studio-page=ugc] :is(.ugc-script-workbench,.ugc-script-layout,.ugc-control-panel,.ugc-gate-panel,.ugc-pilot-gate,.ugc-generation-ledger) { border-color: #dfe4ec; border-radius: 6px; box-shadow: none; background: #fff; }
body[data-studio-page=ugc] .ugc-control-panel::before { display: none; }
body[data-studio-page=ugc] :is(.ugc-script-detail,.ugc-script-nav,.ugc-workbench-head) { background: #fff; }
body[data-studio-page=ugc] .ugc-script-nav button.active { background: #f4f6f9; box-shadow: inset 2px 0 #48566b; }
body[data-studio-page=ugc] :is(.ugc-script-review-direction,.ugc-script-review-direction em) { background: #f4f6f9; color: #48566b; border-color: #dfe4ec; border-radius: 6px; }
body[data-studio-page=ugc] .ugc-creative-stats { background: transparent; border-radius: 0; border-width: 0 0 0 1px; }
body[data-studio-page=ugc] :is(.ugc-pilot-video,.ugc-pilot-checks span,.ugc-live-progress) { background: #f4f6f9; border-color: #dfe4ec; border-radius: 6px; }
body[data-studio-page=ugc] :is(.ugc-generation-ledger > header,.ugc-ledger-empty) { background: #fff; }
body[data-studio-page=ugc] .ugc-generation-ledger > header { border-bottom-color: var(--studio-line); }
body[data-studio-page=ugc] .ugc-output-card { border-radius: 8px; border-color: var(--studio-line); box-shadow: none; }
body[data-studio-page=ugc] .ugc-modal-panel { border-radius: 8px; border-color: var(--studio-line); }

/* Administrator surface stays a separate permission boundary, not a new app. */
body[data-studio-page=admin] .login-shell { background: var(--studio-bg); }
body[data-studio-page=admin] .login-panel { width: min(430px,calc(100% - 32px)); border-radius: 8px; box-shadow: 0 12px 38px #24272e0b; border-color: var(--studio-line); padding: 36px; }
body[data-studio-page=admin] .brand-mark { color: var(--studio-text); gap: 12px; }
body[data-studio-page=admin] .brand-mark img { width: 52px; height: auto; }
body[data-studio-page=admin] .brand-mark b { color: #657184; font-weight: 550; }
body[data-studio-page=admin] .login-panel h1 { margin-top: 32px; font-size: 25px; }
body[data-studio-page=admin] .primary-button { border-radius: 6px; background: var(--studio-accent); font-size: 13px; font-weight: 550; padding-inline: 14px; }
body[data-studio-page=admin] .primary-button:hover { background: #383d47; }
body[data-studio-page=admin] .sidebar .brand-mark { padding: 0 10px; margin-bottom: 26px; color: var(--studio-text); }
body[data-studio-page=admin] .workspace-chip { margin: 0 8px 24px; padding: 12px 0; border: 0; border-top: 1px solid var(--studio-line); border-radius: 0; background: transparent; }
body[data-studio-page=admin] .workspace-chip strong { color: #48566b; font-weight: 500; }
body[data-studio-page=admin] .nav-icon, body[data-studio-page=admin] .tab.active .nav-icon { width: 18px; height: 18px; background: transparent; color: inherit; }
body[data-studio-page=admin] .main-area { margin-left: 220px; width: calc(100% - 220px); min-width: 0; }
body[data-studio-page=admin] .topbar { padding: 24px 34px; height: auto; min-height: 100px; border-color: var(--studio-line); }
body[data-studio-page=admin] .content { max-width: 1450px; padding: 28px 34px 56px; }
body[data-studio-page=admin] .secure-badge { border-radius: 4px; background: #f4f6f9; color: #48566b; }
body[data-studio-page=admin] .metrics { gap: 0; padding-bottom: 24px; border-bottom: 1px solid var(--studio-line); }
body[data-studio-page=admin] .metric { border: 0; border-right: 1px solid var(--studio-line); border-radius: 0; background: transparent; box-shadow: none; padding: 0 20px; }
body[data-studio-page=admin] .metric:first-child { padding-left: 0; }
body[data-studio-page=admin] .metric:last-child { border: 0; }
body[data-studio-page=admin] .metric::after { display: none; }
body[data-studio-page=admin] .metric b { font-size: 26px; font-weight: 600; }
body[data-studio-page=admin] :is(.automation-head,.route-panel,.storage) { border: 0; border-bottom: 1px solid var(--studio-line); padding: 0 0 24px; border-radius: 0; background: transparent; box-shadow: none; }
body[data-studio-page=admin] .route-panel { flex-wrap: wrap; }
body[data-studio-page=admin] :is(.step,.provider-card) { border-color: var(--studio-line); border-radius: 8px; box-shadow: none; }
body[data-studio-page=admin] .step > span { background: #f4f6f9; color: #48566b; border-radius: 4px; }
body[data-studio-page=admin] .provider-card code { color: #48566b; background: #f4f6f9; border-radius: 4px; }
body[data-studio-page=admin] .provider-card { min-width: 0; padding: 18px; }
body[data-studio-page=admin] .provider-card :is(small,strong) { overflow-wrap: anywhere; }
body[data-studio-page=admin] :is(.status,.dot) { border-radius: 4px; }
body[data-studio-page=admin] :is(.menu-trigger,.menu-popover) { border-color: #dce2e5; border-radius: 6px; }
body[data-studio-page=admin] .menu-trigger:hover { border-color: #8995a6; box-shadow: 0 0 0 3px #2563eb10; }
body[data-studio-page=admin] :is(.menu-option:hover,.menu-option.selected) { background: #f4f6f9; color: #48566b; }
body[data-studio-page=admin] .menu-option i { color: #48566b; }
body[data-studio-page=admin] .menu-option.selected small { color: #657184; }
body[data-studio-page=admin] #table { overflow-wrap: anywhere; }
body[data-studio-page=admin] #table:has(>table) { overflow: auto; }
body[data-studio-page=admin] table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
body[data-studio-page=admin] :is(th,td) { padding: 14px 16px; border-bottom: 1px solid var(--studio-line); text-align: left; }
body[data-studio-page=admin] th { background: #f4f6f9; font-weight: 550; color: #657184; }
body[data-studio-page=admin] #table > p { padding: 60px 24px; border-block: 1px solid var(--studio-line); text-align: center; color: #657184; }

body[data-studio-page=board] .wrap { width: 100%; max-width: 1450px; padding: 28px 34px 56px; }
body[data-studio-page=board] :is(.slate,.topbar,.panel) { background: transparent; border-color: var(--studio-line); box-shadow: none; }
body[data-studio-page=board] :is(.panel,.rail) { border-radius: 0; border-width: 0 0 1px; }
body[data-studio-page=board] :is(.wordmark,.eyebrow) { font-family: var(--studio-font); }
body[data-studio-page=legal] { max-width: 820px; margin: 0 auto; padding: 40px 28px 70px; }
body[data-studio-page=legal] main { margin: 0; padding: 0; }
body[data-studio-page=legal] article { padding: 24px 0 0; border: 0; border-top: 1px solid var(--studio-line); border-radius: 0; background: transparent; box-shadow: none; }
body[data-studio-page=legal] .notice { background: #f4f6f9; border-color: #48566b; }
body[data-studio-page=legal] a { color: #48566b; }

@media (max-width: 1200px) {
  body[data-studio-page=library] .lib-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body[data-studio-page=ugc] .ugc-order-grid,
  body[data-studio-page=ugc] .ugc-production-layout { grid-template-columns: minmax(0,1fr) !important; }
  body[data-studio-page=ugc] .ugc-control-panel { position: static; }
  body[data-studio-page=admin] .provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  body[data-studio-page] :is(.library-sidebar,.ugc-sidebar,.sidebar) { position: static; width: 100% !important; height: auto; padding: 14px 18px !important; border: 0; border-bottom: 1px solid var(--studio-line); }
  body[data-studio-page] .library-sidebar-brand { padding: 0; margin-bottom: 12px; }
  body[data-studio-page] :is(.library-sidebar-nav,.vfx-global-nav,.side-nav) { display: flex; overflow-x: auto; gap: 4px; padding: 0; flex: none; }
  body[data-studio-page] :is(.library-sidebar-nav a,.vfx-global-nav a,.side-nav .tab) { flex: 0 0 auto; min-width: 0; min-height: 40px; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  body[data-studio-page] .library-sidebar-nav strong { font-size: 12px; }
  body[data-studio-page] .library-sidebar-nav :is(i,svg) { display: none; }
  body[data-studio-page] :is(.library-sidebar-foot,.ugc-header-health,.sidebar-foot) { display: none; }
  body[data-studio-page] .vfx-topbar { min-height: 48px; padding: 0 18px; }
  body[data-studio-page=library] .library-main { margin-left: 0; }
  body[data-studio-page=library] .wrap { padding: 24px 18px 48px; }
  body[data-studio-page=library] .lib-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  body[data-studio-page^=publish] .shell { display: block; }
  body[data-studio-page^=publish] .shell > main { margin: 0; width: 100%; padding: 0 18px 48px; }
  body[data-studio-page^=publish] main > .vfx-topbar { margin: 0 -18px; }
  body[data-studio-page^=publish] main > header { padding-top: 24px; }
  body[data-studio-page^=publish] .panel { padding: 24px 0; }
  body[data-studio-page^=publish] .scene-grid { grid-template-columns: 1fr; }
  body[data-studio-page^=publish] .scene { min-height: 0; padding: 16px; }
  body[data-studio-page^=publish] .scene b { float: left; margin: 0 12px 0 0; }
  body[data-studio-page^=publish] .scene em { margin-left: 36px; }
  body[data-studio-page^=publish] .scene small { margin-left: 36px; }
  body[data-studio-page=ugc] .ugc-app-frame { grid-template-columns: 1fr !important; }
  body[data-studio-page=ugc] .ugc-factory-main { grid-column: 1; padding: 0 18px 48px !important; }
  body[data-studio-page=ugc] .ugc-factory-main > .vfx-topbar { margin-inline: -18px; }
  body[data-studio-page=ugc] .ugc-brand { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0; }
  body[data-studio-page=ugc] .ugc-brand:has(.vfx-brand-name) { justify-content: flex-start; margin-bottom: 12px; }
  body[data-studio-page=ugc] .ugc-sidebar { min-width: 0; overflow-x: hidden; }
  body[data-studio-page=ugc] .ugc-sidebar > :is(.ugc-brand,.vfx-global-nav,.ugc-side-nav) { width: 100%; min-width: 0; max-width: 100%; }
  body[data-studio-page=ugc] .ugc-back-library { width: auto; order: 1; }
  body[data-studio-page=ugc] .ugc-side-nav { display: flex; margin-top: 12px; padding: 0; border: 0; overflow: auto; }
  body[data-studio-page=ugc] .ugc-side-nav button { white-space: nowrap; flex: none; }
  body[data-studio-page=ugc] .ugc-topbar { padding: 24px 0 !important; gap: 18px; }
  body[data-studio-page=ugc] .ugc-tabbar { margin-inline: 0 !important; width: 100% !important; padding: 0 !important; }
  body[data-studio-page=ugc] .ugc-campaign-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-studio-page=admin] .app-shell { display: block; }
  body[data-studio-page=admin] .main-area { width: 100%; margin: 0; }
  body[data-studio-page=admin] .sidebar .brand-mark { padding: 0; margin-bottom: 12px; }
  body[data-studio-page=admin] .workspace-chip { display: none; }
  body[data-studio-page=admin] .side-nav .tab span:last-child { display: inline; }
  body[data-studio-page=admin] .side-nav .tab { width: auto; flex: 1 1 0; justify-content: center; padding-inline: 6px; gap: 7px; }
  body[data-studio-page=admin] :is(.topbar,.content) { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  body[data-studio-page] h1 { font-size: 23px; }
  body[data-studio-page] .vfx-topbar { font-size: 11px; }
  body[data-studio-page=library] .library-header { gap: 14px; align-items: flex-start; }
  body[data-studio-page=library] .library-actions { flex-wrap: wrap; gap: 8px; }
  body[data-studio-page=library] .library-count { display: block; }
  body[data-studio-page=library] .lib-grid { grid-template-columns: 1fr; gap: 18px; }
  body[data-studio-page=library] .lib-body { min-height: 96px; }
  body[data-studio-page^=publish] :is(.official-grid,.schedule-grid,.publish-grid,.hub-grid,.workspace-form) { grid-template-columns: minmax(0,1fr); }
  body[data-studio-page^=publish] :is(.official-grid .wide,.workspace-form-actions) { grid-column: auto; }
  body[data-studio-page^=publish] :is(.filters,.record-toolbar,.panel-head,.official-actions,.task-matrix-head) { flex-wrap: wrap; gap: 12px; }
  body[data-studio-page^=publish] :is(.official-account-summary-main,.official-account-summary small) { min-width: 0; }
  body[data-studio-page^=publish] .ops-filters label { min-width: calc(50% - 8px); }
  body[data-studio-page^=publish] :is(.filters input,.hub-toolbar input,.hub-toolbar select) { min-width: 0; max-width: 100%; }
  body[data-studio-page^=publish] :is(.official-preview,.plan-summary,.linked-asset,.task-matrix-head) { overflow-wrap: anywhere; }
  body[data-studio-page=ugc] .ugc-topbar { align-items: flex-start; flex-direction: column; }
  body[data-studio-page=ugc] .ugc-topbar-title h1 { font-size: 23px; }
  body[data-studio-page=ugc] .ugc-topbar-summary { border: 0; padding: 0; display: flex; gap: 10px; }
  body[data-studio-page=ugc] .ugc-topbar-summary div { display: flex; align-items: center; gap: 12px; }
  body[data-studio-page=ugc] .ugc-tabbar { gap: 8px; }
  body[data-studio-page=ugc] .ugc-tabbar button { flex: 1 1 0; min-width: 0; padding: 12px 4px; }
  body[data-studio-page=ugc] .ugc-campaign-fields { grid-template-columns: 1fr; }
  body[data-studio-page=ugc] .ugc-market-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body[data-studio-page=ugc] :is(.ugc-campaign-head,.ugc-section-head,.ugc-order-input-head,.ugc-generation-record-head) { flex-wrap: wrap; }
  body[data-studio-page=admin] :is(.provider-grid,.steps) { grid-template-columns: minmax(0,1fr); }
  body[data-studio-page=admin] .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  body[data-studio-page=admin] .metric:nth-child(3) { padding-left: 0; }
  body[data-studio-page=admin] .topbar { align-items: flex-start; gap: 16px; }
  body[data-studio-page=admin] .secure-badge { display: none; }
  body[data-studio-page=admin] .route-controls { width: 100%; }
  body[data-studio-page=admin] .menu-field { width: 100%; }
  body[data-studio-page=board] .wrap { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-studio-page] *, body[data-studio-page] *::before, body[data-studio-page] *::after { scroll-behavior: auto; transition-duration: 0s !important; animation-duration: .01ms !important; }
}

/* Unified native selects: keep the real select for forms and business logic,
   while presenting one calm, keyboard-friendly control across every surface. */
body[data-studio-page] select[data-studio-select-enhanced=true] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body[data-studio-page] .studio-select-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dce2e5;
  border-radius: 6px;
  background: #fff;
  color: #303740;
  box-shadow: none;
  font: 500 13px/1.35 var(--studio-font);
  text-align: left;
  cursor: pointer;
  vertical-align: middle;
}
body[data-studio-page] .studio-select-trigger:hover,
body[data-studio-page] .studio-select-trigger[aria-expanded=true] {
  border-color: #8995a6;
  box-shadow: 0 0 0 3px #2563eb10;
}
body[data-studio-page] .studio-select-trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
body[data-studio-page] .studio-select-trigger:disabled {
  background: #f4f6f9;
  color: #8995a6;
  cursor: not-allowed;
  box-shadow: none;
}
body[data-studio-page] .studio-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-studio-page] .studio-select-chevron {
  position: relative;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 1.5px solid #657184;
  border-bottom: 1.5px solid #657184;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .14s ease, border-color .14s ease;
}
body[data-studio-page] .studio-select-trigger[aria-expanded=true] .studio-select-chevron {
  border-color: #2459c4;
  transform: rotate(225deg) translate(-1px, -1px);
}
body[data-studio-page] .studio-select-menu {
  position: fixed;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 42px #202b3b1f, 0 2px 7px #202b3b0c;
  color: #48566b;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease;
}
body[data-studio-page] .studio-select-menu[hidden] { display: none !important; }
body[data-studio-page] .studio-select-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}
body[data-studio-page] .studio-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #48566b;
  font: 500 13px/1.35 var(--studio-font);
  text-align: left;
  cursor: pointer;
}
body[data-studio-page] .studio-select-option:hover,
body[data-studio-page] .studio-select-option:focus-visible,
body[data-studio-page] .studio-select-option.selected {
  background: #f1f5ff;
  color: #2459c4;
}
body[data-studio-page] .studio-select-option.selected {
  font-weight: 650;
}
body[data-studio-page] .studio-select-option.selected::after {
  content: "";
  width: 7px;
  height: 4px;
  margin: 0 2px 3px auto;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
body[data-studio-page] .studio-select-option:disabled {
  color: #a8b0bb;
  cursor: not-allowed;
  opacity: .65;
}
body[data-studio-page] .studio-select-group {
  padding: 8px 10px 5px;
  color: #8995a6;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}
body[data-studio-page^=publish] .studio-select-trigger {
  min-height: 44px;
  background: #fff;
  color: #303740;
}
body[data-studio-page^=publish] .studio-select-option {
  background: transparent;
  color: #48566b;
}
body[data-studio-page^=publish] .studio-select-option:hover,
body[data-studio-page^=publish] .studio-select-option:focus-visible,
body[data-studio-page^=publish] .studio-select-option.selected {
  background: #f1f5ff;
  color: #2459c4;
}
@media (prefers-reduced-motion: reduce) {
  body[data-studio-page] .studio-select-chevron,
  body[data-studio-page] .studio-select-menu { transition: none; }
}

/* Depth pass: scanning, compact production controls and review hierarchy. */
body[data-studio-page] { --studio-muted: #657184; --studio-faint: #737e8e; }
body[data-studio-page] :is(.field-hint,.hintline,.sub,.panel-head p) { font-size: 12px; line-height: 1.65; }
body[data-studio-page] :is(input,textarea,select,button) { transition: border-color .14s, background-color .14s, box-shadow .14s; }
body[data-studio-page] :is(.ops-table,.matrix-wrap,.task-matrix) { scrollbar-width: thin; scrollbar-color: #bfc8d4 transparent; }
body[data-studio-page] :is(.ops-table th,.data-table th) { font-size: 12px; font-weight: 600; }
body[data-studio-page] :is(.ops-table th,.ops-table td) { padding: 15px 16px; line-height: 1.6; }
body[data-studio-page] .ops-table th { position: sticky; top: 0; z-index: 1; }
body[data-studio-page] :is(.ops-modal,.ugc-modal-panel,.lib-dialog) { box-shadow: 0 20px 60px #202b3b24; }
body[data-studio-page=library] .library-header { padding-bottom: 24px; }
.project-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 0 22px; }
.project-search { position: relative; width: 260px; max-width: 100%; }
.project-search > span { position: absolute; inset: 12px auto auto 12px; color: #778395; }
body[data-studio-page=library] .project-search input { width: 100%; min-height: 42px; padding: 10px 12px 10px 38px; background: #fff; border: 1px solid #dfe4ec; font-size: 13px; }
.project-filter,.project-view { display: inline-flex; flex: none; gap: 3px; padding: 3px; border: 1px solid #e0e5ec; border-radius: 6px; background: #eef1f5; }
body[data-studio-page=library] :is(.project-filter,.project-view) button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 4px; background: transparent; color: #606c7d; font-size: 12px; cursor: pointer; }
body[data-studio-page=library] :is(.project-filter,.project-view) button[aria-pressed=true] { background: #fff; color: #2459c4; box-shadow: 0 1px 3px #25304712; }
body[data-studio-page=library] .project-view button { width: 34px; padding: 6px; }
body[data-studio-page=library] #projectOrder { min-height: 42px; padding: 8px 12px; border: 1px solid #dfe4ec; background: #fff; margin-left: auto; font-size: 12px; }
#projectMatches { font: 12px/1.5 var(--studio-font); font-variant-numeric: tabular-nums; color: #6a7585; min-width: 36px; }
.library-feedback { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 16px; background: #eef2f7; border-left: 3px solid #9caec8; font-size: 13px; }
.library-feedback[hidden] { display: none; }
.library-feedback[data-state=error] { color: #943e36; background: #fff1ee; border-color: #d69389; }
.library-feedback button { padding: 7px 12px; border: 1px solid #d7dde6; background: #fff; cursor: pointer; }
body[data-studio-page=library] .lib-grid { gap: 20px; }
body[data-studio-page=library] .lib-card { transition: border-color .15s, box-shadow .15s; }
body[data-studio-page=library] .lib-poster { aspect-ratio: 16/9; height: auto; min-height: 0; }
body[data-studio-page=library] .lib-poster:has(.lp-txt) { background: #edf0f5; }
body[data-studio-page=library] .lp-txt { font-size: 12px; color: #738195; }
body[data-studio-page=library] .lib-body { padding: 17px 18px; }
body[data-studio-page=library] .lib-body h3 { line-height: 1.5; margin-bottom: 10px; }
body[data-studio-page=library] .mini-rail { margin-top: 18px; }
.project-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; border-top: 1px solid #edf0f4; padding-top: 12px; font-size: 11px; color: #727e8e; }
.project-state .project-enter { color: #455975; }
.project-state.state-running > span:first-child { color: #2459c4; }
.project-state.state-review > span:first-child { color: #9b681b; }
body[data-studio-page=library] .lib-grid[data-view=list] { grid-template-columns: 1fr; gap: 10px; }
body[data-studio-page=library] .lib-grid[data-view=list] .lib-card { display: grid; grid-template-columns: 140px minmax(0,1fr); }
body[data-studio-page=library] .lib-grid[data-view=list] .lib-poster { height: 100%; min-height: 126px; aspect-ratio: auto; border: 0; border-right: 1px solid #e4e8ee; }
body[data-studio-page=library] .lib-grid[data-view=list] .lib-body { padding: 14px 18px; }
body[data-studio-page=library] .lib-grid[data-view=list] .mini-rail { display: none; }
body[data-studio-page=library] .lib-grid[data-view=list] .project-state { margin-top: 10px; padding-top: 8px; }
body[data-studio-page=library] #empty { padding: 60px 20px; text-align: center; border-top: 1px solid #e0e5ec; font-size: 14px; color: #6b7788; }
body[data-studio-page^=publish] main > header { padding-bottom: 22px; }
body[data-studio-page^=publish] .panel-head { margin-bottom: 20px; }
body[data-studio-page^=publish] .scene-grid { gap: 12px; margin-top: 12px; }
body[data-studio-page^=publish] .scene { position: relative; min-height: 105px; padding: 16px 18px 14px; text-align: left; }
body[data-studio-page^=publish] .scene b { float: left; width: 20px; height: 20px; margin: 0 10px 0 0; }
body[data-studio-page^=publish] .scene strong { display: block; margin: 0 0 7px; line-height: 20px; }
body[data-studio-page^=publish] .scene small { display: block; margin: 0 0 0 30px; font-size: 12px; line-height: 1.6; }
body[data-studio-page^=publish] .scene em { margin: 8px 0 0 30px; font-size: 10px; }
body[data-studio-page^=publish] .scene.active { border-color: #91aae0; background: #f3f6fd; }
body[data-studio-page^=publish] .official-grid { gap: 18px; }
body[data-studio-page^=publish] .official-grid > .control-field { padding: 0; border: 0; background: transparent; font-size: 13px; line-height: 1.6; }
body[data-studio-page^=publish] .official-grid :is(input[type=url],textarea) { padding: 12px; background: #fff; }
body[data-studio-page^=publish] .official-grid .check-card { padding: 10px 0; gap: 10px; align-items: flex-start; }
body[data-studio-page^=publish] .official-grid .check-card input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
body[data-studio-page^=publish] .official-grid .check-card strong { font-size: 13px; }
body[data-studio-page^=publish] .official-grid .check-card small { font-size: 11px; color: #738092; line-height: 1.6; }
body[data-studio-page^=publish] .official-preview { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #eef2f7; border: 1px solid #dfe6f0; }
body[data-studio-page^=publish] #officialPreviewText { font-size: 13px; line-height: 1.9; color: #526179; }
body[data-studio-page^=publish] .official-actions { gap: 10px; align-items: stretch; }
body[data-studio-page^=publish] .official-actions :is(a,button) { text-align: center; justify-content: center; min-height: 42px; }
body[data-studio-page^=publish] .official-result { padding: 18px; margin-top: 22px; }
body[data-studio-page^=publish] .hub-toolbar { gap: 10px; padding-bottom: 18px; }
body[data-studio-page^=publish] .hub-card { transition: border-color .15s; }
body[data-studio-page^=publish] .hub-card strong { font-size: 14px; line-height: 1.6; }
body[data-studio-page^=publish] .hub-card small { line-height: 1.6; }
body[data-studio-page^=publish] .hub-grid { gap: 18px; }
body[data-studio-page^=publish] .ops-filters { gap: 12px; padding-bottom: 22px; }
body[data-studio-page^=publish] .ops-filters label { font-size: 12px; }
body[data-studio-page=ugc] .ugc-tabbar { position: sticky; top: 0; z-index: 18; }
body[data-studio-page=ugc] .ugc-topbar-title p { font-size: 12px; line-height: 1.7; }
body[data-studio-page=ugc] .ugc-campaign-head { margin-bottom: 16px; }
body[data-studio-page=ugc] .ugc-market-summary > div { padding-block: 12px; }
body[data-studio-page=admin] .provider-card { display: flex; flex-direction: column; gap: 6px; }
body[data-studio-page=admin] .provider-card code { padding: 10px; font-size: 12px; }
body[data-studio-page=admin] .provider-card p { line-height: 1.7; }
body[data-studio-page=admin] .route-panel { gap: 20px; }
@media(min-width:1151px) {
  body[data-studio-page=publish] #officialPublishPanel:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) 285px; grid-template-rows: auto auto 1fr auto; gap: 0 30px; align-items: start; }
  body[data-studio-page=publish] #officialPublishPanel > .panel-head { grid-column: 1/-1; }
  body[data-studio-page=publish] #officialPublishPanel > .official-grid { grid-column: 1; grid-row: 2/4; padding-right: 30px; border-right: 1px solid #e0e5ec; }
  body[data-studio-page=publish] #officialPublishPanel > .official-preview { grid-column: 2; grid-row: 2; margin: 0 0 16px; }
  body[data-studio-page=publish] #officialPublishPanel > .official-actions { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; margin: 0; }
  body[data-studio-page=publish] #officialPublishPanel > .official-result { grid-column: 1/-1; grid-row: 4; }
}
@media(max-width:850px) {
  body[data-studio-page=ugc] .ugc-tabbar { top: 58px; }
  body[data-studio-page=library] .project-search { width: 100%; }
  body[data-studio-page=library] .project-toolbar { gap: 10px; }
  body[data-studio-page=library] #projectOrder { margin-left: 0; flex: 1; }
  body[data-studio-page^=publish] .official-grid :is(input,select,textarea) { font-size: 16px; }
  body[data-studio-page^=publish] .scene { min-height: 0; padding: 14px; }
  body[data-studio-page^=publish] .scene-grid { gap: 8px; }
  body[data-studio-page^=publish] .scene small { margin-left: 30px; }
}
@media(max-width:560px) {
  body[data-studio-page=library] .library-header { align-items: center; }
  body[data-studio-page=library] .library-actions .live { display: none; }
  body[data-studio-page=library] .lib-grid[data-view=list] .lib-card { grid-template-columns: 90px minmax(0,1fr); }
  body[data-studio-page=library] .lib-grid[data-view=list] .lp-txt { padding: 10px; text-align: center; font-size: 10px; }
  body[data-studio-page=library] .lib-grid[data-view=list] .lib-body { padding: 12px; }
  body[data-studio-page=library] .project-filter { flex: 1; }
  body[data-studio-page=library] .project-filter button { flex: 1; }
  body[data-studio-page=library] #projectMatches { margin-left: auto; }
  body[data-studio-page=library] #projectOrder { flex: none; width: 125px; }
  body[data-studio-page^=publish] .official-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body[data-studio-page^=publish] #officialSubmit { grid-column: 1/-1; grid-row: 1; min-height: 46px; }
  body[data-studio-page^=publish] #officialProgress { grid-column: 1/-1; }
  body[data-studio-page^=publish] .ops-filters label { flex: 1 1 calc(50% - 12px); min-width: 0; }
}
