/* v131: "glass" look. Loaded LAST (after desktop.css), so removing the one <link> in base.html returns the exact v130 look.
   Idea: quiet solid cards for the numbers; frosted glass only for the parts that float (header, bottom dock, menus).
   One brand blue (the TCP logo blue), soft edges, one easing curve. No new markup, no script.
   Phone (up to 700 px): floating dock at the bottom. Tablet portrait (701-900 px): the same dock, centred. Desktop (901 px+): sticky glass header with the area switch. */
:root{
 --g-blue:#1b75bb;
 --g-ease:cubic-bezier(.25,.1,.25,1);
 --g-glass:rgb(255 255 255/.68);
 --g-dock:rgb(255 255 255/.86);
 --g-active:#14609d;
 --g-glass-strong:rgb(255 255 255/.88);
 --g-edge:rgb(255 255 255/.7);
 --g-hair:rgb(18 50 76/.09);
 --g-shadow:0 8px 28px rgb(18 50 76/.12),0 1px 2px rgb(18 50 76/.06);
 --g-blur:blur(18px) saturate(1.6);
 --g-card-line:#e3ebf2;
 --g-radius:20px;
}
html[data-theme=dark]{
 --g-glass:rgb(23 36 55/.68);
 --g-dock:rgb(23 36 55/.86);
 --g-active:#8bc3ee;
 --g-glass-strong:rgb(23 36 55/.9);
 --g-edge:rgb(255 255 255/.12);
 --g-hair:rgb(255 255 255/.10);
 --g-shadow:0 10px 32px rgb(0 0 0/.45),0 1px 2px rgb(0 0 0/.3);
 --g-card-line:#2a3b52;
}
@media(prefers-color-scheme:dark){
 html:not([data-theme=light]){
  --g-glass:rgb(23 36 55/.68);--g-dock:rgb(23 36 55/.86);--g-active:#8bc3ee;--g-glass-strong:rgb(23 36 55/.9);--g-edge:rgb(255 255 255/.12);--g-hair:rgb(255 255 255/.10);
  --g-shadow:0 10px 32px rgb(0 0 0/.45),0 1px 2px rgb(0 0 0/.3);--g-card-line:#2a3b52;
 }
}

