/* Add to Home Screen banner. Pointer events only on the card — never a full-screen catcher. */
#bk-a2hs-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
  font-family: inherit;
}
#bk-a2hs-root * { box-sizing: border-box; }
.bk-a2hs-banner {
  pointer-events: auto;
  margin: 0 12px max(10px, var(--sab, env(safe-area-inset-bottom, 0px)));
  background: var(--card, #1E232C);
  color: var(--text, #F4F7FA);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.bk-a2hs-banner.is-safari { margin-bottom: max(8px, var(--sab, env(safe-area-inset-bottom, 0px))); }
.bk-a2hs-row { display: flex; gap: 12px; align-items: flex-start; }
.bk-a2hs-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  overflow: hidden; background: #0B0D12;
}
.bk-a2hs-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-a2hs-copy b {
  display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.bk-a2hs-copy p {
  margin: 5px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4;
  color: var(--muted, #9aa3ad);
}
.bk-a2hs-note {
  margin: 8px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  color: var(--muted, #9aa3ad);
}
.bk-a2hs-steps {
  display: flex; flex-direction: column; gap: 6px;
  margin: 12px 0 4px; padding: 0;
}
.bk-a2hs-steps div {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em;
}
.bk-a2hs-steps i {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2, #11141A); color: var(--text, #F4F7FA);
  font-style: normal; font-size: 12px; font-weight: 800;
}
.bk-a2hs-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px;
}
.bk-a2hs-actions .notnow {
  border: 0; background: none; color: var(--muted, #9aa3ad);
  font: inherit; font-size: 14px; font-weight: 700; padding: 8px 2px;
  cursor: pointer;
}
.bk-a2hs-actions .primary {
  margin-left: auto; border: 0; background: #D8FF3E; color: #111;
  font: inherit; font-size: 14px; font-weight: 800;
  padding: 10px 18px; border-radius: 999px; letter-spacing: -0.02em;
  cursor: pointer;
}
.bk-a2hs-arrow {
  display: flex; justify-content: center;
  color: #D8FF3E;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
  margin-top: -2px;
  padding-bottom: 2px;
}
html[data-theme="light"] .bk-a2hs-arrow { color: #3a4a00; }

/* Settings row: only on a real phone-width browser, never in the desktop studio. */
#bk-a2hs-settings {
  width: 100%;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}
#bk-a2hs-settings em {
  font-style: normal;
  color: var(--muted, #9aa3ad);
  font-weight: 650;
  font-size: 13px;
  flex-shrink: 0;
}
@media (min-width: 601px) {
  #bk-a2hs-settings { display: none !important; }
}

/* Soft one-line reminder above the tab bar. Pointer events only on the bar. */
#bk-a2hs-reminder {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h, 56px) + max(8px, var(--sab, env(safe-area-inset-bottom, 0px))) + 8px);
  z-index: 40;
  pointer-events: none;
  font-family: inherit;
}
#bk-a2hs-reminder * { box-sizing: border-box; }
.bk-a2hs-rem {
  pointer-events: auto;
  margin: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card, #1E232C);
  color: var(--text, #F4F7FA);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.bk-a2hs-rem p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.bk-a2hs-rem-acts { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.bk-a2hs-rem .showme {
  border: 0;
  background: #D8FF3E;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
}
.bk-a2hs-rem .dismiss {
  border: 0;
  background: none;
  color: var(--muted, #9aa3ad);
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}
