.mathsheet{display:grid}.mathsheet__layout{display:flex;flex-direction:column;gap:var(--space-4)}.mathsheet{container-type:inline-size}.mathsheet__layout > *{min-width:0;margin:0}.mathsheet__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);align-items:end}.mathsheet__go{display:flex;flex-wrap:wrap;gap:var(--space-3)}.mathsheet__go > .btn{flex:1 1 auto}@media screen{.mathsheet__go{position:sticky;top:var(--space-2);z-index:2;background:var(--surface);box-shadow:0 0 0 var(--space-2) var(--surface)}.mathsheet :is(.mathsheet__answers,.mathsheet__frame){scroll-margin-top:3.5rem}}.mathsheet__go > [data-primary-action]{flex-grow:9}.mathsheet__go > .btn-secondary{padding-inline:var(--space-3)}.mathsheet__more{border-top:1px solid var(--line)}.mathsheet__more > summary{display:flex;gap:var(--space-2);align-items:center;justify-content:space-between;min-height:var(--tap);border-radius:var(--radius-sm);color:var(--ink-muted);cursor:pointer;list-style:none}.mathsheet__more > summary::-webkit-details-marker{display:none}.mathsheet__more > summary:hover{color:var(--ink)}.mathsheet__more > summary:focus-visible,.mathsheet__sheet:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.mathsheet__more[open] .mathsheet__chevron{transform:rotate(180deg)}.mathsheet__more .tool-more__body{display:grid;gap:var(--space-3);padding-block:var(--space-2) var(--space-3)}.mathsheet__more .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}.mathsheet__more [data-ms-field="layout"]{grid-column:1 / -1}.mathsheet__tables{gap:var(--space-2)}.mathsheet__tables .pills{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.mathsheet__tables .pill{justify-content:center;min-height:var(--tap);padding-inline:0;font-size:var(--step-0);font-variant-numeric:tabular-nums}.mathsheet__tables .pill[aria-pressed="true"]{background:var(--brand-soft);box-shadow:inset 0 0 0 1.5px var(--brand);color:var(--ink)}.mathsheet__answers{align-self:start;justify-self:start}.mathsheet__after{display:grid;gap:var(--space-3)}.mathsheet__after:empty{display:none}.mathsheet__preview,.mathsheet__sheet{display:grid;gap:var(--space-3);align-content:start}.mathsheet__frame{position:relative;container-type:inline-size}.mathsheet__over{position:absolute;inset:var(--space-3) var(--space-3) auto;z-index:1;border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow-2)}.mathsheet__over .banner{display:grid;gap:var(--space-2)}.mathsheet__over p{margin:0}.mathsheet__page{--mm:calc(100cqi / 216);--pt:calc(var(--mm) * 0.3528);box-sizing:border-box;min-width:0;min-height:calc(var(--mm) * 279);padding:calc(var(--mm) * 12);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink)}@media screen{.mathsheet__frame:not([data-key]) .mathsheet__page--key,.mathsheet__frame[data-key] .mathsheet__page:not(.mathsheet__page--key){display:none}}.mathsheet__page > *,.mathsheet__head > *{margin:0}.mathsheet__head{display:grid;gap:calc(var(--mm) * 2)}.mathsheet__title{font-size:calc(var(--pt) * 15);font-weight:700;line-height:1.25}.mathsheet__fill{display:flex;flex-wrap:wrap;justify-content:space-between;gap:calc(var(--mm) * 1) calc(var(--mm) * 4);margin-top:calc(var(--mm) * 5);font-size:calc(var(--pt) * 11)}.mathsheet__rule{display:inline-block;width:calc(var(--mm) * 32);border-bottom:1px solid currentColor}.mathsheet__rule--long{width:calc(var(--mm) * 70)}.mathsheet__rule--short{width:calc(var(--mm) * 12)}.mathsheet__grid{display:grid;margin:0;padding:0;list-style:none;font-variant-numeric:tabular-nums}.mathsheet__page > .mathsheet__grid{grid-auto-rows:1fr;height:calc(var(--mm) * 212);margin-top:calc(var(--mm) * 8);font-size:calc(var(--pt) * 17)}[data-cols] > .mathsheet__grid{grid-template-columns:repeat(var(--ms-c),minmax(0,1fr));gap:0 calc(var(--mm) * 6)}[data-cols="10"] > .mathsheet__grid{gap:0 calc(var(--mm) * 4)}[data-cols="1"]{--ms-c:1}[data-cols="2"]{--ms-c:2}[data-cols="3"]{--ms-c:3}[data-cols="4"]{--ms-c:4}[data-cols="5"]{--ms-c:5}[data-cols="6"]{--ms-c:6}[data-cols="8"]{--ms-c:8}[data-cols="10"]{--ms-c:10}[data-count="30"] > .mathsheet__grid{font-size:calc(var(--pt) * 15)}[data-count="40"] > .mathsheet__grid{font-size:calc(var(--pt) * 14)}[data-count="60"] > .mathsheet__grid{font-size:calc(var(--pt) * 12)}[data-count="100"] > .mathsheet__grid{font-size:calc(var(--pt) * 11)}.mathsheet__item{display:flex;align-items:center;gap:calc(var(--mm) * 2);min-width:0;break-inside:avoid}.mathsheet__n{flex:none;min-width:1.9em;font-size:max(0.6em,calc(var(--pt) * 8));text-align:right}.mathsheet__sum{white-space:nowrap}.mathsheet__blank{flex:1;align-self:center;min-width:calc(var(--mm) * 4);max-width:calc(var(--mm) * 24);margin-top:0.9em;border-bottom:1px solid currentColor}.mathsheet__page[data-layout="stacked"] .mathsheet__item{position:relative;display:block}.mathsheet__page[data-layout="stacked"] .mathsheet__n{position:absolute;top:0;left:0;min-width:0}.mathsheet__stack{display:grid;width:fit-content;min-width:2.75em;margin-left:auto;font-size:1.15em;line-height:1.3}[data-wide] .mathsheet__stack{min-width:3.5em}.mathsheet__row{display:block;text-align:right}.mathsheet__row--last{display:flex;justify-content:space-between;gap:0.4em;border-bottom:calc(var(--mm) * 0.5) solid currentColor}.mathsheet__row--answer{font-weight:700}.mathsheet__foot{margin-top:calc(var(--mm) * 4);font-size:calc(var(--pt) * 8);text-align:right}.mathsheet__work{flex:1;min-width:0}.mathsheet__line{display:block;line-height:1.9}.mathsheet__gap--0{display:inline-block;width:1.6em;height:1.6em;border:1px solid;border-radius:50%;vertical-align:middle}.mathsheet__frac{vertical-align:middle}.mathsheet__pic{vertical-align:top}.mathsheet__pic--phone{display:none}.mathsheet__task{margin-top:calc(var(--mm) * 3);font-size:calc(var(--pt) * 11)}[data-size="8"]{--ms-s:8}[data-size="9"]{--ms-s:9}[data-size="10"]{--ms-s:10}[data-size="11"]{--ms-s:11}[data-size="12"]{--ms-s:12}[data-size="13"]{--ms-s:13}[data-size="14"]{--ms-s:14}[data-size="15"]{--ms-s:15}[data-size="16"]{--ms-s:16}[data-size="18"]{--ms-s:18}[data-size="19"]{--ms-s:19}[data-size="20"]{--ms-s:20}[data-size="22"]{--ms-s:22}[data-size="24"]{--ms-s:24}[data-size="26"]{--ms-s:26}[data-size="28"]{--ms-s:28}.mathsheet__page--typed > :is(ol,.table-wrap){height:auto;margin-top:calc(var(--mm) * 5);font-size:calc(var(--pt) * var(--ms-s,17))}.mathsheet__page.mathsheet__page--typed{display:flex;flex-direction:column;min-height:calc(var(--mm) * var(--ms-tall,279))}.mathsheet__page--typed > ol{flex:1 0 auto}.mathsheet__page--key[data-layout="boxes"] > ol{flex-grow:0}.mathsheet__page--key[data-layout="boxes"] .mathsheet__line{line-height:1.5}.mathsheet__page--typed > .mathsheet__foot{align-self:end}span.mathsheet__gap:not(.mathsheet__gap--0){color:transparent;text-decoration:underline 1px var(--ink);text-decoration-skip-ink:none;text-underline-offset:0.12em}.mathsheet__page--typed .mathsheet__item{align-items:baseline}[data-layout="boxes"] > .mathsheet__grid{gap:calc(var(--mm) * 2.6)}[data-layout="boxes"] .mathsheet__item{padding:calc(var(--mm) * 2) calc(var(--mm) * 3.2);border:1px solid;border-radius:calc(var(--mm) * 1.5)}[data-layout="boxes"] .mathsheet__item:has(.mathsheet__pic){display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(0,1fr);column-gap:0;align-items:center}[data-layout="boxes"] .mathsheet__item:has(.mathsheet__pic) > .mathsheet__n{align-self:start;justify-self:start;margin-right:calc(var(--mm) * 2)}.mathsheet__table{position:relative}.mathsheet__table,.mathsheet__table :is(th,td){border:1px solid;font-size:inherit;text-align:center}.mathsheet__table :is(th,td){padding:calc(var(--mm) * 2.1) calc(var(--mm) * 3.2)}[data-layout="table"] .mathsheet__n{font-size:0.9em}.mathsheet__table .small{font-size:0.85em}@media (prefers-reduced-motion:no-preference){.mathsheet__page.is-new{animation:mathsheet-in 0.25s var(--ease)}}@keyframes mathsheet-in{from{opacity:0.4}}@media screen{.mathsheet__fill,.mathsheet__foot,.mathsheet__task{font-size:max(calc(var(--pt) * 11),14px)}.mathsheet__page:not([data-cols="8"],[data-cols="10"]) .mathsheet__n{min-width:1.5em;margin-left:-0.2em;font-size:max(0.6em,14px)}}@media screen{@container (min-width:34.01rem){.mathsheet__page--key:is([data-size="8"],[data-size="9"],[data-size="10"],[data-size="11"],[data-size="12"],[data-size="13"]) > :is(ol,.table-wrap){font-size:max(calc(var(--pt) * 14),16px)}.mathsheet__page--key:is([data-size="8"],[data-size="9"],[data-size="10"],[data-size="11"],[data-size="12"],[data-size="13"]) > .mathsheet__grid{grid-template-columns:repeat(auto-fill,minmax(max(min(100%,var(--ms-need,15) * 1em),100% / var(--ms-c) - var(--mm) * 6),1fr));row-gap:calc(var(--mm) * 3)}.mathsheet__page--key:is([data-size="8"],[data-size="9"],[data-size="10"],[data-size="11"],[data-size="12"],[data-size="13"]) .mathsheet__n{min-width:1.9em;margin-left:0;font-size:1em}}}@media screen{@container (max-width:34rem){.mathsheet__page{--mm:2px;--pt:1.3px;--ms-tall:0;min-height:0;padding:calc(var(--mm) * 5) calc(var(--mm) * 4)}.mathsheet__title{font-size:calc(var(--pt) * 12.5)}.mathsheet__rule{width:2.25em}.mathsheet__rule--long{width:4.5em}.mathsheet__rule--short{width:2em}.mathsheet__task{font-size:calc(var(--pt) * 12)}.mathsheet__page > .mathsheet__grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--ms-need,99) * 1em),1fr));grid-auto-rows:auto;gap:calc(var(--mm) * 4);height:auto;margin-top:calc(var(--mm) * 5);font-size:16px}.mathsheet__page--typed > .table-wrap{font-size:16px}.mathsheet__page .mathsheet__item > .mathsheet__n{min-width:1.6em;font-size:14px}.mathsheet__page .mathsheet__item{min-height:2.25em}.mathsheet__page[data-layout="stacked"] > .mathsheet__grid{column-gap:calc(var(--mm) * 8)}.mathsheet__page[data-layout="stacked"]:not(.mathsheet__page--key) .mathsheet__item{padding-bottom:1.75em}.mathsheet__table :is(th,td){padding:calc(var(--mm) * 2) calc(var(--mm) * 3)}.mathsheet__page > .table-wrap :is(th,td){padding-inline:calc(var(--mm) * 1.5);white-space:normal}.mathsheet__page > .table-wrap th{font-size:14px}.mathsheet__foot{font-size:14px;text-align:left}.mathsheet__page .mathsheet__item:has(.mathsheet__pic){display:block}.mathsheet__page .mathsheet__item:has(.mathsheet__pic) > .mathsheet__n{display:block;text-align:left}[data-layout="boxes"] .mathsheet__item:has(.mathsheet__pic) > .mathsheet__work{display:block;width:fit-content;max-width:100%;margin-inline:auto}.mathsheet__pic:has(+ .mathsheet__pic--phone){display:none}.mathsheet__pic--phone{display:block;width:100%;max-width:25em;height:auto}.mathsheet__frame:not([data-whole]) > .mathsheet__sheet{overflow:clip;max-height:26rem;mask-image:linear-gradient(#000 22rem,transparent 26rem)}}}[data-need="5"]{--ms-need:5}[data-need="6"]{--ms-need:6}[data-need="7"]{--ms-need:7}[data-need="8"]{--ms-need:8}[data-need="9"]{--ms-need:9}[data-need="10"]{--ms-need:10}[data-need="12"]{--ms-need:12}[data-need="14"]{--ms-need:14}[data-need="16"]{--ms-need:16}@container (min-width:46rem){.mathsheet__layout{display:grid;grid-template-columns:minmax(0,20rem) minmax(0,1fr);grid-template-rows:repeat(5,auto) 1fr;column-gap:var(--space-6);align-items:start}.mathsheet__go{position:static;box-shadow:none}.mathsheet__layout > *{grid-column:1}.mathsheet__layout > .mathsheet__preview{grid-column:2;grid-row:1 / -1}}@page mathsheet{@bottom-right{content:"" !important}}@media print{main:has(.mathsheet) > :not(.tool){display:none !important}.mathsheet .mathsheet__page{animation:none}.mathsheet,.mathsheet__layout,.mathsheet__preview,.mathsheet__sheet{display:block}.mathsheet__frame{container-type:normal}.mathsheet__page{page:mathsheet;--mm:1mm;--pt:1pt;--ms-tall:250;min-height:0;padding:0 0.4mm;border:0;border-radius:0}}.mathsheet [data-ms-status],.mathsheet .btn:not(.btn-primary) > .icon{display:none}.mathsheet__after .btn{justify-self:start}
