/* Product shell. Printable dimensions remain owned by the A4 engine. */
#worksheet-direct{--u-accent:#5e52a4;--u-panel:#fff;--u-line:#e1e5ed;--u-text:#263447;font-size:14px}
#worksheet-direct .wd-top{padding:12px 22px;background:#fff;border-bottom:1px solid var(--u-line)}
#worksheet-direct .wd-tools{padding:10px 20px;background:#fff;gap:8px}
#worksheet-direct button{border-radius:9px;transition:background .12s,border-color .12s;cursor:pointer}
#worksheet-direct button:focus-visible,#worksheet-direct summary:focus-visible{outline:3px solid #b6a6ef;outline-offset:2px}
#worksheet-direct .wd-layout{grid-template-columns:minmax(0,1fr) 302px}
#worksheet-direct .wd-left{display:none}
#worksheet-direct[data-drawer=library] .wd-left{display:block;position:absolute;left:0;top:0;bottom:0;width:min(420px,90%);height:auto;z-index:35;box-shadow:12px 0 30px #28334b20;background:white}
#worksheet-direct .wd-left .wd-close-panel{display:block;margin-left:auto}
#worksheet-direct .wd-mobile-controls{display:flex;gap:6px}
#worksheet-direct .wd-canvas-tools{padding:10px 16px;gap:8px;background:#fafbfd;flex-wrap:wrap;flex:none}
#worksheet-direct .wd-canvas-tools label{font-size:12px}
#worksheet-direct .wd-canvas-tools button,#worksheet-direct .wd-canvas-tools select{font-size:12px;min-height:34px}
#worksheet-direct #wd-canvas{background:#edf1f5}
#worksheet-direct .wd-stage{padding-top:22px}
#worksheet-direct .wd-inspector{background:#fff;border-left:1px solid var(--u-line);padding:14px;grid-column:auto}
#worksheet-direct .wd-inspector h3{font-size:17px;line-height:1.35}
#worksheet-direct .wd-inspector .wd-tiny{line-height:1.5}
#worksheet-direct .wd-field{margin:12px 0}
#worksheet-direct .wd-bottom{background:#fff;min-height:31px;gap:12px;font-size:11px}
#worksheet-direct .wd-bottom #wd-feedback{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#worksheet-direct .ws-file-menu{position:relative;margin:0}
#worksheet-direct .ws-file-menu>summary{list-style:none;cursor:pointer;padding:9px 15px;border:1px solid var(--u-line);border-radius:9px;font-size:13px}
#worksheet-direct .ws-file-menu>div{position:absolute;top:44px;right:0;width:230px;padding:8px;background:#fff;border:1px solid var(--u-line);border-radius:12px;z-index:60;box-shadow:0 10px 35px #20304b22;display:grid;gap:5px}
#worksheet-direct .ws-file-menu button{text-align:left}
#worksheet-direct .ws-context{display:flex;align-items:center;gap:5px;min-height:44px;flex:none;padding:5px 16px;background:white;border-bottom:1px solid #e1e5ed;overflow-x:auto;white-space:nowrap}
#worksheet-direct .ws-context button{font-size:12px;min-height:30px;padding:5px 9px;border-color:transparent;background:#f4f5f9}
#worksheet-direct .ws-context-name{font-size:12px;color:#647187;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:70px;max-width:300px}
#worksheet-direct .ws-secondary,#worksheet-direct .ws-answer-presets{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}
#worksheet-direct .ws-answer-presets>span{flex-basis:100%;font-size:12px;color:#647187}
#worksheet-direct .ws-answer-presets button{font-size:11px;min-height:30px;padding:5px 7px}
#worksheet-direct .ws-advanced{margin:14px 0;border-top:1px solid #e1e5ed;padding-top:12px}
#worksheet-direct .ws-advanced>summary{font-size:12px;font-weight:600;cursor:pointer;color:#54617a}
#worksheet-direct .ws-style-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
#worksheet-direct .ws-style-grid button{padding:9px;background:#f7f8fb;text-align:left;border:1px solid #e1e5ed;display:grid;gap:7px;overflow:hidden}
#worksheet-direct .ws-style-grid button[aria-pressed=true]{border-color:#7561bf;background:#f1edfc;box-shadow:0 0 0 1px #7561bf}
#worksheet-direct .ws-style-grid svg{width:100%;height:112px;display:block}
#worksheet-direct .ws-style-grid strong{font-size:11px;line-height:1.3}
#worksheet-direct .ws-block-layout{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px;align-items:center}
#worksheet-direct .ws-block-content{min-width:0}
#worksheet-direct .ws-block-art img{width:100%;height:auto;display:block}
#worksheet-direct .wd-block[style*="span 2"] .ws-block-layout,#worksheet-direct .wd-block[style*="span 3"] .ws-block-layout{grid-template-columns:minmax(0,1fr);gap:6px}
#worksheet-direct .wd-block[style*="span 2"] .ws-block-art,#worksheet-direct .wd-block[style*="span 3"] .ws-block-art{width:48px;justify-self:end}
#worksheet-direct .ws-header-art{width:76px;height:76px;object-fit:contain;flex:none}
#worksheet-direct .wd-block[data-role=illustration] .wd-block-heading:has([contenteditable]:empty),#worksheet-direct .wd-block[data-role=decoration] .wd-block-heading:has([contenteditable]:empty){display:none}
#worksheet-direct .ws-dialog{width:min(1080px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;border:1px solid #dfe3eb;border-radius:20px;padding:26px;color:#263447;box-shadow:0 25px 90px #17274433;background:#fcfdff}
#worksheet-direct .ws-dialog::backdrop{background:#18263b68}
#worksheet-direct #ws-foundation-preview>button[data-ws-use-foundation]{position:sticky;bottom:0;display:block;margin:12px 0 0 auto;background:var(--u-accent);color:white;padding:12px 22px;box-shadow:0 0 0 8px #fcfdff}
#worksheet-direct .ws-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}
#worksheet-direct .ws-dialog-head h2{font-size:26px;margin:0 0 8px;letter-spacing:-.5px}
#worksheet-direct .ws-dialog-head p{color:#65728a;margin:0;line-height:1.5}
#worksheet-direct .ws-dialog-head>button{flex:none;min-width:36px}
#worksheet-direct .ws-start-paths{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:25px}
#worksheet-direct .ws-start-paths>button{padding:20px;text-align:left;display:grid;gap:10px;background:#f3f1fb;border:1px solid #d9d1ed}
#worksheet-direct .ws-start-paths>button:nth-child(2){background:#eff5f6;border-color:#d2e2e5}
#worksheet-direct .ws-start-paths strong{font-size:18px;color:#374361}
#worksheet-direct .ws-start-paths span{font-size:13px;line-height:1.55;color:#58677e}
#worksheet-direct .ws-foundations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#worksheet-direct .ws-foundations>button{padding:14px;display:flex;flex-direction:column;align-items:stretch;gap:8px;background:#fff;border:1px solid #e0e5ed;text-align:left}
#worksheet-direct .ws-foundations svg{width:100%;height:150px;display:block}
#worksheet-direct .ws-foundations strong{font-size:14px}
#worksheet-direct .ws-foundations span{font-size:11px;line-height:1.5;color:#6c778b}
#worksheet-direct .ws-start-footer{display:flex;align-items:center;gap:16px;margin-top:20px;border-top:1px solid #e1e5ed;padding-top:20px}
#worksheet-direct .ws-start-footer span{font-size:12px;color:#6c778b}
#worksheet-direct .ws-preview-pages{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding:22px;background:#e9edf3;margin:14px 0;border-radius:12px;overflow:auto}
#worksheet-direct .ws-preview-page{position:relative;flex:none;background:white;box-shadow:0 2px 12px #25364b19;overflow:hidden}
#worksheet-direct .ws-preview-page .wd-paper{box-shadow:none}
#worksheet-direct.ws-measure{position:fixed;left:-20000px;top:0;width:1200px;height:1600px;display:block;pointer-events:none;overflow:visible;z-index:-100}
#worksheet-direct.ws-measure #wd-canvas{width:1000px;height:1400px;overflow:visible}
#worksheet-direct.ws-measure #wd-stage{width:1000px;position:relative}
#worksheet-direct #ws-art-gallery{margin-top:18px}
#worksheet-direct .wd-picker{z-index:40;max-width:min(760px,calc(100% - 24px));max-height:75%;box-shadow:0 12px 45px #26324c24}
@media(max-width:1000px){
 #worksheet-direct .wd-layout{grid-template-columns:1fr}
 #worksheet-direct .wd-inspector{display:none;position:absolute;top:auto;left:0;right:0;bottom:0;width:100%;height:min(38dvh,340px);max-height:340px;z-index:35;border:1px solid #dce2ec;border-radius:16px 16px 0 0;box-shadow:0 -8px 24px #24334b15}
 #worksheet-direct[data-drawer=inspector] .wd-inspector{display:block}
 #worksheet-direct[data-drawer=inspector] .wd-workspace{padding-bottom:min(38dvh,340px)}
 #worksheet-direct .wd-inspector .wd-close-panel{display:block;margin-left:auto}
 #worksheet-direct .ws-style-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #worksheet-direct .ws-style-grid svg{height:88px}
 #worksheet-direct .ws-context-name{display:none}
 #worksheet-direct .ws-context{padding-inline:10px}
 #worksheet-direct .wd-canvas-tools{gap:5px;padding:7px}
 #worksheet-direct .wd-bottom #wd-storage-status{display:none}
}
@media(max-width:620px){
 #worksheet-direct .wd-top{padding:9px 12px}
 #worksheet-direct .wd-tools{padding:7px 9px;gap:5px}
 #worksheet-direct .wd-tools button,#worksheet-direct .ws-file-menu>summary{font-size:11px;padding:7px 9px;min-height:34px}
 #worksheet-direct .wd-tools .wd-end{display:none}
 #worksheet-direct .wd-canvas-tools{max-height:110px;overflow:auto}
 #worksheet-direct .ws-dialog{padding:18px;border-radius:15px}
 #worksheet-direct .ws-dialog-head h2{font-size:22px}
 #worksheet-direct .ws-start-paths{grid-template-columns:1fr;gap:10px}
 #worksheet-direct .ws-start-paths>button{padding:15px;gap:6px}
 #worksheet-direct .ws-foundations{grid-template-columns:1fr 1fr;gap:9px}
 #worksheet-direct .ws-foundations>button{padding:10px}
 #worksheet-direct .ws-foundations svg{height:120px}
 #worksheet-direct .ws-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #worksheet-direct .ws-start-footer{align-items:flex-start;flex-direction:column;gap:8px}
 #worksheet-direct .ws-preview-pages{justify-content:flex-start;padding:8px}
 #worksheet-direct .wd-bottom{font-size:10px;padding:6px 9px}
}
