#thbp-install-menu[hidden], .thbp-install-guide [hidden] { display: none !important; }
#thbp-install-menu {
  flex: 0 0 auto; width: 100%; border: 0; border-top: 1px solid #dfe4ec;
  border-radius: 0; padding: 15px 20px; min-height: 48px; background: #fff;
  color: #163a6e; font: inherit; font-size: 15px; text-align: start; cursor: pointer;
}
#thbp-install-menu:hover { background: #f2f5fa; }
.thbp-install-guide {
  box-sizing: border-box; width: min(440px, calc(100% - 28px));
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  margin: auto; padding: 22px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #dfe4ec; border-radius: 18px; background: #fff;
  color: #142747; box-shadow: 0 18px 60px #08183a33; font-family: inherit;
}
.thbp-install-guide:not([open]) { display: none; }
.thbp-install-guide::backdrop { background: #08183a66; }
.thbp-install-guide .thbp-install-heading { display: flex; gap: 12px; align-items: flex-start; padding-right: 24px; }
.thbp-install-dismiss { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #53617b; font-family: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.thbp-install-heading img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; }
.thbp-install-guide h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.3; color: #0b2457; }
.thbp-install-guide p { margin: 0; font-size: 14px; line-height: 1.55; color: #53617b; }
.thbp-install-guide .thbp-install-device { margin: 18px 0 12px; font-size: 13px; font-weight: 600; color: #163a6e; }
.thbp-install-guide .thbp-install-steps { margin: 0; padding: 0; list-style: none; }
.thbp-install-steps li { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 0; }
.thbp-install-guide h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.4; color: #142747; }
.thbp-install-drawing { flex: 0 0 58px; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #163a6e; }
.thbp-install-drawing svg { width: 30px; height: 30px; }
.thbp-install-browser { display: flex; align-items: center; justify-content: space-between; width: 58px; box-sizing: border-box; padding: 4px; background: #eef2f8; border: 1px solid #dfe4ec; border-radius: 8px; font-size: 10px; }
.thbp-install-browser b { border: 1px solid #163a6e; border-radius: 4px; padding: 0 2px; font-size: 15px; line-height: 1.2; }
.thbp-install-guide .thbp-install-note { border-top: 1px solid #dfe4ec; padding-top: 12px; font-size: 13px; }
.thbp-install-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.thbp-install-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid #d7dfed; border-radius: 9px; background: #f2f5fa; color: #163a6e; font: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; }
#thbp-install-native { background: #163a6e; color: #fff; border-color: #163a6e; }
#thbp-install-menu:focus-visible, .thbp-install-actions button:focus-visible, .thbp-install-dismiss:focus-visible { outline: 3px solid #497bd5; outline-offset: 2px; }
@media (max-width: 360px) { .thbp-install-guide { padding: 16px; } .thbp-install-drawing { flex-basis: 42px; } .thbp-install-browser { width: 42px; } }
