/* HTNS v302 r87 baseline — Home Media + Worship parity.
   Production baseline for the attached Home team reference. Both Sunday Team sections use the same compact card density, icon sizing, text alignment and pastel role colors. Home-only. */

/* ---------- Shared section geometry ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
){
  background:#fff !important;
  border:1.5px solid #d9e6f1 !important;
  border-radius:22px !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) > summary.home-team-card-head{
  min-height:72px !important;
  padding:10px 14px !important;
  gap:10px !important;
  border-bottom:1px solid #edf2f7 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-name{
  gap:12px !important;
  align-items:center !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-icon{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  flex-basis:48px !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-icon svg{
  width:25px !important;
  height:25px !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-icon{
  background:#eaf4fd !important;
  border:1.5px solid #cfe2f2 !important;
  color:#1479c2 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-icon{
  background:#f1e8fb !important;
  border:1.5px solid #dcc9f1 !important;
  color:#7d2bc4 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-title{
  color:#123b75 !important;
  font-size:21px !important;
  line-height:1.05 !important;
  font-weight:1000 !important;
  letter-spacing:.01em !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-count{
  color:#6e7d93 !important;
  margin-top:3px !important;
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:650 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) .home-team-chevron{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  flex-basis:32px !important;
  border-radius:10px !important;
  background:transparent !important;
  color:#0c366d !important;
}

/* ---------- Identical two-column member grid ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"][open] .home-team-grid.home-media-grid,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"][open] .home-team-grid.home-worship-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;
  gap:8px !important;
  margin:9px 10px 12px !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-grid.home-media-grid > .home-team-member,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-grid.home-media-grid > .home-team-member.mine,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-grid.home-worship-grid > .home-team-member,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-grid.home-worship-grid > .home-team-member.mine{
  min-width:0 !important;
  min-height:62px !important;
  padding:8px 10px !important;
  gap:8px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:1.5px solid #dbe6f0 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-grid.home-media-grid > .home-team-member.mine,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-grid.home-worship-grid > .home-team-member.mine{
  background:#fff9e8 !important;
  border-color:#f0d57a !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],
  details[data-home-team="worship"]
) .home-team-member-copy{
  min-width:0 !important;
  flex:1 1 auto !important;
  gap:2px !important;
  overflow:hidden !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],
  details[data-home-team="worship"]
) .home-team-person{
  color:#123b75 !important;
  font-size:17px !important;
  line-height:1.08 !important;
  font-weight:1000 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],
  details[data-home-team="worship"]
) .home-team-role{
  color:#66758d !important;
  font-size:12.25px !important;
  line-height:1.12 !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* ---------- Shared reasonable role icon size ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],
  details[data-home-team="worship"]
) .home-team-role-icon{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  flex:0 0 44px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border-radius:14px !important;
  border:1.5px solid transparent !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],
  details[data-home-team="worship"]
) .home-team-role-icon svg{
  width:23px !important;
  height:23px !important;
  display:block !important;
  stroke:currentColor !important;
  stroke-width:1.95 !important;
  fill:none !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

/* ---------- Media colors ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="coordinator"]{background:#fff1c9 !important;border-color:#f0d98f !important;color:#d28c00 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="morning"]{background:#fff3d2 !important;border-color:#f2ddb0 !important;color:#e58a00 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="livestream"]{background:#f1e7fc !important;border-color:#dfcdf4 !important;color:#7d38c8 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="sound"]{background:#dff4e8 !important;border-color:#c7e7d5 !important;color:#0b8a61 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="propresenter"]{background:#eaf4fd !important;border-color:#cfe2f2 !important;color:#2380d7 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="lightsound"]{background:#f8e4ee !important;border-color:#efd0df !important;color:#be2a67 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="photographer"]{background:#dff4e8 !important;border-color:#c7e7d5 !important;color:#0a8a60 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] [data-home-media-icon="power"]{background:#f8e3ea !important;border-color:#efcfda !important;color:#c42a53 !important;}

/* ---------- Worship colors: every role gets its own polished pastel ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="leader"]{background:#e8f4ff !important;border-color:#cce4f7 !important;color:#1682d4 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="piano"]{background:#eaf4fd !important;border-color:#cfe2f2 !important;color:#2380d7 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="guitar"]{background:#dff4e8 !important;border-color:#c7e7d5 !important;color:#0b8a61 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="subkey"]{background:#fff1c9 !important;border-color:#f0d98f !important;color:#d88a00 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="drums"]{background:#f1e7fc !important;border-color:#dfcdf4 !important;color:#7d38c8 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="bass"]{background:#eaf4fd !important;border-color:#cfe2f2 !important;color:#1978c9 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] [data-home-worship-icon="singers"]{background:#f6e7fb !important;border-color:#e7cef2 !important;color:#a23cc2 !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .mine-star{color:#f3b51b !important;}

/* ---------- Singers row: same compact visual language, one-line names ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship{
  grid-column:1 / -1 !important;
  display:flex !important;
  align-items:center !important;
  min-height:60px !important;
  padding:8px 10px !important;
  gap:8px !important;
  border-radius:16px !important;
  border:1.5px solid #e2d2ee !important;
  background:#fcf9fe !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-label{
  flex:0 0 auto !important;
  margin:0 !important;
  color:#123b75 !important;
  font-size:16px !important;
  line-height:1 !important;
  font-weight:1000 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-team-person-list{
  min-width:0 !important;
  flex:1 1 auto !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:4px !important;
  margin:0 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-team-person-chip{
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#52647e !important;
  font-size:12.25px !important;
  line-height:1 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-dot{
  color:#8996a8 !important;
  font-size:11px !important;
  line-height:1 !important;
}

/* Previous requested empty Worship Songs label. */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-worship-song-empty{
  color:#123b75 !important;
  font-size:17px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
}

