/* ========================================================================== 
   PULSE light theme revamp -- "Aurora Daylight"

   This file is deliberately loaded last. Every rule is light-theme scoped so
   the established dark theme remains byte-for-byte identical in appearance.
   Depth comes from cool surface steps, directional daylight shadows and small
   semantic glows on active/live controls -- never from low-contrast white-on-
   white cards.
   ========================================================================== */



/* A layered atmosphere makes the white surfaces feel placed, not pasted.

   V20.14.202 -- this rule already WON the page background (it is the only one
   of the three that carried !important), so it is the owner and it now reads
   the wash from --bg-daylight in pulse-tokens.css instead of spelling it out
   here. pulse-light-orbit.css declared the same background twice with its own
   colours and neither ever reached the screen; both are gone. One value, one
   rule, and editing the daylight means editing one line. */
:root[data-theme="light"] body {
  background-color: var(--bg-void) !important;
  background-image: var(--bg-daylight) !important;
  background-attachment: fixed !important;
}

/* V20.14.212 -- "PULSE logo spinner is not available in light theme".
   It was: the two orbit rings around the report mark run in both themes.
   They are drawn at rgba(0,217,255,.42) and rgba(255,201,60,.45) -- a pale
   cyan and a pale gold at under half opacity -- which on the dark ground is
   a glow and on white is roughly 1.3:1, i.e. not there. Daylight gets rings
   of ink strength, a little thicker, and a soft azure halo behind the mark
   so the spin has something to spin in. Dark is untouched. */
:root[data-theme="light"] .report-pulse-mark { background: radial-gradient(circle, rgba(0, 150, 214, .16), rgba(0, 150, 214, .04) 58%, transparent 70%); }
:root[data-theme="light"] .report-pulse-mark img { filter: drop-shadow(0 2px 6px rgba(0, 120, 180, .28)); }
:root[data-theme="light"] .report-pulse-mark i { display:block; opacity:1; border-width: 1.5px; border-color: var(--cyan); border-left-color: transparent; box-shadow: 0 0 6px rgba(0, 150, 214, .28); }
:root[data-theme="light"] .report-pulse-mark i:last-child { border-color: var(--gold); border-right-color: transparent; box-shadow: 0 0 6px rgba(201, 123, 0, .25); }
:root[data-theme="light"] .auth-loading-mark { background: radial-gradient(circle, rgba(0, 150, 214, .14), transparent 66%); filter: drop-shadow(0 6px 18px rgba(0, 120, 180, .22)); }
:root[data-theme="light"] .auth-loading-mark::before { border-width: 2px; border-color: rgba(0, 150, 214, .55); border-top-color: var(--gold); }

/* The Price Realisation title uses the shared animated card glyph rather than
   the header mark. Give both title-glyph implementations an opaque daylight
   stroke so the existing spin/draw motion remains visible on white. */
:root[data-theme="light"] .pulse-report-page :is(.ptitle > .pcard-icon,.v150-title-icon) {
  color:#007aa7 !important; opacity:1 !important;
  background:radial-gradient(circle,rgba(0,157,205,.13),transparent 70%);
  filter:drop-shadow(0 2px 5px rgba(0,119,170,.28)) !important;
}
:root[data-theme="light"] .pulse-report-page :is(.ptitle > .pcard-icon,.v150-title-icon) svg,
:root[data-theme="light"] .pulse-report-page :is(.ptitle > .pcard-icon,.v150-title-icon) :is(path,circle,polyline,line) {
  stroke:currentColor !important; opacity:1 !important;
}

:root[data-theme="light"] .pulse-edge-light { opacity:.5; }
:root[data-theme="light"] .pulse-edge-light::before { background:linear-gradient(transparent,rgba(0,137,188,.34) 24%,rgba(76, 139, 184,.2) 70%,transparent); box-shadow:0 0 14px rgba(0,137,188,.16); }
:root[data-theme="light"] .pulse-edge-light::after { background:radial-gradient(circle at 48% 22%,rgba(0,157,205,.11),transparent 34%),radial-gradient(circle at 52% 76%,rgba(210,132,16,.07),transparent 31%); }

/* Shared controls: polished porcelain at rest, a measured glow in use.

   V20.14.157 -- every selector here now excludes the filterbar's icon-only
   cluster. That cluster is deliberately borderless and unplated in both themes
   (pulse-mission.css states it once); these rules would have painted the
   porcelain plate and the border straight back on in light, so the boxes would
   have "come back" for anyone using the light theme -- the kind of half-fix
   that gets reported as "you didn't change it". Excluded at source rather than
   out-weighted, so there is still exactly one rule with an opinion. */
