/* Mist-blue main-account theme. Login and the child-account shell use their own styles. */
:root {
  --qhm-ink: #102e3b;
  --qhm-muted: #4d6571;
  --qhm-teal: #05685f;
  --qhm-orange: #bf4f06;
  --qhm-cta: #dd620b;
  --qhm-surface: #f8fcfd;
  --qhm-sky: #ecf6fa;
  --qhm-tint: #e4f2f4;
  --qhm-rule: #d2e4eb;
  --qhm-radius: 12px;
  --qhm-tabs: 66px;
  --qhm-width: 500px;
}

.qhp-mist-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  background: currentColor;
  -webkit-mask: var(--qhm-icon) center / contain no-repeat;
  mask: var(--qhm-icon) center / contain no-repeat;
}
[data-icon="home"] { --qhm-icon: url("../images/mist-icons/home.svg"); }
[data-icon="file-description"] { --qhm-icon: url("../images/mist-icons/file-description.svg"); }
[data-icon="briefcase"] { --qhm-icon: url("../images/mist-icons/briefcase.svg"); }
[data-icon="users-group"] { --qhm-icon: url("../images/mist-icons/users-group.svg"); }
[data-icon="user"] { --qhm-icon: url("../images/mist-icons/user.svg"); }
[data-icon="shield-check"] { --qhm-icon: url("../images/mist-icons/shield-check.svg"); }
[data-icon="headphones"] { --qhm-icon: url("../images/mist-icons/headphones.svg"); }
[data-icon="download"] { --qhm-icon: url("../images/mist-icons/download.svg"); }
[data-icon="logout"] { --qhm-icon: url("../images/mist-icons/logout.svg"); }
[data-icon="speakerphone"] { --qhm-icon: url("../images/mist-icons/speakerphone.svg"); }
[data-icon="database"] { --qhm-icon: url("../images/mist-icons/database.svg"); }
[data-icon="upload"] { --qhm-icon: url("../images/mist-icons/upload.svg"); }
[data-icon="book"] { --qhm-icon: url("../images/mist-icons/book.svg"); }
[data-icon="chevron-right"] { --qhm-icon: url("../images/mist-icons/chevron-right.svg"); }

:root.qhp-has-tabbar body { padding-bottom: calc(var(--qhm-tabs) + env(safe-area-inset-bottom, 0px)); }
#qhp-tabbar {
  box-sizing: border-box;
  max-width: var(--qhm-width);
  height: calc(var(--qhm-tabs) + env(safe-area-inset-bottom, 0px));
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--qhm-rule);
  border-radius: 12px 12px 0 0;
  background: #f4fafc;
  box-shadow: 0 -3px 16px #1746630b;
}
#qhp-tabbar button { gap: 4px; color: var(--qhm-muted); font-size: 12px; }
#qhp-tabbar button.active { color: var(--qhm-teal); font-weight: 750; }
#qhp-tabbar button.active span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
#qhp-tabbar button:focus-visible { outline-color: var(--qhm-teal); border-radius: 6px; }
#qhp-tabbar i { font-size: 23px; }

.qhp-page {
  max-width: var(--qhm-width);
  min-height: calc(100vh - var(--qhm-tabs) - env(safe-area-inset-bottom, 0px));
  padding: 0 12px 24px;
  display: flow-root;
  color: var(--qhm-ink);
  background: var(--qhm-sky) url("../images/mist-pages.webp") center bottom / 100% auto no-repeat;
}
@supports (height: 100dvh) {
  .qhp-page { min-height: calc(100dvh - var(--qhm-tabs) - env(safe-area-inset-bottom, 0px)); }
}
/* Reserve room inside the scrolling content for the fixed navigation. */
:root.qhp-has-tabbar .qhp-profile {
  padding-bottom: calc(24px + var(--qhm-tabs) + env(safe-area-inset-bottom, 0px));
}
.qhp-mist-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  margin: 0 -12px 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  color: #084653;
  background: #dfedf5 url("../images/mist-pages.webp") right 52% / min(100%, 500px) auto no-repeat;
}
.qhp-mist-brand > img { width: auto; max-width: 42px; height: 25px; object-fit: contain; }
.qhp-mist-brand strong { min-width: 0; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.18; overflow-wrap: anywhere; }
.qhp-mist-brand h1 { flex: 0 0 auto; margin: 0 0 0 auto; font-size: 13px; color: var(--qhm-muted); }
.qhp-page :is(button,input,textarea):focus-visible { outline: 2px solid var(--qhm-teal); outline-offset: 2px; }
.qhp-page button:disabled { cursor: default; }
.qhp-page .qhp-muted { color: var(--qhm-muted); }

