/* Bonde Fit — visual Pista.
 * Camada carregada depois de styles.css. Itálico condensado, raias, barreiras,
 * número de peito e cortes diagonais de largada. A cor de destaque (--acc) segue
 * a liga conquistada pela pessoa; patentes mantêm a cor da liga do seu marco. */

.app {
  --acc: var(--app-accent);
  --acc-ink: var(--app-accent-ink);
  --bg: #0E0E10;
  --s1: #18181B;
  --s2: #232328;
  --ln: rgba(255,255,255,.08);
  --tx: #F5F3EF;
  --tx2: #A6A6AE;
  --tx3: #6E6E76;
  --rad: 22px;
  --fd: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --canvas: var(--bg);
  --ink: var(--tx);
  --muted: var(--tx2);
  --line: var(--ln);
  background: var(--bg);
  color: var(--tx);
}
html, body { background: #0E0E10; }
/* Login, boas-vindas e carregamento ficam nas cores de marca: chumbo e dourado. */
.app[data-accent-league="brand"] { --app-accent: #E4B65D; --app-accent-rgb: 228,182,93; --app-accent-light: #F8D982; --app-accent-deep: #A96F18; --app-accent-ink: #171614; }
.app::before { opacity: .35; }

/* ---------- tipografia ---------- */
.app .fd, .app h1, .app .hd__t {
  font-family: var(--fd); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0;
}
.app h1 { font-size: 46px; line-height: .86; }
.app h1 em { color: var(--acc); font-style: italic; }
.app h2 { font-family: var(--fd); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0; }
.app .cap { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.app .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.app .acc { color: var(--acc); }
.app .subtitle { color: var(--tx2); font-size: 14px; line-height: 1.45; }
.app .helper { color: var(--tx3); }
.app .text-link { color: var(--acc); }

/* ---------- botões ---------- */
.app .checkin-cta,
.app .button.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 14px -10px rgba(var(--app-accent-rgb), .45);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  font: 900 italic 21px/1 var(--fd); text-transform: uppercase; letter-spacing: .02em;
}
.app .checkin-cta:hover, .app .button.primary:hover { background: var(--acc); filter: brightness(1.06); }
.app .checkin-cta:disabled, .app .button.primary:disabled { opacity: .55; filter: saturate(.5); }
.app .checkin-cta svg, .app .button.primary svg { width: 22px; height: 22px; flex: none; }
.app .checkin-cta.secondary-cta { background: var(--s2); color: var(--tx); box-shadow: none; }
.app .button.primary { min-height: 48px; font-size: 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.app .button.secondary {
  min-height: 48px; border: 0; border-radius: 0; background: var(--s2); color: var(--tx);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); font-weight: 800;
}
.app .btn-ic {
  width: 44px; height: 44px; flex: none; position: relative; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--s1); color: var(--tx); padding: 0;
}
.app .btn-ic svg { width: 21px; height: 21px; }
.app .btn-ic--ghost { background: none; pointer-events: none; }
.app .btn-ic--glass { background: rgba(14,14,16,.55); backdrop-filter: blur(10px); color: #fff; }
.app .btn-ic .notification-dot {
  position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 0 2px var(--s1);
}
.app .follow-button,
.app .invite-user-button,
.app .member-remove-button,
.app .push-setting-button {
  min-width: 94px; height: 40px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--acc); color: var(--acc-ink); font: 800 12px Manrope, sans-serif; letter-spacing: .02em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.app .follow-button.following,
.app .invite-user-button.sent,
.app .member-remove-button,
.app .push-setting-button.active { background: var(--s2); color: var(--tx); border: 0; }
.app .follow-button:not(.following) { border: 0; background: var(--acc); color: var(--acc-ink); }

/* chips em paralelogramo */
.app .pls, .app .filter-tabs { display: flex; flex-wrap: wrap; gap: 6px 3px; margin: 14px 0 16px; }
.app .pl, .app .filter-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px;
  border: 0; border-radius: 0; background: var(--s1); color: var(--tx2);
  font: 700 13px Manrope, sans-serif; white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.app .pl.is-on, .app .filter-tab.active { background: var(--acc); color: var(--acc-ink); border: 0; }

/* número de peito */
.app .bib {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 5px;
  background: #F5F3EF; color: #111; font: 900 italic 15px var(--fd); text-transform: uppercase; letter-spacing: .02em;
}

/* marcas de mira */
.app .brk {
  position: absolute; inset: 9px; z-index: 3; pointer-events: none; --c: var(--acc);
  background:
    linear-gradient(var(--c),var(--c)) 0 0/12px 2px, linear-gradient(var(--c),var(--c)) 0 0/2px 12px,
    linear-gradient(var(--c),var(--c)) 100% 0/12px 2px, linear-gradient(var(--c),var(--c)) 100% 0/2px 12px,
    linear-gradient(var(--c),var(--c)) 0 100%/12px 2px, linear-gradient(var(--c),var(--c)) 0 100%/2px 12px,
    linear-gradient(var(--c),var(--c)) 100% 100%/12px 2px, linear-gradient(var(--c),var(--c)) 100% 100%/2px 12px;
  background-repeat: no-repeat;
}

/* ---------- cabeçalhos ---------- */
.app .hd { display: flex; align-items: center; gap: 10px; min-height: 60px; margin: -8px 0 6px; }
.app .hd__t { flex: 1; margin: 0; font-size: 30px; line-height: 1; }
.app .hd--big .hd__t { font-size: 46px; line-height: .9; }
.app .hd__step { width: 44px; text-align: right; color: var(--tx2); font-size: 12px; }
.app .bar-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; margin: -8px 0 8px; }
.app .bar-top > b { font-size: 16px; font-weight: 800; }
.app .bar-top > .btn-ic:first-child + b { flex: 1; text-align: center; }
.app .top__btns { display: flex; gap: 8px; }
.app .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; margin: -6px 0 4px; }
.app .who { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.app .who > div { min-width: 0; }
.app .hi { margin: 3px 0 0; font: 900 italic 26px/1 var(--fd); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .avatar-initial { display: grid; place-items: center; flex: none; font-family: var(--fd); font-style: italic; font-weight: 900; }
.app .avatar.av-ring { width: 42px; height: 42px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.app .daily-motivation { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--tx2); }
.app .sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.app .sec h3 { margin: 0; font: 900 italic 22px/1 var(--fd); text-transform: uppercase; }
.app .sec--tight { margin: 18px 0 8px; }
.app .sec__lnk { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--acc); font: 700 13px Manrope, sans-serif; }
.app .sec__lnk svg { width: 16px; height: 16px; }
.app .section-head h2 { font-size: 22px; }

/* botão voltar textual das telas internas */
.app .back { min-height: 44px; gap: 10px; color: var(--tx); font-weight: 800; }
.app .back svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--s1); }

