:root {
  --magenta: #E20074;
  --ink: #120f16;
  --panel: #1c1721;
  --panel-2: #261f2d;
  --paper: #f7f2f8;
  --text: #f4eef5;
  --muted: #b7aebf;
  --edge: rgba(255,255,255,0.09);
  --good: #4ade80;
  --warn: #facc15;
  --bad: #fb7185;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top left, rgba(226,0,116,0.22), transparent 38%), linear-gradient(135deg, #0f0b13, #1d1822 52%, #140f19); color: var(--text); font-family: "Space Grotesk", sans-serif; }
a { color: inherit; text-decoration: none; }
.shell-nav { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 280px; padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; background: linear-gradient(180deg, rgba(28,23,33,0.96), rgba(15,11,19,0.96)); border-right: 1px solid var(--edge); transition: transform 220ms ease; }
.shell-nav-toggle { position: fixed; top: 18px; left: 226px; z-index: 31; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,0.16); border-radius: 11px; background: rgba(255,255,255,0.055); color: white; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.24); transition: left 220ms ease, background 160ms ease, border-color 160ms ease; }
.shell-nav-toggle-icon { width: 18px; display: grid; gap: 4px; }
.shell-nav-toggle-icon span { display: block; height: 2px; border-radius: 999px; background: currentColor; }
.shell-nav-toggle:hover { background: rgba(226,0,116,0.3); border-color: rgba(255,158,208,0.65); }
.shell-nav-toggle:focus-visible { outline: 3px solid rgba(255,158,208,0.55); outline-offset: 3px; }
body.nav-collapsed .shell-nav { transform: translateX(-100%); }
body.nav-collapsed .shell-nav-toggle { left: 18px; }
.brand-lockup { display: grid; gap: 12px; align-items: start; padding-top: 32px; }
.brand-mark { display: block; width: min(100%, 210px); height: auto; }
.brand-lockup h1 { margin: 0; font-size: 1rem; line-height: 1.2; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: #ff9ed0; }
.shell-nav nav { display: grid; gap: 8px; }
.shell-nav nav a { padding: 12px 14px; border-radius: 14px; color: var(--muted); }
.shell-nav nav a.active, .shell-nav nav a:hover { background: rgba(226,0,116,0.12); color: white; }
.user-panel { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--edge); }
.user-panel p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.app-main { margin-left: 280px; padding: 28px; transition: margin-left 220ms ease; }
body.nav-collapsed .app-main { margin-left: 0; padding-top: 76px; }
.auth-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.dashboard-status { margin: -8px 0 18px; color: var(--muted); font-size: 0.9rem; }
.dashboard-status.good { color: #9ef0ba; }
.dashboard-status.warn { color: #ffe999; }
.page-head h2 { margin: 0; font-size: 2rem; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
select, input { min-width: 180px; background: rgba(28,23,33,0.96); border: 1px solid var(--edge); color: var(--text); border-radius: 14px; padding: 12px 14px; font-family: inherit; }
select option { background: #1c1721; color: var(--text); }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(2); cursor: pointer; }
.card { background: linear-gradient(180deg, rgba(38,31,45,0.96), rgba(23,19,28,0.96)); border: 1px solid var(--edge); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.24); }
.card h3 { margin-top: 0; }
.primary-button, .ghost-button { border-radius: 999px; padding: 12px 18px; font-family: inherit; font-weight: 700; cursor: pointer; }
.primary-button { background: var(--magenta); border: none; color: white; }
.ghost-button { background: transparent; border: 1px solid rgba(255,255,255,0.16); color: white; }
.login-shell { width: min(720px, 100%); display: grid; grid-template-columns: 1fr; justify-items: center; }
.login-panel, .login-aside { border-radius: 28px; padding: 32px; background: linear-gradient(180deg, rgba(28,23,33,0.96), rgba(17,13,21,0.96)); border: 1px solid var(--edge); }
.login-panel-centered { width: 100%; }
.login-logo { display: block; width: min(100%, 360px); height: auto; }
.login-panel { text-align: center; }
.login-panel h2 { margin: 10px 0 8px; font-size: 2.4rem; }
.login-logo { margin-inline: auto; }
.lede { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.stack-form { text-align: left; }
.stack-form { display: grid; gap: 14px; margin-top: 20px; }
.stack-form label { display: grid; gap: 8px; }
.error-text { color: #ff93c7; min-height: 1.2em; }
.credential-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.credential-list li { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.04); border-radius: 16px; }
.chart-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.reports-page-head { margin-bottom: 14px; }
.reports-filter-card { margin-bottom: 22px; }
.reports-filter-head { margin-bottom: 16px; }
.report-toolbar { align-items: stretch; }
.report-toolbar select, .report-toolbar input { min-width: 170px; }
.report-toolbar .primary-button { min-width: 150px; }
.report-zoom-actions { gap: 8px; }
.chart-zoom-button { padding: 8px 12px; min-width: auto; }
.chart-zoom-button:disabled { opacity: 0.45; cursor: not-allowed; }
.report-throughput-unit-toggle { margin-right: 4px; }
.chart-canvas-shell { position: relative; }
.chart-canvas-shell canvas { cursor: crosshair; }
.chart-canvas-shell.is-dragging canvas { cursor: crosshair; }
.chart-drag-overlay { position: absolute; border-radius: 12px; border: 1px solid rgba(255,255,255,0.26); background: rgba(226,0,116,0.16); box-shadow: inset 0 0 0 1px rgba(226,0,116,0.18); pointer-events: none; z-index: 2; }
.report-window-panel { margin: 14px 0 0; }
.reports-status { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.reports-status.good { color: #9ef0ba; }
.reports-status.warn { color: #ffe999; }
.reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card canvas { width: 100% !important; height: 260px !important; }
.chart-card-wide { grid-column: 1 / -1; }
.chart-window-card { padding-top: 14px; padding-bottom: 14px; }
.chart-window-card[hidden] { display: none !important; }
.chart-window-panel { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.chart-window-panel[hidden] { display: none !important; }
.chart-window-panel span { min-width: 220px; color: var(--muted); font-size: 0.82rem; }
.throughput-window-panel { margin: 14px 0 0; }
.chart-scrollbar { min-width: 0; width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--magenta) rgba(255,255,255,0.14); }
.chart-scrollbar-content { height: 1px; min-width: 100%; }
.chart-scrollbar::-webkit-scrollbar { height: 12px; }
.chart-scrollbar::-webkit-scrollbar-track { background: rgba(255,255,255,0.14); border-radius: 999px; }
.chart-scrollbar::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 999px; }
.chart-scrollbar::-webkit-scrollbar-thumb:hover { background: #ff2e98; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 10px 0 14px; min-height: 28px; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend-toggle { width: 18px; height: 18px; border-radius: 5px; border: 2px solid currentColor; background: currentColor; padding: 0; cursor: pointer; box-shadow: none; }
.chart-legend-toggle.is-line-sample { position: relative; width: 34px; height: 18px; border: none; border-radius: 0; background: transparent; }
.chart-legend-toggle.is-line-sample::before { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; border-top: 4px solid currentColor; transform: translateY(-50%); }
.chart-legend-toggle.is-dashed-line::before { border-top-style: dashed; }
.chart-legend-toggle.is-hidden { background: transparent; opacity: 0.55; }
.chart-legend-label { color: var(--muted); font-size: 0.82rem; line-height: 1; user-select: none; pointer-events: none; }
.chart-legend-label.is-hidden { opacity: 0.55; }
.device-selector-shell { margin-bottom: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head p { margin: 8px 0 0; color: var(--muted); }
.chart-card-head { margin-bottom: 18px; align-items: center; }
.chart-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.segmented-control { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.segmented-button { border: none; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.segmented-button.active { background: rgba(226,0,116,0.18); color: white; box-shadow: inset 0 0 0 1px rgba(226,0,116,0.35); }
.selector-card-head { align-items: center; }
.section-toggle { min-width: 110px; white-space: nowrap; }
.title-with-info { display: inline-flex; align-items: center; gap: 2px; }
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  position: relative;
  vertical-align: middle;
}
.info-icon:hover, .info-icon:focus-visible {
  color: white;
  border-color: var(--magenta);
  background: rgba(226,0,116,0.18);
  outline: none;
}
.info-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1c1721;
  border: 1px solid var(--edge);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 5;
}
.info-icon:hover::after, .info-icon:focus-visible::after { opacity: 1; }
.selector-panel[hidden] { display: none !important; }
.dashboard-live-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.04); }
.dashboard-live-actions[hidden] { display: none !important; }
.dashboard-live-actions h4 { margin: 0; }
.dashboard-live-actions p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.dashboard-live-actions .primary-button { white-space: nowrap; }
.device-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.selector-item { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(255,255,255,0.04); display: flex; gap: 10px; align-items: start; }
.selector-item input { min-width: 0; width: auto; }
.device-card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); align-items: start; }
.device-card { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.device-card.is-br2-pro, .device-card.is-br1-pro { grid-template-columns: 240px 1fr; }
.device-card-side { display: grid; gap: 10px; align-content: start; }
.device-card-visual { border-radius: 20px; background: linear-gradient(180deg, rgba(22,18,27,0.96), rgba(17,13,21,0.96)); border: 1px solid rgba(255,255,255,0.05); padding: 14px; min-height: 130px; display: grid; place-items: center; overflow: hidden; }
.device-card img { width: 100%; max-height: 110px; object-fit: contain; border-radius: 18px; background: transparent; }
.device-card-visual.is-br2-pro, .device-card-visual.is-br1-pro { background: transparent !important; border: none !important; box-shadow: none; padding: 0; min-height: 0; display: grid; place-items: center; overflow: visible; }
.device-card-visual.is-br2-pro img, .device-card-visual.is-br1-pro img { display: block; width: 100%; height: 132px; max-height: 132px; border-radius: 0; object-fit: contain; background: transparent; }
.device-card.is-br2-pro .device-card-indicator, .device-card.is-br1-pro .device-card-indicator { width: 100%; }
.device-card-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--edge); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.device-card-indicator.good { color: #9ef0ba; background: rgba(76, 196, 128, 0.12); }
.device-card-indicator.bad { color: #ffb3c1; background: rgba(255, 99, 132, 0.12); }
.device-card-indicator-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.device-card-content { min-width: 0; }
.device-card-head { display: flex; gap: 12px; align-items: start; }
.device-card-head h3 { margin: 0; }
.device-card-timestamp { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.device-probe-banner { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #f6edf6; text-decoration: none; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.device-probe-banner:hover { background: rgba(226,0,116,0.14); border-color: rgba(226,0,116,0.32); transform: translateY(-1px); }
.device-probe-banner-placeholder { cursor: default; pointer-events: none; }
.device-probe-banner-placeholder:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); transform: none; }
.device-probe-banner-arrow { color: #ff9cd0; font-size: 0.8rem; }
.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.metric-pill { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,0.05); }
.metric-pill span { display: block; color: var(--muted); font-size: 0.76rem; }
.metric-pill strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.connection-list { display: grid; gap: 10px; }
.connection-card { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); }
.connection-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.badge.good { background: rgba(74,222,128,0.16); color: #9ef0ba; }
.badge.bad { background: rgba(251,113,133,0.16); color: #ffc0c9; }
.badge.warn { background: rgba(250,204,21,0.16); color: #ffe999; }
.badge.magenta { background: rgba(226,0,116,0.16); color: #E20074; border: 1px solid rgba(226,0,116,0.35); }
.speedfusion-panel { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(226,0,116,0.1); }
.dashboard-live-card { grid-template-columns: 240px 1fr; grid-template-rows: 190px auto auto auto; grid-template-areas: "side header" "metrics metrics" "connections connections" "speedfusion speedfusion"; align-items: start; align-content: start; align-self: start; }
.dashboard-live-card.is-br2-pro, .dashboard-live-card.is-br1-pro { grid-template-columns: 240px 1fr; }
.dashboard-live-card .device-card-side { grid-area: side; align-self: start; grid-template-rows: 132px auto; }
.dashboard-live-card .device-card-visual { min-height: 132px; background: transparent; border: none; padding: 0; }
.dashboard-live-header { grid-area: header; align-self: start; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-start; }
.dashboard-live-metrics { grid-area: metrics; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; min-height: 172px; align-content: start; }
.dashboard-live-metrics .metric-pill { min-height: 78px; display: flex; flex-direction: column; justify-content: center; }
.dashboard-live-connections { grid-area: connections; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; align-content: start; align-self: start; grid-auto-rows: 1fr; }
.dashboard-live-connections .connection-card { height: 100%; display: flex; flex-direction: column; }
.dashboard-live-speedfusion { grid-area: speedfusion; margin-top: 0; }
.map-shell { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; min-height: 70vh; align-items: start; }
#fleet-map, #bus-map { height: 70vh; min-height: 520px; border-radius: 24px; overflow: hidden; border: 1px solid var(--edge); }
.map-detail-list { display: grid; gap: 12px; align-content: start; max-height: 70vh; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--magenta) rgba(255,255,255,0.1); }
.map-detail-list::-webkit-scrollbar { width: 10px; }
.map-detail-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 999px; }
.map-detail-list::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 999px; }
.map-device { padding: 14px; border: 1px solid transparent; border-radius: 18px; background: rgba(255,255,255,0.04); cursor: pointer; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.map-device:hover { background: rgba(226,0,116,0.1); border-color: rgba(226,0,116,0.28); transform: translateY(-1px); }
.map-device:focus-visible { outline: 3px solid rgba(255,158,208,0.55); outline-offset: 2px; }
.map-device.is-selected { background: rgba(226,0,116,0.14); border-color: rgba(255,158,208,0.5); }
.map-device-head { display: flex; align-items: center; gap: 8px; }
.map-device-head strong { flex: 1; }
.bus-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); cursor: pointer; flex-shrink: 0; }
.bus-color-dot:hover, .bus-color-dot:focus-visible { border-color: white; outline: none; }
.bus-track-toggle { display: block; margin-top: 10px; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: white; font: inherit; font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.bus-track-toggle:hover { background: rgba(226,0,116,0.12); border-color: rgba(226,0,116,0.35); }
.bus-track-toggle.is-paused { background: rgba(250,204,21,0.14); color: #ffe999; border-color: rgba(250,204,21,0.35); }
.bus-track-toggle.is-paused:hover { background: rgba(250,204,21,0.22); }
.bus-remove-button { background: transparent; border: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 999px; cursor: pointer; }
.bus-remove-button:hover { background: rgba(251,113,133,0.16); color: #ffc0c9; }
.trips-list { display: grid; gap: 10px; margin-top: 16px; }
.trip-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.trip-row-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.trip-row-meta strong { color: white; }
.xmlgen-shell { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.xmlgen-grid { display: grid; gap: 14px; }
.xmlgen-grid label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.xmlgen-row { display: flex; gap: 12px; }
.xmlgen-row label { flex: 1; min-width: 0; }
.xmlgen-row .xmlgen-grow { flex: 2; }
.xmlgen-bitrates { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--edge); }
.xmlgen-bitrates-label { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.xmlgen-generate-button { margin-top: 4px; }
.xmlgen-output-actions { display: flex; gap: 10px; }
.xmlgen-output-actions .ghost-button, .xmlgen-output-actions .primary-button { min-width: 100px; padding: 10px 16px; }
.xmlgen-textarea { width: 100%; min-height: 420px; margin-top: 14px; background: rgba(18,15,22,0.75); border: 1px solid var(--edge); border-radius: 16px; color: #a6e22e; font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 0.82rem; line-height: 1.5; padding: 16px; resize: vertical; }
.xmlgen-textarea:focus { outline: none; border-color: var(--magenta); }
.xmlgen-status { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.xmlgen-status.good { color: #9ef0ba; }
@media (max-width: 900px) { .dashboard-live-card { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "side" "header" "metrics" "connections" "speedfusion"; } .dashboard-live-header { min-height: 0; } .dashboard-live-metrics, .dashboard-live-connections { grid-template-columns: 1fr; } .dashboard-live-actions, .chart-window-panel { flex-direction: column; align-items: stretch; } .chart-window-panel span { min-width: 0; } }
@media (max-width: 1100px) { .shell-nav { position: relative; width: auto; padding-top: 68px; } .shell-nav-toggle { left: auto; right: 18px; } body.nav-collapsed .shell-nav { position: fixed; inset: 0 auto 0 0; width: 280px; } body.nav-collapsed .shell-nav-toggle { left: 18px; right: auto; } .app-main { margin-left: 0; } .login-shell, .map-shell, .device-card, .xmlgen-shell { grid-template-columns: 1fr; } .map-detail-list { max-height: none; overflow: visible; } .chart-grid, .reports-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .shell-nav, .shell-nav-toggle, .app-main { transition: none; } }



.rf-panel-shell { margin-bottom: 22px; }
.rf-panel-head { margin-bottom: 0; }
.rf-panel-body { margin-top: 18px; }
.rf-panel-body[hidden] { display: none !important; }
.rf-chart-grid { margin: 0; }

.probe-filter-card { margin-bottom: 22px; }
.probe-toolbar { display: grid; gap: 18px; align-items: start; }
.probe-control-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: flex-start; }
.probe-filter-block { display: grid; gap: 8px; }
.probe-filter-block label { color: var(--muted); font-size: 0.84rem; }
.probe-device-block { min-width: 0; }
.probe-device-picker { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 10px 2px; scrollbar-width: thin; }
.probe-device-picker::-webkit-scrollbar, .probe-gauge-list::-webkit-scrollbar { height: 10px; }
.probe-device-picker::-webkit-scrollbar-thumb, .probe-gauge-list::-webkit-scrollbar-thumb { background: rgba(226, 0, 116, 0.9); border-radius: 999px; }
.probe-device-picker::-webkit-scrollbar-track, .probe-gauge-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 999px; }
.probe-device-option { flex: 1 0 296px; min-width: 296px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--edge); background: rgba(255,255,255,0.04); cursor: pointer; }
.probe-device-option input { min-width: 0; width: auto; margin: 0; }
.probe-device-option-body { display: grid; gap: 14px; min-width: 0; }
.probe-device-option-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.probe-device-option-title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.probe-device-option-title strong { display: block; font-size: 1.02rem; }
.probe-device-option .device-card-indicator { width: auto; flex: none; }
.probe-device-option-image { width: 132px; height: 72px; object-fit: contain; justify-self: center; align-self: center; margin-inline: auto; }
.probe-device-option-banner { width: 100%; justify-content: space-between; }
.probe-source-diagnostics { border-top: 1px solid var(--edge); padding-top: 10px; }
.probe-source-diagnostics summary { color: var(--muted); cursor: pointer; font-size: 0.82rem; font-weight: 700; }
.probe-source-diagnostics-list { display: grid; gap: 8px; margin-top: 10px; }
.probe-status-message { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(255,255,255,0.04); color: var(--muted); }
.probe-status-message[data-tone="good"] { border-color: rgba(134,239,172,0.35); color: #a7f3d0; }
.probe-status-message[data-tone="warn"] { border-color: rgba(250,204,21,0.45); background: rgba(250,204,21,0.08); color: #fde68a; }
.probe-source-row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.035); }
.probe-source-row strong { color: var(--ink); font-size: 0.78rem; }
.probe-source-row span, .probe-source-row small { overflow-wrap: anywhere; }
.probe-source-row span { font-size: 0.75rem; }
.probe-source-row small { color: var(--muted); font-size: 0.68rem; }
.probe-source-row.is-active { border-left: 3px solid var(--good); }
.probe-source-row.is-inactive { opacity: 0.58; }
.probe-source-row.is-selected { background: rgba(226, 0, 116, 0.12); box-shadow: inset 0 0 0 1px rgba(226, 0, 116, 0.35); }
.probe-custom-range { display: flex; flex-wrap: wrap; gap: 14px; }
.probe-gauge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.probe-gauge-card { min-width: 0; position: relative; }
.probe-gauge-settings-button { min-width: 44px; width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; font-size: 1.08rem; }
.probe-gauge-settings-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -4px 0 14px; padding: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.probe-gauge-settings-panel[hidden] { display: none !important; }
.probe-gauge-settings-panel label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 0.78rem; }
.probe-gauge-settings-panel select, .probe-gauge-settings-panel input { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 12px; font-size: 0.82rem; }
.probe-gauge-settings-panel input::placeholder { color: rgba(255,255,255,0.45); }
.probe-gauge-list { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 10px 2px; scrollbar-width: thin; }
.probe-gauge-list.is-single { justify-content: center; }
.probe-gauge-empty { color: var(--muted); font-size: 0.92rem; min-width: 220px; }
.probe-gauge-tile { flex: 0 0 230px; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.probe-gauge-tile.is-warning { border-color: rgba(250,204,21,0.72); background: linear-gradient(180deg, rgba(250,204,21,0.14), rgba(255,255,255,0.04)); box-shadow: 0 0 22px rgba(250,204,21,0.08); }
.probe-gauge-tile.is-critical { border-color: rgba(251,113,133,0.82); background: linear-gradient(180deg, rgba(251,113,133,0.18), rgba(255,255,255,0.04)); box-shadow: 0 0 28px rgba(251,113,133,0.12); }
.probe-gauge-tile.is-critical.is-active-alert { animation: probe-critical-pulse 1.2s ease-in-out infinite; }
.probe-gauge-name { display: grid; gap: 4px; justify-items: center; text-align: center; }
.probe-gauge-name strong { font-size: 0.9rem; }
.probe-gauge-alert-label { min-height: 1.1em; color: var(--muted); font-size: 0.72rem; text-align: center; }
.probe-gauge-tile.is-warning .probe-gauge-alert-label { color: #fde68a; }
.probe-gauge-tile.is-critical .probe-gauge-alert-label { color: #fecdd3; font-weight: 700; }
.probe-gauge-semicircle { width: 156px; height: 96px; margin-inline: auto; position: relative; }
.probe-gauge-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.probe-gauge-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 14; stroke-linecap: round; }
.probe-gauge-progress { fill: none; stroke-width: 14; stroke-linecap: round; }
.probe-gauge-value { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 1; display: grid; justify-items: center; text-align: center; }
.probe-gauge-value strong { font-size: 1.15rem; line-height: 1.05; }
.probe-chart-stack { display: grid; gap: 18px; }
.probe-chart-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.probe-chart-toggle { align-self: start; }
.probe-threshold-controls { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: var(--muted); font-size: 0.82rem; }
.probe-threshold-controls input { min-width: 0; width: 82px; padding: 8px 10px; border-radius: 999px; text-align: center; font-size: 0.82rem; }
.probe-threshold-controls input::placeholder { color: rgba(255,255,255,0.45); }
.probe-chart-card.is-collapsed .chart-card-head { margin-bottom: 0; }
.probe-chart-body[hidden] { display: none !important; }
.probe-chart-card canvas { width: 100% !important; height: 300px !important; }
.probe-chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 18px; align-items: start; }
.probe-chart-main { min-width: 0; }
.probe-chart-stats { min-width: 0; max-width: 100%; align-self: stretch; overflow-x: auto; }
.probe-stat-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 0.84rem; }
.probe-stat-table thead th { text-align: right; color: var(--muted); font-weight: 500; padding: 0 0 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
.probe-stat-table thead th.probe-stat-name-col { padding-left: 0; text-align: left; }
.probe-stat-table tbody td { padding: 10px 0 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: right; white-space: nowrap; }
.probe-stat-table tbody tr:last-child td { border-bottom: none; }
.probe-stat-name-cell { text-align: left !important; padding: 10px 10px 10px 0 !important; white-space: nowrap; }
.probe-stat-dot { width: 10px; height: 10px; border-radius: 999px; flex: none; display: inline-block; margin-right: 6px; }
.probe-stat-name { color: var(--text); font-weight: 600; }
.probe-stat-table-latency { font-size: 0.8rem; }
.probe-stat-table-latency .probe-stat-group-row th { padding-top: 0; padding-bottom: 4px; border-bottom: none; color: rgba(255,255,255,0.4); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.probe-stat-table-latency thead tr:last-child th { padding-top: 0; }
.probe-stat-empty { color: var(--muted); font-size: 0.9rem; }
@keyframes probe-critical-pulse { 0%, 100% { box-shadow: 0 0 18px rgba(251,113,133,0.12); } 50% { box-shadow: 0 0 34px rgba(251,113,133,0.42); } }
@media (max-width: 1280px) { .probe-gauge-grid { grid-template-columns: 1fr; } .probe-chart-layout { grid-template-columns: 1fr; } .probe-chart-actions { justify-content: flex-start; } }
@media (max-width: 900px) { .probe-control-row { flex-direction: column; align-items: stretch; } .probe-custom-range { flex-direction: column; } .probe-device-option { flex-basis: 272px; min-width: 272px; } .probe-device-option-head { align-items: flex-start; flex-direction: column; } .probe-device-option .device-card-indicator { width: fit-content; } .probe-gauge-settings-panel { grid-template-columns: 1fr; } }

