/* =============================================================================================
   /Mobile — standalone showcase of the driver phone app (Cincinnati demo).
   Self-contained: a device frame centred on the page, the app screens inside, and bottom sheets
   drawn over the device. All class names are mob-prefixed so nothing here leaks into the app.
   ============================================================================================= */

:root {
    --mob-indigo: #5B5BF5;
    --mob-indigo-soft: #A9A9F4;
    --mob-indigo-tint: #ECECFD;
    --mob-ink: #1C1E2B;
    --mob-ink-2: #3A3E52;
    --mob-muted: #8A8FA3;
    --mob-line: #ECEDF2;
    --mob-bg: #F6F7F9;
    --mob-green: #2E9E55;
    --mob-green-bg: #E4F6E9;
    --mob-amber: #B8860B;
    --mob-amber-bg: #FCF4D8;
    --mob-amber-bd: #F2E2A6;
    --mob-snow: #06B1F1;
}

/* ---- Stage ------------------------------------------------------------------------------------ */
.mob-stage {
    min-height: 100vh;
    margin: 0;
    padding: 40px 16px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: radial-gradient(120% 80% at 50% 0%, #EEF0FF 0%, #F6F7F9 45%, #EDEFF3 100%);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--mob-ink);
}

/* ---- Device frame ----------------------------------------------------------------------------- */
.mob-device {
    /* 20% smaller than the natural 390×800 design — zoom scales the frame and all content
       uniformly while keeping the layout footprint correct (so the stage stays centred). */
    zoom: .8;
    position: relative;
    width: 390px;
    height: 800px;
    background: #FFFFFF;
    border: 13px solid #0C0D12;
    border-radius: 52px;
    box-shadow: 0 40px 80px -24px rgba(20, 22, 40, .45), 0 0 0 2px #2A2C36;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: none;
}

.mob-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 30px;
    background: #0C0D12;
    border-radius: 0 0 18px 18px;
    z-index: 30;
}

.mob-statusbar {
    height: 50px;
    flex: none;
    padding: 16px 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--mob-ink);
}
.mob-signal { display: flex; gap: 7px; font-size: 14px; }

/* ---- Scrolling viewport ----------------------------------------------------------------------- */
.mob-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mob-viewport::-webkit-scrollbar { width: 0; height: 0; }

.mob-pad { padding: 8px 20px 24px; }

.mob-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 14px;
    border-bottom: 1px solid var(--mob-line);
}
.mob-topbar-title {
    flex: 1; min-width: 0; text-align: center;
    font-size: 17px; font-weight: 700; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-topbar-spacer { width: 64px; flex: none; }
.mob-back {
    width: 64px; flex: none;
    background: none; border: none; cursor: pointer;
    font-size: 16px; font-weight: 600; color: var(--mob-ink);
    display: flex; align-items: center; gap: 2px; padding: 0;
}

/* ---- Home header ------------------------------------------------------------------------------ */
.mob-home-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 18px;
    border-bottom: 1px solid var(--mob-line);
    margin-bottom: 14px;
}
.mob-hi { font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.03em; }
.mob-date { font-size: 14px; color: var(--mob-muted); margin-top: 2px; }