/* ---------- navegação ---------- */
.app > .nav {
  left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 452px); height: 70px;
  padding: 0 6px; border-radius: 35px; border: 1px solid var(--ln);
  background: rgba(26,26,30,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: center;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.app .nav-item { width: auto; min-width: 0; height: 60px; color: var(--tx3); font-size: 11px; font-weight: 700; }
.app .nav-item span { white-space: nowrap; }
.app .nav-item.active { color: var(--acc); }
.app .nav-item.active::after { display: none; }
.app .nav .nav-item.center {
  width: 54px; height: 54px; margin: -22px auto 0; border-radius: 16px; transform: skewX(-8deg);
  background: var(--acc); color: var(--acc-ink);
  box-shadow: 0 0 0 3px rgba(26,26,30,.9), 0 6px 14px -8px rgba(var(--app-accent-rgb), .45);
}
.app .nav .nav-item.center svg { width: 25px; height: 25px; transform: skewX(8deg); }
.app .nav .nav-item.center span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.app .screen { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }

/* ---------- raia da sequência (Hoje) ---------- */
.app .lane {
  position: relative; margin: 16px 0 0; padding: 16px 18px 18px 22px; border-radius: var(--rad); overflow: hidden;
  display: grid; gap: 12px; border: 1px solid var(--ln);
  background:
    repeating-linear-gradient(100deg, transparent 0 52px, rgba(255,255,255,.04) 52px 54px),
    radial-gradient(120% 90% at 100% 0%, rgba(var(--app-accent-rgb), .2), transparent 60%),
    var(--s1);
}
.app .lane::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--acc); }
.app .lane__h { display: flex; align-items: center; gap: 10px; }
.app .lane__cal { margin-left: auto; display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--tx2); }
.app .lane__cal svg { width: 15px; height: 15px; }
.app .lane__n { display: flex; align-items: flex-end; gap: 10px; }
.app .lane__n b { font-size: 104px; line-height: .78; letter-spacing: -.02em; color: var(--acc); text-shadow: 0 0 14px rgba(var(--app-accent-rgb), .18); }
.app .lane__n span { padding-bottom: 6px; font-size: 26px; line-height: .9; }
.app .lane--zero .lane__n b { color: transparent; -webkit-text-stroke: 2px var(--acc); text-shadow: none; }
.app .hurdles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.app .hurdles li { display: grid; gap: 4px; justify-items: center; font-size: 8px; font-weight: 800; color: var(--tx3); }
.app .hurdles i { width: 100%; height: 7px; border-radius: 2px; background: var(--s2); transform: skewX(-18deg); }
.app .hurdles .is-done i { background: var(--acc); }
.app .hurdles .is-today i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--acc); }
.app .hurdles .is-today { color: var(--acc); }
.app .hurdles .is-frozen i { background: repeating-linear-gradient(135deg, #8EC9FF 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px #8EC9FF; }
.app .split { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--tx2); font: 500 13px Manrope, sans-serif; text-align: left; }
.app .split b { font-size: 22px; color: var(--tx); }
.app .split em { margin-left: auto; font: 900 italic 18px var(--fd); color: var(--acc); white-space: nowrap; }
.app .lane-track { position: relative; height: 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--s2) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); }
.app .lane-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--acc); box-shadow: 0 0 4px rgba(var(--app-accent-rgb), .35); }
.app .lane-track b { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: #fff; }
.app .lane .checkin-cta { margin-top: 2px; }

/* ---------- feed ---------- */
.app .feed-card { margin: 0 0 16px; border: 0; border-radius: var(--rad); background: var(--s1); box-shadow: none; overflow: hidden; }
.app .post-card .post-media { position: relative; min-height: 360px; overflow: hidden; background: var(--s2); }
.app .post-card .post-photo { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.app .post-card .speed {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(var(--app-accent-rgb), .18) 22px 24px);
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000);
}
.app .post-card .post-head {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: 14px; gap: 10px;
  background: linear-gradient(rgba(0,0,0,.6), transparent);
}
.app .post-card .post-author { min-width: 0; color: #fff; }
.app .post-card .post-name { color: #fff; font-weight: 800; }
.app .post-card .post-place { color: rgba(255,255,255,.75); }
.app .post-type {
  flex: none; padding: 7px 12px; border-radius: 4px; transform: skewX(-10deg);
  background: rgba(14,14,16,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font: 700 12px Manrope, sans-serif; font-style: normal;
}
.app .post-overlay {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 70px 14px 14px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.app .post-card .post-copy {
  margin: 0; padding: 0; color: #fff; font: 900 italic 26px/.95 var(--fd); text-transform: uppercase;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.app .post-card .post-actions { flex: none; padding: 0; gap: 8px; color: #fff; }
.app .post-card .action {
  height: 44px; padding: 0 14px; border-radius: 22px; background: rgba(14,14,16,.6); backdrop-filter: blur(8px);
  color: #fff; font-weight: 800; font-size: 14px;
}
.app .post-card .action > span:not(:first-child) { display: none; }
.app .post-card .action.like > span { display: inline; }
.app .post-card .action.like.active { color: var(--acc); }
.app .post-card .action.like.active svg { fill: currentColor; }
.app .post-card .post-community,
.app .post-card .moderation-label,
.app .post-card .post-tags { margin: 0; padding: 12px 14px 0; }
.app .post-card .post-participants { padding: 12px 14px 14px; }
.app .post-card > :last-child:not(.post-media) { padding-bottom: 14px; }
.app .post-badge { background: rgba(14,14,16,.55); }

/* ---------- vazio / carregando / erro ---------- */
.app .empty, .app .community-zero-state, .app .community-invite-empty {
  position: relative; margin: 16px 0 0; padding: 24px 18px; display: grid; justify-items: center; gap: 8px; text-align: center;
  border: 1.5px dashed rgba(255,255,255,.16); border-radius: var(--rad); background: none; color: var(--tx2);
}
.app .empty > svg, .app .community-zero-state > svg, .app .community-invite-empty > svg {
  width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--s1); color: var(--acc); box-sizing: border-box;
}
.app .empty b, .app .community-zero-state b, .app .community-invite-empty b {
  margin-top: 4px; color: var(--tx); font: 900 italic 26px/1 var(--fd); text-transform: uppercase;
}
.app .empty span, .app .community-zero-state span { max-width: 280px; font-size: 13.5px; line-height: 1.45; }
.app .empty .checkin-cta { margin-top: 8px; }
.app .activity-error, .app .off {
  display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--ln); background: var(--s1); color: var(--tx2);
}

/* ---------- perfil ---------- */
.app .profile-screen.rank-theme { background: none; }
.app .profile-screen.rank-theme::before { display: none; }
.app .id, .app .profile-user.profile-identity-centered.id, .app .public-profile.profile-identity-centered.id {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; margin: 4px 0 0; text-align: left;
}
.app .profile-identity-centered.id h1, .app .profile-identity-centered.id .handle { margin-top: 0; text-align: left; }
.app .profile-identity-centered.id .handle { margin-top: 4px; }
.app .public-profile.profile-identity-centered.id .league-chip { margin-inline: 0; }
.app .profile-identity-centered.id .avatar { border: 0; }
.app .bar-top .profile-settings { position: static; width: 44px; height: 44px; border: 0; background: var(--s1); color: var(--tx); box-shadow: none; }
.app .id .avatar.av-xl, .app .id .avatar-initial.av-xl {
  width: 84px; height: 84px; flex: none; font-size: 24px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--acc);
}
.app .id .own-profile-avatar, .app .id .public-avatar { flex: none; padding: 0; border: 0; background: none; margin: 0; }
.app .id__t { min-width: 0; flex: 1; padding-right: 82px; }
.app .id__n { margin: 0; font-size: 34px; line-height: .9; overflow-wrap: anywhere; }
.app .id .handle { margin: 4px 0 0; color: var(--tx2); font-size: 13px; }
.app .id .league-chip, .app .league-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 11px 5px 7px; border-radius: 14px;
  color: var(--acc); background: rgba(var(--rank-tier-rgb, var(--app-accent-rgb)), .14);
  border: 1px solid rgba(var(--rank-tier-rgb, var(--app-accent-rgb)), .4); font-size: 12px; font-weight: 800; letter-spacing: 0;
}
.app .league-chip .league-pin { width: 18px; height: 18px; }
.app .bib--id {
  position: absolute; right: 0; top: -2px; flex-direction: column; height: auto; padding: 6px 10px 4px;
  font-size: 30px; line-height: .9; border-radius: 6px; box-shadow: inset 0 0 0 2px #111;
}
.app .bib--id small { font: 800 9px Manrope, sans-serif; letter-spacing: .06em; font-style: normal; }
.app .profile-screen .bio { margin: 14px 0 0; color: var(--tx2); font-size: 14px; line-height: 1.45; text-align: left; }
.app .profile-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.app .follow { display: flex; gap: 10px; margin-top: 14px; }
.app .follow .checkin-cta { min-height: 48px; font-size: 19px; }
.app .stats-pista { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-block: 1px solid var(--ln); }
.app .stats-pista .stat {
  display: grid; justify-items: start; gap: 2px; padding: 12px 0; border: 0; background: none; color: var(--tx2);
  text-align: left; font: 500 12px Manrope, sans-serif;
}
.app .stats-pista .stat + .stat { padding-left: 14px; border-left: 1px solid var(--ln); }
.app .stats-pista .stat b { font: 900 italic 28px/1 var(--fd); color: var(--tx); }
.app .stats-pista .stat span { font-size: 12px; text-transform: none; letter-spacing: 0; }
.app .pat {
  width: 100%; margin-top: 16px; padding: 16px; border-radius: var(--rad); border: 1px solid var(--ln); background: var(--s1);
  display: grid; grid-template-columns: 58px 1fr; gap: 10px 14px; align-items: center; color: var(--tx); text-align: left; font: inherit;
}
.app .pat__md { width: 58px; height: 58px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.app .pat__n { margin: 2px 0 0; font-size: 30px; line-height: 1; }
.app .pat__s { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: 12px; color: var(--tx2); }
.app .pat__s svg { width: 14px; height: 14px; color: var(--acc); }
.app .pat__lane { grid-column: 1 / -1; display: grid; gap: 8px; }
.app .pat__lane p { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; color: var(--tx2); }
.app .pat__lane .mono { font-size: 11px; }
.app .patent-badge-strip { gap: 14px; padding: 4px 2px 8px; }
.app .patent-pin-shine::after { display: none; animation: none; }
.app .patent-badge-icon img, .app.app .rank-theme .patent-badge-icon img, .app .rank-stop-badge, .app .rank-collection-item img { filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.app .rt--locked .rank-stop-badge, .app .rank-collection-item.locked img { filter: none; }
.app .patent-badge-icon { width: 54px; min-height: 54px; padding: 0; border: 0; border-radius: 50%; background: none; }
.app .patent-badge-icon img { width: 50px; height: 50px; }
.app .patent-badge-empty { width: 50px; height: 50px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.2); }
.app .patent-badge-detail { margin: 6px 0 0; color: var(--tx2); font-size: 12px; }
.app .tabs, .app .community-tabs { display: flex; gap: 18px; margin: 18px 0 0; padding: 0; border-bottom: 1px solid var(--ln); overflow-x: auto; scrollbar-width: none; }
.app .tabs > span, .app .tabs > button, .app .community-tabs button {
  display: flex; align-items: center; gap: 5px; padding: 10px 0; border: 0; background: none; color: var(--tx3);
  font: 700 13px Manrope, sans-serif; white-space: nowrap;
}
.app .tabs > button { color: var(--tx2); }
.app .tabs svg, .app .community-tabs svg { width: 14px; height: 14px; }
.app .tabs .is-on, .app .community-tabs button.active { color: var(--tx); border: 0; box-shadow: inset 0 -2px var(--acc); }
.app .profile-week-grid { margin-top: 12px; gap: 4px; }
.app .profile-week-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.app .profile-week-grid figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.app .profile-week-grid figcaption { position: absolute; left: 6px; top: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.55); font-size: 9px; font-weight: 800; color: #fff; }
.app .activity-grid img { border-radius: 12px; }
.app .profile-week-empty { margin-top: 12px; padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.14); background: none; }
.app .profile-actions { display: flex; justify-content: center; gap: 22px; margin: 26px 0 0; }
.app .profile-actions button { border: 0; background: none; color: var(--tx3); font-size: 12px; font-weight: 700; }

/* gelinho como faixa de informação */
.app .freeze-card {
  position: relative; margin: 18px 0 0; padding: 12px 14px 12px 18px; border: 0; border-radius: 4px 14px 14px 4px; background: var(--s1);
}
.app .freeze-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #8EC9FF; }
.app .freeze-card .freeze-icon { color: #8EC9FF; background: none; }
.app .freeze-card p, .app .freeze-card small { color: var(--tx2); }

/* ---------- rota de patentes ---------- */
.app .progress-screen .lts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 4px 0 14px; }
.app .lt {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; padding: 0 4px;
  border: 0; background: var(--s1); color: var(--tx2); font: 800 11.5px Manrope, sans-serif; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.app .lt i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--rank-tier); }