:root[data-theme="light"] :is(.pui-btn, .btn, .v20-control, .filter-share, .filter-reset, .header-icon, select, input, textarea):not(.filterbar .filter-share):not(.filterbar .v20-control.v20-icon) {
  border-color: rgba(18, 103, 149, .25) !important;
}
:root[data-theme="light"] :is(.pui-btn, .btn, .v20-control, .filter-share, .filter-reset, .header-icon):not(.primary):not(.active):not(.filterbar .filter-share):not(.filterbar .v20-control.v20-icon) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(237, 247, 253, .94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 9px rgba(27, 74, 111, .07) !important;
}
:root[data-theme="light"] :is(.pui-btn, .btn, .v20-control, .filter-share, .filter-reset, .header-icon):hover:not(.filterbar .filter-share):not(.filterbar .v20-control.v20-icon) {
  border-color: rgba(4, 124, 166, .56) !important;
  box-shadow: var(--shadow-glow-cyan) !important;
}
:root[data-theme="light"] :is(input, select, textarea, .pui-input, .pui-select, .pui-textarea) {
  background-color: rgba(255, 255, 255, .94) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(243, 249, 253, .96)) !important;
  box-shadow: inset 0 1px 2px rgba(31, 80, 115, .065), 0 1px 0 rgba(255, 255, 255, .9) !important;
}
:root[data-theme="light"] :is(input, select, textarea, .pui-input, .pui-select, .pui-textarea):focus {
  border-color: var(--cyan) !important;
  box-shadow: var(--shadow-focus) !important;
}
:root[data-theme="light"] :is(.pui-btn.primary, .btn.primary) {
  background: linear-gradient(135deg, #057da3, #086b9c 62%, #0c4a7a) !important;
  border-color: rgba(4, 105, 151, .62) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(4, 105, 151, .22), 0 0 18px rgba(57, 193, 222, .14), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

/* --------------------------------------------------------------------------
   Depletion Intelligence -- desktop and responsive report
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .pulse-report-page .pulse-sticky-header {
  background:
    radial-gradient(circle at 12% 0, rgba(54, 199, 226, .10), transparent 32%),
    radial-gradient(circle at 88% 0, rgba(87, 154, 201, .08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(237, 247, 253, .95)) !important;
  border-bottom-color: rgba(8, 137, 180, .34) !important;
  box-shadow: 0 14px 34px rgba(24, 70, 108, .12), 0 0 26px rgba(45, 191, 221, .075) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}
:root[data-theme="light"] .pulse-report-page .brand-switcher {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(232, 246, 252, .82) 52%, rgba(242, 238, 252, .76)) !important;
  border-color: rgba(13, 119, 163, .20) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 5px 16px rgba(30, 78, 114, .075) !important;
}
:root[data-theme="light"] .pulse-report-page .brand-btn.active {
  background: linear-gradient(150deg, #ffffff, #e8f8fd) !important;
  border-color: rgba(4, 124, 166, .48) !important;
  box-shadow: 0 8px 22px rgba(4, 124, 166, .16), 0 0 18px rgba(54, 199, 226, .13), inset 0 1px 0 #fff !important;
}
:root[data-theme="light"] .pulse-report-page .filterbar {
  background:
    radial-gradient(circle at 2% 0, rgba(51, 195, 225, .10), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(234, 246, 253, .92)) !important;
  border: 1px solid rgba(9, 126, 170, .30) !important;
  box-shadow: 0 9px 24px rgba(26, 73, 110, .10), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}
:root[data-theme="light"] .pulse-report-page .tabnav {
  background: linear-gradient(180deg, rgba(249, 253, 255, .96), rgba(226, 241, 250, .92)) !important;
  border-color: rgba(11, 118, 163, .24) !important;
  box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(24, 70, 108, .09) !important;
}
:root[data-theme="light"] .pulse-report-page #tabNav .tab-btn.active {
  background: linear-gradient(135deg, #057da3, #0874a4 60%, #4e8bb6) !important;
  border-color: rgba(7, 110, 153, .62) !important;
  color: #fff !important;
  box-shadow: 0 8px 19px rgba(5, 119, 162, .24), 0 0 17px rgba(60, 198, 228, .18), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}
:root[data-theme="light"] .pulse-report-page #tabNav .tab-btn.active :is(svg, span, b) { color: inherit !important; }

:root[data-theme="light"] .pulse-report-page :is(
  .panel, .kpi-card, .v46-brief, .launch-map, .chart-box,
  .settings-form, .global-panel, .system-map-panel, .health-banner,
  .briefing-section, .briefing-snapshot article, .c360-summary article,
  .c360-commercial .c360-brand-card, .v105-field-group, .v107-card
) {
  background:
    radial-gradient(circle at 100% 0, rgba(81, 190, 218, .075), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .985), rgba(236, 246, 252, .94)) !important;
  border-color: rgba(15, 115, 158, .24) !important;
  box-shadow: 0 13px 30px rgba(27, 72, 108, .105), 0 2px 7px rgba(27, 72, 108, .055), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}
:root[data-theme="light"] .pulse-report-page .kpi-card {
  background:
    radial-gradient(circle at 92% 2%, rgba(40, 188, 220, .13), transparent 38%),
    linear-gradient(150deg, #ffffff, #edf7fc 78%) !important;
  border-top-color: rgba(5, 137, 181, .48) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
:root[data-theme="light"] .pulse-report-page .kpi-card.tone-pos {
  background:
    radial-gradient(circle at 92% 2%, rgba(8, 146, 105, .13), transparent 39%),
    linear-gradient(150deg, #ffffff, #edf8f5 80%) !important;
}
:root[data-theme="light"] .pulse-report-page .kpi-card.tone-neg {
  background:
    radial-gradient(circle at 92% 2%, rgba(190, 53, 78, .12), transparent 39%),
    linear-gradient(150deg, #ffffff, #fdf1f4 80%) !important;
}
:root[data-theme="light"] .pulse-report-page .kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(4, 124, 166, .48) !important;
  box-shadow: 0 18px 38px rgba(24, 70, 108, .15), 0 0 22px rgba(48, 191, 220, .12), inset 0 1px 0 #fff !important;
}
:root[data-theme="light"] .pulse-report-page .v46-brief {
  background:
    linear-gradient(90deg, rgba(46, 195, 225, .12), rgba(255, 255, 255, .96) 20%, rgba(255, 255, 255, .96) 75%, rgba(79, 146, 194, .08)) !important;
  box-shadow: 0 10px 26px rgba(26, 72, 108, .10), 0 0 18px rgba(47, 191, 221, .08) !important;
}
:root[data-theme="light"] .pulse-report-page :is(.briefing-head, .deep-dive-head, .c360-block) {
  background:
    radial-gradient(circle at 92% 6%, rgba(75, 144, 194, .11), transparent 35%),
    linear-gradient(125deg, rgba(39, 190, 222, .13), rgba(255, 255, 255, .92) 45%, rgba(248, 242, 222, .72)) !important;
  border-color: rgba(5, 130, 174, .28) !important;
  box-shadow: 0 12px 30px rgba(26, 71, 108, .10), inset 0 1px 0 #fff !important;
}
:root[data-theme="light"] .pulse-report-page :is(.v94-dd-card, .dd-card, .store-stat, .v105-stat, .v107-stat, .briefing-list li) {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(235, 246, 252, .92)) !important;
  border-color: rgba(15, 115, 158, .22) !important;
  box-shadow: 0 7px 18px rgba(27, 72, 108, .075), inset 0 1px 0 #fff !important;
}

/* Tables read as one instrument, with a cool header rail and quiet row bands. */
:root[data-theme="light"] .pulse-report-page :is(.pui-table-wrap, .v101-table-shell, .store-table-wrap, #storeTableWrap) {
  background: rgba(250, 253, 255, .88) !important;
  border-color: rgba(16, 110, 154, .25) !important;
  box-shadow: 0 11px 27px rgba(25, 70, 105, .09), inset 0 1px 0 #fff !important;
}
:root[data-theme="light"] .pulse-report-page :is(.dtable, .store-table, .pui-table) thead th {
  background: linear-gradient(180deg, #f8fcff, #dfeef7) !important;
  border-bottom-color: rgba(7, 119, 163, .30) !important;
  color: #2e4d69 !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(8, 119, 163, .08);
}
:root[data-theme="light"] .pulse-report-page :is(.dtable, .store-table, .pui-table) tbody tr:nth-child(even) td {
  background: rgba(227, 240, 248, .48) !important;
}
:root[data-theme="light"] .pulse-report-page :is(.dtable, .store-table, .pui-table) tbody tr:hover td {
  background: linear-gradient(90deg, rgba(40, 190, 221, .12), rgba(77, 145, 194, .055)) !important;
}

/* --------------------------------------------------------------------------
   Reporting Categories hub
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .pulse-hub-page > .topbar {
  background:
    radial-gradient(circle at 12% 0, rgba(47, 192, 223, .12), transparent 30%),
    radial-gradient(circle at 88% 0, rgba(82, 148, 196, .085), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(235, 246, 252, .95)) !important;
  border-bottom-color: rgba(8, 129, 173, .32) !important;
  box-shadow: 0 13px 32px rgba(25, 69, 105, .12), 0 0 22px rgba(49, 190, 219, .07) !important;
}
/* V20.14.353 -- the light hero is no longer a white card with a glint: it is the dark hero (no card, a line under it)
   on the slate page, so both themes have the same shape. */
:root[data-theme="light"] .pulse-hub-page .hub-hero-title {
  background-image: linear-gradient(100deg, #0b2039 4%, #057ea8 56%, #4887b4 96%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 6px 16px rgba(4, 124, 166, .11));
}
/* V20.14.353 -- SLATE: the hub's boxes are the dark hub's boxes -- the HUD glass (--mc-glass, the slate panel), the
   accent line, the cyan glow on the selected section -- painted on slate. No white-to-azure gradients. The corner
   brackets of the workspace are pulse-mission.css's frame (--mc-frame, the slate cyan). */
:root[data-theme="light"] .pulse-hub-page .hub-hud {
  background: var(--bg-panel) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 26px rgba(20, 50, 90, .10) !important;
}
:root[data-theme="light"] .pulse-hub-page .hub-scope-node {
  background: var(--bg-panel) !important;
  border-color: var(--line) !important;
  box-shadow: 0 6px 16px rgba(20, 50, 90, .10) !important;
}
:root[data-theme="light"] .pulse-hub-page .section-tab {
  background: var(--mc-glass) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 26px rgba(20, 50, 90, .10);
}
:root[data-theme="light"] .pulse-hub-page .section-tab:hover {
  border-color: var(--cyan-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--glow-cyan), 0 14px 32px rgba(20, 50, 90, .14);
}
:root[data-theme="light"] .pulse-hub-page .section-tab.is-active {
  background: var(--mc-glass-hi) !important;
  border-color: var(--cyan) !important;
  box-shadow: var(--glow-cyan), inset 0 -2px 0 var(--cyan) !important;
}
:root[data-theme="light"] .pulse-hub-page .section-workspace {
  background: var(--mc-glass) !important;
  border-color: var(--line-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 12px 32px rgba(20, 50, 90, .10) !important;
}
:root[data-theme="light"] .pulse-hub-page .route-report-node {
  background: var(--mc-glass) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 20px rgba(20, 50, 90, .08);
}
:root[data-theme="light"] .pulse-hub-page .route-report-node:hover {
  background: var(--mc-glass-hi) !important;
  border-color: var(--cyan-line) !important;
  box-shadow: var(--shadow-glow-cyan) !important;
}

/* --------------------------------------------------------------------------
   Sign-in gateway
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .pulse-login-page .illustration-side {
  /* V20.14.353 -- SLATE: the dark gateway's map side on slate (a deep slate well with the cyan glow), not a sky wash */
  background:
    radial-gradient(circle at 28% 28%, rgba(0, 126, 168, .14), transparent 42%),
    linear-gradient(145deg, #e3ebf3, #d5e0ec) !important;
}
:root[data-theme="light"] .pulse-login-page .illo-edge-fade {
  background: linear-gradient(to right, transparent, rgba(213, 224, 236, .96) 92%) !important;
}
:root[data-theme="light"] .pulse-login-page .login-side {
  background: radial-gradient(circle at 20% 88%, rgba(0, 126, 168, .08), transparent 42%);
}
:root[data-theme="light"] .pulse-login-page .login-edge-fade {
  background: linear-gradient(to right, rgba(213, 224, 236, .75), transparent) !important;
}
:root[data-theme="light"] .pulse-login-page .login-card {
  /* V20.14.353 -- the card is the HUD glass on slate, its edge the slate line, and its corners the dark card's
     (no light-only radius: the light theme changes the palette, never the geometry) */
  background: var(--mc-glass) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 24px 56px rgba(20, 50, 90, .16) !important;
  backdrop-filter: blur(16px) saturate(1.08);
}
:root[data-theme="light"] .pulse-login-page .login-card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--gold) 70%, transparent) !important;
  box-shadow: 0 0 12px rgba(0, 126, 168, .28);
}
:root[data-theme="light"] .pulse-login-page .login-signal-strip {
  background: var(--line) !important;
  border-color: var(--line) !important;
  box-shadow: none;
}
:root[data-theme="light"] .pulse-login-page .login-signal {
  background: var(--bg-panel-hi) !important;
}
:root[data-theme="light"] .pulse-login-page .mc-gateway span {
  background: var(--bg-panel-hi) !important;
  border-color: var(--line) !important;
  box-shadow: none;
}
:root[data-theme="light"] .pulse-login-page .login-btn {
  /* V20.14.353 -- the slate cyan, white ink (4.6:1) */
  color: #fff !important;
  background: var(--cyan) !important;
  border: 1px solid var(--cyan) !important;
  box-shadow: 0 10px 24px rgba(0, 126, 168, .24), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
:root[data-theme="light"] .pulse-login-page .login-btn::before {
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Mission Control / control panel. Its local switch also marks the body.
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .pulse-control-page,
.pulse-control-page[data-mc-light="on"] {
  /* V20.14.353 -- SLATE: Mission Control's daylight is the hub's slate (v341-hub-theme.css paints it last). These
     are the same values, so nothing under it shows a sky wash for a frame. */
  --fd-void: #d5e0ec;
  --fd-panel: #f5f9fc;
  --fd-panel-hi: #ebf2f8;
  --fd-line: rgba(0, 126, 168, .24);
  --fd-phosphor: #0c6b62;
  --fd-amber: #8a6200;
  --fd-ice: #007ea8;
  --fd-fault: #b72f49;
  background-color: #d5e0ec !important;
  background-image: radial-gradient(ellipse 720px 470px at 5% -5%, rgba(0, 126, 168, .08), transparent 62%) !important;
}
:root[data-theme="light"] .pulse-control-page .fd-shell,
.pulse-control-page[data-mc-light="on"] .fd-shell {
  background: var(--bg-panel) !important;
  border-bottom-color: var(--line-strong) !important;
  box-shadow: 0 10px 26px rgba(20, 50, 90, .10) !important;
}
:root[data-theme="light"] .pulse-control-page .tabnav.cp-rail,
.pulse-control-page[data-mc-light="on"] .tabnav.cp-rail {
  background: var(--bg-panel) !important;
  border-right-color: var(--line) !important;
  box-shadow: 8px 0 24px rgba(20, 50, 90, .08) !important;
}
:root[data-theme="light"] .pulse-control-page .tabnav.cp-rail button[data-tab].active,
.pulse-control-page[data-mc-light="on"] .tabnav.cp-rail button[data-tab].active {
  background: var(--bg-selected) !important;
  border-color: var(--cyan-line) !important;
  color: var(--text-hi) !important;
  box-shadow: var(--glow-cyan) !important;
}
:root[data-theme="light"] .pulse-control-page #tabBody :is(
  .panel, .cp-ledger-surface, .kpi-card, .quick-actions, .automation-card,
  .cp-workspace-head, .agx-node, .empty-state, .appcfg-master, .appsel,
  .global-panel, .system-map-panel, .health-banner, .chart-box, .settings-form
),
.pulse-control-page[data-mc-light="on"] #tabBody :is(
  .panel, .cp-ledger-surface, .kpi-card, .quick-actions, .automation-card,
  .cp-workspace-head, .agx-node, .empty-state, .appcfg-master, .appsel,
  .global-panel, .system-map-panel, .health-banner, .chart-box, .settings-form
) {
  /* V20.14.353 -- the HUD glass on slate */
  background: var(--mc-glass) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 12px 30px rgba(20, 50, 90, .10) !important;
}
:root[data-theme="light"] .pulse-control-page #tabBody :is(.panel, .cp-ledger-surface, .kpi-card):hover,
.pulse-control-page[data-mc-light="on"] #tabBody :is(.panel, .cp-ledger-surface, .kpi-card):hover {
  border-color: var(--cyan-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--glow-cyan), 0 14px 34px rgba(20, 50, 90, .14) !important;
}
:root[data-theme="light"] .pulse-control-page #tabBody .agx-stage,
.pulse-control-page[data-mc-light="on"] #tabBody .agx-stage {
  /* V20.14.353 -- the flow map's stage is a slate well with the dark stage's grid in the slate cyan */
  background-color: #e3ebf3 !important;
  background-image:
    linear-gradient(rgba(0, 126, 168, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 126, 168, .06) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(0, 126, 168, .08), transparent 45%) !important;
  background-size: 34px 34px, 34px 34px, auto !important;
  box-shadow: inset 0 2px 9px rgba(27, 74, 108, .07), 0 7px 18px rgba(25, 69, 104, .06) !important;
}
:root[data-theme="light"] .pulse-control-page #tabBody table.dtable thead th,
.pulse-control-page[data-mc-light="on"] #tabBody table.dtable thead th {
  background: var(--bg-panel-hi) !important;
  border-bottom-color: var(--line-strong) !important;
}
:root[data-theme="light"] .pulse-control-page #tabBody table.dtable tbody tr:hover td,
.pulse-control-page[data-mc-light="on"] #tabBody table.dtable tbody tr:hover td {
  background: var(--bg-hover) !important;
}

