/* BatteryRealData.com public site dark UI v1.0.3 */

:root {
  --bg: #050914;
  --bg-2: #08111f;
  --panel: rgba(12, 20, 34, 0.88);
  --panel-strong: rgba(14, 25, 43, 0.96);
  --panel-soft: rgba(20, 33, 53, 0.84);
  --card: rgba(15, 26, 46, 0.78);
  --text: #eaf2ff;
  --muted: #a8b7cc;
  --muted-2: #7f8ea3;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.34);
  --brand: #38d6c2;
  --brand-2: #60a5fa;
  --brand-3: #93c5fd;
  --accent: #f5b84b;
  --good: #34d399;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --glow: 0 0 36px rgba(56, 214, 194, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 214, 194, 0.18), transparent 30rem),
    radial-gradient(circle at 84% 2%, rgba(239, 68, 68, 0.14), transparent 26rem),
    radial-gradient(circle at 50% 46%, rgba(96, 165, 250, 0.10), transparent 34rem),
    linear-gradient(180deg, #050914 0%, #08111f 45%, #040711 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.20;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

a {
  color: var(--brand-3);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.nav {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 28px rgba(56, 214, 194, 0.16);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  font-weight: 760;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
}

.nav-links a.nav-live {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.25);
}

.nav-links a.nav-live:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: 2rem;
  align-items: center;
  padding: 3.3rem 0 2.4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.55rem, 5.8vw, 6.3rem);
  line-height: 0.95;
  margin: 0 0 1.1rem;
  letter-spacing: -0.07em;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.35vw, 1.25rem);
  max-width: 70ch;
}

.hero strong,
.panel strong,
.card strong {
  color: #ffffff;
}

.hero-panel,
.panel,
.card,
.notice {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.panel.glow::before,
.chart-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 214, 194, 0.22), transparent 30%, rgba(239, 68, 68, 0.12));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.hero-panel h2 {
  margin-top: 0;
}

.dashboard-panel {
  display: grid;
  gap: 1.1rem;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.big-number {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.small-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 760;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
}

.button,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  color: #041014;
  background: linear-gradient(135deg, var(--brand), #7dd3fc);
  border-radius: 999px;
  padding: 0.78rem 1.06rem;
  font: inherit;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  box-shadow: 0 12px 28px rgba(56, 214, 194, 0.20);
}

.button:hover,
button:hover {
  color: #031014;
  transform: translateY(-1px);
}

.button.ghost,
button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost:hover,
button.ghost:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.13);
}

.button.live,
button.live {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.24);
}

.button.warn,
button.warn {
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #facc15);
}

.section {
  margin-top: 2.4rem;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.section-title h1,
.section-title h2 {
  margin: 0;
}

.section-title p {
  margin: 0.3rem 0 0;
}

.panel {
  position: relative;
  padding: 1.3rem;
}

.card {
  padding: 1.2rem;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.card h3,
.panel h2,
.panel h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 0.95rem 1rem;
  margin: 1rem auto;
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.10);
  border-color: rgba(96, 165, 250, 0.28);
}

.notice.warn {
  color: #ffedd5;
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.34);
}

.notice p {
  margin: 0.2rem 0;
}

.hero-trust {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 100%;
}

.feature-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #051014;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 950;
  margin-bottom: 0.8rem;
}

.explain-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.step-number {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #041014;
  background: var(--brand);
  font-weight: 950;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.13);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.22);
  padding: 0.24rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.32);
}

.tag.ok {
  background: rgba(52, 211, 153, 0.13);
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.28);
}

.tag.demo {
  background: rgba(239, 68, 68, 0.13);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.44);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.82rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: #e2e8f0;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

tr:hover td {
  background: rgba(96, 165, 250, 0.055);
}

tr:last-child td {
  border-bottom: 0;
}

.compare-layout {
  display: grid;
  grid-template-columns: minmax(260px, 325px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.controls {
  display: grid;
  gap: 0.82rem;
}

label.control-label {
  display: grid;
  gap: 0.35rem;
  font-weight: 820;
  color: #dbeafe;
}

input[type="search"],
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.78);
  border-radius: 13px;
  padding: 0.78rem 0.82rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

input[type="search"]:focus,
select:focus {
  border-color: rgba(56, 214, 194, 0.62);
  box-shadow: 0 0 0 4px rgba(56, 214, 194, 0.10);
}

.run-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
  max-height: calc(100vh - 350px);
  overflow: auto;
  padding-right: 0.25rem;
}

.run-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  padding: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 9, 20, 0.56);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.run-card:hover {
  border-color: rgba(56, 214, 194, 0.42);
  background: rgba(13, 24, 42, 0.82);
  transform: translateY(-1px);
}

