/* Unified Business / Network presentation; existing onboarding and Creator styles are untouched. */
.business-network-page { background:#f6f8fd; color:#07142c; --network-border:#e2e8f1; }
.business-network-page > .site-header { display:none; }
.business-network-page .business-network-view { width:100%; max-width:none; padding:0; margin:0; }
.network-sidebar { display:none; }
.network-topbar { display:flex; align-items:center; gap:13px; padding:23px 23px 10px; background:#09234b; color:#fff; }
.network-topbar > .network-logo { margin-right:auto; }
.network-topbar > span:not(.network-avatar), .network-account { display:none; }
.network-logo { position:relative; display:block; width:176px; height:47px; flex:0 0 176px; }
.network-logo img { position:absolute; inset:0; width:100%; height:auto; }
.network-logo img:first-child { filter:none; }
.network-logo img:last-child { filter:brightness(0) invert(1); clip-path:inset(0 0 0 32%); }
.network-avatar { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; background:#2b4b83; color:white; border-radius:50%; }
.network-avatar svg { width:22px; height:22px; }
.network-main { padding:0 18px calc(90px + env(safe-area-inset-bottom)); }
.network-hero { background:#09234b; color:white; margin:0 -18px; padding:21px 20px 37px; }
.network-hero h1 { color:white; font:850 1.8rem/1.14 var(--head); letter-spacing:-.035em; margin:0 0 7px; }
.network-hero p { font-size:.97rem; line-height:1.45; margin:0; color:#f1f5fb; }
.network-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:22px; }
.network-select { display:flex; align-items:center; gap:9px; background:white; color:#0b1730; border:1px solid #d9e1ee; border-radius:15px; padding:11px 12px; min-height:47px; flex:1; min-width:0; }
.network-select svg { width:22px; height:22px; flex:0 0 22px; }
.network-select select { font:750 16px var(--body); background:transparent; color:#09172f; border:0; width:100%; min-width:0; outline:0; }
.network-add { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:12px 14px; background:#00d4cc; color:#061a2a; border-radius:18px; font:800 .85rem var(--body); min-height:45px; white-space:nowrap; }
.network-add svg { width:20px; height:20px; }
.network-desktop-add { display:none; }
.network-stats { display:grid; gap:9px; position:relative; margin-top:-13px; margin-bottom:24px; }
.overview-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.overview-stats > .network-stat:first-child { display:none; }
.network-stat { border:1px solid #e0e7f1; border-radius:18px; padding:15px 12px; background:#fff; min-width:0; box-shadow:0 4px 15px #15285f08; }
.network-stat:nth-child(2n) { background:#f1fbfc; }
.network-stat-icon { display:grid; place-items:center; width:39px; height:39px; flex:0 0 39px; border-radius:13px; background:#e9f2ff; color:#0755ec; margin-bottom:12px; }
.network-stat:nth-child(3n) .network-stat-icon { color:#00a8b7; background:#e5f8fb; }
.network-stat > div > strong { display:block; font:850 1.9rem/1 var(--head); margin-bottom:6px; letter-spacing:-.04em; overflow-wrap:anywhere; }
.network-stat > div > span { display:block; font-size:.87rem; line-height:1.2; }
.network-stat > small { display:block; font-size:.66rem; color:#52637c; margin-top:11px; line-height:1.35; }
.network-panel { border:1px solid var(--network-border); background:white; border-radius:19px; padding:17px 14px; box-shadow:0 3px 12px #0b215009; min-width:0; }
.network-panel-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:16px; }
.network-panel-title h2 { display:flex; gap:9px; align-items:center; font:850 1.2rem/1.12 var(--head); letter-spacing:-.035em; }
.network-panel-title h2 svg { color:#0876ed; width:24px; height:24px; flex:0 0 24px; }
.network-panel-title > a { color:#064de9; font-size:.8rem; font-weight:800; white-space:nowrap; }
.network-panel-title small { font-size:.73rem; }
.network-overview-grid { display:grid; gap:16px; }
.network-overview-grid .network-missions, .network-overview-grid .network-invitations { display:none; }
.network-performance { order:-3; }
.network-activity { order:-2; }
.network-store-panel { order:-1; }
.network-performance, .network-content { margin-top:0; }
.network-activity ul { list-style:none; margin:0; padding:0; }
.network-activity li:not(:last-child) { border-bottom:1px solid #e4e9f1; }
.network-activity li a { display:flex; align-items:center; gap:12px; padding:13px 0; }
.network-activity .network-stat-icon { margin:0; width:36px; height:36px; flex-basis:36px; border-radius:50%; }
.network-activity li strong { font-size:.9rem; }
.network-activity li p { font-size:.8rem; color:#52607b; margin:3px 0 0; }
.network-activity li time { margin-left:auto; white-space:nowrap; font-size:.67rem; color:#52607b; }
.network-unavailable { display:grid; justify-items:center; text-align:center; gap:7px; padding:20px 12px; background:#f7f9fd; border:1px dashed #dce5f0; border-radius:14px; color:#52627a; }
.network-unavailable > svg { width:29px; height:29px; color:#0b73d9; }
.network-unavailable > strong { color:#263653; font-size:.92rem; }
.network-unavailable p { font-size:.8rem; line-height:1.45; margin:0; }
.network-stores { display:grid; gap:12px; }
.network-stores article { border:1px solid #e5eaf3; border-radius:16px; overflow:hidden; }
.network-stores article > a:first-child { display:flex; align-items:center; gap:13px; padding:14px 10px; }
.network-stores article > a:first-child > div { flex:1; min-width:0; }
.network-stores h3, .network-mission h3 { font:800 1rem/1.2 var(--head); letter-spacing:-.025em; margin:0; }
.network-stores p, .network-mission p { display:flex; align-items:center; gap:4px; font-size:.76rem; color:#52627a; margin:5px 0; }
.network-stores p svg, .network-mission p svg { width:15px; height:15px; }
.network-store-icon { display:grid; place-items:center; width:54px; height:60px; flex:0 0 54px; background:#edf5ff; color:#0a67d8; border-radius:12px; }
.network-store-icon svg { width:29px; height:29px; }
.network-status { display:inline-block; font:700 .68rem/1.3 var(--body); padding:4px 9px; background:#e6f7f5; color:#176775; border-radius:12px; }
.network-status.pending { background:#eff1f7; color:#59647e; }
.network-edit-store { display:block; color:#0651e9; padding:0 12px 13px; font-size:.76rem; font-weight:750; }
.network-mini-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.network-mini-stats .network-stat { border:0; background:#f1f6ff; box-shadow:none; padding:12px 9px; border-radius:13px; }
.network-mini-stats .network-stat-icon { width:31px; height:31px; margin-bottom:9px; }
.network-mini-stats .network-stat strong { font-size:1.5rem; }
.network-mini-stats .network-stat > div > span { font-size:.76rem; }
.network-mobile-nav { position:fixed; z-index:4; bottom:0; inset-inline:0; display:flex; justify-content:space-around; background:white; border-top:1px solid #e0e6f0; padding:7px 5px calc(7px + env(safe-area-inset-bottom)); }
.network-mobile-nav a { display:grid; justify-items:center; align-content:center; gap:4px; flex:1; min-height:50px; color:#233553; font:650 .7rem var(--body); }
.network-mobile-nav a svg { width:25px; height:25px; }
.network-mobile-nav a[aria-current=page] { color:#074bf5; font-weight:850; }
.network-mobile-nav a[aria-current=page] svg { stroke-width:2.3; }
.network-mission-screen { margin-top:-14px; min-height:65svh; }
.network-mission-tabs { display:flex; gap:6px; margin-bottom:17px; }
.network-mission-tabs button { flex:1; border:1px solid #e2e7f0; border-radius:14px; background:#f8f9fd; color:#17233f; min-height:43px; padding:6px; font:650 .8rem var(--body); cursor:pointer; }
.network-mission-tabs button[aria-pressed=true] { background:#074bf5; color:white; border-color:#074bf5; }
.network-mission-list { display:grid; gap:12px; }
.network-mission { display:flex; align-items:center; gap:12px; border:1px solid #e2e7f0; border-radius:17px; padding:14px 10px; }
.network-mission > div { flex:1; min-width:0; }
.network-mission > small { display:none; }
.network-mission > svg { flex:0 0 18px; width:18px; }
.network-create-row { margin:28px 3px 5px; }
.network-create-row .business-primary { min-height:48px; border-radius:15px; }
.network-create-row button:disabled { cursor:default; }
.network-invitation { display:flex; align-items:center; gap:11px; padding:13px 0; border-bottom:1px solid #e4e9f1; }
.network-invitation:last-child { border-bottom:0; }
.network-invitation .network-avatar { background:#edf3fb; color:#5d7290; width:40px; flex-basis:40px; }
.network-invitation > div { flex:1; min-width:0; }
.network-invitation strong { font-size:.9rem; }
.network-invitation p { margin:4px 0; font-size:.78rem; color:#52627a; }
.network-invitation small { font-size:.72rem; color:#126a73; }
.analytics-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.analytics-stats .network-stat { min-height:150px; }
.analytics-stats .network-stat strong { font-size:1.6rem; }
.network-analytics-grid { display:grid; gap:14px; margin-bottom:16px; }
.network-trend { width:100%; height:auto; display:block; }
.network-trend text { font:12px "DM Sans",sans-serif; fill:#4e607a; }
.network-legend { display:inline-block; width:9px; height:9px; background:#0750ef; border-radius:50%; margin-right:5px; }
.network-compensation { display:flex; align-items:center; flex-wrap:wrap; gap:17px; }
.network-donut { position:relative; display:grid; place-items:center; flex:0 0 140px; width:140px; height:140px; border-radius:50%; margin:auto; }
.network-donut > span { background:white; width:94px; height:94px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:.9rem; }
.network-donut small { font-size:.72rem; margin-top:5px; }
.network-compensation ul { list-style:none; margin:0; padding:0; flex:1; min-width:160px; }
.network-compensation li { display:flex; gap:7px; align-items:center; border-bottom:1px solid #e4e9f1; padding:10px 0; font-size:.76rem; }
.network-compensation li i { width:9px; height:9px; flex:0 0 9px; border-radius:50%; }
.network-compensation li span { flex:1; }
.network-explanation { color:#52627a; font-size:.75rem; line-height:1.5; margin:14px 0; }
.network-comparison { margin-bottom:16px; }
.network-table-wrap { overflow:auto; }
.network-comparison table { width:100%; border-collapse:collapse; font-size:.8rem; }
.network-comparison th { text-align:left; font-weight:750; }
.network-comparison td, .network-comparison th { padding:11px 8px; border-bottom:1px solid #e4e9f1; }
.network-comparison th a { display:flex; align-items:center; gap:9px; min-width:150px; }
.network-comparison th small { display:block; color:#52627a; font-size:.7rem; font-weight:450; margin-top:4px; }
.network-comparison .network-store-icon { width:35px; height:37px; flex-basis:35px; }
.network-comparison .network-store-icon svg { width:22px; height:22px; }
.network-feedback { color:#51627b; font-size:.85rem; line-height:1.45; }
.network-store-form { margin-top:-13px; padding:23px 18px; max-width:560px; }
.network-store-form .business-lead { color:#52627a; }
.network-store-form .business-form { margin-top:25px; }
.single-business-tools { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:18px; font-size:.83rem; color:#0752e9; font-weight:750; }
.single-business-tools .network-add { background:#eef8fa; color:#0b6371; min-height:38px; border-radius:13px; font-size:.8rem; }
.network-custom-range { display:flex; flex-wrap:wrap; gap:12px; margin-top:15px; }
.network-custom-range label { display:grid; gap:4px; font-size:.8rem; }
.network-custom-range input { font:450 16px var(--body); border:1px solid #dce3ee; background:white; border-radius:8px; min-height:42px; padding:7px; color:#122442; }
.network-custom-range button { border:0; background:#00d4cc; color:#072041; font-weight:750; border-radius:9px; padding:10px; }
.network-main input,.network-main select,.network-main textarea { font-size:16px; scroll-margin-block:90px; }
.network-main :is(a,button,input,select):focus-visible { outline:2px solid #00bfc8; outline-offset:3px; }
@media(min-width:1000px){
  .network-sidebar { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; width:235px; padding:23px 15px; background:#081631; color:white; z-index:5; }
  .network-sidebar .network-logo { margin:0 auto 27px; width:195px; height:52px; }
  .network-sidebar nav { display:grid; gap:5px; }
  .network-sidebar nav > a { display:flex; gap:14px; align-items:center; padding:12px 14px; border-radius:11px; font:600 .9rem var(--body); }
  .network-sidebar nav > a[aria-current=page] { background:#0755f8; font-weight:800; }
  .network-sidebar hr { width:100%; border:0; border-top:1px solid #52617c; margin:15px 0 7px; }
  .network-sidebar-card { margin-top:auto; border:1px solid #3c527a; border-radius:12px; padding:17px; background:#11274d; }
  .network-sidebar-card > svg { color:#00d8db; float:left; margin:0 9px 10px 0; width:30px; height:30px; }
  .network-sidebar-card strong { font:800 1rem var(--head); }
  .network-sidebar-card p { clear:both; font-size:.8rem; line-height:1.5; margin:12px 0; }
  .network-sidebar-card .network-add { width:100%; border-radius:11px; }
  .network-topbar { margin-left:235px; height:70px; padding:10px 26px; border-bottom:1px solid #e0e6f0; background:#fff; color:#0b1831; }
  .network-topbar > .network-logo { display:none; }
  .network-topbar > span:not(.network-avatar) { display:block; margin-right:auto; font-weight:800; }
  .network-account { display:grid; gap:4px; font-size:.85rem; }
  .network-account small { color:#52627a; font-size:.75rem; }
  .network-main { margin-left:235px; padding:0 25px 30px; }
  .network-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; background:transparent; margin:0; padding:24px 0; color:#0b1730; flex-wrap:wrap; }
  .network-hero h1 { color:#0b1730; font-size:1.9rem; }
  .network-hero p { color:#263a59; font-size:.92rem; }
  .network-controls { margin:0; flex-wrap:nowrap; }
  .network-select { min-width:190px; border-radius:12px; box-shadow:0 3px 8px #15275b0a; }
  .network-select select { font-size:14px; }
  .network-add { border-radius:12px; padding-inline:18px; }
  .network-desktop-add { display:block; }
  .network-stats { margin:0 0 18px; gap:14px; }
  .overview-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .overview-stats > .network-stat:first-child { display:flex; }
  .network-stat { display:flex; flex-wrap:wrap; align-content:flex-start; gap:0 14px; padding:18px 15px; border-radius:16px; background:#fff!important; }
  .network-stat-icon { margin:0 0 12px; width:44px; height:44px; flex-basis:44px; }
  .network-stat > div { flex:1; }
  .network-stat > div > strong { font-size:1.85rem; }
  .network-stat small { flex:0 0 100%; margin:0; }
  .network-overview-grid { grid-template-columns:1.15fr 1fr; gap:16px; }
  .network-overview-grid .network-missions,.network-overview-grid .network-invitations { display:block; }
  .network-overview-grid .network-missions { order:-4; }
  .network-overview-grid .network-invitations { order:-3; }
  .network-activity,.network-store-panel { order:0; }
  .network-performance,.network-content { order:-1; }
  .network-panel { border-radius:16px; padding:18px 16px; }
  .network-panel-title h2 { font-size:1.1rem; }
  .network-mission.compact, .compact .network-mission { border:0; border-bottom:1px solid #e3e8f0; border-radius:0; padding:8px 0; }
  .compact .network-mission:last-child { border-bottom:0; }
  .network-mission-list.compact { gap:0; }
  .network-mission > small { display:flex; align-items:center; gap:5px; font-size:.7rem; white-space:nowrap; }
  .network-mission > small svg { width:16px; height:16px; }
  .network-mission .network-store-icon { width:51px; height:49px; flex-basis:51px; }
  .network-mission h3 { font-size:.87rem; }
  .network-mission p { font-size:.7rem; }
  .network-mission .network-status { font-size:.65rem; }
  .network-mini-stats .network-stat { display:block; }
  .network-mini-stats .network-stat-icon { margin-bottom:9px; }
  .network-mobile-nav { display:none; }
  .analytics-stats { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
  .analytics-stats .network-stat { min-height:133px; display:block; padding:14px 12px; position:relative; }
  .analytics-stats .network-stat .network-stat-icon { width:32px; height:32px; margin-bottom:9px; }
  .analytics-stats .network-stat strong { font-size:1.55rem; }
  .analytics-stats .network-stat > div > span { font-size:.78rem; }
  .analytics-stats .network-stat small { margin-top:8px; font-size:.62rem; }
  .network-analytics-grid { grid-template-columns:1fr 1fr; gap:14px; }
  .network-compensation { flex-wrap:nowrap; }
  .network-main > .network-activity { margin-top:16px; }
  .network-mission-screen { margin-top:0; }
  .network-store-form { margin-top:0; }
  .network-custom-range { flex-basis:100%; color:#132747; }
}
@media(min-width:1400px){.network-stat > div > strong{font-size:2.1rem}.analytics-stats .network-stat{display:flex}.analytics-stats .network-stat strong{font-size:1.75rem}.analytics-stats .network-stat .network-stat-icon{margin-right:0}}

/* Reset the original single-store headline width inside Network layouts. */
.business-network-view .network-hero h1 { max-width:none; width:auto; }
.network-overview-creators { display:none; }
.network-overview-invitations { display:contents; }
.network-store-panel .network-panel-title { flex-wrap:wrap; }
.network-store-panel .network-panel-title .network-add { font-size:.75rem; padding:8px 10px; min-height:36px; }
@media(max-width:999px) {
  .network-stat > small { font-size:.65rem; }
  .overview-stats > .network-stat:nth-child(2) > small { display:none; }
  .analytics-stats { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
  .analytics-stats > .network-stat:nth-child(3), .analytics-stats > .network-stat:nth-child(6) { display:none; }
  .analytics-stats > .network-stat { padding:14px 9px; }
  .analytics-stats > .network-stat > div > span { font-size:.76rem; }
  .analytics-stats > .network-stat > small { display:none; }
  .network-controls:has([data-period]) .network-select { flex-basis:calc(50% - 12px); }
  .network-controls:has([data-period]) select { font-size:16px; font-weight:600; }
}
@media(min-width:1000px) {
  .network-overview-creators { display:contents; }
  .network-overview-invitations { display:none; }
}

.network-stat > div { min-width:0; }
.network-stat > div > span { overflow-wrap:anywhere; }
.network-trend-mobile { display:none; }
@media(min-width:1000px) { .network-sidebar .network-logo { flex:0 0 52px; } }
@media(max-width:999px) { .network-trend-desktop { display:none; } .network-trend-mobile { display:block; } }

/* Multi-establishment Home. Keep the existing screens' layout outside Home. */
.network-reference-home {
  --network-border:#dce3f5;
  --network-blue:#082cee;
  --network-navy:#081640;
  --network-surface:#fafbff;
  position:relative;
  background:linear-gradient(180deg,#08153b 0,#0b2159 365px,#f3f6ff 475px,#f6f8ff 100%);
  color:#0a112b;
}
.network-reference-home .network-topbar { background:none; color:white; border:0; padding:17px 20px 0; }
.network-reference-home .network-topbar > a:not(.network-logo) { position:relative; display:grid; place-items:center; width:34px; height:36px; }
.network-reference-home .network-avatar { background:#304995; font-weight:800; }
.network-reference-home .network-topbar .network-logo { width:164px; height:43px; flex-basis:164px; }
.network-reference-home .network-main { padding-inline:16px; }
.network-reference-home .network-hero { background:none; margin:0; padding:7px 0 16px; }
.network-reference-home .network-hero h1 { font-size:1.55rem; font-weight:800; line-height:1.12; margin-bottom:4px; }
.network-reference-home .network-hero p { font-size:.91rem; }
.network-reference-home .network-controls { flex-wrap:nowrap; margin-top:14px; gap:10px; }
.network-reference-home .network-controls .network-select,
.network-reference-home .network-controls .network-add { border-radius:999px; min-height:40px; padding-block:7px; }
.network-reference-home .network-controls .network-select select { font-size:.87rem; font-weight:750; }
.network-reference-home .network-add { background:#05ebf5; color:#06132b; }
.network-reference-home .network-period { display:none; }
.network-reference-home .network-stats { grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 0 17px; gap:8px; }
.network-reference-home .overview-stats > .network-stat {
  display:block; padding:9px 15px 10px; min-height:99px; border-radius:16px;
  background:linear-gradient(125deg,#fff,#f0f4ff)!important; box-shadow:0 6px 18px #0d1c5a15;
}
.network-reference-home .network-stat-icon { color:var(--network-blue); background:#eaf0ff; border-radius:11px; }
.network-reference-home .network-stat > .network-stat-icon { width:34px; height:28px; margin-bottom:4px; }
.network-reference-home .network-stat:first-child > .network-stat-icon { margin-bottom:4px; }
.network-reference-home .network-stat:last-child > .network-stat-icon { color:#00aab4; background:none; }
.network-reference-home .network-stat > div > strong { font-size:1.7rem; margin:0 0 2px; }
.network-reference-home .network-stat > div > span { font-size:.9rem; }
.network-reference-home .network-stat > small { margin-top:4px; font-size:.68rem; }
.network-reference-home .network-overview-grid > * { order:0; }
.network-reference-home .network-overview-grid { gap:14px; }
.network-reference-home .network-overview-grid .network-missions { display:block; }
.network-reference-home .network-panel { padding:11px 13px; background:var(--network-surface); border-radius:16px; }
.network-reference-home .network-panel-title { margin-bottom:9px; }
.network-reference-home .network-panel-title h2 { color:#0a112b; font-size:1.15rem; line-height:1.18; }
.network-reference-home .network-panel-title h2 svg { width:18px; height:18px; }
.network-reference-home .network-panel-title a { color:var(--network-blue); font-size:.81rem; }
.network-reference-home .network-performance { order:-2; }
.network-reference-home .network-activity { order:-1; }
.network-reference-home .network-actions { display:grid; border:1px solid #e6eaf5; border-radius:14px; padding:1px 8px; background:#f8faff; }
.network-reference-home .network-action { display:grid; grid-template-columns:43px 36px minmax(0,1fr) 15px; align-items:center; gap:6px; min-height:45px; font-size:.84rem; line-height:1.2; }
.network-reference-home .network-action + .network-action { border-top:1px solid #e6eaf5; }
.network-reference-home .network-action > .network-stat-icon { margin:0; width:36px; height:34px; }
.network-reference-home .network-action > strong { font-size:1.4rem; }
.network-reference-home .network-action > span > small { display:block; font-size:.66rem; color:#52627a; }
.network-reference-home .network-action > svg { width:16px; }
.network-reference-home .network-activity li a { gap:9px; padding:7px 0; }
.network-reference-home .network-activity li strong { font-size:.86rem; }
.network-reference-home .network-activity li p { margin:2px 0 0; color:#172446; font-size:.78rem; }
.network-reference-home .network-activity li time { color:#172446; }
.network-reference-home .network-stores { gap:5px; }
.network-reference-home .network-stores article { background:#fbfcff; border-radius:13px; }
.network-reference-home .network-stores article > a { padding:6px 10px; }
.network-reference-home .network-stores h3 { font-size:1.05rem; }
.network-reference-home .network-store-icon { background:#eaf2ff; color:#133aa9; }
.network-reference-home .network-stores .network-store-icon { width:74px; flex-basis:74px; height:59px; border-radius:8px; }
.network-reference-home .network-stores .network-status:not(.pending) { background:#d4fae0; color:#106321; }
.network-reference-home .network-stores .network-status.pending { background:#ffedcf; color:#8f3600; }
.network-home-bars { display:block; width:100%; height:auto; max-height:181px; }
.network-home-bars text { fill:#172446; font-size:14px; }
.network-home-chart .network-legend { background:#54e3e2; }
.network-reference-home .network-mobile-nav { background:#fbfcff; }
.network-reference-home .network-mobile-nav a[aria-current] svg,
.network-reference-home .network-sidebar nav a[aria-current] svg { fill:currentColor; }
.network-reference-home .compact .network-mission { flex-wrap:wrap; }
.network-reference-home .compact .network-mission > div { min-width:95px; }
.network-reference-home .compact .network-mission > .network-status { white-space:normal; text-align:center; }

@media(min-width:1000px) {
  .network-reference-home { background:linear-gradient(180deg,#09163f 0,#0a1c50 220px,#edf2ff 330px,#f4f7ff 100%); min-height:100vh; }
  .network-reference-home .network-sidebar { width:20%; max-width:240px; padding:19px 13px 22px; background:linear-gradient(145deg,#0b1947,#060f34); }
  .network-reference-home .network-sidebar .network-logo { width:min(100%,185px); height:49px; flex-basis:49px; margin-bottom:24px; }
  .network-reference-home .network-sidebar nav > a { font-size:1rem; padding:10px 17px; }
  .network-reference-home .network-sidebar nav > a[aria-current] { background:#082cf5; }
  .network-reference-home .network-sidebar-card { background:linear-gradient(140deg,#0841b3,#152780); padding:11px; }
  .network-reference-home .network-sidebar-card > svg { width:25px; height:25px; margin:0 9px 0 0; }
  .network-reference-home .network-sidebar-card p { margin:4px 0 0 34px; clear:none; font-size:.75rem; }
  .network-reference-home .network-topbar { position:absolute; top:12px; right:28px; margin:0; height:auto; padding:0; gap:18px; }
  .network-reference-home .network-topbar > span:not(.network-avatar) { display:none; }
  .network-reference-home .network-avatar { width:45px; height:45px; flex-basis:45px; }
  .network-reference-home .network-main { margin-left:min(20%,240px); padding:0 22px 22px; }
  .network-reference-home .network-hero { display:block; padding:13px 6px 17px; }
  .network-reference-home .network-hero h1 { color:#fff; padding-right:100px; font-size:2.15rem; }
  .network-reference-home .network-hero p { color:#fff; font-size:1.05rem; }
  .network-reference-home .network-controls { gap:15px; margin-top:15px; }
  .network-reference-home .network-controls .network-select,
  .network-reference-home .network-controls .network-add { min-height:44px; }
  .network-reference-home .network-controls .network-select { flex:0 1 295px; }
  .network-reference-home .network-controls .network-period { display:flex; margin-left:auto; flex:0 0 198px; }
  .network-reference-home .network-stats { grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin:0 6px 21px; }
  .network-reference-home .overview-stats > .network-stat { padding:12px 15px 11px clamp(15px,2vw,28px); min-height:143px; }
  .network-reference-home .network-stat > .network-stat-icon { width:46px; height:41px; margin-bottom:6px; }
  .network-reference-home .network-stat > .network-stat-icon svg { width:34px; height:34px; }
  .network-reference-home .network-stat > div > strong { font-size:2.1rem; }
  .network-reference-home .network-stat > div > span { font-size:1rem; }
  .network-reference-home .network-overview-grid { grid-template-columns:repeat(20,minmax(0,1fr)); gap:16px 0; }
  .network-reference-home .network-overview-grid > * { order:0; grid-column:span 20; }
  .network-reference-home .network-store-panel { grid-column:span 9; margin-right:8px; }
  .network-reference-home .network-home-chart { grid-column:span 11; margin-left:8px; }
  .network-reference-home .network-performance { grid-column:span 10; margin-right:8px; }
  .network-reference-home .network-activity { grid-column:span 10; margin-left:8px; }
  .network-reference-home .network-stores .network-store-icon { width:96px; flex-basis:96px; height:67px; }
  .network-reference-home .network-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; border:0; padding:0; background:none; }
  .network-reference-home .network-action { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 17px 9px 9px; min-height:113px; background:#eef3ff; border:1px solid #e7ecf9; border-radius:14px; box-shadow:0 3px 5px #18325912; font-size:.76rem; }
  .network-reference-home .network-action > svg { position:absolute; right:3px; bottom:11px; }
  .network-reference-home .network-action > strong { font-size:1.75rem; line-height:1; }
  .network-reference-home .network-action > .network-stat-icon { height:29px; width:31px; flex-basis:29px; background:none; }
  .network-reference-home .network-action:first-child > .network-stat-icon,
  .network-reference-home .network-action:last-child > .network-stat-icon { color:#00aeb8; }
  .network-reference-home .compact .network-mission { flex-wrap:nowrap; }
  .network-reference-home .compact .network-store-icon { width:88px; flex-basis:88px; height:42px; border-radius:8px; }
  .network-reference-home .compact .network-mission > small { min-width:107px; margin-left:10px; }
}
@media(max-width:999px) {
  .network-reference-home .network-controls:has([data-period]) .network-select { flex-basis:auto; }
  .network-reference-home .network-activity li:nth-child(n+3) { display:none; }
}

.network-mission-feature {
  position:relative; isolation:isolate; display:grid; align-items:center; gap:4px 20px;
  grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"store create" "description create";
  margin:0 0 20px; padding:12px 16px; border-radius:18px; color:white;
  background:radial-gradient(circle at 74% 0,#133a91 0,transparent 32%),linear-gradient(115deg,#113073,#07143c 58%);
  box-shadow:0 6px 14px #12266326;
}
.network-feature-store { grid-area:store; display:flex; align-items:center; gap:14px; min-width:0; }
.network-feature-store::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.network-reference-home .network-feature-store .network-store-icon {
  width:100px; flex:0 0 100px; height:64px; border-radius:11px; color:#72e7f2;
  background:linear-gradient(140deg,#214685,#122c60);
}
.network-feature-store > div > span { font-size:.86rem; }
.network-feature-name { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; margin-top:3px; }
.network-feature-name h2 { color:white; margin:0; font-size:clamp(1.35rem,3vw,2.25rem); line-height:1; overflow-wrap:anywhere; }
.network-feature-name .network-status { display:inline-flex; align-items:center; gap:4px; color:#074c26; background:#83ef91; margin:0; }
.network-feature-name svg { width:15px; height:15px; }
.network-feature-create {
  position:relative; grid-area:create; display:flex; align-items:center; justify-content:center;
  gap:8px; min-height:60px; padding:0 16px; border-radius:19px; background:#073bfa;
  color:white; font-size:1rem; font-weight:800; white-space:nowrap;
}
.network-feature-create:hover { background:#1648ff; }
.network-reference-home .network-mission-feature p { grid-area:description; margin:0; color:white; font-size:.88rem; line-height:1.3; }
.network-activation-copy { display:flex; gap:10px; text-align:left; font-size:.85rem; line-height:1.35; }
.network-activation-copy > svg { flex:0 0 20px; width:20px; height:20px; color:#0843eb; }
.network-activation-copy p { margin:4px 0 0; }
.network-store-activation > p { display:flex; align-items:center; gap:6px; }
.network-store-activation .network-activation-copy { margin-top:12px; padding:12px; border-radius:12px; background:#e7efff; }
.network-reference-home .network-pending-panel { padding:5px; }
.network-reference-home .network-pending-store { border:0; }
.network-reference-home .network-pending-store > a:first-child { display:block; padding:8px 0 0; }
.network-pending-title { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; padding:0 10px; }
.network-pending-title > svg:last-child { margin-left:auto; width:17px; }
.network-pending-title .network-status { margin:0; }
.network-reference-home .network-pending-location { padding:0 12px; margin:5px 0 9px; color:#152548; }
.network-activation-info { background:#e6efff; border-radius:13px; padding:11px; }
.network-reference-home .network-activation-copy p { display:block; margin:4px 0 0; color:#152548; font-size:.81rem; }
.network-activation-link {
  display:block; width:fit-content; margin:8px auto 0; padding:5px 20px; border:1px solid #8299e4;
  border-radius:999px; background:#f8faff; color:#082cc8; text-align:center; font-size:.8rem; font-weight:750;
}
.network-pending-store a:hover .network-activation-link { background:#d7e4ff; }
@media(min-width:1000px) {
  .network-mission-feature { padding:14px 16px 14px 190px; min-height:130px; }
  .network-reference-home .network-feature-store .network-store-icon { position:absolute; left:14px; top:9px; bottom:9px; width:158px; height:auto; }
  .network-reference-home .network-home-chart:first-child { grid-column:span 20; margin-left:0; }
}
@media(max-width:999px) {
  .network-mission-feature { grid-template-columns:1fr; grid-template-areas:"store" "create" "description"; gap:7px; padding:10px 13px; margin-bottom:14px; }
  .network-feature-create { min-height:48px; }
  .network-feature-create > svg:last-child { display:none; }
  .network-reference-home .network-mission-feature p { text-align:center; margin:3px auto 0; max-width:280px; }
  .network-reference-home .network-overview-grid > .network-pending-panel { order:-3; }
}

/* Match the network and establishment context cards to the approved layout. */
.network-reference-home .network-mission-feature {
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"store art" "create create" "note note";
  align-items:center; gap:12px 16px; min-height:0;
  margin:0 0 12px; padding:17px 19px;
  border:1px solid #4483b3; border-radius:17px;
  background:linear-gradient(155deg,#092e56,#031534 74%);
}
.network-feature-copy { grid-area:store; min-width:0; }
.network-feature-copy > span { color:#bdebf2; text-transform:uppercase; font-size:.76rem; font-weight:750; }
.network-feature-name h2 { font-size:clamp(1.7rem,3vw,2.35rem); }
.network-feature-name .network-status { background:#08d945; color:#012b13; }
.network-feature-name .network-status.pending { background:#ffedcf; color:#813800; }
.network-reference-home .network-mission-feature > .network-store-icon {
  grid-area:art; width:70px; height:70px; background:transparent; color:#04e6ef;
}
.network-reference-home .network-mission-feature > .network-store-icon svg { width:100%; height:100%; }
.network-reference-home .network-mission-feature p { margin:5px 0 0; text-align:left; color:#f0fbff; max-width:none; }
.network-reference-home .network-mission-feature .network-feature-note { grid-area:note; margin:0; text-align:center; color:#bdebf2; }
.network-feature-note a { text-decoration:underline; }
.network-feature-create { min-height:49px; border:0; border-radius:999px; background:#04eaf1; color:#051632; cursor:pointer; }
.network-feature-create:hover { background:#65f7fa; }
.network-store-picker { width:min(420px,calc(100vw - 32px)); max-width:none; padding:20px; border:1px solid #dbe4f0; border-radius:20px; color:#081632; background:white; }
.network-store-picker::backdrop { background:#08163299; }
.network-store-picker form { display:flex; flex-direction:column; gap:14px; min-width:0; }
.network-store-picker label { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; }
.network-store-picker .network-panel-title { align-items:flex-start; margin:0; }
.network-store-picker .network-panel-title h2 { min-width:0; overflow-wrap:anywhere; }
.network-store-picker .network-feature-create { width:100%; white-space:normal; }
.network-store-picker select { width:100%; min-width:0; border:1px solid #dbe4f0; padding:11px 8px; border-radius:10px; }
.network-store-picker .network-panel-title button { flex:0 0 auto; border:0; background:transparent; color:inherit; cursor:pointer; }
.network-hero[hidden] { display:none; }
.network-directory { max-width:660px; margin:18px auto; }
.network-directory .network-panel-title h1 { display:flex; align-items:center; gap:9px; font-size:1.18rem; margin:0; }
.network-directory .network-panel-title h1 a { display:grid; place-items:center; min-width:36px; min-height:40px; }
.network-directory .network-add { min-height:36px; padding-block:6px; }
.network-directory-search { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #d5deec; border-radius:999px; }
.network-directory-search svg { flex:0 0 17px; width:17px; }
.network-directory-search input { width:100%; min-width:0; border:0; background:transparent; color:inherit; }
.network-directory-filters,.network-directory-pages { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; align-items:center; }
.network-directory-pages { justify-content:space-between; font-size:.82rem; }
.network-directory-filters button,.network-directory-pages button { border:1px solid #d5deec; border-radius:999px; padding:7px 12px; background:#f5f7fc; color:inherit; font-size:.78rem; cursor:pointer; }
.network-directory-filters button[aria-pressed=true] { background:#57f1f5; border-color:#57f1f5; font-weight:800; }
.network-directory-pages button:disabled { opacity:.55; cursor:default; }
.network-directory .network-stores,.network-reference-home .network-store-preview .network-stores { gap:0; }
.network-directory .network-stores article,.network-reference-home .network-store-preview .network-stores article { border:0; border-bottom:1px solid #e5eaf3; border-radius:0; background:transparent; }
.network-directory .network-stores article:last-child,.network-reference-home .network-store-preview .network-stores article:last-child { border-bottom:0; }
.network-directory .network-stores article > a:first-child { padding:8px 3px; }
.network-directory-empty { padding:10px; }
@media(max-width:999px) {
  .network-reference-home .network-heading,.network-reference-home .network-controls > .network-add { display:none; }
  .network-reference-home .network-hero { padding:2px 0 12px; }
  .network-reference-home .network-controls { margin-top:10px; }
  .network-reference-home .network-controls .network-select { border-radius:15px; min-height:44px; }
  .network-reference-home .network-all-grid > .network-store-preview { order:-3; }
  .network-reference-home .network-individual-grid > .network-activity { order:-3; }
}
@media(min-width:1000px) {
  .network-reference-home .network-mission-feature {
    grid-template-columns:auto minmax(0,1fr) minmax(200px,28%);
    grid-template-areas:"art store create" "note note note";
    margin-inline:6px;
  }
  .network-reference-home .network-mission-feature .network-feature-note { text-align:right; }
}
.network-resume-drafts { display:grid; gap:10px; margin:0 0 12px; }
.network-draft-card { display:grid; gap:11px; padding:15px; border:1px solid #dbe4f0; border-radius:16px; background:#fff; color:#091737; }
.network-draft-heading,.network-draft-meta,.network-draft-action { display:flex; align-items:center; gap:9px; }
.network-draft-heading strong { font-size:.96rem; }
.network-draft-heading small { margin-inline-start:auto; padding:4px 12px; border-radius:999px; background:#d4e3ff; color:#073dbd; font-weight:750; }
.network-draft-heading svg,.network-draft-meta svg,.network-draft-action svg { flex:none; }
.network-draft-title { font-size:1.13rem; line-height:1.25; overflow-wrap:anywhere; }
.network-draft-meta { font-size:.92rem; }
.network-draft-meta svg { width:19px; height:19px; }
.network-draft-action { justify-content:space-between; border-top:1px solid #dbe4f0; padding-top:10px; color:#073ed8; font-weight:800; }

@media (max-width: 480px) {
  .business-network-view:not(.network-reference-home) .network-controls:has([data-period]) .network-select {
    flex: 0 0 100%;
    box-sizing: border-box;
  }
  .analytics-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-stats > .network-stat > div > span {
    overflow-wrap: normal;
  }
}
