/* =====================================================
   IP Intelligence dashboard
   Semantic classes only. No nth-of-type layout rules.
   ===================================================== */

#page-ip.ip-dashboard {
  --ipd-ink: #f4f1f3;
  --ipd-muted: #aaa2a8;
  --ipd-line: rgba(255, 61, 141, 0.22);
  --ipd-cyan: #ff3d8d;
  --ipd-surface: #151316;
  --ipd-surface-2: #1a171b;
  --ipd-inset: #0d0c0e;

  display: block;
  max-width: 1500px;
  margin-inline: auto;
  padding: 104px clamp(14px, 3vw, 44px) 64px;
  color: var(--ipd-ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 61, 141, 0.1), transparent 32%),
    #0a090b;
}

#page-ip.ip-dashboard .ipd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#page-ip.ip-dashboard .ipd-header,
#page-ip.ip-dashboard .ipd-toolbar,
#page-ip.ip-dashboard .ipd-panel,
#page-ip.ip-dashboard .ipd-map-workspace {
  border: 1px solid var(--ipd-line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--ipd-surface-2), #111013);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

#page-ip.ip-dashboard .ipd-header,
#page-ip.ip-dashboard .ipd-toolbar,
#page-ip.ip-dashboard .ipd-panel {
  padding: 20px;
}

/* --------------------------------------------- header */

.ipd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ipd-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ipd-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ipd-cyan), #ff9cc8);
  color: #0a090b;
  font-weight: 800;
}

.ipd-eyebrow,
.ipd-panel-label,
.ipd-field-label {
  margin: 0;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .ipd-header h2 {
  margin: 5px 0 0;
  color: var(--ipd-ink) !important;
  font-size: clamp(22px, 2.4vw, 30px);
}

.ipd-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ipd-chip {
  padding: 6px 11px;
  border: 1px solid var(--ipd-line);
  border-radius: 999px;
  color: var(--ipd-muted);
  font-size: 11px;
}

/* --------------------------------------------- buttons */

#page-ip.ip-dashboard .ipd-btn {
  border: 1px solid var(--ipd-line);
  border-radius: 10px;
  background: #1c181c;
  color: var(--ipd-ink);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#page-ip.ip-dashboard .ipd-btn:hover {
  background: #2a1820;
  border-color: rgba(255, 61, 141, 0.5);
}

#page-ip.ip-dashboard .ipd-btn-primary {
  background: linear-gradient(135deg, var(--ipd-cyan), #c4246a);
  border-color: transparent;
  color: #12090e;
}

#page-ip.ip-dashboard .ipd-btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
}

#page-ip.ip-dashboard :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--ipd-cyan);
  outline-offset: 2px;
}

/* --------------------------------------------- tabs */

.ipd-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ipd-line);
}

.ipd-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ipd-muted);
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.ipd-tab.is-active {
  color: var(--ipd-cyan);
  border-bottom-color: var(--ipd-cyan);
}

.ipd-panelgroup {
  display: grid;
  gap: 16px;
}

/* --------------------------------------------- toolbar */

.ipd-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.ipd-search {
  display: grid;
  gap: 6px;
}

#page-ip.ip-dashboard input[type="text"],
#page-ip.ip-dashboard textarea,
#page-ip.ip-dashboard select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ipd-line) !important;
  border-radius: 10px !important;
  background: var(--ipd-inset) !important;
  color: var(--ipd-ink) !important;
  font-size: 13px;
}

.ipd-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ipd-options {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--ipd-line);
}

.ipd-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ipd-muted);
  font-size: 12px;
  cursor: pointer;
}

.ipd-quick {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--ipd-line);
}

.ipd-quick button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ipd-cyan);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ipd-quick button:hover {
  border-color: var(--ipd-line);
  background: rgba(255, 61, 141, 0.08);
}

.ipd-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ipd-cyan);
  font-size: 13px;
}

/* --------------------------------------------- map */

.ipd-map-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  min-height: 560px;
}

.ipd-rail {
  padding: 20px;
  border-right: 1px solid var(--ipd-line);
  background: var(--ipd-inset);
}

.ipd-rail label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  color: var(--ipd-muted);
  font-size: 12px;
  cursor: pointer;
}

.ipd-map-stage {
  position: relative;
  min-width: 0;
}

#page-ip.ip-dashboard #ipMapContainer {
  height: 560px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0a090b !important;
}

#page-ip.ip-dashboard #ipMap {
  width: 100%;
  height: 100%;
}

