/* =================================================================
   1. GLOBAL VARIABLES & BASE STYLES
   ================================================================= */
:root {
    --primary-bg: #121212;
    --secondary-bg: #1E1E1E;
    --primary-accent: #FFA500; /* Orange for vendors */
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: #2c2c2c;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    width: 100%;
    height: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =================================================================
   2. SCREEN & LAYOUT MANAGEMENT
   ================================================================= */
.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-bottom: 70px; /* Space for bottom nav */
}
.screen.active {
    display: flex;
    opacity: 1;
    z-index: 10;
}
.screen-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}
.screen-content.no-padding {
    padding: 0;
}
.screen-content.centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* =================================================================
   3. HEADERS & NAVIGATION
   ================================================================= */
.app-header {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    height: 120px;
    width: auto;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--secondary-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s ease;
}
.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.nav-item.active {
    color: var(--primary-accent);
}

/* =================================================================
   4. FORMS, BUTTONS & INPUTS
   ================================================================= */
.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    text-decoration: none;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background-color: var(--primary-accent);
    color: var(--primary-bg);
}
.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-block {
    width: 100%;
}
.modern-input {
    width: 100%;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
}
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

/* =================================================================
   5. VENDOR-SPECIFIC COMPONENTS
   ================================================================= */
.view-toggle {
    display: flex;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 4px;
}
.view-toggle i {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.view-toggle i.active {
    color: var(--primary-accent);
    background-color: var(--secondary-bg);
}
.job-view {
    display: none;
    width: 100%;
    height: 100%;
}
.job-view.active {
    display: block;
}
#job-list-view {
    padding: 10px;
    overflow-y: auto;
}
.map-container-full {
    width: 100%;
    height: 100%;
    background-color: var(--secondary-bg);
}

/* --- Job Cards --- */
.job-card {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* START: Add these lines */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* END: Add these lines */
}
.job-card:active {
    background-color: #2a2a2a;
}
.job-card h4, .job-card p {
    margin: 0 0 5px;
    pointer-events: none; /* Make text non-selectable on click */
}
.job-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.job-card.active-job {
    border-left-color: var(--primary-accent);
}
.job-card-contact {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.job-card-contact .btn {
    flex: 1;
}

/* --- Section Titles for "My Jobs" --- */
#my-jobs-screen h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

/* =================================================================
   6. MODAL POPUP
   ================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-content {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    border: 1px solid var(--border-color);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
#modal-photo-carousel {
    height: 150px;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
}
.modal-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}
.modal-content p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.modal-content h4 {
    margin-top: 15px;
    font-size: 1.3rem;
    color: var(--primary-accent);
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.modal-actions .btn {
    flex: 1;
}

/* Add to vendor/style.css */

/* --- Account Form Styles --- */
#account-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 15px;
    margin-bottom: -5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
#truck-photo-preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
#btn-logout {
    margin-top: 10px;
}

/* --- General Modal Styles (replaces alerts) --- */
.modal-overlay {
    /* ... (Copy from previous consumer app modal-overlay style) ... */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); display: none; justify-content: center;
    align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease;
}
.modal-content {
    /* ... (Copy from previous consumer app modal-content style) ... */
    background-color: var(--secondary-bg); padding: 25px; border-radius: 16px;
    width: 90%; max-width: 380px; border: 1px solid var(--border-color);
    transform: scale(0.95); transition: transform 0.3s ease; text-align: center;
}
.modal-title {
    margin-top: 0; margin-bottom: 10px; font-size: 1.4rem; font-weight: 600;
}
.modal-message {
    margin-bottom: 25px; color: var(--text-secondary); line-height: 1.6;
}

.job-card .view-map-btn {
    background-color: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-top: 5px;
    width: auto;
    display: inline-block; /* Allows button to size to its content */
}

.payout-summary-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.payout-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.payout-amount {
    display: block;
    color: var(--primary-accent);
    font-size: 2.2rem;
    font-weight: 700;
}

