.venoz-atlas-host {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke-soft, #e7ecef);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 73, 91, .08);
}

.venoz-atlas-patient { display: none; }

.venoz-atlas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke-soft, #e7ecef);
}
.venoz-atlas-head h2 { margin: 2px 0 4px; font-size: 17px; }
.venoz-atlas-head p { margin: 0; color: var(--muted, #6f7c83); font-size: 12px; }
.venoz-atlas-eyebrow { color: #0177a5 !important; font-size: 9px !important; font-weight: 700; letter-spacing: .12em; }
.venoz-atlas-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #557078; font-size: 11px; }
.venoz-atlas-status i { width: 8px; height: 8px; border-radius: 50%; background: #1fb27c; box-shadow: 0 0 0 4px rgba(31, 178, 124, .10); }
#venoz-atlas-frame { display: block; width: 100%; height: clamp(560px, calc(100dvh - 218px), 820px); border: 0; background: #f7f9fa; }

html.has-atlas-fullscreen,
html.has-atlas-fullscreen body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

.venoz-atlas-host.is-atlas-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.venoz-atlas-host.is-atlas-fullscreen .venoz-atlas-head {
  display: none;
}

.venoz-atlas-host.is-atlas-fullscreen #venoz-atlas-frame {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
}

.venoz-atlas-host.is-atlas-fullscreen .venoz-atlas-patient {
  display: flex;
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2;
  align-items: center;
  gap: 9px;
  max-width: min(72vw, 440px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 12px;
  background: rgba(10, 31, 40, .78);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.venoz-atlas-host.is-atlas-fullscreen .venoz-atlas-patient span {
  color: #8fdef6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.venoz-atlas-host.is-atlas-fullscreen .venoz-atlas-patient strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .venoz-atlas-head { padding: 12px 14px; }
  .venoz-atlas-head > div > p:not(.venoz-atlas-eyebrow) { display: none; }
  .venoz-atlas-status { font-size: 9px; }
  #venoz-atlas-frame { height: calc(100dvh - 178px); min-height: 560px; }
  .venoz-atlas-host.is-atlas-fullscreen .venoz-atlas-patient {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px);
    padding: 8px 11px;
  }
}
