
/* BatteryRealData Cells Premium Layout v1.5.9 */

:root {
  --cell-premium-card-top: rgba(17, 42, 78, 0.98);
  --cell-premium-card-bottom: rgba(12, 30, 60, 0.98);
  --cell-premium-panel: rgba(20, 48, 88, 0.72);
  --cell-premium-panel-2: rgba(25, 58, 103, 0.62);
  --cell-premium-line: rgba(112, 190, 255, 0.26);
  --cell-premium-line-strong: rgba(132, 207, 255, 0.40);
  --cell-premium-text: #f4f9ff;
  --cell-premium-muted: #b8cbe5;
  --cell-premium-blue: #42d6ff;
  --cell-premium-green: #74ffc0;
  --cell-premium-warn: #ffd36f;
}

/* Page-level contrast */
main.container {
  color: var(--cell-premium-text);
}

/* Cleaner hero and summary panels */
.cells-library-panel,
.cells-help-card,
.cells-summary-card,
.cells-control-panel {
  background:
    linear-gradient(180deg, rgba(18, 40, 74, 0.96), rgba(11, 26, 52, 0.96)) !important;
  border: 1px solid var(--cell-premium-line) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30) !important;
}

.cells-library-panel h1,
.cells-help-card h2,
.cells-summary-card strong,
.cells-toolbar h2,
.cell-brand-header h3,
.cell-info-title h4 {
  color: var(--cell-premium-text) !important;
}

.cells-library-panel p,
.cells-help-card,
.cells-summary-card span,
.cells-help-list,
.muted,
#cellResultCount {
  color: var(--cell-premium-muted) !important;
}

.cells-control-grid input,
.cells-control-grid select {
  background: rgba(5, 16, 34, 0.92) !important;
  color: var(--cell-premium-text) !important;
  border-color: var(--cell-premium-line-strong) !important;
}

.cells-control-grid input::placeholder {
  color: #9bb4d2 !important;
}

/* Brand headers */
.cell-brand-header {
  background:
    linear-gradient(180deg, rgba(24, 54, 97, 0.96), rgba(13, 31, 60, 0.96)) !important;
  border: 1px solid var(--cell-premium-line) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

/* Premium cell card */
.cell-info-card {
  position: relative;
  overflow: hidden;
  padding: 1.05rem !important;
  background:
    radial-gradient(circle at top left, rgba(66, 214, 255, 0.10), transparent 17rem),
    linear-gradient(180deg, var(--cell-premium-card-top), var(--cell-premium-card-bottom)) !important;
  border: 1px solid var(--cell-premium-line-strong) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34) !important;
}

.cell-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%);
}

.cell-info-card > * {
  position: relative;
  z-index: 1;
}

/* Large cell picture */
.brd-cell-premium-image {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(130, 207, 255, 0.22);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(23, 52, 95, 0.88), rgba(6, 18, 38, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.brd-cell-premium-image img {
  width: auto;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.brd-cell-premium-image.is-missing {
  display: none;
}

.cell-info-top {
  padding: 0 0 .75rem;
  border-bottom: 1px solid rgba(130, 207, 255, 0.16);
}

.cell-info-title h4 {
  font-size: 1.24rem !important;
  letter-spacing: -0.01em;
}

.cell-info-title .muted {
  margin-top: .22rem;
  font-size: .92rem;
}

/* Specs as cleaner two-column key specs */
.cell-spec-line {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem !important;
}

.cell-spec-chip {
  min-height: 42px;
  justify-content: space-between;
  gap: .55rem !important;
  padding: .58rem .68rem !important;
  border-radius: 14px !important;
  background: var(--cell-premium-panel) !important;
  border: 1px solid rgba(130, 207, 255, 0.20) !important;
  color: var(--cell-premium-muted) !important;
}

.cell-spec-chip span {
  color: var(--cell-premium-muted) !important;
  font-size: .76rem;
  font-weight: 760;
}

.cell-spec-chip strong {
  color: var(--cell-premium-text) !important;
  font-size: .88rem;
  font-weight: 950;
  text-align: right;
}

/* Public tests area */
.cell-test-current-row {
  gap: .42rem !important;
}

.cell-current-tag {
  min-width: 58px;
  text-align: center;
  justify-content: center;
  padding: .36rem .55rem !important;
  border-radius: 999px !important;
  background: rgba(75, 255, 190, 0.10) !important;
  color: #8dffd0 !important;
  border: 1px solid rgba(116, 255, 192, 0.25) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  line-height: 1;
}

.cell-current-tag.warn {
  background: rgba(255, 193, 100, 0.12) !important;
  color: #ffd987 !important;
  border-color: rgba(255, 211, 111, 0.30) !important;
}

/* Metrics */
.cell-metric-grid {
  gap: .62rem !important;
}

.cell-metric {
  padding: .82rem !important;
  border-radius: 16px !important;
  background: var(--cell-premium-panel-2) !important;
  border: 1px solid rgba(130, 207, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cell-metric dt {
  color: var(--cell-premium-muted) !important;
  font-size: .76rem !important;
}

.cell-metric dd {
  color: var(--cell-premium-text) !important;
  font-size: 1.02rem !important;
}

/* Buttons */
.cell-info-actions {
  padding-top: .25rem;
}

.cell-info-actions .button {
  border-radius: 999px !important;
  padding: .72rem 1rem !important;
  font-weight: 950 !important;
}

.cell-info-actions .button:first-child {
  background: linear-gradient(180deg, #4ee2ff, #28bee9) !important;
  color: #041223 !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(40, 190, 233, 0.28);
}

.cell-info-actions .button.ghost,
.cell-info-actions .button:not(:first-child) {
  background: rgba(14, 33, 63, 0.78) !important;
  color: var(--cell-premium-text) !important;
  border: 1px solid var(--cell-premium-line-strong) !important;
}

/* Status badge */
.cell-status-pill {
  background: rgba(116, 255, 192, 0.12) !important;
  color: var(--cell-premium-green) !important;
  border: 1px solid rgba(116, 255, 192, 0.25) !important;
}

/* Hide older image helper if present */
.brd-cell-hero,
.brd-cell-card-image {
  display: none !important;
}

/* More breathing room on large screens */
@media (min-width: 1200px) {
  .cells-pro-grid {
    gap: 1.05rem !important;
  }
}

/* Responsive */
@media (max-width: 680px) {
  .brd-cell-premium-image {
    min-height: 180px;
    padding: .7rem;
  }

  .brd-cell-premium-image img {
    max-height: 205px;
  }

  .cell-spec-line,
  .cell-metric-grid {
    grid-template-columns: 1fr !important;
  }
}
