.gateway-page {display:grid;gap:20px;min-width:0}
.gateway-page>.page-head {margin:0;min-width:0}
.gateway-page h2 {font-size:16px;font-weight:600;line-height:24px}
.gateway-page h3 {font-size:14px;font-weight:600;line-height:22px}
.gateway-page p {line-height:22px}
.gateway-page .stat {min-height:112px;align-items:flex-start}
.gateway-page .stat .stat-icon {margin-top:4px}
.gateway-page .stat:first-child {border-color:var(--primary-border)}
.gateway-page .stat:first-child strong {color:var(--primary-ink)}
.gateway-page .gateway-latency .stat-icon {background:#ecfdf3;color:var(--green)}
.gateway-page .gateway-latency strong {color:var(--green)}
.gateway-page .gateway-latency .stat-icon>.icon {color:var(--green)}
.gateway-page .blue-stat .stat-icon>.icon {color:var(--primary)}
.gateway-page .gateway-latency .stat-status {font-size:26px}
.gateway-section {min-width:0;padding:20px;background:var(--surface);border-bottom:1px solid var(--line)}
.gateway-section-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.gateway-section-head p,.gateway-info-heading p {margin-top:8px;font-size:13px;color:var(--muted)}
.gateway-source {margin-top:4px;color:var(--muted);font-size:12px}
.gateway-instance-filters {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}
.gateway-counts {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gateway-offline-filter {display:flex;align-items:center;gap:9px;font-size:12px;cursor:pointer}
.gateway-instance-list {display:grid;gap:12px}
.gateway-instance-item {display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:6px;min-width:0}
.gateway-instance-icon,.gateway-info-heading>span {display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--primary-border);border-radius:6px;background:var(--primary-soft);color:var(--primary)}
.gateway-instance-icon>.icon,.gateway-info-heading>span>.icon {width:22px;height:22px}
.gateway-instance-icon.offline {background:#fffbeb;color:var(--amber);border-color:#f5dfb3}
.gateway-instance-content {flex:1;min-width:0}
.gateway-instance-address {display:block;font-size:15px;line-height:24px;color:var(--ink);overflow-wrap:anywhere}
.gateway-instance-content p,.gateway-instance-content small {font-size:12px;color:var(--muted)}
.gateway-instance-state {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:5px 0;font-size:12px;color:var(--muted)}
.gateway-instance-identity {display:flex;align-items:baseline;gap:4px;margin:5px 0;font-size:12px;line-height:20px;color:var(--muted)}
.gateway-instance-identity>span {flex-shrink:0}
.gateway-instance-identity code {min-width:0;overflow-wrap:anywhere}
.gateway-instance-heartbeat {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:7px 0;font-size:12px;line-height:20px;color:var(--muted)}
.gateway-instance-heartbeat time {white-space:nowrap}
.gateway-information {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--surface)}
.gateway-information>.gateway-section:first-child {border-right:1px solid var(--line)}
.gateway-info-heading {display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.gateway-entry-steps {list-style:none;padding:0;margin:0;counter-reset:entry}
.gateway-entry-steps li {display:flex;gap:12px;min-width:0;margin:0 0 18px;counter-increment:entry}
.gateway-entry-steps li::before {content:counter(entry);display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:var(--primary-soft);color:var(--primary-ink);font-size:12px;font-weight:600}
.gateway-entry-steps li>div {min-width:0;flex:1}
.gateway-entry-steps h3 {margin-bottom:8px}
.gateway-root,.gateway-example {display:block;padding:12px;font-size:12px;line-height:20px;overflow-wrap:anywhere;white-space:normal;border-radius:4px}
.gateway-root {background:var(--graphite);color:#f2f4f7}
.gateway-example {background:var(--surface-subtle);border:1px solid var(--line);color:var(--text)}
.gateway-entry-actions {display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 18px}
.gateway-routing-note {padding:16px 0 0;border-top:1px solid var(--line)}
.gateway-routing-note h3 {margin:8px 0 6px}
.gateway-routing-note p {font-size:13px;color:var(--muted)}
.gateway-routing-note a {display:inline-flex;align-items:center;gap:4px;margin-top:8px;font-size:13px;color:var(--primary-ink)}
.gateway-protocol-list {padding:0;margin:0;list-style:none}
.gateway-protocol-list li {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);min-height:84px}
.gateway-protocol-list li:first-child {padding-top:0}
.gateway-protocol-list li:last-child {border-bottom:0}
.gateway-protocol-list li>div {min-width:0}
.gateway-protocol-list strong {display:block;font-size:13px;line-height:22px;overflow-wrap:anywhere}
.gateway-protocol-list small {display:block;font-size:12px;line-height:20px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.gateway-routes .table-wrap,.gateway-virtual .table-wrap {margin-top:20px}
.gateway-route-table {table-layout:fixed;min-width:1000px}
.gateway-route-table th:nth-child(1) {width:17%}
.gateway-route-table th:nth-child(2) {width:17%}
.gateway-route-table th:nth-child(3) {width:138px}
.gateway-route-table th:nth-child(4) {width:88px}
.gateway-route-table th:nth-child(5) {width:72px}
.gateway-route-table th:nth-child(7) {width:64px;text-align:center}
.gateway-route-table td {font-size:13px}
.gateway-route-table tbody tr:nth-child(even) {background:var(--surface-subtle)}
.gateway-server-key {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 7px;border-radius:4px;background:var(--primary-soft);color:var(--primary-ink);font-size:12px}
.gateway-service-name {overflow:hidden;text-overflow:ellipsis}
.gateway-service-name a {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.gateway-service-name a:hover {color:var(--primary-ink)}
.gateway-route-url {display:flex;align-items:center;gap:6px;min-width:0}
.gateway-route-url code {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.gateway-route-url .icon-btn,.gateway-route-actions .icon-btn {width:26px;height:26px;background:transparent;border:0}
.gateway-route-actions {display:flex;align-items:center;justify-content:center}
.gateway-health {font-size:12px}
.gateway-health.healthy {color:var(--green)}
.gateway-health.unhealthy {color:var(--red)}
.gateway-page .pager {margin-top:16px}
.gateway-virtual .empty {min-height:110px}
.gateway-guide-notes {min-width:0;border-top:1px solid var(--line)}
.gateway-guide-notes>summary {padding:18px 20px;font-size:15px;font-weight:600;line-height:24px;color:var(--primary-ink);cursor:pointer}
.gateway-guide-notes>summary:focus-visible {outline:2px solid var(--primary-focus);outline-offset:-2px}
.gateway-guide-content {min-width:0;padding:0 0 20px}
.gateway-guide-content .codeblock {white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:1250px) {
  .gateway-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px) {
  .gateway-information {grid-template-columns:1fr}
  .gateway-information>.gateway-section:first-child {border-right:0}
}
@media (max-width:760px) {
  .gateway-page {gap:14px}
  .gateway-page>.page-head {flex-direction:column;align-items:flex-start;gap:14px}
  .gateway-page>.page-head .head-actions {flex-wrap:wrap;gap:8px}
  .gateway-page>.page-head .subline {font-size:13px}
  .gateway-stats {gap:10px}
  .gateway-page .stat,.gateway-page .stat:first-child {padding:12px;gap:8px;min-height:124px}
  .gateway-page .stat .stat-icon {width:28px;height:28px}
  .gateway-page .stat .stat-icon>.icon {width:17px;height:17px}
  .gateway-page .stat .stat-label {font-size:12px}
  .gateway-page .stat strong,.gateway-page .gateway-latency .stat-status {font-size:23px;line-height:30px}
  .gateway-page .stat strong.stat-status {font-size:18px}
  .gateway-page .stat small {font-size:11px;line-height:18px}
  .gateway-section {padding:16px 14px}
  .gateway-section-head {gap:10px;flex-wrap:wrap}
  .gateway-instance-filters {margin:14px 0}
  .gateway-instance-item {display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px}
  .gateway-instance-icon {width:32px;height:32px;flex-basis:32px}
  .gateway-instance-item>.gateway-instance-icon {align-self:start}
  .gateway-instance-item>.badge {grid-column:2;justify-self:start;margin:0}
  .gateway-instance-address {font-size:13px}
  .gateway-instance-state {align-items:flex-start}
  .gateway-info-heading {gap:10px}
  .gateway-info-heading>span {width:32px;height:32px;flex-basis:32px}
  .gateway-info-heading p {font-size:12px}
  .gateway-entry-steps li {gap:8px}
}
@media (max-width:380px) {
  .gateway-page .stat {flex-direction:column;gap:5px}
  .gateway-page .stat .stat-icon {margin:0}
}