.qhp-mist-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(230px, 74vw, 340px);
  border-radius: 14px;
  overflow: hidden;
  background: #deeff5 url("../images/mist-cover.webp") center / cover no-repeat;
}
.qhp-mist-cover-copy { padding: 20px; }
.qhp-mist-cover-copy h2 { max-width: 59%; margin: 0 0 8px; color: #073d4b; font-size: clamp(26px, 8.7vw, 43px); line-height: 1.1; overflow-wrap: anywhere; }
.qhp-home .qhp-banner {
  margin: 0 0 10px;
  max-height: 240px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.qhp-mist-cover-compact { min-height: clamp(188px, 58vw, 265px); }
.qhp-mist-promo {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: min(59%, 246px);
  margin: 0 0 12px;
  color: var(--qhm-ink);
}
.qhp-home .qhp-mist-promo .qhp-app-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 6px; }
.qhp-mist-promo strong, .qhp-mist-promo span { overflow-wrap: anywhere; white-space: normal; }
.qhp-mist-promo strong { font-size: 12px; line-height: 1.35; }
.qhp-mist-promo span { color: var(--qhm-muted); font-size: 11px; }
.qhp-home .qhp-download {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 22px;
  color: white;
  background: var(--qhm-cta);
  font-size: 19px;
  font-weight: 750;
}
.qhp-home .qhp-notice {
  min-height: 0;
  margin: 10px 0;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
  text-align: left;
}
.qhp-home .qhp-notice h2,
.qhp-notice-sign {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--qhm-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.qhp-home .qhp-notice .qhp-mist-icon, .qhp-notice-sign .qhp-mist-icon { color: var(--qhm-teal); font-size: 18px; }
.qhp-home .qhp-notice p { min-width: 0; flex: 1; color: var(--qhm-muted); font-size: 12px; }
.qhp-home .qhp-tools { grid-template-columns: minmax(0, 1fr); margin: 14px 0 20px; gap: 7px; }
.qhp-home .qhp-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  min-height: 55px;
  aspect-ratio: auto;
  gap: 10px;
  align-items: center;
  justify-items: start;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  color: var(--qhm-ink);
  background: var(--qhm-tint);
}
.qhp-home .qhp-tool:nth-child(3) { margin-top: 7px; }
.qhp-home .qhp-tool i { color: var(--qhm-teal); font-size: 23px; }
.qhp-home .qhp-tool i:last-child { font-size: 16px; }
.qhp-home .qhp-tool strong, .qhp-home .qhp-tool small { display: block; }
.qhp-home .qhp-tool strong { font-size: 14px; }
.qhp-home .qhp-tool small { color: var(--qhm-muted); font-size: 12px; }

.qhp-finance-account, .qhp-account-card {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  color: var(--qhm-ink);
  background: #e5f3f6;
  text-align: left;
}
.qhp-records .qhp-finance-account { background: #e5f3f6 url("../images/mist-pages.webp") right bottom / auto 100% no-repeat; }
.qhp-page .qhp-finance-account > span, .qhp-page .qhp-finance-account small, .qhp-account-card small { color: var(--qhm-muted); font-size: 12px; }
.qhp-page .qhp-finance-account h2 { margin: 5px 0 8px; color: var(--qhm-ink); font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
.qhp-page .qhp-finance-balance { min-height: 0; align-items: flex-start; gap: 5px; border: 0; }
.qhp-page .qhp-finance-balance-value { margin: 0; padding: 0; background: transparent; }
.qhp-page .qhp-finance-balance-value strong { color: var(--qhm-teal); font-size: 24px; white-space: normal; overflow-wrap: anywhere; }
.qhp-finance-account-actions, .qhp-profile-log {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
}
.qhp-page :is(.qhp-finance-account-actions button, .qhp-profile-log) {
  display: flex;
  min-height: 43px;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  width: 100%;
  color: var(--qhm-ink);
  background: transparent;
  text-align: left;
  font-size: 13px;
}
.qhp-page .qhp-profile-log { background: var(--qhm-surface); border: 1px solid var(--qhm-rule); }
.qhp-page .qhp-finance-account-actions button + button { border-top: 1px solid var(--qhm-rule); }
.qhp-finance-account-actions .qhp-mist-icon, .qhp-profile-log .qhp-mist-icon, .qhp-income .qhp-mist-icon { color: var(--qhm-teal); font-size: 19px; }
.qhp-finance-account-actions .qhp-mist-icon:last-child, .qhp-profile-log .qhp-mist-icon:last-child { margin-left: auto; font-size: 15px; }
.qhp-finance-account-actions b, .qhp-profile-log span { margin-left: auto; color: var(--qhm-muted); font-size: 12px; font-weight: 500; }
.qhp-finance-account-actions b + .qhp-mist-icon:last-child, .qhp-profile-log span + .qhp-mist-icon:last-child { margin-left: 0; }
.qhp-page .qhp-finance-notice-block { margin: 0 0 10px; border: 0; padding: 0; background: transparent; }
.qhp-page .qhp-notice-ticker {
  min-height: 44px;
  margin: 0 0 10px;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  padding: 8px 10px;
  background: var(--qhm-surface);
  box-shadow: none;
}
.qhp-page .qhp-notice-viewport { color: var(--qhm-muted); font-size: 12px; }
.qhp-page .qhp-notice-viewport:focus-visible { outline-color: var(--qhm-teal); }

.qhp-page :is(.qhp-wallet-card,.qhp-tx-log-card,.qhp-settings-card,.qhp-record-card) {
  margin: 0 0 12px;
  padding: 12px 12px 15px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
}
.qhp-page :is(.qhp-wallet-card,.qhp-tx-log-card,.qhp-record-card) h2 { margin: 0 0 9px; padding: 0; color: var(--qhm-ink); font-size: 16px; }
.qhp-record-card > header, .qhp-record-card .qhp-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr) minmax(70px, .96fr);
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 6px 7px;
  border: 0;
  border-bottom: 1px solid var(--qhm-rule);
  font-size: 12px;
}
.qhp-record-card > header { border-radius: 7px 7px 0 0; color: var(--qhm-ink); background: var(--qhm-tint); font-weight: 700; }
.qhp-record-card > header span:last-child { text-align: right; }
.qhp-record-row time, .qhp-record-row small { color: var(--qhm-muted); font-size: 11px; overflow-wrap: anywhere; }
.qhp-record-row :is(strong,small) { color: var(--qhm-ink); white-space: normal; overflow-wrap: anywhere; }
.qhp-record-row b { white-space: normal; overflow-wrap: anywhere; }
.qhp-record-row b.positive { color: var(--qhm-teal); }
.qhp-record-row b.negative { color: var(--qhm-ink); }

.qhp-account-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center; background: var(--qhm-surface); }
.qhp-account-card > div { min-width: 0; }
.qhp-account-card strong { display: block; color: var(--qhm-ink); overflow-wrap: anywhere; font-size: 14px; }
.qhp-page .qhp-profile-balance { padding: 0 0 0 10px; border-left: 1px solid var(--qhm-rule); background: transparent; text-align: left; }
.qhp-profile-balance strong { color: var(--qhm-teal); font-size: 18px; }
.qhp-balance-unit { font-size: .74em; white-space: nowrap; }
.qhp-profile-balance b { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 12px; background: var(--qhm-orange); color: #fff; font-size: 12px; }
.qhp-page .qhp-income { gap: 9px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--qhm-rule); border-radius: var(--qhm-radius); background: var(--qhm-surface); }
.qhp-income strong { margin-right: auto; font-size: 14px; }
.qhp-income b { color: var(--qhm-teal); font-size: 16px; overflow-wrap: anywhere; }
.qhp-page .qhp-child-list { margin: 0 0 10px; padding: 0; background: transparent; }
.qhp-child-list h2, .qhp-child-list h2 em { color: var(--qhm-ink); }
.qhp-page .qhp-child-list header button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #8bbbc0;
  border-radius: 19px;
  color: var(--qhm-teal);
  background: var(--qhm-surface);
  font-size: 12px;
}
.qhp-child { margin-bottom: 8px; border: 1px solid var(--qhm-rule); border-radius: 10px; background: var(--qhm-surface); }
.qhp-child-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 6px;
  padding: 9px 11px;
  border-radius: 9px 9px 0 0;
  color: var(--qhm-muted);
  background: var(--qhm-tint);
}
.qhp-child-head strong { grid-column: span 2; color: var(--qhm-ink); font-size: 14px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.qhp-child-head > span { grid-row: 2; grid-column: 1 / 3; }
.qhp-child-head em { grid-row: 2; grid-column: 3; justify-self: end; padding: 0; background: transparent; color: var(--qhm-teal); }
.qhp-child-head .qhp-detail-toggle { grid-row: 1; grid-column: 3; justify-self: end; min-height: 30px; padding-inline: 6px; color: var(--qhm-teal); font-size: 13px; }
.qhp-child-detail { padding: 5px 10px 10px; background: transparent; }
.qhp-child-detail .qhp-ip { display: block; margin: 0 0 7px; padding: 2px 0; border: 1px solid var(--qhm-rule); border-radius: 8px; }
.qhp-ip > div { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 5px; padding: 5px 8px; font-size: 12px; }
.qhp-ip > div + div { border-top: 1px solid var(--qhm-rule); }
.qhp-ip dt { color: var(--qhm-muted); }
.qhp-ip dd { margin: 0; color: var(--qhm-ink); text-align: right; overflow-wrap: anywhere; }
.qhp-page .qhp-child-actions button {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--qhm-rule);
  border-radius: 9px;
  color: var(--qhm-teal);
  background: var(--qhm-tint);
  font-size: 13px;
}

