/* Deep liquid glass — load last. Navy identity. Do not clip page scroll.
   Never display:block on Sites tr. Do not restyle workflow notes column. */

:root {
  /* Sites Management canvas — warm milky cream/stone. One hex, no icy blue. */
  --gce-canvas: #eeeae3;
  --gce-bg: #eeeae3;
  --gce-craft-bg: #eeeae3;
  --gce-glass-blur: 36px;
  --gce-glass-sat: 1.45;
  --gce-glass-fill: rgba(255, 251, 246, 0.34);
  --gce-glass-fill-2: rgba(245, 240, 232, 0.28);
  --gce-glass-navy: rgba(30, 41, 59, 0.12);
  --gce-glass-edge: rgba(255, 250, 244, 0.68);
  --gce-glass-line: rgba(90, 86, 78, 0.22);
  --gce-glass-shine:
    inset 0 1px 0 rgba(255, 252, 247, 0.9),
    inset 0 -1px 0 rgba(30, 41, 59, 0.06);
  --gce-glass-shadow: 0 14px 36px rgba(40, 36, 30, 0.1);
  --gce-glass-panel:
    linear-gradient(165deg, rgba(255, 252, 247, 0.52) 0%, rgba(255, 255, 255, 0.1) 44%, rgba(71, 78, 92, 0.08) 100%),
    rgba(248, 244, 238, 0.22);
}

html[data-gce-mode="light"],
html[data-gce-mode="dark"] {
  --gce-canvas: #eeeae3;
  --gce-bg: #eeeae3;
  --gce-craft-bg: #eeeae3;
}

html[data-gce-mode="dark"] {
  --gce-glass-fill: rgba(30, 41, 59, 0.42);
  --gce-glass-fill-2: rgba(15, 23, 42, 0.28);
  --gce-glass-navy: rgba(148, 163, 184, 0.12);
  --gce-glass-edge: rgba(226, 220, 210, 0.18);
  --gce-glass-line: rgba(148, 163, 184, 0.22);
  --gce-glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --gce-glass-shadow: 0 16px 36px rgba(8, 12, 22, 0.28);
  --gce-glass-panel:
    linear-gradient(165deg, rgba(51, 65, 85, 0.42) 0%, rgba(15, 23, 42, 0.22) 100%),
    rgba(21, 28, 43, 0.4);
}

/* Sidebar frost */
html[data-gce-mode="light"] body.gce-viewport-shell .sidebar.sidebar--field,
html[data-gce-mode="dark"] body.gce-viewport-shell .sidebar.sidebar--field,
body.gce-viewport-shell .sidebar.sidebar--field {
  background:
    linear-gradient(180deg, var(--gce-glass-fill-2), var(--gce-glass-fill)) !important;
  border-right: 1px solid var(--gce-glass-edge) !important;
  box-shadow:
    var(--gce-glass-shine),
    10px 0 36px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
  -webkit-backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
}

body.gce-viewport-shell .sidebar.sidebar--field::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(90, 86, 78, 0.12), transparent);
  z-index: 3;
}

html[data-gce-mode="light"] body.gce-viewport-shell .nav-item.active,
html[data-gce-mode="light"] body.gce-viewport-shell .sidebar .nav-item.active {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.62), rgba(71, 78, 92, 0.1)) !important;
  color: #1e3a8a !important;
  border-color: rgba(255, 250, 244, 0.75) !important;
  box-shadow: var(--gce-glass-shine), 0 6px 16px rgba(40, 36, 30, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
}

