#panel-gate-diagram{padding:0!important;min-height:0;height:100%;overflow:hidden}.gate-map-shell{height:100%;display:flex;flex-direction:column;background:#f8f7fc;color:#4b0082}.gate-map-tools{display:flex;align-items:center;gap:12px;padding:8px 18px;border-bottom:1px solid #d9d0e8;flex:none;font-size:14px}.gate-map-tools>span{margin-right:auto}.gate-map-tools button{font:inherit;padding:7px 12px;border:1px solid #b6a3d2;border-radius:6px;background:white;color:#4b0082;cursor:pointer}.gate-map-tools button[aria-pressed=true]{background:#e6e6fa;border-color:#7b68ee}.gate-map-viewport{flex:1;min-height:0;position:relative;overflow:hidden;padding:0}.gate-map-viewport.gate-map-unfitted{overflow:auto}.gate-map-sheet{width:3240px;height:1840px;box-sizing:border-box;padding:28px 34px;transform-origin:top left;display:flex;flex-direction:column;gap:17px;background:#fff;color:#4b0082;font-size:21px;line-height:1.38}.gate-map-sheet *{box-sizing:border-box}.gate-map-sheet p{margin:6px 0}.gate-map-purpose{display:grid;grid-template-columns:1.3fr 1fr;gap:44px;min-height:171px;border-bottom:2px solid #cdbfe3;padding-bottom:14px}.gate-map-purpose h2{font-size:36px;line-height:1.15;margin:5px 0 10px}.gate-map-kicker{font-weight:750;letter-spacing:.1em;font-size:17px}.gate-map-purpose-result{background:#f3f1fc;padding:14px 20px;border-left:4px solid #7b68ee}.gate-map-purpose-result .gate-map-eq{font-size:25px}.gate-map-key{display:flex;gap:24px;align-items:center;flex-wrap:wrap;font-size:19px;min-height:32px}.gate-map-key span{display:flex;align-items:center;gap:8px}.gate-map-key i{width:18px;height:18px;display:inline-block;border:1px solid #bbb}.gate-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:20px;flex:1;min-height:0}.gate-map-card{border:1px solid #cdbfe3;border-radius:12px;padding:15px 20px;min-width:0;background:linear-gradient(135deg,#fff,#fcfbff);display:flex;flex-direction:column;gap:4px}.gate-map-card>header{display:flex;align-items:center;gap:12px;min-height:36px;flex:none}.gate-map-card>header>span{font-size:21px;font-weight:800;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#4b0082;color:#fff}.gate-map-card h3{font-size:25px;line-height:1.2;margin:0;flex:1}.gate-map-card small{font-size:15px;white-space:nowrap}.gate-map-card>svg{width:100%;height:164px;flex:none;margin:0;overflow:visible}.gate-map-eq{font-size:22px;line-height:1.3;min-width:0;margin:2px 0;white-space:nowrap}.gate-map-card p{font-size:20px;line-height:1.4;margin-top:auto}.gate-map-card .site-math svg{max-width:100%}.gate-map-card:nth-child(5),.gate-map-card:nth-child(8){border-color:#a48ee2}.gate-map-card:nth-child(8) .gate-map-eq{font-size:18px}.gate-map-foot{display:grid;grid-template-columns:1.65fr 1fr;gap:35px;min-height:65px;padding-top:10px;border-top:2px solid #cdbfe3;font-size:18px}.gate-map-sheet .mjx-label{color:#4b0082}.gate-map-sheet .site-math{color:#4b0082}html:not([data-display="4k"]) #panel-gate-diagram{height:min(85vh,1840px)}
#panel-gate-diagram .gate-map-card:nth-child(4)>svg{height:118px}

.gate-map-sheet{gap:12px}.gate-map-purpose{min-height:152px}.gate-map-purpose h2{font-size:33px}.gate-map-purpose p{font-size:19px}.gate-map-key{font-size:17px;gap:15px}.gate-map-sheet .two-gate-provenance{flex:none;margin:0;gap:14px}.gate-map-sheet .two-gate-provenance article{padding:8px 12px}.gate-map-sheet .two-gate-provenance h3{font-size:20px}.gate-map-sheet .two-gate-provenance p{font-size:17px}.gate-map-sheet .gate-provenance-equation{font-size:18px;overflow:visible;white-space:nowrap}.gate-map-card{padding:10px 17px;gap:3px}.gate-map-card h3{font-size:23px}.gate-map-card>svg{height:139px}.gate-map-card p{font-size:18px;line-height:1.35}.gate-map-eq{font-size:20px}.gate-map-card:nth-child(5) .gate-map-eq,.gate-map-card:nth-child(6) .gate-map-eq{font-size:18px}.gate-map-card:nth-child(5),.gate-map-card:nth-child(8){border-color:#2e7d32}.gate-map-foot{font-size:17px;min-height:60px}.gate-map-sheet .two-gate-provenance{grid-template-columns:1.15fr 1fr 1.15fr}

.gate-map-card>svg.gate-input-output{height:182px}

.gate-map-grid{grid-template-rows:minmax(0,.8fr) minmax(0,1.25fr) minmax(0,.95fr)}
