/* v619 · shared app family: soft raised surfaces, compact personal cards, persistent tabs.
   Only the application shell is restyled. Map, driving overlay and semantic status colors stay independent. */
:root{--app-raised:inset 0 1px 1px #fff,0 3px 0 #dce0e5,0 9px 20px #28344912;--app-button:inset 0 1px 1px #fff,0 3px 0 #d1d6df,0 5px 10px #2834490d;--app-inset:inset 0 2px 5px #27364b0c,0 1px 0 #fff}
body #app{max-width:520px;margin-inline:auto;min-height:100dvh}
body .app-header{border:0!important;border-bottom:1px solid #fff!important;border-radius:0 0 26px 26px!important;background:linear-gradient(150deg,#fffefa,#f3f4f5)!important;box-shadow:0 5px 20px #2634480d!important}
body .app-header .brand-mark{box-shadow:inset 0 1px 0 #fff,0 4px 7px #3b46522b!important}
body .app-header .notify-btn{background:linear-gradient(#fff,#eef0f3)!important;border:1px solid #e1e4e8!important;box-shadow:var(--app-button)!important}
body .app-header .notify-btn .hb-label{font-size:10px!important;line-height:1.2}
body .app-header .brand-name{color:#303e51!important}
body .view{padding:0 16px 24px;box-sizing:border-box}
body .view[hidden]{display:none!important}
body .tab-intro{padding:20px 3px 0;margin-bottom:18px}
body .tab-intro .tab-h{font-size:25px!important;line-height:1.25;letter-spacing:-.8px;margin:6px 0 8px;color:var(--pp-ink)!important}
body .tab-intro .tab-p{font-size:14px;line-height:1.6;color:var(--pp-muted)!important;margin:0}
body .parking-eyebrow{font-size:12px;font-weight:650}
body #view-more .home-personal-intro{display:block!important}
body #view-more .residence-card{padding:18px 16px;border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#fffefa,#f8f9fb)!important;box-shadow:var(--app-raised)!important}
body #view-more .residence-label{font-size:14px;font-weight:750;color:var(--pp-ink)!important;white-space:nowrap}
body #view-more #homeSlots{display:block;overflow:visible;margin:12px 0 0;padding:0}
.sp-place-list{display:grid;gap:10px}
body #homeSlots .sp-card{display:flex;flex-direction:row;flex:unset;align-items:center;gap:8px;min-width:0;border:1px solid #dde1e7;border-radius:19px;padding:9px;background:linear-gradient(#fff,#f5f6f8);box-shadow:var(--app-button)}
body #homeSlots .sp-card.is-active{border:1px solid #97a5b7;background:linear-gradient(135deg,#f6f8fc,#e7edf5)!important;box-shadow:inset 0 1px 1px #fff,0 3px 0 #c9d2df,0 7px 14px #26384d14}
body #homeSlots .sp-place-select{display:flex;align-items:center;gap:10px;min-width:0;flex:1;width:auto;min-height:78px;padding:5px 0;border:0;background:none!important;color:var(--pp-ink)!important;box-shadow:none;opacity:1;text-align:left}
body #homeSlots .sp-place-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:46px;max-width:none;border:1px solid #fff;border-radius:14px;background:linear-gradient(#fffdf7,#e9edf2);box-shadow:0 3px 5px #34425620;font-size:26px;line-height:1}
body #homeSlots .sp-place-copy{display:block;min-width:0;flex:1;max-width:none;white-space:normal}
body #homeSlots .sp-place-copy b{font-size:16px;line-height:1.4;color:var(--pp-ink)}
body #homeSlots .sp-place-copy small{max-width:none;white-space:normal;overflow:visible;font-size:12px;line-height:1.45;color:var(--pp-muted);margin-top:3px;overflow-wrap:anywhere}
body #homeSlots .sp-active-mark{display:grid;place-items:center;flex:0 0 20px;font-size:18px;color:var(--pp-primary);max-width:none}
body #homeSlots .sp-edit{flex:0 0 auto;width:auto;min-width:48px;min-height:48px;border:1px solid #d9dfe7;border-radius:13px;padding:8px;font-size:12px;text-align:center;background:linear-gradient(#fff,#f1f3f6);box-shadow:var(--app-button)}
body #homeSlots .sp-add{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
body #homeSlots .sp-add button{min-height:48px;font-size:13px;font-weight:650;padding:9px 8px;text-align:center;border-radius:14px;background:linear-gradient(#fff,#eff1f4);border:1px solid #dde2e7;box-shadow:var(--app-button)}
.home-current-place{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;margin:22px 2px 12px}
.home-current-place>span{font-size:11px;color:var(--pp-muted)}
body #view-more .home-current-place #residenceName{font-size:15px;margin:0;line-height:1.5}
body #view-more .home-current-place #residenceHome{margin:0;width:100%;font-size:12px;line-height:1.5}
body #view-more .residence-settings{padding:16px 0 0;margin-top:20px;border-top:1px solid #dfe3e9}
.home-settings-title{margin:0 0 12px;font-size:15px;color:var(--pp-ink)}
body #view-more .residence-actions{margin:10px 0;grid-template-columns:1fr;gap:10px}
body #view-more .residence-actions button{display:flex;align-items:center;min-height:48px;font-size:14px;background:linear-gradient(#fff,#f0f2f5)!important;box-shadow:var(--app-button)!important;border:1px solid #dde2e7!important;padding:12px}
body #view-more .residence-auto{padding:14px;background:#eef1f5!important;box-shadow:var(--app-inset)!important;border:1px solid #e0e5eb;border-radius:16px}
body #view-more .residence-auto b{font-size:14px;color:var(--pp-ink)!important}
body #view-more .residence-auto p{font-size:12px;line-height:1.6;color:var(--pp-muted)!important;margin:6px 0 0}
body #view-more .residence-card #homeAptBtn{background:linear-gradient(#5a6d86,#43546a)!important;border:1px solid #42536b!important;box-shadow:inset 0 1px 1px #a9b6c7,0 4px 0 #324154,0 7px 12px #2c3a4e20!important;font-size:14px;margin-top:14px;display:flex;justify-content:space-between;align-items:center}
body .community-actions{gap:12px}
body .community-actions .community-action{background:linear-gradient(145deg,#fffefa,#edf0f5)!important;border:1px solid #fff!important;border-radius:22px;box-shadow:var(--app-raised)!important;padding:16px 14px;min-height:125px;color:var(--pp-ink)!important}
body .community-actions .community-parking{min-height:88px;background:linear-gradient(130deg,#e6ecf4,#fafbfd)!important;border-color:#d4dfeb!important}
body .community-actions .community-action b{font-size:15px;color:var(--pp-ink)}
body .community-actions .community-action small{font-size:12px;line-height:1.5;color:var(--pp-muted)!important}
body .community-actions .community-action img{width:40px;height:40px;filter:drop-shadow(0 4px 3px #38465826)}
body .community-compact .community-action{min-height:105px;gap:8px}
body .community-compact .community-arrow{top:15px;right:12px}
body .community-header{margin:22px 0 12px}
body .community-header h2{font-size:25px!important;color:var(--pp-ink)!important}
body .community-scope{margin-bottom:18px;padding-left:0;font-size:13px}
body .community-place-change{background:linear-gradient(#fff,#eff2f6)!important;border-color:#d9dfe6!important;box-shadow:var(--app-button)!important}
body #residenceParkingHost{margin-bottom:18px}
body .parking-destination-home .home-hub-head,body #destinationParking,body #parkingRadar,body #streetRadar,body .parking-secondary,body .recent-parking,body .pk-personal-card{border:1px solid #fff!important;border-radius:24px!important;background:linear-gradient(145deg,#fffefa,#f8f9fb)!important;box-shadow:var(--app-raised)!important}
body #destinationParking{padding:18px 15px!important;margin-top:18px}
body #destinationParking h2{font-size:24px!important;margin:8px 0 18px!important;line-height:1.3}
body #destinationParking .destination-search-row{gap:8px}
body #destinationParking input{border-radius:15px!important;box-shadow:var(--app-inset)!important;min-height:48px;padding:12px;font-size:16px;background:#f9fafc!important}
body #destinationParking .destination-search-row button{background:linear-gradient(#5a6d86,#43546a)!important;border-color:#42536b!important;box-shadow:inset 0 1px 1px #a9b6c7,0 3px 0 #324154!important;min-height:48px}
body #destinationParking button:not(.destination-rescan):not([data-destination-navigate]):not([data-destination-embedded]):not([type=submit]){box-shadow:var(--app-button)!important}
body #destinationParking .destination-result{border:1px solid #dfe4eb!important;background:linear-gradient(#fff,#f7f9fc)!important;box-shadow:var(--app-raised)!important}
body #destinationParking .destination-result:first-child{border-color:#a9b8cc!important;background:linear-gradient(140deg,#edf2f8,#fff)!important}
body #destinationParking .destination-site{background:#f4f6f9!important;border:1px solid #e0e5eb!important;border-radius:20px;box-shadow:var(--app-inset)!important}
body .destination-finder-entry{background:linear-gradient(#fffefa,#f0f2f6)!important;border:1px solid #fff!important;box-shadow:var(--app-raised)!important;border-radius:20px;margin:18px 0;min-height:62px}
body .arrival-preferences{margin:18px 0;background:linear-gradient(145deg,#fffefa,#f3f5f8)!important;border:1px solid #fff!important;box-shadow:var(--app-raised)!important;color:var(--pp-ink)!important;border-radius:24px}
body .arrival-preferences>summary,body .arrival-preferences>h3{color:var(--pp-ink)!important}
body .arrival-preferences .arrival-attention{background:#f3f5f8!important;color:var(--pp-ink)!important;border-color:#dbe1e8!important;box-shadow:var(--app-inset)!important}
body .parking-primary-nav.tabbar{left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:520px;border-radius:26px 26px 0 0!important;border-top:1px solid #fff!important;background:linear-gradient(#fffefa,#edf0f4)!important;box-shadow:0 -5px 25px #26384a16!important;height:calc(82px + env(safe-area-inset-bottom,0px));min-height:82px;padding:6px 7px env(safe-area-inset-bottom,0px);box-sizing:border-box}
body .parking-primary-nav .tab-btn{min-height:68px;border-radius:17px;padding:5px 2px;gap:5px}
body .parking-primary-nav .tab-btn:not(.tab-btn-main).on{background:linear-gradient(#fff,#e1e8f1)!important;border-color:#c8d2df!important;box-shadow:inset 0 1px 0 #fff,0 3px 7px #38485e20!important}
body .parking-primary-nav .tab-btn:not(.tab-btn-main) .tab-icon-tile{background:linear-gradient(#fffefa,#e9edf2)!important;box-shadow:inset 0 1px 1px #fff,0 3px 5px #35415223!important;border:1px solid #d5dce5!important}
body .parking-primary-nav .tab-btn-main{border-radius:22px!important;background:linear-gradient(#eaf0f7,#dbe4f0)!important;border:2px solid #9aacc4!important;box-shadow:inset 0 1px 1px #fff,0 4px 0 #b6c4d6,0 8px 14px #2d3c5621!important;transform:translateY(-8px)}
body .parking-primary-nav .tab-btn-main .tab-main-orb{box-shadow:0 5px 8px #34435730!important}
body .parking-primary-nav .tab-txt{font-size:11px!important;color:#4b5c72!important}
body .sp-dialog{background:#f6f7fa;border:1px solid #fff;border-radius:26px;box-shadow:0 20px 60px #22304442}
body .sp-dialog input:not([type=radio]),body .sp-dialog select{border-color:#c5ceda;box-shadow:var(--app-inset)}
body .sp-dialog button{box-shadow:var(--app-button)}
body .sp-dialog .sp-primary{box-shadow:inset 0 1px 0 #95a3b5,0 3px 0 #314157}
body .community-action:active,body #homeSlots button:active,body .residence-actions button:active{transform:translateY(2px);box-shadow:inset 0 2px 4px #2c3b5018!important}
@media(max-width:360px){body .view{padding-inline:12px}body #view-more .residence-card{padding:16px 12px}body #homeSlots .sp-card{gap:4px;padding:7px}body #homeSlots .sp-place-icon{flex-basis:34px;width:34px;height:42px;font-size:24px}body #homeSlots .sp-place-select{gap:7px}body .community-actions .community-action{padding:14px 11px}body #destinationParking{padding:16px 12px!important}}
@media(prefers-reduced-motion:reduce){body .community-action:active,body #homeSlots button:active,body .residence-actions button:active{transform:none}}

/* Compact destination header keeps the parking result ahead of explanatory content. */
body .parking-destination-home .home-hub-head{padding:17px 16px!important;margin:18px 0 12px!important}
body .parking-destination-home .home-hub-head>span{font-size:11px;color:var(--pp-muted)!important}
body .parking-destination-home .home-hub-head h1{font-size:21px!important;line-height:1.35;margin:6px 0 7px!important;color:var(--pp-ink)!important}
body .parking-destination-home .home-hub-head p{font-size:13px!important;line-height:1.5;margin:0!important;color:var(--pp-muted)!important}
body .parking-journey-steps{margin:12px 0 0!important;font-size:11px!important;gap:7px!important}
body .parking-journey-steps li{padding:6px!important;gap:4px!important;font-size:11px!important}
body .destination-finder-entry{font-size:14px!important;padding:12px 14px!important;margin:12px 0!important}
body #communityActions{margin-bottom:22px}
body #residenceParkingHost .site-parking-plan{background:linear-gradient(145deg,#fffefa,#f8f9fb)!important;border:1px solid #fff!important;border-radius:24px!important;box-shadow:var(--app-raised)!important}
/* v620: rank is visible in the medal and rim; the neutral app surface remains intact. */
body .destination-result.parking-rank-card,body #destinationParking .destination-result.alternative-compact.parking-rank-card{position:relative;border:2px solid var(--medal-rim)!important;background:linear-gradient(145deg,var(--medal-surface) 0%,#fffefa 78%)!important;border-radius:22px;box-shadow:inset 0 1px 0 #fff,0 4px 0 var(--medal-base),0 9px 18px #29354a12!important}
body .parking-rank-card.alternative-rank-1{--medal-rim:#b78118;--medal-surface:#fff6db;--medal-base:#e6d7b1;--medal-ink:#785314;--medal-badge:#faedc6}
body .parking-rank-card.alternative-rank-2{--medal-rim:#7e8b9b;--medal-surface:#f0f3f7;--medal-base:#d4dbe4;--medal-ink:#495668;--medal-badge:#e5ebf2}
body .parking-rank-card.alternative-rank-3{--medal-rim:#a16843;--medal-surface:#f9eee5;--medal-base:#e1cdbf;--medal-ink:#784929;--medal-badge:#f0dfd2}
body .destination-result.parking-rank-card .parking-medal,body #destinationParking .destination-result.parking-rank-card .parking-medal{display:inline-flex;align-items:center;gap:6px;font-size:15px;line-height:1.4;padding:7px 11px;border:1px solid var(--medal-base);border-radius:12px;background:linear-gradient(145deg,#ffffffbb,var(--medal-badge))!important;color:var(--medal-ink)!important;box-shadow:inset 0 1px 0 #fff;margin-bottom:12px}
body .parking-rank-card.alternative-rank-1::after{content:'';position:absolute;inset:-3px;border:3px solid #e2b44b;border-radius:inherit;box-shadow:0 0 12px #d3a13755;pointer-events:none;opacity:0}
body .parking-rank-card.alternative-rank-1[data-pka-blink="true"]::after{animation:parkingGoldPulse 2s ease-in-out 3}
@keyframes parkingGoldPulse{0%,100%{opacity:.12}50%{opacity:1}}
body .parking-rank-card.alternative-rank-1[data-pka-reduced-motion="true"]::after{animation:none!important;opacity:0}
@media(prefers-reduced-motion:reduce){body .parking-rank-card.alternative-rank-1::after{animation:none!important;opacity:0}}

/* v625: the floor is the landmark; medal colours still express priority. */
body .parking-rank-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body .parking-rank-top>.parking-medal{margin-bottom:0!important}
body .parking-floor-badge{display:inline-flex;align-items:center;justify-content:center;min-width:62px;min-height:52px;padding:8px 12px;border-radius:15px;font:800 27px/1.2 system-ui,sans-serif;box-shadow:inset 0 1px 0 #ffffff55,0 3px 0 #24304526;letter-spacing:.01em}
body .parking-floor-badge--under{background:linear-gradient(145deg,#405572,#2e3e55);color:#fff;border:1px solid #25364e}
body .parking-floor-badge--ground{background:linear-gradient(145deg,#fff8dc,#f1dfab);color:#684b12;border:1px solid #c6a052;font-size:23px}

/* Unknown-source candidates retain floor facts, without a medal hierarchy. */
body .parking-rank-card.parking-candidate-card{--medal-rim:#9ca9a3;--medal-surface:#f2f5f3;--medal-base:#dce3df;--medal-ink:#364b40;--medal-badge:#e8eeea}