#page-ip.ip-dashboard .leaflet-container {
  background: #0a090b;
}

.ipd-map-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  max-width: 300px;
  padding: 11px 13px;
  border: 1px solid var(--ipd-line);
  border-radius: 10px;
  background: rgba(12, 10, 12, 0.94);
  color: #eee8ec;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
}

/* --------------------------------------------- grids & panels */

.ipd-results {
  display: grid;
  gap: 16px;
}

.ipd-grid-2,
.ipd-grid-3,
.ipd-grid-4,
.ipd-grid-5 {
  display: grid;
  gap: 14px;
}

.ipd-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ipd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ipd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ipd-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

#page-ip.ip-dashboard .ipd-panel h3 {
  margin: 6px 0 10px;
  color: var(--ipd-ink) !important;
  font-size: 17px;
}

#page-ip.ip-dashboard .ipd-panel h4 {
  margin: 0 0 8px;
  color: var(--ipd-ink);
  font-size: 13px;
}

.ipd-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ipd-note {
  margin: 6px 0 0;
  color: var(--ipd-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.ipd-center { text-align: center; }

.ipd-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ipd-row.ipd-between { justify-content: space-between; }
.ipd-row.ipd-wrap { flex-wrap: wrap; }

.ipd-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.ipd-tag {
  padding: 4px 9px;
  border: 1px solid var(--ipd-line);
  border-radius: 999px;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ipd-tag-static {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.ipd-tag-warn {
  border-color: rgba(244, 189, 84, 0.5);
  background: rgba(244, 189, 84, 0.12);
  color: #f4bd54;
}

.ipd-tag-ok {
  border-color: rgba(84, 211, 154, 0.5);
  background: rgba(84, 211, 154, 0.12);
  color: #54d39a;
}

/* --------------------------------------------- risk gauge */

.ipd-risk {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ipd-gauge {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
}

.ipd-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ipd-gauge circle {
  fill: none;
  stroke-width: 10;
}

.ipd-gauge-track { stroke: #2b1922; }

.ipd-gauge-progress {
  stroke: var(--ipd-cyan);
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.ipd-gauge strong {
  position: absolute;
  font-size: 34px;
  font-weight: 700;
}

.ipd-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.ipd-badges span {
  padding: 4px 9px;
  border: 1px solid var(--ipd-line);
  border-radius: 6px;
  color: var(--ipd-muted);
  font-size: 11px;
}

.ipd-reco {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ipd-line);
}

.ipd-reco ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ipd-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* --------------------------------------------- metrics, details */

.ipd-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ipd-metrics div {
  padding: 12px;
  border-radius: 10px;
  background: var(--ipd-inset);
}

.ipd-metrics span {
  display: block;
  color: var(--ipd-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipd-metrics strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ipd-ink);
  font-size: 14px;
  font-family: var(--font-mono, monospace);
}

.ipd-detail {
  display: grid;
  gap: 7px;
}

.ipd-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.08);
  color: var(--ipd-muted);
  font-size: 12px;
}

.ipd-detail-row b {
  color: var(--ipd-ink);
  text-align: right;
  word-break: break-word;
}

.ipd-subpanel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: var(--ipd-inset);
}

.ipd-stat {
  padding: 14px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: var(--ipd-inset);
  text-align: center;
}

.ipd-stat strong {
  display: block;
  color: var(--ipd-cyan);
  font-size: 22px;
}

.ipd-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ipd-muted);
  font-size: 11px;
}

.ipd-mono {
  font-family: var(--font-mono, monospace);
  color: var(--ipd-ink);
}

/* --------------------------------------------- tables */

.ipd-scroll { overflow-x: auto; }

#page-ip.ip-dashboard table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

#page-ip.ip-dashboard th,
#page-ip.ip-dashboard td {
  padding: 10px;
  border-bottom: 1px solid var(--ipd-line);
  text-align: left;
  font-size: 12px;
}

#page-ip.ip-dashboard th {
  color: var(--ipd-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard td { color: #eee8ec; }

/* --------------------------------------------- feeds, usage */

.ipd-feeds { display: grid; gap: 9px; }

.ipd-feed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--ipd-line);
  border-radius: 10px;
  background: var(--ipd-inset);
}

.ipd-feed strong {
  display: block;
  color: var(--ipd-ink);
  font-size: 13px;
}

.ipd-feed span {
  color: var(--ipd-muted);
  font-size: 11px;
}

