/* Orvexa 1.0.0 — Gateway styles. */
body[data-active-page="ai-gateway"] .p2-page{padding-bottom:48px}
body[data-active-page="ai-gateway"] .p2-head{margin-bottom:18px}
body[data-active-page="ai-gateway"] .p2-head-copy h1{font-size:32px;font-weight:800}
body[data-active-page="ai-gateway"] .p2-head-copy p{font-size:14px;line-height:1.5}
body[data-active-page="ai-gateway"] .p2-metric{padding:18px 20px}
body[data-active-page="ai-gateway"] .p2-metric strong{font-size:29px}
body[data-active-page="ai-gateway"] .p2-metric:nth-child(1){background:color-mix(in srgb,#76b5e7 3%,var(--surface))}
body[data-active-page="ai-gateway"] .p2-metric:nth-child(2){background:color-mix(in srgb,#6fbe9a 3%,var(--surface))}
body[data-active-page="ai-gateway"] .p2-metric:nth-child(3){background:color-mix(in srgb,#e5ae55 4%,var(--surface))}
body[data-active-page="ai-gateway"] .p2-metric:nth-child(4){background:color-mix(in srgb,#df817c 3%,var(--surface))}

.gateway-hero-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(330px,.82fr);gap:18px}
.gateway-routing-panel{position:relative}
.gateway-topology{position:relative;display:grid;grid-template-columns:minmax(170px,.9fr) minmax(210px,1.05fr) minmax(205px,.95fr);align-items:center;gap:54px;min-height:424px;padding:28px 28px 30px;background:radial-gradient(circle at 49% 48%,color-mix(in srgb,var(--primary) 9%,transparent),transparent 39%)}
.gateway-connectors{position:absolute;inset:28px 24px;width:calc(100% - 48px);height:calc(100% - 56px);overflow:visible;pointer-events:none}
.gateway-line{fill:none;stroke:url(#gwRoute);stroke-width:2;opacity:.34;vector-effect:non-scaling-stroke}
.gateway-line.incident{stroke:#d89a28;stroke-width:2.3;opacity:.66}
.gateway-fallback-line{fill:none;stroke:#d89a28;stroke-width:2.1;stroke-dasharray:6 6;opacity:.7;vector-effect:non-scaling-stroke}
.gateway-traffic-dot{r:4.2;fill:#d9a31a;opacity:.78;filter:drop-shadow(0 0 4px color-mix(in srgb,#d9a31a 35%,transparent))}
.gateway-traffic-dot.incident-dot{fill:#e2a333}
.gateway-app-column,.gateway-provider-column{position:relative;z-index:2;display:grid;gap:12px}
.gateway-node{position:relative;display:flex;align-items:center;gap:11px;width:100%;min-height:64px;padding:12px 13px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:14px;background:color-mix(in srgb,var(--surface-solid) 94%,transparent);box-shadow:0 9px 24px color-mix(in srgb,var(--text) 4%,transparent);text-align:left;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.gateway-node:hover,.gateway-provider-node.selected{transform:translateY(-1px);border-color:color-mix(in srgb,var(--primary) 34%,var(--line));box-shadow:0 12px 28px color-mix(in srgb,var(--text) 6%,transparent)}
.gateway-node>span:nth-child(2){min-width:0;flex:1}
.gateway-node b{display:block;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;font-weight:700;white-space:nowrap}
.gateway-node small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:11.75px;font-weight:500;white-space:nowrap}
.gateway-node-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--cyan) 9%,transparent);color:var(--cyan-text)}
.gateway-node-icon svg{width:16px;height:16px}
.gateway-app-node[data-orvexa-app-tone="mint"]{background:color-mix(in srgb,#7fd3a9 5%,var(--surface-solid));border-color:color-mix(in srgb,#66b98f 22%,var(--line))}
.gateway-app-node[data-orvexa-app-tone="mint"] .gateway-node-icon{background:color-mix(in srgb,#66b98f 13%,transparent);color:#459971}
.gateway-app-node[data-orvexa-app-tone="lavender"]{background:color-mix(in srgb,#a997e8 5%,var(--surface-solid));border-color:color-mix(in srgb,#9581db 22%,var(--line))}
.gateway-app-node[data-orvexa-app-tone="lavender"] .gateway-node-icon{background:color-mix(in srgb,#9581db 12%,transparent);color:#7967c8}
.gateway-app-node[data-orvexa-app-tone="sky"]{background:color-mix(in srgb,#84bee8 5%,var(--surface-solid));border-color:color-mix(in srgb,#6ba9d8 22%,var(--line))}
.gateway-app-node[data-orvexa-app-tone="sky"] .gateway-node-icon{background:color-mix(in srgb,#6ba9d8 12%,transparent);color:#4d90c5}
.gateway-node-signal{position:absolute;right:12px;top:12px;width:8px;height:8px;border-radius:50%;background:#d99b26;box-shadow:0 0 0 5px color-mix(in srgb,#d99b26 12%,transparent)}
.gateway-core-node{position:relative;z-index:3;display:grid;place-items:center;min-height:176px;padding:24px 18px;border:1px solid color-mix(in srgb,var(--primary) 44%,var(--line));border-radius:21px;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 7%,var(--surface-solid)),color-mix(in srgb,#f3d990 7%,var(--surface-solid)));box-shadow:0 26px 65px color-mix(in srgb,var(--primary) 14%,transparent);text-align:center}
.gateway-core-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:color-mix(in srgb,var(--primary) 16%,transparent);color:var(--primary-text)}
.gateway-core-icon svg{width:22px;height:22px}
.gateway-core-node>b{margin-top:11px;font-size:17px;font-weight:800}
.gateway-core-node>small{margin-top:1px;color:var(--muted);font-size:11.75px;font-weight:600}
.gateway-core-node>em{margin-top:8px;color:var(--muted);font-size:11.5px;font-style:normal;font-weight:600}
.gateway-live-dot{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--mint) 9%,transparent);color:var(--mint-text);font-size:12px;font-weight:750}
.gateway-live-dot:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}
.gateway-provider-node.is-watch{background:color-mix(in srgb,#e9b451 5%,var(--surface-solid));border-color:color-mix(in srgb,#dca640 24%,var(--line))}
.gateway-provider-node .p2-status{margin-left:auto;padding:3px 7px;font-size:10.5px}
.gateway-fallback-badge{position:absolute;right:0;bottom:-7px;display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid color-mix(in srgb,#d99b26 26%,var(--line));border-radius:11px;background:color-mix(in srgb,#e5ad44 7%,var(--surface-solid));color:#b87d10;box-shadow:0 8px 22px color-mix(in srgb,#d99b26 8%,transparent)}
.gateway-fallback-badge>svg{width:15px;height:15px}
.gateway-fallback-badge b,.gateway-fallback-badge small{display:block}
.gateway-fallback-badge b{font-size:11.5px}.gateway-fallback-badge small{margin-top:1px;font-size:10.5px;color:var(--muted)}

.gateway-controls-panel .p2-panel-head{align-items:flex-start}
.gateway-control-grid{gap:10px;padding:16px}
.gateway-control{position:relative;min-height:106px;padding:15px;border-color:color-mix(in srgb,var(--line) 78%,transparent);text-align:left;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.gateway-control:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--primary) 28%,var(--line));background:color-mix(in srgb,var(--primary) 3%,var(--surface-solid))}
.gateway-control>svg{width:18px;height:18px;color:var(--primary-text)}
.gateway-control b{font-size:13px}.gateway-control small{font-size:11.75px}.gateway-control em{display:block;margin-top:5px;color:var(--mint-text);font-size:10.75px;font-style:normal;font-weight:750}

.gateway-data-grid{align-items:start}.gateway-table .p2-table-head{font-size:11.75px}.gateway-table .p2-row{min-height:58px}.gateway-strategy-row[data-orvexa-app-tone="mint"]{background:color-mix(in srgb,#76cfa2 4%,var(--surface))}.gateway-strategy-row[data-orvexa-app-tone="lavender"]{background:color-mix(in srgb,#9c8cde 4%,var(--surface))}.gateway-strategy-row[data-orvexa-app-tone="sky"]{background:color-mix(in srgb,#76b5e7 4%,var(--surface))}.gateway-strategy-row[data-orvexa-app-tone="peach"]{background:color-mix(in srgb,#e5aa7e 4%,var(--surface))}.gateway-provider-health.is-watch{background:color-mix(in srgb,#e2ae51 4.5%,var(--surface))}

.gateway-simulator{gap:20px;padding:22px}.gateway-simulator .route-simulator-form{align-content:start}.gateway-simulator .route-field label{font-size:12px}.gateway-simulator .route-result{padding:20px;border-color:color-mix(in srgb,var(--mint) 20%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--mint) 5%,var(--surface-solid)),color-mix(in srgb,var(--primary) 3%,var(--surface-solid)))}
.gateway-prediction-flow{display:flex;align-items:center;gap:8px;margin-top:15px;padding:12px;border-radius:12px;background:color-mix(in srgb,var(--surface-2) 72%,transparent)}
.gateway-prediction-flow span{flex:1;padding:8px 10px;border:1px solid color-mix(in srgb,var(--line) 74%,transparent);border-radius:10px;background:var(--surface-solid);font-size:12px;font-weight:700;text-align:center}.gateway-prediction-flow>svg{flex:0 0 auto;width:14px;height:14px;color:var(--primary-text)}
.gateway-route-metrics{grid-template-columns:repeat(4,1fr)!important}.gateway-route-metrics div{padding:11px}.gateway-simulator .route-result p{margin-top:13px;font-size:12.5px;line-height:1.5}

.gateway-decisions-table{width:100%;overflow-x:auto}.gateway-decisions-table .p2-table-head,.gateway-decisions-table .p2-row{width:100%;min-width:1100px;box-sizing:border-box;grid-template-columns:minmax(180px,1.08fr) minmax(200px,1.2fr) minmax(165px,1fr) minmax(130px,.82fr) minmax(100px,.62fr) minmax(90px,.58fr) minmax(112px,.68fr)}.gateway-decisions-table .p2-row{min-height:60px}.gateway-decision-row[data-orvexa-app-tone="mint"]{background:color-mix(in srgb,#76cfa2 3.5%,var(--surface))}.gateway-decision-row[data-orvexa-app-tone="lavender"]{background:color-mix(in srgb,#9c8cde 3.5%,var(--surface))}.gateway-decision-row[data-orvexa-app-tone="sky"]{background:color-mix(in srgb,#76b5e7 3.5%,var(--surface))}.gateway-decision-row[data-orvexa-app-tone="peach"]{background:color-mix(in srgb,#e5aa7e 3.5%,var(--surface))}.gateway-pagination{border-top:1px solid var(--line)}


.gateway-route-backdrop{position:fixed;z-index:96;top:72px;right:0;bottom:0;left:0;background:rgba(29,30,26,.28);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease}
.gateway-route-backdrop.open{opacity:1;pointer-events:auto}
.gateway-route-drawer{position:fixed;z-index:97;top:72px;right:0;bottom:0;width:540px;max-width:560px;border-left:1px solid color-mix(in srgb,var(--line) 84%,transparent);background:color-mix(in srgb,var(--surface-solid) 98%,#fff7df 2%);box-shadow:-26px 0 72px rgba(30,27,18,.18);transform:translateX(102%);transition:transform .25s cubic-bezier(.16,1,.3,1)}
.gateway-route-drawer.open{transform:none}.gateway-route-drawer>form{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%}.gateway-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 17px;border-bottom:1px solid var(--line)}.gateway-drawer-kicker{display:block;margin-bottom:5px;color:var(--primary-text);font-size:10.5px;font-weight:800;letter-spacing:.12em}.gateway-drawer-head h2{font-size:18px;font-weight:800;letter-spacing:-.02em}.gateway-drawer-head p{max-width:400px;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.gateway-icon-button{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface-solid)}.gateway-icon-button svg{width:16px;height:16px}
.gateway-route-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:11px 14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 50%,transparent)}.gateway-route-steps button{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 6px;border:1px solid transparent;border-radius:9px;color:var(--muted);font-size:10.75px;text-align:left}.gateway-route-steps button span{display:grid;place-items:center;flex:0 0 auto;width:21px;height:21px;border-radius:7px;background:color-mix(in srgb,var(--muted) 8%,transparent);font-size:11px;font-weight:800}.gateway-route-steps button b{overflow:hidden;text-overflow:ellipsis;font-weight:700;white-space:nowrap}.gateway-route-steps button.active{border-color:color-mix(in srgb,var(--primary) 28%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--surface-solid));color:var(--text)}.gateway-route-steps button.active span{background:var(--primary);color:#271d06}.gateway-route-steps button.complete span{background:color-mix(in srgb,var(--mint) 16%,transparent);color:var(--mint-text)}
.gateway-drawer-body{min-height:0;overflow-y:auto;padding:22px}.gateway-route-step{display:none}.gateway-route-step.active{display:block}.gateway-step-intro{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.gateway-step-intro>span{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--primary) 11%,transparent);color:var(--primary-text);font-size:11px;font-weight:800}.gateway-step-intro h3{font-size:15px;font-weight:800}.gateway-step-intro p{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.5}
.gateway-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.gateway-form-grid label,.gateway-policy-form label{display:grid;gap:7px}.gateway-form-grid label.wide{grid-column:1/-1}.gateway-form-grid label>span{font-size:11.75px;font-weight:700;color:var(--muted)}.gateway-form-grid input,.gateway-form-grid select,.gateway-policy-form select{width:100%;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-solid);color:var(--text);font-size:12.5px;font-weight:600;outline:none}.gateway-form-grid input:focus,.gateway-form-grid select:focus,.gateway-policy-form select:focus{border-color:color-mix(in srgb,var(--primary) 54%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 8%,transparent)}
.gateway-strategy-field{margin:0;padding:0;border:0}.gateway-strategy-field legend{margin-bottom:9px;color:var(--muted);font-size:11.75px;font-weight:700}.gateway-strategy-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}.gateway-strategy-card{position:relative;display:flex;align-items:flex-start;gap:10px;min-height:80px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid);text-align:left}.gateway-strategy-card>svg:first-child{flex:0 0 auto;width:17px;height:17px;margin-top:2px;color:var(--primary-text)}.gateway-strategy-card>svg:last-child{position:absolute;right:10px;top:10px;width:15px;height:15px;color:var(--mint-text)}.gateway-strategy-card b,.gateway-strategy-card small{display:block}.gateway-strategy-card b{font-size:12.5px}.gateway-strategy-card small{margin-top:3px;color:var(--muted);font-size:10.75px;line-height:1.35}.gateway-strategy-card.active{border-color:color-mix(in srgb,var(--primary) 38%,var(--line));background:color-mix(in srgb,var(--primary) 6%,var(--surface-solid))}.gateway-priority-head{display:flex;align-items:end;justify-content:space-between;margin:20px 0 9px}.gateway-priority-head b,.gateway-priority-head small{display:block}.gateway-priority-head b{font-size:12.5px}.gateway-priority-head small{margin-top:2px;color:var(--muted);font-size:10.75px}.gateway-priority-head>span{color:var(--muted);font-size:10.5px}.gateway-provider-priority{display:grid;gap:7px}.gateway-priority-row{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;min-height:55px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface-solid)}.gateway-priority-index{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--primary) 9%,transparent);color:var(--primary-text);font-size:11px;font-weight:800}.gateway-priority-row b,.gateway-priority-row small{display:block}.gateway-priority-row b{font-size:12px}.gateway-priority-row small{margin-top:2px;color:var(--muted);font-size:10.5px}.gateway-priority-actions{display:flex;gap:4px}.gateway-priority-actions button{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:var(--surface-solid)}.gateway-priority-actions button:disabled{opacity:.28}.gateway-priority-actions svg{width:13px;height:13px}
.gateway-fallback-preview{display:flex;align-items:center;gap:8px;margin-top:20px;padding:14px;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--primary) 4%,var(--surface-solid))}.gateway-fallback-preview>span{display:flex;align-items:center;gap:6px;flex:1;padding:8px;border-radius:9px;background:var(--surface-solid);font-size:11.5px}.gateway-fallback-preview>span svg{width:14px;height:14px;color:var(--primary-text)}.gateway-fallback-preview>svg{width:13px;height:13px;color:var(--muted)}
.gateway-policy-form{display:grid;gap:9px}.gateway-policy-form label{grid-template-columns:36px 1fr minmax(126px,.72fr);align-items:center;min-height:66px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid)}.gateway-policy-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--primary) 9%,transparent);color:var(--primary-text)}.gateway-policy-icon svg{width:16px;height:16px}.gateway-policy-form b,.gateway-policy-form small{display:block}.gateway-policy-form b{font-size:12px}.gateway-policy-form small{margin-top:2px;color:var(--muted);font-size:10.5px}.gateway-policy-form select{height:38px;font-size:11px}
.gateway-review-card{overflow:hidden;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 5%,var(--surface-solid)),var(--surface-solid))}.gateway-review-title{display:flex;align-items:center;gap:11px;padding:15px;border-bottom:1px solid var(--line)}.gateway-review-title>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--primary) 14%,transparent);color:var(--primary-text)}.gateway-review-title svg{width:17px;height:17px}.gateway-review-title b,.gateway-review-title small{display:block}.gateway-review-title b{font-size:13.5px}.gateway-review-title small{margin-top:2px;color:var(--muted);font-size:10.75px}.gateway-review-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.gateway-review-facts div{padding:12px 14px;background:var(--surface-solid)}.gateway-review-facts small,.gateway-review-facts b{display:block}.gateway-review-facts small{color:var(--muted);font-size:10.5px}.gateway-review-facts b{margin-top:3px;font-size:11.75px}.gateway-review-route{display:grid;justify-items:center;gap:5px;padding:16px}.gateway-review-route>span{width:72%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-solid);text-align:center}.gateway-review-route b,.gateway-review-route small{display:block}.gateway-review-route b{font-size:12px}.gateway-review-route small{margin-top:2px;color:var(--muted);font-size:11px}.gateway-review-route>svg{width:14px;height:14px;color:var(--primary-text)}.gateway-review-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 15px 15px}.gateway-review-controls span{padding:9px;border-radius:9px;background:color-mix(in srgb,var(--surface-2) 75%,transparent);color:var(--muted);font-size:10.5px}.gateway-review-controls b{float:right;color:var(--text);font-size:10.75px}
.gateway-drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface-solid) 96%,transparent);box-shadow:0 -12px 30px color-mix(in srgb,var(--text) 3%,transparent)}.gateway-drawer-foot-actions{display:flex;gap:7px}.gateway-drawer-foot .p2-btn{min-height:38px;font-size:12px}.gateway-drawer-foot .p2-btn:disabled{opacity:.35;cursor:not-allowed}.gateway-drawer-open{overflow:hidden}

