@font-face { font-family: Manrope; src: url('/assets/orbi/fonts/manrope-variable.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
:root { font-family: Manrope, system-ui, sans-serif; }
.viewer-header { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 4vw; border-bottom: 1px solid var(--line); background: var(--surface); }
.viewer-header .brand { min-height: 48px; }
.viewer-label { color: var(--muted); font-size: .9rem; }
.account-controls { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }
#account-name { overflow-wrap: anywhere; font-size: .85rem; }
.viewer-welcome { max-width: 700px; margin: 8vh auto 36px; padding: 32px 24px; }
.viewer-welcome h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.viewer-welcome h1 span { color: var(--accent); }
.viewer-welcome button { margin: 12px 0 24px; }
.viewer-welcome .muted { max-width: 540px; }
.connection-panel { max-width: 700px; margin: 48px auto 0; padding: 0 24px; }
.connection-panel h1 { font-size: 2rem; }
.connection-status { max-width: 700px; margin: 12px auto; padding: 0 24px; color: var(--muted); }
.recovery-actions { max-width: 700px; margin: 12px auto 24px; padding: 0 24px; }
.family-view { display: grid; grid-template-columns: 330px minmax(0, 1fr); margin: 20px auto 32px; width: min(1440px, 100% - 48px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
.family-sidebar { padding: 26px 20px; border-right: 1px solid var(--line); min-width: 0; }
.family-heading h1 { font-size: 1.7rem; margin: 12px 0; }
.family-heading p { font-size: .85rem; }
#family-choice { margin-bottom: 22px; }
label { display: block; font-size: .85rem; margin-bottom: 8px; }
select { width: 100%; min-height: 48px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); }
.member-list { display: grid; gap: 10px; }
.member-row { display: flex; gap: 12px; width: 100%; padding: 14px 12px; color: var(--text); text-align: left; justify-content: flex-start; }
.member-row[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--soft); padding: 13px 11px; }
.avatar { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 750; font-size: .85rem; }
.member-copy { min-width: 0; display: grid; gap: 5px; }
.member-copy strong { font-size: .95rem; }
.member-copy small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.viewer-footnote { font-size: .75rem; color: var(--muted); margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
#data-note { font-size: .75rem; margin-top: 20px; }
.map-and-details { min-width: 0; }
.map-wrap { position: relative; background: var(--soft); }
#map { height: 440px; width: 100%; }
#recenter { position: absolute; bottom: 26px; left: 16px; font-size: .75rem; box-shadow: 0 2px 12px #14274620; max-width: calc(100% - 32px); }
#map-status { margin: 0; padding: 12px 24px; color: var(--muted); font-size: .85rem; }
#map-status:empty { display: none; }
.member-pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50% 50% 50% 8px; border: 3px solid white; color: white; background: #2455d6; box-shadow: 0 2px 9px #14274655; font: 700 16px Manrope, sans-serif; }
.member-pin.last-known { background: #92520c; opacity: .7; }
.member-pin.selected { outline: 3px solid #22b8ce; outline-offset: 2px; }
.member-details { padding: 28px; border-top: 1px solid var(--line); }
.member-details h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.member-details .location-copy { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.detail-grid div { padding: 14px; background: var(--bg); border-radius: 12px; }
dt { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
dd { margin: 0; font-size: .9rem; font-weight: 650; }
.status-note { font-size: .8rem; color: var(--muted); margin: 0; }
.viewer-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 28px 4vw; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.viewer-footer span { margin-right: auto; }
.viewer-footer a { display: inline-flex; align-items: center; min-height: 48px; }
@media (max-width: 820px) {
  .family-view { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .family-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .member-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .viewer-label { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .member-details { padding: 24px 18px; }
  #map { height: 360px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Family dashboard refresh: presentation uses the existing viewer session. */
.viewer-header{background:#08182c;color:#fff;border-color:#243951;min-height:90px;padding:16px max(24px,4vw)}
.viewer-header .brand{color:#fff;font-size:32px}.viewer-header .brand img{width:38px;height:38px}.viewer-label{color:#afc4db;font-size:13px;border-left:1px solid #39516c;padding-left:24px}.header-help{font-size:13px;color:#d4e1f0;margin-left:auto;text-decoration:none;min-height:44px;display:flex;align-items:center}.account-controls{margin-left:16px;gap:12px}.account-avatar{width:36px;height:36px;border-radius:50%;background:#1b3b5f;color:#92e7f3;display:grid;place-items:center;font-size:12px;font-weight:800}#account-name{max-width:240px;color:#d4e1f0;font-size:12px}.viewer-header button{background:#142e4b;color:#e0edff;border:1px solid #46627f;font-size:12px;border-radius:9px;min-height:42px;padding:10px 16px}
.viewer-welcome{max-width:1200px;width:calc(100% - 64px);margin:58px auto 36px;padding:0;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 24px 70px #10243d08}.welcome-copy{padding:58px 50px}.welcome-copy .eyebrow{font-size:11px;letter-spacing:1.8px}.viewer-welcome h1{font-size:clamp(36px,4.5vw,62px);margin-block:26px;letter-spacing:-2.5px;line-height:1.12}.welcome-copy .lede{font-size:17px;max-width:390px}.welcome-copy .muted{font-size:13px;line-height:1.9;max-width:390px}.welcome-copy>a{font-size:12px;font-weight:650}#sign-in{border-radius:10px;padding:15px 28px;min-height:52px;margin:6px 0 24px;font-size:14px;box-shadow:0 6px 18px #245acb25}.welcome-visual{background:#0c2440;color:#fff;padding:48px 38px;position:relative;overflow:hidden;isolation:isolate}.welcome-visual:before,.welcome-visual:after{content:'';position:absolute;z-index:-1;top:-140px;left:10px;width:520px;height:520px;border:1px solid #244c72;border-radius:50%}.welcome-visual:after{top:-80px;left:70px;width:400px;height:400px}.welcome-orbit{height:180px;display:grid;place-items:center}.welcome-orbit img{width:100px;height:100px;border-radius:24px;background:#0a1c32;box-shadow:0 20px 60px #0004;padding:10px}.welcome-visual h2{font-size:29px;margin:24px 0;line-height:1.3;letter-spacing:-1px}.welcome-visual ul{padding:0;list-style:none;display:grid;gap:16px;font-size:13px;color:#c7d9ed}.welcome-visual li{margin:0;display:flex;align-items:center;gap:12px}.welcome-visual li:before{content:'✓';color:#7cdeed}.welcome-visual>p{font-size:11px;color:#aac0d8;margin-top:28px}
.connection-panel{max-width:850px;text-align:center;padding:44px 24px 12px;margin:36px auto 0}.connection-panel h1{font-size:34px;letter-spacing:-1px}.connection-panel p{font-size:14px;line-height:1.9;max-width:540px;margin:0 auto}.connection-orbit{width:48px;height:48px;border:3px solid #d3e3f5;border-top-color:#245acb;border-radius:50%;margin:0 auto 26px}.connection-banner{width:calc(100% - 64px);max-width:1200px;margin:0 auto 30px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.connection-status{margin:0;padding:0;max-width:850px;font-size:13px;line-height:1.8;flex:1 1 320px}.recovery-actions{margin:0;padding:0}.recovery-actions button{font-size:12px;min-height:42px;padding:10px 15px;border-radius:8px}body[data-phase=ready] .connection-banner{max-width:1440px;margin:22px auto 18px}body[data-phase=ready] .connection-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#146c62;display:inline-block;margin-right:10px}body[data-phase=ready] .connection-status{color:#235c58}
.family-view{width:min(1440px,100% - 64px);margin:0 auto 48px;border-radius:18px;grid-template-columns:320px minmax(0,1fr);box-shadow:0 16px 60px #10243d07}.dashboard-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 34px 24px;border-bottom:1px solid #e0e8f2;background:#fff}.family-heading .eyebrow{font-size:10px;letter-spacing:1.8px}.family-heading h1{font-size:32px;letter-spacing:-1.3px;margin:7px 0 9px;overflow-wrap:anywhere}.family-heading p{font-size:12px;margin:0}.dashboard-mode{font-size:10px;font-weight:700;letter-spacing:.6px;color:#32608b;padding:8px 12px;background:#eff5fd;border:1px solid #d9e5f3;border-radius:6px;white-space:nowrap}.family-summary{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dce6f2;border-bottom:1px solid #dce6f2}.summary-card{background:#f8faff;padding:20px 30px;position:relative;display:grid;gap:7px}.summary-card>span{font-size:12px;font-weight:650;color:#415b76}.summary-card>strong{font-size:34px;font-weight:600;letter-spacing:-1px;line-height:1.25;color:#133b6a}.summary-card>small{font-size:10px;color:#526b85;line-height:1.6}
.family-sidebar{padding:26px 18px;background:#fcfdff;border-color:#dce6f2}.sidebar-heading h2{font-size:19px;margin:0 0 4px;letter-spacing:-.5px}.sidebar-heading>span{font-size:11px;color:#526b85}.member-search-wrap{margin-top:24px}.member-search-wrap label{font-size:11px;font-weight:650;color:#415b76}.member-search-wrap input{font:inherit;font-size:13px;color:var(--text);background:#fff;border:1px solid #c2d1e5;border-radius:8px;min-height:44px;padding:10px 12px;width:100%}.search-count{font-size:10px;color:#526b85;line-height:1.7;margin:12px 0 16px}.member-list{gap:8px;max-height:470px;overflow:auto;padding:4px;margin:-4px}.member-row{background:#fff;border:1px solid #dce6f2;border-radius:10px;padding:14px 11px;gap:10px;align-items:flex-start;min-height:92px}.member-row:hover{background:#f1f6ff;border-color:#a8c3e8}.member-row[aria-pressed=true]{border:1px solid #245acb;background:#eaf2ff;padding:14px 11px;box-shadow:inset 3px 0 #245acb}.avatar{width:38px;height:38px;flex-basis:38px;font-size:12px;position:relative;border:1px solid #bfd2eb;background:#e8f0fc;color:#2155a2}.member-row .avatar:after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#a86719;border:2px solid #fff;right:-2px;bottom:-2px}.member-row[data-freshness=fresh] .avatar:after{background:#245acb}.member-copy{gap:5px}.member-copy strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.member-location{font-size:10px;color:#31577f;line-height:1.6}.member-copy small{font-size:10px;color:#526178;line-height:1.7}.viewer-footnote{font-size:11px;line-height:1.9;border-color:#dce6f2;margin-top:25px}.no-matches{padding:18px 12px;background:#f1f5fb;font-size:12px;border-radius:8px}.no-matches button{font-size:11px;min-height:40px;padding:8px 12px;margin-top:12px;width:100%}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 26px}.map-toolbar .eyebrow{font-size:9px;letter-spacing:1.3px}.map-toolbar h2{font-size:20px;letter-spacing:-.5px;margin:5px 0 0}#recenter{position:static;max-width:100%;min-height:42px;font-size:11px;padding:10px 14px;border-radius:8px;box-shadow:none}#map{height:420px;background:#e8f0f7}.map-legend{padding:14px 26px;display:flex;flex-wrap:wrap;gap:12px 22px;font-size:10px;color:#526178;border-bottom:1px solid #dce6f2}.map-legend>span{display:flex;align-items:center;gap:7px}.map-legend>span:last-child{margin-left:auto}.map-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-fresh{background:#245acb}.legend-known{background:#92520c}.member-details{padding:26px;border-top:0}.selected-identity{display:flex;gap:14px;align-items:center;margin-bottom:18px}.selected-avatar{width:48px;height:48px;flex-basis:48px;font-size:16px}.selected-identity .eyebrow{font-size:9px;letter-spacing:1.5px}.member-details h2{font-size:24px;letter-spacing:-.7px;margin:4px 0 0}.location-badge{display:inline-flex;padding:5px 10px;border:1px solid #ddbf92;background:#fff7e9;color:#754409;font-size:10px;font-weight:700;border-radius:6px}.location-badge[data-freshness=fresh]{border-color:#b6cee9;background:#eef5ff;color:#23589e}.member-details .location-copy{font-size:13px;line-height:1.9;margin:12px 0 0}.detail-grid{gap:12px;margin:22px 0}.detail-grid div{border:1px solid #e2eaf3;border-radius:8px;background:#f9fbfe;padding:15px}.detail-grid dt{font-size:10px;margin-bottom:7px}.detail-grid dd{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.member-guidance{padding:18px 20px;background:#f0f6fd;border-left:3px solid #5888c4;border-radius:0 8px 8px 0}.member-guidance h3{font-size:13px;margin:0 0 8px;font-weight:750;letter-spacing:0;line-height:1.6}.member-guidance p{font-size:12px;color:#47607c;line-height:1.9;margin:0}.status-note{font-size:10px;line-height:1.9;margin-top:16px}
.viewer-help{width:min(1200px,100% - 64px);margin:48px auto 64px;display:grid;grid-template-columns:1fr 1.2fr;gap:70px}.viewer-help .eyebrow{font-size:10px;letter-spacing:1.5px}.viewer-help h2{font-size:26px;margin:12px 0 18px;letter-spacing:-.9px;line-height:1.3}.viewer-help>div>p{font-size:13px;line-height:1.8;color:var(--muted)}.viewer-help details{border-bottom:1px solid #cbd7e8;padding:17px 0}.viewer-help details:first-child{padding-top:0}.viewer-help summary{font-size:13px;font-weight:700;cursor:pointer;line-height:1.8}.viewer-help summary:focus-visible{outline:3px solid #245acb;outline-offset:5px}.viewer-help details p{font-size:12px;line-height:1.9;color:var(--muted);margin:14px 0}.viewer-help details a{font-size:12px}.viewer-footer{font-size:11px}
@media(max-width:1050px){.viewer-label{display:none}.family-view{grid-template-columns:285px minmax(0,1fr)}.welcome-copy{padding:42px 32px}.welcome-visual{padding:36px 28px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-legend>span:last-child{margin-left:0}}
@media(max-width:820px){.viewer-header{padding:14px 20px;gap:14px}.viewer-header .brand{font-size:28px}.header-help{font-size:11px}.account-controls{flex-basis:100%;margin-left:0;border-top:1px solid #29425c;padding-top:14px}#account-name{max-width:calc(100% - 140px);margin-right:auto}.viewer-welcome{width:calc(100% - 32px);grid-template-columns:1fr;margin-top:28px;border-radius:14px}.welcome-copy{padding:36px 26px}.viewer-welcome h1{font-size:clamp(36px,8vw,54px)}.welcome-visual{padding:28px}.welcome-orbit{height:130px}.welcome-orbit img{width:85px;height:85px}.welcome-visual h2{font-size:26px}.connection-banner{width:calc(100% - 32px)}.family-view{width:calc(100% - 24px);grid-template-columns:1fr;border-radius:12px}.dashboard-heading{padding:24px 20px;align-items:flex-start;gap:12px}.family-heading h1{font-size:26px}.dashboard-mode{font-size:9px;padding:6px 8px}.summary-card{padding:16px 14px}.summary-card>span{font-size:10px}.summary-card>strong{font-size:28px}.summary-card>small{font-size:9px}.family-sidebar{padding:22px 18px}.member-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));max-height:260px}.viewer-footnote{margin:20px 0 0;padding-top:16px}.map-toolbar{padding:20px 18px}.map-toolbar h2{font-size:18px}#map{height:380px}.map-legend{padding:14px 18px;gap:10px 16px}.member-details{padding:24px 18px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-grid div{padding:12px}.viewer-help{width:calc(100% - 40px);grid-template-columns:1fr;gap:20px;margin-block:36px 44px}.viewer-help h2{font-size:24px}.viewer-footer{padding:22px 20px;gap:6px 18px}.viewer-footer span{flex-basis:100%}}
@media(max-width:380px){.dashboard-mode{display:none}.summary-card{padding:14px 10px}.summary-card>small{font-size:8px}.map-toolbar{gap:10px}#recenter{font-size:10px;padding:10px}.detail-grid dd{font-size:12px}}

