/* The phones. Built from the apps' own layouts and tokens, shared by
   home, lifts and kcal. Fixed dark whatever the page theme, because the
   apps are dark only. */
  .tilt { perspective: 1200px; zoom: var(--fit, 1); }
  .stagecap { color: var(--tx3); font-size: 12.5px; text-align: center; max-width: 330px; }
  .try { color: var(--tx2); font-size: 15.5px; margin-top: 26px; max-width: 32em; line-height: 1.9; }
  .try button { font: inherit; color: var(--lime); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; }
  .try button:hover { text-decoration-thickness: 2px; }
  .try button:disabled { color: var(--tx3); text-decoration: line-through; cursor: default; }
  .phone {
    --a-moss: #0C120D; --a-deep: #080D09; --a-tx: #EEF2E6; --a-tx2: #9AA894; --a-tx3: #5C685A;
    --a-hair: #1E2A1F; --a-hair2: #27352A; --a-protein: #7CC8E0; --a-carbs: #EDBB55; --a-fat: #C79BE0;
    --a-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    position: relative; width: 330px; height: 690px; border-radius: 52px; padding: 12px; background: #050806;
    box-shadow: 0 0 0 1px #2a3a2c, 0 50px 100px -20px rgba(0,0,0,.65), 0 30px 60px -30px rgba(0,0,0,.5);
    transform-style: preserve-3d; transition: transform .25s ease-out;
    color: var(--a-tx); font-family: var(--sans); line-height: 1.35;
  }
  .phone .glass { position: absolute; inset: 12px; border-radius: 40px; overflow: hidden; background: var(--a-moss); }
  .phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; z-index: 6; }
  .phone .status { height: 46px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 12px; font-weight: 600; color: var(--a-tx); }
  .phone .status .bat { width: 22px; height: 11px; border: 1px solid var(--a-tx2); border-radius: 3px; position: relative; }
  .phone .status .bat::after { content: ""; position: absolute; inset: 1.5px; right: 6px; background: var(--a-tx); border-radius: 1px; }
  .phone .screen { position: absolute; inset: 46px 0 0 0; display: flex; flex-direction: column; transition: opacity .35s ease, transform .35s ease; }
  .phone .screen[aria-hidden=true] { opacity: 0; transform: translateX(14px); pointer-events: none; }
  .phone .scroll { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 0 18px 150px; }
  .phone .scroll::-webkit-scrollbar { display: none; }
  .phone .brand { height: 46px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; }
  .phone .micro { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--a-tx3); }
  .phone .sv { font-family: var(--a-serif); font-weight: 600; }
  .phone .si { font-family: var(--a-serif); font-style: italic; font-weight: 600; }
  .phone .hl { border-top: 1px solid var(--a-hair); }
  .phone .trk { height: 4px; border-radius: 2px; background: var(--a-hair); overflow: hidden; }
  .phone .trk i { display: block; height: 100%; border-radius: 2px; width: 0; transition: width .7s cubic-bezier(.33,1,.68,1); }
  .phone .glow i { box-shadow: 0 0 7px currentColor; }

  /* TrackLifts home, v1.3.40: the week sits top right, day as a serif
     title, lifts in two columns, the kcal card and the shelf side by side.
     Under 19px everything is the system font, like the app since 1.3.38 */
  .phone .lifts .brand b { color: #FF8A3D; font-weight: 700; }
  .phone .ltop { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
  .phone .lt-l { min-width: 0; }
  .phone .lifts .greet { font-size: 12.5px; color: var(--a-tx2); }
  .phone .bigdate { font-size: 26px; line-height: 1.2; white-space: nowrap; }
  .phone .daychip { font-size: 11px; font-weight: 600; color: #FF8A3D; padding-top: 1px; }
  .phone .lt-r { display: grid; justify-items: end; gap: 5px; }
  .phone .lifts .week { display: flex; gap: 5px; }
  .phone .lifts .week .c { display: grid; justify-items: center; gap: 3px; }
  .phone .lifts .week .t { width: 9px; height: 26px; border-radius: 5px; background: var(--a-hair); overflow: hidden; display: flex; align-items: flex-end; }
  .phone .lifts .week .t i { display: block; width: 100%; height: 0; background: #FF8A3D; border-radius: 5px; transition: height .7s cubic-bezier(.33,1,.68,1); }
  .phone .lifts .week .t.today { box-shadow: inset 0 0 0 1px #FF8A3D; }
  .phone .lifts .week .t.today i { box-shadow: 0 0 8px #FF8A3D; }
  .phone .lifts .week .c span { font-size: 8.5px; color: var(--a-tx3); }
  .phone .lifts .week .c span.now { color: var(--a-tx); }
  .phone .lifts .road { margin-top: 10px; display: grid; gap: 5px; }
  .phone .lifts .road .trk i { background: #FF8A3D; }
  .phone .checkin { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin-top: 10px; border-top: 1px solid var(--a-hair); }
  .phone .checkin .set { display: flex; gap: 10px; }
  .phone .checkin .micro { white-space: nowrap; font-size: 8.5px; }
  .phone .checkin button { font: 600 9.5px var(--sans); letter-spacing: 1.1px; color: var(--a-tx2); background: none; border: 0; cursor: pointer; padding: 0; }
  .phone .checkin button.on { color: var(--a-tx); }
  .phone .checkin button.off { color: var(--a-tx3); }
  .phone .lhead { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--a-hair); }
  .phone .dayname { font-size: 20px; line-height: 1.3; padding: 3px 0 6px; }
  .phone .lgrid { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .phone .lgrid .cell { width: 47.5%; padding: 7px 0; border-top: 1px solid var(--a-hair); }
  .phone .lgrid .n { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .phone .lgrid .d { font-size: 13px; font-weight: 600; margin-top: 1px; }
  .phone .foot { border-top: 1px solid var(--a-hair); padding: 10px 0 12px; display: grid; gap: 9px; }
  .phone .gorow { display: flex; align-items: center; gap: 10px; }
  .phone .bigbtn { flex: 1; height: 44px; border-radius: 22px; border: 0; background: #FF8A3D; color: var(--a-moss); font: 800 11px/44px var(--sans); letter-spacing: 1.5px; cursor: pointer; box-shadow: 0 6px 22px -6px rgba(255,138,61,.6); }
  .phone .bigbtn.done { background: transparent; color: var(--a-tx2); box-shadow: inset 0 0 0 1px var(--a-hair2); }
  .phone .linku { font-size: 9.5px; font-weight: 600; letter-spacing: 1.1px; color: var(--a-tx2); text-decoration: underline; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
  .phone .pair { display: flex; margin-top: 4px; border-top: 1px solid var(--a-hair); border-bottom: 1px solid var(--a-hair); }
  .phone .pl { flex: 1; min-width: 0; padding: 10px 10px 10px 0; border-right: 1px solid var(--a-hair); }
  .phone .pr { flex: 1; min-width: 0; padding: 10px 0 10px 10px; display: grid; gap: 5px; align-content: start; }
  .phone .khead { display: flex; justify-content: space-between; align-items: center; }
  .phone .khead .mark { display: flex; align-items: center; gap: 5px; }
  .phone .khead .dot { width: 5px; height: 5px; border-radius: 50%; background: #C6F432; }
  .phone .keat { padding-top: 8px; }
  .phone .khero { font-size: 19px; line-height: 1.3; }
  .phone .khero small, .phone .kstat small { font-family: var(--sans); font-weight: 400; font-size: 9.5px; color: var(--a-tx3); }
  .phone .pl .trk { height: 3px; margin-top: 4px; }
  .phone .kstat { padding-top: 7px; }
  .phone .kstat .h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
  .phone .kstat .v { font-size: 12px; font-weight: 600; white-space: nowrap; }
  .phone .pl .micro { font-size: 8px; }
  .phone .kfoot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
  .phone .klink { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #C6F432; }
  .phone .shead { display: flex; justify-content: space-between; align-items: flex-start; height: 18px; }
  .phone .sadd { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #FF8A3D; }
  .phone .tile { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 7px; border: 1px solid var(--a-hair2); border-radius: 6px; background: none; color: var(--a-tx); cursor: pointer; text-align: left; font-family: var(--sans); }
  .phone .tile .tx { flex: 1; min-width: 0; display: grid; }
  .phone .tile .tn { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .phone .tile .td { font-size: 9px; color: var(--a-tx3); }
  .phone .tile .tm { font-size: 10px; font-weight: 700; color: #FF8A3D; }
  .phone .tile.on { background: var(--a-deep); border-color: var(--a-hair); opacity: .7; }
  .phone .tile.on .tn { color: var(--a-tx2); text-decoration: line-through; }
  .phone .tile.on .tm { color: #8FD98A; }
  .phone .whead { display: flex; justify-content: space-between; padding: 10px 0; margin-top: 16px; border-top: 1px solid var(--a-hair); }
  .phone .wstats { display: flex; justify-content: space-between; }
  .phone .wstats .sv { font-size: 19px; display: block; }

  /* TrackKcal home */
  .phone .kcal .brand b { color: #C6F432; font-weight: 700; }
  .phone .kcal .greet { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--a-tx2); }
  .phone .kcal .greet b { font-size: 11px; font-weight: 600; color: #C6F432; }
  .phone .kcal .dayrow { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; }
  .phone .kcal .dayrow .si, .phone .kcal .dayrow .sv { font-size: 21px; }
  .phone .kcal .dayrow svg { color: var(--a-tx3); }
  .phone .kcal .dayrow .micro { margin-left: auto; font-size: 8.5px; }
  .phone .hero-k { display: flex; align-items: baseline; }
  .phone .hero-k .sv { font-size: 50px; line-height: 1.1; }
  .phone .hero-k small { font-size: 15px; color: var(--a-tx3); margin-left: 5px; }
  .phone .subline { font-size: 9px; letter-spacing: 1.1px; color: var(--a-tx2); margin-top: 2px; }
  .phone .macros { margin-top: 14px; display: grid; gap: 10px; }
  .phone .mrow { display: flex; align-items: center; }
  .phone .mrow .micro { width: 58px; font-size: 8.5px; letter-spacing: 1.4px; }
  .phone .mrow .trk { flex: 1; height: 3px; margin-right: 10px; }
  .phone .mrow .v { min-width: 64px; text-align: right; font-size: 11.5px; font-weight: 600; }
  .phone .mrow .v small { font-size: 10px; font-weight: 400; color: var(--a-tx3); }
  .phone .ledger { margin-top: 16px; }
  .phone .ledger .lh { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid var(--a-hair); }
  .phone .frow { display: flex; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--a-hair); animation: rowin .45s ease both; }
  .phone .frow .tm { width: 38px; font-size: 10px; color: var(--a-tx3); }
  .phone .frow .mid { flex: 1; min-width: 0; padding-right: 8px; }
  .phone .frow .fn { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .phone .frow .fs { font-size: 9.5px; color: var(--a-tx3); margin-top: 1px; }
  .phone .frow .kc { font-family: var(--a-serif); font-weight: 600; font-size: 15px; white-space: nowrap; }
  .phone .frow .kc small { font-family: var(--sans); font-weight: 400; font-size: 9px; color: var(--a-tx3); }
  .phone .frow.pend .fs, .phone .frow.pend .fn { font-style: italic; font-weight: 400; color: var(--a-tx2); font-size: 11px; }
  .phone .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C6F43244; border-top-color: #C6F432; animation: spin .8s linear infinite; margin-right: 8px; flex: none; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
  .phone .coach { padding-top: 14px; }
  .phone .coach .si { font-size: 14px; line-height: 1.5; display: block; }
  .phone .coach .ask { display: inline-block; margin-top: 7px; font-size: 9.5px; letter-spacing: 1.5px; font-weight: 600; color: #C6F432; }
  .phone .column { position: absolute; right: 3px; top: 50px; bottom: 140px; width: 3px; border-radius: 2px; background: #1E2A1F99; }
  .phone .column i { position: absolute; left: 0; right: 0; bottom: 0; height: 3%; border-radius: 2px; background: #C6F432; box-shadow: 0 0 7px #C6F432; transition: height .7s cubic-bezier(.33,1,.68,1); }
  .phone .inbar { position: absolute; left: 12px; right: 12px; bottom: 92px; }
  .phone .inpill { display: flex; align-items: center; gap: 10px; height: 42px; border-radius: 21px; background: var(--a-deep); padding: 0 6px 0 14px; box-shadow: inset 0 0 0 1px var(--a-hair2); }
  .phone .inpill input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--a-tx); font: 13px var(--sans); }
  .phone .inpill input::placeholder { color: var(--a-tx3); }
  .phone .inpill .send { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--a-tx2); cursor: pointer; flex: none; }
  .phone .inpill.has .send { background: #C6F432; color: var(--a-moss); }
  .phone .inpill .mic { display: block; } .inpill .arr { display: none; }
  .phone .inpill.has .mic { display: none; } .inpill.has .arr { display: block; }

  /* the glass tab bar, the same in both apps */
  .phone .tabbar { position: absolute; left: 12px; right: 12px; bottom: 26px; display: flex; align-items: center; gap: 10px; z-index: 4; }
  .phone .tabbar .pill { flex: 1; height: 54px; border-radius: 27px; display: flex; align-items: center; background: rgba(12,18,13,.88); border: 1px solid rgba(255,255,255,.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .phone .tabbar .tab { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 8px; color: var(--a-tx3); }
  .phone .tabbar .plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--a-moss); flex: none; }
  .phone .lifts .tabbar .tab.on { color: #FF8A3D; }
  .phone .lifts .tabbar .plus { background: #FF8A3D; box-shadow: 0 4px 14px rgba(255,138,61,.4); }
  .phone .kcal .tabbar .tab.on { color: #C6F432; }
  .phone .kcal .tabbar .plus { background: #C6F432; box-shadow: 0 4px 14px rgba(198,244,50,.4); }
  .phone .homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 4px; border-radius: 2px; background: var(--a-tx); opacity: .8; z-index: 5; }
  .phone .demohint { position: absolute; left: 12px; right: 12px; bottom: 140px; font-size: 10.5px; color: var(--a-tx2); background: var(--a-deep); border: 1px solid var(--a-hair2); border-radius: 12px; padding: 9px 11px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
  .phone .demohint.on { opacity: 1; transform: none; }

