.bmh-native-tools { position: relative; }
.bmh-slot, .bmh-panel {
  box-sizing: border-box;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.4;
  text-align: left;
  letter-spacing: normal;
}
.bmh-slot *, .bmh-panel * { box-sizing: border-box; }
.bmh-slot[hidden], .bmh-panel[hidden], .bmh-panel [hidden] { display: none !important; }
.bmh-slot {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  z-index: 1;
  width: max-content;
  transform: translateY(-50%);
}
.bmh-slot .bmh-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 6px 11px 6px 7px;
  min-height: 48px;
  border: 1px solid #ffffff52;
  border-radius: 9px;
  background: #0a265e80;
  color: white;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.bmh-slot .bmh-trigger:hover, .bmh-slot .bmh-trigger[aria-expanded="true"] {
  background: #112d6c;
  border-color: #b6cffe;
}
.bmh-slot .bmh-trigger img {
  display: block;
  width: 53px;
  height: auto;
  aspect-ratio: 12/7;
  margin: 0;
  border: 0;
  border-radius: 4px;
  filter: drop-shadow(0 2px 2px #040c1b77);
}
.bmh-type { display: grid; gap: 2px; text-align: left; line-height: 1.15; }
.bmh-type small {
  color: #d6e3ff;
  font: 700 9px/1.15 Arial, sans-serif;
  letter-spacing: .14em;
}
.bmh-type strong { color: inherit; font-size: 14px; font-weight: 700; letter-spacing: -.04em; }
.bmh-trigger svg { width: 12px; height: 12px; }
.bmh-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.bmh-trigger:focus-visible, .bmh-panel :is(button, a):focus-visible {
  outline: 3px solid #51a7ff;
  outline-offset: 2px;
}
@media (min-width: 1301px) and (max-width: 1719px) {
  #layout_head .layout_head_ts > ul.bmh-expanded-tools > .layout_head_t_c { width: calc(80% - 150px); }
  #layout_head .layout_head_ts > ul.bmh-expanded-tools > .layout_head_t_r { width: calc(10% + 150px); }
  .bmh-native-tools .bmh-slot { left: 0; }
}
@media (min-width: 1300px) and (max-width: 1300px) {
  #layout_head_m.bmh-mobile-header { display: block !important; }
}
.bmh-mobile-header .bmh-slot { left: auto; right: 96px; }
.bmh-mobile-header .bmh-trigger {
  min-height: 44px;
  padding: 4px 8px;
  gap: 6px;
  background: #f5f8fc;
  border-color: #c9d6e6;
  color: #19334f;
}
.bmh-mobile-header .bmh-trigger:hover, .bmh-mobile-header .bmh-trigger[aria-expanded="true"] {
  background: #e9f0fa;
  border-color: #98b2d4;
}
.bmh-mobile-header .bmh-trigger img { width: 43px; }
.bmh-mobile-header .bmh-type small { color: #506a8a; font-size: 8px; }
.bmh-mobile-header .bmh-type strong { font-size: 12px; }
.bmh-panel {
  position: fixed;
  z-index: 1000;
  width: min(332px, calc(100% - 16px));
  padding: 20px;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #111f37;
  border: 1px solid #dae1ea;
  border-radius: 18px;
  box-shadow: 0 18px 55px #07152b44, 0 3px 10px #08172b20;
}
.bmh-panel .bmh-heading, .bmh-panel .bmh-grade, .bmh-panel .bmh-balance,
.bmh-panel .bmh-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bmh-panel .bmh-eyebrow { margin: 0 0 4px; color: #62728b; font: 700 9px/1.2 Arial, sans-serif; letter-spacing: .18em; }
.bmh-panel h2, .bmh-panel h3 { margin: 0; padding: 0; color: inherit; font-family: inherit; font-weight: 700; line-height: 1.25; }
.bmh-panel h2 { font-size: 21px; letter-spacing: -.075em; }
.bmh-panel h3 { font-size: 18px; letter-spacing: -.06em; }
.bmh-panel .bmh-close {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: #f0f3f8; border: 0; border-radius: 50%; color: #475771; cursor: pointer;
}
.bmh-close svg { width: 16px; height: 16px; }
.bmh-panel .bmh-card {
  display: block; width: 100%; height: auto; aspect-ratio: 12/7; object-fit: contain;
  margin: 16px 0 13px; border: 0; filter: drop-shadow(0 4px 4px #10213a24);
}
.bmh-panel .bmh-grade { padding: 3px 0 13px; border-bottom: 1px solid #dce2eb; }
.bmh-rate { color: #315280; background: #eff4fb; border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bmh-panel .bmh-balance { padding: 14px 0 15px; }
.bmh-balance > span { font-size: 12px; font-weight: 600; color: #526078; }
.bmh-balance strong { font: 700 26px/1.1 Arial, sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; text-align: right; }
.bmh-balance strong small { margin-left: 3px; font-size: 14px; }
.bmh-progress { padding: 12px; background: #f3f6fa; border-radius: 9px; }
.bmh-progress-heading { color: #243a55; font-size: 12px; font-weight: 600; }
.bmh-progress-heading b { color: #1e4d98; text-align: right; }
.bmh-track { height: 5px; margin: 9px 0 7px; background: #d6dfec; border-radius: 4px; overflow: hidden; }
.bmh-track i { display: block; height: 100%; border-radius: 4px; background: #2850a5; }
.bmh-panel[data-tier="sapphire"] .bmh-track i { background: #155193; }
.bmh-panel[data-tier="signature"] .bmh-track i { background: #424454; }
.bmh-panel .bmh-caption { margin: 0; color: #5a6980; font-size: 11px; line-height: 1.5; }
.bmh-panel .bmh-loading { margin: 16px 0 0; padding: 15px 12px; border-radius: 9px; color: #526078; background: #f3f6fa; font-size: 13px; }
.bmh-panel .bmh-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; margin-top: 14px; border-radius: 8px; background: #193c77;
  color: white; text-decoration: none; font-size: 13px; font-weight: 700;
}
.bmh-panel .bmh-cta:hover { background: #112c5b; color: white; }
.bmh-cta svg { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .bmh-panel { padding: 16px; }
  .bmh-panel .bmh-card { margin: 12px 0; }
}
