.medscope-install-launcher {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: #087e70;
  color: #fff;
  box-shadow: 0 8px 24px rgba(8, 75, 68, .22);
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.medscope-install-launcher.is-visible { display: inline-flex; }
.medscope-install-launcher:active { transform: translateY(1px); }
.medscope-install-launcher__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .16);
  font-size: 16px;
  font-weight: 400;
}

.medscope-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px max(18px, env(safe-area-inset-bottom));
  background: rgba(15, 31, 29, .46);
  backdrop-filter: blur(3px);
}

.medscope-install-overlay.is-open { display: flex; }
.medscope-install-sheet {
  width: min(100%, 430px);
  max-height: min(82vh, 620px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #d7e4df;
  border-radius: 20px;
  background: #fff;
  color: #173d38;
  box-shadow: 0 20px 58px rgba(11, 49, 44, .24);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.medscope-install-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ece9;
}

.medscope-install-sheet__eyebrow {
  margin: 0 0 4px;
  color: #087e70;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
}

.medscope-install-sheet h2 {
  margin: 0;
  color: #123b35;
  font-size: 21px;
  line-height: 1.25;
}

.medscope-install-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dbe6e2;
  border-radius: 10px;
  background: #f7faf9;
  color: #43635d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.medscope-install-note {
  margin: 14px 0 12px;
  color: #58706b;
  font-size: 13px;
  line-height: 1.65;
}

.medscope-install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.medscope-install-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #e2ebe8;
  border-radius: 13px;
  background: #f7faf9;
  color: #284c46;
  font-size: 14px;
  line-height: 1.5;
}

.medscope-install-step__number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e4f2ee;
  color: #087e70;
  font-size: 12px;
  font-weight: 700;
}

.medscope-install-tip {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e9;
  color: #795a22;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 821px) {
  .medscope-install-overlay { align-items: center; }
}

@media print {
  .medscope-install-launcher,
  .medscope-install-overlay { display: none !important; }
}