.app .lt svg { width: 12px; height: 12px; }
.app .lt--on { background: var(--rank-tier); color: #111; }
.app .lt--on i { background: #111; }
.app .lt--lock { opacity: .55; }
.app .rank-route-list { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.app .rank-route-list::before, .app .rank-route-list::after { display: none; }
.app .rank-route-list .rank-league-section { --acc: var(--rank-tier); margin: 0; padding: 0; border: 0; background: none; }
.app .rota__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; color: var(--tx2); }
.app .rota__sum b { margin-right: 3px; font-size: 28px; color: var(--tx); }
.app .rota__sum .mono { color: var(--acc); }
.app .rota__range { margin: 6px 0 16px; color: var(--tx3); }
.app .rota { position: relative; margin: 0; padding: 0; list-style: none; }
.app .rota::before {
  content: ''; position: absolute; left: 64px; top: -8px; bottom: -8px; width: 60px;
  background: repeating-linear-gradient(180deg, transparent 0 36px, rgba(255,255,255,.06) 36px 38px), var(--s1);
  border-inline: 2px solid rgba(255,255,255,.14);
}
.app .rota::after {
  content: ''; position: absolute; left: 66px; top: -8px; width: 56px; height: calc(var(--fill) + 8px);
  background: linear-gradient(180deg, rgba(var(--rank-tier-rgb), .18), rgba(var(--rank-tier-rgb), .5));
  box-shadow: 0 3px 0 #fff;
}
.app .rt { position: relative; z-index: 1; height: 76px; }
.app .rt .rank-stop {
  width: 100%; height: 100%; display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  padding: 0; border: 0; border-radius: 0; background: none; color: var(--tx); text-align: left; opacity: 1;
}
.app .rt__at { text-align: right; font-size: 11px; color: var(--tx3); }
.app .rt__md { display: grid; place-items: center; }
.app .rt .rank-stop-badge { width: 44px; height: 44px; margin: 0; filter: none; opacity: 1; }
.app .rt--current .rank-stop-badge { width: 58px; height: 58px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.app .rt__t { min-width: 0; }
.app .rt b { display: block; font-size: 22px; line-height: 1; color: var(--tx); }
.app .rt__t > span { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--tx2); }
.app .rt__t svg { width: 13px; height: 13px; }
.app .rt--done .rt__at, .app .rt--current .rt__at, .app .rt--done .rt__t svg { color: var(--acc); }
.app .rt--current b { font-size: 30px; color: var(--acc); }
.app .rt--current .rt__t > span { color: var(--tx); font-weight: 700; }
.app .rt--locked b { color: var(--tx3); }
.app .rt--next b { color: var(--tx); }
.app .rt em { font-style: normal; font-size: 12px; color: var(--acc); padding: 5px 8px; border: 1px solid var(--acc); border-radius: 4px; }
.app .progress-screen .badge-gallery { margin-top: 26px; }

/* ---------- busca e listas de pessoas ---------- */
.app .search-box {
  min-height: 50px; border-radius: 12px; border: 1.5px solid var(--ln); background: var(--s1); color: var(--tx2);
}
.app .search-box:focus-within { border-color: var(--acc); }
.app .search-box input { color: var(--tx); font-size: 16px; font-weight: 600; caret-color: var(--acc); }
.app .hint, .app .privacy-note { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--tx3); }
.app .person-row, .app .notification-row, .app .community-row {
  grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 64px; gap: 12px; border-bottom: 1px solid var(--ln); background: none;
}
.app .person-row .avatar, .app .notification-row .avatar { width: 44px; height: 44px; }
.app .person-row b { font-size: 14px; }
.app .person-row span { color: var(--tx2); }
.app .request-actions { display: flex; gap: 6px; }
.app .mini-action {
  width: 42px; height: 40px; border: 0; border-radius: 0; background: var(--acc); color: var(--acc-ink);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.app .mini-action.decline { background: var(--s2); color: var(--tx); }

/* ---------- atividade ---------- */
.app .notification-list { display: grid; gap: 4px; }
.app .notification-row.unread { background: none; }
.app .notification-row.is-request {
  position: relative; margin: 4px 0 8px; padding: 14px 14px 14px 18px; border: 0; border-radius: 4px 16px 16px 4px; background: var(--s1);
}
.app .notification-row.is-request::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.app .req__k { margin: 0 0 6px; color: var(--acc); }
.app .activity-content b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.app .activity-content span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--tx3); }
.app .activity-thumbnail { width: 44px; height: 55px; border-radius: 8px; }
.app .activity-thumbnail img { border-radius: 8px; }
.app .activity-kind { width: 44px; height: 44px; border-radius: 12px; background: var(--s2); color: var(--acc); display: grid; place-items: center; }
.app .activity-unread { background: var(--acc); }
.app .mention-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app .mention-actions button {
  height: 42px; border: 0; border-radius: 0; background: var(--acc); color: var(--acc-ink); font: 800 13px Manrope, sans-serif;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.app .mention-actions button + button { background: var(--s2); color: var(--tx); }
.app .mention-hint { color: var(--tx3); }

/* ---------- Bondes ---------- */
.app .my-community { border-radius: var(--rad); border: 1px solid var(--ln); background: var(--s1); }
.app .my-community h2 { font-size: 36px; line-height: .9; }
.app .community-screen { padding-top: 0; }
.app .bn {
  position: relative; height: 252px; margin: 0 -20px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--app-accent-rgb), .3), transparent 60%), var(--s1);
}
.app .bn::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 32%, rgba(14,14,16,.55) 66%, var(--bg)); }
.app .bn .community-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: 1; }
.app .bn .community-cover-fallback { color: var(--tx3); font: 900 italic 18px var(--fd); }
.app .bn__back { position: absolute; z-index: 4; left: 16px; top: max(16px, env(safe-area-inset-top)); }
.app .bn__h { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 10px; padding: 0; }
.app .bn__h .cap { color: var(--acc); }
.app .bn__h h1 { margin: 2px 0 0; font-size: 48px; line-height: .9; color: #fff; }
.app .bn__m { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--tx2); }
.app .bn__m svg { width: 14px; height: 14px; }
.app .bn__desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--tx2); }
.app .relay {
  position: relative; display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 16px 14px 20px; border: 0; border-radius: 4px 20px 20px 4px;
  background: repeating-linear-gradient(100deg, transparent 0 52px, rgba(255,255,255,.035) 52px 54px), var(--s1);
}
.app .relay::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.app .relay__h { display: flex; align-items: center; gap: 10px; }
.app .relay__h .mono { color: var(--tx2); }
.app .relay__h .text-link { margin-left: auto; }
.app .relay h2 { margin: 2px 0 0; font-size: 30px; line-height: 1; }
.app .relay__g { margin: 0; font-size: 12.5px; color: var(--tx2); }
.app .relay__n { margin: 2px 0 0; font-size: 60px; line-height: .85; color: var(--acc); }
.app .relay__n small { font-size: 26px; color: var(--tx2); }
.app .legs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.app .legs li { display: grid; gap: 5px; }
.app .legs b { display: block; height: 12px; overflow: hidden; background: var(--s2); transform: skewX(-18deg); }
.app .legs b i { display: block; height: 100%; background: var(--acc); }
.app .legs .is-run b i { box-shadow: 4px 0 0 #fff; }
.app .legs span { font-size: 9.5px; color: var(--tx3); }
.app .legs .is-done span, .app .legs .is-run span { color: var(--tx2); }
.app .relay__f { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--ln); }
.app .relay__f dt { font-size: 11px; font-weight: 700; color: var(--tx3); }
.app .relay__f dd { margin: 0; font-size: 26px; line-height: 1.1; }
.app .relay__f small { font-size: 14px; color: var(--tx2); }