.ipd-usage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ipd-usage div {
  padding: 12px;
  border-radius: 10px;
  background: var(--ipd-inset);
  text-align: center;
}

.ipd-usage strong {
  display: block;
  color: var(--ipd-cyan);
  font-size: 24px;
}

.ipd-usage span {
  color: var(--ipd-muted);
  font-size: 11px;
}

.ipd-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ipd-inset);
}

.ipd-progress div {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ipd-cyan), #ff78b5);
  transition: width 0.4s ease;
}

/* --------------------------------------------- history */

.ipd-history {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 160px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: var(--ipd-inset);
}

.ipd-history p {
  margin: auto;
  color: var(--ipd-muted);
  font-size: 12px;
}

.ipd-history-bar {
  position: relative;
  flex: 1;
  min-width: 8px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(0deg, #b51d5e, var(--ipd-cyan));
}

.ipd-history-bar span {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  color: var(--ipd-muted);
  font-size: 9px;
  white-space: nowrap;
  transform: rotate(-42deg);
  transform-origin: left top;
}

.ipd-history-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.ipd-history-stats div {
  padding: 12px;
  border-radius: 10px;
  background: var(--ipd-inset);
  text-align: center;
}

.ipd-history-stats strong {
  display: block;
  color: var(--ipd-cyan);
  font-size: 21px;
}

.ipd-history-stats span {
  color: var(--ipd-muted);
  font-size: 11px;
}

/* --------------------------------------------- signals, rings */

.ipd-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ipd-muted);
  font-size: 12px;
}

.ipd-signals li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ipd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ipd-muted);
}

.ipd-dot.ipd-ok { background: #54d39a; }
.ipd-dot.ipd-warn { background: #f4bd54; }

.ipd-score-ring {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border: 4px solid var(--ipd-line);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}

.ipd-score-ring.ipd-ok { border-color: #54d39a; color: #54d39a; }
.ipd-score-ring.ipd-warn { border-color: #f4bd54; color: #f4bd54; }

.ipd-score-card {
  padding: 16px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: var(--ipd-inset);
  text-align: center;
}

.ipd-score-card p {
  margin: 0 0 12px;
  color: var(--ipd-muted);
  font-size: 12px;
}

.ipd-timeline { display: grid; gap: 10px; }

.ipd-timeline-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ipd-line);
  border-left: 4px solid rgba(148, 163, 184, 0.6);
  border-radius: 10px;
  background: var(--ipd-inset);
}

.ipd-timeline-item.ipd-ok-edge { border-left-color: #54d39a; }

.ipd-timeline-item strong {
  display: block;
  color: var(--ipd-ink);
  font-size: 13px;
}

.ipd-timeline-item span {
  display: block;
  color: var(--ipd-muted);
  font-size: 11px;
}

.ipd-latency-graph {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--ipd-line);
  border-radius: 10px;
  background: var(--ipd-inset);
}

.ipd-latency-graph i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 61, 141, 0.65);
}

.ipd-back {
  margin-top: 8px;
  font-size: 12px;
}

.ipd-back a { color: var(--ipd-cyan); }

/* =====================================================
   Speed test: large radial speedometer presentation.
   Selectors and IDs match speed-test-enterprise.js and
   speed-test-charts.js so existing behaviour still drives it.
   ===================================================== */

.ipd-speed { padding: 0 !important; }

#page-ip.ip-dashboard .speed-test-enterprise {
  padding: 22px !important;
  border: 0 !important;
  background: transparent !important;
}

#page-ip.ip-dashboard .speed-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

#page-ip.ip-dashboard .speed-test-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ipd-ink) !important;
  font-size: 18px;
  font-weight: 700;
}

#page-ip.ip-dashboard .speed-test-title svg {
  width: 20px;
  height: 20px;
  color: var(--ipd-cyan);
}

#page-ip.ip-dashboard .speed-test-badge {
  padding: 5px 10px;
  border: 1px solid var(--ipd-line);
  border-radius: 999px;
  color: var(--ipd-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipd-speedometer {
  padding: 22px 18px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--ipd-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 61, 141, 0.12), transparent 62%),
    var(--ipd-inset);
}

#page-ip.ip-dashboard .speed-gauge-container {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
}

#page-ip.ip-dashboard .speed-gauge-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#page-ip.ip-dashboard .speed-gauge-bg {
  fill: none;
  stroke: #2a1821;
  stroke-width: 22;
  stroke-linecap: round;
}

