* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  min-height: 100vh;
  height: auto;
  background: #f4f6f9;
  overscroll-behavior-y: none;
}
body.page-mine {
  --mine-rpx: calc(100vw / 750);
  --mine-top-bleed: 0px;
  --bottom-nav-height: 54px;
  --bottom-nav-side: 16px;
  --bottom-nav-bottom: 8px;
  --bottom-nav-clearance: calc(var(--bottom-nav-height) + var(--bottom-nav-bottom) + 12px);
  min-height: 100vh;
  max-width: 100vw;
  background: #f4f6f9;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
@media (max-width: 430px) {
  body.page-mine { --mine-top-bleed: 40px; }
}
button, input { font: inherit; }
button { color: inherit; }
.mine-stack { position: relative; width: 100%; }
.mine-e1-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--mine-top-bleed);
  overflow: hidden;
  background-color: #1677ff;
  background-image: url('../assets/mine/e1_01.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}
@media (max-width: 430px) {
  .mine-e1-canvas { background-color: #000; }
}
.mine-e1-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.mine-e1-layer {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: calc(2127 / 1284 * 100%);
  pointer-events: none;
}
.mine-e1-layer > * { pointer-events: auto; }

.mine-avatar-edit-hit {
  position: absolute;
  z-index: 140;
  top: calc(var(--mine-top-bleed) + 108 * var(--mine-rpx));
  left: 50%;
  width: calc(168 * var(--mine-rpx));
  height: calc(168 * var(--mine-rpx));
  margin-left: calc(-84 * var(--mine-rpx));
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mine-ov-name {
  position: absolute;
  z-index: 100;
  top: calc(var(--mine-top-bleed) + 380 * var(--mine-rpx));
  left: calc(90 * var(--mine-rpx));
  width: max-content;
  max-width: calc(420 * var(--mine-rpx));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: clamp(14.672px, calc(28 * var(--mine-rpx)), 16px);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
@media (min-width: 431px) {
  .mine-ov-name { font-size: 16px; }
}
.mine-ov-tax {
  position: absolute;
  z-index: 100;
  top: calc(var(--mine-top-bleed) + 438 * var(--mine-rpx));
  right: calc(36 * var(--mine-rpx));
  left: calc(90 * var(--mine-rpx));
  display: flex;
  align-items: center;
  gap: calc(5 * var(--mine-rpx));
  color: #c87930;
  font-size: clamp(12px, calc(24 * var(--mine-rpx)), 12.576px);
  font-weight: 500;
  line-height: 1.25;
}
.user-tax-label { flex: 0 0 auto; white-space: nowrap; }
.user-tax-value {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(12px, calc(25 * var(--mine-rpx)), 13.1px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-overflow: clip;
  white-space: nowrap;
}
@media (min-width: 431px) {
  .mine-ov-tax { font-size: 12px; }
  .user-tax-value { font-size: 13px; line-height: 1.25; }
}
.mine-ov-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: calc(32 * var(--mine-rpx));
  height: calc(22 * var(--mine-rpx));
  margin-left: calc(24 * var(--mine-rpx));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-ov-eye img { display: block; width: 100%; height: 100%; object-fit: contain; }

.mine-hit {
  position: absolute;
  z-index: 99;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-hit:focus-visible,
.mine-ov-name:focus-visible,
.mine-ov-eye:focus-visible { outline: 2px solid rgba(30, 111, 255, .65); outline-offset: 2px; border-radius: 4px; }
.mine-hit-profile {
  top: calc(var(--mine-top-bleed) + 390 * var(--mine-rpx));
  left: calc(540 * var(--mine-rpx));
  width: calc(160 * var(--mine-rpx));
  height: calc(50 * var(--mine-rpx));
  z-index: 100;
}
.mine-hit-family {
  top: calc(var(--mine-top-bleed) + 520 * var(--mine-rpx));
  left: calc(25 * var(--mine-rpx));
  width: calc(220 * var(--mine-rpx));
  height: calc(230 * var(--mine-rpx));
}
.mine-hit-employer {
  top: calc(var(--mine-top-bleed) + 520 * var(--mine-rpx));
  left: calc(265 * var(--mine-rpx));
  width: calc(220 * var(--mine-rpx));
  height: calc(230 * var(--mine-rpx));
}
.mine-hit-bank {
  top: calc(var(--mine-top-bleed) + 520 * var(--mine-rpx));
  left: calc(505 * var(--mine-rpx));
  width: calc(220 * var(--mine-rpx));
  height: calc(230 * var(--mine-rpx));
}
.mine-hit-care,
.mine-hit-aqzx,
.mine-hit-help,
.mine-hit-consult,
.mine-hit-about { left: 0; width: 100%; }
.mine-hit-care { top: calc(var(--mine-top-bleed) + 810 * var(--mine-rpx)); height: calc(70 * var(--mine-rpx)); z-index: 100; }
.mine-hit-aqzx { top: calc(var(--mine-top-bleed) + 880 * var(--mine-rpx)); height: calc(70 * var(--mine-rpx)); z-index: 100; }
.mine-hit-help { top: calc(var(--mine-top-bleed) + 950 * var(--mine-rpx)); height: calc(70 * var(--mine-rpx)); z-index: 100; }
.mine-hit-consult { top: calc(var(--mine-top-bleed) + 950 * var(--mine-rpx)); height: calc(270 * var(--mine-rpx)); z-index: 120; }
.mine-hit-about { top: calc(var(--mine-top-bleed) + 1134 * var(--mine-rpx)); height: calc(86 * var(--mine-rpx)); z-index: 100; }

.mine-e1-pill {
  position: absolute;
  z-index: 110;
  top: calc(var(--mine-top-bleed) + 688 * var(--mine-rpx));
  min-width: calc(72 * var(--mine-rpx));
  height: calc(36 * var(--mine-rpx));
  padding: 0 calc(14 * var(--mine-rpx));
  border-radius: 999px;
  background: #fff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  font-size: calc(22 * var(--mine-rpx));
  font-weight: 500;
  line-height: calc(34 * var(--mine-rpx));
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-e1-pill-employer { cursor: default; }
.mine-e1-pill-family { left: calc(99 * var(--mine-rpx)); }
.mine-e1-pill-employer { left: calc(339 * var(--mine-rpx)); }
.mine-e1-pill-bank { left: calc(579 * var(--mine-rpx)); }

.mine-e1-footer {
  position: relative;
  z-index: 5;
  padding: 8px calc(24 * var(--mine-rpx)) var(--bottom-nav-clearance);
  background: #f4f6f9;
}
.logout-section {
  margin: 12px 0 0;
  padding: 14px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  text-align: center;
}
.logout-btn {
  width: 100%;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #1e6fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mine-activate-btn,
.mine-fill-data-btn {
  position: fixed;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: #1658dc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mine-activate-btn { top: calc(var(--mine-top-bleed) + 10px); right: 16px; min-width: 72px; }
.mine-fill-data-btn { top: calc(var(--mine-top-bleed) + 54px); left: 16px; min-width: 92px; }
.mine-activate-btn:active, .mine-fill-data-btn:active { opacity: .9; transform: scale(.98); }

.bottom-nav {
  position: fixed;
  z-index: 10050;
  right: var(--bottom-nav-side);
  bottom: var(--bottom-nav-bottom);
  left: var(--bottom-nav-side);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bottom-nav-height);
  padding: 8px 0;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 32px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  backdrop-filter: blur(8px);
}
.nav-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 11px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { opacity: .74; }
.nav-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-bottom: 2px; }
.nav-icon img { display: block; width: 19px; height: 19px; object-fit: contain; }
.nav-text { display: block; height: 12px; color: inherit; font-size: 11px; line-height: 12px; white-space: nowrap; }
.nav-item.active, .nav-item.active .nav-text { color: #1e6fff; }

.toast {
  position: fixed;
  z-index: 12050;
  bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-bottom) + 22px);
  left: 50%;
  max-width: min(86vw, 420px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(20, 32, 51, .92);
  color: #fff;
  box-shadow: 0 8px 30px rgba(22, 40, 66, .24);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.activate-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.activate-modal-root.is-open { display: flex; }
.activate-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.activate-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 22px 18px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}
.activate-modal-title { margin: 0 0 18px; color: #172033; font-size: 19px; font-weight: 650; text-align: center; }
.activate-modal-label { display: block; margin: 0 0 7px; color: #526175; font-size: 13px; }
.activate-modal-input {
  width: 100%;
  height: 44px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  outline: 0;
  background: #fbfcfe;
  color: #1b2533;
  font-size: 15px;
}
.activate-modal-input:focus { border-color: #8db7f5; box-shadow: 0 0 0 3px rgba(30,111,255,.1); }
.gender-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.gender-segment button { height: 40px; border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; color: #647287; cursor: pointer; }
.gender-segment button.is-active { border-color: #1e6fff; background: #edf5ff; color: #1e6fff; font-weight: 600; }
.activate-modal-hint { margin: 0 0 16px; color: #8894a6; font-size: 12px; line-height: 1.5; }
.activate-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.activate-modal-btn { min-height: 44px; border: 0; border-radius: 11px; background: #f2f4f8; color: #687588; font-size: 15px; font-weight: 600; cursor: pointer; }
.activate-modal-btn.primary { background: #1e6fff; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Entry to the offline personal-information and tax-record editor. */
.mine-data-fill-entry {
  position: fixed;
  z-index: 10060;
  top: calc(var(--app-safe-top, env(safe-area-inset-top, 0px)) + 10px);
  right: max(16px, calc((100vw - 750px) / 2 + 16px));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  color: #1658dc;
  box-shadow: 0 4px 14px rgba(21, 61, 125, .16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mine-data-fill-entry:active { opacity: .76; transform: scale(.98); }
