.legacy-content * { box-sizing: border-box; margin: 0; padding: 0; }.legacy-content .slide-container {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-color);
  display: flex; flex-direction: column;
  min-height: 100vh; position: relative;
}.legacy-content .header {
  padding: 48px 40px 24px;
  max-width: 960px; margin: 0 auto 0; width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0; z-index: 10;
  margin-bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
}.legacy-content .header .lesson-header { flex: 1; min-width: 0; }.legacy-content .controls { flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }.legacy-content .stage-hint {
  font-size: 11.5px; font-weight: 700; color: var(--sub);
  letter-spacing: 0.3px; text-align: center;
}.legacy-content .controls button {
  background-color: var(--accent); color: white;
  border: none; padding: 15px 34px; border-radius: 34px;
  font-size: 16.5px; font-weight: 700; letter-spacing: 0.2px;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,102,255,0.3);
  transition: all 0.2s ease;
}.legacy-content .controls button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,102,255,0.4); }.legacy-content .controls button:active { transform: translateY(0); }.legacy-content .controls button:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }.legacy-content .main-content {
  flex: 1; display: flex; flex-wrap: wrap; position: relative;
}.legacy-content .left-panel {
  width: 100%;
  padding: 40px;
  max-width: 960px; margin: 0 auto;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1), padding 0.8s cubic-bezier(0.25, 1, 0.5, 1), max-width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column; align-items: center;
}.legacy-content .corpus-wrapper {
  width: 100%; max-width: 900px;
  font-size: 26px; line-height: 1.8; color: var(--text-main);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}.legacy-content .sentence { margin-bottom: 1.2em; transition: opacity 0.3s; }.legacy-content .tk {
  display: inline-block;
  background: var(--tk-bg);
  border: 1px solid var(--tk-border);
  padding: var(--tk-pad);
  margin: var(--tk-mar);
  border-radius: var(--tk-radius);
  transition: all 0.4s ease;
  cursor: default;
}.legacy-content .stage-tokenized .left-panel { padding: 40px; max-width: 960px; }.legacy-content .stage-tokenized .corpus-wrapper { max-width: 100%; font-size: 24px; }.legacy-content .stage-tokenized {
  --tk-bg: #EBE8E0;
  --tk-border: #DCD8CE;
  --tk-pad: 4px 8px;
  --tk-mar: 4px 4px;
  --tk-radius: 6px;
}.legacy-content .stage-scanning {
  --tk-bg: #EBE8E0;
  --tk-border: #DCD8CE;
  --tk-pad: 4px 8px;
  --tk-mar: 4px 4px;
  --tk-radius: 6px;
}.legacy-content .stage-scanning .main-content { flex-wrap: nowrap; }.legacy-content .stage-scanning .left-panel {
  width: 35%; max-width: none; margin: 0; padding: 30px;
  border-right: 1px solid rgba(0,0,0,0.06);
  align-items: flex-start;
  overflow-y: auto; max-height: 80vh;
}.legacy-content .stage-scanning .corpus-wrapper { font-size: 15px; line-height: 2.0; max-width: 100%; }.legacy-content .stage-scanning .right-panel { display: flex; opacity: 1; }.legacy-content .tk.scan-active {
  background-color: var(--accent); color: white; border-color: var(--accent);
  transform: scale(1.1); z-index: 10; position: relative;
  box-shadow: 0 4px 16px rgba(0,102,255,0.4);
}.legacy-content .tk.scan-ctx-strong { background-color: rgba(0,102,255,0.2); border-color: rgba(0,102,255,0.4); color: var(--accent); }.legacy-content .tk.scan-ctx-weak { background-color: rgba(0,102,255,0.08); border-color: rgba(0,102,255,0.15); color: #333; }.legacy-content .tk.scan-dim { opacity: 0.3; }.legacy-content .stage-matrix {
  --tk-bg: transparent;
  --tk-border: transparent;
  --tk-pad: 2px 4px;
  --tk-mar: 2px 2px;
  --tk-radius: 4px;
}.legacy-content .stage-matrix .main-content { flex-wrap: nowrap; }.legacy-content .stage-matrix .left-panel {
  width: 35%; max-width: none; margin: 0; padding: 30px;
  border-right: 1px solid rgba(0,0,0,0.06);
  align-items: flex-start;
  overflow-y: auto; max-height: 80vh;
}.legacy-content .stage-matrix .corpus-wrapper {
  font-size: 15px; line-height: 2.0; max-width: 100%;
}.legacy-content .stage-matrix .tk { cursor: pointer; }.legacy-content .stage-matrix .tk:hover { background-color: rgba(0,0,0,0.05); }.legacy-content .tk.mat-active {
  background-color: var(--accent) !important; color: white !important;
  font-weight: 600; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,102,255,0.3);
}.legacy-content .tk.mat-rel-strong {
  background-color: rgba(0,102,255,0.15) !important; color: var(--accent) !important;
  font-weight: 600; border-radius: 6px;
}.legacy-content .tk.mat-rel-weak {
  background-color: rgba(0,102,255,0.05) !important; color: var(--text-main) !important;
  border-radius: 6px;
}.legacy-content .tk.mat-dim { opacity: 0.25; }.legacy-content .right-panel {
  width: 65%;
  background-color: #FFFFFF;
  opacity: 0; display: none;
  transition: opacity 0.8s ease;
  flex-direction: column;
  min-height: 500px;
}.legacy-content .stage-scanning .right-panel, .legacy-content .stage-matrix .right-panel { display: flex; opacity: 1; }.legacy-content .matrix-header {
  padding: 16px 30px; border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex; justify-content: space-between; align-items: center;
}.legacy-content .matrix-header h3 { font-size: 15px; font-weight: 600; color: var(--text-main); margin: 0; }.legacy-content .legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); }.legacy-content .legend-bar { width: 100px; height: 6px; border-radius: 3px; background: linear-gradient(to right, #F9FAFB, #BFDBFE, #3B82F6, #1E3A8A); }.legacy-content .matrix-container {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow: hidden; position: relative;
  transition: height 0.3s ease;
}.legacy-content canvas#heatmap {
  background: #FFF; cursor: crosshair;
}.legacy-content .sample-panel {
  padding: 12px 20px;
  display: none; flex-direction: column; 
  background: rgba(250,250,248,0.96);
  border-top: 1px solid rgba(0,0,0,0.07);
  min-height: 168px; box-sizing: border-box;
  z-index: 20; flex-shrink: 0;
}.legacy-content .sample-panel.show { display: flex; }.legacy-content .sample-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  flex-shrink: 0;
}.legacy-content .sample-word {
  font-size: 16px; font-weight: 700; color: var(--accent);
  background: rgba(0,102,255,0.06); padding: 4px 12px; border-radius: 8px;
  border: 1px solid rgba(0,102,255,0.12);
}.legacy-content .sample-arrow {
  color: var(--text-sub); font-size: 14px; opacity: 0.5;
  font-family: system-ui;
}.legacy-content .sample-result {
  font-size: 16px; font-weight: 700; color: #16a34a;
  background: rgba(22,163,74,0.06); padding: 4px 12px; border-radius: 8px;
  border: 1px solid rgba(22,163,74,0.12);
  min-width: 36px; text-align: center;
  transition: all 0.25s ease;
}.legacy-content .sample-btn {
  margin-left: auto; background: var(--text-main); color: #fff;
  border: none; padding: 6px 16px; border-radius: 7px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; letter-spacing: 0.3px;
}.legacy-content .sample-btn:hover { background: var(--surface-soft); transform: translateY(-1px); }.legacy-content .sample-btn:active { transform: translateY(0); }.legacy-content .sample-controls {
  display: flex; flex-direction: row; gap: 20px;
  flex: 1; min-height: 0; overflow: hidden;
}.legacy-content .sample-slider-group {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  flex-shrink: 0; width: 260px;
}.legacy-content .sample-slider-row {
  display: flex; align-items: center; gap: 8px;
}.legacy-content .sample-slider-row label {
  font-size: 11px; font-weight: 700; color: var(--text-sub);
  min-width: 72px; letter-spacing: 0.3px;
}.legacy-content .sample-slider-row input[type=range] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 5px; border-radius: 3px;
  background: rgba(0,0,0,0.08);
  outline: none; cursor: pointer;
}.legacy-content .sample-slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer; transition: all 0.15s;
}.legacy-content .sample-slider-row input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,102,255,0.3);
}.legacy-content .sample-slider-row input[type=range]::-webkit-slider-thumb:active {
  background: var(--accent);
  border-color: var(--accent);
}.legacy-content .sample-slider-row input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}.legacy-content .sample-slider-row .val {
  font-size: 12px; font-weight: 800; color: var(--accent);
  min-width: 32px; text-align: right;
  font-variant-numeric: tabular-nums;
}.legacy-content .sample-candidates {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto; min-height: 0;
}.legacy-content .sample-candidates-title {
  font-size: 10px; font-weight: 700; color: var(--text-sub);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px;
  position: sticky; top: 0; background: rgba(250,250,248,0.96);
  padding-bottom: 3px; z-index: 1;
}.legacy-content .sample-candidates::-webkit-scrollbar { width: 4px; }.legacy-content .sample-candidates::-webkit-scrollbar-track { background: transparent; }.legacy-content .sample-candidates::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }.legacy-content .sample-candidates::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }.legacy-content .cand-row {
  display: flex; align-items: center; gap: 6px; height: 20px;
  transition: opacity 0.3s;
}.legacy-content .cand-word {
  font-size: 13px; font-weight: 600; color: var(--text-main);
  min-width: 48px; text-align: right;
}.legacy-content .cand-bar-bg {
  flex: 1; height: 6px; background: rgba(0,0,0,0.04); border-radius: 3px; overflow: hidden;
}.legacy-content .cand-bar {
  height: 100%; border-radius: 3px;
  transition: width 0.4s cubic-bezier(.25,1,.5,1), background 0.3s;
}.legacy-content .cand-pct {
  font-size: 11px; font-weight: 600; color: var(--text-sub);
  min-width: 38px; text-align: right;
  font-variant-numeric: tabular-nums;
}.legacy-content .cand-row.picked .cand-word { color: #2563eb; font-weight: 700; }.legacy-content .cand-row.picked .cand-bar { background: #2563eb !important; }.legacy-content .cand-row.cutoff { opacity: 0.15; }.legacy-content .cand-row.cutoff .cand-bar { background: #e5e7eb !important; }.legacy-content .tooltip {
  position: fixed; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: white;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
  z-index: 1000; opacity: 0; transform: translate(-50%, -100%); margin-top: -12px;
  transition: opacity 0.2s; white-space: nowrap;
}.legacy-content .tt-word { color: #60A5FA; font-weight: 600; }.legacy-content ::-webkit-scrollbar { width: 6px; height: 6px; }.legacy-content ::-webkit-scrollbar-track { background: transparent; }.legacy-content ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }.legacy-content ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }@media (max-width: 768px){.legacy-content .header { padding: 32px 20px 20px; flex-direction: column; align-items: stretch; gap: 18px; }.legacy-content .controls button { width: 100%; padding: 14px 20px; font-size: 15.5px; }.legacy-content .left-panel { padding: 24px 20px; }.legacy-content .corpus-wrapper { font-size: 20px !important; line-height: 1.7; }.legacy-content .stage-scanning .main-content, .legacy-content .stage-matrix .main-content { flex-wrap: wrap; }.legacy-content .stage-scanning .left-panel, .legacy-content .stage-matrix .left-panel {
    width: 100%; max-height: none; border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px;
  }.legacy-content .stage-scanning .right-panel, .legacy-content .stage-matrix .right-panel {
    width: 100%; min-height: 400px;
  }.legacy-content .matrix-container { overflow: auto; -webkit-overflow-scrolling: touch; }.legacy-content canvas#heatmap { min-width: 360px; }.legacy-content .sample-panel { min-height: auto; }.legacy-content .sample-controls { flex-direction: column; gap: 12px; }.legacy-content .sample-slider-group { width: 100%; }.legacy-content .sample-top { flex-wrap: wrap; gap: 8px; }.legacy-content .tk { font-size: 13px; }.legacy-content .stage-tokenized .corpus-wrapper { font-size: 18px !important; }.legacy-content .stage-scanning .corpus-wrapper, .legacy-content .stage-matrix .corpus-wrapper { font-size: 14px !important; }}

@keyframes _si{from{opacity:0}to{opacity:1}}