/* Shared frost panels — headers, KPIs, cards, filters, toolbars */
.gce-glass-panel,
.gce-sites-mockup .stm-page-head,
.gce-sites-mockup .stm-kpi--mockup,
.gce-sites-mockup .stm-table-toolbar,
.gce-sites-mockup #stm-sites-list-view.stm-table-card-full,
.dash-page--ops .dash-kpi-card,
.dash-page--ops .dash-ops-card,
.dash-page--ops .dash-ops-map-card,
.dash-page--ops .dash-ops-sites-card,
.gce-finance-mockup .fin-ov-kpi,
.gce-finance-mockup .fin-ov-card,
.gce-finance-mockup .fin-ov-toolbar,
.gce-finance-mockup .fin-mock-sites-panel,
.gce-finance-mockup .fin-mock-table-panel,
.gce-finance-mockup .fin-mock-site-card,
.gce-finance-mockup .fin-rpt-kpi,
.gce-finance-mockup .fin-rpt-card,
.gce-finance-mockup .fin-mock-section,
html body.gce-viewport-shell .fin-mock-header,
html body.gce-viewport-shell .fin-page-head,
html body.gce-viewport-shell .crw-page-head,
html body.gce-viewport-shell .tsk-page-head,
html body.gce-viewport-shell .eq-page-head,
html body.gce-viewport-shell .sto-page-head,
html body.gce-viewport-shell .sfty-page-head,
html body.gce-viewport-shell .sfd-page-head,
html body.gce-viewport-shell .cal-page-head,
html body.gce-viewport-shell .msg-page-head,
html body.gce-viewport-shell .pnl-head,
html body.gce-viewport-shell .stg-mock-header,
html body.gce-viewport-shell .stg-page-head,
html body.gce-viewport-shell .dash-ops-hero,
html body.gce-viewport-shell .fin-kpi-card,
html body.gce-viewport-shell .tsk-kpi,
html body.gce-viewport-shell .eq-kpi,
html body.gce-viewport-shell .sto-kpi,
html body.gce-viewport-shell .sfty-kpi,
html body.gce-viewport-shell .sfty-card,
html body.gce-viewport-shell .sfd-kpi,
html body.gce-viewport-shell .cert-kpi,
html body.gce-viewport-shell .cal-kpi,
html body.gce-viewport-shell .pnl-kpi,
html body.gce-viewport-shell .sdt-kpi,
html body.gce-viewport-shell .tsk-table-toolbar,
html body.gce-viewport-shell .eq-toolbar,
html body.gce-viewport-shell .sto-toolbar,
html body.gce-viewport-shell .pnl-toolbar,
html body.gce-viewport-shell .sfty-filters,
html body.gce-viewport-shell .cal-board-toolbar,
html body.gce-viewport-shell .stg-summary-card,
html body.gce-viewport-shell .stg-card,
html body.gce-viewport-shell .msg-aside,
html body.gce-viewport-shell .msg-thread,
html body.gce-viewport-shell .cal-shell-card,
html body.gce-viewport-shell .modal,
html body.gce-viewport-shell .gce-modal-panel,
html body.gce-viewport-shell .stg-modal-panel,
html body.gce-viewport-shell .stg-modal,
html body.gce-viewport-shell .gce-dialog,
html body.gce-viewport-shell .gce-pick-dialog,
html body.gce-viewport-shell #stm-notes-popover,
html body.gce-viewport-shell .stm-notes-popover,
html body.gce-viewport-shell #stm-notes-hover-card,
html body.gce-viewport-shell .stm-notes-hover-card {
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine), var(--gce-glass-shadow) !important;
  backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
  -webkit-backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
}

html[data-gce-mode="dark"] .gce-finance-mockup .fin-mockup-shell,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-header,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-tabs,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-sites-panel,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-table-panel,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-site-card,
html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-section {
  background: var(--gce-glass-panel) !important;
  border-color: var(--gce-glass-edge) !important;
  color: #e2e8f0;
}

.gce-finance-mockup .fin-mock-site-card {
  position: relative;
  overflow: hidden !important;
  border-radius: 40px !important;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  contain: layout paint;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.gce-finance-mockup .fin-mock-site-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(90, 86, 78, 0.16) 100%
  );
  background-size: 180% 100%;
  background-position: 100% 0;
  transition: opacity 0.2s ease, background-position 0.4s ease;
  z-index: 0;
}

.gce-finance-mockup .fin-mock-site-card > * {
  position: relative;
  z-index: 1;
}