@media(max-width:1200px){.gateway-hero-grid{grid-template-columns:1fr}.gateway-controls-panel .gateway-control-grid{grid-template-columns:repeat(3,1fr)}.gateway-topology{grid-template-columns:minmax(155px,.88fr) minmax(185px,1fr) minmax(190px,.92fr);gap:36px}.gateway-data-grid{grid-template-columns:1fr}.gateway-route-drawer{width:480px}}
@media(max-width:820px){.gateway-connectors{display:none}.gateway-topology{grid-template-columns:1fr;gap:13px;min-height:auto;padding:20px}.gateway-app-column,.gateway-provider-column{gap:8px}.gateway-core-node{min-height:132px}.gateway-app-node:after,.gateway-core-node:after{display:block;margin:8px auto -21px;color:var(--muted);font-size:18px;content:"↓"}.gateway-fallback-badge{position:static;margin-top:2px}.gateway-route-metrics{grid-template-columns:repeat(2,1fr)!important}.gateway-prediction-flow{flex-wrap:wrap}.gateway-prediction-flow span{min-width:130px}.gateway-route-backdrop{top:72px}.gateway-route-drawer{width:480px;max-width:100vw}}
@media(max-width:640px){body[data-active-page="ai-gateway"] .p2-head-copy h1{font-size:28px}.gateway-control-grid,.gateway-controls-panel .gateway-control-grid{grid-template-columns:repeat(2,1fr)}.gateway-control{min-height:96px}.gateway-simulator{padding:16px}.gateway-route-metrics{grid-template-columns:1fr!important}.gateway-prediction-flow{display:grid;grid-template-columns:1fr}.gateway-prediction-flow>svg{margin:auto;transform:rotate(90deg)}.gateway-route-backdrop{top:0}.gateway-route-drawer{top:0;width:100vw;max-width:none}.gateway-route-steps{overflow-x:auto;grid-template-columns:repeat(5,minmax(92px,1fr))}.gateway-drawer-body{padding:18px}.gateway-form-grid,.gateway-strategy-cards{grid-template-columns:1fr}.gateway-form-grid label.wide{grid-column:auto}.gateway-policy-form label{grid-template-columns:34px 1fr}.gateway-policy-form select{grid-column:1/-1}.gateway-drawer-foot{align-items:stretch;flex-direction:column}.gateway-drawer-foot-actions{display:grid;grid-template-columns:1fr 1fr}.gateway-drawer-foot-actions #gateway-route-next{grid-column:1/-1;grid-row:1}.gateway-drawer-foot-actions #gateway-route-prev,.gateway-drawer-foot-actions #gateway-route-save{grid-row:2}.gateway-review-controls{grid-template-columns:1fr}.gateway-fallback-preview{align-items:stretch;flex-direction:column}.gateway-fallback-preview>svg{margin:auto;transform:rotate(90deg)}}
@media(max-width:430px){.gateway-control-grid,.gateway-controls-panel .gateway-control-grid{grid-template-columns:1fr}.gateway-topology{padding:16px}.gateway-drawer-head{padding:16px}.gateway-route-steps{padding:9px}.gateway-drawer-body{padding:16px}}
@media(prefers-reduced-motion:reduce){.gateway-traffic-dot{display:none}.gateway-node,.gateway-route-drawer,.gateway-route-backdrop{transition:none}}


body[data-active-page="ai-gateway"] .gateway-table .p2-table-head,
body[data-active-page="ai-gateway"] .gateway-table .p2-row,
body[data-active-page="ai-gateway"] .gateway-decisions-table .p2-table-head,
body[data-active-page="ai-gateway"] .gateway-decisions-table .p2-row{column-gap:18px;text-align:left}
body[data-active-page="ai-gateway"] .gateway-table .p2-table-head>span,
body[data-active-page="ai-gateway"] .gateway-table .p2-row>span,
body[data-active-page="ai-gateway"] .gateway-decisions-table .p2-table-head>span,
body[data-active-page="ai-gateway"] .gateway-decisions-table .p2-row>span{min-width:0;text-align:left;justify-self:stretch}


body[data-active-page="ai-gateway"] .gateway-strategy-row>span:nth-child(n+3),
body[data-active-page="ai-gateway"] .gateway-table:has(.gateway-strategy-row) .p2-table-head>span:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}
body[data-active-page="ai-gateway"] .gateway-strategy-row>span:last-child{display:flex;justify-content:flex-end}


body[data-active-page="ai-gateway"] .gateway-provider-health>span:nth-child(n+2),
body[data-active-page="ai-gateway"] .gateway-table:has(.gateway-provider-health) .p2-table-head>span:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
body[data-active-page="ai-gateway"] .gateway-provider-health>span:last-child{display:flex;justify-content:flex-end}


body[data-active-page="ai-gateway"] .gateway-decisions-table .p2-table-head>span:nth-child(n+5),
body[data-active-page="ai-gateway"] .gateway-decision-row>span:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}
body[data-active-page="ai-gateway"] .gateway-decision-row>span:nth-child(-n+4){text-align:left}
body[data-active-page="ai-gateway"] .gateway-decision-row>span:last-child{display:flex;justify-content:flex-end;align-items:center}
body[data-active-page="ai-gateway"] .gateway-decision-row b,
body[data-active-page="ai-gateway"] .gateway-decision-row small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
