/* The homepage demo reuses the portal's artwork and icon set. */
#connected .connection-map{grid-template-columns:31% 8% 15% 7% 39%;min-height:0}
#connected .demo-output{position:relative;padding:0;background:transparent;border:0;border-radius:0;align-self:center;color:#fff;display:block}
#connected .demo-heading{margin-bottom:15px}
#connected .demo-heading .micro{color:var(--sand);font-size:9px;letter-spacing:.13em}
#connected .demo-heading h3{font:400 clamp(18px,1.8vw,25px)/1.24 var(--display);letter-spacing:-.04em;margin:9px 0 0}
.me-demo{--demo-accent:#B49F86;border:1px solid #8d7d6b;border-radius:14px;overflow:hidden;background:#090909;color:#fff;font-family:var(--font,'DM Sans',sans-serif);isolation:isolate}
.me-demo button,#demo-dialog button{font:inherit;cursor:pointer}
.me-demo button:focus-visible,#demo-dialog button:focus-visible{outline:2px solid #B49F86;outline-offset:3px}
.demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:#090909;letter-spacing:.15em;font-size:16px}
.demo-toolbar small{font-size:8px;letter-spacing:.1em;margin-left:8px;color:#B49F86}
.demo-profile{display:flex;border:1px solid #655b4e;border-radius:20px;padding:3px;gap:2px;letter-spacing:0}
.demo-profile button{padding:5px 12px;border:0;border-radius:16px;color:#e2dbd5;background:transparent;font-size:10px}
.demo-profile button[aria-pressed=true]{background:#B49F86;color:#090909}
.demo-scene{padding:18px 16px 15px;background-image:linear-gradient(#0007,#000a),url('assets/demo-alpine.jpg');background-position:center;background-size:cover}
.me-demo[data-profile=male] .demo-scene{background-image:linear-gradient(#0007,#000a),var(--demo-beach,url('assets/demo-alpine.jpg'))}
.demo-top-nav{display:flex;justify-content:center;gap:12px}
.demo-top-nav button{width:60px;height:60px;border-radius:50%;border:1px solid #ffffff55;background:#10101365;color:white;font-size:10px;line-height:1.35;padding:3px;box-shadow:inset 0 0 0 1px #ffffff0d}
.demo-body{position:relative;height:224px;margin:10px 0 0}
.demo-figure{position:absolute;inset:0;margin:auto;height:100%;width:100%;object-fit:contain;pointer-events:none}
.demo-concerns button{position:absolute;max-width:44%;font-size:10px;line-height:1.25;background:#090909db;border:1px solid #b49f8666;color:#f5f1ed;border-radius:7px;padding:8px 10px;min-height:34px;text-align:left;z-index:1}
.demo-concerns button:after{content:'';position:absolute;top:50%;width:30px;height:1px;background:#B49F86}
.demo-concerns button:before{content:'';position:absolute;top:calc(50% - 3px);width:6px;height:6px;background:#B49F86;border-radius:50%}
.demo-concerns button:nth-child(1){left:0;top:19%}.demo-concerns button:nth-child(1):after,.demo-concerns button:nth-child(3):after{left:100%}.demo-concerns button:nth-child(1):before,.demo-concerns button:nth-child(3):before{left:calc(100% + 28px)}
.demo-concerns button:nth-child(2){right:0;top:44%}.demo-concerns button:nth-child(2):after{right:100%}.demo-concerns button:nth-child(2):before{right:calc(100% + 28px)}
.demo-concerns button:nth-child(3){left:0;top:70%}
.demo-concerns button:hover,.demo-top-nav button:hover,.demo-bottom-nav button:hover span{border-color:#B49F86;background:#211e1ba8}
.demo-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:14px}
.demo-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;color:#fff;border:0;padding:0;font-size:8px;line-height:1.3;text-align:center}
.demo-bottom-nav button span{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff55;border-radius:50%;background:#19191a66}
.demo-bottom-nav svg{width:23px;height:23px}
.demo-bottom{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;gap:5px;color:#c8c2bc;font-size:8px}
.demo-bottom button{display:flex;align-items:center;gap:7px;background:none;border:0;color:#fff;font-size:10px;padding:4px}
.demo-bottom svg{width:14px;height:14px}
#demo-dialog{width:min(1000px,calc(100% - 36px));max-height:calc(100dvh - 36px);padding:25px;border:1px solid #B49F86;border-radius:16px;color:#090909;background:#fff;overflow:auto;box-sizing:border-box}
#demo-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.demo-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.demo-dialog-header .micro{color:#746650;font-size:9px;letter-spacing:.16em}
.demo-dialog-header h2{font:400 25px/1.2 var(--display);letter-spacing:-.035em;margin:8px 0 0}
#demo-close{background:#f7f5f2;border:1px solid #e2dbd5;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;flex-shrink:0}
.demo-dialog-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start}
.demo-detail{padding:14px 0;font-size:13px;line-height:1.65}
.demo-detail .micro{color:#746650;font-size:9px;letter-spacing:.14em;margin:0}
.demo-detail h3{font:400 27px/1.25 var(--display);letter-spacing:-.035em;margin:8px 0 15px}
.demo-detail h4{font-size:12px;letter-spacing:.01em;margin:17px 0 7px}
.demo-detail p{margin:8px 0 16px;color:#66615b;font-size:12px;line-height:1.7}
.demo-detail dl{margin:0}.demo-detail dl>div{padding:10px 0;border-bottom:1px solid #e2dbd5}.demo-detail dt{font-size:10px;color:#746650}.demo-detail dd{margin:2px 0 0;font-size:13px}
.demo-detail .demo-note{padding:12px;border:1px solid #e2dbd5;border-radius:8px;background:#f7f5f2;font-size:11px}
.demo-detail .demo-context-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.demo-context-tags span{padding:4px 9px;border:1px solid #e2dbd5;border-radius:14px;font-size:10px}
#demo-dialog .demo-bottom button{display:none}
#demo-dialog .demo-body{height:245px}
#demo-dialog .demo-concerns button{font-size:11px}
#demo-dialog .demo-top-nav button{font-size:11px;width:64px;height:64px}
#demo-dialog .demo-bottom-nav button{font-size:9px}
#demo-home-slot:empty{min-height:400px;border:1px dashed #665a4b;border-radius:14px;background:#ffffff04}
#demo-home-slot:empty:after{content:'Exploring your dashboard';display:block;text-align:center;padding-top:180px;color:#B49F86;font-size:13px}
@media(min-width:1101px){#connected .input-nodes>div{font-size:11px}#connected .connection-hub{width:112px;height:112px}}
@media(min-width:641px) and (max-width:1000px){#connected .connection-map{grid-template-columns:34% 4% 15% 4% 43%}#connected .connection-hub{width:85px;height:85px}#connected .connection-hub .signature{transform:scale(.8);margin-bottom:-10px}#connected .connection-hub>span:last-child{font-size:5px} .demo-top-nav{gap:6px}.demo-top-nav button{width:49px;height:49px;font-size:8px}.demo-scene{padding:12px 10px}.demo-concerns button{font-size:9px}.demo-bottom-nav button{font-size:7px}.demo-bottom-nav button span{width:33px;height:33px}.demo-toolbar{padding:10px}.demo-profile button{padding:5px 8px}#connected .input-nodes>div{font-size:10px}}
@media(max-width:640px){#connected .demo-output{width:100%;max-width:440px}#connected .demo-heading{text-align:center}#connected .connection-hub:after{height:38px}.demo-scene{padding:18px 13px}.demo-top-nav{gap:10px}.demo-top-nav button{width:58px;height:58px;font-size:10px}.demo-bottom-nav button{font-size:9px}.demo-concerns button{font-size:11px}.demo-dialog-layout{grid-template-columns:1fr;gap:15px}#demo-dialog{padding:16px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.demo-dialog-header h2{font-size:21px}.demo-detail{padding:8px 0}.demo-detail h3{font-size:25px}#demo-dialog .demo-body{height:220px}#demo-dialog .demo-top-nav button{width:54px;height:54px;font-size:9px}}
@media(prefers-reduced-motion:reduce){#demo-dialog *{scroll-behavior:auto}}
body.demo-modal-open{overflow:hidden}
@media(min-width:1001px){#connected .section-heading{max-width:52%;position:relative;z-index:2}#connected .connection-map{margin-top:-170px}#connected .demo-heading h3{font-size:22px}#connected .demo-body{height:195px}#connected .demo-scene{padding-top:13px;padding-bottom:12px}#connected .demo-top-nav button{width:53px;height:53px}#connected .demo-bottom-nav{margin-top:8px}#connected .demo-bottom-nav button span{width:35px;height:35px}}
@media(min-width:1001px){#connected .input-nodes{align-self:end;margin-bottom:70px}}
.demo-concerns button:after{width:var(--concern-line,30px)}
.demo-concerns button:nth-child(1):before,.demo-concerns button:nth-child(3):before{left:calc(100% + var(--concern-line,30px) - 3px)}
.demo-concerns button:nth-child(2):before{right:calc(100% + var(--concern-line,30px) - 3px)}

/* A compact iPhone silhouette; the enlarged demo stays upright. */
#demo-home-slot{width:min(300px,calc(100% - 32px));margin:22px auto 26px;transform:rotate(5deg);transform-origin:center;}
#connected .demo-heading{text-align:center;margin-left:auto;margin-right:auto}
.me-demo{position:relative;border:7px solid #151515;border-radius:39px;outline:1px solid #8e8982;box-shadow:0 0 0 2px #383532,0 18px 35px #0005;padding-bottom:12px}
.me-demo:before{content:'';position:absolute;width:76px;height:17px;border-radius:14px;background:#000;left:calc(50% - 38px);top:7px;z-index:3;box-shadow:inset -12px 0 0 -7px #252526}
.me-demo:after{content:'';position:absolute;bottom:5px;left:calc(50% - 40px);width:80px;height:3px;border-radius:4px;background:#f4f1ed}
.demo-toolbar{padding:32px 12px 10px;font-size:13px}
.demo-profile button{font-size:9px;padding:5px 9px}
.demo-scene{padding:12px 10px}
.demo-top-nav{gap:6px}.demo-top-nav button{width:50px;height:50px;font-size:8px}
#connected .demo-body{height:225px}
.demo-concerns button{font-size:9px;padding:7px 8px;min-height:30px}
.demo-concerns button:after,.demo-concerns button:before{display:none}
.demo-concerns button:nth-child(1){top:2%}
.demo-concerns button:nth-child(2){top:36%}
.demo-concerns button:nth-child(3){top:58%}
.me-demo[data-profile=male] .demo-concerns button:nth-child(2){top:22%}
.me-demo[data-profile=male] .demo-concerns button:nth-child(3){top:43%}
.demo-body-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.demo-body-links path{stroke:#B49F86;stroke-width:1;fill:none}.demo-body-links circle{fill:#B49F86}
.demo-bottom-nav{gap:4px}.demo-bottom-nav button{font-size:7px}.demo-bottom-nav button span{width:33px;height:33px}.demo-bottom-nav svg{width:21px;height:21px}
.demo-bottom{padding:10px 8px 5px;font-size:7px}.demo-bottom button{font-size:9px}
#demo-expanded-slot .me-demo{max-width:360px;margin:auto}
#demo-dialog .demo-top-nav button{width:55px;height:55px;font-size:9px}
#demo-dialog .demo-concerns button{font-size:10px}
#demo-dialog .demo-bottom-nav button{font-size:8px}
@media(min-width:1001px){#connected .demo-top-nav button{width:50px;height:50px}#connected .demo-bottom-nav button span{width:33px;height:33px}}
@media(max-width:640px){#demo-home-slot{margin-top:26px;margin-bottom:30px}#connected .demo-heading{margin-top:6px}#connected .demo-top-nav button{font-size:8px}#connected .demo-concerns button{font-size:9px}}

/* Keep the web outside the opaque logo badge at every badge size. */
#connected .connection-hub{position:relative;background:transparent;border-color:transparent}
#connected .connection-web{position:absolute;width:190px;height:190px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:0;max-width:none;pointer-events:none}
#connected .connection-badge-backdrop{position:absolute;inset:-1px;z-index:1;border:1px solid var(--shell);border-radius:50%;background:#fff;pointer-events:none}
#connected .connection-hub > .signature,#connected .connection-hub > span:last-child{position:relative;z-index:2}
#connected .me-demo button:disabled{opacity:1;cursor:default;pointer-events:none}
#connected #demo-home-slot{zoom:.72;margin-top:16px;margin-bottom:20px}
#connected .demo-heading h3{font-size:19px}
@media(min-width:1001px){
 #connected.section{padding:28px 0 22px}
 #connected .section-heading{max-width:49%;margin-bottom:18px}
 #connected .section-heading .eyebrow{margin-bottom:12px}
 #connected .section-heading h2{font-size:34px;line-height:1.12;margin-bottom:14px}
 #connected .section-heading p:last-child{font-size:12px;line-height:1.5}
 #connected .connection-map{margin-top:-132px;grid-template-columns:33% 8% 18% 7% 34%}
 #connected .input-nodes{align-self:start;margin:140px 0 0;gap:7px}
 #connected .input-nodes>div{min-height:36px;padding:7px 10px;font-size:10px;line-height:1.35;gap:12px}
 #connected .input-nodes>div svg{width:21px;height:21px;flex-shrink:0}
 #connected .connection-hub{width:90px;height:90px}
 #connected .connection-hub .signature{transform:scale(.7);margin-top:-16px;margin-bottom:-14px}
 #connected .connection-hub>span:last-child{font-size:5px}
 #connected .demo-heading{margin-bottom:8px}
 #connected .demo-heading .micro{font-size:8px}
 #connected .demo-heading h3{font-size:19px}
 
 #connected .connection-caption{margin-top:18px;padding-top:14px}
}
@media(max-width:640px){
 #connected .connection-web{width:170px;height:170px}
 #connected .connection-hub{margin-top:55px;margin-bottom:55px}
 #connected .connection-hub:before{height:55px;top:-56px}
 #connected .connection-hub:after{height:55px;bottom:-56px}
}

#connected #demo-home-slot{margin-top:36px;margin-bottom:30px}
#me-demo .demo-top-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;justify-items:center}
#me-demo .demo-top-nav button{width:100%;max-width:50px;height:auto;aspect-ratio:1}
#me-demo .demo-top-nav [data-demo-topic="protocol"]{font-size:7px;line-height:1.15;padding-inline:1px}
#connected .demo-practitioner{max-width:430px;margin:0 auto;text-align:center;color:#c8c2bc;font-size:11px;line-height:1.5}


.demo-practitioner p{margin:0}
.demo-practitioner-action{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px}
.demo-practitioner-action p{flex:1 1 155px}
.demo-practitioner-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;border:1px solid #B49F8688;border-radius:999px;color:var(--sand,#B49F86);font-size:8px;line-height:1.35;text-decoration:none}
.demo-practitioner-link:hover,.demo-practitioner-link:focus-visible{border-color:var(--sand,#B49F86);background:#B49F861a}
@media(max-width:640px){
 #connected .demo-practitioner{font-size:12px;padding-inline:12px}
}

.demo-practitioner-connector{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.demo-practitioner-connector path,.demo-practitioner-mobile-arrow path{fill:none;stroke:var(--sand,#B49F86);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}

.demo-practitioner-mobile-arrow{display:block;margin:0 auto 10px}
@media(min-width:1100px){
 .demo-practitioner-connector{display:block}
 .demo-practitioner-mobile-arrow{display:none}
 #connected .connection-map{grid-template-columns:30% 7% 16% 7% 40%}
 #connected .demo-output{display:grid;grid-template-columns:216px minmax(0,1fr);column-gap:24px;align-items:start}
 #connected .demo-heading{grid-area:1 / 1}
 #connected #demo-home-slot{grid-area:2 / 1;width:300px;margin:36px 0 24px}
 #connected .demo-practitioner{grid-area:2 / 2;margin:108px 0 0;text-align:left}
 .demo-practitioner-action{flex-direction:column;align-items:flex-start;gap:10px}
 .demo-practitioner-action p{flex:none}
 .demo-practitioner-link{text-align:center}
}

.demo-phone-entry{position:absolute;left:-7px;top:50%;pointer-events:none}
