/*
 * SPDX-FileCopyrightText: 2026 ybblab
 * SPDX-License-Identifier: Apache-2.0
 */

/* The app's screens rebuilt in HTML on a 360 × 792 dp canvas, scaled to the handset. Every value
   comes from the app source: colours from theme/Color.kt and Theme.kt, the type sizes (20 / 18 / 14 / 12 / 11) from
   theme/Typography.kt , radii from theme/Shape.kt, and each component's padding
   from the composable that draws it (Components.kt, HomeScreen.kt, LogRows.kt, Tabs.kt,
   AppDetailScreen.kt, SetupScreen.kt). Change a value here only when the app changes. */
.jm-native{
  --c-canvas:#f0f0f3;--c-card:#fbfbfc;--c-float:#ffffff;--c-thumb:#ffffff;
  --c-ink:#1d1d1f;--c-ink-2:#6e6e73;--c-ink-3:rgba(110,110,115,.6);
  --c-fill:rgba(29,29,31,.06);--c-track:rgba(29,29,31,.075);--c-line:#e3e3e8;
  --c-warn:#e5900f;--c-ok:#2fa36b;--c-error:#e5484d;--c-node:rgba(29,29,31,.28);
  --c-bar:rgba(29,29,31,.22);--c-bar-rest:rgba(29,29,31,.16);--c-grid:rgba(29,29,31,.08);
  --w-medium:500;--w-semi:600;
  --c-glass:rgba(245,245,248,.62);--c-glass-pill:rgba(0,0,0,.055);--c-glass-edge:rgba(0,0,0,.08);
  width:360px;height:792px;position:absolute;top:0;left:0;
  transform:scale(var(--jm-scale,.75));transform-origin:0 0;
  overflow:hidden;background:var(--c-canvas);color:var(--c-ink);
  font:400 14px/20px Roboto,"Noto Sans SC","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
  letter-spacing:0;text-align:left;font-synthesis:none;
  transition:background-color 300ms ease,color 300ms ease;
}
:root[data-appearance=dark] .jm-native{
  --c-canvas:#000000;--c-card:#1c1c1e;--c-float:#1c1c1e;--c-thumb:#3a3a3c;
  --c-ink:#f5f5f7;--c-ink-2:#98989f;--c-ink-3:rgba(152,152,159,.6);
  --c-fill:rgba(245,245,247,.06);--c-track:rgba(245,245,247,.075);--c-line:#38383a;
  --c-node:rgba(245,245,247,.28);--c-bar:rgba(245,245,247,.22);--c-bar-rest:rgba(245,245,247,.16);--c-grid:rgba(245,245,247,.08);
  --w-medium:480;--w-semi:580;
  --c-glass:rgba(28,28,31,.6);--c-glass-pill:rgba(255,255,255,.14);--c-glass-edge:rgba(0,0,0,.55);
}
.jm-native *{box-sizing:border-box}
:where(.jm-native) svg{width:18px;height:18px;flex:none;stroke-width:1.5}
:where(.jm-native) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:where(.jm-native) :is(ol,ul){margin:0;padding:0;list-style:none}

/* Type scale: large 18/24, medium 14/20, small 12/16, caption 11/14. */
.jm-t-large{font-size:18px;line-height:24px;font-weight:var(--w-semi)}
.jm-t-title{font-size:14px;line-height:20px;font-weight:var(--w-semi)}
.jm-t-small{font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}
.jm-t-caption{font-size:11px;line-height:14px;font-weight:var(--w-medium);font-variant-numeric:tabular-nums}
.jm-ink-2{color:var(--c-ink-2)}
.jm-ink-3{color:var(--c-ink-3)}
.jm-warn{color:var(--c-warn)}

/* System bars: Android's status bar, and the gesture handle under everything. */
.jm-status{position:absolute;z-index:6;top:0;left:0;right:0;height:32px;display:flex;align-items:center;justify-content:space-between;padding:2px 24px 0;font-size:13px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;background:var(--c-canvas);transition:background-color 300ms ease}
.jm-status-icons{display:flex;align-items:center;gap:5px}
.jm-status-icons svg{width:14px;height:14px;stroke-width:2}
.jm-battery{position:relative;width:20px;height:10px;border-radius:2.5px;box-shadow:inset 0 0 0 1.2px currentColor}
.jm-battery i{position:absolute;left:2px;top:2px;bottom:2px;width:12px;border-radius:1px;background:currentColor}
.jm-handle{position:absolute;z-index:6;left:50%;bottom:8px;width:108px;height:4px;margin-left:-54px;border-radius:2px;background:var(--c-ink);opacity:.85}