/* a faint brand wash behind everything, so the glass has something to frost */
html{background:var(--bg,#f5f7fa);scroll-padding-top:84px}
body{background:
 radial-gradient(900px 460px at 8% -120px,rgb(27 117 187/.10),transparent 70%),
 radial-gradient(700px 400px at 100% -80px,rgb(27 117 187/.06),transparent 70%),
 var(--bg,#f5f7fa)}
html[data-theme=dark] body{background:
 radial-gradient(900px 460px at 8% -120px,rgb(70 150 220/.14),transparent 70%),
 radial-gradient(700px 400px at 100% -80px,rgb(70 150 220/.07),transparent 70%),
 var(--bg,#0d1724)}

/* quiet cards: softer edge, rounder corners, no heavy shadow */
.ov-card,.ov-attention,.ov-days,.ov-day,.mx-list,.mx-attention,.rcv-card,.filter-panel,.map-card,.sr-item{
 border-color:var(--g-card-line);border-radius:var(--g-radius);box-shadow:none;
 transition:border-color .2s var(--g-ease),transform .2s var(--g-ease),background-color .2s var(--g-ease)}
@media(hover:hover){
 a.ov-card:hover{border-color:color-mix(in srgb,var(--g-blue) 40%,var(--g-card-line));transform:translateY(-1px)}
}
a.ov-card:active{transform:scale(.985)}

/* segmented switches: a calm track; the sliding highlight (slider.css) stays */
.ov-branches,.stock-tabs,.rcv-segmented{border-color:transparent;background:color-mix(in srgb,var(--ink,#12324c) 6%,transparent);border-radius:999px}

/* focus ring: one brand ring everywhere */
:where(a,button,summary,input,select):focus-visible{outline:2px solid var(--g-blue);outline-offset:2px}

/* GLASS: header (every size) */
.top{position:sticky;top:0;background:var(--g-glass);border-bottom:1px solid var(--g-hair);
 -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}

/* GLASS: menus that float over the page */
.account-panel,.data-status-panel{background:var(--paper,#fff);border:1px solid var(--g-hair);border-radius:22px;box-shadow:var(--g-shadow)}
html[data-theme=dark] .account-panel{background:var(--paper,#172437);border-color:var(--g-hair);box-shadow:var(--g-shadow)}
.menu-row{border-radius:14px;transition:background-color .15s var(--g-ease)}

/* GLASS: the bottom dock (phone and tablet portrait) */
@media(max-width:900px){
 .bottom-bar{display:flex;position:fixed;z-index:90;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));width:auto;max-width:560px;margin-inline:auto;
  gap:2px;padding:6px;border:1px solid var(--g-hair);border-radius:26px;overflow:visible;
  background:var(--g-dock);box-shadow:var(--g-shadow),inset 0 1px 0 var(--g-edge);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}
 .bottom-bar a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px 7px;border-radius:20px;
  font-size:11px;font-weight:650;line-height:1.1;color:var(--muted,#527085);text-decoration:none;position:relative;z-index:1}
 .bottom-bar a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .bottom-bar a .icon{width:22px;height:22px}
 .bottom-bar a[aria-current=page]{color:var(--g-active)}
 .bar-pill{display:block;position:absolute;z-index:0;left:6px;top:6px;bottom:6px;width:0;border-radius:20px;pointer-events:none;
  background:color-mix(in srgb,var(--g-blue) 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--g-blue) 18%,transparent);
  transition:transform .26s var(--g-ease)}
 .bottom-bar a.is-hero svg{border-color:var(--g-glass-strong)}
 body.has-bottom-bar{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 body.has-bottom-bar .ai-composer{bottom:calc(100px + env(safe-area-inset-bottom))}
 /* Marketing's own Today / Marketers / Customers bar becomes an in-page switch up to 900 px, so only the dock sits at the bottom (areas.css does this up to 700 px) */
 html .intelligence .workspace-tabs{position:relative;left:auto;right:auto;bottom:auto;z-index:1;width:100%;margin:14px 0;padding:5px;border-radius:16px;box-shadow:none;border-top:0}
 html .intelligence .workspace-tabs button{flex:1 1 0;min-width:0}
 body.has-bottom-bar .ui-progress{bottom:calc(96px + env(safe-area-inset-bottom))!important}
}

/* TABLET, portrait (701-900 px): the dock replaces the header switch; two comfortable columns; hero circle is for phones only */
@media(min-width:701px) and (max-width:900px){
 .top .area-switch,.top .badge{display:none}
 .top{padding:12px 24px}
 .ov-grid,.ov-summary{grid-template-columns:repeat(2,minmax(0,1fr))}   /* sections hold four cards: two whole rows, never three plus one */
 main.stock,main.intelligence,.stock-devices{padding-left:24px;padding-right:24px}
 .bottom-bar a.is-hero svg{width:22px;height:22px;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
 .bottom-bar a{padding:10px 2px 9px;font-size:12px}
 .bottom-bar a.is-hero span{font-size:12px;margin:0}
}

/* DESKTOP (901 px+): the header is the navigation; roomier, with the area switch as a glass pill */
@media(min-width:901px){
 .top .area-switch{background:color-mix(in srgb,var(--ink,#12324c) 6%,transparent);border-color:transparent}
 .top .area-switch a[aria-current=page]{background:var(--g-glass-strong);box-shadow:0 1px 3px rgb(18 50 76/.14);color:var(--g-blue)}
 html[data-theme=dark] .top .area-switch a[aria-current=page]{color:#8bc3ee}
 .top .area-switch a:hover:not([aria-current=page]){background:color-mix(in srgb,var(--ink,#12324c) 7%,transparent)}
}

/* no blur where it costs too much or the person asked for none: solid surfaces instead */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .top,.bottom-bar{background:var(--paper,#fff)}
 .account-panel,.data-status-panel{background:var(--paper,#fff)}
}
@media(prefers-reduced-transparency:reduce){
 .top,.bottom-bar,.account-panel,.data-status-panel{background:var(--paper,#fff);-webkit-backdrop-filter:none;backdrop-filter:none}
}
html.lite .top,html.lite .bottom-bar,html.lite .account-panel,html.lite .data-status-panel{background:var(--paper,#fff);-webkit-backdrop-filter:none;backdrop-filter:none}
@media(prefers-reduced-motion:reduce){
 .ov-card,.ov-attention,.ov-days,.ov-day,.mx-list,.mx-attention,.rcv-card,.filter-panel,.map-card,.sr-item,.menu-row,.bar-pill{transition:none}
 a.ov-card:hover,a.ov-card:active{transform:none}
}
