:root{background:#f7faff;color:#17202c;font-family:Inter,Microsoft YaHei UI,PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:0;overflow-x:hidden}button,input{font:inherit}button{align-items:center;border:0;border-radius:8px;cursor:pointer;display:inline-flex;font-weight:750;gap:8px;justify-content:center;min-height:40px;padding:0 15px;transition:background .16s ease,box-shadow .16s ease,color .16s ease,transform .16s ease}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.45}h1,h2,h3,p{margin:0}h1{color:#111827;font-size:26px;letter-spacing:0;line-height:1.1}h2{color:#182230;font-size:18px;letter-spacing:0;line-height:1.2}h3{color:#1d2735;font-size:15px;letter-spacing:0;line-height:1.2}.app-shell{min-height:100vh}.topbar{align-items:center;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fbfdffe5;border-bottom:1px solid rgb(20 31 45 / 8%);display:flex;gap:18px;justify-content:space-between;padding:18px 24px;position:sticky;top:0;z-index:5}.brand{align-items:center;display:flex;gap:13px;min-width:240px}.brand-mark,.summary-icon{align-items:center;border-radius:10px;display:inline-flex;flex:0 0 auto;height:42px;justify-content:center;width:42px}.brand-mark{display:block}.summary-icon{background:#005eeb;color:#fff}.eyebrow{color:#5d6f6b;font-size:12px;font-weight:800;letter-spacing:0;margin-bottom:5px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.mobile-config-bar,.mobile-layout-panel,.mobile-selection-summary,.mobile-menu-button,.sidebar-scrim,.drawer-header{display:none}.ghost-button{background:#fff;border:1px solid #c7dcfb;color:#27313f}.ghost-button:hover:not(:disabled){box-shadow:0 10px 24px #141d2914}.primary-button{background:#005eeb;box-shadow:0 12px 24px #005eeb38;color:#fff}.dark-button{background:#172033;box-shadow:0 12px 24px #1720332e;color:#fff}.workspace{display:grid;gap:24px;grid-template-columns:minmax(300px,370px) minmax(0,1fr);padding:24px}.control-panel{align-self:start;background:#fff;border:1px solid rgb(21 31 46 / 8%);border-radius:8px;box-shadow:0 20px 50px #1a2b381a;display:grid;gap:18px;max-height:calc(100vh - 112px);overflow:auto;padding:16px;position:sticky;top:90px}.summary-panel{align-items:center;background:linear-gradient(135deg,#e5effd,#f8fbff);border:1px solid #c7dcfb;border-radius:8px;display:flex;gap:13px;padding:14px}.summary-panel p{color:#65726f;font-size:13px;margin-top:5px}.control-section{border-top:1px solid #e5effd;display:grid;gap:13px;padding-top:16px}.section-title{align-items:center;color:#5b6865;display:flex;font-size:13px;font-weight:850;justify-content:space-between}.grade-tabs,.type-list,.settings-grid{display:grid;gap:10px}.grade-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.grade-tab{background:#fbfcfc;border:1px solid #d9e7fc;color:#3d4a56;gap:6px;min-height:38px;min-width:0;padding:0 8px}.grade-tab.active{background:#005eeb;border-color:#005eeb;box-shadow:0 10px 22px #005eeb2e;color:#fff}.grade-tab span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grade-type-panel{background:#fbfcfc;border:1px solid #d9e7fc;border-radius:8px;display:grid;gap:12px;padding:12px}.grade-panel-header{align-items:center;display:flex;gap:10px;justify-content:space-between}.grade-panel-header p{color:#66716e;font-size:12px;font-weight:800;margin-top:4px}.grade-count{align-items:center;background:#005eeb;border-radius:999px;color:#fff;display:inline-flex;font-size:12px;font-weight:900;height:22px;justify-content:center;min-width:22px;padding:0 7px}.grade-tab.active .grade-count{background:#fff;color:#005eeb}.text-button{background:transparent;color:#005eeb;min-height:28px;padding:0 4px}.type-list{padding:0}.type-option{align-items:flex-start;background:#fff;border:1px solid transparent;border-radius:8px;display:grid;gap:9px;grid-template-columns:20px 1fr;padding:10px 10px 12px;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.type-option.selected{background:#e5effd;border-color:#a9c8f7;box-shadow:inset 3px 0 #005eeb}.type-option input{accent-color:#005eeb;height:18px;margin:2px 0 0;width:18px}.type-option>span{display:grid;gap:4px;min-width:0}.type-option strong{color:#202938;font-size:14px}.type-option small{align-items:center;color:#7b8583;display:inline-flex;font-family:Courier New,ui-monospace,monospace;font-size:12px;gap:.35em;line-height:1.1;min-height:2.7em;padding-top:.05em}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid label{color:#66716e;display:grid;font-size:12px;font-weight:800;gap:7px}.settings-grid input{background:#fbfcfc;border:1px solid #c7dcfb;border-radius:8px;color:#16202f;font-weight:800;height:42px;min-width:0;padding:0 11px;width:100%}.settings-grid input:focus{border-color:#005eeb;box-shadow:0 0 0 3px #005eeb24;outline:none}.switch-row{align-items:center;background:#e5effd;border-radius:8px;color:#26313f;display:grid;font-size:13px;font-weight:850;gap:12px;grid-template-columns:1fr auto;padding:10px 12px}.switch-row input{height:1px;opacity:0;pointer-events:none;position:absolute;width:1px}.switch-track{background:#bcd3f8;border-radius:999px;height:24px;position:relative;width:44px}.switch-track:after{background:#fff;border-radius:999px;box-shadow:0 2px 8px #11182733;content:"";height:18px;left:3px;position:absolute;top:3px;transition:background .16s ease,transform .16s ease;width:18px}.switch-row input:checked+.switch-track{background:#005eeb}.switch-row input:checked+.switch-track:after{transform:translate(20px)}.preview-area{display:grid;gap:16px;min-width:0}.preview-top{align-items:center;display:flex;justify-content:space-between;min-height:58px}.preview-stats{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.preview-stats span{background:#fff;border:1px solid #d9e7fc;border-radius:999px;color:#43504d;font-size:13px;font-weight:850;padding:8px 12px}.paper-stage{align-items:center;background:linear-gradient(90deg,rgb(22 32 47 / 4%) 1px,transparent 1px),linear-gradient(rgb(22 32 47 / 4%) 1px,transparent 1px),#eef5ff;background-size:24px 24px;border:1px solid #d9e7fc;border-radius:8px;display:grid;gap:28px;justify-items:center;min-height:calc(100vh - 180px);overflow:auto;padding:30px;-webkit-overflow-scrolling:touch}.sheet{aspect-ratio:210 / 297;background:#fff;border-radius:4px;box-shadow:0 1px #fffc inset,0 22px 70px #131f2c33;color:#121722;display:flex;flex-direction:column;max-width:min(100%,900px);padding:40px 44px;width:100%}.sheet-frame{display:contents}.sheet-header{border-bottom:2px solid #141b28;padding-bottom:16px}.sheet-meta{align-items:end;display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}.sheet-meta span{align-items:baseline;display:flex;font-size:14px;gap:8px;white-space:nowrap}.sheet-meta i{border-bottom:1px solid #111827;display:inline-block;flex:0 0 74px;height:1em}.problem-grid{display:grid;flex:1;gap:12px 18px;min-height:0;padding-top:26px}.problem-row{align-content:start;align-items:start;display:inline-flex;font-family:Courier New,ui-monospace,monospace;font-size:16px;font-weight:700;gap:4px;justify-self:start;line-height:1;min-height:0;transform:scale(var(--problem-scale, 1));transform-origin:left top;white-space:nowrap}.number-label{color:#66716e;font-family:Microsoft YaHei UI,PingFang SC,system-ui,-apple-system,sans-serif;font-size:.82em;line-height:1.1;padding-top:.06em}.question-text{word-spacing:-.24em}.compare-expression{align-items:center;display:inline-flex;gap:.72em;word-spacing:0}.compare-symbol{align-self:center;border:.12em solid currentColor;border-radius:50%;display:inline-block;flex:0 0 auto;height:1.32em;line-height:0;transform:translateY(-.03em);width:1.32em}.stacked-fraction{align-items:center;display:inline-grid;font-family:inherit;font-size:1em;font-weight:inherit;grid-template-rows:1fr 1fr;height:2.25em;justify-content:center;line-height:.82;margin:0 .08em;min-width:.72em;position:relative;row-gap:0;transform:translateY(.05em);vertical-align:middle}.stacked-fraction:after{border-top:1px solid currentColor;content:"";left:0;position:absolute;top:calc(50% - .5px);width:100%}.stacked-fraction span{display:block;padding:0 .08em;text-align:center}.answer-line{border-bottom:1px solid currentColor;display:inline-block;height:.85em;margin-left:.18em;min-width:2.45em;transform:translateY(.36em);vertical-align:baseline}@media(max-width:980px){.topbar{align-items:flex-start;flex-direction:column;gap:14px}.toolbar{justify-content:flex-start;width:100%}.workspace{gap:18px;grid-template-columns:1fr;padding:16px}.control-panel{max-height:none;position:static}.paper-stage{min-height:auto;padding:16px}.sheet{width:min(100%,760px)}}@media(max-width:640px){:root{background:#f2f2f7;color:#1c1c1e}body{background:#f2f2f7}body.mobile-sidebar-open{overflow:hidden}button{min-height:44px}button:hover:not(:disabled){transform:none}.app-shell{background:#f2f2f7;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.topbar{align-items:center;background:#f2f2f7e0;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid rgb(60 60 67 / 12%);display:grid;gap:10px;grid-template-columns:minmax(0,1fr);min-height:66px;padding:calc(7px + env(safe-area-inset-top)) 14px 9px;position:sticky;top:0;z-index:12}.mobile-menu-button{display:none}.mobile-menu-button span{color:#1c1c1e}.brand{justify-content:center;justify-self:center;gap:0;min-width:0;text-align:center;width:100%}.brand-mark{display:none}.summary-icon{border-radius:8px;height:36px;width:36px}h1{color:#1c1c1e;font-size:26px;font-weight:800;line-height:1.05}h2{color:#1c1c1e;font-size:17px;font-weight:700}.eyebrow{color:#6e6e73;font-size:12px;font-weight:700;margin:3px 0 0}.toolbar{-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:#f9f9fbeb;border-top:1px solid rgb(60 60 67 / 18%);bottom:0;display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));left:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));position:fixed;right:0;width:100%;z-index:20}.toolbar button{border-radius:8px;box-shadow:none;font-size:14px;font-weight:700;gap:6px;min-height:50px;min-width:0;padding:0 8px;white-space:nowrap;width:auto}.toolbar button:active:not(:disabled),.mobile-menu-button:active,.grade-tab:active,.type-option:active,.text-button:active,.switch-row:active{opacity:.72}.ghost-button{background:#fff;border:1px solid rgb(60 60 67 / 16%);color:#007aff}.primary-button{background:#007aff;color:#fff}.dark-button{background:#1c1c1e;color:#fff}.pdf-button{background:#fff;border:1px solid rgb(60 60 67 / 16%);color:#007aff}.workspace{gap:22px;padding:14px 14px 0}.mobile-selection-summary{display:grid;gap:8px;grid-template-columns:minmax(82px,auto) minmax(0,1fr);padding:12px 14px 0;position:relative;z-index:11}.mobile-picker{min-width:0;position:relative}.mobile-picker-trigger{align-items:center;background:#fff;border:1px solid rgb(60 60 67 / 12%);border-radius:8px;box-shadow:none;color:#1c1c1e;display:grid;gap:4px;grid-template-columns:minmax(0,1fr) auto;justify-items:start;min-height:50px;padding:8px 10px;text-align:left;width:100%}.mobile-picker-trigger span{color:#6e6e73;font-size:12px;font-weight:700;line-height:1}.mobile-picker-trigger strong{color:#1c1c1e;font-size:14px;font-weight:800;grid-column:1 / 2;line-height:1.15;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-picker-trigger svg{color:#8e8e93;grid-column:2 / 3;grid-row:1 / span 2;justify-self:end;transition:transform .16s ease}.mobile-picker-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.mobile-picker-popover{animation:mobile-popover-in .18s cubic-bezier(.2,.8,.2,1) both;background:#fff;border:1px solid rgb(60 60 67 / 12%);border-radius:8px;box-shadow:0 18px 40px #0000002e;left:0;margin-top:6px;overflow:hidden;position:absolute;right:0;top:100%;transform-origin:top center;z-index:25}.mobile-picker-popover.closing{animation:mobile-popover-out .16s cubic-bezier(.4,0,1,1) both;pointer-events:none}@keyframes mobile-popover-in{0%{opacity:0;transform:translateY(-8px) scaleY(.98)}to{opacity:1;transform:translateY(0) scaleY(1)}}@keyframes mobile-popover-out{0%{opacity:1;transform:translateY(0) scaleY(1)}to{opacity:0;transform:translateY(-8px) scaleY(.98)}}.grade-picker-popover{display:grid;gap:0;grid-template-columns:1fr;padding:0;width:min(140px,calc(100vw - 28px))}.mobile-grade-option{align-items:center;background:#fff;border-radius:0;box-shadow:none;color:#1c1c1e;display:flex;font-size:14px;font-weight:800;gap:3px;justify-content:space-between;min-height:58px;padding:10px 13px;position:relative;text-align:left}.mobile-grade-option:after{background:#3c3c431f;bottom:0;content:"";height:1px;left:13px;position:absolute;right:0}.mobile-grade-option:last-child:after{display:none}.mobile-grade-option.active{background:#f4f9ff;color:#1c1c1e}.mobile-grade-option strong{color:#007aff;font-size:11px;line-height:1}.type-picker-popover{left:auto;max-height:calc(100vh - 150px - env(safe-area-inset-bottom));right:0;width:min(310px,calc(100vw - 28px))}.mobile-type-picker-header{align-items:center;border-bottom:1px solid rgb(60 60 67 / 12%);display:flex;gap:12px;justify-content:space-between;padding:11px 13px}.mobile-type-picker-header div{display:grid;gap:3px;min-width:0}.mobile-type-picker-header strong{color:#1c1c1e;font-size:14px;font-weight:800}.mobile-type-picker-header span{color:#6e6e73;font-size:12px;font-weight:700}.mobile-text-button{background:transparent;color:#007aff;font-size:14px;min-height:32px;padding:0 2px}.mobile-type-picker-list{display:grid;max-height:calc(100vh - 210px - env(safe-area-inset-bottom));overflow:auto;-webkit-overflow-scrolling:touch}.mobile-type-option{align-items:flex-start;background:#fff;display:grid;gap:10px;grid-template-columns:22px 1fr;min-height:58px;padding:10px 13px;position:relative}.mobile-type-option:after{background:#3c3c431f;bottom:0;content:"";height:1px;left:45px;position:absolute;right:0}.mobile-type-option:last-child:after{display:none}.mobile-type-option.selected{background:#f4f9ff}.mobile-type-option input{accent-color:#007aff;height:19px;margin:2px 0 0;width:19px}.mobile-type-option>span{display:grid;gap:4px;min-width:0}.mobile-type-option strong{color:#1c1c1e;font-size:14px;font-weight:800;line-height:1.2}.mobile-type-option small{color:#8e8e93;font-size:12px;line-height:1.2;overflow-wrap:anywhere}.mobile-layout-panel{display:grid;gap:0;padding:12px 14px 0}.mobile-layout-title{display:none}.mobile-layout-title h2{font-size:17px}.mobile-layout-panel .settings-grid{background:transparent;border-radius:0;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.mobile-stepper{align-items:center;background:#fff;border:1px solid rgb(60 60 67 / 12%);border-radius:8px;gap:8px;color:#1c1c1e;display:grid;font-size:15px;font-weight:700;grid-template-columns:minmax(0,1fr) auto;min-height:48px;padding:6px 8px 6px 12px;text-align:left}.mobile-stepper-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stepper-control{align-items:center;background:#f2f2f7;border-radius:8px;display:grid;grid-template-columns:30px minmax(34px,auto) 30px;min-height:36px;overflow:hidden}.stepper-button{background:transparent;border-radius:0;color:#007aff;font-size:20px;font-weight:700;min-height:36px;padding:0}.stepper-button:disabled{color:#8e8e93;opacity:.45}.stepper-value{appearance:none;background:transparent;border:0;border-radius:0;color:#1c1c1e;cursor:text;display:block;font-size:16px;font-weight:800;height:36px;line-height:36px;min-width:34px;outline:0;padding:0;text-align:center;-webkit-text-fill-color:#1c1c1e;width:44px}.stepper-value:focus{background:transparent}.mobile-layout-panel .stepper-value{background:transparent;border:0;color:#1c1c1e;font-size:16px;font-weight:800;height:36px;line-height:36px;padding:0;text-align:center;-webkit-text-fill-color:#1c1c1e;width:44px}.mobile-layout-panel .stepper-value:focus{background:transparent;box-shadow:none}.mobile-config-bar{display:none;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 14px 0}.mobile-config-button{align-items:center;background:#fff;border:1px solid rgb(60 60 67 / 12%);border-radius:8px;color:#1c1c1e;display:grid;gap:4px 9px;grid-template-columns:auto 1fr;justify-content:start;min-height:58px;padding:9px 12px;text-align:left}.mobile-config-button svg{color:#007aff;grid-row:span 2}.mobile-config-button span{font-size:15px;font-weight:700;line-height:1}.mobile-config-button strong{color:#6e6e73;display:block;font-size:12px;font-weight:700;line-height:1.1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-scrim,.sidebar-scrim.open{display:none}.control-panel{background:#f2f2f7;border:0;border-radius:0;box-shadow:none;gap:18px;grid-template-rows:auto auto minmax(0,1fr);height:100dvh;left:0;max-height:none;overflow:hidden;padding:calc(14px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));display:none;position:fixed;top:0;transform:translate(-104%);transition:transform .26s cubic-bezier(.2,.8,.2,1);width:min(88vw,360px);z-index:31;-webkit-overflow-scrolling:touch}.control-panel.open{display:grid;transform:translate(0)}.drawer-header{align-items:center;display:flex;flex:0 0 44px;height:44px;justify-content:space-between;padding:0}.drawer-header h2{font-size:24px;line-height:1.1}.icon-button{background:#7676801f;border-radius:999px;color:#3a3a3c;height:36px;min-height:36px;padding:0;width:36px}.summary-panel{background:#fff;border:0;border-radius:8px;box-shadow:none;flex:0 0 65px;gap:10px;height:65px;padding:13px 14px;z-index:3}.summary-panel p{color:#6e6e73;font-size:12px;margin-top:4px}.summary-icon{background:#007aff}.control-section{border-top:0;display:grid;gap:8px;grid-template-rows:18px 82px minmax(0,1fr);min-height:0;overflow:hidden;padding-top:0}.drawer-layout-section{display:none}.section-title{align-items:center;color:#6e6e73;display:flex;font-size:12px;font-weight:700;height:18px;padding:0 4px 2px}.grade-tabs{background:#e5e5ea;border-radius:8px;display:grid;gap:2px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,38px);height:82px;margin-inline:0;overflow:hidden;padding:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.grade-tabs::-webkit-scrollbar{display:none}.grade-tab{background:transparent;border:0;border-radius:7px;box-shadow:none;color:#3a3a3c;contain:layout paint;font-size:13px;font-weight:700;height:100%;min-height:0;outline:0;padding:0 4px;width:100%}.grade-tab.active{background:#fff;border-color:transparent;box-shadow:inset 0 0 0 .5px #0000000a,0 1px 2px #00000024;color:#1c1c1e}.grade-count{background:#007aff;font-size:11px;height:18px;min-width:18px;padding:0 5px}.grade-tab.active .grade-count{background:#007aff;color:#fff}.grade-type-panel{background:#fff;border:0;border-radius:8px;display:grid;gap:0;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;padding:0}.grade-panel-header{align-items:center;border-bottom:1px solid rgb(60 60 67 / 12%);min-height:64px;padding:13px 16px}.grade-panel-header p{color:#6e6e73;font-weight:600}.text-button{color:#007aff;font-size:15px;min-height:32px;padding:0}.type-list{gap:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.type-option{background:#fff;border:0;border-radius:0;gap:11px;grid-template-columns:24px 1fr;min-height:62px;padding:11px 16px;position:relative}.type-option:after{background:#3c3c431f;bottom:0;content:"";height:1px;left:51px;position:absolute;right:0}.type-option:last-child:after{display:none}.type-option.selected{background:#f4f9ff;border-color:transparent;box-shadow:none}.type-option input{accent-color:#007aff;height:20px;margin-top:3px;width:20px}.type-option strong{color:#1c1c1e;font-size:15px;font-weight:700;line-height:1.25}.type-option small{color:#8e8e93;font-size:12px;line-height:1.2;min-height:auto;overflow-wrap:anywhere;white-space:normal}.settings-grid{background:#fff;border-radius:8px;gap:0;grid-template-columns:1fr;overflow:hidden}.settings-grid label{align-items:center;color:#1c1c1e;display:grid;font-size:15px;font-weight:600;gap:12px;grid-template-columns:minmax(0,1fr) minmax(82px,104px);min-height:52px;padding:8px 12px 8px 16px;position:relative}.settings-grid label:after{background:#3c3c431f;bottom:0;content:"";height:1px;left:16px;position:absolute;right:0}.settings-grid label:last-child:after{display:none}.settings-grid input{background:#f2f2f7;border:0;border-radius:8px;font-size:16px;font-weight:700;height:36px;padding:0 10px;text-align:right}.settings-grid input:focus{box-shadow:0 0 0 2px #007aff2e}.switch-row{background:#fff;border-radius:8px;color:#1c1c1e;font-size:15px;font-weight:600;min-height:52px;padding:10px 16px}.switch-track{background:#e9e9eb;height:31px;width:51px}.switch-track:after{height:27px;left:2px;top:2px;width:27px}.switch-row input:checked+.switch-track{background:#34c759}.switch-row input:checked+.switch-track:after{transform:translate(20px)}.preview-top{align-items:center;flex-direction:row;gap:12px;min-height:0;padding-inline:4px}.preview-stats{flex:0 0 auto}.preview-stats span{background:#fff;border:0;border-radius:999px;color:#1c1c1e;font-size:12px;padding:7px 10px}.paper-stage{align-items:start;background:linear-gradient(90deg,rgb(60 60 67 / 5%) 1px,transparent 1px),linear-gradient(rgb(60 60 67 / 5%) 1px,transparent 1px),#e9eef6;border:0;border-radius:8px;--mobile-sheet-base-width: 820px;--mobile-sheet-scale: calc((100vw - 44px) / var(--mobile-sheet-base-width));--mobile-sheet-height: calc(var(--mobile-sheet-base-width) * 297 / 210);justify-items:center;margin-inline:0;overflow-x:hidden;padding:8px}.sheet-frame{display:block;height:calc(var(--mobile-sheet-height) * var(--mobile-sheet-scale));overflow:hidden;position:relative;width:calc(var(--mobile-sheet-base-width) * var(--mobile-sheet-scale))}.sheet{box-shadow:0 1px #fffc inset,0 10px 28px #131f2c24;flex:0 0 auto;height:var(--mobile-sheet-height);max-width:none;padding:40px 44px;transform:scale(var(--mobile-sheet-scale));transform-origin:left top;width:var(--mobile-sheet-base-width)}.sheet-meta{gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}.sheet-meta span{font-size:14px}.sheet-meta i{flex-basis:74px}.problem-grid{gap:12px 18px;padding-top:26px}.problem-row{font-size:16px;gap:4px}.answer-line{min-width:2.45em}}@media(max-width:380px){.toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.toolbar .primary-button{grid-column:auto;order:0}.settings-grid{grid-template-columns:1fr}}@page{size:A4;margin:0}@media print{:root,body{background:#fff;height:auto}.no-print{display:none!important}.app-shell{min-height:0;padding:0}.workspace,.preview-area,.paper-stage{background:#fff;border:0;display:block;min-height:0;overflow:visible;padding:0}.sheet-frame{break-after:auto;display:block;height:286mm;overflow:hidden;page-break-after:auto;position:static;width:202mm}.sheet-frame:not(:last-child){break-after:page;page-break-after:always}.sheet{aspect-ratio:210 / 297;border-radius:0;box-shadow:none;break-after:auto;break-inside:avoid;display:flex;flex-direction:column;height:286mm;max-width:none;page-break-after:auto;page-break-inside:avoid;padding:9mm 10mm;transform:none;width:202mm}.sheet-header{flex:0 0 auto}.sheet:last-child{page-break-after:auto}.problem-row{break-inside:avoid;font-size:16px;page-break-inside:avoid}.problem-grid{flex:1 1 auto;height:0;min-height:0}}
