      :root {
        --page-bg: #f4f5f7;
        --surface: #ffffff;
        --text: #202124;
        --muted: #7c838c;
        --border: #dedede;
        --input-bg: #ffffff;
        --primary: #087bff;
        --primary-active: #0068dd;
        --secondary: #747e88;
        --secondary-active: #65707a;
        --toast-bg: rgba(17, 24, 39, 0.92);
      }

      * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      html,
      body {
        margin: 0;
        min-height: 100%;
        background: var(--page-bg);
        color: var(--text);
        font-family:
          -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          sans-serif;
        letter-spacing: 0;
      }

      body {
        display: flex;
        justify-content: center;
      }

      .phone-page {
        width: min(100vw, 430px);
        min-height: 100vh;
        background: var(--surface);
        position: relative;
        overflow-x: hidden;
        padding-bottom: 92px;
      }

      .status-bar {
        height: 28px;
        padding: 5px 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        line-height: 1;
        color: #111;
        background: #f1f1f1;
      }

      .status-left,
      .status-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
      }

      .signal {
        display: inline-flex;
        align-items: flex-end;
        gap: 2px;
        height: 12px;
      }

      .signal i {
        width: 3px;
        background: #111;
        border-radius: 2px;
        display: block;
      }

      .signal i:nth-child(1) {
        height: 4px;
      }
      .signal i:nth-child(2) {
        height: 7px;
      }
      .signal i:nth-child(3) {
        height: 10px;
      }
      .signal i:nth-child(4) {
        height: 12px;
      }

      .battery {
        width: 27px;
        height: 14px;
        border: 2px solid #111;
        border-radius: 3px;
        padding: 1px;
        position: relative;
      }

      .battery::after {
        content: "";
        position: absolute;
        right: -4px;
        top: 3px;
        width: 2px;
        height: 6px;
        background: #111;
        border-radius: 0 2px 2px 0;
      }

      .battery span {
        display: block;
        width: 100%;
        height: 100%;
        background: #111;
        border-radius: 1px;
      }

      .nav-bar {
        height: 72px;
        display: grid;
        grid-template-columns: 76px 1fr 76px;
        align-items: center;
        background: #f6f6f6;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
      }

      .nav-btn {
        border: 0;
        background: transparent;
        color: #171717;
        height: 100%;
        display: grid;
        place-items: center;
        cursor: pointer;
      }

      .close-icon {
        width: 28px;
        height: 28px;
        position: relative;
      }

      .close-icon::before,
      .close-icon::after {
        content: "";
        position: absolute;
        left: 13px;
        top: 0;
        width: 2px;
        height: 30px;
        background: #111;
        border-radius: 2px;
      }

      .close-icon::before {
        transform: rotate(45deg);
      }
      .close-icon::after {
        transform: rotate(-45deg);
      }

      .more-icon {
        display: inline-flex;
        gap: 6px;
        align-items: center;
      }

      .more-icon i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #111;
        display: block;
      }

      .title {
        text-align: center;
        line-height: 1.1;
        min-width: 0;
      }

      .title strong {
        display: block;
        font-size: 24px;
        font-weight: 700;
      }

      .title span {
        display: block;
        margin-top: 3px;
        color: #656565;
        font-size: 13px;
      }

      .form-wrap {
        padding: 32px 14px 0;
      }

      .field {
        margin-bottom: 24px;
      }

      .field label {
        display: block;
        margin: 0 0 7px;
        font-size: 19px;
        line-height: 1.25;
        font-weight: 500;
        color: #202124;
      }

      .field input {
        width: 100%;
        height: 43px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: #222;
        outline: none;
        padding: 0 16px;
        font-size: 17px;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
      }

      .field input::placeholder {
        color: #777;
        opacity: 1;
      }

      .field input:focus {
        border-color: #8bc0ff;
        box-shadow: 0 0 0 3px rgba(8, 123, 255, 0.12);
      }

      .scan-row {
        position: relative;
      }

      .scan-row input {
        padding-right: 56px;
      }

      .scan-btn {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 32px;
        border: 0;
        border-left: 1px solid #ececec;
        background: transparent;
        color: #4b5563;
        display: grid;
        place-items: center;
        cursor: pointer;
      }

      .scan-btn:active {
        color: var(--primary);
      }

      .scan-icon {
        width: 22px;
        height: 22px;
      }

      .actions {
        display: grid;
        gap: 18px;
        margin-top: 8px;
      }

      .action-btn {
        width: 100%;
        height: 44px;
        border: 0;
        border-radius: 7px;
        color: #fff;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        transition:
          transform 0.12s ease,
          background 0.12s ease;
      }

      .action-btn:active {
        transform: scale(0.992);
      }

      .submit-btn {
        background: var(--primary);
      }

      .submit-btn:active {
        background: var(--primary-active);
      }

      .reset-btn {
        background: var(--secondary);
      }

      .reset-btn:active {
        background: var(--secondary-active);
      }

      .bottom-bar {
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: min(100vw, 430px);
        height: 64px;
        border-top: 1px solid #dedede;
        background: #f7f7f7;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-items: center;
      }

      .chevron {
        width: 22px;
        height: 22px;
        border-top: 3px solid #111;
        border-left: 3px solid #111;
        transform: rotate(-45deg);
      }

      .chevron.next {
        border-color: #b8b8b8;
        transform: rotate(135deg);
      }

      .toast {
        position: fixed;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%) scale(0.96);
        min-width: 120px;
        max-width: min(78vw, 300px);
        padding: 13px 20px;
        border-radius: 8px;
        background: var(--toast-bg);
        color: #fff;
        text-align: center;
        font-size: 16px;
        opacity: 0;
        pointer-events: none;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
        z-index: 50;
      }

      .toast.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }

      .camera-panel {
        position: fixed;
        inset: 0;
        background: #05070b;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        z-index: 60;
        overflow-y: auto;
        padding: calc(env(safe-area-inset-top, 0px) + 88px) 18px 36px;
      }

      .camera-panel.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      .camera-reader {
        width: min(92vw, 420px);
        margin: 0 auto;
        color: #ffffff;
      }

      .camera-reader video {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px;
      }

      .camera-reader img {
        max-width: 100%;
      }

      .camera-reader > div {
        border: 0 !important;
      }

      .camera-hint {
        margin: 18px auto 0;
        width: min(92vw, 420px);
        color: #ffffff;
        text-align: center;
        font-size: 15px;
      }

      .camera-close {
        position: absolute;
        left: 18px;
        top: calc(env(safe-area-inset-top, 0px) + 18px);
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
      }

      @media (min-width: 431px) {
        .phone-page {
          box-shadow: 0 0 24px rgba(15, 23, 42, 0.12);
        }
      }
