/* App UI kit rebuilt from the mobile redesign tokens (packages/theme). Units are iOS points. */
.scr {
  position: absolute; inset: 0; overflow: hidden;
  font-family: 'Inter', -apple-system, system-ui, sans-serif; color: #000;
  font-size: 17px; line-height: 22px; letter-spacing: -0.3px;
  font-feature-settings: 'cv11', 'ss01';
}
.scr * { box-sizing: border-box; }
.tnum { font-variant-numeric: tabular-nums; }
.pjs { font-family: 'Plus Jakarta Sans', sans-serif; }
.sec { color: #6B6B70; }
.ter { color: #8A8A8E; }
.acc { color: #2563EB; }
.grn { color: #248A3D; }
.scroll { position: absolute; left: 0; right: 0; top: 62px; bottom: 84px; overflow: hidden; }
.scroll.notab { bottom: 0; }
.ph, .ph-fill, .ph-bold { line-height: 1; display: inline-block; }

/* Tab bar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 20;
  background: #F9F9FB; border-top: 0.5px solid rgba(60, 60, 67, .29);
  display: flex; padding-top: 6px;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; color: #8A8A8E; position: relative; }
.tab i { font-size: 25px; height: 28px; width: 32px; display: flex; align-items: center; justify-content: center; }
.tab span { font-size: 10px; line-height: 12px; font-weight: 500; letter-spacing: .1px; margin-top: 2px; }
.tab.on { color: #2563EB; }
.tab .badge { position: absolute; top: -3px; left: calc(50% + 2px); }
.badge {
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: #FF3B30; color: #fff;
  font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}

/* Nav bar for pushed screens */
.navbar {
  position: absolute; left: 0; right: 0; top: 0; height: 106px; padding-top: 62px; z-index: 15;
  background: #F9F9FB; border-bottom: 0.5px solid rgba(60, 60, 67, .18);
  display: flex; align-items: center; padding-left: 8px; padding-right: 8px;
}
.navbar .back { width: 96px; display: flex; align-items: center; gap: 2px; color: #2563EB; font-size: 17px; }
.navbar .back i { font-size: 22px; }
.navbar .title { flex: 1; text-align: center; font-weight: 600; font-size: 17px; }
.navbar .rside { width: 96px; }

/* Large title header */
.lt { padding: 8px 16px 12px; display: flex; align-items: flex-end; gap: 12px; }
.lt h1 { font: 800 34px/41px 'Plus Jakarta Sans'; letter-spacing: -0.6px; }
.lt .lt-sub { font-size: 15px; line-height: 20px; color: #6B6B70; margin-top: 2px; letter-spacing: -0.2px; }
.hbtn { width: 34px; height: 34px; border-radius: 17px; background: rgba(118, 118, 128, .12); display: flex; align-items: center; justify-content: center; color: #2563EB; font-size: 19px; position: relative; }

/* Grouped sections */
.gs { margin: 0 16px 28px; }
.gs-h { padding: 0 16px; margin-bottom: 7px; font-size: 13px; line-height: 18px; color: #6B6B70; text-transform: uppercase; letter-spacing: 0; }
.gs-c { background: #fff; border-radius: 14px; overflow: hidden; }
.gs-f { padding: 0 16px; margin-top: 7px; font-size: 13px; line-height: 18px; color: #6B6B70; letter-spacing: -0.1px; }
.row { display: flex; align-items: center; min-height: 44px; padding-left: 16px; position: relative; }
.row .lead { width: 28px; margin-right: 12px; display: flex; justify-content: center; color: #2563EB; font-size: 22px; }
.row .body { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 0; min-height: inherit; }
.row .body .txt { flex: 1; min-width: 0; }
.row .t { font-size: 17px; line-height: 22px; }
.row .s { font-size: 15px; line-height: 20px; color: #6B6B70; margin-top: 2px; letter-spacing: -0.2px; }
.row .v { font-size: 17px; color: #6B6B70; font-variant-numeric: tabular-nums; }
.row .chev { color: #C4C4C7; font-size: 14px; }
.row::after { content: ''; position: absolute; right: 0; bottom: 0; height: 0.5px; background: rgba(60, 60, 67, .18); left: var(--sep, 16px); }
.row:last-child::after { display: none; }
.row.lead-row { --sep: 56px; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #34C759; position: relative; flex: none; }
.switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-weight: 600; padding: 3px 8px; font-size: 12px; line-height: 16px; letter-spacing: 0; white-space: nowrap; }
.pill.md { padding: 6px 12px; font-size: 15px; line-height: 20px; }
.pill.ok { background: rgba(52, 199, 89, .14); color: #248A3D; }
.pill.acc { background: #E8EFFD; color: #2563EB; }
.pill.warn { background: rgba(255, 149, 0, .14); color: #C93400; }
.pill.neu { background: #EEF0F4; color: #3A3A3F; }
.pill.bad { background: rgba(255, 59, 48, .12); color: #D70015; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-weight: 600; font-size: 17px; min-height: 44px; padding: 0 16px; white-space: nowrap; }
.btn.lg { min-height: 50px; }
.btn.sm { min-height: 32px; font-size: 15px; padding: 0 12px; border-radius: 10px; }
.btn.fill { background: #2563EB; color: #fff; }
.btn.tint { background: #E8EFFD; color: #2563EB; }
.btn.gray { background: rgba(118, 118, 128, .12); color: #2563EB; }

/* Segmented control */
.seg { height: 32px; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, .12); display: flex; position: relative; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; letter-spacing: -0.1px; border-radius: 7px; position: relative; z-index: 1; }
.seg span.on { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }

/* Stat tile */
.tile { flex: 1; background: #fff; border-radius: 14px; padding: 10px 12px 12px; min-height: 88px; display: flex; flex-direction: column; gap: 2px; }
.tile .lab { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #6B6B70; letter-spacing: 0; }
.tile .lab i { font-size: 14px; }
.tile .val { margin-top: 4px; display: flex; align-items: baseline; gap: 3px; font: 700 28px/34px 'Plus Jakarta Sans'; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.tile .val small { font: 600 15px 'Inter'; color: #6B6B70; }
.tile .cap { font-size: 13px; line-height: 18px; color: #6B6B70; letter-spacing: -0.1px; }

/* Avatars */
.av { border-radius: 50%; background: rgba(118, 118, 128, .12) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #6B6B70; font-weight: 600; flex: none; letter-spacing: 0; }

/* Card helpers */
.card { background: #fff; border-radius: 18px; }
.hair { height: 0.5px; background: rgba(60, 60, 67, .18); }
