/* 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: #f6f1e8;
  --iovo-warm-2: #efe7da;
  color-scheme: dark;
}

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: #f6f1e8;
  --text-mid: rgba(246, 241, 232, 0.72);
  --text-dim: rgba(246, 241, 232, 0.5);
  --border: rgba(246, 241, 232, 0.08);
  --border-hi: rgba(244, 121, 32, 0.45);
  --grid: rgba(244, 121, 32, 0.05);
  --input-bg: rgba(246, 241, 232, 0.04);
  --tog: rgba(246, 241, 232, 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: #f6f1e8;
  --bg2: #efe7da;
  --bg3: #e7dece;
  --card: rgba(255, 252, 247, 0.94);
  --bg-card: rgba(255, 252, 247, 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;
}

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

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

html[data-brand="iovo"] body {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

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;
}

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.svg") center / cover no-repeat;
}

html[data-brand="iovo"] .brand-sub {
  color: var(--text-mid, rgba(246, 241, 232, 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-developer-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  margin: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  font: 500 12px/1.3 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  color: #1a1d21;
  background: #f6f1e8;
  border-top: 2px solid #f47920;
}

/* Fallback until boot.js measures the nav and sets an exact inline bottom. */
html[data-brand="iovo"] .iovo-developer-line.is-above-nav {
  bottom: calc(71px + env(safe-area-inset-bottom, 0px));
  padding-bottom: 6px;
  padding-top: 6px;
  border-top-width: 1px;
}

/* Field Mode lays its fixed shell out above --fm-nav-h. Add the developer
   line so it sits between the content and the nav instead of over the
   tracker tiles. Base values match field-mode.html's own breakpoints. */
html[data-brand="iovo"] {
  --fm-nav-h: calc(66px + var(--iovo-line-reserve, 30px));
}

@media (min-width: 760px) {
  html[data-brand="iovo"] {
    --fm-nav-h: calc(70px + var(--iovo-line-reserve, 30px));
  }
}

@media (min-width: 1401px) {
  html[data-brand="iovo"] {
    --fm-nav-h: var(--iovo-line-reserve, 36px);
  }
}

/* The AQUIS bubble keeps its own offsets from aquis-assistant-ui.js, lifted
   above the developer line. Dashboard phones also show .bottom-tabs; those
   tabs move up by the same reserve so they do not cover the line. */
html[data-brand="iovo"] .aquis-mini-shell {
  bottom: calc(14px + var(--iovo-line-reserve, 36px) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  html[data-brand="iovo"] .bottom-tabs {
    bottom: var(--iovo-line-reserve, 36px);
  }

  html[data-brand="iovo"] body .aquis-mini-shell {
    bottom: calc(82px + var(--iovo-line-reserve, 36px) + env(safe-area-inset-bottom, 0px));
  }

  html[data-brand="iovo"] .content {
    padding-bottom: calc(100px + var(--iovo-line-reserve, 36px) + env(safe-area-inset-bottom, 0px));
  }
}

html[data-brand="iovo"] .aquis-mini-shell.field-mode {
  bottom: calc(88px + var(--iovo-line-reserve, 30px) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  html[data-brand="iovo"] .aquis-mini-shell {
    bottom: calc(10px + var(--iovo-line-reserve, 36px) + env(safe-area-inset-bottom, 0px));
  }

  html[data-brand="iovo"] .aquis-mini-shell.field-mode {
    bottom: calc(82px + var(--iovo-line-reserve, 30px) + env(safe-area-inset-bottom, 0px));
  }
}

html[data-brand="iovo"][data-theme="light"] .iovo-developer-line {
  color: #f6f1e8;
  background: #1a1d21;
}

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 #f6f1e8;
  outline-offset: 3px;
}

/* Invitation subtitles and the introduction chrome must clear the developer
   line, 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: calc(22px + var(--iovo-line-reserve, 36px));
}

html[data-brand="iovo"] #hint {
  bottom: calc(20px + var(--iovo-line-reserve, 36px));
}

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

html[data-brand="iovo"] #waitingView .waiting-wrap {
  min-height: auto;
  padding: 24px 16px calc(24px + var(--iovo-line-reserve, 36px));
}

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