#page-ip.ip-dashboard .speed-gauge-fill {
  fill: none;
  stroke: url(#speedGradient);
  stroke-width: 22;
  stroke-linecap: round;
  /* Semicircle r=120 => length = PI * 120 ~= 377. JS re-measures with
     getTotalLength() and overwrites both values, this is the correct
     pre-script baseline so the arc starts fully empty. */
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

#page-ip.ip-dashboard .speed-gauge-needle {
  fill: var(--ipd-cyan);
  transform-origin: 150px 150px;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(255, 61, 141, 0.5));
}

#page-ip.ip-dashboard .speed-gauge-hub {
  fill: #0a090b;
  stroke: var(--ipd-cyan);
  stroke-width: 3;
}

#page-ip.ip-dashboard .gauge-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--ipd-muted);
  font-size: 11px;
}

#page-ip.ip-dashboard .speed-main-display {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

#page-ip.ip-dashboard .speed-section {
  min-height: 210px !important;
  padding: 18px !important;
  border: 1px solid var(--ipd-line) !important;
  border-radius: 14px !important;
  background: var(--ipd-inset) !important;
  transition: border-color 0.3s ease;
}

#page-ip.ip-dashboard .speed-section.active {
  border-color: rgba(255, 61, 141, 0.65) !important;
}

#page-ip.ip-dashboard .speed-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ipd-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .speed-value-large {
  margin-top: 18px;
  color: var(--ipd-ink) !important;
  font-size: 44px !important;
  font-weight: 700;
  line-height: 1;
}

#page-ip.ip-dashboard .speed-unit {
  color: var(--ipd-muted);
  font-size: 13px;
}

#page-ip.ip-dashboard .speed-graph-container {
  margin-top: 16px;
}

#page-ip.ip-dashboard .speed-graph {
  width: 100%;
  height: 58px;
}

#page-ip.ip-dashboard .speed-graph-line {
  stroke-width: 2;
  fill: none;
}

#page-ip.ip-dashboard .latency-details {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

#page-ip.ip-dashboard .latency-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ipd-muted);
  font-size: 11px;
}

#page-ip.ip-dashboard .latency-detail-value { color: var(--ipd-ink); }

#page-ip.ip-dashboard .server-location-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--ipd-line) !important;
  border-radius: 14px !important;
  background: var(--ipd-inset) !important;
}

#page-ip.ip-dashboard .server-location-header {
  margin-bottom: 12px;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .server-location-content {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

#page-ip.ip-dashboard .server-map {
  position: relative;
  height: 92px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 141, 0.72), transparent 58%),
    #1c181c;
}

#page-ip.ip-dashboard .server-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--ipd-muted);
  font-size: 10px;
}

#page-ip.ip-dashboard .server-map-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ipd-cyan);
  box-shadow: 0 0 0 6px rgba(255, 61, 141, 0.18);
}

#page-ip.ip-dashboard .server-info {
  display: grid;
  gap: 7px;
}

#page-ip.ip-dashboard .server-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ipd-muted);
  font-size: 11.5px;
}

#page-ip.ip-dashboard .server-info-value { color: var(--ipd-ink); }

#page-ip.ip-dashboard .server-selection-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ipd-line);
}

#page-ip.ip-dashboard .server-selector-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#page-ip.ip-dashboard .server-selector-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .server-selector-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#page-ip.ip-dashboard .server-compare-btn,
#page-ip.ip-dashboard .server-comparison-close {
  border: 1px solid var(--ipd-line);
  border-radius: 10px;
  background: #1c181c;
  color: var(--ipd-ink);
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
}

#page-ip.ip-dashboard .current-server-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--ipd-line);
  border-radius: 999px;
  color: var(--ipd-ink);
  font-size: 12px;
}

#page-ip.ip-dashboard .server-comparison-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: rgba(18, 14, 18, 0.86);
}

#page-ip.ip-dashboard .server-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ipd-ink);
  font-size: 13px;
}

#page-ip.ip-dashboard .server-comparison-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--ipd-muted);
  font-size: 12px;
}

#page-ip.ip-dashboard .latency-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ipd-muted);
  font-size: 10.5px;
}

#page-ip.ip-dashboard .latency-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#page-ip.ip-dashboard .speed-test-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#page-ip.ip-dashboard .speed-test-btn {
  border: 1px solid var(--ipd-line) !important;
  border-radius: 999px !important;
  padding: 13px 26px !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#page-ip.ip-dashboard .speed-test-btn.primary {
  background: linear-gradient(135deg, var(--ipd-cyan), #c4246a) !important;
  border-color: transparent !important;
  color: #12090e !important;
}