.qhp-team .qhp-finance-account {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  background: var(--qhm-surface);
}
.qhp-team .qhp-finance-account h2 { margin: 0; }
.qhp-team .qhp-finance-balance {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.qhp-team .qhp-finance-balance-value strong { font-size: 20px; }
.qhp-team .qhp-finance-account-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qhp-team .qhp-finance-account-actions button + button {
  border-top: 0;
  border-left: 1px solid var(--qhm-rule);
}
.qhp-team .qhp-finance-account-actions button { gap: 5px; padding-inline: 8px; }
.qhp-team .qhp-finance-account-actions button b { white-space: nowrap; }

.qhp-team .qhp-team-invite {
  min-height: 65px;
  justify-content: space-between;
  margin: 0 0 11px;
  padding: 10px 13px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  color: var(--qhm-teal);
  background: var(--qhm-tint);
}
.qhp-team-invite > div { min-width: 0; white-space: normal; }
.qhp-team-invite strong { display: block; font-size: 21px; overflow-wrap: anywhere; }
.qhp-page .qhp-team-invite button, .qhp-page :is(.qhp-team-retry,.qhp-log-retry) {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #8bbbc0;
  border-radius: 16px;
  color: var(--qhm-teal);
  background: var(--qhm-surface);
  font-size: 12px;
}
.qhp-page .qhp-team-card { padding: 0 0 10px; background: transparent; }
.qhp-team-card > header { border: 0; }
.qhp-team-card h2 { color: var(--qhm-ink); font-size: 16px; }
.qhp-team-tree { padding: 5px 0; }
.qhp-page .qhp-team-root { min-height: 40px; padding: 6px 10px; border-radius: 8px; background: var(--qhm-tint); color: var(--qhm-ink); }
.qhp-team-root strong, .qhp-team-member-head strong { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.qhp-team-root i, .qhp-team-member-head i { border-color: #9ebbc4; color: var(--qhm-teal); }
.qhp-team-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}
.qhp-team-levels button {
  display: grid;
  gap: 3px;
  min-height: 48px;
  align-content: center;
  padding: 5px 4px;
  border: 1px solid var(--qhm-rule);
  border-radius: 8px;
  color: var(--qhm-ink);
  background: var(--qhm-surface);
  font-size: 12px;
}
.qhp-team-levels button strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.qhp-team-levels button[aria-pressed="true"] {
  border-color: var(--qhm-teal);
  color: var(--qhm-teal);
  background: var(--qhm-tint);
}
.qhp-team-levels button:focus-visible { outline: 2px solid var(--qhm-teal); outline-offset: 2px; }
.qhp-team-members { margin-top: 5px; padding-left: 13px; border-left: 1px solid var(--qhm-rule); }
.qhp-team-member { margin: 4px 0; border-color: var(--qhm-rule); }
.qhp-team-member-indirect {
  padding: 11px 9px;
  border-radius: 7px;
  color: var(--qhm-ink);
  background: var(--qhm-surface);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}
.qhp-team-member-head { min-height: 42px; padding: 6px 9px; border-radius: 7px; background: var(--qhm-surface); color: var(--qhm-ink); }
.qhp-team-member-head small { color: var(--qhm-teal); }
.qhp-team-member-detail { margin: 4px 0 8px; border-color: var(--qhm-rule); border-radius: 7px; background: var(--qhm-surface); }
.qhp-team-member-detail h3, .qhp-team-ip, .qhp-team-empty, .qhp-log-loading { color: var(--qhm-muted); }
.qhp-team-ip { border-color: var(--qhm-rule); }
.qhp-team-ip span { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.qhp-team-ip span:last-child { color: var(--qhm-teal); }
.qhp-team-tips, .qhp-wallet-tips {
  min-height: 0;
  margin: 6px 0 10px;
  padding: 12px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  color: var(--qhm-muted);
  background: var(--qhm-tint);
  font-size: 12px;
}
.qhp-team-tips strong, .qhp-wallet-tips strong { display: flex; align-items: center; gap: 6px; color: var(--qhm-ink); font-size: 14px; font-weight: 700; }
.qhp-team-tips .qhp-mist-icon { color: var(--qhm-teal); font-size: 18px; }

.qhp-withdraw-title, .qhp-withdraw-account { background: transparent; }
.qhp-withdraw-title { min-height: 37px; }
.qhp-withdraw-title h1 { color: var(--qhm-ink); font-size: 19px; }
.qhp-withdraw-title > button { left: 0; min-height: 40px; color: var(--qhm-muted); }
.qhp-withdraw-account { gap: 5px; padding: 15px 10px 19px; }
.qhp-withdraw-account small { color: var(--qhm-muted); }
.qhp-withdraw-account strong { color: var(--qhm-teal); font-size: 24px; overflow-wrap: anywhere; }
.qhp-withdraw-card {
  margin: 0 0 12px;
  padding: 13px 14px 16px;
  border: 1px solid var(--qhm-rule);
  border-radius: 13px;
  background: var(--qhm-surface);
}
.qhp-withdraw-card h2 { padding: 0 0 9px; border-color: var(--qhm-rule); color: var(--qhm-ink); }
.qhp-withdraw-type-field { min-height: 48px; border-color: var(--qhm-rule); color: var(--qhm-ink); font-weight: 650; }
.qhp-withdraw-types button { min-height: 31px; color: var(--qhm-muted); border-color: var(--qhm-rule); }
.qhp-withdraw-types button.active { border-color: #8bbbc0; color: var(--qhm-teal); background: var(--qhm-tint); }
.qhp-page .qhp-withdraw-card > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 10px 0;
  padding: 0;
  border: 0;
  color: var(--qhm-ink);
  font-weight: 650;
}
.qhp-page .qhp-withdraw-card > .qhp-withdraw-password { position: relative; grid-template-columns: minmax(0, 1fr) !important; }
.qhp-withdraw-card input, .qhp-page :is(.qhp-inline-field,.qhp-settings-field) input {
  box-sizing: border-box;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid #bfd2db;
  border-radius: 8px;
  color: var(--qhm-ink);
  background: #f4f9fb;
  text-align: left;
  font-size: 16px;
}
.qhp-withdraw-password input { padding-right: 45px; }
.qhp-withdraw-password > button { position: absolute; right: 2px; bottom: 1px; width: 38px; height: 38px; color: var(--qhm-muted); }
.qhp-page .qhp-withdraw-forgot { min-height: 28px; margin-top: -3px; color: var(--qhm-teal); font-size: 12px; }
.qhp-withdraw-arrival {
  margin: 10px 0 8px;
  padding: 9px;
  border-radius: 8px;
  background: var(--qhm-tint);
  color: var(--qhm-ink);
  text-align: center;
  font-weight: 650;
}
.qhp-withdraw-arrival strong { color: var(--qhm-orange); font-size: 18px; }
.qhp-withdraw-fee { color: var(--qhm-muted); font-size: 12px; }
.qhp-page .qhp-withdraw-submit {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 0;
  border-radius: 10px;
  background: var(--qhm-cta);
  font-size: 19px;
  font-weight: 750;
}

.qhp-page :is(.qhp-wallet-tips p,.qhp-method-copy span,.qhp-method-bind-state,.qhp-method-status,.qhp-dialog-copy,.qhp-dialog-hint,.qhp-dialog-target) { color: var(--qhm-muted); }
.qhp-page :is(.qhp-wallet-tips button,.qhp-pay-password span,.qhp-inline-form header button,.qhp-settings-pay-prompt button) { color: var(--qhm-teal); }
.qhp-page .qhp-pay-password { border-radius: 8px; color: var(--qhm-ink); background: var(--qhm-tint); }
.qhp-page .qhp-method-icon-wallet, .qhp-page :is(.qhp-method button,.qhp-inline-submit,.qhp-settings-submit,.qhp-dialog-submit) { color: #fff; background: var(--qhm-teal); }
.qhp-page :is(.qhp-inline-submit,.qhp-settings-submit,.qhp-dialog-submit) { min-height: 39px; border-radius: 9px; }
.qhp-page :is(.qhp-inline-form,.qhp-dialog-textarea) { border-color: var(--qhm-rule); background: var(--qhm-surface); }
.qhp-page .qhp-inline-field { gap: 5px; min-height: 52px; border-color: var(--qhm-rule); }
.qhp-page .qhp-inline-field:not(:has(.qhp-inline-eye)) input { grid-column: 2 / -1; }
.qhp-page .qhp-settings-form { padding: 5px 3px 9px; }
.qhp-page .qhp-settings-tabs { min-height: 46px; border-color: var(--qhm-rule); }
.qhp-page .qhp-settings-tabs button { background: transparent; color: var(--qhm-ink); }
.qhp-page .qhp-settings-tabs button.active { color: var(--qhm-teal); }
.qhp-page .qhp-settings-tabs button.active::after { background: var(--qhm-teal); }
.qhp-page .qhp-settings-pay-prompt-open { margin-inline: 0; }
.qhp-page .qhp-settings-field { border: 0; gap: 4px; }
.qhp-page .qhp-settings-field input::placeholder, .qhp-page .qhp-dialog-textarea::placeholder { color: var(--qhm-muted); }
.qhp-page .qhp-dialog { padding: 26px 18px 19px; max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--qhm-rule); border-radius: 15px; color: var(--qhm-ink); background: var(--qhm-surface); }
.qhp-page .qhp-dialog h2 { color: var(--qhm-ink); }
.qhp-page .qhp-dialog-result i { background: var(--qhm-teal); }
.qhp-page .qhp-dialog-result.qhp-result-error i { background: #b53c34; }
.qhp-page .qhp-dialog-number button:not(:disabled) { color: var(--qhm-teal); border-color: var(--qhm-rule); }
.qhp-page .qhp-logout-actions button { min-height: 42px; background: var(--qhm-tint); border-color: var(--qhm-rule); border-radius: 9px; color: var(--qhm-ink); }
.qhp-page .qhp-logout-actions .qhp-logout-confirm { background: var(--qhm-teal); border-color: var(--qhm-teal); color: #fff; }
.qhp-page .qhp-tx-log-card :is(header,.qhp-tx-log-row) { border-color: var(--qhm-rule); }
.qhp-page .qhp-tx-log-points strong { color: var(--qhm-teal); }
.qhp-page .qhp-tx-log-status.status-1 b { background: var(--qhm-teal); }
.qhp-page .qhp-tx-log-status.status-0 b { background: #326080; }

@media (min-width: 375px) {
  .qhp-page .qhp-profile-balance { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px; align-items: center; }
  .qhp-profile-balance small { grid-column: 1 / -1; }
  .qhp-profile-balance strong { font-size: 16px; }
  .qhp-profile-balance b { margin-top: 0; white-space: nowrap; }
}
@media (max-width: 350px) {
  .qhp-page { padding-inline: 9px; }
  .qhp-mist-brand { margin-inline: -9px; }
  .qhp-account-card { padding-inline: 10px; }
  .qhp-profile-balance strong { font-size: 16px; }
  .qhp-record-card > header, .qhp-record-card .qhp-record-row { gap: 5px; padding-inline: 3px; }
}

[data-icon="chevron-down"] { --qhm-icon: url("../images/mist-icons/chevron-down.svg"); }
[data-icon="eye"] { --qhm-icon: url("../images/mist-icons/eye.svg"); }
[data-icon="eye-off"] { --qhm-icon: url("../images/mist-icons/eye-off.svg"); }
.qhp-child-head .qhp-detail-toggle { display: inline-flex; align-items: center; gap: 3px; }

/* Screen layouts for the main-account routes implemented by uni-app components. */
html[data-qhp-mist-legacy] body { background-color: var(--qhm-sky); }
html[data-qhp-mist-legacy] uni-page-body {
  min-height: 100vh;
  color: var(--qhm-ink);
  background: var(--qhm-sky) url("../images/mist-pages.webp") center bottom / min(100%, 500px) auto no-repeat;
}
html[data-qhp-mist-legacy] .page-height {
  max-width: var(--qhm-width);
  margin-inline: auto;
  color: var(--qhm-ink);
  background: transparent;
}
html[data-qhp-mist-legacy] .tab-bar {
  border-bottom-color: var(--qhm-rule);
  background: #e5f3f7 url("../images/mist-pages.webp") right 52% / min(100%, 500px) auto no-repeat;
}
html[data-qhp-mist-legacy] .tab-bar .bg { background: transparent; }
html[data-qhp-mist-legacy] .page-height > .account-view {
  box-sizing: border-box;
  width: auto;
  margin: 12px 12px 0;
  padding: 12px 14px;
  gap: 4px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-tint);
}
html[data-qhp-mist-legacy] .page-height .account-view :is(p,.mobile-line,.account-username) {
  margin-block: 0;
  padding-block: 0;
  border: 0;
  color: var(--qhm-muted);
  font-size: 12px;
}
html[data-qhp-mist-legacy] .page-height .account-view :is(span,.mobile-line span) {
  padding: 0;
  color: var(--qhm-ink);
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
html[data-qhp-mist-legacy] .page-height > .page-content {
  box-sizing: border-box;
  padding: 12px 12px 28px;
}
html[data-qhp-mist-legacy] .page-content .content-bg,
html[data-qhp-mist-legacy] .page-content .html-view {
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
  color: var(--qhm-ink);
}
html[data-qhp-mist-legacy] .page-content .content-bg .tit-text {
  display: block;
  margin: 0;
  padding: 0 0 11px;
  border-color: var(--qhm-rule);
  color: var(--qhm-ink);
  font-size: 17px;
  font-weight: 700;
}
html[data-qhp-mist-legacy] .page-height .page-content .btn,
html[data-qhp-mist-legacy] .popup .btn-view .btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  border-radius: 9px;
  background: var(--qhm-teal);
  color: #fff;
  line-height: 1.35;
}
html[data-qhp-mist-legacy] .page-height .page-content .btn[disabled],
html[data-qhp-mist-legacy] .popup .btn-view .btn[disabled] { opacity: .55; }
html[data-qhp-mist-legacy] :is(button,input,textarea,uni-button):focus-visible {
  outline: 2px solid var(--qhm-teal);
  outline-offset: 2px;
}

html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view {
  margin-top: 4px;
  gap: 12px;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item { margin: 0; gap: 5px; }
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item .label {
  padding: 0;
  color: var(--qhm-ink);
  font-size: 13px;
  font-weight: 650;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item .line {
  box-sizing: border-box;
  margin: 0;
  height: auto;
  min-height: 43px;
  border: 1px solid #bfd2db;
  border-radius: 8px;
  background: #f2f9fb;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 35%);
  align-items: center;
  margin-bottom: 1px;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item .line-textarea {
  min-height: 68px;
  padding: 8px 10px;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item .line-textarea uni-textarea {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .form-view .form-item .line-pass {
  border-color: transparent;
  background: var(--qhm-surface);
}
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .btn-view { margin-top: 4px; }
html[data-qhp-mist-legacy="wallet"] .page-content .content-bg .tips-col {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--qhm-tint);
  color: var(--qhm-muted);
  font-size: 12px;
}

html[data-qhp-mist-legacy="team"] .page-content .content-bg .empty-border {
  box-sizing: border-box;
  height: auto;
  min-height: 64px;
  margin: 8px 0 0;
  padding: 11px;
  border-color: var(--qhm-rule);
  border-radius: 9px;
  background: var(--qhm-tint);
  justify-content: flex-start;
  overflow-wrap: anywhere;
}
html[data-qhp-mist-legacy="team"] .page-content .content-bg .empty-border span { color: var(--qhm-ink); }
html[data-qhp-mist-legacy] .u-popup__content .popup {
  box-sizing: border-box;
  width: min(346px, 88vw);
  padding: 17px;
  border: 1px solid var(--qhm-rule);
  border-radius: 15px;
  color: var(--qhm-ink);
  background: var(--qhm-surface);
}
html[data-qhp-mist-legacy] .popup :is(.title,.text) { color: var(--qhm-ink); }
html[data-qhp-mist-legacy] .popup .btn-view { margin: 0; width: 100%; }
html[data-qhp-mist-legacy="team"] .popup .input-line {
  box-sizing: border-box;
  height: 44px;
  margin: 12px 0 3px;
  border-color: #bfd2db;
  border-radius: 8px;
  background: #f2f9fb;
}
html[data-qhp-mist-legacy="team"] .popup .input-line uni-input {
  text-align: left;
  font-size: 16px;
}

html[data-qhp-mist-legacy="records"] .page-content .tab-line { padding: 0; border: 0; }
html[data-qhp-mist-legacy="records"] .page-content .content-bg .tab-line .tit-text { border: 0; color: var(--qhm-ink); font-size: 17px; }
html[data-qhp-mist-legacy="records"] .page-content .content-bg .head-line {
  padding: 9px;
  border-color: var(--qhm-rule);
  border-radius: 8px 8px 0 0;
  background: var(--qhm-tint);
}
html[data-qhp-mist-legacy="records"] .page-content .content-bg .head-line span { color: var(--qhm-ink); font-size: 13px; }
html[data-qhp-mist-legacy="records"] .page-content .content-bg .list { margin-top: 0 !important; }
html[data-qhp-mist-legacy="records"] .content-bg .list .item {
  min-height: 42px;
  padding: 8px 9px;
  border-color: var(--qhm-rule);
}
html[data-qhp-mist-legacy="records"] .content-bg .list .item .num { color: var(--qhm-teal); font-weight: 700; }

html[data-qhp-mist-legacy="ranking"] .page-height > .page-content { gap: 12px; padding-top: 14px; }
html[data-qhp-mist-legacy="ranking"] .page-content .group-item {
  transform: none;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
}
html[data-qhp-mist-legacy="ranking"] .group-item .title {
  box-sizing: border-box;
  min-height: 42px;
  height: auto;
  justify-content: flex-start;
  transform: none;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px 11px 0 0;
  background: var(--qhm-tint);
  color: var(--qhm-ink);
  font-size: 16px;
  font-weight: 700;
}
html[data-qhp-mist-legacy="ranking"] .page-content .group-item .list {
  box-sizing: border-box;
  width: 100%;
  padding: 0 12px;
  border: 0;
}
html[data-qhp-mist-legacy="ranking"] .group-item .list .item {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) minmax(0,auto);
  gap: 6px;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--qhm-rule);
  border-radius: 0;
}
html[data-qhp-mist-legacy="ranking"] .group-item .list .item :is(.num,.username,.val) {
  width: auto;
  overflow-wrap: anywhere;
  font-size: 13px;
}
html[data-qhp-mist-legacy="ranking"] .group-item .list .item :is(.num,.val) { color: var(--qhm-teal); }
html[data-qhp-mist-legacy="ranking"] .page-content .desc-view {
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--qhm-rule);
  border-radius: var(--qhm-radius);
  background: var(--qhm-surface);
  color: var(--qhm-muted);
  font-size: 12px;
}
html[data-qhp-mist-legacy] .page-content .empty-view { padding: 16px 0; }
html[data-qhp-mist-legacy] .page-content .empty-view .ioc { width: 76px; height: 76px; }
html[data-qhp-mist-legacy] .page-content .empty-text { color: var(--qhm-muted); }

html[data-qhp-mist-legacy="shop"] .content-bg .list .item { padding: 8px 4px; border-color: var(--qhm-rule); }
html[data-qhp-mist-legacy="shop"] .content-bg .list .item p { color: var(--qhm-ink); font-size: 14px; }

html[data-qhp-mist-legacy="account"] .page-content .top-text {
  margin: 0;
  color: var(--qhm-ink);
  text-align: left;
}
html[data-qhp-mist-legacy="account"] .page-content .text-sub {
  margin: 5px 0 9px;
  color: var(--qhm-muted);
}
html[data-qhp-mist-legacy="account"] .page-content .content-bg .line {
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--qhm-rule);
}
html[data-qhp-mist-legacy="account"] .page-content .content-bg .line:last-child { border: 0; color: #a53630; }
html[data-qhp-mist-legacy="account"] .page-content .content-bg .line i { flex: 0 0 5px; background: #a53630; }
html[data-qhp-mist-legacy="account"] .page-content > .btn { background: #a53630; }
html[data-qhp-mist-legacy="web"] .page-height > .page-content { padding: 0; }

/* Compact announcement frame; the admin's rich text scrolls inside it. */
:root .qna-mask {
  --qna-brand: var(--qhm-teal);
  --qna-ink: var(--qhm-ink);
  --qna-muted: var(--qhm-muted);
  --qna-border: var(--qhm-rule);
  padding-inline: 18px;
  background: rgb(16 46 59 / 32%);
}
:root .qna-dialog {
  max-width: 328px;
  max-height: min(470px, 56vh);
  max-height: min(470px, 56dvh);
  border: 1px solid var(--qhm-rule);
  border-radius: 20px;
  background: var(--qhm-surface);
  box-shadow: 0 20px 52px rgb(16 46 59 / 24%);
}
:root .qna-header {
  gap: 8px;
  padding: 9px 11px 9px 17px;
  background: #e6f3fa url("../images/mist-pages.webp") right bottom / cover no-repeat;
}
:root .qna-eyebrow { margin-bottom: 1px; font-size: 11px; letter-spacing: .08em; }
:root .qna-header h2 { font-size: 19px; line-height: 1.24; font-weight: 750; }
:root .qna-close {
  background: #f8fcfd;
  box-shadow: inset 0 0 0 1px var(--qhm-rule);
}
:root .qna-close:hover { background: var(--qhm-tint); }
:root .qna-content {
  padding: 13px 17px;
  font-size: 14px;
  line-height: 1.65;
  background: #fff;
}
:root .qna-content :is(p,div) { margin-bottom: 8px; }
:root .qna-content > :last-child { margin-bottom: 0; }
:root .qna-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 14px 10px;
  background: #f5fafc;
}
:root .qna-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--qhm-teal);
  font-size: 12px;
  line-height: 1.35;
}
:root .qna-scroll-hint[hidden] { display: none; }
:root .qna-scroll-hint i { font-size: 16px; }
:root .qna-footer button {
  flex: 0 0 auto;
  margin-inline-start: auto;
  width: auto;
  min-width: 112px;
  padding: 8px 17px;
  border-radius: 10px;
  font-size: 14px;
}
:root .qna-footer button:focus-visible { outline-offset: 2px; }
