/* ==========================================================================
   FCC Profiles Blueprint Redesign
   Scope: Family Profiles page only
   Visual source: profiles-redesign-blueprint.png
   Every selector is scoped under body.fcc-app-shell-v1 #profiles so this layer
   only affects the Family Profiles page and never leaks into other modules.
   ========================================================================== */

body.fcc-app-shell-v1 #profiles {
  --fcc-profiles-violet: #7c3aed;
  --fcc-profiles-violet-2: #8b5cf6;
  --fcc-profiles-pink: #ec4899;
  --fcc-profiles-rose: #fce7f3;
  --fcc-profiles-lavender: #f4ebff;
  --fcc-profiles-ink: #17132f;
  --fcc-profiles-muted: #6f6a8a;
  --fcc-profiles-border: rgba(124, 58, 237, 0.14);
  --fcc-profiles-border-strong: rgba(168, 85, 247, 0.24);
  --fcc-profiles-card: rgba(255, 255, 255, 0.92);
  --fcc-profiles-shadow: 0 20px 60px rgba(83, 45, 128, 0.10), 0 3px 12px rgba(17, 12, 46, 0.05);

  min-width: 0;
  overflow-x: hidden;
  color: var(--fcc-profiles-ink);
}

body.fcc-app-shell-v1 #profiles,
body.fcc-app-shell-v1 #profiles * {
  box-sizing: border-box;
}

/* Page shell: constrain width, center, no horizontal overflow ---------------- */
body.fcc-app-shell-v1 #profiles #profilesPage,
body.fcc-app-shell-v1 #profiles .fcc-profiles-page-shell {
  width: min(100%, 1560px);
  margin-inline: auto;
  min-width: 0;
}

/* Neutralize the legacy single wrapper card so each inner section reads as its
   own standalone panel (hero / stats / overview / members), matching blueprint */
body.fcc-app-shell-v1 #profiles .family-profiles-manager {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-profiles-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--fcc-profiles-border);
  background:
    radial-gradient(circle at 92% 18%, rgba(236, 72, 153, 0.18), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(250, 245, 255, 0.98), rgba(253, 242, 248, 0.94));
  box-shadow: var(--fcc-profiles-shadow);
  padding: clamp(26px, 3vw, 42px);
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(140px, 210px);
  align-items: center;
  gap: 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-hero h1,
body.fcc-app-shell-v1 #profiles .fcc-profiles-hero h2 {
  margin: 0;
  color: var(--fcc-profiles-ink);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-hero p {
  color: var(--fcc-profiles-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 52ch;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero decorative family/profile illustration (CSS-only, layered) ------------ */
body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-art {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 132px;
  pointer-events: none;
  justify-self: end;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.40), rgba(124, 58, 237, 0.30));
  filter: blur(0.2px);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-orb-a {
  width: 120px;
  height: 120px;
  top: 4px;
  right: 6px;
  background: radial-gradient(circle at 32% 28%, rgba(196, 181, 253, 0.55), rgba(124, 58, 237, 0.18));
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-orb-b {
  width: 64px;
  height: 64px;
  bottom: -6px;
  left: 6px;
  background: radial-gradient(circle at 34% 30%, rgba(251, 207, 232, 0.85), rgba(236, 72, 153, 0.22));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.18);
}

/* Layered family silhouettes (three overlapping head + shoulder figures) */
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-group {
  position: absolute;
  inset: 0;
  display: block;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person {
  position: absolute;
  bottom: 14px;
  width: 46px;
  height: 60px;
}

/* head */
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.16);
}

