/* ═══════════════════════════════════════════════════════════════════════════
   ApisHive Wall Display — Dark Kiosk Theme (v2 — graph-first layout)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deepest:   #060A14;
  --bg-deep:      #0A0E1A;
  --bg-card:      #111827;
  --bg-card-alt:  #1E293B;
  --border:       rgba(255,255,255,0.06);
  --border-glow:  rgba(0,188,212,0.25);
  --cyan:         #00BCD4;
  --cyan-dim:     rgba(0,188,212,0.5);
  --green:        #4ADE80;
  --green-dim:    rgba(74,222,128,0.5);
  --amber:        #FBBF24;
  --red:          #FF5252;
  --purple:       #8B5CF6;
  --pink:         #F472B6;
  --orange:       #F97316;
  --text:         #E2E8F0;
  --text-dim:     rgba(255,255,255,0.5);
  --text-dimmer:  rgba(255,255,255,0.3);
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       14px;
  --radius-sm:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; width: 100%;
  font-family: var(--font-sans);
  background: var(--bg-deepest);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ─── Accessibility utilities ─────────────────────────────────────────────
   Visually hidden text for screen readers (device status, label prefixes)
   and controls that only appear when reached by keyboard/screen reader
   (skip links, per-device readings table toggle). No effect on the kiosk
   view unless focused. */
.sr-only, .sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  /* Unreachable by mouse/touch while hidden — only keyboard focus (Tab) can
     land on it, so the kiosk can never open a readings table by accident. */
  pointer-events: none;
}
.sr-only-focusable:focus, .sr-only-focusable:focus-within {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 8px 14px; background: var(--bg-deep, #081018); color: var(--amber);
  border: 2px solid var(--amber); border-radius: 6px;
  font-family: var(--font-display); font-size: 13px; text-decoration: none;
}
/* Keyboard focus ring (mouse clicks don't trigger :focus-visible on buttons/links) */
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible,
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber) !important; outline-offset: 2px;
}
/* Suggestion chips are real <button>s now; keep the chip look identical */
button.chat-suggestion { line-height: inherit; appearance: none; -webkit-appearance: none; }
/* Per-device readings table (revealed by the sr-only toggle) */
.readings-table[hidden] { display: none; }
.readings-table { margin: 6px 12px 10px; overflow-x: auto; }
.readings-table table { border-collapse: collapse; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.readings-table caption { text-align: left; color: var(--text); font-family: var(--font-display); font-size: 12px; padding: 4px 0; }
.readings-table th, .readings-table td { padding: 3px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: right; white-space: nowrap; }
.readings-table th { color: var(--text); font-weight: 600; }
.readings-table th:first-child, .readings-table td:first-child { text-align: left; }
.readings-table table + table { margin-top: 10px; }
.readings-close { margin: 4px 0 6px; padding: 3px 10px; font-family: var(--font-display); font-size: 11px;
  background: transparent; color: var(--text-dim); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
/* Read-only apiary share: viewer-side marker, controls hidden */
.shared-pill {
  font-size: 10px; font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(251,191,36,0.4); border-radius: 10px; padding: 1px 8px;
}
.badge-shared { background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.3); }
.device-section.shared .drag-handle { display: none; }

/* ─── Screens ─────────────────────────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}

/* ─── Login ───────────────────────────────────────────────────────────────── */
#login-screen {
  justify-content: center; align-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(251,191,36,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(0,188,212,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #001020 0%, #001F3F 40%, #00101E 100%);
  overflow: hidden;
}

/* Animated circuit lines */
#login-screen::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(251,191,36,0.04) 49.5%, rgba(251,191,36,0.04) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(0,188,212,0.03) 49.5%, rgba(0,188,212,0.03) 50.5%, transparent 50.5%);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  animation: circuitPulse 4s ease-in-out infinite alternate;
}

@keyframes circuitPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Hero image */
.login-hero-wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  margin-bottom: 20px;
}
.login-hero-img {
  max-height: 35vh; max-width: 50vw;
  object-fit: contain;
  mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
  filter: drop-shadow(0 0 30px rgba(251,191,36,0.15));
}

/* Login card */
.login-container {
  position: relative; z-index: 2;
  width: 380px; max-width: 90vw;
  padding: 36px 36px 42px;
  background: rgba(0,31,63,0.6);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s ease-out;
}

.login-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 24px;
  color: var(--amber);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.input-group { margin-bottom: 18px; }
.input-group label {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--cyan);
  margin-bottom: 6px;
}
.input-group input {
  width: 100%; padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-sans); font-size: 15px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,188,212,0.2);
}
.input-group input::placeholder { color: var(--text-dimmer); }