/* --------------------------------------------------------------------------
   Compact Branch view -- the mobile-first companion application.
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .pulse-branch-page {
  --bg: #e8f2f8;
  --panel: #f9fcff;
  --panel-hi: #e9f4fa;
  --line: rgba(14, 110, 153, .23);
  --text: #0b2039;
  --mid: #36536f;
  --dim: #536d86;
  --cyan: #047ca6;
  --gold: #986000;
  --green: #08765a;
  --red: #ba334e;
  background:
    radial-gradient(circle at 4% 0, rgba(39, 188, 219, .17), transparent 34%),
    radial-gradient(circle at 96% 2%, rgba(78, 146, 194, .11), transparent 36%),
    linear-gradient(180deg, #f7fcff, #e7f1f7 55%, #e1ecf4) !important;
  background-attachment: fixed !important;
}
:root[data-theme="light"] .pulse-branch-page header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(232, 244, 250, .92)) !important;
  border-bottom-color: rgba(7, 122, 164, .30) !important;
  box-shadow: 0 10px 26px rgba(24, 68, 103, .11), 0 0 18px rgba(45, 187, 216, .07);
}
:root[data-theme="light"] .pulse-branch-page :is(.kpi, .card, .seg, .empty, .loading) {
  background:
    radial-gradient(circle at 100% 0, rgba(43, 187, 217, .075), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(233, 245, 251, .94)) !important;
  border-color: rgba(13, 108, 151, .23) !important;
  box-shadow: 0 9px 22px rgba(25, 69, 104, .10), 0 2px 6px rgba(25, 69, 104, .05), inset 0 1px 0 #fff;
}
:root[data-theme="light"] .pulse-branch-page .card.warn {
  background: linear-gradient(135deg, rgba(255, 250, 237, .98), rgba(255, 255, 255, .95)) !important;
}
:root[data-theme="light"] .pulse-branch-page .card.bad {
  background: linear-gradient(135deg, rgba(255, 242, 245, .98), rgba(255, 255, 255, .95)) !important;
}
:root[data-theme="light"] .pulse-branch-page .card.good {
  background: linear-gradient(135deg, rgba(237, 249, 245, .98), rgba(255, 255, 255, .95)) !important;
}
:root[data-theme="light"] .pulse-branch-page .basis {
  background: rgba(226, 240, 248, .86) !important;
  box-shadow: inset 0 2px 5px rgba(25, 69, 104, .07);
}
:root[data-theme="light"] .pulse-branch-page .basis button.on {
  background: linear-gradient(135deg, #057da3, #08719f 62%, #4a86b0) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(5, 113, 158, .22), 0 0 15px rgba(42, 185, 216, .13);
}

/* Mobile keeps the colour hierarchy but uses cheaper, tighter elevation. */
@media (max-width: 700px) {
  :root[data-theme="light"] body,
  :root[data-theme="light"] .pulse-branch-page { background-attachment: scroll !important; }
  :root[data-theme="light"] .pulse-report-page :is(.panel, .kpi-card, .v46-brief, .launch-map, .chart-box),
  :root[data-theme="light"] .pulse-control-page #tabBody :is(.panel, .cp-ledger-surface, .kpi-card),
  .pulse-control-page[data-mc-light="on"] #tabBody :is(.panel, .cp-ledger-surface, .kpi-card) {
    box-shadow: 0 9px 22px rgba(25, 69, 104, .10), 0 2px 5px rgba(25, 69, 104, .05), inset 0 1px 0 #fff !important;
  }
  :root[data-theme="light"] .pulse-report-page .kpi-card:hover { transform: none; }
  :root[data-theme="light"] .pulse-login-page .login-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 38px rgba(20, 50, 90, .14) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="light"] :is(.kpi-card, .section-tab, .route-report-node, .pui-btn, .btn) { transition: none !important; }
}

