.web-dashboard{min-height:calc(100vh - 180px);background:#f2f8fd;color:#112a45}.portal-login{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(20px,6vw,90px);padding-top:80px;padding-bottom:100px;align-items:center}.portal-login[hidden],.portal-content[hidden],.portal-loading[hidden]{display:none!important}.portal-heading h1{font-size:clamp(38px,5vw,64px);line-height:1.12;color:#14243e;margin:15px 0}.portal-heading p{font-size:18px;line-height:1.6;max-width:580px}.portal-panel{padding:clamp(24px,4vw,40px);background:white;border:1px solid #dbe7f2;box-shadow:0 18px 60px #153a6514;border-radius:22px;display:flex;flex-direction:column;gap:10px}.portal-panel h2{font-size:27px;color:#122b47;margin-bottom:12px}.portal-panel label{font-weight:650;color:#1b3853}.portal-panel input{min-width:0;border:1px solid #aebed0;border-radius:10px;padding:12px;font:inherit;color:#122b47;background:white}.portal-panel input:focus{outline:2px solid #f77500;outline-offset:2px}.portal-panel small{color:#546b82;font-size:12px;line-height:1.5}.portal-login-button{justify-content:center;margin-top:12px;cursor:pointer}.portal-alert{padding:12px;border-radius:10px;background:#fff3e7;color:#853f03}.portal-loading{padding:80px 20px;text-align:center}.portal-topbar{padding-top:45px;padding-bottom:26px;display:flex;align-items:end;justify-content:space-between;gap:20px}.portal-topbar h1{font-size:clamp(27px,3vw,39px);margin:7px 0;color:#132f4b}.portal-topbar p{margin:0;color:#526a83}.portal-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.portal-actions button{cursor:pointer}.portal-signedin{font-size:13px;color:#547087}.portal-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,.9fr);gap:20px;padding-bottom:24px}.portal-map-panel{height:min(66vh,670px);min-height:420px;position:relative;border-radius:20px;overflow:hidden;border:1px solid #c9d9e5;background:#d9e9f5;box-shadow:0 12px 30px #24405a18}.portal-map-panel #map{width:100%;height:100%}.portal-map-watermark{position:absolute;bottom:12px;left:12px;padding:7px 9px;border-radius:8px;background:#fffffff0;color:#52677d;font-size:11px;z-index:3}.portal-map-alert{position:absolute;top:15px;left:15px;right:15px;padding:11px;background:#fff7ee;color:#6d3500;border:1px solid #efc797;border-radius:10px;z-index:3}.portal-people-panel{background:white;border:1px solid #d9e4ed;border-radius:20px;padding:22px;overflow:auto;max-height:min(66vh,670px);box-shadow:0 12px 30px #24405a12}.portal-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.portal-panel-head h2{font-size:25px;color:#142e48}.portal-panel-head span{font-size:11px;color:#678098}.portal-helper{font-size:13px;color:#56718a;line-height:1.5;margin:12px 0 18px}.portal-member-list{display:grid;gap:9px}.portal-member{width:100%;display:flex;align-items:center;text-align:left;gap:12px;border:1px solid #e2eaf0;background:#f8fbfe;border-radius:13px;padding:12px;cursor:pointer;color:#203d57}.portal-member:hover,.portal-member:focus{outline:2px solid #f77500;outline-offset:0}.portal-member:disabled{opacity:.65;cursor:default}.portal-member-icon{width:42px;height:42px;border-radius:50%;flex:0 0 42px;background:#f77500;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}.portal-member-info{display:grid;gap:3px;min-width:0}.portal-member-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-member-info small{font-size:12px;color:#607b92}.portal-status{margin-top:14px;font-size:13px;color:#5a7187}.portal-notice{background:#fff;border:1px solid #e0e8f1;border-radius:15px;padding:18px 22px;margin-bottom:38px;line-height:1.6;font-size:13px;color:#567089}.portal-notice strong{color:#234969}.portal-notice p{margin:6px 0 0}.fci-map-marker{position:relative;display:flex;align-items:center;gap:7px;padding:6px 9px 6px 6px;color:white;background:#f77500;border:2px solid #fff;border-radius:22px;box-shadow:0 2px 10px #0005;font:600 13px system-ui,sans-serif;white-space:nowrap}.fci-map-marker:after{content:'';position:absolute;width:14px;height:14px;background:#f77500;left:50%;bottom:-9px;transform:translateX(-50%) rotate(45deg);border-right:2px solid white;border-bottom:2px solid white;z-index:-1}.fci-marker-circle{width:31px;height:31px;border-radius:50%;background:#fff;color:#b95100;display:flex;justify-content:center;align-items:center;font-size:11px;font-weight:800;flex-shrink:0}.fci-marker-details{display:grid;gap:1px}.fci-marker-details small{font-size:11px;opacity:.96}@media(max-width:900px){.portal-layout{grid-template-columns:1fr}.portal-map-panel{height:410px;min-height:350px}.portal-people-panel{max-height:none}.portal-login{grid-template-columns:1fr;padding-top:40px;padding-bottom:50px}.portal-topbar{display:block}.portal-actions{margin-top:20px}}@media(max-width:550px){.portal-map-panel{height:350px;min-height:320px}.portal-people-panel{padding:16px}.portal-map-watermark{font-size:10px}}

/* Keep the needle tip, not the photo-pill bottom, anchored at the GPS point. */
.fci-map-marker{display:block;padding:0 0 15px;background:transparent;border:0;box-shadow:none;border-radius:0}
.fci-map-marker-bubble{display:flex;align-items:center;gap:7px;padding:6px 9px 6px 6px;color:#fff;background:#f77500;border:2px solid #fff;border-radius:22px;box-shadow:0 2px 10px #0005}
.fci-map-marker:after{bottom:5px;z-index:0}

.portal-map-retry{position:absolute;top:86px;left:16px;z-index:4;border:1px solid #da7c1d;background:#fff;color:#7b3800;padding:9px 13px;border-radius:9px;cursor:pointer}.portal-map-retry[hidden]{display:none!important}

/* Phase 1.5.4 — match Android Photo + Name color, shape and photo crop. */
.fci-map-marker-bubble{background:#F77500!important;border:3px solid white!important;border-radius:22px!important;padding:4px 11px 4px 4px!important;min-height:50px;box-shadow:0 2px 7px rgba(15,28,38,.25)!important}
.fci-map-marker:after{background:#F77500!important;border-color:#fff!important}
.fci-marker-circle{width:42px!important;height:42px!important;position:relative;overflow:hidden;border:2px solid #fff;box-sizing:border-box;background:#0d334d!important;color:white!important}
.fci-avatar-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:white;font-size:12px;font-weight:800}
.fci-avatar-img{width:100%;height:100%;object-fit:cover;display:block}
.fci-avatar-img[hidden],.fci-avatar-fallback[hidden]{display:none!important}
.fci-marker-details{gap:1px;max-width:140px}.fci-marker-details strong{font-size:13px;line-height:1.08}.fci-marker-details small{font-size:11px;line-height:1.13}
.portal-member-icon{position:relative;overflow:hidden}
.portal-member-icon .fci-avatar-img,.portal-member-icon .fci-avatar-fallback{border-radius:50%}

/* Phase 1.5.5: cross-platform data clarity and web app features */
.portal-tabs{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:12px}
.portal-tab{background:white;border:1px solid #d3e0eb;color:#223f59;border-radius:10px;font:600 14px system-ui;padding:10px 14px;cursor:pointer}
.portal-tab.is-active{background:#f77500;border-color:#f77500;color:white}
.portal-tab:focus-visible{outline:3px solid #183d60;outline-offset:2px}
.portal-pane[hidden]{display:none!important}.portal-sync{font-size:12px;color:#536d85;padding-bottom:14px}
.portal-feature{background:white;border:1px solid #d9e4ed;border-radius:18px;padding:22px;margin-bottom:26px;min-height:230px}
.portal-feature-heading h2{font-size:24px;color:#12354e;margin:0 0 8px}
.portal-feature-heading p{color:#61798d;font-size:14px;margin:0 0 18px;line-height:1.5}
.portal-feature-list{display:grid;gap:10px}
.portal-feature-card{border:1px solid #dce5ec;background:#f8fbfe;border-radius:12px;padding:14px;display:grid;gap:5px}
.portal-feature-card strong{color:#203e55;font-size:15px}.portal-feature-card small{color:#5f788c;font-size:12px}
.portal-feature-error{padding:10px;background:#fff1e5;color:#873b00;border-radius:9px}
.portal-feature-error[hidden]{display:none}
.portal-member-info .member-detail{font-size:11px;color:#4a637a;display:block;white-space:normal}
.portal-member-info .member-battery{font-weight:700;color:#af590c}
.portal-message-feed{display:grid;gap:8px;max-height:410px;overflow-y:auto;padding:8px 0 18px}
.portal-message-card{background:#f7f9fc;border:1px solid #d9e5ed;border-radius:10px;padding:11px;display:grid;gap:5px;overflow-wrap:anywhere}
.portal-message-card strong{color:#143a59}.portal-message-card time{font-size:11px;color:#647d91}.portal-message-card p{margin:0;white-space:pre-wrap;color:#2d4458}
.portal-message-compose{display:grid;gap:10px}.portal-message-compose label{font-size:13px;font-weight:700}
.portal-message-compose textarea{font:inherit;border:1px solid #bbceda;border-radius:10px;padding:12px;color:#20384e;resize:vertical}
.portal-message-compose button{justify-self:start}
.portal-member:disabled{opacity:1;cursor:default}
@media(max-width:600px){.portal-tabs{gap:6px}.portal-tab{flex:1 1 42%}.portal-feature{padding:15px}}