.btn-primary {
  width: 100%; padding: 14px; margin-top: 8px;
  background: rgba(0,31,63,0.8);
  border: 2px solid var(--amber);
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  color: #fff; font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: rgba(251,191,36,0.12);
  border-color: var(--cyan);
}
.btn-primary:active { transform: scale(0.98); }

.error-text { color: var(--red); font-size: 13px; text-align: center; margin-top: 12px; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
#header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 10;
}
.header-left, .header-right { display: flex; align-items: center; gap: 10px; }
.header-center { display: flex; align-items: center; }
.header-logo { font-size: 22px; filter: drop-shadow(0 0 6px var(--cyan-dim)); }
.header-title {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.5px;
}
.header-meta { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

.badge {
  padding: 2px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.badge-online {
  background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}
.badge-offline {
  background: rgba(255,82,82,0.15); color: var(--red); border: 1px solid rgba(255,82,82,0.3);
}

/* Time Selector */
.time-selector { display: flex; gap: 3px; background: var(--bg-deep); border-radius: 8px; padding: 2px; }
.time-btn {
  padding: 5px 14px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-dim);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.time-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.time-btn.active {
  background: var(--cyan); color: #000;
  box-shadow: 0 0 12px var(--cyan-dim);
}

.icon-btn {
  width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: transparent;
  color: var(--text-dim); font-size: 16px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── Device Grid ─────────────────────────────────────────────────────────── */
#device-grid {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card-alt) transparent;
}
#device-grid::-webkit-scrollbar { width: 5px; }
#device-grid::-webkit-scrollbar-thumb { background: var(--bg-card-alt); border-radius: 3px; }

/* Device Section */
.device-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: fadeInUp 0.3s ease-out;
}

.device-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(0,188,212,0.05), transparent);
  border-bottom: 1px solid var(--border);
}
.device-header.apismind-header {
  background: linear-gradient(135deg, rgba(255,152,0,0.06), transparent);
}
.device-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.device-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green-dim); animation: pulse-glow 2s infinite; }
.device-dot.offline { background: var(--red); opacity: 0.6; }
.device-name {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  flex: 1;
}
.device-role {
  font-size: 10px; color: var(--text-dim); font-family: var(--font-mono);
  letter-spacing: 1px; text-transform: uppercase;
}
.device-last-seen { font-size: 10px; color: var(--text-dimmer); font-family: var(--font-mono); }

.drag-handle {
  cursor: grab; font-size: 16px; color: var(--text-dimmer); padding: 0 6px; user-select: none;
  transition: color 0.2s;
}
.drag-handle:hover { color: var(--cyan); }
.device-section.dragging { opacity: 0.4; border: 1px dashed var(--cyan); }
.device-section.drag-over-top {
  border-top: 2px solid var(--cyan);
  box-shadow: 0 -4px 12px rgba(0,188,212,0.25);
}
.device-section.drag-over-bottom {
  border-bottom: 2px solid var(--cyan);
  box-shadow: 0 4px 12px rgba(0,188,212,0.25);
}

.last-seen-label {
  font-size: 10px; color: rgba(255,255,255,0.7); font-family: var(--font-mono);
  text-align: center; margin-top: 6px;
}

/* ─── Card Row — single horizontal row per device (grid-template-columns set inline) */
.device-cards {
  display: grid;
  gap: 10px;
  padding: 12px;
  min-height: 0;
}

/* ─── Sensor Card ─────────────────────────────────────────────────────────── */
.sensor-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.3s;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sensor-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent, var(--cyan));
  opacity: 0.5;
}
.sensor-card:hover { border-color: var(--border-glow); }

.card-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.card-icon { font-size: 14px; }
.card-title {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.5px; text-transform: uppercase;
  flex: 1;
}

.card-value-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 2px;
}

.card-value {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  line-height: 1.1;
}
.card-unit {
  font-weight: 400; font-size: 12px; color: var(--text-dim);
}

.card-sub {
  font-size: 11px; color: var(--text-dimmer);
  font-family: var(--font-mono);
}

/* ─── Environment Combined Grid ───────────────────────────────────────────── */
.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
}
.env-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}
.env-cell-head {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 2px;
}
.env-cell-icon { font-size: 12px; }
.env-cell-label {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px;
}
.env-cell-val {
  display: flex; align-items: baseline; gap: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.2;
}
.env-cell-unit {
  font-size: 11px; font-weight: 400; color: var(--text-dim);
}
.env-cell .mini-graph {
  flex: 1;
}
.env-cell .mini-graph canvas {
  height: 100%;
  min-height: 40px;
}
.env-cell-big .mini-graph canvas {
  min-height: 60px;
}

/* Status color classes */
.val-good { color: var(--green); }
.val-warn { color: var(--amber); }
.val-bad  { color: var(--red); }
.val-cyan { color: var(--cyan); }
.val-purple { color: var(--purple); }
.val-white { color: var(--text); }