#page-ip.ip-dashboard .speed-test-btn.secondary {
  background: #1c181c !important;
  color: var(--ipd-ink) !important;
}

#page-ip.ip-dashboard .quality-score-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ipd-line);
}

#page-ip.ip-dashboard .quality-score-header {
  margin-bottom: 12px;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .quality-scores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#page-ip.ip-dashboard .quality-score-item {
  padding: 14px;
  border: 1px solid var(--ipd-line);
  border-radius: 12px;
  background: var(--ipd-inset);
  text-align: center;
}

#page-ip.ip-dashboard .quality-score-label {
  color: var(--ipd-muted);
  font-size: 11px;
}

#page-ip.ip-dashboard .quality-score-value {
  margin-top: 6px;
  color: var(--ipd-ink);
  font-size: 20px;
  font-weight: 700;
}

#page-ip.ip-dashboard .quality-score-value.great { color: #54d39a; }
#page-ip.ip-dashboard .quality-score-value.good { color: #9ee6ba; }
#page-ip.ip-dashboard .quality-score-value.fair { color: #f4bd54; }
#page-ip.ip-dashboard .quality-score-value.poor { color: #ef5b63; }

#page-ip.ip-dashboard .detailed-measurements {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--ipd-line);
  border-radius: 14px;
  background: var(--ipd-inset);
}

#page-ip.ip-dashboard .measurements-header {
  margin-bottom: 12px;
  color: var(--ipd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#page-ip.ip-dashboard .measurements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#page-ip.ip-dashboard .measurement-category-title {
  margin-bottom: 8px;
  color: var(--ipd-ink);
  font-size: 12px;
  font-weight: 600;
}

#page-ip.ip-dashboard .measurement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(147, 197, 253, 0.08);
  color: var(--ipd-muted);
  font-size: 11.5px;
}

#page-ip.ip-dashboard .measurement-value { color: var(--ipd-ink); }

#page-ip.ip-dashboard .test-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ipd-line);
  color: var(--ipd-muted);
  font-size: 11.5px;
}

/* --------------------------------------------- modal */

.ipd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(4px);
}

.ipd-modal-card {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--ipd-line);
  border-radius: 16px;
  background: #100e11;
  color: var(--ipd-ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.ipd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ipd-modal-head h3 {
  margin: 0;
  color: var(--ipd-ink) !important;
  font-size: 18px;
}

.ipd-modal-card textarea {
  width: 100%;
  min-height: 180px;
  margin-bottom: 14px;
  resize: vertical;
  font-family: var(--font-mono, monospace);
}

.ipd-modal-card h4 {
  margin: 16px 0 8px;
  font-size: 13px;
}

#page-ip.ip-dashboard .hidden { display: none !important; }

/* --------------------------------------------- responsive */

@media (max-width: 1100px) {
  .ipd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipd-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ipd-map-workspace { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .ipd-toolbar { grid-template-columns: 1fr; }
  .ipd-grid-2,
  .ipd-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipd-map-workspace { grid-template-columns: 1fr; min-height: 0; }

  .ipd-rail {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--ipd-line);
  }

  .ipd-rail label { margin: 0; }
  .ipd-rail .ipd-btn-block { width: auto; margin: 0; }
  #page-ip.ip-dashboard #ipMapContainer { height: 420px !important; }

  #page-ip.ip-dashboard .speed-main-display,
  #page-ip.ip-dashboard .measurements-grid { grid-template-columns: 1fr !important; }
  #page-ip.ip-dashboard .server-location-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #page-ip.ip-dashboard { padding: 88px 12px 40px; }

  .ipd-header { align-items: flex-start; flex-direction: column; }

  .ipd-grid-2,
  .ipd-grid-3,
  .ipd-grid-4,
  .ipd-grid-5,
  .ipd-metrics,
  .ipd-usage,
  .ipd-history-stats,
  .ipd-signals,
  #page-ip.ip-dashboard .quality-scores-grid { grid-template-columns: 1fr; }

  .ipd-risk { align-items: flex-start; flex-direction: column; }
  .ipd-toolbar-actions .ipd-btn { flex: 1; }
  .ipd-row { flex-wrap: wrap; }
  .ipd-row input[type="text"] { width: 100%; flex-basis: 100%; }
  #page-ip.ip-dashboard #ipMapContainer { height: 340px !important; }
  #page-ip.ip-dashboard .speed-value-large { font-size: 36px !important; }
  #page-ip.ip-dashboard .speed-test-controls .speed-test-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #page-ip.ip-dashboard .ipd-gauge-progress,
  #page-ip.ip-dashboard .speed-gauge-fill,
  #page-ip.ip-dashboard .speed-gauge-needle,
  #page-ip.ip-dashboard .ipd-progress div { transition: none; }
}

/* --------------------------------------------- disabled affordances */

#page-ip.ip-dashboard .server-selector-dropdown:disabled,
#page-ip.ip-dashboard .server-compare-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #0a090b !important;
  color: var(--ipd-muted) !important;
}

