
    :root {
      color-scheme: light;
      --paper: #f6f5f8;
      --surface: #ffffff;
      --ink: #19171f;
      --muted: #716b7b;
      --line: #e2deea;
      --green: #7657e8;
      --green-deep: #5032b7;
      --lime: #c8bbff;
      --lime-soft: #eeeaff;
      --amber: #e8a85c;
      --danger: #bd565e;
      --disabled: #d5d1da;
      --hero: #17151d;
      --shadow: 0 24px 70px rgba(48, 38, 78, .15);
      --radius: 26px;
    }
    :root[data-resolved-theme="dark"] {
      color-scheme: dark;
      --paper: #111016;
      --surface: #1b1922;
      --ink: #f6f3fa;
      --muted: #aca5b5;
      --line: #37323f;
      --green: #a98bff;
      --green-deep: #d7ccff;
      --lime: #8d70f2;
      --lime-soft: #2c2540;
      --disabled: #45404c;
      --hero: #0d0c11;
      --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    }

    * { box-sizing: border-box; }
    html { background: #e9e7ee; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 18% 12%, rgba(118, 87, 232, .14), transparent 27rem),
        linear-gradient(135deg, #efedf3, #ded9e8);
      display: grid;
      place-items: center;
      padding: 26px;
    }
    :root[data-resolved-theme="dark"] html,
    :root[data-resolved-theme="dark"] body { background: #09080c; }
    :root[data-resolved-theme="dark"] .phone { border-color: #393440; }
    :root[data-resolved-theme="dark"] input { background: #1b1922; color: var(--ink); }
    :root[data-resolved-theme="dark"] .location-indicator { background: #2c2840; }
    :root[data-resolved-theme="dark"] .bottom-appbar { background: rgba(27, 25, 34, .94); border-top-color: var(--line); }

    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible { outline: 3px solid rgba(118, 87, 232, .28); outline-offset: 3px; }

    .phone {
      width: min(100%, 430px);
      height: min(900px, calc(100vh - 52px));
      min-height: 690px;
      position: relative;
      overflow: clip;
      border: 1px solid rgba(23, 35, 31, .11);
      border-radius: 42px;
      background: var(--paper);
      box-shadow: var(--shadow);
    }

    .screen {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
    }
    .screen::-webkit-scrollbar { display: none; }
    .screen[hidden] { display: none; }

    .statusbar {
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      font-size: 12px;
      font-weight: 680;
      letter-spacing: .01em;
    }

    .login {
      min-height: 100%;
      padding: 10px 28px 34px;
      display: flex;
      flex-direction: column;
    }

    .consent {
      min-height: calc(100% - 26px);
      padding: 10px 28px 26px;
      display: flex;
      flex-direction: column;
    }
    .consent-copy { margin-top: 42px; }
    .consent-copy h1 { max-width: 310px; margin: 0; font-size: 34px; line-height: 1.03; letter-spacing: -.045em; }
    .consent-copy > p { margin: 14px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
    .data-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
    .data-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .data-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--green-deep); font-weight: 800; }
    .data-list strong { display: block; font-size: 13px; }
    .data-list span:last-child { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
    .consent-links { margin: 14px 0; display: flex; gap: 18px; }
    .text-link { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
    .consent-check { margin-top: auto; padding: 13px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; border-radius: 15px; background: var(--lime-soft); color: var(--ink); font-size: 12px; line-height: 1.4; }
    .consent-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
    .consent-actions { margin-top: 12px; display: grid; gap: 9px; }
    .secondary { min-height: 48px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
    .primary:disabled { background: var(--disabled); color: var(--muted); box-shadow: none; cursor: not-allowed; }
    .declined { min-height: calc(100% - 26px); padding: 42px 30px; display: grid; place-content: center; text-align: center; }
    .declined-mark { width: 68px; height: 68px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #f5e5e1; color: var(--danger); font-size: 28px; }
    .declined h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
    .declined p { max-width: 320px; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
    .policy-copy h3 { margin: 22px 0 6px; font-size: 15px; }
    .policy-copy p, .policy-copy li { color: var(--muted); font-size: 12px; line-height: 1.55; }
    .policy-copy ul { padding-left: 19px; }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 22px;
      font-weight: 760;
      letter-spacing: -.04em;
    }

    .brand-mark {
      width: 31px;
      height: 37px;
      position: relative;
      border-radius: 8px 13px 8px 13px;
      background: var(--green);
      overflow: hidden;
    }
    .brand-mark::after {
      content: "";
      position: absolute;
      left: 14px;
      top: -7px;
      width: 7px;
      height: 52px;
      border-radius: 8px;
      background: var(--lime);
      transform: rotate(22deg);
    }

    .login-copy { margin-top: clamp(65px, 12vh, 116px); }
    .login-copy h1 {
      margin: 0;
      max-width: 330px;
      font-size: clamp(38px, 10vw, 48px);
      line-height: .98;
      letter-spacing: -.055em;
      font-weight: 720;
    }
    .login-copy p { margin: 20px 0 0; color: var(--muted); line-height: 1.55; max-width: 315px; }

    .login-form { margin-top: 46px; display: grid; gap: 17px; }
    .field label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
    .field input {
      width: 100%;
      border: 0;
      border-bottom: 1.5px solid #aaa4b2;
      background: transparent;
      color: var(--ink);
      padding: 5px 2px 12px;
      font-size: 18px;
      border-radius: 0;
    }
    .field input:focus { border-color: var(--green); }

    .login-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 13px; }
    .primary {
      min-height: 56px;
      border: 0;
      border-radius: 18px;
      color: white;
      background: var(--green);
      font-weight: 700;
      box-shadow: 0 12px 28px rgba(118, 87, 232, .22);
    }
    .primary:hover { background: var(--green-deep); }
    .login-foot { margin: auto 0 0; padding-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.5; }

    .dashboard { padding-bottom: 132px; }
    .dash-head {
      padding: 10px 24px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .person { display: flex; align-items: center; gap: 11px; }
    .avatar {
      width: 43px;
      height: 43px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--lime-soft);
      color: var(--green-deep);
      font-weight: 760;
    }
    .person strong { display: block; font-size: 15px; }
    .person span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
    .logout {
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: var(--muted);
      display: grid;
      place-items: center;
    }
    .logout svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .logout:hover { background: var(--lime-soft); color: var(--green); }

    .today {
      margin: 0 16px;
      padding: 27px 24px 29px;
      color: white;
      background: var(--hero);
      border-radius: 30px 30px 80px 30px;
      position: relative;
      overflow: hidden;
    }
    .today::after {
      content: "";
      position: absolute;
      width: 170px;
      height: 170px;
      right: -66px;
      bottom: -80px;
      border: 24px solid rgba(143, 112, 242, .24);
      border-radius: 50%;
    }
    .today .date { color: #d8cff8; font-size: 13px; }
    .today h1 {
      margin: 14px 0 2px;
      font-size: 51px;
      line-height: 1;
      letter-spacing: -.045em;
      font-variant-numeric: tabular-nums;
    }
    .today .caption { color: #d8cff8; font-size: 13px; }
    .shift-line {
      display: flex;
      gap: 18px;
      margin-top: 22px;
      font-size: 13px;
      position: relative;
      z-index: 1;
    }
    .shift-line span { color: #beb5d6; display: block; margin-bottom: 3px; font-size: 11px; }

    .bottom-appbar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 8;
      height: 82px;
      padding: 9px 18px max(9px, env(safe-area-inset-bottom));
      display: grid;
      grid-template-columns: 1fr 120px 1fr;
      align-items: center;
      background: rgba(255, 255, 255, .94);
      border-top: 1px solid rgba(112, 104, 126, .2);
      box-shadow: 0 -12px 35px rgba(42, 34, 56, .09);
      backdrop-filter: blur(18px);
    }
    .bottom-appbar[hidden] { display: none; }
    .bar-action {
      border: 0;
      background: transparent;
      color: var(--muted);
      display: grid;
      place-items: center;
      gap: 3px;
      font-size: 10px;
    }
    .bar-action .bar-icon { font-size: 20px; line-height: 1; }
    .bar-action.current { color: var(--green); font-weight: 700; }
    .punch-slot { height: 82px; display: grid; place-items: end center; position: relative; }
    .punch {
      position: absolute;
      bottom: 5px;
      width: 112px;
      height: 112px;
      border: 7px solid var(--surface);
      border-radius: 50%;
      background: var(--lime);
      color: #24174f;
      box-shadow: 0 11px 27px rgba(74, 54, 139, .25), inset 0 0 0 1px rgba(75, 49, 161, .12);
      display: grid;
      place-content: center;
      gap: 4px;
      text-align: center;
      transition: transform .16s ease, background .2s ease;
    }
    .punch:active { transform: scale(.97); }
    .punch .icon { font-size: 21px; line-height: 1; }
    .punch strong { font-size: 15px; letter-spacing: -.02em; }
    .punch small { font-size: 9px; opacity: .72; }
    .punch.active { background: #ffd8d1; color: #7c3027; }

    .content { padding: 5px 24px 0; }
    .summary-strip {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      margin: 6px 0 28px;
      background: var(--line);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .summary-strip div { background: var(--paper); padding: 15px 12px 15px 0; }
    .summary-strip div + div { padding-left: 18px; }
    .summary-strip span { display: block; color: var(--muted); font-size: 12px; }
    .summary-strip strong { display: block; margin-top: 4px; font-size: 19px; font-variant-numeric: tabular-nums; }

    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
    .section-head > div { min-width: 0; }
    .section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
    .section-head p { margin: 0; color: var(--muted); font-size: 12px; }

    .chart {
      height: 226px;
      margin-top: 20px;
      padding: 17px 5px 0;
      position: relative;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
      align-items: end;
      border-bottom: 1px solid #b6afbf;
    }
    .goal-line { position: absolute; left: 0; right: 0; bottom: 166px; border-top: 1px dashed #b3acbd; }
    .goal-line span { position: absolute; right: 0; top: -18px; color: var(--muted); font-size: 10px; }
    .bar-col { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
    .bar-value { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
    .bar {
      width: 100%;
      min-height: 3px;
      border-radius: 8px 8px 3px 3px;
      background: #d3cedc;
      transform-origin: bottom;
      animation: rise .65s cubic-bezier(.2,.7,.2,1) both;
    }
    .bar.current { background: var(--green); }
    .bar.future { height: 3px !important; background: var(--line); }
    .day { color: var(--muted); font-size: 11px; }
    .day.current { color: var(--green); font-weight: 760; }

    .history-button {
      width: 100%;
      margin-top: 20px;
      min-height: 49px;
      border: 1px solid #aaa2b5;
      border-radius: 16px;
      background: transparent;
      color: var(--green-deep);
      font-weight: 700;
    }

    .sheet-backdrop {
      position: absolute;
      inset: 0;
      z-index: 10;
      background: rgba(15, 13, 20, .48);
      backdrop-filter: blur(3px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease;
    }
    .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
    .sheet {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      max-width: 100%;
      max-height: 78%;
      overflow-y: auto;
      padding: 13px 24px 30px;
      border-radius: 30px 30px 0 0;
      background: var(--surface);
      transform: translateY(105%);
      transition: transform .28s cubic-bezier(.2,.7,.2,1);
    }
    .sheet-backdrop.open .sheet { transform: translateY(0); }
    .grabber { width: 42px; height: 5px; margin: 0 auto 22px; border-radius: 9px; background: #c8c2cf; }
    .sheet-title { display: flex; align-items: center; justify-content: space-between; }
    .sheet-title h2 { margin: 0; font-size: 24px; }
    .sheet-title button { border: 0; background: transparent; font-size: 25px; color: var(--muted); }
    .day-row {
      display: grid;
      grid-template-columns: 48px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 17px 0;
      border-bottom: 1px solid var(--line);
    }
    .day-row time { color: var(--muted); font-size: 12px; }
    .day-row strong { font-size: 14px; }
    .day-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
    .day-row b { font-size: 16px; font-variant-numeric: tabular-nums; }

    .history-page { min-height: 100%; padding: 6px 24px 112px; }
    .history-top { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; margin: 6px 0 18px; }
    .history-top h1 { margin: 0; text-align: center; font-size: 25px; letter-spacing: -.035em; }
    .back-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 20px; }
    .month-overview { margin: 0 0 16px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: end; border-radius: 22px; background: var(--hero); color: white; overflow: hidden; position: relative; }
    .month-overview::after { content: ''; position: absolute; width: 110px; height: 110px; right: -46px; top: -60px; border: 17px solid rgba(169,139,255,.24); border-radius: 50%; }
    .month-overview span { color: #bdb4d3; font-size: 11px; }
    .month-overview strong { display: block; margin-top: 5px; font-size: 26px; letter-spacing: -.03em; }
    .month-overview b { color: #c7b7ff; font-size: 12px; font-weight: 700; }
    .calendar-head { margin: 18px 0 13px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; }
    .calendar-head button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; }
    .calendar-head strong { text-align: center; font-size: 16px; text-transform: capitalize; }
    .calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .calendar-weekdays span { padding: 7px 0; color: var(--muted); font-size: 10px; text-align: center; }
    .calendar-grid { gap: 7px; }
    .calendar-day {
      min-width: 0;
      width: 100%;
      min-height: 52px;
      padding: 7px 3px 5px;
      border: 1px solid transparent;
      border-radius: 13px;
      background: var(--paper);
      color: var(--ink);
      text-align: center;
    }
    .calendar-day.empty { pointer-events: none; }
    .calendar-day .day-number { display: grid; place-items: center; width: 25px; height: 25px; margin: 0 auto; border-radius: 50%; font-size: 12px; font-weight: 700; }
    .calendar-day small { display: block; min-height: 13px; margin-top: 3px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
    .calendar-day.has-hours { background: var(--lime-soft); }
    .calendar-day.has-hours small { color: var(--green-deep); font-weight: 750; }
    .calendar-day.weekend .day-number { color: #a477b5; }
    .calendar-day.today { background: var(--green); color: white; }
    .calendar-day.today .day-number { background: transparent; color: white; }
    .calendar-day.today small, .calendar-day.today.has-hours small { color: white; }
    .calendar-day.selected { border-color: var(--green); background: transparent; }
    .calendar-day.today.selected { border-color: transparent; }
    .calendar-legend { margin: 17px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
    .day-detail[hidden], .calendar-view[hidden] { display: none; }
    .detail-date { margin: 4px 0 18px; }
    .detail-date span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
    .detail-date h2 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.04em; }
    .detail-total { padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-radius: 20px; background: var(--hero); color: white; }
    .detail-total span { display: block; color: #bdb4d3; font-size: 11px; }
    .detail-total strong { display: block; margin-top: 4px; font-size: 15px; }
    .detail-total b { color: #c7b7ff; font-size: 25px; font-variant-numeric: tabular-nums; }
    .transaction-list { margin-top: 24px; }
    .transaction { position: relative; display: grid; grid-template-columns: 48px 18px 1fr; gap: 10px; min-height: 82px; }
    .transaction time { padding-top: 2px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
    .transaction-marker { position: relative; width: 13px; height: 13px; margin-top: 2px; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); z-index: 1; }
    .transaction:not(:last-child) .transaction-marker::after { content: ''; position: absolute; top: 12px; left: 3px; width: 1px; height: 68px; background: var(--line); }
    .transaction-body { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
    .transaction-body strong { display: block; font-size: 14px; }
    .transaction-body span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
    .transaction-body em { display: inline-block; margin-top: 7px; padding: 4px 8px; border-radius: 10px; background: var(--lime-soft); color: var(--green-deep); font-size: 9px; font-style: normal; font-weight: 750; }
    .empty-transactions { padding: 34px 20px; border-radius: 20px; background: var(--paper); color: var(--muted); text-align: center; line-height: 1.5; }

    .setting-group { margin-top: 25px; }
    .setting-group h3 { margin: 0 0 10px; font-size: 13px; }
    .choice-row { padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 15px; background: var(--paper); }
    .choice-row button { min-height: 42px; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
    .choice-row button[aria-pressed="true"] { background: var(--surface); color: var(--green); box-shadow: 0 3px 14px rgba(16,47,36,.10); }
    .settings-note { margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

    .location-status {
      min-height: 64px;
      margin: 18px 0 12px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: var(--paper);
    }
    .location-indicator {
      width: 35px;
      height: 35px;
      flex: 0 0 35px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: white;
      color: var(--green);
    }
    .location-indicator::after {
      content: '';
      width: 15px;
      height: 15px;
      border: 2px solid #bbb4c6;
      border-top-color: var(--green);
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }
    .location-status strong { display: block; font-size: 13px; }
    .location-status small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
    .location-status.done { border-color: #b7a7eb; background: var(--lime-soft); }
    .location-status.done .location-indicator { background: var(--green); color: white; font-size: 17px; }
    .location-status.done .location-indicator::after { content: '✓'; width: auto; height: auto; border: 0; animation: none; }

    .camera-stage {
      position: relative;
      min-height: 330px;
      margin: 12px 0;
      overflow: hidden;
      border-radius: 23px;
      background: radial-gradient(circle at 50% 38%, rgba(237,232,255,.18) 0 16%, transparent 17%), linear-gradient(145deg, #272137, #0d0b12 78%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
      color: white;
    }
    .camera-stage[hidden] { display: none; }
    .camera-stage.captured { box-shadow: inset 0 0 0 2px #a98bff; }
    .camera-live { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 6px; z-index: 2; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
    .camera-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff6b61; box-shadow: 0 0 0 4px rgba(255,107,97,.14); }
    .camera-stage.captured .camera-live::before { background: #ad91ff; box-shadow: 0 0 0 4px rgba(173,145,255,.16); }
    .selfie-outline { position: absolute; left: 50%; top: 43%; width: 124px; height: 162px; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,.46); border-radius: 50% 50% 42% 42%; }
    .selfie-outline::before { content: ''; position: absolute; left: 37px; top: 28px; width: 48px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.13); }
    .selfie-outline::after { content: ''; position: absolute; left: 21px; bottom: 13px; width: 80px; height: 66px; border-radius: 50% 50% 20% 20%; background: rgba(255,255,255,.11); }
    .photo-stamp { position: absolute; left: 14px; right: 14px; bottom: 76px; min-width: 0; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; border-left: 3px solid #a98bff; border-radius: 4px 12px 12px 4px; background: rgba(10,8,15,.76); backdrop-filter: blur(7px); font-size: 10px; }
    .photo-stamp strong { color: #c6b5ff; font-size: 12px; letter-spacing: .08em; }
    .photo-stamp time { font-variant-numeric: tabular-nums; font-weight: 700; }
    .photo-stamp span:last-child { grid-column: 1 / -1; color: rgba(255,255,255,.68); }
    .capture-button { position: absolute; left: 50%; bottom: 15px; width: 50px; height: 50px; transform: translateX(-50%); border: 4px solid white; border-radius: 50%; background: rgba(255,255,255,.24); box-shadow: 0 0 0 2px rgba(0,0,0,.24); }
    .capture-button::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: white; }
    .camera-stage.captured .capture-button::after { content: '✓'; display: grid; place-items: center; background: #ad91ff; color: #21164a; font-weight: 800; }
    .verify-submit:disabled { background: var(--disabled); color: var(--muted); box-shadow: none; cursor: not-allowed; }

    .toast {
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: calc(142px + env(safe-area-inset-bottom));
      z-index: 20;
      padding: 13px 16px;
      border-radius: 15px;
      border: 1px solid rgba(169,139,255,.35);
      background: var(--hero);
      color: #c8b8ff;
      font-size: 13px;
      text-align: center;
      transform: translateY(18px);
      opacity: 0;
      transition: .25s ease;
      pointer-events: none;
    }
    .toast.show { transform: translateY(0); opacity: 1; }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes rise { from { transform: scaleY(.06); opacity: .4; } }
    @media (max-width: 520px) {
      body { padding: 0; display: block; background: var(--paper); }
      .phone { width: 100%; height: 100dvh; min-height: 610px; border: 0; border-radius: 0; box-shadow: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    }
  