/* A page: under the status bar, scrolling under its own top bar; pages slide in and out as the app's do. */
.jm-stage{position:absolute;inset:32px 0 0;overflow:hidden}
.jm-page{position:absolute;inset:0;background:var(--c-canvas)}
.jm-page.is-push{animation:jm-push 320ms cubic-bezier(.2,0,0,1) both}
.jm-page.is-pop{animation:jm-pop 280ms cubic-bezier(.2,0,0,1) both}
@keyframes jm-push{from{transform:translateX(18%);opacity:.4}to{transform:none;opacity:1}}
@keyframes jm-pop{from{transform:translateX(-12%);opacity:.5}to{transform:none;opacity:1}}
.jm-scroll{position:absolute;inset:0;overflow:hidden auto;overscroll-behavior:contain;scrollbar-width:none}
.jm-scroll::-webkit-scrollbar{display:none}
.jm-list{padding:60px 16px 104px}
.jm-list--tall{padding-top:226px}
.jm-scroll--sub{top:64px}
.jm-scroll--sub .jm-list{padding:4px 16px 32px}
.jm-native [role=button]{cursor:pointer}

/* HidingTopBar: 52 dp, the tab's name at 20 / 26 semibold (headlineLarge), 20 dp in; 8 dp to the first row. */
.jm-topbar{position:absolute;z-index:4;top:0;left:0;right:0;min-height:52px;display:flex;flex-direction:column;justify-content:center;padding:0 20px;background:var(--c-canvas);font-size:20px;line-height:26px;font-weight:var(--w-semi);box-shadow:0 .5px 0 transparent;transition:transform 340ms cubic-bezier(.2,0,0,1),box-shadow 200ms ease,background-color 300ms ease}
.jm-topbar.is-scrolled{box-shadow:0 .5px 0 var(--c-line)}
.jm-topbar.is-away{transform:translateY(-100%)}
.jm-topbar--tall{padding:0}
.jm-topbar-title{height:52px;display:flex;align-items:center;padding:0 20px}
.jm-topbar-extra{padding:8px 16px 10px;font-size:14px;line-height:20px;font-weight:400}
/* SubScreen: a 64 dp bar with the back arrow and the page's title at 18 semibold. */
.jm-subbar{position:absolute;z-index:4;top:0;left:0;right:0;height:64px;display:flex;align-items:center;padding:0 4px;background:var(--c-canvas)}
.jm-subbar span{flex:1;min-width:0;margin-left:4px;font-size:18px;line-height:24px;font-weight:var(--w-semi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* MonitorCapsule: title and clock at 14 (titleMedium). */
.jm-capsule{padding:8px 10px 14px 16px;border-radius:18px;background:var(--c-card)}
.jm-capsule-row{display:flex;align-items:center;min-height:36px}
.jm-dot{position:relative;width:18px;height:18px;flex:none;display:grid;place-items:center}
.jm-dot:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--tone,var(--c-ok))}
.jm-dot.is-live:after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--tone,var(--c-ok));opacity:.45;animation:jm-halo 1800ms cubic-bezier(.4,0,.2,1) infinite}
@keyframes jm-halo{from{transform:scale(.4);opacity:.45}to{transform:scale(1);opacity:0}}
.jm-capsule-title{margin-left:8px;font-weight:var(--w-medium);color:var(--c-ink-2)}
.jm-capsule-clock{margin-left:8px;font-weight:var(--w-semi);font-variant-numeric:tabular-nums}
.jm-stop{margin-left:auto;width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--c-fill)}
.jm-stop:before{content:"";width:10px;height:10px;border-radius:2.5px;background:var(--c-ink)}
.jm-capsule-detail{padding-right:6px;margin-top:8px}
.jm-activity{display:flex;align-items:flex-end;gap:3px;height:32px}
.jm-activity i{flex:1;min-height:6%;border-radius:2px;background:var(--c-bar-rest)}
.jm-activity i:last-child{background:var(--c-ok)}
.jm-activity-axis{display:flex;justify-content:space-between;margin-top:8px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-figures{margin-top:10px;font-size:12px;line-height:16px;color:var(--c-ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-figures b{font-weight:var(--w-medium);color:var(--c-ink)}
.jm-figures i{font-style:normal;opacity:.5;white-space:pre}

/* Segmented: a sunken track and a raised thumb, 28 dp. */
.jm-segmented{position:relative;display:flex;margin-top:20px;padding:3px;border-radius:10px;background:var(--c-track)}
.jm-segmented:before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/var(--n,4));border-radius:8px;background:var(--c-thumb);box-shadow:0 1px 3px rgba(0,0,0,.12);transform:translateX(calc(100% * var(--i,0)));transition:transform 360ms cubic-bezier(.3,1.25,.5,1),background-color 300ms ease}
:root[data-appearance=dark] .jm-segmented:before{box-shadow:none}
.jm-segmented>*{position:relative;flex:1;height:28px;display:grid;place-items:center;padding:0 6px;font-size:12px;line-height:16px;font-weight:var(--w-medium);color:var(--c-ink-2);white-space:nowrap;transition:color 200ms ease}
.jm-segmented>.is-on{font-weight:var(--w-semi);color:var(--c-ink)}

/* GroupTitle, Card, ListRow, InsetDivider, IconTile, Chevron */
.jm-group{display:flex;align-items:center;padding:0 4px 8px 16px;font-size:11px;line-height:14px;font-weight:var(--w-semi);color:var(--c-ink-2)}
.jm-group>span:first-child{flex:1}
.jm-group small{padding-right:8px;font-size:11px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-card{padding:4px 0;border-radius:16px;background:var(--c-card);overflow:hidden}
.jm-row{position:relative;display:flex;align-items:center;min-height:48px;padding:9px 16px}
.jm-row+.jm-row:before{content:"";position:absolute;top:0;left:var(--inset,60px);right:16px;height:.5px;background:var(--c-line)}
.jm-row-text{flex:1;min-width:0;margin-left:12px}
.jm-row-text:first-child{margin-left:0}
.jm-row-title{font-weight:var(--w-medium);overflow:hidden;text-overflow:ellipsis}
.jm-row-sub{margin-top:2px;font-size:12px;line-height:16px;color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-row-sub.is-warn{color:var(--c-warn)}
.jm-tile{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--c-fill);color:var(--c-ink)}
.jm-chev{display:grid;place-items:center;margin-left:8px;color:var(--c-ink-2)}
.jm-chev svg{width:14px;height:14px}
.jm-value{padding-left:8px;font-size:12px;line-height:16px;color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-count.is-bump{animation:jm-bump 600ms ease}
@keyframes jm-bump{40%{color:var(--c-warn)}}

/* Badge: the colour at 12 % behind 11 dp medium text, radius 8. */
.jm-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.jm-badge{padding:2px 6px;border-radius:8px;font-size:11px;line-height:14px;font-weight:var(--w-medium);white-space:nowrap;background:color-mix(in srgb,var(--c-ink-2) 12%,transparent);color:var(--c-ink-2)}
.jm-badge.is-warn{background:color-mix(in srgb,var(--c-warn) 12%,transparent);color:var(--c-warn)}

/* ViewTabs: words over a hairline, a 1.5 dp rule under the chosen one. */
.jm-viewtabs{position:relative;display:flex;gap:24px;margin:32px 0 8px;padding:0 4px;box-shadow:inset 0 -.5px 0 var(--c-line)}
.jm-viewtabs>*{position:relative;padding:6px 0 11px;font-size:14px;line-height:20px;letter-spacing:.3px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-viewtabs>.is-on{font-weight:var(--w-semi);color:var(--c-ink)}
.jm-viewtabs>.is-on:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.5px;border-radius:1px;background:var(--c-ink)}

/* FilterChips */
.jm-chips{display:flex;gap:8px;margin-top:4px}
.jm-chips>*{padding:7px 14px;border-radius:9999px;background:var(--c-card);font-size:12px;line-height:16px;font-weight:var(--w-medium);color:var(--c-ink-2);transition:background-color 200ms ease,color 200ms ease}
.jm-chips>.is-on{background:var(--c-ink);color:var(--c-card)}

/* Timeline: the day's heading, then LogRows drawing one card. */
.jm-day{padding-top:20px}
.jm-log{display:block}
.jm-entry{position:relative;display:flex;padding:0 10px 0 16px;background:var(--c-card)}
.jm-entry:first-child{padding-top:4px;border-radius:16px 16px 0 0}
.jm-entry:last-child{padding-bottom:4px;border-radius:0 0 16px 16px}
.jm-entry:only-child{border-radius:16px}
.jm-entry.is-new{animation:jm-in 640ms cubic-bezier(.2,0,0,1) both}
@keyframes jm-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.jm-entry time{width:44px;flex:none;padding-top:13px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-entry time small{display:block;font-size:11px;color:var(--c-ink-3)}
.jm-axis{position:relative;width:18px;flex:none}
.jm-axis:before{content:"";position:absolute;left:8.5px;top:0;bottom:0;width:1px;background:var(--c-line)}
.jm-entry:first-child .jm-axis:before{top:21px}
.jm-entry:last-child .jm-axis:before{bottom:auto;height:21px}
.jm-entry:only-child .jm-axis:before{display:none}
.jm-axis i{position:absolute;left:4.5px;top:16.5px;width:9px;height:9px;border-radius:50%;background:var(--c-node)}
.jm-entry:first-child .jm-axis i{top:12.5px}
.jm-entry:first-child .jm-axis:before{top:17px}
.jm-axis i.is-warn{background:var(--c-warn)}
.jm-what{flex:1;min-width:0;margin-left:10px;padding:10px 0;display:flex;flex-direction:column;gap:3px}
.jm-who{display:flex;align-items:center;gap:8px;font-weight:var(--w-semi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-act{display:flex;align-items:center;gap:6px;color:var(--c-ink-2)}
.jm-act svg{width:14px;height:14px}
.jm-act span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.jm-act em{flex:none;font-style:normal;font-size:11px;line-height:14px;font-weight:var(--w-medium)}
.jm-act.is-own{color:var(--c-ink)}
.jm-act.is-own span{font-weight:var(--w-semi)}
.jm-what .jm-badges{margin-top:1px}
.jm-entry>.jm-chev{align-self:flex-start;margin:13px 0 0 6px}

/* App icons: the launcher icon, drawn here as a coloured tile with a glyph; system work has none. */
.jm-app-icon{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:6px;background:var(--c);color:#fff}
.jm-app-icon svg{width:12px;height:12px;stroke-width:2}
.jm-app-icon.is-system{background:var(--c-fill);color:var(--c-ink-2)}
.jm-app-icon--32{width:32px;height:32px;border-radius:9px}
.jm-app-icon--32 svg{width:18px;height:18px}
.jm-app-icon--44{width:44px;height:44px;border-radius:12px}
.jm-app-icon--44 svg{width:24px;height:24px}
.jm-app-icon--96{width:96px;height:96px;border-radius:24px}

/* By type: time, tile, kind with its share bar. */
.jm-types .jm-row{--inset:108px;align-items:flex-start}
.jm-types time{width:48px;flex:none;padding-top:1px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-types .jm-row>*:not(time){align-self:center}
.jm-share{height:4px;margin-top:8px;border-radius:2px;background:var(--c-fill);overflow:hidden}
.jm-share i{display:block;height:100%;border-radius:2px;background:var(--c-bar);transition:width 600ms ease}

/* The floating glass tab bar: 3 × 84 dp, 48 high, 12 above the navigation bar. */
.jm-tabbar{position:absolute;z-index:5;left:50%;bottom:28px;width:261px;height:49px;margin-left:-130.5px;display:flex;padding:4.5px;border-radius:9999px;background:var(--c-glass);backdrop-filter:blur(10px) saturate(1.6);-webkit-backdrop-filter:blur(10px) saturate(1.6);box-shadow:0 0 0 .5px var(--c-glass-edge),inset 0 1px 0 rgba(255,255,255,.55),0 10px 28px rgba(0,0,0,.12),0 1px 3px rgba(0,0,0,.08)}
:root[data-appearance=dark] .jm-tabbar{box-shadow:0 0 0 .5px var(--c-glass-edge),inset 0 1px 0 rgba(255,255,255,.14),0 10px 28px rgba(0,0,0,.6)}
.jm-tabbar:before{content:"";position:absolute;top:4.5px;bottom:4.5px;left:4.5px;width:84px;border-radius:9999px;background:var(--c-glass-pill);box-shadow:inset 0 .75px 0 rgba(255,255,255,.7);transform:translateX(calc(84px * var(--i,0)));transition:transform 420ms cubic-bezier(.3,1.3,.5,1)}
:root[data-appearance=dark] .jm-tabbar:before{box-shadow:inset 0 .75px 0 rgba(255,255,255,.22)}
.jm-tabbar[hidden]{display:none}
.jm-tabbar>*{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--c-ink-2)}
.jm-tabbar svg{width:18px;height:18px}
.jm-tabbar b{margin-top:1px;font-size:10px;line-height:11px;font-weight:var(--w-medium)}
.jm-tabbar>.is-on{color:var(--c-ink)}
.jm-tabbar>.is-on b{font-weight:var(--w-semi)}

/* An app's page: the app, its actions as tiles (ManageButton), then its report. */
.jm-back{display:flex;align-items:center;justify-content:center;width:48px;height:48px;color:var(--c-ink);border-radius:50%}
.jm-back svg{width:24px;height:24px}
.jm-apphead{display:flex;align-items:center;padding:0 4px}
.jm-apphead>div{flex:1;min-width:0;margin-left:14px}
.jm-apphead .jm-t-small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-apphead small{display:block;margin-top:2px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-manage{display:flex;gap:8px;margin-top:20px}
.jm-manage>*{flex:1;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:var(--c-card)!important;color:var(--c-ink);transition:transform 160ms ease,opacity 200ms ease}
.jm-manage>*:active{transform:scale(.96)}
.jm-manage>*[disabled]{opacity:.5}
.jm-manage>* svg{width:17px;height:17px}
.jm-manage>* b{margin-top:5px;font-size:11px;line-height:14px;font-weight:var(--w-medium)}
.jm-manage>.is-danger{color:color-mix(in srgb,var(--c-error) 85%,transparent)}
.jm-manage-note{margin:8px 0 0 4px;font-size:12px;line-height:16px;color:var(--c-ink-2)}

/* BehaviorChart: the scale, 96 dp of bars over three grid lines, hours beneath. */
.jm-chart{padding:14px 16px}
.jm-chart-max{text-align:right;margin-bottom:4px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2)}
.jm-chart-bars{position:relative;height:96px;display:flex;align-items:flex-end;border-top:1px solid var(--c-grid);border-bottom:1px solid var(--c-grid)}
.jm-chart-bars:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--c-grid)}
.jm-chart-bars>span{position:relative;flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center}
.jm-chart-bars>span>i{display:block;width:min(62%,14px);height:var(--h);min-height:2px;border-radius:2px;background:var(--c-bar);overflow:hidden;display:flex;align-items:flex-end;transition:height 700ms cubic-bezier(.2,0,0,1)}
.jm-chart-bars>span>i>b{display:block;width:100%;height:var(--f,0%);background:var(--c-warn)}
.jm-chart-bars>span.is-empty>i{height:2px;background:var(--c-fill)}
.jm-chart-axis{position:relative;height:20px;padding-top:6px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2)}
.jm-chart-axis span{position:absolute;top:6px}

/* SummaryRow: kind, count, then when and what stands out. */
.jm-summary{position:relative;padding:14px 16px}
.jm-summary+.jm-summary:before,.jm-chart+.jm-summary:before{content:"";position:absolute;top:0;left:16px;right:16px;height:.5px;background:var(--c-line)}
.jm-summary-head{display:flex;align-items:center;gap:10px}
.jm-summary-head svg{color:var(--c-ink-2)}
.jm-summary-head span{flex:1;min-width:0;font-weight:var(--w-semi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-summary-head b{font-weight:var(--w-semi)}
.jm-summary p{margin:6px 0 0 28px;font-size:12px;line-height:16px;color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-note{margin:8px 16px 0;font-size:12px;line-height:16px;color:var(--c-ink-2)}

/* AlertDialog: surface, radius 24, padding 24; title 14 semibold, body 14 secondary. */
.jm-scrim{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:0 24px;background:rgba(0,0,0,.32);opacity:0;pointer-events:none;transition:opacity 220ms ease}
.jm-scrim.is-open{opacity:1;pointer-events:auto}
.jm-dialog{width:100%;max-width:312px;padding:24px 24px 14px;border-radius:24px;background:var(--c-card);transform:scale(.92);transition:transform 260ms cubic-bezier(.2,0,0,1)}
.jm-scrim.is-open .jm-dialog{transform:none}
.jm-dialog h4{margin:0;font-size:14px;line-height:20px;font-weight:var(--w-semi)}
.jm-dialog p{margin:16px 0 0;color:var(--c-ink-2)}
.jm-dialog code{display:block;margin-top:10px;font:12px/16px ui-monospace,Menlo,monospace;color:var(--c-ink)}
.jm-dialog-actions{display:flex;justify-content:flex-end;gap:4px;margin-top:18px}
.jm-dialog-actions button{padding:10px 12px!important;border-radius:20px;font-size:12px;line-height:16px;font-weight:var(--w-medium)}
.jm-dialog-actions button:hover{background:var(--c-fill)}
.jm-dialog-actions button:last-child{font-weight:var(--w-semi)}
.jm-dialog-actions .is-danger{color:var(--c-error)}

/* Lists of apps (AppRow), a record's head and fields, footers under cards. */
.jm-approw{--inset:108px;align-items:flex-start}
.jm-dest{--inset:16px;align-items:flex-start}
.jm-approw time,.jm-dest time{width:48px;flex:none;padding-top:2px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2);font-variant-numeric:tabular-nums}
.jm-dest .jm-row-title{font-weight:var(--w-semi)}
.jm-row--inset16{--inset:16px}
.jm-row--divided:before{content:"";position:absolute;top:0;left:16px;right:16px;height:.5px;background:var(--c-line)}
.jm-lead{margin:4px 4px 12px;font-size:12px;line-height:16px;color:var(--c-ink-2)}
.jm-empty{margin:0;padding:16px;color:var(--c-ink-2)}
.jm-footer{margin:8px 16px 0;font-size:12px;line-height:16px;color:var(--c-ink-2)}
.jm-recordhead{display:flex;align-items:center;padding:16px}
.jm-recordhead>div{flex:1;min-width:0;margin-left:14px;display:flex;flex-direction:column;gap:2px}
.jm-recorddesc{margin:4px 0 0;font-size:12px;line-height:16px}
.jm-tile--44{width:44px;height:44px}
.jm-tile--44 svg{width:22px;height:22px}
.jm-tile--36{width:36px;height:36px}
.jm-tile--36 svg{width:20px;height:20px}
.jm-field{position:relative;display:flex;padding:11px 16px}
.jm-field+.jm-field:before{content:"";position:absolute;top:0;left:16px;right:16px;height:.5px;background:var(--c-line)}
.jm-field span{width:112px;flex:none;color:var(--c-ink-2)}
.jm-field b{flex:1;min-width:0;font-weight:400;overflow-wrap:anywhere}
.jm-field b.is-code{padding-top:2px;font:12px/16px ui-monospace,Menlo,monospace}
.jm-summary p.jm-summary-desc{margin:4px 0 0 28px}

/* The Apps tab: the filter, a count of each group, search. */
.jm-stats{display:flex;margin-top:10px;padding:4px;border-radius:16px;background:var(--c-card)}
.jm-stats button{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;padding:8px 0;border-radius:10px}
.jm-stats button+button:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:.5px;background:var(--c-line)}
.jm-stats button:hover{background:var(--c-fill)}
.jm-stats button[disabled]{color:var(--c-ink-3);cursor:default}
.jm-stats b{font-weight:var(--w-semi);font-variant-numeric:tabular-nums}
.jm-stats span{display:flex;align-items:center;gap:5px;margin-top:2px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2)}
.jm-stats i{width:6px;height:6px;border-radius:50%}
.jm-search{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 12px;border-radius:10px;background:var(--c-card);box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--c-ink) 12%,transparent);color:var(--c-ink-2)}
:root[data-appearance=dark] .jm-search{box-shadow:inset 0 0 0 .75px color-mix(in srgb,var(--c-ink) 22%,transparent)}
.jm-search svg{width:16px;height:16px}
.jm-search input{flex:1;min-width:0;padding:0;border:0;outline:0;background:none;font:inherit;color:var(--c-ink)}
.jm-search input::placeholder{color:var(--c-ink-2)}
.jm-search input::-webkit-search-cancel-button{display:none}

/* JiumiSwitch: 40 × 24, graphite when on. */
.jm-switch{position:relative;width:40px;height:24px;flex:none;border-radius:12px!important;background:color-mix(in srgb,var(--c-ink) 18%,transparent)!important;transition:background-color 200ms ease}
.jm-switch i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--c-card);transition:transform 200ms cubic-bezier(.2,0,0,1)}
.jm-switch.is-on{background:var(--c-ink)!important}
.jm-switch.is-on i{transform:translateX(16px)}