#page-ip.ip-dashboard #serverSelectHelp {
  max-width: 68ch;
  margin-top: 12px;
}

/* Prominent Domain Intelligence entry point on the Overview dashboard. */
#page-ip.ip-dashboard .ipd-domain-intelligence {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border-color: rgba(255, 61, 141, 0.32);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 61, 141, 0.09), transparent 30%),
    linear-gradient(145deg, rgba(28, 23, 28, 0.98), rgba(13, 12, 14, 0.98));
}

#page-ip.ip-dashboard .ipd-domain-intelligence::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 61, 141, 0.08), transparent 22%);
}

#page-ip.ip-dashboard .ipd-domain-heading,
#page-ip.ip-dashboard .ipd-domain-search,
#page-ip.ip-dashboard .ipd-domain-intelligence > #domainIntelLoading,
#page-ip.ip-dashboard .ipd-domain-intelligence > #domainIntelResults {
  position: relative;
  z-index: 1;
}

#page-ip.ip-dashboard .ipd-domain-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 22px;
}

#page-ip.ip-dashboard .ipd-domain-heading h3 {
  margin: 0 0 5px;
  color: #ff5da3;
  font-size: clamp(20px, 2vw, 27px);
}

#page-ip.ip-dashboard .ipd-domain-heading .ipd-note {
  margin: 0;
  font-size: 14px;
}

#page-ip.ip-dashboard .ipd-domain-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 61, 141, 0.38);
  border-radius: 50%;
  color: #ff5da3;
  font-size: 25px;
  box-shadow: 0 0 24px rgba(255, 61, 141, 0.12);
}

#page-ip.ip-dashboard .ipd-tag-live {
  border-color: rgba(255, 61, 141, 0.35);
  color: #ff91c0;
  background: rgba(255, 61, 141, 0.09);
}

#page-ip.ip-dashboard .ipd-domain-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

#page-ip.ip-dashboard .ipd-domain-search input {
  min-height: 58px;
  padding: 0 20px;
  border-radius: 13px;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.4vw, 19px);
}

#page-ip.ip-dashboard .ipd-domain-search .ipd-btn {
  min-width: 170px;
  min-height: 58px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
}

#page-ip.ip-dashboard .ipd-domain-summary {
  margin-top: 22px;
}

#page-ip.ip-dashboard .ipd-domain-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  #page-ip.ip-dashboard .ipd-domain-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #page-ip.ip-dashboard .ipd-domain-heading {
    grid-template-columns: auto 1fr;
  }

  #page-ip.ip-dashboard .ipd-domain-heading .ipd-tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #page-ip.ip-dashboard .ipd-domain-search {
    grid-template-columns: 1fr;
  }

  #page-ip.ip-dashboard .ipd-domain-search .ipd-btn {
    width: 100%;
  }
}

#page-ip.ip-dashboard .ipd-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.45);
  box-shadow: none;
}

/* v20261010 — Lasan magenta/black theme and unified intelligence inputs. */
#page-ip.ip-dashboard {
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 61, 141, 0.09), transparent 32%),
    radial-gradient(circle at 12% 72%, rgba(255, 61, 141, 0.035), transparent 28%),
    #0a090b;
}

#page-ip.ip-dashboard .ipd-header,
#page-ip.ip-dashboard .ipd-toolbar,
#page-ip.ip-dashboard .ipd-panel,
#page-ip.ip-dashboard .ipd-map-workspace {
  background: linear-gradient(145deg, rgba(27, 24, 28, 0.97), rgba(12, 11, 13, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

#page-ip.ip-dashboard .ipd-header,
#page-ip.ip-dashboard .ipd-lookup-intelligence,
#page-ip.ip-dashboard .ipd-domain-intelligence {
  border-color: rgba(255, 61, 141, 0.28);
}

#page-ip.ip-dashboard .ipd-brand-mark,
#page-ip.ip-dashboard .ipd-btn-primary {
  background: linear-gradient(135deg, #ff3d8d, #c4246a);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 61, 141, 0.18);
}

#page-ip.ip-dashboard .ipd-btn:hover {
  background: rgba(255, 61, 141, 0.1);
  border-color: rgba(255, 61, 141, 0.5);
}