.run-card.selected {
  border-color: rgba(56, 214, 194, 0.68);
  background: linear-gradient(180deg, rgba(56, 214, 194, 0.12), rgba(96, 165, 250, 0.07));
  box-shadow: 0 0 22px rgba(56, 214, 194, 0.10);
}

.run-card input {
  margin-top: 0.25rem;
  accent-color: var(--brand);
}

.run-main {
  display: grid;
  gap: 0.1rem;
}

.run-main span,
.run-metrics {
  color: var(--muted);
  font-size: 0.88rem;
}

.run-tags {
  grid-column: 2;
}

.run-metrics {
  grid-column: 2;
}

.chart-shell {
  position: relative;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 214, 194, 0.10), transparent 26rem),
    rgba(6, 12, 23, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 28px;
  padding: 0.95rem;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.chart-box {
  min-height: 790px;
  border-radius: 22px;
  overflow: hidden;
}

.chart-box .js-plotly-plot,
.chart-box .plot-container,
.chart-box .svg-container {
  border-radius: 22px;
}

.empty-chart {
  min-height: 760px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.js-plotly-plot .modebar {
  opacity: 0.20;
  transition: opacity 160ms ease;
}

.js-plotly-plot:hover .modebar {
  opacity: 0.72;
}

.js-plotly-plot .modebar .plotlyjsicon,
.js-plotly-plot .modebar .logo {
  display: none !important;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cell-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cell-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.mini-metrics div {
  background: rgba(5, 9, 20, 0.52);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.76rem;
}

.mini-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-metrics dd {
  margin: 0.1rem 0 0;
  color: #ffffff;
  font-weight: 900;
}

.live-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.22), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(56, 214, 194, 0.12), transparent 24rem),
    rgba(14, 20, 32, 0.92);
  border-color: rgba(239, 68, 68, 0.32);
}

.live-panel h2 {
  margin-bottom: 0.4rem;
}

.live-panel p {
  max-width: 78ch;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.live-panel .eyebrow {
  color: #fecaca;
}

.live-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.38rem;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: livePulse 1.45s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.64rem rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.footer {
  margin-top: 3rem;
  padding: 2.2rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(3, 7, 18, 0.58);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.method-list li {
  margin: 0.5rem 0;
}

code {
  background: rgba(96, 165, 250, 0.13);
  color: #dbeafe;
  padding: 0.12rem 0.32rem;
  border-radius: 6px;
}

pre {
  overflow-x: auto;
  background: #030712;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.home-help {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-metric {
  display: grid;
  gap: 0.2rem;
}

.quick-metric strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

@media (min-width: 1600px) {
  .container,
  .nav,
  .footer-inner {
    max-width: 1640px;
  }

  .chart-box {
    min-height: 830px;
  }
}

@media (max-width: 1180px) {
  .compare-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .chart-box {
    min-height: 700px;
  }
}

@media (max-width: 980px) {
  .hero,
  .compare-layout,
  .two-col,
  .feature-grid,
  .home-help {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid.stats,
  .cell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .run-list {
    max-height: none;
  }

  .chart-box,
  .empty-chart {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .live-panel,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 1.4rem;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .grid.stats,
  .cell-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1.25rem 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 15vw, 4.2rem);
  }

  .button,
  button {
    width: 100%;
  }

  .chart-shell {
    padding: 0.45rem;
    border-radius: 20px;
  }

  .chart-box,
  .empty-chart {
    min-height: 540px;
  }
}


/* v1.0.4: public data access policy */
.data-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-color: rgba(245, 158, 11, 0.38);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    rgba(15, 23, 42, 0.78);
}

.two-col-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 820px) {
  .data-access-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-col-inner {
    grid-template-columns: 1fr;
  }
}


/* BatteryRealData interactive dashboard compare plot v1.0.9 */

.compare-layout-wide {
  grid-template-columns: minmax(315px, 390px) minmax(0, 1fr);
}

.compact-buttons {
  gap: 0.48rem;
  margin-top: 0.8rem;
}

.compact-buttons button,
.compact-buttons .button {
  min-height: 2.35rem;
  padding: 0.55rem 0.78rem;
  font-size: 0.88rem;
}

.grouped-run-list {
  max-height: calc(100vh - 390px);
}

.compare-cell-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 26, 46, 0.82), rgba(5, 9, 20, 0.58));
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.compare-cell-card.selected {
  border-color: rgba(56, 214, 194, 0.60);
  box-shadow: 0 0 28px rgba(56, 214, 194, 0.10);
}

.compare-cell-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  padding: 0.88rem 0.92rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.compare-cell-header input,
.compare-test-chip input,
.metric-check input {
  accent-color: var(--brand);
}

.compare-cell-title {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.compare-cell-title strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.compare-cell-title span,
.compare-cell-count,
.compare-test-chip small {
  color: var(--muted);
  font-size: 0.82rem;
}

.compare-cell-count {
  white-space: nowrap;
  font-weight: 800;
}

.compare-test-list {
  display: grid;
  gap: 0.46rem;
  padding: 0.68rem;
}

.compare-test-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.64rem 0.66rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(4, 8, 16, 0.48);
  cursor: pointer;
}