/* ─── Mini Graph (inside every card) ──────────────────────────────────────── */
.mini-graph {
  margin-top: 6px;
  flex: 1;
}
.mini-graph canvas {
  display: block; width: 100%; height: 100%;
  min-height: 60px;
  border-radius: 4px;
}

/* ─── Spectrum Bar Chart ──────────────────────────────────────────────────── */
.spectrum-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 32px; margin-top: 6px;
}
.spectrum-bar {
  flex: 1; min-height: 2px; border-radius: 2px 2px 0 0;
  transition: height 0.3s ease-out;
}

/* ─── Spectrogram Canvas ──────────────────────────────────────────────────── */
.spectrogram-container {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  flex: 1;
}
.spectrogram-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100px;
}

/* ─── Graph Container (battery/charging) ──────────────────────────────────── */
.graph-container {
  margin-top: 6px;
  flex: 1;
}
.graph-container canvas {
  display: block; width: 100%; height: 100%;
  min-height: 50px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-card);
}
.graph-stats {
  display: flex; justify-content: space-around;
  margin-top: 4px;
}
.graph-stat-label { font-size: 9px; color: var(--text-dimmer); text-align: center; }
.graph-stat-value {
  font-size: 10px; font-weight: 600; color: var(--text);
  text-align: center; font-family: var(--font-mono);
}

/* (wide class removed — all cards are flex:1 in single row now) */
.span-2 { grid-column: span 2; }

/* ─── Hover Crosshair (graph mouseover) ───────────────────────────────────── */
.hover-line {
  position: fixed; width: 1px;
  background: rgba(255,255,255,0.35);
  pointer-events: none; z-index: 900; display: none;
}
.hover-dot {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
  pointer-events: none; z-index: 901; display: none;
}
.hover-tip {
  position: fixed; transform: translateX(-50%);
  background: rgba(10,14,20,0.94);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 4px;
  padding: 3px 7px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; color: var(--text);
  pointer-events: none; z-index: 902; display: none;
}

/* ─── SoC Bar ─────────────────────────────────────────────────────────────── */
.soc-bar-track {
  width: 100%; height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; margin-top: 6px; overflow: hidden;
}
.soc-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.8s ease-out;
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .device-cards { grid-template-columns: 1fr !important; }
  .time-btn { padding: 5px 8px; font-size: 11px; }
  .card-value { font-size: 22px; }
}

/* ─── AI Analysis & Chat Sidebar ────────────────────────────────────────── */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
#analysis-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  flex-shrink: 0;
}
.sidebar-section {
  display: flex;
  flex-direction: column;
}
.chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  animation: chatSlideIn 0.3s ease;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,145,234,0.15));
  border: 1px solid rgba(0,229,255,0.20);
  color: var(--text);
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.chat-bubble .chat-chart {
  display: block;
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}
.chat-bubble .chat-chart.expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: auto;
  max-width: 96vw;
  max-height: 96vh;
  margin: auto;
  box-shadow: 0 0 0 100vmax rgba(0, 5, 16, 0.85);
  cursor: zoom-out;
}
.chat-bubble.assistant .chat-source {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  background: rgba(0,229,255,0.08);
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}
.chat-typing {
  align-self: flex-start;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chat-suggestion {
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-display);
}
.chat-suggestion:hover {
  background: rgba(0,229,255,0.15);
  border-color: var(--cyan);
}
.chat-send:disabled {
  opacity: 0.3;
  cursor: default;
}
.health-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.health-badge.healthy {
  background: rgba(74,222,128,0.15);
  color: var(--green);
}
.health-badge.warning {
  background: rgba(251,191,36,0.15);
  color: var(--amber);
}
.health-badge.critical {
  background: rgba(255,82,82,0.15);
  color: var(--red);
}

@media (max-width: 900px) {
  #main-content {
    flex-direction: column !important;
  }
  #analysis-sidebar {
    max-width: 100% !important;
    min-width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    height: 450px !important;
  }
}


/* ═══ Hive Configure button (device header) ═══
   Quiet outline once configured; amber + pulsing glow while unconfigured. */
.hive-config-btn {
  cursor: pointer;
  font-family: var(--font-sans, inherit);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-dim, #8899aa);
  transition: color 0.15s, border-color 0.15s;
}
.hive-config-btn:hover {
  color: #fff;
  border-color: var(--cyan, #00BCD4);
}
.hive-config-btn.hc-unconfigured {
  background: rgba(255, 179, 0, 0.12);
  border-color: #FFB300;
  color: #FFB300;
  animation: hcPulse 2s ease-in-out infinite;
}
@keyframes hcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.55); }
  50%      { box-shadow: 0 0 10px 3px rgba(255, 179, 0, 0.25); }
}