#page-ip.ip-dashboard .ipd-btn-primary:hover {
  background: linear-gradient(135deg, #ff5da3, #db2d79);
  color: #fff;
}

#page-ip.ip-dashboard input[type="checkbox"] {
  accent-color: #ff3d8d;
}

#page-ip.ip-dashboard .ipd-lookup-intelligence,
#page-ip.ip-dashboard .ipd-domain-intelligence {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 61, 141, 0.09), transparent 30%),
    linear-gradient(145deg, rgba(29, 24, 29, 0.98), rgba(12, 11, 13, 0.98));
}

#page-ip.ip-dashboard .ipd-lookup-intelligence::after,
#page-ip.ip-dashboard .ipd-domain-intelligence::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 61, 141, 0.055), transparent 24%);
}

#page-ip.ip-dashboard .ipd-lookup-intelligence > *,
#page-ip.ip-dashboard .ipd-domain-intelligence > * {
  position: relative;
  z-index: 1;
}

#page-ip.ip-dashboard .ipd-lookup-heading,
#page-ip.ip-dashboard .ipd-domain-heading {
  margin-bottom: 22px;
}

#page-ip.ip-dashboard .ipd-lookup-heading h3,
#page-ip.ip-dashboard .ipd-domain-heading h3 {
  color: #ff5da3 !important;
}

#page-ip.ip-dashboard .ipd-domain-icon {
  border-color: rgba(255, 61, 141, 0.4);
  color: #ff5da3;
  background: rgba(255, 61, 141, 0.06);
  box-shadow: 0 0 24px rgba(255, 61, 141, 0.12);
}

#page-ip.ip-dashboard .ipd-lookup-heading .ipd-domain-icon {
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}

#page-ip.ip-dashboard .ipd-lookup-search,
#page-ip.ip-dashboard .ipd-domain-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

#page-ip.ip-dashboard .ipd-lookup-search {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

#page-ip.ip-dashboard .ipd-lookup-search input,
#page-ip.ip-dashboard .ipd-domain-search input {
  min-height: 58px;
  padding: 0 20px;
  border-radius: 13px !important;
  border-color: rgba(255, 61, 141, 0.22) !important;
  background: #0b0a0c !important;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.4vw, 19px);
}

#page-ip.ip-dashboard .ipd-lookup-search .ipd-btn,
#page-ip.ip-dashboard .ipd-domain-search .ipd-btn {
  min-width: 170px;
  min-height: 58px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

#page-ip.ip-dashboard .ipd-lookup-search .ipd-btn-secondary {
  min-width: 130px;
  background: #191519;
}

#page-ip.ip-dashboard .ipd-lookup-extras {
  margin-top: 18px;
  border-top: 1px solid var(--ipd-line);
}

#page-ip.ip-dashboard .ipd-lookup-extras .ipd-options,
#page-ip.ip-dashboard .ipd-lookup-extras .ipd-quick {
  border-top: 0;
}

#page-ip.ip-dashboard .leaflet-container {
  background: #0a090b;
  filter: grayscale(1) invert(1) brightness(0.42) contrast(1.25) sepia(0.12) hue-rotate(285deg);
}

#page-ip.ip-dashboard .leaflet-control,
#page-ip.ip-dashboard .ipd-map-overlay {
  filter: none;
}

#page-ip.ip-dashboard .speed-gauge-fill {
  stroke: url(#speedGradient);
  filter: drop-shadow(0 0 8px rgba(255, 61, 141, 0.28));
}

#page-ip.ip-dashboard .speed-gauge-needle {
  fill: #ff3d8d;
  filter: drop-shadow(0 2px 7px rgba(255, 61, 141, 0.5));
}

#page-ip.ip-dashboard .speed-gauge-hub {
  stroke: #ff3d8d;
}

@media (max-width: 760px) {
  #page-ip.ip-dashboard .ipd-lookup-search,
  #page-ip.ip-dashboard .ipd-domain-search {
    grid-template-columns: 1fr;
  }

  #page-ip.ip-dashboard .ipd-lookup-search .ipd-btn,
  #page-ip.ip-dashboard .ipd-domain-search .ipd-btn {
    width: 100%;
  }
}

