.math-block{display:block;margin:.75rem 0;text-align:center}.math-inline{white-space:nowrap}.notebook-bg{background-color:#fdfcf7;background-image:linear-gradient(rgba(120,113,108,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(120,113,108,.18) 1px,transparent 1px);background-size:24px 24px;background-position:-1px -1px}.mermaid-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.mermaid-rendered svg{display:block;margin:0 auto}@media(min-width:769px){.mermaid-rendered svg{width:100%!important;max-width:100%!important;height:auto!important}}@media(max-width:768px){.mermaid-rendered svg{width:100%!important;max-width:100%!important;height:auto!important;cursor:zoom-in}}.mermaid-expand-btn{position:absolute;top:.5rem;right:.5rem;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border-radius:.5rem;background-color:#fffffff2;color:#3f3f46;border:1px solid rgb(228,228,231);box-shadow:0 1px 3px #00000014;cursor:pointer;transition:background-color .12s ease,transform .12s ease;line-height:0}.mermaid-expand-btn svg{width:1.05rem;height:1.05rem;margin:0;display:block;max-width:none;min-width:0;min-height:0}.mermaid-expand-btn:hover,.mermaid-expand-btn:focus-visible{background-color:#fff;transform:scale(1.05);outline:2px solid rgb(20,184,166);outline-offset:1px}.mermaid-lightbox{padding:0;border:none;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0;top:0;right:0;bottom:0;left:0;overflow:hidden}.mermaid-lightbox::backdrop{background-color:#0f172ad9;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.mermaid-lightbox-viewport{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background-color:#fdfcf7;background-image:linear-gradient(rgba(120,113,108,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(120,113,108,.14) 1px,transparent 1px);background-size:24px 24px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}.mermaid-lightbox-viewport.is-panning{cursor:grabbing}.mermaid-lightbox-stage{position:absolute;top:0;left:0;transform-origin:0 0;transform:translate(0)}.mermaid-lightbox-stage svg{display:block;margin:0;max-width:none!important}.mermaid-lightbox-controls{position:absolute;bottom:1rem;left:50%;transform:translate(-50%);z-index:10;display:inline-flex;align-items:center;gap:.25rem;padding:.35rem .5rem;border-radius:9999px;background-color:#fffffff2;border:1px solid rgb(228,228,231);box-shadow:0 2px 8px #00000040;color:#18181b}.mermaid-lightbox-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border-radius:9999px;background-color:transparent;color:#3f3f46;border:none;cursor:pointer;line-height:0}.mermaid-lightbox-btn:hover,.mermaid-lightbox-btn:focus-visible{background-color:#f4f4f5;outline:2px solid rgb(20,184,166);outline-offset:1px}.mermaid-lightbox-btn svg{width:1.05rem;height:1.05rem;margin:0;display:block;max-width:none}.mermaid-lightbox-zoom-label{padding:0 .5rem;font-size:.75rem;font-variant-numeric:tabular-nums;color:#3f3f46;min-width:3rem;text-align:center}.mermaid-lightbox-close{position:fixed;top:.75rem;right:.75rem;z-index:10;display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border-radius:9999px;background-color:#fffffff2;color:#18181b;border:none;box-shadow:0 2px 8px #00000040;cursor:pointer}.mermaid-lightbox-close svg{width:1.15rem;height:1.15rem;margin:0;display:block;max-width:none}.mermaid-lightbox-close:hover,.mermaid-lightbox-close:focus-visible{background-color:#fff;outline:2px solid rgb(20,184,166)}.mermaid-rendered .section-line,.mermaid-rendered .node-line,.mermaid-rendered .mindmap-node line{display:none}.mermaid-rendered .node rect,.mermaid-rendered .node polygon,.mermaid-rendered .node circle,.mermaid-rendered .node ellipse,.mermaid-rendered .node path{stroke-width:1.2!important;rx:8;ry:8}.mermaid-rendered .edge-thickness-normal,.mermaid-rendered path.flowchart-link,.mermaid-rendered .edgePath path{stroke:#4b5563b3!important;stroke-width:1.4!important}.markdown-math table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:separate;border-spacing:0;margin:1rem 0;font-size:.875rem;line-height:1.4;border:1px solid rgb(228 228 231);border-radius:.5rem}.markdown-math table thead{background:linear-gradient(180deg,#f4fdfa,#f0fdfa)}.markdown-math table thead th{padding:.6rem .85rem;font-weight:700;color:#0f766e;text-align:left;letter-spacing:.02em;border-bottom:2px solid rgb(20 184 166);white-space:nowrap}.markdown-math table thead th+th{border-left:1px solid rgb(228 228 231)}.markdown-math table tbody td{padding:.55rem .85rem;border-top:1px solid rgb(228 228 231);vertical-align:top;color:#27272a}.markdown-math table tbody td+td{border-left:1px solid rgb(228 228 231)}.markdown-math table tbody tr:nth-child(2n){background:#fafafa}.markdown-math table tbody tr:first-child td{border-top:none}.markdown-math table tbody tr:hover{background:#f0fdfa}.markdown-math table :where(th,td){background-clip:padding-box}.solution-body.svelte-yir5iw ol>li{margin-top:.6rem;margin-bottom:.6rem;padding-left:.25rem}.solution-body.svelte-yir5iw ol>li::marker{color:#14b8a6;font-weight:700}.solution-body.svelte-yir5iw ul>li{margin-top:.4rem;margin-bottom:.4rem}.solution-body.svelte-yir5iw .math-block{background:#f8fafc;border:1px solid rgb(226 232 240);border-radius:.5rem;padding:.75rem 1rem;margin:1rem 0}.solution-body.svelte-yir5iw p{margin-top:.5rem;margin-bottom:.5rem}.solution-body.svelte-yir5iw strong{color:#0f766e}.solution-body.svelte-yir5iw img{border-radius:.5rem;border:1px solid rgb(226 232 240);margin:.75rem auto;display:block;max-width:100%}.rate-btn.svelte-595zzf{position:relative;display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border-radius:9999px;border:1px solid rgb(228 228 231);background:#fafafa;color:#3f3f46;font-size:.875rem;font-weight:600;cursor:pointer;overflow:visible;transition:background-color .18s ease,border-color .18s ease,transform .12s ease,color .18s ease,box-shadow .2s ease;-webkit-user-select:none;user-select:none;touch-action:manipulation}.rate-btn.svelte-595zzf:hover{background:#fff;border-color:#d4d4d8;transform:translateY(-1px)}.rate-btn.svelte-595zzf:active{transform:translateY(0) scale(.97)}.rate-btn.svelte-595zzf .icon:where(.svelte-595zzf){font-size:1.1rem;line-height:1;display:inline-block;transform-origin:center}.rate-btn.svelte-595zzf .count:where(.svelte-595zzf){font-variant-numeric:tabular-nums;min-width:1ch}.active-like.svelte-595zzf{background:#dcfce7;border-color:#4ade80;color:#15803d;box-shadow:0 2px 8px -2px #4ade8066}.active-dislike.svelte-595zzf{background:#fee2e2;border-color:#f87171;color:#991b1b;box-shadow:0 2px 8px -2px #f8717166}@keyframes svelte-595zzf-yt-bounce{0%{transform:translateY(0) rotate(0) scale(1)}25%{transform:translateY(-6px) rotate(-8deg) scale(1.22)}45%{transform:translateY(-3px) rotate(6deg) scale(1.12)}70%{transform:translateY(1px) rotate(-2deg) scale(1.04)}to{transform:translateY(0) rotate(0) scale(1)}}.pulse.svelte-595zzf .icon:where(.svelte-595zzf){animation:svelte-595zzf-yt-bounce .52s cubic-bezier(.34,1.56,.64,1)}.confetti.svelte-595zzf{position:absolute;right:0;bottom:0;left:0;display:block;pointer-events:none;left:1rem;top:50%;width:0;height:0}.confetti.svelte-595zzf .p:where(.svelte-595zzf){position:absolute;left:0;top:0;width:6px;height:6px;border-radius:9999px;opacity:0;animation:svelte-595zzf-confetti-fly .62s ease-out forwards}@keyframes svelte-595zzf-confetti-fly{0%{opacity:1;transform:translate(0) scale(.5)}to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1)}}.confetti.svelte-595zzf .p0:where(.svelte-595zzf){background:#22c55e;--dx: -22px;--dy: -18px}.confetti.svelte-595zzf .p1:where(.svelte-595zzf){background:#10b981;--dx: 22px;--dy: -18px}.confetti.svelte-595zzf .p2:where(.svelte-595zzf){background:#a3e635;--dx: -14px;--dy: -26px}.confetti.svelte-595zzf .p3:where(.svelte-595zzf){background:#facc15;--dx: 14px;--dy: -26px}.confetti.svelte-595zzf .p4:where(.svelte-595zzf){background:#34d399;--dx: -28px;--dy: -6px}.confetti.svelte-595zzf .p5:where(.svelte-595zzf){background:#4ade80;--dx: 28px;--dy: -6px}.confetti.svelte-595zzf .p6:where(.svelte-595zzf){background:#fde68a;--dx: -10px;--dy: -32px;animation-duration:.72s}.confetti.svelte-595zzf .p7:where(.svelte-595zzf){background:#86efac;--dx: 10px;--dy: -32px;animation-duration:.72s}@media(prefers-reduced-motion:reduce){.pulse.svelte-595zzf .icon:where(.svelte-595zzf){animation:none}.confetti.svelte-595zzf .p:where(.svelte-595zzf){display:none}.rate-btn.svelte-595zzf:hover{transform:none}}
