/* ==========================================================================
   fcc-app-components-v1.css
   Phase 1A — Shared components (additive, opt-in)

   All classes prefixed `fcc-` and scoped under `body.fcc-app-shell-v1`.
   These components are OPT-IN — adding `class="fcc-btn"` etc. to existing
   elements activates the new look. Nothing styles automatically just by
   loading this file, which keeps it safe alongside the existing 52k-line
   styles.css.

   Component families:
     - Buttons (.fcc-btn variants)
     - Cards (.fcc-card variants, incl. Onix dark glass)
     - Stat tiles (.fcc-stat-tile)
     - Pills + badges (.fcc-pill, .fcc-badge)
     - List rows (.fcc-list-row)
     - Empty states (.fcc-empty-state)
     - Module header (.fcc-module-header)
     - Sheet + drawer chrome (.fcc-sheet, .fcc-drawer)
     - Icon tile (.fcc-icon-tile)
     - Onix card shell (.fcc-onix-card)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fcc-space-2);
  padding: 10px var(--fcc-space-5);
  border-radius: var(--fcc-radius-pill);
  border: 1px solid transparent;
  font-family: var(--fcc-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--fcc-dur-fast) var(--fcc-ease),
              color var(--fcc-dur-fast) var(--fcc-ease),
              transform var(--fcc-dur-fast) var(--fcc-ease),
              box-shadow var(--fcc-dur-fast) var(--fcc-ease);
}
body.fcc-app-shell-v1 .fcc-btn:active {
  transform: translateY(1px);
}
body.fcc-app-shell-v1 .fcc-btn:disabled,
body.fcc-app-shell-v1 .fcc-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.fcc-app-shell-v1 .fcc-btn--primary {
  background: var(--fcc-color-accent-gradient);
  color: var(--fcc-color-text-on-accent);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}
body.fcc-app-shell-v1 .fcc-btn--primary:hover {
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.36);
  transform: translateY(-1px);
}

body.fcc-app-shell-v1 .fcc-btn--ghost {
  background: var(--fcc-color-surface);
  color: var(--fcc-color-text);
  border-color: var(--fcc-color-border-strong);
  box-shadow: 0 1px 2px rgba(27, 18, 48, 0.04);
}
body.fcc-app-shell-v1 .fcc-btn--ghost:hover {
  background: var(--fcc-color-surface-tint);
}

body.fcc-app-shell-v1 .fcc-btn--soft {
  background: var(--fcc-color-accent-soft);
  color: var(--fcc-color-accent-strong);
}
body.fcc-app-shell-v1 .fcc-btn--soft:hover {
  background: var(--fcc-color-accent-ring);
}

body.fcc-app-shell-v1 .fcc-btn--danger {
  background: var(--fcc-color-danger);
  color: #fff;
}

body.fcc-app-shell-v1 .fcc-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--fcc-radius-pill);
  background: var(--fcc-color-surface-glass);
  border: 1px solid var(--fcc-color-border);
  color: var(--fcc-color-text);
}
body.fcc-app-shell-v1 .fcc-btn--icon:hover {
  background: var(--fcc-color-surface-tint);
}

body.fcc-app-shell-v1 .fcc-btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}
body.fcc-app-shell-v1 .fcc-btn--lg {
  padding: 14px var(--fcc-space-6);
  font-size: 15px;
}
body.fcc-app-shell-v1 .fcc-btn--block {
  width: 100%;
}


/* --------------------------------------------------------------------------
   2. Cards
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-card {
  background: var(--fcc-color-surface);
  border: 1px solid var(--fcc-color-border);
  border-radius: var(--fcc-radius-lg);
  box-shadow: var(--fcc-shadow-card);
  padding: var(--fcc-space-5);
  transition: box-shadow var(--fcc-dur-base) var(--fcc-ease),
              transform var(--fcc-dur-base) var(--fcc-ease);
}
@media (min-width: 768px) {
  body.fcc-app-shell-v1 .fcc-card--hover:hover {
    box-shadow: var(--fcc-shadow-card-hover);
    transform: translateY(-2px);
  }
}

body.fcc-app-shell-v1 .fcc-card--flush {
  padding: 0;
  overflow: hidden;
}

body.fcc-app-shell-v1 .fcc-card--tinted {
  background: linear-gradient(135deg, #FBF7FF 0%, #F4EBFF 50%, #FCE7F3 100%);
  border-color: transparent;
}

body.fcc-app-shell-v1 .fcc-card--hero {
  background: var(--fcc-color-accent-gradient);
  color: var(--fcc-color-text-on-accent);
  border: 0;
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.28);
  padding: var(--fcc-space-7);
  position: relative;
  overflow: hidden;
}
body.fcc-app-shell-v1 .fcc-card--hero h1,
body.fcc-app-shell-v1 .fcc-card--hero h2,
body.fcc-app-shell-v1 .fcc-card--hero h3 {
  color: inherit;
  margin: 0 0 var(--fcc-space-3);
}
body.fcc-app-shell-v1 .fcc-card--hero p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

body.fcc-app-shell-v1 .fcc-card__title {
  font-family: var(--fcc-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fcc-color-text);
  letter-spacing: -0.01em;
  margin: 0 0 var(--fcc-space-2);
}
body.fcc-app-shell-v1 .fcc-card__subtitle {
  font-size: 13px;
  color: var(--fcc-color-text-muted);
  margin: 0 0 var(--fcc-space-4);
}
body.fcc-app-shell-v1 .fcc-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fcc-space-3);
  margin-bottom: var(--fcc-space-4);
}
body.fcc-app-shell-v1 .fcc-card__action {
  font-size: 13px;
  font-weight: 700;
  color: var(--fcc-color-accent);
  text-decoration: none;
}
body.fcc-app-shell-v1 .fcc-card__action:hover {
  color: var(--fcc-color-accent-strong);
}


/* --------------------------------------------------------------------------
   3. Stat tile
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-stat-tile {
  display: flex;
  flex-direction: column;
  gap: var(--fcc-space-2);
  padding: var(--fcc-space-4);
  background: var(--fcc-color-surface);
  border: 1px solid var(--fcc-color-border);
  border-radius: var(--fcc-radius-lg);
  box-shadow: var(--fcc-shadow-card);
  min-width: 0;
}
body.fcc-app-shell-v1 .fcc-stat-tile__head {
  display: flex;
  align-items: center;
  gap: var(--fcc-space-3);
}
body.fcc-app-shell-v1 .fcc-stat-tile__value {
  font-family: var(--fcc-font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--fcc-color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
body.fcc-app-shell-v1 .fcc-stat-tile__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fcc-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.fcc-app-shell-v1 .fcc-stat-tile__sub {
  font-size: 11px;
  color: var(--fcc-color-text-subtle);
}


/* --------------------------------------------------------------------------
   4. Pills + badges
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--fcc-radius-pill);
  background: var(--fcc-color-accent-soft);
  color: var(--fcc-color-accent-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
body.fcc-app-shell-v1 .fcc-pill--neutral {
  background: var(--fcc-color-divider);
  color: var(--fcc-color-text-muted);
}
body.fcc-app-shell-v1 .fcc-pill--pink {
  background: var(--fcc-color-pink-soft);
  color: #BE185D;
}
body.fcc-app-shell-v1 .fcc-pill--success {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}
body.fcc-app-shell-v1 .fcc-pill--warn {
  background: rgba(245, 158, 11, 0.14);
  color: #92400E;
}
body.fcc-app-shell-v1 .fcc-pill--danger {
  background: rgba(251, 113, 133, 0.14);
  color: #9F1239;
}

body.fcc-app-shell-v1 .fcc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--fcc-radius-pill);
  background: var(--fcc-color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
body.fcc-app-shell-v1 .fcc-badge--alert {
  background: var(--fcc-color-danger);
}


/* --------------------------------------------------------------------------
   5. List rows (schedule/timeline/general list items)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-list {
  display: flex;
  flex-direction: column;
  gap: var(--fcc-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
body.fcc-app-shell-v1 .fcc-list-row {
  display: flex;
  align-items: center;
  gap: var(--fcc-space-4);
  padding: var(--fcc-space-3) var(--fcc-space-4);
  background: var(--fcc-color-surface);
  border: 1px solid var(--fcc-color-border);
  border-radius: var(--fcc-radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--fcc-dur-fast) var(--fcc-ease),
              border-color var(--fcc-dur-fast) var(--fcc-ease),
              transform var(--fcc-dur-fast) var(--fcc-ease);
}
body.fcc-app-shell-v1 .fcc-list-row:hover {
  background: var(--fcc-color-surface-tint);
  border-color: var(--fcc-color-border-strong);
}
body.fcc-app-shell-v1 .fcc-list-row__time {
  font-family: var(--fcc-font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--fcc-color-text-muted);
  min-width: 56px;
}
body.fcc-app-shell-v1 .fcc-list-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fcc-color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--fcc-color-accent-soft);
}
body.fcc-app-shell-v1 .fcc-list-row__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--fcc-radius-md);
  background: var(--fcc-color-accent-soft);
  color: var(--fcc-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
body.fcc-app-shell-v1 .fcc-list-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
body.fcc-app-shell-v1 .fcc-list-row__title {
  font-weight: 700;
  color: var(--fcc-color-text);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.fcc-app-shell-v1 .fcc-list-row__meta {
  font-size: 12px;
  color: var(--fcc-color-text-muted);
  margin-top: 2px;
}
body.fcc-app-shell-v1 .fcc-list-row__action {
  margin-left: auto;
}


/* --------------------------------------------------------------------------
   6. Empty state
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--fcc-space-8) var(--fcc-space-5);
  gap: var(--fcc-space-3);
  color: var(--fcc-color-text-muted);
}
/* Honor the [hidden] attribute even though we set display:flex above */
body.fcc-app-shell-v1 .fcc-empty-state[hidden] { display: none; }
body.fcc-app-shell-v1 .fcc-empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--fcc-radius-lg);
  background: var(--fcc-color-accent-soft);
  color: var(--fcc-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
body.fcc-app-shell-v1 .fcc-empty-state__title {
  font-family: var(--fcc-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fcc-color-text);
}
body.fcc-app-shell-v1 .fcc-empty-state__body {
  font-size: 13px;
  max-width: 320px;
}


/* --------------------------------------------------------------------------
   7. Module header (page-level title + actions row)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--fcc-space-4);
  padding: var(--fcc-space-5) 0 var(--fcc-space-4);
}
body.fcc-app-shell-v1 .fcc-module-header__title {
  font-family: var(--fcc-font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fcc-color-text);
  margin: 0;
}
body.fcc-app-shell-v1 .fcc-module-header__subtitle {
  font-size: 13px;
  color: var(--fcc-color-text-muted);
  margin: 2px 0 0;
}
body.fcc-app-shell-v1 .fcc-module-header__actions {
  display: flex;
  gap: var(--fcc-space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}


/* --------------------------------------------------------------------------
   8. Sheet + drawer chrome
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-sheet {
  background: var(--fcc-color-surface);
  border-radius: var(--fcc-radius-xl) var(--fcc-radius-xl) 0 0;
  box-shadow: var(--fcc-shadow-overlay);
  padding: var(--fcc-space-5);
  padding-bottom: calc(var(--fcc-space-5) + var(--fcc-safe-bottom));
}
body.fcc-app-shell-v1 .fcc-sheet__handle {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--fcc-color-divider);
  margin: 0 auto var(--fcc-space-4);
}
body.fcc-app-shell-v1 .fcc-sheet__title {
  font-family: var(--fcc-font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--fcc-space-3);
}

body.fcc-app-shell-v1 .fcc-drawer {
  background: var(--fcc-color-surface);
  box-shadow: 12px 0 32px rgba(27, 18, 48, 0.18);
}


/* --------------------------------------------------------------------------
   9. Icon tile (tinted square w/ emoji or icon)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: var(--fcc-radius-md);
  background: var(--fcc-color-accent-soft);
  color: var(--fcc-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
body.fcc-app-shell-v1 .fcc-icon-tile--pink {
  background: var(--fcc-color-pink-soft);
  color: #BE185D;
}
body.fcc-app-shell-v1 .fcc-icon-tile--success {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}
body.fcc-app-shell-v1 .fcc-icon-tile--warn {
  background: rgba(245, 158, 11, 0.14);
  color: #92400E;
}
body.fcc-app-shell-v1 .fcc-icon-tile--lg {
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: var(--fcc-radius-lg);
}


/* --------------------------------------------------------------------------
   10. Onix card shell — premium dark-glass surface
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-onix-card {
  background: var(--fcc-color-onix-gradient);
  color: var(--fcc-color-onix-text);
  border-radius: var(--fcc-radius-xl);
  padding: var(--fcc-space-6);
  box-shadow: var(--fcc-shadow-onix);
  position: relative;
  overflow: hidden;
}
body.fcc-app-shell-v1 .fcc-onix-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32) 0%, transparent 70%);
  pointer-events: none;
}
body.fcc-app-shell-v1 .fcc-onix-card__title {
  font-family: var(--fcc-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--fcc-space-2);
}
body.fcc-app-shell-v1 .fcc-onix-card__subtitle {
  color: var(--fcc-color-onix-text-muted);
  margin: 0 0 var(--fcc-space-5);
  font-size: 14px;
}
body.fcc-app-shell-v1 .fcc-onix-card__prompts {
  display: flex;
  flex-direction: column;
  gap: var(--fcc-space-2);
  position: relative;
  z-index: 1;
}
body.fcc-app-shell-v1 .fcc-onix-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fcc-space-3);
  padding: 12px var(--fcc-space-4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fcc-color-onix-text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--fcc-radius-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fcc-dur-fast) var(--fcc-ease),
              border-color var(--fcc-dur-fast) var(--fcc-ease),
              transform var(--fcc-dur-fast) var(--fcc-ease);
}
body.fcc-app-shell-v1 .fcc-onix-prompt:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateX(2px);
}
body.fcc-app-shell-v1 .fcc-onix-prompt__chevron {
  color: var(--fcc-color-onix-text-muted);
  font-size: 14px;
}

body.fcc-app-shell-v1 .fcc-onix-input {
  display: flex;
  align-items: center;
  gap: var(--fcc-space-3);
  margin-top: var(--fcc-space-5);
  padding: 6px 6px 6px var(--fcc-space-5);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--fcc-radius-pill);
  position: relative;
  z-index: 1;
}
body.fcc-app-shell-v1 .fcc-onix-input input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fcc-color-onix-text);
  font-family: var(--fcc-font-body);
  font-size: 14px;
  padding: 10px 0;
}
body.fcc-app-shell-v1 .fcc-onix-input input::placeholder {
  color: var(--fcc-color-onix-text-muted);
}
body.fcc-app-shell-v1 .fcc-onix-input__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--fcc-color-accent-gradient);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.40);
  transition: transform var(--fcc-dur-fast) var(--fcc-ease);
}
body.fcc-app-shell-v1 .fcc-onix-input__send:hover {
  transform: scale(1.06);
}


/* --------------------------------------------------------------------------
   11. Avatar group strip (used on dashboard family members card)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-avatar-strip {
  display: flex;
  align-items: center;
  gap: var(--fcc-space-3);
  flex-wrap: wrap;
}
body.fcc-app-shell-v1 .fcc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fcc-color-accent-gradient);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--fcc-color-surface);
  box-shadow: 0 2px 6px rgba(27, 18, 48, 0.08);
  overflow: hidden;
  position: relative;
}
body.fcc-app-shell-v1 .fcc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.fcc-app-shell-v1 .fcc-avatar .profile-avatar-dashboard {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
}
body.fcc-app-shell-v1 .fcc-avatar .profile-avatar-dashboard .profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
body.fcc-app-shell-v1 .fcc-avatar .profile-avatar-dashboard .profile-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}
body.fcc-app-shell-v1 .fcc-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 16px;
}
body.fcc-app-shell-v1 .fcc-avatar--add {
  background: var(--fcc-color-surface);
  color: var(--fcc-color-accent);
  border: 2px dashed var(--fcc-color-accent-ring);
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   12. Premium upgrade card (used in sidebar footer area)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-premium-card {
  margin: var(--fcc-space-3);
  padding: var(--fcc-space-4);
  background: linear-gradient(135deg, #FBF7FF 0%, #F4EBFF 50%, #FCE7F3 100%);
  border: 1px solid var(--fcc-color-border-strong);
  border-radius: var(--fcc-radius-lg);
  box-shadow: var(--fcc-shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--fcc-space-2);
}
body.fcc-app-shell-v1 .fcc-premium-card__title {
  font-family: var(--fcc-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--fcc-color-text);
}
body.fcc-app-shell-v1 .fcc-premium-card__body {
  font-size: 12px;
  color: var(--fcc-color-text-muted);
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   Phase 1B Fix 3/4/7 — Dashboard body-level sheets
   (event preview, "Add to household" menu, chore drilldown)
   -------------------------------------------------------------------------- */
body.fcc-app-shell-v1 .fcc-dash-preview-overlay,
body.fcc-app-shell-v1 .fcc-dash-menu-overlay,
body.fcc-app-shell-v1 .fcc-dash-drilldown-overlay {
  position: fixed;
  inset: 0;
  /* Above the legacy .fcc-sheet-overlay (z-index: 10100) so dashboard
     drilldowns/preview always sit on top when both could be open. */
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
body.fcc-app-shell-v1 .fcc-dash-preview-overlay.is-open,
body.fcc-app-shell-v1 .fcc-dash-menu-overlay.is-open,
body.fcc-app-shell-v1 .fcc-dash-drilldown-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

body.fcc-app-shell-v1 .fcc-dash-preview-overlay .fcc-sheet-backdrop,
body.fcc-app-shell-v1 .fcc-dash-menu-overlay .fcc-sheet-backdrop,
body.fcc-app-shell-v1 .fcc-dash-drilldown-overlay .fcc-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 47, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.fcc-app-shell-v1 .fcc-dash-preview-sheet,
body.fcc-app-shell-v1 .fcc-dash-menu-sheet,
body.fcc-app-shell-v1 .fcc-dash-drilldown-sheet {
  /* Override the legacy .fcc-sheet absolute/bottom-anchored pattern
     (left: 50%; transform: translateX(-50%); position: absolute) so flex
     centering on the overlay works without double-translating. */
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  width: min(560px, 96vw) !important;
  max-height: min(88vh, 760px);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(70, 40, 120, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.985) !important;
  transition: transform 220ms cubic-bezier(0.2, 0.85, 0.2, 1), opacity 200ms ease;
}
body.fcc-app-shell-v1 .fcc-dash-preview-overlay.is-open .fcc-dash-preview-sheet,
body.fcc-app-shell-v1 .fcc-dash-menu-overlay.is-open .fcc-dash-menu-sheet,
body.fcc-app-shell-v1 .fcc-dash-drilldown-overlay.is-open .fcc-dash-drilldown-sheet {
  transform: translateY(0) scale(1) !important;
  opacity: 1;
}

body.fcc-app-shell-v1 .fcc-dash-preview-header,
body.fcc-app-shell-v1 .fcc-dash-menu-header,
body.fcc-app-shell-v1 .fcc-dash-drilldown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 10px;
}
body.fcc-app-shell-v1 .fcc-dash-preview-title,
body.fcc-app-shell-v1 .fcc-dash-menu-title,
body.fcc-app-shell-v1 .fcc-dash-drilldown-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fcc-color-text, #11142f);
}
body.fcc-app-shell-v1 .fcc-dash-preview-close,
body.fcc-app-shell-v1 .fcc-dash-menu-close,
body.fcc-app-shell-v1 .fcc-dash-drilldown-close {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.fcc-app-shell-v1 .fcc-dash-preview-close:hover,
body.fcc-app-shell-v1 .fcc-dash-menu-close:hover,
body.fcc-app-shell-v1 .fcc-dash-drilldown-close:hover {
  background: rgba(124, 58, 237, 0.16);
}

body.fcc-app-shell-v1 .fcc-dash-preview-body,
body.fcc-app-shell-v1 .fcc-dash-drilldown-list,
body.fcc-app-shell-v1 .fcc-dash-menu-list {
  padding: 8px 22px 18px;
}
body.fcc-app-shell-v1 .fcc-dash-menu-list,
body.fcc-app-shell-v1 .fcc-dash-drilldown-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.fcc-app-shell-v1 .fcc-dash-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.04);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
  color: var(--fcc-color-text, #11142f);
}
body.fcc-app-shell-v1 .fcc-dash-menu-item:hover {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.24);
}
body.fcc-app-shell-v1 .fcc-dash-menu-item:active {
  transform: scale(0.98);
}
body.fcc-app-shell-v1 .fcc-dash-menu-emoji {
  font-size: 22px;
  line-height: 1;
}
body.fcc-app-shell-v1 .fcc-dash-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.fcc-app-shell-v1 .fcc-dash-menu-label {
  font-weight: 800;
  font-size: 15px;
}
body.fcc-app-shell-v1 .fcc-dash-menu-sub {
  font-size: 12.5px;
  color: var(--fcc-color-text-muted, #66708b);
}

body.fcc-app-shell-v1 .fcc-dash-drilldown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 58, 237, 0.10);
  background: #ffffff;
  border-radius: 14px;
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-item__title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--fcc-color-text, #11142f);
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-item__meta {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fcc-color-text-muted, #66708b);
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-item__status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
  font-weight: 700;
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-item__status--overdue {
  background: rgba(236, 72, 153, 0.12);
  color: #b8246a;
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-item__points {
  font-weight: 800;
  color: #7c3aed;
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-empty {
  text-align: center;
  padding: 24px 16px 8px;
  color: var(--fcc-color-text-muted, #66708b);
}
body.fcc-app-shell-v1 .fcc-dash-drilldown-empty-icon { font-size: 28px; }
body.fcc-app-shell-v1 .fcc-dash-drilldown-empty-title {
  font-weight: 800;
  color: var(--fcc-color-text, #11142f);
  margin-top: 6px;
}

body.fcc-app-shell-v1 .fcc-dash-preview-footer,
body.fcc-app-shell-v1 .fcc-dash-drilldown-footer {
  display: flex;
  gap: 10px;
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
}
body.fcc-app-shell-v1 .fcc-dash-preview-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 160ms ease, transform 140ms ease;
}
body.fcc-app-shell-v1 .fcc-dash-preview-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7 52%, #ec4899);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28);
}
body.fcc-app-shell-v1 .fcc-dash-preview-btn--primary:hover { transform: translateY(-1px); }
body.fcc-app-shell-v1 .fcc-dash-preview-btn--ghost {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.14);
}
body.fcc-app-shell-v1 .fcc-dash-preview-btn--ghost:hover {
  background: rgba(124, 58, 237, 0.14);
}

@media (max-width: 600px) {
  body.fcc-app-shell-v1 .fcc-dash-preview-overlay,
  body.fcc-app-shell-v1 .fcc-dash-menu-overlay,
  body.fcc-app-shell-v1 .fcc-dash-drilldown-overlay {
    align-items: flex-end;
  }
  body.fcc-app-shell-v1 .fcc-dash-preview-sheet,
  body.fcc-app-shell-v1 .fcc-dash-menu-sheet,
  body.fcc-app-shell-v1 .fcc-dash-drilldown-sheet {
    width: 100%;
    max-height: 86vh;
    border-radius: 22px 22px 0 0;
  }
}


/* --------------------------------------------------------------------------
   Phase 1B Fix 5 / 1Bc — Purple/lavender bell + readable notification surfaces

   IMPORTANT: the underlying notification panel was originally designed dark-
   navy with white text (rules injected from main.js at runtime). Just
   swapping the background to a light surface (as the first pass did) left
   white text on white — the washed-out look the user reported. So this
   pass MUST also override every text/icon/button color inside the panel.
   CSS only. No device-approval data logic changes.
   -------------------------------------------------------------------------- */

/* ---- Bell button ---- */
body.fcc-app-shell-v1 #fccApprovalBell,
body.fcc-app-shell-v1 .fcc-header-alert-button,
body.fcc-app-shell-v1 [data-notification-bell] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 255, 0.94));
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: #7c3aed;
  box-shadow:
    0 12px 28px rgba(124, 58, 237, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 1;
}
body.fcc-app-shell-v1 #fccApprovalBell:hover,
body.fcc-app-shell-v1 .fcc-header-alert-button:hover {
  background: linear-gradient(180deg, #ffffff, #f3ecff);
  border-color: rgba(124, 58, 237, 0.32);
}
body.fcc-app-shell-v1 #fccApprovalBell svg,
body.fcc-app-shell-v1 .fcc-header-alert-icon,
body.fcc-app-shell-v1 .fcc-header-alert-button svg {
  color: #7c3aed;
  stroke: currentColor;
  opacity: 1;
}
body.fcc-app-shell-v1 #fccApprovalBellBadge,
body.fcc-app-shell-v1 .fcc-header-alert-badge,
body.fcc-app-shell-v1 [data-notification-count] {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
  opacity: 1;
}

/* ---- Panel container: keep panel opaque; only the backdrop dims ---- */
body.fcc-app-shell-v1 .fcc-account-attention-backdrop {
  background: rgba(17, 20, 47, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.fcc-app-shell-v1 .fcc-account-attention-panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.97));
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow:
    0 28px 80px rgba(38, 20, 84, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #11142f;
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  opacity: 1;
}

/* ---- Panel TEXT: override the legacy white-on-dark palette ---- */
body.fcc-app-shell-v1 .fcc-account-attention-panel,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-content,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-title,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-section-title,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-title {
  color: #11142f;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-summary,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-subtitle {
  color: #4b556f;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-meta,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-chevron,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-empty {
  color: #6b5f8f;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel a {
  color: #7c3aed;
}

/* Header close pill */
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-close {
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-close:hover {
  background: rgba(124, 58, 237, 0.18);
}

/* Filter pills row */
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-pill {
  background: rgba(124, 58, 237, 0.10);
  color: #5b4a86;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-pill:hover {
  background: rgba(124, 58, 237, 0.16);
}

/* Section accordion */
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-section {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 6px 18px rgba(70, 40, 120, 0.06);
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-section-head {
  background: rgba(124, 58, 237, 0.06);
  color: #11142f;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-section-count {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
}

/* Item rows: white cards with lavender borders + dark navy text */
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item--dar,
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item--reward {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 8px 22px rgba(70, 40, 120, 0.06);
  color: #11142f;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-chevron-btn {
  background: rgba(124, 58, 237, 0.06);
  color: #7c3aed;
  border-left: 1px solid rgba(124, 58, 237, 0.14);
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-item-chevron-btn:hover {
  background: rgba(124, 58, 237, 0.12);
}

/* DAR / device-approval buttons inside item rows */
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-dar-btn {
  color: #ffffff;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-dar-btn--approve {
  background: linear-gradient(135deg, #7c3aed, #a855f7 52%, #ec4899);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.24);
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-dar-btn--deny {
  background: rgba(124, 58, 237, 0.10);
  color: #5b4a86;
}
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-account-attention-dar-btn--deny:hover {
  background: rgba(124, 58, 237, 0.18);
}

/* Generic submit / primary action button inside the panel */
body.fcc-app-shell-v1 .fcc-account-attention-panel .btn-primary,
body.fcc-app-shell-v1 .fcc-account-attention-panel button[type="submit"],
body.fcc-app-shell-v1 .fcc-account-attention-panel .fcc-attention-approve {
  background: linear-gradient(135deg, #7c3aed, #a855f7 52%, #ec4899) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24) !important;
}

/* ---- Standalone Notifications page (not the slideout) ---- */
body.fcc-app-shell-v1 #notifications .fcc-notifications-hero {
  background:
    radial-gradient(circle at 16% 24%, rgba(124, 58, 237, 0.10), transparent 36%),
    radial-gradient(circle at 84% 76%, rgba(236, 72, 153, 0.10), transparent 36%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 16px 40px rgba(70, 40, 120, 0.10);
  color: #11142f;
}
body.fcc-app-shell-v1 #notifications .fcc-delivery-card {
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.97);
  color: #11142f;
}


/* --------------------------------------------------------------------------
   END fcc-app-components-v1.css
   ========================================================================== */
