/* Conversion plan (내 원고) + zoned studio workspace. */

.conversion-plan {
  display: grid;
  gap: 10px;
  margin: 18px 0 4px;
}

.conversion-plan-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.conversion-plan-head h3 {
  margin: 0;
  font-size: 0.92rem;
}

.conversion-plan-head small {
  color: var(--muted);
}

.conversion-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.conversion-choice {
  display: grid;
  gap: 4px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.conversion-choice input {
  position: absolute;
  opacity: 0;
}

.conversion-choice strong {
  font-size: 0.88rem;
}

.conversion-choice span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.conversion-choice.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface));
}

.paid-bookmark-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}

.paid-bookmark-card .paid-badge {
  grid-column: 3;
  grid-row: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.paid-bookmark-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.import-progress {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #120f18 52%, transparent);
}

.import-progress[hidden] {
  display: none;
}

.import-progress-card {
  width: min(420px, calc(100% - 32px));
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.import-progress-card progress {
  width: 100%;
  height: 8px;
}

.studio-ico,
.nav-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent;
  flex: 0 0 auto;
  pointer-events: none;
}

.studio-ico-lg {
  width: 20px;
  height: 20px;
}

/* ---- Studio shell: three rooms ---- */
body.studio-shell {
  --studio-canvas: #e6e4ee;
  --studio-rail-bg: #f3f1f7;
  --studio-edit-bg: #eceaf2;
  --studio-paper: #fffefa;
  --studio-proof-bg: #f3f1f7;
  --studio-proof-ink: var(--text);
  --studio-proof-muted: var(--muted);
  --studio-proof-seg-bg: var(--surface-muted, #f4f4f8);
  --studio-proof-seg-line: var(--line);
  --studio-proof-seg-active: var(--surface, #fffefa);
  --studio-proof-seg-ink: var(--muted);
  --studio-proof-seg-active-ink: var(--text);
  --header-height: 56px;
  overflow: hidden;
}

html[data-theme="dark"] body.studio-shell {
  --studio-canvas: #121118;
  --studio-rail-bg: #1b1a22;
  --studio-edit-bg: #16151c;
  --studio-paper: #24202a;
  --studio-proof-bg: #0e0d12;
  --studio-proof-ink: #f4f1ea;
  --studio-proof-muted: #c6c1d0;
  --studio-proof-seg-bg: #14131a;
  --studio-proof-seg-line: #3d3a48;
  --studio-proof-seg-active: #2f2c3c;
  --studio-proof-seg-ink: #c6c1d0;
  --studio-proof-seg-active-ink: #fffefa;
}

body.studio-shell .site-header.rm-header {
  width: 100%;
  height: 56px;
}

body.studio-shell .site-header .header-inner.rm-header-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 10px;
  box-sizing: border-box;
}

body.studio-shell .brand-logo.rm-brand-logo {
  max-height: 36px;
}

body.studio-shell .site-nav.rm-nav > a:not(.is-live),
body.studio-shell .site-nav.rm-nav > button:not(.theme-toggle),
body.studio-shell .rm-header-tools .rm-tool,
body.studio-shell .site-footer,
body.studio-shell .rm-nav-kicker {
  display: none !important;
}

body.studio-shell[data-chrome-collapsed="true"] .site-header {
  display: none !important;
}

body.studio-shell .workspace-main,
body.studio-shell .project-workspace {
  padding: 0;
  max-width: none;
  width: auto;
}

.studio-shell-main {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px);
  min-height: 0;
  background: var(--studio-canvas);
}

body.studio-shell[data-chrome-collapsed="true"] .studio-shell-main {
  height: 100dvh;
}

body.publishing-app[data-page="project"] .studio-appbar {
  position: static;
  isolation: auto;
  overflow: visible;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.appbar-cluster {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.appbar-id {
  min-width: 0;
  gap: 10px;
  flex-shrink: 1;
}

.appbar-policy {
  margin-left: auto;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.appbar-file {
  gap: 6px;
}

.appbar-chrome {
  padding-left: 4px;
}

.tool-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-btn.is-save {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

body.publishing-app[data-page="project"] .studio-appbar::before {
  display: none;
}

body.publishing-app[data-page="project"] .mini-cover-small,
body.publishing-app[data-page="project"] .project-workload {
  display: none;
}

body.publishing-app[data-page="project"] .project-app-title h1 {
  max-width: 36vw;
  font-size: 1rem;
  font-weight: 800;
}

.studio-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.appbar-policy {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.studio-mode-switch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.studio-mode-switch button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 32px;
  padding: 3px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.studio-mode-switch button.is-active {
  background: var(--surface);
  color: var(--text);
}

.paid-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.chrome-min,
.pane-min,
.pane-restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.pane-restore {
  margin-left: 4px;
}

.pane-edit .studio-pane-label .pane-restore:first-of-type {
  margin-left: auto;
}

.pane-restore[hidden] {
  display: none !important;
}

.chrome-min {
  margin-left: 4px;
}

.pane-min svg,
.pane-restore svg {
  width: 14px;
  height: 14px;
}

body.studio-shell[data-chrome-collapsed="true"] .appbar-policy,
body.studio-shell[data-chrome-collapsed="true"] .studio-appbar [data-undo-edit],
body.studio-shell[data-chrome-collapsed="true"] .project-app-title p,
body.studio-shell[data-chrome-collapsed="true"] .project-app-title > div {
  display: none;
}

.studio-stage-switch {
  display: none;
}

.studio-workspace {
  --nav-width: 248px;
  --proof-width: 300px;
  display: grid;
  flex: 1;
  grid-template-columns: var(--nav-width) 8px minmax(0, 1fr) 8px var(--proof-width);
  gap: 0;
  min-height: 0;
  padding: 8px 10px 10px;
  background: var(--studio-canvas);
}

.pane-resizer {
  position: relative;
  z-index: 3;
  width: 8px;
  margin: 8px -2px;
  cursor: col-resize;
  touch-action: none;
  background: transparent;
}

.pane-resizer::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 3px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--line) 88%, transparent);
}

.pane-resizer:hover::after,
.pane-resizer:focus-visible::after,
.pane-resizer.is-dragging::after,
body.studio-resizing .pane-resizer.is-dragging::after {
  left: 2px;
  width: 4px;
  background: var(--brand);
}

.pane-resizer:focus-visible {
  outline: none;
}

body.studio-resizing {
  cursor: col-resize;
  user-select: none;
}

body.studio-shell[data-nav-collapsed="true"] .studio-workspace {
  grid-template-columns: 64px 0 minmax(0, 1fr) 8px var(--proof-width);
}

body.studio-shell[data-proof-collapsed="true"] .studio-workspace {
  grid-template-columns: var(--nav-width) 8px minmax(0, 1fr) 0 64px;
}

body.studio-shell[data-nav-collapsed="true"][data-proof-collapsed="true"] .studio-workspace {
  grid-template-columns: 64px 0 minmax(0, 1fr) 0 64px;
}

body.studio-shell[data-nav-collapsed="true"] .pane-resizer[data-resize="nav"],
body.studio-shell[data-proof-collapsed="true"] .pane-resizer[data-resize="proof"] {
  visibility: hidden;
  pointer-events: none;
}

.studio-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}

.studio-pane-label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 8px 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.studio-pane-label .pane-min {
  margin-left: auto;
}

.studio-pane-label > span {
  text-transform: none;
}

.studio-pane-label strong,
.studio-pane-label small {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-pane-label strong {
  margin-right: auto;
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.78;
}

.studio-pane-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: auto;
}

.studio-pane-rail {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
}

.studio-pane-rail button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.studio-pane-rail button:hover,
.studio-pane-rail button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.studio-pane-rail .rail-expand {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong, var(--brand));
}

.studio-pane-rail .rail-expand svg,
.pane-min svg,
.pane-restore svg {
  width: 14px;
  height: 14px;
}

.studio-pane-rail button i {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
}

.pane-nav {
  background: var(--studio-rail-bg);
  box-shadow: inset 3px 0 0 var(--ss-purple, #6439e8);
}

body.publishing-app.studio-shell .pane-edit.content-editor,
.pane-edit {
  background: var(--studio-paper);
}

body.studio-shell .pane-proof.studio-proof,
.pane-proof {
  color: var(--studio-proof-ink);
  background: var(--studio-proof-bg) !important;
  box-shadow: inset 3px 0 0 var(--ss-coral, #f42c8d);
}

.pane-proof .studio-pane-label {
  color: var(--studio-proof-ink);
}

.pane-proof .pane-min {
  border-color: var(--studio-proof-seg-line);
  background: var(--studio-proof-seg-active);
  color: var(--studio-proof-ink);
}

body.publishing-app.studio-shell .studio-paper.free-editor-document,
body.studio-shell .studio-paper {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 8px 20px 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.studio-shell[data-nav-collapsed="true"] .pane-nav > .studio-pane-label,
body.studio-shell[data-nav-collapsed="true"] .pane-nav > .studio-pane-body {
  display: none;
}

body.studio-shell[data-nav-collapsed="true"] .pane-nav > .studio-pane-rail {
  display: flex;
}

body.studio-shell[data-proof-collapsed="true"] .pane-proof > .studio-pane-label,
body.studio-shell[data-proof-collapsed="true"] .pane-proof > .studio-pane-body {
  display: none;
}

body.studio-shell[data-proof-collapsed="true"] .pane-proof > .studio-pane-rail {
  display: flex;
}

body.studio-shell .pane-nav .workspace-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.pane-nav .workspace-tabs button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.pane-nav .workspace-tabs button:hover {
  border-color: var(--line);
  background: var(--surface-strong, #fff);
}

body.studio-shell .pane-nav .workspace-tabs button.is-active {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
  color: var(--brand-strong, var(--brand));
}

body.studio-shell .pane-nav .workspace-tabs button > span,
body.studio-shell .pane-nav .workspace-tabs button.is-active > span {
  display: inline;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.pane-nav .workspace-tabs button b,
.pane-nav .workspace-tabs .nav-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.pane-nav .chapter-tree {
  padding: 0 8px 12px;
}

.proof-toolbar {
  display: grid;
  gap: 8px;
  padding: 10px 10px 8px;
}

body.studio-shell .pane-proof .proof-seg,
body.studio-shell .pane-proof .publication-tabs,
body.studio-shell .pane-proof .device-tabs {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--studio-proof-seg-line);
  border-radius: 10px;
  background: var(--studio-proof-seg-bg);
}

body.studio-shell .pane-proof .proof-seg button,
body.studio-shell .pane-proof .publication-tabs button,
body.studio-shell .pane-proof .device-tabs button {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--studio-proof-seg-ink);
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
  box-shadow: none;
}

body.studio-shell .pane-proof .proof-seg button.is-active,
body.studio-shell .pane-proof .publication-tabs button.is-active,
body.studio-shell .pane-proof .device-tabs button.is-active {
  background: var(--studio-proof-seg-active);
  color: var(--studio-proof-seg-active-ink);
  border-color: transparent;
  box-shadow: none;
}

body.studio-shell .pane-proof .font-control {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--studio-proof-muted);
}

body.studio-shell .pane-proof .font-control input {
  width: 100%;
  max-width: 140px;
  accent-color: var(--accent, #f42c8d);
}

.proof-stage {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 16px;
}

body.studio-shell .pane-proof .studio-pane-body,
body.studio-shell .pane-proof .reader-stage,
body.studio-shell .pane-proof .reflow-preview,
body.studio-shell .pane-proof .magazine-preview {
  background: transparent !important;
}

body.studio-shell .pane-proof .reader-stage {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0 !important;
  padding: 0;
  border-radius: 0;
}

.pane-proof .reader-device.phone {
  width: min(220px, 92%);
}

.bookmark-slot {
  margin: 16px 0;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-soft) 50%, var(--surface));
}

.bookmark-slot.is-inserted {
  border-style: solid;
  background: var(--surface);
}

.bookmark-slot.is-missing {
  border-color: color-mix(in srgb, var(--warning, #a96c16) 40%, var(--line));
}

.slot-missing {
  margin: 0;
  color: var(--warning, #a96c16);
  font-size: 0.78rem;
}

.slot-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.asset-queue-list > button.is-active {
  border-radius: 8px;
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand);
}

.bookmark-slot header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.bookmark-slot header .mono {
  margin-left: auto;
}

.bookmark-slot .bookmark-body {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
}

.bookmark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.slot-action {
  appearance: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong, var(--surface));
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: none;
}

.slot-action.is-primary {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong, var(--brand));
}

.slot-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent;
  filter: none;
  flex: 0 0 auto;
}

.slot-label {
  max-width: 100%;
  text-align: left;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.slot-action:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface));
}