.gce-finance-mockup .fin-mock-site-card:hover {
  background:
    linear-gradient(165deg, rgba(255, 252, 247, 0.55) 0%, rgba(71, 78, 92, 0.1) 100%) !important;
  border-color: rgba(90, 86, 78, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(30, 58, 138, 0.12) !important;
}

.gce-finance-mockup .fin-mock-site-card:hover::after {
  opacity: 1;
  background-position: 0 0;
}

.gce-finance-mockup .fin-mock-open-site {
  border-radius: 999px !important;
}

html[data-gce-mode="dark"] .gce-finance-mockup .fin-mock-site-card:hover {
  background: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

html[data-gce-viewport="laptop"],
html[data-gce-viewport="compact"] {
  --gce-glass-blur: 16px;
}

.gce-sites-mockup .stm-page-head {
  padding: 12px 14px 8px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.gce-sites-mockup .stm-kpi--mockup,
.dash-page--ops .dash-kpi-card,
.dash-page--ops .dash-ops-card,
.dash-page--ops .dash-ops-map-card {
  overflow: hidden;
}

.gce-sites-mockup .stm-kpi--mockup::after,
.dash-page--ops .dash-kpi-card::after,
.dash-page--ops .dash-ops-card::after,
.dash-page--ops .dash-ops-map-card::after,
.gce-sites-mockup .stm-status-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(90, 86, 78, 0.14) 62%,
      rgba(255, 255, 255, 0.34) 100%
    );
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: opacity 0.28s ease, background-position 0.55s ease;
  z-index: 0;
}

.gce-sites-mockup .stm-status-tab {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gce-glass-fill) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine) !important;
  backdrop-filter: blur(18px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5) !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab.active {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
}

.gce-sites-mockup .stm-kpi--mockup:hover::after,
.dash-page--ops .dash-kpi-card:hover::after,
.dash-page--ops .dash-ops-card:hover::after,
.dash-page--ops .dash-ops-map-card:hover::after,
.gce-sites-mockup .stm-status-tab:hover::after,
.gce-sites-mockup .stm-status-tab.active::after {
  opacity: 1;
  background-position: 0 0;
}

.gce-sites-mockup .stm-kpi--mockup > *,
.dash-page--ops .dash-kpi-card > *,
.gce-sites-mockup .stm-status-tab > * {
  position: relative;
  z-index: 1;
}

.gce-sites-mockup .stm-table-toolbar {
  border-radius: 12px;
}

.gce-sites-mockup #stm-sites-list-view.stm-table-card-full {
  overflow: visible !important;
  border-radius: 14px;
}

.gce-sites-mockup .stm-table thead th {
  background: rgba(248, 251, 255, 0.55) !important;
  backdrop-filter: blur(18px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
  box-shadow: inset 0 -1px 0 var(--gce-glass-line);
}

html[data-gce-mode="dark"] .gce-sites-mockup .stm-table thead th {
  background: rgba(15, 23, 42, 0.55) !important;
  color: #cbd5e1 !important;
}

/* Week label pill only — do not change tr display */
.gce-sites-mockup .stm-week-head-label {
  padding: 4px 14px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.58), rgba(71, 78, 92, 0.1)) !important;
  border: 1px solid var(--gce-glass-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 252, 247, 0.8) !important;
  backdrop-filter: blur(14px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
}

html[data-gce-mode="dark"] .gce-sites-mockup .stm-week-head-label {
  background: rgba(30, 58, 138, 0.4) !important;
  border-color: rgba(147, 197, 253, 0.28) !important;
  color: #bfdbfe !important;
}

.dash-page--ops .dash-ops-sites-map {
  border-color: var(--gce-glass-line) !important;
  box-shadow: var(--gce-glass-shine);
}

/* Tab strips: frost capsule, not solid light-blue bar */
html body.gce-viewport-shell .gce-page-chrome-bar,
html body.gce-viewport-shell .fin-mock-chrome-bar {
  background: transparent !important;
  border: none !important;
}

html body.gce-viewport-shell .fin-mock-tabs,
html body.gce-viewport-shell .fin-mock-tabs.fin-mock-tabs--mockup,
html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-tabs.fin-mock-tabs--mockup,
html body.gce-viewport-shell .pnl-tabs,
html body.gce-viewport-shell .pnl-tabs--mockup,
html body.gce-viewport-shell .tsk-scope-tabs,
html body.gce-viewport-shell .tsk-view-tabs,
html body.gce-viewport-shell .msg-inbox-tabs,
html body.gce-viewport-shell .cal-view-toggle,
html body.gce-viewport-shell .cert-tabs,
html body.gce-viewport-shell.gce-sites-mockup .stm-view-toggle {
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  border-bottom: 1px solid var(--gce-glass-edge) !important;
  border-radius: 999px !important;
  box-shadow: var(--gce-glass-shine), 0 8px 22px rgba(30, 58, 138, 0.1) !important;
  backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
  -webkit-backdrop-filter: blur(var(--gce-glass-blur)) saturate(var(--gce-glass-sat)) !important;
  padding: 0.18rem !important;
}

