/* Approved Paper workspace. Production book pages retain styles.css. */
body.studio-ui:not(.export-render-body) {
  --studio-muted: #756e5f;
  --studio-line: #e8e1d1;
  --studio-paper: #fbfaf5;
  --studio-field: #fffdf7;
  color: #171717;
  background: var(--studio-paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.studio-ui:not(.export-render-body) .main {
  background: var(--studio-paper);
  background-image: none;
}
.studio-ui:not(.export-render-body) .page {
  width: 100%;
  max-width: 1680px;
  padding: 38px 40px;
  margin: 0 auto;
}
.studio-ui:not(.export-render-body) .topbar {
  height: 78px;
  border-color: #e7bd53;
  box-shadow: none;
}
.studio-ui:not(.export-render-body) .logo { font-size: 16px; }
.studio-ui:not(.export-render-body) .product-context { font-size: 13px; }
.studio-ui:not(.export-render-body) .sidebar {
  padding: 30px 18px 24px;
  background: #fffdf7;
  border-right: 1px solid var(--studio-line);
}
.studio-ui:not(.export-render-body) .nav-list { gap: 6px; }
.studio-ui:not(.export-render-body) .nav-list a {
  min-height: 49px;
  border-radius: 12px;
  padding: 12px 13px;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #57554e;
}
.studio-ui:not(.export-render-body) .nav-list a.active {
  color: #171717;
  background: #ffc629;
  box-shadow: inset 3px 0 0 #ad9139;
}
.studio-ui:not(.export-render-body) .nav-section-label {
  padding: 0 12px 13px;
  color: #867b60;
  font-size: 11px;
  letter-spacing: .12em;
}
.studio-ui:not(.export-render-body) .nav-section-label-tools { margin-top: 24px; }
.studio-ui:not(.export-render-body) .sidebar-bottom { gap: 16px; padding-top: 36px; }
.connected-workspace {
  display: grid;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid #d7b64a;
  border-radius: 16px;
  background: #fff1ba;
}
.connected-workspace-kicker {
  color: #785d16;
  font-size: 10px;
  line-height: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.connected-workspace strong { font-size: 15px; line-height: 21px; }
.connected-workspace p { margin: 0; color: #6a6048; font-size: 12px; line-height: 19px; }
.studio-ui .connected-workspace .back-to-bookautoai {
  justify-content: space-between;
  padding: 9px 12px;
  min-height: 38px;
  color: #fff;
  background: #171717;
  border-radius: 9px;
  font-size: 12px;
}
.studio-ui .sidebar-footer { margin: 0; gap: 8px; }
.studio-ui .sidebar-footer > a {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 600;
}
.studio-ui .sidebar-footer > a.active { background: #ffc629; color: #171717; }
.studio-ui.sidebar-collapsed .connected-workspace,
.studio-ui.sidebar-collapsed .sidebar-footer > a span { display: none; }
.studio-ui.sidebar-collapsed .sidebar-footer { flex-direction: column; }
.studio-ui.sidebar-collapsed .sidebar-footer > a { flex: none; width: 42px; }

.studio-ui:not(.export-render-body) .page-header {
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
.studio-ui:not(.export-render-body) .page-kicker {
  margin-bottom: 10px;
  color: #96700a;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: .1em;
}
.studio-ui:not(.export-render-body) .page-title h1,
.studio-ui:not(.export-render-body) .tool-hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.studio-ui:not(.export-render-body) .page-title p {
  margin-top: 10px;
  font-weight: 400;
  line-height: 23px;
  color: var(--studio-muted);
}
.studio-ui:not(.export-render-body) :is(.card, .panel, .form-card) {
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.studio-ui:not(.export-render-body) :is(.panel, .form-card) { padding: 24px; }
.studio-ui:not(.export-render-body) .section-title { font-size: 18px; line-height: 24px; font-weight: 700; }
.studio-ui:not(.export-render-body) .muted { color: var(--studio-muted); }
.studio-ui:not(.export-render-body) .btn {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #ddd7ca;
  border-radius: 9px;
  color: #171717;
  background: #fffdf7;
  box-shadow: none;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}
.studio-ui:not(.export-render-body) .btn.primary {
  min-height: 46px;
  border-color: #d6aa22;
  background: #ffc629;
  box-shadow: none;
}
.studio-ui:not(.export-render-body) .btn.small { min-height: 36px; padding: 8px 11px; font-size: 12px; }
.studio-ui:not(.export-render-body) .btn:disabled { opacity: .55; cursor: not-allowed; }
.studio-ui:not(.export-render-body) .btn:hover:not(:disabled) { transform: none; background: #fff4d0; }
.studio-ui:not(.export-render-body) .btn.primary:hover:not(:disabled) { background: #ffd34f; }
.studio-ui:not(.export-render-body) .btn.danger { color: #974b40; border-color: #dbb4ac; background: #fff7f5; }
.studio-ui:not(.export-render-body) .btn.danger:hover:not(:disabled) { background: #f8eae6; border-color: #974b40; }
.studio-ui:not(.export-render-body) :is(.input, .select) {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #ddd7ca;
  border-radius: 9px;
  color: #3e3b34;
  background: #fffdf7;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
.studio-ui:not(.export-render-body) .input:disabled { background: #f5f3ec; color: var(--studio-muted); }
.studio-ui:not(.export-render-body) .field-label { font-weight: 700; color: #171717; }
.studio-ui:not(.export-render-body) .field-label > svg { display: none; }
.studio-ui:not(.export-render-body) .required-label {
  margin: 0;
  padding: 0;
  color: #96700a;
  font-size: 0;
  background: none;
}
.studio-ui:not(.export-render-body) .required-label::after { content: "*"; font-size: 12px; }
.studio-ui:not(.export-render-body) .badge {
  width: fit-content;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}
.studio-ui:not(.export-render-body) .badge .status-dot { display: none; }
.studio-ui:not(.export-render-body) :is(.badge.green, .project-status-control.green) { color: #46633e; background: #eaf0e3; }
.studio-ui:not(.export-render-body) :is(.badge.yellow, .badge.blue, .project-status-control.blue, .project-status-control.yellow) { color: #85681a; background: #fff3c3; }
.studio-ui:not(.export-render-body) :is(.badge.gray, .project-status-control.gray) { color: #696656; background: #f1efe7; }
.studio-ui:not(.export-render-body) :is(.badge.red, [data-project-state="failed"] .project-status-control) { color: #974b40; background: #f8eae6; }
.studio-ui:not(.export-render-body) .empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  padding: 40px 24px;
  text-align: center;
  color: var(--studio-muted);
}
.studio-ui:not(.export-render-body) .empty-state strong { color: #171717; font-size: 20px; }
.empty-state-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #fff3c3; color: #85681a; }

/* Project library and Home. */
.studio-ui:not(.export-render-body) .metric-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 26px; border-radius: 18px; box-shadow: none; background: #fff; }
.studio-ui:not(.export-render-body) .metric-row .metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 24px; min-height: 92px; border-radius: 0; }
.studio-ui:not(.export-render-body) .metric strong { font-size: 28px; line-height: 32px; letter-spacing: -.035em; }
.studio-ui:not(.export-render-body) .metric span { display: block; margin-top: 5px; font-size: 12px; color: var(--studio-muted); }
.studio-ui:not(.export-render-body) .metric .metric-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: #f5f2e9; border-radius: 10px; }
.studio-ui:not(.export-render-body) .metric:nth-child(2) .metric-icon { background: #eaf0e3; color: #46633e; }
.studio-ui:not(.export-render-body) .metric:nth-child(3) .metric-icon { background: #fff1ba; color: #85681a; }
.studio-ui:not(.export-render-body) .projects-workspace { display: block; overflow: visible; border-radius: 20px; }
.library-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 24px 16px; }
.library-panel-heading h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 18px; line-height: 24px; }
.library-panel-heading h2 span { font-size: 12px; color: var(--studio-muted); font-weight: 600; }
.library-sort-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--studio-muted); }
.studio-ui:not(.export-render-body) .searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0 24px 18px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.studio-ui:not(.export-render-body) .searchbar > label { min-width: 200px; max-width: 300px; height: 40px; padding: 10px 12px; border: 1px solid var(--studio-line); border-radius: 9px; background: #fff; }
.studio-ui:not(.export-render-body) .searchbar input { font-size: 13px; }
.project-filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-ui:not(.export-render-body) .pill-filter { display: inline-flex; gap: 7px; padding: 7px 12px; min-height: 34px; border: 1px solid var(--studio-line); border-radius: 999px; background: #fff; color: #625e53; font-size: 12px; line-height: 18px; }
.studio-ui:not(.export-render-body) .pill-filter.active { border-color: #ffc629; color: #171717; background: #ffc629; box-shadow: none; }
.studio-ui:not(.export-render-body) [data-project-filter="failed"] { color: #974b40; }
.project-list-heading,
.studio-ui:not(.export-render-body) [data-project-row] { display: grid; grid-template-columns: minmax(0, 1fr) 100px 146px 146px 24px; align-items: center; gap: 14px; }
.project-list-heading { padding: 11px 24px; border-block: 1px solid #ece7dc; background: #faf9f5; color: #847b67; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.studio-ui:not(.export-render-body) .projects-workspace .project-list { border: 0; border-radius: 0; background: none; }
.studio-ui:not(.export-render-body) [data-project-row] { min-height: 84px; padding: 15px 24px; border-bottom: 1px solid #eee9df; background: #fff; }
.project-title-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.project-title-copy { display: grid; gap: 5px; min-width: 0; }
.studio-ui:not(.export-render-body) .project-title-cell .thumb { width: 40px; height: 52px; flex: 0 0 40px; border-radius: 4px; background: #e8eedc; box-shadow: inset 3px 0 #00000010; font-size: 9px; }
.studio-ui:not(.export-render-body) .project-title-copy h3 { margin: 0; font-size: 13px; line-height: 19px; font-weight: 700; overflow-wrap: anywhere; }
.project-title-copy h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-updated { font-size: 11px; line-height: 16px; color: var(--studio-muted); }
.project-recipe-count { font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.studio-ui:not(.export-render-body) .project-status-control { display: inline-flex; width: fit-content; max-width: 146px; border-radius: 999px; padding: 0; }
.studio-ui:not(.export-render-body) .project-status-control select { min-height: 28px; max-width: 146px; width: auto; padding: 5px 21px 5px 10px; border: 0; border-radius: inherit; color: inherit; background-color: transparent; font: 700 11px/18px "DM Sans", sans-serif; }
.studio-ui:not(.export-render-body) .project-next-action { display: flex; justify-content: space-between; min-width: 0; white-space: normal; font-size: 11px; line-height: 16px; }
.studio-ui:not(.export-render-body) .project-next-action svg { width: 15px; height: 15px; flex: none; }
.studio-ui:not(.export-render-body) .draft-action { background: #fff1bd; border-color: #dcaf2f; }
.project-menu { position: relative; justify-self: end; }
.project-menu summary { display: grid; place-items: center; width: 28px; min-height: 36px; list-style: none; border-radius: 6px; cursor: pointer; color: var(--studio-muted); }
.project-menu summary::-webkit-details-marker { display: none; }
.project-menu summary:hover { background: #f5f2e9; }
.project-menu-items { position: absolute; z-index: 25; top: calc(100% + 4px); right: 0; display: grid; width: 200px; padding: 6px; border: 1px solid var(--studio-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #17171714; }
.project-menu-items :is(a, button) { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px; border: 0; border-radius: 7px; background: none; color: #3e3b34; text-align: left; font: 500 12px/20px "DM Sans", sans-serif; cursor: pointer; }
.project-menu-items :is(a, button):hover { background: #f7f5ee; }
.project-menu-items .project-delete-button { color: #974b40; }
.studio-ui:not(.export-render-body) .project-pagination { justify-content: flex-end; margin: 0; padding: 14px 24px; }
.studio-ui:not(.export-render-body) .grid.two { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.studio-ui:not(.export-render-body) .dashboard-active-project { min-height: 216px; grid-template-columns: 108px minmax(0, 1fr); background: #fff; }
.studio-ui:not(.export-render-body) .dashboard-active-project .cover { width: 108px; height: 144px; box-shadow: none; }
.studio-ui:not(.export-render-body) .dashboard-active-project h2 { font-size: 24px; line-height: 30px; letter-spacing: -.03em; }
.studio-ui:not(.export-render-body) .dashboard-active-copy { color: var(--studio-muted); font-size: 13px; line-height: 21px; }
.studio-ui:not(.export-render-body) .dashboard-credit-card { background: #fff1ba; border-color: #d7b64a; }
.studio-ui:not(.export-render-body) .dashboard-credit-card > strong { font-size: 38px; line-height: 44px; }
.studio-ui:not(.export-render-body) .dashboard-credit-card > .summary-icon,
.studio-ui:not(.export-render-body) .dashboard-next-card > .summary-icon { display: none; }
.studio-ui:not(.export-render-body) .dashboard-project-list [data-project-row] { grid-template-columns: minmax(0, 1fr) 120px 24px; padding: 16px 0; }
.studio-ui:not(.export-render-body) .dashboard-project-list :is(.project-recipe-count, .project-next-action) { display: none; }

/* Planning and generation. */
.cookbook-workflow { margin: 0 0 24px; padding: 17px 22px; border: 1px solid var(--studio-line); border-radius: 14px; background: #fff; }
.cookbook-workflow ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.cookbook-workflow li { display: flex; align-items: center; gap: 18px; color: var(--studio-muted); font-size: 13px; font-weight: 600; }
.cookbook-workflow li:not(:last-child) { flex: 1; }
.cookbook-workflow li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin-right: 18px; background: var(--studio-line); }
.cookbook-workflow :is(a, .workflow-step) { display: inline-flex; align-items: center; gap: 9px; }
.workflow-number { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #f3f0e7; font-size: 12px; }
.workflow-number svg { width: 14px; height: 14px; }
.cookbook-workflow .current { color: #171717; font-weight: 700; }
.cookbook-workflow .current .workflow-number { background: #ffc629; }
.cookbook-workflow .complete .workflow-number { color: #46633e; background: #eaf0e3; }
.studio-ui:not(.export-render-body) .create-page > .tool-back { margin: 0 0 24px; font-size: 12px; }
.studio-ui:not(.export-render-body) .workflow-notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid #e5d595; border-radius: 12px; background: #fff8df; box-shadow: none; }
.studio-ui:not(.export-render-body) .create-mode-switch { width: fit-content; margin-bottom: 24px; padding: 4px; gap: 4px; background: #eeebe2; border: 1px solid var(--studio-line); border-radius: 12px; }
.studio-ui:not(.export-render-body) .create-mode-switch button { min-height: 40px; border: 0; padding: 9px 15px; border-radius: 9px; background: transparent; color: #756e5f; }
.studio-ui:not(.export-render-body) .create-mode-switch button.active { color: #171717; background: #fff; box-shadow: none; }
.studio-ui:not(.export-render-body) .create-mode-switch button small { display: none; }
.studio-ui:not(.export-render-body) .create-workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.studio-ui:not(.export-render-body) .create-form-stack { gap: 20px; }
.studio-ui:not(.export-render-body) .form-section-heading { margin-bottom: 24px; padding: 0; border: 0; gap: 12px; }
.studio-ui:not(.export-render-body) .form-section-heading h2 { font-size: 18px; line-height: 24px; }
.studio-ui:not(.export-render-body) .form-section-icon { width: 20px; height: 24px; color: #171717; border-radius: 0; background: none; }
.studio-ui:not(.export-render-body) .form-section-heading p { font-size: 13px; line-height: 20px; }
.studio-ui:not(.export-render-body) .create-summary { padding: 24px; gap: 20px; border-color: var(--studio-line); background: #fff; }
.studio-ui:not(.export-render-body) .create-summary-heading .summary-icon { display: none; }
.studio-ui:not(.export-render-body) .create-summary-heading h2 { font-size: 23px; line-height: 29px; }
.studio-ui:not(.export-render-body) .create-summary-list > div { grid-template-columns: 82px minmax(0, 1fr); padding: 12px 0; }
.studio-ui:not(.export-render-body) .create-summary-list strong { white-space: normal; overflow-wrap: anywhere; line-height: 19px; }
.studio-ui:not(.export-render-body) .create-summary-empty { border: 1px solid #e5d595; border-radius: 10px; background: #fff8df; }
.studio-ui:not(.export-render-body) .library-summary { background: #f7f5ee; border: 0; border-radius: 9px; }
.studio-ui:not(.export-render-body) .bulk-workspace { background: transparent; border: 0; padding: 0; }
.studio-ui:not(.export-render-body) .bulk-workspace-tabs { background: transparent; border: 0; padding: 0 0 22px; }
.studio-ui:not(.export-render-body) .bulk-workspace-tabs button { box-shadow: none; border-radius: 8px; }
.studio-ui:not(.export-render-body) .bulk-layout { max-width: none; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; }
.studio-ui:not(.export-render-body) .bulk-layout > .form-card { grid-column: 1; grid-row: 1 / span 2; }
.studio-ui:not(.export-render-body) .bulk-layout > .form-card .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.studio-ui:not(.export-render-body) .bulk-layout > .form-card .form-grid > :nth-child(-n+2) { grid-column: 1 / -1; }
.studio-ui:not(.export-render-body) .bulk-layout > .form-card .textarea { min-height: 150px; }
.studio-ui:not(.export-render-body) .bulk-actions { grid-column: 2; }
.studio-ui:not(.export-render-body) :is(.bulk-history-tabs, .bulk-history-filters) { flex-wrap: wrap; }
.studio-ui:not(.export-render-body) .toc-grid { gap: 24px; }
.studio-ui:not(.export-render-body) .toc-chapter { border: 1px solid var(--studio-line); border-radius: 16px; background: #fff; box-shadow: none; }
.studio-ui:not(.export-render-body) .recipe-title-row { padding-block: 14px; border-color: var(--studio-line); }
.studio-ui:not(.export-render-body) .toc-summary { margin-bottom: 24px; }
.studio-ui:not(.export-render-body) .progress-track { height: 8px; border-radius: 8px; background: #f0ede5; }
.studio-ui:not(.export-render-body) .progress-track > span { border-radius: inherit; background: #ffc629; }
.studio-ui:not(.export-render-body) .activity { padding: 18px 0; border-color: var(--studio-line); }

/* Template, image workspace, exports, and settings. */
.studio-ui:not(.export-render-body) .single-template-grid { grid-template-columns: minmax(0, 1fr); }
.studio-ui:not(.export-render-body) .modern-template-card { padding: 24px; gap: 16px; }
.studio-ui:not(.export-render-body) .template-preview-image { height: auto; aspect-ratio: 2.5 / 1; min-height: 300px; background-size: contain; border: 0; margin: 0; border-radius: 12px; background-color: #faf6ef; }
.studio-ui:not(.export-render-body) img.template-preview-image { display: block; width: 100%; object-fit: contain; }
.template-card-heading { display: grid; gap: 8px; }
.studio-ui:not(.export-render-body) .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.studio-ui:not(.export-render-body) .settings-grid > .panel { padding: 26px; }
.studio-ui:not(.export-render-body) .settings-grid .field { max-width: 640px; }
.studio-ui:not(.export-render-body) .template-card h3 { font-size: 20px; line-height: 27px; margin: 0; }
.studio-ui:not(.export-render-body) .template-card p { max-width: 800px; color: var(--studio-muted); font-size: 14px; font-weight: 400; line-height: 22px; }
.studio-ui:not(.export-render-body) .template-meta-list { display: flex; flex-wrap: wrap; gap: 20px; }
.studio-ui:not(.export-render-body) .template-card > .btn { width: fit-content; justify-self: end; margin: 0; }
.studio-ui:not(.export-render-body) .drive-status { background: #fff; border-color: var(--studio-line); }
.studio-ui:not(.export-render-body) .drive-quality-flow { gap: 20px; }
.studio-ui:not(.export-render-body) .drive-match-cta { background: #fff8df; border: 1px solid #e5d595; border-radius: 12px; }
.studio-ui:not(.export-render-body) .coverage-card { box-shadow: none; background: #fff; border-color: var(--studio-line); border-radius: 12px; }
.studio-ui:not(.export-render-body) .image-slots-panel { border-radius: 16px; }
.studio-ui:not(.export-render-body) .image-slot-row { border-radius: 12px; border-color: var(--studio-line); box-shadow: none; background: #fff; }
.studio-ui:not(.export-render-body) .library-actions-bar { border: 1px solid #e5d595; border-radius: 14px; background: #fff8df; box-shadow: none; }
.studio-ui:not(.export-render-body) .file-row { padding: 18px 0; border-bottom: 1px solid var(--studio-line); }
.studio-ui:not(.export-render-body) .export-files-panel { border-radius: 16px; }
.studio-ui:not(.export-render-body) .export-hero { background: #fff; }
.studio-ui:not(.export-render-body) .form-message { border-radius: 10px; box-shadow: none; line-height: 21px; }
.studio-ui:not(.export-render-body) .credit-confirm-dialog { border: 1px solid var(--studio-line); border-radius: 18px; box-shadow: 0 20px 60px #17171722; }

/* Workspace chrome only: do not restyle the production .template-page. */
.studio-ui:not(.export-render-body)[data-route="editor"] .page { max-width: none; padding: 32px; }
.studio-ui:not(.export-render-body) .editor-toolbar { padding: 22px 24px; border-radius: 14px; background: #fff; }
.editor-setup-disclosure { margin: -8px 0 16px; }
.editor-setup-disclosure > summary { display: flex; align-items: center; gap: 8px; width: fit-content; margin-left: auto; padding: 11px 16px; border: 1px solid #ddd7ca; border-radius: 9px; background: #fffdf7; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.editor-setup-disclosure > summary::-webkit-details-marker { display: none; }
.editor-setup-disclosure[open] > summary { margin-bottom: 12px; }
.studio-ui:not(.export-render-body) .editor-setup-disclosure .book-info { display: none; }
.studio-ui:not(.export-render-body) .editor-setup-disclosure .book-setup-controls { grid-column: 1 / -1; justify-content: flex-start; }
.recipe-content-group { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--studio-line); }
.recipe-content-group > summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 13px; line-height: 20px; font-weight: 700; }
.recipe-content-group > summary span { color: var(--studio-muted); font-size: 11px; font-weight: 400; }
.recipe-content-group[open] > summary { margin-bottom: 14px; }
.recipe-content-group > .editor-field { margin-bottom: 12px; }
.studio-ui:not(.export-render-body) .design-select-field { padding: 0; border: 0; background: transparent; box-shadow: none; }
.studio-ui:not(.export-render-body) .text-toolbar { border: 0; background: transparent; }
.studio-ui:not(.export-render-body) .editor-toolbar .book-info h2 { font-size: 22px; line-height: 29px; letter-spacing: -.03em; }
.studio-ui:not(.export-render-body) .book-setup-controls { gap: 12px; align-items: end; }
.studio-ui:not(.export-render-body) .editor-subtoolbar { margin: 22px 0; padding-bottom: 14px; border-bottom: 1px solid var(--studio-line); }
.studio-ui:not(.export-render-body) .editor-mode-tabs { gap: 6px; padding: 0; background: none; border: 0; }
.studio-ui:not(.export-render-body) .editor-mode-tabs button { padding: 10px 16px; min-height: 36px; background: none; border: 0; border-radius: 8px; color: var(--studio-muted); box-shadow: none; }
.studio-ui:not(.export-render-body) .editor-mode-tabs button.active { color: #fff; background: #171717; box-shadow: none; }
.studio-ui:not(.export-render-body) .design-controls { padding: 16px 20px; gap: 20px; border-radius: 12px; }
.studio-ui:not(.export-render-body) .grid.editor { grid-template-columns: 180px minmax(0, 1fr) 268px; gap: 16px; align-items: start; }
.studio-ui:not(.export-render-body) .grid.editor.inspector-collapsed { grid-template-columns: 180px minmax(0, 1fr) 56px; }
.studio-ui:not(.export-render-body) :is(.pages-panel, .settings-panel) { padding: 20px 12px; border-radius: 14px; }
.studio-ui:not(.export-render-body) .settings-panel { padding: 20px; }
.studio-ui:not(.export-render-body) .pages-panel .section-title { font-size: 14px; }
.studio-ui:not(.export-render-body) .page-strip { grid-template-columns: 24px minmax(0, 1fr) 10px; min-height: 64px; padding: 10px 8px; border-radius: 9px; border: 1px solid transparent; background: #fff; }
.studio-ui:not(.export-render-body) .page-strip > :is(.page-strip-thumb, .page-mini) { display: none; }
.studio-ui:not(.export-render-body) .page-strip.active { border-color: #d7b64a; background: #fff3c3; box-shadow: none; }
.studio-ui:not(.export-render-body) .page-strip-label strong { font-size: 12px; line-height: 17px; white-space: normal; }
.studio-ui:not(.export-render-body) .page-strip > span { color: var(--studio-muted); font-size: 10px; }
.studio-ui:not(.export-render-body) .page-strip > em { font-size: 9px; color: var(--studio-muted); }
.studio-ui:not(.export-render-body) .editor-canvas-panel { overflow: hidden; border: 1px solid #e1dccf; border-radius: 14px; background: #f0ede5; }
.studio-ui:not(.export-render-body) .book-canvas { border: 0; border-radius: 0; background: #f0ede5; }
.studio-ui:not(.export-render-body) .canvas-toolbar { background: transparent; padding: 14px 16px; }
.studio-ui:not(.export-render-body) .canvas-stage { padding: 12px 16px 24px; }
.studio-ui:not(.export-render-body) .editor-footer { padding: 12px 16px; border-color: #e1dccf; background: #f0ede5; }
.studio-ui:not(.export-render-body) .editor-footer .btn { font-size: 11px; }
.studio-ui:not(.export-render-body) .editor-inspector-toggle { font-size: 11px; }
.studio-ui:not(.export-render-body) .settings-panel .section-title { font-size: 16px; line-height: 22px; }
.studio-ui:not(.export-render-body) .editor-field { font-size: 12px; gap: 8px; }
.studio-ui:not(.export-render-body) .editor-field .input { font-size: 12px; line-height: 19px; }
.studio-ui:not(.export-render-body) .divider-choice-card { border-color: var(--studio-line); border-radius: 10px; background: #fffdf7; box-shadow: none; }
.studio-ui:not(.export-render-body) .divider-choice-card.active { border-color: #d7b64a; background: #fff8df; }

@media (min-width: 1800px) {
  .studio-ui:not(.export-render-body) .grid.editor { grid-template-columns: 210px minmax(0, 1fr) 310px; }
}
@media (max-width: 1200px) {
  .studio-ui:not(.export-render-body) .page { padding-inline: 28px; }
  .studio-ui:not(.export-render-body) .project-list-heading,
  .studio-ui:not(.export-render-body) [data-project-row] { grid-template-columns: minmax(0, 1fr) 80px 128px 128px 24px; gap: 10px; padding-inline: 18px; }
  .studio-ui:not(.export-render-body) .grid.editor { grid-template-columns: 150px minmax(0, 1fr) 240px; }
  .studio-ui:not(.export-render-body) .grid.editor.inspector-collapsed { grid-template-columns: 150px minmax(0, 1fr) 56px; }
  .studio-ui:not(.export-render-body) :is(.grid.two, .create-workspace, .bulk-layout) { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .studio-ui:not(.export-render-body) .metric-row .metric { padding: 20px 16px; }
  .studio-ui:not(.export-render-body) .metric-icon { display: none !important; }
}
@media (max-width: 1024px) {
  .studio-ui:not(.export-render-body) .page-title h1 { font-size: 34px; }
  .studio-ui:not(.export-render-body) :is(.grid.two, .create-workspace, .bulk-layout) { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .create-summary { position: static; }
  .studio-ui:not(.export-render-body) .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-ui:not(.export-render-body) .bulk-layout > .form-card { grid-row: auto; }
  .studio-ui:not(.export-render-body) .bulk-actions { grid-column: 1; }
  .studio-ui:not(.export-render-body) .grid.editor,
  .studio-ui:not(.export-render-body) .grid.editor.inspector-collapsed { grid-template-columns: 150px minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .settings-panel { grid-column: 1 / -1; }
  .studio-ui:not(.export-render-body) .settings-panel.is-collapsed { width: 100%; }
  .studio-ui:not(.export-render-body) .settings-panel.is-collapsed .editor-inspector-toggle span { display: inline; }
  .studio-ui:not(.export-render-body) .editor-inspector-content { max-height: none; }
}
@media (max-width: 900px) {
  .studio-ui:not(.export-render-body) .project-list-heading { display: none; }
  .studio-ui:not(.export-render-body) [data-project-row] { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 14px; }
  .studio-ui:not(.export-render-body) .project-title-cell { grid-column: 1 / 3; grid-row: 1; }
  .studio-ui:not(.export-render-body) .project-menu { grid-column: 3; grid-row: 1; }
  .studio-ui:not(.export-render-body) .project-recipe-count { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--studio-muted); }
  .studio-ui:not(.export-render-body) .project-status-control { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
  .studio-ui:not(.export-render-body) .project-next-action { grid-column: 1 / 4; grid-row: 3; justify-self: end; min-width: 160px; }
  .studio-ui:not(.export-render-body) .dashboard-project-list [data-project-row] { grid-template-columns: minmax(0, 1fr) auto 24px; }
  .studio-ui:not(.export-render-body) .dashboard-project-list .project-status-control { grid-column: 1 / 3; justify-self: start; }
  .cookbook-workflow { padding: 14px; }
  .cookbook-workflow li { font-size: 11px; gap: 8px; }
  .cookbook-workflow li:not(:last-child)::after { margin-right: 8px; }
}
@media (max-width: 760px) {
  .studio-ui:not(.export-render-body) .page,
  .studio-ui:not(.export-render-body)[data-route="editor"] .page { padding: 24px 20px; }
  .studio-ui:not(.export-render-body) .topbar { min-height: 64px; height: auto; padding: 10px 20px; gap: 12px; }
  .studio-ui:not(.export-render-body) .product-context { display: none; }
  .studio-ui:not(.export-render-body) .logo { font-size: 14px; }
  .studio-ui:not(.export-render-body) .logo img { width: 34px; height: 34px; }
  .studio-ui:not(.export-render-body) .topbar-actions { gap: 6px; }
  .studio-ui:not(.export-render-body) .credit-pill { min-width: 0; padding: 0 9px; font-size: 10px; }
  .studio-ui:not(.export-render-body) .page-header { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .studio-ui:not(.export-render-body) .page-title h1,
  .studio-ui:not(.export-render-body) .tool-hero h1 { font-size: 32px; line-height: 36px; letter-spacing: -.04em; }
  .studio-ui:not(.export-render-body) .page-title p { font-size: 14px; line-height: 21px; }
  .studio-ui:not(.export-render-body) .page-primary-action { width: 100%; }
  .studio-ui:not(.export-render-body) :is(.panel, .form-card) { padding: 20px; border-radius: 13px; }
  .studio-ui:not(.export-render-body) .metric-row { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 0; border-width: 0 0 1px; background: transparent; }
  .studio-ui:not(.export-render-body) .metric-row .metric { padding: 14px 7px; min-height: 80px; border: 0; }
  .studio-ui:not(.export-render-body) .metric-row .metric:first-child { padding-left: 0; }
  .studio-ui:not(.export-render-body) .metric strong { font-size: 24px; line-height: 28px; }
  .studio-ui:not(.export-render-body) .metric span { font-size: 10px; line-height: 15px; }
  .studio-ui:not(.export-render-body) .projects-workspace { background: transparent; border: 0; border-radius: 0; }
  .library-panel-heading { padding: 0 0 16px; }
  .library-panel-heading h2 { font-size: 16px; }
  .library-panel-heading h2 span { font-size: 11px; }
  .library-sort-label { font-size: 0; }
  .studio-ui:not(.export-render-body) .searchbar { padding: 0 0 20px; gap: 18px; }
  .studio-ui:not(.export-render-body) .searchbar > label { width: 100%; max-width: none; min-height: 44px; flex-basis: 100%; }
  .project-filter-list { flex-wrap: nowrap; overflow: auto; max-width: 100%; padding-bottom: 3px; }
  .studio-ui:not(.export-render-body) .pill-filter { white-space: nowrap; flex: none; }
  .studio-ui:not(.export-render-body) .projects-workspace .project-list { display: grid; gap: 16px; }
  .studio-ui:not(.export-render-body) [data-project-row] { padding: 17px; border: 1px solid var(--studio-line); border-radius: 13px; gap: 12px; }
  .studio-ui:not(.export-render-body) .project-title-copy h3 { font-size: 14px; line-height: 20px; }
  .studio-ui:not(.export-render-body) .project-next-action { grid-column: 2 / 4; min-width: 135px; }
  .studio-ui:not(.export-render-body) .project-status-control { grid-column: 1; grid-row: 3; justify-self: start; }
  .studio-ui:not(.export-render-body) .project-recipe-count { grid-column: 1 / 4; grid-row: 2; }
  .studio-ui:not(.export-render-body) .project-pagination { padding-inline: 0; }
  .studio-ui:not(.export-render-body) .dashboard-active-project { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; min-height: 190px; }
  .studio-ui:not(.export-render-body) .dashboard-active-project .cover { width: 72px; height: 100px; }
  .studio-ui:not(.export-render-body) .dashboard-active-project h2 { font-size: 20px; line-height: 26px; }
  .studio-ui:not(.export-render-body) .dashboard-project-list [data-project-row] { border-width: 0 0 1px; border-radius: 0; padding: 16px 0; }
  .studio-ui:not(.export-render-body) .side-stack { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .form-grid-two { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .bulk-layout > .form-card .form-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .bulk-layout > .form-card .form-grid > :nth-child(-n+2) { grid-column: auto; }
  .cookbook-workflow { padding: 10px 0; border: 0; background: none; }
  .cookbook-workflow ol { justify-content: space-between; gap: 8px; }
  .cookbook-workflow li { flex: 0 1 auto !important; font-size: 10px; gap: 0; }
  .cookbook-workflow li:not(:last-child)::after { display: none; }
  .cookbook-workflow :is(a, .workflow-step) { gap: 5px; }
  .workflow-number { width: 22px; height: 22px; font-size: 10px; }
  .studio-ui:not(.export-render-body) .workflow-notice { padding: 12px; font-size: 12px; }
  .studio-ui:not(.export-render-body) .template-preview-image { min-height: 0; aspect-ratio: 4 / 3; }
  .studio-ui:not(.export-render-body) .modern-template-card { padding: 16px; }
  .studio-ui:not(.export-render-body) .template-card > .btn { width: 100%; }
  .studio-ui:not(.export-render-body) .template-meta-list { gap: 12px; font-size: 12px; }
  .studio-ui:not(.export-render-body) .editor-toolbar { padding: 18px; }
  .studio-ui:not(.export-render-body) .grid.editor,
  .studio-ui:not(.export-render-body) .grid.editor.inspector-collapsed { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .pages-panel { position: static; max-height: 210px; overflow: auto; }
  .studio-ui:not(.export-render-body) .page-strip-list { display: flex; gap: 8px; overflow-x: auto; max-height: none; }
  .studio-ui:not(.export-render-body) .page-strip { flex: 0 0 150px; min-height: 64px; }
  .studio-ui:not(.export-render-body) .editor-subtoolbar { flex-wrap: wrap; gap: 12px; }
  .studio-ui:not(.export-render-body) .editor-mode-tabs { width: 100%; justify-content: space-between; }
  .studio-ui:not(.export-render-body) .editor-mode-tabs button { flex: 1; padding: 10px 6px; font-size: 12px; }
  .studio-ui:not(.export-render-body) .design-controls { flex-wrap: wrap; }
  .studio-ui:not(.export-render-body) .book-setup-controls { flex-wrap: wrap; }
  .studio-ui:not(.export-render-body) .book-setup-controls .editor-field { flex: 1 1 120px; }
  .studio-ui:not(.export-render-body) .settings-panel { grid-column: auto; }
  .studio-ui:not(.export-render-body) .file-row { gap: 12px; }
  .studio-ui:not(.export-render-body) .file-row .file-metric { font-size: 11px; }
}
@media (max-width: 430px) {
  .studio-ui:not(.export-render-body) .topbar .credit-pill { display: none; }
  .studio-ui:not(.export-render-body) .topbar .header-link span { display: none; }
  .studio-ui:not(.export-render-body) .topbar .header-link { min-width: 34px; min-height: 34px; padding: 6px; }
  .studio-ui:not(.export-render-body) .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-ui:not(.export-render-body) .metric-row .metric:last-child { display: none; }
}

/* Library review and export workspaces. Keep each action in a stable lane. */
.studio-ui:not(.export-render-body) .image-library-overview { gap: 16px; }
.studio-ui:not(.export-render-body) .drive-status-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.studio-ui:not(.export-render-body) .drive-status-actions { justify-content: flex-start; }
.studio-ui:not(.export-render-body) .drive-quality-flow { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-ui:not(.export-render-body) :is(.drive-match-cta, .smart-pairing-pro-card) { padding: 20px; border-radius: 12px; box-shadow: none; }
.studio-ui:not(.export-render-body) .smart-pairing-pro-card { border-color: var(--studio-line); background: #faf9f5; }
.studio-ui:not(.export-render-body) .image-rules-panel > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; font-size: 14px; }
.studio-ui:not(.export-render-body) .image-rules-panel[open] > summary { margin-bottom: 20px; }
.studio-ui:not(.export-render-body) .image-coverage-grid { gap: 0; border: 1px solid var(--studio-line); border-radius: 14px; overflow: hidden; background: white; }
.studio-ui:not(.export-render-body) .coverage-card { border: 0; border-right: 1px solid var(--studio-line); border-radius: 0; padding: 18px 24px; }
.studio-ui:not(.export-render-body) .coverage-card:last-child { border-right: 0; }
.studio-ui:not(.export-render-body) .image-slots-scroll { height: auto; min-height: 0; max-height: 720px; }
.studio-ui:not(.export-render-body) .image-slot-row { grid-template-columns: 80px minmax(0, 1fr) 300px; min-height: 110px; padding: 14px; gap: 16px; }
.studio-ui:not(.export-render-body) :is(.slot-thumb, .slot-thumb img, .slot-placeholder) { width: 80px; height: 80px; }
.studio-ui:not(.export-render-body) .slot-actions { width: 300px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.studio-ui:not(.export-render-body) .slot-actions .btn { padding: 8px; min-width: 0; }
.studio-ui:not(.export-render-body) .image-library-actions { border-color: #e5d595; background: #fff8df; }
.studio-ui:not(.export-render-body) .image-library-action-buttons { grid-template-columns: auto auto; }
.export-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 24px; }
.studio-ui:not(.export-render-body) .export-hero { grid-template-columns: 76px minmax(0, 1fr); gap: 22px; }
.studio-ui:not(.export-render-body) .export-hero > .cover { width: 76px; height: 100px; }
.studio-ui:not(.export-render-body) .export-hero h2 { font-size: 21px; margin-bottom: 12px; }
.studio-ui:not(.export-render-body) .export-hero p { margin: 10px 0 0; }
.studio-ui:not(.export-render-body) .file-row { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; }
.studio-ui:not(.export-render-body) .file-row .file-icon { width: 40px; height: 44px; background: #f5f2e9; color: #71674b; border-radius: 8px; }
.studio-ui:not(.export-render-body) .file-row .file-metric { display: none; }
.studio-ui:not(.export-render-body) .file-title-line { flex-wrap: wrap; gap: 8px; }
.studio-ui:not(.export-render-body) .file-title-line strong { font-size: 14px; }
.studio-ui:not(.export-render-body) .file-primary small { font-size: 12px; font-weight: 400; line-height: 19px; }
.studio-ui:not(.export-render-body) .export-files-head { align-items: start; gap: 12px; flex-wrap: wrap; }
.export-manifest > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px; }
.export-manifest > summary span { display: flex; align-items: center; gap: 12px; }
.export-manifest[open] > summary { margin-bottom: 20px; }
.export-manifest pre { max-height: 320px; overflow: auto; }
.studio-ui:not(.export-render-body) .export-note { background: #fff7d8; border-color: #e9daa9; }
.production-completion { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 14px; }
.production-completion > strong { font-size: 32px; letter-spacing: -0.04em; }
.production-diagnostics > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 700; }
.production-diagnostics[open] > summary { margin-bottom: 20px; }
.studio-ui:not(.export-render-body) .pipeline-card { align-items: start; }
.studio-ui:not(.export-render-body) .recipe-live-row { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
@media (max-width: 1200px) {
  .export-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .export-layout > .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .studio-ui:not(.export-render-body) .drive-quality-flow { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .coverage-card { padding: 16px 12px; }
  .studio-ui:not(.export-render-body) .image-slot-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .studio-ui:not(.export-render-body) :is(.slot-thumb, .slot-thumb img, .slot-placeholder) { width: 64px; height: 64px; }
  .studio-ui:not(.export-render-body) .slot-actions { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-ui:not(.export-render-body) .image-library-actions { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .image-library-action-buttons { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .export-layout > .side-stack { grid-template-columns: minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .file-row { grid-template-columns: 34px minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .file-row > :is(.file-download, .file-unavailable) { grid-column: 2; justify-self: start; margin-top: 12px; }
  .studio-ui:not(.export-render-body) .file-row .file-icon { width: 34px; height: 40px; }
  .studio-ui:not(.export-render-body) .export-hero { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  .studio-ui:not(.export-render-body) .export-hero > .cover { width: 56px; height: 76px; }
  .studio-ui:not(.export-render-body) .recipe-live-row { grid-template-columns: 40px minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .pipeline-head { flex-wrap: wrap; gap: 10px; }
}
.studio-ui:not(.export-render-body) .drive-status-head { display: grid; align-items: start; }
.studio-ui:not(.export-render-body) .drive-status-actions { flex: none; }
.studio-ui:not(.export-render-body) .coverage-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.studio-ui:not(.export-render-body) .coverage-card .step-icon { display: none; }
.studio-ui:not(.export-render-body) .image-slot-row { grid-template-columns: 80px minmax(0, 1fr) 340px; }
.studio-ui:not(.export-render-body) .slot-actions { width: 340px; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); }
.studio-ui:not(.export-render-body) .export-preflight .btn { display: flex; width: 100%; }
@media (max-width: 760px) {
  .studio-ui:not(.export-render-body) .image-slot-row { grid-template-columns: 64px minmax(0, 1fr); }
  .studio-ui:not(.export-render-body) .slot-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-ui:not(.export-render-body) .slot-action-generate { grid-column: 1 / -1; grid-row: 3; }
  .studio-ui:not(.export-render-body) .slot-action-generate .credit-chip { margin-left: 4px; }
  .studio-ui:not(.export-render-body) .image-coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-ui:not(.export-render-body) .coverage-card:nth-child(-n+2) { border-bottom: 1px solid var(--studio-line); }
  .studio-ui:not(.export-render-body) .coverage-card:nth-child(2) { border-right: 0; }
}
.studio-ui:not(.export-render-body) .design-controls > * { min-width: 0; }
.studio-ui:not(.export-render-body) .design-select-field select { width: 100%; max-width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .studio-ui:not(.export-render-body) .design-controls { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .studio-ui:not(.export-render-body) .text-toolbar { min-width: 0; max-width: 100%; }
}
.create-output-fields { margin-top: 22px; }
.create-advanced-settings { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--studio-line); }
.create-advanced-settings > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13px; font-weight: 700; }
.create-advanced-settings[open] > summary { margin-bottom: 22px; }
.studio-ui:not(.export-render-body) :is(.book-canvas, .canvas-stage) { min-width: 0; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .studio-ui:not(.export-render-body) .text-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
  .studio-ui:not(.export-render-body) .text-toolbar > .toolbar-label { flex-basis: 100%; }
  .studio-ui:not(.export-render-body) .book-canvas { padding: 12px; }
  .studio-ui:not(.export-render-body) .canvas-stage { min-height: 0; }
}
.studio-ui:not(.export-render-body) .book-spread { grid-template-columns: calc(520px * var(--editor-zoom-scale)) 22px calc(520px * var(--editor-zoom-scale)); gap: 0; }
.studio-ui:not(.export-render-body) .book-spread .spread-side { display: grid; }
.studio-ui:not(.export-render-body) .book-spread .spread-gutter { display: block; }
.studio-ui:not(.export-render-body) .side-stack { align-content: start; align-items: start; }
