/* Scoped API Gateway fixes inside the nested project workspace. */
.gateway-root,.gateway-layout,.gateway-layout>.card{min-width:0}
.gateway-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;align-items:start}
#gateway-policy-form .gateway-check{display:flex;align-items:center;justify-content:flex-start;gap:11px;flex-wrap:nowrap;min-width:0;font-size:13px;color:var(--text);cursor:pointer}
#gateway-policy-form .gateway-check input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;margin:0;accent-color:var(--purple);cursor:pointer}
#gateway-policy-form .gateway-check span{flex:1;min-width:0;line-height:1.5}
#gateway-policy-form .gateway-routes{display:grid;gap:12px;min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:10px}
#gateway-policy-form .gateway-routes legend{padding:0 7px;color:var(--muted);font-size:12px;font-weight:650}
#gateway-policy-form .btn[type=submit]{justify-self:start}
.gateway-usage-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.gateway-usage-stats .stat{min-width:0;padding:15px}
.gateway-usage-stats .stat label{display:block;overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal;line-height:1.4;min-height:2.8em}
.gateway-usage-stats .stat strong{font-size:clamp(22px,2vw,29px);overflow-wrap:normal;word-break:normal}
@media(max-width:390px){.gateway-usage-stats{grid-template-columns:1fr}.gateway-usage-stats .stat label{min-height:0}}
