/* Original Moducopy workbench chrome. No artwork selectors or export changes. */
html[data-theme] body.book-workflow {
  --ui-bg:#e9eff1;--ui-panel:#fff;--ui-rail:#f1f5f5;--ui-input:#f5f8f8;
  --ui-text:#243441;--ui-muted:#596a76;--ui-line:#d4dfe2;--ui-accent:#1d6554;--ui-active:#e3f0eb;
  --workbench-on-accent:#fff;--workbench-danger:#a33446;
  --navy:var(--ui-text);--border:var(--ui-line);--muted:var(--ui-muted);
  color:var(--ui-text);background:var(--ui-bg);font-family:'Pretendard','Malgun Gothic',sans-serif;
  font-size:14px;line-height:1.5;min-width:0;
}
html[data-theme=dark] body.book-workflow {
  /* Dark elevation: sunken canvas < rail < panel/input. Mint accent kept; no purple rebrand. */
  --ui-bg:#121c21;--ui-panel:#263a42;--ui-rail:#182830;--ui-input:#314851;
  --ui-canvas:#0d1519;--ui-text:#edf4f4;--ui-muted:#b7c8cf;--ui-line:#516a74;
  --ui-accent:#93d8bd;--ui-active:#33584f;
  --workbench-on-accent:#16392c;--workbench-danger:#ffadb9;
}

/* Controls belong to the workbench; inline canvas text keeps its own styles. */
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) button {
  min-height:36px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:6px;
  background:var(--ui-panel);color:var(--ui-text);font-size:13px;font-weight:600;line-height:1.35;
  box-shadow:none;transition:background-color .12s,border-color .12s;overflow-wrap:break-word;
}
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) button:hover {background:var(--ui-active);border-color:var(--ui-accent);transform:none}
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) button:disabled {opacity:.4;cursor:default}
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,dialog) :is(input,select,textarea):not(.inline-text-editor) {
  min-height:38px;padding:8px 10px;border:1px solid var(--ui-line);border-radius:6px;
  color:var(--ui-text);background:var(--ui-input);font-size:13px;line-height:1.45;max-width:100%;
}
html[data-theme] body.book-workflow :is(.setup-panel,.book-inspector,dialog) label {font-size:12px;line-height:1.6;color:var(--ui-muted);gap:6px}
html[data-theme] body.book-workflow :is(.setup-panel,.book-inspector,dialog) input[type=checkbox],
html[data-theme] body.book-workflow .workspace input[type=checkbox] {width:16px;height:16px;min-height:16px;padding:0;accent-color:var(--ui-accent)}
html[data-theme] body.book-workflow :is(.setup-panel,.book-inspector,dialog) input[type=color] {height:36px;padding:3px}
html[data-theme] body.book-workflow :is(button,input,select,textarea,summary,a):focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px}
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) .primary,
html[data-theme] body.book-workflow .book-navigation-bar :is(.book-navigation-pan-mode,#book-focus-mode)[aria-pressed=true] {
  color:var(--workbench-on-accent);background:var(--ui-accent);border-color:var(--ui-accent);box-shadow:none;
}
/* Existing completion button has inline green paint; replace only this UI paint. */
html[data-theme] body.book-workflow #save-order-design {background:var(--ui-panel)!important;color:var(--ui-accent)!important;border-color:var(--ui-accent)!important;font-weight:600!important;margin-left:0!important}
html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) .primary:hover {filter:brightness(.95);background:var(--ui-accent);border-color:var(--ui-accent)}

