/* GHIM, drawn in its own dark palette. Every piece is positioned by the morph (js/engine/morph.js); its
   insides follow numeric CSS variables so they can travel between platforms without jumping. */
.app-ghim { color: #fff; font-family: var(--sf); letter-spacing: -0.01em; }
.app-ghim .gi { display: block; }
.app-ghim .mp { visibility: hidden; }

.g-sb { display: flex; justify-content: space-between; align-items: center; padding: 16px 30px 0 40px; font-size: 16px; font-weight: 600; }
.g-sb span { display: flex; gap: 5px; align-items: center; }
.g-sb i { width: 4px; height: 10px; border-radius: 1px; background: #fff; }
.g-sb i:nth-child(1) { height: 6px; } .g-sb i:nth-child(2) { height: 8px; }
.g-sb em { width: 24px; height: 11px; margin-left: 4px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.9); background: linear-gradient(90deg, #fff 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.g-sbpad { display: flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 13px; font-weight: 600; color: #e7e7ea; }
.g-sbpad span { color: #a2a2a8; }
.g-sbpad em { margin-left: auto; font-style: normal; color: #a2a2a8; }
.g-clock { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-wbtn { display: grid; place-items: center; color: #c8c8cc; }
.g-wbtn .gi { width: 16px; height: 16px; }

/* Mac */
.g-desk { background: radial-gradient(ellipse at 20% 20%, #3a6b4a, transparent 55%), radial-gradient(ellipse at 85% 30%, #4a3a7a, transparent 55%), radial-gradient(ellipse at 50% 100%, #2b5e48, transparent 60%), linear-gradient(160deg, #1e3a2c, #141a2a); }
.g-menu { display: flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, 0.28); }
.g-menu b { font-weight: 700; }
.g-menu em { margin-left: auto; font-style: normal; white-space: pre; }
.g-win { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.g-lights { display: flex; gap: 8px; }
.g-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.g-lights i:nth-child(2) { background: #febc2e; } .g-lights i:nth-child(3) { background: #28c840; }
.g-sh { font-size: 11px; font-weight: 600; color: #8e8e93; }
.g-tbstart { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.g-tbstart .gi { width: 12px; height: 12px; }

/* tab items: icon and label placed by --ix/--iy/--is/--io and --lx/--ly/--lc/--lo/--fs */
.g-tab { color: #a2a2a8; }
.g-tab .ti { position: absolute; left: calc(var(--ix, 0) * 1px); top: calc(var(--iy, 0) * 1px); width: calc(var(--is, 24) * 1px); height: calc(var(--is, 24) * 1px); opacity: var(--io, 1); }
.g-tab .tl { position: absolute; left: calc(var(--lx, 0) * 1px); top: calc(var(--ly, 0) * 1px); transform: translateX(calc(var(--lc, 0) * -50%)); font-size: calc(var(--fs, 12) * 1px); font-weight: 600; white-space: nowrap; opacity: var(--lo, 1); }

/* the week */
.g-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #e7e7ea; }
.g-day .dn { font-size: calc(var(--ns, 11) * 1px); font-weight: 500; opacity: calc(var(--no, 1) * 0.66); line-height: 1.1; }
.g-day .dd { font-size: calc(var(--ds, 17) * 1px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-day .dt { display: flex; gap: 2px; height: 6px; align-items: center; opacity: var(--to, 1); }
.g-day .dt i { width: 5px; height: 5px; border-radius: 50%; }
.g-day .dt .gi { width: 10px; height: 10px; color: #1cba54; stroke-width: 3; }

/* the body map: GHIM's figure plate and its six tinted regions */
.g-map img, .g-map i { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-map img { object-fit: contain; }
.g-map i { opacity: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.g-bell { color: #1cba54; }
.g-bell .gi { width: 20px; height: 20px; }

.g-greet { font-size: 16px; font-weight: 600; white-space: nowrap; }
.g-cap { font-size: 12.5px; font-weight: 600; color: #1cba54; white-space: nowrap; }
.g-browse { display: grid; place-items: center; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.g-start { display: grid; place-items: center; box-shadow: 0 0 0 calc(var(--ring, 0) * 11px) rgba(140, 184, 148, 0.3); }
.g-start > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 650; white-space: nowrap; }
.g-start .gi { width: 13px; height: 13px; }
.g-start .sa { opacity: var(--a, 1); }
.g-start .sg { opacity: var(--g, 0); font-size: 24px; font-weight: 800; letter-spacing: 0.04em; }
.g-start .sl { opacity: var(--l, 0); font-size: 20px; }
.g-start .sl .gi { width: 20px; height: 20px; stroke-width: 2.6; }
.g-start.logged { background: #1cba54 !important; color: #fff !important; }

.g-kick { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8cb894; white-space: nowrap; }
.g-date { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.g-ready { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #1cba54; background: rgba(28, 186, 84, 0.16); }
.g-title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.g-meta { font-size: 13px; color: #a2a2a8; white-space: nowrap; }
.g-desc { font-size: 14px; line-height: 1.45; color: #a2a2a8; }
.g-oclk small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8e8e93; }
.g-oclk b { font-family: ui-rounded, var(--sf); font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-streak { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #ffb067; white-space: nowrap; }
.g-streak .gi { width: 16px; height: 16px; }
.g-siri { display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 13px; color: #c7c7cc; }
.g-siri .gi { width: 22px; height: 22px; color: #b87af0; flex: none; }
.g-siri b { color: #fff; font-weight: 600; }

/* stat tiles, chips and the Watch's side stats, one piece each */
.g-stat .si { position: absolute; left: calc(var(--ix, 0) * 1px); top: calc(var(--iy, 0) * 1px); width: calc(var(--isz, 16) * 1px); height: calc(var(--isz, 16) * 1px); opacity: var(--io, 1); color: #1cba54; }
.g-stat .sl { position: absolute; left: calc(var(--lx, 0) * 1px); top: calc(var(--ly, 0) * 1px); font-size: 12px; font-weight: 500; color: #a2a2a8; white-space: nowrap; opacity: var(--lo, 1); }
.g-stat .sv { position: absolute; left: calc(var(--vx, 0) * 1px); top: calc(var(--vy, 0) * 1px); font-size: calc(var(--vs, 18) * 1px); font-weight: 700; white-space: nowrap; opacity: var(--vo, 1); }
.g-stat .svw { position: absolute; left: 0; right: 0; top: calc(var(--wvy, 16) * 1px); text-align: center; font-family: ui-rounded, var(--sf); font-size: 14px; font-weight: 700; opacity: var(--wo, 0); white-space: nowrap; }
.g-stat .slw { position: absolute; left: 0; right: 0; top: calc(var(--wly, 33) * 1px); text-align: center; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; color: #8e8e93; opacity: var(--wo, 0); }
.g-wstat .si { color: #8e8e93; }

/* the program: numbered rows (iPad), clips (Mac), focusable rows (TV), the lift itself (Vision Pro) */
.g-group { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8e8e93; white-space: nowrap; }
.g-ex .en { position: absolute; left: calc(var(--nx, 0) * 1px); top: calc(var(--ny, 0) * 1px); font-size: 13px; font-weight: 600; color: #8e8e93; opacity: var(--no, 1); }
.g-ex .ei { position: absolute; left: calc(var(--ix, 0) * 1px); top: calc(var(--iy, 0) * 1px); width: calc(var(--is, 40) * 1px); height: calc(var(--is, 40) * 1px); opacity: var(--io, 1); border-radius: 10px; background: #fff; object-fit: contain; }
.g-ex .et {
  position: absolute; left: calc(var(--tx, 0) * 1px); top: calc(var(--ty, 0) * 1px); width: min(calc(100% - var(--tx, 0) * 1px - 12px), calc(var(--tw, 9999) * 1px));
  font-size: calc(var(--ts, 15) * 1px); font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-ex .em { position: absolute; left: calc(var(--mx, 0) * 1px); top: calc(var(--my, 0) * 1px); font-size: 12px; color: #8e8e93; white-space: nowrap; opacity: var(--mo, 0); }
.g-ex .es { position: absolute; left: calc(var(--sx, 0) * 1px); top: calc(var(--sy, 0) * 1px); font-size: 13px; font-weight: 600; color: #a2a2a8; white-space: nowrap; opacity: var(--so, 0); }
.g-ex.tvfocus { background: #f2f2f4 !important; color: #0c0c0e !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.g-ex.tvfocus .em, .g-ex.tvfocus .es { color: #4a4a50; }

/* Vision Pro: the log plate and the move */
.g-setl { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.g-timer { font-family: ui-rounded, var(--sf); font-size: 78px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.g-step { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; padding: 0 16px 0 20px; background: rgba(255, 255, 255, 0.1); }
.g-step small { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.g-step b { font-size: 21px; font-weight: 700; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.g-step span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); }
.g-step .gi { width: 16px; height: 16px; }
.g-fig { overflow: hidden; background: linear-gradient(180deg, #f2f2f5, #e4e4e9); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.g-fig img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.g-fig .k1 { opacity: 0; }
.g-orn { display: flex; align-items: center; justify-content: center; gap: 30px; background: rgba(72, 74, 80, 0.62); font-size: 16px; font-weight: 600; }
.g-orn span { display: flex; align-items: center; gap: 8px; }
.g-orn .gi { width: 15px; height: 15px; }

/* Apple Watch, mid-workout: GHIM's watchOS session, pushed in over the figure page */
.gw-scrim { position: absolute; left: 0; top: 0; width: 208px; height: 260px; z-index: 58; background: #000; opacity: 0; pointer-events: none; }
.gw { position: absolute; left: 0; top: 0; width: 208px; height: 260px; z-index: 59; overflow: hidden; visibility: hidden; background: #000; pointer-events: none; }
.gw-air { position: absolute; inset: 0; background: radial-gradient(circle at 50% 8%, rgba(17, 96, 48, 0.85), transparent 62%), radial-gradient(circle at 50% 50%, rgba(51, 217, 179, 0.16), transparent 52%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7)); }
.gw-air-rest { opacity: 0; background: radial-gradient(circle at 50% 8%, rgba(12, 86, 74, 0.85), transparent 62%), radial-gradient(circle at 50% 50%, rgba(89, 230, 199, 0.14), transparent 52%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7)); }
.gw-now { position: absolute; right: 16px; top: 8px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gw-rings { position: absolute; left: 0; top: 26px; width: 208px; height: 208px; overflow: visible; }
.gw-track { fill: none; stroke: rgba(28, 186, 84, 0.2); stroke-width: 16; }
.gw-prog { fill: none; stroke: url(#gw-grad); stroke-width: 16; stroke-linecap: round; }
/* the ring's bloom, without a GPU filter: a wider, faint stroke under it */
.gw-halo { fill: none; stroke: rgba(28, 186, 84, 0.2); stroke-width: 27; stroke-linecap: round; }
.gw-rest-ring { fill: none; stroke: rgba(89, 230, 199, 0.4); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.gw-set { position: absolute; left: 30px; right: 30px; top: 26px; height: 208px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; }
.gw-set b { font-size: 12.5px; font-weight: 800; line-height: 1.15; }
.gw-set span { font-size: 12.5px; font-weight: 600; }
.gw-set small { font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }
.gw-set strong { margin-top: 3px; font-size: 27px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gw-rest { position: absolute; left: 0; top: 26px; width: 208px; height: 208px; opacity: 0; }
.gw-bloom { position: absolute; left: 18px; top: 18px; width: 172px; height: 172px; }
.gw-bloom i { position: absolute; border-radius: 50%; }
.gw-glow { inset: -10px; background: radial-gradient(circle, rgb(89, 230, 199) 0%, rgba(89, 230, 199, 0.75) 42%, rgba(89, 230, 199, 0) 70%); opacity: 0.12; }
.gw-dot { left: 62px; top: 62px; width: 48px; height: 48px; background: rgb(89, 230, 199); opacity: 0.28; }
.gw-core { left: 56.75px; top: 56.75px; width: 58.5px; height: 58.5px; background: rgba(0, 0, 0, 0.42); }
.gw-cue { position: absolute; left: 0; right: 0; top: 70px; height: 30px; font: 700 19px/30px ui-rounded, "SF Pro Rounded", var(--sf); text-align: center; color: rgba(255, 255, 255, 0.96); text-shadow: 0 0 6px rgba(0, 0, 0, 0.55); }
.gw-cue span { position: absolute; inset: 0; }
.gw-cue span + span { opacity: 0; }
.gw-next { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.gw-next small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.gw-next span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
