@media (min-width:901px){.editor-actions .new-template-button{display:none}.editor-actions button,.desktop-panel-tabs button{white-space:nowrap;flex:none}.editor-body{grid-template-columns:310px minmax(0,1fr)!important}.sidepanel{grid-area:1/1;padding-top:72px}.canvas-area{grid-area:1/2}.desktop-panel-tabs{z-index:24;direction:rtl;gap:4px;display:flex;position:fixed;top:12px;left:445px}.desktop-panel-tabs button{border:1px solid var(--line);color:#5c6964;cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:5px;height:40px;padding:0 10px;display:flex}.desktop-panel-tabs button span{font-size:14px}.desktop-panel-tabs button small{font-size:10px}.desktop-panel-tabs button.active{background:var(--soft);color:var(--green);border-color:#a7c8bb;font-weight:700}.editor-actions .top-style{background:var(--soft);color:var(--green);border-color:#a7c8bb}}@media (min-width:1351px){.desktop-panel-tabs{left:540px}}@media (max-width:1100px) and (min-width:901px){.editor-body{grid-template-columns:275px minmax(0,1fr)!important}.desktop-panel-tabs{left:330px}.desktop-panel-tabs button small{display:none}.desktop-panel-tabs button{justify-content:center;width:38px;padding:0}}@media (max-width:1350px) and (min-width:901px){.editor-top{gap:8px;padding-inline:8px}.editor-actions{flex:none;min-width:0}.editor-actions .preview-button{display:none}.editor-actions .top-style{white-space:nowrap;width:36px;padding:0;font-size:0;overflow:hidden}.editor-actions .top-style:before{content:"◐";font-size:14px}.editor-actions .primary{white-space:nowrap;width:72px;padding:0;font-size:0;overflow:hidden}.editor-actions .primary:before{content:"طباعة";font-size:12px}}@media (max-width:900px){.desktop-panel-tabs{display:none}}
.empty-workspace{text-align:center;background:linear-gradient(#f7fcf9,#fff);border:1px dashed #a9c5ba;border-radius:18px;max-width:430px;margin:58px auto 0;padding:24px}.empty-workspace .empty-spark{background:var(--soft);width:46px;height:46px;color:var(--green);border-radius:14px;place-items:center;margin:0 auto 8px;font-size:22px;display:grid}.empty-workspace h3{margin:0;font-size:18px;display:block}.empty-workspace p{color:var(--muted);margin:5px 0 17px;font-size:10px}.empty-workspace ol{text-align:right;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none;display:flex}.empty-workspace li{background:#fff;border:1px solid #e1e9e5;border-radius:10px;align-items:center;gap:9px;padding:8px;display:flex}.empty-workspace li>b{background:var(--soft);width:25px;height:25px;color:var(--green);border-radius:8px;place-items:center;display:grid}.empty-workspace li span{flex-direction:column;display:flex}.empty-workspace li strong{font-size:10px}.empty-workspace li small{color:var(--muted);font-size:8px}.empty-workspace>div{justify-content:center;gap:7px;margin-top:16px;display:flex}.empty-workspace>div button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;font-size:9px}.empty-workspace>div .primary{background:var(--green);color:#fff;border-color:var(--green)}@media (max-width:900px){.empty-workspace{max-width:290px;margin:24px auto 0;padding:14px}.empty-workspace h3{font-size:13px}.empty-workspace p{margin-bottom:10px;font-size:8px}.empty-workspace li{padding:5px}.empty-workspace li>b{width:20px;height:20px}.empty-workspace>div{flex-direction:column}.empty-workspace>div button{padding:6px}}
.wizard-bar{border-bottom:1px solid var(--line);z-index:18;background:#fff;justify-content:center;align-items:center;gap:0;height:72px;padding:8px 20px;display:flex;position:relative}.wizard-bar button{text-align:right;color:#7a8681;cursor:pointer;background:0 0;border:0;align-items:center;gap:9px;width:min(210px,22vw);padding:7px 15px;display:flex;position:relative}.wizard-bar button:not(:last-child):after{content:"";border-top:1px dashed #bdc9c4;width:20px;position:absolute;left:-6px}.wizard-bar button>b{background:#fff;border:1px solid #cbd5d1;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font-size:11px;display:grid}.wizard-bar button span{flex-direction:column;display:flex}.wizard-bar button strong{font-size:11px}.wizard-bar button small{font-size:9px;line-height:1.45}.wizard-bar button.active{color:var(--green)}.wizard-bar button.active>b{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 0 0 5px var(--soft)}.wizard-bar button.done>b{background:var(--soft);color:var(--green);border-color:#9bc5b5}.editor-body{height:calc(100vh - 136px)!important}.worksheet-frame{margin:auto;transition:width .2s,min-height .2s}.canvas-bar button:disabled{opacity:.35;cursor:not-allowed}.wizard-actions{z-index:35;border:1px solid var(--line);background:#fff;border-radius:14px;align-items:center;gap:12px;padding:7px;display:flex;position:fixed;bottom:14px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #19382f26}.wizard-actions button{border:1px solid var(--line);background:#fff;border-radius:9px;min-height:38px;padding:8px 15px;font-size:11px}.wizard-actions button:disabled{opacity:.4}.wizard-actions .primary{background:var(--green);color:#fff;border-color:var(--green)}.wizard-actions span{color:var(--muted);font-size:10px}@media (max-width:900px){.wizard-bar{justify-content:stretch;height:64px;padding:5px 4px}.wizard-bar button{justify-content:center;width:25%;min-height:44px;padding:6px 2px}.wizard-bar button>b{width:28px;height:28px;font-size:10px}.wizard-bar button span small{display:none}.wizard-bar button strong{font-size:9px;line-height:1.25}.wizard-bar button:not(:last-child):after{display:none}.editor-body{height:calc(100vh - 180px)!important}.wizard-actions{justify-content:space-between;width:calc(100% - 20px);bottom:64px}.wizard-actions button{min-height:42px;font-size:11px}.wizard-actions span{font-size:10px}.worksheet-frame{margin:auto}.canvas-area{padding-bottom:48vh!important}}
.canvas-area{direction:ltr;flex-direction:column;display:flex}.canvas-area.canvas-zoom-contained{overflow-x:hidden}.canvas-area.canvas-zoom-overflow{overflow-x:auto}.canvas-bar{flex:none;width:100%;max-width:none;padding-inline:4px}.worksheet-stage{box-sizing:border-box;direction:rtl;flex:1;justify-content:safe center;align-items:safe center;width:100%;min-width:max-content;min-height:max-content;padding:10px 8px 74px;display:flex}.worksheet-frame{flex:none;transition:width .2s,min-height .2s;position:relative}.worksheet-scale{position:absolute;top:0;left:0}.worksheet{font-size:15px;line-height:1.75;width:794px!important;min-height:1123px!important;padding:22px 48px 34px!important}.ws-logo{width:44px;height:44px;font-size:16px}.ws-ministry-logo{width:var(--ministry-logo-width,96px);height:calc(var(--ministry-logo-width,96px) * .875)}.ws-head b{font-size:23px}.ws-head h2{margin:4px 0 0;font-size:18px}.ws-head .ws-date{min-width:0;margin-bottom:2px;padding-bottom:6px;font-size:15px}.ws-student-name{width:min(72%,520px);font-size:15px}.ws-meta{gap:0;padding:13px 0}.ws-meta span{min-height:40px;padding:8px 10px;font-size:14px}.ws-student{padding:7px 0 12px;font-size:13px}.ws-blocks{padding-top:12px}.ws-block{margin-bottom:8px;padding:10px}.ws-block h3{margin:4px 0 10px;font-size:15.5px}.ws-block h3>b{width:25px;height:25px;font-size:13px}.ws-options{gap:10px;padding-right:34px}.ws-options>span{padding:7px;font-size:14px}.ws-options>span>i{flex-basis:20px;width:20px;height:20px}.ws-match{grid-template-columns:65px 1fr 38px;gap:7px 12px;padding:0 34px;font-size:14px}.ws-match i{font-size:26px}.true-row{padding-right:34px;font-size:14px}.true-row i{padding:5px 10px}.answer-lines{background:repeating-linear-gradient(transparent, transparent calc(var(--line-spacing,22px) - 1px), #ccd4d0 var(--line-spacing,22px));height:100px;margin-right:34px}.math-boxes{padding-right:34px}.math-problem{padding:10px 16px}.instruction{padding:10px;font-size:14px}.worksheet footer{font-size:11px;bottom:28px;left:48px;right:48px}.block-toolbar{top:-18px}.block-toolbar button{min-width:24px;min-height:24px;font-size:12px}.empty-workspace{max-width:500px;margin-top:115px;padding:30px}.empty-workspace h3{font-size:22px}.empty-workspace p,.empty-workspace li strong{font-size:13px}.empty-workspace li small{font-size:10px}.empty-workspace>div button{padding:10px 15px;font-size:12px}.wizard-actions{justify-content:space-between;width:286px;left:calc(50% + 205px);right:auto;transform:translate(-50%)}.wizard-actions span{white-space:nowrap}@media (max-width:1100px) and (min-width:901px){.worksheet-stage{padding-inline:28px}.wizard-actions{width:250px;left:calc(50% + 137px)}}@media (max-width:900px){.worksheet{width:794px!important;min-height:1123px!important;padding:44px 48px 34px!important}.worksheet-stage{justify-content:flex-start;align-items:flex-start;padding:18px 14px 48vh}.wizard-actions{width:auto;left:10px;right:10px;transform:none}.empty-workspace{margin-top:70px}.ws-head,.ws-meta,.ws-student,.ws-blocks{transform:none!important}}
.element-properties{scrollbar-gutter:stable;background:#fff;min-width:0;display:none;overflow:hidden auto}.element-properties-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:18px;display:flex}.element-properties-head b,.element-properties-head small{display:block}.element-properties-head b{font-size:15px}.element-properties-head small{color:var(--muted);margin-top:3px;font-size:9px}.element-properties-head button{border:1px solid var(--green);background:var(--soft);color:var(--green);font:inherit;cursor:pointer;border-radius:9px;flex:none;padding:8px 12px;font-size:11px;font-weight:700}.mobile-properties-done,.properties-toggle-fab,.mobile-property-tabs{display:none}.element-properties .properties{border:0;padding-top:12px;display:block}.element-properties .props-head{display:none}.element-action-panel{background:#f8fbf9;border:1px solid #d8e5df;border-radius:12px;margin-bottom:14px;padding:10px}.element-quick-controls{background:#f2faf7;border:1px solid #b9dbd0;border-radius:12px;gap:8px;margin-bottom:12px;padding:10px;display:grid}.element-quick-controls>b{color:#075f51;font-size:12px}.element-quick-size,.element-quick-align{align-items:center;gap:6px;display:flex}.element-quick-size span{text-align:center;min-width:46px;font-size:12px;font-weight:700}.element-quick-controls button{color:#174c3e;min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #c1d9ce;border-radius:8px;padding:5px 9px;font-size:12px}.element-quick-controls button:disabled{opacity:.45;cursor:not-allowed}.element-quick-align button{flex:1;min-width:0}.element-quick-align button[aria-pressed=true]{color:#fff;background:#087d67;border-color:#087d67}.element-box-width{color:#31594d;grid-template-columns:1fr auto;gap:4px;font-size:12px;display:grid}.element-box-width input{accent-color:#087d67;grid-column:1/-1;width:100%}.element-box-position-label{color:#31594d;font-size:12px}.element-placement-hint{color:#667e75;font-size:11px;line-height:1.5}@media (max-width:900px){.element-quick-controls{display:none}}.element-action-panel>b{margin-bottom:8px;font-size:12px;display:block}.element-action-panel>div{grid-template-columns:1fr 1fr;gap:6px;display:grid}.element-action-panel button{color:#174c3e;min-width:0;min-height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cadbd3;border-radius:9px;font-size:10px}.element-action-panel button:disabled{opacity:.38;cursor:not-allowed}.element-action-panel button.danger{color:#a63f37;border-color:#efcfcc}@media (min-width:901px){.properties-collapsed .element-properties{display:none}.properties-toggle-fab{z-index:32;color:#fff;min-height:46px;font:inherit;cursor:pointer;background:#087d67;border:1px solid #96c6b5;border-radius:999px;align-items:center;gap:8px;padding:0 15px;font-size:12px;font-weight:800;display:inline-flex;position:fixed;top:218px;left:18px;box-shadow:0 10px 28px #123c3238}.properties-toggle-fab span{font-size:16px}.editor-body.has-properties{direction:ltr;grid-template-areas:"properties canvas activities";grid-template-columns:330px minmax(390px,1fr) 140px!important}.editor-body.has-properties .sidepanel{direction:rtl;grid-area:activities}.editor-body.has-properties .canvas-area{direction:rtl;grid-area:canvas}.element-properties{border-right:1px solid var(--line);direction:rtl;grid-area:properties;display:block}.element-properties-head{padding:16px 20px 15px 18px}.element-properties-head b{font-size:15px}.element-properties-head small,.element-properties .property-group label,.element-properties .property-group small{font-size:12px;line-height:1.65}.element-properties-head button{padding:8px 10px;font-size:11px}.element-properties .properties{padding:14px 20px 24px 18px}.element-properties .property-group{overflow-wrap:anywhere;min-width:0;margin-left:18px;margin-right:20px;padding-block:15px}.element-properties .property-group>*{min-width:0;max-width:100%}.element-properties .property-group p{font-size:11px;line-height:1.8}}@media (max-width:1100px) and (min-width:901px){.editor-body.has-properties{grid-template-columns:300px minmax(330px,1fr) 200px!important}}@media (max-width:900px){.desktop-properties-hide{display:none}.mobile-properties-done{place-items:center;width:44px;height:44px;padding:0;display:grid}.mobile-properties-done span{border-bottom:2.5px solid;border-right:2.5px solid;border-radius:1px;width:12px;height:12px;transform:translateY(-3px)rotate(45deg)}.editing-element .sidepanel,.editing-element .wizard-actions{display:none}.editing-element .canvas-area{height:100%;display:block;padding-bottom:calc(116px + env(safe-area-inset-bottom))!important}.editing-element .editor-body{height:calc(100vh - 114px)!important}.editing-element .element-properties{z-index:34;top:auto;right:10px;bottom:calc(114px + env(safe-area-inset-bottom));border:1px solid #c9dbd4;border-radius:20px;padding-bottom:8px;display:block;position:fixed;left:10px;box-shadow:0 -10px 35px #102b2233;height:auto!important;max-height:min(36dvh,350px)!important}.editing-element .element-properties-head{z-index:2;background:#fff;min-height:46px;padding:4px 10px;position:sticky;top:0;box-shadow:0 5px 18px #17332a0b}.editing-element .element-properties-head small{display:none}.editing-element .element-properties-head b{font-size:14px}.editing-element .mobile-properties-done{border-radius:10px;width:36px;height:36px}.editing-element .mobile-properties-done span{width:10px;height:10px}.editing-element .element-properties .properties{max-width:560px;margin:auto}.editing-element .mobile-tabs button.active{color:#aebbb6}.element-action-panel{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#f8fbf9f2;position:static}.element-action-panel>div{grid-template-columns:repeat(4,1fr)}.element-action-panel button{min-height:44px}.element-action-panel button span{margin-top:2px;font-size:8px;display:block}.mobile-property-tabs{z-index:42;right:0;bottom:calc(58px + env(safe-area-inset-bottom));scroll-snap-type:x proximity;scrollbar-width:none;height:56px;padding:4px max(36px, calc(env(safe-area-inset-right) + 30px)) 4px max(36px, calc(env(safe-area-inset-left) + 30px));direction:rtl;background:#fff;border-top:1px solid #cadad4;gap:2px;display:flex;position:fixed;left:0;overflow:auto hidden;box-shadow:0 -5px 18px #17352d1a}.mobile-property-tabs::-webkit-scrollbar{display:none}.mobile-property-tabs button{color:#52675f;min-width:68px;font:inherit;scroll-snap-align:start;background:0 0;border:0;border-radius:9px;flex:0 0 68px;align-content:center;place-items:center;gap:2px;display:grid}.mobile-property-tabs button span{font-size:18px;line-height:1}.mobile-property-tabs button small{white-space:nowrap;font-size:10px;line-height:1.2}.mobile-property-tabs button.active{color:var(--green);background:#e8f6f1;font-weight:800}.mobile-property-tabs .mobile-scroll-arrow,.mobile-tabs .mobile-scroll-arrow{z-index:45;width:27px;color:var(--green);unicode-bidi:isolate;background:#f2faf7;border-radius:9px;font-weight:800;line-height:1;position:fixed;box-shadow:0 0 8px #173b3524;direction:ltr!important;flex:0 0 27px!important;min-width:27px!important;padding:0!important;font-size:23px!important}.mobile-property-tabs .mobile-scroll-right,.mobile-tabs .mobile-scroll-right{right:max(3px, env(safe-area-inset-right))}.mobile-property-tabs .mobile-scroll-left,.mobile-tabs .mobile-scroll-left{left:max(3px, env(safe-area-inset-left))}.mobile-property-tabs .mobile-scroll-arrow{bottom:calc(63px + env(safe-area-inset-bottom));height:46px}.mobile-tabs .mobile-scroll-arrow{bottom:calc(6px + env(safe-area-inset-bottom));height:46px;color:var(--lime);background:#22332d}.mobile-tabs{box-sizing:border-box;border-inline:40px solid #172620;width:100%!important;padding-inline:4px!important;left:0!important;right:0!important}.mobile-tabs .mobile-scroll-right{right:max(7px, env(safe-area-inset-right))}.mobile-tabs .mobile-scroll-left{left:max(7px, env(safe-area-inset-left))}.mobile-tabs .mobile-scroll-arrow{box-shadow:none;border-radius:6px}.editor-actions>.editor-home-button{white-space:nowrap;align-items:center;gap:4px;padding:0 7px;font-size:11px;display:inline-flex!important}.editor-top .doc-title{flex:1;min-width:0}.editor-top .doc-title input{width:100%;min-width:0}.editing-element .element-properties>.props-head,.editing-element .element-properties>.property-group{display:none}.editing-element .element-properties>.element-main-properties{display:block}.editing-element .element-properties>.element-main-properties>*{display:none!important}.editing-element .element-properties[data-mobile-section=text] .mobile-property-text,.editing-element .element-properties[data-mobile-section=options] .mobile-property-options,.editing-element .element-properties[data-mobile-section=size] .mobile-property-sizing,.editing-element .element-properties[data-mobile-section=align] .mobile-property-alignment,.editing-element .element-properties[data-mobile-section=frame] .block-frame-controls,.editing-element .element-properties[data-mobile-section=manage] .element-action-panel{display:block!important}.editing-element .element-properties[data-mobile-section=options] .early-tool-assistant{box-sizing:border-box;gap:10px;width:100%;display:grid!important}.editing-element .early-difficulty{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.editing-element .early-difficulty button{white-space:nowrap;min-width:0;min-height:40px;padding:5px 3px;font-size:11px}.editing-element .regenerate-early,.editing-element .teacher-visual-upload{box-sizing:border-box;place-items:center;width:100%;min-height:40px;margin:0;font-size:11px;display:grid}.editing-element .element-properties[data-mobile-section=answer]>.property-group:last-of-type{display:block}.mobile-property-options,.mobile-property-sizing,.mobile-property-alignment{width:100%}.editing-element .element-properties .mobile-property-text{width:min(92%,480px);margin-inline:auto;font-size:12px}.editing-element .element-properties .mobile-property-text textarea{min-height:68px;padding:10px 12px;font-size:16px;line-height:1.55}.editing-element .block-frame-controls{gap:12px;padding:12px}.editing-element .block-frame-toggle>span b{font-size:14px}.editing-element .block-frame-toggle>span small{font-size:10px}.editing-element .block-frame-width{font-size:12px}.mobile-property-empty{color:#274b40;background:#f5faf8;border:1px dashed #bad3ca;border-radius:12px;gap:4px;padding:14px;display:grid}.mobile-property-empty small{color:#6b7d77;font-size:10px;line-height:1.6}.mobile-property-options>:first-child,.mobile-property-sizing>:first-child{margin-top:0}}.element-side-by-side-toggle{color:#075f50;width:100%;min-height:38px;font:inherit;cursor:pointer;background:#f5faf8;border:1px solid #b9d8cd;border-radius:9px;font-weight:700}.element-side-by-side-toggle[aria-pressed=true]{color:#fff;background:#07866e;border-color:#07866e}.element-side-by-side-toggle:disabled{cursor:not-allowed;opacity:.48}
.save-status{min-width:86px;transition:color .2s;color:var(--green)!important}.save-failure-alert{top:76px;z-index:9999;color:#85221c;background:#fff3ef;border:2px solid #a12b24;border-radius:10px;padding:12px 16px;font-size:15px;position:fixed;inset-inline:16px}.saved-open-button{border:1px solid var(--green);background:var(--soft);color:var(--green);cursor:pointer;border-radius:8px;padding:8px 16px}.saved-open-button:focus-visible{outline:3px solid var(--green);outline-offset:3px}.property-group input:not([type=checkbox]):not([type=range]){border:1px solid var(--line);width:100%;color:var(--ink);font:inherit;background:#fbfcfb;border-radius:9px;margin-top:5px;padding:9px}.property-group input[type=range]{width:100%;accent-color:var(--green);margin-top:10px}.choice-editor{border:1px solid var(--line);background:#f8fbf9;border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.choice-editor>b,.answer-picker>b,.coloring-picker>b{width:100%;font-size:11px}.editable-choice{align-items:end;gap:6px;display:flex}.editable-choice label{flex:1}.editable-choice button,.choice-editor>button,.answer-picker button,.coloring-picker button{border:1px solid var(--line);color:var(--ink);cursor:pointer;background:#fff;border-radius:8px}.editable-choice button{color:#a83f4a;width:34px;height:34px}.editable-choice button:disabled{opacity:.3;cursor:not-allowed}.choice-editor>button{color:var(--green);border-style:dashed;padding:8px}.answer-picker,.coloring-picker{border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;gap:7px;padding:11px;display:flex}.answer-picker button{flex:1;padding:9px}.coloring-picker button{width:42px;height:42px;font-size:21px}.answer-picker button.active,.coloring-picker button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:700}.math-boxes{flex-wrap:wrap}@media (max-width:900px){.save-status{display:none!important}.element-properties .property-group{padding-inline:4px}}
.print-modal{flex-direction:column;height:min(88dvh,760px);max-height:calc(100dvh - 32px);display:flex}.print-modal>header{flex:none}.print-body{flex:1;min-height:0;overflow:hidden}.print-preview{min-height:0;overflow:hidden}.print-settings{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.download-actions{z-index:4;background:linear-gradient(#fff0,#fff 12px 100%);margin-inline:-4px;padding:11px 4px 4px;position:sticky;bottom:-1px}.mobile-download-label,.mobile-print-roadmap{display:none}.print-tip{background:var(--soft);border:1px solid #b8d7ca;border-radius:11px;flex-direction:column;gap:3px;padding:10px 12px;display:flex}.print-tip b{color:var(--green);font-size:11px}.print-tip span{color:var(--muted);font-size:11px;line-height:1.6}.margin-setting{justify-content:space-between;align-items:center;gap:10px;display:flex}.margin-setting>b{font-size:11px}.margin-setting>div{gap:5px;display:flex}.margin-setting button{border:1px solid var(--line);min-height:38px;color:var(--muted);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:8px 11px;font-size:10px}.margin-setting button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:700}.export-status{color:var(--green);text-align:center;background:#f1f7f4;border-radius:8px;margin:0;padding:9px 11px;font-size:10px}.page-selection-setting{border:1px solid var(--line);border-radius:11px;flex-direction:column;gap:9px;padding:11px 12px;display:flex}.page-selection-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.page-selection-heading>b{font-size:11px}.page-selection-heading>div{gap:5px;display:flex}.page-selection-heading button,.page-number-choices button{border:1px solid var(--line);min-height:38px;color:var(--muted);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:8px 10px;font-size:10px}.page-selection-heading button.active,.page-number-choices button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:700}.page-number-choices{flex-wrap:wrap;gap:6px;display:flex}.page-number-choices button{min-width:32px}.page-selection-setting>small{color:var(--muted);font-size:10px;line-height:1.5}@media (max-width:900px){.mobile-print-roadmap{z-index:5;background:#fffffff4;border:1px solid #cfe0d9;border-radius:10px;grid-template-columns:repeat(3,1fr);gap:4px;margin:-2px -2px 10px;padding:6px;display:grid;position:sticky;top:0;box-shadow:0 4px 12px #173b3512}.mobile-print-roadmap span{color:#718079;text-align:center;border-radius:7px;padding:7px 3px;font-size:9px}.mobile-print-roadmap .done{color:#08745f}.mobile-print-roadmap .active{color:#075f50;background:#e8f5f0;font-weight:800}.margin-setting{flex-direction:column;align-items:stretch}.margin-setting>div{grid-template-columns:1fr 1fr;display:grid}.margin-setting button,.page-selection-heading button,.page-number-choices button{min-height:44px;font-size:11px}.print-settings select{min-height:44px}.page-selection-heading{flex-direction:column;align-items:stretch}.page-selection-heading>div{grid-template-columns:1fr 1fr;display:grid}}@media (max-width:560px){.download-actions{gap:6px;padding-top:7px}.download-actions button,.download-actions button.primary,.download-actions button.secondary{color:#fff;background:#075f50;border-color:#075f50;height:38px;min-height:38px;padding:0 8px;font-size:13px;font-weight:800;line-height:1}.download-actions button:disabled,.download-actions button.primary:disabled,.download-actions button.secondary:disabled{color:#fff;opacity:1;background:#7f9b94;border-color:#7f9b94}.desktop-download-label{display:none}.mobile-download-label{display:inline}}body.print-narrow-margin .print-pages .worksheet{padding:26px 30px 24px!important}body.print-narrow-margin .print-pages .worksheet footer{bottom:20px!important;left:30px!important;right:30px!important}@media print{@page{size:A4 portrait;margin:0}html,body{width:210mm;min-width:210mm;height:auto;background:#fff!important;margin:0!important;padding:0!important}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}.editor-top,.wizard-bar,.sidepanel,.element-properties,.canvas-bar,.wizard-actions,.mobile-tabs,.modal-layer,.block-toolbar{display:none!important}.editor-shell,.editor-body,.canvas-area,.worksheet-stage,.worksheet-frame{background:#fff!important;width:210mm!important;min-width:210mm!important;height:auto!important;min-height:297mm!important;margin:0!important;padding:0!important;display:block!important;position:static!important;overflow:visible!important}.worksheet-frame>div{transform:none!important}.worksheet{width:210mm!important;height:297mm!important;min-height:297mm!important;box-shadow:none!important;box-sizing:border-box!important;border:0!important;margin:0!important;overflow:hidden!important}.worksheet.print-page-excluded{display:none!important}body.print-narrow-margin .worksheet{padding:7mm 8mm 6mm!important}body.print-narrow-margin .worksheet footer{bottom:5mm!important;left:8mm!important;right:8mm!important}.ws-block,.ws-block.selected{orphans:3;widows:3;break-inside:avoid-page!important;page-break-inside:avoid!important;background:0 0!important;border-color:#0000!important}.ws-block.show-block-frame,.ws-block.show-block-frame.selected{border-color:color-mix(in srgb, var(--green) var(--block-frame-opacity,100%), transparent)!important;border-style:solid!important;border-width:var(--block-frame-width,1px)!important}.ws-options,.ws-match,.true-row,.answer-lines,.math-boxes,.number-sequence,.order-activity,.classification-groups,.classification-bank,.compare-grid,.fraction-grid,.clock-grid,.money-grid,.worksheet-image{break-inside:avoid-page!important;page-break-inside:avoid!important}.visual-choice img,.worksheet-image img{-webkit-print-color-adjust:exact;print-color-adjust:exact}.ws-block[data-block-type=image] .worksheet-image{max-height:205mm}}@media (max-width:900px){.print-modal{width:100%;height:min(94dvh,820px);max-height:94dvh}.print-settings{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.download-actions{padding-bottom:calc(5px + env(safe-area-inset-bottom))}}
.number-sequence{direction:ltr;justify-content:center;align-items:center;gap:8px;padding:12px 34px;display:flex}.number-sequence span{direction:rtl;background:#fff;border:2px solid #b8c7c1;border-radius:10px;flex:1;place-items:center;min-width:42px;max-width:62px;height:44px;font-size:18px;font-weight:700;display:grid}.number-sequence span.blank{border-style:dashed;border-color:var(--green);background:var(--soft)}.number-line{gap:0;padding-top:20px;position:relative}.number-line:before{content:"";border-top:2px solid #82908a;position:absolute;top:42px;left:40px;right:40px}.number-line span{z-index:1;background:#fff;border-width:1px;border-radius:50%;height:46px;position:relative}.sequence-editor{border:1px solid var(--line);background:#f8fbf9;border-radius:12px;flex-direction:column;gap:11px;padding:12px;display:flex}.sequence-editor>b{font-size:11px}.sequence-editor select{border:1px solid var(--line);width:100%;font:inherit;background:#fff;border-radius:9px;margin-top:5px;padding:9px}@media (max-width:900px){.number-sequence{gap:6px}}
.image-upload-control{text-align:center;display:block}.image-upload-control input,.replace-image input{opacity:0;pointer-events:none;height:1px;position:absolute;overflow:hidden;width:1px!important}.worksheet-image{text-align:center;border-radius:10px;margin:8px auto;position:relative;overflow:hidden}.worksheet-image img{object-fit:contain;width:100%;max-height:390px;display:block}.worksheet-image.image-grayscale img{filter:grayscale()}.worksheet-image.image-line img{filter:grayscale()contrast(2.25)brightness(1.15)}.worksheet-image figcaption{padding:7px 10px;font-size:14px;font-weight:700;line-height:1.6}.worksheet-image.caption-overlay figcaption{color:#17211e;background:#ffffffde;border-radius:8px;position:absolute;bottom:12px;left:12px;right:12px}.image-editor{border:1px solid var(--line);background:#f8fbf9;border-radius:12px;flex-direction:column;gap:11px;padding:12px;display:flex}.image-editor>b,.image-mode-picker>b{font-size:11px}.replace-image{background:var(--soft);text-align:center;cursor:pointer;border:1px dashed #9cbcaf;border-radius:9px;padding:10px;display:block;position:relative;color:var(--green)!important}.image-mode-picker{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.image-mode-picker>b{grid-column:1/-1}.image-mode-picker button{border:1px solid var(--line);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:8px 5px;font-size:9px}.image-mode-picker button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:700}.image-editor p{color:var(--muted);margin:0;font-size:9px;line-height:1.7}@media print{.worksheet-image img{max-height:103mm}}
