@font-face {
  font-family: "ABC SF Match";
  src: url("./assets/fonts/InterDisplay-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("./assets/fonts/NotoSansSC-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  background: #eef3f1;
  color: #163b34;
  --abc-green: #00a887;
  --ink: #163b34;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #fff;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(24px, 4vw, 56px);
}

.guide {
  align-self: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #00bea0, #007f68);
  box-shadow: 0 14px 34px rgba(0, 134, 108, 0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand p,
.brand h1,
.guide-copy,
.guide-tip {
  margin: 0;
}

.brand p {
  color: #6c847e;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.brand h1 {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
}

.guide-copy {
  max-width: 32em;
  margin-top: 24px;
  color: #667b76;
  font-size: 14px;
  line-height: 1.8;
}

.current-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 117, 95, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(39, 72, 64, 0.08);
  backdrop-filter: blur(14px);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--abc-green);
  box-shadow: 0 0 0 6px rgba(0, 168, 135, 0.1);
}

.current-card span,
.current-card code {
  color: #7c918c;
  font-size: 12px;
}

.current-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(42vh, 420px);
  padding: 2px 5px 12px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 168, 135, 0.28) transparent;
}

.page-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 59, 52, 0.08);
  border-radius: 12px;
  color: #49645e;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  border-color: rgba(0, 168, 135, 0.38);
  outline: none;
  background: #fff;
  transform: translateY(-1px);
}

.page-link.is-active {
  color: #006f5c;
  border-color: rgba(0, 168, 135, 0.38);
  background: rgba(0, 168, 135, 0.1);
}

.page-link-code {
  min-width: 28px;
  color: #91a29e;
  font-size: 11px;
}

.page-link-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-tip {
  margin-top: 12px;
  color: #83958f;
  font-size: 12px;
  line-height: 1.65;
}

.device-stage {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.device {
  position: relative;
  width: min(390px, calc((100vh - 76px) * 0.46205));
  width: min(390px, calc((100dvh - 76px) * 0.46205));
  padding: 10px;
  border: 2px solid #262b2a;
  border-radius: 49px;
  background: #080a0a;
  box-shadow:
    0 35px 80px rgba(28, 48, 43, 0.24),
    0 8px 24px rgba(28, 48, 43, 0.16),
    inset 0 0 0 1px #515655;
}

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: var(--screen-aspect, 1242 / 2688);
  overflow: hidden;
  border-radius: 37px;
  background: #fff;
  isolation: isolate;
  container-type: inline-size;
  container-name: screen;
}

.h5-app {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: start center;
  background: #fff;
}

.h5-app .screen {
  width: min(100vw, calc(100vh * var(--screen-ratio, 0.46205)));
  width: min(100vw, calc(100dvh * var(--screen-ratio, 0.46205)));
  border-radius: 0;
}

[hidden] {
  display: none !important;
}

.screen.is-home-long {
  width: min(100vw, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  aspect-ratio: auto;
  overflow: visible;
  background: #fff;
}

.screen.is-home-long::after {
  display: none;
}

.home-long {
  width: 100%;
  padding-bottom: 21.3%;
  background: #fff;
}

.image-crop {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  container-type: inline-size;
}

#life-long .image-crop + .image-crop,
#profile-long .image-crop + .image-crop {
  margin-top: -2px;
}

.editable-value {
  position: absolute;
  z-index: 5;
  display: block;
  overflow: hidden;
  background: #fff;
}

.editable-value input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #333333;
  background: #fff;
  font-family: "ABC SF Match", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  caret-color: #00b99a;
  appearance: none;
  transform: none;
}

.editable-value.is-account-balance {
  display: flex;
  align-items: center;
  overflow: visible;
  background: #fff;
}

.editable-value.is-account-balance input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #333333;
  background: transparent;
  /* Match original ABC digits: PingFang medium */
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-variant-numeric: normal;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.image-crop > img,
.home-fixed-nav > img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.module-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.artifact-patch {
  position: absolute;
  z-index: 1;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-fixed-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  width: min(100vw, 460px);
  aspect-ratio: 1179 / 251;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(30, 44, 40, 0.08);
  transform: translateX(-50%);
}