/* ==========================================================================
   V20.14.212 -- DAYLIGHT GLASS.
   "Revamp completely the LIGHT THEME, please do some efforts to have
   something great."

   The dark theme's language is light in the dark: neon strokes, glows, a
   console at night. Every earlier daylight pass kept that vocabulary and
   turned the brightness down, which is why it kept reading as a dimmed copy.
   Daylight has its own vocabulary and this pass uses it:

     * SURFACES are white glass that FLOAT -- a bright top edge, an azure-
       tinted shadow (never grey), and a lift on hover. Depth comes from light
       falling on the object, not from a glow leaking out of it.
     * COLOUR is saturated and used as LIGHT: azure ink for controls, coloured
       ribbons and left bars for tone, gradient ink for the hero numbers.
     * MOTION is the same set the dark theme has, re-drawn so it is visible on
       white: the header carries a travelling light along its lower edge, the
       signal trace and its scan head are azure with a real halo, the active
       tab breathes, the launcher wears a rotating gradient ring.

   Loaded last, scoped to the theme, additive. Nothing here removes an
   animation; it makes the existing ones readable and adds three.
   ========================================================================== */
:root[data-theme="light"] {
  /* V20.14.353 -- SLATE: these were the azure daylight's own colours and white glass. They are the HUD's now (the
     slate cyan #007ea8 and gold #8a6200, the slate panel #f5f9fc), so every rule below that reads them draws the
     dark HUD's chrome on slate instead of a white, azure-lit room. --dl-azure-deep stays the ink for small cyan
     labels (6.4:1 on the slate panel). */
  --dl-azure: #007ea8;
  --dl-azure-deep: #00628a;   /* V20.14.265 -- was #0077b6: 4.2:1 behind small bold labels */
  --dl-azure-ink: #00628a;
  --dl-violet: #8a6200;
  --dl-amber: #8a6200;
  --dl-glass: linear-gradient(160deg, #f5f9fc, #f5f9fc);
  --dl-glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --dl-float: 0 1px 2px rgba(20, 50, 90, .08), 0 12px 32px rgba(20, 50, 90, .12);
  --dl-float-hi: 0 2px 4px rgba(20, 50, 90, .10), 0 16px 40px rgba(20, 50, 90, .16);
  --dl-ring: 0 0 0 1px rgba(0, 126, 168, .34);
}

/* ---- 1. The command chrome: a lit bar with a travelling light ------------ */
:root[data-theme="light"] #mcTelemetry {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  border-bottom: 1px solid rgba(0, 119, 182, .16) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(0, 110, 170, .08) !important;
}
:root[data-theme="light"] #mcTelemetry::after {
  content: ""; position: absolute; left: 0; width: 60%; bottom: -1px; height: 2px; pointer-events: none;
  /* V20.14.353 -- the travelling light in the bar's own cyan (the bar is navy in both themes) */
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0) 20%, rgba(0, 229, 255, .85) 50%, rgba(0, 229, 255, .55) 62%, rgba(0, 229, 255, 0) 80%, transparent 100%);
  will-change: transform;
  animation: dlHeaderSweep 6s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: .9;
}
/* V20.14.266 -- by transform (compositor), not background-position (repaint). */
@keyframes dlHeaderSweep { 0% { transform: translate3d(-100%, 0, 0); } 100% { transform: translate3d(167%, 0, 0); } }