/* v20261011 — dark map tiles and complete speed-test theme coverage. */
#page-ip.ip-dashboard .leaflet-container {
  background: #0a090b;
  filter: none;
}

#page-ip.ip-dashboard .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.64) contrast(1.08) saturate(0.5);
}

#page-ip.ip-dashboard .speed-section.download,
#page-ip.ip-dashboard .speed-section.upload {
  background: var(--ipd-inset) !important;
  border-color: var(--ipd-line) !important;
}

#page-ip.ip-dashboard .speed-test-btn.primary:hover {
  background: linear-gradient(135deg, #ff5da3, #db2d79) !important;
  box-shadow: 0 6px 16px rgba(255, 61, 141, 0.32) !important;
}

#page-ip.ip-dashboard .speed-test-btn.secondary:hover,
#page-ip.ip-dashboard .server-compare-btn:hover {
  background: rgba(255, 61, 141, 0.1) !important;
  border-color: rgba(255, 61, 141, 0.5) !important;
  color: var(--ipd-ink) !important;
}

#page-ip.ip-dashboard .server-selector-dropdown:focus {
  border-color: var(--ipd-cyan) !important;
  box-shadow: 0 0 0 2px rgba(255, 61, 141, 0.2) !important;
}

#page-ip.ip-dashboard .server-comparison-close:hover { color: var(--ipd-ink); }
#page-ip.ip-dashboard .server-name { color: #ff5da3; }

#page-ip.ip-dashboard .test-status-text,
#page-ip.ip-dashboard .measurement-label,
#page-ip.ip-dashboard .latency-detail-label,
#page-ip.ip-dashboard .server-info-label,
#page-ip.ip-dashboard .speed-section-title .info-icon,
#page-ip.ip-dashboard .test-timestamp {
  color: var(--ipd-muted);
}

#page-ip.ip-dashboard .server-comparison-footer { border-top-color: var(--ipd-line); }
#page-ip.ip-dashboard .box-plot-box { fill: var(--ipd-cyan); }
#page-ip.ip-dashboard .box-plot-median { stroke: var(--ipd-cyan); }
#page-ip.ip-dashboard .box-plot-line { stroke: var(--ipd-line); }

#page-ip.ip-dashboard .server-selector-dropdown:disabled,
#page-ip.ip-dashboard .server-compare-btn:disabled {
  background: #191519 !important;
  color: var(--ipd-muted) !important;
  border-color: var(--ipd-line) !important;
}

#page-ip.ip-dashboard .ipd-detail-row,
#page-ip.ip-dashboard .measurement-item,
#page-ip.ip-dashboard .ipd-timeline-item {
  border-color: var(--ipd-line);
}

@media (max-width: 900px) and (min-width: 761px) {
  #page-ip.ip-dashboard .ipd-lookup-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #page-ip.ip-dashboard .ipd-lookup-search .ipd-btn-secondary {
    grid-column: 2;
  }
}

/* v20261011.1 — preserve semantic states and finish hidden speed panels. */
#page-ip.ip-dashboard .ipd-detail-row,
#page-ip.ip-dashboard .measurement-item {
  border-bottom-color: var(--ipd-line);
}

#page-ip.ip-dashboard .ipd-timeline-item {
  border-top-color: var(--ipd-line);
  border-right-color: var(--ipd-line);
  border-bottom-color: var(--ipd-line);
}

#page-ip.ip-dashboard .ipd-timeline-item.ipd-ok-edge {
  border-left-color: #54d39a;
}

#page-ip.ip-dashboard .speed-section.latency {
  background: var(--ipd-inset) !important;
  border-color: var(--ipd-line) !important;
}

#page-ip.ip-dashboard .measurement-category {
  background: rgba(255, 61, 141, 0.035);
  border-color: var(--ipd-line);
}

#page-ip.ip-dashboard .latency-dot.excellent { background: #54d39a; }
#page-ip.ip-dashboard .latency-dot.good { background: #9ee6ba; }
#page-ip.ip-dashboard .latency-dot.fair { background: #f4bd54; }
#page-ip.ip-dashboard .latency-dot.poor { background: #ef5b63; }

@media (max-width: 900px) and (min-width: 761px) {
  #page-ip.ip-dashboard .ipd-lookup-search input {
    grid-row: span 2;
  }
}
