.wave-transition{height:clamp(78px,10vw,124px);overflow:hidden;background:#fff;}
.wave-transition svg{display:block;width:100%;height:100%;}
.wave-transition path{fill:#f5f8fb;}
.wave-transition .crest{fill:none;stroke:rgba(37,99,235,0.16);stroke-width:1.5;}
.wave-transition + .footer{max-width:100%;background:#f5f8fb;border-top-color:transparent;padding-left:max(calc((100% - 1080px) / 2 + 32px),32px);padding-right:max(calc((100% - 1080px) / 2 + 32px),32px);}

#algorithm-gates{display:block;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
.gate-transition-copy{display:block;width:100%;max-width:none;margin:clamp(-49px, calc(-4vw + 15px), -9px) 0 0;padding:0 16px;background:#f5f8fb;color:#5d6b7e;text-align:center}
.gate-transition-copy .copy-primary{margin:0;font-size:12px;font-weight:400;line-height:1.55;letter-spacing:0;color:#5d6b7e}
.gate-transition-copy .copy-secondary{margin:2px 0 0;font-size:12px;font-weight:400;line-height:1.55;letter-spacing:0;color:#5d6b7e}
#algorithm-gates .shell:last-child{padding-bottom:50px}
#algorithm-gates ~ .footer{max-width:100%;background:#fff;border-top-color:var(--line);margin-top:-10px;padding-top:22px;padding-bottom:36px;padding-left:max(calc((100% - 1400px) / 2),20px);padding-right:max(calc((100% - 1400px) / 2),20px);margin-bottom:0}
#algorithm-gates .section{max-width:none;margin-left:0;margin-right:0}
#algorithm-gates .seal-rule{max-width:100%}

#algorithm-gates {--ink:#17233b;--ink2:#5d6b7e;--line:#dbe4ee;--bg:#f5f8fb;--blue:#2563eb;--amber:#d97706;--teal:#0d9488;--violet:#7c3aed;--gold:#c9a44a}


#algorithm-gates .shell {width:min(1440px,calc(100% - 40px));margin:0 auto;padding:28px 0 56px}
#algorithm-gates header {padding:28px 0 24px}
#algorithm-gates .site-hero {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:32px;align-items:end;padding:20px 0 8px}
#algorithm-gates .site-eyebrow {display:flex;align-items:center;gap:10px;color:var(--ink2);font-size:12px;letter-spacing:0}
#algorithm-gates .site-eyebrow:before {content:"";width:36px;height:1px;background:var(--ink2)}
#algorithm-gates .site-title {margin:16px 0 0;font-size:60px;line-height:1.08;font-weight:800}
#algorithm-gates .site-title em {font-style:normal;color:#1d4ed8}
#algorithm-gates .site-sub {margin:18px 0 0;color:var(--ink2);font-size:15px;line-height:1.9}
#algorithm-gates .site-side {padding-top:54px;color:var(--ink2);font-size:13px;line-height:1.9}
#algorithm-gates .stance {margin:24px 0 0;padding:16px 18px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e3a8a;font-size:13px;line-height:1.9}
#algorithm-gates .section {min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;margin-top:18px}
#algorithm-gates .section-head {display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap}
#algorithm-gates .section-head>div {min-width:0}
#algorithm-gates .section h2 {margin:0;font-size:18px}
#algorithm-gates .section p {margin:6px 0 0;color:var(--ink2);font-size:12.5px;line-height:1.7}
#algorithm-gates .chapter-hero {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:36px;align-items:start;margin:8px 0 24px}
#algorithm-gates .chapter-eyebrow {display:inline-flex;align-items:center;gap:10px;padding:7px 12px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:14px;font-weight:750}
#algorithm-gates .section h2.chapter-title {margin:18px 0 0;font-size:48px;line-height:1.12;font-weight:800}
#algorithm-gates .chapter-note {padding-top:58px;color:var(--ink2);font-size:14px;line-height:2}
#algorithm-gates .principle {display:flex;gap:14px;align-items:flex-start;margin:24px 0 0;padding:16px 18px;background:#f8fafc;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px}
#algorithm-gates .principle-tag {flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:800}
#algorithm-gates .principle p {margin:0;color:var(--ink);font-size:13px;line-height:1.9}
#algorithm-gates .finding {margin-top:28px;padding:20px 22px;background:#f8fafc;border:1px solid var(--line);border-radius:8px}
#algorithm-gates .finding-head {display:flex;align-items:start;gap:12px;margin-bottom:8px}
#algorithm-gates .finding-tag {flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#ffedd5;color:#9a3412;font-size:11px;font-weight:800}
#algorithm-gates .finding p {margin:0;color:var(--ink);font-size:13px;line-height:2}
#algorithm-gates .count-grid {display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:8px;margin:16px 0}
#algorithm-gates .count-card {padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px}
#algorithm-gates .count-card b {display:block;font-size:15px}
#algorithm-gates .count-card span {display:block;margin-top:4px;color:var(--ink2);font-size:11px}
#algorithm-gates .count-card .zigzag {color:#9a3412}
#algorithm-gates .count-card .guanchao {color:#1d4ed8}
#algorithm-gates .finding-stat {padding-top:12px;border-top:1px solid var(--line);color:var(--ink2);font-size:12px;line-height:1.9}
#algorithm-gates .conclusion {margin:30px 0 30px;padding:22px 24px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e3a8a}
#algorithm-gates .conclusion-label {display:inline-block;padding:4px 10px;margin-bottom:14px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:11px;font-weight:800}
#algorithm-gates .versus-line {display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;align-items:start;padding:14px 0;border-top:1px solid rgba(191,219,254,.9)}
#algorithm-gates .versus-line:first-of-type {border-top:0}
#algorithm-gates .versus-line b {font-size:15px}
#algorithm-gates .versus-line p {margin:0;font-size:12.5px;line-height:1.9;color:#1e3a8a}
#algorithm-gates .verdict {margin-top:16px;padding-top:14px;border-top:1px dashed #93c5fd;font-size:14px;font-weight:750;line-height:1.8}
#algorithm-gates .compare-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px;position:relative}
#algorithm-gates .compare-card {min-width:0;padding:18px;border:1px solid var(--line);border-radius:8px}
#algorithm-gates .compare-card.zig {background:#fff7ed;border-color:#fed7aa}
#algorithm-gates .compare-card.guanchao {background:#eff6ff;border-color:#bfdbfe}
#algorithm-gates .compare-tag {display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700}
#algorithm-gates .compare-card.zig .compare-tag {color:#9a3412;background:#ffedd5}
#algorithm-gates .compare-card.guanchao .compare-tag {color:#1d4ed8;background:#dbeafe}
#algorithm-gates .section p.compare-title {margin:12px 0 0;font-size:20px;font-weight:800;color:var(--ink)}
#algorithm-gates .compare-list {margin:14px 0 0;padding:0;list-style:none}
#algorithm-gates .compare-list li {display:flex;gap:8px;padding:8px 0;border-top:1px solid rgba(219,228,238,.8);font-size:12.5px;line-height:1.7}
#algorithm-gates .compare-list li:before {content:"—";color:var(--ink2)}
#algorithm-gates .compare-vs {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ink);color:#fff;font-size:13px;font-weight:800}
#algorithm-gates .tabs {display:flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
#algorithm-gates .tabs button {border:0;background:#fff;color:var(--ink2);padding:8px 11px;font:inherit;font-size:12px;cursor:pointer}
#algorithm-gates .tabs button.active {background:var(--ink);color:#fff}
#algorithm-gates .controls {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px}
#algorithm-gates .slider {flex:1;min-width:220px}
#algorithm-gates input[type=range] {width:100%;accent-color:#2563eb}
#algorithm-gates .value {min-width:74px;font-size:12px;color:var(--ink2)}
#algorithm-gates .metric-grid {display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px;margin-top:6px}
#algorithm-gates .metric {background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:10px}
#algorithm-gates .metric.primary {background:#eff6ff;border-color:#93c5fd}
#algorithm-gates .metric.primary b {color:#1d4ed8}
#algorithm-gates .metric.primary span {color:#1e40af}
#algorithm-gates .metric b {display:block;font-size:18px}
#algorithm-gates .metric span {display:block;color:var(--ink2);font-size:11px;margin-top:3px}
#algorithm-gates .chart {width:100%;height:480px;margin-top:6px}
#algorithm-gates .table-wrap {overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:6px}
#algorithm-gates table {width:100%;border-collapse:collapse;font-size:12px}
#algorithm-gates th {position:sticky;top:0;background:#f8fafc;color:var(--ink2);text-align:left;font-weight:650}
#algorithm-gates th, #algorithm-gates td {padding:9px 10px;border-bottom:1px solid #edf2f7;white-space:nowrap}
#algorithm-gates tr:last-child td {border-bottom:0}
#algorithm-gates details.evidence {margin-top:12px}
#algorithm-gates details.evidence summary {cursor:pointer;color:#475569;font-size:12px;padding:9px 0}
#algorithm-gates details.evidence[open] summary {padding-bottom:8px}
#algorithm-gates .chart-caption {margin-top:10px;color:var(--ink2);font-size:11.5px;line-height:1.7}
#algorithm-gates td.guanchao {color:#1d4ed8;font-weight:700;background:#eff6ff}
#algorithm-gates .online-controls {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#algorithm-gates .btn {border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}
#algorithm-gates .btn.active {background:var(--ink);color:#fff;border-color:var(--ink)}
#algorithm-gates .toggle {display:flex;align-items:center;gap:5px;color:var(--ink2);font-size:12px}
#algorithm-gates .legend {display:flex;gap:14px;flex-wrap:wrap;color:var(--ink2);font-size:12.5px}
#algorithm-gates .dot {display:inline-block;width:10px;height:10px;border-radius:50%}
#algorithm-gates .tri {display:inline-block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:15px solid #0d9488}
#algorithm-gates .tri.pending {border-bottom-color:#d97706}
#algorithm-gates .pair-summary {margin-top:14px;padding:12px 14px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;color:var(--ink2);font-size:13px;line-height:1.9}
#algorithm-gates .pair-summary b {color:var(--ink)}
#algorithm-gates .pair-table {height:320px}
#algorithm-gates .pair-state {display:inline-block;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:750}
#algorithm-gates .pair-state.matched {background:#dbeafe;color:#1d4ed8}
#algorithm-gates .pair-state.pending {background:#fef3c7;color:#92400e}
#algorithm-gates .pair-state.unmatched {background:#f1f5f9;color:#475569}
#algorithm-gates .mini-btn {border:1px solid var(--line);background:#fff;border-radius:6px;padding:4px 7px;font:inherit;font-size:11px;cursor:pointer;color:#334155}
#algorithm-gates .risk-grid {display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:8px;margin-top:12px}
#algorithm-gates .risk {min-height:116px;border:1px solid var(--line);border-radius:8px;padding:12px;cursor:pointer;background:#fff;display:flex;flex-direction:column;justify-content:center}
#algorithm-gates .risk.active {border-color:#2563eb;background:#eff6ff}
#algorithm-gates .risk b {display:block;font-size:20px}
#algorithm-gates .risk span {display:block;color:var(--ink2);font-size:11px;margin-top:3px}
#algorithm-gates .risk .pred {margin-top:8px;color:#64748b}
#algorithm-gates .risk-table {height:320px}
#algorithm-gates .note {margin-top:12px;color:var(--ink2);font-size:12px;line-height:1.8}
@media(max-width:1100px){#algorithm-gates .site-hero, #algorithm-gates .chapter-hero {grid-template-columns:1fr;gap:18px}#algorithm-gates .site-side, #algorithm-gates .chapter-note {padding-top:0}#algorithm-gates .site-title {font-size:44px}#algorithm-gates .section h2.chapter-title {font-size:34px}#algorithm-gates .maxim-grid {grid-template-columns:repeat(2,1fr)}#algorithm-gates .compare-grid {grid-template-columns:1fr}#algorithm-gates .compare-vs {display:none}#algorithm-gates .count-grid {grid-template-columns:repeat(2,1fr)}#algorithm-gates .versus-line {grid-template-columns:1fr;gap:6px}}
@media(min-width:761px){#algorithm-gates .chapter-eyebrow.ink-seal {padding:0;border:0;background:transparent}#algorithm-gates .ink-seal .seal {width:56px;height:56px;display:flex;align-items:center;justify-content:center;background:#1d4ed8;color:#fff;border-radius:6px;box-shadow:4px 4px 0 rgba(29,78,216,.12)}#algorithm-gates .ink-seal .seal span {display:block;width:32px;font-size:16px;line-height:1.25;font-weight:800;text-align:center}#algorithm-gates .ink-seal .mono {color:var(--ink2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;font-weight:750;letter-spacing:1px}#algorithm-gates .seal-rule {margin-top:16px;height:1px;background:var(--ink)}}
@media(max-width:1000px){#algorithm-gates .metric-grid {grid-template-columns:repeat(2,1fr)}#algorithm-gates .risk-grid {grid-template-columns:repeat(2,1fr)}#algorithm-gates .chart {height:390px}}
@media(max-width:760px){#algorithm-gates .shell {width:calc(100% - 22px);padding-top:14px}#algorithm-gates .site-title {font-size:34px}#algorithm-gates .section h2.chapter-title {font-size:28px}#algorithm-gates .section {padding:18px}#algorithm-gates .chart {height:300px}#algorithm-gates .risk-grid {grid-template-columns:1fr}#algorithm-gates .metric-grid {grid-template-columns:1fr}#algorithm-gates .section-head {align-items:flex-start}#algorithm-gates .maxim-grid {grid-template-columns:1fr}#algorithm-gates .maxim {min-height:0}#algorithm-gates .maxim b {margin-top:12px}#algorithm-gates .count-grid {grid-template-columns:1fr}#algorithm-gates .principle {flex-direction:column;gap:10px}#algorithm-gates .conclusion {padding:18px}}
@media(max-width:760px){#algorithm-gates .chapter-eyebrow.ink-seal {padding:0;border:0;background:transparent}#algorithm-gates .ink-seal .seal {width:50px;height:50px}#algorithm-gates .ink-seal .seal span {width:28px;font-size:14px}#algorithm-gates .ink-seal .mono {font-size:12px}#algorithm-gates .seal-rule {margin-top:12px}}
@media(max-width:760px){#algorithm-gates .risk-table th, #algorithm-gates .risk-table td {white-space:normal}#algorithm-gates .risk-table th:nth-child(3), #algorithm-gates .risk-table td:nth-child(3), #algorithm-gates .risk-table th:nth-child(5), #algorithm-gates .risk-table td:nth-child(5), #algorithm-gates .risk-table th:nth-child(6), #algorithm-gates .risk-table td:nth-child(6) {display:none}}
@media(max-width:760px){#algorithm-gates .risk-table table {table-layout:fixed}#algorithm-gates .risk-table td {word-break:break-word;vertical-align:top}#algorithm-gates .risk-table th:nth-child(1), #algorithm-gates .risk-table td:nth-child(1) {width:72px}#algorithm-gates .risk-table th:nth-child(2), #algorithm-gates .risk-table td:nth-child(2) {width:84px}#algorithm-gates .risk-table th:nth-child(7), #algorithm-gates .risk-table td:nth-child(7) {width:62px}}
@media(max-width:760px){#algorithm-gates .pair-table th, #algorithm-gates .pair-table td {white-space:normal}#algorithm-gates .pair-table th:nth-child(2), #algorithm-gates .pair-table td:nth-child(2), #algorithm-gates .pair-table th:nth-child(3), #algorithm-gates .pair-table td:nth-child(3), #algorithm-gates .pair-table th:nth-child(5), #algorithm-gates .pair-table td:nth-child(5), #algorithm-gates .pair-table th:nth-child(6), #algorithm-gates .pair-table td:nth-child(6), #algorithm-gates .pair-table th:nth-child(8), #algorithm-gates .pair-table td:nth-child(8) {display:none}#algorithm-gates .pair-table table {table-layout:fixed}#algorithm-gates .pair-table td {word-break:break-word;vertical-align:top}#algorithm-gates .pair-table th:nth-child(1), #algorithm-gates .pair-table td:nth-child(1) {width:92px}#algorithm-gates .pair-table th:nth-child(4), #algorithm-gates .pair-table td:nth-child(4) {width:94px}#algorithm-gates .pair-table th:nth-child(7), #algorithm-gates .pair-table td:nth-child(7) {width:92px}}
@media(min-width:761px){#algorithm-gates .chapter-hero {grid-template-columns:minmax(0,300px) minmax(300px,1fr);gap:48px;align-items:start}#algorithm-gates .chapter-note {padding-top:0}#algorithm-gates .seal-rule {width:min(1888px,calc(100vw - 60px))}}
@media(min-width:761px){#algorithm-gates .chapter-note {max-width:620px;margin-left:auto;text-align:right}}
@media(min-width:761px){#algorithm-gates .tide-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}#algorithm-gates .tide-side-title {font-size:18px;font-weight:800;line-height:1.5}#algorithm-gates .tide-side-title small {display:block;margin-bottom:6px;color:var(--ink2);font-size:11.5px;font-weight:650}#algorithm-gates .tide-title-gc small {color:#1d4ed8}#algorithm-gates .tide-title-zig {color:#b45309;text-align:right}#algorithm-gates .tide-title-zig small {color:#b45309}#algorithm-gates .tide-title-gc {color:#1d4ed8}#algorithm-gates .tide-points {position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-top:52px}#algorithm-gates .tide-point {position:relative;padding:0 10px}#algorithm-gates .tide-top {min-height:140px}#algorithm-gates .tide-side-label {display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;margin-bottom:12px}#algorithm-gates .tide-side-label:before {content:"";width:16px;height:1px;background:currentColor}#algorithm-gates .tide-top .tide-side-label {color:#1d4ed8}#algorithm-gates .tide-bottom .tide-side-label {color:#b45309}#algorithm-gates .tide-top h2, #algorithm-gates .tide-bottom h3 {margin:0;font-size:19px;line-height:1.45}#algorithm-gates .tide-top p, #algorithm-gates .tide-bottom p {margin:8px 0 0;color:var(--ink2);font-size:12.5px;line-height:1.9}#algorithm-gates .tide-wave {position:absolute;left:0;right:0;top:158px;width:100%;height:220px;pointer-events:none;z-index:0}#algorithm-gates .tide-wave path {fill:none;stroke:#60a5fa;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:5 9}#algorithm-gates .tide-node-row {position:relative;z-index:1;height:0;display:flex;align-items:center;justify-content:center}#algorithm-gates .tide-node-note {position:relative;z-index:1;white-space:nowrap;padding:3px 12px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid #bfdbfe;color:#1d4ed8;font-size:13px;font-weight:800}}

#algorithm-gates .tide-points {grid-template-rows:auto 24px auto;row-gap:10px;padding:0;margin-top:45px}
#algorithm-gates .tide-point {display:contents}
#algorithm-gates .tide-top {grid-row:1;min-height:0}
#algorithm-gates .tide-bottom {grid-row:3;min-height:0}
#algorithm-gates .tide-wave {position:static;grid-column:1/-1;grid-row:2;width:100%;height:24px;transform:none;margin-top:0}
#algorithm-gates .tide-layout {display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:92px;align-items:start;margin:0 0 12px}
#algorithm-gates .tide-layout .tide-hero {grid-template-columns:1fr;gap:18px}
#algorithm-gates .tide-layout .tide-side {min-width:0}
#algorithm-gates .tide-layout .tide-title-zig {text-align:left}
#algorithm-gates .tide-layout .tide-side-title.title-gc small {color:#1d4ed8}
#algorithm-gates .tide-layout .tide-side-title.title-zig small {color:#b45309}
#algorithm-gates .tide-layout .tide-points {margin-top:30px;column-gap:58px}
#algorithm-gates .tide-duo {display:grid;grid-template-columns:minmax(320px,365px) minmax(0,1fr);gap:64px;align-items:start;margin:0 0 12px}
#algorithm-gates .tide-duo-rail {position:relative;min-width:0;padding-left:36px;border-left:0}
#algorithm-gates .tide-duo-rail:before {content:"";position:absolute;left:7px;top:8px;bottom:24px;width:1px;background:#dbe4ee}
#algorithm-gates .tide-duo-method {position:relative}
#algorithm-gates .tide-duo-method+.tide-duo-method {margin-top:44px;padding-top:0;border-top:0}
#algorithm-gates .tide-duo-method:before {content:"";position:absolute;left:-36px;top:4px;width:15px;height:15px;border:3px solid #fff;border-radius:50%;background:#1d4ed8;box-shadow:0 0 0 1px rgba(29,78,216,.24)}
#algorithm-gates .tide-duo-method:last-child:before {background:#b45309;box-shadow:0 0 0 1px rgba(180,83,9,.24)}
#algorithm-gates .tide-duo-method small {display:block;margin-bottom:6px;font-size:11.5px;font-weight:650}
#algorithm-gates .tide-duo-method:first-child small {color:#1d4ed8}
#algorithm-gates .tide-duo-method:last-child small {color:#b45309}
#algorithm-gates .tide-duo-method strong {display:block;margin:0;font-size:18px;font-weight:800;line-height:1.5;color:var(--ink)}
#algorithm-gates .tide-duo-method p {margin:7px 0 0;color:var(--ink2);font-size:12.5px;line-height:1.9}
#algorithm-gates .tide-duo-split {min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
#algorithm-gates .tide-duo-panel {min-width:0;padding:0 24px 24px;border:1px solid #dbe4ee;border-radius:8px;background:#fff}
#algorithm-gates .tide-duo-panel.blue {border-left:3px solid #1d4ed8;background:linear-gradient(180deg,#fff,#f7fbff)}
#algorithm-gates .tide-duo-panel.brown {border-left:3px solid #b45309;background:linear-gradient(180deg,#fff,#fffaf3)}
#algorithm-gates .tide-duo-panel header {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:-8px;padding-bottom:12px;border-bottom:1px solid #e5edf6}
#algorithm-gates .tide-duo-panel header h3 {margin:0;font-size:17px;font-weight:800;line-height:1.4}
#algorithm-gates .tide-duo-panel header span {color:var(--ink2);font-size:12px;font-weight:650;white-space:nowrap}
#algorithm-gates .tide-duo-panel.blue header h3 {color:#1d4ed8}
#algorithm-gates .tide-duo-panel.brown header h3 {color:#b45309}
#algorithm-gates .tide-duo-item+.tide-duo-item {margin-top:20px}
#algorithm-gates .tide-duo-item span {display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800}
#algorithm-gates .tide-duo-item span:before {content:"";width:17px;height:2px;background:currentColor}
#algorithm-gates .tide-duo-item h4 {margin:0;font-size:19px;font-weight:800;line-height:1.45;color:var(--ink)}
#algorithm-gates .tide-duo-item p {margin:8px 0 0;color:var(--ink2);font-size:12.5px;line-height:1.9}
#algorithm-gates .tabs {margin-top:52px}
@media(max-width:1100px){#algorithm-gates .tide-layout {grid-template-columns:1fr}}
#algorithm-gates .tide-duo-item.blue span,#algorithm-gates .tide-duo-panel.blue .tide-duo-item span {color:#1d4ed8}
#algorithm-gates .tide-duo-item.brown span,#algorithm-gates .tide-duo-panel.brown .tide-duo-item span {color:#b45309}
@media(max-width:760px){#algorithm-gates .tide-points {grid-template-columns:1fr;gap:18px}}
@media(max-width:1100px){#algorithm-gates .tide-duo {grid-template-columns:1fr;gap:28px}}
@media(max-width:760px){#algorithm-gates .tide-duo-split {grid-template-columns:1fr;gap:18px}#algorithm-gates .tide-duo-panel header span {white-space:normal}}
@media(max-width:680px){#algorithm-gates .chapter-palette {margin-top:42px}#algorithm-gates .thirteen {gap:4px;height:31px;margin-top:42px}}
@media(prefers-reduced-motion:reduce){#algorithm-gates .thirteen i {transition:none}}

#algorithm-gates .rv-flow-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:2px 0 22px}
#algorithm-gates .rv-flow-step{position:relative;min-width:0;padding:18px 16px 16px;border:1px solid #dbe4ee;border-radius:9px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);transition:transform .22s cubic-bezier(.2,.7,.3,1),box-shadow .22s,border-color .22s;cursor:pointer}
#algorithm-gates .rv-flow-step:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,23,42,.10);border-color:#93c5fd}
#algorithm-gates .rv-flow-step.active{border-color:#1d4ed8;background:linear-gradient(180deg,#fff,#f5f9ff);box-shadow:0 18px 40px rgba(29,78,216,.14)}
#algorithm-gates .rv-flow-step.reserve.active{border-color:#d97706;background:linear-gradient(180deg,#fff,#fffaf3);box-shadow:0 18px 40px rgba(217,119,6,.14)}
#algorithm-gates .rv-flow-step:not(:last-child):after{content:"";position:absolute;top:50%;right:-11px;width:20px;height:1px;background:#c3d3e4}
#algorithm-gates .rv-flow-step:not(:last-child):before{content:"";position:absolute;top:50%;right:-16px;transform:translateY(-50%);border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid #c3d3e4;z-index:1}
#algorithm-gates .rv-step-badge{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:#e0eaff;color:#1d4ed8;font-size:12px;font-weight:800}
#algorithm-gates .rv-flow-step.reserve .rv-step-badge{background:#ffedd5;color:#c2410c}
#algorithm-gates .rv-flow-title{display:block;margin-top:12px;font-size:15px;font-weight:800;color:#17233b;line-height:1.4}
#algorithm-gates .rv-flow-text{margin:7px 0 0;color:#5d6b7e;font-size:12px;line-height:1.7}
#algorithm-gates .rv-flow-tag{position:absolute;top:14px;right:14px;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:750}
#algorithm-gates .rv-flow-step.reserve .rv-flow-tag{background:#fff7ed;color:#c2410c}
#algorithm-gates .rv-flow-detail{min-height:58px;padding:14px 16px;border-left:4px solid #1d4ed8;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06)}
#algorithm-gates .rv-flow-detail.reserve{border-left-color:#d97706;background:#fffaf3}
#algorithm-gates .rv-flow-detail strong{display:block;font-size:14px;color:#17233b}
#algorithm-gates .rv-flow-detail p{margin:6px 0 0;color:#5d6b7e;font-size:12.5px;line-height:1.8}
#algorithm-gates .rv-workspace{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,2.2fr);gap:18px;align-items:start}
#algorithm-gates .rv-index-rail{padding:17px;border:1px solid #dbe4ee;border-radius:9px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.04)}
#algorithm-gates .rv-rail-title{margin:0 0 13px;color:#17233b;font-size:15px;font-weight:800}
#algorithm-gates .rv-index-list{display:grid;gap:9px}
#algorithm-gates .rv-index-button{position:relative;overflow:hidden;display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;align-items:center;padding:11px;border:1px solid #dbe4ee;border-radius:8px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:.2s}
#algorithm-gates .rv-index-button:hover{transform:translateX(3px);border-color:#93c5fd;box-shadow:0 8px 20px rgba(15,23,42,.07)}
#algorithm-gates .rv-index-button.active{border-color:#1d4ed8;background:linear-gradient(90deg,#eff6ff,#fff 72%);box-shadow:0 10px 24px rgba(29,78,216,.11)}
#algorithm-gates .rv-index-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-weight:800}
#algorithm-gates .rv-index-button.risk-high .rv-index-mark{background:#fff7ed;color:#c2410c}
#algorithm-gates .rv-index-name{display:block;font-size:13.5px;font-weight:750;color:#17233b}
#algorithm-gates .rv-index-sub{display:block;margin-top:3px;color:#7c8896;font-size:10.5px}
#algorithm-gates .rv-mini-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#e2e8f0}
#algorithm-gates .rv-mini-bar i{display:block;height:100%;background:#2563eb}
#algorithm-gates .rv-index-button.risk-high .rv-mini-bar i{background:#d97706}
#algorithm-gates .rv-rail-tip{margin:14px 0 0;padding-top:12px;border-top:1px solid #edf2f7;color:#64748b;font-size:11px;line-height:1.7}
#algorithm-gates .rv-detail-shell{min-width:0}
#algorithm-gates .rv-detail-card{overflow:hidden;border:1px solid #dbe4ee;border-radius:9px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.07)}
#algorithm-gates .rv-detail-head{position:relative;padding:20px 22px 18px;background:linear-gradient(120deg,#fff 55%,#eff6ff)}
#algorithm-gates .rv-detail-head.risk-high{background:linear-gradient(120deg,#fff 55%,#fff7ed)}
#algorithm-gates .rv-risk-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:11.5px;font-weight:800;border:1px solid}
#algorithm-gates .rv-risk-pill.high{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
#algorithm-gates .rv-risk-pill.low{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
#algorithm-gates .rv-risk-pill.mid{background:#f8fafc;border-color:#e2e8f0;color:#475569}
#algorithm-gates .rv-risk-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
#algorithm-gates .rv-detail-title{margin:13px 0 0;font-size:24px;font-weight:850;color:#17233b;letter-spacing:0}
#algorithm-gates .rv-detail-sub{margin:6px 0 0;color:#5d6b7e;font-size:12.5px}
#algorithm-gates .rv-detail-body{padding:19px 22px 22px;border-top:1px solid #edf2f7}
#algorithm-gates .rv-top-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center}
#algorithm-gates .rv-gauge-box{display:grid;place-items:center;padding:6px;border:1px solid #e5edf6;border-radius:9px;background:#f8fafc}
#algorithm-gates .rv-gauge{position:relative;width:118px;height:118px}
#algorithm-gates .rv-gauge svg{transform:rotate(-90deg)}
#algorithm-gates .rv-gauge circle{fill:none;stroke-width:9;stroke-linecap:round}
#algorithm-gates .rv-gauge .bg{stroke:#e9eef5}
#algorithm-gates .rv-gauge .value{stroke:#2563eb;transition:stroke-dashoffset .7s cubic-bezier(.2,.7,.3,1)}
#algorithm-gates .rv-detail-head.risk-high .rv-gauge .value{stroke:#d97706}
#algorithm-gates .rv-gauge-text{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
#algorithm-gates .rv-gauge-text b{display:block;font-size:21px;color:#17233b;line-height:1.1}
#algorithm-gates .rv-gauge-text span{display:block;margin-top:2px;color:#7c8896;font-size:10px}
#algorithm-gates .rv-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#algorithm-gates .rv-metric{min-width:0;padding:12px;border:1px solid #e5edf6;border-radius:8px;background:#f8fafc}
#algorithm-gates .rv-metric small{display:block;color:#7c8896;font-size:10.5px;font-weight:650}
#algorithm-gates .rv-metric strong{display:block;margin-top:5px;color:#17233b;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
#algorithm-gates .rv-status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#algorithm-gates .rv-chip{padding:5px 9px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;color:#475569;font-size:11px;font-weight:650}
#algorithm-gates .rv-chip.warn{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
#algorithm-gates .rv-chip.safe{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
#algorithm-gates .rv-chip.isolated{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
#algorithm-gates .rv-chip.consensus{background:#ecfeff;border-color:#a5f3fc;color:#0f766e}
#algorithm-gates .rv-block-title{display:flex;align-items:center;gap:10px;margin:22px 0 11px;color:#17233b;font-size:14px;font-weight:800}
#algorithm-gates .rv-block-title:after{content:"";flex:1;height:1px;background:#e5edf6}
#algorithm-gates .rv-path-meter{padding:15px;border:1px solid #e5edf6;border-radius:8px;background:#f8fafc}
#algorithm-gates .rv-meter-head{display:flex;justify-content:space-between;align-items:center;color:#5d6b7e;font-size:11.5px;font-weight:650}
#algorithm-gates .rv-segmented{display:flex;height:16px;overflow:hidden;margin-top:9px;border-radius:999px;background:#e9eef4}
#algorithm-gates .rv-segmented i{display:block;height:100%;transition:width .6s cubic-bezier(.2,.7,.3,1)}
#algorithm-gates .rv-segmented .safe{background:#2563eb}
#algorithm-gates .rv-segmented .rewrite{background:#7c3aed}
#algorithm-gates .rv-segmented .reverse{background:#f59e0b}
#algorithm-gates .rv-path-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:9px;color:#64748b;font-size:11px}
#algorithm-gates .rv-legend-item{display:inline-flex;align-items:center;gap:5px}
#algorithm-gates .rv-legend-item:before{content:"";width:8px;height:8px;border-radius:2px;background:currentColor}
#algorithm-gates .rv-legend-item.safe{color:#2563eb}
#algorithm-gates .rv-legend-item.rewrite{color:#7c3aed}
#algorithm-gates .rv-legend-item.reverse{color:#f59e0b}
#algorithm-gates .rv-reserve-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
#algorithm-gates .rv-reserve-card{min-width:0;padding:13px;border:1px solid #e5edf6;border-radius:8px;background:#fff;transition:.2s}
#algorithm-gates .rv-reserve-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(15,23,42,.08)}
#algorithm-gates .rv-reserve-card.b{border-color:#fed7aa;background:#fffaf3}
#algorithm-gates .rv-reserve-card small{display:block;color:#7c8896;font-size:10.5px;font-weight:750}
#algorithm-gates .rv-reserve-card strong{display:block;margin-top:5px;color:#17233b;font-size:13.5px}
#algorithm-gates .rv-reserve-card p{margin:6px 0 0;color:#5d6b7e;font-size:11.5px;line-height:1.65}
#algorithm-gates .rv-reserve-card.b strong{color:#c2410c}
#algorithm-gates .rv-note-strip{margin-top:20px;padding:15px 17px;border:1px solid #dbe4ee;border-radius:8px;background:#f8fafc;color:#5d6b7e;font-size:12px;line-height:1.9}
#algorithm-gates .rv-note-strip b{color:#17233b}
@media(max-width:1200px){#algorithm-gates .rv-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#algorithm-gates .rv-flow-step:not(:last-child):after,#algorithm-gates .rv-flow-step:not(:last-child):before{display:none}#algorithm-gates .rv-workspace{grid-template-columns:1fr}}
@media(max-width:680px){#algorithm-gates .rv-flow-grid,#algorithm-gates .rv-reserve-row,#algorithm-gates .rv-top-row{grid-template-columns:1fr}#algorithm-gates .rv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#algorithm-gates .rv-detail-head{padding:18px}#algorithm-gates .rv-detail-body{padding:16px}}
@media(prefers-reduced-motion:reduce){#algorithm-gates .rv-flow-step,#algorithm-gates .rv-index-button,#algorithm-gates .rv-segmented i,#algorithm-gates .rv-gauge .value,#algorithm-gates .rv-reserve-card{transition:none}}

#algorithm-gates .chapter-palette {max-width:620px;margin:52px 0 0 auto}
#algorithm-gates .thirteen {position:relative;display:grid;grid-template-columns:repeat(13,1fr);gap:7px;height:55px;margin-top:64px}
#algorithm-gates .thirteen i {background:rgba(16,23,37,.06);border-radius:2px;transform:scaleY(.36);transform-origin:bottom;opacity:.42;transition:.6s cubic-bezier(.2,.7,.2,1)}
#algorithm-gates .thirteen i:nth-child(3n) {background:rgba(37,99,235,.22)}
#algorithm-gates .thirteen i:nth-child(4n) {background:rgba(201,164,74,.32)}
#algorithm-gates .thirteen.in i {transform:scaleY(1);opacity:1}
#algorithm-gates .thirteen i:nth-child(7) {background:var(--blue)}
#algorithm-gates .thirteen i:nth-child(13) {background:var(--gold)}

#algorithm-gates .gate-section {min-width:0}
#algorithm-gates .gate-hero {display:grid;grid-template-columns:minmax(0,300px) minmax(300px,1fr);gap:48px;align-items:start;margin:8px 0 24px}
#algorithm-gates .gate-eyebrow.ink-seal {display:inline-flex;align-items:center;gap:10px;padding:0;border:0;background:transparent}
#algorithm-gates .gate-eyebrow.ink-seal .seal {width:56px;height:56px;display:flex;align-items:center;justify-content:center;background:#1d4ed8;color:#fff;border-radius:6px;box-shadow:4px 4px 0 rgba(29,78,216,.12)}
#algorithm-gates .gate-eyebrow.ink-seal .seal span {display:block;width:32px;font-size:16px;line-height:1.25;font-weight:800;text-align:center}
#algorithm-gates .gate-eyebrow.ink-seal .mono {color:var(--ink2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;font-weight:750;letter-spacing:1px}
#algorithm-gates .gate-seal-rule {height:1px;background:var(--ink);margin-top:16px}
#algorithm-gates .gate-section h2.chapter-title {margin:18px 0 0;font-size:48px;line-height:1.12;font-weight:800}
#algorithm-gates .gate-note {padding-top:0;color:var(--ink2);font-size:14px;line-height:2;max-width:640px;margin-left:auto;text-align:right}
#algorithm-gates .gate-jump {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:-6px 0 20px;padding:14px 18px;background:#eff6ff;border:1px solid #bfdbfe;border-left:4px solid #1d4ed8;border-radius:8px}
#algorithm-gates .jump-title {margin:0;font-size:14px;font-weight:750;color:#1e40af}
#algorithm-gates .jump-copy {margin:5px 0 0;font-size:12.5px;line-height:1.8;color:#1e3a8a}
#algorithm-gates .jump-link {display:inline-flex;align-items:center;gap:8px;padding:9px 14px;background:#fff;border:1px solid #93c5fd;border-radius:6px;color:#1d4ed8;font:inherit;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap;transition:background .18s ease,border-color .18s ease,transform .18s ease}
#algorithm-gates .jump-link .arrow {transition:transform .18s ease}
#algorithm-gates .jump-link:hover {background:#eff6ff;border-color:#60a5fa}
#algorithm-gates .jump-link:hover .arrow {transform:translateX(3px)}
#algorithm-gates .jump-link:focus-visible {outline:2px solid #1d4ed8;outline-offset:2px}
#algorithm-gates .gate-panel {min-width:0;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:18px;margin-top:14px}
#algorithm-gates .gate-panel {position:relative}
#algorithm-gates .gate-panel h3 {margin:0;font-size:16px}
#algorithm-gates #cone-chart, #algorithm-gates #prob-chart {width:100%;height:460px}
#algorithm-gates .gate-panel .tabs {margin-top:0}
#algorithm-gates .panel-head {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
#algorithm-gates .counts {display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;color:#64748b;font-size:12px}
#algorithm-gates .counts span {display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:4px 8px}
#algorithm-gates .cone-detail {position:absolute;top:6px;right:180px;box-sizing:border-box;width:min(262px,calc(100% - 28px));padding:9px 10px;background:rgba(255,255,255,.97);border:1px solid #dbe3ec;border-radius:6px;box-shadow:0 8px 22px rgba(15,23,42,.08);opacity:0;visibility:hidden;transition:opacity .12s,visibility .12s;pointer-events:none;z-index:6}
#algorithm-gates .cone-detail-head {display:flex;justify-content:space-between;align-items:center;gap:8px}
#algorithm-gates .cone-detail-badge {display:inline-block;margin-top:5px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:700;border-radius:999px;padding:1px 6px}
#algorithm-gates .cone-detail-move {font-size:12.5px;font-weight:700}
#algorithm-gates .cone-detail .up {color:#2563eb}
#algorithm-gates .cone-detail .down {color:#d97706}
#algorithm-gates .cone-detail dl {margin:7px 0 0;display:grid;grid-template-columns:70px minmax(0,1fr);gap:6px;align-items:baseline}
#algorithm-gates .cone-detail dl > div + div {margin-top:4px}
#algorithm-gates .cone-detail dt {font-size:10.5px;color:#6b7280;white-space:nowrap}
#algorithm-gates .cone-detail dd {margin:0;font-size:11.5px;line-height:1.35;color:#334155;overflow-wrap:anywhere}
#algorithm-gates #cone-chart, #algorithm-gates #prob-chart {width:100%;height:460px}
#algorithm-gates .gate-caption {margin:10px 0 0;color:var(--ink2);font-size:11.5px;line-height:1.7}
@media(max-width:560px){#algorithm-gates .cone-detail {top:6px;left:10px;right:auto;transform:none;width:calc(100% - 20px)}}
@media(max-width:1100px){#algorithm-gates .gate-hero {grid-template-columns:1fr;gap:18px}#algorithm-gates .gate-note {padding-top:0;margin-left:0;text-align:left}#algorithm-gates .gate-section h2.chapter-title {font-size:32px}}
@media(max-width:760px){#algorithm-gates .gate-section {padding:18px}#algorithm-gates .gate-hero {grid-template-columns:1fr}#algorithm-gates .gate-eyebrow.ink-seal .seal {width:50px;height:50px}#algorithm-gates .gate-eyebrow.ink-seal .seal span {width:28px;font-size:14px}#algorithm-gates .gate-eyebrow.ink-seal .mono {font-size:12px}#algorithm-gates .gate-seal-rule {margin-top:12px}#algorithm-gates .gate-section h2.chapter-title {font-size:28px}#algorithm-gates .gate-panel {padding:12px}}
@media(max-width:760px){#algorithm-gates .gate-jump {grid-template-columns:1fr;gap:12px;padding:12px}#algorithm-gates .jump-link {justify-content:center}}
@media(max-width:760px){.gate-transition-copy{padding:0 11px}#algorithm-gates ~ .footer{padding-left:max(calc((100% - 1400px) / 2),11px);padding-right:max(calc((100% - 1400px) / 2),11px)}}

/* Gate 1 mobile layout: keep the desktop defaults above untouched. */
@media (max-width:760px), (max-width:1100px) and (pointer:coarse) {
  #algorithm-gates .shell {width:calc(100% - 12px)}
  #algorithm-gates .shell > .section:first-of-type {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "head"
      "duo"
      "tabs"
      "metrics"
      "control"
      "chart"
      "caption"
      "evidence";
    padding:0 14px;
    border:0;
    background:transparent;
  }
  #algorithm-gates .shell > .section:first-of-type > .chapter-hero {grid-area:head;margin:0}
  #algorithm-gates .shell > .section:first-of-type .chapter-hero > div:first-child {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-hero > div:first-child:before {
    content:"";
    order:2;
    flex:0 0 1px;
    align-self:stretch;
    min-height:44px;
    margin:2px 0;
    background:#d7e1ec;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-eyebrow {
    flex:0 0 auto;
    display:grid;
    justify-items:center;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-eyebrow .seal {
    position:relative;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1d4ed8;
    color:#fff;
    border-radius:7px;
    box-shadow:3px 3px 0 rgba(29,78,216,.16);
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-eyebrow .seal:before {
    content:"";
    position:absolute;
    inset:4px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:4px;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-eyebrow .seal span {
    position:relative;
    width:auto;
    font-size:11.5px;
    line-height:1;
    white-space:nowrap;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-eyebrow .mono {
    color:#1d4ed8;
    font-size:9.5px;
    line-height:1;
    letter-spacing:.5px;
  }
  #algorithm-gates .shell > .section:first-of-type .seal-rule {display:none}
  #algorithm-gates .shell > .section:first-of-type h2.chapter-title {
    flex:1 1 auto;
    min-width:0;
    order:3;
    margin:0;
    font-size:24px;
    line-height:1.18;
    white-space:nowrap;
  }
  #algorithm-gates .shell > .section:first-of-type .chapter-note {margin:7px 0 0;font-size:12px;line-height:1.75}
  #algorithm-gates .shell > .section:first-of-type .chapter-palette {display:none}

  #algorithm-gates .shell > .section:first-of-type .tide-duo {grid-area:duo;display:grid;grid-template-columns:1fr;margin:10px 0 12px}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-rail {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-left:0}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-rail:before {display:none}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method {min-width:0;padding:9px 10px;border-radius:6px;background:#f8fafc}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method:first-child {border-left:3px solid #1d4ed8}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method + .tide-duo-method {margin-top:0;border-left:3px solid #b45309}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method:before {display:none}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method strong {font-size:14px;line-height:1.35}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-method p {margin-top:4px;font-size:11px;line-height:1.5}
  #algorithm-gates .shell > .section:first-of-type .tide-duo-split {display:none}

  #algorithm-gates .shell > .section:first-of-type #zigTabs {
    grid-area:tabs;
    display:flex;
    flex-wrap:nowrap;
    margin:8px 0 0;
    border:1px solid #dbe4ee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
  }
  #algorithm-gates .shell > .section:first-of-type #zigTabs button {
    flex:1 1 0;
    min-width:0;
    padding:8px 4px;
    border:0;
    background:#fff;
    color:#5d6b7e;
    font-size:11px;
    line-height:1.2;
    cursor:pointer;
    white-space:nowrap;
  }
  #algorithm-gates .shell > .section:first-of-type #zigTabs button.active {background:#17233b;color:#fff}

  #algorithm-gates .shell > .section:first-of-type #zigMetrics {
    grid-area:metrics;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    margin:8px 0 0;
  }
  #algorithm-gates .shell > .section:first-of-type .metric {padding:7px 8px;border-radius:6px}
  #algorithm-gates .shell > .section:first-of-type .metric b {font-size:15px;line-height:1.25}
  #algorithm-gates .shell > .section:first-of-type .metric span {margin-top:2px;font-size:10px;line-height:1.35}

  #algorithm-gates .shell > .section:first-of-type .controls {
    grid-area:control;
    display:block;
    margin:10px 0 8px;
  }
  #algorithm-gates .shell > .section:first-of-type .controls .value {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0;
    padding:7px 9px;
    border:1px solid #dbe4ee;
    border-radius:6px;
    background:#fff;
    color:#17233b;
    font-size:12px;
  }
  #algorithm-gates .shell > .section:first-of-type .controls .value:after {
    content:"拖动阈值，观察 ZigZag 变化";
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:10.5px;
    line-height:1;
    text-align:center;
  }
  #algorithm-gates .shell > .section:first-of-type .controls input[type="range"] {margin-top:8px}

  #algorithm-gates .shell > .section:first-of-type #zigChart {
    grid-area:chart;
    width:100%;
    height:360px;
    margin:0;
    box-sizing:border-box;
    border:1px solid #dbe4ee;
    border-radius:6px;
    overflow:hidden;
  }
  #algorithm-gates .shell > .section:first-of-type .chart-caption {grid-area:caption;margin:6px 0 0;font-size:11px;line-height:1.55}
  #algorithm-gates .shell > .section:first-of-type .chart-caption {display:none}
  #algorithm-gates .shell > .section:first-of-type details.evidence {grid-area:evidence;margin-top:8px}
  #algorithm-gates .shell > .section:first-of-type .table-wrap {border:0;margin-top:4px}

  #algorithm-gates #gate-future {
    display:block;
    margin-top:34px;
    padding:0 14px;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-future .gate-hero {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    margin:0;
  }
  #algorithm-gates #gate-future .gate-hero > div:first-child {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
  }
  #algorithm-gates #gate-future .gate-hero > div:first-child:before {
    content:"";
    order:2;
    flex:0 0 1px;
    align-self:stretch;
    min-height:44px;
    margin:2px 0;
    background:#d7e1ec;
  }
  #algorithm-gates #gate-future .chapter-eyebrow.ink-seal {
    flex:0 0 auto;
    display:grid;
    justify-items:center;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-future .chapter-eyebrow.ink-seal .seal {
    position:relative;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1d4ed8;
    color:#fff;
    border-radius:7px;
    box-shadow:3px 3px 0 rgba(29,78,216,.16);
  }
  #algorithm-gates #gate-future .chapter-eyebrow.ink-seal .seal:before {
    content:"";
    position:absolute;
    inset:4px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:4px;
  }
  #algorithm-gates #gate-future .chapter-eyebrow.ink-seal .seal span {
    position:relative;
    width:auto;
    font-size:11.5px;
    line-height:1;
    white-space:nowrap;
  }
  #algorithm-gates #gate-future .chapter-eyebrow.ink-seal .mono {
    color:#1d4ed8;
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size:9.5px;
    font-weight:750;
    line-height:1;
    letter-spacing:.5px;
    white-space:nowrap;
  }
  #algorithm-gates #gate-future .gate-seal-rule {display:none}
  #algorithm-gates #gate-future h2.chapter-title {
    flex:1 1 auto;
    min-width:0;
    order:3;
    margin:0;
    font-size:24px;
    line-height:1.18;
    white-space:nowrap;
  }
  #algorithm-gates #gate-future .gate-note {
    max-width:none;
    margin:7px 0 0;
    text-align:left;
    font-size:12px;
    line-height:1.75;
  }
  #algorithm-gates #gate-future .gate-jump {
    grid-template-columns:1fr;
    gap:12px;
    margin:12px 0 20px;
    padding:12px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-left:4px solid #1d4ed8;
    border-radius:8px;
  }
  #algorithm-gates #gate-future .jump-title {font-size:14px;font-weight:750;color:#1e40af}
  #algorithm-gates #gate-future .jump-copy {margin-top:5px;font-size:12.5px;line-height:1.8;color:#1e3a8a}
  #algorithm-gates #gate-future .jump-link {
    justify-content:center;
    padding:9px 14px;
    font-size:13px;
  }
  #algorithm-gates #gate-future .gate-panel {
    margin-top:10px;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
  }
  #algorithm-gates #gate-future .panel-head {
    align-items:center;
    gap:8px;
  }
  #algorithm-gates #gate-future .panel-head h3 {font-size:13px;line-height:1.35}
  #algorithm-gates #gate-future #cone-status {font-size:10.5px;line-height:1.35;color:#5d6b7e}
  #algorithm-gates #gate-future #cone-symbol-tabs {
    flex:1 0 100%;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    margin:8px 0 0;
    border:1px solid #dbe4ee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
  }
  #algorithm-gates #gate-future #cone-symbol-tabs button {
    flex:1 1 0;
    min-width:0;
    padding:8px 4px;
    text-align:center;
    border:0;
    background:#fff;
    color:#5d6b7e;
    font-size:11px;
    line-height:1.2;
    cursor:pointer;
    white-space:nowrap;
  }
  #algorithm-gates #gate-future #cone-symbol-tabs button.active {
    background:#17233b;
    color:#fff;
  }
  #algorithm-gates #gate-future #cone-chart {
    box-sizing:border-box;
    width:100%;
    height:360px;
    margin:8px 0 0;
    border:1px solid #dbe4ee;
    border-radius:6px;
    overflow:hidden;
  }
  #algorithm-gates #gate-future .gate-caption {margin-top:6px;font-size:11px;line-height:1.55}

  #algorithm-gates #gate-reversal {
    display:block;
    margin-top:34px;
    padding:0 14px;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-reversal .gate-hero {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    margin:0;
  }
  #algorithm-gates #gate-reversal .gate-hero > div:first-child {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
  }
  #algorithm-gates #gate-reversal .gate-hero > div:first-child:before {
    content:"";
    order:2;
    flex:0 0 1px;
    align-self:stretch;
    min-height:44px;
    margin:2px 0;
    background:#d7e1ec;
  }
  #algorithm-gates #gate-reversal .chapter-eyebrow.ink-seal {
    flex:0 0 auto;
    display:grid;
    justify-items:center;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-reversal .chapter-eyebrow.ink-seal .seal {
    position:relative;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1d4ed8;
    color:#fff;
    border-radius:7px;
    box-shadow:3px 3px 0 rgba(29,78,216,.16);
  }
  #algorithm-gates #gate-reversal .chapter-eyebrow.ink-seal .seal:before {
    content:"";
    position:absolute;
    inset:4px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:4px;
  }
  #algorithm-gates #gate-reversal .chapter-eyebrow.ink-seal .seal span {
    position:relative;
    width:auto;
    font-size:11.5px;
    line-height:1;
    white-space:nowrap;
  }
  #algorithm-gates #gate-reversal .chapter-eyebrow.ink-seal .mono {
    color:#1d4ed8;
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size:9.5px;
    font-weight:750;
    line-height:1;
    letter-spacing:.5px;
    white-space:nowrap;
  }
  #algorithm-gates #gate-reversal .gate-seal-rule {display:none}
  #algorithm-gates #gate-reversal h2.chapter-title {
    flex:1 1 auto;
    min-width:0;
    order:3;
    margin:0;
    font-size:24px;
    line-height:1.18;
    white-space:nowrap;
  }
  #algorithm-gates #gate-reversal .gate-note {
    max-width:none;
    margin:7px 0 0;
    text-align:left;
    font-size:12px;
    line-height:1.75;
  }
  #algorithm-gates #gate-reversal .gate-jump {
    grid-template-columns:1fr;
    gap:12px;
    margin:12px 0 20px;
    padding:12px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-left:4px solid #1d4ed8;
    border-radius:8px;
  }
  #algorithm-gates #gate-reversal .jump-link {justify-content:center}
  #algorithm-gates #gate-reversal .jump-title {font-size:14px;font-weight:750;color:#1e40af}
  #algorithm-gates #gate-reversal .jump-copy {margin-top:5px;font-size:12.5px;line-height:1.8;color:#1e3a8a}
  #algorithm-gates #gate-reversal .gate-panel {
    margin-top:0;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
  }
  #algorithm-gates #gate-reversal .panel-head span {display:none}
  #algorithm-gates #gate-reversal .rv-block-title,
  #algorithm-gates #gate-reversal .rv-workspace,
  #algorithm-gates #gate-reversal .rv-note-strip {display:none}

  #algorithm-gates #gate-reversal .rv-flow-grid {margin-top:7px}
  #algorithm-gates #gate-reversal .rv-flow-step {
    overflow:hidden;
    padding:30px 14px 14px;
    border-radius:8px;
    box-shadow:none;
  }
  #algorithm-gates #gate-reversal .rv-flow-step.active,
  #algorithm-gates #gate-reversal .rv-flow-step.reserve.active {
    box-shadow:0 10px 24px rgba(15,23,42,.07);
  }
  #algorithm-gates #gate-reversal .rv-step-badge {
    position:absolute;
    left:-1px;
    top:-1px;
    width:28px;
    height:34px;
    display:grid;
    place-items:start center;
    padding-top:5px;
    border-radius:0;
    background:#e8effa;
    color:#1d4ed8;
    clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
    box-shadow:2px 2px 0 rgba(29,78,216,.08);
  }
  #algorithm-gates #gate-reversal .rv-flow-step.active .rv-step-badge {
    background:#1d4ed8;
    color:#fff;
  }
  #algorithm-gates #gate-reversal .rv-flow-step.reserve .rv-step-badge {
    background:#ffedd5;
    color:#c2410c;
  }
  #algorithm-gates #gate-reversal .rv-flow-step.reserve.active .rv-step-badge {
    background:#d97706;
    color:#fff;
  }
  #algorithm-gates #gate-reversal .rv-flow-tag {
    top:auto;
    right:auto;
    position:relative;
    display:inline-block;
    margin-bottom:5px;
  }
  #algorithm-gates #gate-reversal .rv-flow-title {margin-top:0}

  #algorithm-gates #gate-probability {
    display:block;
    margin-top:34px;
    padding:0 14px;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-probability .gate-hero {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    margin:0;
  }
  #algorithm-gates #gate-probability .gate-hero > div:first-child {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
  }
  #algorithm-gates #gate-probability .gate-hero > div:first-child:before {
    content:"";
    order:2;
    flex:0 0 1px;
    align-self:stretch;
    min-height:44px;
    margin:2px 0;
    background:#d7e1ec;
  }
  #algorithm-gates #gate-probability .chapter-eyebrow.ink-seal {
    flex:0 0 auto;
    display:grid;
    justify-items:center;
    gap:5px;
    padding:0;
    border:0;
    background:transparent;
  }
  #algorithm-gates #gate-probability .chapter-eyebrow.ink-seal .seal {
    position:relative;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#1d4ed8;
    color:#fff;
    border-radius:7px;
    box-shadow:3px 3px 0 rgba(29,78,216,.16);
  }
  #algorithm-gates #gate-probability .chapter-eyebrow.ink-seal .seal:before {
    content:"";
    position:absolute;
    inset:4px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:4px;
  }
  #algorithm-gates #gate-probability .chapter-eyebrow.ink-seal .seal span {
    position:relative;
    width:auto;
    font-size:11.5px;
    line-height:1;
    white-space:nowrap;
  }
  #algorithm-gates #gate-probability .chapter-eyebrow.ink-seal .mono {
    color:#1d4ed8;
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size:9.5px;
    font-weight:750;
    line-height:1;
    letter-spacing:.5px;
    white-space:nowrap;
  }
  #algorithm-gates #gate-probability .gate-seal-rule {display:none}
  #algorithm-gates #gate-probability h2.chapter-title {
    flex:1 1 auto;
    min-width:0;
    order:3;
    margin:0;
    font-size:24px;
    line-height:1.18;
    white-space:nowrap;
  }
  #algorithm-gates #gate-probability .gate-note {
    max-width:none;
    margin:7px 0 0;
    text-align:left;
    font-size:12px;
    line-height:1.75;
  }
  #algorithm-gates #gate-probability .gate-jump {
    grid-template-columns:1fr;
    gap:12px;
    margin:12px 0 20px;
    padding:12px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-left:4px solid #1d4ed8;
    border-radius:8px;
  }
  #algorithm-gates #gate-probability .jump-link {justify-content:center}
  #algorithm-gates #gate-probability .jump-title {font-size:14px;font-weight:750;color:#1e40af}
  #algorithm-gates #gate-probability .jump-copy {margin-top:5px;font-size:12.5px;line-height:1.8;color:#1e3a8a}
  #algorithm-gates #gate-probability .gate-panel {
    display:flex;
    flex-direction:column;
    margin-top:0;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
  }
  #algorithm-gates #gate-probability .panel-head {
    display:contents;
  }
  #algorithm-gates #gate-probability .panel-head h3 {order:1;font-size:13px;line-height:1.35}
  #algorithm-gates #gate-probability #prob-status {order:2;font-size:10.5px;line-height:1.35;color:#5d6b7e}
  #algorithm-gates #gate-probability #prob-status {font-size:10.5px;line-height:1.35;color:#5d6b7e}
  #algorithm-gates #gate-probability #prob-symbol-tabs,
  #algorithm-gates #gate-probability #prob-horizon-tabs {
    box-sizing:border-box;
    flex:1 0 100%;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    margin:8px 0 0;
    border:1px solid #dbe4ee;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
  }
  #algorithm-gates #gate-probability #prob-symbol-tabs button,
  #algorithm-gates #gate-probability #prob-horizon-tabs button {
    flex:1 1 0;
    min-width:0;
    padding:8px 11px;
    text-align:center;
    border:0;
    background:#fff;
    color:#5d6b7e;
    font-size:12px;
    cursor:pointer;
    white-space:nowrap;
  }
  #algorithm-gates #gate-probability #prob-symbol-tabs button.active,
  #algorithm-gates #gate-probability #prob-horizon-tabs button.active {
    background:#17233b;
    color:#fff;
  }
  #algorithm-gates #gate-probability #prob-symbol-tabs {order:3}
  #algorithm-gates #gate-probability #prob-chart {
    order:4;
    box-sizing:border-box;
    width:100%;
    height:360px;
    margin:8px 0 0;
    border:1px solid #dbe4ee;
    border-radius:6px;
    overflow:hidden;
  }
  #algorithm-gates #gate-probability #prob-horizon-tabs {order:5}
  #algorithm-gates #gate-probability .counts {
    order:6;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    margin-top:8px;
    font-size:10px;
  }
  #algorithm-gates #gate-probability .counts span {
    display:grid;
    justify-items:center;
    gap:3px;
    padding:7px 2px;
    border:1px solid #e2e8f0;
    border-radius:6px;
    background:#fff;
    text-align:center;
  }
  #algorithm-gates #gate-probability .counts b {font-size:11px;line-height:1}
}
