/* IOVO skin. Loaded only by the duplicated app. Colors stay off unless
   html[data-brand="iovo"] is set, which the Lucent hosts never receive. */

html[data-brand="iovo"] {
  --aqua: #f47920;
  --iovo-orange: #f47920;
  --iovo-orange-deep: #d86512;
  --iovo-graphite: #1a1d21;
  --iovo-graphite-2: #24282e;
  --iovo-ink: #14171b;
  --iovo-warm: #ffffff;
  --iovo-warm-2: #f8fafc;
  color-scheme: dark;
}

html[data-brand="iovo"] #vaultApp .brand-mark {
  width: 40px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

html[data-brand="iovo"],
html[data-brand="iovo"][data-theme="dark"] {
  --bg: #1a1d21;
  --bg2: #24282e;
  --bg3: #2c3138;
  --card: rgba(36, 40, 46, 0.92);
  --bg-card: rgba(36, 40, 46, 0.92);
  --text: #f8fafc;
  --text-mid: rgba(248, 250, 252, 0.72);
  --text-dim: rgba(248, 250, 252, 0.5);
  --border: rgba(248, 250, 252, 0.08);
  --border-hi: rgba(244, 121, 32, 0.45);
  --grid: rgba(244, 121, 32, 0.05);
  --input-bg: rgba(248, 250, 252, 0.04);
  --tog: rgba(248, 250, 252, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
  --glow: rgba(244, 121, 32, 0.16);
  --sidebar-active: rgba(244, 121, 32, 0.12);
}

html[data-brand="iovo"][data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --card: rgba(255, 255, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.94);
  --text: #1a1d21;
  --text-mid: rgba(26, 29, 33, 0.72);
  --text-dim: rgba(26, 29, 33, 0.52);
  --border: rgba(26, 29, 33, 0.08);
  --border-hi: rgba(216, 101, 18, 0.4);
  --grid: rgba(216, 101, 18, 0.05);
  --input-bg: rgba(26, 29, 33, 0.03);
  --aqua: #d86512;
  --glow: rgba(216, 101, 18, 0.12);
  color-scheme: light;
}

/* Office carries its own Day/Night palette (data-office-page); the global dark body must not override it. */
html[data-brand="iovo"]:not([data-theme="light"]):not([data-office-page]) body {
  background-color: #1a1d21;
  color: #f8fafc;
}

html[data-brand="iovo"][data-theme="light"] body {
  background-color: #f8fafc;
  color: #1a1d21;
}

/* Privacy Choices inherits the remembered Office day/night preference. The
   source page remains shared; these selectors activate only in the IOVO copy. */
html[data-brand="iovo"] body:has(#privacy-brand) section,
html[data-brand="iovo"] body:has(#privacy-brand) nav button,
html[data-brand="iovo"] body:has(#privacy-brand) input:not([type="checkbox"]),
html[data-brand="iovo"] body:has(#privacy-brand) select,
html[data-brand="iovo"] body:has(#privacy-brand) textarea {
  border-color: var(--border-hi);
  background: var(--card);
  color: var(--text);
}

html[data-brand="iovo"] body:has(#privacy-brand) :is(.hint, footer) {
  color: var(--text-mid);
}

html[data-brand="iovo"] body:has(#privacy-brand) a {
  color: var(--aqua);
}

html[data-brand="iovo"] body:has(#privacy-brand) nav button[aria-pressed="true"],
html[data-brand="iovo"] body:has(#privacy-brand) button[type="submit"] {
  background: var(--aqua);
  color: var(--iovo-graphite);
}

html[data-brand="iovo"] .brand-wm,
html[data-brand="iovo"] .sidebar-brand-wm,
html[data-brand="iovo"] .launch-command-hd-logo b {
  color: #f47920;
  letter-spacing: 0.18em;
  font-weight: 650;
}

/* Owner, 15 Nov 2026: the dashboard's top left shows the official IOVO logo (assets/iovo-mark.png on Night and Aqua,
   assets/iovo-mark-day.png on Day; 1024 x 900 transparent PNGs), not plain letters. The mark already carries the name inside
   the ring, so the text is gone. The collapsed menu shows the same mark at a smaller, fixed ring size. */
/* The two official files are 1024 x 900 and carry about 40% empty transparent margin: the visible ring spans x 199-821 and
   y 141-751 (623 x 611, measured by alpha; identical in both files). The margin is cropped away by CSS only: the image is drawn
   at ring/623 x 1024 wide and pulled back by the margin with negative margins, so the layout box IS the ring and the (fully
   transparent) rest overlaps its neighbours harmlessly. --ring is the visible ring's width: 56px expanded, 38px collapsed,
   the same in every theme (only the file changes). Always drawn below half its pixels, so never upscaled. */
html[data-brand="iovo"] .sidebar-brand-icon:is([data-iovo-official-mark],[data-iovo-day-mark]){--ring:56px;display:block;flex:none;box-sizing:content-box;max-width:none;object-fit:fill;width:calc(var(--ring) * 1024 / 623);height:calc(var(--ring) * 900 / 623);margin:calc(var(--ring) * -141 / 623) calc(var(--ring) * -202 / 623) calc(var(--ring) * -148 / 623) calc(var(--ring) * -199 / 623)}
html[data-brand="iovo"] body.sidebar-collapsed .sidebar-brand-icon:is([data-iovo-official-mark],[data-iovo-day-mark]){--ring:38px}
/* Two real images switched by the theme (the pattern the New proposal v2 set-up uses), not content:url() on an image: the white-lettered
   mark for Night and Aqua, the dark-lettered mark for Day. display:none takes the hidden one out of the accessibility tree, so
   "IOVO" is announced once. Both share the crop above, so the ring is identical in every theme. */
html[data-brand="iovo"] .sidebar-brand-icon[data-iovo-day-mark]{display:none}
html[data-brand="iovo"][data-theme="light"] .sidebar-brand-icon[data-iovo-official-mark]{display:none}
html[data-brand="iovo"][data-theme="light"] .sidebar-brand-icon[data-iovo-day-mark]{display:block}
html[data-brand="iovo"] .sidebar-brand[data-iovo-world]::after{content:none;display:none}
html[data-brand="iovo"] body.sidebar-collapsed .sidebar-brand[data-iovo-world]{padding-left:8px;padding-right:8px}
html[data-brand="iovo"][data-ds] .sidebar-brand:has(> .sidebar-brand-icon[data-iovo-official-mark]):not(#_){min-height:62px}
html[data-brand="iovo"][data-ds] body:not(.sidebar-collapsed) .sidebar-toggle-wrap[data-dash-toggle-wrap]:not(#_){top:9px}

/* The compact personal-terms panel uses the active IOVO palette in both themes. */
html[data-brand="iovo"] #ownerWelcomeGate{padding:16px;backdrop-filter:blur(8px)}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-card{width:min(420px,100%);padding:24px;border-radius:16px;background:var(--bg2);color:var(--text);text-align:left;max-height:calc(100dvh - 32px);box-shadow:0 16px 48px var(--shadow)}
html[data-brand="iovo"] #ownerWelcomeGate :is(.owner-welcome-mark,.owner-welcome-subline,.owner-welcome-signature){display:none}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-title{font-size:1.2rem;line-height:1.3;color:var(--text)}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-body{margin:10px 0 0;max-width:none;color:var(--text-mid);font-size:.88rem;line-height:1.5}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-consent{margin-top:20px;padding:0;border:0;background:transparent;color:var(--text);font-size:.92rem;line-height:1.5;min-height:44px;align-items:center}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-consent a{color:var(--text-mid);font-weight:400;text-decoration:underline;text-underline-offset:3px}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-continue{margin-top:14px;box-shadow:none;color:var(--iovo-ink)}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-signout{display:block;margin:4px auto 0;color:var(--text-mid);min-height:44px}
html[data-brand="iovo"] #ownerWelcomeGate .owner-welcome-error:empty{display:none}
html[data-brand="iovo"] .owner-welcome-terms-viewer{margin:auto;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--border-hi);border-radius:16px;background:var(--bg2);color:var(--text);box-shadow:0 16px 48px var(--shadow)}
html[data-brand="iovo"] .owner-welcome-terms-viewer:not([open]){display:none}
html[data-brand="iovo"] .owner-welcome-terms-viewer::backdrop{background:color-mix(in srgb,var(--bg) 75%,transparent)}
html[data-brand="iovo"] .owner-welcome-terms-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
html[data-brand="iovo"] .owner-welcome-terms-head h2{font-size:1.1rem;line-height:1.4}
html[data-brand="iovo"] .owner-welcome-terms-head button{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--input-bg);color:var(--text);cursor:pointer}
html[data-brand="iovo"] .owner-welcome-terms-viewer .owner-welcome-document{max-height:calc(100dvh - 160px);margin-top:12px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:.88rem;line-height:1.6;overflow:auto}
html[data-brand="iovo"] :is(#ownerWelcomeTermsLink,#ownerWelcomeAccept,#ownerWelcomeTermsClose):focus-visible{outline:2px solid var(--aqua);outline-offset:4px}

html[data-brand="iovo"] .owner-welcome-mark,
html[data-brand="iovo"] .field-access-denied-mark {
  color: transparent;
  border-color: rgba(244, 121, 32, 0.55);
  background: url("assets/iovo-mark.png") center / cover no-repeat;
}

html[data-brand="iovo"] .brand-sub {
  color: var(--text-mid, rgba(248, 250, 252, 0.72));
}

html[data-brand="iovo"] .brand svg [stroke="#4dd9c0"],
html[data-brand="iovo"] .brand svg [fill="#4dd9c0"] {
  stroke: #f47920;
  fill: #f47920;
}

html[data-brand="iovo"] .brand svg stop[stop-color="#72ecd4"],
html[data-brand="iovo"] .brand svg stop[stop-color="#1a7aaa"] {
  stop-color: #f47920;
}

html[data-brand="iovo"] .btn-sign,
html[data-brand="iovo"] .btn-primary,
html[data-brand="iovo"] button.primary {
  background: #f47920;
  border-color: #d86512;
  color: #1a1d21;
}

html[data-brand="iovo"] .nav-item.active,
html[data-brand="iovo"] .support-btn,
html[data-brand="iovo"] .sidebar-brand-wm b {
  color: #f47920;
}

html[data-brand="iovo"] .card,
html[data-brand="iovo"] .login-card {
  border-color: rgba(244, 121, 32, 0.28);
}

html[data-brand="iovo"] .iovo-front-door {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

html[data-brand="iovo"] .iovo-front-door img {
  width: 72px;
  height: 72px;
}

html[data-brand="iovo"] .iovo-front-door .iovo-front-door-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #f47920;
  color: #1a1d21;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
}

html[data-brand="iovo"] .iovo-front-door .iovo-front-door-cta:focus-visible {
  outline: 3px solid #f8fafc;
  outline-offset: 3px;
}

/* Invitation subtitles and the introduction chrome wrap long words, and the homeowner exit control must meet the 44px tap size. */
html[data-brand="iovo"] .card-sub,
html[data-brand="iovo"] .recording-consent-head small,
html[data-brand="iovo"] .preview-exit-bar {
  overflow-wrap: anywhere;
}

html[data-brand="iovo"] .preview-exit-bar {
  position: sticky;
  top: 0;
  min-height: 52px;
  flex-wrap: wrap;
  row-gap: 8px;
}

html[data-brand="iovo"] .preview-exit-bar a {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
}

html[data-brand="iovo"] body.homeowner-preview {
  padding-top: 0;
}

html[data-brand="iovo"] #dots {
  bottom: 22px;
}

html[data-brand="iovo"] #hint {
  bottom: 20px;
}

html[data-brand="iovo"] #waitingView.live-view.active {
  overflow: auto;
}

html[data-brand="iovo"] #waitingView .waiting-wrap {
  min-height: auto;
  padding: 24px 16px 24px;
}

html[data-brand="iovo"] #joinViewerBtn {
  min-height: 44px;
  min-width: 44px;
}

/* ── Sign-in: one unified, symmetrical premium panel over the rain ── */
html[data-brand="iovo"] body:has(#loginUser) {
  padding: 32px 16px;
  background-color: #14171b;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(244, 121, 32, 0.20), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(244, 121, 32, 0.10), transparent 70%),
    linear-gradient(180deg, #1a1d21 0%, #101215 100%);
  background-attachment: fixed;
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) {
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(244, 121, 32, 0.18), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* Recolour only: the page's own motion-lite / small-screen / reduced-motion
   rules still decide whether the grid and orbs render at all. */
html[data-brand="iovo"] body:has(#loginUser) .orb {
  background: rgba(244, 121, 32, 0.10);
}

html[data-brand="iovo"] body:has(#loginUser) .page {
  max-width: 520px;
  padding: 56px 52px 40px;
  border-radius: 28px;
  border: 1px solid rgba(244, 121, 32, 0.30);
  background: linear-gradient(180deg, rgba(38, 42, 48, 0.72), rgba(20, 23, 27, 0.78));
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(248, 250, 252, 0.04) inset,
    0 1px 0 rgba(248, 250, 252, 0.10) inset;
  position: relative;
  overflow: hidden;
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .page {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.86), rgba(248, 250, 252, 0.86));
  box-shadow: 0 40px 100px rgba(26, 29, 33, 0.16), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

html[data-brand="iovo"] body:has(#loginUser) .page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f47920, transparent);
}

/* Language and theme controls sit centred under the form; Back and the old mark are gone. */
html[data-brand="iovo"] body:has(#loginUser) .back-lk,
html[data-brand="iovo"] body:has(#loginUser) .brand svg {
  display: none;
}

html[data-brand="iovo"] body:has(#loginUser) .page { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
html[data-brand="iovo"] body:has(#loginUser) .top-bar { order: 3; margin: 28px 0 0; justify-content: center; }
html[data-brand="iovo"] body:has(#loginUser) .brand { order: 1; margin: 0 0 36px; gap: 14px; }

/* The full-effects tier (data-lux="full") turns the brand into its own boxed
   tile beside the form; on IOVO it stays part of the one panel. */
html[data-brand="iovo"] body:has(#loginUser) .brand {
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
html[data-brand="iovo"] body:has(#loginUser) .brand::after { display: none; }
html[data-brand="iovo"] body:has(#loginUser) .card { order: 2; }

/* Short screens: the panel keeps its full intrinsic height (so the brand never
   collapses onto the card title) and the body scrolls. Auto block margins centre
   it only while it fits, so the top never becomes unreachable; phones keep the
   page's own top-aligned layout. Main-axis start alignment stops centring from
   clipping the taller-than-viewport page above the scroll origin. */
html[data-brand="iovo"] body:has(#loginUser) { justify-content: flex-start; }
html[data-brand="iovo"] body:has(#loginUser) .page { height: auto; max-height: none; flex-shrink: 0; }
html[data-brand="iovo"] body:has(#loginUser) .brand { flex-shrink: 0; }
@media (min-width: 761px) {
  html[data-brand="iovo"] body:has(#loginUser) .page { margin-block: auto; }
}

html[data-brand="iovo"] body:has(#loginUser) .brand-wm {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  line-height: 1;
  color: #f47920;
  text-shadow: 0 0 40px rgba(244, 121, 32, 0.35);
}

html[data-brand="iovo"] body:has(#loginUser) .brand-sub {
  margin-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  line-height: 1.6;
  max-width: 100%;
  color: var(--text-mid, rgba(248, 250, 252, 0.72));
}

html[data-brand="iovo"] body:has(#loginUser) .card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

html[data-brand="iovo"] body:has(#loginUser) .card::before { display: none; }

html[data-brand="iovo"] body:has(#loginUser) .card-title,
html[data-brand="iovo"] body:has(#loginUser) .card-sub { text-align: center; }
html[data-brand="iovo"] body:has(#loginUser) .card-title { font-size: 1.7rem; margin-bottom: 8px; }
html[data-brand="iovo"] body:has(#loginUser) .card-sub { margin-bottom: 32px; }

html[data-brand="iovo"] body:has(#loginUser) input[type="email"],
html[data-brand="iovo"] body:has(#loginUser) input[type="password"],
html[data-brand="iovo"] body:has(#loginUser) input[type="search"],
html[data-brand="iovo"] body:has(#loginUser) input[type="text"] {
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  -webkit-appearance: none;
  appearance: none;
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input[type="email"],
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input[type="password"],
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input[type="search"],
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input[type="text"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.78) 100%);
  border: 1px solid rgba(26, 29, 33, 0.14);
  box-shadow:
    0 6px 18px rgba(26, 29, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(26, 29, 33, 0.06);
}

html[data-brand="iovo"] body:has(#loginUser) input:not([type="checkbox"]):focus,
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input:not([type="checkbox"]):focus {
  border-color: rgba(244, 121, 32, 0.78);
  box-shadow:
    0 0 0 4px rgba(244, 121, 32, 0.18),
    0 8px 22px rgba(244, 121, 32, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) input:not([type="checkbox"]):focus {
  box-shadow:
    0 0 0 4px rgba(244, 121, 32, 0.18),
    0 8px 20px rgba(244, 121, 32, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

html[data-brand="iovo"] body:has(#loginUser) .remember { justify-content: center; }

html[data-brand="iovo"] body:has(#loginUser) .btn-sign {
  padding: 15px 24px;
  min-height: 52px;
  height: auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 170, 0.42);
  background: linear-gradient(180deg, rgba(255, 166, 92, 0.96) 0%, rgba(244, 121, 32, 0.95) 52%, rgba(220, 99, 14, 0.98) 100%);
  color: #14171b;
  font-weight: 700;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    0 14px 32px rgba(244, 121, 32, 0.36),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(120, 42, 0, 0.35) !important;
  -webkit-tap-highlight-color: transparent;
}

html[data-brand="iovo"] body:has(#loginUser) .btn-sign:hover {
  background: linear-gradient(180deg, rgba(255, 178, 112, 0.98) 0%, rgba(249, 132, 46, 0.97) 52%, rgba(228, 106, 20, 0.99) 100%);
  box-shadow:
    0 16px 36px rgba(244, 121, 32, 0.44),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 42, 0, 0.35) !important;
}

html[data-brand="iovo"] body:has(#loginUser) .btn-sign:active {
  transform: scale(0.98);
  filter: brightness(0.97);
}

html[data-brand="iovo"][data-lux="full"] body:has(#loginUser) .btn-sign {
  border-radius: 999px;
}

html[data-brand="iovo"][data-lux="full"]:not(.native-login) body:has(#loginUser) .btn-sign.lux-btn-roll {
  min-height: 52px;
  height: 52px;
  padding: 0 24px;
}

html[data-brand="iovo"][data-lux="full"]:not(.native-login) body:has(#loginUser) .btn-sign.lux-btn-roll > span.lux-btn-roll__stack {
  height: 52px;
  line-height: 52px;
}

html[data-brand="iovo"] body:has(#loginUser) .btn-google {
  padding: 14px 22px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--text);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .btn-google {
  border-color: rgba(26, 29, 33, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.78) 100%);
  color: #1a1d21;
  box-shadow:
    0 8px 22px rgba(26, 29, 33, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(26, 29, 33, 0.06);
}

html[data-brand="iovo"] body:has(#loginUser) .top-controls {
  gap: 12px;
}

html[data-brand="iovo"] body:has(#loginUser) .lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .lang-pill {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(26, 29, 33, 0.14);
  box-shadow:
    0 8px 20px rgba(26, 29, 33, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(26, 29, 33, 0.06);
}

html[data-brand="iovo"] body:has(#loginUser) .lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

html[data-brand="iovo"] body:has(#loginUser) .lang-opt:not(.active):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .lang-opt:not(.active):hover {
  color: #1a1d21;
  background: rgba(26, 29, 33, 0.06);
}

html[data-brand="iovo"] body:has(#loginUser) .lang-opt.active {
  background: linear-gradient(180deg, #ff994a 0%, #f47920 100%);
  color: #14171b;
  font-weight: 700;
  box-shadow:
    0 4px 12px rgba(244, 121, 32, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

html[data-brand="iovo"] body:has(#loginUser) .tog {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  -webkit-tap-highlight-color: transparent;
}

html[data-brand="iovo"] body:has(#loginUser) .tog:hover {
  border-color: rgba(244, 121, 32, 0.55);
  color: #ff994a;
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .tog {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(26, 29, 33, 0.14);
  color: #1a1d21;
  box-shadow:
    0 8px 20px rgba(26, 29, 33, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(26, 29, 33, 0.06);
}

html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .tog:hover {
  border-color: rgba(216, 101, 18, 0.5);
  color: #d86512;
}

html[data-brand="iovo"] body:has(#loginUser) .tog svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px), (pointer: coarse) {
  html[data-brand="iovo"] body:has(#loginUser) .lang-opt {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
  html[data-brand="iovo"] body:has(#loginUser) .tog {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
}

html[data-brand="iovo"] body:has(#loginUser) .login-error,
html[data-brand="iovo"] body:has(#loginUser) .login-banner {
  border-radius: 20px;
  padding: 12px 18px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-brand="iovo"] body:has(#loginUser) .card-foot { margin-top: 26px; }

@media (max-width: 460px) {
  html[data-brand="iovo"] body:has(#loginUser) .page { padding: 40px 24px 28px; border-radius: 22px; }
  html[data-brand="iovo"] body:has(#loginUser) .brand-sub { font-size: 0.62rem; letter-spacing: 0.2em; }
}

@media (max-width: 760px) {
  html[data-brand="iovo"] body:has(#loginUser) {
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
}

/* Worlds switcher: the platform super admin only (iovo-app/navigation.js).
   A left-edge sidebar that opens over the page on every screen size. */
/* Sign-in: the official mark already carries the IOVO wordmark. */
html[data-brand="iovo"] body:has(#loginUser) .iovo-login-mark {
  display: block;
  width: clamp(104px, 28vw, 132px);
  height: auto;
  margin: 0 auto;
}

html[data-brand="iovo"] body:has(#loginUser) .brand-wm { display: none; }

/* World controls (links to Office, Tech, Field, Proposals) show only for the
   worlds iovo-app/world-policy.js grants this account; navigation.js sets
   data-iovo-see. Until it has an answer, none show. */
html[data-brand="iovo"]:not([data-iovo-see~="office"]) [data-iovo-world="office"],
html[data-brand="iovo"]:not([data-iovo-see~="tech"]) [data-iovo-world="tech"],
html[data-brand="iovo"]:not([data-iovo-see~="field"]) [data-iovo-world="field"],
html[data-brand="iovo"]:not([data-iovo-see~="proposals"]) [data-iovo-world="proposals"] { display: none !important; }

/* In-world Settings menu for worlds without a Settings page (policy settings: 'menu'). Bottom-left, clear of the Worlds switcher at the left edge. */
html[data-brand="iovo"] .iovo-settings { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2147481000; font: 600 14px/1.3 "DM Sans", "Segoe UI", sans-serif; }
html[data-brand="iovo"] .iovo-settings-toggle { min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 22px; background: #0f2a3a; color: #ffffff; cursor: pointer; }
html[data-brand="iovo"] .iovo-settings-panel { position: absolute; left: 0; bottom: 52px; display: grid; gap: 6px; width: min(260px, calc(100vw - 24px)); padding: 14px; border-radius: 14px; background: #0f2a3a; color: #ffffff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
html[data-brand="iovo"] .iovo-settings-panel[hidden] { display: none; }
html[data-brand="iovo"] .iovo-settings-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #ffffff; text-decoration: none; }
html[data-brand="iovo"] .iovo-settings-link:hover, html[data-brand="iovo"] .iovo-settings-link:focus-visible { background: rgba(255, 255, 255, 0.14); outline: none; }
/* On phones and tablets the worlds keep a bottom tab bar; sit above it so no tab is covered. */
@media (max-width: 900px) {
  html[data-brand="iovo"] .iovo-settings { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* Office Day. The Office stylesheet only re-themes the page body and the
   variables for Day; its header, department bar, cards, search, table headers,
   settings and tab bar keep dark hard-coded surfaces. Give those the Day surface
   so text stays readable. IOVO copy only; Night and the Lucent copy are untouched. */
html[data-brand="iovo"][data-office-theme="day"] .office-header { background: rgba(255, 255, 255, 0.92); }
html[data-brand="iovo"][data-office-theme="day"] .office-departments { background: rgba(233, 240, 242, 0.7); border-block-end-color: var(--stroke); }
html[data-brand="iovo"][data-office-theme="day"] :is(.office-search-results, #office-settings, .gate, .mobile-tabs) { background: var(--surface-strong); color: var(--text); }
html[data-brand="iovo"][data-office-theme="day"] .glass { background: var(--surface); }
html[data-brand="iovo"][data-office-theme="day"] .hero-search input { background: var(--surface-strong); color: var(--text); border-color: var(--stroke-hi); box-shadow: 0 8px 28px rgba(16, 40, 52, 0.1); }
html[data-brand="iovo"][data-office-theme="day"] .data-table th { background: #e9f0f2; color: var(--dim); }
html[data-brand="iovo"][data-office-theme="day"] :is(.decision-rail .checkmark, .progress-ring::before, .import-step b) { background: var(--surface-strong); color: var(--text); }
html[data-brand="iovo"][data-office-theme="day"] :is(.warning-box, .sample-tag) { color: var(--yellow); }
html[data-brand="iovo"][data-office-theme="day"] .sample-badge { background: var(--surface-strong); color: var(--yellow); }
html[data-brand="iovo"][data-office-theme="day"] input:not([type="checkbox"]), html[data-brand="iovo"][data-office-theme="day"] select { color: var(--text); }

/* Proposal pages on IOVO: the official IOVO mark replaces the Lucent hexagon in the
   "Proposal engine" header and in the EWG report loading overlay, where the mark is
   joined by an orbiting orange dot. IOVO copy only; the Lucent hosts never get data-brand="iovo". */
html[data-brand="iovo"] .step2-brand svg { display: none; }
html[data-brand="iovo"] .step2-brand::before {
  content: "";
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: url("assets/iovo-mark.png") center / contain no-repeat;
}
html[data-brand="iovo"] .step2-brand-wm { display: none; }

/* The original PNG supplies both stationary artwork and the isolated orange dot. */
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay) .ewg-loading-kicker { display:none; }
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay) .ewg-loading-logo-shell:not(.well-loading-logo-shell) { width:160px;height:160px; }
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay) .ewg-loading-logo-shell:not(.well-loading-logo-shell) :is(.ewg-loading-mark,.ewg-loading-logo-rings),
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay) .ewg-loading-logo-shell:not(.well-loading-logo-shell)::before,
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay) .ewg-loading-logo-shell:not(.well-loading-logo-shell)::after { display:none!important;content:none!important;animation:none!important; }
html[data-brand="iovo"] [data-iovo-orbit] { display:block;width:100%;height:100%;overflow:hidden; }
html[data-brand="iovo"] .iovo-logo-stationary { transform:none!important;animation:none!important; }
html[data-brand="iovo"] .iovo-logo-orbit { transform-origin:360px 360px;animation:none!important;filter:drop-shadow(0 0 4px rgba(244,121,32,.32)); }
html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay).visible .iovo-logo-orbit { animation:iovoOrangeOrbit 3.2s linear infinite!important; }
@keyframes iovoOrangeOrbit { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
html[data-brand="iovo"].los-tab-hidden .ewg-loading-overlay:not(.well-loading-overlay).visible .iovo-logo-orbit,
html[data-brand="iovo"][data-iovo-document-hidden="true"] .ewg-loading-overlay:not(.well-loading-overlay).visible .iovo-logo-orbit { animation-play-state:paused!important; }
@media (prefers-reduced-motion:reduce) {
  html[data-brand="iovo"] .ewg-loading-overlay:not(.well-loading-overlay).visible .iovo-logo-orbit { animation:none!important;transform:none!important; }
}

/* Sign-in, Day theme: the official mark has white IOVO letters that vanish on the light card.
   Day uses the same mark with dark letters; Night keeps the original. Tagline gets more contrast. */
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .iovo-login-mark { content: url("assets/iovo-mark-day.png"); }
html[data-brand="iovo"][data-theme="light"] body:has(#loginUser) .brand-sub { color: rgba(10, 22, 40, 0.78); }
