:root {
  color-scheme: dark; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-synthesis: none;
  --bg: #0b110d; --card: #181818; --raised: #242424; --ink: #f1f4ec; --muted: #a1b39f; --green: #89cda7; --accent: #c5fa63; --border: #303030;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 25px; letter-spacing: -.7px; }
h3 { font-size: 14px; line-height: 1.5; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { display: flex; flex-direction: column; width: 100%; height: var(--zas-viewport-height, 100dvh); overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; background: var(--bg); border-bottom: 1px solid var(--border);
  padding: calc(4px + var(--safe-top) + var(--tg-content-safe-area-inset-top, 0px)) calc(16px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)) 4px calc(12px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px));
}
.brand { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 900; font-style: italic; font-size: 23px; }
#page-title { flex: 1; min-width: 0; font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.language { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--raised); border: 1px solid var(--border); padding: 10px; border-radius: 10px; font-size: 11px; min-height: 40px; }
.flag { width: 21px; height: 15px; border-radius: 3px; overflow: hidden; stroke: none; }
.avatar { display: grid; place-items: center; background: var(--raised); color: #d3d3d3; font-weight: 700; border: 1px solid #6b6b6b; border-radius: 50%; width: 36px; height: 36px; font-size: 11px; }
.demo-banner { flex-shrink: 0; height: 20px; text-align: center; color: var(--muted); background: var(--card); padding: 4px 12px; font-size: 9px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #464646 transparent; padding: 18px calc(20px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)) 24px calc(20px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px)); }
main > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 10px; color: var(--muted); letter-spacing: 1.35px; font-weight: 650; display: block; margin-bottom: 8px; }
.subtext { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.page-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; height: 24px; margin-bottom: 8px; font-size: 10px; color: var(--muted); }
.page-context > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-chip { height: 24px; padding: 4px 8px; border: 1px solid var(--border); font-size: 9px; line-height: 14px; border-radius: 6px; background: var(--card); white-space: nowrap; flex-shrink: 0; }
.button { min-height: 44px; padding: 12px 15px; border-radius: 9px; background: var(--raised); color: var(--ink); border: 1px solid var(--border); font-size: 12px; font-weight: 650; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.primary { background: var(--accent); color: #0b110d; border-color: var(--accent); }
.full { width: 100%; }
.text-button { padding: 7px 0; background: none; color: var(--accent); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.icon-box { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--raised); color: var(--accent); border-radius: 11px; flex-shrink: 0; }
.grow, .card-head .grow { flex: 1; min-width: 0; }
.card-head p { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.6; }
.badge { display: inline-block; padding: 5px 8px; background: #153b32; color: #89e0b9; border: 1px solid #2a6555; font-size: 10px; border-radius: 7px; white-space: nowrap; }
.badge.warn { background: #352b1c; color: #f3c374; border-color: #695234; }
.badge.danger { background: #362133; color: #f6acbe; border-color: #694055; }
.badge.neutral { background: var(--raised); color: #c6c6c6; border-color: var(--border); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; height: 56px; font-size: 12px; }
.row + .row { border-top: 1px solid var(--border); }
.row .label { width: 48%; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 18px; }
.row strong { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 600; text-align: right; line-height: 18px; overflow-wrap: anywhere; }
.progress { width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; margin-top: 12px; appearance: none; background: #3a3a3a; }
.progress::-webkit-progress-bar { background: #3a3a3a; }
.progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
.note { font-size: 11px; color: var(--muted); line-height: 1.75; }
.button + .note { margin-top: 10px; }
.notice { padding: 13px 14px; border: 1px solid #36503d; border-radius: 11px; background: var(--raised); color: #c4c4c4; font-size: 11px; line-height: 1.75; margin-bottom: 15px; display: flex; gap: 9px; align-items: flex-start; }
.notice.warn { color: #e8c38b; background: #30281f; border-color: #4c3d29; }
.notice svg { width: 17px; height: 17px; margin-top: 2px; }
.bottom-nav { flex-shrink: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--bg); border-top: 1px solid var(--border); padding: 5px calc(10px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)) calc(7px + var(--safe-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)) calc(10px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px)); }
.nav-button { position: relative; min-width: 0; height: 57px; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; border-radius: 8px; }
.nav-button svg { width: 23px; height: 23px; stroke-width: 1.6; }
.nav-button span { width: 100%; height: 14px; line-height: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-button::before { content: ""; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 2px; background: transparent; }
.nav-button[aria-current=page] { color: var(--accent); font-weight: 650; }
.nav-button[aria-current=page]::before { background: var(--accent); }
.nav-button[aria-current=page] svg { stroke-width: 1.9; fill: #c4ff4d14; }
.filter-tabs { display: flex; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; gap: 3px; margin-top: 16px; margin-bottom: 16px; }
.filter-tabs button { flex: 1; background: none; border-radius: 7px; min-height: 37px; padding: 7px 5px; font-size: 11px; color: var(--muted); }
.filter-tabs button[aria-pressed=true] { background: #2c4031; color: var(--ink); font-weight: 600; }
.search, textarea, .preview-controls select { width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--ink); }
.search { margin-bottom: 14px; }
::placeholder { color: #9e9e9e; }
.task { display: flex; align-items: center; gap: 10px; padding: 12px 0; height: 72px; border-bottom: 1px solid var(--border); }
.task:last-child { border: 0; }
.task strong { font-size: 12px; display: block; }
.task p { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.task button { background: none; text-align: left; padding: 0; flex: 1; min-height: 44px; min-width: 0; }
.list.card { padding-top: 5px; padding-bottom: 5px; }
.field-label { font-size: 11px; font-weight: 600; display: block; margin: 17px 0 9px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.composer-footer { display: flex; justify-content: space-between; margin: 8px 0 16px; }
.timeline { padding-left: 18px; border-left: 1px solid #505050; margin: 15px 0 0 6px; }
.timeline > div { position: relative; padding: 0 0 20px; }
.timeline > div:last-child { padding-bottom: 3px; }
.timeline > div::before { content: ""; position: absolute; left: -23px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); box-shadow: 0 0 0 1px #505050; }
.timeline strong { font-size: 12px; }
.timeline p { font-size: 11px; line-height: 1.8; margin-top: 5px; color: var(--muted); }
.rank-score { text-align: right; font-size: 17px; font-weight: 700; }
.rank-score small { font-size: 9px; font-weight: 400; color: var(--muted); display: block; margin-top: 4px; }
.ranking-view { padding-top: 18px; background: var(--bg); }
.ranking-controls { margin-bottom: 16px; }
.scope-select { width: 100%; min-width: 0; height: 44px; padding: 8px; color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: 9px; font-size: 11px; }
.metric-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 44px; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); }
.metric-switch button { min-width: 0; height: 36px; background: none; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-switch button[aria-pressed=true] { background: var(--raised); color: var(--accent); }
.ranking-period { display: flex; justify-content: space-between; height: 34px; align-items: center; color: var(--muted); font-size: 9px; letter-spacing: .6px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; height: 148px; gap: 10px; margin: 4px 0 16px; }
.podium-person { height: 136px; min-width: 0; text-align: center; padding: 8px 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.podium-person[data-rank="1"] { height: 148px; background: var(--card); border-color: #756441; }
.podium-award { --award-color: #c7cdd3; display: block; width: 76px; height: 56px; margin: 0 auto 6px; fill: var(--award-color); stroke: none; }
.podium-award[data-award="1"] { --award-color: #d6b777; }
.podium-award[data-award="3"] { --award-color: #c28c68; }
.podium-award .award-stem { fill: none; stroke: var(--award-color); stroke-width: 1.2; }
.podium-award text { font-size: 43px; font-weight: 750; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.rank-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--raised); border: 1px solid var(--border); color: #cecece; border-radius: 50%; font-size: 10px; font-weight: 600; }
.rank-avatar.country-br { background: var(--raised); border-color: #36503d; color: #d0d0d0; }
.rank-avatar.country-tw { background: var(--raised); border-color: var(--border); color: #c9c9c9; }
.podium-person > strong { display: block; font-size: 11px; height: 16px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-person > p { color: var(--muted); font-size: 9px; height: 14px; line-height: 14px; margin: 2px 0 4px; }
.podium-value { display: block; font-size: 16px; font-weight: 700; line-height: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranking-view:has([data-metric=amount][aria-pressed=true]) .podium-value { font-size: 12px; }
.leader-list { border: 1px solid var(--border); background: var(--card); border-radius: 12px; overflow: hidden; }
.leader-list-head { height: 34px; padding: 0 12px; display: grid; grid-template-columns: 28px 1fr 100px; gap: 9px; align-items: center; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.leader-list-head span:last-child { text-align: right; }
.leader-row { display: flex; align-items: center; gap: 9px; height: 64px; padding: 0 12px; border-bottom: 1px solid #ffffff08; }
.leader-row:last-child { border: 0; }
.rank { width: 28px; flex-shrink: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.leader-row .grow > strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 600; }
.leader-row p { margin-top: 5px; font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-value { width: 100px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-self { background: var(--raised); border-color: #36503d; }
.you-tag { color: #c8c8c8; font-size: 9px; font-weight: 500; }
.my-ranking[hidden] { display: none; }
.my-ranking { flex-shrink: 0; background: var(--raised); border-top: 1px solid #36503d; padding: 0 calc(20px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)) 0 calc(20px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px)); }
.my-ranking-inner { display: flex; align-items: center; gap: 10px; height: 76px; max-width: 760px; margin: 0 auto; }
.self-rank { width: 58px; flex-shrink: 0; }
.self-rank small { display: block; color: var(--muted); font-size: 9px; height: 22px; line-height: 11px; }
.self-rank strong { display: block; font-size: 22px; line-height: 25px; color: #ececec; font-variant-numeric: tabular-nums; }
.my-ranking .grow > strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-ranking .grow p { color: var(--muted); font-size: 9px; line-height: 15px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-ranking .rank-score { font-size: 14px; flex-shrink: 0; max-width: 108px; font-variant-numeric: tabular-nums; }
.my-ranking .rank-score small { color: #c3c3c3; }
@media (max-width: 359px) { .leader-row { gap: 7px; padding-inline: 9px; }.leader-row .rank-avatar { display: none; }.leader-value { width: 91px; font-size: 12px; }.my-ranking { padding-inline: calc(14px + var(--safe-left)); }.my-ranking .rank-avatar { display: none; }.my-ranking-inner { gap: 7px; }.podium-value { font-size: 15px; }.ranking-view:has([data-metric=amount][aria-pressed=true]) .podium-value { font-size: 10px; } }
.profile-head { display: flex; align-items: center; gap: 12px; height: 100px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.profile-head .avatar { width: 48px; height: 48px; font-size: 16px; flex-shrink: 0; }
.profile-head h2 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-head p { font-size: 10px; color: var(--muted); margin-top: 7px; }
.profile-head .badge { max-width: 85px; overflow: hidden; text-overflow: ellipsis; }
.points { background: var(--card); border-color: var(--border); }
.points .eyebrow { color: #cacaca; }
.points strong { display: block; font-size: 32px; color: #d1d1d1; margin: 11px 0; }
.reward { display: flex; gap: 12px; align-items: center; margin: 12px 0 18px; }
.reward .icon-box { background: var(--raised); color: #cacaca; border-color: var(--border); }
.reward p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.empty { padding: 25px; text-align: center; font-size: 12px; line-height: 1.8; color: var(--muted); }
.preview-controls { flex-shrink: 0; font-size: 10px; color: var(--muted); border-top: 1px solid var(--border); background: var(--bg); padding: 0 calc(20px + var(--safe-right)) 0 calc(20px + var(--safe-left)); max-height: 180px; overflow: auto; }
.preview-controls summary { padding: 9px 0; cursor: pointer; }
.preview-controls label { display: block; margin: 4px 0 7px; }
.preview-controls select { padding: 9px; font-size: 11px; margin-bottom: 8px; }
.preview-controls .fine { line-height: 1.6; margin-bottom: 10px; }
dialog { color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; max-width: 390px; width: calc(100% - 32px - var(--safe-left) - var(--safe-right)); max-height: calc(var(--zas-viewport-height, 100dvh) - var(--safe-top) - var(--tg-content-safe-area-inset-top, 0px) - var(--safe-bottom) - var(--tg-content-safe-area-inset-bottom, 0px) - 40px); overflow: auto; box-shadow: 0 20px 80px #00000050; }
dialog::backdrop { background: #0d0d0dbc; backdrop-filter: blur(5px); }
dialog h2 { font-size: 22px; margin-bottom: 13px; }
dialog p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 12px; }
dialog .button { margin-top: 15px; width: 100%; }
.language-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 59px; padding: 14px; margin: 10px 0; border-radius: 12px; background: var(--raised); border: 1px solid var(--border); text-align: left; }
.language-option[aria-pressed=true] { border-color: var(--green); background: var(--raised); }
.language-option .flag { width: 28px; height: 20px; }
.language-option strong { flex: 1; font-size: 13px; }
.language { width: 70px; min-height: 44px; flex-shrink: 0; }
.section-heading { height: 28px; }
.section-heading h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-head { height: 52px; }
.card-head h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 16px; height: 32px; overflow: hidden; }
.card > .note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 18px; height: 36px; overflow: hidden; }
.work-summary { height: 172px; padding: 14px; border: 1px solid var(--border); background: var(--card); border-radius: 16px; }
.work-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 16px; }
.work-summary .eyebrow { color: var(--muted); margin: 0; font-size: 9px; }
.work-source { min-width: 0; font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-summary-body { display: flex; align-items: baseline; gap: 10px; height: 78px; padding-top: 12px; }
.work-summary-body strong { font-size: 44px; line-height: 48px; font-weight: 650; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.work-summary-body span { font-size: 11px; color: var(--muted); line-height: 16px; }
.work-summary .button { height: 46px; justify-content: space-between; }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 76px; gap: 8px; border-bottom: 1px solid var(--border); }
.stat-cell { min-width: 0; padding: 8px 0 12px; }
.stat-cell strong { display: block; font-size: 25px; line-height: 30px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.stat-cell span { display: block; height: 24px; line-height: 12px; font-size: 10px; color: var(--muted); overflow: hidden; overflow-wrap: anywhere; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }.quick-actions button { display: flex; align-items: center; gap: 9px; height: 54px; min-width: 0; padding: 11px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); }.quick-actions span { flex: 1; min-width: 0; font-size: 11px; color: var(--ink); text-align: left; line-height: 16px; max-height: 32px; overflow: hidden; }.quick-actions svg { width: 18px; height: 18px; }.quick-actions svg:last-child { width: 14px; }.step-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; color: #c9c9c9; background: var(--raised); border: 1px solid #36503d; font-size: 11px; font-weight: 700; }.composer-panel .field-label { margin-top: 0; }.composer-footer .note { height: 32px; line-height: 16px; overflow: hidden; }.sync-panel { display: flex; flex-direction: column; }.sync-panel .card-head, .sync-panel .button, .sync-panel .note, .sync-panel .progress { flex-shrink: 0; }.composer-panel .field-label { height: 14px; line-height: 14px; }
.result-summary { background: var(--card); border: 1px solid var(--border); padding: 17px; border-radius: 12px; margin-bottom: 16px; }.result-summary .eyebrow { color: #c4c4c4; }.result-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.result-metrics > div { min-width: 0; }.result-metrics strong { display: block; font-size: 27px; letter-spacing: -.7px; height: 36px; line-height: 36px; white-space: nowrap; }.result-metrics > div:last-child strong { font-size: 20px; }.result-metrics span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; height: 32px; line-height: 16px; color: var(--muted); margin-top: 7px; }.capture-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }.capture-stats > div { min-width: 0; height: 80px; padding: 10px 12px; border: 1px solid var(--border); background: var(--raised); border-radius: 9px; }.capture-stats span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 28px; line-height: 14px; font-size: 10px; color: var(--muted); }.capture-stats strong { display: block; line-height: 28px; font-size: 25px; color: #e3e3e3; }.capture-stats .pending-stat { background: #332c20; border-color: #685333; }.capture-stats .pending-stat span { color: #d6bd8e; }.capture-stats .pending-stat strong { color: #f3cf8c; }

.filter-tabs button { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .badge { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.task p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
textarea { height: 112px; resize: none; }
dialog { top: calc(16px + var(--safe-top) + var(--tg-content-safe-area-inset-top, 0px)); bottom: calc(16px + var(--safe-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)); margin-block: auto; }
#toast { position: fixed; bottom: calc(120px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); background: var(--raised); border: 1px solid #36503d; color: var(--ink); padding: 13px 18px; border-radius: 12px; font-size: 12px; max-width: calc(100% - 40px); width: max-content; z-index: 10; }
@media (max-width: 359px) { main { padding-left: calc(14px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px)); padding-right: calc(14px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)); } .card { padding: 14px; } .card-head { gap: 8px; } .card-head h3 { font-size: 13px; } .task { gap: 7px; } .task .icon-box { width: 28px; height: 32px; } .badge { padding: 5px 6px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Fixed app frame. Only finite content panes and lists scroll; never the page. */
main, main.ranking-view { overflow: hidden; padding: 12px calc(16px + var(--safe-right) + var(--tg-content-safe-area-inset-right, 0px)) 12px calc(16px + var(--safe-left) + var(--tg-content-safe-area-inset-left, 0px)); }
.screen { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.screen-body, .ranking-list-scroll, .message-list-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.screen-body { flex: 1; padding-right: 2px; }
.screen-body > :last-child { margin-bottom: 0; }
.operation-strip { display: flex; align-items: center; gap: 8px; width: 100%; height: 56px; padding: 8px 10px; margin: 8px 0 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-align: left; }
.operation-strip .icon-box { width: 30px; height: 30px; }
.operation-strip strong { display: block; font-size: 11px; height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operation-strip small { display: block; font-size: 9px; height: 14px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operation-strip > svg { width: 16px; color: var(--muted); }
.screen .section-heading { height: 22px; margin-top: 12px; margin-bottom: 8px; }
.collection-strip { display: flex; align-items: center; gap: 10px; width: 100%; height: 60px; padding: 10px 12px; margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); text-align: left; }
.collection-strip strong, .menu-row strong { display: block; height: 16px; line-height: 16px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collection-strip small, .menu-row small { display: block; font-size: 9px; height: 14px; line-height: 14px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .quick-actions { margin-top: 10px; gap: 8px; }.screen .quick-actions button { height: 40px; padding: 8px; }.screen .quick-actions span { font-size: 10px; }
.home-body > .note { margin-top: 8px; line-height: 14px; font-size: 9px; }
.screen .notice { font-size: 10px; line-height: 16px; padding: 10px; margin-bottom: 10px; }
.screen .row { height: 40px; padding: 6px 0; }.screen .row .label, .screen .row strong { font-size: 10px; line-height: 14px; }
.screen .card { padding: 12px; }.screen .card-head { height: 40px; margin-bottom: 8px; }.screen .card-head p { height: 16px; line-height: 16px; -webkit-line-clamp: 1; }
.screen .card-head h3 { font-size: 12px; }.screen .card-head .icon-box { width: 30px; height: 30px; }
.screen .card > .note { font-size: 10px; line-height: 16px; height: 32px; }
.task-tabs.filter-tabs { flex-shrink: 0; margin: 0 0 10px; }
.compose-body .sync-panel { display: flex; flex-direction: row; align-items: center; gap: 8px; height: 76px; }
.sync-panel .grow { min-width: 0; }.sync-panel .grow h3 { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.sync-panel .grow p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.sync-panel .button { font-size: 10px; padding: 10px; flex-shrink: 0; }.sync-panel .button svg { width: 16px; }
.compose-body .composer-panel { height: 308px; margin-bottom: 0; }
.composer-panel .progress { margin-top: 0; display: block; }
.composer-panel .field-label { margin: 12px 0 8px; font-size: 10px; }.composer-panel textarea { height: 100px; min-height: 100px; padding: 10px; font-size: 11px; }
.composer-panel .composer-footer { margin: 7px 0 10px; }.composer-panel .composer-footer .note { font-size: 10px; height: 28px; line-height: 14px; }
.message-browser { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }.message-browser > .note { height: 18px; font-size: 9px; line-height: 18px; margin-bottom: 7px; }
.message-browser .search { flex-shrink: 0; height: 40px; margin-bottom: 8px; }.message-browser .filter-tabs { flex-shrink: 0; margin: 0 0 8px; }
.message-list-scroll { flex: 1; margin: 0; }.screen .task { height: 64px; }.screen .task strong { font-size: 11px; }
.calls-body .capture-stats { margin: 8px 0 10px; gap: 8px; }.calls-body .capture-stats > div { height: 68px; padding: 8px 10px; }.calls-body .capture-stats span { height: 24px; line-height: 12px; font-size: 9px; }.calls-body .capture-stats strong { line-height: 25px; font-size: 23px; }
.calls-body .matching-panel .card-head { margin-bottom: 4px; }
.screen .result-summary { padding: 12px; margin-bottom: 10px; }.screen .result-metrics { gap: 8px; }.screen .result-metrics strong { font-size: 25px; }.screen .result-metrics > div:last-child strong { font-size: 18px; }
.performance-body > .note { font-size: 10px; margin-top: 8px; }.performance-body > .text-button { margin-top: 8px; }
.screen .profile-head { height: 76px; padding: 12px; margin-bottom: 10px; }.screen .profile-head .avatar { width: 42px; height: 42px; }.screen .profile-head h2 { font-size: 17px; }
.points-summary { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 10px; gap: 10px; }
.points-summary > span { min-width: 0; }.points-summary small { display: block; font-size: 9px; color: var(--muted); height: 12px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.points-summary strong { font-size: 26px; line-height: 29px; margin: 0; }.points-summary .button { font-size: 10px; }
.profile-menu { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 60px; padding: 10px 12px; background: none; text-align: left; }.menu-row + .menu-row { border-top: 1px solid var(--border); }.menu-row .icon-box { width: 30px; height: 30px; }.menu-row > svg { width: 16px; color: var(--muted); }
.profile-body > .note { margin-top: 8px; font-size: 9px; line-height: 14px; }
.screen .ranking-controls { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 8px; flex-shrink: 0; height: 44px; margin-bottom: 8px; }
.ranking-list-scroll { flex: 1; border-radius: 10px; }.ranking-list-scroll .leader-list-head { position: sticky; top: 0; background: var(--card); z-index: 1; }
.screen > .ranking-period { flex-shrink: 0; height: 32px; margin-bottom: 8px; }
.ranking-period .text-button { font-size: 10px; }
.ranking-period .text-button svg { width: 14px; height: 14px; }
.my-ranking-inner { height: 66px; }.self-rank strong { color: var(--accent); }.is-self { border-color: #657248; }.language-option[aria-pressed=true] { border-color: var(--accent); }