.payout-history-item {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Add to end of file */
.payout-history-item {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.payout-history-info h4 { margin: 0 0 5px; font-size: 1rem; }
.payout-history-info p { margin: 0; font-size: 0.8rem; color: var(--text-secondary); }
.payout-history-amount { font-size: 1.2rem; font-weight: 600; color: #28a745; } /* Green for paid out */

/* --- Account List Styles --- */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}
.account-list-item {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.account-list-item:active {
    background-color: #2a2a2a;
}
.account-list-item i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    width: 40px;
    text-align: center;
}

/* Add these new styles to the end of style (3).css */

/* Make past job cards clickable */
#past-jobs-list .job-card {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#past-jobs-list .job-card:active {
    background-color: #2a2a2a;
}

/* Review section styling inside modal */
#modal-review-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.review-title {
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    margin-bottom: 10px;
}

.star-rating-display {
    margin-bottom: 10px;
}

.star-rating-display i {
    font-size: 1.3rem;
    color: #f0ad4e; /* Star color */
}

.review-comment-box {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    min-height: 50px;
}
/* ===========================================================================
   PHASE 2 FIXES — appended 2026-08-14
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Safe areas.
   There was no env(safe-area-inset-*) anywhere in this stylesheet, so on a
   notched iPhone the bottom nav sat under the home indicator (whose swipe zone
   overlapped the tap targets) and the header collided with the notch.
   index.php now sets viewport-fit=cover, which is what makes these resolve.
   --------------------------------------------------------------------------- */
