:root{color:#172136;font-synthesis:none;text-rendering:optimizelegibility;--bg:#eef2f7;--surface:#fff;--surface-2:#f6f8fc;--text:#172136;--muted:#6b778b;--border:#dde5f0;--accent:#4e68e8;--accent-dark:#3e54c8;--accent-soft:#edf1ff;--green:#14795b;--green-soft:#e9f7f1;--orange:#d66b3f;--orange-soft:#fff0e8;--selection:#d81b60;--red:#b94252;--red-soft:#fff0f2;--shadow:0 12px 34px #23314e17;background:#eef2f7;font-family:Microsoft YaHei,PingFang SC,Inter,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg);min-width:320px}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}button:not(:disabled){cursor:pointer}button:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible{outline-offset:2px;outline:3px solid #4e68e859}.app-shell{min-height:100vh;padding-bottom:calc(74px + env(safe-area-inset-bottom));color:var(--text)}.app-header{z-index:20;min-height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffeb;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;display:grid;position:sticky;top:0}.brand-mark,.profile-button{background:var(--accent);color:#fff;border:0;border-radius:12px;place-items:center;width:38px;height:38px;font-size:20px;display:grid}.profile-button{background:var(--accent);color:#fff;border-radius:19px;justify-self:end;width:auto;min-width:38px;max-width:96px;padding:0 10px;font-size:12px;font-weight:600}.profile-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.icon-button{width:44px;height:44px;color:var(--text);background:0 0;border:0;border-radius:12px;place-items:center;padding:0;display:grid}.icon-button svg{width:20px}.header-title{text-align:center;min-width:0}.header-title b,.header-title span{display:block}.header-title b{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;overflow:hidden}.header-title span{color:var(--muted);margin-top:2px;font-size:10px}.page{width:min(1180px,100%);margin:0 auto;padding:18px 14px 28px}h1,h2,p{margin-top:0}h1{margin-bottom:7px;font-size:clamp(21px,4vw,30px);line-height:1.25}h2{font-size:17px}.eyebrow{color:var(--accent);letter-spacing:.05em;margin-bottom:5px;font-size:11px;font-weight:600;display:block}.primary-button,.secondary-button{border-radius:11px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:0 15px;font-weight:600;display:inline-flex}.primary-button{background:var(--accent);color:#fff;border:0}.primary-button:hover:not(:disabled){background:var(--accent-dark)}.primary-button:disabled{opacity:.48}.secondary-button{border:1px solid var(--border);background:var(--surface);color:var(--text)}.primary-button svg,.secondary-button svg{width:17px}.full{width:100%}.welcome-card{color:#fff;box-shadow:var(--shadow);background:linear-gradient(135deg,#304cc7,#6f7ff0);border-radius:20px;gap:18px;padding:22px;display:grid;overflow:hidden}.welcome-card .eyebrow{color:#dfe5ff}.welcome-card h1{max-width:580px}.welcome-card p{color:#e8ebff;max-width:620px;margin-bottom:18px;font-size:13px;line-height:1.7}.welcome-card .primary-button{color:#324cc2;background:#fff}.chapter-progress{justify-self:center;place-items:center;width:132px;height:132px;display:grid;position:relative}.chapter-progress svg{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.chapter-progress circle{fill:none;stroke-width:10px}.progress-track{stroke:#fff3}.progress-value{stroke:#fff;stroke-dasharray:38 62;stroke-linecap:round}.chapter-progress strong,.chapter-progress span{z-index:1;white-space:nowrap;position:absolute;left:50%;transform:translate(-50%)}.chapter-progress strong{font-size:24px;top:43px}.chapter-progress span{color:#e5e9ff;font-size:10px;top:76px}.home-grid{gap:15px;margin-top:15px;display:grid}.lesson-map-panel,.today-panel,.practice-card,.mistake-card,.mistake-summary{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:17px;padding:18px}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-heading h2{margin:0}.section-heading>svg{color:var(--accent)}.count-badge,.topic-chip{background:var(--accent-soft);color:var(--accent);border-radius:8px;padding:5px 8px;font-size:10px}.lesson-list{gap:6px;display:grid}.lesson-row{width:100%;min-height:58px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:11px;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 6px;display:grid}.lesson-row:not(:disabled):hover{background:var(--surface-2)}.lesson-row.current{background:var(--accent-soft)}.lesson-row.visited{background:color-mix(in srgb, var(--accent-soft) 45%, transparent)}.lesson-row.locked{opacity:.55}.lesson-index{background:var(--surface-2);width:32px;height:32px;color:var(--muted);border-radius:50%;place-items:center;font-size:11px;display:grid}.lesson-row.done .lesson-index,.lesson-row.current .lesson-index{background:var(--accent);color:#fff}.lesson-index svg{width:15px}.lesson-copy b,.lesson-copy small{display:block}.lesson-copy b{font-size:13px;font-weight:600}.lesson-copy small{color:var(--muted);margin-top:3px;font-size:10px}.row-arrow{width:15px;color:var(--muted)}.task-list{gap:4px;margin-bottom:16px;display:grid}.task{grid-template-columns:34px 1fr;align-items:center;gap:9px;padding:8px 0;display:grid}.task>span{background:var(--surface-2);width:32px;height:32px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.task>span svg{width:15px}.task.done>span{background:var(--green-soft);color:var(--green)}.task.current>span{background:var(--accent-soft);color:var(--accent)}.task p{margin:0}.task b,.task small{display:block}.task b{font-size:12px}.task small{color:var(--muted);margin-top:3px;font-size:10px}.lesson-page{gap:15px;display:grid}.lesson-hero,.lesson-concept-card,.lesson-example-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:17px}.lesson-hero{background:linear-gradient(135deg, var(--surface), var(--accent-soft));padding:22px}.lesson-hero h1{margin-bottom:8px}.lesson-hero p{max-width:720px;color:var(--muted);margin:0;font-size:13px;line-height:1.7}.lesson-content-grid{gap:15px;display:grid}.lesson-concept-card,.lesson-example-card{padding:18px}.lesson-concept-card .section-heading>svg{width:24px}.concept-list{gap:9px;margin:0;padding:0;list-style:none;display:grid}.concept-list li{background:var(--surface-2);border-radius:11px;grid-template-columns:28px 1fr;align-items:center;gap:10px;min-height:44px;padding:7px 9px;display:grid}.concept-list li>span{background:var(--accent-soft);width:27px;height:27px;color:var(--accent);border-radius:50%;place-items:center;font-size:11px;font-weight:700;display:grid}.concept-list p{margin:0;font-size:12px;line-height:1.5}.lesson-example-card>p{min-height:58px;color:var(--muted);font-size:12px;line-height:1.65}.lesson-example-card button+button{margin-top:9px}.lab-page{padding-left:0;padding-right:0}.lab-heading{justify-content:space-between;align-items:flex-start;gap:12px;padding:0 14px;display:flex}.lab-heading p{color:var(--muted);margin-bottom:0;font-size:12px;line-height:1.55}.lab-heading .secondary-button{flex:none;min-width:44px;padding:0 10px;font-size:0}.lab-heading .secondary-button svg{margin:0}.lab-heading-actions{flex:none;gap:5px;display:flex}.lab-heading-actions .secondary-button:disabled{opacity:.35}.case-route{color:var(--muted);align-items:center;gap:7px;margin:12px 14px;font-size:10px;display:flex}.case-route strong{background:var(--accent-soft);color:var(--accent);border-radius:8px;padding:6px 9px}.case-route svg{width:13px}.lab-layout{display:block}.stage-panel{background:var(--surface);min-width:0;overflow:hidden}.stage-workspace{min-width:0;display:grid}.diagram-area{min-width:0}.triangle-canvas-wrap{background:var(--surface-2);position:relative;overflow:hidden}.triangle-canvas{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:clamp(270px,44vh,380px);max-height:62vh;display:block}.grid-path{fill:none;stroke:var(--border);stroke-width:1px;opacity:.7}.triangle-shape{fill:#4e68e821;stroke:var(--accent);stroke-width:3px;stroke-linejoin:round;cursor:move}.triangle-region-target{fill:#0000;stroke:none;cursor:move;pointer-events:fill}.triangle-canvas.filter-points-off .drag-point,.triangle-canvas.filter-points-off .drag-point *,.triangle-canvas.filter-points-off .constructed-point,.triangle-canvas.filter-points-off .constructed-point *,.triangle-canvas.filter-lines-off .side-drag-target,.triangle-canvas.filter-lines-off .construction-line-target,.triangle-canvas.filter-lines-off .construction-circle-target,.triangle-canvas.filter-regions-off .triangle-region-target{pointer-events:none!important}.side-drag-target{stroke:#0000;stroke-width:36px;stroke-linecap:round;cursor:grab;pointer-events:stroke}.side-drag-target:active{cursor:grabbing}.comparison-triangle polygon{fill:#d66b3f1a;stroke:var(--orange);stroke-width:4px;stroke-dasharray:9 6;stroke-linejoin:round}.comparison-triangle text{fill:var(--orange);paint-order:stroke;stroke:var(--surface-2);stroke-width:5px;font-size:15px;font-weight:700}.angle-label,.diagram-labels text{paint-order:stroke;stroke:var(--surface-2);pointer-events:none;font-weight:600}.diagram-labels text{fill:var(--text);stroke-width:5px;font-size:13px}.angle-label{fill:var(--accent);stroke-width:3px;font-size:11px}.drag-point{color:var(--accent)}.drag-point .touch-target{fill:#0000;pointer-events:all}.drag-point .point-dot{fill:var(--accent);stroke:var(--surface);stroke-width:3px}.drag-point.locked .point-dot{fill:var(--muted)}.drag-point.locked .touch-target{fill:#0000}.drag-point text{fill:var(--text);pointer-events:none;font-size:15px;font-weight:600}.construction-overlay line{stroke:var(--orange);stroke-width:3px;stroke-linecap:round}.construction-overlay circle{fill:var(--orange);stroke:var(--surface);stroke-width:3px}.construction-overlay text{fill:var(--orange);paint-order:stroke;stroke:var(--surface-2);stroke-width:5px;font-size:15px;font-weight:600}.construction-overlay.altitude path{fill:none;stroke:var(--orange);stroke-width:2px}.construction-overlay.midpointLink line{stroke:var(--green)}.construction-overlay.midpointLink circle,.construction-overlay.midpointLink text{fill:var(--green)}.construction-overlay.angleBisector line,.construction-overlay.triangleAngleBisector line{stroke:#8a5bd7}.construction-overlay.angleBisector text,.construction-overlay.triangleAngleBisector text{fill:#8a5bd7}.construction-overlay.intersection circle,.construction-overlay.intersection text{fill:var(--red)}.construction-line{pointer-events:none}.construction-overlay .construction-line-target{stroke-width:36px;stroke-linecap:round;cursor:pointer;pointer-events:stroke;stroke:#0000!important}.constructed-point{cursor:pointer}.constructed-point circle{pointer-events:all}.constructed-point .construction-point-target{pointer-events:all;fill:#0000!important;stroke:none!important}.constructed-point circle:not(.construction-point-target),.constructed-point text{pointer-events:none}.selection-indicators{pointer-events:none;filter:drop-shadow(0 0 2px #0f172ab8)drop-shadow(0 0 4px #ffffff7a);animation:1.8s ease-in-out infinite selection-pulse}.selected-edge-indicator{stroke:#fff;stroke-width:3px;stroke-linecap:round}.selected-circle-indicator{fill:none;stroke:#fff;stroke-width:3px}.selected-point-indicator{fill:#fff;stroke:#fffffff0;stroke-width:2px}.selected-region-indicator{fill:#ffffff2e;stroke:#fff;stroke-width:2px;pointer-events:none;filter:drop-shadow(0 0 2px #0f172ab8)drop-shadow(0 0 4px #ffffff7a);animation:1.8s ease-in-out infinite selection-pulse}.triangle-shape:focus,.triangle-region-target:focus,.drag-point:focus,.constructed-point:focus,.construction-point-target:focus,.side-drag-target:focus,.construction-line-target:focus,.construction-circle-target:focus{outline:none}.construction-point-target:focus-visible+circle,.drag-point:focus-visible .point-dot,.constructed-point:focus-visible circle:not(.construction-point-target){stroke:var(--selection);stroke-width:4px}@keyframes selection-pulse{0%,to{opacity:.42}50%{opacity:1}}.construction-overlay .equal-mark{stroke-width:2px}.construction-overlay.circumcircle .construction-circle-outline{fill:none;stroke:var(--orange);stroke-width:3px;stroke-dasharray:8 6;pointer-events:none}.construction-overlay.circumcircle .construction-circle-target{fill:none;stroke:#0000;stroke-width:24px;pointer-events:stroke;cursor:pointer}.construction-overlay.circumcircle .construction-center{fill:var(--orange);stroke:var(--surface);stroke-width:3px}.construction-overlay.circumcircle text{font-size:12px}.construction-overlay.perpendicular-bisector line{stroke-dasharray:8 6}.canvas-tip,.shape-badge,.diagram-legend{z-index:2;box-shadow:var(--shadow);color:var(--muted);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;border-radius:9px;align-items:center;gap:5px;padding:7px 9px;font-size:10px;display:flex;position:absolute}.canvas-tip{bottom:10px;left:10px}.shape-badge{color:var(--accent);top:10px;right:10px}.diagram-controls{z-index:4;border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffff0;border-radius:8px;align-items:center;display:flex;position:absolute;top:10px;left:10px;overflow:hidden}.diagram-controls button{width:32px;height:32px;color:var(--text);background:0 0;border:0;place-items:center;padding:0;display:grid}.diagram-controls button:hover{background:var(--accent-soft);color:var(--accent)}.diagram-controls button:disabled{color:var(--muted);cursor:default;opacity:.32}.diagram-controls .selection-filter{width:27px;color:var(--muted);font-size:10px;font-weight:700}.diagram-controls .selection-filter[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.diagram-controls button+button{border-left:1px solid var(--border)}.diagram-controls span{min-width:35px;color:var(--muted);text-align:center;font-size:8px}.diagram-controls svg{width:13px}.diagram-control-divider{background:var(--border);flex:0 0 1px;width:1px;height:20px}.finding-bar{background:var(--accent-soft);color:var(--accent);border-radius:11px;align-items:center;gap:9px;margin:10px 12px 12px;padding:11px;display:flex}.finding-bar>svg{flex:none;width:18px}.finding-bar p{margin:0}.finding-bar b,.finding-bar span{display:block}.finding-bar b{font-size:10px}.finding-bar span{color:var(--text);margin-top:2px;font-size:11px;line-height:1.45}.finding-bar p{flex:1;min-width:0}.finding-complete{background:var(--accent);color:#fff;border:0;border-radius:8px;flex:none;min-height:34px;padding:0 10px;font-size:10px;font-weight:700}.finding-complete:disabled{background:var(--green);opacity:.75}.construction-ray{stroke:var(--muted);stroke-width:2px}.construction-ray.soft,.height-line{stroke-dasharray:6 6;opacity:.6}.construction-circle{fill:none;stroke:var(--muted);stroke-width:2px;stroke-dasharray:7 7;opacity:.6}.height-line{stroke:var(--muted);stroke-width:2px}.ssa-triangle{stroke-width:4px;stroke-linejoin:round}.ssa-triangle.solution-1{fill:#4e68e81f;stroke:var(--accent)}.ssa-triangle.solution-2{fill:#d66b3f1c;stroke:var(--orange)}.fixed-point{fill:var(--text);stroke:var(--surface-2);stroke-width:3px}.solution-point.solution-1{fill:var(--accent)}.solution-point.solution-2{fill:var(--orange)}.solution-point{stroke:var(--surface-2);stroke-width:3px}.diagram-legend{flex-wrap:wrap;bottom:10px;left:10px}.diagram-legend span{align-items:center;gap:4px;display:flex}.diagram-legend i{background:var(--accent);width:15px;height:3px;display:inline-block}.diagram-legend .legend-two{background:var(--orange)}.diagram-legend .legend-dash{border-top:2px dashed var(--muted);background:0 0;height:0}.control-panel{z-index:1;border:1px solid var(--border);background:var(--surface);box-shadow:none;border-radius:15px;margin:10px 12px 0;position:static;overflow:hidden}.sheet-handle{background:var(--surface);border:0;grid-template-columns:1fr auto 1fr;align-items:center;width:100%;min-height:51px;padding:0 14px;display:grid}.sheet-handle .handle-line{background:var(--border);border-radius:99px;grid-column:2;align-self:start;width:36px;height:4px;margin-top:7px}.sheet-handle b{grid-column:2;font-size:12px}.sheet-handle svg{width:17px;color:var(--muted);grid-area:1/3;justify-self:end;transition:transform .2s}.sheet-handle.compact{min-height:25px}.sheet-handle.compact .handle-line{align-self:center;margin-top:0}.sheet-handle.compact svg{width:14px}.control-panel.closed .control-content{display:none}.control-panel.closed .sheet-handle svg{transform:rotate(180deg)}.control-content{overscroll-behavior:contain;max-height:42vh;padding:0 15px 16px;overflow-y:auto}.control-content h2{margin:0 0 12px;font-size:15px}.parameter-tabs{z-index:3;background:#e5eaf2;border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0 0 10px;padding:4px;display:grid;position:sticky;top:0}.parameter-tabs button{min-width:0;min-height:31px;color:var(--muted);background:0 0;border:0;border-radius:7px;padding:0 2px;font-size:11px}.parameter-tabs button.active{background:var(--surface);color:var(--accent);font-weight:700;box-shadow:0 2px 8px #23314e1a}.construction-tool-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:10px;display:grid}.construction-tool-tabs button{border:1px solid var(--border);background:var(--surface-2);min-height:36px;color:var(--muted);border-radius:8px;padding:0 3px;font-size:9px}.construction-tool-tabs button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.construction-mode-tabs{background:var(--surface-2);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:10px;padding:4px;display:grid}.construction-mode-tabs button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:7px;font-size:10px}.construction-mode-tabs button.active{background:var(--surface);color:var(--accent);font-weight:700;box-shadow:0 2px 8px #23314e1a}.target-selector{color:var(--muted);grid-template-columns:1fr repeat(3,44px);align-items:center;gap:5px;margin-bottom:9px;font-size:10px;display:grid}.target-selector button{border:1px solid var(--border);background:var(--surface-2);min-height:34px;color:var(--text);border-radius:8px}.target-selector button.active{border-color:var(--orange);background:var(--orange-soft);color:var(--orange);font-weight:700}.construction-actions{grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:5px;margin-bottom:10px;display:grid}.construction-actions.secondary{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}.construction-actions button{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:46px;color:var(--text);border-radius:9px;padding:6px 4px}.construction-actions button b,.construction-actions button span{display:block}.construction-actions button b{font-size:10px}.construction-actions button span{color:var(--muted);margin-top:2px;font-size:9px}.construction-actions button.added{border-color:color-mix(in srgb, var(--green) 45%, var(--border));background:var(--green-soft);color:var(--green);opacity:1}.construction-actions button.added span{color:var(--green)}.object-adjustments{grid-template-columns:minmax(0,1fr);gap:6px;margin:8px 0 10px;display:grid}.object-adjustment-card{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px;min-width:0;padding:5px 6px;display:grid}.object-adjustment-card.angle-adjustment{grid-template-columns:auto 56px minmax(0,1fr)}.object-adjustment-card.length-adjustment{grid-template-columns:minmax(80px,auto) minmax(48px,.55fr) minmax(98px,1.45fr)}.object-adjustment-heading{min-width:0}.object-adjustment-heading b{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:10px;overflow:hidden}.edge-adjustment-heading{align-items:center;gap:5px;display:flex}.edge-label-toggle{border:1px solid var(--border);background:var(--surface);min-width:60px;min-height:27px;color:var(--muted);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:3px;padding:0 5px;font-size:9px;display:flex}.edge-label-toggle svg{width:11px;height:11px}.edge-label-toggle.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.edge-label-toggle:disabled{opacity:.4}.angle-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;min-width:0;display:grid}.angle-presets button{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:31px;color:var(--text);border-radius:7px;padding:0 3px;font-size:10px}.angle-presets button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.object-adjustment-card p{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;grid-column:1/-1;margin:0;font-size:8px;line-height:1.35;overflow:hidden}.object-value-input{min-width:0;color:var(--muted);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;font-size:8px;display:grid}.object-value-input input{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;height:31px;color:var(--text);text-align:right;border-radius:7px;padding:0 5px;font-size:11px;font-weight:700}.object-value-input i{color:var(--muted);font-style:normal}.length-anchor-radios{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;min-width:0;display:grid}.length-anchor-radios label{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:29px;color:var(--muted);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:1px;font-size:7px;display:flex}.length-anchor-radios label:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.length-anchor-radios input{width:10px;height:10px;accent-color:var(--accent);margin:0}.selection-delete-actions{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:5px;margin:1px 0 0;display:grid}.selection-delete-actions button{background:var(--red-soft);min-width:0;min-height:32px;color:var(--red);border:1px solid #b9425247;border-radius:8px;justify-content:center;align-items:center;gap:4px;padding:0 5px;font-size:10px;font-weight:600;display:flex}.selection-delete-actions button svg{width:13px}.selection-delete-actions button:disabled{border-color:var(--border);background:var(--surface-2);color:var(--muted);opacity:.48}.selection-delete-actions.single-action{grid-template-columns:minmax(0,1fr);margin-top:8px}.edge-dimension{pointer-events:none}.edge-dimension line{stroke:#647087;stroke-width:1.5px;vector-effect:non-scaling-stroke}.edge-dimension .dimension-extension{opacity:.72}.edge-dimension text{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:6px;stroke-linejoin:round;font-size:13px;font-weight:700}.triangle-area-label{fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:5px;stroke-linejoin:round;pointer-events:none;font-size:12px;font-weight:700}.region-angle-label{font-size:10px}.region-area-control{border:1px solid color-mix(in srgb, var(--selection) 28%, var(--border));background:color-mix(in srgb, var(--selection) 6%, var(--surface));border-radius:9px;justify-content:space-between;align-items:center;gap:8px;min-height:33px;margin:8px 0 6px;padding:3px 5px 3px 9px;display:flex}.region-area-control b{flex:none;font-size:10px}.region-display-actions{gap:4px;min-width:0;display:flex}.region-area-control button{border:1px solid var(--border);background:var(--surface);min-height:27px;color:var(--muted);white-space:nowrap;border-radius:7px;align-items:center;gap:4px;padding:0 7px;font-size:9px;display:flex}.region-area-control button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.area-symbol{background:var(--accent);color:#fff;border-radius:4px;place-items:center;width:16px;height:16px;font-size:9px;font-style:italic;display:grid}.selected-region-tools{margin-top:2px}.selected-region-tools .region-area-control{margin-top:0}.region-vertex-selector{color:var(--muted);grid-template-columns:minmax(44px,1fr) repeat(3,36px);align-items:center;gap:4px;margin:5px 0;font-size:9px;display:grid}.region-vertex-selector button{border:1px solid var(--border);background:var(--surface);min-height:28px;color:var(--text);border-radius:7px;font-size:10px}.region-vertex-selector button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.region-construction-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;display:grid}.region-construction-actions button{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:37px;color:var(--text);border-radius:8px;padding:4px 3px}.region-construction-actions b,.region-construction-actions span{display:block}.region-construction-actions b{font-size:10px}.region-construction-actions span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:8px;overflow:hidden}.secondary-edge-row{grid-template-columns:45px minmax(0,1fr) auto}.intersection-button{border:1px solid var(--accent);background:var(--accent-soft);min-height:31px;color:var(--accent);border-radius:8px;padding:0 8px;font-size:9px}.intersection-button:disabled{opacity:.4}.history-actions{grid-template-columns:repeat(2,1fr);gap:6px;display:grid}.history-actions .secondary-button{min-height:38px;font-size:10px}.history-actions .secondary-button:disabled{opacity:.4}.panel-empty-hint{background:var(--surface-2);color:var(--muted);border-radius:9px;margin:8px 2px;padding:12px;font-size:10px;line-height:1.55}.compact-checks.single-check{grid-template-columns:1fr}.control-intro{color:var(--muted);margin:-5px 0 13px;font-size:11px;line-height:1.5}.measure-grid{border-top:1px solid var(--border);border-left:1px solid var(--border);grid-template-columns:repeat(3,1fr);display:grid}.measure-grid>div{border-right:1px solid var(--border);border-bottom:1px solid var(--border);min-width:0;padding:9px 6px}.measure-grid span,.measure-grid b,.measure-grid small{display:block}.measure-grid span,.measure-grid small{color:var(--muted);font-size:9px}.measure-grid b{margin:3px 0;font-size:14px}.editable-measures{grid-template-columns:repeat(3,minmax(0,1fr))}.editable-measures>.measure-field{border-right:1px solid var(--border);border-bottom:1px solid var(--border);min-width:0;padding:6px}.measure-field{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;display:grid}.measure-field span em{background:var(--orange-soft);color:var(--orange);vertical-align:1px;border-radius:4px;margin-left:3px;padding:1px 3px;font-size:7px;font-style:normal;display:inline-block}.measure-field input{border:1px solid var(--border);background:var(--surface-2);width:100%;min-width:0;height:30px;color:var(--text);text-align:right;border-radius:7px;padding:0 5px;font-size:13px;font-weight:600}.measure-field input:focus{border-color:var(--accent);background:var(--surface)}.measure-field input,.side-inputs input,.range-number-input{touch-action:manipulation;-webkit-user-select:text;user-select:text;caret-color:var(--accent)}.measure-field input:focus,.side-inputs input:focus,.range-number-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4e68e821}.summary-row{color:var(--muted);justify-content:space-between;padding:10px 1px;font-size:10px;display:flex}.summary-row b{color:var(--text)}.angle-lock-bar{background:var(--surface-2);color:var(--muted);border-radius:8px;justify-content:space-between;align-items:center;gap:6px;margin-top:6px;padding:6px 8px;font-size:9px;line-height:1.35;display:flex}.angle-lock-bar.active{background:var(--orange-soft);color:var(--orange)}.angle-lock-bar button{min-height:27px;color:inherit;background:0 0;border:1px solid;border-radius:6px;flex:none;padding:0 7px;font-size:9px}.check-row{min-height:40px;color:var(--muted);align-items:center;gap:9px;font-size:11px;display:flex}.check-row input{width:19px;height:19px;accent-color:var(--accent)}.challenge-box,.concept-box{background:var(--accent-soft);color:var(--accent);border-radius:10px;align-items:center;gap:9px;margin-top:10px;padding:11px;display:flex}.challenge-box svg,.concept-box svg{flex:none;width:17px}.challenge-box p,.concept-box p{margin:0}.challenge-box b,.challenge-box span,.concept-box b,.concept-box span{display:block}.challenge-box b,.concept-box b{font-size:10px}.challenge-box span,.concept-box span{color:var(--text);margin-top:2px;font-size:10px;line-height:1.4}.side-inputs{gap:8px;margin-bottom:12px;display:grid}.side-inputs label{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:11px;display:flex}.side-inputs input{border:1px solid var(--border);background:var(--surface-2);width:105px;min-height:44px;color:var(--text);border-radius:10px;padding:0 10px;font-size:16px}.validation-message{background:var(--green-soft);min-height:40px;color:var(--green);border-radius:9px;margin:10px 0 0;padding:9px;font-size:10px;line-height:1.5}.validation-message.error{background:var(--red-soft);color:var(--red)}.range-heading{color:var(--muted);justify-content:space-between;align-items:center;font-size:11px;display:flex}.range-heading b{color:var(--accent);font-size:17px}.range-number-input{border:1px solid var(--border);background:var(--surface-2);width:72px;height:36px;color:var(--accent);text-align:right;border-radius:8px;padding:0 8px;font-size:15px;font-weight:700}.range-input{width:100%;min-height:44px;accent-color:var(--accent);margin:5px 0 0}.threshold-row{color:var(--muted);justify-content:space-between;font-size:10px;display:flex}.threshold-row b{color:var(--text)}.solution-card{background:var(--orange-soft);color:var(--orange);border-radius:10px;margin-top:13px;padding:12px}.solution-card.count-0{background:var(--red-soft);color:var(--red)}.solution-card.count-1{background:var(--green-soft);color:var(--green)}.solution-card strong,.solution-card span{display:block}.solution-card strong{font-size:13px}.solution-card span{margin-top:4px;font-size:10px;line-height:1.45}.case-intervals{grid-template-columns:repeat(3,1fr);gap:5px;margin-top:11px;display:grid}.case-intervals.four{grid-template-columns:repeat(2,1fr)}.case-intervals div{background:var(--surface-2);text-align:center;border-radius:8px;padding:7px 3px}.case-intervals div.active{background:var(--accent-soft);color:var(--accent)}.case-intervals span,.case-intervals b{font-size:9px;display:block}.case-intervals b{margin-top:2px}.segment-selector{background:var(--surface-2);border-radius:11px;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px;padding:4px;display:grid}.segment-selector button{min-height:42px;color:var(--muted);background:0 0;border:0;border-radius:8px;padding:0 4px;font-size:11px}.segment-selector button.active{background:var(--surface);color:var(--accent);box-shadow:var(--shadow);font-weight:600}.segment-definition{background:var(--orange-soft);border-radius:11px;padding:12px}.segment-definition span,.segment-definition strong{display:block}.segment-definition span{color:var(--orange);font-size:10px}.segment-definition strong{margin-top:3px;font-size:14px}.segment-definition p{color:var(--text);margin:6px 0 0;font-size:11px;line-height:1.55}.segment-facts{gap:6px;margin-top:12px;display:grid}.segment-facts span{border-left:3px solid var(--accent);background:var(--surface-2);color:var(--muted);padding:8px 10px;font-size:10px}.more-panel{color:var(--muted);border-radius:9px;margin-top:8px;font-size:10px}.more-panel summary{background:var(--surface-2);min-height:31px;color:var(--accent);cursor:pointer;border-radius:8px;padding:8px 10px;font-weight:600}.more-panel[open] summary{margin-bottom:5px}.more-panel .challenge-box,.more-panel .concept-box,.more-panel .segment-facts{margin-top:0}.more-panel>p{margin:7px 2px 0;line-height:1.55}.advanced-panel{border:1px solid var(--border);margin-top:10px}.advanced-panel>summary{background:var(--accent-soft)}.advanced-content{gap:9px;padding:4px 2px 2px;display:grid}.advanced-section{background:var(--surface-2);border-radius:9px;padding:9px}.advanced-section h3{margin:0 0 7px;font-size:11px}.constraint-buttons{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.constraint-buttons button{border:1px solid var(--border);background:var(--surface);min-height:34px;color:var(--muted);border-radius:7px;padding:0 4px;font-size:9px}.constraint-buttons button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:700}.constraint-note{color:var(--muted);margin:6px 0 0;font-size:9px;line-height:1.4}.vertex-locks{color:var(--muted);align-items:center;gap:5px;margin-top:7px;font-size:9px;display:flex}.vertex-locks button{border:1px solid var(--border);background:var(--surface);width:31px;height:28px;color:var(--text);border-radius:7px}.vertex-locks button.active{border-color:var(--orange);background:var(--orange-soft);color:var(--orange);font-weight:700}.compact-checks{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.compact-checks label,.inline-check{min-height:32px;color:var(--muted);align-items:center;gap:5px;font-size:9px;display:flex}.compact-checks input,.inline-check input{width:16px;height:16px;accent-color:var(--accent)}.comparison-controls>label{color:var(--muted);grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;margin-top:6px;font-size:9px;display:grid}.comparison-controls>label input[type=range]{width:100%;min-height:25px;accent-color:var(--accent);grid-column:1/-1}.comparison-controls>label.inline-check{display:flex}.comparison-result{background:var(--surface);color:var(--muted);border-radius:7px;margin:7px 0 0;padding:7px;font-size:9px;line-height:1.45}.comparison-result.congruent{background:var(--green-soft);color:var(--green)}.comparison-result.similar{background:var(--orange-soft);color:var(--orange)}.snapshot-tools .secondary-button{min-height:34px;font-size:10px}.snapshot-list{flex-wrap:wrap;gap:4px;margin-top:6px;display:flex}.snapshot-list button{border:1px solid var(--border);background:var(--surface);min-height:30px;color:var(--text);border-radius:7px;padding:0 7px;font-size:9px}.operation-log{background:var(--surface-2);border-radius:9px;padding:8px}.operation-log summary{color:var(--accent);cursor:pointer;font-weight:600}.operation-log ol{color:var(--muted);gap:3px;margin:7px 0 0;padding-left:20px;display:grid}.operation-log p{margin:7px 0 0}.activity-page{min-height:calc(100dvh - 58px - 74px - env(safe-area-inset-top) - env(safe-area-inset-bottom));flex-direction:column;gap:12px;display:flex}.activity-workspace{border:1px solid var(--border);background:var(--surface);min-height:0;box-shadow:var(--shadow);border-radius:17px;flex:1;display:grid;overflow:hidden}.activity-diagram{background:var(--surface-2);min-height:260px;overflow:hidden}.activity-diagram svg{width:100%;height:100%;min-height:260px;display:block}.activity-diagram text{fill:var(--text);paint-order:stroke;stroke:var(--surface-2);stroke-width:5px;font-size:14px;font-weight:600}.activity-triangle{fill:#4e68e824;stroke:var(--accent);stroke-width:4px;stroke-linejoin:round}.activity-triangle.second{fill:#d66b3f1f;stroke:var(--orange)}.activity-guide{stroke:var(--muted);stroke-width:2px;stroke-dasharray:7 7}.activity-special{stroke:var(--orange);stroke-width:4px}.right-angle{fill:none;stroke:var(--orange);stroke-width:2px}.activity-diagram .criterion-mark{fill:var(--accent);stroke-width:7px;font-size:24px}.activity-controls{min-width:0;padding:16px;overflow-y:auto}.activity-controls h2{margin-bottom:12px}.activity-controls>label{color:var(--muted);grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;margin:12px 0;font-size:11px;display:grid}.activity-controls>label b{color:var(--accent)}.activity-controls input[type=range]{width:100%;min-height:35px;accent-color:var(--accent);grid-column:1/-1}.equation-card{background:var(--accent-soft);border-radius:11px;gap:6px;margin-top:12px;padding:12px;display:grid}.equation-card b{color:var(--accent);font-size:13px}.equation-card span{font-size:11px;line-height:1.5}.equation-card strong{color:var(--green);align-items:center;gap:5px;font-size:11px;display:flex}.equation-card strong svg{width:15px}.equation-card strong.invalid{color:var(--red)}.criterion-tabs{background:var(--surface-2);border-radius:10px;grid-template-columns:repeat(4,1fr);gap:5px;padding:4px;display:grid}.criterion-tabs button{min-height:39px;color:var(--muted);background:0 0;border:0;border-radius:8px;font-weight:700}.criterion-tabs button.active{background:var(--surface);color:var(--accent);box-shadow:var(--shadow)}.activity-complete{background:var(--accent-soft);color:var(--accent);border-radius:13px;align-items:center;gap:9px;padding:11px 13px;display:flex}.activity-complete>svg{flex:none;width:18px}.activity-complete p{flex:1;min-width:0;margin:0}.activity-complete b,.activity-complete span{display:block}.activity-complete b{font-size:11px}.activity-complete span{color:var(--text);margin-top:2px;font-size:10px}.activity-complete .primary-button{min-height:38px;padding:0 11px;font-size:10px}.practice-page{place-items:start center;display:grid}.practice-card{width:min(680px,100%)}.practice-top{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.practice-top h1{font-size:21px}.question-number{color:var(--muted);flex:none;font-size:11px}.practice-progress{background:var(--border);border-radius:99px;height:6px;margin:10px 0 22px;overflow:hidden}.practice-progress span{border-radius:inherit;background:var(--accent);height:100%;transition:width .25s;display:block}.question-text{min-height:58px;margin-bottom:16px;font-size:15px;line-height:1.75}.answer-list{gap:9px;display:grid}.answer-button{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:11px;align-items:center;gap:10px;width:100%;min-height:50px;padding:8px 11px;display:flex}.answer-button>span{background:var(--surface-2);width:29px;height:29px;color:var(--muted);border-radius:50%;flex:none;place-items:center;font-size:11px;display:grid}.answer-button.correct{border-color:var(--green);background:var(--green-soft);color:var(--green)}.answer-button.wrong{border-color:var(--red);background:var(--red-soft);color:var(--red)}.answer-explanation{border-radius:10px;margin:13px 0;padding:11px}.answer-explanation.correct{background:var(--green-soft);color:var(--green)}.answer-explanation.wrong{background:var(--red-soft);color:var(--red)}.answer-explanation b,.answer-explanation span{display:block}.answer-explanation b{font-size:12px}.answer-explanation span{margin-top:3px;font-size:11px;line-height:1.5}.score-note{color:var(--muted);text-align:center;margin:10px 0 0;font-size:10px}.mistakes-page{gap:14px;display:grid}.mistake-summary{justify-content:space-between;align-items:center;gap:16px;display:flex}.mistake-summary h1{margin-bottom:0;font-size:21px}.mistake-summary>svg{width:40px;height:40px;color:var(--accent)}.mistake-card h2{margin:14px 0 8px}.mistake-card>p{color:var(--muted);font-size:12px;line-height:1.6}.mistake-actions{gap:8px;margin-top:15px;display:flex}.mistake-list{gap:12px;display:grid}.mistake-explanation{background:var(--green-soft);color:var(--green);border-radius:10px;margin-top:12px;padding:11px}.mistake-explanation p{color:var(--text);margin:5px 0 0;font-size:11px;line-height:1.55}.empty-state{border:1px solid var(--border);background:var(--surface);text-align:center;box-shadow:var(--shadow);border-radius:17px;padding:32px 20px}.empty-state>svg{background:var(--green-soft);width:42px;height:42px;color:var(--green);border-radius:50%;padding:9px}.empty-state h2{margin:10px 0 6px}.empty-state p{color:var(--muted);font-size:11px}.toast{z-index:40;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));color:#fff;width:max-content;max-width:calc(100% - 28px);box-shadow:var(--shadow);background:#172136;border-radius:12px;align-items:center;gap:8px;padding:11px 15px;font-size:12px;display:flex;position:fixed;transform:translate(-50%)}.toast svg{width:16px}.profile-overlay{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f141c7a;align-items:end;padding:14px;display:grid;position:fixed;inset:0}.profile-dialog{border:1px solid var(--border);background:var(--surface);border-radius:20px;width:min(520px,100%);max-height:calc(100dvh - 28px);margin:0 auto;padding:18px;overflow-y:auto;box-shadow:0 22px 70px #0f141c47}.profile-dialog-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.profile-dialog-heading h2{margin:0}.profile-dialog-heading .icon-button{border:1px solid var(--border);background:var(--surface-2);font-size:22px}.profile-list{gap:10px;margin-top:16px;display:grid}.profile-card{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;grid-template-columns:46px minmax(0,1fr) auto;align-items:end;gap:10px;padding:11px;display:grid}.profile-card.active{border-color:var(--accent);background:var(--accent-soft)}.profile-avatar{color:#fff;border-radius:50%;place-items:center;width:44px;height:44px;font-size:17px;font-weight:700;display:grid}.profile-card label span{color:var(--muted);margin-bottom:4px;font-size:10px;display:block}.profile-card input{border:1px solid var(--border);background:var(--surface);width:100%;height:38px;color:var(--text);border-radius:9px;padding:0 9px}.profile-card button{min-width:76px;min-height:38px;padding:0 10px;font-size:11px}.profile-dialog-footer{justify-content:space-between;align-items:center;gap:10px;margin-top:13px;display:flex}.profile-note{color:var(--muted);margin:0;font-size:10px;line-height:1.5}.profile-data-actions{gap:6px;display:flex}.profile-data-actions .secondary-button{min-height:38px;padding:0 9px;font-size:10px}.file-button{cursor:pointer;position:relative}.file-button input{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.danger-button{background:var(--red-soft);min-height:38px;color:var(--red);border:1px solid #b9425247;border-radius:9px;flex:none;padding:0 11px;font-size:11px;font-weight:600}.bottom-nav{z-index:30;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff2;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav button{min-height:64px;color:var(--muted);background:0 0;border:0;align-content:center;place-items:center;gap:3px;font-size:10px;display:grid}.bottom-nav button.active{color:var(--accent)}.bottom-nav svg{width:21px}@media (width>=600px){.page{padding:24px 22px 32px}.welcome-card{grid-template-columns:1fr auto;align-items:center;padding:28px 34px}.home-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,.75fr)}.mistakes-page{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.lesson-content-grid{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}.profile-overlay{place-items:center}.activity-workspace{grid-template-columns:minmax(0,1.5fr) minmax(275px,.7fr)}.case-intervals.four{grid-template-columns:repeat(4,1fr)}}@media (width<=420px){.profile-dialog-footer{flex-direction:column;align-items:stretch}.profile-data-actions>*{flex:1}.danger-button{width:100%}}@media (width<=759px){.angle-label{font-size:13px}.region-angle-label{font-size:11px}.diagram-labels text{font-size:17px}.lab-shell{height:100dvh;min-height:0;padding-bottom:0;overflow:hidden}.lab-shell .app-header{min-height:calc(50px + env(safe-area-inset-top))}.lab-shell .header-title span{display:none}.lab-shell .brand-mark{width:34px;height:34px}.lab-shell .profile-button{width:auto;min-width:34px;max-width:88px;height:34px;padding:0 8px}.lab-shell .bottom-nav button{min-height:56px}.lab-shell .lab-page{height:calc(100dvh - 50px - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));flex-direction:column;min-height:0;padding-top:7px;padding-bottom:6px;display:flex;overflow:hidden}.geometry-lab-shell .lab-page{height:calc(100dvh - 56px - env(safe-area-inset-bottom));padding-top:0}.lab-shell .activity-page{height:calc(100dvh - 50px - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;padding:7px 8px 6px;overflow:hidden}.activity-page .lab-heading{padding:0 2px}.activity-workspace{grid-template-rows:minmax(205px,52%) minmax(0,1fr)}.activity-diagram,.activity-diagram svg{height:100%;min-height:0}.activity-controls{padding:10px 12px}.activity-controls h2{margin-bottom:7px;font-size:13px}.activity-controls>label{margin:6px 0}.activity-controls input[type=range]{min-height:29px}.equation-card{gap:3px;margin-top:6px;padding:8px}.activity-complete{padding:7px 9px}.activity-complete span{display:none}.lab-heading{flex:none;align-items:center;padding:0 10px}.lab-heading .eyebrow{margin-bottom:1px;font-size:9px}.lab-heading h1{margin:0;font-size:clamp(16px,4.6vw,19px);line-height:1.22}.lab-heading p{display:none}.lab-heading .secondary-button{min-height:38px}.lab-heading-actions{gap:3px}.lab-heading-actions .secondary-button{width:36px;min-width:36px;min-height:36px;padding:0}.lab-layout{flex:auto;min-height:0}.stage-panel{grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0;display:grid}.lab-page:not(.ssa-case-page) .stage-panel{grid-template-rows:minmax(0,1fr)}.stage-workspace{grid-template-rows:minmax(205px,48%) minmax(0,1fr);min-height:0}.stage-workspace:has(.panel-construct){grid-template-rows:minmax(205px,42%) minmax(0,1fr)}.stage-workspace:has(.control-panel.closed){grid-template-rows:minmax(0,1fr) auto}.diagram-area,.triangle-canvas-wrap{height:100%;min-height:0}.triangle-canvas{height:100%;min-height:0;max-height:none}.diagram-controls{top:7px;left:7px}.diagram-controls button{width:29px;height:29px}.canvas-tip,.diagram-legend{padding:6px 7px;bottom:7px;left:7px}.shape-badge{top:7px;right:7px}.control-panel{border-radius:12px;flex-direction:column;min-height:0;margin:6px 8px 0;display:flex}.sheet-handle{min-height:39px;padding:0 11px}.sheet-handle.compact{min-height:23px}.sheet-handle .handle-line{width:30px;height:3px;margin-top:5px}.sheet-handle b{font-size:11px}.control-content{flex:auto;min-height:0;max-height:none;padding:0 11px 9px}.control-content h2{margin-bottom:6px;font-size:13px}.control-intro{margin:-2px 0 6px;font-size:10px}.parameter-tabs{margin-bottom:6px;padding:3px}.parameter-tabs button{min-height:29px;font-size:11px}.edit-hint{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.measure-grid>div{padding:5px 6px}.measure-grid b{margin:1px 0;font-size:13px}.measure-field input{height:27px;font-size:12px}.summary-row{padding:6px 1px}.check-row{min-height:31px}.check-row input{width:17px;height:17px}.challenge-box,.concept-box{margin-top:5px;padding:7px 8px}.construction-mode-tabs{margin-bottom:5px;padding:3px}.construction-mode-tabs button{min-height:29px}.construction-builder h2{margin-bottom:2px;font-size:12px}.construction-builder .control-intro{margin:0 0 5px;font-size:9px;line-height:1.25}.construction-builder .target-selector{grid-template-columns:1fr repeat(3,38px);gap:3px;margin-bottom:5px}.construction-builder .target-selector button{min-height:29px}.construction-builder .construction-actions{gap:3px;margin-bottom:5px}.construction-builder .construction-actions button{min-height:38px;padding:3px 2px}.side-inputs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:7px}.side-inputs label{display:block}.side-inputs label span{margin-bottom:3px;display:block}.side-inputs input{width:100%;min-height:38px}.control-content .primary-button{min-height:39px}.validation-message{min-height:0;margin-top:6px;padding:6px 8px}.range-input{min-height:34px;margin-top:0}.solution-card{margin-top:6px;padding:8px}.solution-card span{margin-top:2px}.case-intervals{margin-top:6px}.case-intervals div{padding:5px 2px}.segment-selector{grid-template-columns:repeat(3,1fr);margin-bottom:6px}.segment-selector button{min-height:36px}.segment-definition{padding:8px}.segment-definition p{margin-top:3px;line-height:1.35}.segment-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:6px}.segment-facts span{border-left-width:2px;padding:5px;line-height:1.3}.finding-bar{margin:5px 8px 7px;padding:7px 8px}.finding-bar>svg{width:15px}.finding-bar b{display:none}.finding-bar span{margin-top:0;font-size:10px;line-height:1.3}.case-route{flex:none;justify-content:center;margin:6px 8px}}@media (width<=380px){.more-panel summary{min-height:27px;padding:6px 8px}}@media (width<=759px) and (height<=720px){.lab-shell .app-header{min-height:calc(46px + env(safe-area-inset-top))}.lab-shell .lab-page{height:calc(100dvh - 46px - 52px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.geometry-lab-shell .lab-page{height:calc(100dvh - 52px - env(safe-area-inset-bottom))}.lab-shell .bottom-nav button{min-height:52px}.lab-heading .eyebrow{display:none}.lab-heading h1{font-size:16px}.stage-workspace{grid-template-rows:minmax(190px,44%) minmax(0,1fr)}.stage-workspace:has(.panel-construct){grid-template-rows:minmax(190px,39%) minmax(0,1fr)}.sheet-handle{min-height:35px}.control-content{padding-bottom:6px}.finding-bar{margin-top:3px;margin-bottom:4px}.finding-bar span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.activity-workspace{grid-template-rows:minmax(175px,48%) minmax(0,1fr)}}@media (width>=760px){.app-shell{padding-bottom:78px}.app-header{grid-template-columns:52px minmax(0,1fr) 52px;padding-left:22px;padding-right:22px}.lab-page{height:calc(100dvh - 58px - 78px - env(safe-area-inset-top));flex-direction:column;min-height:0;padding:18px 22px 14px;display:flex;overflow:hidden}.geometry-lab-shell .lab-page{height:calc(100dvh - 78px);padding-top:12px}.lab-heading{padding:0}.lab-heading .secondary-button{font-size:12px}.case-route{margin:10px 0}.lab-layout{flex:auto;min-height:0}.stage-panel{border:1px solid var(--border);height:100%;min-height:0;box-shadow:var(--shadow);border-radius:17px;grid-template-rows:minmax(0,1fr) auto;display:grid}.stage-workspace{grid-template-columns:minmax(0,1.55fr) minmax(270px,.72fr);min-height:0}.diagram-area,.triangle-canvas-wrap{height:100%;min-height:0}.diagram-area{border-right:1px solid var(--border)}.control-panel{border:0;border-radius:0;min-height:0;margin:0;position:static;overflow-y:auto}.sheet-handle{display:none}.control-panel.closed .control-content{display:block}.control-content{max-height:none;padding:18px;overflow:visible}.measure-grid{grid-template-columns:repeat(2,1fr)}.triangle-canvas{height:100%;min-height:0;max-height:none}.bottom-nav{border:1px solid var(--border);width:min(620px,100% - 28px);box-shadow:var(--shadow);border-radius:17px;bottom:10px;left:50%;right:auto;overflow:hidden;transform:translate(-50%)}.bottom-nav button{min-height:58px}.activity-page{height:calc(100dvh - 58px - 78px - env(safe-area-inset-top));min-height:0;padding:18px 22px 14px;overflow:hidden}.activity-workspace{grid-template-columns:minmax(0,1.6fr) minmax(290px,.72fr)}}@media (width>=1020px){.stage-workspace{grid-template-columns:minmax(0,1.7fr) 310px}.measure-grid{grid-template-columns:repeat(3,1fr)}}@media (prefers-color-scheme:dark){:root{color:#eef3fa;--bg:#0f141c;--surface:#18212d;--surface-2:#202b39;--text:#eef3fa;--muted:#a7b2c2;--border:#344254;--accent:#8293ff;--accent-dark:#6f82f0;--accent-soft:#252f58;--green:#58d1aa;--green-soft:#183b33;--orange:#f29a76;--orange-soft:#442b25;--selection:#ff6fae;--red:#ff919d;--red-soft:#43252d;--shadow:0 14px 36px #0000003d;background:#0f141c}.app-header,.bottom-nav,.canvas-tip,.shape-badge,.diagram-legend{background:#18212deb}.diagram-controls{background:#18212df0}.parameter-tabs{background:#111823}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}.selection-indicators{opacity:1;animation:none!important}}