.mob-gps {
    flex: none;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    background: var(--mob-indigo);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 20px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 18px -6px rgba(91, 91, 245, .6);
}
.mob-gps.on { background: #E5484D; box-shadow: 0 8px 18px -6px rgba(229, 72, 77, .55); }

/* ---- Sections --------------------------------------------------------------------------------- */
.mob-section { font-size: 19px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em; }
.mob-section-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 22px 0 12px;
}
.mob-section-row .mob-section { margin: 0; }
.mob-pill-select {
    font-size: 14px; font-weight: 600; color: var(--mob-ink-2);
    border: 1px solid var(--mob-line); border-radius: 18px;
    padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.mob-count {
    background: var(--mob-indigo); color: #fff; font-size: 13px; font-weight: 700;
    min-width: 24px; height: 24px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 7px;
}

/* ---- Start-new-dispatch cards ----------------------------------------------------------------- */
.mob-dispatch-row { display: flex; gap: 12px; margin-bottom: 4px; }
.mob-dispatch-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--mob-line);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--mob-ink);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 6px rgba(20, 22, 40, .04);
}
.mob-dispatch-card:active { transform: scale(.98); }
.mob-dispatch-ico {
    width: 36px; height: 36px; flex: none; border-radius: 10px;
    background: var(--mob-indigo-tint); color: var(--mob-indigo);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* ---- Route cards ------------------------------------------------------------------------------ */
.mob-route-card {
    display: block; width: 100%; text-align: left; cursor: pointer;
    background: #fff;
    border: 1px solid var(--mob-line);
    border-radius: 18px;
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px -8px rgba(20, 22, 40, .2);
}
.mob-route-card:active { transform: scale(.99); }
.mob-route-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mob-route-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.mob-route-frac { font-size: 18px; font-weight: 700; color: var(--mob-ink-2); }
.mob-route-meta {
    display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 12px;
    font-size: 14px; color: var(--mob-muted);
}
.mob-route-meta .bi { margin-right: 4px; }
.mob-progress { height: 7px; border-radius: 4px; background: #EBECF1; overflow: hidden; }
.mob-progress-fill { display: block; height: 100%; border-radius: 4px; background: var(--mob-indigo); }
.mob-progress-fill.done { background: var(--mob-green); }
.mob-route-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mob-route-pct { font-size: 14px; font-weight: 600; color: var(--mob-ink-2); }
.mob-route-drivers { font-size: 14px; color: var(--mob-ink-2); margin-left: 6px; }

.mob-avatars { display: inline-flex; align-items: center; }
.mob-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 700;
    border: 2px solid #fff; margin-left: -8px;
}
.mob-avatar:first-child { margin-left: 0; }
.mob-avatar.lg { width: 44px; height: 44px; font-size: 14px; margin: 0; border: none; }
.mob-avatar.xl { width: 72px; height: 72px; font-size: 24px; margin: 0; border: none; }

.mob-badge {
    font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 14px; white-space: nowrap;
}
.mob-badge.done { background: var(--mob-green-bg); color: var(--mob-green); }
.mob-badge.muted { background: #F0F1F4; color: var(--mob-muted); }

.mob-chip {
    font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 12px; white-space: nowrap;
    background: var(--mob-indigo-tint); color: var(--mob-indigo);
}
.mob-chip.snow { background: #DBF3FD; color: #0B89BC; }
.mob-chip.both { background: #E7EAFE; color: #4350D6; }

/* ---- Invitation cards ------------------------------------------------------------------------- */
.mob-invite-card {
    display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; text-align: left;
    background: var(--mob-amber-bg);
    border: 1px solid var(--mob-amber-bd);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}
.mob-invite-card:active { transform: scale(.99); }
.mob-invite-ico {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: #F6E4AE; color: var(--mob-amber);
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.mob-invite-body { flex: 1; }
.mob-invite-name { font-size: 17px; font-weight: 700; }
.mob-invite-meta { font-size: 14px; color: var(--mob-amber); font-weight: 600; margin-top: 2px; }
.mob-invite-meta .bi { margin-right: 3px; }
.mob-invite-chev { color: var(--mob-amber); font-size: 16px; }
.mob-dot { margin: 0 4px; }

/* ---- Generic card / list ---------------------------------------------------------------------- */
.mob-card {
    background: #fff;
    border: 1px solid var(--mob-line);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px -10px rgba(20, 22, 40, .2);
}
.mob-card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mob-card-strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.mob-overline { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mob-muted); }
.mob-overline.amber { color: var(--mob-amber); }
.mob-overline.indigo-tx { color: var(--mob-indigo); }
.mob-divider { height: 1px; background: var(--mob-line); margin: 14px 0; }
.mob-divider.wide { margin: 18px -16px; }
.mob-driver-line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-top: 10px; }
.mob-you { background: var(--mob-indigo-tint); color: var(--mob-indigo); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; margin-left: auto; }

.mob-ghost-btn {
    border: 1px solid var(--mob-line); background: #fff; border-radius: 12px;
    padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--mob-ink);
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.mob-ghost-btn.wide { width: 100%; justify-content: center; padding: 14px; color: #E5484D; }

/* ---- Buttons ---------------------------------------------------------------------------------- */
.mob-primary {
    width: 100%; border: none; cursor: pointer;
    background: var(--mob-indigo); color: #fff;
    font-size: 17px; font-weight: 700;
    padding: 17px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-bottom: 18px;
    box-shadow: 0 12px 22px -10px rgba(91, 91, 245, .6);
}
.mob-primary.soft { background: var(--mob-indigo-soft); box-shadow: none; }
.mob-primary:active { transform: scale(.99); }

/* ---- Route-detail stop cards ------------------------------------------------------------------ */
.mob-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mob-ink-2); cursor: pointer; }
.mob-switch input { display: none; }
.mob-switch-track {
    width: 46px; height: 27px; border-radius: 16px; background: #D7D9E1; position: relative; transition: background .15s;
}
.mob-switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
    border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.mob-switch input:checked + .mob-switch-track { background: var(--mob-indigo); }
.mob-switch input:checked + .mob-switch-track::after { transform: translateX(19px); }

.mob-stop-card {
    display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; text-align: left;
    background: #fff; border: 1.5px solid var(--mob-line); border-radius: 16px;
    padding: 14px; margin-bottom: 12px;
}
.mob-stop-card.done { background: #F4FBF6; border-color: #CDEAD6; }
.mob-stop-card.inactive { opacity: .6; }
.mob-stop-card:active { transform: scale(.99); }
.mob-stop-num {
    width: 36px; height: 36px; flex: none; border-radius: 50%;
    background: var(--mob-indigo); color: #fff; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.mob-stop-num.done { background: var(--mob-green); font-size: 18px; }
.mob-stop-body { flex: 1; min-width: 0; }
.mob-stop-name { font-size: 16px; font-weight: 700; }
.mob-stop-addr { font-size: 13.5px; color: var(--mob-snow); margin-top: 2px; }
.mob-stop-body .mob-chip { display: inline-block; margin-top: 8px; }
.mob-stop-nav {
    width: 38px; height: 38px; flex: none; border: 1px solid var(--mob-line); border-radius: 11px;
    display: flex; align-items: center; justify-content: center; color: var(--mob-ink-2);
}

/* ---- Hours / Profile lists -------------------------------------------------------------------- */
.mob-hours-hero { text-align: left; }
.mob-hours-total { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.mob-hours-sub { font-size: 14px; font-weight: 600; color: var(--mob-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.mob-hours-sub.on { color: var(--mob-green); }

.mob-list { padding: 4px 0; }
.mob-list-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px; font-size: 15px; border-bottom: 1px solid var(--mob-line);
}
.mob-list-row:last-child { border-bottom: none; }
.mob-list-mid { color: var(--mob-muted); font-size: 14px; }
.mob-list-end { font-weight: 700; }
.mob-day-chip { display: inline-flex; flex-direction: column; line-height: 1.1; }
.mob-day-chip strong { font-size: 15px; }
.mob-day-chip span { font-size: 12px; color: var(--mob-muted); }
.mob-li { color: var(--mob-indigo); margin-right: 8px; }

.mob-chat-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--mob-line); }
.mob-chat-row:last-child { border-bottom: none; }
.mob-chat-body { flex: 1; min-width: 0; }
.mob-chat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mob-chat-name { font-size: 15px; font-weight: 700; }
.mob-chat-time { font-size: 12px; color: var(--mob-muted); flex: none; }
.mob-chat-preview { font-size: 13.5px; color: var(--mob-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-unread {
    background: var(--mob-indigo); color: #fff; font-size: 12px; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

.mob-profile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; }
.mob-profile-name { font-size: 21px; font-weight: 700; }
.mob-profile-role { font-size: 14px; color: var(--mob-muted); }

/* ---- Bottom nav ------------------------------------------------------------------------------- */
.mob-nav {
    flex: none;
    display: flex;
    border-top: 1px solid var(--mob-line);
    background: #fff;
    padding: 8px 6px 6px;
}
.mob-nav-btn {
    flex: 1; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #A1A6B6; padding: 4px 0;
}
.mob-nav-btn .bi { font-size: 21px; }
.mob-nav-btn.active { color: var(--mob-indigo); position: relative; }
.mob-nav-btn.active::after {
    content: ""; position: absolute; bottom: -6px; width: 22px; height: 3px; border-radius: 2px; background: var(--mob-indigo);
}

.mob-home-indicator {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 134px; height: 5px; border-radius: 3px; background: #0C0D12; opacity: .85; z-index: 25;
}

/* ---- Sheets / modals -------------------------------------------------------------------------- */
.mob-backdrop {
    position: absolute; inset: 0; z-index: 40;
    background: rgba(20, 22, 40, .42);
    animation: mobFade .18s ease;
}
@keyframes mobFade { from { opacity: 0; } to { opacity: 1; } }

.mob-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
    background: #fff;
    border-radius: 26px 26px 0 0;
    padding: 10px 20px 30px;
    max-height: 88%;
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 0 -16px 40px -12px rgba(20, 22, 40, .3);
    animation: mobSlide .24s cubic-bezier(.2, .8, .2, 1);
}
.mob-sheet.tall { max-height: 92%; }
.mob-sheet::-webkit-scrollbar { width: 0; }
@keyframes mobSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }

.mob-grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: #D7D9E1; margin: 2px auto 14px; }

.mob-sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.mob-sheet-head > div:not(.mob-sheet-ico) { flex: 1; }
.mob-sheet-title { font-size: 25px; font-weight: 800; margin: 2px 0 0; letter-spacing: -.03em; }
.mob-sheet-sub { font-size: 14px; color: var(--mob-muted); margin: 6px 0 0; line-height: 1.4; }
.mob-sheet-addr { font-size: 14px; color: var(--mob-snow); margin: 4px 0 0; font-weight: 600; }
.mob-sheet-ico {
    width: 46px; height: 46px; flex: none; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.mob-sheet-ico.indigo { background: var(--mob-indigo-tint); color: var(--mob-indigo); }
.mob-x {
    width: 34px; height: 34px; flex: none; border: none; border-radius: 50%;
    background: #F0F1F4; color: var(--mob-ink-2); cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}

.mob-inset-row {
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--mob-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.mob-inset-row span { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--mob-muted); display: flex; align-items: center; gap: 8px; }
.mob-inset-row strong { font-size: 20px; font-weight: 800; }

.mob-field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mob-muted); margin: 4px 0 8px; }
.mob-field-label.strong { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--mob-ink); font-weight: 700; }
.mob-textarea, .mob-input {
    width: 100%; border: 1px solid var(--mob-line); border-radius: 14px;
    padding: 14px; font-size: 15px; font-family: inherit; color: var(--mob-ink);
    background: #fff; resize: none; box-sizing: border-box;
}
.mob-textarea { min-height: 80px; }
.mob-textarea::placeholder, .mob-input::placeholder { color: #B4B8C6; }

.mob-sheet-actions { display: flex; gap: 12px; margin-top: 20px; }
.mob-btn-ghost, .mob-btn-primary {
    flex: 1; border-radius: 16px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mob-btn-ghost { background: #fff; border: 1px solid var(--mob-line); color: var(--mob-ink); }
.mob-btn-primary { background: var(--mob-indigo); border: none; color: #fff; box-shadow: 0 12px 22px -10px rgba(91, 91, 245, .6); }
.mob-btn-primary.soft { background: var(--mob-indigo-soft); box-shadow: none; }
.mob-btn-primary.wide, .mob-btn-outline.wide { width: 100%; margin-top: 12px; }
.mob-btn-outline {
    width: 100%; background: #fff; border: 1px solid var(--mob-line); color: var(--mob-ink);
    border-radius: 16px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 12px;
}

/* invitation detail */
.mob-invite-detail { padding: 16px; }
.mob-detail-row { display: flex; align-items: flex-start; gap: 12px; }
.mob-detail-ico { color: var(--mob-muted); font-size: 18px; margin-top: 2px; width: 22px; text-align: center; flex: none; }
.mob-note-text { font-size: 15px; line-height: 1.5; margin-top: 4px; }
.mob-sent-by { font-size: 13px; color: var(--mob-ink-2); background: #F6F7F9; border-radius: 14px; padding: 14px; line-height: 1.45; margin-bottom: 4px; }

/* select-routes */
.mob-search {
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--mob-line);
    border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; color: var(--mob-muted);
}
.mob-search input { border: none; outline: none; font-size: 15px; flex: 1; font-family: inherit; }
.mob-route-pick-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mob-pick-row {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
    background: #fff; border: 1.5px solid var(--mob-line); border-radius: 14px; padding: 14px;
}
.mob-pick-row.on { border-color: var(--mob-indigo); background: #FAFAFE; }
.mob-checkbox {
    width: 24px; height: 24px; flex: none; border: 1.5px solid #CDD0DB; border-radius: 7px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.mob-pick-row.on .mob-checkbox { background: var(--mob-indigo); border-color: var(--mob-indigo); }
.mob-pick-name { font-size: 16px; font-weight: 700; }
.mob-pick-driver { font-size: 14px; color: var(--mob-indigo); font-weight: 600; margin-top: 1px; }
.mob-sheet-foot { border-top: 1px solid var(--mob-line); padding-top: 14px; }
.mob-fake-select {
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--mob-line); border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 600;
    margin-bottom: 12px; color: var(--mob-ink);
}
.mob-fake-select .bi { color: var(--mob-muted); }

/* stop sheet */
.mob-tabs { display: flex; gap: 6px; background: #F0F1F5; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.mob-tab {
    flex: 1; border: none; background: none; cursor: pointer; border-radius: 11px;
    padding: 11px 6px; font-size: 13.5px; font-weight: 600; color: var(--mob-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-tab.on { background: #fff; color: var(--mob-ink); box-shadow: 0 2px 6px rgba(20,22,40,.12); }
.mob-cc-row { display: flex; gap: 12px; margin-bottom: 12px; }
.mob-cc-btn {
    flex: 1; border-radius: 14px; padding: 14px 10px; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
    white-space: nowrap;
}
.mob-cc-btn.cant { background: #FDECEC; color: #E5484D; }
.mob-cc-btn.cant.active { background: #E5484D; color: #fff; }
.mob-cc-btn.ok { background: var(--mob-green-bg); color: var(--mob-green); }
.mob-cc-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Can't-complete: a required written reason before the report can be submitted. */
.mob-cant-reason { border: 1px solid #F3C9C9; background: #FDF1F1; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.mob-cant-reason .mob-field-label { margin-top: 0; }
.mob-cant-reason .mob-textarea { background: #fff; }
.mob-req { color: #E5484D; }
.mob-req-hint { font-size: 12.5px; color: #C0494C; margin: 8px 0 12px; }

/* Per-location special rule — an info callout in the sheet + a dot marker in the route list. */
.mob-rule {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4;
    background: #EEF1FF; border: 1px solid #D6DDFF; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.mob-rule .bi { color: var(--mob-indigo); font-size: 17px; margin-top: 1px; flex: none; }
.mob-rule-label { display: block; font-weight: 700; }
.mob-rule-dot { color: var(--mob-indigo); font-size: 13px; margin-left: 5px; vertical-align: middle; }

/* Photo-required location indicator (amber → green once a photo is added). */
.mob-photo-req {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
    color: var(--mob-amber); background: var(--mob-amber-bg); border: 1px solid var(--mob-amber-bd);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.mob-photo-req.done { color: var(--mob-green); background: var(--mob-green-bg); border-color: #CDEAD6; }

.mob-btn-primary.danger { background: #E5484D; box-shadow: 0 12px 22px -10px rgba(229, 72, 77, .5); }
.mob-btn-primary.okdone { background: var(--mob-green); box-shadow: none; }
.mob-btn-primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.mob-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--mob-line); margin-bottom: 18px; }
.mob-map img { display: block; width: 100%; height: 190px; object-fit: cover; }

/* ---- Narrow screens --------------------------------------------------------------------------- */
@media (max-width: 440px) {
    .mob-stage { padding: 16px 0 40px; }
    .mob-device {
        width: 100%; height: 92vh; border-radius: 0; border-width: 0;
        box-shadow: none;
    }
    .mob-notch { display: none; }
    .mob-home-indicator { display: none; }
}
