.atlas-screen.atlas-reference-v4 .magazine-date-block {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.atlas-screen.atlas-reference-v4 .magazine-date-block .atlas-update-note {
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #d6c9f0;
  border-radius: 18px;
  background: #f5eefb;
  color: #38224e;
  font: 700 11px/1.3 Arial,sans-serif;
  text-align: center;
  white-space: normal;
}
.lm22-analytics {margin: 24px 0; color: inherit;}
.lm22-analytics > h2 {margin-bottom: 4px;}
.lm22-row {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 16px 0;}
.lm22-row.lm22-wide {grid-template-columns: minmax(0,2fr) minmax(0,3fr);}
.lm22-analytics .lm22-panel {min-width: 0; padding: 20px; border-radius: 18px;}
.lm22-panel h3 {margin: 0 0 10px; color: #632b52;}
.lm22-panel dl {margin: 0;}
.lm22-panel dl div {display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;}
.lm22-panel dd {font-weight: 700; margin: 0;}
.lm22-panel li + li {margin-top: 10px;}
.lm22-chart {overflow-x: auto;}
.lm22-chart svg {width: 100%; min-width: 370px; display: block;}
.lm22-chart text {font: 9px system-ui,sans-serif; fill: #523f51;}
.lm22-gridline {stroke: #dfd3e0; fill: none;}
.lm22-legend {display: flex; flex-wrap: wrap; gap: 14px;}
.lm22-legend i {display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px;}
.lm22-panel table {width: 100%; margin-top: 8px; text-align: left;}
.lm22-panel th,.lm22-panel td {padding: 4px 6px;}

body.sa-page-active .bc-screen {
  --bc-plum: #162b4a;
  --bc-wine: #214669;
  --bc-rose: #117d7a;
  --bc-gold: #219d94;
  --bc-ivory: #f3fafb;
  --bc-ink: #172d48;
  --bc-subtle: #4b6877;
  --bc-border: #cbdfe3;
}
.bc-screen .bc-head,.bc-screen .bc-filters,.bc-screen .bc-panel,.bc-screen .bc-legacy {
  background: #f4fafb;
  border-color: #cbdfe3;
  color: #172d48;
}
.bc-screen .bc-head h1,.bc-screen .bc-panel h2,.bc-screen .bc-panel-icon,
.bc-screen .bc-filter-top label,.bc-screen .bc-ledger-date strong {color: #16344f;}
body.sa-page-active .bc-screen .bc-nav .sa-tabs button.active,
.bc-screen .bc-kpi.bc-period .bc-kpi-cover,.bc-screen .bc-filters .bc-primary {
  background: linear-gradient(120deg,#152a4a,#254c69); color: #fff;
}
.bc-screen .bc-kpi.bc-historical .bc-kpi-cover {background: linear-gradient(120deg,#0d6265,#16817c);}
.bc-screen .bc-kpi.bc-ytd .bc-kpi-cover {background: #d1eeeb; color: #143a48;}
.bc-screen .bc-ytd .bc-ring span {background: #e4f7f5; color: #143a48;}
.bc-screen .bc-sections-v22 {display: flex; flex-wrap: wrap; gap: 8px;}
.bc-sections-v22 button {border: 1px solid #b9d7dc; border-radius: 9px; padding: 9px 15px; background: #eff8fa; color: #16344f;}
.bc-sections-v22 button[aria-pressed=true] {background: #0e686b; color: #fff;}
.bc-screen .bc-overview-v22 {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0;}
.bc-overview-v22 .bc-insights-panel {grid-column: auto;}
.bc-overview-v22 .bc-insights {display: flex;}
.bc-gap-v22 .bc-gap-value {display: block; font-size: clamp(1.5rem,3vw,2.4rem); margin: 16px 0 4px;}
@media(max-width: 1000px) {.bc-screen .bc-overview-v22 {grid-template-columns: 1fr;}}
@media(max-width: 720px) {.lm22-row,.lm22-row.lm22-wide {grid-template-columns: 1fr;}}
/* Magazine cards follow the existing cream and plum palette. */
.lm22-analytics {margin-top: 12px;}
.lm22-row,.lm22-row.lm22-wide {grid-template-columns: minmax(0,48fr) minmax(0,52fr); gap: 9px; margin: 9px 0;}
.lm22-analytics .lm22-panel {padding: 12px; border-radius: 16px;}
.lm22-panel > header {display:flex; align-items:center; gap:9px; margin-bottom:6px;}
.lm22-panel > header > span {color:#892e8d; font-size:26px; line-height:1; padding:3px 6px;}
.lm22-panel h3 {font-size:clamp(15px,1.15vw,20px); margin:0; color:#4c155c;}
.lm22-panel p,.lm22-panel li,.lm22-panel details {font-size:12px;}
.lm22-chart svg {display:block; width:100%; height:auto; min-width:370px; min-height:150px; max-height:300px;}
.lm22-chart text {font:700 9px system-ui,sans-serif; fill:#2b193e;}
.lm22-toggle,.lm22-delta {margin-left:auto; flex:none; border:1px solid #ead7ed; border-radius:20px; padding:2px; background:#faf1fa; font-size:11px;}
.lm22-toggle button {border:0; background:transparent; padding:4px 13px; border-radius:20px; font-weight:700;}
.lm22-toggle button[aria-pressed=true] {background:linear-gradient(#a962a6,#6f2377); color:white;}
.lm22-delta {padding:6px 9px;}
.lm22-down {color:#bc163c;}
.lm22-up {color:#08783c;}
.lm22-gap-grid,.lm22-insights-grid {display:grid; grid-template-columns: minmax(90px,.75fr) minmax(0,1.3fr) minmax(0,1.15fr); gap:7px;}
.lm22-insights-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.lm22-subpanel,.lm22-gap-total {border:1px solid #eadde9; border-radius:10px; background:#fffaf7; padding:8px; min-width:0;}
.lm22-subpanel h4 {margin:0 0 5px; font-size:13px; color:#421451;}
.lm22-gap-total {display:grid; align-content:center; justify-items:center; gap:3px; background:#fce8eb;}
.lm22-gap-total strong {font-size:clamp(16px,1.5vw,25px);}
.lm22-gap-list {padding:0; margin:0; list-style:none;}
.lm22-gap-list li {display:flex; align-items:center; gap:4px;}
.lm22-gap-list li + li,.lm22-insights-grid li + li {margin-top:4px;}
.lm22-gap-list li > span {flex:1; min-width:0;}
.lm22-gap-list li > b {white-space:nowrap;}
.lm22-gap-list i {width:clamp(8px,var(--size),35px); height:6px; background:linear-gradient(90deg,#ffc6d3,#e93563); border-radius:4px;}
.lm22-insights-grid h4 {background:#f5dcef; margin:-8px -8px 6px; padding:6px 8px; border-radius:9px 9px 0 0;}
.lm22-insights-grid ul {margin:0; padding-left:17px;}
.lm22-insights-grid li::marker {color:#8d2594;}
.lm22-insights-grid section + section li::marker {color:#14874b; content:'✓  ';}
@media(max-width:1080px){.lm22-row,.lm22-row.lm22-wide{grid-template-columns:1fr;}}
@media(max-width:560px){.lm22-gap-grid,.lm22-insights-grid{grid-template-columns:1fr;}.lm22-panel>header{flex-wrap:wrap;}.lm22-toggle,.lm22-delta{margin-left:0;}}

/* Branch-Wise uses a separate navy and teal workspace. */
body.sa-page-active .bc-dashboard22 {background:linear-gradient(140deg,#eaf3fa,#e0edf2); padding:8px 12px 20px; color:#10264a;}
.bc-dashboard22 .bc-hero22 {display:flex; justify-content:space-between; align-items:start; gap:16px; min-height:120px; padding:18px 25px; border-radius:18px; color:white; background:linear-gradient(90deg,#092d45 20%,#07576b 52%,#07576b15 83%),url('/assets/regional-reference/main.webp') right 45%/50% auto no-repeat,#07576b;}
.bc-hero22 h1 {font:750 clamp(24px,3vw,45px)/1.14 system-ui,sans-serif; margin:4px 0;}
.bc-hero22 h1 b {color:#b0f2ed;}
.bc-dashboard22[data-view=comparison] .bc-hero22 h1 b {color:#ffd48d;}
.bc-hero22 p,.bc-hero22 span {font-size:13px; font-weight:650;}
.bc-hero22 .bc-date22 {padding:7px 10px; background:#f4fcff; color:#123557; border-radius:18px; white-space:nowrap;}
.bc-dashboard22 .bc-sections-v22 {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-radius:28px; padding:4px; background:#f7fbff; margin:-29px 14px 0; z-index:1; box-shadow:0 4px 11px #13385025;}
.bc-dashboard22 .bc-sections-v22 button {border-radius:24px; border:0; font-weight:800; background:#ebf2f8;}
.bc-dashboard22 .bc-sections-v22 button[aria-pressed=true],.bc-toggle22 button[aria-pressed=true] {background:linear-gradient(145deg,#008296,#00596d);color:white;}
.bc-dashboard22 .bc-panel,.bc-dashboard22 .bc-filters,.bc-dashboard22 .bc-legacy {background:linear-gradient(150deg,#fff,#f2f8fc); border:1px solid #dbeaf2; box-shadow:0 4px 12px #18446517; border-radius:16px; padding:13px; min-width:0;}
.bc-dashboard22 .bc-panel h2 {font:800 clamp(14px,1.22vw,22px)/1.15 system-ui,sans-serif; color:#122655;}
.bc-dashboard22 .bc-panel-icon {background:#e1f4f5; color:#006d80;}
.bc-dashboard22 .bc-panel-title {margin-bottom:9px;}
.bc-dashboard22 .bc-branch-radio input:checked+span,.bc-dashboard22 .bc-month-buttons button.active {background:#096a7c; color:white; border-color:#096a7c;}
.bc-dashboard22 .bc-branch-radio span,.bc-dashboard22 .bc-month-buttons button,.bc-dashboard22 .bc-filter-top input,.bc-dashboard22 .bc-filter-top select {border-color:#cbdfea; background:#f7fbff; color:#183959;}
.bc-kpis22,.bc-top22,.bc-bottom22,.bc-compare-grid22 {display:grid; gap:10px; margin-bottom:10px;}
.bc-kpis22 {grid-template-columns:repeat(4,minmax(0,1fr));}
.bc-kpi22 {display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-radius:16px; padding:12px; background:linear-gradient(130deg,#fff,#eaf8fd); border:1px solid #d5e7f0; box-shadow:0 4px 9px #103f5c1b;}
.bc-kpi22:nth-child(3){background:linear-gradient(130deg,#fff,#fff0f0);}
.bc-kpi22:nth-child(4){background:linear-gradient(130deg,#fff,#e9fcf4);}
.bc-kpi22 i {color:#00788e; padding:4px;}
.bc-kpi22 i svg {width:29px;height:29px;}
.bc-kpi22 strong {display:block; font-size:clamp(17px,2vw,30px); line-height:1.18;}
.bc-kpi22 small {margin-left:auto; padding:6px 8px; background:#deeff4; border-radius:9px; font-size:10px; font-weight:700;}
.bc-top22 {grid-template-columns:repeat(3,minmax(0,1fr));}
.bc-bottom22 {grid-template-columns:minmax(0,46fr) minmax(0,54fr);}
.bc-table-scroll {min-width:0; overflow:auto;}
.bc-table22 {width:100%; border-collapse:collapse; font-size:12px; white-space:nowrap;}
.bc-table22 th,.bc-table22 td {padding:4px 4px; border-bottom:1px solid #e4edf4; text-align:right;}
.bc-table22 th:first-child {text-align:left;}
.bc-table22 thead {background:#edf5fa;}
.bc-meter22 {display:block; width:clamp(24px,6vw,105px); height:11px; background:#e6f2f5; border-radius:3px; overflow:hidden;}
.bc-meter22 i {display:block; height:100%; background:linear-gradient(90deg,#61c4ca,#057b91);}
.bc-meter22.negative i {background:linear-gradient(90deg,#ffb0bc,#ed4562);}
.bc-meter22.positive i {background:linear-gradient(90deg,#6ccf83,#029748);}
.bc-share22 {display:flex; align-items:center; flex-wrap:wrap; gap:10px;}
.bc-share22 .bc-table-scroll {flex:1;}
.bc-donut22 {width:clamp(75px,10vw,165px); aspect-ratio:1; border-radius:50%; background:conic-gradient(var(--segments)); display:grid; place-items:center; margin:auto;}
.bc-donut22 span {display:grid; place-content:center; text-align:center; width:68%; height:68%; border-radius:50%; background:#f8fcff; line-height:1.2;}
.bc-donut22 strong {font-size:clamp(15px,1.6vw,25px);}
.bc-donut22 small {font-size:8px;}
.bc-dot22 {display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; background:var(--dot);}
.bc-gap-grid22 {display:grid; grid-template-columns:minmax(110px,.8fr) repeat(2,minmax(0,1.35fr)); gap:8px;}
.bc-gap-grid22 > div,.bc-insight22,.bc-action22 {padding:9px; border-radius:12px; background:#f1f7fb; border:1px solid #e0ebf2;}
.bc-gap-grid22 h3,.bc-action22 h3 {font-size:13px;margin:0 0 5px;}
.bc-gap-grid22 .bc-gap-value22 {display:grid; align-content:center; text-align:center; gap:5px; background:#ffecef;}
.bc-gap-value22 strong {font-size:clamp(16px,2vw,29px);}
.bc-insight22 {margin-top:8px; font-size:12px;}
.bc-insight22 ul {margin:4px 0; padding-left:17px;}
.bc-toggle22 {display:flex; justify-content:end; gap:2px;}
.bc-toggle22 button {border:1px solid #dce9ef; background:#f4f8fc; padding:4px 12px; border-radius:18px;font-size:12px;}
.bc-plot22 {overflow:auto;}
.bc-plot22 svg {display:block; width:100%; height:auto; min-width:300px;}
.bc-plot22 svg.bc-svg {min-width:540px!important;}
.bc-plot22 text {font:600 10px system-ui,sans-serif; fill:#172c51;}
.bc-plot22 .bc-value-label {fill:white;}
.bc-compare-filter22 {display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:10px 12px; margin-bottom:9px; border-radius:14px; background:#f7fbfe; border:1px solid #d4e7f0;}
.bc-compare-filter22 select {border:1px solid #cbdfea; border-radius:10px; background:white; padding:5px 8px;}
.bc-branch-strip22 {display:grid; grid-template-columns:minmax(95px,1.4fr) repeat(8,minmax(0,1fr)); gap:4px; margin-bottom:7px;}
.bc-branch-strip22 > strong,.bc-branch-strip22 > div {border-radius:10px; padding:9px; background:#f7fbfe; display:grid; align-content:center; gap:3px;}
.bc-branch-strip22 > strong {background:var(--branch-color);color:white;}
.bc-branch-strip22 small {font-size:10px;}
.bc-compare-grid22 {grid-template-columns:minmax(0,38fr) minmax(0,38fr) minmax(0,24fr);}
.bc-actions-panel22 {grid-column:3; grid-row:1/span 2;}
.bc-action22 {margin-bottom:7px;font-size:12px;}
.bc-action22:first-of-type {background:#eaf9ed;}
.bc-action22:last-child {background:#fff5df;}
@media(max-width:1250px){.bc-top22 {grid-template-columns:repeat(2,minmax(0,1fr));}.bc-top22 .bc-panel:last-child {grid-column:1/-1;}.bc-branch-strip22{grid-template-columns:repeat(5,minmax(0,1fr));}.bc-compare-grid22{grid-template-columns:repeat(2,minmax(0,1fr));}.bc-actions-panel22{grid-column:auto;grid-row:auto;}}
@media(max-width:900px){.bc-bottom22,.bc-top22,.bc-compare-grid22{grid-template-columns:1fr;}.bc-kpis22{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:550px){.bc-gap-grid22{grid-template-columns:1fr;}.bc-branch-strip22{grid-template-columns:repeat(3,minmax(0,1fr));}.bc-hero22{flex-wrap:wrap;}.bc-dashboard22 .bc-sections-v22{margin:0;}.bc-dashboard22 .bc-sections-v22 button{padding:5px;}.bc-dashboard22 .bc-sections-v22 svg{display:none;}}
.bc-dashboard22 .bc-hero22 {background:linear-gradient(90deg,#092d45 22%,#07576b 50%,#07576b05 85%),url('assets/regional-reference/main.webp') right 45%/50% auto no-repeat,#07576b;}
.bc-dashboard22[data-view=overview] .bc-hero22 {padding-left:clamp(18px,25vw,410px);color:#123557;background:linear-gradient(90deg,transparent 10%,#e8f7ff 33%,#f5fbff 72%),url('assets/regional-reference/main.webp') left 45%/38% auto no-repeat,#f5fbff;}
.bc-dashboard22[data-view=overview] .bc-hero22 h1 b {color:#00788a;}
.bc-hero-meta22 {display:flex; flex-wrap:wrap; justify-content:end; gap:6px;}
.bc-filter-disclosure22 > summary {cursor:pointer; border:1px solid #d2e4ef; border-radius:11px; padding:8px 11px; background:#f5faff; font-size:12px; font-weight:750;}
.bc-filter-disclosure22 summary small {float:right; font-weight:500;}
.bc-filter-disclosure22[open] > summary {margin-bottom:6px;}
.bc-branch-strip22 > strong {display:flex; align-items:center; padding:5px 8px; gap:9px; min-width:0;}
.bc-branch-strip22 > strong img {width:41%;height:42px;object-fit:cover;border-radius:6px;order:2;margin-left:auto;}
.bc-kpi22:first-child strong {color:#132759;}
.bc-kpi22:nth-child(2) strong {color:#006f7c;}
.bc-root-gap22 .bc-panel-title {background:linear-gradient(115deg,#007783,#005875); padding:7px 10px; border-radius:10px;}
.bc-root-gap22 .bc-panel-title h2,.bc-root-gap22 .bc-panel-title p {color:white;}
.bc-plot22 text {font-size:13px;}
.bc-plot22 svg:not(.bc-svg) text {font-size:9px;}
@media(max-width:800px){.bc-dashboard22[data-view=overview] .bc-hero22{padding-left:18px;background:#f1faff;}.bc-hero-meta22{justify-content:start;}.bc-hero22 .bc-date22{white-space:normal;}}