/* shoulders */
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 34px;
  border-radius: 26px 26px 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.14);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-a {
  left: 64px;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(124, 58, 237, 0.12));
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-b {
  left: 98px;
  bottom: 8px;
  transform: scale(0.86);
  z-index: 2;
  opacity: 0.92;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-b::before,
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-b::after {
  background: rgba(243, 232, 255, 0.95);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-c {
  left: 34px;
  bottom: 6px;
  transform: scale(0.74);
  z-index: 1;
  opacity: 0.85;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-c::before,
body.fcc-app-shell-v1 #profiles .fcc-profiles-art-person-c::after {
  background: rgba(252, 231, 243, 0.95);
}

/* ==========================================================================
   2. SUMMARY STAT CARDS
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-stat-grid,
body.fcc-app-shell-v1 #profiles .fcc-profiles-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-stat-card,
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-card {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--fcc-profiles-border);
  box-shadow: 0 12px 28px rgba(83, 45, 128, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}

body.fcc-app-shell-v1 #profiles .fcc-stat-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.fcc-app-shell-v1 #profiles .fcc-stat-card-value {
  color: var(--fcc-profiles-ink);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
}

body.fcc-app-shell-v1 #profiles .fcc-stat-card-label {
  color: rgba(23, 19, 47, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.fcc-app-shell-v1 #profiles .fcc-stat-card-hint {
  color: var(--fcc-profiles-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* Stat icon bubbles */
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.06));
  color: var(--fcc-profiles-violet);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon-members {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.07));
  color: #7c3aed;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon-parents {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.07));
  color: #15803d;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon-children {
  background: linear-gradient(135deg, rgba(56, 135, 220, 0.20), rgba(56, 135, 220, 0.07));
  color: #2b74d4;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon-caretakers {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.07));
  color: #c2410c;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-stat-icon-invites {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.07));
  color: #db2777;
}

/* ==========================================================================
   3. TWO-COLUMN OVERVIEW (Pending Invitations + Family Address)
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-profiles-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 0 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-overview-grid > * {
  min-width: 0;
}

body.fcc-app-shell-v1 #profiles #pendingInvitationsPanel,
body.fcc-app-shell-v1 #profiles .family-address-section {
  background: var(--fcc-profiles-card);
  border: 1px solid var(--fcc-profiles-border);
  border-radius: 26px;
  box-shadow: var(--fcc-profiles-shadow);
  backdrop-filter: blur(16px);
  padding: clamp(22px, 2vw, 30px);
}

body.fcc-app-shell-v1 #profiles .family-address-section {
  position: relative;
  overflow: hidden;
}

body.fcc-app-shell-v1 #profiles .family-address-section h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fcc-profiles-ink);
}

body.fcc-app-shell-v1 #profiles .family-address-subtitle {
  color: var(--fcc-profiles-muted);
  margin: 0 0 14px;
}

/* Keep address text/controls above the decorative house */
body.fcc-app-shell-v1 #profiles .family-address-section > *:not(.fcc-profiles-address-art) {
  position: relative;
  z-index: 1;
}

