:root{--ink:#173f3b;--green:#2f7d67;--mint:#e8f6ef;--gold:#e8b84a;--coral:#ef7d69;--sky:#66a9d8;--bg:#f6faf8;--card:#fff;--muted:#71817c}*{box-sizing:border-box}body{margin:0;font-family:Inter,Aptos,system-ui,-apple-system,sans-serif;background:var(--bg);color:#18342f}button,input,textarea,select{font:inherit}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.brand-panel{padding:7vw;background:linear-gradient(145deg,#eefaf4,#fff4dc);display:flex;flex-direction:column;justify-content:center}.logo{width:260px;height:260px;border-radius:50%;background:white;box-shadow:0 20px 60px #215c4930;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;border:8px solid #fff}.logo:before{content:"";position:absolute;width:210px;height:105px;border-radius:110px 110px 0 0;border:18px solid var(--coral);border-bottom:0;top:40px}.logo:after{content:"🍃";position:absolute;right:38px;top:105px;font-size:38px}.arc{position:absolute;font-size:0}.family{font-size:24px;letter-spacing:10px;color:var(--sky);z-index:2;margin-top:30px}.logo strong{font-size:28px;z-index:2;margin-top:12px;color:var(--ink)}.logo span{font-size:9px;font-weight:800;letter-spacing:1.4px;z-index:2;color:var(--green)}.brand-panel h1{font-size:clamp(38px,5vw,68px);line-height:1.02;max-width:760px;margin:38px 0 16px}.brand-panel p{font-size:19px;max-width:680px;color:#4b6861;line-height:1.6}.trust{margin-top:24px;font-weight:700;color:var(--green)}.auth-card{margin:auto;width:min(480px,86%);background:#fff;padding:34px;border-radius:26px;box-shadow:0 24px 70px #24493e1f}.tabs{display:flex;background:#f0f5f3;padding:5px;border-radius:14px;margin-bottom:26px}.tab{flex:1;border:0;background:transparent;padding:11px;border-radius:10px;font-weight:700}.tab.active{background:#fff;box-shadow:0 2px 8px #00000010;color:var(--green)}label{display:grid;gap:7px;font-weight:700;font-size:13px;margin:14px 0}input,textarea,select{border:1px solid #d7e2de;border-radius:12px;padding:13px;background:#fff;outline:none}input:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #2f7d6718}.primary{width:100%;border:0;border-radius:12px;padding:14px;background:var(--green);color:#fff;font-weight:800;margin-top:8px}.or{text-align:center;border-bottom:1px solid #e6ece9;line-height:.1em;margin:26px 0}.or span{background:#fff;padding:0 10px;color:var(--muted);font-size:12px}.social{display:grid;grid-template-columns:1fr 1fr;gap:10px}.social button{border:1px solid #d7e2de;background:white;padding:12px;border-radius:12px;font-weight:700}.link{border:0;background:none;color:var(--green);width:100%;padding:16px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:flex-start;font-weight:500}.check input{margin:2px 6px 0 0}.micro{font-size:12px;color:var(--muted);text-align:center}#app{min-height:100vh;display:grid;grid-template-columns:245px 1fr}aside{background:#173f3b;color:#fff;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.mini-logo{font-size:22px;padding:10px 12px 28px}.mini-logo span{color:#9ce2c5}nav{display:grid;gap:5px}nav button,.logout{border:0;background:transparent;color:#cfe2dc;text-align:left;padding:12px 14px;border-radius:12px;font-weight:650}nav button.active,nav button:hover{background:#ffffff14;color:#fff}.logout{margin-top:auto}main{min-width:0}header{height:88px;background:#fff;border-bottom:1px solid #e4ece9;display:flex;align-items:center;padding:0 32px;gap:16px;position:sticky;top:0;z-index:5}header h2{margin:0;font-size:22px}header p{margin:3px 0 0;color:var(--muted);font-size:12px}.profile{margin-left:auto;display:flex;align-items:center;gap:10px}.profile>span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:var(--green);font-weight:800}.profile small{display:block;color:var(--muted)}#menu{display:none;border:0;background:none;font-size:22px}#content{padding:32px;max-width:1400px;margin:auto}.hero{background:linear-gradient(120deg,#e5f6ee,#fff5dd);border-radius:24px;padding:30px;display:grid;grid-template-columns:1.3fr .7fr;gap:20px;align-items:center}.hero h1{font-size:36px;margin:0 0 10px}.hero p{color:#577069;max-width:720px}.hero .orb{width:170px;height:170px;border-radius:50%;background:conic-gradient(var(--green),var(--sky),var(--gold),var(--coral),var(--green));margin:auto;padding:14px}.hero .orb div{height:100%;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:46px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:20px}.card{background:#fff;border:1px solid #e5ece9;border-radius:18px;padding:20px;box-shadow:0 6px 18px #234c3e08}.card h3{margin:4px 0 8px}.card p{color:var(--muted);font-size:14px;line-height:1.5}.card .big{font-size:28px;font-weight:850;color:var(--ink)}.section-title{margin:28px 0 12px}.quick{display:flex;gap:10px;flex-wrap:wrap}.pill{border:1px solid #dce7e3;background:#fff;padding:10px 14px;border-radius:999px}.panel{background:#fff;border:1px solid #e5ece9;border-radius:20px;padding:24px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.assistant-box{display:grid;grid-template-rows:1fr auto;height:58vh}.messages{overflow:auto;padding:6px}.bubble{max-width:78%;padding:13px 15px;border-radius:16px;margin:10px 0;line-height:1.5}.bubble.ai{background:var(--mint)}.bubble.me{background:var(--ink);color:#fff;margin-left:auto}.composer{display:flex;gap:10px}.composer input{flex:1}.composer button{border:0;background:var(--green);color:#fff;border-radius:12px;padding:0 18px}.task{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f0}.task:last-child{border:0}.task input{width:auto}.badge{font-size:11px;padding:5px 8px;border-radius:999px;background:var(--mint);color:var(--green);font-weight:800}.integration{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #e4ebe8;border-radius:16px;margin:12px 0}.integration .icon{width:48px;height:48px;border-radius:12px;background:#f1f5f3;display:grid;place-items:center;font-weight:900}.integration button{margin-left:auto;border:0;background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px}.connected{color:var(--green);font-weight:800}.chart{height:180px;display:flex;align-items:end;gap:12px;padding-top:20px}.bar{flex:1;background:linear-gradient(#66a9d8,#2f7d67);border-radius:8px 8px 3px 3px;min-height:15px}.empty{padding:36px;text-align:center;color:var(--muted)}#toast{position:fixed;right:20px;bottom:20px;background:#173f3b;color:#fff;padding:12px 16px;border-radius:12px;z-index:99;opacity:0;transform:translateY(10px);transition:.2s}#toast.show{opacity:1;transform:none}@media(max-width:950px){.auth-shell{grid-template-columns:1fr}.brand-panel{display:none}#app{grid-template-columns:1fr}aside{position:fixed;z-index:20;width:245px;transform:translateX(-100%);transition:.2s}aside.open{transform:none}#menu{display:block}.cards{grid-template-columns:1fr 1fr}.two,.hero{grid-template-columns:1fr}.hero .orb{display:none}}@media(max-width:560px){#content{padding:18px}header{padding:0 16px}.profile div{display:none}.cards{grid-template-columns:1fr}.grid2,.social{grid-template-columns:1fr}.auth-card{padding:24px}.hero{padding:22px}.hero h1{font-size:28px}}
/* V3 commercial layer */
.plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}.plan{background:#fff;border:1px solid #e0eae6;border-radius:20px;padding:22px;position:relative}.plan.featured{border:2px solid var(--green);box-shadow:0 16px 40px #2f7d6718}.plan h3{font-size:23px;margin:8px 0}.price{font-size:34px;font-weight:900;color:var(--ink)}.price small{font-size:13px;color:var(--muted);font-weight:600}.plan ul{padding-left:20px;color:#536c65;line-height:1.8}.plan button{width:100%;border:0;background:var(--ink);color:#fff;padding:12px;border-radius:11px;font-weight:800}.plan.featured button{background:var(--green)}.status-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #edf2f0}.status-row:last-child{border:0}.admin-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.kpi{padding:18px;border-radius:16px;background:#f5faf7}.kpi b{display:block;font-size:28px}.danger{background:#fff1ef!important;color:#a43b2f!important}@media(max-width:1050px){.plan-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.plan-grid,.admin-kpis{grid-template-columns:1fr}}
/* V4 Resolution & Advocacy layer */
.resolution-path{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin:22px 0}.resolution-path span{padding:11px 8px;border-radius:12px;background:#f0f6f3;text-align:center;font-size:12px;font-weight:800;color:var(--ink)}.resolution-path .active-step{background:var(--green);color:#fff}.case-start{max-width:280px}.case-tools{margin-top:18px}.case-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #edf2f0}.case-row:last-child{border:0}.case-row h3{margin:7px 0 3px}.case-row p{margin:0;color:var(--muted)}.case-workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}@media(max-width:900px){.resolution-path{grid-template-columns:repeat(4,1fr)}.case-workspace{grid-template-columns:1fr}}@media(max-width:520px){.resolution-path{grid-template-columns:repeat(2,1fr)}.case-row{align-items:flex-start;flex-direction:column}}

/* V5.1 — approved Life360 AI master branding */
:root{
  --ink:#073b86;--green:#10a86b;--mint:#eafaf4;--gold:#ffb31a;--coral:#ff5b42;
  --sky:#00b8f0;--purple:#7a20e8;--magenta:#ed149d;--blue:#0866e8;
  --bg:#f7fbff;--card:#fff;--muted:#63758a
}
body{background:linear-gradient(180deg,#f8fbff 0%,#f8fffc 100%);color:#17365f}
.brand-panel{background:radial-gradient(circle at 18% 12%,#e7f7ff 0,transparent 34%),radial-gradient(circle at 85% 20%,#fff1f8 0,transparent 30%),radial-gradient(circle at 78% 88%,#efffea 0,transparent 34%),linear-gradient(145deg,#f8fbff,#fff)}
.logo{width:310px;height:310px;border:0;background:#fff;box-shadow:0 22px 70px #0866e828;padding:4px;overflow:hidden}
.logo:before,.logo:after,.logo .arc,.logo .family,.logo strong,.logo span{display:none!important}
.logo img{width:100%;height:100%;object-fit:contain;border-radius:50%;display:block}
.brand-panel h1{color:#063b87}.brand-panel p{color:#536d89}.trust{color:#087bbf}
.primary{background:linear-gradient(100deg,var(--blue),var(--purple),var(--magenta));box-shadow:0 8px 20px #5d28d52a}
.tab.active,.link{color:var(--blue)}
input:focus,textarea:focus{border-color:var(--sky);box-shadow:0 0 0 3px #00b8f01c}
#app aside{background:linear-gradient(180deg,#063d8f 0%,#0757b4 48%,#067d83 100%)}
.mini-logo{display:flex;align-items:center;gap:10px;padding:4px 8px 22px;font-size:18px}.mini-logo img{width:58px;height:58px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 5px 18px #001f5f40}.mini-logo div{display:flex;gap:4px;align-items:baseline}.mini-logo span{color:#6ce9e2}
nav button.active,nav button:hover{background:#ffffff1d;box-shadow:inset 3px 0 0 #55e5c0}
.profile>span{background:linear-gradient(135deg,#e5f8ff,#f7eaff);color:var(--purple)}
.hero{background:radial-gradient(circle at 85% 10%,#ffeaf8 0,transparent 34%),radial-gradient(circle at 65% 100%,#ecffe9 0,transparent 35%),linear-gradient(120deg,#e8f8ff,#fff9eb)}
.hero .orb{background:conic-gradient(var(--blue),var(--purple),var(--magenta),var(--coral),var(--gold),var(--green),var(--sky),var(--blue))}
.card{border-color:#e2ebf7;box-shadow:0 8px 24px #0a5aa20b}.badge{background:#e9f8ff;color:#0879b5}.composer button,.resolution-path .active-step,.plan.featured button{background:linear-gradient(100deg,var(--blue),var(--purple))}.plan.featured{border-color:var(--purple);box-shadow:0 16px 40px #6d22df18}.connected{color:var(--green)}
.bar{background:linear-gradient(#00b8f0,#0866e8,#7a20e8)}
@media(max-width:950px){.brand-panel{display:none}}
/* V5.2 Premium experience */
:root{--navy:#063b87;--blue:#0866e8;--cyan:#00b8f0;--purple:#7424e8;--pink:#ed159c;--lime:#65c938;--orange:#ff8a19;--surface:#f6f9fd;--text:#102c56;--sub:#637793}
body{background:var(--surface);color:var(--text)}
.auth-shell{background:#fff}.brand-panel{padding:clamp(44px,6vw,96px);position:relative;overflow:hidden}.brand-panel:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;right:-180px;bottom:-200px;background:conic-gradient(from 45deg,#0866e81b,#7a20e81b,#ed159c1b,#ff8a191b,#65c9381b,#00b8f01b,#0866e81b);filter:blur(2px)}.auth-kicker,.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:900;color:var(--blue)}.brand-panel h1{font-size:clamp(40px,4.6vw,66px);max-width:760px;letter-spacing:-.035em}.brand-panel h1 em{font-style:normal;background:linear-gradient(90deg,var(--blue),var(--purple),var(--pink));-webkit-background-clip:text;color:transparent}.auth-value{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:650px;margin:28px 0 6px}.auth-value span{padding:13px 15px;background:#ffffffb8;border:1px solid #dfeafa;border-radius:14px;font-weight:750;color:#284e7e}.auth-card{border:1px solid #e1e9f5;box-shadow:0 28px 80px #123c7b18}.auth-card h2{font-size:28px;color:var(--text)}
#app{grid-template-columns:268px 1fr}#app aside{background:linear-gradient(180deg,#052f74 0%,#0754aa 55%,#08767f 100%);padding:22px 16px}.mini-logo img{width:64px;height:64px}.mini-logo b{font-size:18px}.mini-logo span{font-size:13px}nav button{padding:11px 14px}nav button.active{background:#ffffff1c;box-shadow:inset 3px 0 #7ce7ff}header{height:94px;box-shadow:0 3px 16px #123d7108}#content{padding:30px 34px 50px;max-width:1500px}
.premium-hero{min-height:330px;border-radius:28px;padding:42px 46px;display:grid;grid-template-columns:1.35fr .65fr;align-items:center;overflow:hidden;position:relative;background:radial-gradient(circle at 80% 0,#f8e8ff 0,transparent 35%),radial-gradient(circle at 100% 100%,#e6fff1 0,transparent 38%),linear-gradient(125deg,#eaf7ff 0,#fff 52%,#fff8e9 100%);border:1px solid #e0ebf8;box-shadow:0 18px 50px #143f7c0c}.premium-hero:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--blue),var(--cyan),var(--purple),var(--pink),var(--orange),var(--lime))}.hero-copy{position:relative;z-index:2}.hero-copy h1{font-size:clamp(36px,4vw,56px);line-height:1.04;letter-spacing:-.035em;margin:12px 0 14px;color:#082f69}.hero-copy>p{font-size:18px;line-height:1.65;color:#58708f;max-width:760px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0 20px}.cta-primary,.cta-secondary{border:0;border-radius:14px;padding:14px 19px;font-weight:850}.cta-primary{color:#fff;background:linear-gradient(95deg,var(--blue),var(--purple));box-shadow:0 10px 24px #5531d82d}.cta-secondary{background:#fff;color:var(--navy);border:1px solid #dce7f6}.confidence-row{display:flex;gap:18px;flex-wrap:wrap;color:#607694;font-size:12px;font-weight:700}.confidence-row span::first-letter{color:#19a77c}.hero-brand{position:relative;display:grid;place-items:center;min-height:250px}.hero-brand img{width:min(270px,80%);filter:drop-shadow(0 18px 26px #0a54a42b);border-radius:50%}.value-ring{position:absolute;right:2%;bottom:2%;width:105px;height:105px;border-radius:50%;background:#fff;box-shadow:0 12px 32px #133d7b1c;display:grid;place-content:center;text-align:center;border:1px solid #e1eafa}.value-ring b{font-size:28px;color:var(--purple)}.value-ring small{font-size:10px;color:var(--sub)}
.attention-strip{margin:18px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;background:#fff;border:1px solid #e2eaf5;border-radius:18px;box-shadow:0 8px 22px #173f7608}.attention-strip>div{display:flex;align-items:center;gap:13px}.attention-strip p{margin:3px 0 0;color:var(--sub);font-size:13px}.attention-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#e7f6ff,#f4e9ff);color:var(--purple);font-size:20px}.attention-strip button,.panel-head button{border:0;background:none;color:var(--blue);font-weight:800;white-space:nowrap}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.metric-card{background:#fff;border:1px solid #e2eaf5;border-radius:20px;padding:20px;display:grid;grid-template-columns:auto 1fr;gap:13px;box-shadow:0 8px 24px #173f7607}.metric-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:21px}.metric-card small{font-size:10px;letter-spacing:.12em;color:var(--sub);font-weight:900}.metric-card strong{display:block;font-size:27px;margin-top:3px}.metric-card p{margin:2px 0;color:var(--sub);font-size:12px}.metric-card button{grid-column:1/-1;text-align:left;border:0;background:none;padding:8px 0 0;color:var(--blue);font-weight:800}.metric-card.blue .metric-icon{background:#e8f4ff;color:var(--blue)}.metric-card.purple .metric-icon{background:#f1eaff;color:var(--purple)}.metric-card.green .metric-icon{background:#e9faef;color:#13915c}.metric-card.orange .metric-icon{background:#fff2e5;color:#e46b00}
.workspace-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;margin-top:18px}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.workspace-panel{background:#fff;border:1px solid #e2eaf5;border-radius:22px;padding:24px;box-shadow:0 10px 28px #173f7607}.workspace-panel h2{margin:5px 0 8px;font-size:21px}.workspace-panel>p{color:var(--sub);line-height:1.55}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.priority-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf2f8}.priority-row:last-child{border:0}.priority-num{font-size:11px;font-weight:900;color:#8da0ba}.priority-row small{display:block;color:var(--sub);margin-top:3px}.priority-row input{width:18px;height:18px}.resolution-card{background:radial-gradient(circle at 100% 0,#f4e9ff,transparent 32%),#fff}.mini-path{display:flex;align-items:center;gap:6px;margin:22px 0}.mini-path span{font-size:10px;font-weight:850;padding:8px 9px;background:#f1f5fa;border-radius:9px;color:#6c7e96}.mini-path span.on{background:linear-gradient(95deg,var(--blue),var(--purple));color:#fff}.mini-path i{height:1px;flex:1;background:#d8e2ef}.resolution-features,.feature-pills{display:flex;gap:8px;flex-wrap:wrap}.resolution-features span,.feature-pills span{font-size:11px;font-weight:750;padding:8px 10px;border-radius:10px;background:#f4f7fb;color:#47617f}.wide-action{width:100%;margin-top:18px;border:0;border-radius:13px;padding:13px;background:#0a3c7f;color:#fff;font-weight:850}.ai-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;background:linear-gradient(115deg,#eef8ff,#fff,#f8efff)}.ai-spark{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;font-size:23px}.ai-card button{border:0;background:#fff;border-radius:12px;padding:12px 14px;color:var(--blue);font-weight:850;box-shadow:0 6px 18px #123d7b0d}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:1fr 1fr}.workspace-grid,.lower-grid{grid-template-columns:1fr}.hero-brand img{width:220px}}@media(max-width:950px){.premium-hero{grid-template-columns:1fr;padding:30px}.hero-brand{display:none}.auth-shell{display:grid}.auth-card{margin:40px auto}.brand-panel{display:none}}@media(max-width:620px){#content{padding:18px}.dashboard-grid{grid-template-columns:1fr}.premium-hero{padding:25px 21px}.hero-copy h1{font-size:34px}.hero-actions{display:grid}.confidence-row{display:grid;gap:7px}.attention-strip{align-items:flex-start;flex-direction:column}.ai-card{grid-template-columns:auto 1fr}.ai-card button{grid-column:1/-1}.mini-path{display:grid;grid-template-columns:repeat(3,1fr)}.mini-path i{display:none}}

/* V5.3 authentication gate — hidden must override layout display rules */
[hidden]{display:none !important}
#bootGate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#fff}
#bootGate[hidden]{display:none !important}
.boot-mark{text-align:center;color:#12345f;font-weight:800}.boot-mark img{width:118px;height:118px;object-fit:contain;display:block;margin:0 auto 14px}.boot-mark span{display:block;font-size:13px;letter-spacing:.08em;color:#55708e}
.auth-shell{min-height:100dvh}
#app{min-height:100dvh}
.logout{margin-top:auto!important;background:#ffffff18!important;border:1px solid #ffffff33!important;color:#fff!important;text-align:center!important;font-weight:800!important;cursor:pointer}.logout:hover{background:#ffffff2b!important}.header-logout{margin-left:auto;border:1px solid #d8e5f2;background:#fff;color:#0a4e9e;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}.profile{margin-left:0!important}button{cursor:pointer}button:active{transform:translateY(1px)}
@media(max-width:950px){.logout{display:block!important;margin-top:18px!important}.header-logout{display:block}}
@media(min-width:951px){.header-logout{display:none}}
/* V7 Resolution OS */
.attention-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:18px}.command-card{background:linear-gradient(135deg,#092b63,#0b6ee8);color:#fff;border-radius:24px;padding:28px;box-shadow:0 18px 40px #0b4d9c22}.command-card h1{font-size:32px;margin:8px 0}.command-card p{color:#e8f3ff}.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.metric{background:#fff;border:1px solid #e5edf5;border-radius:18px;padding:18px}.metric b{display:block;font-size:26px;color:#102a43}.case-health{display:flex;align-items:center;gap:16px}.score-ring{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#16a34a 0 76%,#e8eef5 76%);position:relative}.score-ring:after{content:"";position:absolute;inset:9px;background:#fff;border-radius:50%}.score-ring b{z-index:1;font-size:20px}.intel-list{display:grid;gap:10px}.intel-item{border:1px solid #e4ebf3;border-radius:14px;padding:14px;background:#fff}.intel-item strong{color:#12345b}.case-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.case-tabs button{border:1px solid #dbe5ef;background:#fff;border-radius:999px;padding:9px 13px}.timeline{border-left:3px solid #2f80ed;padding-left:18px;margin-left:7px}.timeline-item{position:relative;padding:0 0 18px 10px}.timeline-item:before{content:"";position:absolute;left:-27px;top:4px;width:11px;height:11px;background:#2f80ed;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #2f80ed}.priority{border-left:4px solid #f59e0b}.critical{border-left:4px solid #dc2626}.good{border-left:4px solid #16a34a}.ask-case{background:linear-gradient(135deg,#f6f2ff,#eef8ff);border:1px solid #dcd7ff}.os-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.os-tile{padding:18px;border-radius:18px;background:#fff;border:1px solid #e3eaf2}.os-tile h3{margin:8px 0}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;margin-right:6px}.today-action{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f5}.today-action:last-child{border-bottom:0}.mini{font-size:12px;color:#65758b}.sim-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sim-card{border:1px solid #dde6ef;border-radius:16px;padding:15px;background:#fff}.trust-note{background:#f7fafc;border:1px solid #e2e8f0;border-radius:14px;padding:13px;font-size:12px;color:#526174}@media(max-width:850px){.attention-grid,.os-grid,.sim-options,.metric-strip{grid-template-columns:1fr 1fr}}@media(max-width:560px){.attention-grid,.os-grid,.sim-options,.metric-strip{grid-template-columns:1fr}.command-card h1{font-size:25px}}

/* V8 — Personal Life Intelligence */
.guardian-strip{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin:18px 0}.guardian-card{background:linear-gradient(135deg,#102f56,#174b80);color:white;border-radius:24px;padding:24px;box-shadow:0 14px 38px #0d29452b}.guardian-card .badge{background:#ffffff22;color:white}.status-orb{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#3ecf8e 0 82%,#ffffff33 82%);position:relative}.status-orb:after{content:'';position:absolute;inset:9px;border-radius:50%;background:#163f6b}.status-orb b{z-index:1;font-size:19px}.truth-grid,.lifegraph,.watch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.truth-card,.graph-node,.watch-item{border:1px solid #dce7f0;border-radius:16px;padding:15px;background:#fff}.truth-card strong{display:block;margin-bottom:5px}.truth-verified{border-left:5px solid #32a852}.truth-inference{border-left:5px solid #f2a93b}.truth-confirm{border-left:5px solid #d94c8e}.graph-node{text-align:center}.graph-node b{display:block;color:#12385e}.guardian-alert{border-radius:16px;padding:14px 16px;background:#fff8e9;border:1px solid #f4d58b;margin:10px 0}.change-card{padding:16px;border-radius:16px;background:#f3f8fd;border:1px solid #dceaf5}.lens-drop{border:2px dashed #9cc7dd;border-radius:22px;padding:28px;text-align:center;background:#f8fcff}.path-chip{display:inline-block;padding:7px 10px;border-radius:999px;background:#edf7ff;color:#14557d;margin:4px;font-size:12px;font-weight:700}.network-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #e6eef4;padding:13px 0}.network-row:last-child{border:0}.switch{display:inline-flex;gap:7px;align-items:center}.switch input{accent-color:#1f8cbe}.v8-kicker{letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800;color:#1983b6}.premium-title{font-size:clamp(28px,4vw,48px);line-height:1.05;margin:8px 0}.pulse-dot{width:9px;height:9px;border-radius:50%;background:#49b96d;display:inline-block;margin-right:6px;box-shadow:0 0 0 5px #49b96d22}@media(max-width:900px){.guardian-strip,.truth-grid,.lifegraph,.watch-grid{grid-template-columns:1fr}.guardian-card{padding:19px}}

/* V8.1 — approved Life360 / i360 DigiTech / Inspired 360 Advocacy branding */
:root{--brand-navy:#082d6b;--brand-blue:#0866e8;--brand-cyan:#00bfe8;--brand-purple:#6f2cff;--brand-pink:#ed168c;--brand-orange:#ff8a00;--brand-green:#16a35f;--brand-soft:#f6faff}
body{background:linear-gradient(180deg,#f7fbff 0,#fff 55%);color:#0a2b61}.latest-brand.auth-shell{grid-template-columns:1.08fr .92fr;background:#fff}.latest-brand .brand-panel{position:relative;overflow:hidden;background:linear-gradient(145deg,#eef9ff 0%,#fff 47%,#fff5e8 100%);padding:6vw}.latest-brand .brand-panel:before{content:"";position:absolute;inset:auto -12% -18% 20%;height:45%;background:linear-gradient(115deg,transparent 0 12%,#05bdf733 12% 19%,#1769ff30 19% 26%,#7a2cff2d 26% 33%,#ed168c2d 33% 40%,#ff9a0030 40% 47%,transparent 47%);transform:rotate(-8deg);pointer-events:none}.auth-brand-lockup{position:relative;z-index:1;display:grid;grid-template-columns:minmax(170px,260px) 1fr;gap:32px;align-items:center}.auth-life-logo{width:100%;aspect-ratio:1;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 22px 60px #0a4c9d22}.auth-brand-copy h1{font-size:clamp(40px,5vw,70px);line-height:1.01;margin:12px 0 14px;color:#081d4c}.auth-brand-copy h1 em{font-style:normal;background:linear-gradient(90deg,#075edb,#00a7c9,#6e2ee8,#ed168c,#ff8a00);-webkit-background-clip:text;color:transparent}.auth-brand-copy p{font-size:20px;font-weight:800;color:#183b76;margin:0}.auth-kicker{font-size:12px;letter-spacing:.12em;color:#0a64cc;font-weight:900}.auth-value{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:34px 0 28px}.auth-value span{background:#ffffffcc;border:1px solid #dceafa;border-radius:13px;padding:12px 14px;color:#173d75;font-weight:750;box-shadow:0 8px 24px #0a4c9d0b}.brand-association{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;background:#fff;border:1px solid #dceafa;border-radius:18px;padding:14px 18px;max-width:690px}.brand-association img{max-width:190px;max-height:70px;object-fit:contain}.brand-association small{display:block;font-size:9px;letter-spacing:.12em;font-weight:900;color:#496482;margin-bottom:5px}.association-copy{font-size:11px;color:#6c7d94;font-weight:750;text-align:center}.auth-card{border:1px solid #dbe8f6;box-shadow:0 28px 80px #082d6b20}.auth-card-logo{width:86px;height:86px;display:block;object-fit:contain;border-radius:50%;margin:0 auto 12px}.auth-card h2{text-align:center;color:#082d6b;margin-bottom:4px}.auth-sub{text-align:center;color:#6c7d94;margin:0 0 18px}.tab.active{color:var(--brand-blue)}.primary{background:linear-gradient(90deg,#075edb,#086fe8);box-shadow:0 8px 20px #0866e822}.link{color:var(--brand-blue)}input:focus,textarea:focus{border-color:var(--brand-blue);box-shadow:0 0 0 3px #0866e818}aside{background:linear-gradient(180deg,#082d6b 0%,#075db9 68%,#087d9d 100%)}.mini-logo{display:flex;align-items:center;gap:10px;padding:4px 8px 22px}.mini-logo img{width:52px;height:52px;border-radius:50%;object-fit:contain;background:#fff}.mini-logo div{display:grid}.mini-logo b{font-size:15px}.mini-logo span{font-size:9px;color:#bfe9ff;text-transform:uppercase;letter-spacing:.06em}.command-card{background:linear-gradient(120deg,#082d6b,#075fd4 55%,#6c2de8);position:relative;overflow:hidden}.command-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-90px;top:-120px;background:radial-gradient(circle,#ffffff33,transparent 65%)}.badge{color:#0a57b6}.status-orb:after{background:#0b4a8c}.card,.panel,.workspace-panel,.truth-card,.graph-node,.watch-item,.metric-card{border-color:#dce8f6;box-shadow:0 10px 28px #0b4d9c09}.brand-footer{margin:26px 0 6px;background:#fff;border:1px solid #dce8f6;border-radius:18px;padding:14px 18px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}.brand-footer img{max-width:190px;max-height:72px;object-fit:contain}.brand-footer .assoc{text-align:center;color:#6b7d95;font-size:11px;font-weight:800}.brand-footer .life-lockup{text-align:right}.brand-footer .life-lockup b{display:block;color:#082d6b}.brand-footer .life-lockup span{font-size:11px;color:#6b7d95}.brand-footer .contact{font-size:11px;color:#496482;margin-top:4px}.brand-footer .contact a{color:#0866e8;text-decoration:none}
@media(max-width:950px){.auth-brand-lockup{grid-template-columns:1fr;text-align:center}.auth-life-logo{width:180px;margin:auto}.auth-value{grid-template-columns:1fr}.brand-association{grid-template-columns:1fr}.association-copy{padding:4px}.brand-footer{grid-template-columns:1fr;text-align:center}.brand-footer .life-lockup{text-align:center}}
/* V8.1 Partner architecture */
.partner-hero{background:linear-gradient(135deg,#eef8ff 0%,#f8f2ff 55%,#fff7ed 100%)}
.partner-preview{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #dfe8f2;border-radius:20px;position:relative;overflow:hidden;background:white;margin:12px 0}.partner-preview-bar{position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(180deg,var(--partner-primary),var(--partner-secondary))}.partner-preview img{width:64px;height:64px;border-radius:50%;object-fit:cover}.partner-preview b{font-size:17px}.partner-preview p{margin:3px 0}.partner-preview small{color:#64748b}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.pricing-grid article{border:1px solid #dfe8f2;border-radius:18px;padding:18px;background:#fff}.pricing-grid article strong{display:block;font-size:23px;color:#112b4a;margin:10px 0}.pricing-grid article strong span{font-size:12px;color:#64748b}.pricing-grid article button{width:100%;border:0;border-radius:12px;padding:11px;background:#112b4a;color:white;font-weight:700}@media(max-width:760px){.pricing-grid{grid-template-columns:1fr}.partner-preview{align-items:flex-start}.partner-preview img{width:52px;height:52px}}


/* V8.2 — Trust Centre and always-visible privacy layer */
.privacy-ribbon{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0 10px;padding:11px 14px;border:1px solid #cfe1f4;border-radius:15px;background:linear-gradient(90deg,#f2f9ff,#fbf8ff);font-size:12px;color:#23456f}.privacy-ribbon button{margin-left:auto;border:0;background:transparent;color:#0866e8;font-weight:800;cursor:pointer}.privacy-register-note{margin:10px 0 14px;padding:11px 12px;border-radius:12px;background:#f4f9ff;border:1px solid #d7e8f7;color:#496482;font-size:12px;line-height:1.45}.privacy-register-note .link{padding:0;margin:5px 0 0;text-align:left}.trust-hero{background:linear-gradient(135deg,#edf8ff,#f7f2ff 55%,#f0fff7)}.trust-status{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.trust-status>div{background:#fff;border:1px solid #dce8f6;border-radius:16px;padding:15px}.trust-status b{display:block;color:#082d6b;margin-bottom:5px}.trust-status span{font-size:12px;color:#60738c}.privacy-list{display:grid;gap:10px;margin-top:14px}.privacy-list>div{padding:12px;border:1px solid #e0eaf4;border-radius:13px;font-weight:800;color:#173d75}.privacy-list small{display:block;margin-top:3px;font-weight:500;color:#687b91}.privacy-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.privacy-actions button{padding:13px;border-radius:13px;border:1px solid #cfe0f1;background:#fff;color:#123d75;font-weight:800}.compliance-gate{border-left:5px solid #f2a93b;background:#fffdf7}@media(max-width:850px){.trust-status,.privacy-actions{grid-template-columns:1fr 1fr}}@media(max-width:520px){.trust-status,.privacy-actions{grid-template-columns:1fr}.privacy-ribbon{align-items:flex-start}.privacy-ribbon button{margin-left:0}}

/* V8.2.1 Stable — production interaction fixes */
.profile-photo-btn{border:0;background:transparent;padding:0;display:grid;place-items:center;cursor:pointer}.profile-photo-btn img,.profile-photo-btn .avatar-fallback{width:42px;height:42px;border-radius:50%;object-fit:cover;background:linear-gradient(135deg,#e5f8ff,#f7eaff);color:#6e2ee8;font-weight:900;display:grid;place-items:center}.profile-photo-btn:hover{transform:none;box-shadow:0 0 0 3px #0866e818;border-radius:50%}.brand-footer .assoc{font-weight:400!important;line-height:1.5}.brand-footer .assoc b{font-weight:400!important}.upload-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.upload-actions label{margin:0;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:12px 15px;background:linear-gradient(90deg,#075edb,#6e2ee8);color:#fff;font-weight:800;cursor:pointer}.upload-actions input{display:none}.service-status{padding:10px 12px;border-radius:12px;background:#eef7ff;color:#0a4e9e;font-size:12px;margin-top:12px}.service-status.error{background:#fff2f2;color:#9b1c1c}.verify-panel{padding:18px;border-radius:16px;background:#f0f8ff;border:1px solid #cfe5ff;text-align:center}.assistant-box{height:auto;min-height:62vh}.messages{min-height:320px;max-height:52vh}.lens-preview{max-width:100%;max-height:260px;border-radius:14px;margin-top:12px}.scan-note{font-size:12px;color:#6b7d95}.empty-live{padding:26px;border:1px dashed #cbdced;border-radius:16px;text-align:center;color:#6b7d95}

/* Public registration privacy summary */
.privacy-modal{position:fixed;inset:0;z-index:9999;background:rgba(7,30,75,.58);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}
.privacy-modal[hidden]{display:none}
.privacy-modal-card{position:relative;width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 24px 70px rgba(4,31,79,.28);color:#0a2b61}
.privacy-modal-card h2{margin:0 42px 10px 0;font-size:26px}.privacy-modal-card>p{line-height:1.55}
.privacy-modal-close{position:absolute;right:16px;top:14px;border:0;background:#eef5ff;color:#123a75;width:38px;height:38px;border-radius:50%;font-size:26px;cursor:pointer}
.privacy-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.privacy-modal-grid>div{border:1px solid #dbe8f8;border-radius:14px;padding:14px;background:#f8fbff}.privacy-modal-grid strong{display:block;margin-bottom:5px}.privacy-modal-grid span{font-size:14px;line-height:1.45;color:#435d7e}.privacy-modal-note{font-size:13px;color:#526984;background:#f3f8ff;border-radius:12px;padding:12px}.modal-open{overflow:hidden}
@media(max-width:640px){.privacy-modal{padding:10px}.privacy-modal-card{padding:22px 18px;border-radius:18px}.privacy-modal-grid{grid-template-columns:1fr}}

/* V8.2.4 professional OAuth provider buttons */
.social.oauth-providers{gap:14px}
.oauth-provider{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:13px 10px!important;border:1px solid #d7e2de!important;background:#fff!important;border-radius:14px!important;color:#17345f;font-weight:800!important;box-shadow:0 5px 16px #123c7b0b;cursor:pointer}
.oauth-provider:hover{border-color:#a9c4e8!important;box-shadow:0 8px 22px #123c7b16;transform:translateY(-1px)}
.oauth-provider svg{display:block;width:32px;height:32px;flex:none}
.oauth-provider .oauth-label{display:block;font-size:13px;line-height:1.15;text-align:center}
@media(max-width:560px){.social.oauth-providers{grid-template-columns:1fr 1fr}.oauth-provider{min-height:88px}.oauth-provider .oauth-label{font-size:12px}}

/* V8.2.5 registration/login refinements */
.auth-card input[type="email"],.auth-card input[type="password"],.auth-card input:not([type]){font-weight:400!important;}
.remember-check{display:flex;align-items:center;gap:8px;font-weight:400;font-size:13px;margin:10px 0 4px;color:#496482;}
.remember-check input{width:17px;height:17px;margin:0;accent-color:#0866e8;}
.remember-check span{font-weight:400;}
/* V8.3 functional stabilisation */
.brand-footer .assoc,.brand-footer .assoc b{font-weight:400!important}.empty-state{padding:28px;border:1px dashed #bfd2e8;border-radius:16px;background:#f8fbff;margin-top:16px}.empty-state h3{margin:0 0 8px}.task{gap:12px}.task .pill{margin-left:auto}.header-logout{display:inline-flex!important}.logout{display:block!important}

/* V8.3.5 — Mobile-first shell + expanded Wellbeing Centre */
.mobile-bottom-nav{display:none}
.wellbeing-hero{background:linear-gradient(135deg,#eaf8ff 0%,#f0fff7 45%,#fff7e9 100%);border:1px solid #dce8f6;border-radius:24px;padding:28px;display:grid;grid-template-columns:1fr 170px;gap:22px;align-items:center;overflow:hidden}
.wellbeing-hero h1{margin:7px 0 10px;font-size:clamp(28px,4vw,42px);line-height:1.08;color:#082d6b}.wellbeing-hero p{max-width:760px;color:#506983;line-height:1.6}.wellbeing-mark{width:150px;height:150px;border-radius:50%;margin:auto;background:linear-gradient(135deg,#0866e8,#7a20e8,#10a86b);color:#fff;display:grid;place-items:center;font-size:58px;box-shadow:0 18px 45px #0866e825}.wellbeing-mark small{font-size:11px;text-align:center;margin-top:-42px;letter-spacing:.04em}.wellbeing-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;margin-top:18px}.wellbeing-side{display:grid;gap:18px;align-content:start}.wellbeing-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wellbeing-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.link-button{display:block;text-align:center;text-decoration:none}.micro.left{text-align:left}.wellbeing-history-row{border-top:1px solid #e7eef6;padding:12px 0}.wellbeing-history-row:first-child{margin-top:12px}.wellbeing-history-row small{float:right;color:#6b7d95}.wellbeing-history-row p{font-size:12px;color:#60738c;margin:5px 0 0;line-height:1.45}.safety-card{border-left:5px solid #f2a93b!important;background:#fffdf7!important}

@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{padding-bottom:76px}
  #app{display:block!important;width:100%;min-width:0}
  #app[hidden]{display:none!important}
  main{width:100%;min-width:0;margin:0}
  header{height:68px;padding:0 14px;gap:9px;width:100%;position:sticky;top:0}
  header h2{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
  header p{display:none}
  #menu{display:none!important}
  .header-logout{display:none!important}
  .profile{gap:7px}.profile>div{display:none!important}
  .profile-photo-btn img,.profile-photo-btn .avatar-fallback{width:38px;height:38px}
  #content{width:100%;max-width:none;margin:0;padding:14px 12px 26px;overflow:hidden}
  aside{position:fixed;z-index:60;left:0;top:0;bottom:0;width:min(86vw,320px);height:100dvh;transform:translateX(-105%);transition:transform .22s ease;padding:20px 14px;box-shadow:18px 0 45px #061d4933}
  aside.open{transform:translateX(0)}
  aside nav{overflow:auto;padding-bottom:18px}
  aside .logout{margin-top:12px;background:#ffffff12}
  .mobile-bottom-nav{position:fixed;z-index:55;left:0;right:0;bottom:0;height:68px;padding:6px 5px max(6px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe7f4;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -8px 24px #092d6a14}
  .mobile-bottom-nav button{border:0;background:transparent;color:#365779;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:750;padding:3px;min-width:0}
  .mobile-bottom-nav button b{font-size:19px;line-height:1}.mobile-bottom-nav button:active{color:#0866e8}
  .premium-hero,.hero,.command-card,.wellbeing-hero{grid-template-columns:1fr!important;padding:20px 17px;border-radius:19px}
  .premium-hero h1,.hero h1,.wellbeing-hero h1{font-size:27px!important}
  .hero-brand,.hero .orb,.wellbeing-mark{display:none!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .hero-actions button,.hero-actions a{width:100%;margin:0!important;text-align:center;justify-content:center}
  .dashboard-grid,.cards,.os-grid,.two,.case-workspace,.wellbeing-grid,.wellbeing-fields,.trust-status,.privacy-actions,.pricing-grid,.plan-grid,.admin-kpis{grid-template-columns:1fr!important;width:100%}
  .metric-card,.card,.panel,.workspace-panel,.truth-card,.graph-node,.watch-item{min-width:0;width:100%;padding:17px}
  .panel-head{align-items:flex-start;gap:10px;flex-direction:column}.panel-head .primary{width:100%}
  .network-row,.case-row,.integration,.status-row{align-items:flex-start!important;flex-direction:column!important;gap:9px!important}.network-row>div:last-child{width:100%}.network-row button{margin-top:3px}
  .composer{display:grid!important;grid-template-columns:1fr auto;gap:8px}.composer input{min-width:0;width:100%}
  .assistant-box{min-height:calc(100dvh - 170px)}.messages{min-height:44vh;max-height:56vh}.bubble{max-width:92%}
  .resolution-path{grid-template-columns:1fr 1fr!important}
  .brand-footer{grid-template-columns:1fr!important;text-align:center;padding:14px 10px}.brand-footer img{max-width:150px;margin:auto}.brand-footer .life-lockup{text-align:center!important}
  .wellbeing-side{gap:14px}.wellbeing-grid{gap:14px}.wellbeing-hero{margin-bottom:0}
  input,textarea,select{max-width:100%;width:100%;font-size:16px}
  .upload-actions{display:grid;grid-template-columns:1fr}.upload-actions label,.upload-actions button{width:100%;justify-content:center}
}


/* V8.3.7 — GUARD360 AI Protection Centre */
.protection-hero{background:radial-gradient(circle at 83% 15%,#dffff3 0,transparent 27%),linear-gradient(135deg,#071b49 0%,#063b87 55%,#075c68 100%);color:#fff;border-radius:26px;padding:30px;display:grid;grid-template-columns:1fr 210px;gap:24px;align-items:center;box-shadow:0 18px 46px #082d6b1a}.protection-hero h1{font-size:clamp(31px,4vw,46px);line-height:1.05;margin:8px 0 12px}.protection-hero p{color:#d9eafa;line-height:1.6;max-width:760px}.protection-brand{text-align:center}.protection-brand img{width:175px;max-width:90%;border-radius:50%;background:#fff;box-shadow:0 14px 36px #0003}.protection-brand small{display:block;margin-top:8px;color:#d7e9ff}.protection-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;margin-top:18px}.protection-side{display:grid;gap:18px;align-content:start}.guard-modes{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.guard-modes button{border:1px solid #d9e4f2;background:#fff;color:#315473;border-radius:999px;padding:9px 12px;font-weight:800}.guard-modes button.active{background:#082d6b;color:#fff;border-color:#082d6b}.guard-mode-pill{font-size:10px;font-weight:900;letter-spacing:.06em;background:#eaf4ff;color:#0866e8;padding:7px 9px;border-radius:999px}.guard-upload{display:block;margin:12px 0;padding:14px;border:1px dashed #adc2db;border-radius:14px;background:#f8fbff}.guard-upload input{display:block;margin-top:8px;width:100%}.guard-loading{margin-top:14px;padding:14px;border-radius:14px;background:#eef6ff;color:#315473}.guard-result{margin-top:16px;border:1px solid #dfe7f0;border-left:6px solid #efad24;border-radius:16px;padding:18px;background:#fff}.guard-result.low{border-left-color:#1eae67}.guard-result.high{border-left-color:#d93d55;background:#fffafb}.guard-result-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.guard-risk{font-size:10px;font-weight:950;padding:6px 8px;border-radius:999px;background:#fff3d6;color:#9b6500}.guard-risk.low{background:#e8fbf0;color:#167846}.guard-risk.high{background:#ffe8ed;color:#b8203a}.guard-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guard-columns li{margin:7px 0;line-height:1.45}.guard-history-row{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-top:1px solid #e7eef6}.guard-history-row:first-child{border-top:0}.guard-history-row small{display:block;color:#74859a;margin-top:3px}.risk-dot{width:10px;height:10px;border-radius:50%;background:#efad24;margin-top:4px;flex:none}.risk-dot.low{background:#1eae67}.risk-dot.high{background:#d93d55}
@media(max-width:760px){.protection-hero,.protection-grid,.guard-columns{grid-template-columns:1fr!important}.protection-hero{padding:20px 17px;border-radius:19px}.protection-brand{display:none}.guard-modes{display:grid;grid-template-columns:1fr}.guard-modes button{width:100%}.protection-grid{gap:14px}}


/* V8.3.8 — header product lockup + Cyber Advocacy brand integration */
header{position:sticky}
.header-view{min-width:0}
.header-product{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;pointer-events:none;color:#214b79;font-size:12px;font-weight:800;letter-spacing:.01em}
.header-product img{width:52px;height:52px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 4px 14px #0b4b8b16}
.cyber-support-card{text-align:center}
.cyber-support-logo{display:block;width:min(210px,78%);aspect-ratio:1/1;object-fit:contain;margin:4px auto 14px;border-radius:50%;background:#fff;box-shadow:0 12px 30px #05295b18}
.cyber-support-card h2{margin-top:6px}
.cyber-support-link{display:flex!important;align-items:center;justify-content:center;text-decoration:none;margin-top:14px}
.cyber-support-url{display:block;margin:10px auto 4px;color:#0866e8;text-decoration:none;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.cyber-support-url:hover{text-decoration:underline}
@media(max-width:1050px) and (min-width:761px){.header-product span{display:none}.header-product img{width:46px;height:46px}}
@media(max-width:760px){
  .header-product{left:50%;gap:6px;max-width:42vw}
  .header-product img{width:38px;height:38px}
  .header-product span{display:none}
  .header-view{max-width:35vw}
  .cyber-support-logo{width:min(190px,72vw)}
}

/* V8.4 — Commercial readiness polish */
:focus-visible{outline:3px solid currentColor;outline-offset:3px}
button,a,input,select,textarea{touch-action:manipulation}
button:disabled{opacity:.58;cursor:not-allowed}
img{max-width:100%;height:auto}
@media (max-width:720px){
  .content,.main-content,#content{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .panel,.workspace-panel,.os-tile,.metric-card{min-width:0}
  input,select,textarea{font-size:16px}
  .hero-actions>*{min-height:44px}
  .network-row{align-items:flex-start;gap:12px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* V8.4.1 — sidebar visibility and subscription access */
#app aside{overflow:hidden}
#app aside #nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:5px;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent}
#app aside #nav::-webkit-scrollbar{width:6px}
#app aside #nav::-webkit-scrollbar-thumb{background:#ffffff55;border-radius:999px}
#app aside .logout{flex:0 0 auto;margin-top:12px!important}
#app aside #nav button[data-view="insights"],#app aside #nav button[data-view="plans"]{color:#fff}
#app aside #nav button[data-view="plans"]{background:#ffffff10;border:1px solid #ffffff20}
@media(max-width:950px){#app aside{height:100dvh;overflow:hidden;padding-bottom:88px}#app aside #nav{overflow-y:auto;-webkit-overflow-scrolling:touch}.logout{margin-bottom:6px!important}}


/* V8.4.2 — Mobile display hardening */
@media (max-width:900px){
  html,body{margin:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom))!important}
  #app{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  #app[hidden]{display:none!important}
  #app main,main{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow-x:hidden!important}
  header{height:64px!important;min-height:64px!important;width:100%!important;max-width:100%!important;padding:0 10px!important;gap:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;overflow:hidden!important}
  .header-view{min-width:0!important;max-width:none!important;overflow:hidden!important}
  .header-view h2,header h2{font-size:17px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
  .header-view p,header p{display:none!important}
  .header-product{position:static!important;left:auto!important;top:auto!important;transform:none!important;max-width:none!important;justify-self:center!important;gap:0!important}
  .header-product img{width:36px!important;height:36px!important;object-fit:contain!important;border-radius:50%!important}
  .header-product span{display:none!important}
  .profile{margin-left:0!important;min-width:0!important;justify-self:end!important}
  .profile>div{display:none!important}
  .profile-photo-btn{width:38px!important;height:38px!important;min-width:38px!important;padding:0!important}
  .profile-photo-btn img,.profile-photo-btn .avatar-fallback{width:38px!important;height:38px!important}
  #menu,.header-logout{display:none!important}
  #content{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px 10px 24px!important;overflow:visible!important}
  #content>*{max-width:100%!important;min-width:0!important}
  .hero,.premium-hero,.command-card,.wellbeing-hero,.protection-hero{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;padding:18px 15px!important;border-radius:18px!important;overflow:hidden!important}
  .hero h1,.premium-hero h1,.wellbeing-hero h1,.protection-hero h1{font-size:clamp(24px,7vw,30px)!important;line-height:1.08!important;overflow-wrap:anywhere!important}
  .hero-brand,.hero .orb,.wellbeing-mark,.protection-brand{display:none!important}
  .cards,.dashboard-grid,.os-grid,.two,.case-workspace,.wellbeing-grid,.wellbeing-fields,.trust-status,.privacy-actions,.pricing-grid,.plan-grid,.admin-kpis,.protection-grid,.guard-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:12px!important}
  .card,.panel,.workspace-panel,.metric-card,.truth-card,.graph-node,.watch-item,.plan,.integration,.status-row,.case-row{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .panel,.workspace-panel,.card,.metric-card,.plan{padding:16px!important}
  .quick,.hero-actions,.guard-modes,.upload-actions{width:100%!important;max-width:100%!important}
  .hero-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  .hero-actions>*,.upload-actions>*,.guard-modes>*{width:100%!important;max-width:100%!important;min-height:44px!important;margin-left:0!important;margin-right:0!important}
  .network-row,.case-row,.integration,.status-row,.panel-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important}
  .network-row button,.case-row button,.integration button,.status-row button,.panel-head button{width:100%!important;margin-left:0!important}
  .composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important}
  .composer input{min-width:0!important;width:100%!important}
  .composer button{min-width:46px!important;padding:0 12px!important}
  .assistant-box{height:auto!important;min-height:calc(100dvh - 160px)!important;max-width:100%!important}
  .messages{min-height:42vh!important;max-height:54vh!important;overflow:auto!important}
  .bubble{max-width:92%!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .resolution-path{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  input,textarea,select{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px!important}
  img,svg,video,canvas{max-width:100%!important;height:auto}
  table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  pre,code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}
  aside{box-sizing:border-box!important;position:fixed!important;z-index:80!important;left:0!important;top:0!important;bottom:0!important;width:min(88vw,320px)!important;max-width:320px!important;height:100dvh!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;padding:18px 14px calc(82px + env(safe-area-inset-bottom))!important;overflow:hidden!important;box-shadow:18px 0 45px #061d4933!important}
  aside.open{transform:translateX(0)!important}
  aside #nav{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;padding-bottom:14px!important}
  aside #nav button{width:100%!important;min-height:44px!important}
  aside .logout{width:100%!important;min-height:44px!important;margin:10px 0 0!important}
  .mobile-bottom-nav{box-sizing:border-box!important;position:fixed!important;z-index:75!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:calc(68px + env(safe-area-inset-bottom))!important;padding:5px 4px max(5px,env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #dbe7f4!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;box-shadow:0 -8px 24px #092d6a14!important}
  .mobile-bottom-nav button{box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:54px!important;padding:3px 2px!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important}
  .mobile-bottom-nav button b{font-size:19px!important;line-height:1!important}
  .mobile-bottom-nav button span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .brand-footer{grid-template-columns:minmax(0,1fr)!important;text-align:center!important;width:100%!important;max-width:100%!important;padding:14px 10px!important}
  .brand-footer img{max-width:145px!important;margin:auto!important}
  .cyber-support-logo{width:min(190px,70vw)!important}
}

@media (max-width:420px){
  #content{padding-left:8px!important;padding-right:8px!important}
  header{padding-left:8px!important;padding-right:8px!important}
  .card,.panel,.workspace-panel,.metric-card,.plan{padding:14px!important}
  .resolution-path{grid-template-columns:minmax(0,1fr)!important}
}

/* V8.4.4 working Connections + Verified Paths */
.verified-path-card{display:flex;flex-direction:column}.verified-path-card .pill{margin-top:auto;align-self:flex-start}.verified-path-detail{scroll-margin-top:90px}.path-steps{display:grid;gap:10px;padding-left:24px;margin:18px 0}.path-steps li{padding:11px 14px;background:#f7fbff;border:1px solid #dceaf5;border-radius:14px;color:#17345f}.official-source{padding:16px;border-radius:16px;background:#f5f9ff;border:1px solid #d7e5f3;margin:16px 0}.official-source p{margin:6px 0 12px}.integration button{white-space:nowrap}@media(max-width:700px){.integration{grid-template-columns:auto 1fr!important;align-items:start}.integration button{grid-column:1/-1;width:100%;margin-top:8px}.verified-path-detail .panel-head{align-items:flex-start}.path-steps{padding-left:20px}}

/* V8.4.5 provider connection logos */
.provider-integration{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:16px}
.provider-icon{width:52px;height:52px;border:1px solid #dce7e3;border-radius:14px;background:#fff;display:grid;place-items:center;box-shadow:0 4px 14px #173f3b0d;flex:none}
.provider-logo{width:31px;height:31px;display:block}
.provider-integration .micro{margin:5px 0 0}
@media(max-width:700px){.provider-integration{grid-template-columns:52px minmax(0,1fr)!important}.provider-integration button{grid-column:1/-1!important;width:100%!important}.provider-icon{width:48px;height:48px}.provider-logo{width:29px;height:29px}}

/* V8.4.6 Connected Services Intelligence */
.connections-stack{display:grid;gap:18px;margin-top:18px}.connection-provider-card{overflow:hidden}.connection-provider-head{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.connection-provider-head h2{margin:0 0 5px}.connection-account-state{display:flex;align-items:center;gap:7px;color:#5a6874}.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.status-dot.green{background:#1ca66f;box-shadow:0 0 0 4px rgba(28,166,111,.12)}.status-dot.amber{background:#eea126;box-shadow:0 0 0 4px rgba(238,161,38,.12)}.connection-services{margin-top:18px;border-top:1px solid #e6ebf0;padding-top:14px}.connection-services-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.connection-services-head p{margin:4px 0 0}.connection-service{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #eef2f5}.connection-service>div{display:flex;flex-direction:column;gap:3px}.connection-service-state{font-size:12px;color:#6c7c86}.connection-service.is-active .connection-service-state{color:#17875d;font-weight:700}.connection-service.was-approved .connection-service-state{color:#9a6a12}.connected-data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.connected-preview{border:1px solid #e4eaf0;border-radius:14px;padding:14px;background:#fbfcfd;min-width:0}.connected-preview h3{margin-top:0}.connected-item{padding:10px 0;border-top:1px solid #edf1f4;display:flex;flex-direction:column;gap:4px}.connected-item:first-child{border-top:0}.connected-item b,.connected-item a{overflow-wrap:anywhere}.connected-item a{color:#174f9e;text-decoration:none}.connected-item small{color:#667985}.source-pill{width:max-content;font-size:10px;font-weight:800;letter-spacing:.04em;border-radius:999px;background:#edf4ff;color:#315f94;padding:3px 7px}.connection-error{font-size:12px;color:#a74444;background:#fff4f4;border:1px solid #f0cece;padding:9px;border-radius:10px}.connection-use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.connection-use-grid>div{border:1px solid #e4eaf0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:5px}.connection-use-grid span{font-size:12px;color:#627582;line-height:1.4}
@media(max-width:760px){.connection-provider-head{grid-template-columns:auto 1fr}.connection-provider-head>button{grid-column:1/-1;width:100%}.connection-services-head{display:block}.connection-services-head button{margin-top:10px;width:100%}.connection-service{align-items:flex-start;flex-direction:column}.connection-service button{width:100%}.connected-data-grid,.connection-use-grid{grid-template-columns:1fr}}

/* V8.4.9 connection callback diagnostics */
.connection-return-notice{margin:14px 0 0;padding:12px 14px;border-radius:12px;display:flex;gap:8px;align-items:flex-start;font-size:13px}.connection-return-notice b{white-space:nowrap}.connection-return-notice.success{background:#eefaf4;border:1px solid #bfe8d0;color:#176a47}.connection-return-notice.error{background:#fff4f4;border:1px solid #efcaca;color:#8d3434}.connection-return-notice.info{background:#f3f7fd;border:1px solid #ccdbee;color:#35516f}
/* V8.5.1 — actionable connected services */
.connected-item-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.connected-item-actions .pill{font-size:11px;padding:7px 9px}.connected-snippet{margin:2px 0 0;color:#536977;font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.connected-action-overlay{position:fixed;inset:0;background:rgba(9,28,55,.46);z-index:10000;display:grid;place-items:center;padding:18px}.connected-action-dialog{width:min(560px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.25);padding:20px;color:#17345f}.connected-action-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.connected-action-dialog-head h3{margin:0}.connected-action-dialog label{display:grid;gap:7px;font-weight:700}.connected-action-dialog select{width:100%;padding:11px;border:1px solid #dbe4ec;border-radius:10px;background:#fff;color:#17345f}.connected-action-summary{margin:14px 0;background:#f6f9fc;border:1px solid #e0e8ef;border-radius:12px;padding:12px;font-size:12px;line-height:1.5;color:#526775}.connected-action-dialog .primary{width:100%}
@media(max-width:760px){.connected-item-actions{display:grid;grid-template-columns:1fr 1fr}.connected-item-actions .pill{width:100%;min-height:40px}.connected-action-dialog{padding:16px}}

/* V8.5.4 — active connected-account selector */
.connected-provider-selector{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:16px;margin:14px 0 16px;border:1px solid rgba(23,52,95,.12);border-radius:16px;background:linear-gradient(135deg,rgba(0,164,239,.06),rgba(66,133,244,.05));}
.connected-provider-buttons{display:flex;flex-wrap:wrap;gap:10px;}
.provider-choice{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border-radius:13px;border:1px solid rgba(23,52,95,.18);background:#fff;color:#17345f;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 3px 12px rgba(23,52,95,.06);}
.provider-choice:hover{transform:translateY(-1px);}
.provider-choice.is-selected{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.12);background:#f5f9ff;}
.provider-choice-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;}
.provider-choice-icon .provider-logo{width:24px;height:24px;}
.active-provider-summary{width:100%;padding-top:4px;font-size:.92rem;color:#536781;}
@media(max-width:700px){.connected-provider-selector{align-items:stretch}.connected-provider-buttons{display:grid;grid-template-columns:1fr; width:100%}.provider-choice{justify-content:flex-start;width:100%}}


/* V8.7.1 — iPhone/mobile shell enforcement.
   Uses a mobile-device class as a fallback when iOS Safari reports a desktop-style layout viewport. */
html.mobile-device,html.mobile-device body{
  margin:0!important;padding-left:0!important;padding-right:0!important;
  width:100dvw!important;max-width:100dvw!important;min-width:0!important;
  overflow-x:hidden!important;-webkit-text-size-adjust:100%!important;
}
html.mobile-device body{padding-bottom:calc(74px + env(safe-area-inset-bottom))!important}
html.mobile-device #app{
  display:block!important;position:relative!important;width:100dvw!important;max-width:100dvw!important;
  min-width:0!important;margin:0!important;padding:0!important;overflow-x:clip!important;
}
html.mobile-device #app[hidden]{display:none!important}
html.mobile-device #app main,
html.mobile-device main{
  display:block!important;position:relative!important;width:100dvw!important;max-width:100dvw!important;
  min-width:0!important;margin:0!important;padding:0!important;overflow-x:clip!important;
}
html.mobile-device header{
  box-sizing:border-box!important;width:100dvw!important;max-width:100dvw!important;min-width:0!important;
  height:64px!important;min-height:64px!important;padding:0 max(10px,env(safe-area-inset-left)) 0 max(10px,env(safe-area-inset-right))!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;
  overflow:hidden!important;
}
html.mobile-device .header-view{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html.mobile-device .header-view h2{font-size:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html.mobile-device .header-view p,html.mobile-device .header-logout,html.mobile-device #menu{display:none!important}
html.mobile-device .header-product{display:none!important}
html.mobile-device .profile{margin:0!important;justify-self:end!important;min-width:38px!important}
html.mobile-device .profile>div{display:none!important}
html.mobile-device .profile-photo-btn,
html.mobile-device .profile-photo-btn img,
html.mobile-device .profile-photo-btn .avatar-fallback{width:38px!important;height:38px!important;min-width:38px!important}
html.mobile-device #content{
  box-sizing:border-box!important;display:block!important;width:100dvw!important;max-width:100dvw!important;min-width:0!important;
  margin:0!important;padding:12px max(10px,env(safe-area-inset-left)) 28px max(10px,env(safe-area-inset-right))!important;
  overflow-x:clip!important;
}
html.mobile-device #content>*{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
html.mobile-device .premium-hero,
html.mobile-device .hero,
html.mobile-device .command-card,
html.mobile-device .wellbeing-hero,
html.mobile-device .protection-hero{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  padding:18px 15px!important;border-radius:18px!important;overflow:hidden!important;
}
html.mobile-device .hero-copy,html.mobile-device .hero-copy>*{max-width:100%!important;min-width:0!important}
html.mobile-device .hero-copy h1,
html.mobile-device .premium-hero h1,
html.mobile-device .command-card h1,
html.mobile-device .wellbeing-hero h1,
html.mobile-device .protection-hero h1{
  font-size:clamp(24px,7.2vw,30px)!important;line-height:1.08!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html.mobile-device .hero-brand,html.mobile-device .hero .orb,html.mobile-device .wellbeing-mark,html.mobile-device .protection-brand{display:none!important}
html.mobile-device .hero-actions,
html.mobile-device .dashboard-grid,
html.mobile-device .cards,
html.mobile-device .os-grid,
html.mobile-device .workspace-grid,
html.mobile-device .lower-grid,
html.mobile-device .two,
html.mobile-device .case-workspace,
html.mobile-device .wellbeing-grid,
html.mobile-device .wellbeing-fields,
html.mobile-device .trust-status,
html.mobile-device .privacy-actions,
html.mobile-device .pricing-grid,
html.mobile-device .plan-grid,
html.mobile-device .admin-kpis,
html.mobile-device .protection-grid,
html.mobile-device .guard-columns,
html.mobile-device .connected-data-grid,
html.mobile-device .connection-use-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:12px!important;
}
html.mobile-device .metric-card,
html.mobile-device .card,
html.mobile-device .panel,
html.mobile-device .workspace-panel,
html.mobile-device .os-tile,
html.mobile-device .plan,
html.mobile-device .integration,
html.mobile-device .connection-provider-card{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;
}
html.mobile-device .hero-actions>*{width:100%!important;max-width:100%!important;min-height:44px!important;margin:0!important}
html.mobile-device .confidence-row{display:grid!important;gap:7px!important}
html.mobile-device .attention-strip{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important}
html.mobile-device .attention-strip>div{min-width:0!important}
html.mobile-device .attention-strip button{width:100%!important;white-space:normal!important;text-align:left!important}
html.mobile-device .mini-path{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
html.mobile-device .mini-path i{display:none!important}
html.mobile-device .resolution-features,html.mobile-device .feature-pills{max-width:100%!important;overflow-wrap:anywhere!important}
html.mobile-device .panel-head,
html.mobile-device .case-row,
html.mobile-device .network-row,
html.mobile-device .integration,
html.mobile-device .status-row{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;
}
html.mobile-device .panel-head button,
html.mobile-device .case-row button,
html.mobile-device .network-row button,
html.mobile-device .integration button,
html.mobile-device .status-row button{width:100%!important;margin-left:0!important;white-space:normal!important}
html.mobile-device input,html.mobile-device textarea,html.mobile-device select{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px!important}
html.mobile-device img,html.mobile-device svg,html.mobile-device video,html.mobile-device canvas{max-width:100%!important;height:auto}
html.mobile-device aside{
  box-sizing:border-box!important;position:fixed!important;z-index:90!important;left:0!important;top:0!important;bottom:0!important;
  width:min(88dvw,320px)!important;max-width:320px!important;height:100dvh!important;margin:0!important;
  transform:translate3d(-105%,0,0)!important;transition:transform .22s ease!important;
  padding:18px 14px calc(82px + env(safe-area-inset-bottom))!important;overflow:hidden!important;
}
html.mobile-device aside.open{transform:translate3d(0,0,0)!important}
html.mobile-device aside #nav{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
html.mobile-device .mobile-bottom-nav{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  position:fixed!important;z-index:85!important;left:0!important;right:0!important;bottom:0!important;
  width:100dvw!important;max-width:100dvw!important;height:calc(68px + env(safe-area-inset-bottom))!important;
  padding:5px max(4px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))!important;
  background:#fff!important;border-top:1px solid #dbe7f4!important;
}
html.mobile-device .mobile-bottom-nav button{box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:3px 2px!important;overflow:hidden!important}
html.mobile-device .mobile-bottom-nav button span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* V8.7.2 — Mobile authentication layout correction.
   Fixes iPhone/Android browsers that report a desktop-style CSS viewport.
   The signed-out experience must never inherit the signed-in bottom navigation. */
html.mobile-device .auth-shell,
@media (max-width:760px) {
}

html.mobile-device .auth-shell{
  box-sizing:border-box!important;
  display:block!important;
  width:100dvw!important;
  max-width:100dvw!important;
  min-width:0!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  background:linear-gradient(180deg,#f7fbff 0%,#ffffff 38%,#f8fbff 100%)!important;
  overflow-x:hidden!important;
}
html.mobile-device .auth-shell .brand-panel{display:none!important}
html.mobile-device .auth-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:26px max(20px,env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
html.mobile-device .auth-card-logo{
  display:block!important;
  width:132px!important;
  height:132px!important;
  object-fit:contain!important;
  margin:4px auto 20px!important;
  border-radius:50%!important;
}
html.mobile-device .auth-card .tabs{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 26px!important;
  padding:5px!important;
  gap:4px!important;
}
html.mobile-device .auth-card .tab{
  min-width:0!important;
  width:100%!important;
  min-height:48px!important;
  padding:10px 8px!important;
  font-size:15px!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:normal!important;
}
html.mobile-device .auth-card h2{
  margin:6px 0 8px!important;
  font-size:clamp(30px,8.5vw,38px)!important;
  line-height:1.08!important;
  text-align:center!important;
  overflow-wrap:normal!important;
}
html.mobile-device .auth-card .auth-sub{text-align:center!important;font-size:17px!important;margin-bottom:26px!important}
html.mobile-device .auth-card form,
html.mobile-device .auth-card label,
html.mobile-device .auth-card input,
html.mobile-device .auth-card .primary,
html.mobile-device .auth-card .social,
html.mobile-device .auth-card .or{
  width:100%!important;max-width:100%!important;min-width:0!important;
}
html.mobile-device .auth-card input{min-height:52px!important;font-size:16px!important}
html.mobile-device .auth-card .social.oauth-providers{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
}
html.mobile-device .auth-card .oauth-provider{min-width:0!important;min-height:76px!important;padding:10px 6px!important}
html.mobile-device .auth-card .oauth-provider svg{width:28px!important;height:28px!important;margin:auto!important}
html.mobile-device .auth-card .oauth-label{font-size:12px!important;line-height:1.2!important;text-align:center!important}
html.mobile-device .auth-card .grid2{display:grid!important;grid-template-columns:1fr!important}
html.mobile-device #auth:not([hidden]) ~ .mobile-bottom-nav{display:none!important}
html.mobile-device body:has(#app[hidden]) .mobile-bottom-nav{display:none!important}
html.mobile-device body:has(#auth:not([hidden])){padding-bottom:0!important}

@media(max-width:760px){
  #auth.auth-shell{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:100dvh!important;margin:0!important;padding:0!important;background:#fff!important}
  #auth .brand-panel{display:none!important}
  #auth .auth-card{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:100dvh!important;margin:0!important;padding:24px 20px calc(32px + env(safe-area-inset-bottom))!important;border-radius:0!important;box-shadow:none!important}
  #auth .auth-card-logo{width:124px!important;height:124px!important;display:block!important;margin:2px auto 18px!important;object-fit:contain!important;border-radius:50%!important}
  #auth .tabs{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  #auth .tab{font-size:15px!important;min-height:48px!important;white-space:normal!important;text-align:center!important}
  #auth .auth-card h2{font-size:32px!important;line-height:1.1!important;text-align:center!important}
  #auth .auth-sub{text-align:center!important;font-size:17px!important}
  #app[hidden] + .mobile-bottom-nav{display:none!important}
  body:has(#app[hidden]) .mobile-bottom-nav{display:none!important}
  body:has(#auth:not([hidden])){padding-bottom:0!important}
}


/* Life360 AI V8.8 — Voice & Accessibility Mode */
.life360-voice-fab{position:fixed;right:22px;bottom:24px;z-index:1200;width:58px;height:58px;border-radius:50%;border:0;background:#0866e8;color:#fff;font-size:26px;box-shadow:0 10px 28px rgba(8,54,115,.28);cursor:pointer;display:none}
body:not(.signed-out) .life360-voice-fab{display:grid;place-items:center}
.life360-voice-fab.listening{background:#c62828;animation:voicePulse 1.2s infinite}
@keyframes voicePulse{0%,100%{box-shadow:0 0 0 0 rgba(198,40,40,.35)}50%{box-shadow:0 0 0 12px rgba(198,40,40,0)}}
.voice-controls{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.voice-controls button,.accessibility-actions button{min-height:44px}
.voice-status{padding:10px 12px;border-radius:12px;background:#eef6ff;color:#17345f;font-size:.92rem;margin-top:10px}
.voice-status.error{background:#fff1f0;color:#922b21}
.accessibility-hero{background:linear-gradient(135deg,#eef8ff 0%,#fff 60%,#f3fff7 100%);border:1px solid #dceaf8;border-radius:24px;padding:26px;margin-bottom:18px}
.accessibility-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.accessibility-option{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px;border:1px solid #dfe8f1;border-radius:18px;background:#fff}
.accessibility-option h3{margin:0 0 5px}.accessibility-option p{margin:0;color:#5f7188}
.a11y-switch{width:52px;height:30px;flex:0 0 auto}
.accessibility-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
html.life360-large-text{font-size:118%}
html.life360-extra-large-text{font-size:132%}
html.life360-high-contrast body{background:#fff;color:#071a35}
html.life360-high-contrast .panel,html.life360-high-contrast .workspace-panel,html.life360-high-contrast .command-card{border:2px solid #071a35!important;box-shadow:none!important}
html.life360-high-contrast button,html.life360-high-contrast a{outline-offset:3px}
html.life360-reduced-motion *,html.life360-reduced-motion *::before,html.life360-reduced-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.life360-focus-view #content{max-width:900px;margin-left:auto;margin-right:auto}
html.life360-focus-view .dashboard-grid,html.life360-focus-view .workspace-grid,html.life360-focus-view .two,html.life360-focus-view .wellbeing-grid{grid-template-columns:1fr!important}
.readable-live-region{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:760px){.life360-voice-fab{right:16px;bottom:88px;width:54px;height:54px}.accessibility-grid{grid-template-columns:1fr}.accessibility-hero{padding:18px}.voice-controls{display:grid;grid-template-columns:1fr 1fr}.voice-controls button{width:100%}}


.connection-soft-status{padding:12px 14px;border:1px solid rgba(23,52,95,.14);border-radius:12px;background:rgba(23,52,95,.035)}
.connection-soft-status b{display:block;margin-bottom:4px}


/* V8.9.4 — Mobile auth guard + desktop/mobile visual parity */
/* Hidden must win over all older responsive display rules. */
[hidden]{display:none!important}
body.signed-out .mobile-bottom-nav,
body.signed-out #life360VoiceButton,
#app[hidden] ~ .mobile-bottom-nav,
#auth:not([hidden]) ~ .mobile-bottom-nav{display:none!important}
body.signed-in .mobile-bottom-nav[hidden],
body.signed-in #life360VoiceButton[hidden]{display:none!important}

/* Lock mobile to the same Life360 blue/cyan/purple design language as desktop. */
@media(max-width:760px){
  html,body{background:linear-gradient(180deg,#f7fbff 0%,#ffffff 54%,#f7f9ff 100%)!important;color:#0a2b61!important}
  #auth.auth-shell{
    background:
      radial-gradient(circle at 12% 5%,rgba(0,191,232,.14),transparent 30%),
      radial-gradient(circle at 92% 8%,rgba(111,44,255,.12),transparent 28%),
      linear-gradient(180deg,#f7fbff 0%,#ffffff 48%,#f7f9ff 100%)!important;
  }
  #auth .auth-card{
    background:transparent!important;
    border:0!important;
  }
  #auth .tabs{background:#edf4ff!important;border:1px solid #dce8f6!important}
  #auth .tab{color:#496482!important}
  #auth .tab.active{background:#fff!important;color:#0866e8!important;box-shadow:0 4px 14px rgba(8,45,107,.10)!important}
  #auth .primary{background:linear-gradient(90deg,#075edb,#086fe8 55%,#6f2cff)!important;color:#fff!important}
  #auth .link{color:#0866e8!important}
  #auth input:focus,#auth textarea:focus{border-color:#0866e8!important;box-shadow:0 0 0 3px rgba(8,102,232,.10)!important}
  #app{background:linear-gradient(180deg,#f7fbff 0%,#fff 50%,#f8faff 100%)!important}
  #app header{background:rgba(255,255,255,.97)!important;border-bottom:1px solid #dce8f6!important}
  #app aside{background:linear-gradient(180deg,#082d6b 0%,#075db9 68%,#087d9d 100%)!important}
  .mobile-bottom-nav{background:#fff!important;border-top:1px solid #dbe7f4!important}
  .mobile-bottom-nav button{color:#365779!important}
  .mobile-bottom-nav button:active,.mobile-bottom-nav button:focus-visible{color:#0866e8!important}
  .life360-voice-fab{background:linear-gradient(135deg,#0866e8,#6f2cff)!important}
}

/* ===== V8.9.5 AUTH VISIBILITY HOTFIX =====
   Hidden must always win over mobile layout display rules. Earlier mobile
   selectors used #auth.auth-shell { display:block!important }, which has higher
   specificity than the generic [hidden] rule and caused the login screen to
   remain visible after authentication while the Home screen rendered below it.
*/
#auth[hidden],
section#auth[hidden],
#auth.auth-shell[hidden]{display:none!important}
#app[hidden],
section#app[hidden]{display:none!important}
body.signed-in #auth{display:none!important}
body.signed-out #app{display:none!important}
body.signed-out .mobile-bottom-nav,
body.signed-out #life360VoiceButton{display:none!important}

/* V8.9.8 — Accessibility mobile layout hardening */
/* Prevent the global mobile form rule from stretching accessibility toggles and
   collapsing the label text into a one-character column. */
.accessibility-option > div:first-child{
  flex:1 1 auto;
  min-width:0;
}
.accessibility-option .a11y-switch{
  box-sizing:border-box!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:30px!important;
  flex:0 0 52px!important;
  padding:0!important;
  margin:2px 0 0!important;
}
.accessibility-option > select{
  box-sizing:border-box!important;
  width:auto!important;
  min-width:150px!important;
  max-width:210px!important;
  flex:0 0 auto!important;
}
.accessibility-option > button{
  width:auto!important;
  flex:0 0 auto!important;
}

@media(max-width:760px){
  .accessibility-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .accessibility-option{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:12px 14px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:16px!important;
    overflow:hidden!important;
  }
  .accessibility-option > div:first-child{
    grid-column:1!important;
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
  }
  .accessibility-option h3,
  .accessibility-option p{
    overflow-wrap:normal!important;
    word-break:normal!important;
    white-space:normal!important;
    width:auto!important;
    max-width:100%!important;
  }
  .accessibility-option h3{
    font-size:20px!important;
    line-height:1.2!important;
  }
  .accessibility-option p{
    font-size:16px!important;
    line-height:1.45!important;
  }
  .accessibility-option .a11y-switch{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    justify-self:end!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:30px!important;
  }
  .accessibility-option > select,
  .accessibility-option > button{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
  .accessibility-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  .accessibility-actions button{
    width:100%!important;
  }
  .accessibility-hero{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
}


/* ===== V8.11 Visual, dyslexia & neurodivergent accessibility ===== */
:root{--life360-focus-ring:#ffbf47}
*:focus-visible{outline:3px solid var(--life360-focus-ring)!important;outline-offset:3px!important}
html.life360-dyslexia-mode body,html.life360-dyslexia-mode input,html.life360-dyslexia-mode textarea,html.life360-dyslexia-mode select,html.life360-dyslexia-mode button{font-family:Verdana,Tahoma,Arial,sans-serif!important;letter-spacing:.035em;word-spacing:.11em;line-height:1.65}
html.life360-dyslexia-mode p,html.life360-dyslexia-mode li,html.life360-dyslexia-mode .bubble{max-width:75ch}
html.life360-reading-spacing body{line-height:1.75}html.life360-reading-spacing p,html.life360-reading-spacing li,html.life360-reading-spacing .bubble{letter-spacing:.02em;word-spacing:.08em;line-height:1.8!important}html.life360-reading-spacing .panel,html.life360-reading-spacing .workspace-panel,html.life360-reading-spacing .command-card{padding-top:1.35em;padding-bottom:1.35em}
html.life360-underline-links a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}
html.life360-calm-colors body,html.life360-calm-colors #app{background:#f7f5ef!important;color:#253442!important}html.life360-calm-colors #app aside{background:linear-gradient(180deg,#31465b,#476578)!important}html.life360-calm-colors #app header{background:#fbfaf6!important;border-color:#c9d3d9!important}html.life360-calm-colors .panel,html.life360-calm-colors .workspace-panel,html.life360-calm-colors .command-card,html.life360-calm-colors .accessibility-option{background:#fbfaf6!important;border-color:#cbd4d8!important;box-shadow:none!important}html.life360-calm-colors .primary{background:#365e78!important;color:#fff!important}html.life360-calm-colors .badge{background:#e5ebe7!important;color:#314b48!important}
html.life360-soft-cream body,html.life360-soft-cream #app,html.life360-soft-cream #content,html.life360-soft-cream .panel,html.life360-soft-cream .workspace-panel,html.life360-soft-cream .command-card,html.life360-soft-cream .accessibility-option{background:#fffaf0!important;color:#2e3338!important}html.life360-soft-cream #app header{background:#fffaf0!important;border-color:#ddd2bd!important}html.life360-soft-cream input,html.life360-soft-cream textarea,html.life360-soft-cream select{background:#fffdf7!important;color:#262b30!important;border-color:#9d927e!important}
html.life360-high-contrast{--life360-focus-ring:#ffbf00}html.life360-high-contrast input,html.life360-high-contrast textarea,html.life360-high-contrast select{border:2px solid #000!important;background:#fff!important;color:#000!important}html.life360-high-contrast .primary{background:#000!important;color:#fff!important;border:2px solid #000!important}html.life360-high-contrast .pill{border:2px solid #000!important;background:#fff!important;color:#000!important}
@media(prefers-contrast:more){*:focus-visible{outline-width:4px!important}.panel,.workspace-panel,.command-card,input,textarea,select,button{border-color:#27384a!important}}
/* V8.12 voice control */
.voice-command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.voice-command-grid>div{border:1px solid var(--line,#d8e0e8);border-radius:14px;padding:14px;background:var(--surface,#fff)}.voice-command-grid b{display:block;margin-bottom:6px}.voice-command-grid p{margin:0;line-height:1.65}@media(max-width:720px){.voice-command-grid{grid-template-columns:1fr}}