/* One quiet header, one visually primary completion action. */
html[data-theme] body.book-workflow .editor-header {
  display:flex;align-items:center;flex-wrap:nowrap;gap:16px;padding:10px 20px;
  height:72px;min-height:72px;background:var(--ui-panel);border-bottom:1px solid var(--ui-line);
}
html[data-theme] body.book-workflow .brand {gap:8px;font-size:15px;letter-spacing:-.03em;flex:none}
html[data-theme] body.book-workflow .brand-symbol {width:34px;height:34px;border-radius:8px;background:var(--ui-accent);color:var(--workbench-on-accent);font-size:25px;box-shadow:none}
html[data-theme] body.book-workflow .brand small {font-size:9px;letter-spacing:.08em;margin:2px 0 0;color:var(--ui-muted)}
html[data-theme] body.book-workflow .brand>span:last-child:not(.brand-symbol) {display:none}
html[data-theme] body.book-workflow .document-title {flex:1 1 150px;min-width:100px;padding-left:16px;margin-right:0;border-left:1px solid var(--ui-line)}
html[data-theme] body.book-workflow .document-title input {width:100%;max-width:300px;min-height:26px;padding:1px 0;font-size:15px;font-weight:650;line-height:1.4}
html[data-theme] body.book-workflow #save-state {padding:0;margin:2px 0 0;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.5;color:var(--ui-muted)}
html[data-theme] body.book-workflow .header-actions {display:flex;align-items:center;flex-wrap:nowrap;gap:6px;overflow:visible;width:auto;flex:none}
html[data-theme] body.book-workflow .header-actions button {min-height:36px;padding:8px 10px;white-space:nowrap;font-size:12px}
html[data-theme] body.book-workflow .book-header-history {gap:3px}
html[data-theme] body.book-workflow .book-header-history button {width:30px;min-height:32px;background:transparent;border-color:transparent}
html[data-theme] body.book-workflow .quick-size-control {display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;color:var(--ui-muted);margin:0}
html[data-theme] body.book-workflow #quick-size-preset {width:140px;min-height:36px;padding:7px 22px 7px 8px;font-size:12px}
html[data-theme] body.book-workflow .book-save-menu>summary {padding:8px 10px;border:1px solid var(--ui-line);border-radius:6px;font-size:12px;line-height:1.5;min-height:36px;color:var(--ui-text);background:var(--ui-panel)}
html[data-theme] body.book-workflow .book-save-actions {padding:8px;gap:4px;border-radius:8px;background:var(--ui-panel);border-color:var(--ui-line);box-shadow:0 8px 24px #102c3526;z-index:100}
html[data-theme] body.book-workflow .book-save-actions button {min-height:38px;width:100%;text-align:left}

/* Tool rail, library, canvas, inspector. Widths are deliberate print-workspace proportions. */
html[data-theme] body.book-workflow .editor-layout {display:grid;grid-template-columns:320px minmax(0,1fr) 260px;align-items:start;height:auto;min-height:calc(100dvh - 72px);gap:0}
html[data-theme] body.book-workflow .setup-panel {grid-column:1;grid-row:1;display:grid;grid-template-columns:64px minmax(0,1fr);padding:0;max-height:calc(100dvh - 72px);height:calc(100dvh - 72px);min-width:0;overflow:auto;background:var(--ui-panel);border-right:1px solid var(--ui-line)}
html[data-theme] body.book-workflow .panel-tabs {position:sticky;top:0;inset-inline:auto;width:64px;align-self:start;display:flex;flex-direction:column;gap:4px;padding:10px 5px;height:auto;min-width:0;background:var(--ui-rail);border:0;border-right:1px solid var(--ui-line)}
html[data-theme] body.book-workflow .panel-tabs button {width:53px;min-width:0;min-height:58px;height:auto;padding:8px 2px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font-size:11px;line-height:1.4;box-shadow:none}
html[data-theme] body.book-workflow .panel-tabs button[aria-pressed=true] {background:var(--ui-active);color:var(--ui-accent);font-weight:700}
html[data-theme] body.book-workflow .panel-tabs button b {display:flex;justify-content:center;align-items:center;margin:0 auto 5px;height:22px}
html[data-theme] body.book-workflow .panel-tabs button b svg {width:20px;height:20px}
html[data-theme] body.book-workflow .setup-panel>.panel-section {padding:20px 14px;min-width:0;max-height:none}
html[data-theme] body.book-workflow :is(.panel-section,.book-inspector) h2 {font-size:15px;line-height:1.4;font-weight:700;letter-spacing:-.025em;margin:0 0 12px}
html[data-theme] body.book-workflow :is(.panel-section,.book-inspector) h3 {font-size:13px;line-height:1.5;font-weight:650;margin:18px 0 10px}
html[data-theme] body.book-workflow .section-heading {align-items:center;margin-bottom:12px;gap:8px}
html[data-theme] body.book-workflow .section-heading h2 {margin:0}
html[data-theme] body.book-workflow :is(.section-heading,.library-heading)>span {padding:2px 6px;border-radius:4px;background:var(--ui-rail);font-size:11px;color:var(--ui-muted)}
html[data-theme] body.book-workflow :is(.template-help,.library-intro,.asset-rights,.stack-hint,.layer-help,.font-status,.font-credit) {font-size:12px;line-height:1.65;color:var(--ui-muted)}
html[data-theme] body.book-workflow .panel-section small {font-size:11px;line-height:1.7;color:var(--ui-muted);margin-top:8px}
html[data-theme] body.book-workflow .book-pdf-fold {margin:12px 0;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-rail)}
html[data-theme] body.book-workflow .book-pdf-fold>summary {font-size:12px;line-height:1.6;padding:10px}
html[data-theme] body.book-workflow .book-pdf-fold fieldset {padding:0 10px 10px}
html[data-theme] body.book-workflow .template-filter {display:flex;flex-direction:column;gap:8px;overflow:visible;padding:0;margin:10px 0 12px}
html[data-theme] body.book-workflow .template-filter-select-wrap {margin-top:4px}
html[data-theme] body.book-workflow .template-filter-select-label {display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:650;color:var(--ui-muted);letter-spacing:-.02em}
html[data-theme] body.book-workflow #template-category-select {width:100%;min-height:36px;padding:7px 10px;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-input);color:var(--ui-text);font-size:13px;font-weight:600}
html[data-theme] body.book-workflow .book-template-search {font-size:12px;margin:14px 0 8px;color:var(--ui-text)}
html[data-theme] body.book-workflow .book-template-search input {background:var(--ui-input);min-height:38px;margin-top:6px}
html[data-theme] body.book-workflow .book-search-result {font-size:11px;margin:4px 0 10px;line-height:1.5}
html[data-theme] body.book-workflow .template-list-grid {grid-template-columns:minmax(0,1fr);gap:14px}
html[data-theme] body.book-workflow .template-item-card {padding:0;min-width:0;border-radius:8px;background:var(--ui-panel);border:1px solid var(--ui-line);overflow:hidden;box-shadow:none}
html[data-theme] body.book-workflow .template-thumb {height:126px;padding:12px;background:var(--ui-bg)}
html[data-theme] body.book-workflow .template-info {padding:11px 12px}
html[data-theme] body.book-workflow .template-info .badge {font-size:10px;line-height:1.4;color:var(--ui-muted);margin:0 0 4px}
html[data-theme] body.book-workflow .template-info strong {font-size:13px;line-height:1.5;margin-bottom:3px;color:var(--ui-text)}
html[data-theme] body.book-workflow .template-info p {font-size:11px;line-height:1.6;color:var(--ui-muted)}
html[data-theme] body.book-workflow .book-inspector {grid-column:3;grid-row:1;min-width:0;height:calc(100dvh - 72px);max-height:calc(100dvh - 72px);overflow:auto;padding:18px 16px;border-left:1px solid var(--ui-line);background:var(--ui-panel)}
html[data-theme] body.book-workflow .book-inspector .panel-section {padding:0;max-height:none}
html[data-theme] body.book-workflow .book-inspector>[data-tool=layers] {margin-top:16px;min-height:38px;font-size:12px;background:var(--ui-rail)}
html[data-theme] body.book-workflow .book-inspector-welcome {padding:12px 0 20px;border-bottom:1px solid var(--ui-line)}
html[data-theme] body.book-workflow .book-inspector-welcome h2 {font-size:18px;line-height:1.5;letter-spacing:-.035em;margin:0 0 12px;color:var(--ui-text)}
html[data-theme] body.book-workflow .book-inspector-welcome>p {font-size:12px;line-height:1.8;color:var(--ui-muted);margin:0 0 24px}
html[data-theme] body.book-workflow .book-inspector-welcome ol {padding-left:19px;margin:0;display:grid;gap:20px}
html[data-theme] body.book-workflow .book-inspector-welcome li {padding-left:3px;color:var(--ui-accent);font-size:12px;line-height:1.6}
html[data-theme] body.book-workflow .book-inspector-welcome strong {display:block;font-size:12px;font-weight:650;color:var(--ui-text);margin-bottom:4px}
html[data-theme] body.book-workflow .book-inspector-welcome li p {font-size:11px;line-height:1.8;color:var(--ui-muted);margin:0}
html[data-theme] body.book-workflow .field-pair {gap:8px;margin-bottom:10px}
html[data-theme] body.book-workflow .selection-label {font-size:12px;margin:0 0 12px;color:var(--ui-accent)}
html[data-theme] body.book-workflow #edit-on-canvas {width:100%;margin-bottom:14px;min-height:38px;background:var(--ui-active);color:var(--ui-accent);border-color:var(--ui-line)}
html[data-theme] body.book-workflow .font-preview {border-radius:6px;padding:12px;background:var(--ui-rail);font-size:22px}
html[data-theme] body.book-workflow .delete-button {color:var(--workbench-danger);background:transparent}
html[data-theme] body.book-workflow .layers button {padding:9px 8px;min-height:44px;border-radius:5px}
html[data-theme] body.book-workflow .layer-text {font-size:12px}