.slot-action:hover .slot-ico {
  transform: none;
}

.slot-action:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

html[data-theme="dark"] .slot-action {
  background: color-mix(in srgb, #2c2836 86%, transparent);
}

html[data-theme="dark"] .slot-action.is-primary {
  background: color-mix(in srgb, var(--brand-soft) 82%, #1b1822);
}

.bookmark-table,
.studio-paper table,
.reader-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bookmark-table th,
.bookmark-table td,
.studio-paper table th,
.studio-paper table td,
.reader-page table th,
.reader-page table td {
  padding: 6px 8px;
  border: 1px solid var(--line);
}

.studio-paper .word-paragraph,
.studio-paper .editor-heading {
  margin: 0 0 12px;
}

.studio-paper .editor-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 650;
}

.reader-bookmark {
  padding: 6px 8px;
  border: 1px dashed #b7b1c4;
  border-radius: 8px;
  color: #6b6578;
  font-size: 0.78em;
}

.reader-bookmark.is-missing {
  border-color: color-mix(in srgb, var(--warning, #a96c16) 45%, #b7b1c4);
  color: var(--warning, #a96c16);
}

.preview-template-help[hidden],
.sound-toggle[hidden],
.sample-label[hidden] {
  display: none !important;
}

.side-panel-action {
  margin: 8px;
}

@media (min-width: 1024px) {
  body.publishing-app[data-page="project"] .studio-workspace .pane-nav,
  body.publishing-app[data-page="project"] .studio-workspace .pane-edit,
  body.publishing-app[data-page="project"] .studio-workspace .pane-proof {
    display: flex !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .studio-workspace {
    grid-template-columns: var(--nav-width) 8px minmax(0, 1fr) 8px var(--proof-width);
  }
}

@media (max-width: 1023px) {
  body.studio-shell {
    overflow: hidden;
    height: 100dvh;
  }

  body.publishing-app.studio-shell .site-header.rm-header {
    height: 44px;
  }

  body.studio-shell .site-header .header-inner.rm-header-inner {
    width: 100%;
    padding-inline: 10px;
  }

  body.studio-shell .brand-logo.rm-brand-logo {
    max-height: 28px;
  }

  .studio-shell-main {
    height: calc(100dvh - 44px);
    min-height: 0;
  }

  body.publishing-app[data-page="project"] .studio-appbar {
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    padding: 4px 10px;
    gap: 8px;
  }

  .project-app-title p,
  .appbar-policy,
  .save-state,
  .appbar-file [data-undo-edit],
  .appbar-chrome {
    display: none;
  }

  body.publishing-app[data-page="project"] .project-app-title h1 {
    max-width: 46vw;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tool-btn {
    min-height: 32px;
    padding: 0 10px;
  }

  .studio-workspace {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 6px 8px;
  }

  .studio-workspace .studio-pane {
    display: none;
    min-height: 100%;
  }

  .studio-workspace[data-mobile-pane="nav"] .pane-nav,
  .studio-workspace[data-mobile-pane="edit"] .pane-edit,
  .studio-workspace[data-mobile-pane="preview"] .pane-proof {
    display: flex;
  }

  .studio-pane-label,
  .pane-min,
  .pane-restore,
  .studio-pane-rail,
  .chrome-min,
  .pane-resizer {
    display: none !important;
  }

  .pane-edit .studio-pane-label {
    display: flex !important;
    min-height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .pane-edit .studio-pane-label .pane-restore {
    display: none !important;
  }

  .pane-nav .studio-pane-body,
  .pane-proof .studio-pane-body {
    display: flex;
  }

  body.publishing-app.studio-shell .studio-paper.free-editor-document,
  .studio-paper {
    margin: 0;
    padding: 12px 14px 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .studio-stage-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-shrink: 0;
    gap: 0;
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -10px 24px rgba(28, 22, 40, 0.08);
  }

  html[data-theme="dark"] .studio-stage-switch {
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
  }

  .studio-stage-switch button {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .studio-stage-switch .nav-ico,
  .studio-stage-switch .studio-ico {
    width: 22px;
    height: 22px;
  }

  .studio-stage-switch button.is-active {
    background: var(--brand-soft);
    color: var(--text);
  }

  .slot-label {
    white-space: nowrap;
  }

  .pane-resizer {
    display: none;
  }

  body.studio-shell[data-nav-collapsed="true"] .studio-workspace,
  body.studio-shell[data-proof-collapsed="true"] .studio-workspace,
  body.studio-shell[data-nav-collapsed="true"][data-proof-collapsed="true"] .studio-workspace {
    grid-template-columns: 1fr;
  }

  body.studio-shell[data-nav-collapsed="true"] .pane-nav > .studio-pane-body,
  body.studio-shell[data-proof-collapsed="true"] .pane-proof > .studio-pane-body {
    display: flex;
  }

  .studio-mode-bar {
    display: none;
  }
}

@media (max-width: 900px) {
  .conversion-choices,
  .paid-bookmark-card {
    grid-template-columns: 1fr;
  }

  body.publishing-app[data-page="submit"] .workspace-layout {
    display: flex;
    flex-direction: column;
  }

  .workspace-layout .form-workspace {
    order: 1;
  }

  .workspace-layout .submission-summary {
    order: 2;
  }
}