/* Family Address house illustration (CSS-only) */
body.fcc-app-shell-v1 #profiles .fcc-profiles-address-art {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 120px;
  height: 96px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-address-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   4. FAMILY MEMBERS CARD / TABLE
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-family-members-card {
  min-width: 0;
  background: var(--fcc-profiles-card);
  border: 1px solid var(--fcc-profiles-border);
  border-radius: 26px;
  box-shadow: var(--fcc-profiles-shadow);
  backdrop-filter: blur(16px);
  padding: clamp(22px, 2vw, 30px);
  margin: 0 0 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-card > h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--fcc-profiles-ink);
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-subtitle {
  color: var(--fcc-profiles-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap thead th {
  text-align: left;
  color: var(--fcc-profiles-violet);
  background: rgba(124, 58, 237, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 12px 14px;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap thead th:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap thead th:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap tbody td {
  border-top: 1px solid rgba(124, 58, 237, 0.10);
  vertical-align: middle;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fcc-profiles-ink);
}

body.fcc-app-shell-v1 #profiles .fcc-family-members-table-wrap tbody tr:hover td {
  background: rgba(124, 58, 237, 0.035);
}

/* Role + status pills */
body.fcc-app-shell-v1 #profiles .fcc-profiles-role-pill,
body.fcc-app-shell-v1 #profiles .fcc-profiles-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.10);
  color: var(--fcc-profiles-violet);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-type-text {
  color: var(--fcc-profiles-muted);
  font-size: 13px;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-status-invited {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

/* Circular row action buttons */
body.fcc-app-shell-v1 #profiles .fcc-profiles-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-row-action {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--fcc-profiles-border-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fcc-profiles-violet);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-row-action svg {
  width: 17px;
  height: 17px;
  display: block;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-row-action:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.16);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-row-action--danger {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.24);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-row-action[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   5. FOOTER STRIP
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-profile-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  background: rgba(250, 245, 255, 0.72);
  padding: 16px 20px;
  margin: 0 0 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-profile-footer-strip-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fcc-profiles-muted);
  font-size: 14px;
  min-width: 0;
}

body.fcc-app-shell-v1 #profiles .fcc-profile-footer-strip-text svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--fcc-profiles-violet);
}

/* ==========================================================================
   6. SHARED BUTTONS / INPUTS (selected-profile area + toolbar)
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-btn.primary,
body.fcc-app-shell-v1 #profiles .btn-primary {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fcc-profiles-violet), var(--fcc-profiles-pink));
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.28);
}

body.fcc-app-shell-v1 #profiles .fcc-btn.primary:hover,
body.fcc-app-shell-v1 #profiles .btn-primary:hover {
  filter: brightness(1.04);
}

body.fcc-app-shell-v1 #profiles .btn-secondary {
  border: 1px solid var(--fcc-profiles-border-strong);
  color: var(--fcc-profiles-violet);
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.08);
}

/* Selected profile detail (secondary, below Family Members) */
body.fcc-app-shell-v1 #profiles .profile-toolbar,
body.fcc-app-shell-v1 #profiles .family-profile-card {
  min-width: 0;
  background: var(--fcc-profiles-card);
  border: 1px solid var(--fcc-profiles-border);
  border-radius: 26px;
  box-shadow: var(--fcc-profiles-shadow);
  backdrop-filter: blur(16px);
}

body.fcc-app-shell-v1 #profiles .profile-toolbar {
  padding: clamp(18px, 1.6vw, 24px);
  margin: 0 0 20px;
}

body.fcc-app-shell-v1 #profiles .family-profile-card {
  padding: clamp(22px, 2vw, 30px);
}

body.fcc-app-shell-v1 #profiles input,
body.fcc-app-shell-v1 #profiles select,
body.fcc-app-shell-v1 #profiles textarea {
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--fcc-profiles-ink);
}

body.fcc-app-shell-v1 #profiles input:focus,
body.fcc-app-shell-v1 #profiles select:focus,
body.fcc-app-shell-v1 #profiles textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.52);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-actions {
    justify-content: flex-start;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-art {
    position: absolute;
    right: 22px;
    top: 18px;
    opacity: 0.5;
  }
  body.fcc-app-shell-v1 #profiles .fcc-stat-grid,
  body.fcc-app-shell-v1 #profiles .fcc-profiles-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.fcc-app-shell-v1 #profiles .fcc-stat-grid,
  body.fcc-app-shell-v1 #profiles .fcc-profiles-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero {
    border-radius: 24px;
    padding: 22px;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-actions,
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-actions > * {
    width: 100%;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-hero-art {
    width: 120px;
    height: 88px;
    opacity: 0.3;
    top: 14px;
    right: 14px;
  }
  body.fcc-app-shell-v1 #profiles .fcc-stat-grid,
  body.fcc-app-shell-v1 #profiles .fcc-profiles-stats-grid {
    grid-template-columns: 1fr;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profile-footer-strip {
    flex-direction: column;
    align-items: stretch;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-address-art {
    width: 92px;
    height: 74px;
    opacity: 0.42;
  }
}

@media (max-width: 480px) {
  body.fcc-app-shell-v1 #profiles #pendingInvitationsPanel,
  body.fcc-app-shell-v1 #profiles .family-address-section,
  body.fcc-app-shell-v1 #profiles .fcc-family-members-card,
  body.fcc-app-shell-v1 #profiles .family-profile-card,
  body.fcc-app-shell-v1 #profiles .profile-toolbar {
    border-radius: 20px;
    padding: 18px;
  }
}