.home-fixed-nav .hotspot {
  top: 0 !important;
  height: 100% !important;
  z-index: 2;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

#screen-image {
  position: absolute;
  top: var(--image-top, -4.066%);
  left: 0;
  display: block;
  width: 100%;
  height: var(--image-height, 104.066%);
  object-fit: fill;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.screen-transition-image {
  position: absolute;
  top: var(--image-top, -4.066%);
  left: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: var(--image-height, 104.066%);
  object-fit: fill;
  will-change: transform, opacity;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.dynamic-island {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 6;
  width: 86px;
  height: 20px;
  border: 2px solid #1b1e1d;
  border-radius: 999px;
  background: #050606;
  box-shadow: inset -12px 0 0 rgba(0, 52, 50, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}

.side-button {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #303433;
}

.side-button-left {
  top: 122px;
  left: -5px;
  height: 72px;
}

.side-button-right {
  top: 168px;
  right: -5px;
  height: 90px;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.hotspot-layer.is-disabled {
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 168, 135, 0.12);
}

.hotspot:active {
  background: rgba(0, 168, 135, 0.08);
}

.hotspot:focus-visible {
  outline: 3px solid rgba(0, 168, 135, 0.75);
  outline-offset: -3px;
  background: rgba(0, 168, 135, 0.08);
}

.transaction-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.transaction-records {
  position: absolute;
  top: 36.3%;
  left: 0;
  width: 100%;
  max-height: 48%;
  overflow-y: auto;
  background: #f1f2f2;
  scrollbar-width: none;
  pointer-events: auto;
  container-type: inline-size;
}

.transaction-records::-webkit-scrollbar {
  display: none;
}

.transaction-record {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 7.8cqw;
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  min-height: 17.72cqw;
  padding: 2.9cqw 3.4cqw 2.6cqw 4cqw;
  border: 0;
  border-bottom: 1px solid #e4e4e4;
  color: #333;
  background: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
}

.transaction-record-title,
.transaction-record-amount {
  font-size: 4.4cqw;
  line-height: 1.25;
  letter-spacing: -0.12cqw;
}

.transaction-record-title {
  color: #353535;
  font-weight: 350;
  transform: scaleY(1.04);
  transform-origin: left center;
}

.transaction-record-amount {
  justify-self: end;
  color: #555;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  transform: scaleY(1.02);
  transform-origin: right center;
}

.transaction-record-amount.is-income {
  color: #ff9f00;
  font-weight: 400;
}

.transaction-record-date,
.transaction-record-balance {
  color: #888;
  font-size: 3.7cqw;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}

.transaction-record-balance {
  justify-self: end;
}

.transaction-record-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: #bbb;
  font-size: 8cqw;
  font-weight: 200;
  line-height: 1;
}

.transaction-dialog {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.filter-date-dialog {
  position: absolute;
  inset: 0;
  z-index: 24;
}

.filter-date-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
}

.filter-date-picker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  aspect-ratio: 1242 / 861;
  overflow: hidden;
  background: #fff;
}

.filter-date-picker > img {
  position: absolute;
  top: -212.2%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.filter-date-picker > button {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#filter-date-cancel {
  top: 0;
  left: 0;
  width: 28%;
  height: 17.2%;
}

#filter-date-confirm {
  top: 0;
  right: 0;
  width: 28%;
  height: 17.2%;
}

#filter-date-wheel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 82.8%;
}

.date-wheel-stage {
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 7% 26px;
  overflow: hidden;
  background: #fff;
}

.date-wheel-stage::before,
.date-wheel-stage::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background: #ededed;
  pointer-events: none;
}

.date-wheel-stage::before {
  top: calc(50% - 35px);
}

.date-wheel-stage::after {
  top: calc(50% + 9px);
}