.compare-test-chip:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(13, 24, 42, 0.74);
}

.compare-test-chip.selected {
  border-color: rgba(56, 214, 194, 0.58);
  background: rgba(56, 214, 194, 0.10);
}

.compare-test-chip span {
  display: grid;
  gap: 0.03rem;
  min-width: 0;
}

.compare-test-chip strong {
  color: #f8fafc;
  font-size: 0.90rem;
}

.compare-cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.68rem 0.78rem 0.68rem;
}

.dashboard-controls-public {
  margin-bottom: 1rem;
  display: grid;
  gap: 1rem;
}

.dashboard-controls-public[hidden] {
  display: none !important;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.dashboard-header-row h2 {
  margin: 0.1rem 0 0.25rem 0;
}

.dashboard-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.74rem;
}

.metric-panel,
.selected-tests-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.42);
  padding: 0.85rem;
}

.metric-panel strong,
.selected-tests-panel strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.metric-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.metric-check {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.60);
  padding: 0.56rem 0.78rem;
  cursor: pointer;
  font-weight: 820;
}

.metric-check:hover {
  border-color: rgba(56, 214, 194, 0.48);
  background: rgba(13, 24, 42, 0.84);
}

.metric-check input:checked + .metric-name {
  color: #ffffff;
}

.metric-unit {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.metric-voltage {
  box-shadow: inset 0 0 0 1px rgba(56, 214, 194, 0.14);
}

.metric-current {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.14);
}

.metric-power {
  box-shadow: inset 0 0 0 1px rgba(245, 184, 75, 0.14);
}

.metric-temperature {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.14);
}

.selected-test-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.selected-test-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.58);
  padding: 0.45rem 0.70rem;
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 760;
}

.selected-test-chip.warn {
  border-color: rgba(245, 158, 11, 0.42);
}

.selected-test-chip i {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

@media (max-width: 1180px) {
  .compare-layout-wide {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
  }

  .grouped-run-list {
    max-height: none;
  }

  .dashboard-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-header-row {
    display: grid;
  }
}

@media (max-width: 640px) {
  .dashboard-control-grid {
    grid-template-columns: 1fr;
  }

  .compare-cell-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .compare-cell-count {
    grid-column: 2;
  }

  .compare-test-chip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .metric-check {
    width: 100%;
  }
}



/* v1.1.0 public plot controls */
.range-control input[type="range"] {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--accent, #38d6c2);
}
.range-control span {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted, #9fb0c5);
  font-weight: 800;
}
.js-plotly-plot .modebar-btn[data-title="Zoom out"],
.js-plotly-plot .modebar-btn[data-title="Autoscale"],
.js-plotly-plot .modebar-btn[data-title="Download plot as a png"] {
  display: none !important;
}

/* BRD DIY500AMP project branding v1.1.8 */
.project-by-line {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  color: #dbeafe;
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.11), rgba(56, 214, 194, 0.08)),
    rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(57, 255, 20, 0.28);
  box-shadow: 0 0 34px rgba(57, 255, 20, 0.08);
  font-weight: 900;
  font-size: 0.9rem;
}

.project-by-line a {
  color: #39ff14;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.project-by-line .muted-inline {
  color: var(--muted);
  font-weight: 780;
}

.project-section {
  position: relative;
  isolation: isolate;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(57, 255, 20, 0.26);
  background:
    radial-gradient(circle at 18% 15%, rgba(57, 255, 20, 0.20), transparent 18rem),
    radial-gradient(circle at 88% 15%, rgba(0, 174, 255, 0.17), transparent 22rem),
    linear-gradient(135deg, rgba(0, 0, 0, 0.64), rgba(12, 20, 34, 0.94));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.44),
    0 0 52px rgba(57, 255, 20, 0.09);
}

.project-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: clamp(0.8rem, 2vw, 1.35rem);
  border-radius: 24px;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 42px rgba(57, 255, 20, 0.11);
}

.project-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(57, 255, 20, 0.18);
}

.project-logo {
  display: block;
  width: min(100%, 680px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.22));
}

.project-copy h2 {
  margin: 0.15rem 0 0.85rem;
  font-size: clamp(1.75rem, 3.3vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.project-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  max-width: 72ch;
}

.project-copy strong {
  color: #ffffff;
}

.project-section .eyebrow {
  color: #39ff14;
}

.footer-inner span:first-child a {
  color: #39ff14;
  font-weight: 900;
}

@media (max-width: 980px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-logo-wrap {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .project-by-line {
    border-radius: 18px;
    align-items: flex-start;
  }

  .project-logo-wrap {
    min-height: 120px;
  }
}
