:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: rgba(15, 22, 34, 0.88);
  --surface-strong: #111a28;
  --surface-soft: #0c131f;
  --line: rgba(151, 174, 205, 0.13);
  --line-strong: rgba(151, 174, 205, 0.24);
  --text: #edf4ff;
  --muted: #8494aa;
  --cyan: #42e8d4;
  --violet: #9a8cff;
  --lime: #a5ef71;
  --amber: #ffc75f;
  --rose: #ff718d;
  --blue: #65a9ff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(41, 118, 143, 0.14), transparent 31rem),
    radial-gradient(circle at 100% 84%, rgba(91, 69, 165, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.13;
  pointer-events: none;
}
.ambient-one { top: -10rem; left: 22%; background: var(--cyan); }
.ambient-two { right: -12rem; bottom: -8rem; background: var(--violet); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.login-panel {
  width: min(100%, 28rem);
  padding: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(18, 28, 43, 0.96), rgba(9, 14, 23, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(140deg, var(--cyan), #4a89ff);
  color: #041015;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 12px 28px rgba(66, 232, 212, 0.22);
}
.brand-mark.small { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; font-size: 0.82rem; }
.eyebrow, .section-kicker {
  margin: 1.6rem 0 0.45rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.login-panel h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.055em; }
.login-copy { color: var(--muted); line-height: 1.6; margin: 0.7rem 0 1.8rem; }
form { display: grid; gap: 0.7rem; }
label { margin-top: 0.45rem; font-size: 0.78rem; font-weight: 700; color: #b6c3d5; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  outline: none;
  color: var(--text);
  background: rgba(5, 10, 17, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(66, 232, 212, 0.1); }
select { width: auto; min-width: 9rem; }
textarea { resize: vertical; min-height: 18rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; }
.primary-button, .secondary-button, .ghost-button {
  border: 0;
  border-radius: 0.8rem;
  font-weight: 800;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
}
.primary-button { margin-top: 0.8rem; padding: 0.95rem; background: var(--cyan); color: #061116; }
.secondary-button { padding: 0.7rem 1rem; color: var(--text); background: #162235; border: 1px solid var(--line-strong); }
.ghost-button { padding: 0.7rem 0.9rem; color: var(--muted); background: transparent; border: 1px solid var(--line); }
button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.form-error { min-height: 1.2rem; margin: 0.2rem 0 0; color: var(--rose); font-size: 0.8rem; }
.security-note { display: flex; align-items: center; gap: 0.55rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.74rem; }
.pulse-dot { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(66,232,212,.3); animation: pulse 2s infinite; }
@keyframes pulse { 60% { box-shadow: 0 0 0 7px rgba(66,232,212,0); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 16rem minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.8);
  backdrop-filter: blur(18px);
}
.sidebar-brand { display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem; }
.sidebar-brand strong { display: block; font-size: 0.9rem; }
.sidebar-brand span { display: block; margin-top: 0.18rem; color: var(--muted); font-size: 0.68rem; }
nav { display: grid; gap: 0.35rem; margin-top: 2.8rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(116, 144, 180, 0.11); }
.nav-glyph { width: 1.3rem; color: var(--cyan); text-align: center; font-size: 1rem; }
.sidebar-foot { margin-top: auto; display: grid; gap: 0.8rem; }
.operator-card { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-items: center; gap: 0.65rem; }
.operator-avatar { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: #1a2a3e; color: var(--cyan); font-weight: 900; }
.operator-card strong, .operator-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-card strong { font-size: 0.75rem; }
.operator-card div span { margin-top: 0.15rem; color: var(--muted); font-size: 0.62rem; }

.workspace { width: 100%; max-width: 112rem; margin: 0 auto; padding: 1.4rem 2rem 2rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.topbar .eyebrow { margin-top: 0; }
.topbar h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -0.045em; }
.page-subtitle { margin: .35rem 0 0; color: var(--muted); font-size: .75rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.8rem; }
.refresh-state { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.72rem; }

.status-banner {
  min-height: 7.2rem;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(66, 232, 212, 0.2);
  border-radius: 1.2rem;
  background: linear-gradient(100deg, rgba(66, 232, 212, 0.085), rgba(15, 22, 34, 0.78) 45%);
  box-shadow: var(--shadow);
}
.status-banner > div:first-child { display: flex; align-items: center; gap: 1rem; }
.status-orb { width: 2.8rem; height: 2.8rem; border: 0.7rem solid rgba(66, 232, 212, 0.14); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 30px rgba(66, 232, 212, 0.35); }
.status-banner .section-kicker { margin-top: 0; }
.status-banner h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.025em; }
.timestamp { text-align: right; }
.timestamp span, .timestamp strong { display: block; }
.timestamp span { color: var(--muted); font-size: 0.68rem; }
.timestamp strong { margin-top: 0.3rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.metric-card {
  position: relative;
  min-height: 8.4rem;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.metric-card::after { content: ""; position: absolute; top: 0; left: 1rem; width: 2.2rem; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.metric-card p { margin: 0; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.metric-card strong { display: block; margin-top: 1rem; font-size: 1.75rem; letter-spacing: -0.05em; }
.metric-card span { display: block; margin-top: 0.45rem; color: #91a1b6; font-size: 0.66rem; }
.accent-cyan { --accent: var(--cyan); }
.accent-violet { --accent: var(--violet); }
.accent-lime { --accent: var(--lime); }
.accent-amber { --accent: var(--amber); }
.accent-blue { --accent: var(--blue); }
.accent-rose { --accent: var(--rose); }

.view { animation: view-in 180ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.product-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.four-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.equal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-link { color: var(--cyan); text-decoration: none; font-size: .7rem; font-weight: 800; }
.count-badge.neutral { color: var(--cyan); background: rgba(66,232,212,.1); }
.rank-list { min-height: 17rem; padding: .75rem 1.1rem; }
.rank-list.compact { min-height: 12rem; }
.rank-item { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-index { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: .55rem; color: var(--cyan); background: rgba(66,232,212,.08); font-size: .64rem; font-weight: 900; }
.rank-label strong, .rank-label span { display: block; }
.rank-label strong { color: var(--text); font-size: .76rem; }
.rank-label span { color: var(--muted); font-size: .63rem; margin-top: .18rem; }
.rank-value { color: #b9c6d8; font-size: .7rem; font-weight: 800; }
.user-cell { min-width: 13rem; }
.user-cell strong, .user-cell span { display: block; }
.user-cell strong { color: var(--text); font-size: .76rem; }
.user-cell span { margin-top: .2rem; color: var(--muted); font-size: .65rem; }
.clickable-row { cursor: pointer; transition: background 150ms ease; }
.clickable-row:hover { background: rgba(66,232,212,.035); }
.filter-bar { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.filter-bar input { max-width: 24rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.pagination div { display: flex; gap: .5rem; }
.coin-cell { display: flex; align-items: center; gap: .7rem; min-width: 13rem; }
.coin-avatar { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: #061116; background: linear-gradient(140deg,var(--cyan),var(--blue)); font-size: .66rem; font-weight: 900; }
.coin-cell strong, .coin-cell span { display: block; }
.coin-cell strong { color: var(--text); }.coin-cell span { color: var(--muted); font-size: .62rem; margin-top: .18rem; }
dialog { width: min(92vw, 42rem); max-height: 84vh; overflow: auto; padding: 1.5rem; color: var(--text); border: 1px solid var(--line-strong); border-radius: 1.2rem; background: #101927; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2,6,12,.75); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: .7rem; right: .8rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; color: var(--muted); background: #1b2738; font-size: 1.25rem; }
.detail-head { padding-right: 2rem; }
.detail-head h2 { margin: 0; font-size: 1.3rem; }.detail-head p { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-top: 1.2rem; }
.detail-stat { padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-soft); }
.detail-stat span, .detail-stat strong { display:block; }.detail-stat span { color: var(--muted); font-size: .62rem; }.detail-stat strong { margin-top:.35rem; font-size:1.1rem; }
.detail-section { margin-top: 1.2rem; }.detail-section h3 { font-size: .76rem; text-transform: uppercase; letter-spacing:.08em; color:#91a1b6; }
.chip-list { display:flex; flex-wrap:wrap; gap:.45rem; }.chip { padding:.38rem .58rem; border-radius:999px; color:#b9c6d8; background:#182437; font-size:.64rem; }
.runtime-tabs { display:flex; gap:.55rem; margin-bottom:1rem; }
.runtime-tab { display:flex; align-items:center; gap:.55rem; padding:.72rem 1rem; border:1px solid var(--line); border-radius:.8rem; color:var(--muted); background:var(--surface-soft); font-size:.74rem; font-weight:800; }
.runtime-tab.active { color:var(--text); border-color:rgba(66,232,212,.32); background:rgba(66,232,212,.08); }
.runtime-tab span { min-width:1.35rem; padding:.14rem .35rem; border-radius:999px; color:var(--cyan); background:rgba(66,232,212,.1); font-size:.62rem; }
.runtime-dialog { width:min(96vw,72rem); }
.runtime-title-row { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.runtime-title-row h2 { margin:0; }
.runtime-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.7rem; margin-top:1.25rem; }
.runtime-summary .detail-stat strong { font-size:1.25rem; }
.runtime-section { margin-top:1.35rem; border:1px solid var(--line); border-radius:.9rem; overflow:hidden; }
.runtime-section-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; background:rgba(5,10,17,.25); }
.runtime-section-head h3 { margin:0; font-size:.82rem; }
.runtime-search { max-width:20rem; padding:.65rem .8rem; }
.status-text { font-size:.68rem; font-weight:900; text-transform:uppercase; }
.status-text.streaming { color:var(--lime); }.status-text.degraded,.status-text.error { color:var(--rose); }.status-text.starting,.status-text.standby { color:var(--amber); }
.symbol-stack { display:flex; flex-wrap:wrap; gap:.3rem; min-width:12rem; max-width:28rem; }
.symbol-chip { padding:.25rem .42rem; border-radius:.4rem; color:#afbdd0; background:#182437; font-size:.58rem; }
.detail-note { margin:.8rem 0 0; color:var(--muted); font-size:.66rem; line-height:1.5; }
.adapter-list { display:flex; gap:.4rem; flex-wrap:wrap; }
.settings-panel { max-width:72rem; }
.settings-form { padding:1.35rem; gap:1rem; }
.settings-copy { padding:1rem 1.1rem; border:1px solid rgba(66,232,212,.16); border-radius:.9rem; background:rgba(66,232,212,.045); }
.settings-copy h3 { margin:0; font-size:.9rem; }.settings-copy p { margin:.45rem 0 0; color:var(--muted); font-size:.72rem; line-height:1.6; }
.locale-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.locale-grid label { display:grid; gap:.45rem; }
.field-hint { margin-left:.4rem; color:var(--muted); font-size:.65rem; font-weight:500; }
.settings-actions { display:flex; align-items:center; gap:.8rem; justify-content:flex-end; }
.settings-actions .primary-button { margin:0; padding:.8rem 1rem; }
.form-message { min-height:1.2rem; margin:0 auto 0 0; color:var(--muted); font-size:.72rem; }
.form-message.success { color:var(--lime); }.form-message.error { color:var(--rose); }
.coin-picker { display:grid; gap:.65rem; }
.coin-search-wrap { position:relative; }
.coin-search-results { position:absolute; z-index:20; top:calc(100% + .4rem); left:0; right:0; max-height:20rem; overflow:auto; border:1px solid var(--line-strong); border-radius:.8rem; background:#101927; box-shadow:var(--shadow); }
.coin-search-item { width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem .9rem; border:0; border-bottom:1px solid var(--line); color:var(--text); background:transparent; text-align:left; }
.coin-search-item:last-child { border-bottom:0; }.coin-search-item:hover { transform:none; background:rgba(66,232,212,.06); }
.coin-search-item strong,.coin-search-item span { display:block; }.coin-search-item span { margin-top:.18rem; color:var(--muted); font-size:.63rem; }
.coin-search-item > em { color:var(--cyan); font-style:normal; font-size:.65rem; font-weight:800; }
.selected-coins-head { display:flex; justify-content:space-between; gap:1rem; margin-top:.5rem; }.selected-coins-head strong { font-size:.76rem; }.selected-coins-head span { color:var(--muted); font-size:.65rem; }
.selected-coins { min-height:8rem; display:flex; align-content:flex-start; flex-wrap:wrap; gap:.5rem; padding:.8rem; border:1px solid var(--line); border-radius:.8rem; background:rgba(5,10,17,.4); }
.selected-coin { display:inline-flex; align-items:center; gap:.45rem; height:2rem; padding:0 .35rem 0 .65rem; border:1px solid rgba(66,232,212,.15); border-radius:.65rem; color:#c9d7e8; background:rgba(66,232,212,.06); font-size:.67rem; font-weight:800; }
.selected-coin button { width:1.35rem; height:1.35rem; padding:0; border:0; border-radius:.4rem; color:var(--muted); background:rgba(255,255,255,.05); }.selected-coin button:hover { color:var(--rose); transform:none; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr); gap: 1rem; margin-top: 1rem; }
.panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.panel-head { padding: 1.2rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.panel-head .section-kicker { margin-top: 0; }
.panel-head h2 { margin: 0; font-size: 1rem; letter-spacing: -0.015em; }
.legend, .topology-summary { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.67rem; }
.legend i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--cyan); }
.traffic-panel canvas { width: 100%; min-height: 13.75rem; padding: 1rem; display: block; }
.chart-foot { padding: 0.7rem 1.25rem 1rem; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.68rem; }
.chart-foot strong { color: #b9c6d8; }
.count-badge { min-width: 1.8rem; height: 1.8rem; padding: 0 0.5rem; display: grid; place-items: center; border-radius: 0.65rem; background: rgba(255,113,141,.12); color: var(--rose); font-size: 0.75rem; font-weight: 900; }
.issue-list { min-height: 16rem; max-height: 19rem; overflow: auto; padding: 0.75rem; }
.issue-item { padding: 0.8rem; margin-bottom: 0.55rem; border: 1px solid rgba(255,113,141,.14); border-radius: 0.75rem; background: rgba(255,113,141,.045); color: #c7d2e2; font-size: 0.72rem; line-height: 1.45; overflow-wrap: anywhere; }
.empty-state { min-height: 14rem; display: grid; place-items: center; align-content: center; gap: 0.6rem; color: var(--muted); text-align: center; }
.empty-state span { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(165,239,113,.1); color: var(--lime); }
.empty-state p { margin: 0; font-size: 0.78rem; }

.topology-panel { margin-top: 1rem; scroll-margin-top: 1rem; }
.topology-summary { gap: 1rem; }
.topology-summary span { display: flex; align-items: center; gap: 0.4rem; }
.ready-dot, .standby-dot { width: 0.46rem; height: 0.46rem; border-radius: 50%; background: var(--lime); }
.standby-dot { background: var(--amber); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
th { padding: 0.8rem 1.2rem; color: #74859c; font-size: 0.62rem; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; background: rgba(5,10,17,.3); }
td { padding: 0.95rem 1.2rem; border-top: 1px solid var(--line); color: #b7c4d5; }
.service-cell { display: flex; align-items: center; gap: 0.65rem; color: var(--text); font-weight: 800; text-transform: uppercase; }
.service-icon { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 0.55rem; background: #172235; color: var(--cyan); font-size: 0.68rem; }
.instance-id { max-width: 12rem; display: block; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #9badc3; }
.state-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.5rem; border-radius: 999px; background: rgba(165,239,113,.08); color: var(--lime); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.state-pill.standby { color: var(--amber); background: rgba(255,199,95,.08); }
.state-pill.error { color: var(--rose); background: rgba(255,113,141,.08); }
.loading-cell { height: 7rem; color: var(--muted); text-align: center; }
.workspace-footer { padding: 1.1rem 0 0.2rem; display: flex; justify-content: space-between; color: #596a80; font-size: 0.65rem; }

body.status-degraded .status-banner { border-color: rgba(255,199,95,.26); background: linear-gradient(100deg, rgba(255,199,95,.08), rgba(15,22,34,.78) 45%); }
body.status-degraded .status-orb { background: var(--amber); border-color: rgba(255,199,95,.14); box-shadow: 0 0 30px rgba(255,199,95,.28); }
body.status-critical .status-banner { border-color: rgba(255,113,141,.28); background: linear-gradient(100deg, rgba(255,113,141,.09), rgba(15,22,34,.78) 45%); }
body.status-critical .status-orb { background: var(--rose); border-color: rgba(255,113,141,.14); box-shadow: 0 0 30px rgba(255,113,141,.3); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { margin: 0 0 0 auto; display: flex; }
  .sidebar-foot { margin: 0; display: flex; align-items: center; }
  .operator-card { display: none; }
  .content-grid { grid-template-columns: 1fr; }
	.equal-grid { grid-template-columns: 1fr; }
  .issues-panel { min-height: auto; }
}
@media (max-width: 640px) {
  .workspace { padding: 1rem; }
  .sidebar { padding: 0.75rem 1rem; }
  .sidebar-brand div:last-child, .nav-link { font-size: 0; }
  .nav-link { padding: 0.6rem; }
  .nav-glyph { font-size: 1rem; }
  .ghost-button { font-size: 0.68rem; }
  .topbar { align-items: flex-end; }
  .refresh-state { display: none; }
  .status-banner { align-items: flex-start; }
  .timestamp { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-metrics, .four-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.filter-bar { align-items: stretch; flex-direction: column; }
	.filter-bar input, .filter-bar select { width:100%; max-width:none; }
	.detail-grid { grid-template-columns: 1fr; }
	.runtime-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.locale-grid { grid-template-columns:1fr; }
  .metric-card { min-height: 7.5rem; }
  .panel-head { align-items: flex-start; }
  .legend, .topology-summary { display: none; }
  .workspace-footer { display: grid; gap: 0.35rem; }
}
