/* Herald · Home Assistant — app tweaks. Base in glass-core.css. */

.ha-connect {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 16px 10px;
}
.ha-h {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}
.ha-p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 440px;
}
.ha-p.ha-dim {
  font-size: 12.5px;
  color: var(--text-muted);
}
.ha-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  max-width: 480px;
}
.ha-step .ha-p { margin: 0; }
.ha-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #04121f;
  background: linear-gradient(135deg, #18bcf2, #0a6cf0);
  border-radius: 50%;
}
.ha-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #18bcf2, #0a6cf0);
  border: 0;
  border-radius: 980px;
  box-shadow: 0 10px 26px rgba(24, 188, 242, 0.32);
}
.ha-btn.ghost {
  color: var(--text-secondary);
  background: var(--frost-1);
  border: 1px solid var(--frost-border);
  box-shadow: none;
  min-height: 46px;
  font-size: 14px;
}
.ha-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 12px 28px rgba(24, 188, 242, 0.42);
  transform: translateY(-1px);
}
.ha-btn.ghost:focus {
  border-color: var(--focus-ring);
  color: var(--text-primary);
}

/* Entity rows rendered as horizontal capsule pills — same MRBD-native
   treatment as Hue. Override the generic .row look just on this app. */
#home .list { gap: 12px; }
#home .row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;           /* capsule */
  background: rgba(8, 12, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
#home .row::after { display: none; }   /* drop the top hairline highlight */
#home .row:focus {
  background: rgba(20, 28, 42, 0.45);
  border-color: var(--focus-ring, rgba(82, 217, 255, 0.6));
  box-shadow: 0 0 0 1px var(--focus-ring, rgba(82, 217, 255, 0.6)),
              0 0 18px rgba(82, 217, 255, 0.32);
}
#home .row-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
#home .row-body { flex: 1; min-width: 0; }
#home .row-title { font-size: 15px; font-weight: 700; }
#home .row-sub { font-size: 11px; margin-top: 1px; }

.row-icon.ha-on {
  color: #ffd45e;
  background: rgba(255, 212, 94, 0.15);
  border-color: rgba(255, 212, 94, 0.35);
}
.ha-pill {
  flex-shrink: 0;
  align-self: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-transform: uppercase;
}
.ha-pill.on {
  color: #fff7d8;
  background: rgba(110, 231, 168, 0.16);
  border-color: rgba(110, 231, 168, 0.45);
}
.ha-val {
  flex-shrink: 0;
  align-self: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.row.ha-ro { opacity: 0.92; }
