:root {
  --nb-green: #16865c;
  --nb-ink: #17382e;
  --nb-cream: #fffdf5;
}
.nb-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


#nb-hub-toggle,
#nb-hub-panel,
#nb-help-dialog {
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

#nb-hub-toggle {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(16, 67, 54, .9);
  color: #fff;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .28);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

#nb-hub-toggle:focus-visible,
#nb-hub-panel a:focus-visible,
#nb-hub-panel button:focus-visible,
#nb-help-dialog button:focus-visible {
  outline: 3px solid #ffe066;
  outline-offset: 3px;
}

#nb-hub-panel {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px);
  z-index: 2147482999;
  display: none;
  width: min(250px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 18px;
  background: rgba(15, 45, 38, .96);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .35);
  color: #fff;
}

#nb-hub-panel[data-open="true"] { display: grid; gap: 7px; }

#nb-hub-panel .nb-title {
  padding: 3px 8px 7px;
  color: #d9ffec;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

#nb-hub-panel a,
#nb-hub-panel button {
  display: flex;
  align-items: center;
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

#nb-hub-panel a:hover,
#nb-hub-panel button:hover { background: rgba(255, 255, 255, .2); }

#nb-help-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--nb-cream);
  color: var(--nb-ink);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

#nb-help-dialog::backdrop { background: rgba(4, 18, 14, .72); }

#nb-help-dialog .nb-help-inner { padding: 26px; }
#nb-help-dialog h2 { margin: 0 0 12px; font-size: 24px; }
#nb-help-dialog p { margin: 0 0 18px; line-height: 1.75; font-size: 16px; }
#nb-help-dialog button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--nb-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nb-progress-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf8f1;
  color: #22704f;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 520px) {
  #nb-hub-toggle { width: 44px; height: 44px; font-size: 21px; opacity: .82; }
  #nb-hub-panel { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); }
}

