/* ---- Hero Dashboard Container ---- */
.hero-dash {
  width: 100%;
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(240,242,239,0.04), 0 0 140px 60px rgba(196,133,106,0.05), 0 0 260px 120px rgba(196,133,106,0.03);
  /* subtle edge glow instead of hard border */
  outline: 1px solid rgba(240,242,239,0.03);
  outline-offset: -1px;
}
.hero-dash::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(240,242,239,0.06) 0%, rgba(240,242,239,0.02) 30%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-dash-inner {
  width: 960px;
  height: 560px;
  transform-origin: top left;
  display: flex;
  background: #fff;
  position: relative;
}

/* ---- Collapsed Sidebar ---- */
.ha-sidebar {
  width: 44px;
  background: #28282e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.ha-sidebar-brand {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #d4976a, #c4856a);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; flex-shrink: 0;
}
.ha-sidebar-brand svg { width: 14px; height: 14px; display: block; }
.ha-sidebar-spacer { flex: 1; }
.ha-sidebar-icon {
  width: 16px; height: 16px; color: rgba(255,255,255,0.3);
  margin-bottom: 8px; cursor: default;
}
.ha-sidebar-icon svg { width: 16px; height: 16px; display: block; }
.ha-sidebar-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #d4976a, #c4856a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.36rem; font-weight: 600; color: #fff;
  font-family: var(--sans); letter-spacing: 0.02em;
  margin-top: 4px; flex-shrink: 0;
}
.ha-sidebar-divider {
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0 8px;
}
.ha-tab {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  cursor: default; position: relative;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}
.ha-tab svg { width: 18px; height: 18px; display: block; }
.ha-tab.ha-active {
  color: var(--accent);
}
.ha-tab.ha-active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--accent);
  border-radius: 0 1px 1px 0;
}

