/* The native contents remain in the React tree and are restored on route exit. */
[data-rw-catalog-view] > :not(.rwc) { display: none !important; }
.rwc { display:grid; min-inline-size:0; gap:16px; padding:4px 0 20px; color:var(--foreground); }
.rwc [hidden] { display:none !important; }
.rwc-header { min-inline-size:0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; border:1px solid var(--rw-line,var(--border)); border-radius:16px; padding:clamp(16px,3vw,27px); background:radial-gradient(ellipse at 85% 5%,var(--rw-backdrop-glow,transparent),transparent 70%),var(--card); }
.rwc-header h2 { font-size:clamp(24px,3.25vw,38px); font-weight:680; line-height:1.14; letter-spacing:-.045em; margin:5px 0 8px; }
.rwc-header small { color:var(--rw-blue,var(--info)); font:600 10px/1.4 ui-monospace,monospace; letter-spacing:.13em; }
.rwc-header p,.rwc-note { color:var(--muted-foreground); font-size:13px; line-height:1.65; margin:0; overflow-wrap:anywhere; }
.rwc-actions,.rwc-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-inline-size:0; }
.rwc-button,.rwc-switch button { min-block-size:37px; display:inline-flex; justify-content:center; align-items:center; gap:6px; border:1px solid var(--rw-line,var(--border)); border-radius:9px; background:var(--card); color:var(--foreground); font-size:13px; line-height:1.4; padding:6px 11px; text-align:start; font-weight:550; text-decoration:none; cursor:pointer; }
.rwc-button:hover:not(:disabled),.rwc-switch button:hover { background:var(--accent); }
.rwc-button:disabled { cursor:progress; opacity:.65; }
.rwc-button:focus-visible,.rwc-switch button:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
.rwc-filters { background:var(--card); border:1px solid var(--rw-line,var(--border)); border-radius:14px; padding:10px; box-shadow:0 7px 25px #0001; }
.rwc-search { display:flex; min-inline-size:min(220px,100%); flex:1 1 260px; align-items:center; gap:8px; padding:0 11px; border:1px solid var(--rw-line,var(--border)); border-radius:9px; background:var(--rw-lowered,var(--background)); color:var(--muted-foreground); }
.rwc-search:focus-within { outline:2px solid var(--ring); outline-offset:1px; }
.rwc-search span { font-size:19px; line-height:1; }
.rwc-search input { width:100%; min-width:0; block-size:36px; padding:0; border:0; background:transparent; color:var(--foreground); font:inherit; font-size:13px; outline:0; }
.rwc-search input::placeholder { color:var(--muted-foreground); }
.rwc-switch { display:flex; align-items:center; gap:2px; border-radius:9px; border:1px solid var(--rw-line,var(--border)); padding:2px; background:var(--rw-lowered,var(--background)); }
.rwc-switch button { border-color:transparent; min-block-size:31px; }
.rwc-switch button[aria-pressed="true"] { background:var(--accent); color:var(--accent-foreground); }
.rwc-filters select { max-inline-size:min(195px,100%); }
.rwc-meta { min-block-size:18px; color:var(--muted-foreground); font-size:12px; font-variant-numeric:tabular-nums; }
.rwc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; }
.rwc-card { min-inline-size:0; border-radius:13px; padding:16px; background:var(--card); border:1px solid var(--rw-line,var(--border)); box-shadow:0 5px 22px #0001; }
.rwc-row { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:9px; }
.rwc-model-info { min-inline-size:0; flex:1 1 88px; max-inline-size:100%; text-align:start; }
.rwc-model-info strong { display:block; font-size:15px; line-height:1.35; font-weight:650; overflow-wrap:anywhere; }
.rwc-model-info small { display:block; margin-top:3px; color:var(--muted-foreground); font-size:12px; overflow-wrap:anywhere; }
.rwc-badge,.rwc-tag { font-size:11px; line-height:1.35; display:inline-flex; align-items:center; gap:5px; border-radius:100px; padding:3px 8px; border:1px solid var(--rw-line,var(--border)); background:var(--muted); color:var(--muted-foreground); overflow-wrap:anywhere; }
.rwc-tags { display:flex; gap:4px; flex-wrap:wrap; margin-top:14px; }
.rwc-tags:empty { display:none; }
.rwc-live { color:var(--rwc-status,var(--muted-foreground)); }
.rwc-live i { width:7px; height:7px; flex:none; border-radius:50%; background:currentColor; }
.rwc-monitor[data-rwc-status="1"] { --rwc-status:var(--success,#4dca9b); }
.rwc-monitor[data-rwc-status="0"] { --rwc-status:var(--destructive,#ff6b79); }
.rwc-monitor[data-rwc-status="2"] { --rwc-status:var(--warning,#e1b669); }
.rwc-monitor[data-rwc-status="3"] { --rwc-status:var(--info,#8ab4fd); }
.rwc-rate { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px; margin-block:16px 6px; color:var(--muted-foreground); font-size:12px; }
.rwc-rate strong { font-size:16px; font-weight:660; color:var(--foreground); font-variant-numeric:tabular-nums; }
.rwc-monitor progress { display:block; width:100%; height:6px; accent-color:var(--rwc-status,var(--primary)); }
.rwc-table { border:1px solid var(--rw-line,var(--border)); border-radius:13px; overflow:auto; max-inline-size:100%; }
.rwc-table table { border-collapse:collapse; inline-size:100%; min-inline-size:440px; background:var(--card); }
.rwc-table th,.rwc-table td { padding:11px 14px; border-block-end:1px solid var(--rw-hairline,var(--border)); text-align:start; vertical-align:middle; font-size:13px; }
.rwc-table thead th { color:var(--muted-foreground); font-weight:550; }
.rwc-table tr:last-child td,.rwc-table tbody tr:last-child th { border-block-end:0; }
.rwc-table .rwc-tag { margin:2px; }
.rwc-more { margin-top:12px; }
.rwc-empty { margin:0; border:1px solid var(--rw-line,var(--border)); border-radius:13px; padding:24px; background:var(--card); color:var(--muted-foreground); text-align:center; }
.rwc[data-rwc-view="status"] .rwc-header {border:0;background:none;padding-inline:0}
.rwc-status-vendors,.rwc-status-badges {display:flex;flex-wrap:wrap;gap:6px}
.rwc-status-vendors .rwc-button[aria-pressed="true"],.rwc-actions .rwc-button[aria-pressed="true"] {background:var(--accent);color:var(--accent-foreground);border-color:var(--rw-blue,var(--ring))}
.rwc-status-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,22px)}
.rwc-status-grid .rwc-card {padding:clamp(14px,1.8vw,25px);border-radius:16px}
.rwc-status-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}
.rwc-status-metrics>div {padding:9px;border-radius:9px;border:1px solid var(--rw-line,var(--border));background:var(--rw-lowered,var(--background));font-size:12px;color:var(--muted-foreground);overflow-wrap:anywhere}
.rwc-status-metrics strong {display:block;font-size:clamp(17px,2vw,25px);color:var(--foreground);font-variant-numeric:tabular-nums}
.rwc-status-history {border-top:1px solid var(--rw-line,var(--border));margin-top:11px;padding-top:9px;color:var(--muted-foreground);font-size:12px}
.rwc-status-bars {display:flex;gap:3px;margin-top:7px;direction:ltr}
.rwc-status-bars span {height:15px;min-width:2px;max-width:14px;flex:1;border-radius:2px;background:var(--success,#20886e)}
.rwc-status-bars [data-level="warn"] {background:#ba8022}.rwc-status-bars [data-level="bad"] {background:#b64b58}
.rwc-live[data-rwc-status="1"] {--rwc-status:var(--success,#20886e)}
.rwc-live[data-rwc-status="0"] {--rwc-status:var(--destructive,#b64b58)}
.rwc-live[data-rwc-status="2"] {--rwc-status:var(--warning,#ba8022)}
.rwc-live[data-rwc-status="3"] {--rwc-status:var(--info,#467ed1)}
@media(max-width:640px){.rwc-status-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:540px) {
  .rwc { gap:12px; }
  .rwc-filters { align-items:stretch; }
  .rwc-header h2 { letter-spacing:-.025em; }
  .rwc-search { flex-basis:100%; }
  .rwc-filters select { flex:1 1 120px; min-inline-size:0; max-inline-size:100%; }
}