.bottom-nav {
    height: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
}
.screen {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
.app-header {
    padding-top: calc(15px + env(safe-area-inset-top));
}
.screen-content {
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
}

/* ---------------------------------------------------------------------------
   2. Screen headers.
   .screen-header, .back-icon and .instruction-text were referenced in the
   markup but had NO CSS rules at all. The Technicians and Payout History
   screens therefore rendered with an unstyled header and a bare ~20x20px glyph
   as the back arrow — and since neither screen has a bottom-nav entry, users
   got stuck on them.
   --------------------------------------------------------------------------- */
.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    background-color: var(--bg-light, #1E1E1E);
    border-bottom: 1px solid var(--border-color, #2c2c2c);
    flex-shrink: 0;
}
.screen-header h2 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    /* Keep the title centred against the 44px back button. */
    padding-right: 44px;
}
.back-icon {
    /* 44x44 minimum touch target — it was an unpadded glyph before. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -8px;
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.back-icon:active { background-color: rgba(255, 255, 255, 0.08); }

.instruction-text {
    color: var(--text-secondary, #B3B3B3);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 24px 12px;
}

/* ---------------------------------------------------------------------------
   3. Modals: scrollable, keyboard-safe.
   .modal-content had no max-height and no overflow. Combined with
   html,body{overflow:hidden} and a vertically centred fixed overlay, a tall
   modal's Accept/Close buttons could be pushed off-screen with no way to reach
   them. And #tech-name-input is auto-focused, so the keyboard opened straight
   onto a centred, immovable dialog.
   --------------------------------------------------------------------------- */
.modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5vh 16px calc(5vh + env(safe-area-inset-bottom));
}
.modal-content {
    max-height: 88dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto 0;
}

/* ---------------------------------------------------------------------------
   4. Overflow.
   Flex children default to min-width:auto, so a long unbroken string (an email
   address, a long service address) refused to shrink and pushed the payout
   column off the right edge — where .app-container{overflow:hidden} clipped it
   rather than letting it scroll.
   --------------------------------------------------------------------------- */
.job-card > div { min-width: 0; }
.job-card h4,
.job-card p,
.payout-history-item > div { overflow-wrap: anywhere; }

/* The technician row packs three buttons plus a name column into one flex row,
   which overflows below ~400px. Let it wrap, and shrink the buttons. */
.job-card-contact {
    flex-wrap: wrap;
    gap: 8px;
}
.job-card-contact .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 44px;
    flex: 1 1 auto;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   5. Touch behaviour.
   --------------------------------------------------------------------------- */
.btn, .nav-item, .back-icon, .view-toggle i, .job-card {
    touch-action: manipulation;   /* removes the iOS 300ms double-tap delay */
}
.view-toggle i {
    /* was ~32x32; below the 44px minimum */
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.screen-content, #job-list-view {
    overscroll-behavior: contain;  /* stops scroll-chaining jank between panes */
}

/* ---------------------------------------------------------------------------
   6. Login screen sizing on short devices (iPhone SE and similar).
   --------------------------------------------------------------------------- */
@media (max-height: 700px) {
    .logo { height: 80px; }
    #login-screen .app-header { padding-top: calc(20px + env(safe-area-inset-top)); }
}

/* ---------------------------------------------------------------------------
   Location sharing indicator.

   A technician has a right to know when their phone is reporting position, and
   the failure states matter more than the happy one: if GPS is off, the
   customer is staring at a map that will never move and nobody finds out until
   they phone up asking where the truck is.
   --------------------------------------------------------------------------- */
.tracking-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.tracking-on   { background: rgba(74, 222, 128, .10); color: #4ade80; }
.tracking-warn { background: rgba(251, 191, 36, .10); color: #fbbf24; }
.tracking-indicator i { font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   Keyboard handling. Mirrors app/style.css — see app/keyboard.js for why the
   layout is driven from visualViewport rather than dvh, and why this needs
   !important (app.js sets an inline display on the nav at sign-in).
   --------------------------------------------------------------------------- */
.app-container { height: var(--rv2u-vh, 100dvh); }

.app-container.keyboard-visible .bottom-nav,
.app-container.keyboard-visible .screen-cta {
    display: none !important;
}
.app-container.keyboard-visible .screen-content { padding-bottom: 24px; }
.app-container.keyboard-visible .screen { padding-bottom: 0; }

/* ---------------------------------------------------------------------------
   Job detail sheet.
   --------------------------------------------------------------------------- */

/* The photo strip. #modal-photo-carousel used to be a fixed 150px block with a
   black background and a background-image; with no photo it rendered as a black
   rectangle that read as a broken image rather than an absence, and it only
   ever showed the first of however many photos the customer sent. */
#modal-photo-carousel.photo-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
    max-height: 170px;
    background: transparent;
    padding-bottom: 4px;
}
#modal-photo-carousel.photo-strip img {
    height: 150px;
    width: auto;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
    cursor: zoom-in;
}

.accept-note {
    background: rgba(251, 191, 36, .10);
    border: 1px solid rgba(251, 191, 36, .35);
    color: #fbbf24;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.5;
    margin: 4px 0 14px;
    text-align: left;
}
.accept-note b { color: #fff; }

/* ---------------------------------------------------------------------------
   Get Route.
   --------------------------------------------------------------------------- */
.btn-route { white-space: nowrap; }
.btn-route i { margin-right: 6px; }

/* The iOS-only alternative. Deliberately a quiet link rather than a second
   button: one of these is the default and one is the escape hatch, and making
   them look equal would turn every job into a decision. */
.link-route {
    background: none;
    border: 0;
    padding: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.link-route:active { color: var(--primary, #00AFFF); }

/* ---------------------------------------------------------------------------
   Active job cards.

   .job-card is a horizontal flex row, which works for an open job (details on
   the left, one payout figure on the right). An ACCEPTED job now carries three
   actions — Get Route, Call, Complete — and squeezing those into the right-hand
   column left about 140px for the text, so "Fresh Water Delivery for Notif
   Tester" wrapped to one word per line.

   An accepted job is a different shape of thing, so it gets a different
   layout: details across the full width, actions in a row underneath.
   --------------------------------------------------------------------------- */
.job-card.active-job {
    display: block;
}
.job-card.active-job .job-card-contact {
    display: grid;
    /* Three equal columns, not auto-fit: auto-fit gave two on the first row and
       one orphan on the second, which reads as a mistake. Three actions abreast
       is tight but legible, and it is the same shape on every phone. */
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.job-card.active-job .job-card-contact .btn {
    flex: none;
    width: 100%;
    padding: 12px 4px;
    font-size: 0.82rem;
    white-space: nowrap;
}
/* The iOS-only Google Maps link spans the whole row under the buttons. */
.job-card.active-job .job-card-contact .link-route {
    grid-column: 1 / -1;
}
.job-card.active-job h4 {
    font-size: 1rem;
    line-height: 1.35;
}

/* A job with photos should say so on the card — a technician will not tap
   something that looks like it has nothing behind it. */
.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light, #2a2a2a);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}
.job-card.active-job { cursor: pointer; }

/* ===========================================================================
   Installed on a Home Screen: fill the WHOLE screen.  (Sept 2026)
   Same fix as the customer app — see app/style.css for the long version.
   WebKit under-reports 100dvh / 100% / innerHeight by the status bar in an
   installed web app, which left the bottom nav floating and the last buttons
   on each screen unreachable. 100lvh is the full height there; on Android and
   in a browser tab it is identical to 100dvh, so nothing else changes.
   =========================================================================== */
@media (display-mode: standalone) {
    html, body { height: 100lvh; }
    .app-container { height: var(--rv2u-vh, 100lvh); }
}
html.rv2u-standalone,
html.rv2u-standalone body { height: 100lvh; }
html.rv2u-standalone .app-container { height: var(--rv2u-vh, 100lvh); }

/* ---------------------------------------------------------------------------
   Open jobs: map + route side by side.
   --------------------------------------------------------------------------- */
.open-job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.open-job-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 10px 12px; font-size: 0.85rem; }
.job-card .open-job-actions .view-map-btn { margin-top: 0; }

.modal-route-row { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.modal-route-row .btn { width: 100%; }

/* ---------------------------------------------------------------------------
   Accepted job: the four on-site steps.
   --------------------------------------------------------------------------- */
.job-card.active-job .job-card-contact.with-steps { grid-template-columns: repeat(2, 1fr); }

.job-steps { margin-top: 14px; border-top: 1px solid var(--border-color); padding-top: 6px; cursor: default; }
.job-steps .step { padding: 12px 0; border-bottom: 1px dashed var(--border-color); }
.job-steps .step:last-child { border-bottom: 0; padding-bottom: 2px; }
.job-steps .step-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.job-steps .step-num {
    width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; background: #2a2a2a; color: var(--text-secondary); border: 1px solid var(--border-color);
}
.job-steps .step.current .step-num { background: var(--primary-accent); color: var(--primary-bg); border-color: var(--primary-accent); }
.job-steps .step.done .step-num { background: transparent; color: #22c55e; border-color: #22c55e; }
.job-steps .step.locked { opacity: 0.45; }
.job-steps .step-note { font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 8px; pointer-events: auto; }
.job-steps .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.step-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.step-photo {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 104px; padding: 10px 6px; border-radius: 10px; cursor: pointer;
    background: #232323; color: var(--text-primary); border: 1px dashed #4a4a4a;
    font-family: inherit; font-size: 0.85rem; position: relative; overflow: hidden;
}
.step-photo i { font-size: 1.5rem; color: var(--primary-accent); }
.step-photo em { font-style: normal; font-size: 0.72rem; color: var(--text-secondary); }
.step-photo.has-photo { border-style: solid; border-color: #22c55e; padding: 0 0 6px; }
.step-photo.has-photo img { width: 100%; height: 78px; object-fit: cover; display: block; }
.step-photo.has-photo span { color: #22c55e; }
.step-photo:disabled { cursor: not-allowed; }
.step-photo.uploading { opacity: 0.7; }

.step-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 12px; }
.step-thumb { margin: 0; flex: 0 0 auto; width: 96px; }
.step-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.step-thumb figcaption { font-size: 0.7rem; color: var(--text-secondary); margin-top: 3px; }

/* Push / install hints can be several lines (steps, and a line for the office). */
#pwa-hint { white-space: pre-line; }
