/* Compact document workspace. Paper dimensions remain in millimetres in the model/export. */
.mskw-editor{--mskw-page-width:min(100%,580px)}
.mskw-editor .demo-main{width:100%;max-width:1380px!important;margin-inline:auto!important;padding:16px 22px 32px;box-sizing:border-box}
.mskw-editor .demo-stage{width:100%;max-width:1340px;margin-inline:auto!important}
.mskw-editor .msku-workbench{overflow:visible;border-radius:18px;margin-bottom:14px;width:100%;max-width:1340px;margin-inline:auto}
.mskw-editor .msku-topbar{padding:12px 16px;flex-wrap:nowrap;gap:14px}
.mskw-editor .msku-topbar .msku-brand{gap:10px}.mskw-editor .msku-brand strong{font-size:19px;white-space:nowrap}
.mskw-project-name{display:flex;align-items:center;gap:8px;max-width:360px;flex:1;margin-inline:auto;padding:5px 12px;border:1px solid var(--msk-line);background:var(--msk-bg);border-radius:10px;color:var(--msk-muted)}
.mskw-project-name>svg{width:18px;height:18px;flex:none}.mskw-project-name input{min-width:0;width:100%;border:0!important;background:none!important;color:var(--msk-ink);font:inherit;font-size:13px;outline-offset:5px;padding:4px}
.mskw-editor .msku-top-actions{flex-wrap:nowrap;gap:5px;align-items:center}.mskw-editor .msku-top-actions>button,.mskw-editor .msku-theme button,.mskw-editor .msku-language{width:36px;min-width:36px;height:36px;min-height:36px;padding:8px;border-radius:10px;font-size:12px}
.mskw-editor .msku-ribbon-tabs{display:flex;gap:4px;padding:0 12px;overflow-x:auto;scrollbar-width:none;border-radius:0;background:var(--msk-bg)}
.mskw-editor .msku-ribbon-tabs button{flex:none;flex-direction:row;gap:6px;min-height:43px;padding:8px 16px;font-size:12px;white-space:nowrap}
.mskw-editor .msku-ribbon-tabs button:nth-child(2) svg{color:#249ba7}.mskw-editor .msku-ribbon-tabs button:nth-child(3) svg{color:#9061d0}.mskw-editor .msku-ribbon-tabs button:nth-child(4) svg{color:#d28b27}.mskw-editor .msku-ribbon-tabs button:nth-child(5) svg{color:#d24c7a}
.mskw-editor .msku-ribbon-panel{min-height:96px;padding:12px 15px;max-height:none;overflow:visible}
.mskw-home-tools,.mskw-export-tools,.mskw-editor .mskp-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.mskw-editor .mskw-tool,.mskw-dialog .mskw-tool{display:inline-flex;flex:0 0 auto;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:65px;min-width:68px;padding:5px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--msk-ink);box-shadow:none;font:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.mskw-editor .mskw-tool:hover,.mskw-editor .mskw-tool:focus-visible{background:var(--msk-soft);border-color:var(--msk-line)}
.mskw-tool small{display:block;font:inherit;font-size:11px;line-height:1.4;white-space:nowrap}
.mskw-glyph{display:grid;place-items:center;flex:none;width:35px;height:35px;color:#fff;border-radius:11px;background:linear-gradient(140deg,#6894fa,#2452c9);box-shadow:0 4px 8px #2452c922}
.mskw-glyph svg{width:20px;height:20px;color:inherit}.mskw-tool[data-tone=teal] .mskw-glyph{background:linear-gradient(140deg,#39c7b1,#087b92)}.mskw-tool[data-tone=violet] .mskw-glyph{background:linear-gradient(140deg,#ae83f7,#6741cd)}.mskw-tool[data-tone=orange] .mskw-glyph{background:linear-gradient(140deg,#ffc477,#d68428)}.mskw-tool[data-tone=rose] .mskw-glyph{background:linear-gradient(140deg,#ff8eab,#d54473)}
.mskw-editor .mskw-tool[aria-pressed=true]{background:linear-gradient(135deg,#eee9ff,#e4f4ff);border-color:#b6a4f0;color:#5432a7;box-shadow:inset 0 0 0 1px #fff8}.mskw-editor [data-auto-arrange][aria-pressed=true] .mskw-glyph{position:relative}.mskw-editor [data-auto-arrange][aria-pressed=true] .mskw-glyph:after{content:'✓';position:absolute;right:-4px;bottom:-2px;width:15px;height:15px;border:2px solid #fff;border-radius:50%;font:700 9px/11px Arial;background:#16a578;color:#fff}
:root[data-theme=dark] .mskw-editor .mskw-tool[aria-pressed=true]{background:#35305a;border-color:#7963b5;color:#e7dcff}
.mskw-editor .mskp-inspector,.mskw-editor .mskp-layoutbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.mskw-editor .mskp-inspector>strong{width:100%;font-size:11px;color:var(--msk-muted);font-weight:400}.mskw-editor .mskp-inspector label,.mskw-editor .mskp-layoutbar label{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:11px}.mskw-editor .mskp-inspector label:has(input[type=checkbox]){flex-direction:row;align-items:center}.mskw-editor .msku-ribbon-panel input:not([type=checkbox]),.mskw-editor .msku-ribbon-panel select{min-height:34px;height:34px;font-size:12px;padding:4px 8px}.mskw-editor .mskp-inspector input[type=number],.mskw-editor .mskp-layoutbar input{width:72px}.mskw-editor .mskp-inspector>select{align-self:center}.mskw-editor .msk-global-batch-bar{margin-top:8px;padding-top:8px}.mskw-editor .msk-batch-buttons{gap:8px}.mskw-editor .msk-batch-buttons button{min-width:76px}
.mskw-editor .msk-layout{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start;justify-content:center;gap:18px;width:100%;max-width:1260px;margin:0 auto!important;direction:rtl}html[dir=ltr] .mskw-editor .msk-layout,.mskw-editor[dir=ltr] .msk-layout{direction:ltr}
.mskw-editor .msku-templates{margin:0;min-width:0;background:var(--msk-surface);border:1px solid var(--msk-line);border-radius:16px;overflow:hidden}
.mskw-editor .msku-templates>summary{display:flex;align-items:center;gap:8px;padding:12px 14px;font-size:13px;font-weight:700;cursor:pointer;list-style:none;color:var(--msk-ink)}.mskw-editor .msku-templates>summary svg{width:18px;height:18px;color:var(--msk-blue)}.mskw-editor .msku-templates>summary svg:last-child{margin-inline-start:auto;width:14px}
.mskw-editor .msk-palette{display:grid;grid-template-columns:1fr;gap:6px;padding:0 10px 10px;background:transparent;border:0;border-radius:0;max-height:none}
.mskw-editor .msk-palette-item{display:flex;align-items:center;gap:9px;width:100%;min-height:54px;margin:0;padding:7px 9px;border-radius:10px;border:1px solid var(--msk-line);box-shadow:none}
.mskw-editor .msk-palette-ico{width:40px;height:31px;flex:none}.mskw-editor .msk-palette-ico svg,.mskw-editor .msk-palette-ico img{display:block;width:100%;height:100%;object-fit:contain}.mskw-editor .msk-palette-meta{min-width:0;line-height:1.6}.mskw-editor .msk-palette-name{display:block;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mskw-editor .msk-palette-item small{display:block;font-size:9px;line-height:1.5}.mskw-editor .mskw-new-preset{border-style:dashed;background:var(--msk-soft)}.mskw-new-preset .msk-palette-ico{padding:5px;color:var(--msk-blue)}
.mskw-editor .msk-stage-wrap{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;width:100%;padding:26px;overflow:auto;max-width:100%;margin-inline:auto!important;border-radius:16px;background:radial-gradient(circle at 50% 10%,#dce8fa99,transparent 58%),var(--msk-soft)}
.mskw-editor #mskA4Host{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;width:100%;min-width:0;margin:0 auto!important;zoom:1!important}
.mskw-editor .msk-a4{flex:none;width:var(--mskw-page-width)!important;max-width:none!important;min-width:0!important;height:auto!important;aspect-ratio:210/297;margin:0 auto!important;inset-inline:0;overflow:hidden!important;border-radius:2px!important;box-shadow:0 8px 25px #20395525}
.mskw-editor .msk-a4-mark{font-size:9px;padding:2px 5px;opacity:.65}.mskw-editor .msk-card{min-width:0;min-height:0}.mskw-editor .msk-holder-empty{padding:3px!important;gap:3px!important}.mskw-editor .msk-card-title{font-size:10px!important;line-height:1.3;margin:0}.mskw-editor .msk-size{font-size:8px!important;line-height:1.2}
.mskw-editor .msk-holder-actions{display:flex;justify-content:center;gap:4px}.mskw-editor .msk-camera-btn,.mskw-editor .msk-upload-btn{display:flex!important;flex-direction:column;align-items:center;gap:2px;padding:3px!important;min-height:34px!important;color:#172a4d!important;background:#eff5ff!important;border:1px solid #cbdaf0!important;border-radius:7px!important;box-shadow:none!important}.mskw-editor .msk-camera-btn small,.mskw-editor .msk-upload-btn small{font-size:9px!important;color:#172a4d!important;line-height:1.2}.mskw-editor .msk-camera-btn .msku-tool-glyph,.mskw-editor .msk-upload-btn .msku-tool-glyph{width:23px;height:23px;border-radius:7px}.mskw-editor .msk-camera-btn svg,.mskw-editor .msk-upload-btn svg{width:15px;height:15px}
.mskw-editor .msk-card-tools{opacity:0;pointer-events:none;min-height:0!important;padding:2px!important;gap:1px!important;bottom:2px;left:2px;right:2px}.mskw-editor .msk-card.is-selected .msk-card-tools,.mskw-editor .msk-card:hover .msk-card-tools{opacity:1;pointer-events:auto}.mskw-editor .msk-card-tool-btn{min-height:30px!important;gap:1px!important}.mskw-editor .msk-card-tool-btn .msku-tool-glyph{width:21px;height:21px;border-radius:6px}.mskw-editor .msk-card-tool-btn .msku-tool-glyph svg{width:14px;height:14px}.mskw-editor .msk-card-tool-btn small{font-size:7px}.mskw-editor .mskp-resize{width:19px;height:19px;min-height:19px!important;font-size:10px;z-index:27}.mskw-editor .msk-card-eye-btn{width:19px!important;height:19px!important;min-height:19px!important;padding:3px!important}.mskw-editor .msk-card-eye-btn svg{width:12px;height:12px}
.mskw-editor .mskp-pages{justify-content:center;gap:8px;margin:12px 0 8px}.mskw-editor .mskp-pages button{min-width:0;padding:3px 6px;font-size:10px}.mskw-editor .mskp-page-thumb{width:32px;height:45px}.mskw-editor .mskp-size-note{text-align:center;font-size:10px;line-height:1.8;max-width:800px;margin:8px auto;color:var(--msk-muted)}.mskw-editor .mskp-status{min-height:20px;margin:5px 3px 8px;font-size:11px}.mskw-editor .mskp-status:empty{display:none}
.mskw-scale-menu{position:fixed;z-index:11000;width:220px;padding:7px;border:1px solid var(--msk-line);border-radius:15px;background:var(--msk-surface);box-shadow:0 15px 50px #13284930;color:var(--msk-ink);font-family:MSKCairo,Arial,sans-serif}.mskw-scale-menu button{display:flex;width:100%;align-items:center;gap:10px;min-height:44px;border:0;border-radius:9px;background:none;color:inherit;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}.mskw-scale-menu button svg{width:18px;height:18px;color:var(--msk-blue)}.mskw-scale-menu button span{flex:1;text-align:start}.mskw-scale-menu button[aria-checked=true],.mskw-scale-menu button:hover{background:var(--msk-soft)}
.mskw-mobile-dock{display:none}
/* Shared, accessible settings and custom-preset dialogs. */
.mskw-dialog{width:min(670px,calc(100% - 24px));padding:0!important;max-height:92dvh;box-sizing:border-box;font-family:MSKCairo,Arial,sans-serif!important;background:var(--msk-surface)!important;color:var(--msk-ink)!important;border:1px solid var(--msk-line)!important;border-radius:22px!important;box-shadow:0 24px 90px #0a17345c}
.mskw-dialog *{box-sizing:border-box}.mskw-dialog .mskp-edit-head{position:sticky;top:0;z-index:3;padding:12px 18px;margin:0;background:var(--msk-surface);border-bottom:1px solid var(--msk-line)}.mskw-dialog h2{font-size:18px;margin:0}.mskw-body{padding:18px}.mskw-body .mskw-intro{color:var(--msk-muted);font-size:12px;margin:0 0 16px}.mskw-body section{padding:16px;margin-bottom:12px;border:1px solid var(--msk-line);border-radius:15px;background:var(--msk-bg)}.mskw-body h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:14px}.mskw-body h3>svg{width:32px;height:32px;padding:7px;border-radius:10px;background:linear-gradient(140deg,#69b7e8,#496bd3);color:#fff}.mskw-body section:nth-of-type(2) h3>svg{background:linear-gradient(140deg,#4ec6b2,#168a91)}.mskw-body section:nth-of-type(3) h3>svg{background:linear-gradient(140deg,#ae83f7,#6741cd)}
.mskw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.mskw-body label{display:flex;flex-direction:column;gap:5px;font-size:12px}.mskw-body input:not([type=checkbox]):not([type=file]),.mskw-body select{width:100%;min-height:42px;padding:7px 10px;border:1px solid var(--msk-line);border-radius:9px;background:var(--msk-surface);color:var(--msk-ink);font:inherit;font-size:14px}.mskw-body button:not(.mskw-tool){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 14px;background:var(--msk-soft);border:1px solid var(--msk-line);border-radius:10px;color:var(--msk-blue);font:inherit;font-size:12px;cursor:pointer}.mskw-body button>svg{width:19px;height:19px}.mskw-body .mskw-switch{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px;margin-top:12px}.mskw-switch input{width:18px;height:18px;accent-color:#4274ca;flex:none}.mskw-switch small{display:block;color:var(--msk-muted);font-size:10px;line-height:1.6}.mskw-body .mskp-settings-path{display:block;padding:8px;margin-top:8px;color:var(--msk-blue);font-size:11px;overflow-wrap:anywhere}.mskw-body .mskp-settings-note{font-size:11px;line-height:1.8;margin:7px 0;color:var(--msk-muted)}.mskw-body footer{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:14px}.mskw-body [data-feedback]{font-size:11px;color:var(--msk-blue)}.mskw-body button[data-done],.mskw-body button[data-create]{background:linear-gradient(120deg,#447bdc,#3b4fb7);border-color:#4567ca;color:#fff}.mskw-preset-dialog form>label{margin-bottom:14px}.mskw-preset-dialog .mskw-fields{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.mskw-icon-choices{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.mskw-icon-choices button{display:flex!important;flex-direction:column;padding:7px 4px!important;gap:5px!important;color:var(--msk-ink)!important;background:var(--msk-bg)!important;position:relative}.mskw-icon-choices button>svg{width:42px;height:30px}.mskw-icon-choices button>small{font-size:10px}.mskw-icon-choices button[aria-pressed=true]{border-color:#526ddb!important;box-shadow:0 0 0 2px #526ddb22}.mskw-icon-choices button.is-suggested:after{content:'âœ¦';position:absolute;inset:0 2px auto auto;color:#8b5bcd;font-size:13px}.mskw-icon-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 8px}.mskw-icon-upload>label{flex-direction:row;align-items:center;border:1px dashed var(--msk-line);border-radius:10px;padding:10px;cursor:pointer}.mskw-icon-upload>label>svg{width:18px;height:18px}.mskw-icon-upload input{width:160px;font-size:10px}.mskw-icon-upload output svg,.mskw-icon-upload output img{width:48px;height:34px;object-fit:contain}.mskw-camera video{display:block;width:100%;max-height:60dvh;aspect-ratio:4/3;object-fit:contain;background:#102039;border-radius:15px}.mskw-camera-actions{display:flex;justify-content:center;gap:18px;margin-top:14px}
/* Correction canvas stays visible beside the result; controls have short captions. */
.mskw-editor .mskp-edit{width:min(1000px,calc(100% - 24px));padding:16px;border-radius:20px}.mskw-editor .mskp-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mskw-editor .mskp-edit>p{font-size:11px;margin:5px 0 8px;color:var(--msk-muted)}.mskw-editor .mskp-edit-grid{gap:18px;padding:12px;border:1px solid var(--msk-line);border-radius:14px;background:var(--msk-bg)}.mskw-editor .mskp-edit-grid>div{min-width:0}.mskw-editor .mskp-edit-grid h3{font-size:12px;margin:0 0 8px;text-align:center;color:var(--msk-blue)}.mskw-editor .mskp-corner-stage{margin:18px;max-width:100%;max-height:38dvh}.mskw-editor .mskp-result{display:grid;place-items:center;min-height:100px;height:calc(100% - 30px);max-height:42dvh}.mskw-editor .mskp-result canvas{max-height:38dvh;max-width:100%;width:auto;height:auto;box-shadow:0 4px 14px #17324a1a}.mskw-editor .mskp-corner{width:30px;height:30px;min-height:30px!important;padding:0;font-size:10px;background:#3673d6;color:#fff;border:2px solid #fff;box-shadow:0 2px 6px #17324a4a}.mskw-editor .mskp-edit-actions,.mskw-editor .mskp-presets{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.mskw-editor .mskp-edit-actions button,.mskw-editor .mskp-presets button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:85px;min-height:60px;padding:7px;border:1px solid var(--msk-line);border-radius:11px;background:var(--msk-bg);color:var(--msk-ink)}.mskw-editor .mskp-edit-actions button>svg,.mskw-editor .mskp-presets button>svg{width:29px;height:29px;padding:6px;border-radius:9px;color:#fff;background:linear-gradient(145deg,#778be9,#445abc)}.mskw-editor .mskp-edit-actions button:nth-child(2)>svg,.mskw-editor .mskp-presets button:nth-child(2)>svg{background:linear-gradient(145deg,#52c8b8,#137c92)}.mskw-editor .mskp-edit-actions button:nth-child(3)>svg,.mskw-editor .mskp-presets button:nth-child(3)>svg{background:linear-gradient(145deg,#eeb267,#cc782a)}.mskw-editor .mskp-presets button:nth-child(4)>svg{background:linear-gradient(145deg,#c39aea,#8650c8)}.mskw-editor .mskp-presets button:nth-child(5)>svg{background:linear-gradient(145deg,#a8b4c4,#536378)}.mskw-editor .mskp-edit-actions button>small,.mskw-editor .mskp-presets button>small{font:inherit;font-size:11px;white-space:nowrap}.mskw-editor .mskp-edit-actions button[data-apply]{margin-inline-start:auto;border-color:#95d1c7;background:#e4f6f1;color:#147362}.mskw-editor .mskp-edit-actions button[data-apply]>svg{background:linear-gradient(145deg,#46c7a8,#11877d)}.mskw-editor .mskp-presets button[aria-pressed=true]{border-color:#7860d7;background:var(--msk-soft);box-shadow:inset 0 0 0 1px #7860d7}.mskw-editor .mskp-adjustments{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--msk-line);border-radius:12px}.mskw-editor .mskp-adjustments label{font-size:10px}.mskw-editor .mskp-adjustments input[type=range]{min-height:24px;padding:0;accent-color:#5674d2}
@media(max-width:760px){
 .mskw-editor .demo-main{padding:8px 8px 96px}.mskw-editor .msku-topbar{padding:9px;gap:7px;flex-wrap:wrap}.mskw-editor .msku-topbar .msku-brand strong{font-size:15px}.mskw-editor .msku-topbar .msku-mark{width:29px;height:33px;border-radius:9px}.mskw-editor .msku-top-actions{margin-inline-start:auto;gap:3px}.mskw-editor .msku-top-actions>button,.mskw-editor .msku-theme button,.mskw-editor .msku-language{width:30px;min-width:30px;height:33px;min-height:33px;padding:7px}.mskw-project-name{order:3;max-width:none;flex-basis:100%;padding:3px 8px}.mskw-project-name input{font-size:12px}.mskw-editor .msku-ribbon-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;gap:0}.mskw-editor .msku-ribbon-tabs button{flex-direction:column;gap:2px;min-height:50px;padding:5px 1px;font-size:10px;border-bottom-width:2px}.mskw-editor .msku-ribbon-tabs svg{width:17px;height:17px}.mskw-editor .msku-ribbon-panel{padding:8px;max-height:35dvh;overflow:auto;min-height:0}.mskw-home-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.mskw-editor .mskw-tool{min-width:0;min-height:59px;padding:4px 3px;gap:4px;border-radius:9px;flex:0 0 auto}.mskw-tool small{font-size:9px;line-height:1.4}.mskw-glyph{width:30px;height:30px;border-radius:9px}.mskw-glyph svg{width:18px;height:18px}.mskw-editor .mskp-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mskw-editor .mskp-inspector,.mskw-editor .mskp-layoutbar{gap:7px}.mskw-editor .mskp-inspector>.mskw-tool,.mskw-editor .mskp-layoutbar>.mskw-tool{min-width:61px}.mskw-editor .mskp-inspector label,.mskw-editor .mskp-layoutbar label{font-size:10px}.mskw-export-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.mskw-editor .msk-batch-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.mskw-editor .msk-batch-buttons button{min-width:0}
 .mskw-editor .msk-layout{display:flex;flex-direction:column;gap:10px}.mskw-editor .msku-templates{width:100%;border-radius:12px}.mskw-editor .msku-templates>summary{padding:9px 12px;font-size:12px}.mskw-editor .msk-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 7px 7px}.mskw-editor .msk-palette-item{flex-direction:column;justify-content:center;gap:4px;padding:6px 2px;min-height:63px;text-align:center}.mskw-editor .msk-palette-ico{width:34px;height:25px}.mskw-editor .msk-palette-meta{width:100%;line-height:1.3}.mskw-editor .msk-palette-name{font-size:9px;line-height:1.4}.mskw-editor .msk-palette-item small{display:none}.mskw-editor .msk-stage-wrap{width:100%;padding:12px 15px;border-radius:12px}.mskw-editor .msk-a4{width:var(--mskw-page-width)!important;box-shadow:0 5px 16px #20395522}.mskw-editor .msk-card-title{font-size:7px!important}.mskw-editor .msk-size{font-size:6px!important}.mskw-editor .msk-holder-empty{gap:1px!important;padding:2px!important}.mskw-editor .msk-holder-actions{gap:3px!important}.mskw-editor .msk-camera-btn,.mskw-editor .msk-upload-btn{min-height:26px!important;padding:2px 4px!important;gap:0!important}.mskw-editor .msk-camera-btn small,.mskw-editor .msk-upload-btn small{display:none}.mskw-editor .msk-camera-btn .msku-tool-glyph,.mskw-editor .msk-upload-btn .msku-tool-glyph{width:19px;height:19px;border-radius:5px}.mskw-editor .msk-camera-btn svg,.mskw-editor .msk-upload-btn svg{width:13px;height:13px}.mskw-editor .msk-card-tools{display:none!important}.mskw-editor .mskp-resize{width:17px;height:17px;min-height:17px!important}.mskw-editor .mskp-size-note{font-size:9px;padding:0 6px}
 .mskw-mobile-dock{position:fixed;inset:auto 8px 8px;z-index:400;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px 5px calc(5px + env(safe-area-inset-bottom));border:1px solid var(--msk-line);border-radius:18px;background:var(--msk-surface);box-shadow:0 -5px 26px #15365722}.mskw-editor .mskw-mobile-dock .mskw-tool{min-height:53px}.mskw-mobile-dock .mskw-glyph{width:26px;height:26px;border-radius:8px}.mskw-mobile-dock .mskw-glyph svg{width:17px;height:17px}.mskw-mobile-dock small{font-size:9px}.mskw-editor:has(.msku-auth:not([hidden])) .mskw-mobile-dock{display:none}.mskw-editor .mskp-edit{padding:12px}.mskw-editor .mskp-edit-grid{grid-template-columns:1fr 1fr;gap:5px;padding:6px}.mskw-editor .mskp-edit-grid h3{font-size:10px}.mskw-editor .mskp-corner-stage{margin:16px 12px}.mskw-editor .mskp-corner{width:26px;height:26px;min-height:26px!important;font-size:9px}.mskw-editor .mskp-edit-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.mskw-editor .mskp-edit-actions button,.mskw-editor .mskp-presets button{min-width:0;min-height:54px;padding:5px 2px;gap:4px}.mskw-editor .mskp-edit-actions button>small,.mskw-editor .mskp-presets button>small{font-size:8px}.mskw-editor .mskp-edit-actions button>svg,.mskw-editor .mskp-presets button>svg{width:25px;height:25px;padding:5px}.mskw-editor .mskp-edit-actions button[data-apply]{margin:0}.mskw-editor .mskp-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.mskw-editor .mskp-adjustments{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:8px}.mskw-body{padding:12px}.mskw-body section{padding:12px}.mskw-dialog .mskp-edit-head{padding:9px 12px}.mskw-dialog h2{font-size:15px}.mskw-fields{gap:8px}.mskw-body input:not([type=checkbox]):not([type=file]),.mskw-body select{font-size:13px}.mskw-body footer{flex-wrap:wrap}.mskw-icon-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mskw-icon-upload input{width:140px}.mskw-preset-dialog .mskw-fields{gap:6px}.mskw-preset-dialog .mskw-fields label{font-size:10px}
}
@media print{.mskw-mobile-dock,.mskw-scale-menu,.mskw-dialog{display:none!important}.mskw-editor .msk-a4{width:210mm!important;height:297mm!important;aspect-ratio:auto!important;overflow:hidden!important}.mskw-editor .msk-stage-wrap,.mskw-editor #mskA4Host{padding:0!important;gap:0!important}.mskw-editor .msk-card-tools{display:none!important}}

.mskw-editor .mskp-toolbar[hidden]{display:none!important}.mskw-editor>footer{display:none!important}.mskw-editor{background:var(--msk-bg)!important;background-image:none!important}.mskw-editor:before,.mskw-editor:after{display:none!important}
.mskw-editor .mskp-edit-actions button[data-apply]{background:#e4f6f1!important;color:#147362!important;grid-column:auto!important}
@media(max-width:760px){.mskw-editor .mskp-edit-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}.mskw-editor .mskp-edit-actions button{grid-column:auto!important;min-width:0!important;margin:0!important}}
@media(max-width:760px){.mskw-home-tools>.mskw-tool:nth-child(3),.mskw-home-tools>.mskw-tool:nth-child(5),.mskw-home-tools>.mskw-tool:nth-child(6),.mskw-home-tools>.mskw-tool:nth-child(7),.mskw-home-tools>.mskw-tool:nth-child(8){display:none!important}}

/* Revision27: contained mobile controls and persistent correction actions. */
@media(max-width:760px){
 .mskw-editor .msku-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.mskw-editor .msku-topbar>.mskw-project-name{grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin:0}.mskw-editor .msku-top-actions{width:auto!important;max-width:100%;flex-wrap:nowrap!important;gap:3px;margin-inline-start:auto;direction:rtl}.mskw-editor .msku-top-actions>button:not([data-header-info]){display:none}.mskw-editor .msku-top-actions>.msku-theme,.mskw-editor .msku-top-actions>.msku-language{display:flex!important}.mskw-editor .msku-top-actions>.msku-theme{order:2}.mskw-editor .msku-top-actions>.msku-language{order:3}.mskw-editor .msku-top-actions>[data-header-info]{order:1}.mskw-editor .msku-topbar>.msku-brand{min-width:0}.mskw-editor .msku-topbar .msku-brand strong{font-size:16px}.mskw-editor .msku-topbar .msku-mark{width:34px;height:38px}
 .mskw-editor .mskp-inspector,.mskw-editor .mskp-layoutbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}.mskw-editor .mskp-inspector>strong{grid-column:1/-1}.mskw-editor .mskp-inspector>* , .mskw-editor .mskp-layoutbar>*{min-width:0;max-width:100%;box-sizing:border-box}.mskw-editor .mskp-inspector label,.mskw-editor .mskp-layoutbar label{min-width:0;width:100%;align-items:stretch}.mskw-editor .mskp-inspector input,.mskw-editor .mskp-inspector select,.mskw-editor .mskp-layoutbar input,.mskw-editor .mskp-layoutbar select{width:100%!important;max-width:100%;min-width:0;box-sizing:border-box}.mskw-editor .msku-ribbon-panel{min-width:0;max-width:100%;overflow-x:hidden}
 .mskp-dialog .mskp-edit-actions{position:sticky;bottom:-14px;z-index:6;background:var(--msk-surface,#fff);border-top:1px solid var(--msk-line,#cbd5e1);padding:10px 0;box-shadow:0 -8px 18px #13284912}.mskp-dialog .mskp-edit-actions button{min-width:0}.mskp-dialog p:has(kbd){display:none}.mskp-dialog{max-width:calc(100vw - 16px);box-sizing:border-box}.mskp-dialog input,.mskp-dialog select{max-width:100%;box-sizing:border-box}
}

@media(max-width:760px){.mskp-edit>.mskp-shift-note{display:none}.mskp-edit>.mskp-completion{position:sticky;bottom:-14px;display:flex;justify-content:space-between;gap:10px;padding:10px;background:var(--msk-surface,#fff);z-index:10}.mskp-edit>.mskp-completion>button{flex:1;margin:0!important}}