/* The signal in the centre of the header -- "the middle animated object". */
:root[data-theme="light"] .mc-sig-rail { stroke: rgba(0, 150, 214, .28); }
:root[data-theme="light"] .mc-sig-bracket { stroke: rgba(0, 119, 182, .7); stroke-width: 1.4; }
:root[data-theme="light"] .mc-sig-trace { stroke: var(--dl-azure-deep); stroke-width: 1.9; filter: drop-shadow(0 0 4px rgba(0, 150, 214, .55)) drop-shadow(0 1px 1px rgba(0, 96, 150, .25)); }
:root[data-theme="light"] .mc-sig-scan { fill: var(--dl-azure); filter: drop-shadow(0 0 5px rgba(0, 150, 214, .9)); }
:root[data-theme="light"] .mc-tel-stream { border-radius: 999px; background: radial-gradient(60% 140% at 50% 50%, rgba(0, 150, 214, .12), transparent 70%); }
:root[data-theme="light"] .mc-tel-brand, :root[data-theme="light"] .mc-tel-item { color: var(--dl-azure-ink) !important; }

/* ---- 2. Sticky report header, brand row, filters, tabs: one glass family - */
:root[data-theme="light"] .pulse-sticky-header {
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 119, 182, .14) !important;
  box-shadow: 0 1px 0 #fff, 0 14px 40px rgba(0, 110, 170, .10) !important;
}
:root[data-theme="light"] .brand-switcher,
:root[data-theme="light"] .filterbar,
:root[data-theme="light"] #tabNav {
  background: var(--dl-glass) !important;
  border: 1px solid rgba(0, 119, 182, .16) !important;
  box-shadow: var(--dl-glass-edge), var(--dl-float) !important;
}
:root[data-theme="light"] .brand-btn.logo-only.active, :root[data-theme="light"] .brand-btn.portfolio-btn.active {
  filter: drop-shadow(0 6px 14px rgba(0, 150, 214, .35));
}
:root[data-theme="light"] #tabNav .tab-btn {
  color: var(--dl-azure-ink) !important;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .25s ease;
}
:root[data-theme="light"] #tabNav .tab-btn:hover:not(.active) { background: rgba(0, 150, 214, .09) !important; color: var(--dl-azure-deep) !important; }
:root[data-theme="light"] #tabNav .tab-btn .mc-tab-icon { color: var(--dl-azure); opacity: .9; }
:root[data-theme="light"] .pulse-report-page #tabNav .tab-btn.active {
  background: transparent !important;
  color: var(--dl-azure-deep) !important; border-color: transparent !important;
  /* V20.14.222 -- the underline is gone from here. V20.14.220 replaced the
     three separate statements of it with one travelling mark (#tabSlider) and
     removed it from V20.14.214 and V20.14.215 -- but not from this file, which
     is light-theme only. That is exactly why the report showed TWO lines under
     the selected tab in daylight and one in the dark: this rule and the mark,
     both drawing. The breath moved to the mark itself, where it can be a
     breath in WIDTH rather than in a shadow that cannot move. */
  box-shadow: none !important;
}
:root[data-theme="light"] .pulse-report-page #tabNav .tab-btn.active .mc-tab-icon { color: var(--dl-azure-deep); filter: drop-shadow(0 1px 2px rgba(0, 110, 155, .22)); }
/* V20.14.222 -- kept as an empty shell would be worse than removing it: this
   keyframe animated the underline that no longer belongs to the button. The
   breath now lives on #tabSlider, in width, where the selection mark is. */
