.ss-system-bar,
.ss-system-bar * { box-sizing: border-box; }

.ss-system-bar {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 2147482000;
  color: rgba(255,255,255,.94);
  background: rgba(18,10,26,.4);
  border-bottom: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 18px rgba(17,1,26,.16);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
  isolation: isolate;
  backdrop-filter: blur(22px) saturate(1.8) brightness(.75);
  -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(.75);
}

.desktop > .ss-system-bar { position: fixed; }

.ss-system-bar .system-menus,
.ss-system-bar .system-meta,
.ss-system-bar .system-history,
.ss-system-bar .system-socials,
.ss-system-bar .system-name { display: flex; align-items: center; }
.ss-system-bar .system-menus { height: 100%; gap: 2px; min-width: 0; }
.ss-system-bar .system-menu { height: 100%; display: flex; align-items: center; position: relative; }
.ss-system-bar .system-meta { gap: 14px; margin-left: auto; font-size: 11px; white-space: nowrap; }
.ss-system-bar .system-history { height: 100%; gap: 2px; margin-left: 2px; padding-left: 5px; border-left: 1px solid rgba(255,255,255,.16); }

.ss-system-bar .system-menu-trigger,
.ss-system-bar .system-history button {
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: 700 12px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.ss-system-bar .system-history button { width: 31px; padding: 0; font-size: 18px; font-weight: 500; }
.ss-system-bar .system-menu-trigger:hover,
.ss-system-bar .system-menu-trigger:focus-visible,
.ss-system-bar .system-menu.open > .system-menu-trigger,
.ss-system-bar .system-history button:hover,
.ss-system-bar .system-history button:focus-visible { background: rgba(255,255,255,.16); outline: 0; }
.ss-system-bar .system-menu-primary .system-menu-trigger { padding-left: 0; }
.ss-system-bar .system-name { gap: 8px; }
.ss-system-bar .system-name img { width: 23px; height: 23px; object-fit: cover; border-radius: 50%; clip-path: circle(47% at 50% 50%); }

.ss-system-bar .system-menu-popover {
  width: max-content;
  min-width: 245px;
  padding: 6px;
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 10;
  color: #24132d;
  background: rgba(250,246,252,.95);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 11px;
  box-shadow: 0 18px 48px rgba(17,2,25,.38), inset 0 1px 0 rgba(255,255,255,.9);
  transform-origin: top left;
  animation: ss-system-menu-open .16s cubic-bezier(.16,1,.3,1) both;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}
.ss-system-bar .system-menu-popover[hidden] { display: none; }
.ss-system-bar .system-menu-popover a,
.ss-system-bar .system-menu-popover button {
  width: 100%;
  min-height: 31px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #281631;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: 600 12px/1.25 "DM Sans", system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ss-system-bar .system-menu-popover a:hover,
.ss-system-bar .system-menu-popover a:focus-visible,
.ss-system-bar .system-menu-popover button:hover,
.ss-system-bar .system-menu-popover button:focus-visible { color: #fff; background: #7d2fa8; outline: 0; }
.ss-system-bar .system-menu-heading { min-height: 48px !important; display: grid !important; gap: 4px !important; align-items: start !important; }
.ss-system-bar .system-menu-heading strong { font: 800 13px/1 "Manrope", "DM Sans", sans-serif; }
.ss-system-bar .system-menu-heading small { color: #817386; font-size: 10px; }
.ss-system-bar .system-menu-heading:hover small,
.ss-system-bar .system-menu-heading:focus-visible small { color: rgba(255,255,255,.78); }
.ss-system-bar .system-menu-divider { height: 1px; margin: 5px 6px; display: block; background: rgba(46,24,55,.13); }
.ss-system-bar .system-menu-popover .mobile-menu-item { display: none; }

.ss-system-bar .system-socials { gap: 7px; }
.ss-system-bar .system-social {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.ss-system-bar .system-social:hover,
.ss-system-bar .system-social:focus-visible { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); outline: 0; }
.ss-system-bar .system-theme-toggle .theme-icon{width:18px;display:inline-grid;place-items:center;font-size:15px;line-height:1}
.ss-system-bar .system-instagram i { width: 13px; height: 13px; display: block; position: relative; border: 1.7px solid currentColor; border-radius: 4px; }
.ss-system-bar .system-instagram i::before { content: ""; width: 4px; height: 4px; position: absolute; top: 3px; left: 3px; border: 1.4px solid currentColor; border-radius: 50%; }
.ss-system-bar .system-instagram i::after { content: ""; width: 2px; height: 2px; position: absolute; top: 1.5px; right: 1.5px; background: currentColor; border-radius: 50%; }
.ss-system-bar .system-facebook span { margin-top: 2px; font: 800 17px/1 Arial, sans-serif; }
.ss-system-bar .system-youtube i { width: 16px; height: 11px; display: block; position: relative; background: currentColor; border-radius: 3px; }
.ss-system-bar .system-youtube i::after { content: ""; position: absolute; left: 6px; top: 3px; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; border-left: 4px solid #65208d; }
.ss-system-bar .system-weather { min-height: 28px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border-right: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.8); }
.ss-system-bar .system-weather[hidden] { display: none; }
.ss-system-bar .system-weather i { font-style: normal; font-size: 13px; }
.ss-system-bar time { min-width: 68px; text-align: right; }

body > .ss-system-bar + .page-nav,
body > .ss-system-bar + .site-nav,
body > .ss-system-bar + .pk-nav,
body > .ss-system-bar + .gateway-nav,
body > .ss-system-bar + .intake-nav { top: 42px; }

@keyframes ss-system-menu-open { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .ss-system-bar { padding: 0 10px; gap: 6px; }
  .ss-system-bar .system-menu-secondary { display: none; }
  .ss-system-bar .system-menu-primary .system-menu-popover { min-width: min(280px, calc(100vw - 20px)); }
  .ss-system-bar .system-menu-popover .mobile-menu-item { display: flex; }
  .ss-system-bar .system-history { margin-left: 1px; padding-left: 3px; }
  .ss-system-bar .system-meta > :not(time) { display: none; }
  .ss-system-bar .system-meta { gap: 0; }
  .ss-system-bar time { min-width: 58px; font-size: 10px; }
}

/* Touch screens: same look, taller tap areas. Controls fill the 42px bar, the back and forward
   buttons widen to 44px, and the social icons get an invisible hit area around them. */
@media (pointer: coarse) {
  .ss-system-bar .system-menu-trigger,
  .ss-system-bar .system-history button { min-height: 42px; }
  .ss-system-bar .system-history button { width: 44px; }
  .ss-system-bar .system-menu-popover a,
  .ss-system-bar .system-menu-popover button { min-height: 44px; }
  .ss-system-bar .system-socials { gap: 12px; }
  .ss-system-bar .system-social { position: relative; }
  .ss-system-bar .system-social::after { content: ""; position: absolute; inset: -8px -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-system-bar .system-menu-popover { animation: none; }
}

html.ss-reduce-motion *,
html.ss-reduce-motion *::before,
html.ss-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

/* Shared launcher: native top layer, above the current page rather than a home-page redirect. */
.ss-launcher-dialog{box-sizing:border-box;width:min(1120px,92vw);max-width:none;max-height:calc(100dvh - 64px);margin:auto;padding:28px 34px 22px;overflow:auto;color:#f9f6fb;background:radial-gradient(circle at 76% 8%,rgba(172,105,235,.18),transparent 34%),linear-gradient(145deg,rgba(34,12,49,.96),rgba(14,6,21,.94));border:1px solid rgba(226,190,255,.28);border-radius:28px;box-shadow:0 30px 100px rgba(8,0,13,.6);font:400 14px/1.4 "DM Sans",system-ui,sans-serif;backdrop-filter:blur(38px);-webkit-backdrop-filter:blur(38px)}
.ss-launcher-dialog::backdrop{background:rgba(8,0,13,.35);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.ss-launcher-dialog *{box-sizing:border-box}
.ss-launcher-dialog .ss-launcher-heading{display:flex;position:static;align-items:flex-start;justify-content:space-between;gap:20px;margin:0;padding:0;background:none;border:0}
.ss-launcher-dialog h2{margin:0;color:inherit;font:700 25px/1.2 "Manrope",sans-serif;letter-spacing:-.035em}
.ss-launcher-dialog .ss-launcher-heading p{margin:7px 0 0;color:#bcb0c3;font:400 12px/1.5 "DM Sans",sans-serif}
.ss-launcher-dialog .ss-launcher-heading button{flex:none;width:44px;height:44px;margin:0;padding:0;cursor:pointer;color:#f9f6fb;background:rgba(255,255,255,.09);border:0;border-radius:50%;font:400 28px/1 system-ui}
.ss-launcher-dialog button:focus-visible,.ss-launcher-dialog a:focus-visible{outline:3px solid #e0b2ff;outline-offset:3px}
.ss-launcher-dialog .category-bar{display:flex;gap:8px;margin:23px 0 12px;padding:0 0 14px;overflow-x:auto;border-bottom:1px solid rgba(255,255,255,.1)}
.ss-launcher-dialog .category{flex:0 0 auto;min-height:44px;padding:7px 14px;cursor:pointer;color:#cfc3d6;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.12);border-radius:999px;font:600 12px/1.2 "DM Sans",sans-serif}
.ss-launcher-dialog .category.active{color:#fff;background:#8840c8;border-color:#a969e4}
.ss-launcher-dialog .app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px;margin:0;padding:16px 6px 8px;max-height:none;overflow:visible;transform:none;opacity:1}
.ss-launcher-dialog .app{display:flex;flex-direction:column;align-items:center;min-width:0;padding:4px;color:#f6f1f8;background:none;border:0;border-radius:16px;text-align:center;text-decoration:none}
.ss-launcher-dialog .app[hidden]{display:none}
.ss-launcher-dialog .app:hover .app-icon{transform:translateY(-3px)}
.ss-launcher-dialog .app strong{max-width:100%;margin:0;color:inherit;font:700 13px/1.4 "DM Sans",sans-serif}
.ss-launcher-dialog .app small{margin-top:3px;color:#bcb0c3;font:400 10px/1.4 "DM Sans",sans-serif}
.ss-launcher-dialog .app-icon{position:relative;display:grid;place-items:center;flex:none;width:88px;height:88px;margin:0 0 11px;padding:0;overflow:hidden;color:#fff;background:linear-gradient(145deg,#7d2ca7,#21072f);border:1px solid rgba(255,255,255,.4);border-radius:22px;box-shadow:0 10px 20px rgba(0,0,0,.2);font:800 25px/1 "Manrope",sans-serif;transition:transform .2s}
.ss-launcher-dialog .app-icon img{display:block;width:100%;height:100%;object-fit:cover}
.ss-launcher-dialog .pagekeep-icon,.ss-launcher-dialog .lifequest-icon{padding:4px;background:#111216}
.ss-launcher-dialog .pagekeep-icon img,.ss-launcher-dialog .lifequest-icon img{object-fit:contain}
.ss-launcher-dialog .fitkeep-icon{color:#151517;background:linear-gradient(145deg,#ffd84a,#f5a800)}
.ss-launcher-dialog .firstcook-icon{color:#ffd84a;background:linear-gradient(145deg,#252529,#101012)}
.ss-launcher-dialog .lifekeep-icon{color:#ffd84a}
.ss-launcher-dialog .growth-buildings{display:flex;align-items:flex-end;gap:5px;height:55px}
.ss-launcher-dialog .growth-buildings i{display:block;width:14px;height:28px;background:linear-gradient(#ffd76c,#f2a817);border:1px solid #fff1bb;border-radius:3px}
.ss-launcher-dialog .growth-buildings i:nth-child(2){height:40px}
.ss-launcher-dialog .growth-buildings i:nth-child(3){height:54px}
.ss-launcher-dialog .downloads-icon span{font-size:48px}
.ss-launcher-dialog .downloads-icon i{position:absolute;left:20%;right:20%;bottom:12px;height:14px;border:3px solid #f0b32d;border-top:0;border-radius:0 0 7px 7px}
.ss-launcher-dialog [data-launcher-retry]{min-height:44px;padding:8px 18px;color:#fff;background:#8840c8;border:1px solid #a969e4;border-radius:999px;cursor:pointer;font:inherit}
@media(max-width:620px){.ss-launcher-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:20px 16px;border-radius:22px}.ss-launcher-dialog .app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 10px}.ss-launcher-dialog .app-icon{width:68px;height:68px;border-radius:18px}.ss-launcher-dialog .app strong{font-size:12px}.ss-launcher-dialog .ss-launcher-heading p{max-width:240px}}
@media(max-width:360px){.ss-launcher-dialog .app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ss-launcher-dialog .app-icon{transition:none}.ss-launcher-dialog .app:hover .app-icon{transform:none}}

/* Launcher size and glass: one full size for every category (only the app grid scrolls inside it),
   and purple-tinted frosted glass. Without backdrop-filter support it falls back to solid purple. */
.ss-launcher-dialog[open]{display:flex;flex-direction:column}
.ss-launcher-dialog{height:min(740px,calc(100dvh - 64px));overflow:hidden;background:radial-gradient(circle at 80% 0,rgba(214,160,255,.26),transparent 38%),linear-gradient(150deg,rgba(108,50,156,.52),rgba(52,18,82,.6) 52%,rgba(24,7,38,.68));border-color:rgba(232,200,255,.36);box-shadow:0 30px 100px rgba(8,0,13,.55),inset 0 1px 0 rgba(255,255,255,.24),inset 0 0 0 1px rgba(255,255,255,.04);backdrop-filter:blur(30px) saturate(1.7);-webkit-backdrop-filter:blur(30px) saturate(1.7)}
.ss-launcher-dialog::backdrop{background:rgba(8,0,13,.42)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.ss-launcher-dialog{background:linear-gradient(150deg,#47206b,#1d0830)}}
.ss-launcher-dialog .ss-launcher-heading,.ss-launcher-dialog .category-bar{flex:none}
.ss-launcher-dialog .ss-launcher-content{display:flex;flex-direction:column;flex:1;min-height:0}
/* Swipes: vertical panning and pinch zoom stay with the browser; horizontal movement is handled by system-bar.js. */
.ss-launcher-dialog .app-grid{flex:1;min-height:0;align-content:start;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;transform:translate3d(var(--ss-swipe-x,0px),0,0);transition:transform .28s cubic-bezier(.22,1,.36,1)}
.ss-launcher-dialog .app-grid.ss-swiping{transition:none;user-select:none;-webkit-user-select:none}
.ss-launcher-dialog .app-grid.ss-enter-next{animation:ss-launcher-enter-next .32s cubic-bezier(.16,1,.3,1)}
.ss-launcher-dialog .app-grid.ss-enter-previous{animation:ss-launcher-enter-previous .32s cubic-bezier(.16,1,.3,1)}
@keyframes ss-launcher-enter-next{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}
@keyframes ss-launcher-enter-previous{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
@media(max-width:620px){.ss-launcher-dialog{height:calc(100dvh - 32px)}}
@media(prefers-reduced-motion:reduce){.ss-launcher-dialog .app-grid{transition:none;transform:none}.ss-launcher-dialog .app-grid.ss-enter-next,.ss-launcher-dialog .app-grid.ss-enter-previous{animation:none}}

/* The launcher stays available at the bottom of every page, including while scrolling. */
.ss-launcher-dock,.desktop .dock{position:fixed;z-index:2147481900;left:50%;bottom:max(16px,env(safe-area-inset-bottom));display:grid;place-items:center;min-width:0;min-height:0;margin:0;padding:6px;transform:translateX(-50%);background:transparent;border:0;border-radius:22px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.ss-launcher-button,.desktop .launcher-button{display:block;position:relative;width:52px;height:52px;min-height:44px;margin:0;padding:0;cursor:pointer;background:transparent;border:0;border-radius:50%;touch-action:manipulation}
.ss-launcher-button img,.desktop .launcher-button img{display:block;width:100%;height:100%;object-fit:cover;border:1px solid rgba(255,255,255,.55);border-radius:50%;box-shadow:0 5px 14px rgba(22,0,36,.3)}
.ss-launcher-button:focus-visible{outline:3px solid #efbd44;outline-offset:4px}
.ss-launcher-clearance{display:block;flex:none;width:1px;height:96px;pointer-events:none}
@media(max-width:480px){.ss-launcher-clearance{height:144px}.privacy-choices{bottom:calc(92px + env(safe-area-inset-bottom))}}
/* The glass is always purple, so launcher text stays light in both site themes (company-theme.css has
   light-theme colours for the homepage's own launcher that would otherwise leak in). */
html .ss-launcher-dialog .ss-launcher-heading p{color:#e2d8e8}
html .ss-launcher-dialog .ss-launcher-content .category{color:#ece3f1;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22)}
html .ss-launcher-dialog .ss-launcher-content .category.active{color:#fff;background:#8840c8;border-color:#b77cf0}
html .ss-launcher-dialog .ss-launcher-content .app strong{color:#fdfaff}
html .ss-launcher-dialog .ss-launcher-content .app small{color:#e2d8e8}
html .ss-launcher-dialog .ss-launcher-content .app:hover,html .ss-launcher-dialog .ss-launcher-content .app:focus-visible{background:rgba(255,255,255,.1)}
html[data-ss-theme="light"] .ss-launcher-dialog{background:radial-gradient(circle at 80% 0,rgba(214,160,255,.24),transparent 38%),linear-gradient(150deg,rgba(92,38,138,.7),rgba(52,18,82,.76) 52%,rgba(30,9,46,.8))}
html[data-ss-theme="light"] .ss-launcher-dialog::backdrop{background:rgba(20,6,30,.5)}
/* Short screens keep a usable app row below the 44px touch controls. */
@media(max-height:500px){
  .ss-launcher-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:10px 16px;border-radius:18px}
  .ss-launcher-dialog .ss-launcher-heading{align-items:center}
  .ss-launcher-dialog h2{font-size:20px}
  .ss-launcher-dialog .ss-launcher-heading p{display:none}
  .ss-launcher-dialog .category-bar{margin:4px 0 6px;padding:0}
  .ss-launcher-dialog .app-grid{gap:12px;padding:6px 4px}
  .ss-launcher-dialog .app-icon{width:52px;height:52px;margin-bottom:6px;border-radius:14px}
  .ss-launcher-dialog .app small{display:none}
  .ss-launcher-dialog .growth-buildings{transform:scale(.65);transform-origin:bottom;align-self:end}
  .ss-launcher-dialog .downloads-icon span{font-size:32px}
  .ss-launcher-dialog .downloads-icon i{bottom:6px;height:9px}
}
