.mine-trade-privilege {
  display: inline-block;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mine-shortcut-icon { position: relative; display: grid; place-items: center; flex: none; }
.mine-shortcut-icon small {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 9px;
  background: #fa3534;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

#app:is(.ref-member-settings, .ref-member-profile, .ref-member-password, .ref-member-document, .ref-collection) {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
#app:is(.ref-member-settings, .ref-member-profile, .ref-member-password, .ref-signature, .ref-invite) { background: #f2f4fd; }
#app.ref-member-document { background: #fff; }
#app.ref-collection { background: #f5f5f5; }
#app:is(.ref-member-settings, .ref-member-profile, .ref-member-password, .ref-member-document, .ref-collection, .ref-signature, .ref-invite) .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(44px + env(safe-area-inset-top));
  border: 0;
  color: #000;
}
#app:is(.ref-member-settings, .ref-member-profile, .ref-member-password, .ref-member-document, .ref-collection, .ref-signature, .ref-invite) .back { left: 0; min-width: 37px; }
#app:is(.ref-member-settings, .ref-member-profile, .ref-member-password, .ref-member-document, .ref-collection) .page { display: block; padding: 0 0 env(safe-area-inset-bottom); }

.mine-settings-list {
  margin: 10px 3px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 5px rgb(0 0 0 / 5%);
}
.mine-settings-list :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 21px;
  text-align: start;
}
.mine-settings-list [data-logout] { border-bottom: 0; color: #fb5b34; }
.mine-settings-list svg { width: 15px; height: 15px; color: #999; }
.mine-settings-list :is(a, button):active { background: #f5f5f5; }
#app.ref-member-settings ~ #dialog { max-width: 300px; padding: 0; border-radius: 3px; text-align: center; }
#app.ref-member-settings ~ #dialog .dialog-content { display: block; min-width: 0; padding: 0; }
#app.ref-member-settings ~ #dialog h2 { padding: 18px 22px 5px; font-size: 18px; font-weight: 400; }
#app.ref-member-settings ~ #dialog p:not([hidden]) { padding: 18px 16px; color: #999; font-size: 15px; }
#app.ref-member-settings ~ #dialog .dialog-actions { display: flex; gap: 0; margin: 0; border-top: 1px solid #ededed; }
#app.ref-member-settings ~ #dialog .dialog-actions button { flex: 1; min-height: 48px; border: 0; border-radius: 0; background: #fff; color: #353535; font-size: 18px; font-weight: 400; }
#app.ref-member-settings ~ #dialog .dialog-actions [data-confirm] { border-left: 1px solid #ededed; color: #007aff; }

#app.ref-member-profile .page { padding-top: 10px; }
.mine-profile-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: 1px;
  padding: 16px;
  background: #fff;
  color: #666;
  font-size: 14px;
}
.mine-profile-row > span:last-child { color: #333; }
.mine-profile-avatar { display: flex; align-items: center; gap: 12px; }
.mine-profile-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mine-profile-avatar svg { width: 16px; height: 16px; color: #999; }
.mine-profile-row input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.mine-profile-row:focus-within { outline: 2px solid #3c9cff; outline-offset: -2px; }
.mine-profile-footer, .mine-password-footer {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 15px 5% calc(15px + env(safe-area-inset-bottom));
}
.mine-profile-footer button, .mine-password-footer button, .collection-save button {
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: #00bc7e;
  color: #fff;
  font-size: 16px;
}
.mine-password-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  color: #333;
  font-size: 15px;
}
.mine-password-row i { margin-left: 4px; color: #ff4d4f; font-style: normal; }
.mine-password-row input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #191919; font-size: 15px; line-height: 22px; }
.mine-password-footer { padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); background: #f2f4fd; box-shadow: 0 -1px 5px rgb(0 0 0 / 5%); }
.mine-password-footer button { min-height: 41px; background: #3c9cff; font-size: 17px; }
.mine-setting-document { padding: 16px; color: #333; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.mine-setting-document :is(p, h1, h2, h3, ol, ul) { margin: 0 0 12px; }

.collection-tabs { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-bottom: 1px solid #f0f0f0; }
.collection-tabs button { position: relative; min-height: 50px; padding: 13px 0; border: 0; background: #fff; color: #666; font-size: 16px; }
.collection-tabs [aria-pressed="true"] { color: #3c9cff; font-weight: 500; }
.collection-tabs [aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; transform: translateX(-50%); background: #3c9cff; }
.collection-fields { margin-top: 10px; padding: 0 16px; background: #fff; }
.collection-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.collection-verification { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 4px; min-height: 57px; }
.collection-verification input { width: 100%; min-width: 0; padding: 0; border: 0; background: #fff; font-size: 14px; }
.collection-verification button { min-height: 24px; padding: 2px 6px; border: 1px solid #3c9cff; border-radius: 4px; background: #fff; color: #3c9cff; font-size: 12px; white-space: nowrap; }
.collection-verification button:disabled { opacity: .6; }
.collection-qr { position: relative; margin: 20px 16px; }
.collection-qr[hidden] { display: none; }
.collection-qr .member-upload-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 142px;
  height: auto;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}
.collection-qr .member-upload-prompt { font-size: 14px; color: #999; }
.collection-qr .member-upload-tile:is([data-qr-filled="true"], .has-preview) { min-height: 300px; border-style: solid; }
.collection-qr .member-upload-preview, .collection-qr .protected-image { width: 100%; height: 100%; object-fit: contain; }
.collection-remove {
  position: absolute; z-index: 2; top: 10px; right: 10px;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #0008; color: #fff; font-size: 20px;
}
.collection-save { padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
.collection-save button { min-height: 38px; border-radius: 3px; }
