    :root {
      --wm-blue: #0071CE;
      --wm-blue-deep: #004F9E;
      --wm-blue-soft: #E9F5FF;
      --spark: #FFC220;
      --ink: #062B55;
      --muted: #5B6B82;
      --line: #D7E8F8;
      --surface: rgba(255,255,255,.92);
      --bg: #F4FAFF;
      --green: #07845C;
      --red: #C7362F;
      --shadow: 0 18px 46px rgba(0, 82, 155, .16);
      color-scheme: light;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    * { box-sizing: border-box; }
    html { min-height: 100%; background: var(--bg); }
    body {
      margin: 0;
      min-height: 100dvh;
      color: var(--ink);
      background:
        radial-gradient(circle at 18% 0%, rgba(255, 194, 32, .22), transparent 24rem),
        linear-gradient(180deg, #F9FDFF 0%, #EAF6FF 54%, #F8FBFE 100%);
      -webkit-font-smoothing: antialiased;
    }
    button, input, select { font: inherit; }
    button, a, summary { touch-action: manipulation; }
    a { color: inherit; text-decoration: none; }
    [hidden] { display: none !important; }
    body.dialog-open { overflow: hidden; }
    :where(button, a, summary, input, select, [tabindex]):focus-visible {
      outline: 3px solid rgba(0, 113, 206, .32);
      outline-offset: 3px;
    }
    .customer-shell {
      width: min(100%, 480px);
      margin: 0 auto;
      min-height: 100dvh;
      padding: max(14px, env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom));
    }
    .customer-mobile-density {
      --density-gap: 10px;
      --density-card-pad: 12px;
    }
    .top-card {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 2px 14px;
      backdrop-filter: blur(16px);
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--wm-blue);
      box-shadow: 0 12px 28px rgba(0,113,206,.28);
      color: white;
      flex: 0 0 auto;
    }
    .brand-mark svg { width: 24px; height: 24px; }
    .brand-title { font-size: 18px; line-height: 1.16; font-weight: 800; letter-spacing: 0; }
    .brand-sub { margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ghost-link {
      min-width: 72px;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(255,255,255,.72);
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 10px 30px rgba(6,43,85,.08);
    }
    .hero {
      margin-top: 4px;
      padding: 22px;
      border-radius: 28px;
      background: linear-gradient(145deg, var(--wm-blue), var(--wm-blue-deep));
      color: white;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
    }
    .hero::after {
      content: "";
      position: absolute;
      right: -72px;
      top: -78px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255, 194, 32, .24);
    }
    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 800;
      position: relative;
      z-index: 1;
    }
    .spark-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--spark);
      box-shadow: 0 0 0 7px rgba(255,194,32,.18);
      flex: 0 0 auto;
    }
    .hero h1 {
      margin: 14px 0 8px;
      font-size: 34px;
      line-height: 1.05;
      letter-spacing: 0;
      position: relative;
      z-index: 1;
    }
    .hero p {
      margin: 0;
      max-width: 26rem;
      color: rgba(255,255,255,.86);
      line-height: 1.65;
      font-size: 14px;
      position: relative;
      z-index: 1;
    }
    body[data-active-view="new"] .hero,
    body[data-active-view="orders"] .hero,
    body[data-active-view="bills"] .hero,
    body[data-active-view="profile"] .hero {
      padding: 14px 16px;
      border-radius: 22px;
    }
    body[data-active-view="new"] .hero h1,
    body[data-active-view="orders"] .hero h1,
    body[data-active-view="bills"] .hero h1,
    body[data-active-view="profile"] .hero h1 {
      margin: 8px 0 4px;
      font-size: 24px;
      line-height: 1.12;
    }
    body[data-active-view="new"] .hero p,
    body[data-active-view="orders"] .hero p,
    body[data-active-view="bills"] .hero p,
    body[data-active-view="profile"] .hero p {
      line-height: 1.5;
    }
    body[data-active-view="orders"] .hero,
    body[data-active-view="orders"] .quick-grid,
    body[data-active-view="bills"] .hero,
    body[data-active-view="bills"] .quick-grid,
    body[data-active-view="profile"] .hero,
    body[data-active-view="profile"] .quick-grid {
      display: none;
    }
    body[data-active-view="pay"] .customer-shell {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    body[data-active-view="pay"] .top-card,
    body[data-active-view="pay"] .hero,
    body[data-active-view="pay"] .quick-grid,
    body[data-active-view="pay"] .bottom-nav,
    body[data-active-view="pay"] .service-fab {
      display: none;
    }
    body[data-active-view="orders"] .top-card,
    body[data-active-view="bills"] .top-card {
      margin-bottom: 10px;
    }
    .quick-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 14px 0;
    }
    .metric {
      min-height: 88px;
      padding: 14px;
      border-radius: 22px;
      background: var(--surface);
      border: 1px solid rgba(215,232,248,.92);
      box-shadow: 0 12px 34px rgba(6,43,85,.08);
      transition: transform .18s cubic-bezier(.2, 0, .2, 1), border-color .18s ease, box-shadow .18s ease;
    }
    .metric:hover {
      transform: translateY(-1px);
      border-color: rgba(0,113,206,.22);
      box-shadow: 0 16px 38px rgba(6,43,85,.10);
    }
    .metric span { display: block; color: var(--muted); font-size: 12px; }
    .metric strong { display: block; margin-top: 9px; font-size: 24px; font-weight: 850; letter-spacing: 0; }
    .metric small {
      display: none;
      margin-top: 7px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }
    body[data-active-view="home"] .metric small { display: block; }
    .home-hero-actions {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 16px;
    }
    .home-hero-actions .primary,
    .home-hero-actions .secondary {
      margin-top: 0;
      min-height: 46px;
      border-radius: 16px;
    }
    .home-hero-actions .secondary {
      border-color: rgba(255,255,255,.36);
      background: rgba(255,255,255,.16);
      color: #fff;
      box-shadow: none;
    }
    body[data-active-view="new"] .home-hero-actions,
    body[data-active-view="orders"] .home-hero-actions,
    body[data-active-view="bills"] .home-hero-actions,
    body[data-active-view="profile"] .home-hero-actions,
    body[data-active-view="login"] .home-hero-actions {
      display: none;
    }
    .home-shell {
      display: grid;
      gap: 12px;
    }
    .home-overview-card {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 14px;
      background:
        radial-gradient(circle at top right, rgba(255,194,32,.18), transparent 30%),
        linear-gradient(135deg, #FFFFFF 0%, #F6FBFF 100%);
      animation: homeCardIn .22s cubic-bezier(0, 0, .2, 1) both;
    }
    .home-overview-card::after {
      content: "";
      position: absolute;
      right: -34px;
      bottom: -38px;
      width: 118px;
      height: 118px;
      border-radius: 50%;
      background: rgba(0,113,206,.08);
      pointer-events: none;
    }
    .home-overview-head {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .home-kicker {
      display: block;
      color: var(--wm-blue);
      font-size: 12px;
      font-weight: 900;
    }
    .home-overview-head h2 {
      margin: 3px 0 0;
      color: var(--text);
      font-size: 20px;
      line-height: 1.25;
      letter-spacing: 0;
    }
    .home-overview-copy {
      position: relative;
      z-index: 1;
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }
    .home-state-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: #EAF8EF;
      color: #17633A;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .home-state-pill.signed-out {
      background: #FFF4C7;
      color: #6C4A00;
    }
    .home-actions-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .home-action-card {
      min-height: 98px;
      padding: 12px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 22px;
      background: rgba(255,255,255,.92);
      box-shadow: 0 12px 30px rgba(6,43,85,.07);
      color: var(--ink);
      cursor: pointer;
      text-align: left;
      display: grid;
      gap: 7px;
      align-content: space-between;
      transition: transform .18s cubic-bezier(.2, 0, .2, 1), border-color .18s ease, box-shadow .18s ease, background .18s ease;
      animation: homeCardIn .22s cubic-bezier(0, 0, .2, 1) both;
    }
    .home-action-card:nth-child(2) { animation-delay: .03s; }
    .home-action-card:nth-child(3) { animation-delay: .06s; }
    .home-action-card:nth-child(4) { animation-delay: .09s; }
    .home-action-card:hover,
    .home-action-card:focus-visible {
      border-color: rgba(0,113,206,.32);
      box-shadow: 0 18px 42px rgba(6,43,85,.12);
      transform: translateY(-2px);
      background: #FFFFFF;
    }
    .home-action-card:active {
      transform: translateY(0) scale(.99);
    }
    .home-action-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .home-action-icon {
      width: 34px;
      height: 34px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
    }
    .home-action-icon svg {
      width: 20px;
      height: 20px;
    }
    .home-action-arrow {
      color: var(--wm-blue);
      font-size: 18px;
      line-height: 1;
      font-weight: 900;
    }
    .home-action-card strong {
      display: block;
      color: var(--text);
      font-size: 14px;
      line-height: 1.25;
    }
    .home-action-card span:last-child {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.4;
    }
    .home-flow-card {
      animation: homeCardIn .22s cubic-bezier(0, 0, .2, 1) both;
      animation-delay: .08s;
    }
    .home-flow {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .home-flow-step {
      min-height: 82px;
      padding: 11px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 18px;
      background: #F8FCFF;
    }
    .home-flow-step b {
      display: inline-grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border-radius: 10px;
      background: var(--wm-blue);
      color: #fff;
      font-size: 12px;
      line-height: 1;
    }
    .home-flow-step strong {
      display: block;
      margin-top: 8px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.3;
    }
    .home-flow-step span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    @keyframes homeCardIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .panel {
      display: none;
      animation: viewIn .22s ease-out both;
    }
    .panel.active { display: block; }
    .card {
      margin-top: 14px;
      padding: 16px;
      border-radius: 24px;
      background: var(--surface);
      border: 1px solid rgba(215,232,248,.95);
      box-shadow: 0 14px 36px rgba(6,43,85,.08);
    }
    .card-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
      font-size: 17px;
      font-weight: 850;
    }
    .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
    .auth-message {
      margin: 12px 0 0;
      color: var(--red);
      font-size: 13px;
      line-height: 1.55;
    }
    .auth-message[data-tone="ok"] { color: var(--green); }
    .auth-inline-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }
    .link-button {
      min-height: 40px;
      border: 0;
      background: transparent;
      color: var(--wm-blue-deep);
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      font-weight: 850;
      padding: 0;
    }
    .link-button:hover,
    .link-button:focus {
      color: var(--wm-blue);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .field { margin-top: 14px; }
    .label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
    .input {
      width: 100%;
      min-height: 54px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: white;
      padding: 0 15px;
      color: var(--ink);
      font-size: 16px;
      outline: none;
      box-shadow: inset 0 1px 0 rgba(6,43,85,.04);
    }
    .input {
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    .input:hover {
      border-color: #B9DCFA;
      box-shadow: inset 0 1px 0 rgba(6,43,85,.04), 0 8px 20px rgba(0,113,206,.08);
    }
    @media (prefers-reduced-motion: reduce) {
      .input { transition: none; }
    }
    .input:focus {
      border-color: var(--wm-blue);
      box-shadow: 0 0 0 4px rgba(0,113,206,.14);
    }
    .chips {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }
    .chip {
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: white;
      color: var(--ink);
      font-weight: 800;
    }
    :where(button, .chip, .primary, .secondary, .nav-item, .pill, .link-button, .combo-trigger, .date-trigger, .date-shortcut, .detail-lifecycle, .detail-support-link):not(:disabled):active,
    .pressed {
      transform: translateY(1px) scale(.98);
    }
    :where(button, .chip, .primary, .secondary, .nav-item, .pill, .link-button, .combo-trigger, .date-trigger, .date-shortcut, .detail-lifecycle, .detail-support-link):disabled {
      transform: none;
    }
    .primary, .secondary {
      width: 100%;
      min-height: 52px;
      border: 0;
      border-radius: 18px;
      margin-top: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 850;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .primary {
      background: var(--wm-blue);
      color: white;
      box-shadow: 0 16px 34px rgba(0,113,206,.28);
    }
    .secondary {
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      border: 1px solid #B9DCFA;
    }
    .primary[disabled], .secondary[disabled] { opacity: .54; cursor: not-allowed; box-shadow: none; }
    .notice {
      margin-top: 12px;
      padding: 12px 13px;
      border-radius: 18px;
      border: 1px solid #FFE098;
      background: #FFF8DF;
      color: #694700;
      font-size: 13px;
      line-height: 1.55;
    }
    .list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
      min-height: 62px;
      transition: opacity .12s ease;
    }
    .list.is-loading { opacity: .58; }
    .customer-control-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 10px 0 12px;
      align-items: start;
    }
    .customer-control {
      position: relative;
      min-width: 0;
      display: grid;
      gap: 6px;
    }
    .customer-control-label {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.2;
      font-weight: 850;
    }
    .combo-trigger,
    .date-trigger {
      min-width: 0;
      width: 100%;
      min-height: 48px;
      border: 1px solid rgba(185,220,250,.96);
      border-radius: 15px;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 12px;
      background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,250,255,.82));
      color: var(--wm-blue-deep);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.66);
      cursor: pointer;
      font-weight: 900;
      text-align: left;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }
    .combo-trigger > span:first-child,
    .date-trigger > span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .combo-trigger:hover,
    .date-trigger:hover {
      border-color: var(--wm-blue);
      box-shadow: 0 10px 24px rgba(0,113,206,.11);
    }
    .combo-trigger:active,
    .date-trigger:active {
      transform: scale(.98);
    }
    .combo-trigger[aria-expanded="true"],
    .date-trigger[aria-expanded="true"] {
      border-color: rgba(0,113,206,.44);
      box-shadow: 0 0 0 4px rgba(0,113,206,.10);
      background: white;
    }
    .customer-control-icon {
      color: var(--wm-blue);
      font-size: 16px;
      line-height: 1;
      flex: 0 0 auto;
    }
    .customer-control-menu {
      position: absolute;
      z-index: 72;
      top: calc(100% + 8px);
      left: var(--customer-menu-left, 0);
      min-width: 100%;
      width: max-content;
      max-width: min(360px, calc(100vw - 32px));
      max-height: min(320px, 58vh);
      box-sizing: border-box;
      overflow: auto;
      overscroll-behavior: contain;
      display: grid;
      gap: 6px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 18px 46px rgba(6,43,85,.16);
      animation: filterPopoverIn .16s cubic-bezier(.2, 0, .2, 1);
    }
    .customer-control-menu[hidden] { display: none; }
    .date-control .customer-control-menu {
      width: var(--customer-date-menu-width, min(292px, calc(100vw - 24px)));
    }
    @keyframes filterPopoverIn {
      from { opacity: 0; transform: translateY(-5px) scale(.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .combo-option {
      width: 100%;
      min-width: 170px;
      min-height: 38px;
      border: 0;
      border-radius: 12px;
      padding: 9px 11px;
      text-align: left;
      color: var(--ink);
      background: transparent;
      cursor: pointer;
      white-space: nowrap;
      font-size: 13px;
      font-weight: 850;
    }
    .combo-option:hover,
    .combo-option:focus-visible,
    .combo-option.active {
      background: rgba(0,113,206,.10);
      color: var(--wm-blue-deep);
      outline: none;
    }
    .date-shortcuts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .date-shortcut {
      min-height: 38px;
      border: 1px solid #B9DCFA;
      border-radius: 13px;
      background: linear-gradient(180deg, #FFFFFF, #F4FAFF);
      color: var(--wm-blue-deep);
      cursor: pointer;
      font-size: 13px;
      font-weight: 850;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }
    .date-shortcut:hover {
      border-color: var(--wm-blue);
      box-shadow: 0 8px 20px rgba(0,113,206,.12);
    }
    .date-shortcut.active {
      background: var(--wm-blue);
      border-color: var(--wm-blue);
      color: #fff;
      box-shadow: 0 10px 22px rgba(0,113,206,.20);
    }
    .date-shortcut:active { transform: scale(.98); }
    @media (max-width: 380px) {
      .customer-control-row {
        grid-template-columns: minmax(0, 1fr);
      }
    }
    .orders-insight {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin: 4px 0 12px;
    }
    .orders-stat {
      min-height: 70px;
      padding: 10px;
      border: 1px solid rgba(185,220,250,.92);
      border-radius: 18px;
      background: linear-gradient(180deg, #FFFFFF, #F7FBFF);
    }
    .orders-stat span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.25;
    }
    .orders-stat strong {
      display: block;
      margin-top: 7px;
      color: var(--wm-blue-deep);
      font-size: 20px;
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }
    .filter-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: -2px 0 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .clear-filter {
      min-height: 36px;
      border: 1px solid #B9DCFA;
      border-radius: 999px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      padding: 0 12px;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
      white-space: nowrap;
    }
    .list-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 62px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: white;
    }
    button.list-row { cursor: pointer; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
    button.list-row:active { transform: scale(.99); border-color: #A6D4F9; background: var(--wm-blue-soft); }
    .new-order-shell {
      display: grid;
      gap: 12px;
    }
    body[data-active-view="new"] .top-card {
      position: relative;
      top: auto;
    }
    .new-order-head {
      display: grid;
      gap: 8px;
      padding: 0 4px;
    }
    .new-order-head h2 {
      margin: 0;
      font-size: 25px;
      line-height: 1.15;
      font-weight: 920;
      letter-spacing: 0;
    }
    .new-mode-hint {
      margin: 0;
      padding: 11px 13px;
      border: 1px solid rgba(185,220,250,.92);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,248,255,.96));
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }
    .new-order-card {
      position: relative;
      overflow: hidden;
      border-color: rgba(185,220,250,.95);
      background:
        radial-gradient(circle at 100% 0%, rgba(0,113,206,.10), transparent 28%),
        linear-gradient(180deg, #FFFFFF, #F8FCFF);
    }
    .order-mode-panel {
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .18s ease, transform .18s ease;
    }
    .order-mode-panel.active {
      opacity: 1;
      transform: translateY(0);
    }
    .custom-preview {
      margin-top: 12px;
      padding: 14px;
      border: 1px solid rgba(185,220,250,.95);
      border-radius: 20px;
      background: linear-gradient(135deg, #F7FBFF, #FFFFFF);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .custom-preview span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
    }
    .custom-preview strong {
      display: block;
    }
    .discount-corner {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-left: auto;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 820;
      color: #FFFFFF;
      background: linear-gradient(135deg, #0071CE, #0A5FB4);
      box-shadow: 0 3px 10px rgba(0,113,206,.28);
      white-space: nowrap;
    }
    .discount-corner strong {
      display: inline-block;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: .2px;
    }

      margin-top: 4px;
      color: var(--wm-blue-deep);
      font-size: 22px;
      line-height: 1.1;
      font-weight: 920;
      letter-spacing: 0;
    }
    .custom-preview small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      text-align: right;
    }
    .quick-amounts .chip {
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
    }
    .quick-amounts .chip:hover {
      border-color: #A6D4F9;
      box-shadow: 0 9px 20px rgba(0,113,206,.10);
    }
    .quick-amounts .chip.active {
      border-color: var(--wm-blue);
      background: var(--wm-blue);
      color: white;
      box-shadow: 0 12px 24px rgba(0,113,206,.22);
    }
    .payment-methods .chip:disabled {
      opacity: .52;
      cursor: not-allowed;
      transform: none;
    }
    .checkout-summary {
      border-color: rgba(0,113,206,.22);
      background:
        linear-gradient(135deg, rgba(0,113,206,.08), transparent 36%),
        linear-gradient(180deg, #FFFFFF, #F7FBFF);
      scroll-margin-top: 84px;
      scroll-margin-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    #submitError a {
      color: inherit;
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .checkout-summary.confirm-pop {
      animation: confirmPop .26s cubic-bezier(.2, 0, .2, 1) both;
    }
    .order-confirm-backdrop {
      align-items: center;
      padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    }
    .order-confirm-dialog {
      width: min(100%, 430px);
      max-height: min(88vh, 620px);
      overflow: auto;
      margin: 0 auto;
      border-radius: 26px;
      box-shadow: 0 24px 76px rgba(6,43,85,.28);
    }
    .order-confirm-dialog .card-title {
      margin-bottom: 8px;
    }
    .confirm-title {
      margin: 10px 0 0;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
      font-weight: 900;
    }
    .confirm-payable {
      margin: 0;
      color: var(--wm-blue-deep);
      font-size: 20px;
      line-height: 1.2;
      font-weight: 920;
    }
    .order-confirm-actions {
      display: grid;
      grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
      gap: 10px;
      margin-top: 12px;
    }
    .confirm-total-card {
      margin: 12px 0 2px;
      padding: 13px;
      border-radius: 20px;
      border: 1px solid rgba(185,220,250,.95);
      background: white;
      display: grid;
      gap: 7px;
    }
    .confirm-total-card .muted {
      margin: 0;
    }
    .quantity-stepper {
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr) 46px;
      gap: 8px;
      align-items: center;
    }
    .quantity-stepper button {
      min-height: 52px;
      border: 1px solid #B9DCFA;
      border-radius: 17px;
      background: #F4FAFF;
      color: var(--wm-blue-deep);
      font-size: 22px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    }
    .quantity-stepper button:active {
      transform: scale(.96);
    }
    .quantity-stepper button:disabled {
      opacity: .45;
      cursor: not-allowed;
    }
    .quantity-input {
      text-align: center;
      font-weight: 850;
    }
    .balance-meter {
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: #E6F2FC;
    }
    .balance-meter span {
      display: block;
      width: var(--balance-percent, 0%);
      height: 100%;
      border-radius: inherit;
      background: var(--green);
      transition: width .24s ease, background .18s ease;
    }
    .balance-meter.is-low span {
      background: var(--red);
    }
    @keyframes confirmPop {
      from { opacity: .74; transform: translateY(12px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .row-main { min-width: 0; text-align: left; }
    button.row-main {
      width: 100%;
      min-height: 44px;
      border: 0;
      padding: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
    }
    .row-title { display: block; font-weight: 820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .row-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .order-row {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      align-items: stretch;
      padding: 0;
      overflow: hidden;
      border-radius: 20px;
    }
    .order-row::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--wm-blue);
    }
    .order-row.status-pickup::before { background: var(--spark); }
    .order-row.status-done::before { background: var(--green); }
    .order-row.status-closed::before { background: #9AA8B8; }
    .order-row.paid-return-focus {
      border-color: rgba(7,132,92,.42);
      box-shadow: 0 18px 42px rgba(7,132,92,.16);
      background: #FFFFFF;
    }
    .customer-payment-success-layer {
      position: fixed;
      top: 50%;
      left: 50%;
      display: block;
      width: min(calc(100vw - 56px), 156px);
      z-index: 92;
      pointer-events: none;
      opacity: 0;
      transform: translate(-50%, -50%) scale(.96);
      transition: opacity .2s ease, transform .24s cubic-bezier(.2, .9, .2, 1);
    }
    .customer-payment-success-layer[hidden] { display: none; }
    .customer-payment-success-layer.is-showing {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    .customer-payment-success-card {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 100%;
      aspect-ratio: 1 / 1;
      padding: 14px;
      border: 1px solid rgba(7,132,92,.2);
      border-radius: 26px;
      background: rgba(255,255,255,.95);
      box-shadow: 0 18px 42px rgba(12,49,77,.14), 0 8px 20px rgba(7,132,92,.10);
    }
    .customer-payment-success-ripple {
      position: absolute;
      inset: 10px;
      border-radius: 22px;
      background: radial-gradient(circle at 50% 42%, rgba(7,132,92,.12), transparent 58%);
      opacity: .72;
    }
    .customer-payment-success-mark {
      position: relative;
      display: inline-grid;
      place-items: center;
      width: 54px;
      height: 54px;
      border-radius: 999px;
      background: #F2FBF7;
      color: #07845C;
      box-shadow: inset 0 0 0 1px rgba(7,132,92,.12);
    }
    .customer-payment-success-ring {
      width: 48px;
      height: 48px;
      overflow: visible;
    }
    .customer-payment-success-ring circle,
    .customer-payment-success-check {
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .customer-payment-success-ring circle {
      stroke-width: 3;
      opacity: .18;
    }
    .customer-payment-success-check {
      stroke-width: 4.2;
      stroke-dasharray: 34;
      stroke-dashoffset: 34;
    }
    .customer-payment-success-layer.is-showing .customer-payment-success-check {
      animation: customerPaymentCheckDraw .28s .08s cubic-bezier(.16, 1, .3, 1) forwards;
    }
    .customer-payment-success-copy {
      display: grid;
      justify-items: center;
      gap: 2px;
      min-width: 0;
      color: var(--ink);
      text-align: center;
      position: relative;
    }
    .customer-payment-success-copy strong {
      font-size: 14px;
      line-height: 1.2;
      font-weight: 900;
    }
    .customer-payment-success-copy span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    @keyframes customerPaymentCheckDraw {
      to { stroke-dashoffset: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .customer-payment-success-layer,
      .customer-payment-success-card,
      .customer-payment-success-ripple,
      .customer-payment-success-check {
        animation: none !important;
        transition: none !important;
      }
      .customer-payment-success-layer.is-showing,
      .customer-payment-success-layer.is-showing .customer-payment-success-card {
        opacity: 1;
      }
      .customer-payment-success-check {
        stroke-dashoffset: 0;
      }
    }
    .order-row button.row-main {
      display: grid;
      gap: 7px;
      min-height: 86px;
      padding: 11px 11px 10px 16px;
    }
    .order-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }
    .order-title-stack { min-width: 0; }
    .order-amount {
      color: var(--wm-blue-deep);
      font-size: 18px;
      line-height: 1.15;
      font-weight: 900;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .order-meta-line {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      min-width: 0;
      overflow: hidden;
    }
    .order-meta-line > span:last-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .order-paid-return-status {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: #EAF8EF;
      color: #17633A;
      font-size: 12px;
      line-height: 1.3;
      font-weight: 900;
    }
    .status-pill {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      border-radius: 999px;
      padding: 0 9px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }
    .status-pill.tone-pickup { background: #FFF4C7; color: #6C4A00; }
    .status-pill.tone-done { background: #EAF8EF; color: #17633A; }
    .status-pill.tone-closed { background: #F1F5F9; color: #566273; }
    .order-progress {
      display: grid;
      gap: 6px;
    }
    .progress-track {
      height: 6px;
      overflow: hidden;
      border-radius: 999px;
      background: #E6F2FC;
    }
    .progress-bar {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--wm-blue);
      min-width: 6px;
    }
    .order-row.status-pickup .progress-bar { background: var(--spark); }
    .order-row.status-done .progress-bar { background: var(--green); }
    .order-row.status-closed .progress-bar { background: #9AA8B8; }
    .order-row .row-actions {
      justify-content: flex-start;
      flex-wrap: nowrap;
      gap: 6px;
      padding: 8px 10px 10px 16px;
      border-top: 1px solid var(--line);
      background: #FAFDFF;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .order-row .row-actions::-webkit-scrollbar { display: none; }
    .order-card-actions-compact .pill {
      min-height: 32px;
      padding: 0 9px;
      font-size: 12px;
      flex: 0 0 auto;
    }
    .orders-page-card {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 96% 4%, rgba(255,194,32,.18), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FCFF 100%);
    }
    .orders-page-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--wm-blue), var(--green), var(--spark));
      opacity: .82;
    }
    .orders-page-head {
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .orders-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }
    .orders-kicker {
      color: var(--wm-blue);
      font-size: 12px;
      font-weight: 900;
    }
    .orders-copy h2 {
      margin: 0;
      color: var(--text);
      font-size: 18px;
      line-height: 1.2;
      letter-spacing: 0;
    }
    .orders-helper {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .orders-title-actions {
      display: grid;
      justify-items: end;
      gap: 8px;
      flex: 0 0 auto;
    }
    .orders-refresh {
      min-height: 36px;
      border: 1px solid #B9DCFA;
      border-radius: 999px;
      background: rgba(255,255,255,.88);
      color: var(--wm-blue-deep);
      padding: 0 12px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .16s cubic-bezier(.2, 0, .2, 1), border-color .16s ease, background .16s ease, box-shadow .16s ease;
    }
    .orders-refresh:hover {
      border-color: var(--wm-blue);
      box-shadow: 0 8px 20px rgba(0,113,206,.10);
    }
    .orders-refresh:active { transform: scale(.98); }
    .orders-filter-card {
      position: relative;
      margin: 0 0 10px;
      padding: 10px;
      border: 1px solid rgba(185,220,250,.95);
      border-radius: 18px;
      background: rgba(255,255,255,.72);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    }
    .orders-page-card .filter-summary {
      margin: 10px 0 0;
    }
    .orders-list {
      margin-top: 10px;
      gap: 9px;
    }
    .orders-list .order-row {
      animation: orderCardIn .22s cubic-bezier(0, 0, .2, 1) both;
      animation-delay: var(--row-delay, 0ms);
    }
    .orders-list .order-row:hover {
      border-color: rgba(0,113,206,.24);
      box-shadow: 0 14px 30px rgba(6,43,85,.10);
      transform: translateY(-1px);
    }
    @keyframes orderCardIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .bills-page-card {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 100% 0%, rgba(0,113,206,.10), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FCFF 100%);
    }
    .bills-page-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--wm-blue), var(--spark), var(--green));
      opacity: .78;
    }
    .bills-page-head {
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .bills-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }
    .bills-kicker {
      color: var(--wm-blue);
      font-size: 12px;
      font-weight: 900;
    }
    .bills-copy h2 {
      margin: 0;
      color: var(--text);
      font-size: 20px;
      line-height: 1.2;
      letter-spacing: 0;
    }
    .bills-helper {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }
    .bills-title-actions {
      display: grid;
      grid-template-columns: repeat(2, max-content);
      justify-items: end;
      gap: 8px;
      flex: 0 0 auto;
    }
    .bills-refresh {
      min-height: 36px;
      border: 1px solid #B9DCFA;
      border-radius: 999px;
      background: rgba(255,255,255,.86);
      color: var(--wm-blue-deep);
      padding: 0 12px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .16s cubic-bezier(.2, 0, .2, 1), border-color .16s ease, background .16s ease, box-shadow .16s ease;
    }
    .bills-refresh:hover {
      border-color: var(--wm-blue);
      box-shadow: 0 8px 20px rgba(0,113,206,.10);
    }
    .bills-refresh.active {
      background: var(--wm-blue);
      border-color: var(--wm-blue);
      color: #fff;
    }
    .bills-refresh:active { transform: translateY(1px) scale(.98); }
    .bills-insight {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 4px 0 12px;
    }
    .bills-stat {
      position: relative;
      overflow: hidden;
      min-height: 74px;
      padding: 11px;
      border: 1px solid rgba(185,220,250,.92);
      border-radius: 18px;
      background: linear-gradient(180deg, #FFFFFF, #F7FBFF);
      transition: transform .18s cubic-bezier(.2, 0, .2, 1), border-color .18s ease, box-shadow .18s ease;
    }
    .bills-stat::after {
      content: "";
      position: absolute;
      inset: auto 10px 9px 10px;
      height: 3px;
      border-radius: 999px;
      background: rgba(0,113,206,.12);
    }
    .bills-stat.emphasis {
      background: linear-gradient(135deg, #FFFFFF, #EEF7FF);
      border-color: rgba(166,212,249,.98);
    }
    .bills-stat.emphasis::after { background: linear-gradient(90deg, var(--wm-blue), #70B9F3); }
    .bills-stat:hover {
      border-color: rgba(0,113,206,.25);
      box-shadow: 0 12px 28px rgba(6,43,85,.08);
      transform: translateY(-1px);
    }
    .bills-stat span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.25;
    }
    .bills-stat strong {
      display: block;
      margin-top: 7px;
      color: var(--wm-blue-deep);
      font-size: 20px;
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }
    .bills-reconcile-panel {
      display: grid;
      gap: 10px;
      margin: 0 0 12px;
      padding: 12px;
      border: 1px solid rgba(185,220,250,.92);
      border-radius: 18px;
      background: #F8FCFF;
    }
    .bills-reconcile-panel[hidden] { display: none; }
    .bills-reconcile-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text);
    }
    .bills-reconcile-title strong {
      font-size: 14px;
      font-weight: 900;
    }
    .bills-reconcile-title span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      text-align: right;
    }
    .bills-reconcile-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .bills-reconcile-grid div {
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 14px;
      background: #fff;
    }
    .bills-reconcile-grid span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
    }
    .bills-reconcile-grid strong {
      display: block;
      margin-top: 6px;
      color: var(--text);
      font-size: 15px;
      line-height: 1.15;
      font-weight: 900;
      overflow-wrap: anywhere;
    }
    .bills-filter-card {
      margin: 0 0 12px;
      padding: 11px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 20px;
      background: rgba(255,255,255,.78);
      box-shadow: 0 10px 28px rgba(6,43,85,.06);
    }
    #view-bills .filter-summary {
      margin: 9px 0 0;
    }
    .bill-row {
      position: relative;
      display: block;
      padding: 0;
      overflow: hidden;
      border-radius: 20px;
      animation: billRowIn .2s cubic-bezier(0, 0, .2, 1) both;
      transition: transform .18s cubic-bezier(.2, 0, .2, 1), border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .bill-row:hover {
      border-color: rgba(0,113,206,.20);
      box-shadow: 0 12px 30px rgba(6,43,85,.09);
      transform: translateY(-1px);
    }
    .bill-row::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--wm-blue);
    }
    .bill-row.tone-credit::before { background: var(--green); }
    .bill-row.tone-debit::before { background: var(--red); }
    .bill-row.tone-freeze::before { background: #6B8DB5; }
    .bill-row .row-main {
      display: grid;
      gap: 8px;
      min-height: 86px;
      padding: 13px 12px 13px 54px;
    }
    .bill-row-indicator {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 15px;
      font-weight: 900;
    }
    .bill-row.tone-credit .bill-row-indicator { background: #EAF8EF; color: #17633A; }
    .bill-row.tone-debit .bill-row-indicator { background: #FFF0EE; color: #8D241D; }
    .bill-row.tone-freeze .bill-row-indicator { background: #EEF6FF; color: #204C78; }
    .bill-time-chip {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: #F4FAFF;
      color: var(--muted);
      font-size: 11px;
      font-weight: 760;
    }
    .bill-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }
    .bill-title-stack { min-width: 0; }
    .bill-amount {
      font-size: 18px;
      line-height: 1.15;
      font-weight: 900;
      white-space: nowrap;
    }
    .bill-amount.tone-credit { color: var(--green); }
    .bill-amount.tone-debit { color: var(--red); }
    .bill-amount.tone-freeze { color: var(--wm-blue-deep); }
    .bill-meta-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }
    .bill-type {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      border-radius: 999px;
      padding: 0 9px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }
    .bill-type.tone-credit { background: #EAF8EF; color: #17633A; }
    .bill-type.tone-debit { background: #FFF0EE; color: #8D241D; }
    .bill-type.tone-freeze { background: #EEF6FF; color: #204C78; }
    @keyframes billRowIn {
      from { opacity: 0; transform: translateY(7px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 28px;
      border-radius: 999px;
      padding: 0 10px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }
    .row-actions .pill { min-height: 36px; padding: 0 12px; }
    a.pill { text-decoration: none; }
    .pill.danger {
      background: #FFF0EE;
      color: #8D241D;
    }
    button.pill {
      border: 0;
      cursor: pointer;
      touch-action: manipulation;
    }
    button.pill:active { transform: translateY(1px); }
    button.pill[disabled] {
      cursor: not-allowed;
      opacity: .54;
      transform: none;
    }
    button.pill.is-busy {
      opacity: .72;
      pointer-events: none;
    }
    .empty {
      padding: 22px 16px;
      border: 1px dashed #B9DCFA;
      border-radius: 20px;
      background: #F8FCFF;
      text-align: center;
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
    }
    .orders-empty strong {
      display: block;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.4;
    }
    .orders-empty span {
      display: block;
      margin-top: 5px;
    }
    .empty-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: grid;
      align-items: end;
      padding: 18px 10px max(10px, env(safe-area-inset-bottom));
      background: rgba(6, 43, 85, .36);
    }
    .detail-dialog {
      --detail-footer-safe-space: calc(70px + env(safe-area-inset-bottom));
      width: min(100%, 560px);
      max-height: 88vh;
      max-height: min(88vh, 720px);
      max-height: min(88dvh, 720px);
      margin: 0 auto;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto auto auto minmax(0, 1fr) auto;
      border-radius: 24px 24px 0 0;
      border: 1px solid rgba(215,232,248,.96);
      background: #FFFFFF;
      box-shadow: 0 22px 72px rgba(6,43,85,.28);
    }
    .export-dialog-backdrop {
      align-items: center;
      padding: 18px;
    }
    .export-dialog {
      width: min(100%, 560px);
      max-height: min(88vh, 680px);
      max-height: min(88dvh, 680px);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      border-radius: 24px;
      border: 1px solid rgba(215,232,248,.96);
      background: #FFFFFF;
      box-shadow: 0 22px 72px rgba(6,43,85,.28);
    }
    .export-dialog-body {
      overflow: auto;
      padding: 14px;
      display: grid;
      gap: 12px;
    }
    .export-format-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .export-format-row label,
    .export-field-grid label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #F8FCFF;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
    }
    .export-field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .export-dialog-footer {
      position: static;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }
    @media (max-width: 480px) {
      .export-field-grid {
        grid-template-columns: 1fr;
      }
      .export-dialog-footer {
        flex-direction: column-reverse;
      }
      .export-dialog-footer .primary,
      .export-dialog-footer .secondary {
        width: 100%;
      }
    }
    .detail-header {
      position: sticky;
      top: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px 10px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
    }
    .detail-kicker {
      margin: 0 0 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .detail-header h2 {
      margin: 0;
      font-size: 17px;
      line-height: 1.2;
      letter-spacing: 0;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .dialog-close {
      min-width: 48px;
      min-height: 38px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-weight: 850;
      cursor: pointer;
      flex: 0 0 auto;
    }
    .detail-body {
      min-height: 0;
      overflow: auto;
      display: grid;
      gap: 8px;
      padding: 8px 12px 10px;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .detail-body-safe-area {
      scroll-padding-bottom: var(--detail-footer-safe-space);
      padding-bottom: var(--detail-footer-safe-space);
    }
    .detail-dialog .notice {
      margin: 10px 12px;
    }
    .detail-sheet-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(185,220,250,.95);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(0,113,206,.08), #FFFFFF 64%);
    }
    .detail-summary-copy {
      min-width: 0;
      display: grid;
      gap: 5px;
    }
    .detail-summary-title {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .detail-summary-title .status-pill {
      flex: 0 0 auto;
    }
    .detail-summary-progress {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 800;
    }
    .detail-summary-amount {
      color: var(--wm-blue-deep);
      font-size: 20px;
      line-height: 1;
      font-weight: 920;
      white-space: nowrap;
    }
    .detail-cell-list,
    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .detail-core-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
    }
    .detail-item {
      min-height: 56px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #F8FCFF;
    }
    .detail-core-list .detail-item {
      min-height: 44px;
      padding: 7px 9px;
      border-radius: 12px;
    }
    .detail-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
    .detail-value { display: block; margin-top: 5px; font-size: 14px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
    .detail-value-with-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .detail-order-id-text {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .copy-order-id {
      width: auto;
      min-height: 30px;
      margin-top: 0;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 12px;
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .detail-core-list .detail-label { font-size: 10px; }
    .detail-core-list .detail-value { margin-top: 3px; font-size: 13px; line-height: 1.18; }
    .detail-support-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px 10px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #F7FAFF;
      color: var(--ink);
    }
    .detail-support-panel strong { display: block; font-size: 13px; font-weight: 900; color: var(--wm-blue-deep); }
    .detail-support-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .detail-support-panel .detail-support-note { grid-column: 1 / -1; margin-top: 0; }
    .detail-support-link { min-height: 38px; white-space: nowrap; }
    .detail-lifecycle {
      min-height: 42px;
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #FFFFFF;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: transparent;
      color: var(--wm-blue-deep);
      font-size: 13px;
      font-weight: 900;
      text-align: left;
      cursor: pointer;
      scroll-margin-bottom: var(--detail-footer-safe-space);
    }
    .detail-lifecycle::after {
      content: "展开";
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .detail-lifecycle[aria-expanded="true"]::after { content: "收起"; }
    .detail-lifecycle-panel {

      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #FFFFFF;
      scroll-margin-bottom: var(--detail-footer-safe-space);
    }
    .detail-unit-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .detail-unit-row { display: grid; grid-template-columns: minmax(48px, auto) minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 50px; }
    .detail-unit-row .detail-value { min-width: 0; margin-top: 0; overflow-wrap: normal; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .detail-unit-row .secondary { width: auto; min-width: 82px; min-height: 34px; margin-top: 0; white-space: nowrap; padding: 0 10px; }
    .detail-footer {
      border-top: 1px solid var(--line);
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
      background: rgba(255,255,255,.98);
      box-shadow: 0 -12px 28px rgba(6,43,85,.08);
    }
    .detail-footer-safe-area {
      min-height: var(--detail-footer-safe-space);
    }
    .detail-footer[hidden] {
      display: none;
    }
    .detail-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
      gap: 8px;
    }
    .detail-actions .primary, .detail-actions .secondary { margin-top: 0; text-align: center; }
    .profile-page {
      animation: viewIn .2s cubic-bezier(.2, 0, .2, 1);
    }
    .profile-grid {
      display: grid;
      gap: 12px;
    }
    .profile-section-card {
      position: relative;
      overflow: hidden;
      transform: translateZ(0);
      transition: transform .18s cubic-bezier(.2, 0, .2, 1), box-shadow .18s cubic-bezier(.2, 0, .2, 1), border-color .18s ease;
      animation: profileCardIn .22s cubic-bezier(0, 0, .2, 1) both;
    }
    .profile-section-card:nth-child(2) { animation-delay: .03s; }
    .profile-section-card:nth-child(4) { animation-delay: .06s; }
    .profile-section-card:nth-child(5) { animation-delay: .09s; }
    .profile-section-card:focus-within {
      border-color: rgba(0,113,206,.36);
      box-shadow: 0 18px 48px rgba(6,43,85,.12);
      transform: translateY(-1px);
    }
    .profile-summary-card {
      background:
        radial-gradient(circle at top right, rgba(0,113,206,.12), transparent 34%),
        linear-gradient(135deg, #FFFFFF 0%, #F6FBFF 100%);
      padding: 12px;
    }
    .profile-card-head {
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 14px;
    }
    .profile-card-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }
    .profile-kicker {
      color: var(--wm-blue);
      font-size: 12px;
      font-weight: 900;
    }
    .profile-card-copy h2 {
      margin: 0;
      color: var(--text);
      font-size: 18px;
      line-height: 1.25;
      letter-spacing: 0;
    }
    .profile-helper {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }
    .profile-step-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      max-width: 100%;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(0,113,206,.08);
      color: var(--wm-blue-deep);
      font-size: 12px;
      font-weight: 900;
      overflow-wrap: anywhere;
      white-space: nowrap;
    }
    .profile-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    .profile-account-strip {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
    }
    .profile-identity-strip {
      display: grid;
      gap: 8px;
      align-items: start;
    }
    .profile-identity-main {
      min-width: 0;
      display: grid;
      gap: 5px;
    }
    .profile-identity-main strong {
      color: var(--text);
      font-size: 22px;
      line-height: 1.15;
      overflow-wrap: anywhere;
    }
    .profile-identity-main span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }
    .profile-status-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 6px;
      min-width: 0;
    }
    .profile-funds-summary {
      display: grid;
      gap: 10px;
    }
    .profile-funds-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    .profile-recharge-card {
      border-color: rgba(0,113,206,.24);
      background:
        radial-gradient(circle at top right, rgba(0,113,206,.12), transparent 30%),
        linear-gradient(135deg, #FFFFFF 0%, #F4FAFF 100%);
    }
    .profile-recharge-balance {
      display: grid;
      gap: 4px;
      padding: 12px 14px;
      margin: 2px 0 12px;
      border-radius: 18px;
      border: 1px solid rgba(0,113,206,.18);
      background: rgba(255,255,255,.82);
    }
    .profile-recharge-balance span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .profile-recharge-balance strong {
      color: var(--wm-blue-deep);
      font-size: 26px;
      line-height: 1.12;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }
    .profile-settings-button {
      min-height: 66px;
      width: 100%;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 11px 13px;
      border: 1px solid rgba(0,113,206,.18);
      border-radius: 20px;
      background: linear-gradient(135deg, #FFFFFF, #F2F8FF);
      color: var(--wm-blue-deep);
      box-shadow: 0 12px 28px rgba(6,43,85,.08);
      text-align: left;
      cursor: pointer;
      transition: transform .16s cubic-bezier(.2, 0, .2, 1), border-color .16s ease, box-shadow .16s ease;
    }
    .profile-settings-button:not(:disabled):active {
      transform: translateY(1px) scale(.995);
    }
    .profile-settings-button-icon {
      width: 38px;
      height: 38px;
      display: inline-grid;
      place-items: center;
      border-radius: 15px;
      background: var(--wm-blue);
      color: #FFFFFF;
      flex: 0 0 auto;
    }
    .profile-settings-button-copy {
      min-width: 0;
      display: grid;
      gap: 3px;
    }
    .profile-settings-button-copy strong {
      color: var(--text);
      font-size: 15px;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }
    .profile-settings-button-copy span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }
    .profile-settings-button-arrow {
      color: var(--wm-blue);
      font-size: 24px;
      font-weight: 900;
      line-height: 1;
    }
    .profile-settings-button-icon svg {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }
    .profile-recharge-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
    }
    .profile-recharge-note {
      display: grid;
      gap: 6px;
      padding: 12px;
      border-radius: 18px;
      border: 1px solid rgba(43,185,111,.18);
      background: #F4FBF7;
      color: #17633A;
      font-size: 13px;
      line-height: 1.45;
    }
    .profile-recharge-actions {
      margin-top: 0;
      align-self: end;
    }
    .profile-settings-head {
      display: grid;
      gap: 6px;
      padding: 14px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 20px;
      background: rgba(255,255,255,.78);
    }
    .profile-settings-head strong {
      color: var(--text);
      font-size: 18px;
      line-height: 1.25;
    }
    .profile-settings-head span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }
    .profile-line {
      min-width: 0;
      padding: 12px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 18px;
      background: rgba(255,255,255,.78);
      transition: background .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, 0, .2, 1);
    }
    .profile-line:hover {
      background: #FFFFFF;
      border-color: rgba(0,113,206,.22);
      transform: translateY(-1px);
    }
    .profile-line span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .profile-line strong {
      display: block;
      margin-top: 7px;
      color: var(--text);
      font-size: 16px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }
    .profile-status {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      width: fit-content;
      max-width: 100%;
      border-radius: 999px;
      padding: 0 10px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 12px;
      font-weight: 900;
      overflow-wrap: anywhere;
      transition: background .18s ease, color .18s ease, transform .18s cubic-bezier(.2, 0, .2, 1);
    }
    .profile-status.verified { background: #EAF8EF; color: #17633A; }
    .profile-status.unverified { background: #FFF4C7; color: #6C4A00; }
    .profile-status.unbound { background: #EDF3FA; color: #526A83; }
    .profile-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 2px;
    }
    .profile-actions-sticky {
      position: sticky;
      bottom: calc(8px + env(safe-area-inset-bottom));
      z-index: 3;
      margin: 12px -2px -6px;
      padding: 10px 0 calc(6px + env(safe-area-inset-bottom));
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(248,252,255,0), rgba(248,252,255,.98) 36%, rgba(248,252,255,.98));
      backdrop-filter: blur(12px);
    }
    .profile-settings-layer[hidden] {
      display: none !important;
    }
    .profile-settings-layer {
      --profile-settings-viewport-height: 100dvh;
      --profile-settings-available-height: 100dvh;
      --profile-settings-bottom-reserve: calc(88px + env(safe-area-inset-bottom));
      position: fixed;
      inset: 0;
      z-index: 96;
      display: grid;
      align-items: end;
      padding: max(16px, env(safe-area-inset-top)) 10px 0;
      min-height: 0;
    }
    .profile-settings-backdrop {
      position: absolute;
      inset: 0;
      border: 0;
      background: rgba(6,43,85,.42);
      backdrop-filter: blur(8px);
      cursor: pointer;
    }
    .profile-settings-modal {
      position: relative;
      width: min(100%, 640px);
      height: min(var(--profile-settings-available-height, 100dvh), 760px);
      max-height: 92vh;
      max-height: min(var(--profile-settings-available-height, 100dvh), 760px);
      margin: 0 auto;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      border: 1px solid rgba(215,232,248,.96);
      border-radius: 28px 28px 0 0;
      background: #FFFFFF;
      box-shadow: 0 26px 84px rgba(6,43,85,.32);
      animation: profileSettingsIn .2s cubic-bezier(.2, 0, .2, 1) both;
    }
    .profile-settings-bar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      padding: 15px 15px 12px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(14px);
    }
    .profile-settings-title {
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    .profile-settings-title h2 {
      margin: 0;
      color: var(--text);
      font-size: 20px;
      line-height: 1.2;
      letter-spacing: 0;
    }
    .profile-settings-title p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }
    .profile-settings-close {
      width: 44px;
      height: 44px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 15px;
      background: var(--wm-blue-soft);
      color: var(--wm-blue-deep);
      font-size: 24px;
      font-weight: 900;
      line-height: 1;
      cursor: pointer;
    }
    .profile-settings-body {
      min-height: 0;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 12px;
      padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
      scroll-padding: 88px 0 calc(148px + env(safe-area-inset-bottom));
      background: linear-gradient(180deg, #F8FCFF 0%, #FFFFFF 100%);
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .profile-settings-modal[data-active-settings-tab="username"] .profile-settings-head,
    .profile-settings-modal[data-active-settings-tab="phone"] .profile-settings-head,
    .profile-settings-modal[data-active-settings-tab="password"] .profile-settings-head {
      padding: 10px 12px;
      gap: 3px;
    }
    .profile-settings-modal[data-active-settings-tab="username"] .profile-settings-head strong,
    .profile-settings-modal[data-active-settings-tab="phone"] .profile-settings-head strong,
    .profile-settings-modal[data-active-settings-tab="password"] .profile-settings-head strong {
      font-size: 16px;
    }
    .profile-settings-modal[data-active-settings-tab="username"] .profile-settings-head span,
    .profile-settings-modal[data-active-settings-tab="phone"] .profile-settings-head span,
    .profile-settings-modal[data-active-settings-tab="password"] .profile-settings-head span {
      font-size: 12px;
      line-height: 1.35;
    }
    .profile-settings-tabs {
      position: sticky;
      top: 0;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(237,247,255,.94);
      backdrop-filter: blur(12px);
    }
    .profile-settings-tab {
      min-height: 42px;
      border: 0;
      border-radius: 14px;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .profile-settings-tab[aria-selected="true"] {
      background: #FFFFFF;
      color: var(--wm-blue-deep);
      box-shadow: 0 8px 20px rgba(0,113,206,.12);
    }
    .profile-settings-panels {
      display: grid;
      gap: 12px;
      min-height: 0;
      overflow: hidden;
    }
    .profile-settings-tabpanel {
      display: grid;
      gap: 12px;
      min-height: 0;
      overflow: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      scroll-padding: 16px 0 var(--profile-settings-bottom-reserve);
      padding-bottom: var(--profile-settings-bottom-reserve);
    }
    .profile-settings-tabpanel.active {
      overflow: auto;
    }
    .profile-settings-tabpanel[hidden] {
      display: none !important;
    }
    .profile-settings-body .profile-section-card {
      overflow: visible;
      box-shadow: 0 10px 28px rgba(6,43,85,.08);
      animation: none;
    }
    .profile-settings-tabpanel .profile-message {
      scroll-margin-bottom: calc(128px + env(safe-area-inset-bottom));
    }
    .profile-settings-tabpanel .field,
    .profile-settings-tabpanel .input {
      scroll-margin-top: 16px;
      scroll-margin-bottom: calc(128px + env(safe-area-inset-bottom));
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-bar {
      padding: 9px 12px 8px;
      gap: 8px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-title {
      gap: 2px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-title h2 {
      font-size: 18px;
      line-height: 1.15;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-title p,
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-head {
      display: none;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-close {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      font-size: 22px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-body {
      gap: 7px;
      padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-tabs {
      gap: 4px;
      padding: 3px;
      border-radius: 16px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-tab {
      min-height: 38px;
      border-radius: 13px;
      font-size: 12px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-settings-tabpanel {
      gap: 8px;
      padding-bottom: calc(76px + env(safe-area-inset-bottom));
      scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-section-card {
      padding: 12px;
      border-radius: 20px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-card-head {
      margin-bottom: 6px;
      gap: 8px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-card-copy {
      gap: 2px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-card-copy h2 {
      font-size: 17px;
      line-height: 1.15;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-card-copy p {
      font-size: 12px;
      line-height: 1.25;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-step-pill {
      min-height: 30px;
      padding: 0 10px;
      font-size: 11px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .field {
      margin-top: 7px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .label {
      margin-bottom: 5px;
      font-size: 12px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .input {
      min-height: 48px;
      border-radius: 16px;
      padding: 10px 14px;
    }
    .profile-settings-modal.profile-settings-ultra-compact .profile-actions-sticky {
      bottom: calc(4px + env(safe-area-inset-bottom));
      margin: 8px -2px -4px;
      padding: 8px 0 calc(6px + env(safe-area-inset-bottom));
    }
    #profileEmailForm.profile-email-verified .field,
    #profileEmailForm.profile-email-verified #profileEmailActions {
      display: none;
    }
    #profileEmailForm.profile-email-verified #profileEmailBoundNotice {
      margin-top: 0;
    }
    #profilePhoneBindForm.profile-phone-bound #profilePhoneBoundNotice {
      margin-top: 0;
    }
    body[data-active-view="profile"] .profile-grid {
      gap: 10px;
    }
    body[data-active-view="profile"] .profile-summary-card,
    body[data-active-view="profile"] .profile-recharge-card {
      padding: 12px;
    }
    body[data-active-view="profile"] .profile-summary-card .profile-message {
      display: none;
    }
    body[data-active-view="profile"] .profile-account-strip {
      align-items: center;
    }
    body[data-active-view="profile"] .profile-identity-main strong {
      font-size: 20px;
    }
    body[data-active-view="profile"] .profile-recharge-card .profile-card-head {
      margin-bottom: 8px;
    }
    body[data-active-view="profile"] .profile-recharge-card .profile-helper {
      display: none;
    }
    body[data-active-view="profile"] .profile-recharge-balance {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      margin: 0 0 8px;
    }
    body[data-active-view="profile"] .profile-recharge-balance strong {
      font-size: 21px;
      text-align: right;
    }
    body[data-active-view="profile"] .profile-recharge-body {
      gap: 8px;
    }
    body[data-active-view="profile"] .profile-recharge-note {
      margin-top: 8px;
      padding: 8px 10px;
      font-size: 12px;
      line-height: 1.3;
    }
    body[data-active-view="profile"] .profile-recharge-note span {
      display: none;
    }
    body[data-active-view="profile"] .profile-recharge-actions .primary,
    body[data-active-view="profile"] .profile-recharge-actions .secondary {
      min-height: 48px;
    }
    .profile-wallet-card {
      grid-column: 1 / -1;
    }
    .payment-methods {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 12px 0;
    }
    .payment-methods button.active {
      border-color: var(--green);
      color: var(--green);
      background: #EAF8EF;
    }
    .payment-intent-panel {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(0,113,206,.24);
      border-radius: 22px;
      background:
        radial-gradient(circle at 100% 0%, rgba(43,185,111,.12), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F3FAFF 100%);
      margin-top: 12px;
      box-shadow: 0 16px 38px rgba(6,43,85,.10);
    }
    .payment-intent-panel[hidden] {
      display: none;
    }
    .payment-intent-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }
    .payment-intent-kicker {
      color: var(--wm-blue);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0;
    }
    .payment-intent-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: #FFF4C7;
      color: #6C4A00;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .payment-intent-panel.is-paid .payment-intent-status {
      background: #EAF8EF;
      color: #17633A;
    }
    .payment-intent-panel.is-expired .payment-intent-status {
      background: #F1F5F9;
      color: #566273;
    }
    .payment-amount-block {
      display: grid;
      gap: 6px;
      padding: 16px;
      border-radius: 20px;
      border: 1px solid rgba(0,113,206,.18);
      background: rgba(255,255,255,.92);
    }
    .payment-amount-block span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .payment-amount-block strong {
      color: var(--wm-blue-deep);
      font-size: clamp(30px, 10vw, 44px);
      line-height: 1;
      font-weight: 940;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }
    .payment-amount-block small {
      color: #17633A;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 760;
    }
    .payment-amount-details {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .payment-amount-details[hidden] {
      display: none;
    }
    .payment-amount-detail {
      min-width: 0;
      padding: 9px 10px;
      border: 1px solid rgba(0,113,206,.16);
      border-radius: 14px;
      background: rgba(255,255,255,.78);
    }
    .payment-amount-detail span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.2;
    }
    .payment-amount-detail strong {
      display: block;
      margin-top: 4px;
      color: var(--wm-blue-deep);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }
    @media (max-width: 380px) {
      .payment-amount-details {
        grid-template-columns: minmax(0, 1fr);
      }
    }
    .payment-action-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }
    .payment-action-grid .primary,
    .payment-action-grid .secondary {
      margin-top: 0;
      text-align: center;
      min-height: 52px;
    }
    .payment-wechat-fallback {
      margin: 0;
      padding: 10px 12px;
      border: 1px solid rgba(252,185,44,.36);
      border-radius: 16px;
      background: #FFF7DF;
      color: #6C4A00;
      font-size: 13px;
      line-height: 1.5;
      font-weight: 820;
    }
    .payment-wechat-fallback[hidden] {
      display: none;
    }
    .payment-qr-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    .payment-qr-card {
      display: grid;
      gap: 8px;
      justify-items: center;
      padding: 12px;
      border: 1px solid rgba(215,232,248,.95);
      border-radius: 18px;
      background: rgba(255,255,255,.86);
      text-align: center;
    }
    .payment-qr-card span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .payment-payee-card {
      display: grid;
      gap: 9px;
      padding: 12px;
      border: 1px solid rgba(185,220,250,.95);
      border-radius: 18px;
      background: #F7FBFF;
    }
    .payment-payee-card[hidden] {
      display: none;
    }
    .payment-payee-row {
      display: grid;
      grid-template-columns: minmax(68px, .55fr) minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-width: 0;
    }
    .payment-payee-row span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
      font-weight: 850;
    }
    .payment-payee-row strong {
      min-width: 0;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.35;
      font-weight: 880;
      overflow-wrap: anywhere;
    }
    .payment-copy {
      min-height: 34px;
      padding: 6px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 850;
    }
    .payment-steps {
      margin: 0;
      padding-left: 19px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }
    .payment-arrival-state {
      display: flex;
      align-items: center;
      min-height: 40px;
      padding: 9px 11px;
      border-radius: 16px;
      background: #EAF8EF;
      color: #17633A;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 820;
    }
    .pay-page-shell {
      display: grid;
      gap: 14px;
      max-width: 720px;
      margin: 0 auto;
    }
    .pay-page-card {
      display: grid;
      gap: 14px;
      border-color: rgba(43,185,111,.24);
      background:
        radial-gradient(circle at top right, rgba(43,185,111,.13), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F5FBFF 100%);
    }
    .pay-page-head {
      display: grid;
      gap: 6px;
    }
    .pay-page-kicker {
      color: var(--green);
      font-size: 12px;
      font-weight: 920;
    }
    .pay-page-head h2 {
      margin: 0;
      color: var(--wm-blue-deep);
      font-size: clamp(26px, 8vw, 42px);
      line-height: 1.08;
      font-weight: 950;
    }
    .pay-page-panel {
      margin-top: 0;
      padding: clamp(16px, 4vw, 24px);
    }
    .pay-page-panel .payment-amount-block {
      padding: clamp(18px, 5vw, 28px);
    }
    .pay-page-panel .payment-amount-block strong {
      font-size: clamp(40px, 15vw, 70px);
    }
    .pay-page-return {
      justify-self: start;
      text-decoration: none;
    }
    .pay-page-error {
      color: var(--red);
      font-size: 14px;
      font-weight: 850;
    }
    .payment-qr {
      width: min(220px, 76vw);
      max-width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
    }
    .profile-actions .primary,
    .profile-actions .secondary {
      margin-top: 0;
    }
    .profile-actions button {

      transition: transform .16s cubic-bezier(.2, 0, .2, 1), box-shadow .16s ease, opacity .16s ease;
    }
    .profile-actions button:not(:disabled):active {
      transform: translateY(1px) scale(.99);
    }
    .profile-actions button.is-busy {
      opacity: .82;
      cursor: wait;
    }
    .profile-actions button.is-busy::after {
      content: "";
      display: inline-block;
      width: 12px;
      height: 12px;
      margin-left: 8px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      vertical-align: -2px;
      animation: profileSpin .72s linear infinite;
    }
    .profile-message {
      display: none;
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }
    .profile-message.show,
    .profile-message:not(:empty) {
      display: block;
      animation: profileMessageIn .18s cubic-bezier(0, 0, .2, 1);
    }
    .profile-message.error { color: var(--red); }
    .profile-message.ok { color: var(--green); }
    .profile-message.warn { color: #9A6100; }
    .profile-security-gate {
      display: grid;
      gap: 3px;
      padding: 12px 14px;
      border-radius: 18px;
      border: 1px solid #FFE59A;
      background: linear-gradient(135deg, #FFF9DF, #FFF4C7);
      color: #6C4A00;
      font-size: 13px;
      line-height: 1.5;
      box-shadow: 0 10px 24px rgba(108,74,0,.08);
      animation: profileMessageIn .2s cubic-bezier(0, 0, .2, 1);
    }
    .profile-security-gate strong {
      color: #5A3B00;
      font-size: 14px;
      font-weight: 900;
    }
    .profile-form-disabled {
      opacity: .7;
      background: #F8FAFC;
    }
    .profile-form-disabled input,
    .profile-form-disabled button {
      cursor: not-allowed;
    }
    @keyframes profileCardIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes profileMessageIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes profileSpin {
      to { transform: rotate(360deg); }
    }
    @keyframes profileSettingsIn {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .login-card {
      margin-top: 18px;
      padding: 18px;
      border-radius: 28px;
      background: var(--surface);
      border: 1px solid rgba(215,232,248,.95);
      box-shadow: var(--shadow);
    }
    .segmented {
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding: 4px;
      border-radius: 16px;
      background: var(--wm-blue-soft);
      gap: 4px;
    }
    .segment {
      min-height: 40px;
      border: 0;
      border-radius: 13px;
      background: transparent;
      color: var(--muted);
      font-weight: 850;
    }
    .segment.active {
      background: white;
      color: var(--wm-blue-deep);
      box-shadow: 0 8px 24px rgba(6,43,85,.08);
    }
    .auth-method-tabs { margin-top: 14px; }
    .password-reset-panel {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(185,220,250,.7);
    }
    .sms-code-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(104px, .42fr);
      gap: 10px;
      align-items: end;
    }
    .sms-code-row .field { margin-top: 0; }
    .sms-code-row .secondary {
      min-height: 54px;
      margin-top: 0;
      border-radius: 18px;
      white-space: nowrap;
      padding: 0 12px;
    }
    .password-field {
      position: relative;
    }
    .password-field .input {
      padding-right: 48px;
    }
    .password-toggle {
      position: absolute;
      right: 6px;
      top: 0;
      bottom: 0;
      margin: auto 0;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      border-radius: 12px;
      z-index: 2;
    }
    .password-toggle:hover,
    .password-toggle:focus-visible {
      color: var(--wm-blue);
      background: rgba(0,113,206,.08);
    }
    .password-toggle svg {
      width: 20px;
      height: 20px;
      pointer-events: none;
    }
    .password-toggle .icon-eye-off { display: none; }
    .password-toggle.visible .icon-eye { display: none; }
    .password-toggle.visible .icon-eye-off { display: block; }
    .auth-reset-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .auth-reset-actions .primary,
    .auth-reset-actions .secondary {
      margin-top: 14px;
    }
    @media (max-width: 360px) {
      .sms-code-row { grid-template-columns: 1fr; }
      .sms-code-row .secondary { width: 100%; }
      .auth-reset-actions { grid-template-columns: 1fr; }
    }
    .bottom-nav {
      position: fixed;
      left: 50%;
      bottom: max(10px, env(safe-area-inset-bottom));
      transform: translateX(-50%);
      z-index: 40;
      width: min(calc(100% - 24px), 492px);
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 4px;
      padding: 6px;
      border-radius: 24px;
      border: 1px solid rgba(185,220,250,.94);
      background: rgba(255,255,255,.9);
      backdrop-filter: blur(18px);
      box-shadow: 0 18px 52px rgba(6,43,85,.18);
      transition: opacity .18s ease, transform .18s ease;
    }
    .nav-item {
      min-height: 56px;
      border: 0;
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
    }
    .nav-item svg { width: 20px; height: 20px; }
    .nav-item.active {
      background: var(--wm-blue);
      color: white;
      box-shadow: 0 10px 24px rgba(0,113,206,.26);
    }
    .service-fab {
      position: fixed;
      right: max(14px, env(safe-area-inset-right));
      bottom: calc(96px + env(safe-area-inset-bottom));
      z-index: 45;
      width: 52px;
      height: 52px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: var(--spark);
      color: #4D3500;
      box-shadow: 0 14px 30px rgba(255,194,32,.36);
      transition: opacity .18s ease, transform .18s ease;
    }
    .service-fab svg { width: 24px; height: 24px; }
    body.filter-open .bottom-nav {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(calc(100% + 18px));
    }
    body.filter-open .service-fab {
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
    }
    body[data-active-view="home"] .bottom-nav,
    body[data-active-view="home"] .service-fab {
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
    }
    body[data-active-view="home"] .bottom-nav {
      transform: translateX(-50%) translateY(calc(100% + 18px));
    }
    body.profile-editing .bottom-nav {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(calc(100% + 18px));
    }
    body.profile-editing .service-fab {
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
    }
    body.profile-settings-open {
      overflow: hidden;
    }
    body.profile-settings-open .bottom-nav {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(calc(100% + 18px));
    }
    body.profile-settings-open .service-fab {
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
    }
    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(168px + env(safe-area-inset-bottom));
      transform: translateX(-50%) translateY(12px);
      width: min(calc(100% - 32px), 420px);
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(6,43,85,.94);
      color: white;
      font-size: 14px;
      line-height: 1.5;
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
      z-index: 60;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    body[data-active-view="login"] .bottom-nav,
    body[data-active-view="login"] .service-fab { display: none; }
    @keyframes viewIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (min-width: 760px) {
      .customer-shell { width: min(100%, 760px); padding-left: 24px; padding-right: 24px; }
      .panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
      .hero { padding: 28px; }
      .profile-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px; align-items: start; }
      .profile-recharge-card { grid-column: 1; grid-row: 1 / span 3; }
      .profile-summary-card { grid-column: 2; grid-row: 1; }
      .profile-funds-summary { grid-column: 2; grid-row: 2; }
      .profile-security-gate { grid-column: 1 / -1; }
      .profile-identity-strip { align-items: center; }
      .profile-settings-button { width: 100%; }
      .profile-funds-grid { grid-template-columns: minmax(0, 1fr); }
      .profile-recharge-body { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); align-items: end; }
      .payment-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .profile-settings-layer {
        align-items: center;
        padding: 24px;
      }
      .profile-settings-modal {
        border-radius: 28px;
        height: min(calc(var(--profile-settings-available-height, 100dvh) - 48px), 760px);
        max-height: min(88vh, 760px);
        max-height: min(calc(var(--profile-settings-available-height, 100dvh) - 48px), 760px);
      }
      .profile-settings-body {
        padding: 14px;
      }
      .profile-actions-sticky {
        bottom: 10px;
      }
      .orders-filter-row { grid-template-columns: minmax(0, 1fr); }
      .order-row { grid-template-columns: minmax(0, 1fr) auto; }
      .order-row .row-actions {
        align-content: center;
        align-items: center;
        justify-content: flex-end;
        min-width: 172px;
        border-top: 0;
        border-left: 1px solid var(--line);
        padding: 12px;
      }
    }
    @media (max-width: 520px) {
      .status-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
      .profile-settings-modal.profile-settings-compact .profile-settings-bar {
        padding: 11px 14px 9px;
      }
      .profile-settings-modal.profile-settings-compact .profile-settings-title p {
        font-size: 12px;
        line-height: 1.35;
      }
      .profile-settings-modal.profile-settings-compact .profile-settings-body {
        gap: 9px;
        padding: 10px 12px calc(28px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(156px + env(safe-area-inset-bottom));
      }
      .profile-settings-modal.profile-settings-compact .profile-settings-tabs {
        gap: 4px;
        border-radius: 17px;
      }
      .profile-settings-modal.profile-settings-compact .profile-settings-tab {
        min-height: 40px;
        font-size: 12px;
      }
      .profile-settings-modal.profile-settings-compact .profile-section-card {
        margin-top: 0;
        padding: 14px;
        border-radius: 22px;
      }
      .profile-settings-modal.profile-settings-compact .profile-card-head {
        margin-bottom: 8px;
      }
      .profile-settings-modal.profile-settings-compact .profile-card-copy h2 {
        font-size: 18px;
        line-height: 1.2;
      }
      .profile-settings-modal.profile-settings-compact .profile-card-copy p {
        font-size: 12px;
        line-height: 1.35;
      }
      .profile-settings-modal.profile-settings-compact .field {
        margin-top: 9px;
      }
      .profile-settings-modal.profile-settings-compact .label {
        margin-bottom: 6px;
      }
      .profile-settings-modal.profile-settings-compact .input {
        min-height: 52px;
        border-radius: 17px;
      }
      .profile-settings-modal[data-active-settings-tab="username"] .profile-settings-head,
      .profile-settings-modal[data-active-settings-tab="password"] .profile-settings-head {
        display: none;
      }
      .profile-settings-modal.profile-settings-ultra-compact .profile-settings-body {
        gap: 7px;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
      }
      .profile-settings-modal.profile-settings-ultra-compact .profile-section-card {
        padding: 12px;
        border-radius: 20px;
      }
      .profile-settings-modal.profile-settings-ultra-compact .field {
        margin-top: 7px;
      }
      .profile-settings-modal.profile-settings-ultra-compact .label {
        margin-bottom: 5px;
      }
      .profile-settings-modal.profile-settings-ultra-compact .input {
        min-height: 48px;
        border-radius: 16px;
      }
      .orders-page-head { align-items: stretch; }
      .orders-title-actions { align-content: start; }
      .orders-refresh { min-width: 70px; }
      .bills-page-head { align-items: stretch; }
      .bills-title-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
      }
      .bills-refresh { width: 100%; }
      .bills-reconcile-title {
        display: grid;
        justify-content: start;
      }
      .bills-reconcile-title span { text-align: left; }
      .bills-reconcile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .detail-grid { grid-template-columns: minmax(0, 1fr); }
      .detail-cell-list { grid-template-columns: minmax(0, 1fr); }
      .detail-core-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .detail-support-panel { grid-template-columns: minmax(0, 1fr); }
      .detail-support-link { justify-self: start; }
      .detail-unit-row { grid-template-columns: minmax(42px, auto) minmax(0, 1fr) auto; }
      .detail-unit-row .secondary { min-width: 78px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