.date-wheel-column {
  height: 100%;
  padding: clamp(78px, 20vw, 92px) 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
}

.date-wheel-column.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.date-wheel-column::-webkit-scrollbar {
  display: none;
}

.date-wheel-option {
  display: grid;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  color: #aaa;
  background: transparent;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 20px;
  font-weight: 350;
  line-height: 44px;
  text-align: center;
  place-items: center;
  scroll-snap-align: center;
  cursor: pointer;
}

.date-wheel-option.is-selected {
  color: #333;
  font-size: 23px;
  font-weight: 400;
}

.date-wheel-stage::marker {
  display: none;
}

.date-wheel-stage::selection {
  background: transparent;
}

.date-wheel-stage + #filter-date-confirm {
  z-index: 5;
}

.filter-date-picker::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  z-index: 5;
  width: 36%;
  height: 5px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.filter-date-values {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.filter-date-value {
  position: absolute;
  top: 13.8%;
  display: grid;
  width: 38.6%;
  height: 4.2%;
  color: #8a8a8a;
  background: #fff;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1;
  place-items: center;
  letter-spacing: 0;
}

.filter-date-value::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5.5%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid #888;
  transform: translateY(-25%);
}

.filter-start-date-value {
  left: 5.2%;
}

.filter-end-date-value {
  left: 56.2%;
}

/* Cover the baked-in screenshot date + chevron (ink ~63%–95% x, ~28.3%/34.2% y),
   then redraw both rows with identical tabular digits so lengths stay aligned. */
.filter-date-values.is-export-page .filter-date-value {
  left: auto;
  right: 4.4%;
  width: 33.8%;
  height: 2.05%;
  padding: 0 5.6% 0 0;
  color: #666;
  background: #fff;
  font-family: "PingFang SC", "SF Pro Text", "Noto Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 4.05cqw;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  text-align: right;
  place-items: center end;
  white-space: nowrap;
}

.filter-date-values.is-export-page .filter-date-value::after {
  display: block;
  top: 52%;
  right: 1.6%;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 6px solid #bdbdbd;
  transform: translateY(-35%);
}

.filter-date-values.is-export-page .filter-start-date-value {
  top: 28.15%;
}

.filter-date-values.is-export-page .filter-end-date-value {
  top: 34.05%;
}

