/* The personal world: an unframed stage with a reserved reading column.
   Type follows the house rules — serif titles, mono annotations, sans for everything that changes. */
.orbit-app[data-orbit-view="self"][data-orbit-mode="time"] .orbit-header.orbit-feature { display:block; padding-top:14px; padding-bottom:14px; }
.orbit-app[data-orbit-view="self"][data-orbit-mode="time"] .orbit-feature :is(.orbit-date,.orbit-feature-badge,.orbit-feature-actions,.orbit-twin-preview,#orbit-subtitle) { display:none; }
.orbit-app[data-orbit-view="self"][data-orbit-mode="time"] .orbit-feature h1 { font-size:22px; margin:0; }
.orbit-app[data-orbit-view="self"] .tm-toolbar { margin-bottom:12px; }

.sg-workspace { margin-bottom:24px; }
.sg-stage {
  --sg-accent:#86deb8; --sg-ink:#eef2f4; --sg-muted:#a3aeb6; --sg-quiet:#7d8991; --sg-night:3,5,10;
  --sg-gutter:max(28px,calc((100% - 1200px)/2));
  position:relative; isolation:isolate; overflow:hidden;
  height:clamp(600px,calc(100vh - 250px),780px); width:calc(100vw - 18px); max-width:1800px;
  margin-left:50%; transform:translateX(-50%);
  background:rgb(var(--sg-night)); color:var(--sg-ink);
}
.sg-stage[data-focus="energy"] { --sg-accent:#96e2a4; }
.sg-stage[data-focus="sleep"] { --sg-accent:#f2cd86; }
.sg-stage[data-focus="mood"] { --sg-accent:#7fe3d0; }
.sg-stage[data-focus="stress"] { --sg-accent:#a9c7f4; }
.sg-stage[data-focus="focus"] { --sg-accent:#9ee9cf; }
.sg-scene { position:absolute; inset:0; touch-action:pan-y; opacity:0; transition:opacity 1.4s cubic-bezier(.16,1,.3,1); }
.sg-stage.is-ready .sg-scene { opacity:1; }
.sg-scene canvas { display:block; width:100%; height:100%; }
/* Darken only where words sit, and dissolve the lower edge into the page. */
.sg-shade { position:absolute; inset:0; pointer-events:none; background:
  linear-gradient(180deg,rgba(var(--sg-night),.55),transparent 17%),
  linear-gradient(90deg,rgba(var(--sg-night),.80),rgba(var(--sg-night),.42) 27%,transparent 50%),
  linear-gradient(0deg,rgba(var(--sg-night),.97),rgba(var(--sg-night),.78) 12%,rgba(var(--sg-night),.34) 24%,transparent 38%); }
.sg-frame { position:absolute; inset:14px calc(var(--sg-gutter) - 14px); pointer-events:none; opacity:.5; }
.sg-frame i { position:absolute; width:9px; height:9px; border:solid rgba(238,242,244,.42); border-width:1px 0 0 1px; }
.sg-frame i:nth-child(2) { right:0; transform:scaleX(-1); }
.sg-frame i:nth-child(3) { bottom:0; transform:scaleY(-1); }
.sg-frame i:nth-child(4) { right:0; bottom:0; transform:scale(-1); }

.sg-header { position:absolute; inset:28px var(--sg-gutter) auto; display:flex; justify-content:space-between; gap:20px; align-items:flex-start; pointer-events:none; padding:0; background:none; }
.sg-identity { display:grid; gap:9px; font-size:11.5px; color:var(--sg-muted); }
.orbit-app .sg-mark { display:flex; align-items:center; gap:9px; color:var(--sg-ink); font:500 10.5px/1 var(--font-mono); letter-spacing:.26em!important; }
.orbit-app .sg-mark b { font-weight:500; letter-spacing:.26em!important; }
.sg-mark .sky-i { width:17px; height:17px; color:var(--sg-accent); transition:color .6s; }
.sg-mark i { width:14px; height:1px; background:rgba(238,242,244,.35); }
.sg-tools { display:flex; gap:8px; pointer-events:auto; }
.orbit-app .sg-tools button { display:inline-flex; align-items:center; justify-content:center; height:38px; min-height:38px; gap:7px; color:#e8edef; background:rgba(8,12,18,.46); border:1px solid rgba(238,242,244,.2); border-radius:999px; cursor:pointer; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); transition:border-color .25s,background .25s,color .25s; }
.orbit-app .sg-tools .sg-icon { width:38px; padding:0; }
.orbit-app .sg-record { padding:0 16px 0 12px; font-size:12.5px; }
.sg-tools .sky-i,.sg-demo .sky-i { width:16px; height:16px; }
.orbit-app .sg-tools button:hover { color:#fff; background:rgba(8,12,18,.7); border-color:var(--sg-accent); }

.sg-caption { position:absolute; top:96px; bottom:104px; left:var(--sg-gutter); width:390px; display:flex; flex-direction:column; justify-content:center; pointer-events:none; }
.orbit-app .sg-kicker { display:flex; align-items:center; gap:10px; color:var(--sg-accent); font:500 10.5px/1.4 var(--font-mono); letter-spacing:.24em!important; margin-bottom:16px; transition:color .6s; }
.sg-kicker::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor,0 0 22px currentColor; flex:none; }
.orbit-app .sg-stage .sg-caption h2 { color:var(--sg-ink); font:500 34px/1.36 var(--font-serif); letter-spacing:.07em!important; margin:0; text-wrap:balance; text-shadow:0 2px 28px rgba(var(--sg-night),.9); }
.sg-surface { font-size:12.5px; color:var(--sg-muted); margin:10px 0 0; }
.sg-measure { display:flex; align-items:baseline; gap:12px; min-height:74px; margin-top:22px; }
.orbit-app .sg-measure strong { font:300 68px/1.05 var(--font-sans); font-variant-numeric:tabular-nums; letter-spacing:-.02em!important; color:#fff; }
.orbit-app .sg-measure strong.sg-value-text { font:500 26px/1.3 var(--font-sans); letter-spacing:.04em!important; color:var(--sg-muted); padding-top:26px; }
.orbit-app .sg-measure>span { color:var(--sg-muted); font:400 12px/1 var(--font-mono); letter-spacing:.08em!important; white-space:nowrap; }
.sg-gauge { width:236px; margin-top:12px; }
.sg-gauge-track { position:relative; display:block; height:1px; background:rgba(238,242,244,.2); }
.sg-gauge-track i { position:absolute; inset:0; transform-origin:0 50%; transform:scaleX(0); background:var(--sg-accent); box-shadow:0 0 12px var(--sg-accent); transition:transform .9s cubic-bezier(.16,1,.3,1),background .6s; }
.sg-gauge-track b { position:absolute; top:50%; left:0; width:7px; height:7px; margin:-3.5px 0 0 -3.5px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(var(--sg-night),.7),0 0 14px var(--sg-accent); transition:left .9s cubic-bezier(.16,1,.3,1); }
.orbit-app .sg-gauge-ends { display:flex; justify-content:space-between; margin-top:9px; font:400 9.5px/1 var(--font-mono); letter-spacing:.1em!important; color:var(--sg-quiet); }
.sg-gauge-ends em { font-style:normal; }
.sg-description { font-size:12.5px; line-height:1.85; color:#bcc6cc; max-width:300px; min-height:46px; margin:18px 0 0; }
.sg-evidence { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:16px; font-size:10.5px; color:var(--sg-quiet); }
.sg-pips { display:inline-flex; gap:4px; margin-left:4px; }
.sg-pips i { width:4px; height:4px; border-radius:50%; background:rgba(238,242,244,.2); }
.sg-pips i.on { background:var(--sg-accent); box-shadow:0 0 6px var(--sg-accent); }
.orbit-app .sg-demo { align-self:flex-start; display:inline-flex; align-items:center; gap:8px; min-height:32px; margin-top:16px; padding:4px 0; border:0; background:transparent; color:var(--sg-accent); font-size:12.5px; pointer-events:auto; cursor:pointer; transition:color .6s,gap .25s; }
.orbit-app .sg-demo:hover { gap:12px; }

.orbit-app .sg-coordinate { position:absolute; right:var(--sg-gutter); bottom:112px; display:grid; gap:8px; font:400 9.5px/1 var(--font-mono); letter-spacing:.22em!important; color:var(--sg-quiet); text-align:right; pointer-events:none; }
.sg-coordinate span:first-child { color:#d4e0e4; }

.sg-modes { position:absolute; left:var(--sg-gutter); right:var(--sg-gutter); bottom:22px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-top:1px solid rgba(238,242,244,.16); }
.sg-modes-ink { position:absolute; top:-1px; left:0; width:calc(100%/6); height:1px; background:var(--sg-accent); box-shadow:0 0 14px var(--sg-accent),0 0 2px var(--sg-accent); transform:translateX(calc(var(--sg-index,0)*100%)); transition:transform .7s cubic-bezier(.16,1,.3,1),background .6s; pointer-events:none; }
.orbit-app .sg-modes button { position:relative; display:flex; align-items:baseline; gap:10px; min-width:0; height:62px; min-height:62px; padding:0 14px; border:0; border-radius:0; background:transparent; color:var(--sg-quiet); cursor:pointer; font-size:13.5px; text-align:left; transition:color .3s,background .3s; }
.orbit-app .sg-modes button small { font:400 9.5px/1 var(--font-mono); letter-spacing:.14em!important; color:#5d6a73; transition:color .3s; }
.orbit-app .sg-modes button b { margin-left:auto; font:400 13px/1 var(--font-mono); font-variant-numeric:tabular-nums; color:#8b98a0; transition:color .3s; }
.orbit-app .sg-modes button:hover { color:var(--sg-ink); background:linear-gradient(180deg,rgba(238,242,244,.05),transparent); }
.orbit-app .sg-modes button[aria-selected="true"] { color:#fff; background:linear-gradient(180deg,color-mix(in srgb,var(--sg-accent) 13%,transparent),transparent 82%); }
.orbit-app .sg-modes button[aria-selected="true"] :is(small,b) { color:var(--sg-accent); }

.sg-loading,.sg-error { position:absolute; left:60%; top:44%; width:240px; margin-left:-120px; text-align:center; font-size:12px; color:#ced9df; }
.orbit-app .sg-loading { display:grid; justify-items:center; gap:18px; font:400 11px/1 var(--font-mono); letter-spacing:.2em!important; color:var(--sg-muted); }
.sg-loading-orbit { width:46px; height:46px; border-radius:50%; border:1px solid rgba(238,242,244,.14); border-top-color:var(--sg-accent); animation:sg-turn 1.5s linear infinite; }
.sg-error { padding:20px; background:#10181f; border:1px solid #3b4c57; border-radius:10px; }
.sg-error p { font-size:12px; line-height:1.7; }
.orbit-app .sg-error button { border:1px solid #7ca493; padding:8px 16px; border-radius:999px; color:#d3eee0; background:#172c24; cursor:pointer; }

.sg-foot { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:12px 0; color:#929ca4; font-size:10.5px; }
.sg-foot>span { display:flex; align-items:center; gap:9px; flex-shrink:0; padding:3px 0; }
.sg-foot i { display:block; width:3px; height:3px; background:#8fc1aa; border-radius:50%; }
.orbit-app .sg-foot .sg-legend { max-width:560px; text-align:right; font-size:inherit; }
.orbit-app .sg-legend summary { cursor:pointer; padding:3px 0; font:inherit; color:inherit; }
.sg-legend>div { text-align:left; line-height:1.85; padding:10px 0; }
.sg-legend p { margin:0 0 8px; }
.sg-workspace [hidden] { display:none!important; }
@keyframes sg-turn { to { transform:rotate(360deg); } }

@media (max-width:1180px) and (min-width:901px) {
  .orbit-app .sg-modes button { padding:0 10px; gap:7px; font-size:13px; }
  .sg-caption { width:340px; }
  .orbit-app .sg-stage .sg-caption h2 { font-size:30px; }
}
@media (max-width:900px) {
  /* On a phone the world sits above the words instead of beside them. */
  .sg-stage { --sg-gutter:20px; height:auto; width:100vw; padding-bottom:18px; }
  .sg-scene { height:470px; bottom:auto; }
  .sg-shade { height:520px; background:linear-gradient(180deg,rgba(var(--sg-night),.6),transparent 20%),linear-gradient(0deg,rgb(var(--sg-night)) 8%,rgba(var(--sg-night),.7) 22%,transparent 46%); }
  .sg-frame { display:none; }
  .sg-header { inset:18px var(--sg-gutter) auto; gap:8px; }
  .sg-identity { gap:8px; font-size:10.5px; max-width:170px; line-height:1.5; }
  .sg-tools { gap:6px; }
  .orbit-app .sg-tools button { height:36px; min-height:36px; }
  .orbit-app .sg-tools .sg-icon,.orbit-app .sg-record { width:36px; padding:0; }
  .sg-record span { display:none; }
  .sg-caption { position:relative; top:auto; bottom:auto; left:auto; width:auto; display:block; margin:0 var(--sg-gutter); padding-top:392px; }
  .orbit-app .sg-kicker { margin-bottom:10px; font-size:9.5px; }
  .orbit-app .sg-stage .sg-caption h2 { font-size:25px; }
  .sg-surface { margin-top:7px; font-size:11.5px; }
  .sg-measure { min-height:52px; margin-top:14px; gap:9px; }
  .orbit-app .sg-measure strong { font-size:48px; }
  .orbit-app .sg-measure strong.sg-value-text { font-size:21px; padding-top:16px; }
  .sg-gauge { width:200px; margin-top:10px; }
  .sg-description { max-width:none; min-height:42px; font-size:12px; margin-top:14px; }
  .sg-evidence { margin-top:12px; font-size:10px; }
  .orbit-app .sg-demo { margin-top:10px; font-size:12px; }
  .orbit-app .sg-coordinate { top:372px; bottom:auto; font-size:8.5px; }
  .sg-modes { position:relative; left:auto; right:auto; bottom:auto; margin:16px 12px 0; }
  .orbit-app .sg-modes button { flex-direction:column; align-items:center; justify-content:center; gap:8px; height:60px; min-height:60px; padding:0 2px; font-size:12px; text-align:center; }
  .orbit-app .sg-modes button small { display:none; }
  .orbit-app .sg-modes button b { margin:0; font-size:11px; }
  .sg-loading,.sg-error { left:50%; top:190px; }
  .sg-foot { gap:8px; font-size:9.5px; }
  .sg-foot>span { max-width:45%; flex-wrap:wrap; gap:5px; }
  .orbit-app .sg-foot .sg-legend { max-width:53%; }
}
@media (max-width:360px) {
  .orbit-app .sg-stage .sg-caption h2 { font-size:22px; letter-spacing:.04em!important; }
  .orbit-app .sg-modes button { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
  .sg-loading-orbit { animation:none; }
  .sg-scene,.sg-modes-ink,.sg-gauge-track i,.sg-gauge-track b,.orbit-app .sg-modes button,.orbit-app .sg-demo { transition:none; }
}
/* The six slots navigate living domains; health measurements are nested inside the planet. */
.orbit-app .sg-system-stage .sg-caption h2 { font-family:var(--font-sans); font-weight:400; font-size:29px; letter-spacing:0!important; line-height:1.55; }
.sg-system-stage .sg-caption { width:345px; top:22%; }
.sg-system-stage .sg-description { max-width:330px; }
.sg-system-stage .sg-measure { min-height:59px; margin-top:17px; }
.orbit-app .sg-system-stage .sg-measure strong { font-size:52px; }
.sg-system-stage .sg-surface { font-size:11px; }
.sg-system-stage .sg-evidence { margin-top:9px; }
.sg-system-stage .sg-modes button b { font:10px var(--font-sans); color:#97a9b6; }
.sg-system-stage .sg-modes button { align-items:center; }
.sg-enter { display:inline-flex; align-items:center; gap:10px; min-height:38px; margin-top:16px; text-decoration:none; font-size:12px; color:var(--sg-accent); pointer-events:auto; }
.sg-enter .sky-i { width:14px; height:14px; }
.sg-health-metrics { display:flex; flex-wrap:wrap; gap:5px; margin-top:15px; pointer-events:auto; }
.orbit-app .sg-health-metrics button { flex:1; min-width:48px; min-height:46px; display:grid; justify-items:center; gap:5px; padding:7px 4px; border:1px solid #ffffff1b; border-radius:4px; background:#08121abb; color:#9eafb8; font-size:10px; }
.sg-health-metrics button b { font:11px var(--font-mono); color:#d6e4e8; }
.orbit-app .sg-health-metrics button[aria-pressed=true] { border-color:var(--sg-accent); color:var(--sg-accent); }
.orbit-app .sg-health-metrics .sg-metric-return { flex-basis:100%; min-height:25px; padding:4px; border:0; text-align:left; justify-items:start; background:none; color:var(--sg-accent); }
.sg-system-stage[data-system=health] .sg-caption { top:18%; }
.sg-system-stage .sg-demo { margin-top:3px; font-size:10px; }
.sg-object-labels { position:absolute; inset:0; pointer-events:none; }
.sg-object-labels button { position:absolute; transform:translate(-50%,16px); display:flex; align-items:center; gap:8px; background:#050a12b0; border:1px solid #b4deeb22; color:#c9dce3; padding:6px 10px; border-radius:4px; pointer-events:auto; cursor:pointer; min-height:35px; font:11px var(--font-sans); white-space:nowrap; }
.sg-object-labels button i { width:3px; height:3px; border-radius:50%; background:#a4d7d7; }
.sg-object-labels button small { margin-left:7px; font-size:9px; color:#7e9aa7; }
.sg-object-labels button:hover { border-color:#afdedc; color:#fff; }
.sg-system-stage :is(button,a):focus-visible { outline:2px solid var(--sg-accent); outline-offset:3px; }
@media(max-width:900px) {
 .sg-system-stage .sg-caption { top:auto; width:auto; padding-top:440px; }
 .sg-system-stage[data-system=health] .sg-caption { top:auto; }
 .orbit-app .sg-system-stage .sg-caption h2 { font-size:23px; }
 .sg-system-stage .sg-description { max-width:none; }
 .sg-system-stage .sg-measure { min-height:45px; }
 .orbit-app .sg-system-stage .sg-measure strong { font-size:39px; }
 .sg-object-labels { height:470px; bottom:auto; }
 .sg-object-labels button { font-size:9px; min-height:30px; padding:5px 6px; gap:5px; transform:translate(-50%,12px); }
 .sg-object-labels button small { display:none; }
 .sg-system-stage .sg-modes button { height:64px; gap:7px; }
 .sg-system-stage .sg-coordinate { top:411px; }
 .sg-system-stage .sg-health-metrics { max-width:380px; }
}

@media(min-width:901px) {
 .sg-system-stage[data-system=health] { min-height:710px; }
 .sg-system-stage[data-system=health] .sg-caption { top:90px; }
}
@media(max-width:900px) {
 .sg-system-stage { display:flex; flex-direction:column; }
 .sg-system-stage .sg-modes { order:1; margin-top:455px; }
 .sg-system-stage .sg-caption { order:2; padding-top:30px; padding-bottom:12px; }
 .sg-system-stage .sg-mark { white-space:nowrap; font-size:9px; gap:6px; }
 .sg-system-stage .sg-mark b { letter-spacing:.12em!important; }
 .sg-system-stage .sg-coordinate { top:410px; }
}

.orbit-app .sg-system-stage .sg-demo { display:flex; }

.sg-object-labels button[data-sg-object=learning] { transform:translate(-50%,-100%); }

/* Preserve the original quiet hero; labels reveal on hover or keyboard focus. */
.sg-system-stage[data-system=overview] .sg-object-labels button { opacity:0; }
.sg-system-stage[data-system=overview] .sg-object-labels button:is(:hover,:focus-visible) { opacity:1; }
@media(prefers-reduced-motion:no-preference){.sg-object-labels button { transition:opacity .18s; }}