/* ---------- ranking ---------- */
.app .rk__s { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 10px; color: var(--tx2); }
.app .rk__s svg { width: 14px; height: 14px; }
.app .podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
.app .pd { --pc: #CF8A52; }
.app .pd--1 { --pc: #F4C451; }
.app .pd--2 { --pc: #C9CDD3; }
.app .pd > button { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--tx); text-align: center; }
.app .pd .avatar { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pc); }
.app .pd--1 .avatar { width: 64px; height: 64px; }
.app .pd b { max-width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.app .pd .mono { font-size: 9.5px; color: var(--tx2); }
.app .pd__b {
  width: 100%; margin-top: 8px; display: grid; place-items: center; font-size: 46px; line-height: 1; color: #141416; background: var(--pc);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.app .pd--1 .pd__b { height: 88px; }
.app .pd--2 .pd__b { height: 64px; }
.app .pd--3 .pd__b { height: 48px; }
.app .res-h { display: grid; grid-template-columns: 34px 1fr 44px 40px; gap: 10px; padding: 0 10px; margin-bottom: 4px; font-size: 9.5px; color: var(--tx3); }
.app .res-h span:nth-child(n+3) { text-align: right; }
.app .rks { display: grid; gap: 4px; }
.app .rks .leader-row {
  width: 100%; display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) 44px 40px; gap: 10px; align-items: center;
  min-height: 52px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--s1); color: var(--tx); text-align: left;
}
.app .rks .position { font-style: italic; font-size: 28px; color: var(--tx2); background: none; width: auto; height: auto; }
.app .rks .avatar { width: 36px; height: 36px; }
.app .rks .leader-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.app .rks .leader-rank { margin: 0; font-size: 11.5px; color: var(--tx3); }
.app .rks .leader-score { text-align: right; font-size: 15px; font-weight: 500; color: var(--tx); }
.app .rks .dif { text-align: right; font-size: 11px; color: var(--tx3); }
.app .rks .is-me { background: rgba(var(--app-accent-rgb), .16); box-shadow: inset 3px 0 var(--acc); }
.app .rks .is-me .position, .app .rks .is-me .dif { color: var(--acc); }
.app .community-ranking { margin-top: 16px; }

/* ---------- check-in ---------- */
.app .camera-capture-stage {
  position: relative; min-height: 400px; border-radius: 18px; border: 0; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(var(--app-accent-rgb), .08) 22px 24px), radial-gradient(circle at 50% 42%, rgba(var(--app-accent-rgb), .14), var(--s1) 68%);
  color: var(--tx); text-align: center;
}
.app .camera-capture-stage > span {
  width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; background: var(--acc); color: var(--acc-ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.35); margin: 0;
}
.app .camera-capture-stage b { font: 900 italic 28px var(--fd); text-transform: uppercase; }
.app .camera-capture-stage small { max-width: 260px; color: var(--tx2); font-size: 13px; line-height: 1.4; }
.app .cam__seq { display: flex; align-items: center; gap: 6px; color: var(--acc); font-style: normal; }
.app .cam__seq svg { width: 14px; height: 14px; }
.app .caption, .app .profile-form input, .app .profile-form textarea, .app .profile-form select {
  border-radius: 12px; border: 1px solid var(--ln); background: var(--s1); color: var(--tx);
}
.app .caption:focus, .app .profile-form input:focus, .app .profile-form textarea:focus { outline: 0; border-color: var(--acc); }
.app .compose-section > b, .app .profile-form label { font-size: 12px; font-weight: 800; color: var(--tx2); }
.app .workout-chip, .app .onboarding-interest {
  height: 38px; padding: 0 16px; border: 0; border-radius: 0; background: var(--s1); color: var(--tx2); font-weight: 700;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.app .workout-chip.active, .app .onboarding-interest.active { background: var(--acc); color: var(--acc-ink); border: 0; }
.app .tag-athlete { height: 40px; border-radius: 20px; border: 1px solid var(--ln); background: var(--s1); }
.app .share-check { border-radius: 10px; border: 1px solid var(--ln); background: var(--s1); }

/* ---------- entrada, cadastro e login ---------- */
.app .onboarding, .app .auth-screen { position: relative; }
.app .onboarding-hero, .app .auth-screen .form-header {
  position: relative; overflow: hidden; margin: 0 -20px; padding: 40px 20px 26px;
  background:
    repeating-linear-gradient(100deg, transparent 0 30px, rgba(var(--app-accent-rgb), .14) 30px 32px),
    radial-gradient(120% 80% at 100% 0%, rgba(var(--app-accent-rgb), .28), transparent 62%),
    linear-gradient(180deg, #1B1B20, var(--bg));
}
.app .onboarding-hero h1, .app .onboarding-copy h1, .app .auth-screen h1 { font-size: 64px; line-height: .84; }
.app .onboarding-hero p, .app .eyebrow, .app .onboarding-copy > p { color: var(--acc); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .06em; }
.app .onboarding-orbit { border-color: rgba(var(--app-accent-rgb), .4); color: var(--acc); }
.app .onboarding-progress { background: var(--s2); }
.app .onboarding-progress i { background: var(--acc); }
.app .auth-link {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--ln); background: var(--s1); color: var(--tx); font-weight: 700;
}
.app .brand-lockup img { display: none; }
.app .brand-lockup { gap: 0; }
.app .brand, .app .brand-lockup span { font-family: var(--fd); font-style: italic; font-weight: 900; text-transform: uppercase; }
.app .brand b, .app .brand-lockup b { color: var(--fit, var(--acc)); }

/* ---------- card de compartilhamento: Telemetria ---------- */
/* Medidas em unidades da imagem exportada (1080 de largura) para a prévia bater com o arquivo. */
.app .share-telemetry {
  --acc: var(--overlay-accent); --u: calc(100cqw / 1080);
  container-type: inline-size; position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 14px auto 0; overflow: hidden;
  border: 0; border-radius: 0; background: #0E0E10;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.app .share-telemetry > * { position: absolute; z-index: 2; margin: 0; }
.app .share-telemetry img { opacity: 1; }
.app .share-telemetry::before { display: none; }
.app .share-telemetry .t-photo { inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.app .share-telemetry::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(0,0,0,.55), transparent 26%, transparent 42%, rgba(6,6,8,.92) 76%);
}
.app .share-telemetry .brk { z-index: 3; inset: calc(34 * var(--u)); }
.app .share-telemetry .t-top { left: calc(84 * var(--u)); top: calc(84 * var(--u)); font-size: calc(40 * var(--u)); color: #fff; }
.app .share-telemetry .t-top span { color: var(--acc); }
.app .share-telemetry .t-date { right: calc(84 * var(--u)); top: calc(86 * var(--u)); display: flex; align-items: center; gap: calc(22 * var(--u)); font-size: calc(38 * var(--u)); color: #fff; }
.app .share-telemetry .t-date i { width: calc(26 * var(--u)); height: calc(26 * var(--u)); background: var(--acc); }
.app .share-telemetry .t-n { left: calc(50 * var(--u)); top: calc(460 * var(--u)); font-size: calc(692 * var(--u)); line-height: .78; letter-spacing: -.03em; color: var(--acc); text-shadow: 0 0 18px color-mix(in srgb, var(--acc) 18%, transparent); }
.app .share-telemetry .t-l { left: calc(84 * var(--u)); top: calc(1068 * var(--u)); font-size: calc(40 * var(--u)); color: #fff; }
.app .share-telemetry .t-data {
  left: calc(60 * var(--u)); right: calc(60 * var(--u)); bottom: calc(60 * var(--u)); display: grid; gap: calc(34 * var(--u)); padding: calc(53 * var(--u));
  background: rgba(10,10,12,.78); backdrop-filter: blur(10px);
  clip-path: polygon(calc(38 * var(--u)) 0, 100% 0, 100% calc(100% - 38 * var(--u)), calc(100% - 38 * var(--u)) 100%, 0 100%, 0 calc(38 * var(--u)));
}
.app .share-telemetry .t-k { font-size: calc(36 * var(--u)); color: var(--tx3); }
.app .share-telemetry .wk { display: flex; align-items: flex-end; gap: calc(19 * var(--u)); height: calc(150 * var(--u)); padding: 0 calc(11 * var(--u)); border-bottom: calc(4 * var(--u)) solid var(--ln); }
.app .share-telemetry .wk i { flex: 1; background: color-mix(in srgb, var(--acc) 30%, #2A2A30); transform: skewX(-12deg); }
.app .share-telemetry .wk .is-full { background: var(--acc); }
.app .share-telemetry .wk .is-now { background: repeating-linear-gradient(135deg, var(--acc) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--acc); }
.app .share-telemetry dl { display: grid; gap: calc(14 * var(--u)); margin: 0; font-size: calc(38 * var(--u)); }
.app .share-telemetry dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.app .share-telemetry dt { color: var(--tx3); }
.app .share-telemetry dd { display: flex; align-items: center; gap: calc(14 * var(--u)); min-width: 0; margin: 0; overflow: hidden; color: var(--tx); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.app .share-telemetry dd img { width: calc(52 * var(--u)); height: calc(52 * var(--u)); flex: none; }
.app .share-telemetry dd.acc { color: var(--acc); }
.app .share-telemetry .t-crew dd { gap: calc(10 * var(--u)); }
.app .share-telemetry .t-crew .avatar { width: calc(56 * var(--u)); height: calc(56 * var(--u)); margin: 0 0 0 calc(-14 * var(--u)); border: calc(4 * var(--u)) solid #0E0E10; font-size: calc(22 * var(--u)); }
.app .share-telemetry .t-crew .avatar:first-child { margin-left: 0; }
.app .share-telemetry .t-crew dd > span { overflow: hidden; text-overflow: ellipsis; }
.app .share-sheet .share-league-note { justify-content: center; }

/* ---------- folhas, avisos e toasts ---------- */
.app .sheet { background: var(--bg); border: 1px solid var(--ln); border-bottom: 0; border-radius: 28px 28px 0 0; }
.app .sheet h2 { font-size: 28px; line-height: 1; }
.app .toast { border-radius: 4px; transform: translateX(-50%) skewX(-6deg); background: var(--acc); color: var(--acc-ink); font-weight: 800; }
.app .consent { border-radius: var(--rad); border: 1px solid var(--ln); background: var(--s1); }
.app .settings-row { color: var(--tx); }
.app .feed-card .settings-row, .app .feed-card .leader-row { background: none; }

@media (prefers-reduced-motion: reduce) {
  .app .lane-track i, .app .lane__n b { box-shadow: none; text-shadow: none; }
}

/* ---------- editor da foto do check-in: pinça e arraste ---------- */
.app .photo-editor-stage.is-gesture { touch-action: none; cursor: grab; }
.app .photo-editor-stage.is-gesture:active { cursor: grabbing; }
.app .photo-editor-stage > img { position: absolute; left: 0; top: 0; max-width: none; transform: none; user-select: none; -webkit-user-drag: none; }

/* ---------- montador do story (compartilhar) ---------- */
.app .share-composer {
  --u: calc(100cqw / 1080);
  container-type: inline-size; position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; margin: 14px auto 0;
  overflow: hidden; border-radius: 16px; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.app .share-composer img { max-width: none; -webkit-user-drag: none; }
.app .sc-photo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: fill; }
.app .sc-shade { position: absolute; inset: 0 0 auto; height: calc(420 * var(--u)); background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
.app .sc-templates { display: flex; gap: 6px; margin: 12px -16px 0; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.app .sc-templates::-webkit-scrollbar { display: none; }
.app .sc-chip {
  flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--ln); border-radius: 999px; background: var(--s1);
  color: var(--tx2); font: 700 12.5px Manrope, sans-serif; white-space: nowrap;
}
.app .sc-chip.active { background: var(--fit, var(--acc)); border-color: transparent; color: #111; }
.app .sc-wm {
  position: absolute; left: 0; right: 0; top: calc(200 * var(--u)); transform: translateY(-50%); margin: 0; text-align: center; pointer-events: none;
  color: #fff; font: 900 italic calc(64 * var(--u))/1 var(--fd); text-transform: uppercase; text-shadow: 0 calc(4 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.35);
}
.app .sc-wm b { color: var(--fit); }
.app .sc-sticker { position: absolute; touch-action: none; cursor: move; outline: 1.5px dashed rgba(255,255,255,.75); outline-offset: 3px; }
.app .sc-sticker > img { display: block; width: 100%; height: 100%; pointer-events: none; }
.app .sc-handle {
  position: absolute; right: -15px; bottom: -15px; width: 30px; height: 30px; border-radius: 50%; touch-action: none; cursor: nwse-resize;
  background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 4px 10px rgba(0,0,0,.4);
}
.app .sc-handle::before { content: ''; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-right: 2.5px solid #111; border-bottom: 2.5px solid #111; }
.app .sc-safe { position: absolute; left: 0; right: 0; pointer-events: none; border: 0 dashed rgba(255,255,255,.35); }
.app .sc-safe.top { top: 0; height: calc(250 * var(--u)); border-bottom-width: 1px; }
.app .sc-safe.bottom { bottom: 0; height: calc(330 * var(--u)); border-top-width: 1px; }
.app .sc-loading { position: absolute; left: 0; right: 0; bottom: 30%; margin: 0; text-align: center; color: #fff; font: 700 13px var(--ui, Manrope, sans-serif); }
.app .sc-hint { max-width: 340px; margin: 10px auto 0; text-align: center; color: var(--tx3); font-size: 11.5px; line-height: 1.45; }
.app .share-sheet { max-height: calc(100dvh - 24px); overflow-y: auto; }
