*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans SC,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color: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-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[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}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sticky{position:sticky}.top-0{top:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.h-full{height:100%}.min-h-\[88px\]{min-height:88px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-48{width:12rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[1500px\]{max-width:1500px}.flex-1{flex:1 1 0%}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-\[\#D1C7B7\]{--tw-border-opacity: 1;border-color:rgb(209 199 183 / var(--tw-border-opacity, 1))}.border-\[\#D1C7B7\]\/60{border-color:#d1c7b799}.border-ink-blue{--tw-border-opacity: 1;border-color:rgb(66 102 102 / var(--tw-border-opacity, 1))}.border-ink-blue\/30{border-color:#4266664d}.bg-\[\#FAFAF7\]{--tw-bg-opacity: 1;background-color:rgb(250 250 247 / var(--tw-bg-opacity, 1))}.bg-bg-paper{--tw-bg-opacity: 1;background-color:rgb(245 242 225 / var(--tw-bg-opacity, 1))}.bg-ink-blue{--tw-bg-opacity: 1;background-color:rgb(66 102 102 / var(--tw-bg-opacity, 1))}.bg-ink-blue\/30{background-color:#4266664d}.bg-rouge-red{--tw-bg-opacity: 1;background-color:rgb(157 41 51 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/70{background-color:#ffffffb3}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-16{padding-bottom:4rem}.pb-3{padding-bottom:.75rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-ink-blue{--tw-text-opacity: 1;color:rgb(66 102 102 / var(--tw-text-opacity, 1))}.text-rouge-red{--tw-text-opacity: 1;color:rgb(157 41 51 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{background-color:#f5f2e1;margin:0;padding:0;font-family:KaiTi,STKaiti,楷体,SimSun,宋体,serif}.katex{font-size:1.1em;font-family:"Latin Modern Math","Cambria Math",serif}.katex-display{margin:1em 0;overflow-x:auto;overflow-y:hidden}.chinese-border{border:2px solid #426666;border-radius:8px;box-shadow:0 2px 8px #4266661a}input[type=number]{font-family:KaiTi,STKaiti,楷体,serif;transition:all .3s ease}input[type=number]:focus{box-shadow:0 0 0 3px #42666633}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:8px;background:#e0dcce;border-radius:4px;outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;background:#426666;border-radius:50%;cursor:pointer;box-shadow:0 2px 4px #0003;-webkit-transition:transform .2s ease;transition:transform .2s ease}input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2)}input[type=range]::-moz-range-thumb{width:20px;height:20px;background:#426666;border-radius:50%;cursor:pointer;box-shadow:0 2px 4px #0003;border:none}button{transition:all .3s ease}.shadow-card{box-shadow:0 4px 6px #4266661a,0 1px 3px #42666614}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#e0dcce;border-radius:4px}::-webkit-scrollbar-thumb{background:#426666;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#355252}.transition-all{transition:all .3s ease}.hover\:border-ink-blue\/60:hover{border-color:#42666699}.hover\:bg-ink-blue\/50:hover{background-color:#42666680}.hover\:bg-ink-blue\/80:hover{background-color:#426666cc}.hover\:text-rouge-red:hover{--tw-text-opacity: 1;color:rgb(157 41 51 / var(--tw-text-opacity, 1))}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:justify-end{justify-content:flex-end}}@media (min-width: 768px){.md\:flex-row{flex-direction:row}.md\:justify-center{justify-content:center}.md\:text-5xl{font-size:3rem;line-height:1}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@font-face{font-family:Noto Sans SC;font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/NotoSansSC-Regular.woff2) format("woff2")}@font-face{font-family:Noto Sans SC;font-weight:500;font-style:normal;font-display:swap;src:url(../fonts/NotoSansSC-Medium.woff2) format("woff2")}@font-face{font-family:Noto Sans SC;font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/NotoSansSC-SemiBold.woff2) format("woff2")}@font-face{font-family:Noto Sans SC;font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/NotoSansSC-Bold.woff2) format("woff2")}@font-face{font-family:"Noto Serif SC";font-weight:400;font-style:normal;font-display:swap;src:url(../fonts/NotoSerifSC-Regular.woff2) format("woff2")}@font-face{font-family:"Noto Serif SC";font-weight:600;font-style:normal;font-display:swap;src:url(../fonts/NotoSerifSC-SemiBold.woff2) format("woff2")}@font-face{font-family:"Noto Serif SC";font-weight:700;font-style:normal;font-display:swap;src:url(../fonts/NotoSerifSC-Bold.woff2) format("woff2")}*{margin:0;padding:0;box-sizing:border-box}:root{--bg-page: #FDFBF5;--bg-card: #FFFFFF;--color-primary: #1A1A1A;--color-accent: #B22222;--color-secondary: #1A3B5D;--font-serif: "Noto Serif SC", "楷体", serif;--font-sans: "Noto Sans SC", sans-serif;--font-mono: "JetBrains Mono", monospace;--shadow-card: 0 4px 12px rgba(0, 0, 0, .05)}body{font-family:var(--font-sans);background-color:var(--bg-page);background-image:url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");color:var(--color-primary);line-height:1.6;min-height:100vh}.app-container{max-width:1200px;margin:0 auto;padding:20px}.header{text-align:center;padding:30px 0;margin-bottom:20px}.header h1{font-family:var(--font-serif);font-size:2.2rem;font-weight:700;color:var(--color-primary);letter-spacing:2px}.module{background:var(--bg-card);border-radius:16px;padding:30px;margin-bottom:30px;box-shadow:var(--shadow-card)}.module-title{font-family:var(--font-serif);font-size:1.5rem;color:var(--color-secondary);margin-bottom:24px;padding-bottom:12px;border-bottom:2px solid var(--color-secondary)}.shape-playback-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;padding:14px 16px;border-radius:16px;background:#fafaf7;border:1px solid rgba(209,199,183,.6)}.shape-playback-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}.shape-playback-stage-badge,.shape-playback-step-counter{color:var(--color-secondary);font-weight:700}.shape-playback-ghost-btn,.shape-playback-control-btn{min-width:118px;padding:10px 18px;border-radius:10px;border:1px solid rgba(26,59,93,.2);background:#fff;color:var(--color-secondary);font-weight:700;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}.shape-playback-ghost-btn:hover,.shape-playback-control-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #1a3b5d14}.shape-playback-ghost-btn.is-active{background:#1a3b5d1f;color:var(--color-secondary)}.shape-playback-control-btn:disabled{opacity:.45;cursor:not-allowed}.shape-playback-control-btn.is-primary{background:var(--color-secondary);border-color:var(--color-secondary);color:#fff}.shape-playback-control-btn.is-primary.is-attention{animation:shapePlaybackPulse 1s ease-in-out infinite}.shape-playback-layout{display:flex;align-items:stretch;justify-content:center;gap:20px}.shape-playback-matrix-column{flex:1 1 0;min-width:0}.shape-playback-center-panel{width:260px;flex-shrink:0;display:flex;flex-direction:column;gap:16px;justify-content:center}.shape-playback-operation-card,.shape-playback-meta-card,.shape-playback-summary,.shape-playback-matrix-card{background:#fafaf7;border:1px solid rgba(209,199,183,.6);border-radius:16px;box-shadow:0 4px 12px #0000000a}.shape-playback-operation-card,.shape-playback-meta-card,.shape-playback-summary{padding:18px}.shape-playback-operation-title,.shape-playback-summary-title,.shape-playback-matrix-title{text-align:center;color:var(--color-secondary);font-weight:700}.shape-playback-operation-title,.shape-playback-matrix-title{margin-bottom:12px}.shape-playback-button-stack{display:flex;flex-direction:column;gap:12px}.shape-playback-bubble{background:#b2222214;border:1px solid rgba(178,34,34,.22);color:#7a2d2d;border-radius:14px;padding:14px 16px;line-height:1.7;font-size:.95rem}.shape-playback-meta-card{display:grid;gap:8px;color:#4b5563;text-align:center}.shape-playback-matrix-card{padding:18px}.shape-playback-matrix-scroll,.shape-playback-process-matrix-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:4px}.shape-playback-matrix-shell{display:flex;align-items:stretch;justify-content:center;gap:12px;min-width:-moz-max-content;min-width:max-content}.shape-playback-matrix-bracket{width:14px;border-top:3px solid #1f2937;border-bottom:3px solid #1f2937}.shape-playback-matrix-bracket.left{border-left:3px solid #1f2937}.shape-playback-matrix-bracket.right{border-right:3px solid #1f2937}.shape-playback-grid-shell{position:relative}.shape-playback-grid-body{display:flex;align-items:stretch;gap:14px}.shape-playback-coeff-grid{display:grid;grid-template-columns:repeat(4,82px);grid-template-rows:repeat(4,62px);gap:10px}.shape-playback-constant-grid{display:grid;grid-template-columns:82px;grid-template-rows:repeat(4,62px);gap:10px}.shape-playback-aug-divider{width:3px;border-radius:999px;background:#1a3b5d6b}.shape-playback-matrix-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.shape-playback-matrix-cell{min-width:82px;min-height:62px;padding:12px 10px;border-radius:12px;border:1.5px solid rgba(26,59,93,.14);background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-family:var(--font-mono);font-size:1.45rem;font-variant-numeric:tabular-nums;white-space:pre;color:var(--color-primary)}.shape-playback-matrix-cell.is-constant{background:#fffdf8}.shape-playback-matrix-cell.is-flashing{animation:shapePlaybackFlash 2s ease-in-out 1}.shape-playback-summary{margin-top:20px}.shape-playback-process-panel{margin-top:20px;min-width:0;padding:18px;background:#fafaf7;border:1px solid rgba(209,199,183,.6);border-radius:16px;box-shadow:0 4px 12px #0000000a}.shape-playback-process-list{display:flex;flex-direction:column;gap:18px;margin-top:18px}.shape-playback-process-node{position:relative;border:1px solid rgba(209,199,183,.68);border-radius:16px;background:#fffdf8;padding:18px;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease}.shape-playback-process-node.is-active{border-color:#1a3b5d61;box-shadow:0 10px 24px #1a3b5d1a}.shape-playback-process-milestone{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 12px;margin-bottom:12px;border-radius:999px;background:#b222221a;color:#8a1f1f;font-weight:700}.shape-playback-process-initial-label,.shape-playback-process-node-title{text-align:center;color:var(--color-secondary);font-weight:700}.shape-playback-process-initial-label{margin-bottom:14px}.shape-playback-process-arrow-stack{display:grid;gap:10px;justify-items:center;margin-bottom:14px}.shape-playback-process-formula-group{display:grid;gap:6px;justify-items:center;width:100%}.shape-playback-process-formula-line{min-height:28px;max-width:100%;text-align:center;color:var(--color-secondary)}.shape-playback-process-arrow{font-size:1.7rem;line-height:1;color:var(--color-accent)}.shape-playback-process-node-card{width:100%;display:grid;gap:14px;padding:0;border:none;background:transparent;cursor:pointer;text-align:inherit}.shape-playback-process-node-card:hover{transform:translateY(-1px)}.shape-playback-process-matrix-shell{display:flex;align-items:stretch;justify-content:center;gap:10px;min-width:-moz-max-content;min-width:max-content}.shape-playback-process-node .shape-playback-grid-body{gap:10px}.shape-playback-process-node .shape-playback-coeff-grid{grid-template-columns:repeat(4,58px);grid-template-rows:repeat(4,48px);gap:8px}.shape-playback-process-node .shape-playback-constant-grid{grid-template-columns:58px;grid-template-rows:repeat(4,48px);gap:8px}.shape-playback-process-node .shape-playback-matrix-cell{min-width:58px;min-height:48px;padding:10px 8px;font-size:1.05rem;border-radius:10px}.shape-playback-process-node .shape-playback-matrix-bracket{width:12px}.shape-playback-summary-formula{margin-top:14px;text-align:center}.shape-playback-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.shape-playback-summary-pair{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px;background:#fff;border-radius:14px;border:1px solid rgba(209,199,183,.6)}.shape-playback-summary-item{min-width:96px;text-align:center;font-weight:700;color:var(--color-secondary)}.shape-playback-summary-arrow{font-size:1.9rem;color:var(--color-accent)}@keyframes shapePlaybackFlash{0%{background:#fafaf7}15%{background:#ffdf78d9}40%{background:#ffdf78d9}70%{background:#ffe9a373}to{background:#fff}}@keyframes shapePlaybackPulse{0%,to{box-shadow:0 0 #b222221f}50%{box-shadow:0 0 0 5px #b222221f}}@media (max-width: 1200px){.shape-playback-toolbar,.shape-playback-layout{flex-direction:column}.shape-playback-toolbar{align-items:stretch}.shape-playback-toolbar-actions{justify-content:stretch}.shape-playback-center-panel{width:100%}.shape-playback-summary-grid{grid-template-columns:1fr}}@media (max-width: 760px){.shape-playback-toolbar-actions,.shape-playback-ghost-btn,.shape-playback-control-btn{width:100%}.shape-playback-coeff-grid{grid-template-columns:repeat(4,64px);grid-template-rows:repeat(4,54px);gap:8px}.shape-playback-constant-grid{grid-template-columns:64px;grid-template-rows:repeat(4,54px);gap:8px}.shape-playback-matrix-cell{min-width:64px;min-height:54px;font-size:1.2rem}.shape-playback-process-node{padding:14px}.shape-playback-process-node .shape-playback-coeff-grid{grid-template-columns:repeat(4,64px);grid-template-rows:repeat(4,54px)}.shape-playback-process-node .shape-playback-constant-grid{grid-template-columns:64px;grid-template-rows:repeat(4,54px)}.shape-playback-process-node .shape-playback-matrix-cell{min-width:64px;min-height:54px;font-size:1.2rem}.shape-playback-process-canvas{display:none}.shape-playback-process-formula-line{font-size:.95rem}}.shape-playback-desktop-panel-hint{margin:0 0 14px;font-size:.92rem;color:#64748b;line-height:1.45}.shape-playback-desktop-canvas-card{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:20px 16px;padding:8px 4px 4px;margin-top:8px}.shape-playback-desktop-flow-item{display:flex;flex-direction:row;align-items:center;flex:0 0 auto;gap:6px;max-width:100%}.shape-playback-desktop-matrix-block{display:flex;flex-direction:column;align-items:center;gap:8px}.shape-playback-desktop-step-label{font-size:.72rem;font-weight:600;color:#64748b;letter-spacing:.04em;text-align:center;max-width:12rem;line-height:1.3}.shape-playback-desktop-snapshot-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}.shape-playback-desktop-snapshot-shell{display:flex;align-items:stretch;justify-content:center;gap:8px;min-width:-moz-max-content;min-width:max-content}.shape-playback-desktop-snapshot-shell .shape-playback-matrix-bracket{width:10px}.shape-playback-desktop-snapshot-shell .shape-playback-grid-body{gap:8px}.shape-playback-desktop-snapshot-shell .shape-playback-coeff-grid{grid-template-columns:repeat(4,48px);grid-template-rows:repeat(4,38px);gap:6px}.shape-playback-desktop-snapshot-shell .shape-playback-constant-grid{grid-template-columns:48px;grid-template-rows:repeat(4,38px);gap:6px}.shape-playback-desktop-snapshot-shell .shape-playback-matrix-cell{min-width:48px;min-height:38px;padding:6px 4px;font-size:.88rem;border-radius:6px;border-color:#1a3b5d1a;background:#fafbfc}.shape-playback-desktop-matrix-connector{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0 10px;min-width:100px;max-width:168px;flex-shrink:0;align-self:center}.shape-playback-desktop-matrix-connector.is-minimal{min-width:48px;max-width:56px;padding:0 6px}.shape-playback-desktop-op-label-top{width:100%;text-align:center;font-family:Times New Roman,"Noto Serif SC",STSong,serif;font-size:14px;color:#333;line-height:1.2;min-height:0}.shape-playback-desktop-op-label-top mjx-container{font-size:14px!important}.shape-playback-desktop-classic-arrow{position:relative;width:100%;min-width:72px;max-width:88px;height:1px;margin:0;background-color:#6b7280;flex-shrink:0}.shape-playback-desktop-matrix-connector.is-minimal .shape-playback-desktop-classic-arrow{min-width:36px;max-width:44px}.shape-playback-desktop-classic-arrow:after{content:"";position:absolute;right:0;top:-4px;width:0;height:0;border-left:7px solid #6b7280;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent}.shape-playback-desktop-op-label-bottom{width:100%;text-align:center;font-size:12px;font-weight:700;color:#7f1d1d;line-height:1.25;max-width:11rem}.structure-lab-layout{display:flex;align-items:stretch;gap:20px}.structure-lab-panel{background:#fafaf7;border:1px solid rgba(209,199,183,.6);border-radius:16px;padding:24px 20px;box-shadow:0 4px 12px #0000000a}.structure-lab-left{flex:3 1 0;min-width:0}.structure-lab-right{flex:2 1 0;min-width:320px}.structure-action-bar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.structure-action-btn{min-width:108px;padding:10px 18px;border-radius:10px;border:1px solid rgba(26,59,93,.2);background:#fff;color:var(--color-secondary);font-weight:700;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}.structure-action-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #1a3b5d14}.structure-action-btn:disabled{opacity:.45;cursor:not-allowed}.structure-action-btn.is-verify{background:#228b22;border-color:#228b22;color:#fff}.structure-editor-stage,.structure-latex-preview,.structure-report-card,.structure-report-preview{background:#fff;border:1px solid rgba(209,199,183,.6);border-radius:14px;padding:18px}.structure-editor-caption,.structure-preview-title,.structure-report-subtitle{text-align:center;color:var(--color-secondary);font-weight:600}.structure-editor-caption,.structure-preview-title{margin-bottom:14px}.structure-editor-matrix{display:flex;justify-content:center;align-items:stretch;gap:12px}.structure-editor-bracket{width:14px;border-top:3px solid #1f2937;border-bottom:3px solid #1f2937}.structure-editor-bracket.left{border-left:3px solid #1f2937}.structure-editor-bracket.right{border-right:3px solid #1f2937}.structure-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(68px,1fr));gap:10px;position:relative;z-index:1}.structure-editor-grid-shell{position:relative;display:inline-block}.structure-editor-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2}.structure-editor-cell{min-height:56px;padding:12px 10px;border-radius:10px;border:1.5px solid rgba(26,59,93,.14);background:#fdfcf8;display:flex;align-items:center;justify-content:center;text-align:center;font-family:var(--font-mono);font-size:1rem;color:var(--color-primary);outline:none;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;position:relative;z-index:1}.structure-editor-cell:focus{border-color:#b2222280;box-shadow:0 0 0 3px #b222221f;background:#fffdf9}.structure-editor-note{margin-top:14px;text-align:center;color:#6b7280;font-size:.92rem}.structure-latex-preview{margin-top:18px;text-align:center}.structure-target-switcher{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.structure-target-btn{width:100%;padding:12px 16px;border-radius:12px;border:1px solid rgba(26,59,93,.18);background:#fff;color:var(--color-secondary);font-weight:700;transition:all .2s ease}.structure-target-btn:hover{border-color:#1a3b5d61}.structure-target-btn.is-active{background:var(--color-secondary);border-color:var(--color-secondary);color:#fff}.structure-report-card{min-height:240px}.structure-report-card.is-success{background:#228b220f}.structure-report-card.is-error{background:#b222220f}.structure-report-badge{display:inline-flex;align-items:center;justify-content:center;min-width:108px;padding:6px 14px;border-radius:999px;font-size:.92rem;font-weight:700;margin-bottom:14px}.structure-report-badge.is-pending{background:#1a3b5d1a;color:var(--color-secondary)}.structure-report-badge.is-success{background:#228b2224;color:#1d6d1d}.structure-report-badge.is-error{background:#b222221f;color:var(--color-accent)}.structure-report-message{color:#374151;margin-bottom:12px;line-height:1.7}.structure-report-list{margin-top:14px;padding-left:18px;color:#4b5563}.structure-report-list li+li{margin-top:8px}.structure-report-preview{margin-top:18px;text-align:center}.structure-equation-preview{min-height:168px;display:flex;align-items:center;justify-content:center;padding:6px 0;overflow-x:auto;overflow-y:hidden;white-space:nowrap}.structure-equation-preview .mjx-container{margin:0!important;min-width:-moz-max-content;min-width:max-content}@media (max-width: 1200px){.structure-lab-layout{flex-direction:column}.structure-lab-right{min-width:0}.structure-editor-grid{grid-template-columns:repeat(4,minmax(54px,1fr));gap:8px}.structure-editor-cell{min-height:50px;padding:10px 8px}}.sync-page{min-height:100vh;background:var(--bg-page)}.sync-header{text-align:center;padding:32px 20px 24px;background:linear-gradient(180deg,#fff 0%,var(--bg-page) 100%)}.sync-header h1{font-family:var(--font-serif);font-size:2rem;font-weight:700;color:#333;letter-spacing:3px;margin-bottom:6px}.sync-header p{font-size:.95rem;color:#888;letter-spacing:1px}.narrator-bar{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 20px;background:linear-gradient(135deg,var(--color-secondary) 0%,#2a4f7a 100%);color:#fff;font-size:1.05rem;animation:fadeSlideIn .3s ease}.narrator-bar .narrator-icon{font-size:1.2rem}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.trinity-container{display:flex;justify-content:center;align-items:stretch;max-width:1200px;margin:28px auto 0;padding:0 16px;gap:16px}.trinity-card{background:#fff;border-radius:12px;box-shadow:0 4px 12px #0000000d;padding:24px 20px;display:flex;flex-direction:column}.left-card,.right-card{flex:4;min-width:0}.central-panel{flex:2.6;min-width:260px;max-width:340px;min-height:100%}.card-title{text-align:center;padding-bottom:12px;margin-bottom:16px;border-bottom:2px solid #D1C7B7;font-size:1.1rem;color:#333}.eq-system-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:12px 0}.equation-system{display:flex;align-items:center;gap:10px;width:100%;justify-content:center}.equation-brace{font-family:var(--font-serif);font-size:7rem;line-height:.9;color:#333;transform:translateY(-4px)}.equation-lines{display:flex;flex-direction:column;gap:10px}.equation-line{border-radius:10px;padding:6px 12px;transition:background-color .25s ease,box-shadow .25s ease,opacity .5s ease,transform 1s ease}.equation-line.is-active{background:#b222221f;box-shadow:inset 0 0 0 1px #b222222e}.equation-line.is-executing{opacity:.45;transform:translate(14px)}.eq-display{font-size:1.15rem}.mat-display-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:12px 0}.matrix-visual{display:flex;align-items:stretch;justify-content:center;gap:10px}.matrix-bracket{width:14px;border-top:3px solid #222;border-bottom:3px solid #222}.matrix-bracket.left{border-left:3px solid #222}.matrix-bracket.right{border-right:3px solid #222}.matrix-grid{display:flex;flex-direction:column;gap:8px}.matrix-row-display{display:grid;grid-template-columns:repeat(4,minmax(56px,auto));align-items:center;border-radius:10px;transition:background-color .25s ease,box-shadow .25s ease,transform 1s ease,opacity .4s ease}.matrix-row-display.is-active{background:#b222221a;box-shadow:inset 0 0 0 1px #b222222e}.matrix-row-display.is-executing{transform:translate(18px)}.matrix-cell-display{min-width:56px;padding:8px 12px;text-align:center;font-family:var(--font-serif);font-size:2rem;line-height:1.2;color:#111}.matrix-cell-display.is-augmented{border-left:2px solid #222}.matrix-cell-display.is-zero{color:#b22222;font-weight:700;animation:zeroPulse .8s ease-in-out 2}@keyframes zeroPulse{0%,to{background:#b222221f;box-shadow:inset 0 0 0 1px #b2222229}50%{background:#b2222238;box-shadow:inset 0 0 0 1px #b222224d}}.control-stack{display:flex;flex-direction:column;gap:8px;flex:1}.symbolic-control{padding:14px 12px;margin:6px 0;border:1.5px solid #D1C7B7;border-radius:10px;background:#fafaf6;display:flex;flex-direction:column;align-items:center;gap:10px;transition:border-color .25s,box-shadow .25s}.symbolic-control:hover{border-color:var(--color-secondary);box-shadow:0 2px 8px #1a3b5d1a}.ctrl-label{font-size:.95rem;color:#555;min-height:28px;display:flex;align-items:center;justify-content:center}.ctrl-row{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:nowrap;font-family:var(--font-serif);font-size:1rem;color:var(--color-secondary);width:100%;white-space:nowrap}.ctrl-step-box{width:100%;min-height:42px;padding:8px 10px;border-radius:8px;background:#f2f3f5;color:#5b6470;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;text-align:center;font-size:.8rem;line-height:1.45}.ctrl-step-box .mjx-container{font-size:.88rem!important}.step-box-prefix,.step-box-status{color:#5b6470}.r-prefix{font-style:italic;font-size:1.1rem;color:var(--color-secondary)}.r-result{font-style:italic;font-size:1rem;color:#999;flex-shrink:0}.r-result sub{font-size:.8em}.math-input{width:36px;height:30px;border:2px solid var(--color-secondary);border-radius:4px;text-align:center;font-family:var(--font-mono);font-size:.95rem;color:var(--color-secondary);background:#f9f9f9;outline:none;transition:border-color .2s,box-shadow .2s;-moz-appearance:textfield}.math-input::-webkit-inner-spin-button,.math-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.math-input:focus{border-color:var(--color-accent);box-shadow:0 0 0 2px #b2222226}.math-input:disabled{background:#eef1f4;color:#8a94a1;border-color:#b9c2cc;cursor:not-allowed}.arrow-input{width:30px;height:24px;font-size:.85rem;border-width:1.5px;margin:0 2px}.math-arrow{font-size:1.6rem;cursor:pointer;color:var(--color-secondary);padding:2px 6px;border-radius:6px;transition:color .2s,background .2s,transform .15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;line-height:1}.math-arrow:hover{color:var(--color-accent);background:#b2222214;transform:scale(1.15)}.math-arrow.is-disabled,.math-arrow-long.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}.math-arrow-long{display:flex;flex-direction:column;align-items:center;flex-shrink:0;cursor:pointer;padding:4px 6px;border-radius:6px;transition:background .2s,transform .15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative}.math-arrow-long:hover{background:#b2222214;transform:scale(1.05)}.arrow-label{font-size:.8rem;color:var(--color-secondary);display:flex;align-items:center;gap:2px;margin-bottom:-2px}.arrow-shaft{font-size:1.5rem;color:var(--color-secondary);line-height:1}.math-arrow-long:hover .arrow-shaft{color:var(--color-accent)}.ctrl-buttons{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:12px}.btn-next-step{width:100%;padding:11px 0;border:none;border-radius:10px;font-family:var(--font-sans);font-size:.95rem;font-weight:700;letter-spacing:.3px;transition:background .2s,opacity .2s,transform .15s}.btn-next-step.is-ready{background:#1a3b5d;color:#fff;cursor:pointer}.btn-next-step.is-ready:hover{background:#14324f;transform:translateY(-1px)}.btn-next-step.is-disabled{background:#d7dde5;color:#fff;cursor:not-allowed;opacity:.7}.btn-reset{width:100%;padding:10px 0;background:var(--color-accent);color:#fff;border:none;border-radius:8px;font-family:var(--font-serif);font-size:.95rem;font-weight:600;cursor:pointer;transition:background .2s,transform .15s}.btn-reset:hover:not(:disabled){background:#8b1a1a;transform:translateY(-1px)}.btn-reset:disabled{background:#ccc;cursor:not-allowed}@keyframes shakeAnim{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}.shake{animation:shakeAnim .4s ease;border-color:var(--color-accent)!important}@media (max-width: 900px){.trinity-container{flex-direction:column;align-items:center}.left-card,.right-card,.central-panel{max-width:100%;width:100%}.central-panel{max-width:100%;flex-direction:row;flex-wrap:wrap;justify-content:center}.symbolic-control{padding:12px 16px}}.contrast-controls{margin-bottom:24px}.contrast-controls label{display:flex;align-items:center;gap:12px;font-size:1rem}.contrast-controls input[type=range]{width:200px;height:6px;-webkit-appearance:none;background:#ddd;border-radius:3px;outline:none}.contrast-controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;background:var(--color-secondary);border-radius:50%;cursor:pointer}.slider-value{font-family:var(--font-mono);font-weight:600;color:var(--color-secondary);min-width:24px}.contrast-view{display:grid;grid-template-columns:1fr 1fr;gap:30px}.contrast-card{background:#f8f8f8;border-radius:12px;padding:24px}.elementary-module-shell{min-width:-moz-fit-content;min-width:fit-content}.elementary-layout{display:flex;justify-content:center;align-items:stretch;gap:20px;flex-wrap:wrap;min-width:-moz-fit-content;min-width:fit-content}.elementary-card-shell{width:auto;min-width:-moz-min-content;min-width:min-content;flex:0 1 auto}.matrix-latex-panel{min-width:-moz-fit-content;min-width:fit-content}.matrix-latex-panel .mjx-container{margin:0!important}.matrix-latex-panel .matrix-highlight-note{margin-top:12px;color:var(--color-secondary);font-size:.92rem}.matrix-latex-panel mjx-mtd.matrix-highlight{background-color:#b222221a;border-radius:4px;transition:all .5s ease-in-out}.matrix-latex-panel mjx-mtd.matrix-highlight-pulse{animation:matrixHighlightPulse .7s ease-in-out 1}.matrix-latex-panel.is-compact{padding:14px 16px}.matrix-latex-panel.is-compact .mjx-container{font-size:.9rem!important}.matrix-latex-panel.is-compact .mjx-mtable{letter-spacing:-.01em}.elementary-card-shell.is-compact{padding:20px}.elementary-card-shell.is-compact .elementary-operator-toolbar{gap:10px}.elementary-card-shell.is-compact .elementary-operator-button{min-height:62px;padding:8px 10px}.elementary-card-shell.is-compact .elementary-operator-button .mjx-container,.elementary-card-shell.is-compact .elementary-parameter-panel .mjx-container{font-size:.92rem!important}.compact-secondary-note{margin-top:14px}@keyframes matrixHighlightPulse{0%{background-color:#b222220a;box-shadow:inset 0 0 #b2222214}45%{background-color:#b2222238;box-shadow:inset 0 0 0 1px #b2222238}to{background-color:#b222221a;box-shadow:inset 0 0 0 1px #b222221f}}.elementary-operator-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.elementary-operator-button{min-height:70px;border-radius:14px;border-width:1px;padding:10px 12px;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease}.elementary-operator-button:hover{box-shadow:0 6px 16px #1a3b5d14}.elementary-parameter-panel{overflow:hidden;border:1px solid rgba(209,199,183,.75);border-radius:16px;background:#fff;padding:16px;margin-bottom:20px;box-shadow:0 10px 24px #1a3b5d14}.elementary-parameter-title{text-align:center;color:var(--color-secondary);margin-bottom:14px;font-weight:600}.elementary-parameter-grid{display:grid;gap:12px}.elementary-parameter-grid.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}.elementary-parameter-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}.elementary-param-field{display:flex;flex-direction:column;gap:8px;align-items:center;color:#5b6470;font-size:.9rem}.elementary-param-field input{width:100%;padding:10px 12px;border:2px solid rgba(26,59,93,.18);border-radius:10px;text-align:center;font-family:var(--font-mono);background:#fafafa}.elementary-parameter-error{margin-top:12px;text-align:center;color:var(--color-accent)}.elementary-parameter-actions{display:flex;justify-content:center;gap:12px;margin-top:16px}.elementary-cancel-button,.elementary-confirm-button{min-width:112px;padding:10px 16px;border-radius:10px;font-weight:700;transition:transform .2s ease,background-color .2s ease,color .2s ease}.elementary-cancel-button{background:#fff;border:1px solid rgba(26,59,93,.2);color:var(--color-secondary)}.elementary-confirm-button{background:var(--color-secondary);border:1px solid var(--color-secondary);color:#fff}.elementary-cancel-button:hover,.elementary-confirm-button:hover{transform:translateY(-1px)}@media (max-width: 1024px){.elementary-layout,.elementary-card-shell{width:100%;min-width:0}.matrix-latex-panel{min-width:0}}.scalar-card-attention{animation:scalarCardFlash .7s ease-in-out 3}@keyframes scalarCardFlash{0%,to{box-shadow:0 1px 3px #0000000d;border-color:#d1c7b799}50%{box-shadow:0 0 0 3px #b2222224;border-color:#b2222273}}.elementary-demo-stage{display:flex;justify-content:center;align-items:center;min-height:170px;padding:18px 10px;background:#fff;border:1px solid rgba(209,199,183,.6);border-radius:16px;overflow:hidden}.scalar-converge-scene{display:flex;align-items:center;justify-content:center;gap:14px;min-height:210px;width:100%}.scalar-converge-factor{min-width:36px;text-align:center;font-family:var(--font-serif);font-size:2rem;font-style:italic;color:var(--color-accent);opacity:0;transform:translate(18px) scale(.92);transition:opacity .75s ease,transform .75s ease}.scalar-converge-scene.is-active .scalar-converge-factor{opacity:1;transform:translate(0) scale(1)}.scalar-converge-grid{display:flex;flex-direction:column;gap:12px}.scalar-converge-row{display:flex;justify-content:center;gap:10px}.scalar-converge-cell{min-width:86px;min-height:42px;display:flex;align-items:center;justify-content:center;gap:4px}.scalar-converge-local-factor,.scalar-converge-dot{font-family:var(--font-serif);font-size:1.2rem;color:var(--color-secondary);opacity:1;transform:translate(0);transition:opacity .75s ease,transform .75s ease}.scalar-converge-scene.is-active .scalar-converge-local-factor,.scalar-converge-scene.is-active .scalar-converge-dot{opacity:0;transform:translate(-34px)}.scalar-converge-symbol{min-width:38px;display:flex;align-items:center;justify-content:center}.scalar-compare-box{transition:background-color .3s ease,box-shadow .3s ease,border-color .3s ease}.scalar-compare-box.is-active{background:#b2222214;border-color:#b2222247;box-shadow:0 0 0 1px #b2222224 inset}.elementary-demo-grid{display:flex;flex-direction:column;gap:10px}.elementary-demo-row{display:flex;justify-content:center;gap:10px;border-radius:12px;transition:transform .8s ease,background-color .3s ease,box-shadow .3s ease}.elementary-demo-cell{min-width:64px;min-height:54px;padding:10px 8px;display:flex;align-items:center;justify-content:center;border-radius:12px;transition:transform .8s ease,background-color .3s ease,box-shadow .3s ease}.elementary-demo-row.is-emphasized,.elementary-demo-cell.is-emphasized{background:#b222221f;box-shadow:inset 0 0 0 1px #b2222238}.elementary-demo-row.is-flashing,.elementary-demo-cell.is-flashing{animation:elementaryFlash .24s ease-in-out 3}@keyframes elementaryFlash{0%,to{background:#b2222214;box-shadow:inset 0 0 0 1px #b2222224}50%{background:#b2222238;box-shadow:inset 0 0 0 1px #b222224d}}.contrast-card h3{font-family:var(--font-serif);font-size:1.2rem;color:var(--color-secondary);margin-bottom:16px;text-align:center}.matrix-type-select{text-align:center;margin-bottom:16px}.matrix-type-select select{padding:8px 16px;font-size:1rem;border:2px solid var(--color-secondary);border-radius:8px;background:#fff;cursor:pointer}.elementary-inputs{display:flex;justify-content:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.elementary-inputs label{display:flex;align-items:center;gap:6px}.elementary-inputs input{width:60px;padding:6px 10px;border:2px solid #ddd;border-radius:6px;font-family:var(--font-mono)}.elementary-matrix-display{display:flex;align-items:center;justify-content:center;padding:16px 0}.elementary-matrix-display .matrix-cell{width:50px;height:45px;font-size:1rem}.elementary-matrix-display .matrix-cell.highlight{background:#b2222240}.multiply-demo{display:flex;justify-content:center;gap:12px;margin-top:16px}.multiply-demo button{padding:10px 18px;background:var(--color-secondary);color:#fff;border:none;border-radius:8px;font-size:.95rem;cursor:pointer;transition:all .3s ease}.multiply-demo button:hover:not(:disabled){background:#2a4f7a}.multiply-demo button:disabled{background:#ccc;cursor:not-allowed}.demo-result{margin-top:20px;padding:16px;background:#fff;border-radius:8px;text-align:center;font-family:var(--font-serif)}.scalar-inputs{text-align:center;margin-bottom:20px}.scalar-inputs label{font-size:1rem}.scalar-inputs input{width:80px;padding:8px 12px;border:2px solid var(--color-secondary);border-radius:8px;font-family:var(--font-mono);font-size:1rem}.scalar-stage{min-height:200px}.stage-1,.stage-2{text-align:center}.stage-1 h4,.stage-2 h4{font-family:var(--font-serif);color:var(--color-secondary);margin-bottom:16px}.stage-1 .matrix-content,.stage-2 .matrix-content{display:flex;justify-content:center;margin:16px 0}.stage-1 .matrix-cell,.stage-2 .matrix-cell{width:70px;height:45px;font-size:.9rem}.scalar-extract{display:flex;align-items:center;justify-content:center;gap:4px;margin:16px 0}.scalar-extract .factor{font-size:1.8rem;font-weight:700;color:var(--color-accent)}.next-stage-btn,.prev-stage-btn{padding:10px 20px;background:var(--color-secondary);color:#fff;border:none;border-radius:8px;cursor:pointer;margin-top:12px;transition:all .3s ease}.next-stage-btn:hover,.prev-stage-btn:hover{background:#2a4f7a}.scalar-placeholder{text-align:center;padding:40px;color:#888}.contrast-text{margin-top:20px}.highlight-box{background:#fff;padding:16px;border-radius:8px;border-left:4px solid var(--color-accent)}.highlight-box ul{margin-top:10px;padding-left:20px}.highlight-box li{margin:8px 0}.footer{text-align:center;padding:30px 0;color:#666;font-size:.9rem}@media (max-width: 768px){.sync-view{flex-direction:column;gap:24px}.contrast-view{grid-template-columns:1fr}.header h1{font-size:1.6rem}.module{padding:20px}.matrix-cell{width:50px;height:42px;font-size:.95rem}.equation-row{font-size:.95rem;padding:10px 12px}.op-row{flex-direction:column;align-items:flex-start}.op-row input[type=number],.op-row button{width:100%}}@media (max-width: 480px){.matrix-cell{width:40px;height:36px;font-size:.85rem}.stage-1 .matrix-cell,.stage-2 .matrix-cell{width:50px;height:36px;font-size:.75rem}}