/* ---------- Phone tuning ---------- */
@media (max-width:720px){
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
    details.home-team-card.home-team-collapsible[data-home-team="media"],
    details.home-team-card.home-team-collapsible[data-home-team="worship"]
  ) > summary.home-team-card-head{
    min-height:66px !important;
    padding:9px 11px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-icon{
    width:44px !important;height:44px !important;min-width:44px !important;flex-basis:44px !important;border-radius:15px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-title{font-size:19px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-count{font-size:12px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"][open] .home-team-grid.home-media-grid,
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"][open] .home-team-grid.home-worship-grid{
    gap:7px !important;
    margin:8px 9px 11px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-grid.home-media-grid > .home-team-member,
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"] .home-team-grid.home-media-grid > .home-team-member.mine,
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-grid.home-worship-grid > .home-team-member,
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-team-grid.home-worship-grid > .home-team-member.mine{
    min-height:58px !important;
    padding:7px 8px !important;
    gap:7px !important;
    border-radius:15px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-role-icon{
    width:40px !important;height:40px !important;min-width:40px !important;flex-basis:40px !important;border-radius:13px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-role-icon svg{width:21px !important;height:21px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-person{font-size:15.5px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(details[data-home-team="media"],details[data-home-team="worship"]) .home-team-role{font-size:11.25px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship{
    min-height:56px !important;padding:7px 8px !important;gap:7px !important;border-radius:15px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-label{font-size:14px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-team-person-chip{font-size:10.75px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-dot{font-size:10px !important;}
}
@media (max-width:349px){
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="media"][open] .home-team-grid.home-media-grid,
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"][open] .home-team-grid.home-worship-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }
}


/* ---------- r87 baseline alignment hardening ---------- */
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-dashboard{
  margin-top:0 !important;
  min-width:0 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-dashboard-head{
  display:flex !important;
  align-items:center !important;
  min-height:24px !important;
  margin:0 2px 8px !important;
  padding:0 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-dashboard-head .home-section-title{
  margin:0 !important;
  color:#6b7d93 !important;
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-combined-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:14px !important;
  min-width:0 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
){
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) > summary.home-team-card-head{
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  list-style:none !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details.home-team-card.home-team-collapsible[data-home-team="media"],
  details.home-team-card.home-team-collapsible[data-home-team="worship"]
) > summary.home-team-card-head::-webkit-details-marker{display:none !important;}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],details[data-home-team="worship"]
) .home-team-name,
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],details[data-home-team="worship"]
) .home-team-name > div:not(.home-team-icon){
  min-width:0 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],details[data-home-team="worship"]
) .home-team-chevron{
  display:grid !important;
  place-items:center !important;
  align-self:center !important;
  margin-left:auto !important;
  padding:0 !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home :is(
  details[data-home-team="media"],details[data-home-team="worship"]
) .home-team-chevron svg{
  width:20px !important;
  height:20px !important;
  display:block !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-icon{
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  display:grid !important;
  place-items:center !important;
}
html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-icon .home-team-role-icon{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  flex-basis:40px !important;
  margin:0 !important;
}
@media (max-width:390px){
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-combined-card{gap:12px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-dashboard-head{margin-bottom:7px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home .home-team-dashboard-head .home-section-title{font-size:12px !important;}
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-icon{
    flex-basis:38px !important;width:38px !important;height:38px !important;min-width:38px !important;
  }
  html.htns-theme-v234[data-theme="light"] body #app #mainApp #view-home details[data-home-team="worship"] .home-singers-inline-card-worship .home-singers-inline-icon .home-team-role-icon{
    width:38px !important;height:38px !important;min-width:38px !important;flex-basis:38px !important;
  }
}