/* ==========================================================================
   FAMILY MEMBERS — NAME COLUMN AVATAR
   Small rounded avatar bubble before each member's name (image / emoji / initials)
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-family-member-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.fcc-app-shell-v1 #profiles .fcc-family-member-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--fcc-profiles-violet);
  font-weight: 850;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(83, 45, 128, 0.08);
}

body.fcc-app-shell-v1 #profiles .fcc-family-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.fcc-app-shell-v1 #profiles .fcc-family-member-avatar-emoji {
  font-size: 20px;
  line-height: 1;
}

body.fcc-app-shell-v1 #profiles .fcc-family-member-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   PARENT DEFAULT QUICK ACTIONS (Add Child / Invite adult)
   Kept accessible above the table now that the inline detail card is gone.
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-profiles-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-quick-actions .profile-toolbar-left-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   PROFILES ACTION OVERLAY (Edit profile centered modal)
   Edit opens over the current table view rather than as an inline card below it.
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 46, 0.48);
  backdrop-filter: blur(10px);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 30px 90px rgba(17, 12, 46, 0.28);
  display: flex;
  flex-direction: column;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.98), rgba(253, 242, 248, 0.92));
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-eyebrow {
  margin: 0 0 6px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-header h2 {
  margin: 0;
  color: #17132f;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-close:hover {
  background: rgba(168, 85, 247, 0.12);
}

body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 26px 26px;
}

/* Flatten inner card chrome inside the overlay so it reads as one surface */
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body .profile-toolbar,
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body .family-profile-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 18px;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body .family-profile-card {
  margin-bottom: 0;
}
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body form,
body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body .profile-card {
  max-width: 100%;
}