/* ---- Main Content Area ---- */
.ha-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Global Top Bar ---- */
.ha-global-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 14px; background: #fff;
  border-bottom: 1px solid #e5e5ea; flex-shrink: 0;
}
.ha-gtb-left { display: flex; align-items: center; gap: 4px; }
.ha-gtb-breadcrumb {
  font-family: var(--sans); font-size: 0.40rem;
  color: #aeaeb2; font-weight: 500;
}
.ha-gtb-breadcrumb.ha-gtb-active { color: #1a1a2e; }
.ha-gtb-chevron { font-size: 0.36rem; color: #d1d1d6; }
.ha-gtb-right { display: flex; align-items: center; gap: 8px; }
.ha-gtb-icon {
  width: 16px; height: 16px; color: #aeaeb2;
  display: flex; align-items: center; justify-content: center;
}
.ha-gtb-icon svg { width: 12px; height: 12px; display: block; }
.ha-gtb-notif { position: relative; }
.ha-gtb-badge {
  position: absolute; top: -2px; right: -4px;
  background: #ff3b30; color: #fff;
  font-size: 0.20rem; font-weight: 700;
  width: 9px; height: 9px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ha-gtb-status {
  font-family: var(--mono); font-size: 0.28rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #34c759; font-weight: 600;
  background: rgba(52,199,89,0.1);
  padding: 1px 6px; border-radius: 3px;
  margin-left: 6px;
}
.ha-gtb-cmdk {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  background: #f2f2f7; border: 1px solid #e5e5ea;
  font-family: var(--sans); font-size: 0.34rem;
  color: #aeaeb2; cursor: default;
}
.ha-gtb-cmdk svg { color: #aeaeb2; flex-shrink: 0; }
.ha-gtb-kbd {
  font-family: var(--mono); font-size: 0.28rem;
  color: #c7c7cc; margin-left: 4px;
}
.ha-main-content {
  flex: 1; position: relative; overflow: hidden;
}

/* ---- Scene Containers ---- */
.ha-scene {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
  pointer-events: none;
  display: flex; flex-direction: column;
}
.ha-scene.ha-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- Scene 1: Targeting ---- */
.ha-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid #e5e5ea;
  background: #fff;
  flex-shrink: 0;
}
.ha-topbar-left {
  display: flex; align-items: center; gap: 10px;
}
.ha-topbar-label {
  font-family: var(--mono); font-size: 0.52rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #636366; font-weight: 500;
}
.ha-topbar-count {
  font-family: var(--mono); font-size: 0.5rem; font-weight: 600;
  color: #fff; background: #28282e;
  padding: 2px 8px; border-radius: 4px;
  opacity: 0; transition: opacity 0.3s ease;
}
.ha-topbar-count.ha-visible { opacity: 1; }
.ha-launch-btn {
  background: linear-gradient(135deg, #d4976a, #c4856a);
  color: #fff; padding: 4px 12px; font-size: 0.44rem; font-weight: 600;
  font-family: var(--sans); border: none; cursor: default;
  text-align: center; border-radius: 4px;
  opacity: 1; transform: scale(1);
  transition: opacity 0.4s ease, transform 0.15s ease;
}
.ha-launch-btn.ha-pressed { transform: scale(0.96); }
@keyframes haPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,133,106,0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(196,133,106,0.25); }
}
.ha-launch-btn.ha-glow { animation: haPulse 1.2s ease infinite; }

.ha-s1-body {
  display: grid; grid-template-columns: 210px 1fr;
  flex: 1; overflow: hidden;
}

/* Filter panel — Sales Navigator style */
.ha-s1-filter-search {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 14px;
  background: #f2f2f7; border: 1px solid #e5e5ea; border-radius: 6px;
  font-size: 0.42rem; color: #aeaeb2; font-family: var(--sans);
  flex: 1; max-width: 280px; margin: 0 16px;
}
.ha-s1-filter-search svg { width: 9px; height: 9px; flex-shrink: 0; color: #c7c7cc; }
.ha-s1-filters {
  padding: 4px 12px 8px; border-right: 1px solid #e5e5ea;
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto; overflow-x: hidden;
  background: #fafafa;
}
.ha-filter-section {
  padding: 5px 0; border-bottom: 1px solid #f0f0f2;
}
.ha-filter-section:last-child { border-bottom: none; }
.ha-filter-section-header {
  font-family: var(--sans); font-size: 0.40rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #636366; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  cursor: default; padding: 0 0 4px;
  user-select: none;
}
.ha-filter-section-header .ha-chevron {
  font-size: 0.36rem; color: #aeaeb2; transition: transform 0.2s ease;
}
.ha-filter-section.ha-collapsed .ha-chevron { transform: rotate(-90deg); }
.ha-filter-section.ha-collapsed .ha-filter-options { display: none; }
.ha-filter-options { display: flex; flex-direction: column; gap: 0; }
.ha-filter-option {
  font-family: var(--sans); font-size: 0.46rem; color: #636366;
  display: flex; align-items: center; gap: 6px;
  padding: 2px 0; cursor: default;
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.ha-filter-checkbox {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
  border: 1.2px solid #e5e5ea; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ha-filter-checkbox svg { width: 7px; height: 7px; opacity: 0; transition: opacity 0.2s ease; }
.ha-filter-option.ha-checked .ha-filter-checkbox {
  background: var(--accent); border-color: var(--accent);
}
.ha-filter-option.ha-checked .ha-filter-checkbox svg { opacity: 1; }
.ha-filter-option.ha-checked {
  color: #1a1a2e; font-weight: 500;
}
.ha-filter-more {
  font-size: 0.42rem; color: var(--accent); font-weight: 500;
  padding: 3px 0 1px; cursor: default;
  font-family: var(--sans); letter-spacing: 0.01em;
}

/* Results panel */
.ha-s1-results {
  padding: 10px 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.ha-s1-results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #e5e5ea;
}
.ha-s1-results-header span {
  font-size: 0.58rem; color: #636366; font-family: var(--sans);
}
#ha-s1-results-num {
  color: #1a1a2e; font-weight: 600;
}
.ha-s1-sort {
  font-size: 0.48rem !important; color: #aeaeb2 !important;
  font-family: var(--mono) !important;
}
.ha-s1-sort strong { color: var(--accent); font-weight: 500; }
.ha-s1-rows {
  flex: 1; overflow-y: auto; overflow-x: hidden;
}
.ha-s1-rows::-webkit-scrollbar { width: 3px; }
.ha-s1-rows::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 3px; }
.ha-s1-rows::-webkit-scrollbar-track { background: transparent; }
.ha-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f2f2f7;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ha-contact-row.ha-visible {
  opacity: 1; transform: translateY(0);
}
.ha-contact-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.42rem; font-weight: 600; color: rgba(255,255,255,0.85);
  overflow: hidden;
}
img.ha-contact-photo {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid #e5e5ea;
  margin-top: 1px;
}
.ha-contact-info { flex: 1; min-width: 0; }
.ha-contact-name-row {
  display: flex; align-items: center; gap: 8px;
}
.ha-contact-name {
  font-size: 0.7rem; font-weight: 600; color: #1a1a2e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-contact-match {
  font-size: 0.46rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(196,133,106,0.14), rgba(196,133,106,0.10));
  color: #a06a4e;
  flex-shrink: 0;
  font-family: var(--sans);
  line-height: 1.4;
}
.ha-contact-meta {
  font-size: 0.52rem; color: #636366; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-contact-email {
  font-size: 0.46rem; color: #8e8e93; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-contact-tags {
  display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px;
}
.ha-contact-tag {
  font-size: 0.44rem; padding: 2px 6px; border-radius: 3px;
  font-family: var(--sans); font-weight: 500;
}

/* ---- Fake cursor (GPU-only: transform instead of top/left) ---- */
.ha-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 20px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.ha-cursor.ha-visible { opacity: 1; }
.ha-cursor.ha-clicking svg { transform: scale(0.85); }

/* ---- Scene 2: Outreach ---- */
.ha-sub {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  transition: opacity 0.4s ease;
}

/* Sub-scene 2a: Channel Picker */
.ha-channels-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; padding: 24px;
}
.ha-channels-label {
  font-family: var(--sans); font-size: 0.56rem;
  letter-spacing: 0.02em; color: #636366; font-weight: 500;
  margin-bottom: 16px;
}
.ha-channels-grid {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.ha-channel-card {
  width: 82px; padding: 12px 6px;
  background: #f8f8fa; border: 1px solid #e5e5ea; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: default;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.ha-channel-icon {
  width: 20px; height: 20px; color: #636366;
}
.ha-channel-icon svg { width: 20px; height: 20px; display: block; }
.ha-channel-card.ha-checked .ha-channel-icon { color: var(--accent); }
.ha-channel-name {
  font-size: 0.5rem; color: #1a1a2e; font-weight: 500; font-family: var(--sans);
  text-align: center; white-space: nowrap;
}
.ha-channel-off .ha-channel-name { color: #aeaeb2; }
.ha-channel-check {
  font-size: 0.62rem; color: var(--accent); font-weight: 600;
  opacity: 0; transition: opacity 0.3s ease;
}
.ha-channel-card.ha-checked .ha-channel-check { opacity: 1; }
.ha-channel-card.ha-checked {
  border-color: var(--accent);
  background: rgba(196,133,106,0.08);
  box-shadow: 0 0 8px rgba(196,133,106,0.2);
}
.ha-next-btn {
  background: linear-gradient(135deg, #d4976a, #c4856a);
  color: #fff; padding: 7px 28px; font-size: 0.64rem; font-weight: 600;
  font-family: var(--sans); border: none; border-radius: 4px; cursor: default;
}

/* Sub-scene 2a: Signal Builder */
.ha-signals-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; padding: 24px;
}
.ha-signals-label {
  font-family: var(--serif); font-size: 0.72rem;
  color: #1a1a2e; font-weight: 400;
  margin-bottom: 4px;
}
.ha-signals-helper {
  font-size: 0.40rem; color: #8e8e93; margin-bottom: 14px;
  font-family: var(--sans);
}
.ha-signals-input-wrap {
  width: 100%; max-width: 440px; margin-bottom: 10px;
}
.ha-signals-search-bar {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e5e5ea; border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 38px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.ha-signals-search-bar.ha-focused,
.ha-signals-search-bar:has(.ha-typing) {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 1.5px rgba(196,133,106,0.35);
}
.ha-signals-ai-icon {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.ha-signals-ai-icon svg {
  width: 14px; height: 14px;
}
.ha-signals-mag { display: none; }
.ha-signals-input {
  width: 100%;
  font-size: 0.50rem; color: #1a1a2e; font-family: var(--sans);
  line-height: 1.5;
  display: flex; align-items: center;
  min-height: 0;
}
.ha-signals-input.ha-typing { }
.ha-signals-input .ha-sig-cursor {
  display: inline-block; width: 1.5px; height: 0.54rem;
  background: var(--accent); margin-left: 1px;
  animation: ha-blink 0.8s step-end infinite;
  border-radius: 1px;
}
.ha-signals-send-btn {
  width: 24px; height: 24px; border-radius: 6px;
  background: #e5e5ea; border: none; cursor: default;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0px;
  transition: background 0.3s ease, transform 0.15s ease;
  opacity: 0.4;
}
.ha-signals-send-btn.ha-active {
  background: linear-gradient(135deg, #d4976a, #c4856a);
  opacity: 1;
}
.ha-signals-send-btn svg {
  width: 12px; height: 12px; color: #fff;
}
.ha-signals-chips {
  display: flex; gap: 5px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 14px; width: 100%; max-width: 440px;
}
.ha-signals-chip {
  font-family: var(--sans); font-size: 0.36rem; color: #636366;
  padding: 3px 10px; border-radius: 20px;
  background: #f2f2f7; border: 1px solid #e5e5ea;
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ha-signals-chip.ha-visible { opacity: 1; transform: translateY(0); }
.ha-signals-processing {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.42rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); font-weight: 500;
  margin-bottom: 14px; opacity: 0;
  transition: opacity 0.3s ease;
}
.ha-signals-processing.ha-visible { opacity: 1; }
.ha-signals-processing .ha-sig-sparkle {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #d4976a, #c4856a);
  display: flex; align-items: center; justify-content: center;
  animation: ha-pulse 1s ease-in-out infinite;
}
@keyframes ha-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
.ha-signal-rules {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 14px;
}
.ha-signal-rule {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: #fff; border: 1px solid #ececf0; border-radius: 8px;
  border-left: 3px solid #d1d1d6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.ha-signal-rule.ha-rule-visible {
  opacity: 1; transform: translateY(0);
}
.ha-signal-rule[data-rule="0"] { border-left-color: #6b8cae; }
.ha-signal-rule[data-rule="0"].ha-rule-visible { background: rgba(107,140,174,0.05); }
.ha-signal-rule[data-rule="1"] { border-left-color: #8b7ea8; }
.ha-signal-rule[data-rule="1"].ha-rule-visible { background: rgba(139,126,168,0.05); }
.ha-signal-rule[data-rule="2"] { border-left-color: var(--accent); }
.ha-signal-rule[data-rule="2"].ha-rule-visible { background: rgba(196,133,106,0.05); }
.ha-signal-rule[data-rule="3"] { border-left-color: #6b9e8a; }
.ha-signal-rule[data-rule="3"].ha-rule-visible { background: rgba(107,158,138,0.05); }
.ha-signal-rule[data-rule="4"] { border-left-color: #b07a6e; }
.ha-signal-rule[data-rule="4"].ha-rule-visible { background: rgba(176,122,110,0.05); }
.ha-signal-rule.ha-rule-active {
  border-color: var(--accent);
  background: rgba(196,133,106,0.06);
}
.ha-signal-rule-icon {
  font-size: 0.42rem; flex-shrink: 0; margin-right: 2px;
}
.ha-signal-rule-name {
  font-size: 0.46rem; color: #1a1a2e; font-weight: 500; font-family: var(--sans);
  flex: 1; min-width: 0;
}
.ha-signals-summary {
  font-family: var(--mono); font-size: 0.40rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px; opacity: 0;
  transition: opacity 0.4s ease;
}
.ha-signals-summary.ha-visible { opacity: 1; }
.ha-signal-rule-sources {
  display: flex; gap: 4px;
}
.ha-signal-rule-src {
  font-family: var(--mono); font-size: 0.34rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: #636366; background: #ececee;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.ha-signal-rule[data-rule="0"] .ha-signal-rule-src { background: rgba(107,140,174,0.1); color: #5a7a96; }
.ha-signal-rule[data-rule="1"] .ha-signal-rule-src { background: rgba(139,126,168,0.1); color: #736693; }
.ha-signal-rule[data-rule="2"] .ha-signal-rule-src { background: rgba(196,133,106,0.1); color: #a06a4e; }
.ha-signal-rule[data-rule="3"] .ha-signal-rule-src { background: rgba(107,158,138,0.1); color: #5a8a76; }
.ha-signal-rule[data-rule="4"] .ha-signal-rule-src { background: rgba(176,122,110,0.1); color: #96645a; }
.ha-confirm-btn {
  background: linear-gradient(135deg, #d4976a, #c4856a);
  color: #fff; padding: 7px 28px; font-size: 0.64rem; font-weight: 600;
  font-family: var(--sans); border: none; border-radius: 4px; cursor: default;
  opacity: 0; transition: opacity 0.3s ease;
}
.ha-confirm-btn.ha-visible { opacity: 1; }

/* Sub-scene 2b: Channel Picker — renamed from 2a */

/* Sub-scene 2c: Sequence Generation */
.ha-seq-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; padding: 24px;
}
.ha-seq-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.56rem;
  letter-spacing: 0.02em; color: #636366; font-weight: 500;
  margin-bottom: 20px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(196,133,106,0.06);
  border: 1px solid rgba(196,133,106,0.12);
}
.ha-seq-sparkle {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #d4976a, #c4856a);
  display: flex; align-items: center; justify-content: center;
  animation: ha-seq-breathe 2s ease-in-out infinite;
}
@keyframes ha-seq-breathe {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(196,133,106,0.3); }
  50% { transform: scale(1.1); opacity: 0.85; box-shadow: 0 0 8px 3px rgba(196,133,106,0.15); }
}
.ha-seq-label-dots {
  display: inline-flex; gap: 3px; margin-left: 2px;
}
.ha-seq-label-dots span {
  width: 3px; height: 3px; border-radius: 50%;
  background: #aeaeb2;
  animation: ha-seq-dot-pulse 1.4s ease-in-out infinite;
}
.ha-seq-label-dots span:nth-child(2) { animation-delay: 0.2s; }
.ha-seq-label-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ha-seq-dot-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.ha-seq-timeline {
  display: flex; align-items: center; gap: 0;
  width: 100%; max-width: 480px; justify-content: center;
}
.ha-seq-step {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ha-seq-step.ha-seq-active {
  opacity: 1; transform: scale(1);
}
.ha-seq-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f8f8fa; border: 2px solid #e5e5ea;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; color: #636366; margin-bottom: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.ha-seq-step.ha-seq-active .ha-seq-dot {
  border-color: var(--accent); background: rgba(196,133,106,0.08);
}
.ha-seq-dot svg { width: 12px; height: 12px; display: block; }
.ha-seq-day {
  font-family: var(--mono); font-size: 0.4rem; color: #aeaeb2;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ha-seq-type {
  font-size: 0.44rem; color: #636366; font-family: var(--sans); font-weight: 500;
}
.ha-seq-line {
  width: 28px; height: 2px; background: #e5e5ea;
  margin: 0 2px; margin-bottom: 18px;
  transition: background 0.3s ease;
}
.ha-seq-line.ha-seq-active { background: rgba(196,133,106,0.4); }

/* Sub-scene 2c: Live Dashboard */
/* ====== Dashboard 2-panel layout (left: email+card, right: metrics+feed+cal) ====== */
.ha-dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
}

/* Left panel: email + contact card side by side */
.ha-dash-left {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ha-dash-left-inner {
  display: grid;
  grid-template-columns: 58% 42%;
  flex: 1; overflow: hidden;
}

/* Left > Col 1: Sequence bar + Email */
.ha-dash-col-email {
  display: flex; flex-direction: column;
  border-right: 1px solid #e5e5ea;
  overflow: hidden;
}

/* Sequence bar */
.ha-dash-sequence {
  padding: 4px 10px;
  background: #f8f8fa;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.ha-dash-seq-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 3px;
}
.ha-dash-seq-left {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.42rem; font-weight: 600; color: #1a1a2e;
}
.ha-dash-seq-sparkle {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d4a08a);
  display: flex; align-items: center; justify-content: center;
  animation: ha-seq-breathe 2s ease-in-out infinite;
  flex-shrink: 0;
}
.ha-dash-seq-meta { font-size: 0.36rem; color: #8e8e93; }
.ha-dash-seq-steps {
  display: flex; align-items: center; gap: 0;
}
.ha-dash-seq-step {
  display: flex; flex-direction: column; align-items: center; flex: 1; z-index: 1;
}
.ha-dash-seq-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #f0f0f2; border: 1.5px solid #e5e5ea;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ha-dash-seq-step.ha-seq-active .ha-dash-seq-dot {
  background: rgba(196,133,106,0.15); border-color: var(--accent);
}
.ha-dash-seq-step span {
  font-size: 0.34rem; color: #636366; font-weight: 500;
}
.ha-dash-seq-step small {
  font-size: 0.30rem; color: #aeaeb2;
}
.ha-dash-seq-line {
  flex: 1; height: 2px; background: #e5e5ea;
  margin: 0 -4px; position: relative; top: -10px;
  transition: background 0.3s ease;
}
.ha-dash-seq-line.ha-seq-active { background: rgba(196,133,106,0.4); }

/* Signal monitoring bar (above sequence in dashboard) */
.ha-dash-signal-monitor {
  padding: 6px 10px 5px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.ha-dash-signal-header {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 3px;
}
.ha-dash-signal-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6b9e8a;
  animation: ha-signal-pulse 2s ease-in-out infinite;
}
@keyframes ha-signal-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(107,158,138,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(107,158,138,0); }
}
.ha-dash-signal-title {
  font-family: var(--sans); font-size: 0.38rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #1a1a2e; font-weight: 600;
}
.ha-dash-signal-counter {
  font-family: var(--mono); font-size: 0.28rem; color: #aeaeb2;
  margin-left: auto;
  background: #f2f2f4; padding: 1px 5px; border-radius: 8px;
}
.ha-dash-signal-items {
  display: flex; flex-direction: column; gap: 1px;
}
.ha-dash-signal-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.34rem; color: #8e8e93; font-family: var(--sans);
  padding: 2px 4px; border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.ha-dash-signal-item.ha-signal-fired {
  color: #1a1a2e; font-weight: 500;
  background: rgba(196,133,106,0.08);
  box-shadow: 0 0 8px rgba(196,133,106,0.1);
}
.ha-dash-signal-item .ha-sig-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #d1d1d6; flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ha-dash-signal-item.ha-signal-fired .ha-sig-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(196,133,106,0.5);
  transform: scale(1.3);
}
.ha-sig-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-sig-src {
  font-family: var(--mono); font-size: 0.24rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: #c7c7cc; white-space: nowrap; flex-shrink: 0;
}

/* Email compose */
.ha-dash-email {
  padding: 10px 12px; display: flex; flex-direction: column;
  flex: 1; overflow: hidden;
}
.ha-email-field {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
  flex-shrink: 0; min-height: 20px;
}
.ha-email-from { color: #636366; font-size: 0.48rem; }
.ha-email-label {
  font-family: var(--mono); font-size: 0.4rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #aeaeb2; width: 26px; flex-shrink: 0;
}
.ha-email-value {
  font-size: 0.54rem; color: #1a1a2e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-email-subject { font-weight: 500; min-height: 14px; }
.ha-email-body {
  margin-top: 10px;
  font-size: 0.52rem; color: #636366; line-height: 1.6;
  opacity: 0; overflow: hidden;
  height: 55px;
  transition: opacity 0.2s ease;
}
.ha-email-body.ha-visible { opacity: 1; }
.ha-s2-cursor {
  display: inline-block; width: 1px; height: 0.58rem;
  background: var(--accent); animation: haBlink 0.7s step-end infinite;
  vertical-align: text-bottom; margin-left: 1px;
}
@keyframes haBlink { 0%,50%{opacity:1} 51%,100%{opacity:0} }
.ha-email-signature {
  margin-top: 6px; padding: 0;
  flex-shrink: 0;
}
.ha-sig-divider {
  width: 40px; height: 1px; background: #e5e5ea;
  margin-bottom: 4px;
}
.ha-sig-name-line {
  font-size: 0.42rem; font-weight: 600; color: #1a1a2e;
}
.ha-sig-title-line {
  font-size: 0.36rem; color: #8e8e93;
}
.ha-sig-contact-line {
  font-size: 0.34rem; color: #aeaeb2;
  font-family: var(--mono);
}
.ha-email-sent {
  padding: 7px 14px;
  background: rgba(26,46,34,0.12); color: #2d4a38;
  font-size: 0.52rem; font-weight: 600;
  text-align: center; margin-top: auto;
  border-radius: 4px; flex-shrink: 0;
  opacity: 0; transition: opacity 0.3s ease;
}
.ha-email-sent.ha-visible { opacity: 1; }

/* Thinking dots (match Panel 2 pattern) */
.ha-thinking-dots {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 30px 0 6px;
}
.ha-thinking-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.3;
  animation: ha-dot-pulse 1.2s ease-in-out infinite;
}
.ha-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.ha-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ha-dot-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.ha-thinking-label {
  text-align: center; font-size: 0.42rem; color: #8e8e93;
  font-family: var(--sans); letter-spacing: 0.04em;
  padding-bottom: 6px;
}

/* Signal glow flash on card signal when referenced in email */
.ha-signal-glow {
  animation: ha-signal-flash 0.8s ease-out;
}
@keyframes ha-signal-flash {
  0% { background: rgba(59,130,246,0.3); box-shadow: 0 0 10px rgba(59,130,246,0.25); }
  100% { background: rgba(59,130,246,0.08); box-shadow: none; }
}

/* Inline signal text styling in email body */
.ha-email-signal-text {
  background: rgba(59,130,246,0.1);
  padding: 1px 4px; border-radius: 3px;
  font-weight: 500; color: #1a1a2e;
  border-bottom: 1.5px solid rgba(59,130,246,0.35);
}

/* Left > Col 2: Contact card (detailed) */
.ha-dash-col-card {
  display: flex; flex-direction: column;
  background: #f8f8fa;
  padding: 10px 10px;
  overflow-y: auto; overflow-x: hidden;
}
.ha-card-header-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-shrink: 0;
}
.ha-card-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #e5e5ea;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.48rem; font-weight: 600; color: rgba(255,255,255,0.9);
  flex-shrink: 0; overflow: hidden;
}
.ha-card-header-info {
  flex: 1; min-width: 0;
}
.ha-card-name {
  font-size: 0.54rem; font-weight: 600; color: #1a1a2e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-card-title {
  font-size: 0.38rem; color: #8e8e93;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-card-company {
  display: flex; align-items: center; gap: 4px;
  margin-top: 1px;
}
.ha-card-logo {
  width: 16px; height: 16px; border-radius: 4px;
  color: #fff; font-size: 0.36rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ha-card-company-name {
  font-size: 0.40rem; color: #636366; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-card-match-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d4a08a);
  color: #fff; font-size: 0.44rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(196,133,106,0.3);
}
.ha-card-meta-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 8px; flex-shrink: 0;
}
.ha-card-meta-pill {
  font-size: 0.34rem; color: #636366; font-family: var(--sans);
  padding: 2px 6px; background: #fff; border-radius: 10px;
  border: 1px solid #e5e5ea; white-space: nowrap;
}
.ha-card-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, #e5e5ea 15%, #e5e5ea 85%, transparent);
  margin: 8px 0; flex-shrink: 0;
}
.ha-card-signals-label {
  font-size: 0.36rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); font-weight: 600;
  margin-bottom: 4px; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.ha-card-signal-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(196,133,106,0.15); color: var(--accent);
  font-size: 0.34rem; font-weight: 700;
}
.ha-card-signals {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; flex-shrink: 0;
}
.ha-card-signal-tag {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 0.36rem; color: #636366; font-family: var(--sans);
  padding: 2px 5px;
  background: rgba(196,133,106,0.06);
  border-radius: 3px;
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.ha-card-signal-tag.ha-visible {
  opacity: 1;
  animation: ha-signal-tag-in 0.35s ease-out;
}
@keyframes ha-signal-tag-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.ha-card-signal-tag.ha-signal-highlighted {
  background: rgba(59,130,246,0.12);
  box-shadow: 0 0 10px rgba(59,130,246,0.3);
  border-color: rgba(59,130,246,0.35);
}
.ha-card-signal-idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(196,133,106,0.12); color: var(--accent);
  font-size: 0.30rem; font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.ha-card-signal-idx.ha-signal-ref {
  background: var(--accent); color: #fff;
}
.ha-card-activity-label {
  font-size: 0.36rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #8e8e93; font-weight: 600;
  margin-bottom: 4px; flex-shrink: 0;
}
.ha-card-activity {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%;
}
.ha-card-activity-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.36rem; color: #636366;
}
.ha-activity-icon {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ha-activity-icon svg { width: 8px; height: 8px; display: block; }
.ha-activity-icon.ha-ai-eye { background: rgba(37,99,235,0.1); color: #2563eb; }
.ha-activity-icon.ha-ai-download { background: rgba(40,200,64,0.1); color: #28c840; }
.ha-activity-icon.ha-ai-calendar { background: rgba(196,133,106,0.12); color: var(--accent); }
.ha-activity-icon.ha-ai-handshake { background: rgba(124,58,237,0.1); color: #7c3aed; }
.ha-activity-icon.ha-ai-email { background: rgba(37,99,235,0.08); color: #60a5fa; }
.ha-activity-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-activity-time {
  font-family: var(--mono); font-size: 0.30rem; color: #c7c7cc;
  margin-left: auto; white-space: nowrap; flex-shrink: 0;
}
.ha-card-profile-label {
  font-size: 0.36rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #8e8e93; font-weight: 600;
  margin-bottom: 6px; flex-shrink: 0;
}
.ha-card-profile {
  display: flex; flex-direction: column; gap: 0;
  width: 100%;
  background: #f8f8fa; border-radius: 6px;
  border: 1px solid #ececf0;
  overflow: hidden;
}
.ha-card-profile-row {
  display: flex; align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid #ececf0;
  font-size: 0.36rem;
}
.ha-card-profile-row:last-child { border-bottom: none; }
.ha-profile-label {
  width: 58px; flex-shrink: 0;
  font-family: var(--mono); font-size: 0.30rem;
  color: #8e8e93; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ha-profile-value {
  flex: 1; min-width: 0; color: #1a1a2e;
  font-size: 0.36rem; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-profile-value a { color: #0a66c2; text-decoration: none; }
.ha-profile-value .ha-pv-tag {
  display: inline-block;
  font-size: 0.30rem; font-family: var(--mono);
  padding: 1px 4px; border-radius: 3px;
  background: rgba(124,58,237,0.08); color: #7c3aed;
}
.ha-profile-value .ha-pv-tag-green {
  background: rgba(5,150,105,0.08); color: #059669;
}

/* Left sidebar panel: metrics + feed + calendar (swapped to left) */
.ha-dash-right {
  display: flex; flex-direction: column;
  border-right: 1px solid #e5e5ea;
  border-left: none;
  overflow: hidden;
  order: -1;
  background: #fafafa;
}
.ha-dash-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #e5e5ea;
  background: #fff;
  flex-shrink: 0;
}
.ha-dash-sidebar-title {
  font-family: var(--sans); font-size: 0.44rem; font-weight: 700;
  color: #1a1a2e; letter-spacing: -0.01em;
}
.ha-dash-sidebar-status {
  display: flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 0.28rem; color: #6b9e8a;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.ha-dash-sidebar-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #6b9e8a; animation: ha-signal-pulse 2s ease-in-out infinite;
}
.ha-dash-metrics-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 6px; padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  flex-shrink: 0;
}
.ha-dash-sep { display: none; }
.ha-dash-metric {
  font-family: var(--sans); font-size: 0.30rem; color: #8e8e93;
  white-space: nowrap;
  display: flex; flex-direction: column; gap: 1px;
  padding: 3px 5px;
  background: #f8f8fa; border-radius: 4px;
  border: 1px solid #ececf0;
}
.ha-dash-metric strong {
  font-weight: 700; color: #1a1a2e; font-size: 0.52rem;
  font-family: var(--mono);
}
.ha-metric-accent { border-color: rgba(196,133,106,0.25); background: rgba(196,133,106,0.04); }
.ha-metric-accent strong { color: var(--accent); }

/* Feed section */
.ha-dash-feed-section {
  flex: 1; padding: 5px 8px 2px;
  border-bottom: 1px solid #e5e5ea;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
}
.ha-feed-label {
  font-family: var(--sans); font-size: 0.34rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #8e8e93; margin-bottom: 4px; font-weight: 600;
  flex-shrink: 0;
}
.ha-dash-feed {
  display: flex; flex-direction: column; gap: 0;
  flex: 1; overflow: hidden;
}
.ha-feed-item {
  display: flex; align-items: center; gap: 5px;
  padding: 2px 0; border-bottom: 1px solid rgba(0,0,0,0.03);
  flex-shrink: 0;
}
.ha-feed-icon {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.30rem;
}
.ha-feed-icon.sent-icon { background: rgba(107,140,174,0.1); color: #6b8cae; }
.ha-feed-icon.open-icon { background: rgba(107,140,174,0.07); color: #8ba4ba; }
.ha-feed-icon.reply-icon { background: rgba(107,158,138,0.1); color: #6b9e8a; }
.ha-feed-icon.calendar-icon { background: rgba(196,133,106,0.1); color: var(--accent); }
.ha-feed-icon.forward-icon { background: rgba(139,126,168,0.1); color: #8b7ea8; }
.ha-feed-icon.click-icon { background: rgba(196,133,106,0.07); color: #c4856a; }
.ha-feed-icon.linkedin-icon { background: rgba(107,140,174,0.07); color: #6b8cae; }
.ha-feed-text {
  flex: 1; font-size: 0.38rem; color: #636366;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ha-feed-text strong { color: #1a1a2e; font-weight: 500; }
.ha-feed-time {
  font-family: var(--mono); font-size: 0.26rem; color: #c7c7cc;
  margin-left: auto; white-space: nowrap; flex-shrink: 0;
}

/* Calendar section */
.ha-dash-cal-section {
  flex: 1; padding: 6px 8px;
  display: flex; flex-direction: column;
  background: #fff;
}
.ha-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px; flex-shrink: 0;
}
.ha-cal-header-left {
  display: flex; align-items: baseline; gap: 6px;
}
.ha-cal-section-title {
  font-size: 0.42rem; font-weight: 700; color: #1a1a2e;
  font-family: var(--sans);
}
.ha-cal-month-sub {
  font-size: 0.32rem; color: #8e8e93; font-weight: 500;
  font-family: var(--sans);
}
.ha-cal-nav {
  display: flex; gap: 4px;
}
.ha-cal-nav-btn {
  width: 15px; height: 15px; border-radius: 50%;
  background: #f2f2f7; color: #8e8e93;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; line-height: 1; cursor: default;
}
.ha-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto repeat(5, 1fr);
  gap: 0; flex: 1;
}
.ha-cal-day-header {
  font-family: var(--sans); font-size: 0.30rem; color: #8e8e93;
  text-align: center; padding: 2px 0 3px;
  font-weight: 500;
}
.ha-cal-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 1px 1px 2px;
  min-height: 0;
}
.ha-cal-day-num {
  font-size: 0.32rem; color: #636366; font-weight: 500;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: static; margin-bottom: 1px;
}
.ha-cal-today .ha-cal-day-num {
  background: #007aff; color: #fff; font-weight: 600;
}
.ha-cal-cell.ha-cal-outside .ha-cal-day-num {
  color: #c7c7cc;
}
.ha-cal-meeting {
  width: calc(100% - 2px); border-radius: 2px;
  padding: 0px 2px;
  font-size: 0.26rem; font-weight: 500; font-family: var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: static;
  transform: none;
}
.ha-cal-meeting.ha-visible { opacity: 1; }
.ha-cal-meeting-time {
  font-family: var(--mono); font-weight: 600; font-size: 0.22rem;
  opacity: 0.7;
}
.ha-cal-meeting.meeting-accent {
  background: rgba(196,133,106,0.18); color: #8a5d4a;
  border-left: 2px solid var(--accent);
}
.ha-cal-meeting.meeting-blue {
  background: rgba(0,122,255,0.1); color: #007aff;
  border-left: 2px solid #007aff;
}
.ha-cal-meeting.meeting-green {
  background: rgba(52,199,89,0.1); color: #30b04d;
  border-left: 2px solid #34c759;
}
.ha-cal-meeting.meeting-purple {
  background: rgba(175,82,222,0.1); color: #af52de;
  border-left: 2px solid #af52de;
}
.ha-cal-meeting.meeting-red {
  background: rgba(255,59,48,0.1); color: #ff3b30;
  border-left: 2px solid #ff3b30;
}

/* ---- Responsive overrides ---- */
@media (max-width: 900px) {
  .ha-s1-body { grid-template-columns: 150px 1fr; }
  .ha-dash-layout { grid-template-columns: 200px 1fr; }
  .ha-dash-metric { font-size: 0.38rem; }
}
@media (max-width: 600px) {
  .hero-dash { margin-top: 32px; border-radius: 8px; }
}