html body.gce-viewport-shell .fin-mock-tab,
html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-tabs--mockup .fin-mock-tab,
html body.gce-viewport-shell .pnl-tab,
html body.gce-viewport-shell .tsk-scope-tabs > button,
html body.gce-viewport-shell .tsk-view-tabs > button,
html body.gce-viewport-shell .msg-inbox-tabs button,
html body.gce-viewport-shell .cal-view-toggle button {
  border-radius: 999px !important;
  border-bottom: none !important;
  background: transparent !important;
}

html body.gce-viewport-shell .fin-mock-tab.active,
html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-tabs--mockup .fin-mock-tab.active,
html body.gce-viewport-shell .pnl-tab.active,
html body.gce-viewport-shell .tsk-scope-tabs > button.active,
html body.gce-viewport-shell .tsk-view-tabs > button.active,
html body.gce-viewport-shell .msg-inbox-tabs button.active,
html body.gce-viewport-shell .cal-view-toggle button.active {
  background: #1e3a8a !important;
  color: #fff !important;
  border-bottom: none !important;
}

html body.gce-viewport-shell .gce-market-banner {
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine) !important;
  backdrop-filter: blur(18px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5) !important;
}

html body.gce-viewport-shell .gce-market-banner--warn {
  background:
    linear-gradient(180deg, rgba(254, 243, 199, 0.55), rgba(253, 230, 138, 0.22)) !important;
}

html body.gce-viewport-shell .fin-mock-filter-year select,
html body.gce-viewport-shell .fin-mock-btn:not(.fin-mock-btn-primary):not(.fin-mock-btn-paid):not(.fin-mock-btn-danger),
html body.gce-viewport-shell .fin-mock-sites-search,
html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-sites-search {
  background: var(--gce-glass-fill) !important;
  border-color: var(--gce-glass-line) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
}

html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-open-site:hover,
html body.gce-viewport-shell .fin-mock-btn:not(.fin-mock-btn-primary):hover {
  background: rgba(30, 58, 138, 0.1) !important;
}

html.gce-night-dim body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147482980;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(32, 41, 58, 0.2) 0%, rgba(15, 23, 42, 0.38) 100%);
}

.gce-night-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--gce-glass-line);
  background: var(--gce-glass-fill);
  color: #1e3a8a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--gce-glass-shine), 0 6px 16px rgba(30, 58, 138, 0.08);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  flex-shrink: 0;
}

.gce-night-btn:hover {
  border-color: #93c5fd;
  background: rgba(30, 58, 138, 0.1);
}

