.wf-page-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:8px 0;border-top:1px solid #e3e3e3;border-bottom:1px solid #e3e3e3}.wf-page-actions button{font:12px/1.4 Arial,sans-serif;background:white;color:#292724;border:1px solid #ddd;border-radius:6px;padding:8px 10px;min-height:40px}.wf-page-actions button>span{font-size:17px;vertical-align:middle;margin-right:3px}.wf-page-actions button:disabled{opacity:.4}.wf-layout-library{margin-top:22px!important;border-top:1px solid #ddd!important;padding-top:16px!important}.wf-layout-library h3{font-size:16px;font-weight:500}#wf-layout-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wf-layout-choice{padding:5px;border:1px solid #ddd;background:#fff;border-radius:5px;min-width:0}.wf-layout-mini{display:block;position:relative;aspect-ratio:2/1;background:#fff;overflow:hidden;border:1px solid #eee}.wf-layout-mini:after{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed #aaa}.wf-layout-mini i{display:block;position:absolute;background:#e0ddd6;border:1px solid #fff}.wf-layout-choice small{display:block;font-size:10px;margin-top:5px;color:#555}.wf-layout-choice:hover{outline:2px solid #a32b38}.wf-layout-choice:focus-visible,.wf-page-actions button:focus-visible{outline:2px solid #a32b38;outline-offset:3px}.wf-layout-choice:disabled{opacity:.4}@media(max-width:899px){.wf-page-actions button{min-height:44px;font-size:12px}#wf-layout-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.wf-layout-choice small{font-size:10px}}

.wf-book-views{display:flex;justify-content:center;gap:4px;margin:12px auto;padding:4px;background:#fff;border:1px solid #dfe5e9;border-radius:12px;max-width:100%}.wf-book-views button,.wf-preview-head button{border:0;border-radius:8px;padding:10px 15px;background:transparent;color:#526570;font:inherit}.wf-book-views button[aria-pressed=true]{background:#80b9e6;color:#173d58}.wf-book-views button:focus-visible,.wf-grid-page:focus-visible{outline:3px solid #087e83}.wf-book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;max-height:65vh;overflow:auto;padding:10px}.wf-grid-page{display:grid;gap:8px;padding:10px;background:white;border:1px solid #dfe5e9;border-radius:10px;color:#405564}.wf-grid-page[aria-current]{border:2px solid #087e83}.wf-grid-thumb{display:grid;place-items:center;aspect-ratio:2/1;background:#edf1f3;overflow:hidden}.wf-grid-thumb canvas{max-width:100%;max-height:100%}.wf-book-preview{width:min(1200px,96vw);max-height:94vh;padding:16px;border:0;border-radius:14px;background:#f4f6f8;color:#192735}.wf-book-preview::backdrop{background:#14242ed9}.wf-preview-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf-preview-head strong{flex:1}.wf-preview-canvas{display:grid;place-items:center;min-height:120px;margin-top:15px}.wf-preview-canvas canvas{max-width:100%;max-height:76vh;object-fit:contain;box-shadow:0 5px 20px #0002}@media(max-width:500px){.wf-book-views button{padding:10px 12px}.wf-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wf-preview-head button{padding:8px}.wf-book-preview{padding:10px}}
