/* Treatly Intelligence Hub — integrated environment shaping (no extra panels) */

.treatly-hub-banner-slot {
  margin: 8px 16px 0;
  max-width: min(400px, calc(100vw - 32px));
}

.treatly-hub-banner {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.12), rgba(26, 110, 66, 0.06));
  border: 1px solid rgba(45, 106, 79, 0.22);
  font-family: Manrope, sans-serif;
}

.treatly-hub-banner-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand, #2d6a4f);
}

.treatly-hub-banner-body {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.treatly-hub-banner-btn {
  display: inline-block;
  margin-right: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  background: var(--text);
  color: #fff;
  cursor: pointer;
}

.treatly-hub-banner-btn--ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border);
}

.home-coach-line {
  display: none;
  margin: 6px 16px 0;
  max-width: min(400px, calc(100vw - 32px));
  padding: 8px 12px;
  border-radius: 12px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--t2);
  background: var(--s2, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border);
}

.home-coach-line:not(:empty) {
  display: block;
}

/* Task pileup & energy modes */
body.treatly-pileup-mode .task-row--faded-secondary {
  opacity: 0.42;
  filter: saturate(0.65);
  pointer-events: auto;
}

body.treatly-pileup-mode .task-row--priority-top {
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.35);
}

body.treatly-energy-low .task-row--low-effort-win {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.task-row--one-thing::before {
  content: '★ Today';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.9;
  pointer-events: none;
}

/* Focus shield */
body.treatly-focus-shield .feed-stream [data-taskcard]:not(.task-row--focus-active) {
  opacity: 0.35;
  filter: blur(0.3px);
  transition: opacity 0.25s ease;
}

body.treatly-focus-shield .task-row--focus-active {
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.45);
  z-index: 2;
}

body.treatly-wind-down .task-row--faded-secondary,
body.treatly-wind-down.treatly-pileup-mode .task-row:not(.task-row--priority-top):not(.task-row--one-thing):not(.task-row--focus-active) {
  opacity: 0.3;
}

body.treatly-energy-low .home-lite-ai-enc {
  opacity: 0.95;
}
