:root{--tk-ink:#221c19;--tk-espresso:#4a4039;--tk-stone:#6f6151;--tk-clay:#a08e79;--tk-sand:#cabfae;--tk-disabled:#d8cdba;--tk-linen:#e7e0d5;--tk-paper:#f5f1ea;--tk-card-warm:#faf7f1;--tk-white:#fff;--tk-coral:#e0623c;--tk-coral-700:#9e3a1d;--tk-coral-600:#c44a28;--tk-coral-300:#ee9678;--tk-coral-200:#f7d2c3;--tk-dark-base:#1b1613;--tk-dark-panel:#221c19;--tk-dark-raised:#2c2521;--tk-dark-border:#3a322c;--background:#f5f1ea;--foreground:#221c19;--canvas:#e7e0d5;--canvas-foreground:#221c19;--card:#fff;--card-foreground:#221c19;--card-warm:#faf7f1;--popover:#fff;--popover-foreground:#221c19;--primary:#e0623c;--primary-foreground:#fff;--primary-hover:#c44a28;--accent:#e0623c;--accent-foreground:#fff;--accent-hover:#c44a28;--accent-subtle:#f7d2c3;--accent-strong:#9e3a1d;--secondary:#ece4d6;--secondary-foreground:#221c19;--muted:#ece4d6;--muted-foreground:#6f6151;--muted-foreground-subtle:#a08e79;--destructive:#c0392b;--destructive-foreground:#fff;--destructive-fill:#fbe3de;--destructive-border:#eeb3a6;--destructive-text:#962619;--success:#2f7d4f;--success-foreground:#fff;--success-fill:#e8f0ea;--success-border:#b9d6c4;--success-text:#1f5a37;--warning:#b07d1b;--warning-foreground:#fff;--warning-fill:#fdf0d9;--warning-border:#f0d49a;--warning-text:#8a5e12;--border:#e3dacc;--input:#e3dacc;--input-bg:#fff;--input-disabled-bg:#f0ebe1;--ring:#e0623c;--focus-ring:0 0 0 4px #e0623c26;--track:#ece4d6;--radius:.75rem;--chart-1:#e0623c;--chart-2:#2f7d4f;--chart-3:#b07d1b;--chart-4:#6f6151;--chart-5:#a08e79;--sidebar:#fff;--sidebar-foreground:#4a4039;--sidebar-primary:#221c19;--sidebar-primary-foreground:#f5f1ea;--sidebar-accent:#ece4d6;--sidebar-accent-foreground:#221c19;--sidebar-border:#e3dacc;--sidebar-ring:#e0623c;--shadow-card:0 1px 3px #0000000f;--shadow-elevated:0 4px 20px #221c1914;--shadow-hero:0 12px 40px #221c191f;--shadow-toast:0 8px 28px #221c1940}.dark{--background:#1b1613;--foreground:#f5f1ea;--canvas:#1b1613;--canvas-foreground:#f5f1ea;--card:#221c19;--card-foreground:#f5f1ea;--card-warm:#221c19;--popover:#221c19;--popover-foreground:#f5f1ea;--primary:#e0623c;--primary-foreground:#fff;--primary-hover:#ee9678;--accent:#e0623c;--accent-foreground:#fff;--accent-hover:#ee9678;--accent-subtle:#3a2820;--accent-strong:#ee9678;--secondary:#2c2521;--secondary-foreground:#f5f1ea;--muted:#2c2521;--muted-foreground:#9a8a76;--muted-foreground-subtle:#8a7a66;--destructive:#e0573f;--destructive-foreground:#fff;--destructive-fill:#2c1714;--destructive-border:#5a2c24;--destructive-text:#f0b3a6;--success:#3f9c63;--success-foreground:#fff;--success-fill:#16271c;--success-border:#2f5a3f;--success-text:#9ed9b4;--warning:#d0a13f;--warning-foreground:#221c19;--warning-fill:#2a2113;--warning-border:#5a4a24;--warning-text:#f0d49a;--border:#3a322c;--input:#3a322c;--input-bg:#2c2521;--input-disabled-bg:#1f1a17;--ring:#e0623c;--focus-ring:0 0 0 4px #e0623c33;--track:#2c2521;--chart-1:#ee9678;--chart-2:#3f9c63;--chart-3:#d0a13f;--chart-4:#cabfae;--chart-5:#a08e79;--sidebar:#221c19;--sidebar-foreground:#cabfae;--sidebar-primary:#2c2521;--sidebar-primary-foreground:#f5f1ea;--sidebar-accent:#2c2521;--sidebar-accent-foreground:#f5f1ea;--sidebar-border:#3a322c;--sidebar-ring:#e0623c;--shadow-card:0 1px 3px #0000004d;--shadow-elevated:0 4px 20px #0006;--shadow-hero:0 12px 40px #00000080;--shadow-toast:0 8px 28px #00000080}
*,:before,:after{box-sizing:border-box;border:0 solid var(--border);outline-color:color-mix(in srgb, var(--ring) 50%, transparent);margin:0;padding:0}html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--font-instrument-sans), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}body{line-height:inherit;background-color:var(--background);color:var(--foreground);font-family:var(--font-instrument-sans), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;color:inherit;background-color:#0000}button{cursor:pointer}:disabled{cursor:default}[hidden]{display:none}.ProseMirror{outline:none;min-height:100%}.ProseMirror ul{margin:.5em 0;padding-left:1.5em;list-style-type:disc}.ProseMirror ol{margin:.5em 0;padding-left:1.5em;list-style-type:decimal}.ProseMirror ul ul{list-style-type:circle}.ProseMirror ul ul ul{list-style-type:square}.ProseMirror li{margin:.25em 0}.ProseMirror li p{margin:0}.ProseMirror h1{font-size:var(--editor-h1-size,32px);margin:.67em 0;font-weight:700;line-height:1.2}.ProseMirror h2{font-size:var(--editor-h2-size,24px);margin:.83em 0;font-weight:600;line-height:1.3}.ProseMirror h3{font-size:var(--editor-h3-size,18px);margin:1em 0;font-weight:600;line-height:1.4}.ProseMirror p{margin:.5em 0}.ProseMirror blockquote{border-left:3px solid var(--border);color:var(--muted-foreground);margin:.5em 0;padding-left:1em}.ProseMirror pre{background:var(--muted);border-radius:.375rem;margin:.5em 0;padding:.75em 1em;overflow-x:auto}.ProseMirror pre code{background:0 0;padding:0;font-size:.875em}.ProseMirror code{background:var(--muted);border-radius:.25rem;padding:.15em .3em;font-size:.875em}.ProseMirror hr{border:none;border-top:1px solid var(--border);margin:1em 0}.ProseMirror a{color:var(--primary);text-decoration:underline}.ProseMirror table{border-collapse:collapse;width:100%;margin:.5em 0}.ProseMirror th,.ProseMirror td{border:1px solid var(--border);text-align:left;padding:.5em}.ProseMirror th{background:var(--muted);font-weight:600}.ProseMirror p.is-editor-empty:first-child:before{color:var(--muted-foreground);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.lesson-image-wrapper{margin:1em 0}.lesson-image-wrapper--center{justify-content:center;display:flex}.lesson-image-wrapper--left{justify-content:flex-start;display:flex}.lesson-image-wrapper--right{justify-content:flex-end;display:flex}.lesson-image-wrapper--float-left{float:left;max-width:50%;margin:0 1em .5em 0}.lesson-image-wrapper--float-right{float:right;max-width:50%;margin:0 0 .5em 1em}.ProseMirror:after{content:"";clear:both;display:table}.lesson-image-figure{flex-direction:column;align-items:center;margin:0;display:flex}.lesson-image-wrapper--left .lesson-image-figure{align-items:flex-start}.lesson-image-wrapper--right .lesson-image-figure{align-items:flex-end}.lesson-image-container{display:inline-block;position:relative}.lesson-image{cursor:pointer;border-radius:.375rem;max-width:100%;height:auto;display:block}.lesson-image--selected{outline:2px solid var(--primary);outline-offset:2px}.lesson-image-drag-handle{background:var(--background);border:1px solid var(--border);cursor:grab;opacity:0;z-index:10;width:24px;height:24px;color:var(--muted-foreground);-webkit-user-select:none;user-select:none;border-radius:4px;justify-content:center;align-items:center;font-size:14px;transition:opacity .15s;display:flex;position:absolute;top:4px;left:4px}.lesson-image-drag-handle:active{cursor:grabbing}.lesson-image-container:hover .lesson-image-drag-handle,.lesson-image-container--active .lesson-image-drag-handle{opacity:1}.lesson-image-resize-handle{background:var(--primary);border:2px solid var(--primary-foreground);cursor:nwse-resize;z-index:10;border-radius:2px;width:12px;height:12px;position:absolute;bottom:4px;right:4px}.lesson-image-caption{color:var(--muted-foreground);text-align:center;cursor:pointer;margin-top:.5em;font-size:.875rem;font-style:italic}.lesson-image-control-group{align-items:center;gap:.5rem;display:flex}.lesson-image-control-label{color:var(--muted-foreground);flex-shrink:0;min-width:60px;font-size:.75rem}.lesson-image-control-buttons{gap:.25rem;display:flex}.lesson-image-control-btn{border:1px solid var(--border);background:var(--background);color:var(--muted-foreground);cursor:pointer;border-radius:.25rem;padding:.25rem .5rem;font-size:.75rem;transition:background-color .15s,color .15s}.lesson-image-control-btn:hover{background:var(--muted);color:var(--foreground)}.lesson-image-control-btn--active{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}.lesson-image-control-btn--active:hover{background:var(--primary);color:var(--primary-foreground)}.lesson-image-control-btn--disabled{opacity:.4;cursor:not-allowed}.lesson-image-control-btn--disabled:hover{background:var(--background);color:var(--muted-foreground)}.lesson-image-editor{flex-direction:column;gap:.375rem;width:100%;max-width:400px;margin-top:.5em;display:flex}.lesson-image-input{border:1px solid var(--border);background:var(--background);width:100%;color:var(--foreground);border-radius:.25rem;outline:none;padding:.375rem .5rem;font-size:.8125rem}.lesson-image-input:focus{border-color:var(--ring);box-shadow:0 0 0 2px color-mix(in srgb, var(--ring) 25%, transparent)}.lesson-image-input--toolbar{width:140px;padding:.25rem .375rem;font-size:.75rem}