/* Ensemble: a warm, illustrated interface with comfortably sized controls. */
:root{--purple:#7350a1;--ink:#352b43;--muted:#706579;--paper:#fffcf8;--line:#e6deed}body{font-size:16px}button,input,select,textarea{touch-action:manipulation}button{transition:background .16s,box-shadow .16s}button:focus-visible,summary:focus-visible{outline:3px solid #8b61bf;outline-offset:3px}header{height:96px;background:linear-gradient(#fffcf8,#fffcf8e6 68%,#fffcf800)}.brand{font-size:31px}.brand small{font-size:12px}.brand img{width:52px;height:52px}.sheet{width:395px;left:24px;top:112px;bottom:100px;border-radius:28px;background:#fffcf8fa}.sheet-toggle{padding:22px 24px 18px;background:linear-gradient(120deg,#f1e7fa,#fff5e8);border-bottom:1px solid #e8dfef}.sheet-summary strong{font-size:20px}.sheet-summary small{font-size:12px;line-height:1.4}.sheet-summary>span:first-child{min-width:0;overflow-wrap:anywhere}#sheetBody{padding:16px 22px 26px;scroll-padding-top:16px}h1{font-size:32px;line-height:1.16;margin:15px 0}h2{font-size:18px}h3{font-size:17px}p,dialog p{font-size:14px;line-height:1.6}.eyebrow{font-size:11px;letter-spacing:1.3px}.fineprint{font-size:12px;line-height:1.55}.notice{font-size:12px;line-height:1.55;padding:14px}.welcome-art{background:linear-gradient(135deg,#f2e9fc,#fff1dc);border-radius:20px;overflow:hidden;margin-bottom:19px}.welcome-art>svg{width:100%;display:block;height:112px}.welcome-art>span{display:block;text-align:center;padding:0 8px 12px;font-size:12px;color:#6f527e;font-weight:600}.primary,.secondary{min-height:48px;font-size:14px;border-radius:15px;padding:14px 12px}.primary{background:linear-gradient(120deg,#8159b0,#694695);box-shadow:0 5px 12px #7653a125}.secondary{background:#fff;border-color:#dfd3e9}.text-button{min-height:44px;font-size:13px;padding:10px 2px}.illustrated-button{display:flex;align-items:center;gap:12px;text-align:left;min-height:84px;padding:9px 12px}.illustrated-button svg{width:49px;height:49px;flex-shrink:0}.illustrated-button span{flex:1;font-size:16px;font-weight:700}.illustrated-button small{display:block;font-size:12px;font-weight:400;margin-top:6px;opacity:.9}.illustrated-button b{font-size:24px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:24px}.action-tile{border:1px solid #e4d5ed;border-radius:20px;background:#f1e9fa;min-height:133px;padding:10px;text-align:left;position:relative}.action-tile svg{width:52px;height:52px;display:block;margin-bottom:4px}.action-tile strong{display:block;font:800 15px Manrope,sans-serif}.action-tile small{display:block;font-size:12px;margin-top:5px;color:#6d6076}.tile-invite{background:#eaf5ee;border-color:#d6e7dd}.tile-meeting{background:#fff1dd;border-color:#f0ddbf}.tile-pin{background:#f3eafb}.action-tile:hover{box-shadow:0 5px 15px #55416a18;background:#e6daf2}.section-label{margin-bottom:6px}.group-toolbar{flex-wrap:wrap;margin-bottom:4px}.group-toolbar .text-button{font-size:13px}.badge{font-size:10px}.member{border-bottom:1px solid #eee6f1;padding:13px 0;gap:12px}.member-face{height:52px;width:52px;border-radius:18px}.member strong{font-size:16px}.member small{font-size:12px;line-height:1.4}.geo-consent{padding:16px;background:#f2ecfa;border-radius:19px;margin:22px 0 12px}.geo-consent h2{font-size:17px}.geo-consent p,.geo-consent .secondary{font-size:13px}.geo-consent #geoPermissionHelp{font-size:12px}.share-card{border-radius:18px;padding:14px;flex-wrap:wrap;gap:12px}.share-card>div{flex:1;min-width:130px}.share-card strong{font-size:14px}.share-card small{font-size:12px}.small-button{font-size:13px;min-height:44px;padding:10px 14px}.rendezvous{background:#fff4e2;border:1px solid #efddbc;border-radius:20px;padding:17px;margin:20px 0}.rendezvous p{font-size:13px}.icon-button{min-width:44px;min-height:44px}.extra-settings{border:1px solid #e5deeb;border-radius:18px;padding:14px;margin-top:20px;background:#fff}.extra-settings summary{cursor:pointer;min-height:44px;font-size:15px;font-weight:700}.extra-settings summary span{display:block;font-size:12px;color:var(--muted);font-weight:400;margin:6px 0 0 18px}.zone-card{padding:14px;margin:14px 0}.zone-card h2{font-size:15px}.zone-card p,.zone-card small,.zone-links .text-button,.zone-card .secondary{font-size:12px}.radius-options button{font-size:12px;min-height:44px}.alert-settings{font-size:12px;flex-wrap:wrap;gap:8px}.alert-settings input{width:19px;height:19px;accent-color:var(--purple)}.zone-links{flex-wrap:wrap}.top-pills{left:450px;top:112px;font-size:13px}.top-pills>button{min-height:44px}.top-pills #helpButton{font-size:20px}.view-tabs{left:450px;top:174px;padding:5px;border-radius:17px}.view-tabs button{font-size:13px;min-height:44px;padding:10px 16px}.map-tools button{width:44px;height:44px}.map-tools #dim{font-size:14px}#selection,#alertBanner{left:450px;top:247px}#selection{font-size:14px}#selection button{min-height:44px;font-size:13px}.main-nav{position:fixed;z-index:4;bottom:20px;left:24px;width:395px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#fffcf8f5;border:1px solid #fff;border-radius:23px;padding:6px;box-shadow:0 6px 25px #45344e25;backdrop-filter:blur(18px)}.main-nav button{border:0;border-radius:17px;background:transparent;min-width:0;min-height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#706579;font-size:12px;font-weight:700}.main-nav svg{width:34px;height:34px}.main-nav .active{background:#eee2f9;color:#61408a}.main-nav button:hover{background:#f1eaf5}.map-note{left:450px;font-size:10px}#toast{left:calc(50% + 120px);font-size:14px}dialog .close{width:44px;height:44px;border-radius:50%;background:#eee6f5;line-height:1}.field{font-size:14px}.field input,.field select,textarea{font-size:16px;min-height:48px}.field small{font-size:12px}.upload-label{font-size:14px;min-height:48px}.account-tabs button{font-size:13px;min-height:46px}.password-field button{font-size:12px}.group-choice{font-size:15px;min-height:54px}.event-item strong{font-size:14px}.event-item small{font-size:12px}.gps-feedback{font-size:13px}.bottom-links{flex-wrap:wrap;gap:8px}
@media(max-width:700px){header{height:80px;padding:12px 16px}.brand{font-size:27px}.brand img{width:44px;height:44px}.brand small{font-size:10px}.profile-button{width:50px;height:50px;font-size:31px}.top-pills{left:12px;top:88px;gap:5px;font-size:11px;max-width:calc(100% - 24px)}.top-pills>span{padding:9px 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-pills>button{min-height:42px;white-space:nowrap}.top-pills #helpButton{font-size:19px}.view-tabs{left:12px;top:142px;gap:2px;padding:4px}.view-tabs button{min-height:42px;font-size:12px;padding:8px 14px}.map-tools{right:10px;top:205px;display:grid;grid-template-columns:repeat(2,40px);padding:4px;border-radius:17px}.map-tools button{width:40px;height:42px}.map-tools hr{display:none}.map-tools #dim{font-size:13px}.sheet{left:10px;right:10px;top:auto;bottom:calc(87px + env(safe-area-inset-bottom));width:auto;max-height:56dvh;border-radius:24px}.sheet.collapsed{height:88px}.sheet:not(.collapsed){height:auto;max-height:56dvh}.sheet-toggle{padding:10px 17px 14px}.sheet-summary strong{font-size:18px}.sheet-summary small{font-size:12px}.handle{margin-bottom:10px}.sheet:not(.collapsed) #sheetBody{max-height:calc(56dvh - 88px)}#sheetBody{padding:15px 17px 22px}.main-nav{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;padding:5px;border-radius:22px}.main-nav button{min-height:60px;font-size:12px}.main-nav svg{width:32px;height:32px}.welcome-art>svg{height:100px}.welcome-art{margin-bottom:16px}h1{font-size:29px}.action-grid{gap:10px;margin-bottom:20px}.action-tile{min-height:119px;padding:10px 12px}.action-tile svg{width:43px;height:43px}.action-tile strong{font-size:15px}.action-tile small{font-size:12px}.member strong{font-size:15px}.member small{font-size:12px}.map-note{display:none}.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:calc(185px + env(safe-area-inset-bottom))}#toast{bottom:calc(185px + env(safe-area-inset-bottom));left:50%;font-size:14px;width:calc(100% - 32px)}#alertBanner,#selection{left:12px;right:100px;top:204px}#alertBanner p{font-size:12px}#loading{top:38%}dialog{padding:23px;max-height:88dvh;border-radius:25px}dialog h2{font-size:25px;padding-right:28px}.wardrobe{gap:10px}.character-stage{height:180px}}
@media(max-width:360px){.brand small{font-size:9px}.view-tabs button{padding:8px 11px}.top-pills{font-size:10px}.top-pills>span{max-width:170px}.sheet-summary strong{font-size:16px}.action-tile{padding:10px}.action-tile strong{font-size:14px}.illustrated-button span{font-size:14px}}
@media(max-height:600px) and (max-width:700px){.brand small{display:none}header{height:64px}.top-pills{top:68px}.view-tabs{top:118px}.map-tools{top:178px}.sheet:not(.collapsed){max-height:calc(100dvh - 112px)}.sheet:not(.collapsed) #sheetBody{max-height:calc(100dvh - 200px)}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* Larger personal portrait and clear, independent map background controls. */
.profile-button{width:72px;height:72px;font-size:47px;border-width:4px;flex-shrink:0;display:grid;place-items:center;box-shadow:0 4px 22px #58416e30}.profile-button img{display:block;border-radius:50%}
.surface-tabs{position:fixed;z-index:2;left:450px;top:237px;display:flex;gap:4px;padding:4px;border:1px solid white;background:#fffcf8f5;border-radius:15px;box-shadow:0 4px 20px #2221}.surface-tabs button{border:0;background:transparent;border-radius:11px;min-height:42px;padding:9px 16px;font-weight:700;font-size:13px}.surface-tabs .selected{color:white;background:var(--purple)}#selection,#alertBanner{top:300px}
@media(max-width:700px){header{height:84px;padding:8px 14px}.profile-button{width:66px;height:66px;font-size:42px}.surface-tabs{left:12px;top:196px}.surface-tabs button{min-height:40px;font-size:12px;padding:8px 12px}#selection,#alertBanner{top:252px}}
@media(max-height:600px) and (max-width:700px){.profile-button{width:54px;height:54px;font-size:34px}.surface-tabs{top:169px}#selection,#alertBanner{top:224px}}

.main-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.main-nav button span{white-space:nowrap}.group-card{padding:16px;margin:12px 0;background:#f5f0fa;border:1px solid #d9cce8;border-radius:18px}.group-card h3{margin:0;overflow-wrap:anywhere;font-size:18px}.group-card .fineprint{margin:8px 0 12px}.group-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.group-actions button{margin:0;min-height:48px}.group-actions .danger{border-color:#d8a5aa;color:#973c48}.group-actions button:disabled{opacity:1;background:#e1ecdf;color:#355d42;cursor:default}#changeGroup{min-height:48px;width:100%;border:1px solid #d9cce8;background:#f0e7f8;border-radius:14px;font-weight:700}#profileGroups{margin-bottom:16px}@media(max-width:380px){.main-nav{gap:0}.main-nav button{font-size:11px}.main-nav svg{width:29px;height:29px}}

/* Approved TouchYou signature. */
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-decoration:none}.brand img.brand-logo{width:260px;height:auto;max-height:60px;object-fit:contain;mix-blend-mode:multiply}.brand small.brand-tagline{font-size:11px;color:#70547e;font-weight:500}@media(max-width:700px){.brand img.brand-logo{width:205px;max-height:45px}.brand small.brand-tagline{font-size:9px}}@media(max-width:360px){.brand img.brand-logo{width:180px}}

/* Quiet GPS status, above the logo and outside the map controls. */
#modeLabel.gps-status-label{position:fixed;z-index:6;top:calc(3px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:3px 9px;border:1px solid #eee8f2;border-radius:12px;background:#fff;color:#706579;font-size:9px;font-weight:400;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 1px 4px #352b430a}
.info-links{display:grid;gap:12px}.info-links .secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;text-decoration:none;line-height:1.5}.info-links .secondary span{font-size:22px}

/* Perimeter onboarding: one illustrated step before the settings. */
#mapLimit{display:none!important}#zoneCard[hidden]{display:none!important}.zone-option{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #ded0ed;border-radius:20px;background:#f3ebfc;padding:18px;min-height:90px;color:#503571}.zone-option>span:first-child{font-size:32px}.zone-option>span:nth-child(2){flex:1}.zone-option strong,.zone-option small{display:block}.zone-option strong{font-size:16px}.zone-option small{font-size:12px;margin-top:6px}.zone-option b{font-size:24px}.zone-intro-dialog{width:min(430px,calc(100vw - 24px));padding:25px;text-align:center;background:#fffaff}.zone-intro-dialog h2{padding:0 16px;margin:14px 0;color:#422065;font-size:27px}.zone-illustration{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:20px;margin:14px 0}.zone-intro-dialog>p{font-size:16px;line-height:1.5;color:#503571;margin:15px 0 20px}.zone-intro-dialog>.primary{width:100%;display:flex;justify-content:center;gap:25px;background:#8547d1;font-size:17px;min-height:54px}.zone-intro-dialog>small{display:block;font-size:12px;margin-top:12px;color:#79658b}#zoneColor{width:100%;height:48px;cursor:pointer;padding:5px}.radius-options{flex-wrap:wrap}.radius-options button{flex:1 0 40%}
