/* Rep dashboard only. Matches the lighter luminous Aqua ocean & translucent glass of Office, CEO, and IOVO Mail. */
html[data-iovo-rep="shell"][data-theme] {
  --rep-glass:rgba(0,30,42,.26);
  --rep-control:#56ecdb;
}
html[data-iovo-rep="shell"][data-theme="light"] { --rep-glass:rgba(255,255,255,.82);--rep-control:#5265ae; }
html[data-iovo-rep="shell"][data-theme="dark"] { --rep-glass:rgba(18,8,3,.78);--rep-control:#efbb9d; }
html[data-iovo-rep="shell"] :is(body,.main,.content,#view-dashboard) { background:transparent!important; }
html[data-iovo-rep="shell"][data-theme="aqua"] #sea-light { opacity:.76; }
html[data-iovo-rep="shell"][data-theme="aqua"] #study-life { opacity:.78; }
html[data-iovo-rep="shell"][data-theme="aqua"] :is(.sidebar,.stat-card,.table-card,.ghl-assigned-panel,.dashboard-tips,.rep-academy-continue,.ghl-assigned-card,.ghl-assigned-compact,.manager-panel,.manager-kpi) {
  background:rgba(0,30,42,.26);
  background-image:linear-gradient(160deg,rgba(190,255,250,.06),transparent 40%);
  border-color:rgba(119,236,223,.62);
  box-shadow:inset 0 1px 2px rgba(216,255,255,.45),inset 0 0 9px rgba(83,255,249,.18),0 0 2px rgba(63,255,253,.48),0 12px 24px rgba(0,28,37,.22);
  -webkit-backdrop-filter:blur(4px) saturate(145%);
  backdrop-filter:blur(4px) saturate(145%);
}
html[data-iovo-rep="shell"][data-theme="aqua"] .sidebar:not(#_) {
  background:rgba(0,30,42,.26)!important;
  background-color:rgba(0,30,42,.26)!important;
  background-image:linear-gradient(160deg,rgba(190,255,250,.06),transparent 40%)!important;
  border-right:1px solid rgba(119,236,223,.58)!important;
  -webkit-backdrop-filter:blur(4px) saturate(145%)!important;
  backdrop-filter:blur(4px) saturate(145%)!important;
}
html[data-iovo-rep="shell"][data-theme="aqua"] .table-card :is(thead,th) {
  background:rgba(0,30,42,.22)!important;
}
html[data-iovo-rep="shell"][data-theme="aqua"] .header {
  border-bottom-color:rgba(119,236,223,.42);
}
html[data-iovo-rep="shell"][data-theme="aqua"] :is(.stat-label,.stat-value,.stat-sub,.table-title,.greeting-title,.greeting-sub,.nav-item,.sidebar-uname,.sidebar-urole,.header-title) {
  text-shadow:0 0 1px rgba(1,20,28,.9),0 0 6px rgba(1,20,28,.72);
}
html[data-iovo-rep="shell"][data-theme="aqua"] .nav-item.active {
  background:linear-gradient(90deg,rgba(10,112,120,.70),rgba(10,98,112,.56));
  color:#f4feff;
  box-shadow:inset 0 0 0 1px rgba(96,244,228,.72);
}
html[data-iovo-rep="shell"][data-theme]:not([data-theme="aqua"]) :is(.rep-academy-continue,.ghl-assigned-card,.ghl-assigned-compact) {
  background:var(--rep-glass);
  -webkit-backdrop-filter:blur(8px) saturate(115%);
  backdrop-filter:blur(8px) saturate(115%);
}
/* Do not stack an opaque reading plane inside the glass table. */
html[data-iovo-rep="shell"] #view-dashboard :is(thead,tbody,tr,th,td) { background:transparent; }
/* Legacy dim-label opacity compounded with glass was below AA even before the sea. */
html[data-iovo-rep="shell"] #view-dashboard :is(.stat-sub,.stat-label) { opacity:1;color:var(--text-mid); }
html[data-iovo-rep="shell"] .iovo-sea-dive-btn {
  color:var(--rep-control);border-color:var(--rep-control);
  background:color-mix(in srgb,var(--rep-control) 18%,var(--bg2));
}
/* Shared CEO orb canvas dimensions, with the same compact phone footprint. */
html[data-iovo-rep="shell"] #aquis-mini-trigger { width:92px!important;height:106px!important; }
html[data-iovo-rep="shell"] #aquis-mini-trigger .orb-cv { width:92px!important;height:106px!important;max-width:none; }
html[data-iovo-rep="shell"] .iovo-rep-theme-floating { bottom:170px; }
@media(max-width:700px) {
  html[data-iovo-rep="shell"] #aquis-mini-trigger,html[data-iovo-rep="shell"] #aquis-mini-trigger .orb-cv { width:70px!important;height:81px!important; }
  html[data-iovo-rep="shell"] .iovo-rep-theme-floating { bottom:138px; }
}
@media print {
  html[data-iovo-rep="shell"][data-theme] :is(.sidebar,.header,.stat-card,.table-card,#view-dashboard table) { background:white!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }
}
/* aquis-orb.js paints THEMES.aqua, THEMES.light and THEMES.dark natively; never double-rotate hue. */
html[data-iovo-rep="shell"][data-theme="dark"] #aquis-mini-trigger .orb-cv { filter:none; }
html[data-iovo-rep="shell"][data-theme="light"] #aquis-mini-trigger .orb-cv { filter:none; }

html[data-iovo-rep="shell"][data-iom-still] :is(.sidebar,.header,.stat-card,.table-card) { backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }
html[data-iovo-rep="shell"][data-theme="light"] :is(.btn-primary,.sidebar-avatar:not(.has-photo)) { color:#fff!important; }
html[data-iovo-rep="shell"][data-theme="light"] .btn-primary:hover { background:var(--aqua)!important; }
/* One glass plane per table: two translucent fills would become almost opaque. */
html[data-iovo-rep="shell"][data-theme] #view-dashboard .table-card table { background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }

/* Canvas2D fallback stays behind the exact same glass and text masks as WebGL. */
.rep-sea-flat { position:fixed;inset:0;z-index:-1;pointer-events:none; }
.rep-sea-flat .iovo-sea-life { display:block;width:100%;height:100%;opacity:.65; }
html[data-sea-effect="plain"] .rep-sea-flat { display:none; }
@media print { .rep-sea-flat { display:none; } }
html[data-iovo-rep="shell"] .iovo-sea-still { z-index:-2; }

html[data-iovo-rep="shell"][data-theme="light"] .lang-opt.active{color:var(--text)!important}