/* SetupScreen: the brand, a way to start as three cards, its steps, and the action at the foot. */
.jm-setup{padding:16px 20px 150px}
.jm-brand{display:flex;align-items:center}
.jm-brand img{width:56px;height:56px;border-radius:16px}
.jm-brand>div{margin-left:14px}
.jm-brand .jm-ink-2{margin-top:2px}
.jm-method-head{display:flex;align-items:center;justify-content:space-between;margin-top:36px;color:var(--c-ink-2)}
.jm-method-head .jm-t-large{color:var(--c-ink)}
.jm-method-head+p{margin:2px 0 0}
.jm-methods{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.jm-native .jm-method{display:flex;align-items:center;width:100%;padding:12px 14px;border-radius:16px;background:var(--c-card);box-shadow:inset 0 0 0 1.5px transparent;text-align:left;transition:box-shadow 200ms ease}
.jm-native .jm-method.is-on{box-shadow:inset 0 0 0 1.5px var(--c-ink)}
.jm-method .jm-tile{color:var(--c-ink)}
.jm-method-text{flex:1;min-width:0;margin-left:12px;display:flex;flex-direction:column}
.jm-method-text b{display:flex;align-items:center;font-weight:var(--w-semi)}
.jm-method-text em{margin-left:8px;padding:2px 8px;border-radius:9999px;background:var(--c-fill);font-style:normal;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-2)}
.jm-method-text small{margin-top:2px;font-size:12px;line-height:16px;color:var(--c-ink-2)}
.jm-method>svg{width:20px;height:20px;color:var(--c-ink)}
.jm-next{margin:32px 0 4px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-step{display:flex;padding:0 4px}
.jm-step-rail{width:24px;flex:none;display:flex;flex-direction:column;align-items:center}
.jm-step-rail:before{content:"";width:1.5px;height:8px;background:var(--above,var(--c-track))}
.jm-next+.jm-step .jm-step-rail:before{background:transparent}
.jm-step-rail:after{content:"";flex:1;width:1.5px;background:var(--below,var(--c-track))}
.jm-step:last-child .jm-step-rail:after{background:transparent}
.jm-step-dot{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--c-fill);font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-step-dot svg{width:13px;height:13px;color:var(--c-ink)}
.jm-step.is-current .jm-step-dot{background:var(--c-ink);color:var(--c-card)}
.jm-step.is-done{--below:color-mix(in srgb,var(--c-ink) 25%,transparent)}
.jm-step.is-done+.jm-step{--above:color-mix(in srgb,var(--c-ink) 25%,transparent)}
.jm-step-body{flex:1;min-width:0;margin-left:12px;padding:10px 0 14px}
.jm-step-body b{display:block;font-weight:400;color:var(--c-ink-2)}
.jm-step.is-current .jm-step-body b{font-weight:var(--w-semi);color:var(--c-ink)}
.jm-step-body p{display:none;margin:4px 0 0;font-size:12px;line-height:16px;color:var(--c-ink-2)}
.jm-step.is-current .jm-step-body p{display:block}
.jm-setup-foot{position:absolute;z-index:3;left:0;right:0;bottom:0;padding:10px 16px 24px;background:var(--c-canvas)}
.jm-setup-foot p{display:flex;align-items:center;justify-content:center;gap:4px;margin:0 0 8px;font-size:11px;line-height:14px;font-weight:var(--w-medium);color:var(--c-ink-3)}
.jm-setup-foot p svg{width:12px;height:12px}
.jm-native .jm-setup-foot button{width:100%;height:44px;border-radius:16px;background:var(--c-ink);color:var(--c-card);font-weight:var(--w-semi)}
.jm-setup-foot button:active{transform:scale(.98)}

@media (prefers-reduced-motion:reduce){
  .jm-native *{animation:none!important;transition:none!important}
}

/* Phones other than the hero's play by themselves and take no taps. */
.jm-native.is-locked{pointer-events:none;user-select:none}
