/* Scout mobile — measured against 03-mobile-app-source-of-truth.png, target 390 × 844 */
.app-body { background: #07060d; min-height: 100dvh; font-family: var(--font-body); overscroll-behavior-y: none; }
@media (min-width: 500px) {
  .app-body { background: radial-gradient(900px 600px at 50% 0%, rgba(125, 40, 220, 0.25), transparent 70%), #05040a; }
  .app-shell { box-shadow: 0 0 0 1px rgba(183, 160, 255, 0.18), 0 30px 80px rgba(0, 0, 0, 0.6); }
}
.app-shell { --tab-h: 74px; position: relative; max-width: 430px; margin: 0 auto; min-height: 100dvh; background: radial-gradient(420px 320px at 30% 0%, rgba(110, 40, 200, 0.22), transparent 70%), linear-gradient(180deg, #0c0818, #08060f 60%); }
.screen { outline: none; padding-top: max(env(safe-area-inset-top), 14px); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); min-height: 100dvh; }
.pad-x { padding: 0 18px; }
.app-sim { margin: 0 0 6px; }

/* header */
.ah { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; height: 56px; padding: 0 14px; gap: 6px; }
.ah-title { margin: 0; text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; color: #f4f0ff; white-space: nowrap; }
.scr-leads .ah-title, .scr-team .ah-title { font-size: 19px; letter-spacing: .12em; }
.ah-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #f1ecff; }
.ah-btn:hover { background: rgba(166, 44, 255, 0.12); }
.ah-btn.plus { background: #f4f0ff; color: #140d24; width: 34px; height: 34px; border-radius: 9px; margin: 5px; }
.ah-btn.plus::after { content: ""; position: absolute; }
.ah-r { display: flex; }
.ah-btn.heart { color: #ff4d7a; }
.ah-btn.heart svg { fill: currentColor; }
.ah-btn.heart:not(.on) svg { fill: none; }
.ah-sp { width: 48px; }
.home-h { display: flex; justify-content: space-between; height: 64px; padding: 0 18px; }
.brand-sm { display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; color: #fff; }
.brand-sm svg { width: 44px; height: 44px; }
.avatar-btn { width: 46px; height: 46px; border-radius: 50%; padding: 2px; background: var(--scout-gradient); }
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0c0818; }

/* home */
.hello { margin: 8px 0 0; font-family: var(--font-ui); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; color: #fff; }
.sub { margin: 4px 0 0; color: #c3b9dc; font-size: 15px; }
.searchbox { position: relative; display: flex; align-items: center; margin-top: 16px; height: 48px; border-radius: 14px; background: rgba(20, 14, 36, 0.9); border: 1px solid rgba(183, 150, 255, 0.4); }
.searchbox input { flex: 1; height: 100%; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 16px; padding: 0 16px; }
.searchbox input::placeholder { color: #b8aed0; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox > span { padding: 0 16px; color: #fff; display: grid; }
.searchbox:focus-within { border-color: #c77dff; box-shadow: 0 0 0 3px rgba(166, 44, 255, 0.25); }
.searchbox.sm { height: 46px; margin-top: 14px; border-radius: 12px; }
.searchbox.sm .lead-ic { padding: 0 0 0 14px; color: #cfc6ea; }
.searchbox.sm input { padding-left: 10px; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: #150f26; border: 1px solid var(--scout-border-strong); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.results a { display: flex; gap: 10px; align-items: center; padding: 10px; min-height: 48px; border-radius: 10px; color: #f1ecff; }
.results a:hover, .results a:focus-visible { background: rgba(166,44,255,.14); }
.results small { display: block; color: #a99fc5; font-size: 13px; }
.results .none { padding: 12px; color: #a99fc5; font-size: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 184px; padding: 14px 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(40, 28, 66, 0.75), rgba(22, 15, 40, 0.8)); border: 1px solid rgba(183, 150, 255, 0.3); color: #fff; transition: transform var(--dur), border-color var(--dur); }
.tile svg { color: #d8b5ff; margin-bottom: 8px; }
.tile b { font-family: var(--font-ui); font-weight: 700; font-size: 21px; letter-spacing: 0.06em; }
.tile small { font-size: 15px; color: #d7cfee; line-height: 1.3; }
.tile-s { min-height: 128px; } .tile-s b { font-size: 17px; } .tile-s small { font-size: 14.5px; }
.tile-hot { background: linear-gradient(145deg, #7b2bd8 0%, #a42bd6 45%, #d73a9a 80%, #ff7a5c 100%); border-color: rgba(255, 190, 240, 0.5); box-shadow: 0 0 30px rgba(212, 56, 199, 0.4), inset 0 0 0 1px rgba(255,255,255,.12); }
.tile-hot svg { color: #fff; } .tile-hot small { color: #fff; }
.tile:active { transform: scale(0.98); }
.route-card { display: flex; gap: 14px; margin-top: 12px; padding: 16px; border-radius: 16px; background: rgba(20, 14, 36, 0.85); border: 1px solid rgba(183, 150, 255, 0.28); }
.rc-ic { color: #d8b5ff; padding-top: 2px; }
.rc-b { flex: 1; min-width: 0; }
.rc-top { display: flex; justify-content: space-between; align-items: center; }
.rc-l { font-size: 12.5px; letter-spacing: 0.18em; font-weight: 600; color: #e3dcf5; }
.rc-n { display: block; font-family: var(--font-ui); font-size: 34px; font-weight: 700; line-height: 1.05; margin-top: 2px; }
.rc-b small { font-size: 14px; color: #c9c0e2; }
.rc-bar { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); margin-top: 10px; overflow: hidden; }
.rc-bar span { display: block; height: 100%; border-radius: 6px; background: var(--scout-gradient); }

/* segmented controls */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(28, 20, 48, 0.9); border: 1px solid rgba(183,160,255,.2); }
.seg button { min-width: 58px; height: 38px; padding: 0 14px; border-radius: 9px; color: #ddd5f2; font-weight: 600; font-size: 15px; }
.seg button[aria-selected="true"] { background: linear-gradient(135deg, #b52cf0, #f238c7); color: #fff; box-shadow: 0 0 16px rgba(242,56,199,.45); }
.seg-wide { display: flex; margin-top: 4px; } .seg-wide button { flex: 1; height: 40px; }
.scr-walk .ah, .scr-drive .ah { grid-template-columns: 48px 1fr auto; }

/* drive */
.end-btn { min-width: 64px; height: 40px; padding: 0 16px; border-radius: 10px; background: linear-gradient(135deg, #ff4f7b, #ff3d5e); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 0 18px rgba(255, 70, 110, .45); }
.end-btn.is-start { background: var(--scout-gradient); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 14px 0; border-radius: 12px; background: rgba(20, 14, 36, 0.92); border: 1px solid rgba(183,160,255,.2); }
.stats div { text-align: center; padding: 8px 4px; } .stats div + div { border-left: 1px solid rgba(183,160,255,.2); }
.stats b { display: block; font-family: var(--font-ui); font-size: 21px; font-weight: 700; }
.stats small { font-size: 11px; letter-spacing: 0.12em; color: #c3b9dc; }
.scr-drive, .scr-walk { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
/* Walk is a list, not a full-height map: let it grow so the last row clears the tab bar. */
.scr-walk { height: auto; min-height: 100dvh; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); }
.drive-map { position: relative; flex: 1; min-height: 240px; margin-top: 8px; overflow: hidden; }
.drive-map .sim-tag { position: absolute; left: 12px; top: 10px; }
.map-fabs, .cam-fabs { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.map-fabs button, .cam-fabs button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(16, 11, 30, 0.88); border: 1px solid rgba(183,160,255,.3); color: #fff; }
.map-fabs button[aria-pressed="true"], .cam-fabs button[aria-pressed="true"] { background: rgba(166,44,255,.5); }
.map-marker .pulse { animation: pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.8); } }
.drive-sheet { position: relative; margin: -18px 10px 0; padding: 14px 14px 12px; border-radius: 18px 18px 14px 14px; background: linear-gradient(180deg, #1a1230, #120c22); border: 1px solid rgba(183,160,255,.25); z-index: 3; }
.grab { display: block; width: 44px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.35); margin: -4px auto 10px; }
.ds-top { display: flex; gap: 12px; align-items: center; }
.ds-top img { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; }
.ds-top b { font-family: var(--font-ui); font-size: 17px; } .ds-top small { display: block; color: #c3b9dc; font-size: 14px; }
.ds-mid { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.ds-score { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.ds-score small { font-size: 11px; letter-spacing: 0.14em; color: #c9c0e2; font-weight: 600; }
.ds-tags { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ds-tags.wrap { flex-direction: row; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border: 1px solid; white-space: nowrap; }
.tag-green { color: #eafff6; border-color: rgba(56,231,170,.6); background: rgba(56,231,170,.12); } .tag-green svg { color: #38e7aa; }
.tag-blue { color: #efeaff; border-color: rgba(120,140,255,.6); background: rgba(100,110,255,.14); } .tag-blue svg { color: #a8b4ff; }
.tag-red { color: #ffecef; border-color: rgba(255,97,126,.6); background: rgba(255,97,126,.12); } .tag-red svg { color: #ff8095; }
.ds-act { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 12px; }
.ds-act .btn { height: 48px; border-radius: 12px; font-size: 16px; }

/* walk */
.cam { position: relative; flex: 1; min-height: 260px; margin: 0 0 0; overflow: hidden; background: #000; }
.cam img, .cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam.flash::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .7; }
.matched { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 12px; background: rgba(8, 40, 28, 0.85); border: 1.5px solid #38e7aa; color: #eafff6; font-size: 12.5px; letter-spacing: .12em; font-weight: 700; box-shadow: 0 0 16px rgba(56,231,170,.45); white-space: nowrap; }
.matched svg { color: #38e7aa; }
.cam-label { position: absolute; left: 50%; top: 27%; transform: translate(-50%, 0); padding: 8px 12px; border-radius: 8px; background: rgba(20, 10, 36, .88); border: 1.5px solid #f238c7; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 0 14px rgba(242,56,199,.5); }
.cam-label::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 1.5px; height: 14px; background: #f238c7; }
.cam .br { position: absolute; width: 34px; height: 34px; border: 3px solid #f238c7; filter: drop-shadow(0 0 5px #f238c7); }
.cam .br.tl { left: 11%; top: 42%; border-right: 0; border-bottom: 0; } .cam .br.tr { right: 11%; top: 42%; border-left: 0; border-bottom: 0; }
.cam .br.bl { left: 11%; bottom: 8%; border-right: 0; border-top: 0; } .cam .br.brr { right: 11%; bottom: 8%; border-left: 0; border-top: 0; }
.cam .reticle { position: absolute; left: 50%; top: 64%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #f238c7; box-shadow: 0 0 14px #f238c7, inset 0 0 10px rgba(242,56,199,.6); }
.cam .reticle::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid #ffd0f3; }
.cam .parcel { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-enable { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; background: rgba(16,11,30,.9); border: 1px solid rgba(183,160,255,.45); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cam-state { position: absolute; left: 10px; bottom: 10px; right: 10px; text-align: center; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: #ffd48a; text-shadow: 0 1px 3px #000; }
.cam-state.live { color: #9ff5d5; }
.vision-ov span { position: absolute; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(255,173,73,.2); border: 1.5px solid #ffad49; color: #fff; }
.vision-ov em { position: absolute; right: 10px; bottom: 30px; font-style: normal; font-size: 11px; letter-spacing: .1em; color: #ffd48a; }
.match-card { display: block; margin: -30px 10px 0; position: relative; z-index: 3; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 20, 52, .96), rgba(18, 12, 34, .96)); border: 1px solid rgba(183,150,255,.4); box-shadow: 0 0 20px rgba(166,44,255,.25); }
.mc-top { display: flex; gap: 12px; align-items: center; } .mc-top img { width: 64px; height: 46px; object-fit: cover; border-radius: 8px; }
.mc-top b { font-family: var(--font-ui); font-size: 17px; } .mc-top small { display: block; color: #c3b9dc; font-size: 14px; }
.mc-mid { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.ds-tags.col .tag { justify-content: center; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(28,20,48,.9); border: 1px solid rgba(183,160,255,.35); color: #fff; }
.shutter { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 3px solid rgba(255,150,220,.7); box-shadow: 0 0 24px rgba(242,56,199,.55); }
.shutter i { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff8ae0, #f238c7 45%, #ff7961 100%); }
.shutter:active i { transform: scale(.9); }
.vision-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(28,20,48,.9); border: 1px solid rgba(183,160,255,.35); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.vision-btn[aria-pressed="true"] { background: rgba(166,44,255,.45); border-color: #c77dff; }

/* property */
.prop { padding-top: 4px; }
.gallery { position: relative; height: 196px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(242,56,199,.6); box-shadow: 0 0 18px rgba(242,56,199,.3); touch-action: pan-y; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(10,6,20,.8); font-size: 13px; font-weight: 600; }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity var(--dur); }
.g-prev { left: 0; } .g-next { right: 0; }
.gallery:hover .g-prev, .gallery:hover .g-next, .g-prev:focus-visible, .g-next:focus-visible { opacity: 1; background: rgba(0,0,0,.25); }
.g-sim { position: absolute; left: 10px; top: 10px; }
.p-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.p-head h2 { margin: 0; font-family: var(--font-ui); font-size: 22px; font-weight: 700; }
.p-head p { margin: 4px 0 0; color: #c3b9dc; font-size: 15px; }
.p-score { display: flex; flex-direction: column; align-items: center; gap: 4px; } .p-score small { font-size: 10.5px; letter-spacing: .14em; color: #c9c0e2; font-weight: 600; white-space: nowrap; }
.tabs { display: flex; margin-top: 14px; border-bottom: 1px solid rgba(183,160,255,.2); }
.tabs button { flex: 1; height: 44px; color: #c9c0e2; font-size: 15px; position: relative; }
.tabs button[aria-selected="true"] { color: #fff; background: rgba(166,44,255,.15); border-radius: 8px 8px 0 0; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--scout-gradient); }
.tab-body { padding: 12px 0 90px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; border: 1px solid rgba(183,160,255,.2); background: rgba(20,14,36,.6); }
.facts > div { display: flex; gap: 12px; align-items: center; padding: 14px 12px; }
.facts > div:nth-child(odd) { border-right: 1px solid rgba(183,160,255,.15); } .facts > div:nth-child(-n+2) { border-bottom: 1px solid rgba(183,160,255,.15); }
.facts svg { color: #efeaff; flex: none; }
.facts small { display: block; color: #c3b9dc; font-size: 13px; } .facts b { font-size: 17px; font-weight: 600; } .facts em { font-style: normal; font-size: 12px; color: #c3b9dc; }
.kv-m { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 4px 0; font-size: 15px; } .kv-m dt { color: #a99fc5; } .kv-m dd { margin: 0; }
.note { padding: 10px 12px; border-radius: 10px; background: rgba(20,14,36,.8); border: 1px solid rgba(183,160,255,.15); font-size: 14.5px; } .note small { display: block; color: #a99fc5; margin-top: 4px; font-size: 12px; }
.p-actions { position: fixed; left: 50%; transform: translateX(-50%); width: min(100%, 430px); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 12px; background: rgba(14,10,26,.97); border-top: 1px solid rgba(183,160,255,.18); z-index: 5; }
.p-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; justify-content: center; color: #fff; border-radius: 10px; }
.p-actions button:hover { background: rgba(166,44,255,.12); }
.p-actions small { font-size: 12.5px; }
.p-actions button[aria-pressed="true"] svg { fill: #c77dff; color: #c77dff; }

/* leads */
.chips-m { display: flex; gap: 8px; }
.chips-m button { flex: 1; height: 38px; border-radius: 10px; background: rgba(28,20,48,.9); border: 1px solid rgba(183,160,255,.25); color: #ddd5f2; font-size: 14px; }
.chips-m button[aria-selected="true"] { background: linear-gradient(135deg, #b52cf0, #f238c7); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(242,56,199,.4); }
.lead-list { list-style: none; margin: 12px 0 0; padding: 0; border-radius: 14px; overflow: hidden; background: rgba(18,12,32,.6); }
.lead-list li + li { border-top: 1px solid rgba(183,160,255,.14); }
.lead { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 6px; min-height: 76px; }
.lead:hover { background: rgba(166,44,255,.08); }
.lead img { width: 60px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; }
.lead-b { flex: 1; min-width: 0; } .lead-b b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-b small { display: block; color: #c3b9dc; font-size: 13px; margin-bottom: 6px; }
.lead-b .pill { height: 24px; font-size: 12.5px; min-width: 78px; }
.lead-r { display: flex; flex-direction: column; align-items: center; gap: 4px; } .lead-r small { font-size: 12px; color: #c3b9dc; }
.chev { color: #cfc6ea; display: grid; }
.empty-m { text-align: center; color: #a99fc5; padding: 30px 10px; }
.linkish { color: #d9b8ff; font-weight: 600; min-height: 44px; padding: 0 6px; }
.lead-form .row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.lead-form .field { margin-bottom: 12px; }

/* team */
.team-map { position: relative; height: 290px; margin-top: 10px; overflow: hidden; }
.team-sec { margin-top: 10px; }
.ta-h { display: flex; justify-content: space-between; align-items: center; } .ta-h h2 { font-family: var(--font-ui); font-size: 17px; margin: 0; }
.team-m { list-style: none; margin: 4px 0 0; padding: 0; }
.team-m li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(183,160,255,.12); }
.team-m img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.team-m div { flex: 1; } .team-m b { display: block; font-size: 15px; font-weight: 600; } .team-m small { color: #c3b9dc; font-size: 13px; }
.cov-card { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(20,14,36,.85); border: 1px solid rgba(183,160,255,.28); }
.cov-card div { flex: 1; } .cov-card b { display: block; font-family: var(--font-ui); font-size: 28px; font-weight: 700; line-height: 1.05; }
.cov-card small { display: block; font-size: 12px; letter-spacing: .16em; color: #e3dcf5; font-weight: 600; margin-top: 2px; } .cov-card em { font-style: normal; color: var(--scout-success); font-size: 13px; }
.feed-m { list-style: none; margin: 12px 0 0; padding: 0; } .feed-m li { padding: 12px 0; border-top: 1px solid rgba(183,160,255,.12); font-size: 14.5px; } .feed-m small { display: block; color: #a99fc5; font-size: 12.5px; margin-top: 2px; }

/* tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); height: calc(var(--tab-h, 74px) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(12, 8, 22, 0.97); border-top: 1px solid rgba(183,160,255,.16); z-index: 10; --tab-h: 74px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; border-radius: 14px; color: #ddd5f2; font-size: 12.5px; }
.tabbar a b { font-weight: 500; }
.tabbar a.is-on { color: #ff6fd0; background: radial-gradient(60px 50px at 50% 40%, rgba(242,56,199,.28), transparent 75%); }
.tabbar a.is-on svg { color: #fff; filter: drop-shadow(0 0 6px #f238c7); }
.tabbar a.is-on [data-icon] { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #d13cff, #ff4fb8); }

/* sheets */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(4,3,10,.6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: min(100%, 430px); max-height: 85dvh; overflow: auto; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #150f26; border: 1px solid var(--scout-border-strong); border-bottom: 0; animation: up .2s var(--ease); }
@keyframes up { from { transform: translateY(30px); opacity: .4; } } @keyframes fade { from { opacity: 0; } }
.sheet-t { font-family: var(--font-ui); font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.sheet-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .sheet-h small { display: block; color: #a99fc5; }
.av-lg { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.sheet-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 6px; border-top: 1px solid rgba(183,160,255,.12); color: #f1ecff; font-size: 15.5px; text-align: left; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; } .sheet-actions .btn { flex: 1; }
.btn.full { width: 100%; margin-top: 14px; }
.muted-s { color: #a99fc5; font-size: 14px; line-height: 1.5; }
.mini-list { list-style: none; margin: 0; padding: 0; } .mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(183,160,255,.12); justify-content: space-between; }
.mini-list li > div { flex: 1; } .mini-list img { width: 48px; height: 38px; border-radius: 6px; object-fit: cover; } .mini-list small { display: block; color: #a99fc5; font-size: 13px; } .mini-list .none { color: #a99fc5; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gal img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; } .gal small { display: block; color: #a99fc5; font-size: 12px; margin-top: 4px; }
.toast-host { bottom: calc(var(--tab-h, 74px) + 20px) !important; }

@media (max-height: 740px) { .tile { min-height: 150px; } .tile-s { min-height: 110px; } }
.ah-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ah-r .ah-btn { width: 44px; }
.scr-prop .ah-title, .prop-h .ah-title { font-size: 14.5px; letter-spacing: .12em; }
.ah { grid-template-columns: 44px minmax(0,1fr) auto; }
.end-btn { height: 44px; }
.ah-btn.plus { position: relative; width: 44px; height: 44px; margin: 0; background: none; color: #140d24; }
.ah-btn.plus::before { content: ""; position: absolute; inset: 5px; border-radius: 9px; background: #f4f0ff; }
.ah-btn.plus svg { position: relative; }

/* ---- v2 fidelity pass against reference 03 ---- */
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.sim-mini { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #ffcf7a; margin-top: 3px; }
.home-h { height: 70px; }
.hello { font-size: 26px; margin-top: 4px; }
.tiles { gap: 12px; }
.tile { min-height: 190px; border-radius: 18px; }
.tile-s { min-height: 132px; }
.tile-hot { box-shadow: 0 0 34px rgba(230, 60, 190, .45), 0 0 0 1.5px rgba(255, 170, 230, .55) inset; }
.route-card { padding: 18px 16px; }

/* tab bar: pink icon + label with a soft glow (no filled square) */
.tabbar a.is-on [data-icon] { background: none; width: auto; height: auto; }
.tabbar a.is-on { color: #ff5cc8; background: radial-gradient(56px 46px at 50% 42%, rgba(242,56,199,.22), transparent 72%); }
.tabbar a.is-on svg { color: #ff5cc8; filter: drop-shadow(0 0 7px rgba(255,92,200,.8)); }
.tabbar a.is-on b { font-weight: 600; }

/* drive */
.stats { margin: 6px 14px 0; }
.drive-map { margin: 8px 12px 0; border-radius: 16px 16px 0 0; border: 1px solid rgba(183,160,255,.18); border-bottom: 0; }
.drive-sheet { margin: -22px 12px 0; box-shadow: 0 -10px 30px rgba(0,0,0,.45); }
.ds-act .btn-primary { box-shadow: 0 0 22px rgba(242,56,199,.45); }

/* team */
.team-map { height: 300px; margin: 10px 12px 0; border-radius: 16px; border: 1px solid rgba(183,160,255,.2); }
.team-sec { padding: 0 12px; }
.ta-card { margin-top: -18px; position: relative; z-index: 2; padding: 12px 14px 4px; border-radius: 16px; background: linear-gradient(180deg, #1a1230, #130d24); border: 1px solid rgba(183,160,255,.24); }
.ta-h .linkish { color: #e36bff; }
.team-m li:first-child { border-top: 1px solid rgba(183,160,255,.16); }
.team-m img { width: 48px; height: 48px; border: 2px solid rgba(120, 200, 255, .6); }
.team-m .pill { height: 30px; padding: 0 14px; font-size: 13px; border-radius: 15px; }
.cov-card { margin-top: 10px; padding: 12px 16px; }
.cov-card b { font-size: 30px; }

/* leads: separate cards like the reference */
.lead-list { background: none; border-radius: 0; overflow: visible; display: grid; gap: 8px; }
.lead-list li + li { border-top: 0; }
.lead { padding: 10px 8px 10px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(30,22,52,.9), rgba(22,16,40,.9)); border: 1px solid rgba(183,160,255,.16); min-height: 92px; }
.lead img { width: 74px; height: 70px; border-radius: 10px; }
.lead-b b { font-size: 16px; }
.lead-b small { font-size: 14px; }
.lead-b .pill { height: 28px; min-width: 86px; border-radius: 9px; font-size: 13.5px; }

/* property: action bar as an inset card */
.p-actions { width: min(calc(100% - 24px), 406px); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px); border-radius: 14px; border: 1px solid rgba(183,160,255,.2); background: rgba(22,16,40,.97); padding: 6px 4px; }
.p-actions button + button { border-left: 1px solid rgba(183,160,255,.14); border-radius: 0; }
.gallery { height: 206px; border-width: 2px; box-shadow: 0 0 22px rgba(242,56,199,.45); }
.tabs button[aria-selected="true"] { background: radial-gradient(60px 30px at 50% 100%, rgba(242,56,199,.3), transparent 75%); }
.tabs button[aria-selected="true"]::after { height: 3px; box-shadow: 0 0 10px #f238c7; }
.scr-property .ah-title { font-size: 14px; letter-spacing: .1em; }
.p-actions button[aria-pressed="true"] svg { fill: none; }
.p-actions #save[aria-pressed="true"] svg { fill: #c77dff; }
.p-actions #outreach[aria-pressed="true"] { color: #d9b8ff; }
.drive-map .sim-tag { top: auto; bottom: 30px; left: 12px; }
.team-map { height: 320px; }

/* ---------- real-data additions ---------- */
.avatar-btn.initials { display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--font-ui); background: #1a1029; border: 2px solid transparent; background-image: linear-gradient(#1a1029, #1a1029), var(--scout-gradient); background-origin: border-box; background-clip: padding-box, border-box; }
.avatar-btn.initials.lg { width: 54px; height: 54px; flex: none; font-size: 18px; }
.plan-mini { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #9df0cf; margin-top: 3px; text-transform: uppercase; }
.plan-mini:empty { display: none; }
.sub .due { color: #ff9db0; font-weight: 600; }
.end-btn { display: inline-grid; place-items: center; }
.end-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.ph-thumb { display: grid; place-items: center; flex: none; width: 60px; height: 50px; border-radius: 8px; background: rgba(166,44,255,.12); color: #c9b3ff; }
.ds-top .ph-thumb { width: 64px; height: 46px; }
.mini-list .ph-thumb { width: 48px; height: 38px; }
.ph-thumb.big { width: 100%; height: 100%; border-radius: 0; }
.gallery .count { left: auto; }
.empty-card { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 20px; border-radius: 16px; background: linear-gradient(180deg, #1a1230, #130d24); border: 1px solid rgba(183,160,255,.24); color: #c9b3ff; }
.empty-card b { color: #fff; font-family: var(--font-ui); font-size: 18px; }
.empty-card p { margin: 0; color: #b8aed0; line-height: 1.5; font-size: 14.5px; }
.empty-card .btn { width: 100%; }
.walk-hero { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 16px; min-height: 76px; background: linear-gradient(135deg, rgba(166,44,255,.32), rgba(242,56,199,.22) 60%, rgba(255,121,97,.18)); border: 1px solid rgba(242,56,199,.45); box-shadow: 0 0 22px rgba(166,44,255,.18); }
.walk-hero.alt { background: linear-gradient(180deg, #1a1230, #130d24); border-color: rgba(183,160,255,.24); box-shadow: none; }
.walk-hero div { flex: 1; } .walk-hero b { display: block; font-family: var(--font-ui); font-size: 17px; }
.walk-hero small { display: block; margin-top: 3px; color: #cfc6e8; font-size: 13.5px; line-height: 1.4; }
.wh-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(7,6,13,.4); color: #fff; }
.walk-h { margin-top: 22px; }
.walk-h h2 { font-size: 16px; }
.reason-m { margin: 0 0 12px; color: #d9d1ef; font-size: 14.5px; line-height: 1.5; }
.scr-account .ta-card { margin-top: 14px; padding: 14px; }
.acct-h { display: flex; align-items: center; gap: 12px; }
.acct-h div { flex: 1; min-width: 0; } .acct-h b { display: block; font-family: var(--font-ui); font-size: 18px; }
.acct-h small { display: block; color: #a99fc5; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.scr-account .cov-card { margin-top: 14px; }
.cov-card .of { font-size: 16px; color: #a99fc5; font-weight: 600; }
.lead-list .lead .lead-b, .lead-list .lead .lead-r { min-width: 0; }
.scr-property .prop { padding-bottom: 104px; }
.gallery { background: #120d20; }
.route-warn { margin: 6px 16px 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #ffd0d8; background: rgba(255,97,126,.1); border: 1px solid rgba(255,97,126,.35); }
.scan .searchbox { margin-top: 14px; }
.scan-form .btn { margin-top: 12px; }
.scan-photo:not(:empty) { margin-top: 10px; }
.scan-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; color: #8f86a8; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.scan-or::before, .scan-or::after { content: ""; flex: 1; height: 1px; background: rgba(183,160,255,.18); }
.scan-tiles .walk-hero { width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.scan-tiles .walk-hero[disabled] { opacity: .5; }
.scan-result { margin-top: 12px; }
.scan-result .facts { margin-top: 4px; }
.scan-actions { display: grid; gap: 10px; margin: 16px 0 24px; }
.scan-actions .btn { width: 100%; }
.acct-sec { margin: 4px 0 8px; font-family: var(--font-ui); font-size: 17px; }
.scr-account .biz-form .input { width: 100%; }

/* navigate — Scout's own turn-by-turn */
.scr-nav { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.scr-nav .ah { grid-template-columns: 48px 1fr auto; }
.voice-btn { min-height: 44px; padding: 0 14px; border-radius: 10px; background: rgba(28, 20, 48, 0.9); border: 1px solid rgba(183,160,255,.3); color: #fff; font-weight: 600; font-size: 14px; }
.voice-btn[aria-pressed="true"] { background: rgba(166,44,255,.45); border-color: rgba(242,56,199,.6); }
.nav-turn { display: flex; gap: 14px; align-items: center; margin: 6px 12px 0; padding: 14px 16px; border-radius: 16px; background: var(--scout-gradient); color: #fff; box-shadow: 0 8px 28px rgba(166,44,255,.35); }
.nv-arrow { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,0,0,.22); }
.nav-turn b { display: block; font-family: var(--font-ui); font-size: 19px; line-height: 1.25; }
.nav-turn small { display: block; font-size: 15px; font-weight: 600; opacity: .92; margin-top: 2px; }
.nav-steps { margin: 8px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; color: #e8e2f7; font-size: 15px; }
.nav-steps small { color: #a99fc4; } .nav-steps .is-done { opacity: .45; } .nav-steps .is-cur { color: #fff; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .nav-turn { transition: none; } }