.gce-night-btn.is-night {
  background: rgba(30, 58, 138, 0.55);
  border-color: rgba(147, 197, 253, 0.45);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gce-night-btn-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.gce-night-btn-ico--sun { display: none; }
.gce-night-btn.is-night .gce-night-btn-ico--moon { display: none; }
.gce-night-btn.is-night .gce-night-btn-ico--sun { display: grid; }

html[data-gce-mode="dark"] .dash-page--ops .dash-ops-hero h2,
html[data-gce-mode="dark"] .dash-page--ops .dash-kpi-value,
html[data-gce-mode="dark"] .dash-page--ops .dash-ops-table td {
  color: #f1f5f9 !important;
}

html[data-gce-mode="dark"] .dash-page--ops .dash-kpi-label,
html[data-gce-mode="dark"] .dash-page--ops .dash-ops-hero-sub,
html[data-gce-mode="dark"] .dash-page--ops .dash-ops-table th {
  color: #94a3b8 !important;
}

html[data-gce-mode="dark"] .gce-sites-mockup .stm-page-head h2,
html[data-gce-mode="dark"] .gce-sites-mockup .stm-kpi-value {
  color: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
  .gce-sites-mockup .stm-kpi--mockup::after,
  .dash-page--ops .dash-kpi-card::after,
  .dash-page--ops .dash-ops-card::after,
  .gce-sites-mockup .stm-status-tab::after,
  .gce-finance-mockup .fin-mock-site-card::after {
    transition: none !important;
  }
}

/* Round leftover chrome. Never display:block on Sites tr. */
html body.gce-viewport-shell .sidebar.sidebar--field {
  border-top-right-radius: 1.35rem !important;
  border-bottom-right-radius: 1.35rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi,
html body.gce-viewport-shell .fin-ov-card,
html body.gce-viewport-shell .fin-ov-toolbar,
html body.gce-viewport-shell .fin-ov-state,
html body.gce-viewport-shell .fin-sal-kpi,
html body.gce-viewport-shell .fin-sal-toolbar,
html body.gce-viewport-shell .fin-rpt-kpi,
html body.gce-viewport-shell .fin-rpt-card {
  border-radius: 1.25rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi-icon,
html body.gce-viewport-shell .fin-sal-kpi-icon,
html body.gce-viewport-shell .fin-ov-row-btn {
  border-radius: 999px !important;
}

html body.gce-viewport-shell .fin-ov-alert,
html body.gce-viewport-shell .fin-ov-line-wrap,
html body.gce-viewport-shell .fin-ov-bar-wrap,
html body.gce-viewport-shell .fin-ov-chart-empty,
html body.gce-viewport-shell .fin-mock-table-wrap,
html body.gce-viewport-shell .dash-svg-chart {
  border-radius: 1rem !important;
}

html body.gce-viewport-shell .fin-ov-ico-rev,
html body.gce-viewport-shell .fin-ov-badge-open,
html body.gce-viewport-shell .fin-sal-ico-total,
html body.gce-viewport-shell #finance-page-root.fin-mockup-page .fin-mock-pill {
  background: rgba(30, 58, 138, 0.12) !important;
  color: #1e3a8a !important;
  border-color: rgba(30, 58, 138, 0.18) !important;
}

html body.gce-viewport-shell .dash-svg-line-rev,
html body.gce-viewport-shell .fin-ov-line-wrap .dash-svg-line-rev {
  stroke: #1e3a8a !important;
}

html body.gce-viewport-shell .dash-svg-dot-rev,
html body.gce-viewport-shell .fin-ov-line-wrap .dash-svg-dot-rev {
  fill: #1e3a8a !important;
}

html body.gce-viewport-shell .dash-svg-area-rev {
  fill: rgba(30, 58, 138, 0.12) !important;
}

html body.gce-viewport-shell .fin-ov-line-wrap,
html body.gce-viewport-shell .fin-ov-bar-wrap {
  min-height: 7.25rem;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.22);
  border: 1px solid var(--gce-glass-line);
}

html body.gce-viewport-shell .fin-ov-chart-empty {
  display: grid;
  place-items: center;
  min-height: 7.25rem;
  padding: 0.7rem 0.85rem;
  text-align: center;
  color: #5c584f;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.35;
  background: rgba(255, 252, 247, 0.32);
  border: 1px dashed var(--gce-glass-line);
}

html body.gce-viewport-shell .fin-ov-line-wrap .fin-ov-chart-empty,
html body.gce-viewport-shell .fin-ov-bar-wrap .fin-ov-chart-empty {
  min-height: 7.25rem;
  border: 0;
  background: transparent;
}

html body.gce-viewport-shell .fin-ov-kpi {
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

html body.gce-viewport-shell .fin-ov-kpi:hover,
html body.gce-viewport-shell .fin-ov-card:hover {
  border-color: rgba(90, 86, 78, 0.32) !important;
  box-shadow: var(--gce-glass-shine), 0 12px 28px rgba(40, 36, 30, 0.1) !important;
}

html body.gce-viewport-shell .fin-ov-table tbody tr:hover td {
  background: rgba(30, 41, 59, 0.045);
}

html body.gce-viewport-shell .fin-ov-row-btn:hover,
html body.gce-viewport-shell .fin-ov-link:hover {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.08) !important;
}

html body.gce-viewport-shell .fin-ov-state {
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine) !important;
}

