/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
@keyframes bookViewFloatingStatusFlash{0%{transform:scale(.94);box-shadow:0 6px 24px rgba(16,185,129,.35)}40%{transform:scale(1.04);box-shadow:0 10px 28px rgba(16,185,129,.4)}to{transform:scale(1);box-shadow:0 6px 20px rgba(0,0,0,.08)}}@keyframes book-view__modea-generator-progress{0%{transform:translateX(-120%)}to{transform:translateX(260%)}}@keyframes example-save-status-appear{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}*,::after,::before{box-sizing:border-box}html{font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";line-height:1.15;-webkit-text-size-adjust:100%;tab-size:4;scroll-behavior:smooth}:root{--mv-student-font-base:16px;--mv-student-font-scale:0.8;--mv-student-line-height:1.4}.skip-link,.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{top:0;left:0;clip-path:inset(50%)!important;background:0 0!important;color:transparent!important;text-decoration:none;z-index:10000}.skip-link:focus,.skip-link:focus-visible{width:auto!important;height:auto!important;padding:12px 18px!important;margin:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;background:#0f6d8f!important;color:#fff!important;font:600 14px/1.2 Inter,system-ui,sans-serif!important;border-radius:0 0 8px 0!important;box-shadow:0 2px 8px rgba(0,0,0,.2)!important;outline:2px solid #fff!important;outline-offset:2px!important}[data-in-iframe=true] .skip-link,[hidden]{display:none!important}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup{font-family:inherit;font-size:100%}button,input,optgroup,select,textarea{line-height:1.15;margin:0}button,input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button}legend{font-weight:600;font-size:13px;color:#374151;padding:0 4px}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}.book-view:not(.book-view__toc):not(.book-view__chapter){--book-font-serif:'Source Serif 4', 'Lora', 'Iowan Old Style', Georgia, serif;--book-font-sans:'Inter', system-ui, sans-serif;--book-accent:#5b54f5;--book-accent-dark:#4a44d9;--book-accent-light:#eef2ff;--book-text-primary:#1c1917;--book-text-secondary:#57534e;--book-text-tertiary:#8a8a8a;--book-muted:#b8b3a8;--book-border:#d6d3d1;--book-rule:#ececec;--book-toc-bg:#faf8f3;--book-paper-warm:#faf8f3;--book-num-1:#d97706;--book-num-2:#2563eb;--book-num-3:#db2777;--book-num-4:#16a34a;--book-num-5:#7c3aed;width:100%;height:100%;display:flex;flex-direction:column;align-items:stretch;padding:0;background:linear-gradient(to right,var(--book-toc-bg, #faf8f3) 0%,#fdfcfa 33.3%,#faf8f3 33.4%,#fff 36.5%,#fff 100%),url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");border:1px solid var(--book-border, #e8e5dd);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:0-1px 0 rgba(0,0,0,.03),0-6px 18px rgba(20,20,40,.06),-8px 8px 24px -16px rgba(20,20,40,.08),8px 8px 24px -16px rgba(20,20,40,.08);overflow:hidden;isolation:isolate;min-height:0;position:relative}.book-view__layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:0;flex:1;min-height:0;background:0 0;position:relative}.book-view__divider{display:none}body[data-layout-type=book-toc] .book-view__layout,body[data-layout-type=utility-shell] .book-view__layout{grid-template-columns:minmax(260px,1fr) 1px minmax(0,2fr)}body[data-layout-type=book-toc] .book-view__divider,body[data-layout-type=utility-shell] .book-view__divider{display:block;background:0 0}body[data-layout-type=book-toc] .book-view:not(.book-view__toc):not(.book-view__chapter)::before,body[data-layout-type=utility-shell] .book-view:not(.book-view__toc):not(.book-view__chapter)::before{content:"";position:absolute;top:0;bottom:0;left:33.3%;width:60px;margin-left:-30px;background:linear-gradient(to right,transparent 0,rgba(0,0,0,.05) 35%,rgba(0,0,0,.16) 48%,rgba(0,0,0,.2) 50%,rgba(0,0,0,.16) 52%,rgba(0,0,0,.05) 65%,transparent 100%);pointer-events:none;z-index:6}body[data-layout-type=book-toc] .book-view:not(.book-view__toc):not(.book-view__chapter)::after,body[data-layout-type=utility-shell] .book-view:not(.book-view__toc):not(.book-view__chapter)::after{content:"";position:absolute;top:8px;bottom:8px;left:33.3%;width:1px;margin-left:-.5px;background:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.18) 4%,rgba(0,0,0,.22) 50%,rgba(0,0,0,.18) 96%,transparent 100%);pointer-events:none;z-index:7}body[data-layout-type=utility-shell]{background-color:var(--bg, #f8f8f6);color:var(--book-text-primary, #1c1917);font-family:var(--book-font-sans, system-ui, sans-serif)}body[data-layout-type=utility-shell].app-layout .wrap{padding:0;max-width:none}body[data-layout-type=utility-shell] .book-view{flex:1 1 auto;min-height:0}body[data-layout-type=utility-shell] .book-view__toc{display:flex;flex-direction:column;gap:20px}body[data-layout-type=utility-shell] .book-view__chapter{container-type:inline-size}.book-view__toc,.book-view__toc [data-top-tabs]{background:linear-gradient(to right,var(--book-toc-bg, #faf8f3) 0%,#fdfcfa 100%)}.book-view__toc{border:0;border-radius:0;padding:0 26px 32px 24px;font-family:var(--book-font-sans);position:relative;overflow-y:auto;min-height:0}.book-view__toc [data-top-tabs]{position:sticky;top:0;z-index:5;margin:0-26px 16px -24px;padding-left:24px;padding-right:26px}.book-view__chapter::after,.book-view__toc::before{content:"";position:absolute;top:4px;bottom:4px;width:2px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.05),transparent);pointer-events:none}.book-view__toc::before{left:0}.book-view__chapter,.book-view__chapter-header{display:flex;background:linear-gradient(to left,var(--book-toc-bg, #faf8f3) 0%,#fff 18%)}.book-view__chapter{border:0;border-radius:0;padding:0 36px 32px;overflow-y:auto;position:relative;flex-direction:column;min-height:0}.book-view__chapter-header{position:sticky;top:0;z-index:5;align-items:center;justify-content:space-between;gap:12px;min-height:2.75rem;margin:0-36px 16px;padding:0 18px 0 24px;border-bottom:1px solid var(--book-rule, #ececec)}.book-view__avatar-slot{display:inline-flex;align-items:center;flex:0 0 auto;margin-left:auto}.book-view__chapter-tabs[hidden]+.book-view__avatar-slot{margin-left:auto}.book-view__chapter-header--utility{border-bottom:0;min-height:2.25rem;padding-top:8px;margin-bottom:0;pointer-events:none}.book-view__chapter-header--utility>.book-view__avatar-slot{pointer-events:auto}.book-view__chapter::after{right:0}.book-view__toc h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.book-view__chapter h2{margin:0 0 14px;font-family:var(--book-font-serif);font-size:2.05rem;line-height:1.1;letter-spacing:-.015em;font-weight:700;color:var(--book-text-primary)}.book-view__toc-chapter{margin-bottom:6px;transition:opacity 120ms ease}.book-view__toc-chapter:last-child,.card--examples .example-description-preview p:last-child{margin-bottom:0}.book-view__toc-chapter-header{display:flex;align-items:center;gap:8px;padding:6px 8px;margin:0-8px;border-radius:8px;cursor:pointer;transition:background-color .12s ease}.book-view__toc-chapter-header:hover{background:rgba(0,0,0,.03)}.book-view__toc-chapter.is-expanded>.book-view__toc-chapter-header{background:rgba(0,0,0,.025)}.book-view__toc-chapter-chevron{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:var(--book-text-tertiary, #8a8a8a);transition:transform .12s ease}.book-view__toc-chapter-chevron svg{width:12px;height:12px;display:block}.book-view__toc-chapter.is-expanded>.book-view__toc-chapter-header .book-view__toc-chapter-chevron{transform:rotate(180deg)}.book-view__toc-chapter:not(.is-expanded)>.book-view__toc-subchapter-list{display:none}.book-view__toc-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:14px;height:20px;flex:0 0 auto;color:#cbd5e1;font-size:.78rem;line-height:1;letter-spacing:-1px;cursor:grab;user-select:none;transition:color 120ms ease}.book-view__toc-chapter-header:hover .book-view__toc-drag-handle,.book-view__toc-subchapter-item:hover .book-view__toc-drag-handle{color:#64748b}.book-view__toc-drag-handle:active{cursor:grabbing}.book-view__toc-drag-handle--placeholder{visibility:hidden;pointer-events:none}.book-view__toc-chapter-dropzone,.book-view__toc-subchapter-dropzone{height:0;margin:0;border-radius:4px;background:0 0;transition:height 140ms ease,background-color 140ms ease,margin 140ms ease;pointer-events:none;position:relative}body[data-toc-dragging-chapter] .book-view__toc-chapter-dropzone{height:8px;margin:4px 0;background:rgba(148,163,184,.18);pointer-events:auto}body[data-toc-dragging-chapter] .book-view__toc-chapter-dropzone.is-active{height:28px;background:rgba(147,197,253,.32);outline:2px dashed #60a5fa;outline-offset:-2px}.book-view__toc-subchapter-dropzone{list-style:none;padding:0;border-radius:3px}body[data-toc-dragging-subchapter] .book-view__toc-subchapter-dropzone{height:6px;margin:2px 0;background:rgba(148,163,184,.18);pointer-events:auto}body[data-toc-dragging-subchapter] .book-view__toc-subchapter-dropzone.is-active{height:22px;background:rgba(147,197,253,.32);outline:2px dashed #60a5fa;outline-offset:-2px}.book-view__toc-chapter-link{display:inline-block;position:relative;color:var(--book-text-primary);text-decoration:none;font-family:var(--book-font-serif);font-size:clamp(1.05rem,1.4vw,1.25rem);font-weight:700;line-height:1.2;letter-spacing:-.01em;padding-left:2px}.book-view__toc-chapter-number{color:var(--book-ch, var(--book-accent));opacity:.85;font-weight:700;font-style:italic}.book-view__toc-chapter-link:focus-visible,.book-view__toc-chapter-link:hover{color:var(--book-text-primary);outline:0}.book-view__toc-chapter-link.is-active .book-view__toc-chapter-number,.book-view__toc-chapter-link:hover .book-view__toc-chapter-number{opacity:1}.book-view__toc-chapter-link.is-active{color:var(--book-text-primary)}.book-view__toc-subchapter-list{list-style:none;margin:8px 0 0;padding:2px 0 2px 20px;border-left:2px solid var(--book-border);display:flex;flex-direction:column;gap:2px}.book-view__toc-subchapter-item{display:flex;align-items:center;gap:6px;position:relative}.book-view__toc-subchapter-item:has(>.book-view__toc-subchapter-link.is-active)::before{content:"";position:absolute;left:-22px;top:4px;bottom:4px;width:4px;border-radius:2px;background:var(--book-ch, var(--book-accent));pointer-events:none}.book-view__toc-subchapter-pizza{display:inline-flex;flex:0 0 auto;width:20px;height:20px;margin-left:2px}.book-view__toc-subchapter-trophy{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:20px;height:20px;margin-right:4px;font-size:16px;line-height:1;filter:drop-shadow(0 0 2px rgba(251,191,36,.6))}.book-view__toc-subchapter-link{position:relative;appearance:none;-webkit-appearance:none;border:0;background:0 0;padding:6px 10px 6px 16px;margin:0;color:var(--book-text-secondary);font:inherit;font-family:var(--book-font-sans);font-size:clamp(.88rem,1vw,.95rem);line-height:1.25;letter-spacing:-.01em;text-align:left;cursor:pointer;border-radius:8px;transition:background .15s ease,color .15s ease}.book-view__toc-subchapter-link::before{content:none}.book-view__toc-subchapter-link:focus-visible,.book-view__toc-subchapter-link:hover{color:var(--book-text-primary);background:rgba(0,0,0,.03);outline:0}.book-view__toc-subchapter-link.is-active{color:var(--book-text-primary);font-weight:600;background:var(--book-accent-light);background:color-mix(in oklab,var(--book-ch, var(--book-accent)) 9%,transparent)}.book-view__toc-chapter-link.is-editable,.book-view__toc-subchapter-link.is-editable{cursor:text}.book-view__toc-chapter-link.is-editing,.book-view__toc-subchapter-link.is-editing{color:#111827}.book-view__toc-inline-input{width:min(100%,360px);border:1px solid #a5b4fc;border-radius:10px;background:#fff;color:#111827;font:inherit;font-size:inherit;line-height:inherit;padding:4px 9px;outline:0;box-shadow:0 0 0 2px rgba(99,102,241,.2)}.book-view__toc-add-menu{position:relative;margin-top:10px;width:fit-content}.book-view__toc-add-trigger{appearance:none;-webkit-appearance:none;list-style:none;width:38px;height:38px;padding:0;border:1px solid #c7d2fe;border-radius:999px;background:linear-gradient(140deg,#fff 0,#eef2ff 100%);color:#3730a3;font-size:1.45rem;font-weight:700;line-height:1;display:inline-grid;place-items:center;margin:0;cursor:pointer;transition:transform 140ms ease,border-color 140ms ease,box-shadow 140ms ease}.book-view__toc-add-trigger::-webkit-details-marker{display:none}.book-view__toc-add-menu[open] .book-view__toc-add-trigger,.book-view__toc-add-trigger:hover{border-color:#818cf8;transform:translateY(-1px);box-shadow:0 10px 24px rgba(79,70,229,.18)}.book-view__toc-add-options{position:absolute;top:calc(100% + 8px);left:0;z-index:25;min-width:182px;border-radius:12px;border:1px solid #dbe2f0;background:#fff;box-shadow:0 14px 32px rgba(17,24,39,.16);padding:6px;display:grid;gap:4px}.book-view__toc-add-option{appearance:none;-webkit-appearance:none;border:0;border-radius:8px;background:0 0;color:#1f2937;font:inherit;font-size:.92rem;font-weight:620;text-align:left;padding:7px 10px;cursor:pointer}.book-view__toc-add-option:hover{background:#eef2ff;color:#312e81}.book-view__toc-add-option:disabled{color:#9ca3af;cursor:not-allowed;background:0 0}.book-view__toc-delete-target{position:relative}.book-view__toc-delete{appearance:none;-webkit-appearance:none;border:1px solid #fda4af;background:#fff1f2;color:#b91c1c;border-radius:999px;width:20px;height:20px;display:inline-grid;place-items:center;font-size:12px;font-weight:700;cursor:pointer;margin-left:6px;vertical-align:middle}.book-view__chapter p{margin:0;font-family:var(--book-font-sans);color:var(--book-text-secondary);line-height:1.6;max-width:540px}.book-view__chapter-meta{margin-top:14px;display:flex;flex-direction:column}.book-view__chapter-tabs{display:flex;align-items:center;gap:2px}.book-view__chapter-tab{background:0 0;border:0;padding:0 12px;height:2rem;display:inline-flex;align-items:center;position:relative;font-family:var(--book-font-sans);font-size:.875rem;font-weight:500;color:var(--book-text-secondary, #78716c);cursor:pointer;white-space:nowrap;transition:color .12s ease}.book-view__chapter-tab:focus-visible,.book-view__chapter-tab:hover{color:var(--book-text-primary);outline:0}.book-view__chapter-tab.is-active{color:var(--book-text-primary);font-weight:700}.book-view__chapter-tab.is-active::before{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--book-text-primary, #1c1917);pointer-events:none}.book-view__chapter[data-active-tab=oppgaver] [data-book-chapter-report],.book-view__chapter[data-active-tab=rapport] [data-book-chapter-breadcrumb],.book-view__chapter[data-active-tab=rapport] [data-book-chapter-description],.book-view__chapter[data-active-tab=rapport] [data-book-chapter-meta],.book-view__chapter[data-active-tab=rapport] [data-book-chapter-title],.book-view__chapter[data-active-tab=rapport] [data-book-editor]{display:none!important}.book-view__chapter-report{display:flex;flex-direction:column;gap:14px}.book-view__report-header{display:flex;align-items:center;gap:12px;margin-bottom:4px}.book-view__report-group-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;background:#fff;border:1px solid var(--book-border);border-radius:999px;font-family:var(--book-font-sans);font-size:.82rem;font-weight:600;color:var(--book-text-primary);cursor:pointer}.book-view__report-group-chip:disabled{cursor:not-allowed;opacity:.65}.book-view__report-group-chev{font-size:.7em;color:var(--book-text-tertiary)}.book-view__report-state{display:flex;align-items:center;justify-content:center;min-height:120px;padding:24px 20px;border-radius:12px;border:1px dashed var(--book-border, #d6d3d1);background:#fafaf9;color:var(--book-text-secondary, #6b7280);font-family:var(--book-font-sans);font-size:.95rem;text-align:center}.book-view__report-state--loading{color:#6b7280;font-style:italic}.book-view__report-state--empty{border-style:dashed}.book-view__report-state--error{border-style:solid;border-color:#fecaca;background:#fef2f2;color:#991b1b}.book-view__report-matrix{background:#fff;border:1px solid var(--book-border);border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.03)}.book-view__report-matrix-row{display:grid;grid-template-columns:180px auto;gap:16px;align-items:center;padding:6px 14px}.book-view__report-matrix-head{background:#faf8f3;border-bottom:1px solid var(--book-border);color:var(--book-text-tertiary);font-family:var(--book-font-sans);font-weight:600;font-size:.66rem;text-transform:uppercase;letter-spacing:.06em}.book-view__report-matrix-row+.book-view__report-matrix-row{border-top:1px solid var(--book-rule, #ececec)}.book-view__report-matrix-name,.book-view__smakebit-card-content strong{font-family:var(--book-font-sans);font-weight:500;color:var(--book-text-primary)}.book-view__report-matrix-name{display:flex;align-items:center;gap:8px;font-size:.78rem;min-width:0}.book-view__report-matrix-name-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.book-view__report-matrix-avatar{width:22px;height:22px;border-radius:999px;background:#137a8a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.62rem;font-weight:700;flex:0 0 auto}.book-view__report-matrix-cells{display:grid;grid-auto-flow:column;grid-auto-columns:22px;gap:4px;justify-content:start}.book-view__report-matrix-col-head{width:22px;height:22px;text-align:center;font-size:.66rem;font-variant-numeric:tabular-nums;color:var(--book-text-tertiary);font-weight:600;padding:4px 0;border-radius:6px;background:#fafafa}.book-view__report-matrix-cell{width:22px;height:22px;border-radius:5px}.book-view__report-matrix-cell--ok{background:#1a7a4e}.book-view__report-matrix-cell--feil{background:#c43a3a}.book-view__report-matrix-cell--ikke{background:#f1efe9;border:1px dashed #d8d4c8;box-sizing:border-box}.book-view__report-legend{display:flex;align-items:center;gap:16px;font-family:var(--book-font-sans);font-size:.74rem;color:var(--book-text-secondary);padding:4px 2px}.book-view__report-legend>span{display:inline-flex;align-items:center;gap:6px}.book-view__report-legend-swatch{display:inline-block;width:14px;height:14px;border-radius:4px;flex:0 0 auto}.book-view__chapter-breadcrumb,.book-view__chapter-label{align-items:center;font-family:var(--book-font-sans);font-weight:500}.book-view__chapter-breadcrumb{display:inline-flex;gap:8px;font-size:.78rem;color:var(--book-text-tertiary, #8a8a8a);margin-bottom:6px;letter-spacing:.01em}.book-view__chapter-breadcrumb::before{content:"";display:inline-block;flex:0 0 auto;width:6px;height:6px;border-radius:999px;background:var(--book-ch, var(--book-accent));opacity:.85}.book-view__chapter-label{display:flex;gap:6px;font-size:.82rem;color:var(--book-text-secondary);margin-bottom:8px}.book-view__chapter-label::before{content:"";display:inline-block;width:14px;height:14px;background:var(--book-accent);mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21l-7-4-7 4V5a2 2 0 012-2h10a2 2 0 012 2z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21l-7-4-7 4V5a2 2 0 012-2h10a2 2 0 012 2z'/%3E%3C/svg%3E");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;flex-shrink:0}.book-view__chapter-title-text{display:block;font-family:var(--book-font-serif);font-size:clamp(1.6rem,2.8vw,2.2rem);font-weight:700;color:var(--book-text-primary);line-height:1.15;letter-spacing:-.02em;margin-bottom:4px;position:relative}.book-view__chapter-title-text::after{content:"";display:block;width:36px;height:3px;background:var(--book-ch, var(--book-accent));border-radius:2px;margin-top:10px;opacity:.9}[data-book-chapter-title]{position:relative}[data-book-chapter-title] .book-view__chapter-title-heart{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:inline-flex;align-items:center}.book-view__smakebit-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--book-border);margin-bottom:16px;margin-top:24px}.book-view__smakebit-count,.book-view__smakebit-title{font-family:var(--book-font-sans);color:var(--book-text-secondary)}.book-view__smakebit-title{margin:0;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em}.book-view__smakebit-count{display:inline-flex;align-items:center;font-size:.75rem;font-weight:600;background:#f5f5f4;border:1px solid var(--book-border);border-radius:999px;padding:3px 12px}.book-view__smakebit-cards{display:flex;flex-direction:column;gap:10px}.book-view__smakebit-card{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid rgba(214,211,209,.7);border-radius:16px;padding:16px 18px;box-shadow:0 1px 3px rgba(0,0,0,.03);transition:box-shadow .15s ease}.book-view__smakebit-card:hover{box-shadow:0 3px 10px rgba(0,0,0,.06)}.book-view__smakebit-card-number{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--book-ch, var(--book-accent));color:#fff;font-family:var(--book-font-serif);font-size:.85rem;font-weight:700}.book-view__smakebit-card-content{flex:1;min-width:0}.book-view__smakebit-card-content strong{display:block;font-size:.92rem;line-height:1.3}.book-view__start-chapter-btn{display:inline-flex;align-items:center;gap:6px;margin-top:auto;align-self:flex-end;padding:12px 28px;border:0;border-radius:12px;background:var(--book-accent);color:#fff;font-family:var(--book-font-sans);font-size:.95rem;font-weight:600;cursor:pointer;transition:background .15s ease,box-shadow .15s ease;box-shadow:0 4px 14px rgba(79,70,229,.2)}.book-view__start-chapter-btn:focus-visible,.book-view__start-chapter-btn:hover{background:var(--book-accent-dark);box-shadow:0 6px 18px rgba(79,70,229,.3);outline:0}.book-view__start-chapter-btn-arrow{font-size:1.3em;line-height:1}.book-view__chapter-save-btn:disabled{background:#cbd5e1;color:#475569;cursor:not-allowed;box-shadow:none}.book-view__chapter-save-btn:disabled:focus-visible,.book-view__chapter-save-btn:disabled:hover{background:#cbd5e1;color:#475569;box-shadow:none}.book-view__floating-actions{position:fixed;bottom:32px;right:36px;z-index:60;display:flex;flex-direction:column;align-items:stretch;gap:10px;pointer-events:none;max-width:min(96vw,720px)}.book-view__floating-actions-row:not(:has(.book-view__floating-btn:not([hidden]))),body:not([data-book-route-active=true]) .book-view__floating-actions{display:none}.book-view__floating-actions>*{pointer-events:auto}.book-view__floating-status[hidden]{display:none}.book-view__floating-status{margin:0;padding:10px 16px;border-radius:10px;background:#fff;border:1px solid #d6d3d1;box-shadow:0 6px 20px rgba(0,0,0,.08);font-family:"Inter",system-ui,sans-serif;font-size:.92rem;font-weight:500;color:#1c1917;align-self:flex-end}.book-view__floating-status.is-success{background:#ecfdf5;border-color:#6ee7b7;color:#065f46}.book-view__floating-status.is-error{background:#fef2f2;border-color:#fca5a5;color:#991b1b}.book-view__floating-status.is-flash{animation:bookViewFloatingStatusFlash .55s cubic-bezier(.2,.8,.2,1)}@media (prefers-reduced-motion:reduce){.book-view__floating-status.is-flash{animation:none}}.book-view__floating-actions-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.book-view__floating-actions-row:has(.book-view__floating-btn:not([hidden])~.book-view__floating-btn:not([hidden])){padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border:1px solid #e7e5e4;box-shadow:0 8px 28px rgba(0,0,0,.12)}.book-view__floating-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:10px;background:#5b54f5;color:#fff;font-family:"Inter",system-ui,sans-serif;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s ease,box-shadow .15s ease,color .15s ease,border-color .15s ease,transform .08s ease;box-shadow:0 1px 0 rgba(0,0,0,.06),0 2px 6px rgba(91,84,245,.18)}.book-view__floating-btn:focus-visible,.book-view__floating-btn:hover{background:#4a44d9;box-shadow:0 1px 0 rgba(0,0,0,.08),0 4px 10px rgba(91,84,245,.25);transform:translateY(-1px);outline:0}.book-view__floating-btn[hidden],body[data-ai-composer-open] .book-view__floating-btn--generate,body[data-ai-preview-active] .book-view__floating-btn--generate{display:none}.book-view__floating-btn:disabled,.book-view__floating-btn[disabled]{background:#cbd5e1;color:#475569;cursor:not-allowed;box-shadow:none}.book-view__floating-btn:disabled:hover,.book-view__floating-btn[disabled]:hover{background:#cbd5e1;color:#475569;box-shadow:none}.book-view__floating-btn--discard{background:#fff;color:#1c1917;border:1px solid #d6d3d1;box-shadow:none}.book-view__floating-btn--discard:focus-visible,.book-view__floating-btn--discard:hover{background:#f5f5f4;color:#1c1917;border-color:#a8a29e;box-shadow:none}.book-view__floating-btn--discard:disabled,.book-view__floating-btn--discard[disabled]{background:#fff;color:#a8a29e;border-color:#e7e5e4}.book-view__floating-btn--generate{background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%)}.book-view__floating-btn--generate:focus-visible,.book-view__floating-btn--generate:hover{background:linear-gradient(140deg,#9333ea 0,#6b21a8 100%)}.book-view__chapter-discard-btn{background:#fff;color:var(--book-text-primary);box-shadow:none;border:1px solid #d6d3d1}.book-view__chapter-discard-btn:focus-visible,.book-view__chapter-discard-btn:hover{background:#f5f5f4;color:var(--book-text-primary);box-shadow:none;border-color:#a8a29e}.book-view__chapter-discard-btn:disabled{background:#fff;color:#a8a29e;cursor:not-allowed;border-color:#e7e5e4;box-shadow:none}.book-view__chapter-discard-btn:disabled:focus-visible,.book-view__chapter-discard-btn:disabled:hover{background:#fff;color:#a8a29e;border-color:#e7e5e4;box-shadow:none}.book-view__chapter-cta-row{display:flex;gap:10px;align-self:flex-end;margin-top:auto}.book-view__chapter-cta-row .book-view__start-chapter-btn{align-self:auto;margin-top:0;margin-right:0}.book-view__chapter-generate-btn{background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%)}.book-view__chapter-generate-btn:focus-visible,.book-view__chapter-generate-btn:hover{background:linear-gradient(140deg,#9333ea 0,#6b21a8 100%)}@media (max-width:768px){.book-view{padding:0;background:#fff;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;border:0;border-radius:0;box-shadow:none;background-image:none}.book-view__layout,body[data-layout-type=book-toc] .book-view__layout,body[data-layout-type=utility-shell] .book-view__layout{grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr);flex:1;min-height:0}.book-view__divider,body[data-layout-type=book-toc] .book-view__divider,body[data-layout-type=utility-shell] .book-view__divider{display:none!important}body[data-layout-type=book-toc] .book-view:not(.book-view__toc):not(.book-view__chapter)::after,body[data-layout-type=book-toc] .book-view:not(.book-view__toc):not(.book-view__chapter)::before,body[data-layout-type=utility-shell] .book-view:not(.book-view__toc):not(.book-view__chapter)::after,body[data-layout-type=utility-shell] .book-view:not(.book-view__toc):not(.book-view__chapter)::before{display:none}.book-view__toc{position:fixed;top:0;left:0;bottom:0;width:min(82vw,360px);max-width:360px;height:100dvh;transform:translateX(-100%);transition:transform 220ms ease;z-index:50;box-shadow:2px 0 24px rgba(0,0,0,.18);border-right:1px solid rgba(0,0,0,.06);border-bottom:none;padding:16px 14px 24px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}body[data-toc-open=true] .book-view__toc{transform:translateX(0)}body[data-toc-open=true]{overflow:hidden}.book-view__toc::after,.book-view__toc::before{display:none}.book-view__toc-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:49;opacity:0;pointer-events:none;transition:opacity 220ms ease}body[data-toc-open=true] .book-view__toc-backdrop{opacity:1;pointer-events:auto}.book-view__toc [data-top-tabs]{margin:0 0 12px;padding:6px 4px}.book-view__toc-drawer-toggle{display:inline-flex;align-items:center;gap:6px;position:fixed;top:10px;left:10px;z-index:48;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:10px;padding:8px 12px;min-height:44px;min-width:44px;color:#1f2937;font-size:.92rem;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.08);-webkit-tap-highlight-color:transparent}.book-view__toc-drawer-toggle:focus-visible{outline:2px solid var(--profile-accent-color, #0f6d8f);outline-offset:2px}.book-view__toc-drawer-toggle svg{flex:0 0 auto}body[data-toc-open=true] .book-view__toc-drawer-toggle{opacity:0;pointer-events:none;transition:opacity 160ms ease}body:has(.book-view[hidden]) .book-view__toc-drawer-toggle,body:has(.book-view__toc[style*=none]) .book-view__toc-drawer-toggle{display:none!important}.book-view__toc-chapter-header{min-height:44px}.book-view__toc-chapter-chevron{padding:10px 6px;box-sizing:content-box}.book-view__toc-subchapter-link{min-height:44px;padding:10px 8px}.book-view__toc-chapter-header .fa-dots,.book-view__toc-drag-handle{display:none!important}.book-view__chapter{padding:20px 16px;overflow-y:auto;overflow-x:hidden;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.book-view__chapter-header{margin:0-16px 16px;padding:0 12px 0 16px}}@media (min-width:769px){.book-view__toc-backdrop,.book-view__toc-drawer-toggle{display:none}}.book-view__toc-drawer-toggle-label{white-space:nowrap}@media (max-width:480px){.book-view__toc{width:min(86vw,320px);padding:12px 12px 20px}.book-view__toc .book-view__toc-chapter-link{font-size:clamp(.98rem,3.6vw,1.15rem)}.book-view__toc .book-view__toc-subchapter-list{padding-left:10px}.book-view__toc-drawer-toggle .book-view__toc-drawer-toggle-label{display:none}.book-view__chapter{padding:16px 14px}}.book-view__pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#edf2ff;color:#1e3a8a;border:1px solid #c7d2fe;font-size:.82rem;font-weight:600}.book-view__subchapters{margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}.book-view__editor h3,.book-view__subchapters h3{margin:0 0 10px;font-size:1rem;color:#111827}.book-view__subchapter-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}.book-view__subchapter-item{color:#1f2937}.book-view__subchapter-item.is-active strong{color:#6d28d9}.book-view__subchapter-id{color:#6b7280;font-size:.88rem}.book-view__subchapter-description{color:#4b5563;margin-top:2px}.book-view__task-summary{margin:10px 0 0;color:#334155}.book-view__editor{margin-top:20px;padding-top:16px;border-top:1px solid #e5e7eb}.book-view__editor:has([data-book-editor-mode=c]){margin-top:0;padding-top:0;border-top:0}.book-view__chapter:has([data-book-editor-mode=c]) h2{margin-bottom:6px}.book-view__chapter:has([data-book-editor-mode=c]) .book-view__chapter-meta{margin-top:0}[data-book-editor-mode=c] .book-view__editor-preview-list{margin-top:0}.book-view__editor-status{margin:0 0 12px;border-radius:12px;padding:9px 12px;border:1px solid #cbd5e1;background:#f8fafc;color:#1f2937;font-weight:600}.book-view__editor-status.is-success{border-color:#6ee7b7;background:#ecfdf3;color:#065f46}.book-view__editor-status.is-error{border-color:#fca5a5;background:#fff1f2;color:#991b1b}.book-view__editor-shell{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:14px}.book-view__editor-panel{border:1px solid #d6deeb;border-radius:14px;background:#fff;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05)}.book-view__editor-panel--controls{background:linear-gradient(175deg,#fff 0,#f7fbff 100%)}.book-view__editor-panel--preview{background:linear-gradient(170deg,#fff 0,#f8fafc 100%)}.book-view__editor-headline h3{margin:0;font-size:1.04rem;letter-spacing:-.01em;color:#111827}.book-view__editor-headline p{margin:4px 0 0;color:#64748b;font-size:.86rem;line-height:1.4}.book-view__editor-actions{display:grid;gap:8px;margin-top:12px}.book-view__editor-actions button{appearance:none;border:1px solid #c7d2e5;border-radius:11px;background:linear-gradient(165deg,#fff 0,#f1f5f9 100%);color:#0f172a;font:inherit;font-size:.91rem;font-weight:640;padding:10px 12px;text-align:left;cursor:pointer;transition:border-color 130ms ease,transform 130ms ease,box-shadow 130ms ease}.book-view__editor-actions button:focus-visible,.book-view__editor-actions button:hover{border-color:#93c5fd;transform:translateY(-1px);box-shadow:0 8px 16px rgba(59,130,246,.14);outline:0}.book-view__editor-actions button:disabled{color:#94a3b8;background:#f4f7fb;border-color:#e2e8f0;cursor:not-allowed;transform:none;box-shadow:none}.book-view__editor-context{margin:12px 0 0;border:1px solid #dbe5f4;border-radius:12px;background:#f8fbff;padding:10px 11px;display:grid;gap:8px}.book-view__editor-context-row{display:grid;gap:2px}.book-view__editor-context dt{margin:0;color:#64748b;font-size:.73rem;font-weight:650;text-transform:uppercase;letter-spacing:.08em}.book-view__editor-context dd{margin:0;color:#0f172a;font-size:.9rem;line-height:1.35}.book-view__editor-preview-list{margin-top:12px;display:grid}.book-view__editor-preview-task{border:1px solid #dbe2f0;border-radius:12px;background:#fbfdff;padding:10px;display:grid;gap:8px}.book-view__editor-preview-task.is-active{border-color:#93c5fd;background:#eff6ff}.book-view__editor-preview-task-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.book-view__editor-preview-task-button{appearance:none;border:0;background:0 0;color:#0f172a;font:inherit;padding:0;margin:0;text-align:left;display:grid;gap:1px;cursor:pointer}.book-view__editor-preview-task-button strong{font-size:.98rem;line-height:1.25}.book-view__editor-preview-task-button.is-active strong,.book-view__editor-preview-task-button:focus-visible strong,.book-view__editor-preview-task-button:hover strong{color:#1d4ed8}.book-view__editor-preview-task-button:focus-visible{outline:2px solid #93c5fd;outline-offset:3px;border-radius:8px}.book-view__editor-preview-task-index{text-transform:uppercase;letter-spacing:.08em}.book-view__editor-preview-task-id{font-size:.73rem;color:#475569;background:#edf2f9;border:1px solid #d7e0ee;border-radius:999px;padding:2px 8px;line-height:1.2;white-space:nowrap}.book-view__editor-preview-task-description{margin:0;color:#475569;font-size:.86rem;line-height:1.4}.book-view__editor-preview-subtasks{display:grid;gap:6px}.book-view__editor-preview-subtask{appearance:none;border:1px solid #dbe5f3;border-radius:10px;background:#fff;padding:8px 9px;margin:0;text-align:left;color:#1e293b;display:grid;gap:2px;cursor:pointer}.book-view__editor-preview-subtask:focus-visible,.book-view__editor-preview-subtask:hover{border-color:#93c5fd;background:#f8fbff;outline:0}.book-view__editor-preview-subtask.is-active{border-color:#60a5fa;background:#eef6ff}.book-view__editor-preview-subtask-title{font-size:.9rem;font-weight:640;color:#0f172a}.book-view__editor-preview-subtask-app{font-size:.78rem;color:#2563eb}.book-view__editor-preview-subtask-text{font-size:.8rem;color:#64748b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-view__editor-preview-empty{margin-top:22px;border:1.5px dashed #c8d3e8;border-radius:12px;padding:18px 20px;background:linear-gradient(180deg,#fbfcff,#f4f6fc)}.book-view__editor-preview-empty strong{display:block;color:var(--book-text-primary, #0f172a);font-size:.94rem;font-weight:600}.book-view__editor-preview-empty p{margin:4px 0 0;color:#6e7da6;font-size:.84rem;line-height:1.5}.book-view__editor-preview-empty-inline{margin:2px 0 0;color:#64748b;font-size:.83rem}.book-view__editor-preview-shell{border:0;border-radius:0;background:0 0;padding:0;box-shadow:none}.book-view__editor-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.book-view__editor-preview-head h3{margin:0;font-size:1.08rem;letter-spacing:-.01em;color:#111827}.book-view__editor-preview-head p{margin:4px 0 0;color:#475569;font-size:.86rem;line-height:1.4}.book-view__editor-preview-add{flex:0 0 auto;margin-top:2px}.book-view__task-composer{margin:0 0 12px;border:1px solid #d7e3f6;border-radius:13px;background:linear-gradient(180deg,#fff 0,#f8fbff 100%);padding:12px;display:grid;gap:10px;box-shadow:0 8px 18px rgba(15,23,42,.08)}.book-view__task-composer.is-submitting{opacity:.72}.book-view__task-composer-field{display:grid;gap:6px}.book-view__task-composer-label{color:#334155;font-size:.79rem;font-weight:650;letter-spacing:.02em}.book-view__task-composer-input{appearance:none;border:1px solid #c6d4ed;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:.92rem;line-height:1.35;padding:9px 10px;transition:border-color 130ms ease,box-shadow 130ms ease}.book-view__task-composer-input:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.18)}.book-view__task-composer-options{border:1px solid #d4dff1;border-radius:10px;background:#fff;max-height:190px;overflow-y:auto;display:grid;gap:2px;padding:4px}.book-view__task-composer-option{appearance:none;border:0;border-radius:8px;background:0 0;padding:6px 8px;margin:0;text-align:left;display:grid;gap:2px;cursor:pointer}.book-view__task-composer-option.is-highlighted,.book-view__task-composer-option:hover{background:#eff6ff}.book-view__task-composer-option.is-selected{background:#dbeafe}.book-view__task-composer-option-title{color:#0f172a;font-size:.88rem;font-weight:620;line-height:1.25}.book-view__task-composer-option-path{color:#64748b;font-size:.76rem;line-height:1.2}.book-view__task-composer-help{margin:0;color:#64748b;font-size:.78rem;line-height:1.35}.book-view__task-composer-empty{color:#64748b;font-size:.82rem;padding:7px 8px}.book-view__task-composer-error{margin:0;color:#b91c1c;font-size:.82rem;font-weight:610}.book-view__task-composer-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.book-view__task-composer-cancel,.book-view__task-composer-submit{appearance:none;border:1px solid #c7d2e5;border-radius:9px;font:inherit;font-size:.87rem;font-weight:620;padding:8px 12px;cursor:pointer;transition:border-color 130ms ease,box-shadow 130ms ease,transform 130ms ease}.book-view__task-composer-cancel{background:#fff;color:#334155}.book-view__task-composer-submit{border-color:#4f46e5;background:linear-gradient(140deg,#4f46e5 0,#4338ca 100%);color:#fff}.book-view__task-composer-cancel:focus-visible,.book-view__task-composer-cancel:hover,.book-view__task-composer-submit:focus-visible,.book-view__task-composer-submit:hover{outline:0;transform:translateY(-1px);box-shadow:0 8px 16px rgba(37,99,235,.16)}.book-view__ai-composer{margin:0 0 12px;border:1px solid #e9d5ff;border-radius:13px;background:linear-gradient(180deg,#fff 0,#faf5ff 100%);padding:14px;display:grid;gap:12px;box-shadow:0 8px 18px rgba(76,29,149,.08)}.book-view__ai-composer.is-busy{opacity:.72}.book-view__ai-composer-header{display:grid;gap:4px}.book-view__ai-composer-heading{margin:0;font-size:1.02rem;font-weight:700;color:#581c87;letter-spacing:-.005em}.book-view__ai-composer-subtitle{margin:0;color:#64748b;font-size:.82rem;line-height:1.4}.book-view__ai-composer-field,.book-view__ai-composer-field--inline{display:grid;gap:6px}.book-view__ai-composer-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.book-view__ai-composer-label{color:#334155;font-size:.79rem;font-weight:650;letter-spacing:.02em}.book-view__ai-composer-prompt,.book-view__ai-composer-select{appearance:none;border:1px solid #d8b4fe;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-size:.92rem;line-height:1.35;padding:9px 10px;transition:border-color 130ms ease,box-shadow 130ms ease;resize:vertical}.book-view__ai-composer-prompt:focus,.book-view__ai-composer-select:focus{outline:0;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.18)}.book-view__ai-composer-textarea-wrap{position:relative}.book-view__ai-composer-textarea-wrap .book-view__ai-composer-prompt{padding-bottom:44px;padding-left:44px;width:100%;box-sizing:border-box}.book-view__ai-composer-upload{position:absolute;left:8px;bottom:8px;width:32px;height:32px;border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9;color:#475569;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background 120ms ease,color 120ms ease,border-color 120ms ease}.book-view__ai-composer-upload:focus-visible,.book-view__ai-composer-upload:hover{background:#475569;color:#fff;border-color:#475569;outline:0}.book-view__ai-composer-upload svg{width:18px;height:18px}.book-view__ai-composer-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 8px}.book-view__ai-composer-thumb{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;border:1px solid #cbd5e1;background:#f8fafc}.book-view__ai-composer-thumb img{width:100%;height:100%;object-fit:cover;display:block}.book-view__ai-composer-thumb-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;border:0;background:rgba(15,23,42,.78);color:#fff;font-size:14px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}.book-view__ai-composer-thumb-remove:focus-visible,.book-view__ai-composer-thumb-remove:hover{background:#0f172a;outline:0}.book-view__ai-composer-inline-submit{position:absolute;right:8px;bottom:8px;width:32px;height:32px;border:1px solid #cbd5e1;border-radius:8px;background:#f1f5f9;color:#475569;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background 120ms ease,color 120ms ease,border-color 120ms ease}.book-view__ai-composer-inline-submit:focus-visible,.book-view__ai-composer-inline-submit:hover{background:#475569;color:#fff;border-color:#475569;outline:0}.book-view__ai-composer-inline-submit svg{width:16px;height:16px}.book-view__ai-composer-inline-submit[data-state=busy]{background:#1e293b;color:#fff;border-color:#1e293b}.book-view__ai-composer-inline-submit[data-state=busy]:hover{background:#0f172a}.book-view__ai-composer-help{margin:0;color:#64748b;font-size:.78rem;line-height:1.35}.book-view__ai-composer-apps{border:1px solid #ede9fe;border-radius:10px;padding:8px 10px;background:#fff}.book-view__ai-composer-apps-summary{cursor:pointer;font-size:.85rem;font-weight:620;color:#6b21a8;list-style:none;padding:2px 0}.book-view__ai-composer-apps-summary::-webkit-details-marker{display:none}.book-view__ai-composer-apps[open] .book-view__ai-composer-apps-summary{margin-bottom:8px}.book-view__ai-composer-chips{display:flex;flex-wrap:wrap;gap:6px}.book-view__ai-composer-chip{appearance:none;border:1px solid #d8b4fe;border-radius:999px;background:#fff;color:#6b21a8;font:inherit;font-size:.78rem;font-weight:600;padding:4px 10px;cursor:pointer;transition:background 120ms ease,border-color 120ms ease,transform 120ms ease}.book-view__ai-composer-chip:hover{background:#f5f3ff;transform:translateY(-1px)}.book-view__ai-composer-chip.is-selected{background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%);color:#fff;border-color:#7e22ce}.book-view__ai-composer-status{margin:0;font-size:.85rem;line-height:1.4;font-weight:600;padding:8px 10px;border-radius:8px}.book-view__ai-composer-status[data-kind=info]{background:#eff6ff;color:#1e40af}.book-view__ai-composer-status[data-kind=success]{background:#ecfdf5;color:#065f46}.book-view__ai-composer-status[data-kind=error]{background:#fef2f2;color:#b91c1c}.book-view__ai-composer-preview{display:grid;gap:10px;border-top:1px dashed #d8b4fe;padding-top:12px}.book-view__ai-composer-preview-title{margin:0;font-size:.95rem;font-weight:700;color:#0f172a}.book-view__ai-composer-preview-list{display:grid;gap:10px}.book-view__ai-composer-preview-list.book-view__editor-preview-list--two-col{gap:12px}.book-view__editor-preview-list--two-col .book-view__editor-preview-task-group--wide,.book-view__editor-preview-list--two-col .book-view__editor-preview-task-group:has(.book-view__editor-preview-task-subtasks>:nth-child(2)){grid-column:1/-1}.book-view__editor-preview-list--two-col .book-view__editor-preview-task-group--wide .book-view__editor-preview-task-subtasks,.book-view__editor-preview-list--two-col .book-view__editor-preview-task-group:has(.book-view__editor-preview-task-subtasks>:nth-child(2)) .book-view__editor-preview-task-subtasks{display:grid;grid-template-columns:repeat(auto-fit,minmax(390px,1fr));gap:12px}.book-view__ai-composer-preview-card-wrap{min-width:0;position:relative}.book-view__ai-composer-card-checkbox{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;border:1.5px solid #a855f7;background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%);color:#fff;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;z-index:2;transition:background 120ms ease,border-color 120ms ease,transform 120ms ease}.book-view__ai-composer-card-checkbox svg{width:14px;height:14px;pointer-events:none}.book-view__ai-composer-card-checkbox:focus-visible,.book-view__ai-composer-card-checkbox:hover{transform:scale(1.08);outline:0}.book-view__ai-composer-card-checkbox[aria-pressed=false]{background:#fff;border-color:#cbd5e1;color:#cbd5e1}.book-view__ai-composer-card-checkbox[aria-pressed=false] svg{visibility:hidden}.book-view__ai-composer-preview-card-wrap.is-deselected .book-view__editor-preview-card{opacity:.4;filter:grayscale(.85);transition:opacity 150ms ease,filter 150ms ease}body[data-ai-composer-open] .book-view__chapter-generate-btn,body[data-ai-preview-active] .book-view__chapter-generate-btn{display:none}.book-view__ai-composer-preview-card{border:1px solid #e9d5ff;border-radius:11px;background:#fff;padding:10px 12px;display:grid;gap:6px}.book-view__editor-preview-card-choices{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin-top:4px;font-size:.8rem;line-height:1.25}.book-view__editor-preview-card-choices[data-columns]:not([data-columns="1"]){display:grid;grid-template-columns:repeat(var(--preview-choice-columns, 1),minmax(0,1fr));gap:2px 10px;align-items:start}#exportCard .alt-text,.book-view__editor-preview-card-choices-label{display:none}.book-view__editor-preview-card-choice{display:flex!important;align-items:center;gap:6px;padding:2px 0;border:0;background:0 0;color:#0f172a;overflow:hidden;min-width:0}.book-view__editor-preview-card-choice>p{display:inline;margin:0;padding:0}.book-view__editor-preview-card-choice::before{content:"";flex:0 0 auto;width:12px;height:12px;border:1.5px solid #94a3b8;background:#fff;display:inline-block;box-sizing:border-box}.book-view__editor-preview-card-choice[data-choice-mode=mc]::before{border-radius:2px}.book-view__editor-preview-card-choice[data-choice-mode=radio]::before{border-radius:50%}.book-view__editor-preview-card-choice--correct{color:#065f46;font-weight:600}.book-view__editor-preview-card-choice--correct::before{background:#10b981;border-color:#059669}[data-book-editor-mode=c] .book-view__editor-preview-card-choice--correct{color:#0f172a;font-weight:400}[data-book-editor-mode=c] .book-view__editor-preview-card-choice--correct::before{background:#fff;border-color:#94a3b8}.book-view__editor-preview-choices-wrap{display:flex;flex-direction:column;min-width:0;padding:6px 10px;border:1px solid var(--book-border, #e2e8f0);border-radius:8px;overflow:hidden;position:relative}.book-view__editor-preview-choices-wrap .book-view__editor-preview-card-choices{margin-top:0}.book-view__editor-preview-card-choice--selected-by-student::before,[data-book-editor-mode=c] .book-view__editor-preview-card-choice--selected-by-student::before{background:#2563eb;border-color:#1d4ed8}.book-view__editor-preview-card-choice--selected-by-student,[data-book-editor-mode=c] .book-view__editor-preview-card-choice--selected-by-student{font-weight:600;color:#1e3a8a}.book-view__ai-composer-preview-card-header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}.book-view__ai-composer-preview-card-title{font-size:.92rem;font-weight:650;color:#0f172a}.book-view__ai-composer-preview-card-app{font-size:.75rem;font-weight:600;color:#6b21a8;background:#f5f3ff;padding:2px 8px;border-radius:999px}.book-view__ai-composer-preview-card-text{margin:0;color:#334155;font-size:.86rem;line-height:1.45;white-space:pre-wrap}.book-view__ai-composer-preview-card-meta{display:flex;gap:6px;flex-wrap:wrap}.book-view__ai-composer-preview-card-meta-chip{font-size:.7rem;font-weight:600;color:#64748b;background:#f1f5f9;padding:2px 7px;border-radius:999px}.book-view__ai-composer-preview-card-mathengine{margin-top:6px;padding:6px 10px;border-radius:8px;background:#fef3c7;color:#78350f;font-size:.78rem;font-family:"Source Code Pro",ui-monospace,monospace;border:1px solid #fde68a}.book-view__ai-composer-preview-card-figure{margin-top:8px;border:1px solid #e9d5ff;border-radius:8px;overflow:hidden;background:#fff;height:180px;pointer-events:none}.book-view__ai-composer-preview-card-iframe{width:100%;height:100%;border:0;display:block}.book-view__ai-composer-preview-card-figure-error{margin-top:8px;padding:8px 10px;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:.8rem;font-weight:600;border:1px solid #fecaca}.book-view__ai-composer-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.book-view__ai-composer-refine{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px dashed #d8b4fe;border-radius:10px;background:#faf5ff}.book-view__ai-composer-refine-label{color:#6b21a8;font-size:.79rem;font-weight:650;letter-spacing:.02em}.book-view__ai-composer-refine-hint{margin:0;color:#64748b;font-size:.78rem;line-height:1.35}.book-view__ai-composer-refine-input-wrap{display:flex;align-items:stretch;gap:8px}.book-view__ai-composer-refine-input{appearance:none;flex:1;border:1px solid #d8b4fe;border-radius:9px;background:#fff;color:#0f172a;font:inherit;font-size:.9rem;line-height:1.4;padding:8px 10px;resize:vertical;min-height:38px;transition:border-color 130ms ease,box-shadow 130ms ease}.book-view__ai-composer-refine-input:focus{outline:0;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.18)}.book-view__ai-composer-refine-submit{appearance:none;align-self:flex-end;border:1px solid #7e22ce;border-radius:9px;background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%);color:#fff;font:inherit;font-size:.85rem;font-weight:620;padding:8px 14px;cursor:pointer;transition:transform 130ms ease,box-shadow 130ms ease;white-space:nowrap}.book-view__ai-composer-refine-submit:focus-visible,.book-view__ai-composer-refine-submit:hover:not(:disabled){outline:0;transform:translateY(-1px);box-shadow:0 8px 16px rgba(126,34,206,.22)}.book-view__ai-composer-refine-input:disabled,.book-view__ai-composer-refine-submit:disabled{cursor:not-allowed;opacity:.6;transform:none;box-shadow:none}.book-view__ai-composer-cancel,.book-view__ai-composer-regenerate,.book-view__ai-composer-submit{appearance:none;border:1px solid #c7d2e5;border-radius:9px;font:inherit;font-size:.87rem;font-weight:620;padding:8px 14px;cursor:pointer;transition:border-color 130ms ease,box-shadow 130ms ease,transform 130ms ease,background 130ms ease}.book-view__ai-composer-cancel{background:#fff;color:#334155}.book-view__ai-composer-regenerate{background:#fff;color:#6b21a8;border-color:#d8b4fe}.book-view__ai-composer-submit{border-color:#7e22ce;background:linear-gradient(140deg,#a855f7 0,#7e22ce 100%);color:#fff}.book-view__ai-composer-cancel:focus-visible,.book-view__ai-composer-cancel:hover:not(:disabled),.book-view__ai-composer-regenerate:focus-visible,.book-view__ai-composer-regenerate:hover:not(:disabled),.book-view__ai-composer-submit:focus-visible,.book-view__ai-composer-submit:hover:not(:disabled){outline:0;transform:translateY(-1px);box-shadow:0 8px 16px rgba(126,34,206,.18)}.book-view__ai-composer-cancel:disabled,.book-view__ai-composer-regenerate:disabled,.book-view__ai-composer-submit:disabled{cursor:not-allowed;opacity:.6;transform:none;box-shadow:none}.book-view__editor-preview-list{gap:16px;padding-right:3px}.book-view__editor-preview-list--two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(390px,1fr));gap:12px}.book-view__editor-preview-task-group{display:grid;gap:8px;background:0 0}.book-view__editor-preview-task-group.book-view__editor-preview-task-group--ai-suggestion,.book-view__modea-subtask.book-view__modea-subtask--ai-suggestion,.book-view__modea-task.book-view__modea-task--ai-suggestion{position:relative;border:2px solid var(--ai-purple, #8b5cf6);border-radius:12px;background:rgba(139,92,246,.04);padding:8px}.book-view__editor-preview-task-group.book-view__editor-preview-task-group--ai-suggestion::before,.book-view__modea-task.book-view__modea-task--ai-suggestion::before{content:"✨ AI-forslag — ikke lagret enda";display:block;position:absolute;top:-12px;left:12px;background:var(--ai-purple, #8b5cf6);color:#fff;font-size:.7rem;font-weight:600;padding:2px 8px;border-radius:999px;z-index:1;letter-spacing:.02em}.book-view__modea-task:not(.book-view__modea-task--ai-suggestion) .book-view__modea-subtask.book-view__modea-subtask--ai-suggestion{border:2px solid var(--ai-purple, #8b5cf6);background:rgba(139,92,246,.04)}.book-view__editor-preview-task-head{display:flex;align-items:baseline;gap:8px;padding:4px 4px 6px;font-family:var(--book-font-sans, inherit)}.book-view__editor-preview-task-index{flex:0 0 auto;font-weight:700;color:#0f172a;font-size:1rem;line-height:1.3}.book-view__editor-preview-task-shared{flex:1 1 auto;min-width:0;color:#0f172a;font-size:1rem;line-height:1.4}.book-view__editor-preview-task-subtasks{display:grid;gap:8px}.book-view__editor-preview-card{appearance:none;width:100%;border:1px solid var(--book-border, #d6d3d1);border-radius:12px;background:0 0;padding:12px 14px;margin:0;text-align:left;color:#0f172a;cursor:pointer;text-decoration:none;transition:border-color 140ms ease,box-shadow 140ms ease,background-color 140ms ease}.book-view__editor-preview-card:focus,.book-view__editor-preview-card:hover,.book-view__editor-preview-card:visited{text-decoration:none}.book-view__editor-preview-card-wrap{position:relative;transition:transform 140ms ease}.book-view__editor-preview-card-wrap:hover{transform:scale(1.01);z-index:1}.book-view__editor-preview-heart{position:absolute;top:8px;right:8px;z-index:2;display:inline-flex;align-items:center;pointer-events:auto}.book-view__editor-preview-history{display:flex;align-items:center;min-width:0;padding:6px 10px;border:1px solid var(--book-border, #e2e8f0);border-radius:8px;overflow:hidden}.book-view__editor-preview-history .mattemotor__history-item{display:flex;align-items:center;gap:12px;min-width:0;width:100%}.book-view__editor-preview-history .mattemotor__history-math{order:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;flex:1}.book-view__editor-preview-history .mattemotor__history-status{order:2;flex-shrink:0}.book-view__editor-preview-history--inline{margin-top:8px;align-self:stretch;overflow:visible;padding-right:6px}.book-view__editor-preview-history--inline .mattemotor__history-item{width:100%;gap:8px}.book-view__editor-preview-cross,.book-view__editor-preview-trophy{position:absolute;top:50%;right:-20px;transform:translateY(-50%);z-index:2;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;pointer-events:none;background:#fff;border-radius:50%;border:2px solid #16a34a;box-shadow:0 2px 6px rgba(15,23,42,.12);box-sizing:border-box;padding:4px}.book-view__editor-preview-cross svg,.book-view__editor-preview-trophy svg{width:100%;height:100%}.book-view__editor-preview-cross{border:2px solid #dc2626;padding:8px}.book-view__editor-preview-card.book-view__editor-preview-card--status-correct{border-color:#16a34a;border-width:2px}.book-view__editor-preview-card.book-view__editor-preview-card--status-wrong{border-color:#dc2626;border-width:2px}.book-view__editor-preview-card.book-view__editor-preview-card--status-in-progress{border-color:#2563eb;border-width:2px}body:not([data-host-mode=student-view]) .book-view__editor-preview-card:focus-visible,body:not([data-host-mode=student-view]) .book-view__editor-preview-card:hover{border-color:#94a3b8;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.08);outline:0}body[data-host-mode=student-view] .book-view__editor-preview-card{cursor:default}body[data-host-mode=student-view] .book-view__editor-preview-card-wrap:hover{transform:none}body[data-host-mode=student-view] .book-view__editor-preview-card[data-book-action=open-preview-task]{cursor:pointer}body[data-host-mode=student-view] .book-view__editor-preview-card-wrap:has(>.book-view__editor-preview-card[data-book-action=open-preview-task]):hover{transform:scale(1.01);z-index:1;box-shadow:0 6px 16px rgba(15,23,42,.08)}.book-view__editor-preview-card.is-active:not(.book-view__editor-preview-card--status-correct):not(.book-view__editor-preview-card--status-wrong):not(.book-view__editor-preview-card--status-in-progress){border-color:var(--book-border, #d6d3d1)}.book-view__editor-preview-card:has(.book-view__editor-preview-iframe){padding:8px 12px;gap:6px}.book-view__editor-preview-figure{border:1px solid #dbe6f5;border-radius:10px;background:#f8fafc;width:100%;min-height:138px;max-height:184px;overflow:hidden;display:grid;place-items:center}.book-view__editor-preview-figure img{max-width:100%;max-height:184px;object-fit:contain}.book-view__editor-preview-card.is-active .book-view__editor-preview-figure:has(.book-view__editor-preview-iframe){background:#fff}.book-view__editor-preview-figure-empty{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.book-view__editor-preview-body{min-width:0;display:flex;flex-direction:column;gap:4px;padding-right:28px;overflow:hidden}.book-view__editor-preview-text{color:#0f172a;font-size:.92rem;font-weight:500;line-height:1.35}.book-view__editor-preview-text.math-vis-description-rendered,.card--author-actions .btn-icon svg{display:block}.book-view__editor-mode-shell{border:1px solid #d6deeb;border-radius:16px;background:linear-gradient(165deg,#fff 0,#f8fbff 58%,#f3f7ff 100%);padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.06)}.book-view__editor-mode-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.book-view__editor-mode-head h3{margin:0;font-size:1.08rem;color:#0f172a}.book-view__editor-mode-head p{margin:4px 0 0;color:#475569;font-size:.86rem}.book-view__editor-save-btn{appearance:none;border:1px solid #4f46e5;border-radius:10px;background:linear-gradient(140deg,#4f46e5 0,#4338ca 100%);color:#fff;font:inherit;font-size:.87rem;font-weight:620;padding:8px 12px;cursor:pointer;transition:transform 130ms ease,box-shadow 130ms ease,opacity 130ms ease}.book-view__editor-save-btn:focus-visible,.book-view__editor-save-btn:hover{outline:0;transform:translateY(-1px);box-shadow:0 8px 16px rgba(79,70,229,.24)}.book-view__editor-save-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.book-view__editor-mode-footer{margin-top:12px}.book-view__editor-mode-footer button{appearance:none;border:1px solid #c7d2e5;border-radius:10px;background:#fff;color:#334155;font:inherit;font-size:.86rem;font-weight:620;padding:8px 11px;cursor:pointer}.book-view__editor-mode-footer button:focus-visible,.book-view__editor-mode-footer button:hover{outline:0;border-color:#93c5fd;box-shadow:0 8px 16px rgba(59,130,246,.14)}.book-view__editor-mode-shell--a{border:0;background:0 0;box-shadow:none;padding:0}.book-view__editor-mode-shell--b{border-color:#d1d5db;background:#fff;box-shadow:none}.book-view__editor-mode-head--a,.book-view__editor-mode-head--b{align-items:flex-start;gap:16px}.book-view__modea-head-copy{min-width:0;display:grid;gap:8px}.book-view__modea-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.book-view__modea-title-row h3{margin:0;font-size:1.16rem;letter-spacing:-.01em}.book-view__modea-title-pill{display:inline-flex;align-items:center;border-radius:999px;border:1px solid #a8d4f2;background:rgba(255,255,255,.92);color:#075985;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 9px}.book-view__modea-summary{display:inline-flex;flex-wrap:wrap;gap:8px}.book-view__modea-summary-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid #d1d5db;background:#fff;padding:4px 10px}.book-view__modea-summary-chip strong{font-size:.86rem;color:#0f172a}.book-view__modea-summary-chip span{font-size:.74rem;color:#4b5563;text-transform:uppercase;letter-spacing:.06em}.book-view__modea-task-list{margin-top:14px;display:flex;flex-direction:column;gap:10px;max-height:none;overflow:visible;padding-right:0}.book-view__modea-task{position:relative;border:1px solid #d1d5db;border-radius:16px;background:#fff;padding:10px 12px;display:grid;gap:6px;box-shadow:none;transition:opacity 120ms ease,border-color 120ms ease,box-shadow 120ms ease}.book-view__modea-task.is-drop-target{box-shadow:0 0 0 3px rgba(147,197,253,.25)}.book-view__modea-task::before{content:none}.book-view__modea-task-dropzone{height:0;margin:0;border-radius:6px;background:0 0;border:0;position:relative;transition:height 140ms ease,background-color 140ms ease,margin 140ms ease;pointer-events:none}body[data-book-editor-dragging-subtask] .book-view__modea-task-dropzone{height:12px;margin:4px 0;background:rgba(148,163,184,.18);pointer-events:auto}body[data-book-editor-dragging-subtask] .book-view__modea-task-dropzone.is-active{height:44px;background:rgba(147,197,253,.28);outline:2px dashed #60a5fa;outline-offset:-2px}body[data-book-editor-dragging-subtask] .book-view__modea-task-dropzone.is-active::after{content:"Slipp her for å gjøre om til ny oppgave";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:600;color:#1e40af;pointer-events:none}.book-view__modea-task-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.book-view__modea-task-meta{min-width:0}.book-view__modea-task-line{display:inline-flex;align-items:baseline;gap:8px;min-width:0;width:100%}.book-view__modea-task-index{font-size:1rem;font-weight:700;line-height:1.2;color:#0f172a;flex:0 0 auto}.book-view__modea-task-sep{color:#6b7280;font-weight:600}.book-view__modea-task-shared-text{color:#334155;font-size:.88rem;line-height:1.3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-view__modea-task-shared-input{flex:1 1 auto;min-width:0;appearance:none;border:1px solid transparent;background:0 0;border-radius:6px;padding:4px 8px;margin:-4px -8px;font:inherit;font-size:.95rem;font-weight:500;color:#334155;line-height:1.3;transition:border-color 120ms ease,background 120ms ease}.book-view__modea-task-shared-input::placeholder{color:#94a3b8;font-weight:400;font-style:italic}.book-view__modea-task-shared-input:hover{border-color:#e2e8f0}.book-view__modea-task-shared-input:focus,.book-view__modea-task-shared-input:focus-visible{border-color:#93c5fd;background:#fff;outline:0;box-shadow:0 0 0 3px rgba(147,197,253,.25)}.book-view__modea-subtask-text-input{flex:1 1 auto;min-width:0;appearance:none;border:1px solid transparent;background:0 0;border-radius:6px;padding:2px 6px;margin:-2px -6px;font:inherit;font-size:.84rem;color:#334155;line-height:1.3;transition:border-color 120ms ease,background 120ms ease}.book-view__modea-subtask-text-input::placeholder{color:#94a3b8;font-style:italic}.book-view__modea-subtask-text-input:hover{border-color:#e2e8f0}.book-view__modea-subtask-text-input:focus,.book-view__modea-subtask-text-input:focus-visible{border-color:#93c5fd;background:#fff;outline:0;box-shadow:0 0 0 3px rgba(147,197,253,.25)}.book-view__modea-task-inline-open{appearance:none;border:0;background:0 0;margin:0;padding:0;display:inline-flex;align-items:baseline;gap:6px;text-align:left;min-width:0;cursor:pointer}.book-view__modea-task-inline-open:focus-visible{outline:2px solid #9ca3af;outline-offset:3px;border-radius:6px}.book-view__modea-task-inline-text{color:#334155;font-size:.94rem;line-height:1.35}.book-view__modea-action-btn{display:inline-flex;align-items:center;justify-content:center;appearance:none;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#111827;font:inherit;font-size:.76rem;font-weight:650;letter-spacing:.02em;padding:5px 10px;cursor:pointer;transition:transform 140ms ease,box-shadow 140ms ease,border-color 140ms ease,background-color 140ms ease}.book-view__modea-action-btn:focus-visible,.book-view__modea-action-btn:hover{outline:0;border-color:#9ca3af;box-shadow:none;transform:none}.book-view__modea-action-btn--add{background:#fff;border-color:#d1d5db}.book-view__modea-delete-btn{width:28px;height:28px;padding:0;border-radius:999px;border-color:#fecaca;background:#fff5f5;color:#b91c1c;font-size:1.12rem;font-weight:700;line-height:1;flex:0 0 auto}.book-view__modea-delete-btn:focus-visible,.book-view__modea-delete-btn:hover{border-color:#f87171;background:#fee2e2;box-shadow:none;transform:none}.book-view__modea-duplicate-btn{width:28px;height:28px;padding:0;border-radius:999px;border-color:#d1d5db;background:#fff;color:#475569;font-size:.95rem;font-weight:600;line-height:1;flex:0 0 auto}.book-view__modea-duplicate-btn:focus-visible,.book-view__modea-duplicate-btn:hover{border-color:#94a3b8;background:#f8fafc;color:#1e293b;box-shadow:none;transform:none}.book-view__modea-subtask-list{display:grid;gap:4px}.book-view__modea-subtask-list.is-drop-target{outline:2px dashed #93c5fd;outline-offset:2px;border-radius:8px}.book-view__modea-subtask{border:0;border-radius:10px;background:0 0;padding:2px 4px;display:grid;gap:0;transition:background-color 120ms ease,opacity 120ms ease,transform 120ms ease}.book-view__modea-subtask.is-dragging{background:#f1f5f9}.book-view__modea-subtask.is-drop-target{background:#eff6ff;outline:2px solid #93c5fd;outline-offset:-2px}.book-view__modea-subtask-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.book-view__modea-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:18px;height:24px;flex:0 0 auto;color:#cbd5e1;font-size:.85rem;line-height:1;letter-spacing:-1px;cursor:grab;user-select:none;transition:color 120ms ease}.book-view__modea-subtask:hover .book-view__modea-drag-handle,.card--examples .example-description-preview pre.math-vis-code-block.line-numbers .line-numbers-rows>span:before,.math-vis-description-rendered pre.math-vis-code-block.line-numbers .line-numbers-rows>span:before{color:#64748b}.book-view__modea-drag-handle:active{cursor:grabbing}.book-view__modea-subtask-open-field{appearance:none;border:0;background:0 0;margin:0;padding:0;display:flex;align-items:center;text-align:left;min-width:0;cursor:pointer;flex:1 1 auto}.book-view__modea-subtask-open-field:focus-visible .book-view__modea-subtask-line,.book-view__modea-subtask-open-field:hover .book-view__modea-subtask-line{color:#111827}.book-view__modea-subtask-open-field:focus-visible{outline:2px solid #9ca3af;outline-offset:3px;border-radius:8px}.book-view__modea-subtask-head-actions{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}.book-view__modea-subtask-head-actions .book-view__modea-select--compact{flex:0 1 180px;min-width:0}.book-view__modea-answer-type{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:3px 9px;border-radius:999px;font-size:.72rem;font-weight:600;letter-spacing:.02em;text-transform:lowercase;border:1px solid #e5e7eb;background:#f3f4f6;color:#4b5563;line-height:1.2;user-select:none}.book-view__modea-answer-type--matte{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.book-view__modea-answer-type--mc{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.book-view__modea-answer-type--radio{background:#fef3c7;color:#92400e;border-color:#fde68a}.book-view__modea-answer-type--figur{background:#fce7f3;color:#9d174d;border-color:#fbcfe8}.book-view__modea-subtask-index{font-size:.92rem;color:#0f172a;font-weight:700;line-height:1.1;flex:0 0 auto}.book-view__modea-subtask-line{margin:0;color:#334155;font-size:.84rem;line-height:1.25;display:inline-flex;align-items:flex-start;gap:8px;min-width:0;width:100%}.book-view__modea-subtask-text{min-width:0;flex:1 1 auto;overflow:hidden;white-space:normal;word-wrap:break-word;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3}.book-view__modea-subtask-controls{display:grid;grid-template-columns:1fr;align-items:center;gap:8px}.book-view__modea-select{appearance:none;border:1px solid #d1d5db;border-radius:10px;background:#fff;color:#111827;font:inherit;font-size:.79rem;padding:7px 10px;min-width:120px}.book-view__modea-select:focus{outline:0;border-color:#9ca3af;box-shadow:none}.book-view__modea-select--compact{min-width:120px;width:auto;padding:4px 10px;border-radius:999px}.book-view__modea-task-footer{display:flex;justify-content:flex-end}.book-view__modea-add-subtask-btn{width:28px;height:28px;padding:0;font-size:1rem;line-height:1;flex:0 0 auto}.book-view__modea-subtask-empty{display:flex;align-items:center;justify-content:space-between;gap:8px}.book-view__modea-subtask-empty .book-view__editor-preview-empty-inline{margin:0}.book-view__modea-add-task-btn{display:inline-flex;align-items:center;justify-content:center;appearance:none;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#111827;font:inherit;font-size:.86rem;font-weight:700;padding:8px 14px;cursor:pointer;transition:transform 150ms ease,box-shadow 150ms ease}.book-view__modea-add-task-btn:focus-visible,.book-view__modea-add-task-btn:hover{outline:0;transform:none;border-color:#9ca3af;box-shadow:none}.book-view__modea-add-task-btn--ai{border-color:#d8b4fe;color:#6b21a8;background:#fff;margin-left:6px}.book-view__modea-add-task-btn--ai:focus-visible,.book-view__modea-add-task-btn--ai:hover{border-color:#a855f7;background:#f5f3ff}.book-view__modea-footer-actions{display:flex;flex-wrap:wrap;gap:10px}.book-view__editor-mode-shell--a .book-view__modea-footer-actions{justify-content:flex-end}.book-view__modea-generate-btn{display:inline-flex;align-items:center;justify-content:center;appearance:none;border:1px solid #d1d5db;border-radius:999px;background:#f8fafc;color:#111827;font:inherit;font-size:.86rem;font-weight:700;padding:8px 14px;cursor:pointer;transition:border-color 140ms ease,background-color 140ms ease}.book-view__modea-generate-btn:focus-visible,.book-view__modea-generate-btn:hover{outline:0;border-color:#9ca3af;background:#f3f4f6;box-shadow:none}.book-view__modea-generate-btn:disabled{opacity:.6;cursor:not-allowed}.book-view__modea-generator{margin-top:12px;border:1px solid #d1d5db;border-radius:16px;background:#fafafa;padding:12px}.book-view__modea-generator-form{display:grid;gap:12px;position:relative}.book-view__modea-generator-form.is-submitting{isolation:isolate}.book-view__modea-generator-form.is-submitting::before{content:"";position:absolute;inset:0;border-radius:14px;background:rgba(248,250,252,.55);z-index:1;pointer-events:none}.book-view__modea-generator-grid{display:grid;grid-template-columns:minmax(140px,200px) minmax(0,1fr);gap:12px;align-items:start}.book-view__modea-generator-field{display:grid;gap:6px}.book-view__modea-generator-field>span{font-size:.8rem;font-weight:700;color:#374151}.book-view__modea-generator-count,.book-view__modea-generator-notes{appearance:none;border:1px solid #d1d5db;border-radius:10px;background:#fff;color:#111827;font:inherit;font-size:.88rem;padding:8px 10px}.book-view__modea-generator-count:focus,.book-view__modea-generator-notes:focus{outline:0;border-color:#9ca3af;box-shadow:none}.book-view__modea-generator-notes{resize:vertical;min-height:82px}.book-view__modea-generator-apps{display:flex;flex-wrap:wrap;gap:6px;max-height:144px;overflow:auto;padding-right:2px}.book-view__modea-generator-app{display:inline-flex;gap:6px;align-items:center;border:1px solid #d1d5db;border-radius:999px;background:#fff;padding:5px 10px;min-height:32px;max-width:100%;transition:border-color 120ms ease,background-color 120ms ease}.book-view__modea-generator-app:hover{border-color:#94a3b8}.book-view__modea-generator-app:has(input:checked){border-color:#3b82f6;background:#eff6ff}.book-view__modea-generator-app input{margin:0;flex:0 0 auto;width:15px;height:15px}.book-view__modea-generator-app-label{min-width:0;color:#111827;font-size:.77rem;font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-view__modea-generator-help{margin:0;color:#475569;font-size:.79rem;line-height:1.45}.book-view__modea-generator-status{margin:0;position:relative;display:flex;align-items:center;min-height:28px;overflow:hidden;border-radius:999px;padding:4px 10px;font-size:.82rem;font-weight:650;color:#334155;background:rgba(226,232,240,.42);z-index:2}.book-view__modea-generator-status-text{position:relative;z-index:2;width:100%}.book-view__modea-generator-status[data-loading=true] .book-view__modea-generator-status-text{opacity:.72}.book-view__modea-generator-progress{position:absolute;inset:4px;border-radius:inherit;overflow:hidden;background:rgba(148,163,184,.16);pointer-events:none;z-index:1}.book-view__modea-generator-progress-bar{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,rgba(59,130,246,.16),rgba(59,130,246,.9),rgba(14,165,233,.16));animation:book-view__modea-generator-progress 1.15s ease-in-out infinite}.book-view__modea-generator-status[data-tone=error]{background:#fef2f2;color:#b91c1c}.book-view__modea-generator-status[data-tone=success]{background:#ecfdf5;color:#047857}.book-view__modea-generator-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.book-view__modea-generator-cancel,.book-view__modea-generator-submit{appearance:none;border:1px solid #d1d5db;border-radius:999px;font:inherit;font-size:.84rem;font-weight:700;padding:8px 14px;cursor:pointer}.book-view__modea-generator-cancel{background:#fff;color:#111827}.book-view__modea-generator-submit{background:#111827;border-color:#111827;color:#fff}.book-view__modea-generator-cancel:focus-visible,.book-view__modea-generator-cancel:hover,.book-view__modea-generator-submit:focus-visible,.book-view__modea-generator-submit:hover{outline:0;border-color:#9ca3af;box-shadow:none}.book-view__modea-generator-submit:focus-visible,.book-view__modea-generator-submit:hover{background:#1f2937}.book-view__modea-generator-cancel:disabled,.book-view__modea-generator-submit:disabled{opacity:.6;cursor:not-allowed}.book-view__modea-subtask.is-dragging,.book-view__modea-task.is-dragging{opacity:.72}.book-view__modea-subtask-list.is-drop-target,.book-view__modea-subtask.is-drop-target,.book-view__modea-task.is-drop-target{border-color:#9ca3af;box-shadow:none}.book-view__toc-chapter.is-dragging{opacity:.5}.book-view__toc-chapter.is-drop-target{outline:2px dashed #6366f1;outline-offset:-2px;border-radius:6px}.book-view__editor-preview-list--two-col{position:relative}[data-book-editor-mode=a] .book-view__editor-preview-task-group{position:relative;padding-top:22px}.book-view__editor-preview-drag-handle{position:absolute;top:0;left:0;right:0;height:20px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#cbd5e1;font-size:.78rem;line-height:1;letter-spacing:-1px;cursor:grab;user-select:none;-webkit-user-select:none;transition:color 120ms ease,background-color 120ms ease}.book-view__editor-preview-drag-handle-dots{display:inline-block;transform:rotate(90deg)}.book-view__editor-preview-task-group:hover .book-view__editor-preview-drag-handle{color:#64748b;background:rgba(100,116,139,.08)}.book-view__editor-preview-drag-handle:active,.book-view__toc-chapter[draggable=true]:active,.book-view__toc-subchapter-item[draggable=true]:active{cursor:grabbing}.book-view__editor-preview-task-group.is-pointer-dragging{opacity:.4}.book-view__editor-preview-insert-indicator{position:absolute;width:4px;border-radius:2px;background:#6366f1;pointer-events:none;z-index:5}.book-view__toc-subchapter-item.is-task-drop-target{outline:2px dashed #6366f1;outline-offset:-2px;border-radius:6px;background:rgba(99,102,241,.08)}.book-view__pointer-drag-ghost{padding:6px 14px;border-radius:999px;background:#1f2937;color:#f9fafb;font-size:.82rem;font-weight:600;box-shadow:0 6px 18px rgba(15,23,42,.35);white-space:nowrap}body[data-book-task-dragging]{user-select:none;-webkit-user-select:none}.book-view__toc-subchapter-item.is-dragging{opacity:.5}.book-view__toc-subchapter-item.is-drop-target{outline:2px dashed #6366f1;outline-offset:-2px;border-radius:4px}.book-view__toc-chapter[draggable=true],.book-view__toc-subchapter-item[draggable=true]{cursor:grab}.book-view__editor-mode-shell--a .book-view__editor-save-btn,.book-view__editor-mode-shell--b .book-view__editor-save-btn{border-color:#d1d5db;background:#fff;color:#111827}.book-view__editor-mode-shell--a .book-view__editor-save-btn:focus-visible,.book-view__editor-mode-shell--a .book-view__editor-save-btn:hover,.book-view__editor-mode-shell--b .book-view__editor-save-btn:focus-visible,.book-view__editor-mode-shell--b .book-view__editor-save-btn:hover{border-color:#9ca3af;box-shadow:none;transform:none}.book-view__editor-mode-shell--a .book-view__editor-save-btn:disabled,.book-view__editor-mode-shell--b .book-view__editor-save-btn:disabled{border-color:#e5e7eb;background:#f3f4f6;color:#9ca3af}@media (max-width:900px){.book-view{padding:14px}.book-view__layout{grid-template-columns:1fr}.book-view__chapter h2,.book-view__toc h2{font-size:1.6rem}.book-view__toc-chapter-link{font-size:1.35rem}.book-view__toc-subchapter-link{font-size:1.06rem}.book-view__editor-shell{grid-template-columns:1fr}.book-view__editor-preview-list{max-height:none}.book-view__task-composer-actions{justify-content:stretch}.book-view__task-composer-cancel,.book-view__task-composer-submit{width:100%}.book-view__editor-preview-card{grid-template-columns:1fr}.book-view__editor-mode-head{flex-direction:column;align-items:stretch}.book-view__modea-task-list{grid-template-columns:1fr;max-height:none}.book-view__modea-task-actions{width:100%;justify-content:flex-start}.book-view__modea-subtask-head,.book-view__modea-task-head{flex-wrap:wrap;align-items:flex-start}.book-view__modea-subtask-head-actions{width:100%;justify-content:flex-end}.book-view__modea-subtask-head-actions .book-view__modea-select--compact{flex:1 1 auto}.book-view__modea-subtask-controls{grid-template-columns:1fr}.book-view__modea-action-btn:not(.book-view__modea-delete-btn):not(.book-view__modea-add-subtask-btn),.book-view__modea-add-task-btn{width:100%;justify-content:center}.book-view__modea-generate-btn{width:100%;justify-content:center}.book-view__modea-generator-grid{grid-template-columns:1fr}.book-view__editor-save-btn{width:100%}}.checkbar{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.status{padding:6px 10px;border-radius:10px;font-weight:600;border:1px solid transparent}.status--success{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.status--error{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.status--info{color:#1f2937;background:#f3f4f6;border-color:#e5e7eb}.card--author-actions .example-save-status,.card--examples .example-save-status{width:100%;margin-top:6px;padding:0;border:0;border-radius:0;background:0 0;font-size:13px;font-weight:600;line-height:1.35}.card--author-actions .example-save-status.status--success,.card--examples .example-save-status.status--success{color:#0f766e;background:0 0;border-color:transparent}.card--author-actions .example-save-status.status--error,.card--examples .example-save-status.status--error{color:#b91c1c;background:0 0;border-color:transparent}.card--author-actions .example-save-status.status--info,.card--examples .example-save-status.status--info{color:#475569;background:0 0;border-color:transparent}.card--author-actions .example-save-status[data-status-visible=true],.card--examples .example-save-status[data-status-visible=true]{animation:example-save-status-appear 180ms ease-out}body[data-app=graftegner2],body[data-app=graftegner]{--sidebar-width:420px;--gap:12px;--surface-bg:#fff;padding:12px}body[data-app=graftegner2] .card,body[data-app=graftegner] .card{padding:12px;gap:8px}@media (min-width:981px){body[data-app=graftegner2],body[data-app=graftegner]{overflow:hidden}body[data-app=graftegner2] .wrap,body[data-app=graftegner] .wrap{height:calc(100vh - 24px)}body[data-app=graftegner2] .layout--sidebar,body[data-app=graftegner] .layout--sidebar{height:100%}body[data-app=graftegner2] .layout--sidebar>.side,body[data-app=graftegner] .layout--sidebar>.side{max-height:100%;overflow-y:auto;padding-left:4px}body[data-app=graftegner2] .layout--sidebar>.card,body[data-app=graftegner] .layout--sidebar>.card{position:sticky;top:var(--gap)}}:root{--gap:18px;--surface-bg:#ffffff;--text-color:#111827;--heading-color:#374151;--label-color:#4b5563;--muted-color:#6b7280;--card-border:#e5e7eb;--card-radius:14px;--control-radius:10px;--sidebar-width:360px}.color-swatch--pair{--swatch-fill:#ffffff;--swatch-line:#111827;position:relative;box-shadow:var(--swatch-outer-ring, 0 0 0 0 transparent),var(--swatch-elevation, none)}.color-swatch--pair::after{content:"";position:absolute;inset:clamp(3px,18%,6px);border-radius:999px;background:var(--swatch-fill)}.color-option-btn.color-swatch--pair,.color-swatch--pair{background:var(--swatch-line)}body,html{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans";color:var(--text-color);background:var(--surface-bg);padding:20px}body[data-app-mode=student]{--gap:10px;padding:0}body[data-app=mattemotor][data-host-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false],body[data-app=mattemotor][data-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side"!important;justify-items:center;gap:0!important}body[data-app=mattemotor][data-host-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>.splitter,body[data-app=mattemotor][data-host-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>:not(.side):not(.splitter),body[data-app=mattemotor][data-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>.splitter,body[data-app=mattemotor][data-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>:not(.side):not(.splitter){display:none!important}body[data-app=mattemotor][data-host-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>.side,body[data-app=mattemotor][data-mode=student-view] .mattemotor-host.split-enabled[data-markdown-pane-visible=false]>.side{width:min(100%,780px);justify-self:center;padding:0}body[data-app=mattemotor] .mattemotor-host.split-enabled[data-markdown-pane-state=add]{position:relative;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side"!important;justify-items:center;gap:0!important}body[data-app=mattemotor] .mattemotor-host.split-enabled[data-markdown-pane-state=add]>.splitter{display:none!important}body[data-app=mattemotor] .mattemotor-host.split-enabled[data-markdown-pane-state=add]>:not(.side):not(.splitter){position:absolute;left:0;top:0;bottom:0;width:calc((100% - min(100%,780px))/2);grid-area:auto;padding:0!important;border:0;z-index:1;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;background:0 0!important;box-shadow:none!important}body[data-app=mattemotor] .mattemotor-host.split-enabled[data-markdown-pane-state=add]>.side{width:min(100%,780px);justify-self:center;padding:0;border:0}body[data-app=mattemotor][data-host-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled,body[data-app=mattemotor][data-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side"!important;justify-items:center;gap:0!important}body[data-app=mattemotor][data-host-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>.splitter,body[data-app=mattemotor][data-host-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>:not(.side):not(.splitter),body[data-app=mattemotor][data-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>.splitter,body[data-app=mattemotor][data-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>:not(.side):not(.splitter){display:none!important}body[data-app=mattemotor][data-host-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>.side,body[data-app=mattemotor][data-mode=student-view][data-task-answer-kind=minput] .mattemotor-host.split-enabled>.side{width:min(100%,780px);justify-self:center;padding:0;border:0}.grid,.wrap{gap:var(--gap)}.wrap{max-width:1200px;margin:0 auto;display:flex;flex-direction:column}.grid{display:grid;align-items:start}.layout--sidebar{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.layout--sidebar>.side{grid-column:2;grid-row:1}.layout--sidebar>:not(.side):not(.splitter){grid-column:1;grid-row:1}body.app-layout .wrap{max-width:none;margin:0;gap:0;min-height:100vh;min-height:100dvh;min-width:0}body.app-layout{--app-layout-figure-stage-min-block-size:clamp(320px, 48dvh, 560px);--app-layout-figure-stage-max-block-size:clamp(320px, calc(100dvh - 220px), 820px);padding:0}body.app-layout .layout--sidebar{flex:1 1 auto;min-height:0;align-items:stretch}body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar{grid-template-columns:minmax(0,1fr)!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>.side{display:contents}body.app-layout[data-app-mode=student][data-task-text-empty=true] .card--examples>*,body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>.side>.card--settings,body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>.side>[data-task-text-panel]{display:none!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>.side>.card--examples{all:unset!important;display:block!important;position:fixed!important;bottom:0!important;right:0!important;left:auto!important;z-index:100!important;pointer-events:none!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .card--examples .example-description,body.app-layout[data-app-mode=student][data-task-text-empty=true] .card--examples [data-task-text-description]{display:block!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .card--examples .example-description>:not([data-task-check-host]){display:none!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .card--examples [data-task-check-host]{display:flex!important;pointer-events:auto!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>.splitter{display:none!important}body.app-layout[data-app-mode=student][data-task-text-empty=true] .layout--sidebar>:not(.side):not(.splitter){grid-column:1}body.app-layout .grid[data-figure-task-layout=centralized]{display:flex!important;flex-direction:column!important;gap:var(--gap)!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-template-areas:none!important;align-content:start!important;padding:clamp(4px,1vh,12px) clamp(16px,3vw,48px)!important}body.app-layout .grid[data-figure-task-layout=centralized]>[data-subject-subtask-panel],body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-text-block]{order:1!important;flex:0 0 auto!important;grid-area:auto!important;position:relative!important;top:auto!important;z-index:auto;width:100%!important;max-width:100%!important;padding-inline:clamp(16px,3vw,48px);text-align:center;box-sizing:border-box!important}body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-text-panel]{display:none!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel]{display:block!important;width:100%}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]{grid-template-rows:auto auto 1fr!important;min-height:0!important;height:100%!important;overflow:hidden!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-figure-block],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-figure-block]{grid-column:1!important;grid-row:2/-1!important;min-height:0!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-panel],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-panel]{grid-column:2!important;grid-row:2!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;padding-inline:0!important;align-self:start!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block]{grid-row:3!important;min-height:0!important;height:100%!important;overflow-y:auto!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]{grid-column:2!important;grid-row:2/-1!important;display:flex!important;flex-direction:column!important;gap:16px!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;padding-inline:0!important;align-self:stretch!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-block],body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-panel],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-block],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-panel]{display:block!important;grid-column:auto!important;grid-row:auto!important;height:auto!important;max-height:none!important;overflow-y:visible!important;flex:0 0 auto!important;align-self:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;text-align:left!important;padding-inline:0!important}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel] .task-panel,body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-panel] .task-panel,body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel] .task-panel,body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-author-edit-side-scroll]>[data-task-text-panel] .task-panel{display:flex!important;flex-direction:column;gap:12px}body.app-layout[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel] .task-panel[hidden],body.app-layout[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]>[data-task-text-panel] .task-panel[hidden]{display:none!important}body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-text-block] .example-description,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-text-block] .example-description-preview,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-text-block] [data-task-text-description]{text-align:center}body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]{order:2!important;flex:1 1 auto!important;grid-area:auto!important;position:relative!important;top:auto!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:100%!important;align-self:stretch!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;padding:0!important;box-sizing:border-box!important}body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]>#figureContainer,body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]>.board-runtime-shell,body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]>.figure,body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]>.figure-area,body.app-layout .grid[data-figure-task-layout=centralized]>[data-figure-block]>.grid2{flex:1 1 auto!important;min-height:0!important;max-height:none!important;width:100%!important;align-self:stretch!important;padding:clamp(8px,1.5vh,24px) clamp(16px,3vw,48px) clamp(16px,3vh,40px)!important;box-sizing:border-box!important}body.app-layout .grid[data-figure-task-layout=centralized] [data-figure-block] .board-runtime-shell>.figure{flex:1 1 0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;min-width:0!important;max-width:none!important;padding:0!important}body.app-layout .grid[data-figure-task-layout=centralized]>.splitter,body[data-host-mode=edit-figure] [data-task-text-block],body[data-host-mode=edit-figure] [data-task-text-panel]{display:none!important}body.app-layout .grid[data-figure-task-layout=centralized] [data-task-check-host]{position:fixed!important;bottom:0!important;right:0!important;left:auto!important;top:auto!important;width:auto!important;z-index:100!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;pointer-events:none!important}body.app-layout .grid[data-figure-task-layout=centralized] [data-task-check-host] .btn--task-check,body.app-layout .grid[data-figure-task-layout=centralized] [data-task-check-host] [data-task-check-host-actions]{pointer-events:auto!important}body.app-layout .grid[data-figure-task-layout=centralized]>.side{display:none!important}body.app-layout .grid.layout--sidebar .card--author-actions,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true]{position:fixed!important;bottom:32px!important;right:36px!important;top:auto!important;left:auto!important;z-index:60!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important;background:rgba(255,255,255,.96)!important;padding:10px 12px!important;border-radius:12px!important;border:1px solid #e7e5e4!important;box-shadow:0 8px 28px rgba(0,0,0,.12)!important;backdrop-filter:blur(6px)!important;pointer-events:auto!important;width:auto!important;max-width:min(96vw,720px)!important;height:auto!important}body.app-layout .grid.layout--sidebar .card--author-actions .toolbar,body.app-layout .grid.layout--sidebar .card--author-actions>.toolbar,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] .toolbar,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true]>.toolbar{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:10px!important;padding:0!important;background:0 0!important;border:0!important;box-shadow:none!important;align-items:center!important}body.app-layout .grid.layout--sidebar .card--author-actions button:not(.btn--task-check):not([data-discard]),body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] button:not(.btn--task-check):not([data-discard]){border-radius:10px!important;padding:10px 18px!important;font-weight:600!important;font-size:.9rem!important;font-family:"Inter",system-ui,sans-serif!important;align-items:center!important;gap:7px!important;border:1px solid #e2e0da!important;background:#fff!important;color:#3f3f46!important;box-shadow:0 1px 2px rgba(0,0,0,.05)!important;transition:background .15s ease,box-shadow .15s ease,transform .08s ease,border-color .15s ease!important}body.app-layout .grid.layout--sidebar .card--author-actions #btnSaveExample,body.app-layout .grid.layout--sidebar .card--author-actions #btnUpdateExample,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] #btnSaveExample,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] #btnUpdateExample{display:inline-flex!important}body.app-layout .grid.layout--sidebar .card--author-actions button:not(.btn--task-check):not([data-discard]):hover,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] button:not(.btn--task-check):not([data-discard]):hover{transform:translateY(-1px)!important;border-color:#d1cfc8!important;box-shadow:0 3px 8px rgba(0,0,0,.09)!important}body.app-layout .grid.layout--sidebar .card--author-actions button:not(.btn--task-check):not([data-discard]):active,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] button:not(.btn--task-check):not([data-discard]):active{transform:translateY(0)!important}body.app-layout .grid.layout--sidebar .card--author-actions #btnUpdateExample,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] #btnUpdateExample{border-color:#059669!important;background:#059669!important;color:#fff!important;box-shadow:0 1px 0 rgba(0,0,0,.06),0 2px 6px rgba(5,150,105,.28)!important}body.app-layout .grid.layout--sidebar .card--author-actions #btnUpdateExample:hover,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] #btnUpdateExample:hover{border-color:#047857!important;background:#047857!important;box-shadow:0 3px 10px rgba(5,150,105,.32)!important}body.app-layout .grid.layout--sidebar .card--author-actions #btnFullscreen,body.app-layout .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true] #btnFullscreen{padding:10px 12px!important;color:#52525b!important}.card--author-actions .btn-icon{display:inline-flex;align-items:center;justify-content:center}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime #choice-task-presentation,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime .task-choice-runtime__header,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime .task-choice-runtime__prompt,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime #solve-task-presentation,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime .mattemotor-header,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime [data-studentview-slot=task-text],body.app-layout[data-app-mode=student] .grid.layout--sidebar .card--author-actions,body.app-layout[data-app-mode=student] .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true],body[data-host-mode=student-view] .grid.layout--sidebar .card--author-actions,body[data-host-mode=student-view] .grid[data-figure-task-layout=centralized]>[data-task-toolbar-hoisted=true]{display:none!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)!important;grid-template-rows:auto auto 1fr!important;flex-direction:initial!important;flex-wrap:initial!important;align-items:stretch!important;column-gap:clamp(12px,2vw,32px)!important;row-gap:var(--gap)!important;padding-inline:clamp(16px,3vw,48px)!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-subject-subtask-panel]{grid-column:1/-1!important;grid-row:1!important;width:100%!important;max-width:100%!important;padding-inline:0!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-figure-block]{grid-column:1!important;grid-row:2/-1!important;min-width:0!important;min-height:0!important;flex:initial!important;order:initial!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block]{grid-column:2!important;grid-row:2!important;width:100%!important;max-width:100%!important;min-width:0!important;padding-inline:0!important;text-align:left!important;flex:initial!important;order:initial!important;align-self:start!important;overflow-x:auto!important;overflow-y:visible!important}body[data-effective-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]:not(:has(>[data-task-text-panel] #taskPanel:not([hidden]))) [data-task-text-block] .example-description-preview,body[data-host-mode=edit-task-text] .grid[data-figure-task-layout=centralized]:not(:has(>[data-task-text-panel] #taskPanel:not([hidden]))) [data-task-text-block] .example-description-preview{display:block!important;min-height:1.5em}body.app-layout .grid[data-figure-task-layout=centralized]:not([data-figure-task-input-side=true]) [data-task-text-block] .example-description{padding-top:8px!important;padding-right:140px!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true] [data-task-text-block] .example-description{padding-top:56px!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block] .example-description,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block] .example-description-preview,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block] [data-task-text-description]{text-align:left!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block]{grid-column:2!important;grid-row:3!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-self:stretch!important;padding-bottom:clamp(16px,3vh,32px)!important;box-sizing:border-box!important;overflow:auto!important;flex:initial!important;order:initial!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block]#panel-calculation,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block]#panel-choice-calculation,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime .task-math-engine-runtime__input-row{margin-top:auto;width:100%}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime,body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-math-engine-runtime{padding-bottom:clamp(16px,3vh,32px)!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block].task-choice-runtime .task-choice-runtime__actions{margin-top:auto!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:12px!important}@media (max-width:720px){body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-subject-subtask-panel]{grid-column:1!important;grid-row:1!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-text-block]{grid-column:1!important;grid-row:2!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-figure-block]{grid-column:1!important;grid-row:3!important}body.app-layout .grid[data-figure-task-layout=centralized][data-figure-task-input-side=true]>[data-task-input-block]{grid-column:1!important;grid-row:4!important}}body.app-layout .grid.split-enabled{padding:0;background:0 0;border:0;border-radius:0;box-shadow:none}body.app-layout .grid.split-enabled>.side{padding:0}@media (min-width:981px){body.app-layout{overflow-x:hidden;overflow-y:hidden}body.app-layout .wrap{height:100%;min-height:100%;overflow:hidden}body.app-layout .grid.layout--sidebar,body.app-layout .grid.split-enabled,body.app-layout .layout--sidebar{height:100%;min-height:0}body.app-layout .layout--sidebar>.side{max-height:100%;overflow-y:auto;padding-left:0}body.app-layout .layout--sidebar>:not(.side):not(.splitter){position:sticky;top:var(--gap)}}@media (max-width:980px){.layout--sidebar{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;align-content:start}.layout--sidebar>.side,.layout--sidebar>:not(.side):not(.splitter){grid-column:1;grid-row:auto}.layout--sidebar>.side{display:contents}.layout--sidebar>.side>.card--examples,.layout--sidebar>.side>[data-task-text-panel]{order:-1}.layout--sidebar>.side>:not([data-task-text-panel]):not(.card--examples){order:1}}.side{display:flex;flex-direction:column;gap:var(--gap)}body.app-layout .layout--sidebar>:not(.side):not(.splitter){min-width:0;min-height:0}body[data-app-mode=student] [data-student-view-hidden=true],body[data-host-mode=student-view] [data-student-view-hidden=true],body[data-mode=student-view] [data-student-view-hidden=true]{display:none!important}body[data-app-mode=student] [data-host-hidden=preserve-space],body[data-host-mode=student-view] [data-host-hidden=preserve-space],body[data-mode=student-view] [data-host-hidden=preserve-space]{visibility:hidden!important;pointer-events:none!important}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none;background:0 0}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>[data-task-text-description],body.app-layout .layout--sidebar>:not(.side):not(.splitter)>[data-task-text-description]{display:flex;flex:1 1 auto;min-width:0;min-height:0;width:100%}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>[data-task-text-description]>.example-description,body.app-layout .layout--sidebar>:not(.side):not(.splitter)>[data-task-text-description]>.example-description{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;width:100%}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>:is(.grid2,.figure-area,#figureContainer),body.app-layout .layout--sidebar>:not(.side):not(.splitter)>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter)[data-app-shell-main-pane=true]>.figure{flex:1 1 auto;min-width:0;min-height:0;max-width:100%}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter)>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter)[data-app-shell-main-pane=true]>.figure{display:grid;place-items:center;min-height:var(--app-layout-figure-stage-min-block-size);max-height:var(--app-layout-figure-stage-max-block-size);margin:0;padding:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:0 0}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>.figure>:is(svg,canvas,img,video),body.app-layout .layout--sidebar>:not(.side):not(.splitter)>.figure>:is(svg,canvas,img,video),body.app-layout .layout--sidebar>:not(.side):not(.splitter)[data-app-shell-main-pane=true]>.figure>:is(svg,canvas,img,video){display:block;width:auto;height:auto;max-width:100%;max-height:var(--app-layout-figure-stage-max-block-size)}.card{background:#fff;border:1px solid var(--card-border);border-radius:var(--card-radius);box-shadow:0 1px 2px rgba(0,0,0,.04);padding:14px;display:flex;flex-direction:column;gap:10px}.card--figure-panel{padding:0;border:0;box-shadow:none;background:0 0}.card h1,.card h2{margin:0 0 6px 2px;font-size:16px;font-weight:600;color:var(--heading-color)}.figure{border-radius:10px;background:#fafbfc;overflow:hidden;border:1px solid #eef0f3}.figure svg{display:block;width:100%;height:auto}[data-math-visuals-example-pending="1"] .figure{position:relative}[data-math-visuals-example-pending="1"] .figure>*{visibility:hidden}[data-math-visuals-example-pending="1"] .figure::after{content:"Laster eksempel…";position:absolute;inset:0;display:grid;place-items:center;color:#475569;font-size:14px;font-weight:500}.card--author-actions,.toolbar{align-items:center;flex-wrap:wrap}.toolbar{display:flex;gap:10px;justify-content:flex-start}body.app-layout .layout--sidebar>.side .card--author-actions{position:sticky;top:var(--gap);z-index:4;gap:8px}.card--author-actions{border:0;box-shadow:none;padding:6px 0;flex-direction:row;background:var(--surface-bg, #f8f9fb)}.card--author-actions .author-actions-meta{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}.btn{appearance:none;-webkit-appearance:none;border:1px solid #d1d5db;background:#fff;border-radius:var(--control-radius);padding:8px 12px;font-size:14px;cursor:pointer;transition:box-shadow .2s,transform .02s;font-family:inherit;color:inherit}.btn:hover{box-shadow:0 2px 8px rgba(0,0,0,.06)}.btn:active,.stepper button:active{transform:translateY(1px)}.addFigureBtn,.removeFigureBtn{width:clamp(36px,8vw,60px);aspect-ratio:1;border:2px dashed #cfcfcf;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;color:#6b7280;cursor:pointer;justify-self:center;align-self:center}.removeFigureBtn{width:clamp(28px,6vw,44px);font-size:18px}.removeFigureBtn[disabled]{opacity:.4;cursor:default}.btn--task-check,.stepper{align-items:center;gap:12px}.stepper,.stepper button{border:1px solid #cfcfcf;background:#fff}.stepper{display:flex;padding:6px 10px;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.06)}.stepper button{width:40px;height:36px;border-radius:8px;font-size:20px;cursor:pointer}.stepper span{min-width:32px;text-align:center;font-variant-numeric:tabular-nums;font-size:16px}.btn--task-check{border:2px solid #428f5a;color:#0e4c2c;background:#9cdba7;border-radius:999px;min-height:56px;min-width:56px;padding:11px 26px;font-size:clamp(1.02rem,.98rem + .28vw,1.14rem);font-weight:800;line-height:1;letter-spacing:-.015em;display:inline-flex;justify-content:center;box-shadow:none}.btn--task-check::after{content:"";width:1.32em;height:1.32em;display:inline-block;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 5v5.5c0 1.1-.9 2-2 2H7' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 8.5 7 12l3.5 3.5' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 5v5.5c0 1.1-.9 2-2 2H7' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 8.5 7 12l3.5 3.5' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")center/contain no-repeat}.btn--task-check:hover{border-color:#367b4c;background:#93d39f;box-shadow:none}.btn--task-check:focus-visible{outline:3px solid #1f6a3f;outline-offset:2px}.btn--task-check:active{background:#88ca95}.btn--task-check:disabled,.btn--task-check[disabled]{opacity:.56;cursor:default;box-shadow:none}.task-math-engine-runtime__solution-button{border:2px solid #63a6d3;background:#f2f4f7;color:#111827;border-radius:999px;min-height:56px;min-width:102px;padding:10px 20px 10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-weight:800;cursor:pointer;box-shadow:none;flex:0 0 auto;white-space:nowrap}.task-math-engine-runtime__solution-button:hover{border-color:#5298c9;background:#ebeff4}.task-math-engine-runtime__solution-button:focus-visible{outline:3px solid #0b74b5;outline-offset:2px}.task-math-engine-runtime__solution-button:disabled,.task-math-engine-runtime__solution-button[disabled]{opacity:.46;cursor:default}.task-math-engine-runtime__solution-icon{width:2rem;height:2rem;display:inline-flex;align-items:center;justify-content:center;color:#111827;flex:0 0 auto}.task-math-engine-runtime__solution-icon svg{width:100%;height:100%;display:block}.task-math-engine-runtime__solution-count{font-size:1.26rem;line-height:1;font-weight:780;letter-spacing:-.03em}.task-math-engine-runtime__input-row{display:flex;align-items:center;gap:8px;container-type:inline-size}.task-math-engine-runtime__input-row .mattemotor-input-wrap,.task-math-engine-runtime__input-row .task-math-engine-runtime__input-wrap{flex:1 1 auto;min-width:0}.task-math-engine-runtime__input-actions{flex:0 0 auto;display:flex;gap:10px;align-items:center}.task-tool-runtime__actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;align-items:center;min-width:0}.task-math-engine-runtime__check{width:auto;min-width:0;white-space:nowrap}@container (max-width: 520px){.task-tool-runtime__actions{justify-content:flex-start}.task-math-engine-runtime__check{min-width:112px}}@media (max-width:1100px){.task-math-engine-runtime[data-runtime-device=ipad] .task-math-engine-runtime__check,.task-math-engine-runtime[data-runtime-device=iphone] .task-math-engine-runtime__check,body[data-runtime-device=ipad] .task-math-engine-runtime__check,body[data-runtime-device=iphone] .task-math-engine-runtime__check{min-width:112px}}@media (max-width:480px){.btn--task-check{min-height:46px;padding:8px 18px;gap:8px}.task-math-engine-runtime__solution-button{min-height:50px;min-width:92px;padding:8px 16px 8px 14px}.task-math-engine-runtime__solution-count{font-size:1rem}.task-math-engine-runtime__check{min-width:0}}fieldset,label{display:flex;flex-direction:column}label{font-size:13px;color:var(--label-color);gap:6px}fieldset{border:1px solid #e5e7eb;border-radius:10px;padding:10px;margin:0;gap:8px}.settings{display:flex;gap:var(--gap)}.settings fieldset{flex:1}.checkbox-row{display:flex;align-items:center;gap:6px}.checkbox-row--disabled{opacity:.5}.field-row{display:flex;gap:10px;flex-wrap:wrap}.field-row .field{flex:1 1 140px}.field-row--wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.alt-text,.field-row .field,.input-stack{display:flex;flex-direction:column;gap:4px}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],select,textarea{border:1px solid #d1d5db;border-radius:var(--control-radius);padding:8px 10px;font-size:14px;background:#fff;color:var(--text-color);box-sizing:border-box;font-family:inherit}textarea{width:100%;resize:vertical;min-height:72px}.alt-text{gap:8px;margin-top:4px}.alt-text-card{gap:12px}.alt-text-card__header{margin:0}.alt-text-card__toggle{width:100%;display:flex;align-items:center;gap:10px;padding:0;border:0;background:0 0;color:inherit;font:inherit;text-align:left;cursor:pointer}.alt-text-card__toggle:focus-visible{outline:2px solid #2563eb;outline-offset:3px;border-radius:8px}.alt-text-card__chevron{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid currentColor;transform:rotate(90deg);transition:transform .16s ease;flex:0 0 auto}.alt-text-card--collapsed .alt-text-card__chevron{transform:rotate(0deg)}.alt-text-card__body,fieldset.alt-text-card{display:flex;flex-direction:column;gap:12px}.alt-text-card__body[hidden]{display:none!important}fieldset.alt-text-card>legend.alt-text-card__header{width:100%;padding:0 4px}fieldset.alt-text-card>legend.alt-text-card__header .alt-text-card__toggle{font-size:13px;font-weight:600;color:#374151}#exportCard .alt-text:last-of-type{display:flex}.alt-text label{font-size:13px;font-weight:600;color:var(--label-color)}.alt-text textarea{min-height:104px;padding:10px;border:1px solid #d1d5db;border-radius:var(--control-radius);font-size:14px;background:#fff;color:var(--text-color);font-family:inherit;resize:vertical}.alt-text textarea:focus{outline:0;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.15)}.alt-text__footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.alt-text__helper{margin:6px 0 0;font-size:12.5px;color:var(--muted-color, #6b7280);line-height:1.4;padding:8px 10px;background:rgba(99,102,241,.06);border-left:3px solid rgba(99,102,241,.4);border-radius:4px}.alt-text__status{font-size:12px;color:var(--muted-color);min-height:18px;flex:1}.alt-text__status.alt-text__status--error{color:#b91c1c}.alt-text__save-button{background:#4f46e5;border-color:#4338ca;color:#fff}.alt-text__save-button:hover{background:#4338ca;color:#fff}.alt-text__save-button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.alt-text__status-action{display:inline-block;margin-left:8px;padding:2px 8px;font-size:12px;line-height:1.4;border:1px solid #d1d5db;border-radius:4px;background-color:#fff;color:inherit;cursor:pointer}.alt-text__status.alt-text__status--error .alt-text__status-action{border-color:#fca5a5}.alt-text__status-action+.alt-text__status-action{margin-left:6px}select{background-color:#fff}input:disabled,select:disabled,textarea:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed}.small{font-size:12px;color:var(--muted-color)}.sep{height:1px;background:#eef0f3;margin:8px 0}.card--settings fieldset,.card[data-card=settings] fieldset{display:flex;flex-direction:column;gap:10px;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:0}.card--settings legend,.card[data-card=settings] legend{font-weight:600;font-size:13px;color:#374151;padding:0 4px}.card--settings label,.card[data-card=settings] label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#4b5563}.card--settings label.checkbox,.card--settings label.chk,.card--settings label.toggleLabel,.card[data-card=settings] label.checkbox,.card[data-card=settings] label.chk,.card[data-card=settings] label.toggleLabel{flex-direction:row;align-items:center;gap:8px}.card--settings label.checkbox input,.card[data-card=settings] label.checkbox input{order:-1}.card--settings .settings-divider,.card[data-card=settings] .settings-divider{height:10px}.card--settings input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.card--settings select,.card--settings textarea,.card[data-card=settings] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.card[data-card=settings] select,.card[data-card=settings] textarea{border:1px solid #d1d5db;border-radius:10px;padding:8px 10px;font-size:14px;background:#fff;color:#111827;box-sizing:border-box;font-family:inherit}.card--settings textarea,.card[data-card=settings] textarea{resize:vertical;min-height:72px}.card--settings input[type=checkbox],.card--settings input[type=radio],.card[data-card=settings] input[type=checkbox],.card[data-card=settings] input[type=radio],input[type=checkbox],input[type=radio]{accent-color:#3b82f6}.card--examples{gap:14px}.card--examples:has(>[data-task-text-description]:empty):not(:has(>:not([data-task-text-description]))){display:none}.embedded-task-strip-host{width:100%;margin:2px 0 8px}.embedded-task-strip-host .task-strip--embedded{display:flex;align-items:flex-end;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:0 0 2px}.embedded-task-strip-host .task-cluster{position:relative;display:inline-flex;align-items:flex-end;gap:clamp(12px,2vw,24px);padding:0 clamp(8px,1.2vw,14px);min-height:54px}.embedded-task-strip-host .task-cluster::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#c8d2e6;z-index:0;pointer-events:none}.embedded-task-strip-host .task-node-wrap{position:relative;display:inline-flex;flex:0 0 auto;margin:2px 0 0;z-index:1}.embedded-task-strip-host .task-node-wrap.is-active{z-index:2;padding:10px 14px;border:2px solid #c8d2e6;border-bottom:2px solid #fff;border-radius:16px 16px 0 0;background:#fff;box-shadow:0-6px 16px rgba(37,99,235,.1)}.embedded-task-strip-host .task-node{appearance:none;width:2.3rem;height:2.3rem;border-radius:999px;border:2px solid #bfcdf0;background:#fff;color:#2f56bf;font-size:1.55rem;font-weight:600;line-height:1;text-transform:lowercase;font-family:"Source Sans 3","Trebuchet MS","Segoe UI",sans-serif;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}.embedded-task-strip-host .task-node::after{display:none}.embedded-task-strip-host .task-node:focus-visible,.embedded-task-strip-host .task-node:hover{background:#2f56bf;color:#fff;border-color:#2f56bf;outline:0}.embedded-task-strip-host .task-node-wrap.is-active .task-node,.embedded-task-strip-host .task-node-wrap.is-active .task-node:focus-visible,.embedded-task-strip-host .task-node-wrap.is-active .task-node:hover{color:#2f56bf;border-color:#2f56bf;background:#eaf1ff}.card--examples .example-description{display:flex;flex-direction:column;gap:6px;font-size:13px;position:relative;color:var(--label-color);transition:background-color .2s ease,border-color .2s ease}.card--examples.mattemotor-markdown-pane,.card--examples[data-mattemotor-markdown-pane]{height:100%}.card--examples.mattemotor-markdown-pane .example-description,.card--examples[data-mattemotor-markdown-pane] .example-description{display:flex;flex-direction:column;flex:1 1 auto;gap:12px;min-height:0}.card--examples.mattemotor-markdown-pane .example-description>label,.card--examples[data-mattemotor-markdown-pane] .example-description>label{display:none!important}.card--examples.mattemotor-markdown-pane .example-description>.mattemotor-markdown-toolbar,.card--examples[data-mattemotor-markdown-pane] .example-description>.mattemotor-markdown-toolbar{order:2}.card--examples.mattemotor-markdown-pane .example-description>textarea,.card--examples[data-mattemotor-markdown-pane] .example-description>textarea{order:3;flex:1 1 auto;min-height:0;resize:vertical}.card--examples.mattemotor-markdown-pane .example-description>.example-description-preview,.card--examples[data-mattemotor-markdown-pane] .example-description>.example-description-preview{order:4;flex:1 1 auto;min-height:0}.card--examples.mattemotor-markdown-pane .example-description>[data-task-check-host],.card--examples[data-mattemotor-markdown-pane] .example-description>[data-task-check-host]{order:5}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;padding:10px 12px;border:1px solid #d5dde8;border-radius:12px;background:#edf1f7;overflow-x:auto;-webkit-overflow-scrolling:touch;position:sticky;top:0;z-index:2}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__heading-wrap,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__heading-wrap{flex:0 0 auto;min-width:180px}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__heading-select,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__heading-select{width:100%;height:38px;border:1px solid #c1cad9;border-radius:10px;background:#fff;color:#1e293b;padding:0 12px;font-size:.95rem;font-weight:600;cursor:pointer}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__heading-select:focus-visible,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__heading-select:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__button,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__button{flex:0 0 auto;min-width:38px;height:38px;border:1px solid #c1cad9;border-radius:10px;background:#fff;color:#1f2937;font-size:1rem;font-weight:600;line-height:1;cursor:pointer;padding:0 11px;transition:background .12s ease,border-color .12s ease,color .12s ease}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__button:hover,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__button:hover{background:#f1f5f9;border-color:#94a3b8}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__button:focus-visible,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__button--bold,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__button--bold{font-weight:800}.card--examples.mattemotor-markdown-pane .mattemotor-markdown-toolbar__button--italic,.card--examples[data-mattemotor-markdown-pane] .mattemotor-markdown-toolbar__button--italic{font-style:italic;font-weight:700}.card--examples.mattemotor-markdown-pane[data-markdown-mode=editable] .example-description-preview,.card--examples.mattemotor-markdown-pane[data-markdown-mode=rendered] textarea,.card--examples.mattemotor-markdown-pane[data-markdown-pane-state=add] .example-description>[data-task-check-host],.card--examples[data-mattemotor-markdown-pane][data-markdown-mode=editable] .example-description-preview,.card--examples[data-mattemotor-markdown-pane][data-markdown-mode=rendered] textarea,.card--examples[data-mattemotor-markdown-pane][data-markdown-pane-state=add] .example-description>[data-task-check-host]{display:none!important}.card--examples.mattemotor-markdown-pane[data-markdown-mode=rendered] .example-description-preview,.card--examples[data-mattemotor-markdown-pane][data-markdown-mode=rendered] .example-description-preview{display:block!important;min-height:0;overflow:auto}.card--examples.mattemotor-markdown-pane[data-markdown-pane-state=add] .example-description,.card--examples[data-mattemotor-markdown-pane][data-markdown-pane-state=add] .example-description{align-items:stretch;justify-content:flex-start}.card--examples.mattemotor-markdown-pane .example-description-add,.card--examples[data-mattemotor-markdown-pane] .example-description-add{display:flex;align-items:flex-start;justify-content:center;flex:0 0 auto;min-height:0;width:100%;padding-top:clamp(28px,6vh,72px)}.mattemotor-host.split-enabled[data-markdown-pane-state=add] .card--examples .example-description,.mattemotor-host.split-enabled[data-markdown-pane-state=add] .card--examples[data-mattemotor-markdown-pane] .example-description{flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important}.mattemotor-host.split-enabled[data-markdown-pane-state=add] .card--examples .example-description-add,.mattemotor-host.split-enabled[data-markdown-pane-state=add] .card--examples[data-mattemotor-markdown-pane] .example-description-add{padding:0!important;width:auto;flex:0 0 auto}.card--examples .example-description-toggle,.card--examples.mattemotor-markdown-pane .example-description-add[hidden],.card--examples[data-mattemotor-markdown-pane] .example-description-add[hidden],.task-panel__toggle{display:none!important}.card--examples.mattemotor-markdown-pane .example-description-add__button,.card--examples[data-mattemotor-markdown-pane] .example-description-add__button{width:88px;height:88px;border:2px dashed #cfd5df;border-radius:22px;background:#fff;color:#667085;font-size:2.25rem;font-weight:500;line-height:1;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,color .15s ease,transform .15s ease}.card--examples.mattemotor-markdown-pane .example-description-add__button:hover,.card--examples[data-mattemotor-markdown-pane] .example-description-add__button:hover{border-color:#98a2b3;background:#f8fafc;color:#344054}.card--examples.mattemotor-markdown-pane .example-description-add__button:focus-visible,.card--examples[data-mattemotor-markdown-pane] .example-description-add__button:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.card--examples .example-description-toggle{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;align-self:flex-start}.card--examples .example-description-toggle__button{border:0;background:0 0;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;color:#334155;cursor:pointer}.card--examples .example-description-toggle__button[aria-pressed=true]{background:#1d4ed8;color:#fff}.card--examples .example-description-toggle__button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.card--examples .example-description [data-task-check-host]{margin-top:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;width:100%}#btnFullscreen,.card--examples .example-description [data-task-check-host][hidden],.card--examples .example-description-preview[data-empty=true],.card--examples .example-description-preview[hidden]{display:none}.card--examples .example-description [data-task-check-host] .status,.card--examples .example-description [data-task-check-host] [data-task-check-host-actions]{width:100%}.card--examples .example-description-preview{display:block;border:1px solid var(--card-border);border-radius:var(--control-radius);padding:12px 14px;font-size:14px;line-height:1.5;color:var(--text-color);background:#fff;overflow-x:auto;margin-top:4px}.card--examples .example-description-preview[data-empty=true][data-placeholder=true]{display:inline-flex}.card--examples .example-description-preview[data-placeholder=true]{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px dashed #c7d2fe;border-radius:var(--control-radius);background:#eef2ff;color:#1e3a8a;font-weight:600;cursor:pointer}body[data-show-figure-settings=true] .side #exportCard,body[data-show-figure-settings=true] .side .card--draggables,body[data-show-figure-settings=true] .side .card--export,body[data-show-figure-settings=true] .side .card--settings,body[data-show-figure-settings=true] .side [data-author-layout-guard=figure-settings]{display:flex}body[data-show-figure-settings=false] .side #exportCard,body[data-show-figure-settings=false] .side .card--draggables,body[data-show-figure-settings=false] .side .card--export,body[data-show-figure-settings=false] .side .card--settings,body[data-show-figure-settings=false] .side [data-author-layout-guard=figure-settings],body[data-show-figure-settings=false] [data-edit-figure-only]{display:none!important}body[data-task-editor-fullscreen=true] .layout--sidebar{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"side"!important}body[data-task-editor-fullscreen=true] .layout--sidebar>:not(.side):not(.splitter){display:none!important}body[data-task-editor-fullscreen=true] .layout--sidebar>.side{grid-column:1;grid-area:side;border-inline-start:none;padding-inline-start:0}.card--author-actions .toolbar{flex:1 1 auto}body[data-effective-host-mode=edit-task-text] #btnFullscreen,body[data-host-mode=edit-task-text] #btnFullscreen{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}body[data-show-task-text-panel=true] .side .card--examples{display:flex}body[data-effective-host-mode=edit-task-text] .card--examples.mattemotor-markdown-pane .example-description,body[data-effective-host-mode=edit-task-text] .card--examples[data-mattemotor-markdown-pane] .example-description,body[data-host-mode=edit-figure] .card--examples.mattemotor-markdown-pane .example-description,body[data-host-mode=edit-figure] .card--examples[data-mattemotor-markdown-pane] .example-description,body[data-host-mode=edit-task-text] .card--examples.mattemotor-markdown-pane .example-description,body[data-host-mode=edit-task-text] .card--examples[data-mattemotor-markdown-pane] .example-description{display:flex!important}body[data-effective-host-mode=edit-task-text] .card--examples .example-description-preview,body[data-effective-host-mode=edit-task-text] .card--examples.mattemotor-markdown-pane .example-description-preview,body[data-effective-host-mode=edit-task-text] .card--examples[data-mattemotor-markdown-pane] .example-description-preview,body[data-effective-host-mode=edit-task-text] .task-panel.task-panel--collapsed .task-text-editable,body[data-effective-host-mode=edit-task-text] .task-panel__preview,body[data-host-mode=edit-figure] .card--examples .example-description,body[data-host-mode=edit-task-text] .card--examples .example-description-preview,body[data-host-mode=edit-task-text] .card--examples.mattemotor-markdown-pane .example-description-preview,body[data-host-mode=edit-task-text] .card--examples[data-mattemotor-markdown-pane] .example-description-preview,body[data-host-mode=edit-task-text] .task-panel.task-panel--collapsed .task-text-editable,body[data-host-mode=edit-task-text] .task-panel__preview{display:none!important}body[data-effective-host-mode=edit-task-text] .task-panel .task-text-editable,body[data-host-mode=edit-task-text] .task-panel .task-text-editable{display:block!important}body[data-show-task-text-panel=true] .side [data-task-text-panel]{display:block;width:100%}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .side .card--examples,body[data-app-mode=student][data-show-task-text-panel=false]:not([data-mattemotor-panel-mode=calculation]) .side .card--examples{display:flex!important}body[data-app-mode=student][data-show-task-text-panel=false][data-show-task-check=true] .side .card--examples{display:flex!important}body[data-app-mode=author][data-show-task-text-panel=false] .side .card--examples{display:flex}#panel-setup[data-task-response-mode=mc] #taskMathEngineFields,#panel-setup[data-task-response-mode=none] #taskMathEngineFields,#panel-setup[data-task-response-mode=radio] #taskMathEngineFields,body[data-app-mode=author][data-show-task-text-panel=false] .side [data-task-text-panel],body[data-app=mattemotor][data-app-mode=student][data-show-author-controls=false] .mattemotor-host>.card--examples[data-mattemotor-markdown-pane][data-markdown-empty=true]{display:none!important}body[data-app-mode=student] .side [data-task-text-panel]{display:block!important;width:100%}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .side [data-task-text-panel]{display:none!important}body[data-app-mode=student] .card--examples .example-description-preview[data-empty=true],body[data-host-mode=student-view] .card--examples .example-description-preview[data-empty=true],body[data-mode=student-view] .card--examples .example-description-preview[data-empty=true]{display:none!important;min-height:0}body[data-app-mode=author][data-author-layout-mode=task-view] .side [data-task-text-panel]{display:block!important;width:100%}body[data-app-mode=author][data-author-layout-mode=task-view] .side .task-panel{display:flex;flex-direction:column;gap:12px}.card--examples .example-description-preview .katex{display:inline-block;font-size:1.05em}.card--examples .example-description-preview .katex-display{text-align:left!important;overflow-x:auto;padding-bottom:2px}.card--examples .example-description-preview .katex-display>.katex{text-align:left!important}.card--examples .example-description-preview p{margin:0 0 10px}.math-vis-description-blank-line{margin:0;line-height:1.5}.card--examples .example-description-preview h1,.card--examples .example-description-preview h2,.card--examples .example-description-preview h3,.card--examples .example-description-preview h4,.card--examples .example-description-preview h5,.card--examples .example-description-preview h6{margin:0 0 10px;line-height:1.25;color:#0f172a}.card--examples .example-description-preview h1{font-size:1.42em}.card--examples .example-description-preview h2{font-size:1.3em}.card--examples .example-description-preview h3{font-size:1.18em}.card--examples .example-description-preview h4{font-size:1.06em}.card--examples .example-description-preview h5,.card--examples .example-description-preview h6{font-size:1em}.card--examples .example-description-preview ol,.card--examples .example-description-preview ul{margin:0 0 10px 22px;padding:0}.card--examples .example-description-preview li+li{margin-top:4px}.card--examples .example-description-preview blockquote{margin:0 0 10px;padding:0 0 0 12px;border-left:3px solid #cbd5e1;color:#334155}.card--examples .example-description-preview hr{border:0;border-top:1px solid #d1d5db;margin:10px 0}.card--examples .example-description-preview pre{margin:0 0 10px;padding:8px 10px;border:1px solid #dbe3ed;border-radius:8px;background:#f8fafc;overflow-x:auto}.card--examples .example-description-preview code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:.93em}.card--examples .example-description-preview blockquote code,.card--examples .example-description-preview h1 code,.card--examples .example-description-preview h2 code,.card--examples .example-description-preview h3 code,.card--examples .example-description-preview h4 code,.card--examples .example-description-preview h5 code,.card--examples .example-description-preview h6 code,.card--examples .example-description-preview li code,.card--examples .example-description-preview p code,code.math-vis-description-code{background:#e2e8f0;border-radius:4px;padding:1px 4px}.math-vis-description-emoji{margin-right:.125em}code.math-vis-description-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:.93em;padding:1px 5px;white-space:pre-wrap}.card--examples .example-description-preview pre.math-vis-code-block,.math-vis-description-rendered pre.math-vis-code-block{margin:0 0 12px;padding:0;border:1px solid #dbe3ed;border-radius:10px;background:#f8fafc;overflow:auto}.card--examples .example-description-preview pre.math-vis-code-block[class*=language-],.math-vis-description-rendered pre.math-vis-code-block[class*=language-]{box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}.card--examples .example-description-preview pre.math-vis-code-block code[class*=language-],.math-vis-description-rendered pre.math-vis-code-block code[class*=language-]{display:block;font-size:.93em}.card--examples .example-description-preview pre.math-vis-code-block.line-numbers .line-numbers-rows,.math-vis-description-rendered pre.math-vis-code-block.line-numbers .line-numbers-rows{border-right-color:#d1d5db}.card--examples .example-description-preview table{width:100%;border-collapse:collapse;margin:10px 0}.card--examples .example-description-preview td,.card--examples .example-description-preview th{border:1px solid #d1d5db;padding:6px 10px;text-align:left;vertical-align:top}.card--examples .example-description-preview th{background:#f1f5f9;font-weight:600}.card--examples .example-description-preview .math-vis-answerbox{margin:4px 4px 4px 0}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=hidden] .card--examples #panel-setup,body:not([data-app=mattemotor])[data-mattemotor-panel-mode=hidden] .card--examples .task-math-engine-setup,body:not([data-app=mattemotor])[data-mattemotor-panel-mode=setup] .card--examples .task-math-engine-runtime{display:none!important}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=setup] .card--examples #panel-setup,body:not([data-app=mattemotor])[data-mattemotor-panel-mode=setup] .card--examples .task-math-engine-setup{display:block}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples #panel-setup,body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples .task-math-engine-setup{display:none!important}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples .task-math-engine-runtime{display:flex}body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples .example-description-preview:not([hidden]),body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples.mattemotor-markdown-pane[data-markdown-mode=rendered] .example-description-preview:not([hidden]),body:not([data-app=mattemotor])[data-mattemotor-panel-mode=calculation] .card--examples[data-mattemotor-markdown-pane][data-markdown-mode=rendered] .example-description-preview:not([hidden]){display:block!important}.card--examples .mattemotor-card{background:0 0;border:0;border-radius:0;padding:0;box-shadow:none}.card--examples .task-response-mode{display:grid;gap:10px;margin-bottom:8px}.card--examples .task-response-mode__label{margin:0;font-size:.92rem;font-weight:700;letter-spacing:.02em;color:#334155}.card--examples .task-response-mode-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:6px;border:1px solid #d7deea;border-radius:14px;background:linear-gradient(180deg,#f8fafc 0,#eef2f7 100%)}.card--examples .task-response-mode-switch__button{border:0;border-radius:10px;background:0 0;color:#475569;font-weight:700;font-size:.86rem;line-height:1.25;min-height:38px;padding:8px 10px;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}.card--examples .task-response-mode-switch__button:hover{background:rgba(37,99,235,.08);color:#1e3a8a}.card--examples .task-response-mode-switch__button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.card--examples .task-response-mode-switch__button.is-active,.card--examples .task-response-mode-switch__button[aria-pressed=true]{background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.28)}.card--examples .task-choice-kind-switch{grid-template-columns:repeat(2,minmax(0,1fr));max-width:320px;margin-bottom:12px}.task-figure-layout-fields{display:flex;flex-direction:column;gap:8px;padding:12px 0 8px;border-top:1px solid rgba(15,23,42,.08);margin-top:12px}.task-figure-layout-fields[hidden]{display:none!important}.task-figure-layout-fields__option{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:10px;font-size:.92rem;color:#1f2937;cursor:pointer;text-align:left}.task-figure-layout-fields__option input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;cursor:pointer;margin:0;order:0}.task-figure-layout-fields__option>span{order:1;flex:0 1 auto}body[data-app-mode=student] #panel-calculation.mattemotor-card,body[data-app-mode=student] .task-math-engine-runtime.mattemotor-card,body[data-host-mode=student-view] #panel-calculation.mattemotor-card,body[data-host-mode=student-view] .task-math-engine-runtime.mattemotor-card,body[data-mode=student-view] #panel-calculation.mattemotor-card,body[data-mode=student-view] .task-math-engine-runtime.mattemotor-card{background:0 0;border:0;box-shadow:none;border-radius:0;padding:0}body[data-app-mode=student] .grid.layout--sidebar>.card,body[data-app-mode=student] .side>.card,body[data-host-mode=student-view] .grid.layout--sidebar>.card,body[data-host-mode=student-view] .side>.card,body[data-mode=student-view] .grid.layout--sidebar>.card,body[data-mode=student-view] .side>.card{border:0;box-shadow:none;background:0 0}body[data-app-mode=student] .card--examples .example-description-preview,body[data-host-mode=student-view] .card--examples .example-description-preview,body[data-mode=student-view] .card--examples .example-description-preview{border:0;box-shadow:none;background:0 0;padding:0;font-size:var(--mv-student-font-base);line-height:var(--mv-student-line-height)}body[data-app-mode=student] .card--examples .task-math-engine-runtime,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime,body[data-mode=student-view] .card--examples .task-math-engine-runtime{margin-top:0;padding:0;background:0 0;border-radius:0;--mm-runtime-task-font-size:var(--mv-student-font-base);--mm-runtime-task-line-height:var(--mv-student-line-height);--mm-choice-gap:calc(var(--mv-student-font-base) * 0.6);--mm-choice-control-size:calc(var(--mv-student-font-base) * 1.6);--mm-choice-font-base:var(--mv-student-font-base);--mm-choice-label-font-size:calc(var(--mv-student-font-base) * 0.9);--mm-choice-feedback-font-size:calc(var(--mv-student-font-base) * 0.8)}.tool-task-solved-banner[hidden],body[data-app-mode=student][data-mattemotor-panel-mode=hidden] .card--examples .task-math-engine-runtime,body[data-host-mode=student-view][data-mattemotor-panel-mode=hidden] .card--examples .task-math-engine-runtime,body[data-mode=student-view][data-mattemotor-panel-mode=hidden] .card--examples .task-math-engine-runtime{display:none!important}body[data-app-mode=student] .card--examples .task-math-engine-runtime .mattemotor-task-display,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor-task-display,body[data-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor-task-display{border:0;box-shadow:none;background:0 0;padding:0;font-size:var(--mm-runtime-task-font-size);line-height:var(--mm-runtime-task-line-height)}body[data-app-mode=student] .card--examples .task-math-engine-runtime .mattemotor__history-item,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor__history-item,body[data-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor__history-item{border:1px solid #d1d5db;box-shadow:none;border-radius:12px;background:#fff;padding:10px 12px;font-size:var(--mm-runtime-task-font-size);line-height:var(--mm-runtime-task-line-height)}body[data-app-mode=student] .card--examples .task-math-engine-runtime .mattemotor__history-math,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor__history-math,body[data-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor__history-math{font-size:var(--mm-runtime-task-font-size);line-height:var(--mm-runtime-task-line-height)}body[data-app-mode=student] .side,body[data-host-mode=student-view] .side,body[data-mode=student-view] .side{min-height:0}body[data-app-mode=student] .side .card--examples,body[data-host-mode=student-view] .side .card--examples,body[data-mode=student-view] .side .card--examples{display:flex;flex-direction:column;gap:clamp(12px,1.4vw,18px);flex:1 1 auto;min-height:0;border:0;background:0 0;border-radius:0;box-shadow:none;padding:0 clamp(14px,1.5vw,20px)}body[data-app-mode=student] .side .card--examples [data-task-text-description],body[data-host-mode=student-view] .side .card--examples [data-task-text-description],body[data-mode=student-view] .side .card--examples [data-task-text-description]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}body[data-app-mode=student] .side .card--examples .example-description,body[data-app-mode=student] .side .card--examples .task-math-engine-runtime,body[data-host-mode=student-view] .side .card--examples .example-description,body[data-host-mode=student-view] .side .card--examples .task-math-engine-runtime,body[data-mode=student-view] .side .card--examples .example-description,body[data-mode=student-view] .side .card--examples .task-math-engine-runtime{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin-top:0}body[data-app-mode=student] .side .card--examples .task-choice-runtime,body[data-host-mode=student-view] .side .card--examples .task-choice-runtime,body[data-mode=student-view] .side .card--examples .task-choice-runtime{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}body[data-app-mode=student] .task-choice-runtime__prompt,body[data-host-mode=student-view] .task-choice-runtime__prompt,body[data-mode=student-view] .task-choice-runtime__prompt{font-size:calc(var(--mv-student-font-base)*1.2);line-height:var(--mv-student-line-height, 1.4)}body[data-app-mode=student] .side .card--examples .example-description-preview,body[data-host-mode=student-view] .side .card--examples .example-description-preview,body[data-mode=student-view] .side .card--examples .example-description-preview{margin-top:0}body[data-app-mode=student] .side .card--examples [data-task-check-host],body[data-host-mode=student-view] .side .card--examples [data-task-check-host],body[data-mode=student-view] .side .card--examples [data-task-check-host]{align-items:stretch;flex:0 0 auto;min-height:0;margin-top:auto}body[data-app-mode=student] .side .card--examples [data-task-check-host] .status,body[data-host-mode=student-view] .side .card--examples [data-task-check-host] .status,body[data-mode=student-view] .side .card--examples [data-task-check-host] .status{order:1}body[data-app-mode=student] .side .card--examples [data-task-check-host] [data-task-check-host-actions],body[data-host-mode=student-view] .side .card--examples [data-task-check-host] [data-task-check-host-actions],body[data-mode=student-view] .side .card--examples [data-task-check-host] [data-task-check-host-actions]{order:2;display:flex;align-items:center;justify-content:flex-end;gap:10px;width:100%;margin-top:auto}.tool-task-solved-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:100;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#f0fdf4;border:1.5px solid #bbf7d0;border-radius:10px;box-sizing:border-box;box-shadow:0 8px 24px rgba(22,101,52,.18)}.tool-task-solved-banner__info{display:flex;align-items:center;gap:10px}.tool-task-solved-banner__icon{width:32px;height:32px;flex-shrink:0}.tool-task-retry-banner__icon svg,.tool-task-solved-banner__icon svg{width:100%;height:100%}.tool-task-solved-banner__title{margin:0;font-size:1rem;font-weight:700;color:#15803d}.tool-task-solved-banner__subtitle{margin:0;font-size:.875rem;color:#16a34a}.tool-task-solved-banner__actions{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}.tool-task-solved-banner__reset{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:0 0;color:#15803d;border:2px solid #15803d;border-radius:999px;cursor:pointer;font-family:inherit;transition:background .15s ease,color .15s ease}.tool-task-solved-banner__reset:hover{background:#15803d;color:#fff}.tool-task-solved-banner__reset:focus-visible{outline:2px solid #fff;outline-offset:2px}.tool-task-solved-banner__continue{display:inline-flex;align-items:center;justify-content:center;padding:8px 20px;background:#16a34a;color:#fff;border:0;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;flex-shrink:0;font-family:inherit;transition:background .15s ease}.tool-task-solved-banner__continue:hover{background:#15803d}.tool-task-solved-banner__continue:focus-visible{outline:2px solid #fff;outline-offset:2px}@media (max-width:480px){.tool-task-solved-banner{flex-wrap:wrap}.tool-task-solved-banner__continue{width:100%;justify-content:center}}.tool-task-retry-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:100;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fef2f2;border:1.5px solid #fecaca;border-radius:10px;box-sizing:border-box;box-shadow:0 8px 24px rgba(153,27,27,.18)}.card--examples .mattemotor-fields[hidden],.tool-task-retry-banner[hidden]{display:none!important}.tool-task-retry-banner__info{display:flex;align-items:center;gap:10px}.tool-task-retry-banner__icon{width:32px;height:32px;flex-shrink:0}.tool-task-retry-banner__title{margin:0;font-size:1rem;font-weight:700;color:#991b1b}.tool-task-retry-banner__subtitle{margin:0;font-size:.875rem;color:#dc2626}.tool-task-retry-banner__retry{display:inline-flex;align-items:center;justify-content:center;padding:8px 20px;background:#dc2626;color:#fff;border:0;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;flex-shrink:0;margin-left:auto;font-family:inherit;transition:background .15s ease}.tool-task-retry-banner__retry:hover{background:#b91c1c}@media (max-width:480px){.tool-task-retry-banner{flex-wrap:wrap}.tool-task-retry-banner__retry{width:100%;justify-content:center}}.tool-task-banner-details{flex-basis:100%;width:100%;order:5;margin:0;padding:10px 0 0;list-style:none;display:grid;gap:4px}.tool-task-solved-banner .tool-task-banner-details{border-top:1px solid #bbf7d0}.tool-task-retry-banner .tool-task-banner-details{border-top:1px solid #fecaca}.tool-task-banner-details__item{display:flex;gap:8px;align-items:baseline;font-size:.85rem;line-height:1.35}.tool-task-banner-details__item[data-passed=true]{color:#166534}.tool-task-banner-details__item[data-passed=false]{color:#991b1b}.tool-task-banner-details__icon{font-weight:700;flex-shrink:0}body[data-app-mode=student] .side .card--examples .task-choice-runtime,body[data-host-mode=student-view] .side .card--examples .task-choice-runtime,body[data-mode=student-view] .side .card--examples .task-choice-runtime{margin-top:0;padding-inline-start:0;border:0;border-radius:0;background:0 0;box-shadow:none}body[data-app-mode=student] .side .card--examples .task-choice-runtime__feedback,body[data-host-mode=student-view] .side .card--examples .task-choice-runtime__feedback,body[data-mode=student-view] .side .card--examples .task-choice-runtime__feedback{order:9}body[data-app-mode=student] .side .card--examples .task-math-engine-runtime__input-row,body[data-host-mode=student-view] .side .card--examples .task-math-engine-runtime__input-row,body[data-mode=student-view] .side .card--examples .task-math-engine-runtime__input-row{position:sticky;bottom:0;margin-top:auto;padding-top:14px;padding-bottom:calc(8px + env(safe-area-inset-bottom));background:0 0;z-index:2}body[data-app-mode=student] .side .card--examples .task-choice-runtime__actions,body[data-app-mode=student] .side .card--examples [data-task-check-host-actions],body[data-host-mode=student-view] .side .card--examples .task-choice-runtime__actions,body[data-host-mode=student-view] .side .card--examples [data-task-check-host-actions],body[data-mode=student-view] .side .card--examples .task-choice-runtime__actions,body[data-mode=student-view] .side .card--examples [data-task-check-host-actions]{order:10;position:sticky;bottom:0;margin-top:auto;padding-top:14px;padding-bottom:calc(8px + env(safe-area-inset-bottom));background:0 0;z-index:2}@media (max-width:980px){body.app-layout{--app-layout-figure-stage-min-block-size:clamp(260px, 42dvh, 420px);--app-layout-figure-stage-max-block-size:clamp(280px, 58dvh, 640px)}body.app-layout .layout--sidebar .task-math-engine-runtime__input-row,body[data-app-mode=student] .task-math-engine-runtime__input-row,body[data-host-mode=student-view] .task-math-engine-runtime__input-row,body[data-mode=student-view] .task-math-engine-runtime__input-row{position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:100!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;margin-top:0!important;box-shadow:0-2px 8px rgba(0,0,0,.08);border-top:1px solid #e5e7eb}body.app-layout .layout--sidebar .task-choice-runtime__actions,body.app-layout .layout--sidebar [data-task-check-host-actions],body[data-app-mode=student] .task-choice-runtime__actions,body[data-app-mode=student] [data-task-check-host-actions],body[data-host-mode=student-view] .task-choice-runtime__actions,body[data-host-mode=student-view] [data-task-check-host-actions],body[data-mode=student-view] .task-choice-runtime__actions,body[data-mode=student-view] [data-task-check-host-actions]{position:fixed!important;bottom:0!important;right:0!important;left:auto!important;z-index:100!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;margin-top:0!important}body.app-layout .layout--sidebar,body[data-app-mode=student].app-layout .layout--sidebar,body[data-host-mode=student-view].app-layout .layout--sidebar,body[data-mode=student-view].app-layout .layout--sidebar{padding-bottom:80px}.layout--sidebar .card--examples .task-math-engine-runtime .mattemotor-header:empty,.layout--sidebar .card--examples .task-math-engine-runtime .task-math-engine-runtime__feedback:empty,.layout--sidebar .card--examples .task-math-engine-runtime .task-math-engine-runtime__history:empty{display:none}body.app-layout .layout--sidebar .tool-task-retry-banner:not([hidden]),body.app-layout .layout--sidebar .tool-task-solved-banner:not([hidden]),body[data-app-mode=student] .tool-task-retry-banner:not([hidden]),body[data-app-mode=student] .tool-task-solved-banner:not([hidden]),body[data-host-mode=student-view] .tool-task-retry-banner:not([hidden]),body[data-host-mode=student-view] .tool-task-solved-banner:not([hidden]),body[data-mode=student-view] .tool-task-retry-banner:not([hidden]),body[data-mode=student-view] .tool-task-solved-banner:not([hidden]){position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:101!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;margin:0!important;border-radius:0!important;border:0!important;border-top:1px solid #e5e7eb!important;box-shadow:0-2px 8px rgba(0,0,0,.08);box-sizing:border-box}body.app-layout .layout--sidebar [data-task-check-host]:has(.tool-task-solved-banner:not([hidden]),.tool-task-retry-banner:not([hidden])) [data-task-check-host-actions],body[data-app-mode=student] [data-task-check-host]:has(.tool-task-solved-banner:not([hidden]),.tool-task-retry-banner:not([hidden])) [data-task-check-host-actions],body[data-host-mode=student-view] [data-task-check-host]:has(.tool-task-solved-banner:not([hidden]),.tool-task-retry-banner:not([hidden])) [data-task-check-host-actions],body[data-mode=student-view] [data-task-check-host]:has(.tool-task-solved-banner:not([hidden]),.tool-task-retry-banner:not([hidden])) [data-task-check-host-actions]{display:none!important}body.app-layout .layout--sidebar [data-task-check-host] .status:not([hidden]),body[data-app-mode=student] [data-task-check-host] .status:not([hidden]),body[data-host-mode=student-view] [data-task-check-host] .status:not([hidden]),body[data-mode=student-view] [data-task-check-host] .status:not([hidden]){position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:101!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;margin:0!important;box-shadow:0-2px 8px rgba(0,0,0,.08);border-top:1px solid #e5e7eb;box-sizing:border-box}body.app-layout .layout--sidebar [data-task-check-host]:has(.status:not([hidden])) [data-task-check-host-actions],body[data-app-mode=student] [data-task-check-host]:has(.status:not([hidden])) [data-task-check-host-actions],body[data-host-mode=student-view] [data-task-check-host]:has(.status:not([hidden])) [data-task-check-host-actions],body[data-mode=student-view] [data-task-check-host]:has(.status:not([hidden])) [data-task-check-host-actions]{display:none!important}body.app-layout .layout--sidebar .task-math-engine-runtime__feedback:not(:empty),body[data-app-mode=student] .task-math-engine-runtime__feedback:not(:empty),body[data-host-mode=student-view] .task-math-engine-runtime__feedback:not(:empty),body[data-mode=student-view] .task-math-engine-runtime__feedback:not(:empty){position:fixed!important;bottom:60px!important;left:0!important;right:0!important;z-index:99!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:10px 16px!important;margin:0!important;box-shadow:0-1px 4px rgba(0,0,0,.06);border-top:1px solid #e5e7eb;box-sizing:border-box}}@media (max-width:480px){body.app-layout{--app-layout-figure-stage-min-block-size:clamp(200px, 32dvh, 320px);--app-layout-figure-stage-max-block-size:clamp(220px, 40dvh, 400px)}body.app-layout .layout--sidebar>:not(.side):not(.splitter).card>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter)>.figure,body.app-layout .layout--sidebar>:not(.side):not(.splitter)[data-app-shell-main-pane=true]>.figure{position:relative;z-index:0}body[data-app-mode=student].app-layout .layout--sidebar,body[data-host-mode=student-view].app-layout .layout--sidebar,body[data-mode=student-view].app-layout .layout--sidebar{padding-bottom:60px}}@media (max-height:700px) and (max-width:980px){body.app-layout{--app-layout-figure-stage-min-block-size:clamp(180px, 28dvh, 280px);--app-layout-figure-stage-max-block-size:clamp(200px, 36dvh, 360px)}}.card--examples .mattemotor-fields{display:grid;gap:14px}.card--examples .mattemotor-fields label{display:grid;gap:6px;width:100%;min-width:0;font-weight:600;color:#374151}.card--examples .mattemotor-fields .mattemotor-field{min-width:0;max-width:100%;overflow-x:auto}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms{display:grid;gap:10px}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms__row label{display:grid;gap:6px;min-width:0;font-weight:600;color:#374151}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms__row .mattemotor-field{min-height:48px}.addItemBtn,.removeItemBtn{width:clamp(40px,8vw,60px);aspect-ratio:1;border:2px dashed #cfcfcf;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;color:#6b7280;cursor:pointer;flex-shrink:0}.addItemBtn:hover{box-shadow:0 2px 8px rgba(0,0,0,.06)}.addItemBtn:active{transform:translateY(1px)}.removeItemBtn{width:clamp(28px,6vw,44px);font-size:18px}.removeItemBtn:hover{border-color:#f87171;background:#fee2e2;color:#ef4444}.removeItemBtn[disabled]{opacity:.4;cursor:default}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms__row .addItemBtn{width:clamp(36px,6vw,48px)}:is(.card--examples,.task-math-engine-setup) .mattemotor-extra-answer-terms>.addItemBtn{width:clamp(36px,6vw,48px);justify-self:end}.card--examples .task-math-optional-symbols{display:grid;gap:8px}.card--examples .task-math-optional-symbols__toggle{appearance:none;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#1f2937;display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:8px 12px;font:inherit;font-weight:700;cursor:pointer;transition:border-color .15s ease,background .15s ease}.card--examples .task-math-optional-symbols__toggle::before{content:"▸";font-size:.8rem;line-height:1;transform-origin:45% 55%;transition:transform .15s ease}.card--examples .task-math-optional-symbols__toggle[aria-expanded=true]::before{transform:rotate(90deg)}.card--examples .task-math-optional-symbols__toggle:hover{border-color:#94a3b8}.card--examples .task-math-optional-symbols__toggle:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}.card--examples .task-math-optional-symbols__toggle.has-value{border-color:#3b82f6;background:#eff6ff;color:#1e3a8a}.card--examples .task-math-optional-symbols__panel{display:grid;gap:8px}.card--examples .task-math-optional-symbols__hint{margin:0;font-size:.83rem;font-weight:500;color:#64748b}.card--examples .task-math-optional-symbols__field{display:grid;gap:6px;font-weight:600;color:#374151}.card--examples .task-math-symbol-picker{display:grid;gap:8px;margin-top:8px;padding:8px 10px;border-radius:14px;background:#070b15}.card--examples .task-math-symbol-picker__group{display:flex;flex-wrap:wrap;gap:6px}.card--examples .task-math-symbol-chip{border:0;border-radius:8px;background:0 0;color:#f8fafc;position:relative;display:inline-flex;align-items:center;justify-content:center;font-size:.98rem;font-weight:700;line-height:1.1;min-height:34px;min-width:34px;padding:6px 9px;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}.card--examples .task-math-symbol-chip:hover{background:rgba(248,250,252,.16)}.card--examples .task-math-symbol-chip:active{transform:translateY(1px)}.card--examples .task-math-symbol-chip:focus-visible{outline:2px solid #bfdbfe;outline-offset:1px}.card--examples .task-math-symbol-chip.is-selected,.card--examples .task-math-symbol-chip[aria-pressed=true]{background:rgba(248,250,252,.28);color:#fff}.card--examples .task-math-symbol-chip[data-symbol-key=fraction],.card--examples .task-math-symbol-chip[data-symbol-key=power],.card--examples .task-math-symbol-chip[data-symbol-key=vector],.card--examples .task-math-symbol-chip[data-symbol-token=fraction],.card--examples .task-math-symbol-chip[data-symbol-token=power],.card--examples .task-math-symbol-chip[data-symbol-token=vector]{color:transparent}.card--examples .task-math-symbol-chip[data-symbol-key=fraction]::after,.card--examples .task-math-symbol-chip[data-symbol-key=power]::after,.card--examples .task-math-symbol-chip[data-symbol-key=vector]::after,.card--examples .task-math-symbol-chip[data-symbol-token=fraction]::after,.card--examples .task-math-symbol-chip[data-symbol-token=power]::after,.card--examples .task-math-symbol-chip[data-symbol-token=vector]::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:contain}.card--examples .task-math-symbol-chip[data-symbol-key=fraction]::after,.card--examples .task-math-symbol-chip[data-symbol-token=fraction]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2.5' width='8' height='6' rx='1'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Crect x='8' y='15.5' width='8' height='6' rx='1'/%3E%3C/svg%3E")}.card--examples .task-math-symbol-chip[data-symbol-key=vector]::after,.card--examples .task-math-symbol-chip[data-symbol-token=vector]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='7' x2='20' y2='7'/%3E%3Cpath d='M16 3l4 4-4 4'/%3E%3Cpath d='M7 14l5 7 5-7'/%3E%3C/svg%3E")}.card--examples .task-math-symbol-chip[data-symbol-key=power]::after,.card--examples .task-math-symbol-chip[data-symbol-token=power]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='11.5' width='9' height='9' rx='1.1'/%3E%3Crect x='13' y='3.5' width='7.5' height='7.5' rx='1.1'/%3E%3C/svg%3E")}.card--examples .task-choice-editor{display:grid;gap:12px;margin-top:10px}.card--examples .task-choice-editor[hidden]{display:none!important}.card--examples .task-choice-editor__heading{display:grid;gap:2px}.card--examples .task-choice-editor__title{margin:0;font-size:1rem;font-weight:700;color:#0f172a}.card--examples .task-choice-editor__hint{margin:0;font-size:.85rem;color:#64748b}.card--examples .task-choice-editor__layout{display:grid;gap:6px}.card--examples .task-choice-editor__layout-field{display:grid;gap:6px;width:min(100%,220px);font-size:.84rem;font-weight:600;color:#334155}.card--examples .task-choice-editor__layout-select{min-height:40px}.card--examples .task-choice-editor__layout-hint{margin:0;font-size:.8rem;color:#64748b}.card--examples .task-choice-editor__list{display:grid;gap:8px}.card--examples .task-choice-editor__option{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:8px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:12px;background:linear-gradient(180deg,#fff 0,#f8fafc 100%)}.card--examples .task-choice-editor__text{width:100%;min-width:0;min-height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-size:.95rem;color:#0f172a;background:#fff;box-sizing:border-box}.card--examples .task-choice-editor__text:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.card--examples .task-choice-editor__correct{display:inline-flex;align-items:center;gap:6px;color:#334155;font-size:.84rem;font-weight:600;white-space:nowrap}.card--examples .task-choice-editor__remove{appearance:none;border:0;background:0 0;color:#dc2626;width:24px;height:24px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;justify-self:end;font-size:18px;font-weight:700;line-height:1;cursor:pointer;flex-shrink:0;transition:border-color .2s,color .2s,background .2s}.card--examples .task-choice-editor__remove:hover{color:#b91c1c;background:rgba(220,38,38,.08)}.card--examples .task-choice-editor__remove:focus-visible{outline:2px solid rgba(220,38,38,.28);outline-offset:2px;color:#b91c1c}.card--examples .task-choice-editor__actions{display:flex;justify-content:flex-start}.card--examples .task-choice-editor__add{min-height:36px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor{display:grid;gap:12px;padding:14px;border:1px solid #dbe4f0;border-radius:14px;background:linear-gradient(180deg,#fff 0,#f8fbff 100%)}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__heading{display:grid;gap:4px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__title{margin:0;font-size:1rem;font-weight:700;color:#0f172a}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__hint{margin:0;font-size:.84rem;color:#64748b}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding-top:10px;border-top:1px solid #dbe4f0;margin-top:2px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__count-wrap{width:min(100%,180px)}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__add,:is(.card--examples,.task-math-engine-setup) .task-solution-editor__count{min-height:40px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__list{display:grid;gap:10px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"drag toggle main remove"". . status remove";column-gap:8px;row-gap:4px;align-items:center;padding:8px 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;transition:border-color .2s,box-shadow .2s,background .2s}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-main{grid-area:main;min-width:0}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step.is-dragging{opacity:.65}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step.drop-before{box-shadow:inset 0 3px 0#2563eb}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step.drop-after{box-shadow:inset 0-3px 0#2563eb}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step[data-validation-code=ok]{border-color:#86efac;background:#fbfffc}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step[data-validation-code=feil_svar],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step[data-validation-code=tom],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step[data-validation-code=ugyldig_format]{border-color:#fecaca;background:snow}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__type-toggle{display:inline-flex;align-items:center;justify-content:center;grid-area:toggle;width:24px;min-width:24px;min-height:24px;padding:0;border:0;background:0 0}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__type-checkbox{width:16px;height:16px;margin:0;accent-color:#2563eb}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__drag-handle{grid-area:drag;appearance:none;border:0;background:0 0;padding:4px 2px;display:inline-flex;align-items:center;justify-content:center;cursor:grab;color:#9ca3af;flex-shrink:0}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__drag-handle:focus-visible{outline:2px solid #2563eb;outline-offset:2px;color:#2563eb}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__drag-handle:active{cursor:grabbing}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__drag-handle-icon{font-size:16px;line-height:1}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__editor-fields,:is(.card--examples,.task-math-engine-setup) .task-solution-editor__math-wrap,:is(.card--examples,.task-math-engine-setup) .task-solution-editor__text-wrap{min-width:0;width:100%}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__textarea{width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:12px;padding:9px 12px;font:inherit;color:#0f172a;background:#fff;line-height:1.45;resize:vertical;box-sizing:border-box}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__textarea:focus-visible{outline:2px solid #2563eb;outline-offset:2px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__math-field{min-height:40px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__math-field.mattemotor-field{border-width:1px;border-radius:12px;padding:9px 12px;font-size:1rem;min-height:40px}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status,:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary{margin:0;font-size:.82rem;font-weight:600;line-height:1.4}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status{grid-area:status;min-width:0;min-height:0;display:block;padding:0 2px 0 4px;border:0;border-radius:0;background:0 0;color:#475569;box-sizing:border-box}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-empty=true]{display:none}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__remove{grid-area:remove;appearance:none;border:0;background:0 0;color:#dc2626;width:24px;height:24px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;line-height:1;cursor:pointer;flex-shrink:0;transition:border-color .2s,color .2s,background .2s}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__remove:hover{color:#b91c1c;background:rgba(220,38,38,.08)}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__remove:focus-visible{outline:2px solid rgba(220,38,38,.28);outline-offset:2px;color:#b91c1c}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__remove:disabled{color:#cbd5e1;background:0 0;cursor:not-allowed}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-status-code=ok],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary[data-status-code=ok]{color:#166534}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-status-code=text]{color:#64748b}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-status-code=feil_svar],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-status-code=tom],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status[data-status-code=ugyldig_format],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary[data-status-code=feil_svar],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary[data-status-code=tom],:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary[data-status-code=ugyldig_format]{color:#b91c1c}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__summary{padding:10px 12px;border-radius:12px;background:#eef6ff;color:#0f172a}@media (max-width:720px){:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step{grid-template-columns:auto auto minmax(0,1fr) auto}:is(.card--examples,.task-math-engine-setup) .task-solution-editor__step-status{grid-column:auto}}.card--examples .mattemotor-field,.card--examples .mattemotor-input{width:100%;border:2px solid #d1d5db;border-radius:12px;padding:12px;font-size:1.08rem;background:#fff;box-sizing:border-box}.card--examples .mattemotor-field{min-height:64px;overflow-x:auto}.card--examples [data-task-math-term-row][data-validation-code=ok]{color:#166534}.card--examples [data-task-math-term-row][data-validation-code=feil_svar],.card--examples [data-task-math-term-row][data-validation-code=ugyldig_format]{color:#991b1b}.card--examples .mattemotor-field[data-validation-code=ok],.card--examples input[data-validation-code=ok]{border-color:#86efac;background:#f0fdf4;box-shadow:0 0 0 1px rgba(134,239,172,.3)}.card--examples math-field.mattemotor-field[data-validation-code=ok]::part(container),.card--examples math-field.mattemotor-field[data-validation-code=ok]::part(content){background:#f0fdf4}.card--examples .mattemotor-field[data-validation-code=feil_svar],.card--examples .mattemotor-field[data-validation-code=ugyldig_format],.card--examples input[data-validation-code=feil_svar],.card--examples input[data-validation-code=ugyldig_format]{border-color:#fca5a5;background:#fef2f2;box-shadow:0 0 0 1px rgba(252,165,165,.3)}.card--examples math-field.mattemotor-field[data-validation-code=feil_svar]::part(container),.card--examples math-field.mattemotor-field[data-validation-code=feil_svar]::part(content),.card--examples math-field.mattemotor-field[data-validation-code=ugyldig_format]::part(container),.card--examples math-field.mattemotor-field[data-validation-code=ugyldig_format]::part(content){background:#fef2f2}.card--examples .task-math-engine-runtime{margin-top:10px;display:flex;flex-direction:column;--mm-runtime-task-font-size:14px;--mm-runtime-task-line-height:1.5}.card--examples #panel-calculation[hidden],.card--examples .task-math-engine-runtime[hidden],body[data-app-mode=student] .card--examples .task-math-engine-runtime .mattemotor-input-label,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor-input-label,body[data-mode=student-view] .card--examples .task-math-engine-runtime .mattemotor-input-label{display:none!important}.card--examples .task-math-engine-runtime .mattemotor-header{display:flex;justify-content:space-between;align-items:start;gap:12px}.card--examples .task-math-engine-runtime .mattemotor-task-display{display:block;border:1px solid var(--card-border);border-radius:var(--control-radius);padding:12px 14px;color:var(--text-color);background:#fff;overflow-x:auto}.card--examples .task-math-engine-runtime__fallback{margin:0;color:#9a3412;font-weight:600}.card--examples .task-math-engine-runtime__input-wrap{position:relative;margin-top:8px}.card--examples .task-math-engine-runtime__input{display:block;width:100%;min-width:0;min-height:72px;box-sizing:border-box;font-size:var(--mm-runtime-task-font-size);line-height:1.25}.card--examples .task-math-engine-runtime #student-input.mattemotor-field,.card--examples .task-math-engine-runtime .mattemotor-task-display,.card--examples .task-math-engine-runtime .task-math-engine-runtime__input{font-size:var(--mm-runtime-task-font-size);line-height:var(--mm-runtime-task-line-height)}.card--examples .task-math-engine-runtime #student-input.mattemotor-field::part(container),.card--examples .task-math-engine-runtime #student-input.mattemotor-field::part(content),.card--examples .task-math-engine-runtime .mattemotor__history-math::part(container),.card--examples .task-math-engine-runtime .mattemotor__history-math::part(content){font-size:var(--mm-runtime-task-font-size);overflow-x:auto}body[data-app-mode=student] #student-input.mattemotor-field:focus,body[data-app-mode=student] #student-input.mattemotor-field:focus-within,body[data-host-mode=student-view] #student-input.mattemotor-field:focus,body[data-host-mode=student-view] #student-input.mattemotor-field:focus-within,body[data-mode=student-view] #student-input.mattemotor-field:focus,body[data-mode=student-view] #student-input.mattemotor-field:focus-within{border-color:#155eef;outline:0!important;box-shadow:none}.card--examples .task-math-engine-runtime .mattemotor-input-label{position:absolute;left:14px;top:-11px;background:#fff;padding:0 8px;color:#15803d;font-weight:700;font-size:.85rem}body[data-app-mode=student] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) #student-input.mattemotor-field,body[data-host-mode=student-view] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) #student-input.mattemotor-field,body[data-mode=student-view] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) #student-input.mattemotor-field{opacity:1;border-color:#2563eb;background:#fff;color:#0f172a;caret-color:transparent}body[data-app-mode=student] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) .task-math-engine-runtime__symbol-bar,body[data-app=mattemotor]:not([data-task-text-shell=shared]) #panel-calculation:not(.is-active),body[data-app=mattemotor]:not([data-task-text-shell=shared]) #panel-choice-calculation:not(.is-active),body[data-host-mode=student-view] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) .task-math-engine-runtime__symbol-bar,body[data-mode=student-view] .card--examples .task-math-engine-runtime__input-wrap:not(:focus-within) .task-math-engine-runtime__symbol-bar{display:none!important}.card--examples .task-math-engine-runtime__feedback{margin:10px 0;min-height:20px;font-weight:600}.card--examples .task-math-engine-runtime__feedback:empty,.card--examples .task-math-engine-runtime__history:empty{display:none}.card--examples .task-math-engine-runtime__history{list-style:none;padding:0;margin:0;display:grid}.card--examples .task-math-engine-runtime__history li{border:1px solid #d1d5db;border-radius:14px;padding:12px;background:#fff}.card--examples .task-math-engine-runtime .mattemotor__history-item{display:flex;align-items:center;justify-content:space-between;gap:14px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.card--examples .task-math-engine-runtime .mattemotor__history-item[data-code=rødt]{background:#fef2f2}.card--examples .task-math-engine-runtime .mattemotor__history-item[data-code=pokal]{background:#fefce8}.mattemotor__history-item--during-test::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;border-radius:14px 0 0 14px;background:#5b54f5;pointer-events:none;z-index:1}.card--examples .task-math-engine-runtime .mattemotor__history-math{border:0;background:0 0;line-height:var(--mm-runtime-task-line-height);flex:1;min-width:0;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.mattemotor__task-start-token{cursor:pointer;border-radius:8px;pointer-events:auto;transition:background-color 120ms ease,box-shadow 120ms ease}.mattemotor__task-start-token *{pointer-events:none}.card--examples .task-math-engine-runtime .math-vis-description-math.mattemotor__task-start-token,.mattemotor-task-display .math-vis-description-math.mattemotor__task-start-token{display:inline-flex;align-items:center;padding-inline:4px;margin-inline:2px}.mattemotor__task-start-token:hover{background:color-mix(in srgb,var(--focus-color, #155eef) 10%,transparent)}.mattemotor__task-start-token:focus-visible{outline:0;background:color-mix(in srgb,var(--focus-color, #155eef) 14%,transparent);box-shadow:0 0 0 2px var(--focus-color, #155eef)}.card--examples .task-math-engine-runtime{padding:18px;border-radius:18px;background:#f3f4f6;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;container-type:inline-size}.card--examples .task-math-engine-runtime>.task-math-engine-runtime__history{grid-column:1/2}.card--examples .task-math-engine-runtime>*,.card--examples .task-math-engine-runtime>.task-math-engine-runtime__input-row{grid-column:1/-1}@container (max-width: 520px){.card--examples .task-math-engine-runtime{grid-template-columns:minmax(0,1fr)}.card--examples .task-math-engine-runtime>.task-math-engine-runtime__history{grid-column:1/-1}}.card--examples .task-math-engine-runtime .mattemotor-header{margin-bottom:18px}.card--examples .task-math-engine-runtime .mattemotor-task-display{font-size:14px;font-weight:400;line-height:1.5}.card--examples .task-math-engine-runtime__history{gap:12px;margin-bottom:12px}.card--examples .task-math-engine-runtime .mattemotor__history-item{border:1px solid #e5e7eb;border-radius:16px;padding:16px 18px;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.08)}.card--examples .task-math-engine-runtime .mattemotor__history-item[data-code=pokal],.card--examples .task-math-engine-runtime .mattemotor__history-item[data-code=rødt]{border-color:#e5e7eb;background:#fff}.card--examples .task-math-engine-runtime #history-list{list-style:none;margin:0;padding:0}.card--examples .task-math-engine-runtime #history-list li::marker{content:""}.mattemotor__history-status{width:34px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:1.3rem;font-weight:700;border:3px solid #9ca3af;color:#4b5563;background:#fff;flex:0 0 auto}.mattemotor__history-status--grønt{border-color:#22c55e;color:#16a34a;background:#f0fdf4}.mattemotor__history-status--rødt{border-color:#d44251;color:#8a2330;background:#f8c9cf}.mattemotor__history-status--pokal{border-color:#facc15;color:#ca8a04;background:#fffbeb;font-size:1.1rem}.mattemotor__history-status--key{border-color:#d6b35a;color:#8a6f34;background:#fff8dd}.mattemotor__history-status--gated{border-color:#9ca3af;color:#4b5563;background:#fff}.card--examples .task-math-engine-runtime .mattemotor__history-math{font-size:var(--mm-runtime-task-font-size)}.card--examples .task-math-engine-runtime math-field::part(assistant),.card--examples .task-math-engine-runtime math-field::part(menu-toggle),.card--examples .task-math-engine-runtime math-field::part(virtual-keyboard-toggle),.task-math-engine-setup math-field::part(assistant),.task-math-engine-setup math-field::part(menu-toggle),.task-math-engine-setup math-field::part(virtual-keyboard-toggle){display:none}.task-choice-runtime{--mm-choice-gap:14px;--mm-choice-control-size:2rem;--mm-choice-columns:1;--mm-choice-font-base:1.12rem;--mm-choice-label-font-size:1.02rem;--mm-choice-feedback-font-size:0.9rem;margin-top:10px;display:grid;gap:var(--mm-choice-gap);padding:0;border-radius:18px;background:0 0;border:0;container-type:inline-size}.task-choice-runtime[hidden]{display:none!important}.task-choice-runtime__header{display:grid;gap:4px}.task-choice-runtime__title{margin:0;font-size:1.02rem;font-weight:700;color:#0f172a}.task-choice-runtime__subtitle{margin:0;font-size:.86rem;color:#334155}.task-choice-runtime__prompt{display:block;border:0;border-radius:0;background:0 0;padding:0;font-size:var(--mm-choice-font-base);line-height:var(--mv-student-line-height, 1.35);color:#0f172a}.task-choice-runtime__options{display:grid;gap:var(--mm-choice-gap);grid-template-columns:repeat(var(--mm-choice-columns),minmax(0,1fr))}.task-choice-runtime__options>.task-choice-runtime__option{display:grid;grid-template-columns:var(--mm-choice-control-size) minmax(0,1fr);align-items:center;justify-items:start;gap:12px;border:1.5px solid #8690a0;border-radius:14px;background:#fff;padding:18px;cursor:pointer;box-shadow:0 1px 4px rgba(15,23,42,.08);transition:border-color .14s ease,box-shadow .14s ease}.task-choice-runtime__options>.task-choice-runtime__option:hover{border-color:#6b7280;box-shadow:0 2px 8px rgba(15,23,42,.1)}.task-choice-runtime__options>.task-choice-runtime__option:focus-within{border-color:#374151;box-shadow:0 0 0 2px rgba(55,65,81,.2)}.task-choice-runtime__options>.task-choice-runtime__option[data-selected=true]{border-color:#4b5563}.task-choice-runtime__options>.task-choice-runtime__option[data-correct=true]{border-color:#39845f;background:#f6fbf8}.task-choice-runtime__options>.task-choice-runtime__option[data-incorrect=true]{border-color:#b3414b;background:#fff7f7}.card--examples .example-description.example-description--collapsed>label::after,.task-choice-runtime__index{display:none}.task-choice-runtime__option input[type=checkbox],.task-choice-runtime__option input[type=radio]{appearance:none;-webkit-appearance:none;grid-column:1;justify-self:start;align-self:center;margin:0;width:var(--mm-choice-control-size);height:var(--mm-choice-control-size);display:inline-grid;place-content:center;flex-shrink:0;border:2px solid #4b5563;background:#fff;cursor:pointer}.task-choice-runtime__option input[type=checkbox]{border-radius:10px}.task-choice-runtime__option input[type=radio]{border-radius:999px}.task-choice-runtime__option input[type=checkbox]::before,.task-choice-runtime__option input[type=radio]::before{content:"";display:block;transform-origin:center;transition:transform .12s ease}.task-choice-runtime__option input[type=checkbox]::before{width:.55rem;height:.32rem;border:solid #fff;border-width:0 0 3px 3px;transform:rotate(-45deg) scale(0)}.task-choice-runtime__option input[type=radio]::before{width:.65rem;height:.65rem;border-radius:999px;background:#fff;transform:scale(0)}.task-choice-runtime__option input[type=checkbox]:checked,.task-choice-runtime__option input[type=radio]:checked{border-color:#1f2937;background:#1f2937}.task-choice-runtime__option input[type=checkbox]:checked::before{transform:rotate(-45deg) scale(1)}.task-choice-runtime__option input[type=radio]:checked::before{transform:scale(1)}.task-choice-runtime__option input[type=checkbox]:focus-visible,.task-choice-runtime__option input[type=radio]:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(55,65,81,.2)}.task-choice-runtime__label{grid-column:2;justify-self:stretch;min-width:0;width:100%;display:flex;align-items:center;font-size:var(--mm-choice-label-font-size);line-height:1.45;color:#0f172a;text-align:left}.task-choice-runtime__label p{width:100%;margin:0;text-align:left}.task-choice-runtime__label .math-vis-description-math{display:inline-flex;align-items:center;vertical-align:middle;margin-inline:3px}.task-choice-runtime__label p+p{margin-top:6px}.task-choice-runtime__label .katex-display{display:inline-block;margin:0;text-align:left}.task-choice-runtime__label .katex-display>.katex{display:inline-block;text-align:left}.task-choice-runtime__actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:nowrap}.task-choice-runtime__feedback{margin:0;border-radius:10px;padding:10px 12px;border:1px solid transparent;background:#f8fafc;color:#1e293b;font-size:var(--mm-choice-feedback-font-size);font-weight:600}.card--examples #task-validation-status[data-status-code=klar],.card--examples #task-validation-status[data-status-code=ok],.task-choice-runtime__feedback[data-tone=success]{border-color:#86efac;background:#f0fdf4;color:#166534}.task-choice-runtime__feedback[data-tone=warning]{border-color:#fcd34d;background:#fffbeb;color:#92400e}.card--examples #task-validation-status[data-status-code=feil_svar],.card--examples #task-validation-status[data-status-code=ugyldig_format],.task-choice-runtime__feedback[data-tone=error]{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.task-choice-runtime__empty{margin:0;font-size:.9rem;color:#64748b}body[data-app-mode=student] .task-choice-runtime,body[data-host-mode=student-view] .task-choice-runtime,body[data-mode=student-view] .task-choice-runtime{margin-top:0;border:0;border-radius:0;background:0 0;box-shadow:none;padding-inline-start:clamp(8px,1.2vw,14px)}.card--examples #task-validation-status{margin-top:10px;padding:12px;border-radius:12px;border:1px solid #d1d5db;background:#f9fafb;font-weight:600}.card--examples #task-validation-save-warning{margin-top:8px;color:#991b1b;font-weight:600}.card--examples .example-description>label{display:flex;align-items:center;gap:8px}.card--examples .example-description>label::after{content:"";display:none}.card--examples .example-description.example-description--collapsed{gap:0;padding:10px;border:1px dashed #c7d2fe;border-radius:var(--control-radius);background:#f8fafc}.card--examples .example-description.example-description--collapsed textarea{min-height:0;height:1px;padding:0;margin:0;border-width:0;opacity:0;overflow:hidden;resize:none}.task-panel{display:none;border:0;box-shadow:none;background:0 0;padding:0}.side .task-panel[hidden],.task-panel__preview[hidden]{display:none!important}body[data-app-mode=student] .side .task-panel,body[data-show-task-text-panel=true] .side .task-panel{display:flex;flex-direction:column;gap:16px}.task-panel__body{display:grid;gap:12px}.task-panel__preview{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.08);cursor:text;min-height:120px;line-height:1.6;white-space:pre-wrap;transition:border-color .15s ease,box-shadow .15s ease}.task-panel__preview:focus-visible{outline:0;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12)}.task-panel__preview[data-placeholder=true]{display:flex;color:#6b7280}.task-panel__actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.task-panel textarea[hidden],body[data-show-task-text-panel=false] .task-panel__actions{display:none}body:not([data-host-mode=student-view]):not([data-mode=student-view]):not([data-app-mode=student]) [data-task-student-toolbar],body[data-show-author-controls=false] .task-panel__actions,body[data-show-author-controls=false] [data-edit-only]:not([data-host-hide-behavior=preserve-space]){display:none!important}body[data-app-mode=author][data-author-layout-mode=task-view] .task-panel__actions{display:flex!important}.task-panel__header{display:flex;align-items:center;gap:8px;padding:0}.task-panel__collapse{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;margin:0;border:0;background:0 0;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:#475569;border-radius:6px;line-height:1}.task-panel__collapse:hover{background:rgba(15,23,42,.04);color:#1f2937}.task-panel__collapse:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.task-panel__collapse-icon{transition:transform .15s ease;flex-shrink:0}.task-panel__collapse[aria-expanded=false] .task-panel__collapse-icon{transform:rotate(-90deg)}.task-panel--collapsed .task-panel__body,.task-panel--collapsed .task-text-editable{display:none!important}.task-panel__toggle{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc}.task-panel__toggle-button{border:0;background:0 0;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;color:#334155;cursor:pointer}.task-panel__toggle-button[aria-pressed=true]{background:#1d4ed8;color:#fff}.task-panel__toggle-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.task-text-editable{width:100%;min-height:150px;padding:12px;font-family:inherit;font-size:16px;line-height:1.5;color:var(--text-color, #1f2937);background:0 0;border:1px solid transparent;border-radius:8px;resize:vertical;transition:all .2s ease}.task-text-editable:hover{background-color:#f9fafb;border-color:#e5e7eb}.task-text-editable:focus{outline:0;background-color:#fff;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.math-vis-description-rendered{display:block}.example-description .task-math-engine{margin-top:8px}.example-description #taskMathEngineFields>label{display:flex;flex-direction:column;gap:6px;width:100%}.example-description #taskMathEngineFields{display:grid;gap:10px;margin-top:8px}.example-description #math-symbols,.example-description input#answer-term,.example-description input#math-symbols,.example-description input#start-term,.example-description input#taskMathEngineSymbols,.example-description math-field#answer-term,.example-description math-field#start-term{display:block;width:100%;box-sizing:border-box}.example-description input#answer-term,.example-description input#math-symbols,.example-description input#start-term,.example-description input#taskMathEngineSymbols,.example-description math-field#answer-term,.example-description math-field#start-term{min-height:44px}.example-description input#answer-term,.example-description input#math-symbols,.example-description input#start-term,.example-description input#taskMathEngineSymbols{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font:inherit}.math-vis-answerbox{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 8px;border-radius:999px;border:1px solid #c7d2fe;background:#e0e7ff;color:#1e3a8a;font-size:.95em;vertical-align:middle}.math-vis-answerbox--input{padding:0;border:0;background:0 0;gap:4px}.math-vis-answerbox+.math-vis-answerbox{margin-left:6px}.math-vis-answerbox__prompt{font-weight:600;color:inherit}.math-vis-answerbox__input-wrap{display:inline-flex;align-items:center}.math-vis-answerbox__input{border:1px solid #c7d2fe;border-radius:8px;padding:4px 8px;min-width:72px;font:inherit;color:var(--text-color);background:#fff}.math-vis-answerbox--input .math-vis-answerbox__input{min-width:0}.math-vis-answerbox__input:focus{outline:2px solid #6366f1;outline-offset:1px}.math-vis-answerbox__status{display:inline-flex;align-items:center;min-width:1.5em;font-size:.85em;color:#4338ca}.math-vis-answerbox--input .math-vis-answerbox__status{min-width:0}.math-vis-answerbox--correct{border-color:#34d399;background:#ecfdf5;color:#047857}#taskMinputValidationStatus[data-tone=success],.math-vis-answerbox--correct .math-vis-answerbox__status{color:#047857}.math-vis-answerbox--incorrect{border-color:#fb923c;background:#fff7ed;color:#b45309}.math-vis-answerbox--incorrect .math-vis-answerbox__status{color:#c2410c}.math-vis-answerbox--empty .math-vis-answerbox__status{color:#6b7280}.math-vis-minput{display:inline-flex;align-items:center;vertical-align:middle;min-width:3.5em;max-width:12em;margin:0 2px;border:1px solid #c7d2fe;border-radius:8px;background:#fff}.math-vis-minput .math-vis-minput__field{min-width:3em;font:inherit;border:0;background:0 0;padding:2px 6px}.math-vis-minput input.math-vis-minput__field{width:4em}.math-vis-minput:focus-within{outline:2px solid #6366f1;outline-offset:1px}.math-vis-minput--correct{border-color:#2e8540;background:#ecfdf5}.math-vis-minput--incorrect{border-color:#e31c3d;background:#ffdede}.task-minput-editor__example{display:flex;flex-wrap:wrap;gap:8px 16px;margin:4px 0 8px}.task-minput-editor__example-row{display:inline-flex;align-items:center;gap:6px}.task-minput-editor__example-input{width:6em}#taskMinputValidationStatus[data-tone=error]{color:#b91c1c}#taskMinputValidationStatus[data-tone=warning]{color:#b45309}.math-vis-step{display:inline-flex;align-items:flex-start;gap:.5em;padding:.25em 0;line-height:1.4}.math-vis-step__text{font-weight:700;min-width:0}.math-vis-step__icon{width:1.4em;height:1.4em;flex-shrink:0;margin-top:.05em;box-sizing:border-box}.math-vis-step__icon svg{display:block;width:100%;height:100%}.math-vis-step[data-step-state=neutral] .math-vis-step__icon{display:none}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (max-width:600px){.form-row{grid-template-columns:1fr}}.grid-3{display:grid;grid-template-columns:24px max-content 44px;gap:4px;align-items:center}.legend{font-weight:600;font-size:13px;color:var(--heading-color);margin-top:8px}.radio-row{display:flex;gap:14px;align-items:center}.tight{padding:4px 8px;width:44px}.sortering__figure{padding:24px;min-height:320px;align-items:center;background:#fff}.sortering__figure,.sortering__item,.sortering__items{position:relative;display:flex;justify-content:center}.sortering__items{width:100%;min-height:280px;flex-wrap:nowrap;align-items:stretch;gap:24px;overflow-x:auto}.sortering__items[data-direction=vertikal]{justify-content:flex-start}.sortering__item{flex-direction:column;align-items:center;gap:12px;padding:18px;min-width:120px;min-height:120px;border-radius:16px;border:2px solid var(--sortering-item-outline, #0f172a);background:var(--sortering-item-background, #ffffff);color:var(--sortering-item-text, #111827);box-shadow:none;cursor:grab;user-select:none;transform:scale(1);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.sortering__items[data-hide-outline=true] .sortering__item{border-color:transparent;box-shadow:none}.sortering__item:not(.sortering__item--editable):not(.sortering__item--dragging):focus-visible,.sortering__item:not(.sortering__item--editable):not(.sortering__item--dragging):hover{transform:scale(.96)}.sortering__item--editable{align-items:stretch;justify-content:flex-start;cursor:default;user-select:text;padding:0;overflow:hidden}.sortering__item--editable .sortering__item-content{display:none}.sortering__items[data-mode=task] .sortering__item{flex:1 1 0}.sortering__items[data-mode=task][data-direction=vertikal] .sortering__item{width:100%}.sortering__item--task{min-height:0;padding:16px}.sortering__item--task-text .sortering__item-content{font-size:clamp(48px,8vw,80px);font-weight:700;line-height:1.1}.sortering__item--task-text .sortering__item-description{font-size:inherit}.sortering__item--task-text .sortering__item-description .katex{font-size:1.21em}.sortering__item--active,.sortering__item--dragging{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.35)}.sortering__item--dragging{cursor:grabbing;z-index:3;position:absolute}.sortering__item--placeholder{box-sizing:border-box;border:2px dashed #93c5fd;background:rgba(147,197,253,.18);box-shadow:inset 0 0 0 1px rgba(147,197,253,.4);border-radius:16px;pointer-events:none}.sortering__item--focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.18)}.sortering__item-content{display:flex;flex-direction:column;gap:10px;text-align:center;font-size:18px;font-weight:600;color:var(--sortering-item-text, #0f172a)}.sortering__item-image{max-width:140px;max-height:140px;object-fit:contain;margin:0 auto}.sortering__item-description{font-size:18px;line-height:1.4;font-weight:500}.sortering__skia-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:var(--control-radius, 10px);border:2px solid transparent;background:#e2e8f0;color:#0f172a;font-weight:600;transition:border-color .2s ease,background .2s ease,color .2s ease}.sortering__skia-button:focus,.sortering__skia-button:hover{border-color:#2563eb}.sortering__skia-button--active{border-color:#2563eb;background:#dbeafe;color:#1e3a8a}.sortering__item-editor{display:none;flex-direction:column;align-items:stretch;gap:12px;width:100%}.sortering__figure[data-editor-mode=edit] .sortering__item--editable .sortering__item-editor,.sortering__item--editable .sortering__item-editor,.sortering__item-editor-panel{width:100%;height:100%;display:flex}.sortering__item-editor-panel{flex-direction:column;gap:12px;padding:18px;border-radius:12px;border:1px solid #d1d5db;background:rgba(255,255,255,.95);box-shadow:0 8px 16px rgba(15,23,42,.12);min-width:0;max-width:none;box-sizing:border-box}.sortering__item--editable .sortering__item-editor-panel{border-radius:inherit}.sortering__item-editor-field{display:flex;flex-direction:column;gap:4px}.sortering__item-editor-label{font-size:12px;font-weight:600;color:#1f2937}.sortering__item-editor-panel input,.sortering__item-editor-panel select,.sortering__item-editor-panel textarea{width:100%;border-radius:8px;border:1px solid #d1d5db;padding:6px 8px;font-size:13px;color:#111827;background:#fff;box-sizing:border-box}.sortering__item-editor-panel input:focus,.sortering__item-editor-panel select:focus,.sortering__item-editor-panel textarea:focus,.sortering__item-editor-preview:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb}.sortering__item-editor-text{display:flex;flex-direction:column;gap:8px}.sortering__item-editor-text[data-mode=edit] .sortering__item-editor-preview,.sortering__item-editor-text[data-mode=preview] .sortering__item-editor-textarea{display:none}.sortering__item-editor-preview{width:100%;box-sizing:border-box;border-radius:8px;border:1px solid #d1d5db;padding:8px 10px;min-height:72px;font-size:14px;line-height:1.4;background:#f8fafc;color:#0f172a;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px;text-align:left}.sortering__item-editor-preview--empty{color:#6b7280;font-style:italic}.sortering__item-editor-preview .katex{font-size:20px;pointer-events:none}.task-student-toolbar,[data-task-student-toolbar]{display:flex;align-items:center;gap:8px;padding:4px 0;position:fixed;top:12px;right:12px;z-index:20}@media (max-width:640px){.card--examples .example-description{padding-top:52px}}.task-student-toolbar[hidden]{display:none!important}.task-student-toolbar__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:2px solid #d1d5db;background:#f9fafb;color:#374151;border-radius:999px;min-width:44px;min-height:44px;padding:8px;font:inherit;font-weight:700;cursor:pointer;box-shadow:none;flex:0 0 auto;position:relative}.task-student-toolbar__btn:hover{border-color:#9ca3af;background:#f3f4f6}.task-student-toolbar__btn:focus-visible{outline:3px solid #0b74b5;outline-offset:2px}.task-student-toolbar__btn:disabled,.task-student-toolbar__btn[disabled]{opacity:.42;cursor:default}.task-student-toolbar__btn--key{border-color:#63a6d3;background:#f2f4f7;padding:8px 14px 8px 10px}.task-student-toolbar__btn--key:hover{border-color:#5298c9;background:#ebeff4}.task-student-toolbar__btn svg{width:24px;height:24px;display:block;flex:0 0 auto}.task-student-toolbar__key-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 auto}.task-student-toolbar__key-icon svg{width:100%;height:100%}.task-student-toolbar__badge{font-size:.82rem;line-height:1;font-weight:780;letter-spacing:-.03em;min-width:1.2em;text-align:center}.task-student-toolbar__badge[hidden]{display:none}@media (max-width:640px){:root{--gap:12px}body{padding:0 8px;background:#fff!important}.wrap{max-width:none;width:100%;margin:0}.grid{gap:var(--gap)}.card{background:0 0;border:0;box-shadow:none;padding:12px;gap:10px}body[data-app=mattemotor] .card{padding:6px}body[data-app-mode=student] .side .card--examples,body[data-host-mode=student-view] .side .card--examples,body[data-mode=student-view] .side .card--examples{padding:0 6px}.sortering__figure{padding:12px;min-height:200px}.sortering__items{flex-wrap:wrap;min-height:120px;gap:12px}.sortering__item{min-width:80px;min-height:80px;padding:12px}.sortering__items[data-mode=task] .sortering__item{flex:1 1 auto;min-width:calc(50% - 8px)}.sortering__items[data-mode=task][data-direction=vertikal] .sortering__item{min-width:100%}.sortering__item--task{padding:10px}}.book-icon{stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}.book-icon--white{color:#f8f9fa}.book-icon--yellow{color:#fdfd96}.book-icon--pink{color:#ffb7b2}.book-icon--blue{color:#a2cffe}.book-icon--green{color:#b5ead7}.book-icon--purple{color:#c5a3ff}.book-icon--orange{color:#ffdac1}