/*! LambiPdf — https://lambipdf.com
 * Copyright (c) 2026 LambiPdf. All rights reserved. See LICENSE.
 */
/* Editor shell: local processing and existing control IDs stay unchanged. */
.app.has-editor { max-width:1680px; padding:24px 24px 56px; }
.editor-workspace { margin-top:0; }
.editor-workspace > .toolbar { position:static; border-radius:18px 18px 0 0; box-shadow:none; gap:20px; padding:20px 22px; align-items:flex-start; }
.editor-document { flex:1 1 240px; min-width:0; }
.editor-eyebrow { display:block; color:var(--muted-ink,#657267); font-size:10px; letter-spacing:.15em; font-weight:750; }
.editor-document h2 { margin:6px 0 4px; font:600 24px/1.2 Georgia,serif; color:var(--ink,#203c30); }
.editor-file-name { display:block; overflow-wrap:anywhere; color:var(--muted-ink,#657267); font-size:12px; margin-bottom:8px; }
.editor-document .muted { margin:0 8px 0 0; font-size:11px; }
.editor-document #pageCount { font-size:11px; margin-right:8px; }
.editor-workspace .toolbar-actions { flex:0 1 720px; align-items:center; gap:7px; }
.editor-workspace .toolbar-actions button, .editor-workspace .toolbar-actions label { min-height:40px; font-size:12px; padding:9px 12px; }
.editor-tool-actions { display:contents; }
.editor-tool-actions:empty { display:none; }
.editor-layout { display:grid; grid-template-columns:160px minmax(0,1fr); border:1px solid var(--line,#deddd2); border-top:0; border-radius:0 0 18px 18px; overflow:clip; align-items:start; background:var(--surface,#fffdf8); }
.editor-sidebar.tools-bar { margin:0; border:0; border-radius:0; display:block; padding:20px 12px; min-width:0; background:transparent; }
.editor-sidebar > .tools-label { display:block; margin:0 8px 12px; }
.editor-sidebar .tool-tabs { display:flex; flex-direction:column; flex-wrap:nowrap; gap:4px; min-width:0; width:100%; padding:0; overflow:visible; }
.editor-tool-group { font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-ink,#657267); padding:16px 10px 6px; }
.editor-tool-group:first-child { padding-top:0; }
.editor-sidebar .tool-tab { display:flex; align-items:center; gap:9px; width:100%; text-align:left; border:1px solid transparent; border-radius:9px; padding:9px; min-height:42px; white-space:normal; font-size:12px; line-height:1.35; background:transparent; color:var(--ink,#203c30); }
.editor-tool-icon { width:20px; flex:none; }
.editor-tool-icon svg { display:block; width:20px; height:20px; }
.editor-sidebar .tool-tab:hover { background:var(--sage,#e8eee4); }
.editor-sidebar .tool-tab.active { background:var(--forest,#214e3c); color:#fff; box-shadow:0 3px 9px #214e3c12; }
.editor-sidebar-note { margin:24px 8px 0; padding-top:14px; border-top:1px solid var(--line,#deddd2); color:var(--muted-ink,#657267); font-size:11px; line-height:1.7; }
.editor-canvas { min-width:0; min-height:700px; padding:22px; background:#eceee7; border-inline:1px solid var(--line,#deddd2); }
.editor-canvas-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.editor-canvas-heading p { margin:5px 0 0; color:var(--muted-ink,#657267); font-size:12px; }
.editor-page-size { display:flex; gap:8px; align-items:center; font-size:11px; color:var(--muted-ink,#657267); }
.editor-page-size select { min-height:40px; font-size:12px; padding:8px; }
.editor-canvas .bulk-bar { margin:18px 0 0; padding:8px 0; border-block:1px solid #d5dacf; background:transparent; border-radius:0; gap:4px; }
.editor-canvas .bulk-bar button { font-size:11px; padding:8px; min-height:40px; }
.editor-canvas .hint { font-size:12px; line-height:1.6; margin:14px 0 22px; color:#536452; }
.editor-canvas .page-grid { grid-template-columns:minmax(0,680px); justify-content:center; gap:28px; }
.editor-canvas .page-card { padding:10px; cursor:default; border-radius:5px; box-shadow:0 6px 22px #233c3010; min-width:0; }
.editor-canvas .thumb { border-radius:2px; background:white; }
.editor-canvas .thumb canvas { width:100%; height:auto; }
.editor-canvas .card-meta { padding:12px 5px 3px; }
.editor-canvas .controls { justify-content:flex-end; }
.editor-canvas .controls .icon-btn { flex:0 1 auto; padding:9px 12px; min-height:40px; }
.editor-canvas .expand-btn { width:36px; height:36px; }
.editor-workspace.overview .page-grid { grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); gap:16px; }
.editor-settings { display:none; padding:20px 16px; min-width:0; }
.has-settings .editor-settings { display:block; }
.has-settings .editor-layout { grid-template-columns:160px minmax(0,1fr) 250px; }
.editor-settings > .tools-label { display:block; margin-bottom:18px; }
.editor-settings .out-name { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin:0 0 24px; font-size:12px; width:100%; }
.editor-settings .out-name input { width:100%; min-width:0; }
.editor-settings .tool-panel { border:0; border-top:1px solid var(--line,#deddd2); border-radius:0; background:transparent; margin:0; padding:22px 0 0; box-shadow:none; }
.editor-settings .panel-head { padding-right:26px; }
.editor-settings .panel-head h3 { font-family:Georgia,serif; font-size:23px; }
.editor-settings .panel-head p { font-size:12px; line-height:1.7; }
.editor-settings .panel-close { top:23px; right:0; min-width:32px; min-height:32px; }
.editor-settings .panel-controls { align-items:stretch; }
.editor-settings .field { min-width:0; }
.editor-settings .row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.editor-settings .text-input { max-width:100%; width:100%; min-width:0; }
.editor-settings .checkbox { align-items:flex-start; line-height:1.55; font-size:12px; }
.editor-settings .checkbox input { flex:none; margin-top:3px; }
.editor-settings .muted { margin-left:0; }
.editor-settings .panel-btns:empty { display:none; }
.editor-organize-help { border-top:1px solid var(--line,#deddd2); padding-top:12px; }
.editor-organize-help h3 { font:500 24px/1.3 Georgia,serif; color:var(--ink,#203c30); }
.editor-organize-help p { font-size:12px; line-height:1.8; color:var(--muted-ink,#657267); }
.editor-mobile-controls { display:none; }
.editor-workspace button:focus-visible, .editor-workspace select:focus-visible { outline:2px solid var(--forest,#214e3c); outline-offset:3px; }
/* Dedicated conversion/image screens share the new frame without PDF-only controls. */
.app.has-editor > .workspace:not(.editor-workspace) { margin-top:0; }
.app.has-editor > .workspace:not(.editor-workspace) > .toolbar { border-radius:18px 18px 0 0; box-shadow:none; }
.app.has-editor > .workspace:not(.editor-workspace) > .screen-edit { max-width:none; margin:0; padding:24px; border:1px solid var(--line,#deddd2); border-top:0; border-radius:0 0 18px 18px; background:var(--surface,#fffdf8); }
@media(max-width:1150px) {
  .has-settings .editor-layout { grid-template-columns:150px minmax(0,1fr) 230px; }
  .editor-settings { padding:20px 14px; }
  .editor-canvas { padding:18px; }
  .editor-workspace > .toolbar { flex-direction:column; }
  .editor-workspace .toolbar-actions { flex:auto; width:100%; justify-content:flex-start; }
}
@media(max-width:900px) {
  .app.has-editor { padding:16px 12px 40px; }
  .editor-workspace > .toolbar { padding:16px; border-radius:14px 14px 0 0; gap:12px; }
  .editor-document { flex:auto; width:100%; }
  .editor-document h2 { font-size:24px; }
  .editor-workspace .toolbar-actions { display:flex; flex-wrap:wrap; }
  .editor-workspace .toolbar-actions > * { flex:0 1 auto; }
  .editor-workspace .toolbar-actions button, .editor-workspace .toolbar-actions label { min-height:44px; }
  .editor-mobile-controls { display:flex; gap:8px; padding:10px 14px; background:var(--surface,#fffdf8); border-inline:1px solid var(--line,#deddd2); border-bottom:1px solid var(--line,#deddd2); }
  .editor-mobile-controls button { min-height:44px; flex:1; }
  .editor-mobile-controls button[aria-expanded="true"] { background:var(--sage,#e8eee4); border-color:var(--forest,#214e3c); }
  .editor-layout { display:flex; flex-direction:column; border-top:0; }
  .editor-sidebar.tools-bar, .editor-settings { display:none; width:100%; }
  .tools-open .editor-sidebar, .settings-open .editor-settings { display:block; border-bottom:1px solid var(--line,#deddd2); }
  .editor-sidebar { order:0; }
  .editor-settings { order:1; }
  .editor-canvas { order:2; width:100%; border:0; min-height:350px; padding:16px; }
  .editor-sidebar .tool-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  .editor-tool-group { grid-column:1/-1; }
  .editor-sidebar .tool-tab { min-height:44px; }
  .editor-sidebar-note { margin-top:12px; }
  .editor-settings .out-name { margin-bottom:12px; }
  .editor-canvas .bulk-sep { display:none; }
  .editor-canvas .page-card { padding:6px; }
  .editor-canvas .controls .icon-btn { min-height:44px; padding:9px; }
  .app.has-editor > .workspace:not(.editor-workspace) > .screen-edit { padding:16px; }
}

.editor-settings .checkbox > span { min-width:0; }

/* Reference-led refinement: compact application chrome around the document. */
.editor-open .topbar { height:58px; background:#fff; }
.editor-open .brand { font:750 21px/1.2 Inter,ui-sans-serif,system-ui,sans-serif; }
.editor-open .brand .logo, .editor-open .lamb-logo { width:34px; height:34px; }
.app.has-editor { max-width:1460px; padding:20px 24px 50px; }
.editor-workspace > .toolbar { display:grid; grid-template-columns:175px minmax(0,1fr); gap:12px; padding:12px 16px; align-items:center; background:#fff; border-radius:10px 10px 0 0; }
.editor-document { min-width:0; }
.editor-document > .editor-eyebrow { display:none; }
.editor-document h2 { font:700 14px/1.3 Inter,ui-sans-serif,system-ui,sans-serif; margin:0 0 3px; }
.editor-file-name { font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; }
.editor-document #editState, .editor-document #pageCount, .editor-document #fileCount, .editor-document #selCount { display:none; }
.editor-workspace .toolbar-actions { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.editor-workspace .toolbar-actions button, .editor-workspace .toolbar-actions label { min-height:36px; border-radius:6px; font-size:12px; padding:7px 10px; }
.editor-more { position:relative; }
.editor-more > summary { display:grid; place-items:center; width:36px; height:36px; list-style:none; cursor:pointer; border:1px solid var(--line); border-radius:6px; font-size:22px; }
.editor-more > summary::-webkit-details-marker { display:none; }
.editor-more > div { position:absolute; right:0; top:42px; z-index:20; min-width:160px; padding:8px; display:grid; gap:5px; background:white; border:1px solid var(--line); border-radius:9px; box-shadow:0 8px 28px #233c3020; }
.editor-layout { border-radius:0 0 10px 10px; background:white; }
.editor-sidebar.tools-bar { padding:14px 10px; }
.editor-sidebar .tool-tab { min-height:36px; padding:7px 8px; font-size:12px; border-radius:5px; }
.editor-sidebar .tool-tab.active { color:var(--forest); background:#e7f0ea; box-shadow:none; }
.editor-tool-icon svg { width:18px; height:18px; }
.editor-tool-section > summary { list-style:none; cursor:pointer; padding:10px 6px; font-size:10px; letter-spacing:.06em; display:flex; justify-content:space-between; gap:8px; }
.editor-tool-section > summary::after { content:'+'; font-size:13px; }
.editor-tool-section[open] > summary::after { content:'−'; }
.editor-tool-section > summary::-webkit-details-marker { display:none; }
.editor-tool-section + .editor-tool-section { margin-top:8px; padding-top:6px; border-top:1px solid #edf0ed; }
.editor-sidebar-note { font-size:10px; padding-top:12px; margin-top:16px; }
.editor-canvas { padding:16px 28px 36px; background:#f1f2f6; min-height:680px; }
.editor-canvas-heading { margin-bottom:12px; }
.editor-canvas-caption { font-size:12px; font-weight:650; color:#59636b; }
.editor-canvas-caption span { font-weight:400; }
.editor-page-size select { min-height:32px; font-size:11px; padding:5px 8px; border-radius:6px; background:#fff; }
.editor-page-menu { margin-bottom:10px; color:#59636b; font-size:11px; }
.editor-page-menu > summary { cursor:pointer; width:fit-content; padding:6px 0; }
.editor-canvas .bulk-bar { margin:4px 0 10px; border:0; padding:0; }
.editor-canvas .hint { margin:0 0 16px; font-size:11px; color:#6a7278; }
.editor-canvas .page-card { padding:0; border-radius:2px; box-shadow:0 5px 24px #20273614; border-color:#e2e4e8; overflow:hidden; }
.editor-canvas .card-meta { padding:8px 10px; }
.editor-workspace:not(.overview) .card-title, .editor-workspace:not(.overview) .card-subtitle { display:none; }
.editor-canvas .controls { margin-top:0; }
.editor-canvas .controls .icon-btn { min-height:32px; font-size:11px; padding:5px 8px; border-color:#e6e9e8; background:#fff; }
.editor-settings > .tools-label { font-size:10px; }
.editor-settings .tool-panel { padding-top:14px; }
.editor-settings .panel-head h3 { font:700 15px/1.3 Inter,ui-sans-serif,system-ui,sans-serif; }
.editor-settings .panel-head p { font-size:11px; }
.editor-settings .out-name { font-size:11px; margin-bottom:16px; }
.editor-settings .text-input { font-size:12px; border-radius:6px; }
.editor-settings .panel-close { top:12px; }
.editor-empty { padding:20px 0 10px; }
.editor-empty-sheet { width:min(100%,620px); min-height:560px; margin:auto; padding:90px 24px 50px; text-align:center; display:flex; flex-direction:column; align-items:center; background:#fff; border:1px solid #e1e3e8; box-shadow:0 5px 24px #20273612; border-radius:2px; }
.editor-empty-sheet.over { outline:2px dashed var(--forest); outline-offset:-10px; background:#f5faf7; }
.editor-empty-icon { display:block; color:#749284; margin-bottom:24px; }
.editor-empty-icon svg { display:block; width:48px; height:56px; }
.editor-empty-sheet h1 { font:650 30px/1.2 Inter,ui-sans-serif,system-ui,sans-serif; letter-spacing:-.8px; margin:0 0 14px; color:#253f34; }
.editor-empty-sheet p { font-size:13px; line-height:1.8; color:#67746e; margin:0 0 24px; }
.editor-empty-sheet small { margin-top:16px; color:#78837d; font-size:11px; }
.is-empty .editor-page-menu, .is-empty #gridHint, .is-empty .editor-page-size, .is-empty #mergeBtn, .is-empty #applyBtn, .is-empty #previewBtn { display:none; }
@media(max-width:1000px) {
  .editor-workspace > .toolbar { grid-template-columns:150px minmax(0,1fr); }
  .editor-workspace .toolbar-actions { width:auto; }
  .editor-canvas { padding:14px 18px 24px; }
}
@media(max-width:900px) {
  .app.has-editor { padding:12px 10px 30px; }
  .editor-workspace > .toolbar { grid-template-columns:1fr; padding:12px; gap:10px; }
  .editor-document { display:flex; justify-content:space-between; gap:8px; align-items:center; }
  .editor-file-name { max-width:48%; }
  .editor-workspace .toolbar-actions { justify-content:flex-start; }
  .editor-workspace .toolbar-actions button, .editor-workspace .toolbar-actions label, .editor-more > summary { min-height:44px; }
  .editor-more > div { right:auto; left:0; top:48px; }
  .editor-sidebar .tool-tabs { display:block; }
  .editor-tool-section[open] { display:block; }
  .editor-sidebar .tool-tab { min-height:44px; }
  .has-settings .editor-settings { display:none; }
  .settings-open .editor-settings { display:block; }
  .editor-empty { padding:4px 0; }
  .editor-empty-sheet { min-height:450px; padding:60px 18px 40px; }
  .editor-empty-sheet h1 { font-size:27px; }
  .editor-canvas .controls .icon-btn { min-height:44px; }
}

/* Visual finish: paper, ink and quiet botanical accents. No remote assets. */
.editor-open { background:#f6f5ef; }
.editor-open .topbar { border-color:#e4e8e1; }
.editor-workspace { filter:drop-shadow(0 10px 24px #203c3006); }
.editor-workspace > .toolbar { border-color:#dfe5dc; padding:13px 18px; border-radius:14px 14px 0 0; }
.editor-document { position:relative; padding-left:30px; }
.editor-document::before { content:''; position:absolute; left:0; top:2px; width:17px; height:22px; border:1.5px solid #668575; border-radius:3px; background:linear-gradient(#ceddd3,#ceddd3) 4px 8px/9px 2px no-repeat,linear-gradient(#ceddd3,#ceddd3) 4px 13px/7px 2px no-repeat,#f1f6f1; }
.editor-document h2 { letter-spacing:-.2px; color:#294b3a; }
.editor-file-name { color:#607164; }
.editor-layout { border-color:#dfe5dc; border-radius:0 0 14px 14px; }
.editor-sidebar.tools-bar { padding:18px 11px; background:linear-gradient(180deg,#fff 50%,#fafbf7); }
.editor-sidebar > .tools-label { font-size:9px; letter-spacing:.12em; color:#607164; margin-left:7px; }
.editor-tool-section > summary { color:#607164; font-size:9px; padding:11px 6px; }
.editor-sidebar .tool-tab { gap:10px; padding:8px; margin-block:2px; border-radius:7px; font-weight:550; color:#4b5d51; }
.editor-tool-icon { display:grid; place-items:center; width:26px; height:26px; border-radius:7px; color:#487964; background:#eaf2ed; }
.tool-tab[data-tool="crop"] .editor-tool-icon, .tool-tab[data-tool="forms"] .editor-tool-icon { background:#eaf0f8; color:#57769b; }
.tool-tab[data-tool="redact"] .editor-tool-icon, .tool-tab[data-tool="encrypt"] .editor-tool-icon { background:#f5eae7; color:#a36d61; }
.tool-tab[data-tool="watermark"] .editor-tool-icon, .tool-tab[data-tool="numbers"] .editor-tool-icon { background:#f3eedd; color:#957c41; }
.editor-tool-icon svg { width:16px; height:16px; }
.editor-sidebar .tool-tab.active { position:relative; background:#eaf1e9; color:#214e3c; font-weight:750; border-color:#dce8dc; }
.editor-sidebar .tool-tab.active::before { content:''; position:absolute; left:-12px; top:10px; bottom:10px; width:3px; border-radius:0 3px 3px 0; background:#497d5f; }
.editor-sidebar .tool-tab:hover { background:#f0f4ee; }
.editor-sidebar-note { color:#657b6b; border-color:#e6ece3; line-height:1.6; }
.editor-canvas { border-color:#e1e7df; background:radial-gradient(circle,#839c8c22 .7px,transparent .9px) 0 0/20px 20px,linear-gradient(145deg,#edf2ec,#f3f4ef 70%,#f5f0e7); padding-top:19px; }
.editor-canvas-caption { display:flex; align-items:center; gap:7px; color:#566b5b; font-size:11px; font-weight:500; }
.editor-canvas-caption svg { opacity:.8; }
.editor-empty { padding-top:24px; }
.editor-empty-sheet { position:relative; min-height:555px; width:min(100%,610px); padding:42px 28px; border-color:#dce4da; border-radius:7px; box-shadow:0 2px 3px #22392d03,0 15px 45px #22392d08; background:linear-gradient(155deg,#fff 60%,#fcfcf8); }
.editor-empty-sheet::after { content:''; position:absolute; left:12px; right:12px; height:6px; bottom:-7px; background:#fffefa; border:1px solid #e0e5da; border-top:0; border-radius:0 0 5px 5px; z-index:-1; }
.editor-empty-art { width:154px; height:133px; margin:0 0 14px; }
.editor-empty-art svg { display:block; width:100%; height:100%; }
.editor-empty-kicker { font-size:9px; letter-spacing:.19em; font-weight:700; color:#61715c; margin-bottom:15px; }
.editor-empty-sheet h1 { font:500 43px/1.06 Georgia,'Times New Roman',serif; letter-spacing:-1.5px; color:#294838; margin-bottom:17px; }
.editor-empty-sheet h1 em { color:#6b8368; font-weight:400; }
.editor-empty-sheet p { line-height:1.8; font-size:12px; color:#6a796e; margin-bottom:24px; }
.editor-drop-box { display:flex; flex-direction:column; align-items:center; gap:8px; width:min(100%,400px); margin:0 auto 18px; padding:24px 20px 20px; border:2px dashed #a9c0ad; border-radius:12px; background:#f8fbf6; color:#4f6a56; cursor:pointer; transition:background .15s,border-color .15s; }
.editor-drop-box:hover, .editor-empty-sheet.over .editor-drop-box { background:#eef5ec; border-color:#497d5f; }
.editor-drop-box strong { font-size:15px; color:#294838; }
.editor-drop-box .editor-drop-or { font-size:11px; color:#7a887d; }
.editor-drop-box small { font-size:10.5px; color:#6f7f72; margin-top:2px; }
.editor-drop-box .primary-btn { display:flex; align-items:center; gap:9px; padding:11px 18px; border-radius:8px; min-height:44px; font-size:13px; }
.editor-drop-box .primary-btn span { font-size:18px; font-weight:400; }
.editor-empty-actions { display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; }
.editor-empty-actions .primary-btn { display:flex; align-items:center; gap:9px; padding:12px 19px; border-radius:8px; min-height:44px; box-shadow:0 4px 9px #214e3c16; font-size:13px; }
.editor-empty-actions .primary-btn span { font-size:18px; font-weight:400; }
.editor-explore-btn { font-family:inherit; font-weight:600; font-size:12px; line-height:1.5; border:1px solid #dce3d7; border-radius:8px; background:#fff; color:#506951; padding:11px 14px; min-height:44px; cursor:pointer; }
.editor-explore-btn:hover { background:#f2f5ed; border-color:#bccdb9; }
.editor-explore-btn span { margin-left:7px; }
.editor-empty-sheet .editor-local-note { display:flex; justify-content:center; align-items:center; gap:5px; margin-top:22px; color:#657962; font-size:10px; flex-wrap:wrap; }
.editor-workspace .primary-btn { background:#2d5941; }
.editor-workspace .primary-btn:hover:not(:disabled) { background:#214832; }
.editor-workspace .toolbar-actions > button:not(.primary-btn), .editor-workspace .toolbar-actions > label { border-color:#e1e7dd; background:#fff; }
.editor-workspace .toolbar-actions > button:hover:not(:disabled), .editor-workspace .toolbar-actions > label:hover { background:#f2f6ef; }
.editor-settings { background:#fdfefa; }
.editor-settings .text-input:focus { outline:2px solid #64866b; outline-offset:2px; }
.editor-canvas .page-card { border-radius:5px; box-shadow:0 3px 5px #22392d05,0 14px 35px #22392d0a; }
.editor-page-size select { background:#ffffffd9; border-color:#d9e3d6; color:#52654f; }
.editor-workspace summary:focus-visible, .editor-explore-btn:focus-visible { outline:2px solid #497d5f; outline-offset:3px; }
@media(max-width:900px) {
  .editor-workspace > .toolbar { padding:12px; }
  .editor-document { padding-left:27px; }
  .editor-document::before { top:0; width:16px; height:21px; }
  .editor-empty { padding:12px 0 18px; }
  .editor-empty-sheet { min-height:480px; padding:30px 17px; }
  .editor-empty-art { width:124px; height:107px; margin-bottom:12px; }
  .editor-empty-sheet h1 { font-size:36px; }
  .editor-empty-kicker { font-size:8px; letter-spacing:.15em; }
  .editor-empty-sheet p { font-size:12px; }
  .editor-empty-actions { gap:8px; }
  .editor-empty-sheet .editor-local-note { font-size:9px; }
}
@media(prefers-reduced-motion:no-preference) {
  .editor-sidebar .tool-tab, .editor-explore-btn, .editor-empty-actions .primary-btn { transition:background .15s,border-color .15s,box-shadow .15s; }
}

/* Every tool in view: document tools in the left rail, convert & extract tools in the right rail,
   tool settings above them when a tool is open. Phones open both lists from the Tools button. */
.editor-layout, .has-settings .editor-layout { grid-template-columns:170px minmax(0,1fr) 240px; grid-template-rows:auto 1fr; grid-template-areas:"tools canvas settings" "tools canvas convert"; }
#editorTools { grid-area:tools; }
.editor-canvas { grid-area:canvas; align-self:stretch; }
.editor-settings { grid-area:settings; }
.editor-convert { grid-area:convert; }
.has-settings .editor-convert { border-top:1px solid #e6ece3; }
.editor-tool-section + .editor-tool-section { margin-top:10px; padding-top:4px; }
.editor-tool-section > .editor-tool-group { display:block; color:#607164; font-size:9px; letter-spacing:.06em; padding:11px 6px 6px; }
.editor-tool-section:first-child > .editor-tool-group { padding-top:2px; }
.editor-convert.tools-bar { background:transparent; }
.editor-convert .tool-tab.active::before { left:auto; right:-12px; border-radius:3px 0 0 3px; }
@media(max-width:1150px) {
  .editor-layout, .has-settings .editor-layout { grid-template-columns:150px minmax(0,1fr) 210px; }
}
@media(max-width:900px) {
  .editor-sidebar .editor-tool-section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:6px; }
  .editor-sidebar .editor-tool-section > .editor-tool-group { grid-column:1/-1; }
  .editor-convert.tools-bar { padding-top:6px; }
  .editor-convert > .tools-label { margin-top:4px; }
}

/* With a document open: a visible drop strip under the pages; the page area lights up while files are dragged in. */
.editor-add-drop { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin:22px 0 0; min-height:64px; padding:14px; border:1.5px dashed #b8cbbb; border-radius:10px; background:#ffffffb3; color:#4f6a56; font:inherit; font-size:12px; cursor:pointer; }
.editor-add-drop span { font-size:18px; line-height:1; }
.editor-add-drop:hover, .editor-workspace.file-over .editor-add-drop { background:#f2f7f1; border-color:#497d5f; color:#214e3c; }
.editor-add-drop:focus-visible { outline:2px solid #497d5f; outline-offset:3px; }
.is-empty .editor-add-drop { display:none; }
.editor-workspace { position:relative; }
.editor-workspace.file-over::after { content:attr(data-drop-label); position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; border:2.5px dashed #497d5f; border-radius:18px; background:#f4f8f3f5; color:#214e3c; font:600 22px/1.3 Inter,ui-sans-serif,system-ui,sans-serif; pointer-events:none; }
@media(max-width:900px) { .editor-add-drop { min-height:52px; margin-top:16px; } }

/* OCR text-language menu (OCR, Extract text, PDF → Excel/CSV, PDF → EPUB). */
.ocr-language { display:flex; flex-direction:column; gap:6px; font-size:12px; margin:0 0 12px; }
.ocr-language select { max-width:100%; }
.conv-ocr-language .ocr-language { margin:4px 0 14px; }
.conv-ocr-again { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:0 0 14px; padding:12px; border:1px solid #dfe5dc; border-radius:10px; background:#fbfcf9; }
.conv-ocr-again .ocr-language { margin:0; flex:1 1 220px; }