/* The canvas is the hero. Only its surrounding work surface is painted. */
html[data-theme] body.book-workflow.book-navigation-ready .workspace {grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;height:var(--book-navigation-height,calc(100dvh - 84px));min-height:570px;max-height:none;padding:0 22px 12px;background:var(--ui-canvas,var(--ui-bg));background-image:none;overflow:auto;scrollbar-width:thin}
html[data-theme] body.book-workflow .book-navigation-bar {position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 0;background:var(--ui-canvas,var(--ui-bg));border-bottom:1px solid var(--ui-line);min-height:54px}
html[data-theme] body.book-workflow .book-navigation-focus {flex:1 1 auto;gap:3px}
html[data-theme] body.book-workflow .book-navigation-bar button {min-height:32px;min-width:32px;padding:6px 8px;font-size:11px;white-space:nowrap;line-height:1.4;border-radius:5px}
html[data-theme] body.book-workflow .book-navigation-bar .zoom-buttons {width:auto;flex:0 0 auto;gap:3px}
html[data-theme] body.book-workflow .book-navigation-bar .book-navigation-pan {flex:0 1 auto;gap:3px;flex-wrap:wrap}
html[data-theme] body.book-workflow .book-navigation-hint {display:none}
html[data-theme] body.book-workflow .book-navigation-bar #zoom-label {min-width:36px;font-size:11px}
html[data-theme] body.book-workflow .workspace-toolbar {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;min-height:36px;padding:6px 0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;gap:10px}
html[data-theme] body.book-workflow .workspace-toolbar .history-buttons {display:flex;align-items:center;flex-wrap:wrap;width:auto;gap:10px}
html[data-theme] body.book-workflow .workspace-toolbar .guide-toggle {display:inline-flex;align-items:center;font-size:11px;gap:5px;color:var(--ui-muted)}
html[data-theme] body.book-workflow .workspace-toolbar .toolbar-divider {display:none}
html[data-theme] body.book-workflow .book-product-summary {padding:4px 0;gap:6px;min-height:30px;font-size:11px;color:var(--ui-muted)}
html[data-theme] body.book-workflow .book-product-summary button {min-height:28px;padding:4px 7px;font-size:11px;background:transparent;border-color:transparent}
html[data-theme] body.book-workflow .book-contract-info {padding:2px 0 8px;font-size:11px;line-height:1.6;color:var(--ui-muted)}
html[data-theme] body.book-workflow .book-contract-info p {margin:2px 0}
html[data-theme] body.book-workflow.book-navigation-ready .canvas-scroll {flex:1 0 320px;height:auto;min-height:320px;max-height:none;padding:18px 16px 24px;overflow:auto;overscroll-behavior:contain;background:var(--ui-canvas,var(--ui-bg));border:1px solid var(--ui-line);border-radius:8px}
html[data-theme] body.book-workflow .canvas-footer {padding:8px 0;min-height:36px;gap:8px;border-top:1px solid var(--ui-line);line-height:1.5}
html[data-theme] body.book-workflow .book-current-design {gap:6px;padding:3px 6px;min-height:30px;font-size:11px;background:transparent;border-color:transparent}
html[data-theme] body.book-workflow .book-current-design img {width:48px;height:28px}
html[data-theme] body.book-workflow .legend {font-size:10px;gap:10px;flex-wrap:wrap;color:var(--ui-muted)}
html[data-theme] body.book-workflow .gesture-help {display:none}
html[data-theme] body.book-workflow .check-strip {border-top:1px solid var(--ui-line);padding:0;margin:0;background:transparent;line-height:1.6}
html[data-theme] body.book-workflow .check-strip>summary {padding:9px 0;font-size:12px;font-weight:650;color:var(--ui-text);cursor:pointer}
html[data-theme] body.book-workflow .check-strip p {font-size:12px;line-height:1.7;color:var(--ui-muted)}
html[data-theme] body.book-workflow .book-text-items button {font-size:12px;text-align:left;white-space:pre-wrap;line-height:1.6}
html[data-theme] body.book-workflow .status {font-size:11px;line-height:1.6;min-height:20px;padding:6px 0 0;margin:0;border:0;color:var(--ui-muted)}
html[data-theme] body.book-workflow dialog {border-radius:10px;border:1px solid var(--ui-line);background:var(--ui-panel);color:var(--ui-text);box-shadow:0 16px 60px #0a232d40;max-width:calc(100vw - 24px)}
html[data-theme] body.book-workflow dialog::backdrop {background:#142c37a6;backdrop-filter:blur(2px)}
html[data-theme] body.book-workflow .dialog-heading h2 {font-size:18px;line-height:1.4;letter-spacing:-.025em}

@media(min-width:769px) and (min-height:850px) {
  html[data-theme] body.book-workflow.book-navigation-ready .canvas-scroll {flex-basis:420px;min-height:420px}
}
@media(max-width:1249px) and (min-width:769px) {
  html[data-theme] body.book-workflow .editor-header {padding:10px 14px;gap:10px}
  html[data-theme] body.book-workflow .brand>span:not(.brand-symbol) {display:none}
  html[data-theme] body.book-workflow .document-title {min-width:90px;padding-left:10px}
  html[data-theme] body.book-workflow .header-actions {gap:4px}
  html[data-theme] body.book-workflow #quick-size-preset {width:124px}
  html[data-theme] body.book-workflow .quick-size-control {font-size:0;gap:0}
  html[data-theme] body.book-workflow .editor-layout {grid-template-columns:300px minmax(0,1fr)}
  html[data-theme] body.book-workflow .setup-panel {height:auto;max-height:57dvh;grid-column:1;grid-row:1}
  html[data-theme] body.book-workflow .book-inspector {grid-column:1;grid-row:2;height:auto;max-height:43dvh;border-left:0;border-right:1px solid var(--ui-line);border-top:1px solid var(--ui-line);padding:16px}
  html[data-theme] body.book-workflow.book-navigation-ready .workspace {grid-column:2;grid-row:1 / span 2;padding-inline:14px}
  html[data-theme] body.book-workflow .book-navigation-focus {flex-basis:100%}
}
@media(max-width:768px) {
  html[data-theme] body.book-workflow .editor-header {height:auto;min-height:108px;flex-wrap:wrap;gap:8px;padding:10px 12px}
  html[data-theme] body.book-workflow .brand {flex:none}
  html[data-theme] body.book-workflow .brand small {display:none}
  html[data-theme] body.book-workflow .brand-symbol {width:28px;height:28px;font-size:21px}
  html[data-theme] body.book-workflow .document-title {flex:1 1 120px;min-width:0;padding-left:10px}
  html[data-theme] body.book-workflow .document-title input {font-size:14px;max-width:none}
  html[data-theme] body.book-workflow .header-actions {width:100%;flex-wrap:wrap;justify-content:flex-start;gap:5px}
  html[data-theme] body.book-workflow .header-actions button {min-height:36px;padding:7px 8px;font-size:11px}
  html[data-theme] body.book-workflow .book-header-history {margin-right:4px}
  html[data-theme] body.book-workflow .book-header-history button {width:28px}
  html[data-theme] body.book-workflow .quick-size-control {font-size:0;gap:0}
  html[data-theme] body.book-workflow #quick-size-preset {width:114px;min-height:36px;font-size:11px}
  html[data-theme] body.book-workflow .book-save-menu>summary {padding:7px 8px;min-height:36px;font-size:11px}
  html[data-theme] body.book-workflow .book-save-actions {left:0;right:auto;width:min(220px,calc(100vw - 32px))}
  html[data-theme] body.book-workflow .editor-layout {display:flex;flex-direction:column;min-height:0;width:100%}
  html[data-theme] body.book-workflow .setup-panel {display:block;width:100%;height:auto;max-height:42dvh;border-right:0;border-bottom:1px solid var(--ui-line);order:0}
  html[data-theme] body.book-workflow .panel-tabs {position:sticky;top:0;z-index:9;display:flex;flex-direction:row;width:100%;height:auto;padding:5px 6px;gap:4px;overflow-x:auto;border:0;border-bottom:1px solid var(--ui-line);background:var(--ui-rail)}
  html[data-theme] body.book-workflow .panel-tabs button {width:54px;flex:0 0 54px;min-height:48px;padding:4px 2px;font-size:10px}
  html[data-theme] body.book-workflow .panel-tabs button b {height:18px;margin-bottom:3px}
  html[data-theme] body.book-workflow .panel-tabs button b svg {width:18px;height:18px}
  html[data-theme] body.book-workflow .setup-panel>.panel-section {padding:14px 16px;max-height:none}
  html[data-theme] body.book-workflow .template-list-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme] body.book-workflow .template-thumb {height:94px;padding:8px}
  html[data-theme] body.book-workflow .template-info {padding:8px}
  html[data-theme] body.book-workflow .template-info p {font-size:10px}
  html[data-theme] body.book-workflow.book-navigation-ready .workspace {order:1;width:100%;height:auto;min-height:550px;padding:0 12px 12px;overflow:visible}
  html[data-theme] body.book-workflow .book-navigation-bar {position:static;gap:5px;padding:8px 0}
  html[data-theme] body.book-workflow .book-navigation-focus {flex:1 0 100%}
  html[data-theme] body.book-workflow .book-navigation-bar button {min-height:36px;font-size:11px;padding:6px 7px}
  html[data-theme] body.book-workflow.book-navigation-ready .canvas-scroll {flex:none;height:360px;min-height:300px;padding:14px 10px 20px}
  html[data-theme] body.book-workflow .book-inspector {order:2;width:100%;height:auto;max-height:none;padding:18px 16px;border-left:0;border-top:1px solid var(--ui-line)}
  html[data-theme] body.book-workflow .canvas-footer {padding:6px 0}
  html[data-theme] body.book-workflow .book-product-summary {font-size:10px}
  html[data-theme] body.book-workflow .book-contract-info {font-size:11px}
  html[data-theme] body.book-workflow .book-text-items {grid-template-columns:minmax(0,1fr)}
}
/* Focus mode overrides every desktop/tablet placement, never artwork geometry. */
html[data-theme] body.book-workflow.book-focus-mode .editor-layout {grid-template-columns:minmax(0,1fr)}
html[data-theme] body.book-workflow.book-focus-mode.book-navigation-ready .workspace {grid-column:1;grid-row:auto}
html[data-theme] body.book-workflow.book-focus-mode :is(.setup-panel,.book-inspector) {display:none}
html[data-theme] body.book-workflow.book-focus-mode .workspace>:is(.workspace-toolbar,.canvas-footer,.gesture-help) {display:none}
html[data-theme] body.book-workflow.book-focus-mode.book-navigation-ready .canvas-scroll {flex:1 0 420px;min-height:420px}
@media(max-width:768px) {html[data-theme] body.book-workflow.book-focus-mode.book-navigation-ready .canvas-scroll {flex:none;height:55dvh;min-height:320px}}
@media(prefers-reduced-motion:reduce) {html[data-theme] body.book-workflow :is(.editor-header,.setup-panel,.book-inspector,.workspace,dialog) button {transition:none}}
/* 4차(추가)-2: 데스크톱에서 디자인 탭은 제목·분류 필터를 고정하고 썸네일 목록만 스크롤 */
@media(min-width:1250px) {html[data-theme] body.book-workflow .setup-panel:has(>[data-tool-panel=templates]:not([hidden])) {overflow:hidden} html[data-theme] body.book-workflow .setup-panel>[data-tool-panel=templates]:not([hidden]) {display:flex;flex-direction:column;height:calc(100dvh - 72px);overflow:hidden;padding-bottom:0} html[data-theme] body.book-workflow .setup-panel>[data-tool-panel=templates]>* {flex:none} html[data-theme] body.book-workflow .setup-panel>[data-tool-panel=templates]>#template-list-container {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding-bottom:20px;scrollbar-color:var(--ui-line) transparent}}