html body.gce-viewport-shell .fin-ov-mini-list li.fin-ov-muted {
  display: block;
  border: 0;
  color: #6b6560;
  padding: 0.65rem 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  html body.gce-viewport-shell .fin-ov-kpi {
    transition: none !important;
  }
}

/* Dense ops chrome — Finance Overview + shared page type. Do not touch Sites grid. */
html body.gce-viewport-shell #finance-page-root.fin-mockup-page {
  padding: 0.22rem 0.5rem 0.7rem !important;
}

html body.gce-viewport-shell .fin-mockup-shell {
  gap: 0.32rem !important;
}

html body.gce-viewport-shell .fin-mock-header h2,
html body.gce-viewport-shell .dash-ops-hero h2,
html body.gce-viewport-shell .stm-page-head h2 {
  font-size: 1.125rem !important;
}

html body.gce-viewport-shell .fin-ov-dashboard {
  gap: 0.4rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi-row,
html body.gce-viewport-shell .fin-ov-mid-row,
html body.gce-viewport-shell .fin-ov-split-row,
html body.gce-viewport-shell .fin-ov-twin-row {
  gap: 0.4rem !important;
}

html body.gce-viewport-shell .fin-ov-toolbar,
html body.gce-viewport-shell .fin-ov-kpi,
html body.gce-viewport-shell .fin-ov-card,
html body.gce-viewport-shell .fin-sal-kpi,
html body.gce-viewport-shell .fin-sal-toolbar {
  padding: 0.4rem 0.5rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi {
  gap: 0.45rem !important;
  align-items: center !important;
}

html body.gce-viewport-shell .fin-ov-kpi-icon,
html body.gce-viewport-shell .fin-sal-kpi-icon {
  width: 1.7rem !important;
  height: 1.7rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi-body span,
html body.gce-viewport-shell .fin-ov-period,
html body.gce-viewport-shell .fin-ov-period-hint,
html body.gce-viewport-shell .fin-ov-muted,
html body.gce-viewport-shell .fin-ov-chart-legend {
  font-size: 0.625rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi-body b,
html body.gce-viewport-shell .fin-sal-kpi-body b {
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
  margin-top: 0.05rem !important;
}

html body.gce-viewport-shell .fin-ov-kpi-body small {
  font-size: 0.625rem !important;
  margin-top: 0.1rem !important;
}

html body.gce-viewport-shell .fin-ov-card-head {
  margin-bottom: 0.35rem !important;
}

html body.gce-viewport-shell .fin-ov-card-head h3 {
  font-size: 0.75rem !important;
}

html body.gce-viewport-shell .fin-ov-link,
html body.gce-viewport-shell .fin-ov-row-btn,
html body.gce-viewport-shell .fin-ov-mini-list li,
html body.gce-viewport-shell .fin-ov-alert,
html body.gce-viewport-shell .fin-ov-table td,
html body.gce-viewport-shell .fin-mock-table td {
  font-size: 0.6875rem !important;
}

html body.gce-viewport-shell .fin-ov-table th,
html body.gce-viewport-shell .fin-mock-table th {
  font-size: 0.625rem !important;
  padding: 0.28rem 0.35rem !important;
}

html body.gce-viewport-shell .fin-ov-table td,
html body.gce-viewport-shell .fin-mock-table td {
  padding: 0.28rem 0.35rem !important;
}

html body.gce-viewport-shell .fin-ov-alert {
  padding: 0.35rem 0.45rem !important;
}

html body.gce-viewport-shell .fin-ov-mini-list {
  gap: 0.28rem !important;
}

html body.gce-viewport-shell .fin-ov-mini-list li {
  padding-bottom: 0.28rem !important;
}

html body.gce-viewport-shell .fin-ov-line-wrap .dash-svg-chart,
html body.gce-viewport-shell .fin-ov-bar-chart {
  max-height: 7.35rem;
}

/* Operations Dashboard — warm glass pills/cards. Last-win. Do not restyle Sites tr. */
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero {
  overflow: visible !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 1.25rem !important;
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine), var(--gce-glass-shadow) !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-search-input,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-date-range,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-week-nav,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-icon-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .gce-night-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-live,
html body.gce-viewport-shell .dash-page--ops .dash-ops-new-task,
html body.gce-viewport-shell .dash-page--ops .dash-ops-mini-search,
html body.gce-viewport-shell .dash-page--ops .dash-ops-filter-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-vendor-select,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-search input,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-zoom,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-zoom-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-measure-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-measure-bar,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-measure-bar button,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-popup button,
html body.gce-viewport-shell .dash-page--ops .dash-ops-tab,
html body.gce-viewport-shell .dash-page--ops .dash-ops-task-status,
html body.gce-viewport-shell .dash-page--ops .dash-ops-attn-cta,
html body.gce-viewport-shell .dash-page--ops .dash-ops-pill {
  border-radius: 999px !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-avatar {
  border-radius: 50% !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-kpi-card,
html body.gce-viewport-shell .dash-page--ops .dash-kpi-card--ops,
html body.gce-viewport-shell .dash-page--ops .dash-ops-card,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-card,
html body.gce-viewport-shell .dash-page--ops .dash-ops-sites-card,
html body.gce-viewport-shell .dash-page--ops .dash-ops-attention,
html[data-gce-mode="light"] .dash-ops-card {
  border-radius: 1.25rem !important;
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine), var(--gce-glass-shadow) !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-sites-map,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-search-list {
  border-radius: 1.15rem !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-fill-stat,
html body.gce-viewport-shell .dash-page--ops .dash-ops-deadline-row,
html body.gce-viewport-shell .dash-page--ops .dash-ops-attn-row,
html body.gce-viewport-shell .dash-page--ops .dash-ops-task-row,
html body.gce-viewport-shell .dash-page--ops .dash-ops-day,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-search-hit {
  border-radius: 1rem !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-attn-ico,
html body.gce-viewport-shell .dash-page--ops .dash-ops-day-event {
  border-radius: 999px !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-search-input,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-date-range,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-week-nav,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-icon-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .gce-night-btn,
html body.gce-viewport-shell .dash-page--ops .dash-ops-live,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-vendor-select,
html body.gce-viewport-shell .dash-page--ops .dash-ops-map-search input {
  background: rgba(255, 252, 247, 0.62) !important;
  border-color: var(--gce-glass-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 252, 247, 0.85) !important;
}

html body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .gce-night-btn.is-night,
html body.gce-viewport-shell .dash-page--ops .dash-ops-new-task {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
  box-shadow: none !important;
}

html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-search-input,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-date-range,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-week-nav,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .dash-icon-btn,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-hero-actions .gce-night-btn,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-live,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-map-vendor-select,
html[data-gce-mode="dark"] body.gce-viewport-shell .dash-page--ops .dash-ops-map-search input {
  background: rgba(30, 41, 59, 0.55) !important;
  border-color: rgba(226, 220, 210, 0.18) !important;
  color: #e2e8f0 !important;
}

/* Guard Sites table grid if this sheet is last. Never display:block on tr. */
html body.gce-viewport-shell.gce-sites-mockup .stm-table,
html body.gce-viewport-shell.gce-sites-mockup .stm-table.stm-table--mockup {
  display: table !important;
  table-layout: fixed !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table thead {
  display: table-header-group !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group {
  display: table-row-group !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tr,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-row-card,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-week-head,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-head,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-gap {
  display: table-row !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-head td,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-gap td {
  display: table-cell !important;
}

/* Locked milky canvas — last-win. Do not paint Sites table / week bars. */
html,
html[data-gce-mode="light"],
html[data-gce-mode="dark"] {
  background: var(--gce-canvas, #eeeae3) !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
}

html body.gce-viewport-shell,
html[data-gce-mode="light"] body.gce-viewport-shell,
html[data-gce-mode="dark"] body.gce-viewport-shell,
html body.gce-viewport-shell .app,
html[data-gce-mode="light"] body.gce-viewport-shell .app,
html[data-gce-mode="dark"] body.gce-viewport-shell .app,
html body.gce-viewport-shell #gce-main,
html body.gce-viewport-shell main,
html[data-gce-mode="light"] body.gce-viewport-shell #gce-main,
html[data-gce-mode="light"] body.gce-viewport-shell main,
html[data-gce-mode="dark"] body.gce-viewport-shell #gce-main,
html[data-gce-mode="dark"] body.gce-viewport-shell main,
html body.gce-viewport-shell .main-page,
html body.gce-viewport-shell .main-page:not(.hidden),
html body.gce-viewport-shell .dash-ai-main,
html body.gce-viewport-shell #dashboard-main,
html body.gce-viewport-shell #sites-main,
html body.gce-viewport-shell #crews-main,
html body.gce-viewport-shell #personnel-main,
html body.gce-viewport-shell #messages-main,
html body.gce-viewport-shell #tasks-main,
html body.gce-viewport-shell #calendar-main,
html body.gce-viewport-shell #equipment-main,
html body.gce-viewport-shell #storage-main,
html body.gce-viewport-shell #safety-main,
html body.gce-viewport-shell #finance-main,
html body.gce-viewport-shell #settings-main,
html body.gce-viewport-shell #sites-page-root,
html body.gce-viewport-shell #crews-page-root,
html body.gce-viewport-shell #personnel-page-root,
html body.gce-viewport-shell #messages-page-root,
html body.gce-viewport-shell #tasks-page-root,
html body.gce-viewport-shell #calendar-page-root,
html body.gce-viewport-shell #equipment-page-root,
html body.gce-viewport-shell #storage-page-root,
html body.gce-viewport-shell #safety-page-root,
html body.gce-viewport-shell #finance-page-root,
html body.gce-viewport-shell #settings-page-root,
html body.gce-viewport-shell #site-detail-content,
html body.gce-viewport-shell #crew-detail-content {
  background: var(--gce-canvas, #eeeae3) !important;
  background-image: none !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
}

html body.gce-viewport-shell :is(
  .dash-page,
  .stm-page,
  .crw-page,
  .tsk-page,
  .eq-page,
  .sto-page,
  .sfty-page,
  .stg-page,
  .msg-page,
  .pnl-page,
  .cal-page,
  .cal-board,
  .fin-mockup-shell,
  .fin-page,
  .sdt-page,
  .cert-dash,
  .sfty-review-page,
  .sfty-checkin-review
) {
  background-color: transparent !important;
  background-image: none !important;
}

html.gce-night-dim body.gce-viewport-shell,
html.gce-night-dim body.gce-viewport-shell .app,
html.gce-night-dim body.gce-viewport-shell #gce-main,
html.gce-night-dim body.gce-viewport-shell main {
  background: var(--gce-canvas, #eeeae3) !important;
  background-image: none !important;
}

/* Scroll/hover perf: milky solids, no live blur on table/list/map layers */
.gce-sites-mockup .stm-table thead th,
.gce-sites-mockup .stm-week-head-label,
.gce-sites-mockup #stm-sites-list-view.stm-table-card-full,
.gce-sites-mockup .stm-table-toolbar,
.dash-page--ops .dash-ops-card,
.dash-page--ops .dash-ops-map-card,
.dash-page--ops .dash-ops-sites-card,
.dash-page--ops .dash-kpi-card,
.gce-finance-mockup .fin-mock-sites-panel,
.gce-finance-mockup .fin-mock-table-panel,
.gce-finance-mockup .fin-mock-site-card,
.gce-finance-mockup .fin-mock-section,
.gce-finance-mockup .fin-ov-kpi,
.gce-finance-mockup .fin-ov-card,
html body.gce-viewport-shell .sfty-card,
html body.gce-viewport-shell .sfty-kpi,
html body.gce-viewport-shell .sfty-filters {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.gce-sites-mockup .stm-table thead th {
  background: #f4f0e8 !important;
}

.gce-sites-mockup .stm-week-head-label {
  background: #f7f3eb !important;
}

.dash-page--ops .dash-ops-map-card:hover::after,
.dash-page--ops .dash-ops-card:hover::after,
.gce-finance-mockup .fin-mock-site-card:hover::after,
.gce-sites-mockup .stm-kpi--mockup:hover::after,
.dash-page--ops .dash-kpi-card:hover::after {
  opacity: 0 !important;
  background-position: 100% 0 !important;
}

/* Week bands stay real table-row-groups (no CSS contain — Safari paint/hang). */