@media (max-width: 760px) {
  body.fcc-app-shell-v1 #profiles .fcc-profiles-action-overlay {
    padding: 12px;
    align-items: end;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 18px 18px;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-header,
  body.fcc-app-shell-v1 #profiles .fcc-profiles-action-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ==========================================================================
   IMPORTANT DATES CARD (Phase 5.2A)
   ========================================================================== */
body.fcc-app-shell-v1 #profiles .fcc-important-dates-card {
  margin: 18px 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.94)),
    radial-gradient(circle at top right, rgba(216, 180, 254, 0.32), transparent 38%);
  box-shadow:
    0 24px 54px rgba(76, 29, 149, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-card__title {
  margin: 0 0 4px;
  color: #17132f;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-card__subtitle {
  margin: 0;
  color: #6b6780;
  font-size: 14px;
  line-height: 1.45;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-orb,
body.fcc-app-shell-v1 .fcc-important-dates-empty__orb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.22);
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-list {
  display: grid;
  gap: 12px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-row,
body.fcc-app-shell-v1 .fcc-important-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(168, 85, 247, 0.08);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-row__main,
body.fcc-app-shell-v1 .fcc-important-date-row__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon,
body.fcc-app-shell-v1 .fcc-important-date-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--anniversary,
body.fcc-app-shell-v1 .fcc-important-date-icon--anniversary {
  background: rgba(244, 114, 182, 0.14);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--birthday,
body.fcc-app-shell-v1 .fcc-important-date-icon--birthday {
  background: rgba(251, 113, 133, 0.14);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--school,
body.fcc-app-shell-v1 .fcc-important-date-icon--school {
  background: rgba(96, 165, 250, 0.14);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--medical,
body.fcc-app-shell-v1 .fcc-important-date-icon--medical {
  background: rgba(74, 222, 128, 0.16);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--memorial,
body.fcc-app-shell-v1 .fcc-important-date-icon--memorial {
  background: rgba(251, 191, 36, 0.18);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--holiday,
body.fcc-app-shell-v1 .fcc-important-date-icon--holiday,
body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--milestone,
body.fcc-app-shell-v1 .fcc-important-date-icon--milestone,
body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--custody,
body.fcc-app-shell-v1 .fcc-important-date-icon--custody,
body.fcc-app-shell-v1 #profiles .fcc-important-date-icon--default,
body.fcc-app-shell-v1 .fcc-important-date-icon--default {
  background: rgba(196, 181, 253, 0.18);
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-copy,
body.fcc-app-shell-v1 .fcc-important-date-copy {
  min-width: 0;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-title,
body.fcc-app-shell-v1 .fcc-important-date-title {
  color: #17132f;
  font-weight: 780;
  font-size: 15px;
  line-height: 1.3;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-subtitle,
body.fcc-app-shell-v1 .fcc-important-date-subtitle {
  margin-top: 3px;
  color: #6b6780;
  font-size: 13px;
  line-height: 1.35;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-note-preview,
body.fcc-app-shell-v1 .fcc-important-date-note-preview {
  margin-top: 6px;
  color: #7c7890;
  font-size: 12px;
  line-height: 1.4;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-meta,
body.fcc-app-shell-v1 .fcc-important-date-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-meta span,
body.fcc-app-shell-v1 .fcc-important-date-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #6b21a8;
  font-size: 11px;
  font-weight: 700;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-side,
body.fcc-app-shell-v1 .fcc-important-date-side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-date,
body.fcc-app-shell-v1 .fcc-important-date-date {
  color: #17132f;
  font-size: 14px;
  font-weight: 760;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill,
body.fcc-app-shell-v1 .fcc-important-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--today,
body.fcc-app-shell-v1 .fcc-important-date-pill--today {
  background: rgba(74, 222, 128, 0.16);
  color: #15803d;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--tomorrow,
body.fcc-app-shell-v1 .fcc-important-date-pill--tomorrow {
  background: rgba(96, 165, 250, 0.16);
  color: #1d4ed8;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--soon,
body.fcc-app-shell-v1 .fcc-important-date-pill--soon {
  background: rgba(244, 114, 182, 0.16);
  color: #be185d;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--future,
body.fcc-app-shell-v1 .fcc-important-date-pill--future,
body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--neutral,
body.fcc-app-shell-v1 .fcc-important-date-pill--neutral {
  background: rgba(192, 132, 252, 0.16);
  color: #7c3aed;
}

body.fcc-app-shell-v1 #profiles .fcc-important-date-pill--passed,
body.fcc-app-shell-v1 .fcc-important-date-pill--passed {
  background: rgba(251, 146, 60, 0.16);
  color: #c2410c;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-loading {
  display: grid;
  gap: 12px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-skeleton {
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(237, 233, 254, 0.9), rgba(255, 255, 255, 0.95), rgba(237, 233, 254, 0.9));
  background-size: 200% 100%;
  animation: fcc-important-dates-shimmer 1.4s linear infinite;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-skeleton--title {
  height: 18px;
  width: 46%;
  border-radius: 999px;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-empty,
body.fcc-app-shell-v1 .fcc-important-dates-empty {
  padding: 18px 10px 6px;
  display: grid;
  justify-items: center;
  text-align: center;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-empty--modal,
body.fcc-app-shell-v1 .fcc-important-dates-empty--modal {
  min-height: 280px;
  align-content: center;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-empty__title,
body.fcc-app-shell-v1 .fcc-important-dates-empty__title {
  margin-top: 14px;
  color: #17132f;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.fcc-app-shell-v1 #profiles .fcc-important-dates-empty__text,
body.fcc-app-shell-v1 .fcc-important-dates-empty__text {
  max-width: 340px;
  margin: 8px auto 0;
  color: #6b6780;
  font-size: 14px;
  line-height: 1.5;
}

/* Important Dates inside the profile edit overlay — compact variant */
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(124, 58, 237, 0.10);
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-card {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-card__title {
  font-size: 18px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-card__subtitle {
  font-size: 13px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-orb {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 18px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-empty {
  padding: 14px 0;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-empty__orb {
  font-size: 28px;
  margin-bottom: 10px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-empty__title {
  font-size: 15px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-empty__text {
  font-size: 13px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-date-row {
  padding: 12px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-date-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 17px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-date-title {
  font-size: 14px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-date-subtitle {
  font-size: 12px;
}
body.fcc-app-shell-v1 #profiles .fcc-important-dates-overlay-section .fcc-important-dates-list {
  gap: 10px;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 46, 0.48);
  backdrop-filter: blur(10px);
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  max-height: min(84vh, 840px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: 0 30px 90px rgba(17, 12, 46, 0.28);
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__header,
body.fcc-app-shell-v1 .fcc-important-dates-sheet__footer {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.98), rgba(253, 242, 248, 0.92));
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__header h3 {
  margin: 0;
  color: #17132f;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__header p {
  margin: 6px 0 0;
  color: #6b6780;
  font-size: 14px;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #7c3aed;
  font-size: 22px;
  cursor: pointer;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 24px;
  display: grid;
  gap: 12px;
}

body.fcc-app-shell-v1 .fcc-important-dates-sheet__footer {
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.96)),
    radial-gradient(circle at top right, rgba(216, 180, 254, 0.24), transparent 42%);
  border: 1px solid rgba(168, 85, 247, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-avatar .profile-avatar {
  width: 72px;
  height: 72px;
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-copy {
  display: grid;
  gap: 4px;
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-kicker {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-name {
  color: #17132f;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-meta {
  color: #6b6780;
  font-size: 13px;
  line-height: 1.45;
}

body.fcc-app-shell-v1 .fcc-important-dates-profile-orb {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d8b4fe, #8b5cf6);
  color: #fff;
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
}

body.fcc-app-shell-v1 .fcc-important-dates-form {
  display: grid;
  gap: 14px;
}

body.fcc-app-shell-v1 .fcc-important-dates-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.fcc-app-shell-v1 .fcc-important-dates-field {
  display: grid;
  gap: 7px;
  color: #433b63;
  font-size: 13px;
  font-weight: 700;
}

body.fcc-app-shell-v1 .fcc-important-dates-field--full {
  grid-column: 1 / -1;
}

body.fcc-app-shell-v1 .fcc-important-dates-field.is-disabled {
  opacity: 0.7;
}

body.fcc-app-shell-v1 .fcc-important-dates-input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.fcc-app-shell-v1 .fcc-important-dates-input:focus {
  border-color: rgba(124, 58, 237, 0.48);
  box-shadow:
    0 0 0 3px rgba(196, 181, 253, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.fcc-app-shell-v1 .fcc-important-dates-form textarea.fcc-important-dates-input {
  min-height: 96px;
  resize: vertical;
}

body.fcc-app-shell-v1 .fcc-important-dates-form-hint {
  margin: 0;
  color: #7c3aed;
  font-size: 12px;
  line-height: 1.45;
}

body.fcc-app-shell-v1 .fcc-important-dates-error {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(254, 226, 226, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.26);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

body.fcc-app-shell-v1 .fcc-important-dates-saving {
  opacity: 0.88;
}

/* Muted reminder hint (replaces old purple form-hint) */
body.fcc-app-shell-v1 .fcc-important-dates-hint-text {
  margin: 4px 0 0;
  color: #9b96b0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

/* Assigned-profiles picker */
body.fcc-app-shell-v1 .fcc-assigned-section {
  gap: 10px;
}

body.fcc-app-shell-v1 .fcc-assigned-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}

body.fcc-app-shell-v1 .fcc-assigned-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 2px solid rgba(167, 139, 250, 0.26);
  background: rgba(255, 255, 255, 0.96);
  color: #433b63;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}

body.fcc-app-shell-v1 .fcc-assigned-chip:hover {
  border-color: rgba(124, 58, 237, 0.46);
  background: rgba(237, 233, 254, 0.5);
}

body.fcc-app-shell-v1 .fcc-assigned-chip--selected,
body.fcc-app-shell-v1 .fcc-assigned-chip[aria-pressed="true"] {
  border-color: #7c3aed;
  background: rgba(237, 233, 254, 0.72);
  color: #17132f;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.32);
}

body.fcc-app-shell-v1 .fcc-assigned-chip__avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8b4fe, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.fcc-app-shell-v1 .fcc-assigned-chips-error {
  margin: 2px 0 0;
  color: #b91c1c;
  font-size: 12px;
}

body.fcc-app-shell-v1 .fcc-assigned-chips-empty {
  color: #9b96b0;
  font-size: 13px;
  margin: 4px 0 0;
}

/* Edit/Delete action buttons in View All rows */
body.fcc-app-shell-v1 .fcc-important-date-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-end;
}

body.fcc-app-shell-v1 .fcc-date-action-btn {
  appearance: none;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

body.fcc-app-shell-v1 .fcc-date-action-btn--edit {
  color: #7c3aed;
}

body.fcc-app-shell-v1 .fcc-date-action-btn--edit:hover {
  background: rgba(237, 233, 254, 0.7);
  border-color: rgba(124, 58, 237, 0.44);
}

body.fcc-app-shell-v1 .fcc-date-action-btn--delete {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.3);
}

body.fcc-app-shell-v1 .fcc-date-action-btn--delete:hover {
  background: rgba(254, 226, 226, 0.7);
  border-color: rgba(248, 113, 113, 0.5);
}

/* Delete confirm modal */
body.fcc-app-shell-v1 .fcc-important-dates-confirm {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 8px 8px;
}

body.fcc-app-shell-v1 .fcc-important-dates-confirm__icon {
  font-size: 40px;
  line-height: 1;
}

body.fcc-app-shell-v1 .fcc-important-dates-confirm__text {
  color: #433b63;
  font-size: 15px;
  line-height: 1.5;
  max-width: 360px;
}

/* btn-danger (delete confirm) */
body.fcc-app-shell-v1 .btn.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}

body.fcc-app-shell-v1 .btn.btn-danger:hover {
  background: #b91c1c;
}

@keyframes fcc-important-dates-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 760px) {
  body.fcc-app-shell-v1 #profiles .fcc-important-dates-card {
    padding: 18px 16px;
    border-radius: 22px;
  }
  body.fcc-app-shell-v1 #profiles .fcc-important-dates-card__footer {
    flex-wrap: wrap;
  }
  body.fcc-app-shell-v1 #profiles .fcc-important-date-row,
  body.fcc-app-shell-v1 .fcc-important-date-row {
    align-items: flex-start;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-sheet-wrap {
    padding: 12px;
    align-items: end;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 18px 18px;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-sheet__header,
  body.fcc-app-shell-v1 .fcc-important-dates-sheet__body,
  body.fcc-app-shell-v1 .fcc-important-dates-sheet__footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-profile-header {
    grid-template-columns: auto 1fr;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-profile-orb {
    display: none;
  }
  body.fcc-app-shell-v1 .fcc-important-dates-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAMILY ADDRESS DECORATIVE ART — larger, fills the right side on desktop
   ========================================================================== */
@media (min-width: 901px) {
  body.fcc-app-shell-v1 #profiles .family-address-section {
    padding-right: clamp(240px, 26vw, 320px);
    min-height: 240px;
  }
  body.fcc-app-shell-v1 #profiles .fcc-profiles-address-art {
    width: clamp(220px, 22vw, 280px);
    height: clamp(170px, 18vw, 215px);
    right: 24px;
    bottom: 18px;
    opacity: 0.9;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body.fcc-app-shell-v1 #profiles .fcc-profiles-address-art {
    width: 150px;
    height: 120px;
    right: 16px;
    bottom: 12px;
    opacity: 0.5;
  }
}
