  /* Poppins is the display face for headings and big figures, which only ever
     use the 700 and 800 weights; both ship with the app (public/fonts) so
     first paint never waits on a font request */
  @font-face{
    font-family:'Poppins';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('fonts/poppins-700.woff2') format('woff2');
  }
  @font-face{
    font-family:'Poppins';
    font-style:normal;
    font-weight:800;
    font-display:swap;
    src:url('fonts/poppins-800.woff2') format('woff2');
  }

  :root{
    color-scheme:light;
    /* The colour system phone users already know from the biggest apps: white
       ground, black type and actions, light grey fills, grey secondary text.
       Brand purple and gold live on the app icon and the launch screen only. */
    --ink:#111111;
    --accent:#111111;
    --accent-deep:#000000;
    --fill:#F3F3F3;
    --fill-tint:rgba(0,0,0,0.06);
    --fill-glow:rgba(0,0,0,0.12);
    --white:#FFFFFF;
    --bg:#FFFFFF;
    --bg-2:#F3F3F3;
    --gray:#6B6B6B;
    --gray-2:#8E8E8E;
    --success:#0E8345;
    --success-soft:rgba(14,131,69,0.12);
    --online:#EFC061;      /* brand gold: the online dot and switch, the live pill dot (Simon: gold, not green) */
    --brand:#683D91;       /* brand purple: the promo card, plus hover and press feedback on shoot types */
    --gold:#EFC061;        /* brand gold: the promo card heading only */
    --navy:#2B2D42;        /* brand navy: the PhotoRush wordmark beside the mark, as in the official lockup */
    --error:#D0312D;
    --error-soft:rgba(208,49,45,0.10);
    /* appearance tokens: everything below flips in html[data-theme="dark"] at the end of this file */
    --surface:#FFFFFF;       /* raised white elements on the page: nav pill, sheet, cards, pills */
    --surface-2:#FFFFFF;     /* a white chip sitting on a grey fill */
    --on-accent:#FFFFFF;     /* text on --accent and --ink buttons */
    --on-accent-soft:rgba(255,255,255,0.16);
    --strong:#111111;        /* the solid dark card and the live pill */
    --on-strong:#FFFFFF;
    --on-strong-soft:rgba(255,255,255,0.82);
    --ring:rgba(0,0,0,0.18); /* the pulse ring around the slider thumb */
    --card-bg:#FFFFFF;
    --line:#E8E8E8;
    --line-strong:#D6D6D6;
    --step-upcoming-border:#D6D6D6;
    --step-upcoming-text:#8E8E8E;
    color-scheme:light;
    --font-display:'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-xl:20px;
    --radius-lg:16px;
    --radius-md:12px;
    --radius-sm:10px;
    --shadow-sm:0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:0 12px 32px rgba(0,0,0,0.18);
    --shadow-btn:none;
    --ease-out:cubic-bezier(0.2,0.8,0.2,1);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  html{ scrollbar-color:var(--accent) var(--bg); -webkit-text-size-adjust:100%; }
  ::selection{ background:var(--accent); color:var(--on-accent); }
  ::-webkit-scrollbar{ width:12px; height:12px; }
  ::-webkit-scrollbar-track{ background:var(--bg); }
  ::-webkit-scrollbar-thumb{ background:var(--accent); border-radius:8px; border:3px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover{ background:var(--accent-deep); }
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:var(--font-body);
    line-height:1.45;
    -webkit-font-smoothing:antialiased;
    -webkit-tap-highlight-color:transparent;
    min-height:100vh;
    overflow-x:hidden;
  }
  h1,h2,h3,h4{
    font-family:var(--font-display);
    color:var(--ink);
    margin:0 0 4px;
    letter-spacing:-0.015em;
    text-wrap:balance;
  }
  p{ margin:0; }
  button,input,textarea,select{ font-family:inherit; font-size:inherit; color:inherit; }
  button{ -webkit-tap-highlight-color:transparent; }
  img,svg{ max-width:100%; display:block; }

  /* ---------- icons: Phosphor bold, single colour, filled paths ---------- */
  .ph{ fill:currentColor; }

  /* ---------- brand: the official purple Sonset mark (974x869 source ratio, fills baked in) and the PhotoRush wordmark in brand navy ---------- */
  .pr-mark{ width:40px; height:36px; flex-shrink:0; }
  .pr-mark--lg{ width:88px; height:79px; }
  .pr-mark--sm{ width:28px; height:25px; }
  .pr-mark--md{ width:64px; height:57px; }
  .wordmark-svg{ height:15px; width:148px; color:var(--navy); flex-shrink:0; }

  /* ---------- layout shell ---------- */
  .topbar{
    padding:calc(14px + env(safe-area-inset-top, 0px)) 20px 6px;
    background:var(--bg);
  }
  .topbar-inner{
    width:100%;
    max-width:600px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:9px;
  }
  button:focus-visible, [tabindex]:focus-visible, input:focus-visible, a:focus-visible, textarea:focus-visible{
    outline:3px solid var(--accent);
    outline-offset:2px;
  }

  main{
    width:100%;
    max-width:600px;
    margin:0 auto;
    padding:10px 16px 40px;
  }
  /* with the tab bar showing, the footer supplies the clearance above the bar;
     main keeps only a small gap so the footer sits right under the last card */
  body.has-bottom-nav main{ padding-bottom:8px; }
  body.has-bottom-nav footer{ padding-bottom:calc(118px + env(safe-area-inset-bottom, 0px)); }
  .view[hidden]{ display:none; }
  /* index.html starts as body.booting; app.js removes it once the first
     screen is chosen, so the raw markup never flashes on screen first */
  body.booting .topbar, body.booting main, body.booting footer, body.booting .bottom-nav{ visibility:hidden; }

  /* ---------- auth screens: logo, fields, one button, link pinned to the bottom ---------- */
  body.is-auth-view .topbar{ display:none; }
  body.is-auth-view footer{ display:none; }
  body.is-auth-view main{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding-top:calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body.is-auth-view #view-account{ display:flex; flex-direction:column; flex:1; }
  body.is-auth-view #view-account[hidden]{ display:none; }
  .auth-login, .auth-steps{ display:flex; flex-direction:column; flex:1; }
  .auth-login[hidden], .auth-steps[hidden], .auth-step-head[hidden]{ display:none; }
  .auth-brand{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:13vh 0 40px; }
  .auth-wordmark{ width:196px; height:20px; color:var(--ink); }
  .auth-form{ display:flex; flex-direction:column; }
  .auth-form .btn{ margin-top:12px; }
  .auth-form .missing-line{ margin-top:8px; }
  .input--plain{ height:52px; }
  .auth-link{
    display:block;
    margin:16px auto 0;
    background:none;
    border:none;
    padding:6px 8px;
    color:var(--accent);
    font-family:inherit;
    font-size:0.9rem;
    font-weight:600;
    cursor:pointer;
  }
  .auth-bottom{ margin-top:auto; padding-top:28px; display:flex; flex-direction:column; align-items:center; gap:6px; }
  .auth-bottom .btn{ margin-bottom:8px; }
  .auth-from{ color:var(--gray); font-size:0.78rem; }
  .auth-sonset{ width:72px; height:15px; color:var(--accent); }
  .auth-step-head, .auth-steps{ padding-top:10vh; }
  .auth-steps--short{ padding-top:0; }
  .auth-step[hidden]{ display:none; }
  .auth-step h1, .auth-step-head h1{ font-size:1.6rem; line-height:1.15; margin-bottom:10px; }
  .auth-step p, .auth-step-head p, .auth-text{ color:var(--gray); font-size:0.95rem; margin-bottom:18px; }
  .auth-step-head p:empty{ display:none; }
  .auth-step .input{ margin-bottom:12px; }
  .auth-step .btn{ margin-top:4px; }
  .auth-step .btn-apple{ margin-top:12px; }
  .auth-steps .missing-line{ text-align:left; }
  .auth-waiting{ align-items:center; text-align:center; padding-top:14vh; }
  .auth-waiting .pr-mark{ margin-bottom:22px; }
  .auth-waiting h1{ font-size:1.6rem; margin-bottom:10px; }
  .auth-waiting .auth-text{ max-width:32ch; margin-bottom:10px; }
  .auth-waiting .btn{ width:100%; margin-top:18px; }
  .auth-waiting .btn[hidden]{ display:none; }
  .btn-apple[hidden], .auth-divider[hidden], .job-meta[hidden]{ display:none; }
  .auth-waiting .missing-line{ text-align:center; }
  .auth-waiting .auth-bottom{ gap:2px; }
  .auth-waiting .auth-link{ margin-top:6px; }
  .missing-line.is-ok{ color:var(--success); }

  /* ---------- bottom tab bar: a floating pill, icon over label, the current tab on a grey pill ---------- */
  .bottom-nav{
    position:fixed;
    left:16px; right:16px;
    bottom:calc(14px + env(safe-area-inset-bottom, 0px));
    background:var(--surface);
    border-radius:999px;
    box-shadow:0 10px 30px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08);
    z-index:40;
    padding:6px;
  }
  .bottom-nav[hidden]{ display:none; }
  .bottom-nav-inner{
    max-width:600px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-around;
    gap:4px;
  }
  .bottom-nav-inner[hidden]{ display:none; }
  .nav-btn{
    flex:1;
    background:none;
    border:none;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:8px 6px 7px;
    border-radius:999px;
    color:var(--gray);
    font-family:inherit;
    font-size:0.72rem;
    font-weight:600;
    transition:background .15s ease, color .15s ease;
  }
  .nav-btn svg{ width:24px; height:24px; fill:currentColor; }
  .nav-btn .ph-fill{ display:none; }
  .nav-btn.active{ color:var(--ink); background:var(--bg-2); }
  .nav-btn.active .ph-regular{ display:none; }
  .nav-btn.active .ph-fill{ display:block; }
  .nav-label{ line-height:1; }

  .screen-head{ margin:12px 2px 22px; }
  .screen-head h1{ font-size:2.3rem; font-weight:800; line-height:1.05; letter-spacing:-0.02em; }
  .screen-head p{ color:var(--gray); font-size:1rem; margin-top:8px; }

  /* ---------- surfaces ---------- */
  .card{
    background:var(--card-bg);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:20px;
    margin-bottom:14px;
  }
  .card h2, .card h3{ font-size:1.02rem; margin-bottom:2px; }
  .card-sub{ color:var(--gray); font-size:0.86rem; margin-bottom:14px; }
  .card > .card-sub:last-child{ margin-bottom:0; }

  /* ---------- home: search pill, in Uber's "Where to?" arrangement ---------- */
  .search-pill{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    padding:8px 8px 8px 20px;
    min-height:60px;
    background:var(--bg-2);
    border:none;
    border-radius:999px;
    font-family:inherit;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    margin:4px 0 20px;
    transition:transform .12s var(--ease-out);
  }
  .search-pill:active{ transform:scale(0.985); }
  .search-pill-icon{ width:22px; height:22px; flex-shrink:0; fill:var(--ink); }
  .search-pill-label{ flex:1; min-width:0; color:var(--gray); font-weight:500; font-size:1.05rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .search-pill-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:12px 14px;
    border-radius:999px;
    background:var(--surface-2);
    color:var(--ink);
    font-size:0.9rem;
    font-weight:600;
    white-space:nowrap;
    flex-shrink:0;
  }
  .search-pill-chip svg{ width:15px; height:15px; fill:currentColor; }

  /* ---------- home: shoot-type tiles. Text tiles until a portfolio photo exists for the shoot;
     then the photo fills the tile with the label over a flat dark veil ---------- */
  .tile-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-bottom:22px; }
  .tile{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:104px;
    padding:14px;
    background:var(--bg-2);
    border:none;
    border-radius:var(--radius-lg);
    color:var(--ink);
    font-family:inherit;
    font-size:1rem;
    font-weight:500;
    line-height:1.2;
    text-align:center;
    cursor:pointer;
    overflow:hidden;
    transition:transform .12s var(--ease-out);
  }
  .tile:active{ transform:scale(0.97); }
  /* a shoot type colours brand purple under the pointer or the thumb */
  @media (hover:hover){ .tile:hover{ background:var(--brand); color:var(--white); } }
  .tile:active{ background:var(--brand); color:var(--white); }
  .tile--photo:active::before{ background:rgba(104,61,145,0.6); }
  @media (hover:hover){ .tile--photo:hover::before{ background:rgba(104,61,145,0.6); } }
  .tile-label{ position:relative; display:block; }
  .tile--photo{
    min-height:110px;
    background-size:cover;
    background-position:center;
    color:var(--white);
  }
  .tile--photo::before{ content:''; position:absolute; inset:0; background:rgba(0,0,0,0.38); }
  .tile--photo .tile-label{ text-shadow:0 1px 2px rgba(0,0,0,0.45); }
  .tile--photo{ align-items:center; justify-content:center; }

  /* ---------- home: promo banner (the flat-rate promise) ---------- */
  .promo{
    display:flex;
    align-items:center;
    gap:14px;
    background:var(--brand);
    color:var(--white);
    border-radius:var(--radius-lg);
    padding:16px 18px;
    margin-bottom:8px;
  }
  .promo .pr-mark{ width:44px; height:39px; }
  .promo-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
  .promo-text strong{ font-family:var(--font-display); font-weight:700; font-size:1.02rem; color:var(--gold); }
  .promo-text span{ font-size:0.9rem; color:rgba(255,255,255,0.86); }

  /* ---------- customer home ---------- */
  .home-live{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    text-align:left;
    background:var(--surface);
    border:none;
    border-radius:var(--radius-lg);
    padding:16px 18px;
    box-shadow:inset 0 0 0 1px var(--line);
    margin-bottom:14px;
    cursor:pointer;
    font-family:inherit;
    color:var(--ink);
    transition:transform .12s var(--ease-out);
  }
  .home-live:active{ transform:scale(0.985); }
  .home-live[hidden]{ display:none; }
  .home-live .status-pill{ margin:0; flex-shrink:0; }
  .home-live-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .home-live-title{ font-family:var(--font-display); font-weight:700; font-size:1rem; }
  .home-live-sub{ color:var(--gray); font-size:0.84rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .home-live .chevron{ width:18px; height:18px; flex-shrink:0; fill:var(--accent); }
  .section-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:24px 2px 10px; }
  .section-row .section-label{ margin:0; }
  .row-lead{ width:48px; height:48px; border-radius:12px; background:var(--bg-2); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .row-lead svg{ width:22px; height:22px; fill:var(--ink); }
  .rebook-row .settings-row-main{ flex:1; min-width:0; }
  .rebook-row .settings-row-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .photo-strip{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:2px 0 8px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .photo-strip::-webkit-scrollbar{ display:none; }
  .photo-strip .gallery-item{ flex:0 0 118px; width:118px; scroll-snap-align:start; box-shadow:var(--shadow-sm); }
  .how-list{ display:flex; flex-direction:column; gap:16px; }
  .how-row{ display:flex; gap:12px; align-items:flex-start; }
  .how-num{
    width:28px; height:28px;
    border-radius:50%;
    background:var(--fill);
    color:var(--accent);
    font-weight:700;
    font-size:0.85rem;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    font-variant-numeric:tabular-nums;
  }
  .how-row strong{ display:block; font-family:var(--font-display); font-size:0.95rem; margin-bottom:2px; }
  .how-row p{ color:var(--gray); font-size:0.85rem; }

  /* ---------- form fields ---------- */
  .field{ margin-bottom:16px; }
  .field:last-child{ margin-bottom:0; }
  .field-label{
    display:block;
    color:var(--gray);
    font-size:0.8rem;
    font-weight:600;
    letter-spacing:0.02em;
    margin-bottom:6px;
    text-transform:uppercase;
  }
  .input{
    width:100%;
    height:48px;
    padding:12px 14px;
    border-radius:var(--radius-sm);
    border:1.5px solid transparent;
    background:var(--bg-2);
    color:var(--ink);
    font-size:1rem;
    transition:border-color .15s ease, box-shadow .15s ease;
    caret-color:var(--accent);
  }
  textarea.input{ height:auto; resize:vertical; font-family:inherit; line-height:1.45; }
  .input::placeholder{ color:var(--gray-2); }
  .input:focus{
    outline:none;
    border-color:var(--ink);
    box-shadow:none;
  }
  .input:disabled{ background:var(--bg-2); color:var(--gray-2); border-color:transparent; box-shadow:none; }
  .input.invalid{ border-color:var(--error); }
  input[type="date"].input, input[type="time"].input{ -webkit-appearance:none; appearance:none; }
  .field-error{ color:var(--error); font-size:0.78rem; margin-top:5px; }
  .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

  /* ---------- buttons ---------- */
  .btn{
    display:block;
    width:100%;
    padding:15px 18px;
    border-radius:var(--radius-md);
    border:none;
    font-size:1.05rem;
    font-weight:600;
    cursor:pointer;
    text-align:center;
    transition:background .15s ease, opacity .15s ease, transform .12s var(--ease-out), box-shadow .15s ease;
  }
  .btn:active{ transform:scale(0.985); }
  .btn[hidden]{ display:none; }
  .btn-primary{
    background:var(--accent);
    color:var(--on-accent);
    box-shadow:var(--shadow-btn);
  }
  .btn-primary:hover:not(:disabled){
    background:var(--accent-deep);
  }
  .btn-primary:disabled{ background:var(--bg-2); color:#A6A6A6; cursor:not-allowed; box-shadow:none; }
  .btn-outline{
    background:var(--surface);
    color:var(--ink);
    border:1.5px solid var(--line-strong);
    border-radius:999px;
    padding:13.5px 18px;
  }
  .btn-outline:hover{ background:var(--bg-2); }
  .btn-cta{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-left:22px; padding-right:18px; }
  .btn-cta .btn-amount{
    font-family:var(--font-display);
    font-weight:700;
    font-variant-numeric:tabular-nums;
    background:var(--on-accent-soft);
    border-radius:999px;
    padding:4px 12px;
    font-size:0.95rem;
  }
  .btn-primary:disabled .btn-amount{ background:rgba(0,0,0,0.06); }
  /* Apple's Sign in with Apple button has a mandated look (HIG) -- it can't
     be restyled into the app's own purple/gold branding like other buttons. */
  .btn-apple{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    height:50px;
    padding:0 18px;
    border-radius:var(--radius-md);
    border:none;
    background:var(--accent);
    color:var(--on-accent);
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:opacity .15s ease;
  }
  .btn-apple:hover{ opacity:0.88; }
  .btn-apple svg{ width:19px; height:19px; flex-shrink:0; fill:var(--on-accent); }
  .btn-icon-row{ display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
  .btn-icon-row svg{ width:18px; height:18px; flex-shrink:0; fill:currentColor; }
  .auth-notice{ margin:0 0 14px; color:var(--accent); font-size:0.92rem; font-weight:600; }
  .auth-notice[hidden]{ display:none; }
  .auth-legal{ color:var(--gray); font-size:0.78rem; text-align:center; margin-top:14px; line-height:1.5; }
  .auth-legal a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
  .auth-divider{
    display:flex;
    align-items:center;
    gap:10px;
    margin:16px 0;
    color:var(--gray);
    font-size:0.78rem;
    text-transform:uppercase;
    letter-spacing:0.04em;
  }
  .auth-divider::before, .auth-divider::after{
    content:'';
    flex:1;
    height:1px;
    background:var(--line-strong);
  }

  /* ---------- flat grouped settings list ---------- */
  .section-label{
    font-family:var(--font-display);
    font-size:1.35rem;
    font-weight:700;
    letter-spacing:-0.015em;
    color:var(--ink);
    margin:26px 2px 12px;
  }
  .section-label:first-child{ margin-top:0; }
  .settings-list{
    background:var(--bg);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    overflow:hidden;
    margin-bottom:14px;
  }
  .settings-list--fill{ background:var(--bg-2); border-color:transparent; }
  .settings-list--fill .settings-row, .settings-list--fill .pref-row, .settings-list--fill .addon{ border-bottom-color:var(--bg); }
  .settings-row{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    background:none;
    border:none;
    border-bottom:1px solid var(--line);
    text-align:left;
    cursor:pointer;
    font-family:inherit;
    font-size:0.96rem;
    font-weight:600;
    color:var(--ink);
    transition:background .12s ease;
  }
  .settings-list .settings-row:last-child{ border-bottom:none; }
  .settings-row:hover{ background:var(--bg); }
  .settings-row:active{ background:var(--bg-2); }
  .settings-row-main{ display:flex; flex-direction:column; gap:3px; min-width:0; }
  .settings-row-label{ white-space:nowrap; }
  .settings-row-sub{ font-size:0.82rem; color:var(--gray); font-weight:400; }
  .settings-row-danger{ color:var(--error); }
  .settings-row .chevron{ width:16px; height:16px; flex-shrink:0; fill:var(--gray-2); }
  .settings-footnote{
    color:var(--gray);
    font-size:0.8rem;
    line-height:1.5;
    padding:0 4px;
    margin:-4px 0 20px;
  }
  /* delete account lives in its own zone, far from Log Out, behind a typed confirmation */
  .section-label--danger{ margin-top:44px; color:var(--error); }
  .settings-row[aria-expanded="true"] .chevron{ transform:rotate(90deg); }
  .danger-panel{
    padding:4px 18px 18px;
    border-top:1px solid var(--line);
    /* scrollIntoView keeps the whole panel above the tab bar */
    scroll-margin-bottom:calc(110px + env(safe-area-inset-bottom, 0px));
  }
  .danger-panel[hidden]{ display:none; }
  .danger-panel .settings-footnote{ margin:12px 0 14px; padding:0; }
  .danger-panel .field-label{ margin-top:4px; }
  .danger-panel .missing-line{ text-align:left; }
  .danger-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
  .danger-actions .btn{ white-space:nowrap; padding-left:12px; padding-right:12px; }
  .btn-danger{ background:var(--error); color:var(--white); }
  .btn-danger:hover:not(:disabled){ background:#8F2D24; }
  .btn-danger:disabled{ background:#E9CFCC; color:var(--white); cursor:not-allowed; }

  /* ---------- job / booking items ---------- */
  .job-item{
    padding:16px 0;
    border-bottom:1px solid var(--line);
  }
  .job-item:last-child{ border-bottom:none; padding-bottom:0; }
  .job-item:first-child{ padding-top:2px; }
  .job-head{ display:flex; align-items:flex-start; gap:12px; }
  .job-head-text{ flex:1; min-width:0; }
  .job-head .job-price{ margin:0; font-size:1.02rem; flex-shrink:0; }
  .job-item .job-title{ font-weight:700; margin-bottom:2px; font-size:1rem; }
  .job-item .job-meta{ color:var(--gray); font-size:0.85rem; margin-bottom:2px; }
  .job-item .job-note{ font-size:0.85rem; line-height:1.4; margin:6px 0 2px; white-space:pre-wrap; overflow-wrap:anywhere; }
  .job-item .job-note a{ color:inherit; font-weight:600; }
  .job-item .job-meta--warn{ color:var(--accent); font-weight:600; margin:2px 0 8px; }
  .job-item .job-price{ color:var(--accent); font-weight:700; margin-bottom:10px; font-variant-numeric:tabular-nums; }
  .job-item .btn{ margin-top:12px; }
  .job-item .directions-link{ margin-bottom:10px; text-decoration:none; }
  .job-actions{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
  .job-actions .btn{ margin-top:0; }
  .job-actions{ justify-content:flex-start; }
  .job-actions .btn-compact{ width:auto; padding:11px 18px; font-size:0.95rem; border-radius:999px; background:var(--bg-2); border-color:transparent; }
  .job-actions .btn-primary.btn-compact{ background:var(--accent); color:var(--on-accent); }

  /* ---------- photographer status card: a plain bordered card offline, the solid brand card once online ---------- */
  .status-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:18px;
    margin-bottom:14px;
    transition:background .25s ease, border-color .25s ease;
  }
  .status-card.is-online{ background:var(--strong); border-color:var(--strong); color:var(--on-strong); }
  .status-card.is-online h2{ color:var(--on-strong); }
  .status-card.is-online .card-sub{ color:var(--on-strong-soft); }
  .status-heading{ display:flex; align-items:center; gap:12px; }
  .status-heading h2, .status-heading h3{ margin-bottom:0; font-size:1.08rem; }
  .status-heading .status-text{ flex:1; min-width:0; }
  .status-heading .card-sub{ margin:2px 0 0; }
  .status-dot{ width:10px; height:10px; border-radius:50%; background:var(--gray-2); flex-shrink:0; }
  .status-card.is-online .status-dot{
    background:var(--online);
    animation:statusPulse 2s ease-in-out infinite;
  }
  @keyframes statusPulse{
    0%,100%{ box-shadow:0 0 0 0 rgba(239,192,97,0.45); }
    50%{ box-shadow:0 0 0 6px rgba(239,192,97,0); }
  }
  /* the online/offline toggle: a real switch, not a text button */
  .switch{
    position:relative;
    width:58px; height:34px;
    border-radius:999px;
    border:none;
    background:var(--line-strong);
    padding:0;
    cursor:pointer;
    flex-shrink:0;
    transition:background .2s ease;
  }
  .switch::after{
    content:'';
    position:absolute;
    top:3px; left:3px;
    width:28px; height:28px;
    border-radius:50%;
    background:var(--white);
    box-shadow:0 2px 6px rgba(0,0,0,0.28);
    transition:transform .22s var(--ease-out);
  }
  /* a switch that is on is black (white in dark mode) with the knob in the opposite colour,
     like Uber's; only the online switch on the status card is brand gold with a white knob */
  .switch[aria-checked="true"]{ background:var(--accent); }
  .switch[aria-checked="true"]::after{ background:var(--on-accent); }
  .status-card.is-online .switch[aria-checked="true"]{ background:var(--online); }
  .status-card.is-online .switch[aria-checked="true"]::after{ background:var(--white); }
  .switch[aria-checked="true"]::after{ transform:translateX(24px); }
  .switch:disabled{ opacity:0.6; cursor:wait; }

  /* ---------- photographer sections: bold titles with a coloured icon chip (gold = new work, purple = committed) ---------- */
  .section-heading{ display:flex; align-items:center; gap:10px; margin:22px 2px 10px; }
  .section-heading .section-label{ margin:0; }
  .section-heading svg{ width:22px; height:22px; flex-shrink:0; }
  .section-heading--open svg{ fill:var(--accent); }
  .section-heading--mine svg{ fill:var(--accent); }
  .job-list:empty{ display:none; }
  .job-list .job-item{ padding:16px 18px; }
  .job-list .job-item:first-child{ padding-top:16px; }
  .job-list .job-item:last-child{ padding-bottom:16px; }

  /* ---------- stat tiles (dashboard numbers, earnings totals) ---------- */
  .tile-grid--stats{ grid-template-columns:repeat(2, 1fr); margin-bottom:14px; }
  .tile--stat{ justify-content:flex-start; min-height:0; padding:16px 16px 14px; gap:4px; cursor:default; }
  .tile--stat:hover, .tile--stat:active{ background:var(--bg-2); color:inherit; transform:none; }
  .stat-tile-value{
    font-family:var(--font-display);
    font-size:1.9rem;
    font-weight:800;
    color:var(--ink);
    line-height:1;
    letter-spacing:-0.02em;
    font-variant-numeric:tabular-nums;
  }
  .stat-tile-value--money{ color:var(--ink); margin:2px 0; }
  .stat-tile-label{ font-size:0.8rem; color:var(--gray); font-weight:600; }
  .stat-tile-sub{ font-size:0.8rem; color:var(--gray); }
  .last-session-row{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:14px 18px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    margin-bottom:14px;
  }
  .last-session-row[hidden]{ display:none; }
  .last-session-row .job-price{ margin-bottom:0; font-size:1rem; }
  .last-session-row .card-sub{ margin:0; font-size:0.8rem; }
  .last-session-label{ font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--gray); margin-bottom:4px; }
  .link-btn{
    background:none;
    border:none;
    color:var(--accent);
    font-weight:600;
    font-size:0.88rem;
    cursor:pointer;
    text-decoration:underline;
    text-underline-offset:3px;
    padding:0;
    flex-shrink:0;
  }
  .link-btn:hover{ color:var(--accent-deep); }

  .status-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 11px;
    border-radius:999px;
    font-size:0.74rem;
    font-weight:700;
    letter-spacing:0.03em;
    text-transform:uppercase;
    margin-bottom:10px;
    background:var(--bg-2);
    color:var(--gray);
  }
  .job-head + .status-pill{ margin-top:12px; }
  .status-pill--confirmed{ background:var(--fill-tint); color:var(--accent); }
  .status-pill--en-route{ background:var(--bg-2); color:var(--ink); }
  .status-pill--in-progress{ background:var(--fill-tint); color:var(--accent); }
  .status-pill--completed{ background:var(--success-soft); color:var(--success); }
  .status-pill--live{ background:var(--strong); color:var(--on-strong); }
  .status-pill--owed{ background:var(--ink); color:var(--white); }
  .status-pill--paid{ background:var(--bg-2); color:var(--gray); }
  .payout-amount{ font-family:var(--font-display); font-weight:700; font-size:1.25rem; white-space:nowrap; }
  .status-pill--live::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--online); }
  .status-pill--cancelled{ background:var(--error-soft); color:var(--error); }

  /* ---------- slide-to-confirm (trip status updates) ---------- */
  /* the slide control is the job card's primary action, so it carries the primary
     colour like the Accept Job button: black pill, white label, white knob (flipped in dark) */
  .slide-confirm{
    position:relative;
    height:56px;
    border-radius:28px;
    background:var(--accent);
    overflow:hidden;
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
    margin-top:12px;
  }
  .slide-confirm.pending{ opacity:0.8; }
  /* a finished slide goes brand gold, like the online switch, never green */
  .slide-confirm.done{ box-shadow:inset 0 0 0 2px var(--online); }
  .slide-confirm.snapping .slide-confirm-thumb{ transition:transform .2s var(--ease-out); }
  .slide-confirm.snapping .slide-confirm-fill{ transition:transform .2s var(--ease-out); }
  .slide-confirm-fill{
    position:absolute; inset:0;
    transform-origin:left center;
    transform:scaleX(0);
    background:var(--on-accent-soft);
  }
  .slide-confirm.done .slide-confirm-fill{ background:rgba(239,192,97,0.22); }
  .slide-confirm-label{
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    font-weight:600; font-size:0.9rem; color:var(--on-accent);
    pointer-events:none;
    padding:0 60px;
    text-align:center;
  }
  .slide-confirm-thumb{
    position:absolute; top:4px; left:4px;
    width:48px; height:48px;
    border-radius:50%;
    background:var(--on-accent);
    color:var(--accent);
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 3px 10px rgba(0,0,0,0.28);
    cursor:grab;
    touch-action:none;
    will-change:transform;
  }
  .slide-confirm-thumb svg{ width:20px; height:20px; fill:currentColor; }
  .slide-confirm.done .slide-confirm-thumb{ background:var(--online); color:#111111; cursor:default; }
  .slide-confirm-thumb:active{ cursor:grabbing; }

  /* ---------- new job request alert (bottom sheet) ---------- */
  .modal-overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,0.55);
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    display:flex; align-items:flex-end;
    justify-content:center;
    z-index:100;
    padding:16px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .modal-overlay[hidden]{ display:none; }
  .modal-card{
    background:var(--card-bg);
    border-radius:var(--radius-xl);
    padding:22px;
    width:100%;
    max-width:420px;
    box-shadow:var(--shadow-lg);
    animation:sheetUp .32s var(--ease-out);
  }
  @keyframes sheetUp{ from{ transform:translateY(24px); opacity:0; } to{ transform:none; opacity:1; } }
  .modal-card h2, .modal-card h3{ font-size:1.15rem; }
  .modal-card .job-title{ font-weight:700; font-size:1.05rem; margin-top:8px; }
  .modal-card .job-meta{ color:var(--gray); font-size:0.88rem; margin-top:2px; }
  .modal-card .job-price{ color:var(--accent); font-weight:800; font-size:1.5rem; font-family:var(--font-display); margin-top:10px; font-variant-numeric:tabular-nums; letter-spacing:-0.02em; }
  .timer-track{
    height:6px;
    border-radius:3px;
    background:var(--line);
    margin-top:16px;
    overflow:hidden;
  }
  .timer-fill{ height:100%; background:var(--accent); transform-origin:left center; transform:scaleX(1); }
  .modal-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:18px;
  }
  .modal-actions .btn{ margin-top:0; }

  .star-picker{ display:flex; gap:6px; }
  .star-picker[hidden]{ display:none; }
  .star-btn{
    background:none;
    border:none;
    cursor:pointer;
    padding:5px;
    line-height:1;
    transition:transform .12s var(--ease-out);
  }
  .star-btn:hover{ transform:scale(1.1); }
  .star-btn:active{ transform:scale(0.92); }
  .star-icon{
    width:34px; height:34px;
    fill:none;
    stroke:var(--step-upcoming-border);
    stroke-width:14;
    stroke-linejoin:round;
    transition:fill .1s ease, stroke .1s ease;
  }
  .star-btn[aria-pressed="true"] .star-icon{ fill:var(--accent); stroke:var(--accent); }
  .gallery-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:6px;
    margin-top:12px;
  }
  .gallery-grid .card-sub{ grid-column:1 / -1; margin:0; }
  .gallery-item{
    display:block;
    border-radius:var(--radius-sm);
    overflow:hidden;
    aspect-ratio:1;
    background:var(--bg-2);
  }
  .gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }
  .upload-widget{ margin-top:12px; }
  .upload-widget input[type="file"]{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; pointer-events:none; }
  .upload-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .upload-row .btn{ margin-top:0; }
  .upload-status{ color:var(--gray); font-size:0.82rem; margin-top:8px; min-height:1.2em; }
  .btn-ghost{
    background:transparent;
    color:var(--gray);
    border:none;
    padding:10px 8px;
    font-size:0.88rem;
    text-decoration:underline;
    text-underline-offset:3px;
    width:auto;
  }
  .btn-ghost--danger{ color:var(--error); }

  .missing-line{
    color:var(--error);
    font-size:0.85rem;
    margin-top:10px;
    text-align:center;
    min-height:1.2em;
  }
  .missing-line[hidden]{ display:none; }

  /* ---------- booking steps: one question per screen, in Snappr's arrangement
     (thin back arrow + progress bar, centred question, tall bordered option rows) ---------- */
  body.is-wizard .topbar, body.is-wizard footer{ display:none; }
  body.is-wizard main{
    padding-top:calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom:calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .wiz-head{ display:flex; align-items:center; gap:18px; padding:6px 2px 0; }
  .wiz-back{
    width:40px; height:36px;
    margin-left:-8px;
    display:flex; align-items:center; justify-content:center;
    background:none;
    border:none;
    border-radius:10px;
    color:var(--ink);
    cursor:pointer;
  }
  .wiz-back svg{ width:28px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .wiz-progress{ flex:1; height:5px; border-radius:3px; background:var(--line); overflow:hidden; }
  .wiz-progress-fill{
    height:100%;
    width:100%;
    background:var(--ink);
    border-radius:3px;
    transform-origin:left center;
    transform:scaleX(0.2);
    transition:transform .3s var(--ease-out);
  }
  .wiz-step[hidden]{ display:none; }
  .wiz-title{ text-align:center; font-size:1.7rem; line-height:1.15; margin:44px 8px 30px; }
  .wiz-hint{ color:var(--gray); font-size:0.86rem; text-align:center; line-height:1.5; margin:14px 8px 18px; }
  .wiz-step .field{ margin-bottom:8px; }
  .wiz-step .missing-line{ margin:4px 0 0; }
  .wiz-step .settings-list{ margin-bottom:4px; }
  .option-group{ margin-bottom:22px; }
  .option-group-label{ font-family:var(--font-display); font-weight:700; font-size:0.95rem; color:var(--ink); margin:0 2px 10px; }
  .option-list{ display:flex; flex-direction:column; gap:10px; }
  .option-row{
    display:flex;
    align-items:center;
    gap:18px;
    width:100%;
    min-height:64px;
    padding:16px 20px;
    background:var(--bg-2);
    border:none;
    border-radius:var(--radius-md);
    color:var(--ink);
    font-family:inherit;
    font-size:1.05rem;
    font-weight:500;
    text-align:left;
    cursor:pointer;
    transition:box-shadow .15s ease, transform .12s var(--ease-out);
  }
  .option-row:active{ transform:scale(0.985); background:var(--brand); color:var(--white); }
  @media (hover:hover){ .option-row:hover{ background:var(--brand); color:var(--white); } }
  .option-row[aria-pressed="true"]{ background:var(--brand); color:var(--white); }
  .option-row-label{ flex:1; min-width:0; }
  .other-wrap{ margin-top:4px; }
  .other-wrap[hidden]{ display:none; }
  .other-wrap .btn{ margin-top:12px; }

  /* ---------- confirm step, in Uber's "Confirm details" sheet arrangement:
     product row with the price, payment row, big confirm button with a square date button ---------- */
  .sheet{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius-xl);
    padding:18px 18px 16px;
  }
  .confirm-product{
    display:flex;
    align-items:center;
    gap:14px;
    padding:2px 0 14px;
    border-bottom:1px solid var(--line);
    margin-bottom:6px;
  }
  .confirm-product-text{ flex:1; min-width:0; }
  .confirm-product .job-title{ font-family:var(--font-display); font-weight:700; font-size:1.08rem; margin-bottom:2px; }
  .confirm-product .job-meta{ color:var(--gray); font-size:0.86rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .confirm-product .job-price{
    margin:0;
    font-family:var(--font-display);
    font-weight:800;
    font-size:1.35rem;
    color:var(--ink);
    letter-spacing:-0.02em;
    font-variant-numeric:tabular-nums;
    flex-shrink:0;
  }
  .pay-row{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    padding:14px 4px;
    margin-top:6px;
    background:none;
    border:none;
    border-top:1px solid var(--line);
    font-family:inherit;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
  }
  .pay-row-icon{
    width:44px; height:32px;
    border-radius:8px;
    background:var(--accent);
    color:var(--on-accent);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .pay-row-icon svg{ width:20px; height:20px; fill:currentColor; }
  .pay-row-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .pay-row-label{ font-weight:600; font-size:0.95rem; }
  .pay-row-sub{ color:var(--gray); font-size:0.84rem; }
  .pay-row .chevron{ width:16px; height:16px; flex-shrink:0; fill:var(--gray-2); }
  .sheet .wiz-hint{ margin:4px 0 14px; text-align:left; }
  .wiz-hint--legal{ font-size:0.8rem; }
  .wiz-hint a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
  a.settings-row{ text-decoration:none; color:inherit; }
  .confirm-actions{ display:flex; gap:10px; }
  .confirm-actions .btn-cta{ flex:1; min-width:0; }
  .btn-square{
    width:56px;
    flex-shrink:0;
    border-radius:var(--radius-md);
    border:1.5px solid var(--line-strong);
    background:var(--surface);
    color:var(--ink);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  .btn-square:hover{ border-color:var(--accent); color:var(--accent); }
  .btn-square svg{ width:22px; height:22px; fill:currentColor; }

  /* ---------- steppers (add-ons) ---------- */
  .addon{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    border-bottom:1px solid var(--line);
  }
  .addon:last-child{ border-bottom:none; }
  .addon-info h3, .addon-info h4{ font-size:0.95rem; margin-bottom:2px; }
  .addon-info .addon-desc{ color:var(--gray); font-size:0.8rem; }
  .addon-info .addon-caption{ color:var(--gray); font-size:0.75rem; margin-top:4px; }
  .addon-info .addon-caption[hidden]{ display:none; }
  .stepper{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
  }
  .stepper-btn{
    width:44px; height:44px;
    border-radius:50%;
    border:1.5px solid var(--line-strong);
    background:var(--surface);
    color:var(--ink);
    font-size:1.1rem;
    font-weight:700;
    line-height:1;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    transition:border-color .15s ease, color .15s ease, transform .12s var(--ease-out), background .15s ease;
  }
  .stepper-btn:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); }
  .stepper-btn:active:not(:disabled){ transform:scale(0.9); background:var(--fill); }
  .stepper-btn:disabled{ opacity:0.35; cursor:not-allowed; }
  .stepper-count{
    min-width:22px;
    text-align:center;
    font-weight:700;
    font-size:1rem;
    font-variant-numeric:tabular-nums;
  }
  .addon-line-price{
    color:var(--accent);
    font-weight:600;
    font-size:0.8rem;
    margin-top:3px;
    font-variant-numeric:tabular-nums;
  }

  /* ---------- price summary ---------- */
  .price-row{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    font-size:0.92rem;
    padding:6px 0;
    gap:10px;
  }
  .price-row .price-label{ color:var(--gray); }
  .price-row .price-value{ color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
  .price-row[hidden]{ display:none; }
  .price-row.total{
    border-top:1px solid var(--line);
    margin-top:8px;
    padding-top:12px;
    font-size:1.1rem;
  }
  .price-row.total .price-label{ color:var(--ink); font-weight:700; }
  .price-row.total .price-value{ color:var(--accent); font-weight:800; font-size:1.35rem; font-family:var(--font-display); letter-spacing:-0.02em; }

  /* ---------- summary rows (truncating) ---------- */
  .summary-row{
    display:flex;
    gap:10px;
    padding:7px 0;
    font-size:0.88rem;
    align-items:baseline;
  }
  .summary-row .summary-label{
    color:var(--gray);
    flex:0 0 auto;
    min-width:96px;
    font-weight:600;
  }
  .summary-row .summary-value{
    flex:1 1 auto;
    min-width:0;
    color:var(--ink);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .summary-block .summary-value{
    white-space:normal;
    overflow-wrap:anywhere;
  }

  /* ---------- match screen ---------- */
  .match-loading{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:44px 16px 40px;
  }
  /* the one authored motion in the app: a radar sweep around the brand mark
     while dispatch is searching, instead of a generic spinner */
  .radar{
    position:relative;
    width:132px; height:132px;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:22px;
  }
  .radar::before, .radar::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px solid var(--accent);
    opacity:0;
    animation:radarRing 2.4s var(--ease-out) infinite;
  }
  .radar::after{ animation-delay:1.2s; }
  .radar-core{
    width:76px; height:76px;
    border-radius:50%;
    background:var(--surface);
    box-shadow:var(--shadow-md), 0 0 0 12px var(--fill-tint);
    display:flex; align-items:center; justify-content:center;
  }
  .radar-core .pr-mark{ width:42px; height:38px; }
  @keyframes radarRing{
    0%{ transform:scale(0.55); opacity:0.55; }
    100%{ transform:scale(1.05); opacity:0; }
  }
  @media (prefers-reduced-motion: reduce){
    .radar::before, .radar::after{ animation:none; opacity:0.25; transform:scale(0.85); }
    .status-card.is-online .status-dot{ animation:none; }
    .step-circle.current{ animation:none; }
    .receipt-badge .check-icon{ animation:none; }
    .modal-card{ animation:none; }
    .wiz-progress-fill{ transition:none; }
  }
  .match-loading p{ color:var(--gray); font-size:0.95rem; }
  .match-loading .big{ color:var(--ink); font-weight:700; font-size:1.1rem; margin-bottom:6px; font-family:var(--font-display); }
  .match-loading[hidden]{ display:none; }
  .match-loading--empty{ padding:36px 20px; }
  .match-loading--empty .big{
    font-family:var(--font-display);
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:8px;
  }
  .match-loading--empty p:not(.big){ max-width:320px; line-height:1.5; }
  .match-loading--empty .pr-mark{ margin-bottom:18px; opacity:0.9; }
  .match-loading--empty .btn{ margin-top:14px; }

  .match-result[hidden]{ display:none; }
  .photographer-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:6px 0 4px;
  }
  .avatar{
    width:64px; height:64px;
    border-radius:50%;
    flex-shrink:0;
    background:var(--bg-2);
    color:var(--ink);
    font-family:var(--font-display);
    font-weight:700;
    font-size:1.3rem;
    display:flex; align-items:center; justify-content:center;
  }
  .photographer-name{ font-size:1.1rem; font-weight:700; margin-bottom:2px; font-family:var(--font-display); }
  .photographer-rating{ color:var(--gray); font-size:0.85rem; margin-bottom:3px; display:flex; align-items:center; gap:4px; }
  .photographer-rating svg{ width:14px; height:14px; fill:var(--accent); }
  .photographer-specialty{ color:var(--ink); font-size:0.85rem; }

  /* ---------- session screen: live header ---------- */
  .session-hero{
    display:flex;
    align-items:center;
    gap:14px;
  }
  .session-hero .avatar{ width:56px; height:56px; font-size:1.15rem; }
  .session-hero-text{ flex:1; min-width:0; }
  .session-hero-text .photographer-name{ margin-bottom:1px; }
  .session-hero-text .card-sub{ margin:0; }

  /* ---------- session stepper ---------- */
  .stepper-list{ display:flex; flex-direction:column; }
  .step-row{ display:flex; gap:14px; }
  .step-indicator{ display:flex; flex-direction:column; align-items:center; }
  .step-circle{
    width:32px; height:32px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:700;
    font-size:0.85rem;
    flex-shrink:0;
    font-variant-numeric:tabular-nums;
  }
  .step-circle svg{ width:14px; height:14px; fill:currentColor; }
  .step-circle.complete{
    background:var(--accent);
    border:2px solid var(--ink);
    color:var(--on-accent);
  }
  .step-circle.current{
    background:var(--surface);
    border:2px solid var(--ink);
    color:var(--ink);
    animation:pulse-ring 1.8s ease-out infinite;
  }
  @keyframes pulse-ring{
    0%{ box-shadow:0 0 0 0 var(--ring); }
    70%{ box-shadow:0 0 0 9px rgba(0,0,0,0); }
    100%{ box-shadow:0 0 0 0 rgba(0,0,0,0); }
  }
  .step-circle.upcoming{
    background:var(--surface);
    border:2px solid var(--step-upcoming-border);
    color:var(--step-upcoming-text);
  }
  .step-line{ width:2px; flex:1; min-height:22px; background:var(--step-upcoming-border); }
  .step-line.filled{ background:var(--accent); }
  .step-row:last-child .step-line{ display:none; }
  .step-content{ padding-bottom:20px; }
  .step-row:last-child .step-content{ padding-bottom:4px; }
  .step-content h3, .step-content h4{ font-size:0.95rem; margin-bottom:2px; color:var(--ink); }
  .step-content h3.upcoming-text, .step-content h4.upcoming-text{ color:var(--step-upcoming-text); }
  .step-content p{ font-size:0.8rem; color:var(--gray); }
  .stepper-note{ color:var(--gray); font-size:0.82rem; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
  .stepper-note--warn{ color:var(--error); font-weight:600; }

  /* ---------- receipt ---------- */
  .receipt[hidden]{ display:none; }
  .receipt-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--success);
    font-weight:700;
    font-size:0.9rem;
    margin-bottom:10px;
  }
  .receipt-badge .check-icon{
    width:22px; height:22px;
    border-radius:50%;
    background:var(--success);
    color:var(--white);
    display:flex; align-items:center; justify-content:center;
    animation:pop-in .25s var(--ease-out);
  }
  .receipt-badge .check-icon svg{ width:12px; height:12px; fill:currentColor; }
  .receipt .summary-block{ margin-top:14px; }
  .receipt > .btn{ margin-top:18px; }
  .review-block{ margin-top:18px; }
  .review-block .input, .review-block .btn{ margin-top:10px; }

  /* ---------- Activity: one card per session, actions as pills ---------- */
  .session-card{ padding:16px 18px 18px; }
  .session-card .gallery-grid{ margin:0 0 14px; }
  .photo-keep{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
  .photo-keep .card-sub{ margin:0; }
  .session-card .job-head{ align-items:flex-start; }
  .empty-card{ padding:20px; }
  .empty-card strong{ display:block; font-family:var(--font-display); font-size:1.15rem; font-weight:700; margin-bottom:6px; }
  .empty-card p{ color:var(--gray); font-size:0.95rem; }
  .link-btn--arrow{ font-size:1rem; text-decoration:none; }
  .link-btn--arrow::after{ content:' \2192'; }

  /* ---------- empty states ---------- */


  /* ---------- accessibility options (Account > Accessibility) and the matching system settings ---------- */
  .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .wiz-title:focus{ outline:none; }
  /* text size: the whole type scale is in rem, so the root size drives it */
  html[data-text="large"]{ font-size:18px; }
  html[data-text="largest"]{ font-size:20px; }
  /* follows the iPhone's own Text Size setting (Dynamic Type) inside the native app */
  html[data-text="system"]{ font:-apple-system-body; }
  /* high contrast: darker secondary text, stronger outlines, an opaque tab bar */
  html[data-contrast="high"]{
    --gray:#3B3D4E; --gray-2:#565868;
    --line:#B8AE93; --line-strong:#8C8467;
    --step-upcoming-border:#9A927A; --step-upcoming-text:#5E5847;
    --fill-tint:rgba(0,0,0,0.10);
  }
  html[data-contrast="high"] .bottom-nav{ background:var(--surface); border-top-color:var(--line-strong); }
  html[data-contrast="high"] .input::placeholder{ color:var(--gray); }
  html[data-contrast="high"] .btn-primary:disabled{ background:#D6D6D6; color:#3E3E3E; }
  html[data-contrast="high"] .promo-text strong{ color:var(--white); }
  html[data-contrast="high"] .nav-btn{ color:var(--gray); }
  @media (prefers-contrast: more){
    :root{
      --gray:#3B3D4E; --gray-2:#565868;
      --line:#B8AE93; --line-strong:#8C8467;
      --step-upcoming-border:#9A927A; --step-upcoming-text:#5E5847;
      --fill-tint:rgba(0,0,0,0.10);
    }
    .bottom-nav{ background:var(--surface); border-top-color:var(--line-strong); }
    .input::placeholder{ color:var(--gray); }
  }
  /* reduce motion (in-app switch), the same rules as the system preference below */
  html[data-motion="reduce"] .radar::before, html[data-motion="reduce"] .radar::after{ animation:none; opacity:0.25; transform:scale(0.85); }
  html[data-motion="reduce"] .status-card.is-online .status-dot{ animation:none; }
  html[data-motion="reduce"] .step-circle.current{ animation:none; }
  html[data-motion="reduce"] .receipt-badge .check-icon{ animation:none; }
  html[data-motion="reduce"] .modal-card{ animation:none; }
  html[data-motion="reduce"] .wiz-progress-fill{ transition:none; }
  html[data-motion="reduce"] .btn:active, html[data-motion="reduce"] .tile:active, html[data-motion="reduce"] .option-row:active, html[data-motion="reduce"] .nav-btn:active{ transform:none; }
  .pref-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 18px;
    border-bottom:1px solid var(--line);
  }
  .settings-list .pref-row:last-child{ border-bottom:none; }
  .pref-row--stack{ flex-direction:column; align-items:stretch; gap:10px; }
  .pref-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
  .seg{ display:flex; gap:6px; }
  .seg button{
    flex:1;
    min-height:44px;
    padding:8px 6px;
    border:1.5px solid var(--line-strong);
    border-radius:10px;
    background:var(--surface);
    color:var(--ink);
    font-family:inherit;
    font-size:0.88rem;
    font-weight:600;
    line-height:1.2;
    cursor:pointer;
  }
  .seg button[aria-checked="true"]{ border-color:var(--accent); background:var(--fill); color:var(--accent); }
  .seg button[hidden]{ display:none; }

  /* ---------- footer ---------- */
  footer{
    max-width:600px;
    margin:0 auto;
    padding:14px 16px 30px;
    text-align:center;
  }
  footer p{
    color:var(--gray);
    font-size:0.78rem;
    line-height:1.6;
  }

  @media (min-width:640px){
    .card{ padding:26px; }
    .screen-head h1{ font-size:1.85rem; }
  }

  /* ---------- dark appearance: Account > Accessibility > Appearance, or the iPhone's own setting.
     Uber's dark rider app: black ground, near-black fills, white text, grey secondary text.
     Brand colours (purple mark, promo card, gold online state, purple hover) stay as they are. ---------- */
  html[data-theme="dark"]{
    color-scheme:dark;
    --ink:#FFFFFF;
    --accent:#FFFFFF;
    --accent-deep:#E0E0E0;
    --fill:#1C1C1C;
    --fill-tint:rgba(255,255,255,0.08);
    --fill-glow:rgba(255,255,255,0.14);
    --bg:#000000;
    --bg-2:#1C1C1C;
    --gray:#A8A8A8;
    --gray-2:#7C7C7C;
    --success:#3DBE7A;
    --success-soft:rgba(61,190,122,0.18);
    --error:#FF5C5C;
    --error-soft:rgba(255,92,92,0.16);
    --card-bg:#121212;
    --line:#2A2A2A;
    --line-strong:#3D3D3D;
    --step-upcoming-border:#3D3D3D;
    --step-upcoming-text:#7C7C7C;
    --navy:#FFFFFF;
    --surface:#1C1C1C;
    --surface-2:#2C2C2C;
    --on-accent:#000000;
    --on-accent-soft:rgba(0,0,0,0.10);
    --strong:#2A2A2A;
    --on-strong:#FFFFFF;
    --on-strong-soft:rgba(255,255,255,0.82);
    --ring:rgba(255,255,255,0.22);
    --shadow-sm:0 1px 2px rgba(0,0,0,0.5);
    --shadow-md:0 2px 8px rgba(0,0,0,0.6);
    --shadow-lg:0 12px 32px rgba(0,0,0,0.7);
  }
  html[data-theme="dark"] .bottom-nav{ box-shadow:0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,0.6); }
  html[data-theme="dark"] .tile--photo::before{ background:rgba(0,0,0,0.5); }
  html[data-theme="dark"] .btn-danger:disabled{ background:#5A2E2E; }
  /* high contrast on top of dark: lighter secondary text, stronger lines */
  html[data-theme="dark"][data-contrast="high"]{
    --gray:#D4D4D4; --gray-2:#B4B4B4;
    --line:#5C5C5C; --line-strong:#8A8A8A;
    --step-upcoming-border:#8A8A8A; --step-upcoming-text:#B4B4B4;
    --fill-tint:rgba(255,255,255,0.16);
  }
  html[data-theme="dark"][data-contrast="high"] .btn-primary:disabled{ background:#3D3D3D; color:#D4D4D4; }
  @media (prefers-contrast: more){
    html[data-theme="dark"]{
      --gray:#D4D4D4; --gray-2:#B4B4B4;
      --line:#5C5C5C; --line-strong:#8A8A8A;
      --step-upcoming-border:#8A8A8A; --step-upcoming-text:#B4B4B4;
      --fill-tint:rgba(255,255,255,0.16);
    }
  }
