/* One AQUIS figure and Dive button for every screen (owner Nov 12): the only source of its size, place and look. */
@import url("../aquis-mark/aquis-mark.css");
/* Adapt the legacy rep tokens to the same Aqua / Day / Night palette. */
/* Match the legacy bridge's specificity so its aliases cannot point back into these tokens. */
html[data-iovo-rep][data-theme="aqua"]:not(#_), html[data-iovo-rep][data-theme="aqua"] body[data-theme="aqua"] {
  color-scheme:dark;
  --bg:#064b57;--bg2:#042f39;--bg3:#084957;--card:rgba(0,30,42,.26);--card2:#042f39;
  --text:#fbffff;--text-mid:#eafcfe;--text-dim:#d4f4f8;--muted:#eafcfe;
  --border:rgba(119,236,223,.45);--border-hi:rgba(119,236,223,.76);--brd:var(--border);
  --aqua:#56ecdb;--accent:var(--aqua);--accent2:#29b6f6;
  --success:#3ee6a0;--warning:#ffb347;--danger:#ff6b6b;
  --sidebar-bg:rgba(0,30,42,.26);--sidebar-active:rgba(86,236,219,.18);
  --input-bg:rgba(120,230,255,.07);--shadow:rgba(0,28,37,.28);
  --nav-bg:var(--sidebar-bg);--hero-glass:var(--card);--heroImg:none;
  --glow:rgba(86,236,219,.16);--glow-strong:rgba(86,236,219,.30);
  --grid-color:transparent;--orb-color:transparent;
}
html[data-iovo-rep][data-theme="light"]:not(#_), html[data-iovo-rep][data-theme="light"] body[data-theme="light"] {
  color-scheme:light;--bg:#fff;--bg2:#f4fafc;--bg3:#eef8fb;--card:rgba(255,255,255,.94);--card2:#fff;
  --aqua:#0a6f7a;--accent:var(--aqua);--accent2:#187b9a;
  --text:#0a2638;--text-mid:#456475;--text-dim:#3d5766;--muted:var(--text-mid);
  --border:rgba(10,38,56,.16);--brd:var(--border);--nav-bg:var(--card);--hero-glass:var(--card);
  --sidebar-bg:var(--card);--sidebar-active:rgba(10,143,176,.08);--input-bg:rgba(10,38,56,.04);
}
html[data-iovo-rep][data-theme="dark"]:not(#_), html[data-iovo-rep][data-theme="dark"] body[data-theme="dark"] {
  color-scheme:dark;--bg:#050201;--bg2:#120803;--bg3:#201008;--card:rgba(18,8,3,.94);--card2:#120803;
  --aqua:#f47920;--accent:var(--aqua);--accent2:#ffc58a;
  --text:#fff1e6;--text-mid:#dac7bb;--text-dim:#bca79b;--muted:var(--text-mid);
  --border:rgba(255,197,138,.18);--brd:var(--border);--nav-bg:var(--card);--hero-glass:var(--card);
  --sidebar-bg:rgba(5,2,1,.96);--sidebar-active:rgba(244,121,32,.12);
  --input-bg:rgba(255,255,255,.05);
}
:root[data-iovo-rep][data-theme] {
  --line:var(--border);--line-strong:var(--border-hi);--ink:var(--text);--ink-2:var(--text-mid);--ink-3:var(--text-dim);
  --primary:var(--aqua);--text-1:var(--text);--text-2:var(--text-mid);--hairline:var(--border);
  --c-primary:var(--aqua);--c-cta:var(--warning);--c-danger:var(--danger);
  --c-text-1:var(--text);--c-text-2:var(--text-mid);--c-hairline-strong:var(--border);
  --ds-bg:var(--bg);--ds-surface:var(--card2);--ds-surface-2:var(--bg2);--ds-surface-3:var(--bg3);
  --ds-text:var(--text);--ds-text-2:var(--text-mid);--ds-text-3:var(--text-dim);
  --ds-border:var(--border);--ds-border-strong:var(--border-hi);--ds-accent:var(--aqua);--ds-accent-text:var(--aqua);
  --ds-input-bg:var(--input-bg);--ds-hover:var(--sidebar-active);--ds-selected:var(--sidebar-active);
}
/* Camera-badge ink: picked per theme so the mark reads on each accent. */
html[data-iovo-rep][data-theme="aqua"]:not(#_),html[data-iovo-rep][data-theme="aqua"] body[data-theme="aqua"]{--c-badge-ink:#04231d;--ds-accent-fg:#04231d;}
html[data-iovo-rep][data-theme="light"]:not(#_),html[data-iovo-rep][data-theme="light"] body[data-theme="light"]{--c-badge-ink:#eafcff;}
html[data-iovo-rep][data-theme="dark"]:not(#_),html[data-iovo-rep][data-theme="dark"] body[data-theme="dark"]{--c-badge-ink:#2a0f02;}
html[data-iovo-rep] body { isolation:isolate; }
.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] body::before,html[data-iovo-rep] .bg-grid,html[data-iovo-rep] .bg-orb { display:none; }
html[data-iovo-rep][data-sea] #scr-prop,html[data-iovo-rep][data-sea] .main,html[data-iovo-rep][data-sea] .content,html[data-iovo-rep][data-sea] .ds-main { background:transparent!important; }
html[data-iovo-rep="proposal"] .iovo-sea-canvas,html[data-iovo-rep="proposal"] .iovo-sea-still { opacity:.22; }
/* Financial data and capture/signature surfaces always have an opaque reading plane. */
html[data-iovo-rep] table:not(#view-dashboard table),html[data-iovo-rep] :is(.pricing-grid,.price-grid,.choice-card,.fin-card,.pps-card,.app-ov-card,.app-ov-sig-pad,canvas[id*="sig"],[data-signature]) { background:var(--card2); }
.iovo-rep-icon { --ic-size:20px; }
html[data-iovo-rep] :is(.nav-item,.btab,.mobile-menu-item)>.ic { --ic-size:20px; }
html[data-iovo-rep] :is(.step1-card-icon,.step2-summary-ico,.next-step-ico,.manager-panel-icon)>.ic { --ic-size:24px; }
/* Inline header theme segmented control (Aqua / Day / Night). The shared iovo-sea picker reads
   --c-* tokens; bind them to the rep theme tokens so every option is legible in all three themes
   (Day in particular: dark ink on the light header, never white-on-white). */
.iovo-rep-theme-seg {
  --c-text-2: var(--text-mid);
  --c-text-1: var(--text);
  --c-primary: var(--aqua, var(--accent));
  --c-hairline-strong: var(--border-hi, var(--border));
  min-width: 0; flex: none;
}
.iovo-rep-theme-menu { position:relative;flex:none; }
.iovo-rep-theme-menu summary { display:grid;place-items:center;list-style:none;width:44px;height:44px;color:var(--text);cursor:pointer; }
.iovo-rep-theme-menu summary::-webkit-details-marker { display:none; }
.iovo-rep-theme-menu>[data-iovo-sea-picker] { position:absolute;right:0;top:100%;z-index:200;padding:10px;border:1px solid var(--border);border-radius:14px;background:var(--card2); }
html[data-iovo-rep] .theme-toggle.iovo-sea-picker { gap:6px;min-width:0;flex-wrap:wrap;background:var(--card); }
html[data-iovo-rep] .iovo-sea-opt { min-height:36px; }
html[data-iovo-rep] .ghl-icon-shell { color:var(--accent);background:none; }
html[data-iovo-rep] .ghl-icon-shell .ic { --ic-size:24px; }
@media(max-width:743px) {
  html[data-iovo-rep] .tnav-right .theme-toggle.iovo-sea-picker { position:static;transform:none;max-width:100%;width:100%; }
  html[data-iovo-rep] .iovo-sea-picker { flex-wrap:wrap; }
  html[data-iovo-rep] .iovo-sea-seg--fx { display:inline-flex; }
}
@media print {
  html[data-iovo-rep][data-theme]:not(#_),html[data-iovo-rep][data-theme]:not(#_) body { background:#fff!important;color:#000!important;--bg:#fff;--card:#fff;--card2:#fff;--text:#000;--text-mid:#333;--muted:#333;--accent:#0a2638;--aqua:#0a2638; }
  html[data-iovo-rep] :is(.iovo-sea-canvas,.iovo-sea-still,.iovo-sea-life,.iovo-sea-dive-btn,.iovo-sea-picker,.iovo-rep-theme-menu,.iovo-rep-aquis-mark,.iom-aquis-fx,.iom-wave,.iom-think,.theme-compact-trigger) { display:none!important; }
  html[data-iovo-rep] :is(table,.choice-card,.fin-card,.pps-card) { background:#fff!important;color:#000!important;box-shadow:none!important; }
}
.iovo-rep-theme-floating { position:fixed;right:16px;bottom:80px;z-index:1000;border:1px solid var(--border);border-radius:14px;background:var(--card2); }
.iovo-rep-theme-floating>[data-iovo-sea-picker] { top:auto;bottom:100%; }
/* Field Mode raises the bottom-right AQUIS button to clear its footer nav (.aquis-mini-shell.field-mode,
   bottom:calc(var(--fm-nav-h) + 10px + safe-area) on targets-live). Lift the floating theme menu above it so the two never share a hit target. */
body.fm-targets-live-shell .iovo-rep-theme-floating { bottom:152px; }
@media(max-width:640px) { body.fm-targets-live-shell .iovo-rep-theme-floating { bottom:136px; } }

html[data-iovo-rep] .ic-badge .ic { --ic-size:24px; }
html[data-iom-still] :is(.a-spin,.a-wave,.a-ring)::before,html[data-iom-still] :is(.a-spin,.a-wave,.a-ring)>.ic::before,html[data-iovo-hidden] :is(.a-spin,.a-wave,.a-ring)>.ic::before { animation:none!important; }
html[data-iovo-rep="proposal"][data-theme] body[data-theme] { --shadow:0 10px 30px color-mix(in srgb,var(--text) 8%,transparent);--shadow2:0 18px 45px color-mix(in srgb,var(--text) 12%,transparent); }
html[data-iovo-rep] .iovo-field-icon-host::before { display:none!important; }
html[data-iovo-rep] .iovo-field-icon-host>.ic { --ic-size:18px; }

/* Non-interactive mark on pages without an assistant launcher. */
.iovo-rep-aquis-mark { position:fixed;right:14px;bottom:14px;pointer-events:none;z-index:999; }
/* The AQUIS figure, its size, colors and the Dive button: app/shared/aquis-mark/aquis-mark.css (imported above). */

/* ───────── Profile avatar: default silhouette, own-avatar camera badge, photo sheet ─────────
   Theme-aware (Aqua / Day / Night) through the rep palette variables above. A perfect circle
   is inherited from each host avatar's own border-radius:50%. */
.iovo-avatar { position:relative;background-size:cover;background-position:center;background-repeat:no-repeat; }
.iovo-avatar.is-default { background:color-mix(in srgb,var(--text) 7%,var(--card2)); }
.iovo-avatar.has-photo { color:transparent; }
.iovo-avatar-own { overflow:visible; cursor:pointer; }
.iovo-avatar-figure { display:grid;place-items:center;width:100%;height:100%;color:color-mix(in srgb,var(--text) 52%,transparent);pointer-events:none; }
.iovo-avatar-figure svg { width:62%;height:62%;display:block; }
html[data-iovo-rep] .person-avatar-fallback { display:grid;place-items:center;width:100%;height:100%; }
.iovo-avatar-badge { position:absolute;right:-3px;bottom:-3px;width:46%;height:46%;min-width:14px;min-height:14px;max-width:20px;max-height:20px;display:grid;place-items:center;border-radius:50%;background:var(--aqua);color:var(--c-badge-ink,#04231d);box-shadow:0 0 0 2px var(--card2),0 2px 5px rgba(0,0,0,.28);pointer-events:none; }
.iovo-avatar-badge svg { width:60%;height:60%;display:block; }
.iovo-avatar-own:is(:hover,:focus-visible) .iovo-avatar-badge { background:var(--border-hi,var(--aqua)); }
.iovo-avatar-own:focus-visible { outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--aqua) 36%,transparent); }
/* The sidebar chip clips its photo to a circle; let the badge sit outside the clip. */
html[data-iovo-rep] .sidebar-avatar.iovo-avatar-own { overflow:visible; }

.iovo-photo-sheet-overlay { position:fixed;inset:0;z-index:2400;display:grid;place-items:center;padding:20px;background:color-mix(in srgb,#02111c 64%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px); }
.iovo-photo-sheet { width:min(380px,100%);box-sizing:border-box;background:var(--card2);color:var(--text);border:1px solid var(--border);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.42);padding:20px 22px 22px;display:flex;flex-direction:column;gap:15px; }
.iovo-photo-sheet-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.iovo-photo-sheet-title { margin:0;font:800 1.08rem 'Raleway','DM Sans',sans-serif;letter-spacing:.01em;color:var(--text); }
.iovo-photo-sheet-x { flex:none;width:34px;height:34px;border-radius:10px;border:1px solid var(--border);background:var(--input-bg);color:var(--text-mid);font-size:1.4rem;line-height:1;cursor:pointer; }
.iovo-photo-sheet-x:hover { border-color:var(--border-hi);color:var(--text); }
.iovo-photo-sheet-preview { width:132px;height:132px;border-radius:50%;margin:2px auto 0;border:1px solid var(--border); }
.iovo-photo-sheet-hint { margin:0;text-align:center;color:var(--text-dim);font-size:.78rem;line-height:1.45; }
.iovo-photo-sheet-actions { display:flex;flex-direction:column;gap:9px; }
.iovo-photo-btn { min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:var(--input-bg);color:var(--text);font:700 .86rem 'DM Sans',sans-serif;cursor:pointer;transition:border-color .15s,background .15s,transform .12s; }
.iovo-photo-btn:hover { border-color:var(--border-hi);transform:translateY(-1px); }
.iovo-photo-btn-primary { background:var(--aqua);border-color:transparent;color:var(--c-badge-ink,#04231d); }
.iovo-photo-btn-primary:hover { filter:brightness(1.05); }
.iovo-photo-btn-danger { color:var(--danger);border-color:color-mix(in srgb,var(--danger) 34%,transparent);background:color-mix(in srgb,var(--danger) 9%,transparent); }
@media(max-width:520px) {
  .iovo-photo-sheet-overlay { place-items:end stretch;padding:0; }
  .iovo-photo-sheet { width:100%;border-radius:20px 20px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom)); }
}
@media print { .iovo-photo-sheet-overlay,.iovo-avatar-badge { display:none!important; } }

/* Legacy reading planes opt into Night without changing the Aqua/Day fallback. */
html[data-iovo-rep][data-theme="dark"],html[data-iovo-rep][data-theme="dark"] body[data-theme="dark"] {
  --rep-cool-surface:#120803;--rep-cool-accent:rgba(244,121,32,.12);
  --border-hi:rgba(244,121,32,.4);--glow:rgba(244,121,32,.12);--glow-strong:rgba(244,121,32,.25);
}
/* Fixed flex basis prevents a sidebar label or a narrow table from squeezing a face. */
html[data-iovo-rep] :is(.sidebar-avatar,.manager-avatar,.manager-tree-avatar,.manager-profile-avatar,.manager-thread-avatar,.avatar,.rail-mini-avatar,.rank-avatar,.rep-avatar,.podium-avatar,.rc-avatar,.table-avatar,.profile-avatar,.manager-list-index) {
  position:relative;aspect-ratio:1/1;border-radius:50%!important;flex-shrink:0;overflow:hidden;
  background-size:cover;background-position:center;object-fit:cover;
}
html[data-iovo-rep] .sidebar-avatar{flex:0 0 32px}
html[data-iovo-rep] :is(.sidebar-avatar,.manager-avatar,.manager-tree-avatar,.manager-profile-avatar,.manager-thread-avatar,.avatar,.rail-mini-avatar,.rank-avatar,.rep-avatar,.podium-avatar,.rc-avatar,.table-avatar,.profile-avatar,.manager-list-index) img {
  position:absolute;inset:0;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;padding:0;
}
/* content-visibility's former 180px placeholder per 44px row made the blank gap. */
html[data-iovo-rep] #view-myTeam :is(.manager-panel,.manager-tree-row){content-visibility:visible;contain-intrinsic-size:none;contain:none}
html[data-iovo-rep] #teamStatsCards{display:block}
html[data-iovo-rep] #view-myTeam .manager-toolbar{margin:0 0 12px;padding:8px;box-shadow:none;gap:8px}
html[data-iovo-rep] #view-myTeam .manager-tree-row{min-height:44px}
html[data-iovo-rep] #view-myTeam .manager-tree-cell{padding-top:4px;padding-bottom:4px}
html[data-iovo-rep] #view-myTeam .manager-tree-avatar{width:32px;height:32px}
@media(min-width:1100px){
  html[data-iovo-rep] #view-myTeam .manager-toolbar{flex-direction:row;flex-wrap:nowrap}
  html[data-iovo-rep] #view-myTeam .manager-toolbar-left{flex:1;min-width:0}
  html[data-iovo-rep] #view-myTeam .manager-toolbar-right{flex-wrap:nowrap}
  html[data-iovo-rep] #view-myTeam .manager-search{min-width:100px;flex-basis:120px}
  html[data-iovo-rep] #view-myTeam .manager-control{padding:4px 8px}
}
@media(max-width:743px){
  html[data-iovo-rep] #view-myTeam :is(.manager-toolbar-left,.manager-toolbar-right){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html[data-iovo-rep] #view-myTeam :is(.manager-control,.manager-tabs,.manager-lang-mini){min-width:0;width:100%;box-sizing:border-box}
  html[data-iovo-rep] #view-myTeam .manager-tab{min-width:0;padding-inline:4px}
}

html[data-iovo-rep] #view-myTeam [data-manager-row-id][hidden]{display:none!important}
html[data-iovo-rep] #view-myTeam.manager-filtering .manager-tree-accordion{grid-template-rows:1fr!important;visibility:visible!important;opacity:1!important}
html[data-iovo-rep] #view-myTeam.manager-filtering .manager-tree-accordion-inner{visibility:visible!important}
html[data-iovo-rep][data-theme="dark"] #view-myTeam :is(.manager-page-sub,.manager-panel-sub,.manager-tree-sub,.manager-kpi-label,.manager-kpi-sub,.manager-control-muted){color:var(--text-dim)}
html[data-iovo-rep][data-theme="dark"] #view-myTeam :is(.manager-role-chip,.manager-panel-chip,.manager-scope-pill,.manager-tree-avatar,.manager-goal-mini-btn,.manager-tab,.manager-lang-mini button){color:var(--text-mid);border-color:var(--border)}
html[data-iovo-rep][data-theme="dark"] #view-myTeam :is(.manager-tab.active,.manager-lang-mini button.active){background:var(--aqua);color:var(--bg)}
@media(min-width:744px){
 html[data-iovo-rep] #view-myTeam .manager-tree-row{height:44px}
 html[data-iovo-rep] #view-myTeam .manager-tree-toggle{width:28px;height:28px;min-height:28px}
 html[data-iovo-rep] #view-myTeam .manager-goal-mini-btn{min-height:28px;padding-block:4px}
}
/* League has retained private aliases in its composition styles. Resolve them at
   the same body where those aliases are consumed, not only at the root. */
html[data-iovo-rep][data-theme="dark"] body {
 --league-aqua:var(--aqua);--league-cyan:var(--accent2);--league-teal:var(--aqua);
}
html[data-iovo-rep][data-theme="dark"] body{--aqua-deep:var(--aqua);--league-mint:var(--aqua);--league-ice:var(--accent2)}
html[data-iovo-rep][data-theme="dark"] body{--league-aqua-2:var(--accent2)}
html[data-iovo-rep][data-theme="dark"] .stage-summary .summary-note{color:var(--aqua)}
html[data-iovo-rep][data-theme="dark"] #view-myTeam :is(.manager-control,.manager-kpi-icon) :is(svg,.iovo-rep-icon){color:var(--aqua)}
/* Keep the hierarchy in reach on a phone; summaries remain one scrollable strip,
   rather than nine tall cards pushing the workspace beneath the fold. */
@media(max-width:743px){
 html[data-iovo-rep] #view-myTeam .manager-kpi-grid{display:flex;overflow-x:auto;gap:8px;padding-bottom:4px;scroll-snap-type:x proximity}
 html[data-iovo-rep] #view-myTeam .manager-kpi{flex:0 0 108px;min-height:76px;padding:10px;scroll-snap-align:start}
 html[data-iovo-rep] #view-myTeam .manager-kpi-icon{display:none}
 html[data-iovo-rep] #view-myTeam .manager-kpi-value{font-size:1.1rem;margin-block:4px}
 html[data-iovo-rep] #view-myTeam .manager-kpi-sub{font-size:.56rem}
}
html[data-iovo-rep][data-theme="dark"]{--rep-cool-solid:#f47920}
html[data-iovo-rep] #view-myTeam.manager-filtering .manager-tree-accordion-inner{display:block!important}
html[data-iovo-rep] #view-myTeam :is(.manager-command-shell,.manager-command-top,.manager-kpi-grid){min-width:0;max-width:100%}

/* Day AA: paid/rep badges and photo initials keep dark ink on tinted glass. */
html[data-iovo-rep][data-theme="light"] .rep-pill.rep {color:#256329!important}
html[data-iovo-rep][data-theme="light"] .rc-avatar {color:#074651!important}

/* Safari 26 samples the painted top edge, not theme-color metadata. Keep an
   opaque reading plane at that edge even while the sea animates underneath. */
html[data-iovo-rep][data-theme] { background:var(--bg); }
html[data-iovo-rep][data-theme] .header {
  position:sticky; top:0; background:var(--bg)!important;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}

/* The existing premium dealer control owns presentation; its native select keeps authorized backing state. */
html[data-iovo-rep] .company-context-trigger[hidden]{display:none!important}
html[data-iovo-rep] select option{background:var(--card2);color:var(--text)}
html[data-iovo-rep] #supportModal .support-modal{width:min(480px,calc(100vw - 28px));background:var(--card2);padding:20px;box-sizing:border-box}
html[data-iovo-rep] #supportModal .support-actions{display:grid;grid-template-columns:1fr;gap:6px}
html[data-iovo-rep] #supportModal .support-action{display:grid;grid-template-columns:24px 1fr;gap:4px 10px;min-height:64px;padding:10px 12px;text-align:left;background:var(--input-bg);border-color:var(--border);box-shadow:none}
html[data-iovo-rep] #supportModal .support-action>.ic{grid-row:1 / 3}
html[data-iovo-rep] #supportModal .support-action span{grid-column:2}
html[data-iovo-rep] .support-details{margin-top:12px;font-size:.78rem;color:var(--text-mid)}
html[data-iovo-rep] .support-details summary{cursor:pointer;min-height:32px;display:list-item}
html[data-iovo-rep] .support-details .support-context{margin-top:6px;background:var(--bg2)}
/* Night's warm reading planes and accent apply to legacy dashboard expansions too. */
html[data-iovo-rep][data-theme="dark"] body{
 --rep-night-overlay:rgba(5,2,1,.66);--rep-night-surface:var(--card2);--rep-night-ink:var(--text-mid);--rep-night-accent:var(--aqua);
 --rep-cool-surface:var(--card2);--rep-cool-accent:rgba(244,121,32,.12);
}
/* Controls recolor; the canonical blue orb pixels and shared geometry do not. */
html[data-iovo-rep] :is(.ps-aquis-helper-btn,.iovo-sea-dive-btn){
 background:var(--card2);color:var(--aqua);border:1px solid var(--border-hi);
 box-shadow:0 4px 16px var(--glow);opacity:1;
}
html[data-iovo-rep] :is(.ps-aquis-helper-btn,.iovo-sea-dive-btn):is(:hover,:focus-visible){
 background:var(--bg3);border-color:var(--aqua);box-shadow:0 0 0 2px var(--glow-strong);
}
html[data-iovo-rep][data-theme="dark"] :is(.header-title,.manager-page-badge,.manager-panel-chip,.manager-role-pill,.manager-caps-configure,.manager-kpi-icon,.manager-caps-th,.ghl-panel-name,.ghl-health-card em,.stage-summary .summary-note){color:var(--aqua);border-color:var(--border-hi)}
html[data-iovo-rep][data-theme="dark"] :is(.manager-node-exec,.manager-detail-drawer-panel,.manager-side-panel){background:var(--card2);border-color:var(--border)}
html[data-iovo-rep][data-theme="dark"] :is(.ghl-command-kicker,.ghl-user-dot,.ghl-info-modal-head span,.ghl-followup-modal-head span,.ghl-followup-menu-toggle,.ghl-followup-variables button,.manager-role-chip){color:var(--aqua);border-color:var(--border-hi)}
html[data-iovo-rep][data-theme="dark"] :is(.ghl-cockpit,.ghl-panel-card,.ghl-console-topbar,.ghl-info-modal,.ghl-followup-modal,.ghl-followup-phone,.ghl-overview-grid,.ghl-overview-item){border-color:var(--border)}
html[data-iovo-rep][data-theme="dark"] .ghl-followup-bubble{color:var(--text)}
html[data-iovo-rep] .iovo-avatar-initials{color:var(--text);font-weight:700;font-size:inherit;line-height:1}
html[data-iovo-rep] .iovo-photo-sheet-preview .iovo-avatar-initials{font-size:2rem}

/* Keep the fixed canonical AQUIS / Dive stack in its own rail, not over
   commission payment actions. Bottom padding alone cannot protect scrolled rows.
   Follow the shared orb size; 40px covers its right offset (up to 20px)
   plus a readable gutter. Do not shrink the owner-standard orb to make it fit. */
@media(min-width:1000px){
  html[data-iovo-rep="shell"] body:has(#view-commissions.active) .content{padding-right:calc(var(--aquis-corner-size, 119px) + 40px + env(safe-area-inset-right))}
}
/* CEO standard (owner Nov 1): same header theme control, AQUIS rail and Dive placement as the CEO Command Center. */
/* Popup pickers share the Rep palette too; Day needs light ink on its dark teal selection. */
html[data-iovo-rep] .iovo-rep-theme-menu [data-iovo-sea-picker] {
  --sea-ink:var(--text-mid);--sea-ink-hi:var(--text);--sea-accent:var(--aqua);--sea-accent-ink:var(--bg);--sea-line:var(--border);
}
.iovo-rep-header-picker { --sea-ink:var(--text-mid);--sea-ink-hi:var(--text);--sea-accent:var(--aqua);--sea-accent-ink:#04121c;--sea-line:var(--border);min-width:0; }
html[data-theme="light"] .iovo-rep-header-picker { --sea-accent-ink:#fff; }
@media (min-width:744px) { .header-right .iovo-rep-theme-phone { display:none; } }
@media (max-width:743px) { .header-right .iovo-rep-header-picker { display:none; } }
@media (min-width:1181px) {
  /* Controls keep their own rail on the right, never over cards or row actions (CEO: main padding-right 124px). */
  html[data-iovo-rep="shell"] .content:not(#_):not(#_) { padding-right:124px; }
}
/* Scrawl #25: Dive shows on every Rep view (Dashboard, Settings, Proposals, Commissions, Field Mode). Homeowner
   proposals are exempt in iovo-sea.js (isHomeownerProposalPage), never by a :not(:has()) rule WebKit can freeze. */
