/* WIFOT book layout inspired by the supplied reference. No production parameters changed. */
.wf-reference-layout .topbar{min-height:76px;padding:10px 20px;gap:12px}.wf-reference-layout .brand{gap:8px;flex-shrink:0}.wf-reference-layout .brand img{width:112px;height:36px}.wf-reference-layout .brand span{max-width:90px;line-height:1.3}.wf-reference-layout .top-actions{justify-content:flex-end;gap:6px}.wf-reference-layout .top-actions .btn{font-size:12px;padding:9px 11px}.wf-reference-layout #wifotBookCheckout{width:auto}.wf-reference-layout .workspace{grid-template-columns:60px 224px minmax(320px,1fr) 270px;min-height:calc(100dvh - 76px);height:calc(100dvh - 76px);gap:0}.wf-reference-layout .wf-tool-rail{display:flex;flex-direction:column;gap:12px;padding:18px 6px;background:#fff;border-right:1px solid #e3e3e3;overflow:auto}.wf-reference-layout .wf-tool-rail button{display:grid;gap:5px;place-items:center;min-height:65px;width:100%;padding:8px 2px;border:0;background:white;color:#242424}.wf-reference-layout .wf-tool-rail button[aria-pressed=true]{background:#f6e9ea;color:#922731}.wf-reference-layout .wf-tool-rail button>span{font-size:23px;line-height:1.2}.wf-reference-layout .wf-tool-rail small{font-size:10px}.wf-reference-layout .sidebar{padding:20px 16px;max-height:none;height:100%;overflow:auto;overscroll-behavior:contain}.wf-reference-layout .sidebar.left section{border:0;padding:0;margin:0}.wf-reference-layout .sidebar h2{font-size:20px;font-weight:500;letter-spacing:-.5px}.wf-reference-layout .eyebrow{font-size:9px;font-weight:400;letter-spacing:1.5px;color:#777}.wf-reference-layout .sidebar .btn{font-size:12px;font-weight:500}.wf-reference-layout .library{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.wf-reference-layout .dropzone{background:#f9f9f7;border-color:#d0d0ca;padding:16px 8px;border-radius:10px}.wf-reference-layout .drop-icon{border:0;width:28px;height:28px;color:#444}.wf-reference-layout .main{padding:12px 16px;overflow:auto;min-height:0;background:#f5f5f3;gap:0}.wf-reference-layout .pagebar{margin-bottom:10px}.wf-reference-layout .pagebar h1{font-size:18px;font-weight:500}.wf-reference-layout .stage{margin:auto 0;min-height:260px;padding:20px 12px;background-color:#efefeb;background-image:radial-gradient(#d8d8d3 .65px,transparent .65px);background-size:10px 10px;border:1px solid #e3e3de;border-radius:0}.wf-reference-layout .stage-help{font-size:10px}.wf-reference-layout .spread{box-shadow:0 8px 24px #2424241a}.wf-reference-layout .cover-guide{margin-top:8px;font-size:10px;color:#777}.wf-reference-layout .filmstrip{flex-shrink:0;min-height:82px;margin:10px 0;padding:8px 0;border-top:1px solid #ddd}.wf-reference-layout .studio-actions,.wf-reference-layout .stage-actions{margin:6px 0;gap:5px}.wf-reference-layout .studio-actions .btn,.wf-reference-layout .stage-actions .btn{font-size:11px;padding:7px 9px;font-weight:400}.wf-reference-layout .bottom-hint{font-size:10px;margin-top:8px}.wf-reference-layout .layout-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wf-reference-layout .sidebar.right .form-label{font-weight:400}.wf-reference-layout .sidebar.right .row-two{grid-template-columns:1fr}.wf-reference-layout .cover-tools{padding:12px;background:#f8f8f6;border:1px solid #e6e6e2;border-radius:8px}.wf-reference-layout .production{font-size:11px}.wf-reference-layout .object-tools{flex-wrap:wrap;gap:4px;font-size:11px}
@media(min-width:1600px){.wf-reference-layout .workspace{grid-template-columns:64px 260px minmax(400px,1fr) 300px}.wf-reference-layout .stage{padding:30px}}
@media(max-width:1100px) and (min-width:900px){.wf-reference-layout .workspace{grid-template-columns:54px 190px minmax(280px,1fr) 230px}.wf-reference-layout .sidebar{padding:16px 12px}.wf-reference-layout .main{padding:12px}.wf-reference-layout .topbar{flex-wrap:wrap}.wf-reference-layout .workspace{height:auto;min-height:calc(100dvh - 110px)}.wf-reference-layout .sidebar{max-height:calc(100dvh - 110px)}}
@media(max-width:899px){.wf-reference-layout .topbar{padding:10px 12px;flex-wrap:wrap}.wf-reference-layout .brand span{max-width:none}.wf-reference-layout .top-actions{width:100%;justify-content:flex-start}.wf-reference-layout .workspace{display:grid;grid-template-columns:54px minmax(0,1fr);height:auto;min-height:0}.wf-reference-layout .wf-tool-rail{grid-column:1;grid-row:1/4;position:sticky;top:0;align-self:start;height:100dvh;padding:10px 4px}.wf-reference-layout .sidebar.left{grid-column:2;grid-row:1;height:auto;max-height:360px;padding:16px}.wf-reference-layout .sidebar.right{grid-column:2;grid-row:3;height:auto;max-height:none;border-top:1px solid #ddd}.wf-reference-layout .main{grid-column:2;grid-row:2;overflow:visible;padding:12px;min-height:0}.wf-reference-layout .stage{min-height:180px;padding:12px 6px}.wf-reference-layout .library{grid-template-columns:repeat(4,minmax(0,1fr));max-height:150px}.wf-reference-layout .pagebar{flex-wrap:wrap}.wf-reference-layout .top-actions .btn{min-height:44px}.wf-reference-layout .form-label input:not([type=range]),.wf-reference-layout select{font-size:16px}.wf-reference-layout .filmstrip{width:100%;min-width:0}.wf-reference-layout .sidebar{min-width:0}.wf-reference-layout .brand img{width:100px}}
/* Let the workspace scroll instead of compressing the canvas and overlaying controls. */
.wf-reference-layout .main>*{flex-shrink:0}
.wf-reference-layout .stage{height:auto;flex:0 0 auto;min-height:0;margin:0}
.wf-reference-layout .photo-fit-picker{margin:4px 0 0;flex-wrap:wrap}
.wf-reference-layout .top-actions .state{font-size:11px}
