#root .gr-mine-service-native {
  --mine-service-unit: calc(min(100vw, var(--gr-pro-shell-width, 430px)) / 750);
  --mine-service-red: #d6000f;
  --mine-service-ink: #222;
  min-height: 100dvh;
  min-width: 0;
  background: #fff;
  color: var(--mine-service-ink);
}

#root .gr-mine-service-native[data-tone="gray"] { background: #f6f6f6; }
#root .gr-mine-service-native[data-tone="transparent"] > .gr-mine-service-header { background: transparent; }

#root .gr-mine-service-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: minmax(70px, 86px) minmax(0, 1fr) minmax(70px, 86px);
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 8px 0;
  background: #fff;
  color: #111;
}

.gr-mine-service-header h1 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-mine-service-header button,
.gr-mine-service-menu-sheet button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gr-mine-service-back {
  display: grid;
  width: 42px;
  min-height: 44px;
  justify-items: center;
  align-items: center;
  padding: 0;
}

.gr-mine-service-back span {
  width: 8px;
  height: 8px;
  border-bottom: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.gr-mine-service-header-action { justify-self: end; }

.gr-mine-service-capsule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 86px;
  max-width: 100%;
  height: 32px;
  justify-self: end;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #fff;
}

.gr-mine-service-capsule > button {
  position: relative;
  display: grid;
  width: 100%;
  height: 30px;
  place-items: center;
  padding: 0;
}

.gr-mine-service-menu span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -6px 0 currentColor, 6px 0 currentColor;
}

.gr-mine-service-close::before {
  position: absolute;
  inset: 7px auto 7px 0;
  width: 1px;
  background: #ebebeb;
  content: "";
}

.gr-mine-service-close span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.gr-mine-service-close span::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.gr-mine-service-body { min-width: 0; }

#root .gr-mine-service-native :is(button, a, input):focus-visible {
  outline: 2px solid var(--mine-service-red);
  outline-offset: -2px;
}

.gr-mine-service-menu-sheet {
  width: min(300px, calc(100vw - 44px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow: auto;
  border: 0;
  border-radius: 10px;
  color: #222;
  text-align: center;
}

.gr-mine-service-menu-sheet::backdrop { background: rgb(0 0 0 / 45%); }

.gr-mine-service-menu-sheet input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.gr-mine-service-menu-sheet button { min-height: 44px; font-size: 0.9375rem; }

.gr-mine-service-menu-sheet a {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: #d6000f;
  font-size: 0.9375rem;
}

.gr-mine-service-menu-sheet p {
  margin: 0;
  color: #666;
  font-size: 0.75rem;
}
