/* Phase 5: live distribution fabric. Unique asset name intentionally defeats stale host/browser caches. */
.page-distribution .content { padding: 2rem clamp(1.1rem, 2.5vw, 3rem) 5rem; background: radial-gradient(circle at 68% -5%, rgba(255, 57, 146, .14), transparent 27%), radial-gradient(circle at 18% 19%, rgba(237, 58, 139, .13), transparent 28%), #14070d; }
.network-page-header { align-items: center; max-width: 1500px; margin-inline: auto; }
.network-page-header h1 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); background: linear-gradient(100deg, #090608 25%, #2f1923 70%, #2a171f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.network-page-header .lede { max-width: 720px; font-size: 1.02rem; }
.network-header-actions { display: flex; gap: .6rem; }
.network-channel-switcher { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: 1500px; margin: 0 auto 1rem; padding: .7rem .8rem; border: 1px solid #5e3045; border-radius: 14px; background: rgba(33, 12, 21, .9); }
.network-channel-switcher label { display: grid; grid-template-columns: auto minmax(180px, 280px); align-items: center; gap: .65rem; }
.network-channel-switcher select { padding-block: .55rem; }
.network-score { display: flex; gap: .45rem; }
.network-score span { display: flex; align-items: baseline; gap: .3rem; padding: .5rem .7rem; color: #d56d9c; border: 1px solid #64374b; border-radius: 10px; background: #2a101c; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.network-score strong { color: #fdf4f8; font-size: 1rem; }

.signal-stage { position: relative; isolation: isolate; max-width: 1500px; overflow: hidden; margin: 0 auto 1rem; padding: clamp(1rem, 2.3vw, 1.7rem); color: #ffeef6; border: 1px solid #783a56; border-radius: 22px; background: radial-gradient(circle at 92% 4%, rgba(213, 39, 117, .25), transparent 30%), radial-gradient(circle at 9% 100%, rgba(222, 66, 136, .26), transparent 33%), linear-gradient(140deg, #351423, #230b16 62%, #30121f); box-shadow: 0 25px 70px rgba(0,0,0,.34); }
.signal-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .25; background-image: linear-gradient(rgba(193, 119, 152, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(193, 119, 152, .12) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.signal-stage-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.signal-stage-head h2 { margin-bottom: .25rem; font-size: clamp(1.4rem, 2.3vw, 2.2rem); }
.signal-stage-head p:not(.eyebrow) { margin: 0; color: #d774a1; font-size: .82rem; }
.signal-state { display: inline-flex; align-items: center; gap: .5rem; padding: .48rem .7rem; color: #db81aa; border: 1px solid #73465a; border-radius: 999px; background: rgba(21, 6, 13, .6); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.signal-state i { width: 8px; height: 8px; border-radius: 50%; background: #9a7586; }
.signal-state.live { color: #78edbd; border-color: #296a52; }
.signal-state.live i { background: #20db91; box-shadow: 0 0 0 5px rgba(32,219,145,.12), 0 0 22px #20db91; }
.signal-state.testing, .signal-state.dispatch_requested { color: #ff8bbf; border-color: #725d2c; }
.signal-state.testing i, .signal-state.dispatch_requested i { background: #3e212e; box-shadow: 0 0 18px rgba(255, 77, 157, .7); }
.signal-state.degraded { color: #ffaaa2; border-color: #773d3b; }
.signal-state.degraded i { background: #391f2b; }
.signal-flow { display: grid; grid-template-columns: minmax(135px, 1fr) auto minmax(155px, 1.1fr) auto minmax(155px, 1.1fr) auto minmax(145px, 1fr) auto minmax(130px, .9fr); align-items: stretch; gap: .55rem; margin: 1.4rem 0 1rem; }
.signal-flow > i { display: grid; place-items: center; color: #e65697; font-size: 1.2rem; font-style: normal; filter: drop-shadow(0 0 7px rgba(230, 86, 151, .55)); }
.signal-flow article { position: relative; display: grid; align-content: center; min-width: 0; min-height: 132px; overflow: hidden; padding: .8rem; border: 1px solid #723f56; border-radius: 16px; background: linear-gradient(155deg, rgba(68, 30, 47, .94), rgba(36, 13, 23, .94)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.signal-flow article::after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 70px; height: 70px; border: 1px solid rgba(234, 92, 156, .18); border-radius: 50%; box-shadow: 0 0 0 12px rgba(213, 66, 132, .06), 0 0 0 25px rgba(216, 38, 118, .035); }
.signal-flow article > span { position: absolute; top: .55rem; right: .65rem; color: #ce578d; font-size: .62rem; font-weight: 950; }
.signal-flow article small { margin: 0 0 .48rem; color: #e95e9d; font-size: .56rem; font-weight: 900; letter-spacing: .1em; }
.signal-flow article strong { overflow: hidden; color: #fdf6f9; font-size: .78rem; line-height: 1.3; text-overflow: ellipsis; }
.signal-flow article em { margin-top: .55rem; color: #cf5b8f; font-size: .6rem; font-style: normal; }
.signal-flow .signal-destination { border-color: #a45177; background: radial-gradient(circle at 100% 0, rgba(255, 89, 164, .28), transparent 48%), linear-gradient(155deg, #4d2135, #2e1721); }
.reference-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.reference-paths article { padding: .7rem; border: 1px solid #67384d; border-radius: 11px; background: rgba(24, 7, 15, .54); }
.reference-paths article.recommended { border-color: #893c5f; background: linear-gradient(120deg, rgba(127, 24, 70, .2), rgba(151, 49, 95, .12)); }
.reference-paths span { display: block; margin-bottom: .3rem; color: #e75496; font-size: .53rem; font-weight: 950; letter-spacing: .09em; }
.reference-paths strong { font-size: .74rem; }
.reference-paths p { margin: .28rem 0 0; color: #cf598e; font-size: .61rem; line-height: 1.4; }
.signal-callout { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border-left: 3px solid #31262b; border-radius: 0 10px 10px 0; background: rgba(19, 3, 10, .48); }
.signal-callout strong { flex: 0 0 auto; color: #f9e5ee; font-size: .75rem; }
.signal-callout span { color: #d46999; font-size: .7rem; }
.signal-config { margin-top: .8rem; border-top: 1px solid #67344b; }
.signal-config > summary { padding: .9rem 0 .2rem; color: #ef8db9; cursor: pointer; font-size: .75rem; font-weight: 850; }
.signal-config form { padding-top: .8rem; }
.signal-form-actions { display: flex; justify-content: flex-end; }
.dispatch-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; padding: .8rem; border: 1px solid #8a4966; border-radius: 12px; background: linear-gradient(90deg, rgba(191, 53, 115, .17), rgba(177, 25, 93, .09)); }
.dispatch-strip div { display: grid; gap: .2rem; }
.dispatch-strip strong { font-size: .78rem; }
.dispatch-strip span { color: #d46d9b; font-size: .66rem; }
.page-distribution .signal-button { color: #ecb3cc; border: 0; background: linear-gradient(105deg, #3e212e, #2c1821); box-shadow: 0 8px 22px rgba(220, 63, 134, .2); }

.feed-dock { max-width: 1500px; margin: 0 auto 1rem; }
.feed-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem; }
.feed-card-grid article { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-width: 0; padding: .7rem; border: 1px solid #64364a; border-radius: 12px; background: #270d19; }
.feed-card-grid article > span { display: grid; place-items: center; width: 44px; height: 44px; color: #ffb1d4; background: #4e2236; border-radius: 11px; font-size: .58rem; font-weight: 950; }
.feed-card-grid article.ready-feed > span { color: #6ee8b6; background: #3b1224; }
.feed-card-grid strong { font-size: .76rem; }
.feed-card-grid p { margin: .18rem 0; color: #cf598e; font-size: .62rem; }
.feed-card-grid code { display: block; overflow: hidden; color: #ce578d; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.copy-feed { padding: .36rem .48rem; color: #e7adc7; border: 1px solid #76465c; border-radius: 7px; background: #3a1827; cursor: pointer; font-size: .6rem; font-weight: 850; }
.copy-feed.copied { color: #70e5b4; border-color: #2d755b; }

.destination-network { max-width: 1500px; margin: 0 auto 1rem; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid #603146; border-radius: 20px; background: linear-gradient(150deg, rgba(45, 17, 30, .96), rgba(30, 10, 19, .96)); box-shadow: 0 20px 55px rgba(0,0,0,.24); }
.destination-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.destination-heading h2 { margin-bottom: .25rem; font-size: clamp(1.4rem, 2.3vw, 2rem); }
.destination-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: #d36898; font-size: .76rem; }
.destination-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.destination-filters button { padding: .4rem .58rem; color: #d6719e; border: 1px solid #6b3f53; border-radius: 999px; background: #2b101c; cursor: pointer; font-size: .62rem; font-weight: 800; }
.destination-filters button.active { color: #eebbd2; border-color: #31262b; background: linear-gradient(100deg, #3d212d, #2c1721); }
.destination-group { margin-top: 1.2rem; }
.destination-group[hidden] { display: none; }
.destination-group > h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; color: #e6a8c4; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.destination-group > h3 span { color: #ce578d; font-size: .57rem; }
.destination-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.destination-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: .65rem; min-height: 145px; padding: .75rem; border: 1px solid #64374b; border-radius: 14px; background: linear-gradient(150deg, #331422, #270d19); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.destination-card:hover { transform: translateY(-3px); border-color: #8e5e74; box-shadow: 0 16px 32px rgba(0,0,0,.28); }
.destination-card.mapped { border-color: #834b64; background: radial-gradient(circle at 100% 0, rgba(218, 50, 126, .11), transparent 43%), linear-gradient(150deg, #381625, #270d19); }
.destination-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(140deg, #472635, #bd1661); border-radius: 12px; font-size: .57rem; font-weight: 950; letter-spacing: .03em; box-shadow: 0 8px 18px rgba(159, 53, 101, .25); }
.destination-copy { min-width: 0; }
.destination-copy > div { display: flex; justify-content: space-between; align-items: start; gap: .35rem; }
.destination-copy strong { color: #fcf1f6; font-size: .76rem; }
.destination-copy p { margin: .3rem 0; color: #cf5b8f; font-size: .62rem; line-height: 1.4; }
.destination-copy small { color: #ce578d; font-size: .56rem; }
.route-status { padding: .18rem .32rem; color: #dd8cb0; border-radius: 999px; background: #492636; font-size: .48rem; font-weight: 950; text-transform: uppercase; white-space: nowrap; }
.route-status.live { color: #61e9b0; background: rgba(20,132,91,.26); }
.route-status.testing, .route-status.configured, .route-status.onboarding { color: #ff76b4; background: rgba(170, 0, 76, .25); }
.route-status.blocked { color: #ff9e98; background: rgba(181,59,53,.24); }
.route-link { grid-column: 1 / -1; align-self: end; padding-top: .5rem; border-top: 1px solid #603347; font-size: .64rem; font-weight: 850; }

.route-config { max-width: 1500px; margin: 0 auto 1rem; border-color: #9f5878; box-shadow: 0 20px 55px rgba(94, 28, 58, .27); }
.route-config-title { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .8rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #65384c; }
.route-config-title h2, .route-config-title p { margin-bottom: .2rem; }
.route-config-title > a { font-size: .68rem; }
.route-config-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.route-config-actions span { color: #d05f92; font-size: .66rem; }
.route-config-actions span strong { color: #ff7cb7; }

.package-studio { max-width: 1500px; margin: 0 auto; }
.package-studio > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.package-studio > summary::-webkit-details-marker { display: none; }
.package-studio > summary span { display: grid; gap: .2rem; }
.package-studio > summary small { margin: 0; color: #ce578d; font-size: .57rem; font-weight: 900; letter-spacing: .1em; }
.package-studio > summary strong { font-size: 1rem; }
.package-studio > summary em { color: #cf5a8f; font-size: .68rem; font-style: normal; }
.package-studio-body { padding-top: 1.2rem; }
.package-builder { padding-right: 1rem; border-right: 1px solid #613549; }
.profile-workbench { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #64364a; }
.profile-workbench > summary { color: #ff97c6; cursor: pointer; font-size: .75rem; font-weight: 850; }
.profile-workbench > .distribution-layout { margin-top: 1rem; }
.network-empty { max-width: 900px; margin: 3rem auto; text-align: center; }

@media (max-width: 1280px) {
  .signal-flow { grid-template-columns: repeat(5, minmax(135px, 1fr)); overflow-x: auto; }
  .signal-flow > i { display: none; }
  .destination-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .feed-card-grid, .destination-card-grid, .reference-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destination-heading, .network-channel-switcher { align-items: stretch; flex-direction: column; }
  .network-channel-switcher label { grid-template-columns: 1fr; }
  .package-builder { padding-right: 0; padding-bottom: 1rem; border-right: 0; border-bottom: 1px solid #613549; }
}
@media (max-width: 640px) {
  .network-score { display: grid; grid-template-columns: repeat(3, 1fr); }
  .network-score span { display: grid; }
  .signal-stage-head, .dispatch-strip, .route-config-actions { align-items: stretch; flex-direction: column; }
  .signal-flow { grid-template-columns: repeat(5, 145px); }
  .feed-card-grid, .destination-card-grid, .reference-paths { grid-template-columns: 1fr; }
  .feed-card-grid article { grid-template-columns: 42px minmax(0, 1fr); }
  .copy-feed { grid-column: 1 / -1; }
  .route-config-title { grid-template-columns: 44px minmax(0, 1fr); }
  .route-config-title > a { grid-column: 1 / -1; }
}
