.managed-home-section {padding: 1rem; min-width: 0}
.managed-home-section[hidden], .managed-home-card[hidden], .home-content-admin [hidden], #dashboardPanel .home-rotation-controls[hidden], #dashboardPanel .home-rotation-dot[hidden], #dashboardPanel img[hidden], #dashboardPanel .home-content-empty[hidden] {display: none !important}
.home-content-empty, .home-image-fallback {padding: .85rem 1rem; margin: .5rem 0; color: #42556e; background: #f2f6fa; border-radius: 8px; line-height: 1.5}
.home-content-manage {display: inline-block; margin-top: .5rem; color: #0757a4; font-weight: 600}
.managed-home-section h2 {margin: 0 0 .75rem; font-size: 1.125rem}
.managed-home-list {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem}
.home-rotation-controls, .home-rotation-dots {display: flex; align-items: center; justify-content: center; gap: .35rem}
.home-rotation-controls {flex-wrap: wrap; margin-top: .65rem}
.home-rotation-controls button {border: 1px solid #c6d6ea; border-radius: 8px; background: #fff; color: #174878; cursor: pointer}
.home-rotation-controls :is(.home-rotation-arrow, .home-rotation-toggle) {min-width: 2rem; min-height: 2rem; padding: 0; font-size: 1.25rem}
.home-rotation-controls .home-rotation-dot {display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-color: transparent; padding: 0}
.home-rotation-dot::after {content: ""; width: .55rem; height: .55rem; background: #9eb3cb; border-radius: 50%}
.home-rotation-dot[aria-pressed="true"]::after {background: #1468d2}
.managed-home-card {min-width: 0; border: 1px solid #d5e2f0; border-radius: 10px; overflow: hidden; background: #fff}
.managed-home-card img {display: block; width: 100%; height: auto; background: #f2f6fa}
#dashboardPanel {max-width: 112rem; margin-inline: auto}
#dashboardPanel .home-top-grid {
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: stretch;
}
#dashboardPanel .home-primary-card {
  grid-template-rows: auto auto;
  align-content: center;
}
#dashboardPanel .home-primary-visual {
  align-self: center;
  max-height: 280px;
}
#dashboardPanel .home-hero-illustration {
  height: auto;
  max-height: 280px;
}
#dashboardPanel #homeDonationTrack {overflow: hidden; border-radius: 10px}
#managedHomeDonation {padding: .75rem}
#managedHomeDonation h2 {margin-bottom: .5rem}
#managedHomeDonation .managed-home-copy {padding: .5rem .75rem}
#managedHomeDonation .managed-home-copy > :last-child {margin-bottom: 0}
#managedHomeDonation .home-rotation-controls {margin-top: .4rem}
@media (max-width: 1320px) {
  #dashboardPanel .home-top-grid {grid-template-columns: minmax(0, 1fr)}
  #dashboardPanel .home-primary-card {min-height: 0}
}
.managed-home-copy {padding: .8rem; overflow-wrap: anywhere}
.managed-home-copy h3, .managed-home-copy p {margin: 0 0 .5rem}
.managed-home-copy p {white-space: pre-wrap}
.managed-home-copy a {color: #0757a4; font-weight: 600}
#dashboardPanel[data-managed-donation="true"] #homeFreeContent,
#dashboardPanel[data-managed-ecosystem="true"] #homeBilgiEcosystem {display: none !important}
#dashboardPanel[data-managed-donation="true"] #homeDynamicCard:has(#managedHomeDonation[hidden]):has(#homeLicensedContent.hidden) {display: none}
.home-content-admin {display: grid; gap: 1rem}
.home-content-admin .hc-form {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem}
.home-content-admin label {display: grid; gap: .35rem; align-content: start; min-width: 0}
.home-content-admin label :is(input, select, textarea) {width: 100%; min-width: 0; box-sizing: border-box}
.home-content-admin .hc-wide {grid-column: 1 / -1}
.home-content-admin .hc-list {display: grid; gap: .65rem}
.home-content-admin .hc-entry {display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; border: 1px solid #d5e2f0; border-radius: 8px; padding: .65rem .8rem}
.home-content-admin .hc-entry p {margin: .2rem 0; color: #42556e}
.home-content-admin .hc-actions {display: flex; flex-wrap: wrap; gap: .45rem; align-items: center}
.home-content-admin .hc-actions input[type=number] {width: 6rem}

#dashboardPanel[data-managed-donation="true"] .home-top-grid:has(#homeDynamicCard > #managedHomeDonation[hidden]):has(#homeLicensedContent.hidden) {
  grid-template-columns: minmax(0, 1fr);
}
#homeDynamicCard:has(#managedHomeDonation:not([hidden])) #homeLicensedContent {height: auto}
@media (min-width: 1181px) {
  .platform-workspace .mc-tabs:has([data-mc-tab="content"]) {grid-template-columns: repeat(7, minmax(106px, 1fr))}
}