:root[data-theme="light"] .fselect, :root[data-theme="light"] .filterbar select, :root[data-theme="light"] .filterbar .fpill {
  background: linear-gradient(180deg, #ffffff, #f4f9fe) !important; border-color: rgba(0, 119, 182, .22) !important; color: var(--text-hi) !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 110, 170, .07) !important;
}
:root[data-theme="light"] .fselect:hover, :root[data-theme="light"] .fselect:focus { border-color: var(--dl-azure) !important; box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(0, 150, 214, .16) !important; }
:root[data-theme="light"] .segmented-option.active, :root[data-theme="light"] .pulse-sticky-header .segmented-option.active {
  background: linear-gradient(180deg, #0088c8, #00a3e0) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 150, 214, .32) !important;
}
/* WHAT-IF is the one gold control in the dark header; daylight keeps that
   signal so the scenario planner is found in the same place by colour. */
:root[data-theme="light"] .v21-scenario-btn, :root[data-theme="light"] .v21-scenario-pulse {
  background: linear-gradient(112deg, #ffc65a, #f39a12) !important; color: #2a1a00 !important; border-color: rgba(200, 120, 0, .45) !important;
  box-shadow: 0 6px 16px rgba(240, 138, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .55) !important; font-weight: 700;
}
:root[data-theme="light"] .v21-scenario-btn:hover, :root[data-theme="light"] .v21-scenario-pulse:hover { color: #1a1000 !important; box-shadow: 0 10px 24px rgba(240, 138, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .6) !important; }

/* ---- 3. Panels: white glass that floats ---------------------------------- */
:root[data-theme="light"] #tabBody .panel, :root[data-theme="light"] .panel {
  background: var(--dl-glass) !important;
  border: 1px solid rgba(0, 119, 182, .16) !important;
  box-shadow: var(--dl-glass-edge), var(--dl-float) !important;
  transition: box-shadow .28s ease, border-color .28s ease;
}
/* V20.14.203/204 settled that a hovered box never moves ("a hover overlay
   must never become page geometry"); hover here is light only. */
:root[data-theme="light"] #tabBody .panel:hover {
  border-color: rgba(0, 150, 214, .34) !important;
  box-shadow: var(--dl-glass-edge), var(--dl-float-hi) !important;
}
:root[data-theme="light"] .panel .ptitle, :root[data-theme="light"] .dd-panel-head h3 { color: #0b2039; letter-spacing: .01em; }
:root[data-theme="light"] .panel .psub { color: #4c6684; }
:root[data-theme="light"] .v150-title-icon, :root[data-theme="light"] .pcard-icon { color: var(--dl-azure); filter: drop-shadow(0 2px 4px rgba(0, 150, 214, .28)); }

/* Chart rail: glossy pills, azure ink, fill on hover. */
:root[data-theme="light"] .v20-explain, :root[data-theme="light"] .v46-chart-btn, :root[data-theme="light"] .v21-annot-btn, :root[data-theme="light"] .store-export {
  background: linear-gradient(180deg, #ffffff, #f3f9fe) !important;
  border-color: rgba(0, 119, 182, .30) !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 110, 170, .10) !important;
  transition: background .18s ease, color .18s ease, box-shadow .2s ease, transform .18s ease;
}
:root[data-theme="light"] .v20-explain, :root[data-theme="light"] .v46-chart-btn, :root[data-theme="light"] .store-export { color: var(--dl-azure-deep) !important; }
:root[data-theme="light"] .v21-annot-btn { color: #9a5a00 !important; border-color: rgba(200, 120, 0, .38) !important; }
:root[data-theme="light"] .v20-explain:hover, :root[data-theme="light"] .v46-chart-btn:hover, :root[data-theme="light"] .store-export:hover {
  background: linear-gradient(180deg, #0096d6, #0077b6) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(0, 150, 214, .34) !important; transform: translateY(-1px);
}
:root[data-theme="light"] .v21-annot-btn:hover { background: linear-gradient(180deg, #ffb43a, #f08a00) !important; color: #2a1a00 !important; border-color: transparent !important; box-shadow: 0 6px 16px rgba(240, 138, 0, .30) !important; transform: translateY(-1px); }

/* ---- 4. KPI tiles: a tone ribbon and gradient ink for the number -------- */
:root[data-theme="light"] .kpi-card {
  background: var(--dl-glass) !important; border: 1px solid rgba(0, 119, 182, .16) !important;
  box-shadow: var(--dl-glass-edge), var(--dl-float) !important; overflow: hidden; position: relative;
}
:root[data-theme="light"] .kpi-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--dl-azure), var(--dl-violet));
}
:root[data-theme="light"] .kpi-card.tone-pos::after { background: linear-gradient(90deg, #059f72, #2fd39b); }
:root[data-theme="light"] .kpi-card.tone-neg::after { background: linear-gradient(90deg, #e0445c, #ff8a7a); }
:root[data-theme="light"] .kpi-card .kvalue {
  background: linear-gradient(120deg, #0b2039 0%, #0f3d66 55%, var(--dl-azure-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
:root[data-theme="light"] .kpi-card:hover { box-shadow: var(--dl-glass-edge), var(--dl-float-hi) !important; }

/* ---- 5. Insight cards: a tone bar on the left, a wash behind ------------- */
:root[data-theme="light"] .insight {
  border-left: 4px solid var(--dl-azure) !important; border-radius: 10px !important;
  background: linear-gradient(90deg, rgba(0, 150, 214, .09), rgba(255, 255, 255, .92) 42%) !important;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 110, 170, .07) !important;
}
:root[data-theme="light"] .insight.gold, :root[data-theme="light"] .insight.warn { border-left-color: var(--dl-amber) !important; background: linear-gradient(90deg, rgba(240, 160, 32, .12), rgba(255, 255, 255, .92) 42%) !important; }
:root[data-theme="light"] .insight.green, :root[data-theme="light"] .insight.pos { border-left-color: #059f72 !important; background: linear-gradient(90deg, rgba(5, 159, 114, .11), rgba(255, 255, 255, .92) 42%) !important; }
:root[data-theme="light"] .insight.red, :root[data-theme="light"] .insight.neg { border-left-color: #e0445c !important; background: linear-gradient(90deg, rgba(224, 68, 92, .10), rgba(255, 255, 255, .92) 42%) !important; }

/* ---- 6. The launcher: a glossy plate, and the ring it now wears ---------- */
html[data-theme="light"] #qaFab.qa-fab-floating {
  background: radial-gradient(circle at 35% 26%, #ffffff, #e9f6fd 62%, #d9eefa 100%) !important;
  box-shadow: 0 18px 40px rgba(0, 110, 170, .26), 0 0 0 1px rgba(0, 150, 214, .28), inset 0 1px 0 #fff !important;
}
:root[data-theme="light"] .pulse-agent-wave-mark {
  --paw-orbit: var(--dl-azure); --paw-trace: var(--dl-azure-deep);
  --paw-core: #f08a00; --paw-core-glow: rgba(240, 138, 0, .55);
  --paw-sat: var(--dl-azure); --paw-sat-glow: rgba(0, 150, 214, .6);
  --paw-halo-fill: rgba(0, 150, 214, .10); --paw-halo-line: rgba(0, 150, 214, .5);
}

/* ---- 7. Type and text ink on daylight ------------------------------------- */
:root[data-theme="light"] .report-title, :root[data-theme="light"] .s360-head h2 { color: #0b2039; }
:root[data-theme="light"] a, :root[data-theme="light"] .link { color: var(--dl-azure-deep); }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="light"] #mcTelemetry::after, :root[data-theme="light"] #tabNav .tab-btn.active { animation: none; }
}

/* ==========================================================================
   V20.14.331 -- QUANTUM PEARL, on every page (Ramy, 4 Oct: "the daylight twin of the dark theme").
   The portal bar is deep navy with the cyan pulse line, as in the dark theme's console, on the hub,
   the sign-in page, the report and the Control Panel. Frosted materials only here, in the header, the
   filters and the navigation; analytical cards stay opaque.
   ========================================================================== */
:root[data-theme="light"]:not(#s331) #mcTelemetry {
  background: linear-gradient(180deg, #06172d, #0a2543) !important;
  /* V20.14.353 -- the bar's accents are the dark HUD's cyan (#00e5ff on navy), not sky blue: the bar is the same
     chrome in both themes */
  border-bottom: 1px solid rgba(0, 229, 255, .34) !important;
  box-shadow: 0 1px 0 rgba(0, 229, 255, .12), 0 10px 26px -12px rgba(10, 40, 70, .65) !important;
  color: #d6ebff !important;
}
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-brand,
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-item,
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-item b,
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-item span,
:root[data-theme="light"]:not(#s331) #mcTelemetry .ptb-btn { color: #e2f1ff !important; }
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-page {
  background: rgba(0, 229, 255, .10) !important; border: 1px solid rgba(0, 229, 255, .34) !important;
  color: #00e5ff !important; box-shadow: none !important;
}
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-page * { color: #00e5ff !important; }
:root[data-theme="light"]:not(#s331) #mcTelemetry .mc-tel-stream path { stroke: #00e5ff !important; filter: drop-shadow(0 0 3px rgba(0, 229, 255, .7)); }