.export-email-form {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.export-email-form input {
  position: absolute;
  top: 39.2%;
  right: 4.5%;
  width: 58%;
  height: 5.75%;
  padding: 0 1.5%;
  border: 0;
  outline: 0;
  color: #555;
  background: #fff !important;
  background-image: none !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(15px, 4.6vw, 21px);
  line-height: 1;
  text-align: right;
  pointer-events: auto;
}

.export-email-form input::placeholder {
  color: #ccc;
  opacity: 1;
}

.export-email-form input:focus {
  color: #333;
  caret-color: #ff9f00;
}

.export-email-form input:-webkit-autofill,
.export-email-form input:-webkit-autofill:hover,
.export-email-form input:-webkit-autofill:focus,
.export-email-form input:-webkit-autofill:active {
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
  caret-color: #ff9f00;
  background-color: #fff !important;
  background-image: none !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 999999s ease-out 0s;
}

.export-email-form button {
  position: absolute;
  top: 48.8%;
  left: 3%;
  width: 94%;
  height: 5.7%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: transparent;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  pointer-events: auto;
}

.export-email-form button:disabled {
  cursor: wait;
}

.export-email-confirm {
  position: absolute;
  inset: 0;
  z-index: 26;
}

.export-email-confirm-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.export-email-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.export-email-confirm-address {
  position: absolute;
  top: 53.6%;
  left: 12%;
  z-index: 2;
  display: grid;
  width: 76%;
  height: 3.2%;
  place-items: center;
  color: #555;
  background: #fff;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 3.85vw, 17px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.export-email-confirm-cancel,
.export-email-confirm-ok {
  position: absolute;
  top: 60.8%;
  z-index: 2;
  width: 45.5%;
  height: 6%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

.export-email-confirm-cancel {
  left: 4.4%;
}

.export-email-confirm-ok {
  left: 50.1%;
}

.export-email-confirm-ok:disabled,
.export-email-confirm-cancel:disabled {
  cursor: wait;
}

.export-password {
  position: absolute;
  inset: 0;
  z-index: 27;
}

.export-password-shot,
.export-password-keyboard-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.export-password-close {
  position: absolute;
  top: 34.5%;
  left: 5.5%;
  z-index: 2;
  width: 10%;
  height: 4.4%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

.export-password-focus {
  position: absolute;
  top: 45%;
  left: 8.25%;
  z-index: 2;
  width: 83.1%;
  height: 5.3%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: text;
}

.export-password-dots {
  position: absolute;
  top: 45%;
  left: 8.25%;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  width: 83.1%;
  height: 5.3%;
  pointer-events: none;
}

.export-password-dots span {
  display: grid;
  place-items: center;
  height: 100%;
}

.export-password-dots span::after {
  content: "";
  width: 1.9cqw;
  height: 1.9cqw;
  border-radius: 50%;
  background: #222;
  opacity: 0;
  transform: scale(0.6);
}

.export-password-dots span.is-filled::after {
  opacity: 1;
  transform: scale(1);
}

.export-password-keyboard {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 35.3%;
}

.export-password-keys {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.export-password-keys button {
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

.export-password-keys button:disabled {
  cursor: wait;
}

.export-result {
  position: absolute;
  inset: 0;
  z-index: 28;
  background: #fff;
}

.export-result-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.export-result-back {
  position: absolute;
  top: 1%;
  left: 0;
  z-index: 2;
  width: 12%;
  height: 6.5%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

.export-result-message {
  position: absolute;
  top: 39.15%;
  left: 4.65%;
  z-index: 2;
  width: 90.7%;
  margin: 0;
  color: #767676;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 3.72cqw;
  font-weight: 400;
  line-height: 1.53;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  pointer-events: none;
}

.export-result-records,
.export-result-done {
  position: absolute;
  top: 88.5%;
  z-index: 2;
  width: 44.5%;
  height: 6%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  color: transparent;
  cursor: pointer;
}

.export-result-records {
  left: 4%;
}

.export-result-done {
  left: 51.5%;
}

.transaction-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
}

.transaction-form {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 18px max(18px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  color: #333;
  background: #f6f6f6;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.16);
}

.transaction-form-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  margin: 0 -18px 8px;
  padding: 0 18px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.transaction-form-head strong {
  font-size: 18px;
}

.transaction-form-head button {
  padding: 10px 0;
  border: 0;
  color: #ff9f00;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.transaction-form-head button:first-child {
  justify-self: start;
  color: #555;
}

.transaction-form-head button:last-child {
  justify-self: end;
}

.transaction-form > label {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-size: 15px;
}

.transaction-form > label:first-of-type {
  border-radius: 12px 12px 0 0;
}

.transaction-form > label:last-child {
  margin-bottom: 6px;
  border-bottom: 0;
  border-radius: 0 0 12px 12px;
}

.transaction-form input,
.transaction-form select {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #333;
  background: transparent;
  font: inherit;
  text-align: right;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 10%;
  z-index: 9;
  max-width: 78%;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 28, 26, 0.84);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stage-caption {
  margin: 14px 0 0;
  color: #7b8d88;
  font-size: 12px;
}

@media (max-width: 760px) {
  html,
  body {
    background: #fff;
  }

  .prototype {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .h5-app {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    place-items: stretch stretch;
  }

  .h5-app .screen {
    width: 100vw;
    max-width: 100vw;
    background: #fff;
  }

  .screen.is-home-long,
  .home-fixed-nav {
    width: 100vw;
  }

  .guide,
  .stage-caption {
    display: none;
  }

  .device {
    width: 100vw;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .screen {
    width: 100vw;
    border-radius: 0;
    background: #fff;
  }

  .dynamic-island,
  .side-button,
  .screen::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
