/* REP original V29 styles — generated from ordered sources. */

/* SOURCE: rep-v23.4-foundation.css */
/* REP V23.4 — generated bundle. Sources retained unmodified. Do not edit this bundle directly. */

/* === SOURCE: profile.css === */
/* REP V7 - visual language, character creator, profile and social */
:root { --rep-ink:#0b1014; --rep-surface:#151d21; --rep-panel:#182328; --rep-line:#2c3b40; --rep-accent:#b8ff65; --rep-muted:#91a1a6; }
.profile-trigger {display:flex;gap:9px;align-items:center;background:transparent;border:0;color:#e9f2ef;font-weight:800;font-size:13px;padding:4px 5px 4px 4px;border-radius:16px;}
.profile-trigger:focus-visible {outline:2px solid var(--rep-accent);outline-offset:3px;}
.top-avatar {width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#23353d;overflow:hidden;border:1px solid #41575c;flex:0 0 auto;}
.top-avatar svg {width:100%;height:100%;}
.wrap:has(.rep-profile-page) {max-width:1180px;}
.rep-profile-page {--accent:var(--rep-accent);}
.profile-two-col {display:grid;grid-template-columns:minmax(0,1.62fr) minmax(280px,.98fr);gap:22px;align-items:start;}
.profile-primary,.profile-side {min-width:0;}
.profile-hero {border:1px solid var(--rep-line);border-radius:23px;background:#141e23;overflow:hidden;margin-bottom:20px;}
.profile-hero-art {height:230px;position:relative;background:#20343d;display:flex;align-items:end;justify-content:center;overflow:hidden;}
.profile-hero-art:before {content:'';position:absolute;width:225px;height:225px;border:2px dashed #466269;border-radius:50%;left:50%;top:12px;transform:translateX(-50%);opacity:.65;}
.profile-hero-art > .profile-large-avatar {position:relative;z-index:1;width:230px;height:230px;margin-bottom:-20px;}
.profile-large-avatar svg {width:100%;height:100%;display:block;}
.profile-hero-edit {position:absolute;right:14px;top:14px;z-index:2;border:1px solid #405a64;background:#13242b;color:#eef4f1;width:42px;height:42px;border-radius:13px;font-size:18px;}
.profile-hero-detail {padding:21px 23px 22px;}
.profile-hero-detail h1 {font-size:31px;letter-spacing:-1.3px;overflow-wrap:anywhere;margin:0 0 4px;line-height:1.12;}
.profile-handle {font-size:14px;color:var(--rep-accent);font-weight:700;}
.profile-join {color:#a5b8b9;font-size:13px;margin-top:11px;}
.profile-metrics {display:flex;gap:12px;margin-top:18px;flex-wrap:wrap;}
.profile-metrics span {font-size:13px;color:#b1c0c3;}
.profile-metrics b {color:#f4fff9;}
.profile-section-title {display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px;gap:10px;}
.profile-section-title h2 {margin:0;font-size:20px;font-weight:850;}
.profile-text-action {border:0;background:transparent;color:var(--rep-accent);font-size:12px;text-transform:uppercase;font-weight:850;letter-spacing:.45px;white-space:nowrap;}
.rep-lifts-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
.rep-lift-card {border:1px solid var(--rep-line);background:#152126;border-radius:17px;padding:17px 13px;min-width:0;}
.rep-lift-icon {font-size:19px;margin-bottom:13px;display:block;color:var(--rep-accent);}
.rep-lift-number {font-size:28px;letter-spacing:-1.3px;font-weight:900;line-height:1;}
.rep-lift-number small {font-size:12px;color:#9db0b5;font-weight:600;}
.rep-lift-label {font-size:12px;color:#9cafb3;margin-top:10px;line-height:1.35;}
.rep-total {border:1px solid #3d5b35;background:#1c2d24;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 19px;margin-top:11px;}
.rep-total .rep-lift-number {color:var(--rep-accent);}
.rep-total small {color:#b1c8b3;font-size:12px;}
.profile-achievement {border:1px solid var(--rep-line);border-radius:19px;background:#152126;min-height:134px;display:flex;align-items:center;gap:16px;padding:18px;}
.profile-achievement-icon {background:#28343a;border:1px solid #3a4d52;color:#8fa5aa;border-radius:17px;width:64px;height:64px;display:grid;place-items:center;font-size:30px;flex:0 0 auto;}
.profile-achievement h3 {margin:0 0 6px;font-size:16px;}.profile-achievement p {margin:0;color:#a1b1b5;font-size:13px;line-height:1.5;}
.profile-social-card {border:1px solid var(--rep-line);background:#152126;border-radius:20px;padding:20px;margin-bottom:15px;}
.profile-social-card h2 {font-size:18px;margin:0 0 8px;}
.profile-social-card > p {font-size:13px;color:#9eb0b5;line-height:1.5;margin:0 0 18px;}
.profile-search {display:flex;align-items:center;gap:8px;border:1px solid #42565c;border-radius:12px;background:#0d171b;padding:0 12px;margin:14px 0;}
.profile-search:focus-within {border-color:var(--rep-accent)}
.profile-search span {font-weight:850;color:var(--rep-accent);font-size:19px;}
.profile-search input {color:#fff;min-height:48px;border:0;outline:0;min-width:0;background:transparent;width:100%;font-size:16px;}
.profile-search-results {min-height:36px;}
.profile-person {display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #2c3d43;min-width:0;}
.profile-person:first-child {border-top:0;}
.profile-person-avatar {width:47px;height:47px;flex:0 0 47px;border-radius:13px;background:#2a4049;overflow:hidden;}
.profile-person-avatar svg {width:100%;height:100%;}
.profile-person-info {flex:1;min-width:0;}.profile-person-info strong {font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.profile-person-info small {font-size:11px;color:#96abb0;}
.profile-person button {border:1px solid #45603e;background:#253b2b;color:var(--rep-accent);padding:8px 12px;border-radius:10px;font-weight:750;font-size:12px;}
.profile-person button.following {border-color:#35484a;color:#b9c9cb;background:#233139;}
.profile-empty {text-align:center;color:#92a6ab;border:1px dashed #35464b;border-radius:15px;padding:22px 14px;font-size:13px;line-height:1.55;}
.profile-empty-illustration {font-size:32px;margin-bottom:8px;display:block;}
#rep-avatar-overlay:empty {display:none;}
.rep-avatar-backdrop {position:fixed;inset:0;background:#080d11;z-index:110;overflow-y:auto;padding:20px 16px max(28px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;}
.rep-avatar-dialog {width:100%;max-width:640px;max-height:100%;overflow-y:auto;}
.rep-avatar-heading {display:flex;justify-content:space-between;align-items:center;gap:14px;}
.rep-avatar-brand {font-size:31px;color:var(--rep-accent);font-weight:1000;letter-spacing:-1.9px;}
.rep-avatar-close {border:1px solid #405056;color:#c9d4d4;background:#18252a;border-radius:11px;width:38px;height:38px;}
.rep-avatar-title {font-size:30px;line-height:1.1;letter-spacing:-1.4px;margin:18px 0 10px;}
.rep-avatar-subtitle {color:#a4b6b8;font-size:14px;line-height:1.5;margin:0 0 14px;}
.rep-avatar-display {position:relative;display:grid;place-items:center;overflow:hidden;height:224px;background:#1d3038;border:1px solid #2f434a;border-radius:19px;margin-bottom:17px;}
.rep-avatar-display svg {width:236px;height:236px;margin-bottom:-25px;}
.rep-options-section {margin:18px 0;}.rep-options-section h3 {font-size:13px;text-transform:uppercase;letter-spacing:1.2px;color:#b7c7c7;margin:0 0 10px;}
.rep-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.rep-option {background:#19262b;border:1px solid #394b51;color:#dbe8e4;border-radius:13px;min-height:64px;padding:9px 5px;display:grid;place-items:center;gap:5px;font-size:11px;font-weight:750;}
.rep-option svg {width:38px;height:38px;}.rep-option.selected {border:2px solid var(--rep-accent);background:#23362a;color:var(--rep-accent);padding:8px 4px;}
.rep-avatar-save {width:100%;min-height:54px;margin-top:10px;}
#rep-dialog-root:empty,#rep-toast-root:empty {display:none;}
.rep-dialog-backdrop {position:fixed;inset:0;background:#060b0ddc;z-index:150;display:grid;place-items:center;padding:18px;}
.rep-dialog {background:#1a262b;border:1px solid #43545a;border-radius:21px;padding:26px;width:100%;max-width:390px;}
.rep-dialog-glyph {width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:#283d30;color:var(--rep-accent);font-weight:900;font-size:24px;margin-bottom:13px;}
.rep-dialog-glyph.is-danger {background:#493036;color:#ffafb4;}
.rep-dialog h2 {font-size:22px;margin-bottom:12px;}.rep-dialog-text p {font-size:14px;line-height:1.5;color:#b4c2c6;margin:5px 0;}
.rep-dialog-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px;}.rep-dialog-actions .btn {padding:12px 8px;}
#rep-toast-root {position:fixed;z-index:155;left:16px;right:16px;top:max(18px,env(safe-area-inset-top));display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;}
.rep-toast {pointer-events:auto;max-width:500px;width:100%;background:#223329;border:1px solid #4f7652;border-radius:13px;color:#e0f7dc;padding:13px 16px;display:flex;align-items:center;gap:11px;font-size:13px;font-weight:650;}
.rep-toast.is-error {background:#38252a;border-color:#78464e;color:#ffd2d2;}
.rep-toast-dot {border-radius:8px;background:#35493a;color:var(--rep-accent);width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;font-weight:900;}
.rep-toast.is-error .rep-toast-dot {color:#ffb1b3;background:#542c33;}
@media(max-width:760px){.profile-two-col {grid-template-columns:1fr;gap:10px;}.profile-hero-art {height:213px;}.profile-hero-art > .profile-large-avatar {width:216px;height:216px;margin-bottom:-18px;}.rep-lifts-grid {gap:7px;}.rep-lift-card {padding:14px 10px;}.rep-lift-number {font-size:24px;}.profile-hero-detail {padding:19px;}.profile-hero-detail h1 {font-size:28px;}.rep-avatar-backdrop {align-items:flex-start;}.rep-avatar-dialog {max-height:none;}}
@media(max-width:390px){.rep-lifts-grid {grid-template-columns:repeat(3,minmax(0,1fr));}.rep-lift-number {font-size:21px;}.rep-options {gap:6px;}.rep-option {font-size:10px;padding:5px 2px;}}

/* REP V9 — precise mobile reading order, every card has an explicit position. */
@media(max-width:760px){
  .profile-two-col{display:flex;flex-direction:column;align-items:stretch;gap:0;}
  .profile-primary,.profile-side{display:contents;}
  .profile-primary>.profile-hero{order:1;}
  .profile-primary>.rep-own-lifts-heading{order:2;}
  .profile-primary>.rep-lifts-grid{order:3;}
  .profile-primary>.rep-total{order:4;}
  .profile-side>.rep-find-card{order:5;margin-top:22px;}
  .profile-side>.rep-incoming-card{order:6;}
  .profile-side>.rep-outgoing-card{order:7;}
  .profile-side>.rep-friends-card{order:8;}
  .profile-primary>.rep-own-achievements-heading{order:9;margin-top:10px;}
  .profile-primary>.profile-achievement{order:10;}
  .profile-side>.rep-settings-button{order:11;margin:22px 0 12px;}
}
/* REP V9 — friend card opens a read-only public profile. */
.rep-friend-open{flex:1;min-width:0;display:flex;align-items:center;gap:11px;background:transparent!important;border:0!important;text-align:left;color:inherit;padding:5px 1px!important;min-height:56px;border-radius:12px;}
.rep-friend-open:hover{background:#21343a!important;}
.rep-person-arrow{font-size:27px;color:var(--rep-accent);line-height:1;font-weight:800;padding:0 4px;}
.rep-back-profile{display:inline-flex;align-items:center;gap:9px;margin:4px 0 20px;padding:10px 14px;background:#203138;color:#e9f4ee;border:1px solid #3c5057;border-radius:12px;font-weight:850;}
.rep-back-profile span{font-size:21px;line-height:1;color:var(--rep-accent);}
.rep-friend-view{max-width:760px;margin:0 auto 28px;}
.rep-friend-view>.profile-hero{margin-bottom:21px;}
.rep-friend-view .profile-hero-art{background:#1c3039;}
.rep-friend-view .profile-section-title{margin-top:22px;}
.rep-profile-loading{padding:30px!important;text-align:center;color:#cad9d7;}
.rep-visit-label{font-size:11px;letter-spacing:.08em;font-weight:900;color:var(--rep-accent);margin-bottom:7px;}
.rep-friend-view .rep-total{margin-bottom:18px;}
@media(max-width:760px){.rep-friend-view>.profile-hero{margin-bottom:12px;}}


/* === SOURCE: rep-design.css === */
/* REP V8 | Jeden system wizualny - typografia i komponenty */
:root {
  --rep-font:'Nunito', ui-rounded, 'Arial Rounded MT Bold', system-ui, -apple-system, sans-serif;
  --rep-bg:#0b1419;
  --rep-card:#17242a;
  --rep-card-hover:#1c2c32;
  --rep-border:#31434a;
  --rep-text:#f1f7f4;
  --rep-muted:#a2b6ba;
  --rep-lime:#b8ff65;
  --rep-radius:18px;
  --rep-radius-sm:12px;
}
:root,html,body,body *,button,input,select,textarea,option,svg text {
  font-family:var(--rep-font)!important;
}
html,body{background:var(--rep-bg);color:var(--rep-text);font-weight:600;-webkit-font-smoothing:antialiased;}
body{font-size:15px;line-height:1.5;}
button,input,select,textarea{font-size:inherit;letter-spacing:normal;}
button{font-weight:800;cursor:pointer;-webkit-tap-highlight-color:transparent;}
button:disabled{cursor:not-allowed;opacity:.57;}
h1,h2,h3,h4,h5,h6 {font-family:var(--rep-font)!important;letter-spacing:-.035em!important;font-weight:900!important;line-height:1.18;}
h1 {font-size:clamp(27px,4vw,35px)!important;}
h2 {font-size:clamp(19px,2.2vw,23px)!important;}
h3 {font-size:17px!important;}
p,.subtitle,.note,small {line-height:1.52;}
.eyebrow,.plan-kind {font-size:11px!important;font-weight:900!important;letter-spacing:.065em!important;}
.logo,.rep-avatar-brand {font-weight:900!important;letter-spacing:-.055em!important;}
.card,.profile-social-card,.profile-hero,.rep-lift-card,.profile-achievement,.rep-total,.account-card {
  border-radius:var(--rep-radius)!important;
  box-shadow:none!important;
}
.card,.profile-social-card,.profile-hero,.rep-lift-card,.profile-achievement {background:var(--rep-card)!important;border-color:var(--rep-border)!important;}
.btn,.card button,.rep-option,.profile-person button,.profile-hero-edit,.profile-trigger,.rep-dialog-actions button {
  border-radius:var(--rep-radius-sm)!important;
  box-shadow:none!important;
  font-weight:850!important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.btn:not(.secondary):not(.danger),.rep-friend-btn.is-primary {background:var(--rep-lime);color:#102018;border-color:var(--rep-lime);}
.btn.secondary,.rep-friend-btn.is-muted {background:#223239;color:#dfedeb;border:1px solid #3c5057;}
.btn:not(:disabled):active,.rep-friend-btn:not(:disabled):active {transform:translateY(1px);}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid var(--rep-lime);outline-offset:3px;}
.field,.profile-search,input,select,textarea {border-radius:var(--rep-radius-sm)!important;}
.field,.profile-search {background:#101c22!important;border-color:#3b5057!important;color:var(--rep-text);}
.pill,.badge {font-weight:850!important;border-radius:10px!important;}
#rep-account .account-card {background:var(--rep-card)!important;}
.account-card h1,.account-card h2 {letter-spacing:-.045em!important;}
#bottom-nav,#rep-bottom-nav,.bottom-nav {box-shadow:none!important;background:#111d23!important;border-color:#2c4149!important;}
#bottom-nav button,#rep-bottom-nav button,.bottom-nav button {font-size:12px!important;font-weight:850!important;}
.rep-dialog,.rep-toast {font-family:var(--rep-font)!important;box-shadow:none!important;border-radius:var(--rep-radius)!important;}
.rep-avatar-title {font-weight:900!important;font-size:clamp(26px,4vw,34px)!important;}
.profile-section-title h2 {font-size:21px!important;}
.profile-hero-detail h1 {font-size:29px!important;}
.profile-hero,.profile-hero-art {box-shadow:none!important;}
.rep-total-title {font-size:11px;font-weight:900;letter-spacing:.045em;text-transform:uppercase;color:#c9e5be;}
.profile-social-card {padding:18px!important;}
.profile-social-card h2 {font-size:19px!important;margin-bottom:8px!important;display:flex;align-items:center;gap:9px;}
.profile-social-card .pill {display:inline-grid;place-items:center;min-width:25px;height:24px;padding:0 7px;background:#2e4333;color:var(--rep-lime);font-size:12px;}
.profile-person {gap:10px;min-height:69px;}
.profile-person-info strong {font-weight:900!important;font-size:14px;}
.profile-person-info small {font-size:12px;color:var(--rep-muted);font-weight:650;}
.profile-person .rep-friend-btn {border-radius:11px!important;font-weight:850!important;font-size:12px;padding:8px 12px;white-space:nowrap;min-height:36px;}
.profile-person .rep-friend-btn.is-primary {border:1px solid var(--rep-lime)!important;}
.rep-friend-actions {display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.rep-friend-state {font-weight:850;font-size:12px;color:var(--rep-lime);white-space:nowrap;}
.rep-social-error small {display:block;margin:9px 0;overflow-wrap:anywhere;opacity:.75;}
.rep-social-error button {margin-top:8px;}
.rep-settings-button {min-height:48px;}
.rep-lift-number{font-variant-numeric:tabular-nums;}
@media(max-width:420px){.profile-social-card {padding:15px!important;}.rep-friend-actions{flex-direction:column;align-items:stretch;}.profile-person .rep-friend-btn {padding:7px 9px;}.profile-person-avatar{width:43px;height:43px;flex-basis:43px;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;}}


/* === SOURCE: rep-v10.1-polish.css === */
/* REP V10 - clean focus and coherent color tokens. Pure presentation: no storage changes. */
:root{
  --rep-sky:#57c9f5;
  --rep-coral:#ff8e7c;
  --rep-violet:#c58bff;
  --rep-sun:#ffd47a;
}
/* Auth: focus is drawn on one border, never a nested browser outline. */
#rep-account .login-handle{
  display:flex;align-items:center;overflow:hidden;
  border:2px solid #35434a;
  border-radius:14px!important;
  background:#101c22;
  box-shadow:none!important;
  transition:border-color .14s ease;
}
#rep-account .login-handle:focus-within{border-color:var(--rep-lime);outline:0!important;box-shadow:none!important;}
#rep-account .login-handle .at{flex:0 0 auto;padding:12px 0 12px 14px;line-height:1.4;color:var(--rep-lime);}
#rep-account .login-handle input,
#rep-account .login-handle input:focus,
#rep-account .login-handle input:focus-visible{
  -webkit-appearance:none;appearance:none;display:block;min-width:0;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;outline:none!important;outline-offset:0!important;
  -webkit-box-shadow:none!important;
}
#rep-account input#rep-password{
  -webkit-appearance:none;appearance:none;border:2px solid #35434a!important;
  border-radius:14px!important;background:#101c22!important;
  box-shadow:none!important;outline:0!important;outline-offset:0!important;
  min-height:52px;
}
#rep-account input#rep-password:focus,
#rep-account input#rep-password:focus-visible{
  border-color:var(--rep-lime)!important;box-shadow:none!important;outline:0!important;
}
#rep-account .login-handle:focus-within,#rep-account input#rep-password:focus-visible{
  outline-offset:0!important;
}
#rep-account input:-webkit-autofill{-webkit-text-fill-color:#f1f7f4;transition:background-color 5000s ease-in-out 0s;}
/* REP V10.1 — color roles: lime = action/success, sky = informational,
   coral = danger, violet = optional avatar color. One stable card system. */
.rep-lift-card{position:relative;overflow:hidden;border-color:var(--rep-border)!important;transition:border-color .15s ease;}
.rep-lift-card .rep-lift-icon{
  width:44px;height:44px;margin:0 0 13px;display:grid;place-items:center;
  border:1px solid var(--rep-border);border-radius:12px;background:#1d3037;
}
.rep-lift-card .rep-lift-icon .rep-lift-svg{width:31px;height:31px;}
/* The only three colorful glyphs on the lift cards — not three colorful cards. */
.rep-lift-squat .rep-lift-icon{color:var(--rep-sky);}
.rep-lift-bench .rep-lift-icon{color:var(--rep-coral);}
.rep-lift-deadlift .rep-lift-icon{color:var(--rep-violet);}
.rep-lift-card .rep-lift-label{font-size:12px;color:#bdcfd0;font-weight:800;}
.rep-lift-card .rep-lift-number{color:#fbfffc;}
.rep-total{border-color:#496742!important;background:#1e3026!important;}
.profile-achievement-icon{color:#e5eebf!important;background:#28362b!important;border-color:#405547!important;}
.profile-hero-art{background:#21383d;}
.profile-hero-art:before{border-color:#4c7780;}
.rep-avatar-display{background:#1d333a;}
.rep-option.selected{border-color:var(--rep-lime)!important;}
/* Social surface: no rainbow rails or headers; all cards are one visual family. */
.profile-social-card{position:relative;overflow:hidden;}
.rep-find-card::before,.rep-incoming-card::before,.rep-outgoing-card::before,.rep-friends-card::before{content:none!important;}
.profile-social-card h2,.rep-find-card h2,.rep-incoming-card h2,.rep-outgoing-card h2,.rep-friends-card h2{
  color:var(--rep-text)!important;
}
.profile-social-card .profile-person-avatar{background:#29414b;border:1px solid #3a555e;}
.profile-social-card .pill{background:#28392d;color:var(--rep-lime);}
.grid>.workout{position:relative;overflow:hidden;}
.grid>.workout::before{content:none!important;}
.grid>.workout .eyebrow{color:#afc4c2;}
.bottom button.active{color:var(--rep-lime)!important;}
.bottom button{transition:color .12s ease,background .12s ease;}
.bottom button.active svg{stroke-width:2.25px;}
.bottom button:active{background:#1e3035;}
/* The only remaining account action; safe, deliberate styling. */
.rep-logout-button{
  background:#1b2a30!important;border:1px solid #3d5158!important;
  color:#e5eeec!important;min-height:50px;
}
.rep-logout-button:hover,.rep-logout-button:focus-visible{border-color:#6b898c!important;background:#26373e!important;}
@media(max-width:760px){
  .rep-lift-card{padding:12px 9px;}
  .rep-lift-card .rep-lift-icon{width:40px;height:40px;border-radius:12px;margin-bottom:11px;}
  .rep-lift-card .rep-lift-icon .rep-lift-svg{width:29px;height:29px;}
  .rep-lifts-grid{gap:8px;}
}
@media(prefers-reduced-motion:reduce){.rep-lift-card,.bottom button{transition:none;}}
/* Suppress layout jumping from focus, while preserving keyboard focus visibility. */
.profile-search:focus-within{border-color:var(--rep-lime);}
.profile-search input:focus-visible{outline:0!important;}
@media(max-width:760px){
  .rep-lift-card{padding:12px 9px;}
  .rep-lift-card .rep-lift-icon{width:40px;height:40px;border-radius:12px;margin-bottom:11px;}
  .rep-lift-card .rep-lift-icon .rep-lift-svg{width:30px;height:30px;}
  .rep-lifts-grid{gap:8px;}
}
@media(prefers-reduced-motion:reduce){.rep-lift-card,.bottom button{transition:none;}}


/* === SOURCE: rep-v10.2-polish.css === */

/* REP V10.2 — final visual refinement */
:root{
  --rep-sky:#54b8ee;
  --rep-coral:#ff8b78;
  --rep-violet:#b88cff;
  --rep-gold:#f8cf62;
}
.logo{color:var(--rep-lime)!important;}
#rep-profile-trigger{
  background:#18252a!important;border:1px solid #36505a!important;color:#ecf5f2!important;
  min-height:42px;padding:8px 11px!important;gap:9px;
}
#rep-profile-trigger .top-avatar svg{width:24px;height:24px;display:block;}
#rep-profile-trigger:hover{background:#1e3036!important;border-color:#4a6870!important;}

/* smarter, calmer accent usage */
.btn.secondary,.rep-friend-btn.is-muted{background:#203038!important;border-color:#41565f!important;color:#e8f0ee!important;}
.rep-dialog .btn:not(.secondary):not(.danger){background:var(--rep-sky)!important;border-color:var(--rep-sky)!important;color:#0b1820!important;}
.rep-dialog .btn.danger{background:transparent!important;color:#ff8f88!important;border:1px solid transparent!important;}
.rep-dialog .btn.secondary{background:#223238!important;color:#e8f0ee!important;border:1px solid #41565f!important;}
.rep-dialog-actions{grid-template-columns:1fr!important;}
.rep-dialog-actions .btn{min-height:50px;}
.rep-dialog h2{font-size:20px!important;}

/* bottom nav closer to REP identity, cleaner and more premium */
.bottom{
  background:rgba(14,24,30,.96)!important;border-top:1px solid #24363d!important;
  padding:10px 8px max(10px,env(safe-area-inset-bottom))!important;
  gap:6px!important;
}
.bottom button{
  min-height:56px!important;border-radius:16px!important;padding:8px 2px 6px!important;
  color:#a3b0b3!important;
}
.bottom button svg{width:24px!important;height:24px!important;stroke-width:2.15!important;}
.bottom button span{font-size:11px;font-weight:800;letter-spacing:-.01em;}
.bottom button.active{
  color:var(--rep-lime)!important;background:#1b2a22!important;
}
.bottom button.active svg{stroke-width:2.35!important;}
.bottom button:not(.active):hover{background:#17242b!important;color:#d8e4e2!important;}
@media(min-width:700px){
  .bottom{border-radius:18px 18px 0 0!important;width:min(100%,575px)!important;}
}

/* profile social area */
.rep-friend-open{padding:4px 0!important;}
.rep-friend-open:hover{background:transparent!important;}
.rep-person-arrow{display:none!important;}
.profile-person{gap:12px;}
.profile-social-card h2{font-size:18px!important;}
.rep-friend-btn.is-primary{background:var(--rep-lime)!important;color:#102018!important;border-color:var(--rep-lime)!important;}
.profile-social-card .pill{background:#27392c!important;color:var(--rep-lime)!important;}

/* big 3 cards — simple glyphs, restrained colors */
.rep-lift-card{
  background:#162329!important;border-color:#334750!important;
}
.rep-lift-card .rep-lift-icon{
  width:42px;height:42px;border-radius:14px;background:#132028!important;border-color:#334750!important;
}
.rep-lift-squat .rep-lift-icon{color:var(--rep-sky)!important;}
.rep-lift-bench .rep-lift-icon{color:var(--rep-coral)!important;}
.rep-lift-deadlift .rep-lift-icon{color:var(--rep-violet)!important;}
.rep-lift-card .rep-lift-label{font-size:12px!important;color:#a9bcc0!important;}
.rep-lift-number small{color:#88a0a6!important;}
.rep-total{background:#1b2a24!important;border-color:#3f5b47!important;}
.rep-total .rep-lift-number{color:#f4fff7!important;}

/* avatar editor & preview */
.rep-avatar-display{background:linear-gradient(180deg,#21363d 0%, #1b2f36 100%)!important;}
.rep-option.selected{background:#22352b!important;}

/* subtle Duolingo-like color play where it helps */
.profile-hero-art{
  background:linear-gradient(180deg,#22363d 0%, #1a2c33 100%)!important;
}
.profile-achievement-icon{background:#2a352c!important;color:#f2f8c7!important;border-color:#465748!important;}
.rep-logout-button{background:#223238!important;border-color:#41565f!important;color:#eff6f4!important;}
.rep-logout-button:hover{background:#283a41!important;border-color:#66858a!important;}
.profile-search:focus-within{box-shadow:0 0 0 1px var(--rep-lime) inset;}


/* === SOURCE: rep-v11.css === */
/* REP V11 — clear, fast, cohesive. Intentional overrides over the V10.x baseline. */
:root { --rep-bg:#0b1419; --rep-card:#17242a; --rep-border:#31434a; --rep-lime:#b8ff65; }
html { -webkit-text-size-adjust:100%; }
body { overscroll-behavior-y:none; }
button, .btn { touch-action:manipulation; }
/* Single-profile chip: avatar has no nested background or border. */
#rep-profile-trigger {
  background:#1b2b31!important;border:1px solid #334b53!important;
  padding:5px 13px 5px 6px!important;min-height:43px;gap:8px;
  border-radius:15px!important;color:#f1f7f4!important;
}
#rep-profile-trigger .top-avatar {
  border:0!important;border-radius:10px;background:transparent!important;
  width:33px;height:33px;flex-basis:33px;overflow:hidden;
}
#rep-profile-trigger .top-avatar svg {width:33px!important;height:33px!important;}
#rep-profile-trigger:hover{background:#22343a!important;border-color:#405861!important;}
#rep-profile-trigger:active{transform:translateY(1px);}
/* Bottom tabs — opaque, precisely one active style. iOS :hover/:focus cannot leave a ghost selection. */
.bottom {
  background:#101b21!important;background-color:#101b21!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  border-top:1px solid #33474d!important;box-shadow:0 -2px 16px rgba(4,13,18,.35)!important;
  isolation:isolate;overflow:visible;
  padding:9px 8px max(10px,env(safe-area-inset-bottom))!important;
}
.bottom button {
  background:transparent!important;color:#adbdc0!important;border:0!important;
  -webkit-tap-highlight-color:transparent;outline:0;
  transition:background-color .13s ease,color .13s ease,transform .13s ease;
}
.bottom button:not(.active),.bottom button:not(.active):hover,
.bottom button:not(.active):active,.bottom button:not(.active):focus {
  color:#adbdc0!important;background:transparent!important;box-shadow:none!important;
}
.bottom button.active,.bottom button.active:hover,.bottom button.active:focus {
  background:#233a2b!important;color:#b8ff65!important;box-shadow:inset 0 0 0 1px #385a3c!important;
}
.bottom button:focus-visible {outline:2px solid var(--rep-lime)!important;outline-offset:-2px;}
.bottom button img {width:27px;height:27px;object-fit:contain;display:block;pointer-events:none;filter:saturate(.77);}
.bottom button.active img {filter:saturate(1.1) brightness(1.08);}
.bottom button span{font-size:11px!important;line-height:1.2!important;font-weight:850!important;}
@media(min-width:700px){.bottom {background:#101b21!important;}}
/* Personal records: just bold numbers, kg, labels, and a soft 1px border. */
.rep-lifts-grid {align-items:stretch;}
.rep-lift-card {
  display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
  min-height:112px;padding:19px 8px!important;background:#16262c!important;
  border:1px solid #354a52!important;
}
.rep-lift-icon {display:none!important;}
.rep-lift-number {font-size:clamp(24px,3vw,32px)!important;line-height:1.2!important;letter-spacing:-.04em!important;white-space:nowrap;font-weight:950!important;}
.rep-lift-number small {font-size:12px!important;font-weight:900!important;color:#aec4c6!important;}
.rep-lift-label {margin-top:7px!important;color:#bacbd0!important;font-size:12px!important;font-weight:850!important;}
/* Friend list first; one combined search and request card. */
.rep-profile-page .profile-side {display:flex;flex-direction:column;gap:13px;}
.rep-profile-page .profile-side > .profile-social-card {margin-bottom:0!important;}
.rep-requests-card .profile-search{margin:13px 0 9px;}
.rep-requests-card .profile-search-results {margin-bottom:4px;}
.rep-request-divider {height:1px;background:#34484f;margin:17px 0 15px;}
.rep-request-tabs {display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #34474e;border-radius:13px;background:#101b20;margin:0 0 12px;}
.rep-request-tabs button {border:0;background:transparent;color:#aabdc0;border-radius:10px;min-height:42px;padding:9px 6px;font-size:13px;font-weight:900;}
.rep-request-tabs button span {font-size:11px;opacity:.85;}
.rep-request-tabs button.selected {background:#284131;color:var(--rep-lime);}
.rep-request-tabs button:not(.selected):hover{background:#182b30;}
.rep-request-pane[hidden]{display:none!important;}
.rep-request-pane .profile-person:first-child {border-top:0;}
.rep-request-pane .profile-empty {padding:17px 10px;}
/* Avatar save celebration particles exist only for ~900ms; pointer-safe */
.rep-v11-confetti-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:250;}
.rep-v11-confetti-piece{position:absolute;left:0;top:0;width:7px;height:11px;border-radius:2px;opacity:0;will-change:transform,opacity;animation:rep-v11-burst .88s cubic-bezier(.2,.75,.28,1) forwards;}
@keyframes rep-v11-burst{
  0%{opacity:1;transform:translate(-50%,-50%) translate(0,0) rotate(0) scale(.6);}
  58%{opacity:1;}
  100%{opacity:0;transform:translate(-50%,-50%) translate(var(--rep-dx),var(--rep-dy)) rotate(var(--rep-rotation)) scale(.8);}
}
/* Feedback is visible, but never floods workouts with decoration. */
.btn:not(:disabled):active{transform:translateY(1px) scale(.995);}
.profile-social-card,.card,.rep-lift-card {scroll-margin-top:90px;}
@media(max-width:370px){
  .bottom {gap:2px!important;padding-inline:4px!important;}
  .bottom button{min-height:55px!important;padding-inline:1px!important;}
  .bottom button img{width:24px;height:24px;}
  .bottom button span{font-size:10px!important;}
  .rep-lift-card{min-height:105px;padding:13px 4px!important;}
  .rep-lift-number{font-size:24px!important;}
  .rep-lift-label{font-size:10px!important;}
}
@media(prefers-reduced-motion:reduce){
  .rep-v11-confetti-piece{animation:none!important;display:none!important;}
  .btn,.bottom button {transition:none!important;transform:none!important;}
}
/* Preserve the V10 mobile profile's deliberate reading order when social cards are combined. */
@media(max-width:760px){
  .rep-profile-page .profile-side{display:contents;}
  .profile-side>.rep-friends-card{order:5;margin-top:22px;}
  .profile-side>.rep-requests-card{order:6;}
  .profile-primary>.rep-own-achievements-heading{order:7;margin-top:10px;}
  .profile-primary>.profile-achievement{order:8;}
  .profile-side>.rep-logout-button{order:9;margin:22px 0 12px;}
}
@media(max-width:760px){
 .rep-profile-page .profile-side>.rep-friends-card{margin-bottom:13px!important;}
}


/* === SOURCE: rep-v11.1.css === */
/* REP V11.1 — surgical polish over the approved V11 visual system. */
/* Password input: one cohesive field with keyboard-accessible visibility control. */
.rep-password-field {
  display:flex;align-items:center;min-width:0;
  margin-top:7px;border-radius:12px;
  background:#0d141a;border:1px solid #35434a;
  transition:border-color .15s ease;
}
.rep-password-field:focus-within {border-color:#8cc94e;box-shadow:0 0 0 2px #b8ff6522;}
#rep-account .rep-password-field input#rep-password {
  flex:1;min-width:0;border:0!important;background:transparent!important;
  padding:13px 12px!important;margin:0!important;min-height:48px!important;
  border-radius:0!important;outline:0!important;
  color:#f2f6f3;font-size:16px;
}
.rep-password-toggle {
  display:grid;place-items:center;flex:0 0 48px;min-width:48px;
  min-height:48px;margin-right:2px;padding:0;
  border:0;border-radius:10px;background:transparent;
  color:#a9bdc0;cursor:pointer;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.rep-password-toggle:hover {color:#eef7ee;background:#1a2a2f;}
.rep-password-toggle:active {background:#26383c;}
.rep-password-toggle:focus-visible {outline:2px solid #b8ff65;outline-offset:-3px;}
.rep-password-toggle .rep-eye-hide,
.rep-password-toggle[aria-pressed="true"] .rep-eye-show {display:none;}
.rep-password-toggle[aria-pressed="true"] .rep-eye-hide {display:block;}
/* Website: natural document scroll, navigation at the END of the page, no overlay. */
html:not(.rep-pwa-standalone) { height:auto!important;min-height:100%;overflow-y:auto!important;touch-action:auto!important;scrollbar-width:auto!important; }
html:not(.rep-pwa-standalone) body {
  min-height:100vh;min-height:100dvh;height:auto!important;
  overflow-y:visible!important;overscroll-behavior-y:auto!important;
  display:flex;flex-direction:column;
}
html:not(.rep-pwa-standalone) body>.wrap {
  flex:1 0 auto;width:100%;padding-bottom:25px!important;
}
html:not(.rep-pwa-standalone) body>.bottom {
  position:relative!important;inset:auto!important;
  top:auto!important;bottom:auto!important;
  left:auto!important;right:auto!important;
  transform:none!important;
  margin:12px auto 20px!important;
  width:min(100% - 24px,560px)!important;
  max-width:560px;border:1px solid #33474d!important;
  border-radius:16px!important;
  box-shadow:none!important;
  flex:0 0 auto;
  padding:9px 8px!important;
}
html:not(.rep-pwa-standalone)::-webkit-scrollbar {display:block!important;width:9px!important;height:9px!important;}
html:not(.rep-pwa-standalone)::-webkit-scrollbar-thumb {background:#41535a!important;border-radius:9px!important;}
html:not(.rep-pwa-standalone)::-webkit-scrollbar-track {background:#0b1419!important;}
/* iPhone installed PWA: preserve V11 fixed navigation and generous content padding. */
html.rep-pwa-standalone body {display:block;}
html.rep-pwa-standalone body>.bottom {position:fixed!important;bottom:0!important;}
html.rep-pwa-standalone body>.wrap {padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;}
@media (min-width:700px){
  html:not(.rep-pwa-standalone) body>.bottom {display:grid!important;}
}
@media (max-width:370px){
  html:not(.rep-pwa-standalone) body>.bottom {width:calc(100% - 16px)!important;margin-inline:8px!important;}
}
@media (prefers-reduced-motion: reduce){
  .rep-password-field{transition:none!important;}
}


/* REP V11.3 — Android PWA scroll reliability */
html.rep-pwa-standalone,
html.rep-pwa-standalone body {
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
html.rep-pwa-standalone body {
  touch-action:pan-y pinch-zoom!important;
}
html.rep-pwa-standalone body>.wrap {
  min-height:calc(100vh - 65px)!important;
  min-height:calc(100dvh - 65px)!important;
  overflow:visible!important;
  padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;
}
html.rep-pwa-standalone #app,
html.rep-pwa-standalone .rep-profile-page,
html.rep-pwa-standalone .profile-two-col,
html.rep-pwa-standalone .profile-primary,
html.rep-pwa-standalone .profile-side {
  overflow:visible!important;
}


/* === SOURCE: rep-v12.css === */
/* REP V12 — precise additions; existing V11 design stays intact. */
.rep-ongoing-section{margin-top:24px;margin-bottom:9px;}
.rep-ongoing-heading{margin:0 0 12px;gap:12px;}
.rep-ongoing-heading h2{margin:0;}
.rep-live-count{border:1px solid #44674b;border-radius:9px;padding:5px 10px;color:#b8ff65;background:#203529;font-size:11px;font-weight:900;white-space:nowrap;}
.rep-ongoing-list{display:grid;grid-template-columns:1fr;gap:10px;}
.rep-ongoing-card{margin:0!important;background:#192a26!important;border:1px solid #52784b!important;padding:17px 18px!important;}
.rep-ongoing-status{display:flex;align-items:center;gap:7px;color:#b8ff65;font-size:10px;font-weight:900;letter-spacing:1px;}
.rep-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b8ff65;box-shadow:0 0 0 3px #b8ff6520;}
.rep-ongoing-main{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px;}
.rep-ongoing-main h3{font-size:22px;line-height:1.2;color:#f0f8f0;margin:0 0 5px;font-weight:900;}
.rep-ongoing-main p{color:#a8bbb6;font-size:12px;margin:0;line-height:1.45;}
.rep-ongoing-resume{min-height:44px;border-radius:12px;white-space:nowrap;}
.rep-session-actions{display:grid;gap:9px;margin-top:13px;}
.rep-session-save,.rep-session-finish{min-height:51px;border-radius:13px;}
.rep-session-finish{background:#253a37!important;border:1px solid #4b665a!important;color:#e9f7e9!important;}
.rep-session-tip{margin:10px 2px 0;font-size:12px;color:#98b1ae;line-height:1.5;}
.rep-session-actions+.delete-session{margin-top:12px;}
/* Hold the entire avatar until its bundled layers are decoded; never flash a bare face. */
.rep-avatar-svg{visibility:hidden;}
html.rep-avatar-art-ready .rep-avatar-svg{visibility:visible;}
@media(min-width:760px){.rep-ongoing-list{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:380px){.rep-ongoing-main{align-items:stretch;}.rep-ongoing-resume{width:100%;}}
@media(prefers-reduced-motion:reduce){.rep-ongoing-card,.rep-ongoing-resume{transition:none!important;}}


/* === SOURCE: rep-avatar-v14.css === */
/* REP V14.4 — avatars composed on demand; miniatures retain 14.1 fit. */
.rep-avatar-stack {
  --rep-avatar-size:160px;
  display:block;
  position:relative;
  width:var(--rep-avatar-size);
  height:var(--rep-avatar-size);
  max-width:100%;
  flex:0 0 auto;
  aspect-ratio:1 / 1;
  overflow:hidden;
  border-radius:50%;
  background:#1d3842;
  margin-inline:auto;
  user-select:none;
  -webkit-user-select:none;
}
.rep-avatar-stack > .rep-avatar-canvas {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  transform:none!important;
  object-fit:contain!important;
  opacity:0;
  transition:opacity .12s ease;
  pointer-events:none;
  border:0!important;
  border-radius:0!important;
}
.rep-avatar-stack.is-ready > .rep-avatar-canvas {opacity:1;}
.rep-avatar-stack.avatar-error{background:#274149;}
.rep-avatar-display > .rep-avatar-stack {
  width:min(236px,calc(100vw - 60px));
  height:min(236px,calc(100vw - 60px));
  max-width:none;
  margin:0 0 -17px;
}
.rep-option > .rep-avatar-stack{width:38px;height:38px;max-width:none;}
#rep-profile-trigger .top-avatar,
.profile-large-avatar,
.profile-person-avatar{border-radius:50%;overflow:hidden;}
#rep-profile-trigger .top-avatar{display:grid;place-items:center;}
#rep-profile-trigger .top-avatar > .rep-avatar-stack,
.profile-large-avatar > .rep-avatar-stack,
.profile-person-avatar > .rep-avatar-stack{
  width:100%;height:100%;max-width:none;transform:none;margin:0;
}

/* V14.4: same soft dashed circle in the creator as on the Profile card. */
#rep-avatar-preview::before {
  content:"";
  position:absolute;
  z-index:0;
  left:50%;top:50%;
  width:min(258px, calc(100vw - 72px));
  height:auto;aspect-ratio:1 / 1;
  border:2px dashed #e4f0ef;
  border-radius:50%;
  opacity:.57;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
#rep-avatar-preview > .rep-avatar-stack {position:relative;z-index:1;}


/* === SOURCE: rep-v14.6-layout.css === */
/* REP V14.6 — contained creator ring and iPhone-safe fixed top bar. */
:root { --rep-fixed-header-height: calc(65px + env(safe-area-inset-top, 0px)); }

/* The preview is tall enough for its entire dashed ring, including stroke. */
#rep-avatar-preview.rep-avatar-display {
  height: 290px;
  min-height: 290px;
  overflow: hidden;
}
#rep-avatar-preview::before {
  box-sizing: border-box;
  width: min(258px, calc(100% - 32px));
  height: auto;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* Keep the approved portrait size/crop and all four option thumbnails unchanged. */

/* A fixed top bar stays glued to the viewport during iOS elastic overscroll.
   Reserve the identical amount of space in normal document flow. */
body > header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: var(--rep-fixed-header-height) !important;
  padding-top: calc(15px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 15px !important;
  background: #0b0e12 !important;
  transform: none !important;
  z-index: 90 !important;
}
body > .wrap {
  padding-top: calc(24px + var(--rep-fixed-header-height)) !important;
}
html { scroll-padding-top: var(--rep-fixed-header-height); }

@media (max-width: 380px) {
  #rep-avatar-preview.rep-avatar-display { height: 282px; min-height: 282px; }
}


/* === SOURCE: rep-v15.css === */
/* REP V15 — two-level fixed header, beta banner, starter plan and shared avatar art. */
:root {
  --rep-banner-height: 76px;
  --rep-main-height: 66px;
  --rep-total-top-height: calc(var(--rep-banner-height) + var(--rep-main-height) + env(safe-area-inset-top,0px));
}
html.rep-beta-disabled { --rep-banner-height: 0px; }
#rep-top-shell {
  position:fixed!important;inset:0 0 auto 0!important;width:100%;height:var(--rep-total-top-height);
  z-index:90;background:#0a1015;transform:none!important;isolation:isolate;
  box-shadow:none;overflow:visible;
}
#rep-beta-banner {
  box-sizing:content-box;position:relative;height:var(--rep-banner-height);padding-top:env(safe-area-inset-top,0px);
  background:linear-gradient(110deg,#119bd5,#31b7e9);color:#fff;
  overflow:hidden;display:flex;align-items:center;justify-content:flex-start;
}
html.rep-beta-disabled #rep-beta-banner {display:none!important;}
.rep-beta-mascot {position:absolute;width:122px;height:122px;object-fit:contain;bottom:-46px;left:-12px;pointer-events:none;user-select:none;}
.rep-beta-text {position:relative;z-index:1;padding-left:106px;padding-right:18px;display:flex;flex-direction:column;gap:3px;min-width:0;max-width:640px;}
.rep-beta-text strong {font-weight:1000;font-size:15px;line-height:1.15;letter-spacing:.35px;}
.rep-beta-text span {font-size:12px;font-weight:750;line-height:1.32;color:#fff;}
.rep-beta-dot {position:absolute;right:14px;top:calc(16px + env(safe-area-inset-top,0px));width:7px;height:7px;border-radius:50%;background:#b8ff65;box-shadow:0 0 0 4px #b8ff6533;}
#rep-top-shell > header#rep-main-header {
  position:relative!important;inset:auto!important;width:100%!important;height:var(--rep-main-height)!important;
  min-height:var(--rep-main-height)!important;margin:0!important;
  padding:9px max(18px,calc((100vw - 1020px)/2))!important;
  background:#0b1015!important;border:0!important;border-bottom:1px solid #283940!important;
  display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;
  z-index:1;transform:none!important;
}
#rep-main-header .logo{color:#b8ff65!important;font-size:29px;font-weight:1000;letter-spacing:-1.5px;line-height:1;}
.rep-header-actions{display:flex;align-items:center;gap:14px;}
.rep-currency{display:flex;align-items:center;gap:4px;color:#fff;font-weight:950;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap;min-height:44px;}
.rep-currency img{width:32px;height:32px;object-fit:contain;display:block;}
button#rep-profile-trigger.rep-profile-icon{width:43px;height:43px;min-width:43px;padding:0!important;display:grid;place-items:center;background:#1b3039!important;border:1.5px solid #405c66!important;border-radius:14px!important;color:#e9f4ef!important;}
button#rep-profile-trigger.rep-profile-icon:focus-visible{outline:2px solid #b8ff65;outline-offset:3px;}
body > .wrap {padding-top:calc(var(--rep-total-top-height) + 24px)!important;}
html {scroll-padding-top:var(--rep-total-top-height);}
@media(max-width:380px){.rep-beta-text{padding-left:91px;}.rep-beta-mascot{width:112px;height:112px;bottom:-42px;left:-14px;}.rep-header-actions{gap:9px;}}
/* Creator uses the EXACT profile portrait subtree: same head/neck and dashed ring. */
#rep-avatar-preview.rep-avatar-profile-match{
  box-sizing:border-box;display:block!important;height:auto!important;min-height:0!important;
  padding:0!important;background:#20343d!important;border:1px solid #374e56!important;
  border-radius:23px!important;overflow:hidden!important;
}
#rep-avatar-preview.rep-avatar-profile-match::before{display:none!important;content:none!important;}
#rep-avatar-preview.rep-avatar-profile-match .rep-creator-hero-art{
  width:100%;height:230px;min-height:230px;display:flex;align-items:flex-end;justify-content:center;
  position:relative;background:#20343d;margin:0!important;overflow:hidden;
}
#rep-avatar-preview.rep-avatar-profile-match .rep-creator-hero-art::before{
  content:'';position:absolute;left:50%;top:12px;transform:translateX(-50%);
  width:225px;height:225px;border:2px dashed #466269;border-radius:50%;opacity:.65;
  box-sizing:border-box;pointer-events:none;
}
#rep-avatar-preview.rep-avatar-profile-match .profile-large-avatar{
  width:230px!important;height:230px!important;max-width:none!important;margin:0 0 -20px!important;
  position:relative;z-index:1;
}
#rep-avatar-preview.rep-avatar-profile-match .profile-large-avatar > .rep-avatar-stack{
  width:100%!important;height:100%!important;max-width:none!important;margin:0!important;
}
@media(max-width:760px){
  #rep-avatar-preview.rep-avatar-profile-match .rep-creator-hero-art{height:213px;min-height:213px;}
  #rep-avatar-preview.rep-avatar-profile-match .profile-large-avatar{width:216px!important;height:216px!important;margin-bottom:-18px!important;}
}
/* No activity/history teaser on Start. First plan is the only empty-state CTA. */
.rep-first-plan{border:1px solid #344a4e;border-radius:23px;background:linear-gradient(160deg,#20343a,#15242c);
  padding:29px 23px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:10px;}
.rep-first-plan-icon{height:46px;width:46px;display:grid;place-items:center;border-radius:15px;background:#284a35;color:#b8ff65;font-size:25px;}
.rep-first-plan h3{font-size:19px;line-height:1.25;font-weight:950;margin:2px 0 0;}
.rep-first-plan p{font-size:14px;line-height:1.5;color:#adbdc0;max-width:330px;margin:0;}
.rep-first-plan-button{margin-top:7px;min-height:46px;border-radius:14px;font-weight:900;}
@media(prefers-reduced-motion:reduce){#rep-splash{transition:none!important;}}

/* REP V15.1: profile-only chrome, consistent nav icon, stable bottom icons. */
html.rep-on-profile #rep-top-shell{display:none!important;}
html.rep-on-profile body>.wrap{padding-top:24px!important;}
button#rep-profile-trigger.rep-profile-icon{background:transparent!important;border:0!important;border-radius:12px!important;width:43px;height:43px;color:#9ca9ac!important;}
button#rep-profile-trigger.rep-profile-icon svg{width:29px;height:29px;stroke-width:2.3;}
button#rep-profile-trigger.rep-profile-icon:hover{background:#1b3039!important;}
.profile-person-avatar{display:flex;align-items:center;justify-content:center;}
.profile-person-avatar svg,.profile-person-avatar .rep-avatar-stack{transform:translateY(3px);}
.bottom button img{display:block;flex-shrink:0;opacity:1!important;visibility:visible!important;}

/* V15.2: top chrome visually mirrors the bottom navigation. */
#rep-top-shell > header#rep-main-header {background:#111d23!important;border-bottom:1px solid #2c4149!important;}
button#rep-profile-trigger.rep-profile-icon {width:46px!important;height:46px!important;min-width:46px!important;background:transparent!important;border:0!important;border-radius:12px!important;padding:4px!important;display:grid!important;place-items:center!important;box-shadow:none!important;}
button#rep-profile-trigger.rep-profile-icon img {width:34px!important;height:34px!important;object-fit:contain!important;display:block!important;pointer-events:none!important;}
button#rep-profile-trigger.rep-profile-icon:active {background:#20343d!important;}


/* === SOURCE: rep-v16.css === */
/* REP V16 — tasks, single-screen beta event, responsive reward layout */
html:not(.rep-beta-home) {--rep-banner-height:0px!important;}
html:not(.rep-beta-home) #rep-beta-banner {display:none!important;}
.profile-hero-edit img {display:block;width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 1px 1px #0004)}
.rep-quests {padding-bottom:32px}
.rep-quests-hero {background:linear-gradient(125deg,#e6b92c,#ffdc59);border-radius:23px;min-height:170px;padding:28px 145px 24px 24px;position:relative;overflow:hidden;color:#392b13;margin:0 0 32px;display:flex;align-items:center;box-shadow:0 5px 0 #a37c25}
.rep-quests-hero h1 {font-size:clamp(30px,6vw,42px);color:#35280e;margin:0 0 10px;line-height:1.08}
.rep-quests-hero p {font-weight:850;line-height:1.35;font-size:16px;margin:0;max-width:260px;color:#5e4919}
.rep-quests-hero img {position:absolute;right:-28px;bottom:-35px;width:205px;height:205px;object-fit:contain;}
.rep-quests-label {font-size:13px;letter-spacing:1.5px;color:#a8b7bb;font-weight:1000;margin:0 0 18px}
.rep-quest {padding:18px 0 21px;border-bottom:2px solid #26343b;display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:12px;align-items:center}
.rep-quest h2 {font-size:19px;margin:0 0 12px;line-height:1.25;color:#eef5f4}
.rep-quest-reward {font-size:13px;color:#f2bfef;font-weight:900;margin:9px 0 0}
.rep-quest-icon {width:86px;height:86px;object-fit:contain;filter:drop-shadow(0 4px 1px #0004)}
.rep-quest-track {height:20px;border-radius:30px;background:#39474e;overflow:hidden;position:relative;box-shadow:inset 0 2px 2px #0002}
.rep-quest-fill {height:100%;border-radius:30px;background:linear-gradient(90deg,#fa60c4,#ff9fe0);transition:width .25s ease}
.rep-quest-count {position:absolute;inset:0;text-align:center;color:#eaf0f2;font-weight:1000;font-size:13px;line-height:20px;text-shadow:0 1px 3px #0009}
.rep-quest-claim {margin-top:12px;padding:9px 14px;border:0;border-radius:11px;background:#b8ff65;color:#20301a;font:900 13px Nunito,sans-serif;cursor:pointer}
.rep-quest-claim:disabled {opacity:.65;cursor:default}
.rep-quest-state {font-size:13px;color:#b8ff65;font-weight:900;margin-top:10px}
.rep-quest-help {font-size:13px;color:#9badb2;margin-top:24px;line-height:1.5}
@media(max-width:390px){.rep-quests-hero{padding-right:118px}.rep-quests-hero img{width:175px;height:175px;right:-35px}.rep-quest{grid-template-columns:minmax(0,1fr) 70px}.rep-quest-icon{width:70px;height:70px}}


/* === SOURCE: rep-v16.1.css === */

/* REP V16.1 — full-width tasks section banner, aligned with the application chrome. */
html:has(.rep-quests) body > .wrap {padding-top:var(--rep-total-top-height)!important;}
.rep-quests-hero {
  width:100vw;width:100dvw;max-width:none;
  margin:0 0 32px calc(50% - 50vw);
  border-radius:0;box-shadow:none;
  min-height:174px;padding:28px max(145px,calc((100vw - 980px)/2 + 145px)) 28px max(22px,calc((100vw - 980px)/2));
  background:linear-gradient(110deg,#efbf31 0%,#ffdb59 100%);
}
.rep-quests-hero img{right:max(-12px,calc((100vw - 1050px)/2));bottom:-38px;width:205px;height:205px;}
.bottom button[aria-label="Zadania"] img {width:34px!important;height:34px!important;object-fit:contain!important;}
@media(max-width:390px){.rep-quests-hero{padding-right:125px;min-height:166px}.rep-quests-hero img{width:175px;height:175px;right:-18px;bottom:-30px}}


/* === SOURCE: rep-v16.2.css === */
/* REP V16.2 — Zadania has its own fixed yellow top bar. */
html:has(.rep-quests) { --rep-total-top-height:0px!important; scroll-padding-top:0!important; }
html:has(.rep-quests) #rep-top-shell { display:none!important; }
html:has(.rep-quests) body > .wrap#app {
  padding-top:0!important;
  margin-top:0!important;
}
html:has(.rep-quests) .rep-quests {
  padding-top:calc(172px + env(safe-area-inset-top,0px))!important;
}
html:has(.rep-quests) .rep-quests-hero {
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;
  width:100%!important;max-width:none!important;
  height:calc(172px + env(safe-area-inset-top,0px))!important;
  min-height:0!important;
  margin:0!important;
  padding:calc(18px + env(safe-area-inset-top,0px)) 48% 14px max(20px,calc((100vw - 980px)/2))!important;
  box-sizing:border-box!important;
  z-index:85!important;
  border-radius:0!important;box-shadow:none!important;
  background:linear-gradient(110deg,#efbf31,#ffdb59)!important;
  display:flex!important;align-items:center!important;
}
html:has(.rep-quests) .rep-quests-hero > div {position:relative;z-index:2;min-width:0;}
html:has(.rep-quests) .rep-quests-hero h1 {font-size:clamp(25px,6.5vw,34px)!important;margin:0 0 7px!important;}
html:has(.rep-quests) .rep-quests-hero p {
  font-size:clamp(12px,3.45vw,15px)!important;
  line-height:1.3!important;max-width:195px!important;
  font-weight:850!important;
}
html:has(.rep-quests) .rep-quests-hero img {
  width:clamp(162px,47vw,206px)!important;
  height:clamp(162px,47vw,206px)!important;
  right:0!important;bottom:-20px!important;
  z-index:1!important;
}
html:has(.rep-quests) .rep-quests-label {padding-top:28px;}
@media(min-width:700px){
 html:has(.rep-quests) .rep-quests-hero{padding-right:250px!important;}
 html:has(.rep-quests) .rep-quests-hero img{right:max(16px,calc((100vw - 980px)/2))!important;}
 html:has(.rep-quests) .rep-quests-hero p{max-width:370px!important;}
}


/* === SOURCE: rep-v16.3.css === */
/* REP V16.3 — compact, balanced fixed quest header. */
html:has(.rep-quests) .rep-quests{padding-top:calc(150px + env(safe-area-inset-top,0px))!important;}
html:has(.rep-quests) .rep-quests-hero{
 height:calc(150px + env(safe-area-inset-top,0px))!important;
 padding:calc(13px + env(safe-area-inset-top,0px)) 49% 12px max(20px,calc((100vw - 980px)/2))!important;
}
html:has(.rep-quests) .rep-quests-hero h1{font-size:clamp(28px,7.2vw,36px)!important;margin-bottom:7px!important;line-height:1.08!important;}
html:has(.rep-quests) .rep-quests-hero p{font-size:clamp(13px,3.7vw,16px)!important;line-height:1.27!important;max-width:220px!important;}
html:has(.rep-quests) .rep-quests-hero img{width:clamp(145px,43vw,184px)!important;height:clamp(145px,43vw,184px)!important;right:0!important;bottom:-15px!important;}
html:has(.rep-quests) .rep-quests-label{padding-top:24px!important;}
@media(min-width:700px){html:has(.rep-quests) .rep-quests-hero{padding-right:230px!important;}html:has(.rep-quests) .rep-quests-hero img{right:max(16px,calc((100vw - 980px)/2))!important;}}
@media(max-width:360px){html:has(.rep-quests) .rep-quests-hero{padding-right:47%!important;}html:has(.rep-quests) .rep-quests-hero img{width:145px!important;height:145px!important;}}


/* === SOURCE: rep-v16.4.css === */
/* REP V16.4 — history hero, quest ending */
.rep-history-page > h1{font-size:clamp(28px,7.2vw,37px);font-weight:900;color:#f4f8f7;margin:0 0 22px!important;letter-spacing:-.6px}
.rep-history-feature{background:#6633b8;border-radius:24px;min-height:195px;height:clamp(195px,56vw,275px);display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0 auto 30px;max-width:680px;position:relative}
.rep-history-feature img{display:block;width:min(73%,255px);height:94%;object-fit:contain;mix-blend-mode:normal;border-radius:12px}
.rep-history-list{display:grid;gap:12px}
.rep-quest-help{display:none!important}
.rep-quest-error{color:#ffb7b7;font-weight:750;margin:20px 0}
@media(min-width:700px){.rep-history-feature{border-radius:28px}}


/* === SOURCE: rep-v16.5.css === */
/* REP V16.5 — compact history, no top navigation on history */
html.rep-on-history #rep-top-shell{display:none!important}
html.rep-on-history .wrap{padding-top:24px!important}
.rep-history-page>h1{font-size:clamp(28px,7.2vw,37px);margin:0 0 22px!important;color:#f5f8f8}
.rep-history-feature{width:100%;max-width:680px;height:clamp(120px,35vw,164px)!important;min-height:0!important;margin:0 auto 30px!important;border-radius:22px!important;background:#6032ae!important;overflow:hidden;display:flex;justify-content:center;align-items:center}
.rep-history-feature img{display:block;width:auto!important;height:94%!important;max-width:90%;object-fit:contain;border-radius:0!important;mix-blend-mode:normal}
@media(min-width:700px){.rep-history-feature{height:170px!important}}


/* === SOURCE: rep-v16.6.css === */
/* REP V16.6 — History hero, same style language as Tasks. */
.rep-history-page .rep-history-feature {
  width:100%;max-width:680px;
  height:clamp(134px,39vw,170px)!important;
  min-height:0!important;
  padding:12px 16px 12px 8px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:clamp(5px,2vw,18px)!important;
  background:linear-gradient(116deg,#6b3fc5 0%,#6638bf 60%,#713ec7 100%)!important;
  border-radius:22px!important;
  box-sizing:border-box;overflow:hidden;
  margin:0 auto 26px!important;
}
.rep-history-page .rep-history-feature > img {
  display:block!important;
  flex:0 0 auto!important;
  width:clamp(112px,37%,165px)!important;
  height:auto!important;max-height:calc(100% + 12px)!important;
  object-fit:contain!important;object-position:center bottom!important;
  margin:0!important;padding:0!important;
  border-radius:0!important;
}
.rep-history-message {min-width:0;flex:1;position:relative;z-index:1;display:flex;flex-direction:column;gap:5px;justify-content:center}
.rep-history-message strong{font:900 clamp(17px,5.4vw,25px)/1.13 Nunito,system-ui,sans-serif;color:#fff;letter-spacing:-.4px;}
.rep-history-message span{font:750 clamp(11.5px,3.15vw,15px)/1.35 Nunito,system-ui,sans-serif;color:#eee4ff;}
@media(max-width:350px){
 .rep-history-page .rep-history-feature{height:135px!important;padding:10px 10px 10px 5px!important;gap:5px!important;}
 .rep-history-page .rep-history-feature>img{width:110px!important;}
 .rep-history-message strong{font-size:17px;}
 .rep-history-message span{font-size:11.5px;}
}
@media(min-width:700px){
 .rep-history-page .rep-history-feature{height:174px!important;padding:14px 28px!important;gap:20px!important;}
 .rep-history-page .rep-history-feature>img{width:172px!important;max-height:100%!important;}
}
/* Original white X — all interactive area stays exactly as before. */
.rep-avatar-close{display:grid!important;place-items:center!important;}
.rep-avatar-close img{display:block;width:23px;height:23px;object-fit:contain;pointer-events:none;}


/* === SOURCE: rep-v17.css === */
/* REP V17 — WEB-first responsive shell. Mobile V16.6 remains untouched,
   except for the explicitly requested in-progress-training card. */

/* Shared, explicitly requested active-session redesign. */
.rep-ongoing-section .rep-ongoing-heading h2{
  color:#c9ff78;font-weight:1000;letter-spacing:-.5px;font-size:clamp(21px,5.4vw,26px);
}
.rep-ongoing-section .rep-ongoing-card{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:164px;margin-bottom:0!important;
  padding:20px 18px!important;
  background:linear-gradient(116deg,#126040 0%,#1d8c4a 65%,#24a452 100%)!important;
  border:1px solid #4dd46e!important;
  border-radius:21px!important;
}
.rep-ongoing-section .rep-ongoing-main{margin-top:0;display:block;min-height:125px;}
.rep-ongoing-section .rep-ongoing-body{width:70%;max-width:340px;position:relative;z-index:1;}
.rep-ongoing-section .rep-ongoing-main h3{color:#fff!important;font-size:clamp(21px,5.1vw,26px);line-height:1.15;margin:0 0 7px;}
.rep-ongoing-section .rep-ongoing-main p{font-weight:750;color:#d5ffdc!important;font-size:12px;line-height:1.4;margin-bottom:14px;}
.rep-ongoing-section .rep-ongoing-resume{
  background:#b8ff65!important;color:#193a26!important;
  font:1000 15px/1.2 Nunito,system-ui,sans-serif;letter-spacing:.05px;
  padding:11px 21px;min-height:42px;border-radius:12px;white-space:nowrap;
  box-shadow:0 3px 0 #0a472b60!important;
}
.rep-ongoing-section .rep-ongoing-art{
  position:absolute;right:-9px;bottom:-12px;width:clamp(122px,36vw,182px);
  height:auto;max-height:112%;object-fit:contain;object-position:center bottom;pointer-events:none;
  z-index:0;display:block;
}
@media(max-width:360px){.rep-ongoing-section .rep-ongoing-body{width:72%}.rep-ongoing-section .rep-ongoing-art{right:-20px;width:127px}}

/* The new desktop-only sidebar is not displayed on phones/tablets. */
#rep-web-sidebar{display:none;}
.rep-web-plan-grid{display:contents;}

/* WEB starts at desktop width only. The phone remains V16.6 pixel-for-pixel
   outside the explicit active-session and slogan changes above. */
@media(min-width:960px){
  :root{--rep-web-top:78px;--rep-web-side:226px;--rep-banner-height:0px;--rep-main-height:78px;--rep-total-top-height:78px;}
  html,body{background:#0a1318!important;min-height:100%;}
  html:has(.rep-quests){--rep-total-top-height:78px!important;scroll-padding-top:78px!important;}
  html.rep-on-profile #rep-top-shell,
  html.rep-on-history #rep-top-shell,
  html:has(.rep-quests) #rep-top-shell{display:block!important;}
  #rep-top-shell{height:var(--rep-web-top)!important;background:#111d23!important;box-shadow:none!important;z-index:95!important;}
  #rep-beta-banner,html.rep-beta-home #rep-beta-banner{display:none!important;}
  #rep-top-shell>header#rep-main-header{
    height:var(--rep-web-top)!important;min-height:var(--rep-web-top)!important;
    padding:9px 32px!important;background:#111d23!important;
    border-bottom:1px solid #2e4148!important;display:flex!important;
  }
  #rep-main-header .logo{font-size:34px!important;letter-spacing:-2px!important;}
  .rep-header-actions{gap:26px!important;}
  .rep-currency{font-size:20px;gap:9px;}
  .rep-currency img{width:37px;height:37px;}
  button#rep-profile-trigger.rep-profile-icon{width:48px!important;height:48px!important;}
  button#rep-profile-trigger.rep-profile-icon img{width:36px!important;height:36px!important;}
  .bottom{display:none!important;}
  #rep-web-sidebar{
    position:fixed;top:var(--rep-web-top);bottom:0;left:0;width:var(--rep-web-side);
    display:block!important;z-index:80;overflow-y:auto;overflow-x:hidden;
    background:#111d23;border-right:1px solid #2e4148;
    padding:26px 13px 24px;
  }
  .rep-web-sidebar-inner{display:flex;flex-direction:column;gap:9px;}
  #rep-web-sidebar .rep-web-nav-item{
    width:100%;height:57px;display:flex;align-items:center;justify-content:flex-start;
    gap:16px;padding:9px 16px;border-radius:15px;border:1px solid transparent;
    background:transparent;color:#b8c9ce;font:900 16px Nunito,system-ui,sans-serif;
    text-align:left;cursor:pointer;transition:background .13s,border-color .13s;
  }
  #rep-web-sidebar .rep-web-nav-item img{
    display:block;flex:0 0 33px;width:33px;height:33px;object-fit:contain;
    opacity:1!important;visibility:visible!important;
  }
  #rep-web-sidebar .rep-web-nav-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  #rep-web-sidebar .rep-web-nav-item:hover{background:#1b3038;color:#f3faf6;}
  #rep-web-sidebar .rep-web-nav-item.active{
    background:#203d32;border:1.5px solid #547d62;color:#b8ff65;
  }
  #rep-web-sidebar .rep-web-nav-item:focus-visible{outline:2px solid #b8ff65;outline-offset:2px;}
  .rep-web-nav-separator{margin:13px 12px;border-top:1px solid #2b3e46;}
  body > main.wrap#app,html.rep-on-profile body>.wrap#app,html.rep-on-history body>.wrap#app,
  html:has(.rep-quests) body>.wrap#app{
    box-sizing:border-box!important;
    margin:0 0 0 var(--rep-web-side)!important;
    width:calc(100% - var(--rep-web-side))!important;
    max-width:none!important;
    min-height:calc(100vh - var(--rep-web-top));
    padding:calc(var(--rep-web-top) + 42px) clamp(26px,4.5vw,76px) 80px!important;
  }
  #app > *{max-width:1250px;}
  #app .eyebrow{font-size:13px;letter-spacing:1.6px;}
  #app > h1{font-size:clamp(35px,3vw,48px);line-height:1.13;margin:10px 0 13px;}
  #app > .subtitle{font-size:17px;line-height:1.55;max-width:800px;}
  #app > .grid{grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;gap:18px;}
  #app > .grid .workout{min-height:166px;padding:24px;border-radius:22px;}
  #app > .grid .workout strong{font-size:29px;}
  #app .sectionhead{margin-top:36px;}
  #app .sectionhead h2{font-size:24px;}
  #app .rep-first-plan{width:min(100%,850px);margin:0;min-height:235px;justify-content:center;}
  /* Distinct desktop plan gallery; markup remains a normal block on mobile. */
  #app .rep-web-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(370px,1fr));align-items:start;gap:18px;margin-top:26px;max-width:1250px;}
  #app .rep-web-plan-grid>.rep-plan-card{margin:0;border-radius:22px;min-height:200px;padding:22px;}
  #app .rep-plan-card .exercise{gap:15px;}
  #app .rep-plan-card .exercise .row{flex-shrink:0;}
  #app > .add-day{margin-top:22px;max-width:1250px;}
  #app .rep-ongoing-list{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px;}
  #app .rep-ongoing-card{min-height:182px;}
  #app .rep-ongoing-art{width:177px;}
  #app .rep-ongoing-section .rep-ongoing-body{width:70%;}
  #app .rep-history-page{max-width:1250px;}
  #app .rep-history-page>h1{font-size:41px;}
  #app .rep-history-feature{margin:0 0 34px!important;max-width:900px!important;height:198px!important;border-radius:28px!important;}
  #app .rep-history-feature>img{width:190px!important;max-height:100%!important;}
  #app .rep-history-list{grid-template-columns:repeat(auto-fit,minmax(365px,1fr));gap:18px;}
  #app .rep-history-list>.card{margin:0;min-height:100px;}
  #app .rep-history-message strong{font-size:28px;}
  #app .rep-history-message span{font-size:17px;}
  #app .rep-profile-page{max-width:1180px!important;}
  #app .profile-hero-art{height:310px;}
  #app .profile-hero-art:before{width:310px;height:310px;}
  #app .profile-hero-art>.profile-large-avatar{height:310px;width:310px;margin-bottom:-28px;}
  #app .profile-hero{border-radius:26px;}
  #app .profile-hero-detail{padding:26px 34px;}
  #app .rep-lifts-grid{gap:16px;}
  #app .rep-quest{grid-template-columns:minmax(0,1fr) 125px;gap:25px;padding:23px 0 25px;}
  #app .rep-quest-icon{width:125px;height:125px;}
  #app .rep-quest h2{font-size:23px;}
  #app .rep-quest-track{height:23px;}
  #app .rep-quest-count{line-height:23px;font-size:14px;}
  #app .rep-quests{padding-top:0!important;max-width:1080px;}
  html:has(.rep-quests) .rep-quests{padding-top:0!important;}
  html:has(.rep-quests) .rep-quests-hero{
    position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;max-width:1080px!important;height:218px!important;
    min-height:218px!important;margin:0 0 37px!important;
    padding:34px 310px 30px 36px!important;border-radius:26px!important;
    box-shadow:none!important;display:flex!important;overflow:hidden!important;
  }
  html:has(.rep-quests) .rep-quests-hero h1{font-size:43px!important;}
  html:has(.rep-quests) .rep-quests-hero p{font-size:19px!important;max-width:550px!important;}
  html:has(.rep-quests) .rep-quests-hero img{
    position:absolute!important;right:8px!important;bottom:-55px!important;
    width:270px!important;height:270px!important;
  }
  html:has(.rep-quests) .rep-quests-label{padding-top:0!important;font-size:15px;}
  .modal{z-index:140!important;}
  #rep-account,#rep-avatar-overlay{z-index:160;}
}
/* Automatic compact left rail; only the captions disappear. */
@media(min-width:960px) and (max-width:1299px){
  :root{--rep-web-side:85px;}
  #rep-web-sidebar{padding:23px 10px;}
  #rep-web-sidebar .rep-web-nav-item{width:62px;height:61px;justify-content:center;padding:9px;gap:0;}
  #rep-web-sidebar .rep-web-nav-item img{width:34px;height:34px;flex-basis:34px;}
  #rep-web-sidebar .rep-web-nav-item span{display:none!important;}
  #rep-web-sidebar .rep-web-nav-separator{margin:10px 8px;}
  #app .rep-web-plan-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));}
}
@media(min-width:960px) and (max-width:1099px){
  #app .rep-web-plan-grid{grid-template-columns:1fr;}
  #app .rep-ongoing-list{grid-template-columns:1fr;}
  html:has(.rep-quests) .rep-quests-hero{padding-right:260px!important;}
  html:has(.rep-quests) .rep-quests-hero img{right:-10px!important;width:245px!important;height:245px!important;}
}
@media(prefers-reduced-motion:reduce){#rep-web-sidebar .rep-web-nav-item{transition:none!important}}
/* V17 QA: legacy PWA rule forces the old bottom bar at all widths. Explicitly
   override it on the desktop; mobile behavior is unchanged. */
@media(min-width:960px){
  html body>#bottom.bottom{display:none!important;}
}
@media(min-width:1700px){
  body>main.wrap#app,
  html.rep-on-profile body>.wrap#app,
  html.rep-on-history body>.wrap#app,
  html:has(.rep-quests) body>.wrap#app{
    padding-left:max(76px,calc((100vw - var(--rep-web-side) - 1250px)/2))!important;
  }
}


/* V17.1 — brighter ongoing card and corrected mascot */
.rep-ongoing-heading{align-items:flex-start!important;}
.rep-ongoing-section .rep-live-count{display:none!important;}
.rep-ongoing-section .rep-ongoing-card{min-height:188px;margin-bottom:0!important;padding:18px 18px 17px!important;background:linear-gradient(160deg,#63d411 0%,#58c90d 55%,#46b50a 100%)!important;border:1px solid #8cf03e!important;border-radius:24px!important;box-shadow:0 7px 0 #2f8606!important;}
.rep-ongoing-section .rep-ongoing-main{display:flex;align-items:center;gap:10px;min-height:146px;}
.rep-ongoing-section .rep-ongoing-body{width:auto;max-width:none;flex:1;min-width:0;}
.rep-ongoing-kicker{font:1000 12px/1 Nunito,system-ui,sans-serif;letter-spacing:1.35px;text-transform:uppercase;color:#eaffcc;margin:0 0 10px;opacity:.96;}
.rep-ongoing-section .rep-ongoing-main h3{color:#fff!important;font-size:clamp(28px,7vw,35px);line-height:1.06;margin:0 0 18px;text-shadow:0 1px 0 #2f860633;max-width:10ch;}
.rep-ongoing-section .rep-ongoing-main p{display:none!important;}
.rep-ongoing-section .rep-ongoing-resume{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-width:min(100%,278px);min-height:54px;padding:12px 24px;border-radius:18px;border:0!important;background:#fff!important;color:#53a91f!important;font:1000 18px/1 Nunito,system-ui,sans-serif;letter-spacing:.4px;box-shadow:0 6px 0 #d2e7f3,0 0 0 2px #ffffff12 inset!important;}
.rep-ongoing-section .rep-ongoing-resume::after{content:"";position:absolute;top:-40%;left:-34%;width:34%;height:180%;transform:rotate(22deg);background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.05) 15%,rgba(255,255,255,.95) 50%,rgba(255,255,255,.05) 85%,transparent 100%);animation:repShinySweep 4.6s ease-in-out infinite;pointer-events:none;}
.rep-ongoing-section .rep-ongoing-art{position:static;right:auto!important;bottom:auto!important;flex:0 0 clamp(86px,24vw,126px);width:clamp(86px,24vw,126px)!important;height:auto;max-height:126px;object-fit:contain;object-position:center center;align-self:center;filter:drop-shadow(0 10px 12px rgba(18,52,7,.18));}
@keyframes repShinySweep{0%,68%,100%{left:-38%;opacity:0}72%{opacity:.15}78%{left:118%;opacity:.95}82%{opacity:0}}
@media(max-width:390px){.rep-ongoing-section .rep-ongoing-card{padding:17px 16px 16px!important;min-height:172px;}.rep-ongoing-section .rep-ongoing-main{min-height:132px;gap:8px;}.rep-ongoing-section .rep-ongoing-main h3{font-size:clamp(24px,7.3vw,31px);margin-bottom:14px;max-width:9.5ch;}.rep-ongoing-section .rep-ongoing-resume{min-width:190px;min-height:50px;font-size:17px;border-radius:16px;}.rep-ongoing-section .rep-ongoing-art{flex-basis:88px;width:88px!important;max-height:100px;}}
.rep-quests-hero img{right:-4px!important;bottom:-6px!important;width:195px;height:195px;filter:drop-shadow(0 8px 10px rgba(0,0,0,.12));}
@media(max-width:390px){.rep-quests-hero img{right:-10px!important;bottom:-3px!important;width:172px!important;height:172px!important;}}
@media(min-width:960px){#app .rep-ongoing-card{min-height:206px;}#app .rep-ongoing-section .rep-ongoing-main h3{font-size:38px;max-width:12ch;}#app .rep-ongoing-section .rep-ongoing-resume{min-width:292px;min-height:58px;font-size:19px;}#app .rep-ongoing-section .rep-ongoing-art{flex-basis:136px;width:136px!important;max-height:136px;}html:has(.rep-quests) .rep-quests-hero{padding-right:300px!important;}html:has(.rep-quests) .rep-quests-hero img{right:16px!important;bottom:-8px!important;width:242px!important;height:242px!important;}}


/* V17.2 — ongoing card simplified per request */
.rep-ongoing-section .rep-ongoing-list{grid-template-columns:1fr!important;}
.rep-ongoing-section .rep-ongoing-card{
  min-height:148px!important;
  padding:16px 16px 15px!important;
  border-radius:16px!important;
  background:#58cc02!important;
  border:0!important;
  box-shadow:none!important;
}
.rep-ongoing-section .rep-ongoing-main{
  min-height:auto!important;
  gap:0!important;
  align-items:flex-start!important;
}
.rep-ongoing-section .rep-ongoing-body{
  width:100%!important;
  max-width:100%!important;
}
.rep-ongoing-kicker{
  margin:0 0 8px!important;
  font-size:11px!important;
  letter-spacing:1.1px!important;
}
.rep-ongoing-section .rep-ongoing-main h3{
  font-size:clamp(24px,5.8vw,30px)!important;
  margin:0 0 12px!important;
  max-width:none!important;
}
.rep-ongoing-section .rep-ongoing-resume{
  min-width:160px!important;
  min-height:46px!important;
  padding:10px 18px!important;
  border-radius:14px!important;
  font-size:16px!important;
  box-shadow:none!important;
}
.rep-ongoing-section .rep-ongoing-resume::after{display:none!important;}
.rep-ongoing-section .rep-ongoing-art{display:none!important;}
@media(max-width:390px){
  .rep-ongoing-section .rep-ongoing-card{min-height:140px!important;padding:15px 14px!important;border-radius:14px!important;}
  .rep-ongoing-section .rep-ongoing-main h3{font-size:26px!important;margin-bottom:11px!important;}
  .rep-ongoing-section .rep-ongoing-resume{min-width:148px!important;min-height:44px!important;font-size:15px!important;border-radius:13px!important;}
}
@media(min-width:960px){
  #app .rep-ongoing-list{max-width:480px!important;}
  #app .rep-ongoing-section .rep-ongoing-card{min-height:152px!important;padding:18px 18px 16px!important;border-radius:18px!important;}
  #app .rep-ongoing-section .rep-ongoing-main h3{font-size:30px!important;}
  #app .rep-ongoing-section .rep-ongoing-resume{min-width:176px!important;min-height:48px!important;font-size:16px!important;}
}


/* === SOURCE: rep-v17.3-fix.css === */
/* REP 17.3 PATCH — previous in-progress session card, no date, clock mascot without background. */
/* The dated/simplified v17.2 home card is purposefully overridden without disturbing the rest of the UI. */
.rep-ongoing-section .rep-ongoing-heading{align-items:center!important;gap:12px;}
.rep-ongoing-section .rep-ongoing-heading h2{color:#edf3f1!important;font-size:clamp(21px,5.5vw,27px)!important;font-weight:1000!important;margin:0!important;letter-spacing:-.5px!important;}
.rep-ongoing-section .rep-live-count{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;background:#263d2b;border:1px solid #4d7047;color:#c4ff83;border-radius:12px;padding:7px 11px;font:900 13px/1.1 Nunito,sans-serif;}
.rep-ongoing-section .rep-ongoing-list{grid-template-columns:1fr!important;max-width:none;}
.rep-ongoing-section .rep-ongoing-card,
#app .rep-ongoing-section .rep-ongoing-card{background:#1c2d27!important;border:1.5px solid #577748!important;border-radius:19px!important;box-shadow:none!important;min-height:168px!important;padding:19px 20px 20px!important;}
.rep-ongoing-section .rep-ongoing-main{display:block!important;min-height:0!important;}
.rep-ongoing-section .rep-ongoing-body{width:100%!important;max-width:none!important;}
.rep-ongoing-section .rep-ongoing-kicker{display:flex;align-items:center;gap:9px;color:#c5ff7b!important;font:1000 12px/1.1 Nunito,sans-serif!important;letter-spacing:1.3px!important;text-transform:uppercase;margin:0 0 12px!important;}
.rep-ongoing-section .rep-ongoing-dot{width:9px;height:9px;border-radius:99px;background:#bbff75;box-shadow:0 0 0 4px #b4ff7824;flex:none;}
.rep-ongoing-section .rep-ongoing-main h3,
#app .rep-ongoing-section .rep-ongoing-main h3{color:#f1f7f3!important;font-size:clamp(24px,6vw,29px)!important;line-height:1.12!important;margin:0 0 7px!important;max-width:none!important;text-shadow:none!important;}
.rep-ongoing-section .rep-ongoing-main p.rep-ongoing-detail{display:block!important;color:#a8bab4!important;font-size:13px!important;font-weight:650!important;line-height:1.35!important;margin:0 0 15px!important;}
.rep-ongoing-section .rep-ongoing-resume,
#app .rep-ongoing-section .rep-ongoing-resume{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-width:142px!important;max-width:100%;min-height:47px!important;padding:11px 19px!important;border:0!important;border-radius:13px!important;background:#beff73!important;color:#152213!important;font:1000 17px/1 Nunito,sans-serif!important;letter-spacing:0!important;box-shadow:0 3px 0 #8bbd47!important;transition:transform .12s ease,box-shadow .12s ease;}
.rep-ongoing-section .rep-ongoing-resume:active{transform:translateY(2px);box-shadow:0 1px 0 #8bbd47!important;}
.rep-ongoing-section .rep-ongoing-resume::after{display:none!important;}
.rep-ongoing-section .rep-ongoing-art{display:none!important;}
/* The second quest uses the same original gem icon styling as the other quest tiers. */
@media(max-width:390px){
  .rep-ongoing-section .rep-ongoing-card,#app .rep-ongoing-section .rep-ongoing-card{padding:18px 18px 19px!important;min-height:160px!important;}
  .rep-ongoing-section .rep-ongoing-resume{min-height:45px!important;font-size:16px!important;}
}
@media(min-width:960px){
  #app .rep-ongoing-list{max-width:550px!important;}
  #app .rep-ongoing-section .rep-ongoing-card{min-height:171px!important;}
}


/* === SOURCE: rep-v21.css === */
/* REP V21 — Avatar Revolution. Late-loaded overrides for the canonical LEGO creator. */
html.rep21-editor-open,html.rep21-editor-open body{overflow:hidden!important;overscroll-behavior:none}
#rep-avatar-overlay:not(:empty){position:fixed;inset:0;z-index:170}
#rep-avatar-overlay .rep21-backdrop{position:absolute;inset:0;z-index:171;background:#080f16;display:flex;justify-content:center;align-items:stretch;padding:0;overflow:hidden;box-sizing:border-box}
#rep-avatar-overlay .rep21-dialog{position:relative;display:flex;flex-direction:column;width:100%;max-width:640px;min-width:0;height:100%;max-height:100%;background:linear-gradient(180deg,#101f2a 0%,#0b171f 100%);color:#f2f7f9;overflow:hidden;box-shadow:0 0 80px #0006}
#rep-avatar-overlay .rep21-header{display:grid;grid-template-columns:48px minmax(0,1fr) 86px;align-items:center;gap:10px;padding:max(14px,env(safe-area-inset-top)) 16px 12px;flex:0 0 auto;border-bottom:1px solid #27414b;z-index:2;background:#111f29}
#rep-avatar-overlay .rep21-header h2{font-family:Nunito,system-ui,sans-serif;margin:0;font-size:17px;font-weight:1000;letter-spacing:.2px;text-align:center;white-space:nowrap}
#rep-avatar-overlay .rep21-icon-button{width:43px;height:43px;border-radius:13px;border:1px solid #3d5662;background:#233641;display:grid;place-items:center;box-shadow:0 3px 0 #15232b}
#rep-avatar-overlay .rep21-icon-button img{width:24px;height:24px;object-fit:contain}
#rep-avatar-overlay .rep21-save{border:0;border-radius:13px;background:#b8ff65;color:#142113;padding:0 12px;height:42px;box-shadow:0 4px 0 #5f9a27;font-family:inherit;font-size:13px;font-weight:1000;transition:transform .12s,box-shadow .12s}
#rep-avatar-overlay .rep21-save:active{transform:translateY(3px);box-shadow:0 1px 0 #5f9a27}
#rep-avatar-overlay .rep21-save:disabled{opacity:.52;cursor:wait}
#rep-avatar-overlay .rep21-body{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 16px max(42px,env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#355561 transparent}
#rep-avatar-overlay .rep21-preview{position:relative;display:flex;justify-content:center;align-items:center;height:clamp(176px,29vh,244px);overflow:hidden;border-radius:22px;border:1px solid #3a5a68;background:radial-gradient(circle at 50% 43%,#38596b 0,#263f4d 48%,#1e333f 100%);margin-bottom:14px}
#rep-avatar-overlay .rep21-preview:before{position:absolute;content:'';width:194px;height:194px;border:2px dashed #a9d9df66;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-43%);pointer-events:none}
#rep-avatar-overlay #rep21-preview{position:relative;z-index:1;width:min(266px,68vw);height:min(266px,68vw);flex:0 0 auto;display:grid;place-items:center;align-self:end;margin-bottom:-45px}
#rep-avatar-overlay #rep21-preview .rep-avatar-stack{width:100%!important;height:100%!important;margin:0!important;flex:none!important;border-radius:0;background:transparent!important;overflow:visible!important}
#rep-avatar-overlay .rep21-preview-caption{position:absolute;top:10px;left:13px;z-index:2;font-size:10px;font-weight:900;letter-spacing:1.4px;color:#b9d5dd}
#rep-avatar-overlay .rep21-sex{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
#rep-avatar-overlay .rep21-sex button{border:1px solid #34505c;border-radius:13px;background:#192b36;color:#aabcc7;padding:12px 7px;font-weight:950;letter-spacing:.3px;min-height:48px;font-size:14px;transition:background .15s,border .15s}
#rep-avatar-overlay .rep21-sex button.is-current{background:#244350;color:#75d4ff;border-color:#59bbf0;box-shadow:inset 0 -4px 0 #48ace0}
#rep-avatar-overlay .rep21-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:5px 2px;margin-bottom:10px;border-bottom:1px solid #36505d}
#rep-avatar-overlay .rep21-tabs button{border:0;border-radius:12px 12px 0 0;min-width:0;min-height:55px;background:transparent;display:grid;place-items:center;border-bottom:4px solid transparent;transition:background .12s,transform .12s;padding:7px 2px}
#rep-avatar-overlay .rep21-tabs button.is-current{border-bottom-color:#56c8ff;background:#223b47}
#rep-avatar-overlay .rep21-tabs button:active{transform:translateY(2px)}
#rep-avatar-overlay .rep21-tabs img{width:35px;height:35px;object-fit:contain;filter:grayscale(1) brightness(1.7);opacity:.67;pointer-events:none}
#rep-avatar-overlay .rep21-tabs button.is-current img{filter:none;opacity:1}
#rep-avatar-overlay .rep21-content{min-height:210px}
#rep-avatar-overlay .rep21-category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 13px}
#rep-avatar-overlay .rep21-category-heading h3{font-size:17px;font-weight:1000;letter-spacing:.4px;margin:0;color:#f1f9fb}
#rep-avatar-overlay .rep21-gem-label{color:#f4a7d4;font-size:13px;font-weight:950;white-space:nowrap}
#rep-avatar-overlay .rep21-variant{margin:0 0 17px;padding:13px;background:#172a35;border:1px solid #314b58;border-radius:17px}
#rep-avatar-overlay .rep21-variant-label{font-size:12px;letter-spacing:.5px;font-weight:900;color:#d7e7ed;margin-bottom:11px}
#rep-avatar-overlay .rep21-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#rep-avatar-overlay .rep21-color{border:2px solid #395562;background:#233641;aspect-ratio:1;max-height:56px;min-width:0;border-radius:13px;padding:4px;display:grid;place-items:center;transition:transform .12s,border-color .12s}
#rep-avatar-overlay .rep21-color span{display:block;width:100%;height:100%;border-radius:9px;box-shadow:inset 0 -2px 0 #0002}
#rep-avatar-overlay .rep21-color.is-active{border:3px solid #64cdff;box-shadow:0 0 0 2px #133c51;padding:3px}
#rep-avatar-overlay .rep21-color:active{transform:scale(.94)}
#rep-avatar-overlay .rep21-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#rep-avatar-overlay .rep21-item{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:#1b2e39;border:2px solid #36505c;border-radius:17px;padding:7px 4px 11px;color:#e9f6fa;font-family:inherit;box-shadow:0 4px 0 #0b171e;transition:transform .12s,box-shadow .12s}
#rep-avatar-overlay .rep21-item.is-picked{border-color:#65cfff;background:#234351;box-shadow:0 4px 0 #20587a}
#rep-avatar-overlay .rep21-item:active{transform:translateY(3px);box-shadow:0 1px 0 #0b171e}
#rep-avatar-overlay .rep21-item-art{width:86px;height:86px;max-width:100%;border-radius:14px;background:#263e4b;overflow:hidden;display:grid;place-items:center;flex:none}
#rep-avatar-overlay .rep21-item-art .rep-avatar-stack{width:86px!important;height:86px!important;max-width:100%!important;margin:0!important}
#rep-avatar-overlay .rep21-item-image{width:65%;height:65%;object-fit:contain}
#rep-avatar-overlay .rep21-item-name{font-size:12px;line-height:1.2;font-weight:950;text-align:center;min-height:30px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
#rep-avatar-overlay .rep21-item-status{font-size:9px;font-weight:950;letter-spacing:.3px;color:#b8ff65;white-space:nowrap}
#rep-avatar-overlay .rep21-item-status.is-gems{color:#ff9cdb}
#rep-avatar-overlay .rep21-item-lock{position:absolute;top:5px;right:7px;color:#ffb0df;font-size:13px}
#rep-avatar-overlay .rep21-hint{border:1px dashed #496473;background:#162832;border-radius:15px;padding:14px 12px;color:#b5c8d2;font-size:13px;line-height:1.5}
#rep-avatar-overlay .rep21-premium-note{margin-top:12px}
#rep-avatar-overlay .rep21-footnote{margin:21px 0 4px;text-align:center;color:#9cafb9;font-size:11px;line-height:1.5}
/* Pixel-consistent avatar containers in ALL existing placements. */
.rep-avatar-stack.rep21-avatar-stack{background:#1d3842}
.rep21-avatar-stack .rep-avatar-canvas{image-rendering:auto}
.profile-large-avatar>.rep21-avatar-stack{width:100%;height:100%}
.profile-person-avatar>.rep21-avatar-stack{width:100%;height:100%}
#rep-profile-trigger .top-avatar>.rep21-avatar-stack{width:100%;height:100%}
@media(min-width:740px){#rep-avatar-overlay .rep21-dialog{margin:1.5vh 0;border:1px solid #3b5967;border-radius:25px;max-height:97vh}#rep-avatar-overlay .rep21-backdrop{background:#050b11e8;align-items:center}}
@media(max-width:360px){#rep-avatar-overlay .rep21-header{grid-template-columns:42px minmax(0,1fr) 78px;gap:5px;padding-left:10px;padding-right:10px}#rep-avatar-overlay .rep21-header h2{font-size:14px}#rep-avatar-overlay .rep21-body{padding-left:10px;padding-right:10px}#rep-avatar-overlay .rep21-tabs img{width:29px;height:29px}#rep-avatar-overlay .rep21-tabs button{min-height:48px}#rep-avatar-overlay .rep21-item-art{height:72px;width:72px}}
@media(prefers-reduced-motion:reduce){#rep-avatar-overlay .rep21-dialog *{animation:none!important;transition:none!important}}

/* V21 profile polish: keep established progress and badge layout intact. */
.rep21-profile-style{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 5px}
.rep21-profile-style span{background:#213946;border:1px solid #345664;color:#bfdce9;border-radius:10px;padding:6px 9px;font-size:11px;font-weight:850;line-height:1.1}
.rep-profile-page .profile-hero{border-color:#334c58;background:linear-gradient(180deg,#162830,#101d24)}
.rep-profile-page .profile-hero-art{background:radial-gradient(circle at 50% 20%,#335565,#203941 72%)}
.rep-profile-page .profile-hero-edit{box-shadow:0 3px 0 #13232a}
.rep-profile-page .profile-hero-edit:active{transform:translateY(2px);box-shadow:0 1px 0 #13232a}



/* SOURCE: rep-v23.4-features.css */
/* REP V23.4 — generated bundle. Sources retained unmodified. Do not edit this bundle directly. */

/* === SOURCE: rep-library-v18.css === */
/* REP V18.0 · Exercise Library / isolated styles, original V17.5 theme preserved */
.rep-library-page,.rep-lib-picker{font-family:Nunito,system-ui,-apple-system,sans-serif;color:#f2f7f1}
.rep-library-page{max-width:900px;margin:auto;padding-bottom:22px}
.rep-lib-top{padding:4px 0 22px}
.rep-lib-overline{display:block;color:#bafd79;font-size:11px;font-weight:900;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:8px}
.rep-lib-top h1,.rep-lib-detail-head h1{font-weight:1000;letter-spacing:-1.2px;line-height:1.08;font-size:clamp(25px,6vw,39px);margin:5px 0 10px}
.rep-lib-top h1 span{color:#b8ff65}
.rep-lib-top p,.rep-lib-detail-head p{color:#98a9a6;font-size:13px;line-height:1.45;margin:0;max-width:490px}
.rep-lib-panel{border:1px solid #334238;border-radius:20px;background:linear-gradient(165deg,#161f1d,#10181b 62%);padding:15px 13px}
.rep-lib-filters{display:grid;gap:14px}
.rep-lib-search-wrap{display:flex;align-items:center;border:1px solid #35483d;border-radius:13px;background:#0b1416;height:48px;padding:0 13px;gap:9px;color:#b8ff65}
.rep-lib-search-wrap span{font-size:25px;font-weight:700;line-height:1}
.rep-lib-search{background:transparent;color:#f2f7f1;border:0;outline:0;width:100%;font-size:14px;min-width:0;font-weight:700}
.rep-lib-search::placeholder{color:#788d87;font-weight:600}
.rep-lib-muscles{display:flex;gap:7px;overflow:auto;scrollbar-width:none;padding-bottom:4px}
.rep-lib-muscles::-webkit-scrollbar{display:none}
.rep-lib-chip{padding:9px 12px;border-radius:12px;background:#202d2d;border:1px solid #34433e;color:#d5e0dc;white-space:nowrap;font-size:12px;font-weight:800}
.rep-lib-chip.is-active{color:#162311;background:#baff75;border-color:#baff75}
.rep-lib-filterbar{display:flex;align-items:end;justify-content:space-between;gap:9px;flex-wrap:wrap}
.rep-lib-filterbar label{font-weight:800;font-size:11px;letter-spacing:.4px;color:#9baaab;display:grid;gap:6px;min-width:126px}
.rep-lib-select{appearance:auto;background:#202b2b;border:1px solid #3c5147;color:#f4f7f4;border-radius:11px;padding:9px 9px;font-size:12px;width:145px;max-width:100%}
.rep-lib-switch{display:flex;gap:3px;background:#0a1416;border-radius:12px;padding:3px;border:1px solid #2f403b}
.rep-lib-switch button{border:0;border-radius:9px;background:transparent;color:#a1b1ac;padding:8px 10px;font-size:12px;font-weight:900}
.rep-lib-switch button.is-current{background:#2c4032;color:#bbff76}
.rep-lib-result-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #314039;margin:19px 0 3px;padding:0 2px 10px}
.rep-lib-result-title strong{font-size:15px}.rep-lib-result-title span{font-size:12px;color:#95a7a1}
.rep-lib-item,.rep-lib-family{border:0;border-bottom:1px solid #293934;background:transparent;color:#f0f4f1;display:flex;align-items:center;width:100%;gap:10px;padding:12px 2px;text-align:left;min-height:67px}
.rep-lib-item:last-child,.rep-lib-family:last-child{border-bottom:0}
.rep-lib-item:active,.rep-lib-family:active{background:#20372b;border-radius:8px}
.rep-lib-item-icon,.rep-lib-family-mark{flex:none;display:grid;place-items:center;border-radius:12px;background:#263a2b;color:#b7f66e;width:44px;height:44px;font-size:23px;font-weight:900}
.rep-lib-family-mark{background:#27322a;font-size:17px}
.rep-lib-item-text,.rep-lib-family>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.rep-lib-item strong,.rep-lib-family strong{font-size:13px;font-weight:900;line-height:1.3}
.rep-lib-item small,.rep-lib-family small{font-size:11px;color:#a2b2ab;line-height:1.25}
.rep-lib-item-arrow{color:#aaf469;font-size:25px;font-weight:800;margin-left:auto}
.rep-lib-empty{padding:23px 7px;display:grid;justify-items:start;gap:15px;color:#a5b2ae;font-size:13px}
.rep-lib-empty .btn{font-size:12px}
.rep-lib-caption{color:#7e938b;font-size:11px;line-height:1.5;margin:12px 2px}
.rep-lib-back{border:0;color:#b8ff65;background:transparent;font-size:13px;font-weight:900;padding:8px 0 20px;text-align:left}
.rep-lib-detail-head{margin:0 0 21px}
.rep-lib-detail-head h1{font-size:clamp(24px,5vw,32px)}
.rep-lib-badges{display:flex;flex-wrap:wrap;gap:7px}
.rep-lib-badges span{font-size:11px;font-weight:800;background:#29402f;color:#c6ff8f;border-radius:9px;padding:7px 9px}
.rep-lib-info{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.rep-lib-info>div{background:#10191a;border:1px solid #2a3c34;border-radius:12px;padding:12px;display:grid;gap:4px;min-width:0}
.rep-lib-info small{font-size:10px;color:#a9bab1}.rep-lib-info strong{font-size:13px;overflow-wrap:anywhere}
.rep-lib-hint{border-left:3px solid #baff76;border-radius:10px;background:#1b2b25;padding:12px 14px;margin:15px 0 21px}
.rep-lib-hint strong{font-size:13px;color:#c5ff91}.rep-lib-hint p{font-size:13px;line-height:1.5;color:#cfdbd3;margin:5px 0 0}
.rep-lib-panel h2{font-size:15px;font-weight:900;margin:20px 0 9px}
.rep-lib-destination{display:grid;gap:5px;color:#b8cbbf;font-weight:900;font-size:12px;margin:18px 0 11px}
.rep-lib-destination .field{margin:3px 0}
.rep-lib-config{display:grid;grid-template-columns:90px 1fr;gap:12px;margin:15px 0 11px}
.rep-lib-config label{font-weight:900;color:#acbbb2;font-size:12px}
.rep-lib-config .field{margin:6px 0 0;min-height:43px}
.rep-lib-primary{min-height:48px;margin:10px 0 18px}
.rep-lib-picker .rep-library-page{padding-bottom:0}
.rep-lib-picker .rep-lib-panel{padding:9px 10px;border:0;border-radius:12px;background:transparent}
.rep-lib-picker .rep-lib-item{padding:10px 2px;min-height:59px}
.rep-lib-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}
.rep-lib-modal-head h2{font-size:21px;margin:0;font-weight:900;letter-spacing:-.4px}
.rep-lib-x{font-size:25px;line-height:1;color:#bdcebf;border:1px solid #3c4b42;border-radius:11px;background:#202d2b;width:34px;height:34px}
.rep-lib-picker .rep-lib-detail-head h1{font-size:24px}
.rep-lib-picker .rep-lib-filterbar{margin-bottom:2px}
.rep-lib-linked{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 10px;border:1px solid #36523a;background:#192b20;border-radius:11px;margin-top:12px}
.rep-lib-linked small{color:#bcff80;font-size:12px;font-weight:800}.rep-lib-linked button{border:0;background:#2b4130;color:#caff96;font-weight:900;padding:8px 10px;border-radius:9px;font-size:11px}
.rep-lib-label{font-size:10px;color:#b8ff65;background:#263629;padding:3px 6px;border-radius:6px;margin:0 5px}
.rep-lib-page-open{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 13px;background:#1e3125;border:1px solid #4c6c42;border-radius:13px;color:#c7ff92;font-size:13px;font-weight:900;margin:10px 0 20px;text-align:left}
.rep-lib-page-open span{font-size:22px}
@media(min-width:700px){.rep-lib-panel{padding:22px}.rep-lib-top{padding:10px 0 28px}.rep-lib-picker{padding:0 2px}}

/* V18.0.1 — bilingual search, Polish-only result titles */
.rep-lib-english{font:650 13px/1.45 Nunito,system-ui,sans-serif!important;color:#899c96!important;letter-spacing:.1px;margin:-3px 0 5px!important}
.rep-lib-detail-family{font-size:11px!important;color:#b9d3b4!important;letter-spacing:.1px}
.rep-lib-top h1{font-size:clamp(26px,5.6vw,35px)!important;letter-spacing:-.9px}
.rep-lib-top{padding:0 0 16px}
.rep-lib-top p{font-size:12px;max-width:520px}
.rep-lib-back-plans{padding:0 0 15px;color:#9eb69e;font-weight:800}
.rep-lib-item-icon{width:41px;height:41px;border-radius:12px;font-size:13px;letter-spacing:0;color:#b9f677;background:linear-gradient(145deg,#344935,#1c2d28)}
.rep-lib-item strong{font-size:14px;line-height:1.32;letter-spacing:-.15px}
.rep-lib-item small{font-size:11px;color:#8faaa0;margin-top:2px}
.rep-lib-item-arrow{font-size:21px}
.rep-lib-search-wrap:focus-within{border-color:#a6ed6c;box-shadow:0 0 0 2px rgba(186,255,118,.12)}
.rep-lib-empty{line-height:1.5}
.rep-lib-picker .rep-lib-item strong{font-size:13px}
/* Hide global brand bar outside Start, preserve all navigation/actions. */
html.rep-v18-nonhome #rep-top-shell{display:none!important}
html.rep-v18-nonhome{--rep-banner-height:0px;--rep-main-height:0px;--rep-total-top-height:0px}
/* Plans V18 — compact, tactile, premium visual hierarchy */
.rep-plans-v18{font-family:Nunito,system-ui,-apple-system,sans-serif;max-width:1100px;margin:0 auto 35px;color:#f2f7f0}
.rep-plans-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:172px;margin-bottom:12px;padding:22px 21px;border:1px solid #426347;border-radius:20px;background:linear-gradient(112deg,#1e3c2f 0%,#1b3330 48%,#13242d 100%)}
.rep-plans-hero::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(191,255,112,.08),transparent 64%)}
.rep-plans-hero::after{content:'';position:absolute;z-index:1;inset:auto 0 0;height:4px;background:linear-gradient(90deg,#baff73 0%,#76b98b 48%,#6d55a8 100%)}
.rep-plans-hero-content{position:relative;z-index:2;max-width:75%;min-width:0}
.rep-plans-overline{font-size:10px;font-weight:1000;letter-spacing:1.6px;color:#a2c2a6;display:block}
.rep-plans-spark{color:#b8ff65;font-size:14px;letter-spacing:0;margin-right:4px}
.rep-plans-hero h1{font:1000 clamp(27px,6vw,38px)/1.07 Nunito,system-ui,sans-serif;letter-spacing:-1.2px;margin:8px 0 8px!important}
.rep-plans-hero h1 span{color:#baff73}
.rep-plans-hero p{font-size:12px;line-height:1.45;color:#adbfba;margin:0 0 14px;max-width:355px;font-weight:650}
.rep-plans-hero-stats{display:flex;align-items:center;gap:13px;color:#adc3b7;font-size:11px;font-weight:750}
.rep-plans-hero-stats strong{color:#f5ffee;font-size:17px;font-weight:1000;margin-right:3px}
.rep-plans-hero-stats i{height:20px;width:1px;background:#4b6857}
.rep-plans-hero-decor{position:absolute;right:-33px;top:-48px;width:175px;height:250px;display:grid;place-items:center;opacity:.75;pointer-events:none}
.rep-plans-orbit-one,.rep-plans-orbit-two{position:absolute;width:185px;height:185px;border:1px solid rgba(178,251,118,.13);border-radius:50%;transform:rotate(-20deg)}
.rep-plans-orbit-two{width:136px;height:136px;border-color:rgba(135,93,193,.25)}
.rep-plans-symbol{font:1000 89px Nunito,sans-serif;color:#baff73;letter-spacing:-10px;opacity:.16;transform:rotate(-15deg)}
.rep-plans-library-link{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:linear-gradient(102deg,#1b2928,#1a2630);border:1px solid #34443f;border-radius:17px;color:#f3f8f3;margin:0 0 23px}
.rep-plans-library-icon{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#2b492f;color:#b8ff65;display:grid;place-items:center;font-size:25px;font-weight:900}
.rep-plans-library-link>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
.rep-plans-library-link strong{font-size:14px;font-weight:950}
.rep-plans-library-link small{font-size:11px;color:#9cafa7}
.rep-plans-cta-arrow{color:#b8ff65;font-size:28px;padding:0 3px}
.rep-plans-section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:13px}
.rep-plans-section-title h2{font-size:19px;font-weight:950;letter-spacing:-.4px;margin:3px 0 0!important}
.rep-plan-collection-count{color:#caff91;background:#294832;font-size:11px;display:inline-flex;align-items:center;padding:3px 7px;border-radius:8px;vertical-align:middle;letter-spacing:0}
.rep-plans-new-day{white-space:nowrap;background:#b8ff65;border:0;color:#173321;font-size:12px;font-weight:1000;padding:11px 12px;border-radius:11px;box-shadow:0 3px 0 #557947}
.rep-plans-grid-v18{display:grid!important;grid-template-columns:1fr;gap:12px!important;margin:0!important;max-width:none!important}
.rep-plans-v18 .rep-plan-card-v18{margin:0!important;min-width:0!important;min-height:0!important;border:1px solid #2b4040!important;border-radius:18px!important;background:#131e23!important;padding:0!important;overflow:hidden}
.rep-plan-card-v18::before{content:'';display:block;height:3px;background:linear-gradient(90deg,#b8ff65 0%,#4c7952 40%,transparent 95%)}
.rep-plan-card-v18.rep-plan-pull::before{background:linear-gradient(90deg,#ae93f1 0%,#605185 40%,transparent 95%)}
.rep-plan-card-v18.rep-plan-other::before{background:linear-gradient(90deg,#78bedd 0%,#396d8b 40%,transparent 95%)}
.rep-plan-card-head{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 11px;gap:12px}
.rep-plan-card-identity{min-width:0}
.rep-plan-type-tag{font-size:10px;text-transform:uppercase;font-weight:1000;letter-spacing:1.2px;color:#baff76}
.rep-plan-pull .rep-plan-type-tag{color:#bc9aff}
.rep-plan-other .rep-plan-type-tag{color:#82cce8}
.rep-plan-card-head h2{font-size:22px;font-weight:1000;letter-spacing:-.6px;line-height:1.2;margin:4px 0!important}
.rep-plan-count{font-size:11px;color:#91a5a0;font-weight:750}
.rep-plan-quick-add{flex:none;border-radius:10px;background:#273d30;border:1px solid #456147;color:#c7ff93;padding:9px 10px;font:900 12px Nunito,system-ui,sans-serif;white-space:nowrap}
.rep-plan-quick-add span{font-size:16px;line-height:1;margin-right:2px}
.rep-plan-card-content{margin:0 14px;border-top:1px solid #2d4142}
.rep-plan-ex-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #27373a;min-height:56px;padding:8px 0}
.rep-plan-ex-row:last-child{border-bottom:0}
.rep-plan-ex-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.rep-plan-ex-number{color:#647b76;font-size:10px;font-weight:900;letter-spacing:.5px;width:19px;flex:0 0 19px}
.rep-plan-ex-copy{min-width:0;flex:1;display:grid;gap:3px}
.rep-plan-ex-copy strong{font-size:12.5px;line-height:1.3;font-weight:850;color:#e7f1ec;overflow-wrap:anywhere}
.rep-plan-ex-copy small{font-size:10px;line-height:1.2;color:#8aa298}
.rep-plan-ex-actions{display:flex;align-items:center;gap:5px;flex:none}
.rep-plan-ex-actions button{border:0;font:850 10px Nunito,sans-serif;cursor:pointer}
.rep-plan-ex-edit{padding:7px 8px;color:#bbd7bc;background:#283b35;border-radius:8px}
.rep-plan-ex-remove{padding:3px 8px;background:transparent;color:#a8bbb2;font-size:19px!important}
.rep-plan-card-foot{padding:11px 15px 12px;background:#141f23;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #273638}
.rep-plan-card-foot span{font-size:10px;color:#708e84}
.rep-plan-remove-day{border:0;background:none;color:#bb8588;font:800 10px Nunito,sans-serif;padding:7px 2px;white-space:nowrap}
.rep-plan-card-empty{padding:18px 3px;color:#91a89b;font-size:12px}
.rep-plans-footnote{font-size:11px;color:#7e968d;line-height:1.5;margin:15px 3px}
.rep-plans-empty{border:1px dashed #456247;border-radius:15px;padding:25px 17px;color:#a5bead;font-size:13px}
.rep-plans-v18 button:focus-visible,.rep-library-page button:focus-visible,.rep-lib-picker button:focus-visible{outline:2px solid #b8ff65;outline-offset:3px}
@media(min-width:700px){.rep-plans-hero{min-height:205px;padding:29px 35px}.rep-plans-hero-decor{right:8%;width:220px;height:270px}.rep-plans-symbol{font-size:124px}.rep-plans-grid-v18{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.rep-plan-card-head{padding:20px}.rep-plan-card-content{margin:0 20px}.rep-plan-card-foot{padding:13px 20px}.rep-plans-library-link{max-width:none;padding:14px 16px}}
@media(min-width:960px){html.rep-v18-nonhome{--rep-web-top:0px!important;--rep-total-top-height:0px!important}html.rep-v18-nonhome #rep-web-sidebar{top:0!important}html.rep-v18-nonhome body>main.wrap#app{padding-top:39px!important;min-height:100vh!important}}
@media(max-width:390px){.rep-plans-hero{padding:18px 15px;min-height:154px}.rep-plans-hero-content{max-width:84%}.rep-plans-hero-decor{right:-64px}.rep-plan-ex-copy strong{font-size:12px}.rep-plan-ex-edit{padding:6px}.rep-plans-hero-stats{gap:9px}}
@media(prefers-reduced-motion:reduce){.rep-plans-v18 *,.rep-library-page *{animation:none!important;transition:none!important}}


/* === SOURCE: rep-v18.1.css === */
/* REP V18.1 · Core design system
 * Flat fills. Bold Nunito headlines. Neutral system text for supporting copy.
 * No gradients, blurs, glows, shadowed cards or invented mascot artwork.
 * This sheet loads last and overrides retired V18.0 plans/library visuals.
 */
:root{--rep181-bg:#0d1418;--rep181-surface:#172126;--rep181-surface2:#1d292f;--rep181-border:#36464e;--rep181-ink:#f2f6f5;--rep181-muted:#a6b4b9;--rep181-lime:#c5f879;--rep181-lime-edge:#8abf3d;--rep181-purple:#b797ff;--rep181-red:#ff6868}
html.rep-v18-nonhome, html.rep-v18-nonhome body{background:var(--rep181-bg)!important}
.rep181-page,.rep-lib-picker,.rep-library-page{font-family:Nunito,system-ui,sans-serif;color:var(--rep181-ink)}
.rep181-page{max-width:710px;margin:0 auto;padding:12px 0 24px}
.rep181-page button,.rep-lib-picker button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rep181-page button:focus-visible,.rep-lib-picker button:focus-visible{outline:3px solid var(--rep181-lime);outline-offset:3px}
.rep181-simple-head{padding:12px 2px 20px}
.rep181-simple-head h1,.rep181-detail-title h1{font-family:Nunito,system-ui,sans-serif;font-weight:1000;font-size:clamp(28px,7vw,35px);letter-spacing:-.8px;line-height:1.14;color:#f6f7f6;margin:0 0 6px}
.rep181-simple-head p,.rep181-detail-title p{font-family:Arial,system-ui,sans-serif;font-size:13px;color:var(--rep181-muted);margin:0;line-height:1.55}
.rep181-day-list{display:grid;gap:12px}
.rep181-day{color:#f3f7f5;background:#172329!important;border:2px solid #36474e!important;border-bottom-width:5px!important;border-radius:17px!important;width:100%;padding:14px 13px!important;display:flex;align-items:center;text-align:left;gap:13px;min-height:84px;transition:transform .11s,border-bottom-width .11s;box-shadow:none!important}
.rep181-day:active{transform:translateY(3px);border-bottom-width:2px!important}
.rep181-day-emblem{background:#2a3437;border-radius:12px;width:48px;height:48px;display:grid;place-items:center;flex:none}
.rep181-day .rep181-day-emblem .rep-i{width:30px;height:30px;object-fit:contain}
.rep181-day-push .rep181-day-emblem{background:#3e2a2c}.rep181-day-pull .rep181-day-emblem{background:#302c43}
.rep181-day-body{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.rep181-day-body strong{font-family:Nunito,sans-serif;font-size:22px;font-weight:1000;line-height:1.1;letter-spacing:-.4px;overflow-wrap:anywhere}
.rep181-day-body small{font:400 12px/1.3 Arial,system-ui,sans-serif;color:#aab8bd}
.rep181-day-next{width:19px!important;height:19px!important;flex:none}
.rep-i{display:inline-block;vertical-align:middle;object-fit:contain;width:21px;height:21px;flex:none}
.rep181-btn{font-family:Nunito,system-ui,sans-serif;font-weight:1000;font-size:13px;letter-spacing:.25px;line-height:1.2;min-height:49px;padding:11px 17px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-align:center;box-shadow:none!important;white-space:normal;transition:transform .12s}
.rep181-btn .rep-i{width:22px;height:22px}
.rep181-btn-primary{color:#172312!important;background:var(--rep181-lime)!important;border:2px solid var(--rep181-lime)!important;border-bottom:5px solid var(--rep181-lime-edge)!important}
.rep181-btn-outline{background:#202c32!important;border:2px solid #526269!important;border-bottom:5px solid #3b4b52!important;color:#f3f6f4!important}
.rep181-btn:active:not(:disabled){transform:translateY(3px);border-bottom-width:2px!important}
.rep181-btn:disabled{opacity:.45;cursor:not-allowed}
.rep181-new-plan{margin:20px 0 0;width:100%}
.rep181-empty{border:2px dashed #40535b;border-radius:16px;padding:24px 18px;text-align:left;display:grid;gap:7px;background:#172126}
.rep181-empty strong{font-size:16px}.rep181-empty p{font:400 12px/1.5 Arial,sans-serif;color:var(--rep181-muted);margin:0}
.rep181-detail-nav{display:flex;align-items:center;gap:12px;min-height:43px;margin:4px 0 20px}
.rep181-mini-label{font:900 11px Nunito,sans-serif;color:#94a8af;letter-spacing:1.3px;flex:1}
.rep181-icon-button{display:grid;place-items:center;background:none;border:none;padding:8px;color:white;width:44px;height:44px;flex:none}
.rep181-icon-button .rep-i{width:26px;height:26px}
.rep181-edit-toggle{display:flex;align-items:center;gap:7px;border:2px solid #42545a;border-bottom:4px solid #2f3e44;border-radius:12px;color:#e7f0eb;background:#1d2a30;padding:10px;font:900 12px Nunito,sans-serif}
.rep181-edit-toggle.is-on{border-color:#67844d;border-bottom-color:#506d38;color:var(--rep181-lime)}
.rep181-edit-toggle .rep-i{width:17px;height:17px}
.rep181-detail-title{margin-bottom:25px}.rep181-detail-title h1{font-size:35px;margin:7px 0 6px}
.rep181-type{font:900 11px Nunito,sans-serif;text-transform:uppercase;letter-spacing:1.3px;color:#a9c9cf}
.rep181-type-push{color:#ff8582}.rep181-type-pull{color:#c4afff}
.rep181-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.rep181-section-head h2{font:1000 20px Nunito,sans-serif;margin:0;color:#f3f7f5}
.rep181-section-head span{font:900 13px Nunito,sans-serif;color:var(--rep181-muted)}
.rep181-ex-list{background:var(--rep181-surface);border:2px solid #33434b;border-radius:17px;padding:1px 14px;overflow:hidden}
.rep181-ex{display:flex;align-items:center;gap:11px;min-height:65px;padding:12px 0;border-bottom:1px solid #334148}
.rep181-ex:last-child{border-bottom:0}
.rep181-ex-num{flex:none;width:22px;color:#7c979f;font:900 12px Nunito,sans-serif}
.rep181-ex-copy{min-width:0;flex:1;display:grid;gap:4px}
.rep181-ex-copy strong{font:900 15px/1.3 Nunito,sans-serif;overflow-wrap:anywhere}
.rep181-ex-copy small,.rep181-ex-note{font:400 12px/1.25 Arial,sans-serif;color:#a7b6bc}
.rep181-ex-note{font-weight:bold;color:#a9dd79;font-size:10px}
.rep181-ex-actions{display:flex;gap:2px;align-items:center;flex-wrap:wrap;justify-content:end;max-width:175px}
.rep181-ex-actions button{background:#233239;border:1px solid #3f5056;min-width:31px;min-height:32px;border-radius:8px;display:grid;place-items:center;color:white;font:900 17px Nunito,sans-serif}
.rep181-ex-actions button .rep-i{width:17px;height:17px}
.rep181-ex-actions button:disabled{opacity:.3}
.rep181-add-ex{width:100%;margin:13px 0 10px}
.rep181-start-btn{width:100%;margin-top:15px}
.rep181-editor-hint{font:400 11.5px/1.6 Arial,sans-serif;color:#80959d;margin:12px 2px 8px}
.rep181-plan-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.rep181-tool{border:2px solid #394b53;border-bottom:4px solid #2b3b42;background:#19252a;color:#e9f0ee;border-radius:12px;padding:10px 7px;min-height:46px;display:flex;align-items:center;justify-content:center;gap:7px;font:900 12px Nunito,sans-serif}
.rep181-tool .rep-i{width:17px;height:17px}.rep181-tool.rep181-danger{color:#ff9292;grid-column:span 2}
.rep181-undo{background:#25382b;border:2px solid #5b804b;border-radius:14px;padding:12px;display:flex;justify-content:space-between;gap:9px;align-items:center;margin:0 0 13px;font:800 12px Nunito,sans-serif}
.rep181-undo button{color:var(--rep181-lime);border:0;background:transparent;font:1000 12px Nunito,sans-serif;display:flex;align-items:center;gap:6px}.rep181-undo img{width:17px;height:17px}
/* Consistent bottom-sheet forms across plan create, edit, rename. */
.rep181-modal h2{font:1000 26px Nunito,sans-serif;line-height:1.2;margin:0 0 14px}
.rep181-modal-top{display:flex;align-items:center;justify-content:space-between}
.rep181-modal-description{font:400 13px/1.5 Arial,sans-serif;color:#a6b4b9;margin:2px 0 18px}
.rep181-modal label{font:800 12px Nunito,sans-serif;color:#d9e2df;display:block;margin-bottom:10px}
.rep181-modal .field{margin:7px 0 13px!important;width:100%;min-height:47px;background:#121b20;border:2px solid #405159;border-radius:12px;color:#f2f5f3;font-size:15px}
.rep181-modal .rep181-btn{margin:10px 0 3px}.rep181-modal-exname{display:block;margin-bottom:17px;font:900 15px Nunito,sans-serif}
/* Full screen exercise picker: entry only from add/replace buttons */
.modal.show:has(.rep-lib-picker){align-items:stretch!important;padding:0!important;background:#0e171b!important;z-index:200!important}
.modal.show:has(.rep-lib-picker) .sheet{width:100%;max-width:none!important;max-height:100dvh!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;overflow-y:auto!important;padding:calc(env(safe-area-inset-top) + 15px) max(16px,calc((100vw - 710px)/2)) calc(env(safe-area-inset-bottom) + 25px)!important;background:#101a1e!important;overscroll-behavior:contain}
.rep-lib-picker{min-height:100%;padding-bottom:15px}
.rep-lib-picker .rep-lib-overline{font:900 10px Nunito,sans-serif;letter-spacing:1.2px;color:var(--rep181-lime)}
.rep-lib-modal-head{margin:0 0 20px!important;gap:10px}
.rep-lib-modal-head h2{font:1000 clamp(25px,7vw,30px) Nunito,sans-serif;line-height:1.16;margin:0!important}
.rep-lib-x{width:44px!important;height:44px!important;border:0!important;background:transparent!important;display:grid!important;place-items:center}.rep-lib-x .rep-i{width:28px;height:28px}
.rep-lib-filters{gap:12px!important}
.rep-lib-search-wrap{height:52px!important;background:#1b282e!important;border:2px solid #42525a!important;border-radius:14px!important;padding:0 14px!important;gap:12px!important}
.rep-lib-search-wrap .rep-i{width:22px;height:22px}
.rep-lib-search{color:#f0f5f2!important;font:800 15px Nunito,sans-serif!important}
.rep-lib-search::placeholder{color:#91a2aa!important}
.rep-lib-quick{display:flex;gap:7px;flex-wrap:wrap}
.rep-lib-quick button{display:inline-flex;align-items:center;gap:5px;color:#c2d0d0;background:#1c2a2f;border:2px solid #33454e;border-radius:11px;padding:7px 11px;font:900 12px Nunito,sans-serif}
.rep-lib-quick button.active{color:#152113;background:var(--rep181-lime);border-color:var(--rep181-lime)}
.rep-lib-quick button .rep-i{width:16px;height:16px}
.rep-lib-chip{border:2px solid #3c5055!important;background:#1b2a30!important;border-radius:12px!important;color:#e2eaea!important;font:900 12px Nunito,sans-serif!important;padding:9px 12px!important}
.rep-lib-chip.is-active{background:var(--rep181-lime)!important;color:#192617!important;border-color:var(--rep181-lime)!important}
.rep-lib-muscles{padding-bottom:6px!important;gap:7px!important}
.rep-lib-filterbar{padding-top:2px;align-items:center!important}
.rep-lib-select{background:#223137!important;border:2px solid #40535a!important;border-radius:12px!important;min-height:43px;color:#f0f5f2!important}
.rep-lib-switch{background:#1b292f!important;border:2px solid #3f5157!important;border-radius:12px!important}
.rep-lib-switch button{font:900 12px Nunito,sans-serif!important}
.rep-lib-switch button.is-current{background:#354a39!important;color:#c5f879!important}
.rep-lib-result-title{border-bottom:2px solid #35464e!important;padding:13px 0!important;margin:7px 0!important}
.rep-lib-result-title strong{font:1000 16px Nunito,sans-serif}
.rep-lib-item-shell{display:flex;align-items:center;border-bottom:1px solid #30434b;gap:3px;min-width:0}
.rep-lib-item-shell:last-child{border-bottom:0}
.rep-lib-item,.rep-lib-family{padding:11px 2px!important;min-height:70px!important;border-bottom:0!important;gap:12px!important;flex:1;min-width:0}
.rep-lib-item-icon,.rep-lib-family-mark{background:#243239!important;width:45px!important;height:45px!important;border-radius:12px!important;display:grid;place-items:center}
.rep-lib-item-icon .rep-i,.rep-lib-family-mark .rep-i{width:29px;height:29px}
.rep-lib-item strong,.rep-lib-family strong{font:950 14px/1.35 Nunito,sans-serif!important;color:#f1f5f3!important}
.rep-lib-item small,.rep-lib-family small{font:400 11px/1.25 Arial,sans-serif!important;color:#a6b5bc!important}
.rep-lib-item-arrow{margin-left:auto!important;display:grid;place-items:center}.rep-lib-item-arrow .rep-i{width:19px;height:19px}
.rep-lib-fav{border:0;background:transparent;min-width:35px;height:42px;display:grid;place-items:center;opacity:.55}
.rep-lib-fav.is-on{opacity:1}.rep-lib-fav .rep-i{width:21px;height:21px}
.rep-library-page .rep-lib-panel{background:#172229!important;border:2px solid #34474e!important;border-radius:17px!important;padding:14px!important}
.rep-lib-picker .rep-lib-panel{border:0!important;background:none!important;padding:10px 0!important}
.rep-lib-detail-head h1{color:white!important;font:1000 26px/1.17 Nunito,sans-serif!important;letter-spacing:-.5px}
.rep-lib-english{font:400 13px/1.4 Arial,sans-serif!important;color:#a8b7c0!important;margin:3px 0 12px!important}
.rep-lib-badges span{background:#2e4732!important;color:#d2ffa7!important;border-radius:9px!important}
.rep-lib-info>div{background:#1d2b31!important;border:2px solid #34464e!important}
.rep-lib-hint{border:2px solid #3b5442!important;background:#1d3024!important;border-radius:12px!important}
.rep-lib-hint strong{color:#c5f879!important}
.rep-lib-primary,.rep-lib-picker .btn.full{min-height:51px!important;background:var(--rep181-lime)!important;color:#192915!important;border:2px solid var(--rep181-lime)!important;border-bottom:5px solid var(--rep181-lime-edge)!important;border-radius:13px!important;font:1000 14px Nunito,sans-serif!important}
.rep-lib-back{color:#d7e6de!important;background:none!important;font:900 13px Nunito,sans-serif!important}
.rep-library-page .rep-lib-top{padding:10px 0 14px!important}.rep-library-page .rep-lib-top h1{font-size:31px!important;color:#f5f8f6!important}
/* All new 18.1 screens flat — no effects. Other stable REP sections untouched. */
.rep181-page *, .rep-lib-picker *,.rep-library-page *{box-shadow:none!important;text-shadow:none!important;filter:none!important}
.rep181-page,.rep-lib-picker,.rep-library-page{background-image:none!important}
@media(max-width:420px){.rep181-page{padding-top:6px}.rep181-simple-head{padding:10px 2px 18px}.rep181-day{min-height:81px;padding:11px!important}.rep181-day-body strong{font-size:21px}.rep181-ex{gap:7px}.rep181-ex-copy strong{font-size:13px}.rep181-ex-actions{max-width:148px}.rep181-ex-actions button{min-width:29px;min-height:30px}.rep181-ex-actions .rep-i{width:15px;height:15px}}
@media(prefers-reduced-motion:reduce){.rep181-page *, .rep-lib-picker *{transition:none!important;animation:none!important}}

/* Editor actions break to a full-width row instead of crushing exercise titles on iPhone. */
.rep181-ex.is-editing{flex-wrap:wrap}
.rep181-ex.is-editing .rep181-ex-copy{flex-basis:calc(100% - 48px)}
.rep181-ex.is-editing .rep181-ex-actions{flex:1 0 100%;max-width:none;justify-content:flex-end;border-top:1px dashed #34484e;padding-top:9px;gap:8px}
.rep181-ex.is-editing .rep181-ex-actions button{min-width:37px;min-height:36px}
.rep181-drag-handle{touch-action:none!important;cursor:grab}
.rep181-ex.rep181-drag-target{background:#263a2b;outline:2px dashed #b5f771;outline-offset:-3px}


/* === SOURCE: rep-v18.2.css === */
/* REP V18.2 · precision polish. Based on stable V18.1.
 * 01 button rim | 02 button centering | 03 return arrow | 04 no EN | 05 no recent
 * 06 clean library heading | 07 new pencil | 08 new muscle icons.
 */
:root { --rep182-lime:#c5f879; --rep182-edge:#8abf3d; }
/* The 3D foot is a full-width CSS shadow: it follows the rounded perimeter
 * perfectly, unlike a darker bottom-border that cuts in at both ends. */
.rep181-btn.rep181-btn-primary,
.rep-lib-picker .rep-lib-primary,
.rep-lib-picker .btn.full.rep-lib-primary,
.rep-library-page .rep-lib-primary {
  border:0!important;
  background:#c5f879!important;
  border-radius:14px!important;
  box-shadow:0 5px 0 var(--rep182-edge)!important;
  min-height:50px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.25!important;
  padding:12px 18px!important;
  position:relative;
  color:#152411!important;
  transition:transform 110ms ease,box-shadow 110ms ease!important;
}
/* Keep a stable optical center of label even when the button contains an icon. */
.rep181-btn-primary>.rep-i { position:absolute;left:16px;top:50%;transform:translateY(-50%);margin:0!important; }
.rep181-btn-primary:active:not(:disabled),
.rep-lib-picker .rep-lib-primary:active:not(:disabled),
.rep-library-page .rep-lib-primary:active:not(:disabled) {
 transform:translateY(3px)!important;
 box-shadow:0 2px 0 var(--rep182-edge)!important;
}
.rep181-btn-primary:disabled,.rep-lib-primary:disabled {opacity:.5;box-shadow:0 4px 0 #637b4e!important}
/* Center other standalone label buttons, including "Dodaj ćwiczenie". */
.rep181-btn,.rep181-btn-outline,.rep-lib-primary,.rep-lib-picker button.btn.full {
 text-align:center!important;justify-content:center!important;align-items:center!important;
}
/* Secondary buttons have full-width squared-off extrusion without cut corners. */
.rep181-btn-outline {border:0!important;box-shadow:0 4px 0 #3b4b52!important;min-height:49px!important;}
.rep181-btn-outline:active:not(:disabled){transform:translateY(2px)!important;box-shadow:0 2px 0 #3b4b52!important;}
/* Back arrow is the actual official NEXT artwork, mirrored. */
.rep-i.rep-back-left {transform:rotate(180deg)!important;}
.rep-lib-back {display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;line-height:1.2!important;}
.rep-lib-back-icon {display:inline-flex;align-items:center;justify-content:center;flex:none;width:19px;height:19px;}
.rep-lib-back-icon .rep-i {height:19px!important;width:19px!important;transform:rotate(180deg)!important;}
/* Clean language presentation: just a muted English translation. */
.rep-lib-english::before {content:none!important;display:none!important;}
.rep-lib-english {font:400 13px/1.45 Arial,system-ui,sans-serif!important;color:#a5b4b9!important;margin:4px 0 10px!important;}
/* Clean picker header - no unnecessary overline, and clear white title. */
.rep-lib-picker>.rep-lib-overline{display:none!important}
.rep-lib-picker .rep-lib-modal-head h2{color:#f5f7f6!important;font-weight:1000!important;}
/* Anatomy icons supplied in V18.2 maintain equal visual footprint. */
.rep-lib-item-icon .rep-i,.rep-lib-family-mark .rep-i{object-fit:contain;}
@media(max-width:370px){
  .rep181-btn-primary>.rep-i{left:11px;width:18px;height:18px}
  .rep181-btn-primary{font-size:12px!important;padding-left:33px!important;padding-right:33px!important}
}
@media(prefers-reduced-motion:reduce){
 .rep181-btn-primary,.rep-lib-primary,.rep181-btn-outline{transition:none!important}
}


/* === SOURCE: rep-v18.3.css === */
/* REP V18.3 · Eight agreed interface refinements only.
 * Deliberately isolated to protect V18.2 plan/training/storage logic.
 */
:root { --rep183-edge: #8abf3d; }

/* 01. The real anatomical PNGs, enlarged, with no colored square behind them. */
.rep181-day .rep181-day-emblem {
  background: transparent!important;
  border: 0!important;
  border-radius: 0!important;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.rep181-day .rep181-day-emblem .rep-i {
  width: 62px!important;
  height: 62px!important;
  max-width: none!important;
  object-fit: contain;
}
.rep-lib-item-icon,
.rep-lib-family-mark {
  background: transparent!important;
  border: 0!important;
  border-radius: 0!important;
  width: 51px!important;
  height: 48px!important;
  display: grid!important;
  place-items: center;
  overflow: visible;
}
.rep-lib-item-icon .rep-i,
.rep-lib-family-mark .rep-i {
  width: 59px!important;
  height: 59px!important;
  max-width: none!important;
  object-fit: contain;
}

/* 02. One empty-state card, centered text, no nested dashed box. */
.rep181-ex-list:has(.rep181-plan-empty) {
  min-height: 102px;
  display: grid;
  place-items: center;
  padding: 15px 18px;
}
.rep181-ex-list .rep181-plan-empty {
  background: transparent!important;
  border: 0!important;
  border-radius: 0!important;
  box-shadow: none!important;
  width: 100%;
  padding: 0!important;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rep181-plan-empty strong { color: #f3f7f5; line-height: 1.35; }

/* 03. Optical centering: action icons don't push a button's text off-center. */
.rep181-btn { position: relative; justify-content: center!important; align-items: center!important; text-align: center!important; }
.rep181-btn > .rep-i { position: absolute!important; left: 16px; top: 50%; transform: translateY(-50%); margin: 0!important; }
.rep-lib-quick button, .rep-lib-chip, .rep-lib-switch button { align-items: center; justify-content: center; text-align: center; }
.rep-lib-quick button { min-height: 38px; }

/* 05. All lime CTAs use the same 3px rim THICKNESS as "Kontynuuj".
 * Preserve the original lime/rim colors of each group. */
.rep181-btn.rep181-btn-primary,
.rep-lib-picker .rep-lib-primary,
.rep-lib-picker .btn.full.rep-lib-primary,
.rep-library-page .rep-lib-primary,
.btn:not(.secondary):not(.ghost):not(.danger):not(.rep-ongoing-resume):not(.rep-quest-claim) {
  box-shadow: 0 3px 0 var(--rep183-edge)!important;
}
.rep181-btn.rep181-btn-primary:active:not(:disabled),
.rep-lib-picker .rep-lib-primary:active:not(:disabled),
.rep-library-page .rep-lib-primary:active:not(:disabled),
.btn:not(.secondary):not(.ghost):not(.danger):not(.rep-ongoing-resume):not(.rep-quest-claim):active:not(:disabled) {
  box-shadow: 0 1px 0 var(--rep183-edge)!important;
}
.rep-ongoing-section .rep-ongoing-resume,
#app .rep-ongoing-section .rep-ongoing-resume {
  box-shadow: 0 3px 0 #8bbd47!important;
}
.rep-ongoing-section .rep-ongoing-resume:active:not(:disabled),
#app .rep-ongoing-section .rep-ongoing-resume:active:not(:disabled) {
  box-shadow: 0 1px 0 #8bbd47!important;
}
.rep181-btn.rep181-btn-primary:disabled,
.rep-lib-primary:disabled { box-shadow: 0 3px 0 #637b4e!important; }

/* 06. A single focus border on the WHOLE search control, not an inner ring.
 * Explicitly override the generic input:focus-visible outline on iOS. */
.rep-lib-picker .rep-lib-search-wrap,
.rep-library-page .rep-lib-search-wrap {
  display: flex!important;
  align-items: center!important;
  box-sizing: border-box;
  border: 2px solid #42525a!important;
  border-radius: 14px!important;
  outline: none!important;
  box-shadow: none!important;
}
.rep-lib-picker .rep-lib-search-wrap:focus-within,
.rep-library-page .rep-lib-search-wrap:focus-within {
  border-color: #c5f879!important;
  outline: none!important;
  box-shadow: none!important;
}
.rep-lib-picker input.rep-lib-search,
.rep-library-page input.rep-lib-search,
.rep-lib-picker input.rep-lib-search:focus,
.rep-library-page input.rep-lib-search:focus,
.rep-lib-picker input.rep-lib-search:focus-visible,
.rep-library-page input.rep-lib-search:focus-visible {
  -webkit-appearance: none!important;
  appearance: none!important;
  box-shadow: none!important;
  outline: 0!important;
  border: 0!important;
  border-radius: 0!important;
  background: transparent!important;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0!important;
  margin: 0!important;
  line-height: normal;
}
.rep-lib-search-wrap > .rep-i { flex: none; }

/* 07. Favorite-only quick row: the category filter retains the sole "Wszystkie". */
.rep-lib-quick { align-items: center; }

/* 08. Slightly heavier, rounded-looking muted check mark in session headers.
 * Real colored action icons/checked checkboxes stay untouched. */
.rep183-muted-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 1000;
  -webkit-text-stroke: .65px currentColor;
  line-height: 1;
}

@media (max-width: 370px) {
  .rep181-day .rep181-day-emblem { width: 46px; }
  .rep181-day .rep181-day-emblem .rep-i { width: 56px!important; height: 56px!important; }
  .rep181-btn > .rep-i { left: 11px; }
}


/* === SOURCE: rep-v18.4.css === */
/* REP V18.4 — QA patch only: consistent alignment, magnetic plan sort,
 * history dates, numeric inputs, empty states and confirmation dialogs.
 * Kept separate so V18.3 storage and workout logic remain intact. */
:root{--rep184-lime:#c5f879;--rep184-muted:#aab8bc;--rep184-line:#394b52;--rep184-red:#ff969a}

/* 01 · Optical layout alignment, without forcing left-aligned prose to center. */
#app .rep181-day{align-items:center!important}
#app .rep181-day-emblem{display:grid!important;place-items:center!important;flex:0 0 51px!important;margin:0!important}
#app .rep181-day-emblem .rep-i{display:block!important;transform:translate(-3px,-5px);object-position:center}
#app .rep181-day-body{justify-content:center;align-self:center;gap:5px}
#app .rep181-day-next{align-self:center;margin-left:auto}
#app .rep181-ex-num{display:grid;place-items:center;text-align:center;align-self:center}
#app .rep181-ex-copy{align-self:center}
#app .rep181-ex-actions{width:100%;max-width:none!important;flex:0 0 100%;gap:clamp(5px,2vw,10px);justify-content:center!important;align-items:center}
#app .rep181-ex-actions button{width:clamp(33px,9vw,42px);height:clamp(34px,9vw,42px);min-width:0!important;min-height:0!important;padding:0;display:grid!important;place-items:center;line-height:1;border-radius:10px}
#app .rep181-ex-actions button .rep-i{display:block;object-fit:contain;margin:0}
#app .rep181-ex.is-editing{column-gap:12px;row-gap:7px;align-items:center}
#app .rep181-plan-tools button,#app .rep181-edit-toggle,#app .rep181-undo button,
#app .rep181-btn,#app button.btn:not(.rep-ongoing-resume),
.rep-dialog .btn,.rep-lib-picker button.rep-lib-primary,
.rep-library-page button.rep-lib-primary{
 display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:middle;
}
#app .rep181-ex-actions button{display:grid!important}
#app .rep181-btn,#app button.btn{line-height:1.22}
#app .rep181-btn .rep-i{flex:none}
#app .rep181-plan-tools .rep181-tool{gap:8px}
#app .rep181-tool.rep181-danger{border-color:#71444a;border-bottom-color:#61353d!important;background:#302126;color:#ffb5b8}

/* Action colors: no lime extrusion on a destructive action. */
#app .btn.delete-session,#app .btn.danger,.rep-dialog .btn.danger{
 box-shadow:none!important;border-bottom-color:#62393f!important;
}
#app .btn.delete-session{border:1.5px solid #6a3b42!important;background:#281c20!important;color:#ffb9bd!important}
#app .btn.danger:not(.delete-session){background:#45282e!important;color:#ffc7cb!important;border:1px solid #75474e!important}
#app .btn.secondary,.rep-dialog .btn.secondary{box-shadow:none!important}
#app .rep-session-actions{align-items:stretch;gap:10px}
#app .rep-session-actions .btn{min-width:0}

/* Set tables: every heading uses the EXACT same grid columns as its value. */
#app .rep184-exercise-card{min-width:0}
#app .rep184-setrow{
 display:grid!important;
 grid-template-columns: minmax(27px,30px) minmax(0,1fr) minmax(0,1fr) minmax(28px,36px)!important;
 gap:clamp(6px,2vw,9px)!important;
 align-items:center!important;
 margin-top:10px!important;
 width:100%;
}
#app .rep184-set-head{margin-top:15px!important;margin-bottom:2px;min-height:27px}
#app .rep184-set-head>span{
 align-self:center;justify-self:stretch;display:flex;align-items:center;justify-content:center;
 text-align:center;min-width:0;font-size:clamp(10px,2.7vw,13px);line-height:1.2;
}
#app .rep184-set-head .rep183-muted-check{font-size:17px!important}
#app .rep184-set-data>.pill{
 display:grid!important;place-items:center!important;justify-self:center;align-self:center;
 width:29px;height:29px;margin:0!important;padding:0!important;
 border-radius:10px;text-align:center;line-height:1;
}
#app .rep184-set-data>.field,#app .rep184-set-data>.muted{
 display:block;box-sizing:border-box!important;width:100%!important;max-width:none!important;
 min-width:0!important;min-height:46px!important;margin:0!important;
 align-self:center;justify-self:stretch;
}
#app .rep184-set-data>.muted{display:grid;place-items:center}
#app .rep184-set-data>.rep184-set-done{
 display:block!important;justify-self:center!important;align-self:center!important;
 margin:0!important;width:24px!important;height:24px!important;min-width:24px!important;flex:none;
}
#app .rep184-number:focus-visible,#app .rep184-number:focus{
 outline:none!important;border-color:var(--rep184-lime)!important;
 box-shadow:0 0 0 1px var(--rep184-lime)!important;
}
#app .rep184-number{font-variant-numeric:tabular-nums;font-size:16px}
#app .rep184-number::-webkit-inner-spin-button,#app .rep184-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:360px){#app .rep184-setrow{gap:5px!important;grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 28px!important}#app .rep184-set-data>.pill{width:25px;height:27px}#app .rep184-set-head>span{font-size:10px}}

/* 02 · Magnetic reorder. No free-moving thumbnail or OS-provided plus symbol. */
#app .rep181-drag-handle{touch-action:none!important;cursor:grab;user-select:none;-webkit-user-select:none}
#app .rep181-dragging .rep181-drag-handle{cursor:grabbing}
#app .rep181-ex.rep184-drag-active{
 position:relative;z-index:2;
 border-radius:12px;background:#263a2c!important;
 outline:2px solid var(--rep184-lime)!important;outline-offset:-2px;
 transition:background .13s ease,outline-color .13s ease;
}
#app .rep184-drag-active .rep181-ex-num{color:var(--rep184-lime)!important}
#app .rep181-ex.rep181-drag-target{outline:none!important;background:transparent!important}
#app .rep181-dragging{overscroll-behavior-y:contain}

/* 03 · History cards: stronger information hierarchy and just the date. */
#app .rep-history-list{align-items:stretch}
#app .rep-history-list .rep184-history-card{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:13px;min-width:0;min-height:96px;margin:0!important;
 padding:17px 18px!important;
 background:#172329!important;border:1.5px solid #37474f!important;border-radius:19px!important;
}
#app .rep-history-list .rep184-history-card.rep184-history-live{
 background:#1c2a27!important;border-color:#5a7751!important;
}
#app .rep184-history-content{display:flex;flex:1;flex-direction:column;min-width:0;gap:7px;justify-content:center}
#app .rep184-history-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;min-width:0}
#app .rep184-history-heading>strong{font:1000 clamp(16px,4vw,19px)/1.22 Nunito,sans-serif;letter-spacing:-.25px;overflow-wrap:anywhere;color:#f5f7f5}
#app .rep184-history-status{display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;padding:5px 8px;min-height:25px;border-radius:9px;font:900 11px/1.1 Nunito,sans-serif;background:#2b3a30;color:#c9f58c}
#app .rep184-history-live .rep184-history-status{background:#344832;color:#c6ff86}
#app .rep184-history-done .rep184-history-status{background:#26342c;color:#abd899}
#app .rep184-history-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font:400 12px/1.4 Arial,system-ui,sans-serif;color:#a8b8bc}
#app .rep184-history-meta time{white-space:nowrap;font-variant-numeric:tabular-nums;color:#c4d0d0}
#app .rep184-history-open{flex:none;min-width:86px;min-height:45px!important;padding:9px 12px!important;font:900 14px/1.2 Nunito,sans-serif!important;border-radius:12px!important}
@media(max-width:350px){#app .rep-history-list .rep184-history-card{padding:14px 12px!important;gap:8px}#app .rep184-history-open{min-width:76px;padding:8px!important;font-size:12px!important}}

/* 04 + 05 · Neutral empty states; restrained, no nested dashed decoration. */
#app .rep184-empty-state,.rep-lib-picker .rep184-empty-state,
.rep-library-page .rep184-empty-state{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:9px;text-align:center;padding:27px 19px;
 border:1.5px solid #36474e;border-radius:18px;background:#172329;color:#edf5f1;
 min-height:130px;
}
.rep184-empty-state strong{font:1000 17px/1.3 Nunito,system-ui,sans-serif;color:#f2f7f4}
.rep184-empty-state p{font:400 13px/1.5 Arial,system-ui,sans-serif!important;color:#aab8bc;margin:0!important;max-width:340px}
.rep184-empty-state button{min-height:42px;margin:8px 0 0!important;display:inline-flex;align-items:center;justify-content:center;max-width:100%}
#app .rep181-empty:not(.rep181-plan-empty){border-style:solid;border-color:#36474e;text-align:center;justify-items:center}
#app .rep181-empty:not(.rep181-plan-empty) p{max-width:300px}
#app .profile-empty{border-style:solid;border-color:#36474e;background:#172329;text-align:center;line-height:1.5}
#app .rep-history-list .rep184-history-empty{grid-column:1/-1}
.rep-library-page .rep184-library-empty,.rep-lib-picker .rep184-library-empty{margin:15px auto 8px}

/* 06 · All destructive and neutral confirmations follow one REP hierarchy. */
.rep-dialog-backdrop{padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);overflow-y:auto}
.rep-dialog{width:min(100%,410px);max-height:calc(100dvh - 40px);overflow-y:auto;border:1.5px solid #44545b!important;border-radius:21px!important;background:#1a262b!important;padding:24px 22px!important}
.rep-dialog-glyph{margin:0 auto 13px!important;width:43px;height:43px;border-radius:12px}
.rep-dialog h2{margin:0 0 9px!important;text-align:center;font:1000 21px/1.2 Nunito,sans-serif!important;color:#f2f6f4}
.rep-dialog-text{text-align:center;color:#b5c3c5}
.rep-dialog-text p{margin:6px auto!important;line-height:1.5;max-width:340px}
.rep-dialog-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:20px!important}
.rep-dialog .btn{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%;min-height:48px!important;border-radius:13px!important;font:900 14px/1.2 Nunito,sans-serif!important;padding:12px 18px!important}
.rep-dialog .btn.secondary{background:#26363e!important;color:#f1f5f3!important;border:1.5px solid #475b62!important}
.rep-dialog .btn.danger{background:#633138!important;color:#ffe4e5!important;border:1.5px solid #8b4b54!important;box-shadow:none!important}
.rep-dialog .btn:not(.secondary):not(.danger){background:#c5f879!important;color:#162318!important;border:1.5px solid #c5f879!important;box-shadow:0 3px 0 #8abf3d!important}
.rep-dialog button:focus-visible{outline:2px solid #c5f879;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#app .rep181-ex{transition:none!important}}


/* === SOURCE: rep-v18.5.css === */
/* REP V18.5 — delight without interfering with native actions or editable input. */
html,body,#app,#rep-main-header,.bottom,#rep-web-sidebar,.rep-quests,.rep-history-page,.rep185-experience{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
input,textarea,select,[contenteditable="true"],[contenteditable=""],.field{
  -webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important;
}
#app img,.bottom img,#rep-main-header img{-webkit-user-drag:none;user-drag:none}
button,a[href],[role="button"],summary{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
:where(button,a[href],[role="button"],summary).rep185-held{
  transform:translateY(2px) scale(.976)!important;
  filter:brightness(.94);
  transition:transform 78ms cubic-bezier(.3,.7,.4,1),filter 78ms ease!important;
}
:where(button,a[href],[role="button"],summary).rep185-release{
  animation:rep185-button-bounce 190ms cubic-bezier(.23,.9,.32,1) both;
}
@keyframes rep185-button-bounce{0%{transform:translateY(2px) scale(.976)}55%{transform:translateY(0) scale(1.015)}100%{transform:none}}
.rep185-summary-reopen{margin-top:12px}
body.rep185-completion-open{overflow:hidden!important;overscroll-behavior:none}
#rep185-completion-root:empty{display:none}
#rep185-completion-root{position:fixed;inset:0;z-index:9000;pointer-events:none}
.rep185-overlay{position:absolute;inset:0;display:flex;align-items:stretch;justify-content:center;background:rgba(4,10,14,.97);overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;-webkit-overflow-scrolling:touch}
.rep185-experience{--rep185-accent:#ff8888;--rep185-secondary:#f7ce70;--rep185-hue:#6d3a5c;position:relative;isolation:isolate;min-height:100%;width:100%;max-width:640px;overflow:hidden;background:radial-gradient(ellipse 75% 37% at 50% 23%,color-mix(in srgb,var(--rep185-hue),transparent 26%),transparent 100%),radial-gradient(ellipse 85% 25% at 50% 88%,color-mix(in srgb,var(--rep185-secondary),transparent 93%),transparent 100%),#0f171e;color:#f7f8fb;padding:calc(22px + env(safe-area-inset-top,0px)) clamp(20px,5vw,34px) calc(26px + env(safe-area-inset-bottom,0px));text-align:center;font-family:Nunito,system-ui,sans-serif}
.rep185-halo{position:absolute;pointer-events:none;border-radius:50%;z-index:-1;filter:blur(6px);opacity:.55}.rep185-halo-1{width:330px;height:330px;top:90px;left:-170px;background:radial-gradient(circle,color-mix(in srgb,var(--rep185-accent),transparent 72%),transparent 68%)}.rep185-halo-2{width:350px;height:350px;top:210px;right:-200px;background:radial-gradient(circle,color-mix(in srgb,var(--rep185-secondary),transparent 68%),transparent 70%)}
.rep185-content{position:relative;z-index:2;max-width:550px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:0}
.rep185-close{position:absolute;right:13px;top:calc(15px + env(safe-area-inset-top,0px));z-index:5;width:38px;height:38px;border:1px solid rgba(255,255,255,.21);border-radius:13px;background:rgba(255,255,255,.10);color:#ecf0f1;font-size:28px;font-weight:700;line-height:1;display:grid;place-items:center}
.rep185-kicker{display:inline-flex;align-items:center;gap:6px;margin:8px 0 10px;color:var(--rep185-secondary);font-size:11px;letter-spacing:2.1px;font-weight:1000;animation:rep185-rise .5s both}
.rep185-content h1{font-size:clamp(35px,9.6vw,57px);font-weight:1000;line-height:1.03;letter-spacing:-1px;margin:0;white-space:normal;animation:rep185-pop .75s cubic-bezier(.18,1.3,.45,1) both;text-shadow:0 4px 10px rgba(0,0,0,.22)}
.rep185-content h1 span{color:var(--rep185-accent)}
.rep185-mascot-stage{position:relative;display:flex;align-items:center;justify-content:center;width:min(76vw,310px);height:clamp(182px,28vh,270px);margin:0 0 0;flex:0 0 auto}
.rep185-aura{position:absolute;inset:12% 6%;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--rep185-accent),transparent 77%),transparent 72%);animation:rep185-aura 3s ease-in-out infinite;pointer-events:none}
.rep185-mascot{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 13px 7px rgba(0,0,0,.23));transform-origin:50% 85%;animation:rep185-jump 2.2s cubic-bezier(.33,.02,.42,1) infinite;will-change:transform}
.rep185-quote{margin:0 0 6px;color:var(--rep185-secondary);font-weight:1000;font-size:clamp(14px,3.7vw,18px);letter-spacing:.15px;animation:rep185-rise .5s .18s both;max-width:460px}
.rep185-session-title{font-size:clamp(17px,4.5vw,23px);font-weight:950;max-width:100%;overflow-wrap:anywhere;margin-bottom:12px}
.rep185-stats{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;animation:rep185-rise .52s .35s both}
.rep185-stats>div{background:#1a262d;border:1px solid color-mix(in srgb,var(--rep185-accent),transparent 76%);border-radius:17px;padding:12px 6px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}
.rep185-stats strong{font-size:clamp(18px,5vw,27px);line-height:1.1;font-weight:1000;color:#fff;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.rep185-stats strong small{font-size:12px;color:#c9d0d1}
.rep185-stats span{font-size:clamp(10px,2.7vw,12px);font-weight:800;color:#aab9bd;line-height:1.15}
.rep185-stats-foot{font-size:10px;color:#9faeb3;line-height:1.3;text-align:left;width:100%;margin:7px 0 13px}
.rep185-reward{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 18px;width:100%;border-radius:22px;background:linear-gradient(125deg,color-mix(in srgb,var(--rep185-accent),transparent 88%),color-mix(in srgb,var(--rep185-secondary),transparent 90%));border:1.5px solid color-mix(in srgb,var(--rep185-secondary),transparent 40%);box-shadow:0 5px 0 rgba(0,0,0,.22),0 0 35px color-mix(in srgb,var(--rep185-accent),transparent 93%);animation:rep185-rise .6s .55s both}
.rep185-reward-left{flex:0 0 auto;width:90px;height:86px;display:grid;place-items:center}.rep185-reward-left img{width:94px;height:94px;object-fit:contain;animation:rep185-gems-float 2.7s ease-in-out infinite}
.rep185-reward-right{flex:1;text-align:left;min-width:0;display:flex;flex-direction:column;gap:3px}
.rep185-label{font-size:11px;letter-spacing:1px;font-weight:1000;color:var(--rep185-secondary)}
.rep185-reward-number{font-size:clamp(34px,9vw,47px);line-height:1;letter-spacing:-1px;font-weight:1000;color:#fff;display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.rep185-reward-number img{width:31px;height:31px;object-fit:contain;flex:0 0 auto;margin-left:6px}
.rep185-total{font-size:12px;font-weight:750;color:#cad6da}
.rep185-reward-state{width:100%;min-height:26px;font-size:12px;margin:10px 0 6px;color:#adc4d1;font-weight:800;line-height:1.3}
.rep185-reward-state[data-state="success"]{color:#b8ff65}.rep185-reward-state[data-state="pending"]{color:#ffcf8c}
.rep185-retry{border:1px solid #d1a960;border-radius:12px;background:#342b20;color:#ffe0a5;font-weight:900;font-size:13px;padding:11px 16px;margin-bottom:8px}
.rep185-retry[hidden]{display:none!important}
.rep185-continue{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:60px;background:var(--rep185-secondary)!important;color:#172021!important;box-shadow:0 6px 0 color-mix(in srgb,var(--rep185-secondary),#1d281e 43%)!important;border-radius:18px!important;font-size:19px!important;font-weight:1000!important;letter-spacing:.5px!important;margin:8px 0 5px!important}
.rep185-continue span{font-size:23px;line-height:1}
.rep185-confetti{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.rep185-confetti i{position:absolute;top:-20px;left:var(--x);width:var(--size);height:calc(var(--size)*2.2);border-radius:2px;opacity:0;animation:rep185-confetti var(--duration) ease-in var(--delay) forwards}
@keyframes rep185-confetti{0%{transform:translate3d(0,-40px,0) rotate(0deg);opacity:1}85%{opacity:1}100%{transform:translate3d(34px,90vh,0) rotate(var(--rotation));opacity:0}}
@keyframes rep185-rise{from{transform:translateY(23px);opacity:0}to{transform:none;opacity:1}}
@keyframes rep185-pop{0%{transform:scale(.69);opacity:0}70%{transform:scale(1.05);opacity:1}100%{transform:none;opacity:1}}
@keyframes rep185-jump{0%,100%{transform:translateY(0) rotate(-3deg) scale(1)}23%{transform:translateY(-26px) rotate(7deg) scale(1.035)}40%{transform:translateY(-32px) rotate(8deg) scale(1.03)}61%{transform:translateY(1px) rotate(-3deg) scale(.972,1.03)}74%{transform:translateY(-7px) rotate(0) scale(1)}}
@keyframes rep185-gems-float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-7px) rotate(5deg)}}
@keyframes rep185-aura{0%,100%{transform:scale(.88);opacity:.4}50%{transform:scale(1.12);opacity:.78}}
@media(max-height:730px){.rep185-experience{padding-top:calc(13px + env(safe-area-inset-top,0px))}.rep185-kicker{margin-top:0}.rep185-mascot-stage{height:165px}.rep185-stats>div{padding:10px 4px}.rep185-quote{font-size:13px}.rep185-reward{padding:7px 14px}}
@media(prefers-reduced-motion:reduce){.rep185-overlay *, .rep185-release{animation:none!important;transition:none!important}.rep185-confetti{display:none}.rep185-mascot{will-change:auto}}
/* Override inherited lime border: this screen intentionally uses its own color theme. */
#rep185-completion-root .rep185-continue{border:2px solid var(--rep185-secondary)!important}

.rep185-overlay:focus{outline:none}

/* REP V20.3: pending XP is never displayed as a confirmed zero. */
.rep185-reward-state[data-state="retry"]{color:#ffcf8c}.rep185-retry{margin:4px auto 12px;display:block;width:fit-content;min-height:42px;font-size:12px}.rep185-retry[hidden]{display:none!important}


/* === SOURCE: rep-v18.6.css === */
/* REP V18.6 — Quality Patch: only interaction, viewport and completion polish. */
html { -webkit-text-size-adjust:100%; }
body { overscroll-behavior-x:none; }
#app,.bottom,#rep-main-header,header,#rep-dialog-root,#rep-avatar-overlay {
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
#app input,#app textarea,#app select,#sheet input,#sheet textarea,#sheet select,
#rep-account input,#rep-account textarea,[contenteditable],.field {
  -webkit-user-select:text!important;user-select:text!important;
  -webkit-touch-callout:default!important;
}
#app button,#app [role="button"],.bottom button,#rep-main-header button,
.rep181-btn,.rep-lib-chip,.rep-lib-item,.rep-lib-fav,.rep181-day,
.rep-dialog button,.rep185-close,.rep185-continue {
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
#app img,.bottom img,#rep-main-header img,.rep185-mascot { -webkit-user-drag:none; user-drag:none; }
/* Taps remain native; allow scroll/pinch accessibility, but suppress unwanted text-callouts. */
#app .rep181-ex-actions button,#app .rep181-icon-button,#app .rep-lib-fav,
#app .rep181-day-next,#sheet .rep-lib-x,.rep185-close {
  position:relative;min-width:42px;min-height:42px;
}
/* Only increase invisible target space when adjacent controls aren't overlapped. */
#app .rep181-ex-actions { column-gap:clamp(5px,1.4vw,10px)!important; }
.rep186-page-enter { animation:rep186-enter 165ms ease-out both; }
@keyframes rep186-enter { from {opacity:.88;transform:translateY(5px)} to {opacity:1;transform:none} }
/* No forced smooth scrolling of page position: user-driven scrolling stays immediate and predictable. */
#app,.rep-lib-muscles,.rep-lib-results,.rep-history-list,.sheet,.modal { -webkit-overflow-scrolling:touch; }
#app,.rep-lib-picker,.rep181-page,.rep-history-page,.rep185-content {min-width:0;max-width:100%;}
#app .card,#app .rep181-day,#app .rep181-ex,#app .rep184-exercise-card {max-width:100%;}
#app .rep181-ex-copy,#app .rep181-day-body,#app .rep184-history-content {min-width:0;overflow-wrap:anywhere;}
#app .rep184-setrow {min-width:0;}
#app .rep184-setrow>.field {min-width:0;max-width:100%;}
#app .rep184-history-open {white-space:nowrap;}
/* Native keyboard avoidance: interior sheets scroll independently of the fixed background. */
body.rep186-modal-lock {position:fixed!important;left:0;right:0;width:100%;overflow:hidden!important;}
#modal.show {overscroll-behavior:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;}
#modal.show .sheet {max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top,0px) - 20px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
#rep-dialog-root .rep-dialog-backdrop {overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
/* V18.6: clean, color-varied celebratory reward with a white counter only. */
#rep185-completion-root,.rep185-overlay,.rep185-experience,.rep185-content {box-sizing:border-box;max-width:100%;}
.rep185-experience {width:100%;padding-left:max(17px,env(safe-area-inset-left,0px));padding-right:max(17px,env(safe-area-inset-right,0px));}
.rep185-content {width:100%;min-width:0;padding:0;}
.rep185-content h1 {margin-top:14px;}
.rep185-reward {display:flex;justify-content:center;padding:16px 12px;}
.rep185-reward-right {display:flex;align-items:center;justify-content:center;text-align:center;width:100%;gap:6px;}
.rep185-reward-number {width:100%;justify-content:center;color:white;font-size:clamp(28px,9vw,46px);min-height:45px;white-space:normal;overflow-wrap:anywhere;}
.rep185-count {font-variant-numeric:tabular-nums;max-width:100%;}
.rep185-reward-state {overflow-wrap:anywhere;}
.rep185-continue {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;flex-shrink:1;white-space:nowrap;gap:9px!important;overflow:hidden;text-overflow:ellipsis;padding:12px 10px!important;font-size:clamp(15px,4.3vw,19px)!important;min-height:56px!important;}
.rep185-continue span {font-size:clamp(17px,5vw,22px);flex-shrink:0;}
.rep185-reward-state[data-state="pending"] {color:#ffdb98;}
@media(max-width:340px){
  .rep185-experience{padding-left:13px;padding-right:13px;}
  .rep185-content h1{font-size:clamp(30px,9.8vw,39px);}
  .rep185-stats{gap:5px;}
  .rep185-stats>div{padding:10px 3px;}
  .rep185-continue{font-size:15px!important;}
  #app .rep184-history-open{min-width:72px!important;}
}
@media(prefers-reduced-motion:reduce){
  .rep186-page-enter{animation:none!important;}
  #app,.rep185-overlay,.rep185-experience{scroll-behavior:auto!important;}
}

#rep-avatar-overlay .rep-avatar-backdrop{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}

/* REP V18.6 FINAL — requested completion-card-only visual correction. */
/* Bigger title, raised slightly, preserving the original mascot and colour variants. */
#rep185-completion-root .rep185-content h1 {
  margin-top:3px!important;
  font-size:clamp(36px,10.35vw,61px)!important;
  line-height:1.02;
}
/* Keep X at top right, even if host button rules supply an inherited left offset. */
#rep185-completion-root .rep185-close {
  left:auto!important;
  right:max(14px,env(safe-area-inset-right,0px))!important;
  top:calc(15px + env(safe-area-inset-top,0px));
}
/* Statistics sit a few px higher; a deliberate gap separates the two boxes. */
#rep185-completion-root .rep185-session-title {margin-bottom:6px!important;}
#rep185-completion-root .rep185-stats {margin-bottom:11px!important;}
/* Restore the original gem art, but remove movement from the gems themselves. */
#rep185-completion-root .rep185-reward {
  align-items:center;
  justify-content:center;
  gap:clamp(7px,2vw,14px);
  padding:13px clamp(9px,3vw,18px);
  min-height:116px;
}
#rep185-completion-root .rep185-reward-left {
  flex:0 1 clamp(65px,20vw,90px);
  width:clamp(65px,20vw,90px);
  height:90px;
}
#rep185-completion-root .rep185-reward-left img {
  max-width:100%;height:auto;object-fit:contain;animation:none!important;transform:none!important;
}
#rep185-completion-root .rep185-reward-right {
  flex:1;min-width:0;width:auto;
  align-items:center;justify-content:center;text-align:center;gap:10px;
}
#rep185-completion-root .rep185-reward-number {
  display:flex;align-items:center;justify-content:center;gap:7px;
  white-space:nowrap;font-size:clamp(32px,8.5vw,46px);
}
#rep185-completion-root .rep185-reward-number img {
  width:clamp(24px,7vw,31px);height:auto;max-height:31px;margin:0;
  animation:none!important;transform:none!important;
}
/* No technical messages below the reward; keep changes accessible to screen readers. */
#rep185-completion-root .rep185-reward-state {
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:0!important;border:0!important;
  clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;
}
/* Darker edge derived exclusively from each celebratory variant (never lime). */
#rep185-completion-root .rep185-continue {
  box-shadow:0 6px 0 color-mix(in srgb,var(--rep185-secondary) 76%,black)!important;
}
@media(max-width:340px){
  #rep185-completion-root .rep185-content h1 {font-size:clamp(33px,10.35vw,36px)!important;}
  #rep185-completion-root .rep185-reward-left {flex-basis:60px;width:60px;}
  #rep185-completion-root .rep185-reward-left img {width:70px;}
  #rep185-completion-root .rep185-label {font-size:10px;letter-spacing:.5px;}
}
/* Earlier V18.6's generic hit-target rule accidentally changed X to relative positioning. */
#rep185-completion-root .rep185-close {
  position:absolute!important;
  left:auto!important;
  right:max(14px,env(safe-area-inset-right,0px))!important;
}
/* The reward box must not grow wider than the statistics from its padding. */
#rep185-completion-root .rep185-reward {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
}
/* Keep breathing room below the enlarged title without shifting the cards down. */
#rep185-completion-root .rep185-mascot-stage {
  margin-top:5px;
  height:clamp(177px,calc(28vh - 5px),265px);
}
@media(max-height:730px){
  #rep185-completion-root .rep185-mascot-stage{height:160px;}
}
/* Positioning the X absolutely must not pull the whole celebration into the status bar. */
#rep185-completion-root .rep185-content {padding-top:30px!important;}

/* REP V18.6 FINAL 3 — reward gems: large centered pile on the left, counter gem scaled to text. */
#rep185-completion-root .rep185-reward {
  column-gap:clamp(10px,3vw,18px)!important;
}
#rep185-completion-root .rep185-reward-left {
  flex:0 0 38%;
  width:38%;
  min-width:110px;
  max-width:160px;
  height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
}
#rep185-completion-root .rep185-reward-left img {
  width:clamp(108px,31vw,150px)!important;
  max-width:100%;
  height:auto;
  object-fit:contain;
  animation:none!important;
  transform:none!important;
}
#rep185-completion-root .rep185-reward-right {
  flex:1 1 62%;
  width:62%;
  min-width:0;
}
#rep185-completion-root .rep185-reward-number {
  min-height:clamp(48px,12vw,60px);
  gap:clamp(6px,1.8vw,10px);
  align-items:center;
}
#rep185-completion-root .rep185-reward-number img {
  width:clamp(34px,8.6vw,44px)!important;
  height:clamp(34px,8.6vw,44px)!important;
  max-height:none!important;
  object-fit:contain;
  flex-shrink:0;
  align-self:center;
  animation:none!important;
  transform:none!important;
}
@media(max-width:340px){
  #rep185-completion-root .rep185-reward-left {
    min-width:92px;
    height:82px;
  }
  #rep185-completion-root .rep185-reward-left img {
    width:clamp(92px,29vw,116px)!important;
  }
  #rep185-completion-root .rep185-reward-number img {
    width:clamp(30px,8.4vw,38px)!important;
    height:clamp(30px,8.4vw,38px)!important;
  }
}
/* Manual close and the ten-second timeout use one Duolingo-like downward exit. */
#rep185-completion-root .rep185-overlay.rep185-dismissing {
  pointer-events:none;
  animation:rep186-celebration-slide-out 360ms cubic-bezier(.28,.71,.30,1) both;
}
@keyframes rep186-celebration-slide-out {
  from {transform:translate3d(0,0,0);opacity:1;}
  to {transform:translate3d(0,12vh,0);opacity:0;}
}
/* A few extra invisible pixels around the close button, no visual enlargement. */
#rep185-completion-root .rep185-close::before {content:'';position:absolute;inset:-7px;}
@media (prefers-reduced-motion:reduce){
  #rep185-completion-root .rep185-overlay.rep185-dismissing{animation:none!important;}
}

/* REP V18.6 FINAL 4: visual fix for the original pile image's huge transparent top margin.
   The new art file is only a lossless crop of the original, not a redesigned gem illustration. */
#rep185-completion-root .rep185-reward {
  display:grid!important;
  grid-template-columns:minmax(0,43%) minmax(0,1fr)!important;
  gap:clamp(7px,2.5vw,13px)!important;
  align-items:center!important;
  padding:13px clamp(9px,2.8vw,16px)!important;
}
#rep185-completion-root .rep185-reward-left {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:94px!important;
  flex:none!important;
}
#rep185-completion-root .rep185-reward-left img {
  display:block!important;
  width:100%!important;
  max-width:172px!important;
  height:auto!important;
  max-height:94px!important;
  object-fit:contain!important;
  object-position:center!important;
  animation:none!important;
  transform:none!important;
}
#rep185-completion-root .rep185-reward-right {
  width:100%!important;
  min-width:0!important;
  flex:none!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  gap:7px!important;
}
#rep185-completion-root .rep185-label {
  font-size:clamp(9px,2.6vw,11px)!important;
  letter-spacing:clamp(.1px,.18vw,1px)!important;
  white-space:nowrap;
  max-width:100%;
}
#rep185-completion-root .rep185-reward-number {
  width:100%!important;
  min-height:45px!important;
  align-items:center!important;
  justify-content:center!important;
}
@media(max-width:340px){
  #rep185-completion-root .rep185-reward {grid-template-columns:minmax(0,42%) minmax(0,1fr)!important;gap:7px!important;}
  #rep185-completion-root .rep185-reward-left {height:83px!important;}
  #rep185-completion-root .rep185-reward-left img {max-height:83px!important;}
  #rep185-completion-root .rep185-label {font-size:9px!important;letter-spacing:0!important;}
}

/* REP V18.7 — reward card: one centered heading, counter and single gem; no left-side artwork. */
#rep185-completion-root .rep185-reward {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  grid-template-columns:none!important;
  gap:0!important;
  min-height:122px;
  padding:18px 14px!important;
}
#rep185-completion-root .rep185-reward-right {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  flex:0 1 auto!important;
  gap:10px!important;
  text-align:center!important;
}
#rep185-completion-root .rep185-label {
  display:block;
  width:100%;
  text-align:center!important;
}
#rep185-completion-root .rep185-reward-number {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0 auto!important;
}


/* === SOURCE: rep-v18-stable.css === */
/* REP V18 STABLE — iOS bottom navigation compositing fix + balanced header counters.
   No page, workout, wallet, database or avatar data changes. */
@media (max-width:699px) {
  /* Keep the installed PWA tabs fixed, but avoid forced GPU transforms and
     paint containment. On iOS WebKit that combination can clip the bottom
     half of the bar during viewport/scroll adjustments after a tab click. */
  html.rep-pwa-standalone body > #bottom.bottom {
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    z-index:9!important;
    background:#101b21!important;
    background-color:#101b21!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    transform:none!important;
    -webkit-transform:none!important;
    contain:none!important;
    isolation:auto!important;
    backface-visibility:visible!important;
    -webkit-backface-visibility:visible!important;
    will-change:auto!important;
    overflow:visible!important;
  }
  /* A solid independent underlay protects the home-indicator zone if iOS
     repaints a fixed-position navigation layer one frame late. */
  html.rep-pwa-standalone body::after {
    content:"";
    position:fixed;
    pointer-events:none;
    left:0;right:0;bottom:0;
    height:calc(74px + env(safe-area-inset-bottom,0px));
    background:#101b21;
    z-index:8;
  }
  /* Keep the five taps stable: feedback never creates a transformed child
     layer while the page is navigating. */
  #bottom.bottom button,
  #bottom.bottom button.rep185-held,
  #bottom.bottom button.rep185-release {
    transform:none!important;
    -webkit-transform:none!important;
    animation:none!important;
    transition:background-color .1s ease,color .1s ease!important;
  }
  #bottom.bottom button.rep185-held {filter:brightness(.94)!important;}
  #bottom.bottom button.rep185-release {filter:none!important;}
}
/* Match the Duolingo-like visual baseline: gem + white amount align with
   the already-approved profile tile. Do not change the profile tile size. */
@media (max-width:959px) {
  #rep-main-header .rep-header-actions {
    display:flex!important;
    align-items:center!important;
    gap:clamp(12px,3.4vw,18px)!important;
  }
  #rep-main-header .rep-currency {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
    gap:8px!important;
    font-family:Nunito,system-ui,sans-serif!important;
    font-size:clamp(23px,6.1vw,27px)!important;
    font-weight:1000!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }
  #rep-main-header .rep-currency img {
    display:block!important;
    width:clamp(40px,10.5vw,44px)!important;
    height:clamp(40px,10.5vw,44px)!important;
    margin:0!important;
    object-fit:contain!important;
    flex-shrink:0;
  }
  #rep-main-header #rep-gem-balance {
    display:inline-flex!important;
    align-items:center!important;
    height:46px!important;
    line-height:1!important;
  }
}
/* Previous V18 correction retained: same centered avatar PNG, same tile. */
#rep-main-header button#rep-profile-trigger.rep-profile-icon {
  display:grid!important;
  place-items:center!important;
  justify-items:center!important;
  align-items:center!important;
  padding:0!important;
  overflow:hidden;
}
#rep-main-header button#rep-profile-trigger.rep-profile-icon img {
  display:block!important;
  width:34px!important;
  height:34px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto;
  transform:none!important;
}
@media (min-width:960px) {
  #rep-main-header button#rep-profile-trigger.rep-profile-icon img {
    width:36px!important;height:36px!important;
  }
}


/* === SOURCE: rep-v19-stability.css === */
/* REP V19.0 — mobile interaction stability (no data-model changes).
   One compositing surface for bottom nav, fixed touch targets, consistent header. */
:root{--rep19-bg:#0b1419;--rep19-nav:#101b21;}
html,body{width:100%;min-width:0;max-width:100%;background:var(--rep19-bg)!important;}
html{overflow-x:clip!important;-webkit-text-size-adjust:100%;}
body{overflow-x:clip!important;min-width:0;}
#app,#rep-main-header,#rep-top-shell{min-width:0;max-width:100%;}
/* Remove the synthetic fixed black underlay added in V18 STABLE 2.
   On WebKit its extra compositor layer can temporarily paint OVER nav labels. */
html.rep-pwa-standalone body::after{content:none!important;display:none!important;}
/* Page-level transform animation recomposed the fixed navigation on each tab tap.
   Animate small controls only; never transform the entire app viewport. */
#app.rep186-page-enter{animation:none!important;transform:none!important;filter:none!important;}
/* Avoid an entire card shifting while the user is holding a touch. */
#app .card.rep185-held,#app .workout.rep185-held,
#app .rep181-day.rep185-held,#app .rep-lib-item.rep185-held,
#app [role="button"].rep185-held{
  transform:none!important;animation:none!important;filter:brightness(.97);
}
#app .card.rep185-release,#app .workout.rep185-release,
#app .rep181-day.rep185-release,#app .rep-lib-item.rep185-release{
  transform:none!important;animation:none!important;
}
/* Default to natural vertical scrolling, with predictable tap gestures. */
#bottom,#bottom *,#rep-main-header button,#app button,#app a,#app [role="button"],
#modal button,.rep-dialog button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
#app button,#app a,#bottom button,#rep-main-header button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
#app input,#app textarea,#app select,#modal input,#modal textarea,#modal select,
#rep-account input,#rep-account textarea,[contenteditable]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important;}
@media (max-width:959px){
  #rep-top-shell>header#rep-main-header{
    display:flex!important;justify-content:space-between!important;align-items:center!important;
    gap:12px!important;padding-left:clamp(14px,4.7vw,22px)!important;
    padding-right:clamp(14px,4.7vw,22px)!important;
    min-width:0;
  }
  #rep-main-header .logo{flex:none;line-height:1.05!important;}
  #rep-main-header .rep-header-actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    flex-shrink:0;gap:clamp(12px,3.5vw,20px)!important;
  }
  #rep-main-header .rep-currency{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:none;gap:7px!important;min-height:50px!important;height:50px;
    line-height:1!important;color:#f5f8f7!important;font-weight:1000!important;
    font-size:clamp(22px,6.3vw,29px)!important;white-space:nowrap;
    font-variant-numeric:tabular-nums;
  }
  #rep-main-header .rep-currency img{
    width:clamp(37px,10.2vw,43px)!important;height:clamp(37px,10.2vw,43px)!important;
    object-fit:contain!important;display:block!important;flex:none;margin:0!important;
  }
  #rep-main-header #rep-gem-balance{
    height:auto!important;min-height:50px!important;display:inline-flex!important;
    align-items:center!important;line-height:1!important;
  }
  #rep-main-header button#rep-profile-trigger.rep-profile-icon{
    display:grid!important;place-items:center!important;flex:none;
    width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important;
    padding:0!important;margin:0!important;
    background:#21323b!important;border:1.5px solid #3a535b!important;
    border-radius:15px!important;box-shadow:0 2px 0 #111c21!important;
    overflow:hidden!important;transform:none!important;
  }
  #rep-main-header button#rep-profile-trigger.rep-profile-icon img{
    width:37px!important;height:37px!important;margin:0!important;padding:0!important;
    object-fit:contain!important;object-position:center!important;
    transform:none!important;pointer-events:none;
  }
}
@media (max-width:360px){
  #rep-main-header .rep-header-actions{gap:8px!important;}
  #rep-main-header .rep-currency{font-size:22px!important;gap:5px!important;}
  #rep-main-header .rep-currency img{width:36px!important;height:36px!important;}
  #rep-main-header button#rep-profile-trigger.rep-profile-icon{width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;}
}
/* Installed iPhone/Android PWA: a single opaque fixed bar with no extra fixed
   pseudo-element, blur, transform or animated full-bar scaling. */
@media(max-width:699px){
  html.rep-pwa-standalone body>#bottom.bottom{
    position:fixed!important;inset:auto 0 0 0!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;max-width:100%!important;
    height:calc(81px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;padding:7px 8px max(9px,env(safe-area-inset-bottom,0px))!important;
    gap:5px!important;overflow:hidden!important;box-sizing:border-box!important;
    background:#101b21!important;background-color:#101b21!important;
    border-top:1px solid #34474d!important;border-radius:0!important;
    box-shadow:none!important;z-index:120!important;
    transform:none!important;filter:none!important;backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;contain:none!important;isolation:auto!important;
    backface-visibility:visible!important;will-change:auto!important;
  }
  html.rep-pwa-standalone body>#bottom.bottom button{
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;gap:4px!important;
    width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;
    margin:0!important;padding:4px 1px!important;border-radius:14px!important;
    transition:background-color .1s linear,color .1s linear!important;
    transform:none!important;animation:none!important;filter:none!important;
  }
  html.rep-pwa-standalone body>#bottom.bottom button img{
    flex:none!important;width:27px;height:27px;object-fit:contain;
  }
  html.rep-pwa-standalone body>#bottom.bottom button span{
    display:block!important;flex:none!important;font-size:11px!important;
    line-height:1.16!important;white-space:nowrap!important;
  }
  html.rep-pwa-standalone body>#bottom.bottom button.rep185-held{filter:none!important;background-color:#203039!important;}
  html.rep-pwa-standalone body>#bottom.bottom button.active.rep185-held{background-color:#2a4231!important;}
  html.rep-pwa-standalone body>.wrap#app{
    padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))!important;
  }
}
/* Native iOS zooms small focused fields. Keep edits comfortable and at least
   16px without touching their height, width, color or value semantics. */
@supports(-webkit-touch-callout:none){
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{
    font-size:max(16px,1em)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #app .rep185-held,#app .rep185-release,#bottom button{
    transition:none!important;animation:none!important;
  }
}
/* Full-screen exercise picker remains independent of the page's scroll position.
   Native keyboard scrolls only the picker; the bar behind it is not re-layered. */
@media(max-width:699px){
  #modal.show:has(.rep-lib-picker){
    height:100dvh!important;max-height:100dvh!important;
    overscroll-behavior:contain!important;
  }
  #modal.show:has(.rep-lib-picker) .sheet{
    height:100dvh!important;max-height:100dvh!important;
    box-sizing:border-box!important;
    overscroll-behavior:contain!important;
  }
  .rep-lib-picker .rep-lib-item.rep185-held,
  .rep-lib-picker .rep-lib-item.rep185-release{
    transform:none!important;animation:none!important;
  }
}


/* REP V19.0.1 — touch correctness + modal stacking hotfix.
   Only genuinely interactive controls animate; passive panels/sheets/backdrops never scale. */
#modal.show {
  z-index:500!important;
  position:fixed!important;
  inset:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:hidden!important;
  touch-action:pan-y;
}
#modal.show:not(:has(.rep-lib-picker)) .sheet {
  position:relative!important;
  z-index:1!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:650px!important;
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px)!important;
  margin:0!important;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch;
  transform:none!important;
}
/* Library is intended to be full screen, ABOVE the navigation as well. */
#modal.show:has(.rep-lib-picker) {
  z-index:500!important;
  align-items:stretch!important;
}
#modal.show:has(.rep-lib-picker) .sheet {
  z-index:1!important;
  max-height:100dvh!important;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;
}
/* No animation on non-interactive modal panels, regardless of old utility classes. */
#modal, #modal .sheet, #modal .rep181-modal,
.rep-dialog-backdrop, .rep-dialog, .rep-lib-picker,
#modal.rep185-held, #modal.rep185-release,
#modal .sheet.rep185-held, #modal .sheet.rep185-release {
  transform:none!important;
  animation:none!important;
  filter:none!important;
}
/* The bottom tabs must always get the whole hit area when the modal is closed. */
#bottom.bottom {pointer-events:auto;}
#bottom.bottom button {pointer-events:auto;touch-action:manipulation;}


/* === SOURCE: rep-v19.0.2.css === */
/* REP V19.0.2: one predictable native-feeling touch system. */
/* Override V11.3's `pan-y pinch-zoom`: an installed app must not shrink or
   magnify its entire interface during ordinary multi-touch interactions.
   Horizontal filters and native scrolling still work; editable text remains editable.
   OS accessibility magnification is not affected. */
html.rep-pwa-standalone,
html.rep-pwa-standalone body {
  touch-action:pan-x pan-y!important;
  -webkit-text-size-adjust:100%!important;
}
html.rep-pwa-standalone #app,
html.rep-pwa-standalone #bottom,
html.rep-pwa-standalone #rep-main-header,
html.rep-pwa-standalone #modal,
html.rep-pwa-standalone .rep-lib-picker {
  touch-action:pan-x pan-y;
}
html.rep-pwa-standalone .rep-lib-muscles,
html.rep-pwa-standalone .rep-lib-quick,
html.rep-pwa-standalone .rep-lib-chips {
  touch-action:pan-x;
}
/* Informational panels are NEVER click-press targets. */
#app .rep185-held:not(button):not(a[href]):not([role="button"]):not(summary),
#modal .rep185-held:not(button):not(a[href]):not([role="button"]):not(summary) {
  transform:none!important;filter:none!important;animation:none!important;
}
/* Restore subtle feedback for genuinely actionable plan and exercise tiles. */
#app button.rep181-day.rep185-held,
#app button.workout.rep185-held,
#app button.rep-lib-item.rep185-held,
#app button.rep-lib-family.rep185-held,
.rep-lib-picker button.rep-lib-item.rep185-held {
  transform:translateY(2px) scale(.986)!important;
  filter:brightness(.94)!important;
  transition:transform 85ms ease-out,filter 85ms ease-out!important;
}
#app button.rep181-day.rep185-release,
#app button.workout.rep185-release,
#app button.rep-lib-item.rep185-release,
#app button.rep-lib-family.rep185-release,
.rep-lib-picker button.rep-lib-item.rep185-release {
  animation:rep1902-tile-release 190ms cubic-bezier(.22,1,.38,1) both!important;
}
@keyframes rep1902-tile-release {from{transform:translateY(2px) scale(.986)}to{transform:none}}
/* Keep the fixed nav layer still, and animate only its icon + label.
   This restores the Duolingo-style pressed feel without iOS black-bar artifacts. */
#bottom.bottom button.rep185-held,
#bottom.bottom button.rep185-release {
  transform:none!important;animation:none!important;
}
#bottom.bottom button img,#bottom.bottom button span {
  transform-origin:center;transition:transform 100ms ease-out,opacity 100ms ease-out;
}
#bottom.bottom button.rep185-held img,#bottom.bottom button.rep185-held span {
  transform:translateY(2px) scale(.91)!important;opacity:.84;
}
#bottom.bottom button.rep185-release img,#bottom.bottom button.rep185-release span {
  animation:rep1902-nav-release 220ms cubic-bezier(.24,1.05,.36,1) both!important;
}
@keyframes rep1902-nav-release {
  0%{transform:translateY(2px) scale(.91);opacity:.84}
  65%{transform:translateY(-1px) scale(1.045);opacity:1}
  100%{transform:none;opacity:1}
}
/* Rapid tabs and press feedback must not trigger any compositor animation on
   the page surface, layout columns, or the bottom navigation container. */
#app.rep186-page-enter{animation:none!important;transform:none!important;}
@media(prefers-reduced-motion:reduce){
  #bottom.bottom button.rep185-release img,#bottom.bottom button.rep185-release span,
  #app button.rep185-release {animation:none!important;transition:none!important;}
}


/* === SOURCE: rep-v20.css === */
/* REP V20 — Profile & Progression: scoped overrides, no changes to workout UI. */
#rep-main-header .rep-header-actions {min-width:0;}
#rep-main-header .rep20-xp-header,
#rep-main-header .rep-currency {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto;min-height:44px!important;height:44px!important;
  font-family:Nunito,system-ui,sans-serif!important;font-size:clamp(16px,4.75vw,22px)!important;
  font-weight:1000!important;color:#f5f9fa!important;gap:4px!important;line-height:1!important;
  white-space:nowrap;letter-spacing:-.35px;font-variant-numeric:tabular-nums;
}
#rep-main-header .rep20-xp-header img,
#rep-main-header .rep-currency img {
  width:clamp(27px,7.4vw,34px)!important;height:clamp(27px,7.4vw,34px)!important;
  max-width:none;display:block!important;object-fit:contain!important;flex:0 0 auto;margin:0!important;
}
#rep-main-header #rep-gem-balance,#rep-main-header #rep-xp-balance {
  display:inline-flex!important;align-items:center!important;min-height:42px!important;height:42px!important;
  line-height:1!important;font-size:inherit!important;
}
@media(max-width:959px){
 #rep-main-header .rep-header-actions{gap:clamp(6px,2.1vw,13px)!important;margin-left:auto!important;}
 #rep-top-shell>header#rep-main-header{padding-right:max(12px,env(safe-area-inset-right,0px))!important;gap:7px!important;}
 #rep-main-header .logo{font-size:clamp(29px,8.4vw,44px)!important;letter-spacing:-1.5px!important;}
 #rep-main-header button#rep-profile-trigger.rep-profile-icon {margin-right:-2px!important;}
}
@media(max-width:350px){
 #rep-main-header .rep-header-actions{gap:4px!important;}
 #rep-main-header .rep20-xp-header,#rep-main-header .rep-currency{font-size:16px!important;gap:3px!important;}
 #rep-main-header .rep20-xp-header img,#rep-main-header .rep-currency img{width:27px!important;height:27px!important;}
 #rep-main-header .logo{font-size:28px!important;}
}
/* Avatar remains unchanged. A bright blue, legible progress block beneath join date. */
.rep20-level-card{display:flex;align-items:center;gap:13px;background:linear-gradient(145deg,#1a3c58,#183146 78%);
 border:2px solid #416e96;box-shadow:0 4px 0 #102338;border-radius:19px;
 padding:13px;margin-top:18px;min-width:0;overflow:hidden;}
.rep20-level-badge{width:64px;height:64px;flex:0 0 64px;display:flex;flex-direction:column;justify-content:center;align-items:center;
 background:#24649b;color:#fff;border:2px solid #64c2ff;border-radius:16px;box-shadow:0 3px 0 #113f6a;line-height:1;}
.rep20-level-badge strong{font-size:29px;font-weight:1000;line-height:1;}
.rep20-level-badge span{font-size:10px;letter-spacing:1px;font-weight:950;color:#c5ebff;margin-top:3px;}
.rep20-level-detail{flex:1;min-width:0;}
.rep20-level-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:3px 8px;color:white;}
.rep20-level-head b{font-size:clamp(14px,4vw,18px);font-weight:1000;}
.rep20-level-head span{font-size:clamp(10px,3vw,13px);font-weight:900;color:#a9ddff;font-variant-numeric:tabular-nums;}
.rep20-track{height:15px;background:#10304a;border:2px solid #366282;border-radius:20px;overflow:hidden;margin:10px 0 5px;}
.rep20-fill{height:100%;border-radius:18px;background:#52bcff;transition:width .5s cubic-bezier(.19,1,.36,1);box-shadow:inset 0 2px 0 #96ddff;}
.rep20-level-detail small{font-size:11px;color:#b1d8ec;font-weight:800;}
/* Single social card with separate, real buttons. No invisible whole-card press. */
.rep20-social{border:2px solid #405760;border-radius:21px;background:#18282e;padding:11px;margin:3px 0 18px;box-shadow:0 4px 0 #293b42;min-width:0;}
.rep20-social-row{display:flex;gap:8px;align-items:stretch;min-width:0;}
.rep20-social-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:transparent;border:0;color:#f5f8f8;padding:7px 5px;text-align:left;border-radius:13px;}
.rep20-social-icon{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:12px;background:#263e4d;color:#81d5ff;font-size:34px;font-weight:950;line-height:1;}
.rep20-social-icon svg{width:30px;height:30px;display:block;}
.rep20-social-name{display:flex;flex-direction:column;min-width:0;gap:2px;}.rep20-social-name strong{font-size:15px;font-weight:1000;}.rep20-social-name small{color:#9eafb8;font-size:12px;font-weight:750;}
.rep20-social-arrow{font-size:27px;color:#adc0c8;line-height:1;}
.rep20-social-add{display:flex;align-items:center;justify-content:center;min-width:80px;padding:7px 9px;border:0;border-radius:13px;background:#c5f982;color:#142417;font:1000 14px Nunito,system-ui,sans-serif;box-shadow:0 3px 0 #85b746;white-space:nowrap;}
.rep20-social-content{margin-top:13px;border-top:1px solid #374950;padding:13px 3px 4px;}
.rep20-social-content label{display:block;font-size:13px;color:#c8d6d7;font-weight:900;}
.rep20-social-content .rep-request-tabs{margin-top:14px;}
/* Compact, colorful big-three tiles, consistent actual-value alignment. */
.rep20-profile .rep-lifts-grid,.rep-friend-view .rep-lifts-grid{gap:9px;}
.rep20-profile .rep-lift-card,.rep-friend-view .rep-lift-card {border:2px solid var(--rep20-lift-line,#40535c);background:var(--rep20-lift-bg,#172930);
 border-radius:19px;box-shadow:0 4px 0 #0e1b22;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:110px;padding:13px 6px;}
.rep20-profile .rep-lift-squat,.rep-friend-view .rep-lift-squat{--rep20-lift-line:#4d88a6;--rep20-lift-bg:#18313e;}
.rep20-profile .rep-lift-bench,.rep-friend-view .rep-lift-bench{--rep20-lift-line:#9870b4;--rep20-lift-bg:#292039;}
.rep20-profile .rep-lift-deadlift,.rep-friend-view .rep-lift-deadlift{--rep20-lift-line:#b6874e;--rep20-lift-bg:#33291f;}
.rep20-profile .rep-lift-number,.rep-friend-view .rep-lift-number{font-weight:1000;font-size:clamp(20px,5vw,30px);color:#f4f8f7;line-height:1.15;letter-spacing:-1px;white-space:nowrap;}
.rep20-profile .rep-lift-number small,.rep-friend-view .rep-lift-number small{font-size:11px;letter-spacing:0;color:#becbd0;}
.rep20-profile .rep-lift-label,.rep-friend-view .rep-lift-label {font-size:clamp(10px,2.8vw,13px);font-weight:900;margin-top:10px;}
.rep20-profile .rep-total,.rep-friend-view .rep-total{border:2px solid #51795e;background:#1c3329;box-shadow:0 4px 0 #13241b;border-radius:20px;padding:16px;}
.rep20-profile .profile-text-action{padding:8px 10px;background:#23382d;border:1.5px solid #496b46;border-radius:12px;font-size:11px;white-space:nowrap;}
/* Two collections: exactly three visual slots each, no duplicate backgrounds. */
.rep20-collections{margin-top:27px;margin-bottom:28px;display:grid;gap:23px;min-width:0;}
.rep20-collection{min-width:0;}
.rep20-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.rep20-section-head h2{font-weight:1000;font-size:21px;margin:0;color:#f4f7f7;}
.rep20-chevron{font-size:40px;line-height:.75;font-weight:400;color:#fff;display:block;opacity:.72;user-select:none;}
.rep20-chevron img{display:block;width:43px;height:43px;object-fit:contain;filter:brightness(0) invert(1);}
.rep20-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,5vw,30px);justify-items:center;align-items:center;}
.rep20-collectible{display:grid;place-items:center;width:min(100%,100px);aspect-ratio:1/1;padding:0;background:none;border:0;border-radius:50%;}
.rep20-collectible img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;pointer-events:none;}
.rep20-collectible.is-locked{cursor:default;}
.rep20-collectible:not(.is-locked){cursor:pointer;touch-action:manipulation;}
/* Details open upward and close down, with quiet background and a close X. */
#rep20-detail-root:empty{display:none;}
#rep20-detail-root{position:fixed;inset:0;z-index:230;pointer-events:none;}
.rep20-detail-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top,0px)) 20px max(24px,env(safe-area-inset-bottom,0px));background:#071014ef;pointer-events:auto;overflow-y:auto;}
.rep20-detail{width:100%;max-width:530px;min-height:min(660px,82dvh);padding:65px 14px 35px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:17px;animation:rep20-rise 330ms cubic-bezier(.2,.82,.3,1) both;}
.rep20-detail-close{position:absolute;right:0;top:0;background:#27343b;border:1px solid #67767d;border-radius:14px;color:#fff;font-size:32px;width:50px;height:50px;line-height:1;}
.rep20-detail-image{display:block;width:min(67vw,285px);max-height:36dvh;object-fit:contain;}
.rep20-award-date{background:#293943;color:#ffc061;font-size:14px;font-weight:1000;letter-spacing:.7px;padding:10px 15px;border-radius:12px;}
.rep20-detail h2{margin:0;font-size:clamp(24px,7vw,33px);font-weight:1000;color:#f9fbfb;}
.rep20-detail p{max-width:450px;margin:0;color:#dde5e6;font-size:clamp(15px,4.5vw,19px);font-weight:850;line-height:1.55;}
.rep20-detail.rep20-leaving{animation:rep20-fall 300ms ease-in both;}
@keyframes rep20-rise{from{transform:translateY(90px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes rep20-fall{from{transform:translateY(0);opacity:1}to{transform:translateY(90px);opacity:0}}
/* Completion keeps existing celebration; only reward currency changes. */
#rep185-completion-root .rep185-reward-number img{width:clamp(32px,8.8vw,42px)!important;height:clamp(32px,8.8vw,42px)!important;object-fit:contain;}
/* Put mobile friend card directly after profile hero and collectibles after big three. */
@media(max-width:760px){
 .rep20-profile .profile-side>.rep20-social{order:2;margin-bottom:20px;}
 .rep20-profile .profile-primary>.rep-own-lifts-heading{order:3;}
 .rep20-profile .profile-primary>.rep-lifts-grid{order:4;}
 .rep20-profile .profile-primary>.rep-total{order:5;}
 .rep20-profile .profile-primary>.rep20-collections{order:6;}
 .rep20-profile .profile-side>.rep-settings-button{order:7;}
 .rep20-profile .profile-hero{margin-bottom:6px;}
}
@media(max-width:355px){.rep20-level-badge{width:56px;flex-basis:56px;height:58px}.rep20-level-card{gap:8px;padding:10px}.rep20-level-head b{font-size:13px}.rep20-level-head span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.rep20-fill{transition:none}.rep20-detail,.rep20-detail.rep20-leaving{animation:none!important}}


/* === SOURCE: rep-v20.1.css === */
/* REP V20.1 — creator identity and iOS editor navigation hardening.
   This layer deliberately does not alter existing workout cards or data. */
.rep20-profile .rep201-creator-title,.rep-friend-view .rep201-creator-title{
  display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;
  margin:7px 0 2px;padding:5px 10px;border:1.5px solid #b68d3c;border-radius:9px;
  background:#352c1d;color:#ffdc80;box-shadow:0 2px 0 #1c170f;
  font-family:Nunito,system-ui,sans-serif;font-size:11px;font-weight:1000;
  letter-spacing:.75px;line-height:1.3;white-space:nowrap;
}
.rep201-creator-title span{color:#ffd05c;font-size:15px;line-height:1;}
.rep201-id-card{
  display:flex;flex-wrap:wrap;gap:4px 9px;align-items:center;min-width:0;margin:10px 0 0;
  padding:9px 10px;border-radius:10px;background:#111c22;border:1px solid #30434d;
}
.rep201-id-caption{font-weight:950;color:#8eabb8;font-size:10px;letter-spacing:.6px;white-space:nowrap;}
.rep201-id-card code{font:600 10.5px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;color:#bfd0d7;
  overflow-wrap:anywhere;word-break:break-word;flex:1 1 185px;user-select:text;-webkit-user-select:text;}
.rep201-id-copy{
  flex:0 0 auto;padding:6px 9px;border-radius:8px;background:#253b44;border:1px solid #47616d;
  color:#e1f1f5;font-size:11px;font-weight:900;min-height:33px;touch-action:manipulation;
}
.rep201-id-copy:focus-visible{outline:2px solid #bbf87c;outline-offset:2px;}
@media(max-width:699px){
  /* When a workout field is focused, hide the fixed tab layer completely so
     WebKit's visual viewport and keyboard never trap a black strip over sets. */
  html.rep-pwa-standalone.rep201-editing body>#bottom.bottom,
  html.rep201-editing body>#bottom.bottom{
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  html.rep201-editing body::after{content:none!important;display:none!important;}
  html.rep-pwa-standalone #app input,
  html.rep-pwa-standalone #app textarea,
  html.rep-pwa-standalone #app select{scroll-margin-block-end:160px;}
  /* Natural scrolling and enough end padding also on devices with a home indicator. */
  html.rep-pwa-standalone body>.wrap#app{
    padding-bottom:calc(125px + env(safe-area-inset-bottom,0px))!important;
  }
}


/* === SOURCE: rep-v20.2.css === */
/* REP V20.2 — Profile Polish & Fixed Chrome Stability.
   Visual only; training data, XP awards, avatars and existing buttons untouched. */
:root{--rep202-medal-size:96px;}
/* Do not perform scroll-dependent display toggles or re-seat flickering fixed layers. */
@media(max-width:699px){
  html.rep-pwa-standalone #rep-top-shell{
    position:fixed!important;top:0!important;left:0!important;right:0!important;
    opacity:1!important;filter:none!important;transition:none!important;animation:none!important;
    -webkit-transform:none!important;transform:none!important;will-change:auto!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  html.rep-pwa-standalone body>#bottom.bottom{
    position:fixed!important;top:auto!important;bottom:0!important;
    left:0!important;right:0!important;opacity:1!important;visibility:visible!important;
    transition:none!important;animation:none!important;
    -webkit-transform:none!important;transform:none!important;will-change:auto!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  /* Only hide the bar while a real editable control owns keyboard focus. */
  html.rep201-editing body>#bottom.bottom{display:none!important;pointer-events:none!important;}
}
/* Never expose UUID in own/friend profile, including residual markup in older builds. */
.rep-profile-page .rep201-id-card,.rep-friend-view .rep201-id-card{display:none!important;}
/* Symmetrical avatar/name/title rhythm; original avatar itself is unchanged. */
.rep20-profile .profile-hero-detail,.rep-friend-view .profile-hero-detail{
  min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;
}
.rep20-profile .profile-hero-detail h1,.rep-friend-view .profile-hero-detail h1{
  max-width:100%;overflow-wrap:anywhere;line-height:1.18;margin:0;
}
.rep20-profile .profile-join,.rep-friend-view .profile-join{margin-top:12px;}
.rep20-profile .profile-metrics{justify-content:center;gap:14px;}
.rep20-profile .rep201-creator-title,.rep-friend-view .rep201-creator-title{
  margin:9px auto 1px;justify-content:center;box-shadow:0 3px 0 #21190c;
  background:#3a2d16;border-color:#c2953e;color:#ffdf87;
}
.rep20-profile .rep20-level-card,.rep-friend-view .rep20-level-card{
  width:100%;max-width:100%;align-self:stretch;text-align:left;
  border-color:#5298c8;background:linear-gradient(145deg,#1a4668,#153246);
  box-shadow:0 4px 0 #0b2538;
}
.rep20-level-badge{background:#2676b5;border-color:#77d1ff;box-shadow:0 3px 0 #124166;}
.rep20-track{height:17px;background:#0d293f;border-color:#457a9c;}
.rep20-fill{background:linear-gradient(180deg,#88daff 0%,#42b5f8 100%);}
.rep202-daily-xp{
  display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:8px;
  padding:5px 9px;border-radius:10px;border:1px solid #356a8f;background:#102d44;
  color:#b9e2ff;font-size:11px;font-weight:900;line-height:1.25;
}
.rep202-daily-xp b{color:#fff;font-variant-numeric:tabular-nums;}
.rep202-daily-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7dceff;flex:0 0 7px;}
/* All 6 medals occupy exactly the same CSS box on a given viewport.
   Source art is normalized separately, never stretched or deformed. */
.rep20-slots{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(8px,2.8vw,20px);align-items:center;justify-items:center;min-width:0;
}
.rep20-collectible{
  box-sizing:border-box;width:min(var(--rep202-medal-size),100%);min-width:0;
  aspect-ratio:1/1;height:auto;display:grid;place-items:center;
  border-radius:50%;background:transparent;border:0;padding:0;margin:0;overflow:visible;
}
.rep20-collectible img{
  box-sizing:border-box;width:100%;height:100%;max-height:none;max-width:none;
  display:block;object-fit:contain;object-position:center;transform:none;
  image-rendering:auto;pointer-events:none;
}
.rep20-collectible.rep202-unlocked{transition:filter 120ms ease;}
.rep20-collectible.rep202-unlocked:active{filter:brightness(.9);}
.rep20-collectible.rep202-unlocked:focus-visible{outline:2px solid #b8ff65;outline-offset:3px;}
.rep20-section-head{margin-bottom:12px;}
.rep20-collections{gap:26px;margin-top:30px;}
.rep20-chevron{color:white;opacity:1;}
/* Consistent, balanced big three with accessible absence of numeric PRs. */
.rep20-profile .rep-lifts-grid,.rep-friend-view .rep-lifts-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,2vw,11px);}
.rep20-profile .rep-lift-card,.rep-friend-view .rep-lift-card{
  min-width:0;min-height:116px;padding:13px 5px;border-radius:19px;
  box-shadow:0 3px 0 #0e1b22;
}
.rep20-profile .rep-lift-number,.rep-friend-view .rep-lift-number{
  display:flex;align-items:baseline;justify-content:center;gap:3px;
  min-width:0;font-size:clamp(18px,5.5vw,30px);font-variant-numeric:tabular-nums;letter-spacing:-.7px;
}
.rep20-profile .rep-lift-number small,.rep-friend-view .rep-lift-number small{
  font-size:clamp(10px,2.7vw,12px);letter-spacing:0;
}
.rep20-profile .rep-total .rep-lift-number,.rep-friend-view .rep-total .rep-lift-number{
  justify-content:flex-end;color:#c9ff8d;font-size:clamp(25px,7vw,36px);
}
.rep20-profile .rep-lift-label,.rep-friend-view .rep-lift-label{font-size:clamp(10px,2.8vw,13px);}
/* Compact one-card friends, distinct main/open and add targets. */
.rep20-social{margin-bottom:22px;}
.rep20-social-main:focus-visible,.rep20-social-add:focus-visible{outline:2px solid #b8ff65;outline-offset:2px;}
.rep20-social-add:active{background:#a7e766;}
.rep202-friends-empty{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:5px;}
.rep202-friends-empty strong{color:#edf9f2;font-size:15px;}
.rep202-friends-empty>span:not(.profile-empty-illustration){display:block;max-width:270px;}
.rep202-friends-empty-add{margin-top:8px;min-height:43px;}
/* Friend-view loading skeleton: same broad layout footprint as loaded profile. */
.rep202-friend-skeleton{display:block;min-height:630px;}
.rep202-skeleton-avatar{width:160px;height:160px;margin:auto;border-radius:50%;}
.rep202-skeleton-line{border-radius:10px;margin:6px auto;}
.rep202-skeleton-level{height:105px;width:100%;border-radius:18px;margin:18px 0 0;}
.rep202-skeleton-heading{height:24px;width:52%;border-radius:8px;margin:24px 0 16px;}
.rep202-skeleton-lift{height:116px;border-radius:18px;}
.rep202-skeleton-total{height:76px;border-radius:19px;margin:14px 0 20px;}
.rep202-skeleton-medal{width:min(96px,100%);aspect-ratio:1/1;border-radius:50%;}
.rep202-shimmer{background:#263b45;border:1px solid #354b54;}
@media(max-width:355px){
  .rep20-section-head h2{font-size:19px;}
  .rep20-level-card{gap:8px;padding:10px;}
  .rep20-social-icon{width:39px;flex-basis:39px;}
  .rep20-social-add{min-width:70px;font-size:12px;}
}
@media(prefers-reduced-motion:reduce){
  .rep20-fill,.rep20-collectible.rep202-unlocked{transition:none!important;}
}


/* === SOURCE: rep-v21.3.css === */
/* REP V21.3 — profile refinements. Visual-only, no changes to user data.
   Removes the top hero strip and summary chips, restores a dashed profile ring,
   and gives the avatar slightly more room so the lower body is not visibly clipped. */

/* CLEAN AVATAR EDITOR — remove every residual badge/guide without changing render coordinates. */
#rep-avatar-overlay .rep21-preview::before,
#rep-avatar-overlay .rep21-preview::after {content:none!important;display:none!important;}
#rep-avatar-overlay .rep21-preview-caption,
#rep-avatar-overlay .rep21-footnote {display:none!important;}
#rep-avatar-overlay .rep21-preview{
  background:radial-gradient(ellipse 83% 86% at 50% 38%,#385a69 0%,#2b4654 54%,#1c3340 100%);
  border:1px solid #476977;
}
#rep-avatar-overlay .rep21-content {min-height:0;}
#rep-avatar-overlay .rep21-body {padding-bottom:max(24px,env(safe-area-inset-bottom));}

/* HERO: measured game-like colors, no photographic gradients or neon bloom. */
.rep-profile-page .profile-hero.rep212-hero,
.rep-friend-view .profile-hero.rep212-hero{
  position:relative;isolation:isolate;
  border:2px solid #5085a0;
  border-radius:25px;
  background:#183543;
  overflow:hidden;
  box-shadow:0 5px 0 #0d2736,0 12px 22px #040d1429;
}
.rep-profile-page .profile-hero.rep212-hero::before,
.rep-friend-view .profile-hero.rep212-hero::before{content:none;display:none;}
.rep-profile-page .rep212-hero .profile-hero-art,
.rep-friend-view .rep212-hero .profile-hero-art{
  position:relative;
  height:clamp(236px,30vw,270px);
  display:flex;align-items:flex-end;justify-content:center;overflow:hidden;
  background:
    radial-gradient(ellipse 44% 67% at 50% 60%,#538dab85 0%,transparent 96%),
    radial-gradient(circle at 9% 15%,#5c9bb14a 0%,transparent 41%),
    linear-gradient(165deg,#31566a 0%,#214459 48%,#193649 100%);
  border-bottom:1px solid #5791a4a8;
}
/* Profile halo: evenly centered, larger than the avatar head; bottom intentionally clipped by hero. */
.rep-profile-page .rep212-hero .profile-hero-art::before,
.rep-friend-view .rep212-hero .profile-hero-art::before{
  content:"";display:block;position:absolute;z-index:0;
  width:260px;height:260px;left:50%;top:10px;transform:translateX(-50%);
  box-sizing:border-box;border-radius:50%;border:4px dashed #5e8396;opacity:.92;
  box-shadow:none;background:none;pointer-events:none;
}
.rep-profile-page .rep212-hero .profile-hero-art::after,
.rep-friend-view .rep212-hero .profile-hero-art::after{content:none;display:none;}
.rep-profile-page .rep212-hero .profile-large-avatar,
.rep-friend-view .rep212-hero .profile-large-avatar{
  position:relative;z-index:2;
  width:min(248px,73vw);height:min(248px,73vw);
  margin-bottom:-8px;flex:none;
}
.rep-profile-page .rep212-hero .profile-large-avatar .rep21-avatar-stack,
.rep-friend-view .rep212-hero .profile-large-avatar .rep21-avatar-stack{
  background:transparent!important;border:none!important;box-shadow:none!important;
}
.rep-profile-page .rep212-hero .profile-hero-edit{
  z-index:5;top:14px;right:15px;
  width:45px;height:45px;
  background:#173746;border:2px solid #79bad3;border-radius:14px;
  box-shadow:0 4px 0 #0d2935;
  transition:transform .12s,box-shadow .12s;
}
.rep-profile-page .rep212-hero .profile-hero-edit:active{transform:translateY(3px);box-shadow:0 1px 0 #0d2935;}
.rep-profile-page .rep212-hero .profile-hero-edit:focus-visible {outline:3px solid #b8ff65;outline-offset:3px;}

/* DETAIL: more color where V21 looked nearly black. */
.rep-profile-page .rep212-hero .profile-hero-detail,
.rep-friend-view .rep212-hero .profile-hero-detail{
  position:relative;isolation:isolate;
  display:flex;align-items:center;flex-direction:column;text-align:center;
  padding:22px clamp(15px,4vw,25px) 20px;
  background:
    radial-gradient(ellipse 50% 32% at 100% 0%,#4d8aa345 0%,transparent 95%),
    radial-gradient(ellipse 55% 65% at 0% 100%,#1c677153 0%,transparent 90%),
    linear-gradient(180deg,#22465b 0%,#1a3b4b 52%,#183441 100%);
}
.rep-profile-page .rep212-hero .profile-hero-detail::before,
.rep-friend-view .rep212-hero .profile-hero-detail::before{
  content:"";position:absolute;top:0;left:20%;right:20%;height:1px;
  background:linear-gradient(90deg,transparent,#9ae0f7a3,transparent);pointer-events:none;
}
.rep-profile-page .rep212-hero .profile-hero-detail h1,
.rep-friend-view .rep212-hero .profile-hero-detail h1{
  font-family:Nunito,system-ui,sans-serif;
  color:#f6fcff;font-size:clamp(25px,5.7vw,34px);font-weight:1000;
  line-height:1.14;letter-spacing:-.85px;
  max-width:100%;overflow-wrap:anywhere;
  margin:1px auto 2px;text-shadow:0 2px 0 #0a293339;
}
.rep-profile-page .rep212-hero .profile-join,
.rep-friend-view .rep212-hero .profile-join{
  color:#c4e2ec;font-size:12px;font-weight:800;margin-top:10px;
}

/* Level and XP are the centerpiece immediately below identity. */
.rep-profile-page .rep212-hero .rep20-level-card,
.rep-friend-view .rep212-hero .rep20-level-card{
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;
  display:flex;align-items:center;gap:11px;margin-top:17px;padding:13px;
  background:linear-gradient(145deg,#275f80 0%,#1a4a69 54%,#19415c 100%);
  border:2px solid #67bae3;border-radius:19px;
  box-shadow:0 4px 0 #103247,inset 0 1px 0 #d4f2ff1e;
}
.rep-profile-page .rep212-hero .rep20-level-badge,
.rep-friend-view .rep212-hero .rep20-level-badge{
  background:linear-gradient(180deg,#378fc4,#216ba7);border:2px solid #a1e3ff;
  color:#fff;border-radius:15px;box-shadow:0 3px 0 #145075;
}
.rep-profile-page .rep212-hero .rep20-track,
.rep-friend-view .rep212-hero .rep20-track{
  border:2px solid #518fb2;background:#0b3049;
}
.rep-profile-page .rep212-hero .rep20-fill,
.rep-friend-view .rep212-hero .rep20-fill{
  background:linear-gradient(180deg,#b7eeff,#56c6ff);
}
.rep-profile-page .rep212-hero .rep202-daily-xp,
.rep-friend-view .rep212-hero .rep202-daily-xp{
  background:#153c54;border:1px solid #4e91b5;color:#d4f0ff;
}

/* Own-profile counts become two bright, readable game tiles. No fabricated stats. */
.rep-profile-page .rep212-hero .rep212-metrics{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  align-self:stretch;width:100%;margin-top:18px;
}
.rep-profile-page .rep212-hero .rep212-metric{
  display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;
  gap:5px;min-height:48px;min-width:0;padding:8px 9px;
  border-radius:14px;border:1px solid #638ca0;
  box-sizing:border-box;background:#2b5265;
  box-shadow:inset 0 1px 0 #ffffff12,0 2px 0 #112d3b;
  text-align:left;
}
.rep-profile-page .rep212-hero .rep212-metric-friends{border-color:#60a2bb;background:#285267;}
.rep-profile-page .rep212-hero .rep212-metric-achievements{border-color:#a39865;background:#484937;}
.rep-profile-page .rep212-hero .rep212-metric-symbol{
  font:1000 20px/1 system-ui,sans-serif;color:#91d8f3;
  text-align:center;
}
.rep-profile-page .rep212-hero .rep212-metric-achievements .rep212-metric-symbol{color:#ffe08e;}
.rep-profile-page .rep212-hero .rep212-metric-label{
  font:900 clamp(9px,2.5vw,11px)/1.15 Nunito,system-ui,sans-serif;
  color:#d2eaf3;min-width:0;overflow-wrap:anywhere;letter-spacing:.15px;
}
.rep-profile-page .rep212-hero .rep212-metric b{
  font-size:clamp(15px,4vw,19px);font-weight:1000;color:#fff;line-height:1;
  font-variant-numeric:tabular-nums;
}
.rep-profile-page .rep212-hero .rep212-metric-achievements b{color:#ffe4a6;}

/* Developer identity stays gold and clearly above ordinary cosmetics. */
.rep-profile-page .rep212-hero .rep201-creator-title,
.rep-friend-view .rep212-hero .rep201-creator-title{
  background:#48371b;border:1px solid #d5af58;color:#ffe6a2;
  box-shadow:0 3px 0 #2b2518;
}
.rep-friend-view .rep212-hero .rep-visit-label{
  color:#98e1ff;background:#1e4a5f;border:1px solid #4686a4;
  padding:5px 12px;border-radius:9px;font-size:10px;font-weight:950;
}

/* Companion sections: matched visual hierarchy, no loss of V20 XP/slots. */
.rep20-profile .profile-section-title h2,
.rep-friend-view .profile-section-title h2,
.rep20-profile .rep20-section-head h2,
.rep-friend-view .rep20-section-head h2{
  color:#f0faff;letter-spacing:-.35px;
}
.rep20-profile .profile-section-title h2::before,
.rep-friend-view .profile-section-title h2::before{
  content:"";display:inline-block;width:5px;height:18px;border-radius:5px;
  background:#63c8f6;vertical-align:-3px;margin-right:10px;
}
.rep20-profile .rep-lift-card.rep-lift-squat,
.rep-friend-view .rep-lift-card.rep-lift-squat{background:#21475b;border-color:#64a9d1;}
.rep20-profile .rep-lift-card.rep-lift-bench,
.rep-friend-view .rep-lift-card.rep-lift-bench{background:#382c49;border-color:#aa87cb;}
.rep20-profile .rep-lift-card.rep-lift-deadlift,
.rep-friend-view .rep-lift-card.rep-lift-deadlift{background:#433423;border-color:#d3a261;}
.rep20-profile .rep-total,
.rep-friend-view .rep-total{
  background:linear-gradient(125deg,#244a36,#183c35);border-color:#639d73;
  box-shadow:0 4px 0 #103025;
}
.rep20-profile .rep20-collections,
.rep-friend-view .rep20-collections{margin-top:31px;}
.rep20-profile .rep20-social{
  background:linear-gradient(155deg,#1f3949,#19323e);
  border-color:#4d7991;box-shadow:0 4px 0 #102b39;
}
.rep20-profile .rep20-social-icon{background:#285c78;color:#a5e5ff;}
.rep20-profile .rep20-social-name small{color:#b2d4e2;}
.rep20-profile .profile-person-avatar,
.rep-friend-view .profile-person-avatar{
  border:1px solid #5796ad;background:#25485d;
}

@media(max-width:760px){
  .rep-profile-page .rep212-hero .profile-hero-art,
  .rep-friend-view .rep212-hero .profile-hero-art{height:242px;}
  .rep-profile-page .rep212-hero .profile-large-avatar,
  .rep-friend-view .rep212-hero .profile-large-avatar{width:242px;height:242px;margin-bottom:-7px;}
  .rep-profile-page .rep212-hero .profile-hero-art::before,
  .rep-friend-view .rep212-hero .profile-hero-art::before{width:260px;height:260px;top:10px;}
}
@media(max-width:355px){
  .rep-profile-page .rep212-hero .profile-hero-detail,
  .rep-friend-view .rep212-hero .profile-hero-detail{padding:18px 13px 17px;}
  .rep-profile-page .rep212-hero .rep212-metric{grid-template-columns:20px minmax(0,1fr) auto;padding:7px 6px;gap:4px;}
  .rep-profile-page .rep212-hero .rep212-metric-symbol{font-size:16px;}
  .rep-profile-page .rep212-hero .rep212-metric-label{font-size:9px;}
}
@media(prefers-reduced-motion:reduce){
 .rep-profile-page .rep212-hero *, .rep-friend-view .rep212-hero *{transition:none!important;animation:none!important;}
}


/* === SOURCE: rep-v21.4-quality.css === */
/* REP V21.4 — Quality release based solely on V21.3.2.
   Keep the canonical V21 LEGO avatar assets; do not mix in old avatar artwork. */

/* Auth is a distinct full-screen state. Prevent bottom bar/top bar/sidebar flashes
   before session verification and during logout, even on slow networks. */
html.rep-auth-locked #rep-top-shell,
html.rep-auth-locked #rep-web-sidebar,
html.rep-auth-locked #nav,
html.rep-auth-locked #bottom,
html.rep-auth-locked #app,
html.rep-auth-locked #rep-profile-trigger,
html.rep-auth-locked #rep-main-header{display:none!important;pointer-events:none!important;}
html.rep-auth-locked body{min-height:100dvh;background:#0d151a;}
html.rep-auth-locked #rep-account{display:flex!important;visibility:visible!important;}
#rep-account .account-card{width:min(100%,420px);max-width:420px;padding:clamp(21px,5vw,29px);border:2px solid #33424a;border-radius:22px;box-shadow:0 5px 0 #101a20!important;}
#rep-account .account-brand{margin-bottom:22px;line-height:1.05;}
#rep-account .account-card .btn.full{min-height:52px;border:2px solid #c5ff88!important;border-radius:14px;background:#b8ff65!important;color:#152112!important;font-weight:1000;box-shadow:0 5px 0 #609d2c!important;transition:transform .12s ease,box-shadow .12s ease;}
#rep-account .account-card .btn.full:active{transform:translateY(3px);box-shadow:0 2px 0 #609d2c!important;}
#rep-account .account-card .btn.full:focus-visible{outline:3px solid #75caff;outline-offset:3px;}
#rep-account .account-card .btn.full:disabled{opacity:.65;box-shadow:0 2px 0 #609d2c!important;}
#rep-account .account-card .login-handle:focus-within,
#rep-account .account-card .rep-password-field:focus-within{border-color:#91e8ff;box-shadow:0 0 0 2px #63bfff44;}
#rep-account{padding:max(16px,env(safe-area-inset-top)) 15px max(16px,env(safe-area-inset-bottom));overscroll-behavior:contain;}

/* Avatar: both entire dashed halo AND canonical V21 PNG layers fit inside the
   same hero area. No negative margin, no transforms or resize of source art. */
#app .rep-profile-page .rep212-hero .profile-hero-art,
#app .rep-friend-view .rep212-hero .profile-hero-art{
  height:clamp(288px,76vw,308px);
  min-width:0;
  overflow:hidden;
}
#app .rep-profile-page .rep212-hero .profile-hero-art::before,
#app .rep-friend-view .rep212-hero .profile-hero-art::before{
  width:min(260px,calc(100% - 24px));
  height:auto;aspect-ratio:1/1;
  top:12px;bottom:auto;left:50%;transform:translateX(-50%);
  border-width:4px;box-sizing:border-box;
}
#app .rep-profile-page .rep212-hero .profile-large-avatar,
#app .rep-friend-view .rep212-hero .profile-large-avatar{
  width:min(264px,calc(100% - 24px));
  height:auto;aspect-ratio:1/1;
  margin:0;flex:0 0 auto;
  border-radius:0;overflow:visible;
}
#app .rep-profile-page .rep212-hero .profile-large-avatar .rep21-avatar-stack,
#app .rep-friend-view .rep212-hero .profile-large-avatar .rep21-avatar-stack{
  width:100%;height:100%;max-width:none;overflow:visible!important;border-radius:0!important;
}
/* The editor must display the COMPLETE canonical avatar, not hide the lower
   45 pixels behind the panel. Keep the preview compact on an iPhone. */
#rep-avatar-overlay .rep21-preview {height:clamp(216px,29vh,258px);align-items:center;}
#rep-avatar-overlay #rep21-preview{
  position:relative;width:min(230px,60vw);height:auto;aspect-ratio:1/1;
  max-height:calc(100% - 12px);flex:0 1 auto;
  align-self:center;margin:0;overflow:visible;
}
/* The editor preview is deliberately a torso crop for space; the original
   layered art remains unchanged and no second halo is drawn there. */
#rep-avatar-overlay .rep21-preview::before,
#rep-avatar-overlay .rep21-preview::after{content:none!important;display:none!important;}
#rep-avatar-overlay .rep21-preview #rep21-preview{max-width:100%;min-width:0;}
html.rep21-editor-open #bottom,html.rep21-editor-open #rep-top-shell,
html.rep21-editor-open #rep-web-sidebar{visibility:hidden!important;pointer-events:none!important;}

/* Guard against layout expansion on narrow devices and preserve readable touch targets. */
.rep-profile-page,.rep-friend-view,#app,.profile-two-col,.profile-primary,.profile-side{min-width:0;}
#app .rep-profile-page .rep212-hero .profile-hero-detail,
#app .rep-friend-view .rep212-hero .profile-hero-detail{min-width:0;overflow-wrap:anywhere;}
#app button:focus-visible,#bottom button:focus-visible{outline:3px solid #a3e9ff;outline-offset:3px;}
@media(max-width:360px){
 #app .rep-profile-page .rep212-hero .profile-hero-art,
 #app .rep-friend-view .rep212-hero .profile-hero-art{height:282px;}
 #app .rep-profile-page .rep212-hero .profile-hero-art::before,
 #app .rep-friend-view .rep212-hero .profile-hero-art::before{width:min(252px,calc(100% - 20px));}
 #app .rep-profile-page .rep212-hero .profile-large-avatar,
 #app .rep-friend-view .rep212-hero .profile-large-avatar{width:min(252px,calc(100% - 20px));}
}
@media(prefers-reduced-motion:reduce){
 #rep-account .account-card .btn.full{transition:none!important;}
}


/* === SOURCE: rep-v23.css === */
/* REP V23 - single owner for portrait + mobile shell. Design remains REP, not a redesign.
 * The source avatar canvas remains 1024x1024 layers. Only the viewport crops torso flat. */
:root{
 --rep23-canvas-w:clamp(204px,66vw,260px);
 --rep23-crop:0.85;
 --rep23-safe-bottom:env(safe-area-inset-bottom,0px);
 --rep23-nav-height:81px;
 --rep23-color-accent:#baff75;
 --rep23-color-xp:#7fd2ff;
 --rep23-color-bg:#101b21;
}
#app .rep212-hero .profile-hero-art{
 box-sizing:border-box!important;
 display:flex!important;
 justify-content:center!important;
 align-items:flex-end!important;
 overflow:hidden!important;
 height:auto!important;
 min-height:0!important;
 padding:16px 12px 0!important;
 background:#213640!important;
}
#app .rep212-hero .profile-hero-art::before,
#app .rep212-hero .profile-hero-art::after{content:none!important;display:none!important;}
/* Same portrait geometry in own profile, other profiles, and editor. */
#app .rep212-hero .rep22-stage,
#rep-avatar-overlay .rep22-stage{
 box-sizing:border-box!important;
 position:relative!important;
 display:block!important;
 flex:0 0 auto!important;
 width:var(--rep23-canvas-w)!important;
 height:calc(var(--rep23-canvas-w)*var(--rep23-crop))!important;
 aspect-ratio:auto!important;
 max-width:100%!important;
 overflow:hidden!important;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
 margin:0!important;padding:0!important;
 isolation:isolate;
}
#app .rep212-hero .rep23-portrait-clip,
#rep-avatar-overlay .rep23-portrait-clip{
 display:block!important;position:relative!important;
 width:100%!important;height:100%!important;
 aspect-ratio:auto!important;
 overflow:hidden!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 margin:0!important;padding:0!important;
}
#app .rep212-hero .rep22-stage-art.profile-large-avatar,
#rep-avatar-overlay .rep22-stage-art.rep22-editor-avatar{
 position:absolute!important;top:0!important;left:0!important;
 display:block!important;width:100%!important;
 height:var(--rep23-canvas-w)!important;aspect-ratio:1!important;
 max-width:none!important;max-height:none!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;transform:none!important;
 margin:0!important;padding:0!important;overflow:visible!important;
}
#app .rep212-hero .rep22-stage-art canvas,
#rep-avatar-overlay .rep22-stage-art canvas,
#app .rep212-hero .rep22-stage-art .rep21-avatar-stack,
#rep-avatar-overlay .rep22-stage-art .rep21-avatar-stack{
 display:block!important;width:100%!important;height:100%!important;
 aspect-ratio:1!important;max-width:none!important;max-height:none!important;
 border:0!important;outline:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;transform:none!important;
}
/* Editor preview: no separate medalion / outlines, shared flat bust with profile. */
#rep-avatar-overlay .rep21-preview{
 box-sizing:border-box!important;display:flex!important;justify-content:center!important;
 align-items:flex-end!important;min-height:0!important;height:auto!important;
 margin:0 0 12px!important;padding:14px 8px 0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 border-radius:0!important;overflow:visible!important;
}
#rep-avatar-overlay .rep21-preview::before,
#rep-avatar-overlay .rep21-preview::after{content:none!important;display:none!important;}
#rep-avatar-overlay #rep21-preview.rep22-preview-host{
 box-sizing:border-box!important;display:flex!important;justify-content:center!important;
 align-items:flex-end!important;min-height:0!important;max-height:none!important;
 max-width:100%!important;height:auto!important;width:auto!important;
 margin:0!important;padding:0!important;overflow:visible!important;
 transform:none!important;aspect-ratio:auto!important;
}
#app .rep212-hero .profile-hero-edit{position:absolute;top:14px;right:14px;z-index:6;}
#app .rep221-friend-level{flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;
 padding:5px 7px;border:1px solid #5ba1d1;border-radius:9px;background:#193d57;color:#b8e6ff;
 font-size:12px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;}
#app .rep221-friend-level-pending{color:#91aab9;border-color:#455966;background:#23333d;}
#app .rep221-level-unavailable{padding:12px;text-align:center;color:#b7cad5;font-size:13px;}
/* One body-level fixed nav: no JS-driven scroll animations/transforms, no viewport height resizing. */
@media(max-width:699px){
 html body > #bottom.bottom{
  position:fixed!important;inset:auto 0 0 0!important;
  top:auto!important;left:0!important;right:0!important;bottom:0!important;
  box-sizing:border-box!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  margin:0!important;width:100%!important;max-width:100%!important;
  height:calc(var(--rep23-nav-height) + var(--rep23-safe-bottom))!important;
  padding:7px 8px max(9px,var(--rep23-safe-bottom))!important;
  border-radius:0!important;border-top:1px solid #34474d!important;
  background:#101b21!important;z-index:120!important;
  transform:none!important;translate:none!important;scale:none!important;
  filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  animation:none!important;transition:none!important;will-change:auto!important;
  box-shadow:none!important;contain:none!important;overflow:hidden!important;
 }
 html body > .wrap#app{padding-bottom:calc(116px + var(--rep23-safe-bottom))!important;}
 #bottom.bottom button{min-width:0!important;touch-action:manipulation;}
}
/* Screen state overrides any old PWA specificity. VisualViewport scrolling never toggles these states. */
html.rep-auth-locked body > #bottom.bottom,
html.rep201-editing body > #bottom.bottom,
html.rep23-keyboard-open body > #bottom.bottom{
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html.rep21-editor-open body > #bottom.bottom{
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html.rep-auth-locked body #rep-top-shell{display:none!important;visibility:hidden!important;}
#rep-avatar-overlay button:focus-visible,#app .rep212-hero button:focus-visible{
 outline:3px solid var(--rep23-color-accent);outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){.rep22-stage,.rep22-stage *{animation:none!important;transition:none!important;}}


/* === SOURCE: rep-v23.1.css === */
/* REP V23.1 — START 2.0. One page-scoped visual system; no changes to workouts, profile or economy. */
:root{--rep231-bg:#101b21;--rep231-txt:#f3f8fb;--rep231-muted:#a7c0ca;--rep231-lime:#beff78;--rep231-blue:#82d5fb}
/* Compact Duolingo-inspired resource row; retain real REP XP/gem graphics and profile interaction. */
html:not(.rep-auth-locked) body #rep-top-shell{background:var(--rep231-bg)!important;box-shadow:none!important;border:0!important;}
html:not(.rep-auth-locked) body #rep-top-shell #rep-main-header{
 position:relative!important;top:auto!important;display:flex!important;align-items:center!important;
 justify-content:space-between!important;min-height:58px!important;height:auto!important;
 width:100%!important;max-width:1050px!important;margin-inline:auto!important;
 padding:9px max(18px,env(safe-area-inset-right,0px)) 9px max(18px,env(safe-area-inset-left,0px))!important;
 background:transparent!important;border:0!important;border-bottom:0!important;
 box-shadow:none!important;border-radius:0!important;gap:10px!important;
}
#rep-top-shell #rep-main-header>.logo{display:none!important;}
#rep-top-shell #rep-main-header .rep-header-actions{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex:1!important;width:100%!important;margin:0!important;padding:0!important;gap:12px!important;
}
#rep-top-shell #rep-main-header .rep20-xp-header,
#rep-top-shell #rep-main-header .rep-currency{
 display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 1 auto!important;
 margin:0!important;padding:0!important;font-size:17px!important;font-weight:900!important;line-height:1!important;
 min-height:35px!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
#rep-top-shell #rep-main-header .rep20-xp-header img,
#rep-top-shell #rep-main-header .rep-currency img{width:30px!important;height:30px!important;object-fit:contain!important;flex:none!important;}
#rep-top-shell #rep-main-header #rep-xp-balance{color:#81d4ff!important;font-size:17px!important;}
#rep-top-shell #rep-main-header #rep-gem-balance{color:#f295cb!important;font-size:17px!important;}
#rep-top-shell #rep-main-header #rep-profile-trigger{
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:relative!important;width:37px!important;height:37px!important;min-width:37px!important;
 min-height:37px!important;padding:3px!important;margin:0!important;border-radius:12px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
#rep-top-shell #rep-main-header #rep-profile-trigger img,
#rep-top-shell #rep-main-header #rep-top-avatar{width:31px!important;height:31px!important;max-width:31px!important;max-height:31px!important;}
#rep-top-shell #rep-beta-banner{display:none!important;}
/* Remove the obsolete two-storey V15 header geometry, not only its artwork. */
html.rep-beta-home{--rep-banner-height:0px!important;--rep-main-height:58px!important;--rep-total-top-height:calc(58px + env(safe-area-inset-top,0px))!important;}
html.rep-beta-home body #rep-top-shell{height:var(--rep-total-top-height)!important;min-height:0!important;max-height:var(--rep-total-top-height)!important;margin:0!important;padding:0!important;}
html.rep-beta-home body #rep-top-shell #rep-main-header{padding-top:max(9px,env(safe-area-inset-top,0px))!important;height:var(--rep-total-top-height)!important;min-height:var(--rep-total-top-height)!important;}
html.rep-beta-home body > .wrap#app{padding-top:calc(var(--rep-total-top-height) + 12px)!important;}
/* scoped START layout. Avoid global card and button overrides. */
#app .rep231-start{max-width:670px;margin:0 auto;padding:12px 0 30px;color:var(--rep231-txt);}
#app .rep231-start *{box-sizing:border-box;}
#app .rep231-greeting{padding:0 2px 15px;}
#app .rep231-eyebrow{display:block;color:#9ec0cd;font-size:10px;line-height:1.5;font-weight:900;letter-spacing:.14em;}
#app .rep231-greeting h1{font-size:clamp(22px,5.8vw,30px)!important;line-height:1.18!important;font-weight:1000!important;letter-spacing:-.035em!important;margin:3px 0 0!important;color:#fff!important;}
#app .rep231-hero{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) 122px;column-gap:0;
 min-height:219px;padding:22px 17px 17px 20px;overflow:hidden;isolation:isolate;
 border:2px solid #35778d;border-radius:26px;
 background:linear-gradient(155deg,#235468 0%,#1a3e52 66%,#174357 100%);
 box-shadow:0 5px 0 #102c3b;
}
#app .rep231-hero::before{content:"";position:absolute;inset:-110px -90px auto auto;width:250px;height:250px;border-radius:50%;background:rgba(120,196,224,.06);z-index:-1;}
#app .rep231-hero-copy{position:relative;z-index:2;align-self:start;min-width:0;padding-top:3px;}
#app .rep231-hero-kicker{font-size:10px;font-weight:1000;letter-spacing:.12em;color:var(--rep231-lime);}
#app .rep231-hero h2{font-size:clamp(21px,5.9vw,28px)!important;line-height:1.15!important;color:#fff!important;letter-spacing:-.03em!important;margin:11px 0 7px!important;}
#app .rep231-hero p{color:#bbdce8;font-size:13px;line-height:1.4;font-weight:800;max-width:210px;margin:0 0 10px;overflow-wrap:anywhere;}
#app .rep231-hero-mascot{position:relative;z-index:1;align-self:center;justify-self:center;display:block;width:126px;height:126px;max-width:none;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 2px #132b3750);}
#app .rep231-hero-button{
 grid-column:1/-1;position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:10px;
 width:100%;min-height:54px;border:0;border-radius:16px;
 background:var(--rep231-lime);color:#17231e;font-size:15px;font-weight:1000;
 box-shadow:0 5px 0 #83b83f;transform:translateY(0);transition:transform .12s ease,box-shadow .12s ease;
 touch-action:manipulation;white-space:normal;
}
#app .rep231-hero-button:active{transform:translateY(4px);box-shadow:0 1px 0 #83b83f;}
#app .rep231-hero-button span{font-size:22px;line-height:1;}
#app .rep231-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;}
#app .rep231-section-head h2{margin:0!important;font-size:19px!important;line-height:1.3!important;letter-spacing:-.015em;font-weight:1000!important;color:#f4f8fa;}
#app .rep231-view-all{background:transparent!important;border:0!important;box-shadow:none!important;color:#a5dff6!important;font-weight:900;font-size:12px!important;min-height:38px;padding:4px!important;white-space:nowrap;}
#app .rep231-view-all span{font-size:19px;vertical-align:-1px;margin-left:3px;}
#app .rep231-recent{margin-top:29px;}
#app .rep231-history-list{display:grid;gap:10px;}
#app .rep231-history-card,#app .rep231-active-card{
 appearance:none;width:100%;max-width:100%;min-height:88px;display:flex;align-items:center;text-align:left;gap:14px;
 padding:14px 15px;border:2px solid #385360;border-radius:19px;background:#1c2e38;color:#edf6fa;
 box-shadow:0 4px 0 #0e222c;transition:transform .12s ease,box-shadow .12s ease;touch-action:manipulation;
}
#app .rep231-history-card:active,#app .rep231-active-card:active{transform:translateY(3px);box-shadow:0 1px 0 #0e222c;}
#app .rep231-history-icon{display:grid;place-items:center;flex:none;width:51px;height:51px;background:#2a4852;border-radius:14px;}
#app .rep231-history-icon img{width:32px;height:32px;object-fit:contain;}
#app .rep231-history-info,#app .rep231-active-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;}
#app .rep231-history-name,#app .rep231-active-info strong{font-size:16px;line-height:1.2;color:#fff;font-weight:1000;overflow-wrap:anywhere;}
#app .rep231-history-meta,#app .rep231-active-info small{font-size:12px;color:#abc3ca;line-height:1.3;font-weight:700;}
#app .rep231-history-arrow,#app .rep231-active-card>span:last-child{color:#aedcec;font-size:30px;line-height:1;flex:none;}
#app .rep231-history-empty{border:2px dashed #36505b;border-radius:18px;padding:22px 15px;text-align:center;color:#b0c6d0;font-size:13px;line-height:1.5;font-weight:700;}
#app .rep231-active-section{margin-top:26px;}
#app .rep231-active-list{display:grid;gap:10px;}
#app .rep231-active-card{min-height:70px;background:#293d32;border-color:#5c9d60;}
#app .rep231-active-pulse{flex:none;width:11px;height:11px;border-radius:50%;background:#c4ff79;box-shadow:0 0 0 5px #c4ff7917;}
#app .rep231-week{border:2px solid #344e59;border-radius:20px;background:#1a2c35;padding:17px 17px 16px;margin-top:26px;}
#app .rep231-week .rep231-section-head{margin-bottom:14px;}
#app .rep231-week-count{font-size:13px;color:#9fdbfb;font-weight:900;}
#app .rep231-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;}
#app .rep231-day{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:#a9c0c9;font-weight:800;}
#app .rep231-day-dot{display:flex;align-items:center;justify-content:center;width:100%;max-width:40px;aspect-ratio:1;border-radius:11px;background:#2b414b;border:2px solid transparent;color:#172c21;font-size:18px;font-weight:1000;}
#app .rep231-day-dot.is-done{background:#baff7c;}
#app .rep231-day-dot.is-today:not(.is-done){border-color:#92cef0;background:#284754;}
#app .rep231-plans{margin-top:26px;}
#app .rep231-plan-chips{display:flex;flex-wrap:wrap;gap:9px;}
#app .rep231-plan-chip,#app .rep231-new-plan{min-height:44px;padding:9px 15px;background:#213943;border:2px solid #42606c;border-radius:14px;color:#e7f5fa;font-size:13px;line-height:1.3;font-weight:900;max-width:100%;overflow-wrap:anywhere;}
#app .rep231-plan-chip:active,#app .rep231-new-plan:active{transform:translateY(2px);}
#app .rep231-start button:focus-visible{outline:3px solid var(--rep231-lime);outline-offset:3px;}
@media(min-width:700px){#app .rep231-start{padding-top:18px;}#app .rep231-hero{grid-template-columns:minmax(0,1fr) 160px;min-height:248px;}#app .rep231-hero-mascot{width:155px;height:155px;}#app .rep231-hero p{max-width:400px;}}
@media(max-width:359px){#app .rep231-hero{grid-template-columns:minmax(0,1fr) 95px;min-height:213px;padding:16px 13px 14px;}#app .rep231-hero-mascot{width:104px;height:104px;}#app .rep231-hero h2{font-size:21px!important;}#app .rep231-greeting h1{font-size:22px!important;}#app .rep231-hero p{font-size:12px;}#app .rep231-days{gap:4px;}#app .rep231-week{padding:14px 12px;}#rep-top-shell #rep-main-header .rep-header-actions{gap:7px!important;}}
@media(prefers-reduced-motion:reduce){#app .rep231-start *,#app .rep231-start *::before,#app .rep231-start *::after{transition:none!important;animation:none!important;}}


/* === SOURCE: rep-v23.2.css === */
/* REP V23.2 – only scoped refinements; all core REP styles remain untouched. */
#app .rep232-launch{display:flex;align-items:center;justify-content:space-between;gap:15px;
  padding:15px 16px 17px;background:#1c303a;border:2px solid #35515d;border-radius:20px;
  box-shadow:0 4px 0 #0d2029;min-height:110px;}
#app .rep232-launch-main{min-width:0;flex:1;}
#app .rep232-launch-eyebrow{display:block;font-size:10px;letter-spacing:.12em;font-weight:1000;color:#baff74;margin-bottom:6px;}
#app .rep232-launch h2{font-weight:1000!important;font-size:clamp(17px,4.6vw,23px)!important;
  line-height:1.17!important;color:#fff!important;margin:0!important;overflow-wrap:anywhere;}
#app .rep232-launch-btn{display:inline-flex;flex:none;align-items:center;justify-content:center;
  gap:7px;min-height:53px;max-width:50%;padding:10px 13px;white-space:normal;
  text-align:center;background:#bcff75;color:#15251c;font-size:12px;font-weight:1000;
  border:0;border-radius:14px;box-shadow:0 4px 0 #7eaf3d;transition:transform .12s ease,box-shadow .12s ease;touch-action:manipulation;}
#app .rep232-launch-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #7eaf3d;}
#app .rep232-launch-btn span{font-size:19px;line-height:1;}
#app .rep232-launch-btn:focus-visible{outline:3px solid #e4ffb3;outline-offset:3px;}
#app .rep232-launch + .rep231-recent{margin-top:25px;}
#app .rep231-history-icon{background:#263e47;border:1px solid #3a5662;}
#app .rep231-history-icon img{height:36px;width:36px;object-fit:contain;}
#app .rep231-start .rep231-week{margin-bottom:12px;}
#app .rep184-exercise-card .exname{margin:0!important;line-height:1.3;font-weight:900;}
#app .rep184-exercise-card>.row:first-child{align-items:center;}
#app .rep184-exercise-card{padding-top:16px;padding-bottom:17px;}
#app .rep232-rename-trigger{border:0;box-shadow:none;background:transparent;
  color:#bdfc79;font-size:13px;font-weight:900;min-height:39px;padding:7px 0;
  display:inline-flex;align-items:center;gap:7px;}
#app .rep232-rename-trigger:focus-visible{outline:2px solid #bdfc79;outline-offset:2px;}
#app .rep232-rename-trigger span{font-size:16px;}
.rep232-rename-sheet label{display:block;margin:0 0 8px;}
.rep232-rename-sheet .field{margin-bottom:18px;}
@media(max-width:359px){#app .rep232-launch{gap:9px;padding:14px 11px;}
  #app .rep232-launch-btn{font-size:11px;padding:8px 9px;max-width:49%;}}
@media(prefers-reduced-motion:reduce){#app .rep232-launch-btn{transition:none;}}


/* === SOURCE: rep-v23.4.css === */
/* REP V23.4 — sole active owner of the START hero. No mascot/image slots.
   The existing design language and all other START sections remain unchanged. */
#app .rep234-hero{
 --rep234-edge:#4b90a9;
 position:relative;isolation:isolate;display:flex;flex-wrap:wrap;align-items:center;
 gap:14px 18px;margin:4px 0 0;padding:19px 20px 20px;min-height:0;
 border:2px solid var(--rep234-edge);border-radius:21px;
 background:radial-gradient(ellipse at 94% 4%,rgba(107,193,215,.18),transparent 56%),linear-gradient(142deg,#28546a,#1a3342 94%);
 box-shadow:0 5px 0 #10242e;color:#f8fcff;
}
#app .rep234-hero[data-mode="in_progress"]{
 --rep234-edge:#60a875;
 background:radial-gradient(ellipse at 95% 5%,rgba(114,197,147,.17),transparent 56%),linear-gradient(145deg,#285848,#173638 92%);
 box-shadow:0 5px 0 #112b24;
}
#app .rep234-body{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:8px;}
#app .rep234-status{display:flex;align-items:center;gap:8px;color:#c9ff87;font-size:11px;font-weight:1000;letter-spacing:.085em;line-height:1.3;}
#app .rep234-status-dot{flex:none;width:8px;height:8px;background:#c4ff77;border-radius:50%;box-shadow:0 0 0 4px rgba(196,255,119,.12);}
#app .rep234-hero h2{font-family:Nunito,system-ui,sans-serif!important;font-size:clamp(23px,5.5vw,29px)!important;line-height:1.08!important;letter-spacing:-.025em!important;font-weight:1000!important;margin:2px 0 2px!important;color:#fff!important;overflow-wrap:anywhere;}
#app .rep234-meta{font-size:12px;line-height:1.35;color:#c3dfe8;font-weight:800;margin:0;}
#app .rep234-progress-summary{display:flex;justify-content:space-between;align-items:center;gap:6px;max-width:290px;font-size:12px;line-height:1.3;color:#c6e5db;font-weight:800;}
#app .rep234-progress-summary strong{color:#c5ff85;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;}
#app .rep234-progress{height:9px;max-width:290px;width:100%;border:1px solid #81bca473;background:#0c2a2b;border-radius:100px;overflow:hidden;}
#app .rep234-progress-fill{height:100%;display:block;border-radius:100px;background:linear-gradient(90deg,#77eab9,#bfff74);transition:width .2s ease;}
#app .rep234-cta{
 flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px;
 min-height:55px;min-width:158px;padding:11px 18px;margin:0;
 border:0;border-radius:15px;background:#bfff78;color:#15251b;
 font:1000 15px/1.2 Nunito,system-ui,sans-serif;letter-spacing:.025em;
 box-shadow:0 5px 0 #7fac3e;transform:translateY(0);
 transition:transform .12s ease,box-shadow .12s ease;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
#app .rep234-cta:active{transform:translateY(4px);box-shadow:0 1px 0 #7fac3e;}
#app .rep234-cta:focus-visible{outline:3px solid #fff;outline-offset:3px;}
#app .rep234-cta svg{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:3;fill:none;}
#app .rep234-hero + .rep231-recent{margin-top:26px;}
@media(max-width:520px){#app .rep234-hero{padding:17px 17px 18px;gap:14px;}
 #app .rep234-body{flex-basis:100%;}
 #app .rep234-cta{flex:1 1 100%;width:100%;min-height:52px;}
 #app .rep234-progress,#app .rep234-progress-summary{max-width:none;}
}
@media(min-width:521px){#app .rep234-hero{min-height:148px;}#app .rep234-cta{align-self:center;}}
@media(prefers-reduced-motion:reduce){#app .rep234-hero *,#app .rep234-hero *::before,#app .rep234-hero *::after{transition:none!important;animation:none!important;}}



/* SOURCE: rep-v24.css */
/* REP V24: native-feeling touch without damaging editable inputs. */
html,body{overscroll-behavior-y:none;-webkit-text-size-adjust:100%}
body,#app,#rep-top-shell,#bottom{ -webkit-touch-callout:none; }
#app:not(:has(input:focus,textarea:focus)),#bottom,#rep-top-shell{ -webkit-user-select:none;user-select:none; }
input,textarea,select,[contenteditable="true"]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important;}
img:not([data-rep-allow-save]),#app svg,#bottom svg{ -webkit-user-drag:none!important;user-drag:none!important;-webkit-touch-callout:none!important; }
button,a,[role="button"]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#app button:focus-visible,#bottom button:focus-visible{outline:3px solid #bafc83;outline-offset:2px}
/* Navigation remains owned by the V23 shell (fixed, no scroll handler or JS transforms).
   The safe-area strip is painted within the same bottom surface on iOS. */
@media(max-width:699px){
 html body > #bottom.bottom{position:fixed!important;bottom:0!important;top:auto!important;
   transform:none!important;translate:none!important;filter:none!important;animation:none!important;
   transition:none!important;-webkit-transform:none!important;backface-visibility:visible!important;
   overscroll-behavior:contain;isolation:isolate;}
}
/* Bottom workout picker: independent of other existing REP modals. */
html.rep24-workout-picker-open{overflow:hidden!important}
.rep24-picker-overlay{position:fixed;inset:0;z-index:900;display:flex;align-items:flex-end;justify-content:center;
 pointer-events:none;overscroll-behavior:contain}
.rep24-picker-overlay.rep24-is-open{pointer-events:auto}
.rep24-picker-backdrop{position:absolute;inset:0;background:rgba(2,9,13,.71);opacity:0;transition:opacity .20s ease}
.rep24-picker-sheet{position:relative;width:min(100%,620px);max-height:min(82dvh,720px);overflow-y:auto;overscroll-behavior:contain;
 background:#1a2b34;border:2px solid #537c8b;border-bottom:0;border-radius:26px 26px 0 0;
 box-shadow:0 -18px 65px rgba(0,0,0,.43);padding:12px 18px calc(20px + env(safe-area-inset-bottom,0px));
 transform:translateY(103%);transition:transform .20s cubic-bezier(.2,.76,.26,1);-webkit-overflow-scrolling:touch}
.rep24-picker-overlay.rep24-is-open .rep24-picker-backdrop{opacity:1}
.rep24-picker-overlay.rep24-is-open .rep24-picker-sheet{transform:translateY(0)}
.rep24-picker-overlay.rep24-is-closing .rep24-picker-backdrop{opacity:0}
.rep24-picker-overlay.rep24-is-closing .rep24-picker-sheet{transform:translateY(103%)}
.rep24-picker-grip{width:43px;height:5px;border-radius:9px;margin:0 auto 14px;background:#7c98a5}
.rep24-picker-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.rep24-picker-head h2{font-size:24px;font-weight:1000;color:#fff;margin:0}
.rep24-picker-x{border:1px solid #4f6a76;border-radius:13px;background:#283c48;color:#f7f8f8;width:43px;height:43px;font-size:30px;line-height:1}
.rep24-picker-list{display:grid;gap:10px;padding-bottom:10px}
.rep24-plan-row{width:100%;display:flex;gap:12px;align-items:center;min-height:76px;text-align:left;
 border:1px solid #527588;border-bottom:4px solid #2b4d60;background:#203b48;border-radius:17px;color:#fff;padding:10px 14px;}
.rep24-plan-row:active{transform:translateY(2px);border-bottom-width:2px}
.rep24-plan-mark{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px;background:#326d7d;color:#b9ff74;font-size:25px;font-weight:900}
.rep24-plan-text{min-width:0;display:grid;gap:3px;flex:1}.rep24-plan-text strong{font-size:19px;font-weight:900;overflow-wrap:anywhere}
.rep24-plan-text small{font-size:13px;color:#bbd0d6;font-weight:800}.rep24-plan-next{font-size:29px;color:#bafc83}
.rep24-picker-create{width:100%;padding:15px;border:1px solid #56717d;border-radius:14px;background:#2a404a;color:#f2f9fc;font-weight:900}
.rep24-empty{padding:16px;color:#bacbd3;text-align:center}
/* Minimal prior-weight hint, above the series input headers. */
#app .rep24-last-weight{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;margin:8px 0 9px;
 font-size:12px;line-height:1.35;color:#adc4d0;min-width:0}
#app .rep24-last-weight span{color:#92aab5;font-weight:800}
#app .rep24-last-weight strong{color:#c3f99c;font-weight:900;overflow-wrap:anywhere}
/* Plan sharing uses existing modal sheet, no additional content clutter on Start. */
#app .rep24-plan-share{margin-top:11px;display:flex;gap:8px;align-items:center;justify-content:center;
 width:100%;min-height:47px;border-radius:13px;border:1px solid #648497;background:#213c49;color:#dff8ff;font-weight:900}
#app .rep24-plan-import{margin-top:11px;display:flex;align-items:center;justify-content:center;gap:8px;
 width:100%;min-height:47px;border-radius:13px;border:1px solid #648497;background:#213c49;color:#dff8ff;font-weight:900}
.rep24-share-modal h2{font-size:25px;font-weight:1000}.rep24-share-modal p{color:#bbcad1;line-height:1.4}
.rep24-share-modal .btn{margin-top:12px}.rep24-share-code{border:2px dashed #93d8f5;border-radius:16px;
 background:#133443;color:#bdfc77;text-align:center;padding:20px 8px;font-size:clamp(24px,6vw,32px);font-weight:1000;letter-spacing:2px;
 -webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
.rep24-import-preview{padding-left:22px;color:#e4f3f7;max-height:25vh;overflow-y:auto}
@media(prefers-reduced-motion:reduce){.rep24-picker-backdrop,.rep24-picker-sheet{transition:none!important}}
@media(max-width:360px){
 html body > .wrap#app{min-width:0!important;width:100%!important;max-width:100vw!important;padding-left:12px!important;padding-right:12px!important;}
}
@media(max-width:360px){html body > .wrap#app{box-sizing:border-box!important;}}


/* SOURCE: rep-v24.1.css */
/* REP V24.1 — isolated visual polish for precisely the requested controls. */
#app .rep24-picker-overlay .rep24-plan-row,
.rep24-picker-overlay .rep24-plan-row {
  position:relative;isolation:isolate;box-sizing:border-box;overflow:hidden;
  border:0!important;border-radius:17px!important;
  background:#203b48;color:#fff;
  box-shadow:inset 0 -4px 0 #112d3b,0 2px 0 #0e1b25!important;
  padding:11px 14px 14px;
}
.rep24-picker-overlay .rep24-plan-row::before {
  content:"";position:absolute;inset:0;border-radius:inherit;
  border:2px solid #597f92;pointer-events:none;box-sizing:border-box;
}
.rep24-picker-overlay .rep24-plan-row:active {transform:translateY(2px);box-shadow:inset 0 -2px 0 #112d3b!important;}
.rep24-picker-overlay .rep24-plan-mark {
  width:51px;height:51px;flex:0 0 51px;background:transparent!important;
  border:0!important;border-radius:0;overflow:visible;color:inherit;
}
.rep24-picker-overlay .rep24-plan-mark .rep-i {
  width:62px!important;height:62px!important;max-width:none!important;
  object-fit:contain;transform:translate(-3px,-4px);
  -webkit-user-drag:none;pointer-events:none;
}
/* Unique completion action: midnight blue-violet / subtle 3D / restrained lettering confetti. */
#app .rep241-celebration-btn {
  position:relative;display:flex;align-items:center;justify-content:center;gap:11px;
  width:100%;min-height:54px;border-radius:14px!important;
  border:2px solid #b29df8!important;
  color:#fcf9ff!important;
  background:linear-gradient(165deg,#634b9f 0%,#49377c 100%)!important;
  box-shadow:inset 0 -4px 0 #2d2250!important;
  text-transform:uppercase;letter-spacing:.35px;font-weight:1000;
  padding:12px 16px 15px;line-height:1.3;
}
#app .rep241-celebration-btn:active {box-shadow:inset 0 -2px 0 #2d2250!important;}
#app .rep241-celebration-spark {flex:none;font-size:14px;color:#f1d087;line-height:1;}
#app .rep185-summary-reopen.rep241-celebration-btn {margin-top:12px;}
@media (prefers-reduced-motion:reduce){#app .rep241-celebration-btn {transition:none!important;}}


/* SOURCE: rep-v25.css */
/* REP V25 STABLE: creator clarity, unified finish actions. */
#rep-avatar-overlay .rep21-category-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
#rep-avatar-overlay .rep21-gem-label{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;color:#e58dbf;font-weight:1000;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
#rep-avatar-overlay .rep21-gem-label img,#rep-avatar-overlay .rep25-item-price img{display:block;object-fit:contain;flex:none}
#rep-avatar-overlay .rep21-item-status{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;min-height:14px}
#rep-avatar-overlay .rep25-item-price{position:absolute;right:5px;top:5px;display:flex;align-items:center;gap:2px;border-radius:8px;padding:3px 4px;background:rgba(12,25,36,.91);color:#e58dbf;font-weight:1000;font-size:10px;line-height:1;font-variant-numeric:tabular-nums;z-index:2}
#rep-avatar-overlay .rep21-item.is-locked .rep21-item-art{margin-top:4px}
/* Both completion and historical summary share the original V24.1 visual style, without stars. */
#app .rep-session-finish.rep241-celebration-btn,#app .rep185-summary-reopen.rep241-celebration-btn{gap:0;}


/* SOURCE: rep-v25.1.css */
/* REP V25.1 — scoped UI additions. Preserve V25 workout, avatar and quest design. */
#rep-top-shell #rep-main-header .rep-header-actions {
  flex:0 1 auto!important;width:auto!important;max-width:100%!important;
  margin-left:auto!important;justify-content:flex-end!important;gap:clamp(12px,4.8vw,52px)!important;
}
#rep-main-header .rep251-header-link{cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;
  border:0!important;background:transparent!important;padding:4px 0!important;text-align:center!important;
  min-width:0!important;touch-action:manipulation;transition:filter .15s ease!important;}
#rep-main-header .rep251-header-link:hover{filter:brightness(1.15)!important;}
#rep-main-header .rep251-header-link:focus-visible{outline:2px solid #b8ff65!important;outline-offset:5px; border-radius:10px;}
html body > #bottom.bottom{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;padding-inline:5px!important;}
html body > #bottom.bottom button{width:100%!important;min-width:0!important;box-sizing:border-box;
  padding:8px 0 5px!important;justify-content:center;min-height:63px!important;gap:6px!important;}
html body > #bottom.bottom button img{width:25px!important;height:25px!important;object-fit:contain!important;}
html body > #bottom.bottom button span{font-size:clamp(9px,2.55vw,11px)!important;letter-spacing:-.15px!important;
  white-space:nowrap;line-height:1.25!important;text-align:center;font-weight:900!important;}
html body > #bottom.bottom button.active{border-radius:14px!important;}
@media(max-width:355px){html body >#bottom.bottom button span{font-size:9px!important;letter-spacing:-.35px!important;}
  html body >#bottom.bottom button img{width:23px!important;height:23px!important;}}

/* START: two equal-height reward destinations directly after the training hero. */
#app .rep251-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:21px 0 0;}
#app .rep251-hub-card{position:relative;min-width:0;min-height:184px;display:flex;flex-direction:column;align-items:flex-start;
  text-align:left;isolation:isolate;overflow:hidden;border-radius:22px;padding:13px 15px 17px;
  color:#f6fbff;cursor:pointer;font-family:Nunito,system-ui,sans-serif;
  border:2px solid #49788d;background:linear-gradient(147deg,#25485b 0%,#1b3341 100%);
  box-shadow:inset 0 -5px 0 #112d3a,0 5px 0 #11222d!important;transition:filter .18s ease,transform .16s ease;}
#app .rep251-hub-shop{border-color:#78586e;background:linear-gradient(145deg,#393043,#292a39);box-shadow:inset 0 -5px 0 #211d2d,0 5px 0 #191b26!important;}
#app .rep251-hub-card:active{transform:translateY(3px);}
#app .rep251-hub-card:hover{filter:brightness(1.075);}
#app .rep251-hub-card img{height:86px;width:90px;object-fit:contain;display:block;filter:drop-shadow(0 5px 5px rgba(0,0,0,.19));margin:-7px 0 -1px -7px;}
#app .rep251-hub-copy{display:flex;flex-direction:column;gap:5px;padding-right:10px;margin-top:auto;}
#app .rep251-hub-copy strong{font-size:19px;line-height:1;font-weight:1000;letter-spacing:.45px;color:#f8fdff;}
#app .rep251-hub-copy small{font-size:11.5px;line-height:1.38;color:#c1d4df;font-weight:800;}
#app .rep251-hub-shop .rep251-hub-copy small{color:#dcc7d9;}
#app .rep251-hub-arrow{position:absolute;right:13px;bottom:14px;font-size:27px;font-weight:1000;line-height:1;color:#b6dff3;}
#app .rep251-hub-shop .rep251-hub-arrow{color:#f5bde1;}
#app .rep251-hub + .rep231-recent{margin-top:31px!important;}
@media(min-width:700px){#app .rep251-hub{gap:18px;margin-top:26px;}
  #app .rep251-hub-card{min-height:190px;padding:18px 22px 22px;}
  #app .rep251-hub-card img{width:100px;height:100px;}}
@media(max-width:350px){#app .rep251-hub{gap:9px;}#app .rep251-hub-card{min-height:170px;padding:11px 10px 15px;border-radius:18px;}
  #app .rep251-hub-card img{width:77px;height:77px;}#app .rep251-hub-copy strong{font-size:16px;}
  #app .rep251-hub-copy small{font-size:10px;}#app .rep251-hub-arrow{right:9px;bottom:14px;}}

/* Existing Zadania: daily wheel card sits after the label, BEFORE the first quest. */
#app .rep251-daily-card{width:100%;min-height:128px;display:grid;grid-template-columns:105px minmax(0,1fr) 38px;
  gap:7px;align-items:center;position:relative;isolation:isolate;overflow:hidden;margin:0 0 10px;padding:9px 13px;
  color:#fff;text-align:left;background:linear-gradient(123deg,#214559,#172f42 72%,#1d3242);
  border:2px solid #6091a8;border-radius:21px;box-shadow:inset 0 -5px 0 #0f2736,0 4px 0 #0e1c28!important;
  transition:filter .17s ease,transform .17s ease;font-family:Nunito,system-ui,sans-serif;}
#app .rep251-daily-card:active{transform:translateY(2px);}
#app .rep251-daily-card:hover{filter:brightness(1.09);}
#app .rep251-daily-art{height:104px;display:grid;place-items:center;overflow:hidden;}
#app .rep251-daily-art img{width:109px;height:109px;object-fit:contain;display:block;}
#app .rep251-daily-copy{min-width:0;display:flex;flex-direction:column;gap:6px;}
#app .rep251-daily-eyebrow{font-size:9px;color:#a6d9f5;letter-spacing:1.45px;font-weight:1000;}
#app .rep251-daily-copy strong{font-size:clamp(17px,4vw,24px);font-weight:1000;line-height:1.13;}
#app .rep251-daily-sub{color:#c5dbe7;font-size:12px;font-weight:800;line-height:1.32;}
#app .rep251-daily-meta{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:7px 0;gap:6px;}
#app .rep251-spin-count{width:32px;height:32px;display:grid;place-items:center;background:#b8ff80;color:#20341c;
  font-size:16px;font-weight:1000;border:2px solid #253b33;border-radius:50%;}
#app .rep251-daily-chevron{font-size:33px;line-height:1;color:#b8ddea;font-weight:1000;}
#app .rep251-countdown{white-space:nowrap;font-variant-numeric:tabular-nums;color:#f6d888;}
@media(max-width:375px){#app .rep251-daily-card{grid-template-columns:80px minmax(0,1fr) 30px;gap:6px;padding:8px 10px;}
  #app .rep251-daily-art,#app .rep251-daily-art img{width:82px;height:88px;}#app .rep251-daily-copy strong{font-size:17px;}
  #app .rep251-daily-sub{font-size:11px;}#app .rep251-spin-count{width:29px;height:29px;font-size:14px;}}

/* Professional full-screen rewards overlay. Keep the SAME close artwork as other REP panels. */
html.rep251-modal-open{overflow:hidden!important;}
#rep251-modal-root{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:12px;
  font-family:Nunito,system-ui,sans-serif;color:#f1f8fb;isolation:isolate;}
#rep251-modal-root .rep251-modal-backdrop{position:absolute;inset:0;background:rgba(1,8,14,.86);backdrop-filter:blur(4px);}
#rep251-modal-root .rep251-panel{position:relative;width:min(100%,520px);max-height:min(95dvh,850px);overflow-y:auto;overscroll-behavior:contain;
  border-radius:26px;background:linear-gradient(155deg,#1c3341,#12232e 80%);border:2px solid #587b8c;
  box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 -4px 0 rgba(0,0,0,.17);
  padding:17px 20px max(22px,env(safe-area-inset-bottom));scrollbar-width:none;}
#rep251-modal-root .rep251-panel-header{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:0 0 13px;border-bottom:1px solid #35505e;margin:0;background:transparent;min-height:43px;}
#rep251-modal-root .rep251-panel-header h2{margin:0;font-size:24px;letter-spacing:.65px;font-weight:1000;line-height:1.2;color:#f5faff;}
#rep251-modal-root .rep251-close{width:39px;height:39px;flex:none;border:1px solid #5e7481;border-radius:12px;
  background:#314653;display:grid;place-items:center;box-shadow:inset 0 -3px 0 #1c303c;padding:9px;}
#rep251-modal-root .rep251-close img{width:19px;height:19px;display:block;object-fit:contain;}
#rep251-modal-root .rep251-close:active{transform:translateY(2px);}
#rep251-modal-root button:focus-visible{outline:3px solid #c4ff98;outline-offset:2px;}
#rep251-modal-root .rep251-panel--shop{min-height:min(540px,90dvh);}
#rep251-modal-root .rep251-shop-top{display:flex;justify-content:flex-end;margin:18px 0 20px;}
#rep251-modal-root .rep251-shop-wallet{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:93px;
  background:#293b49;border:1px solid #476273;padding:8px 12px;border-radius:14px;}
#rep251-modal-root .rep251-shop-wallet img{width:29px;height:29px;object-fit:contain;}
#rep251-modal-root .rep251-shop-wallet b{color:#eb9cc6;font-size:21px;font-weight:1000;font-variant-numeric:tabular-nums;}
#rep251-modal-root .rep251-shop-empty{color:#9dadb5;font-size:16px;font-weight:800;text-align:center;display:grid;place-items:center;
  min-height:230px;padding:20px;}

/* Daily Spin */
#rep251-modal-root .rep251-wheel-intro{text-align:center;padding:16px 0 7px;}
#rep251-modal-root .rep251-spin-kicker{font-size:11px;letter-spacing:2px;font-weight:1000;color:#b8ff87;}
#rep251-modal-root .rep251-wheel-intro p{margin:7px auto 0;max-width:330px;color:#bed4df;font-size:14px;font-weight:800;line-height:1.35;}
#rep251-modal-root .rep251-wheel-stage{width:min(100%,340px);aspect-ratio:1;position:relative;margin:12px auto 14px;
  display:grid;place-items:center;isolation:isolate;}
#rep251-modal-root .rep251-wheel-glow{position:absolute;inset:5%;border-radius:50%;background:#45b9fa20;filter:blur(25px);pointer-events:none;}
#rep251-modal-root #rep251-wheel-canvas{display:block;width:100%;height:100%;border-radius:50%;position:relative;z-index:1;
  will-change:transform;backface-visibility:hidden;}
#rep251-modal-root .rep251-wheel-pointer{position:absolute;z-index:4;top:-5px;left:50%;transform:translateX(-50%);
  width:0;height:0;border-left:17px solid transparent;border-right:17px solid transparent;border-top:30px solid #F6CC38;
  filter:drop-shadow(0 3px 0 #171f29);}
#rep251-modal-root .rep251-wheel-hub{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);
  width:75px;height:75px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(160deg,#F9FEFF,#D2E5F1);
  border:11px solid #101F2B;box-shadow:0 1px 6px #0007;pointer-events:none;}
#rep251-modal-root .rep251-wheel-hub span{font-size:18px;font-weight:1000;letter-spacing:-1px;color:#213B4E;}
#rep251-modal-root .rep251-spin-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px auto 12px;
  padding:0 4px;font-size:13px;color:#c4dce8;font-weight:800;}
#rep251-modal-root .rep251-spin-meta b{color:#b8ff87;font-size:17px;margin-left:3px;}
#rep251-modal-root .rep251-info-trigger{background:none;color:#b7d9f1;border:0;padding:7px 2px;font-size:12px;font-weight:900;white-space:nowrap;}
#rep251-modal-root .rep251-info-trigger span{font-size:16px;vertical-align:middle;}
#rep251-modal-root .rep251-info-panel{background:#122630;border:1px solid #3b5969;border-radius:14px;padding:15px;margin:0 0 14px;
  font-size:12px;line-height:1.55;color:#d4e4ec;}
#rep251-modal-root .rep251-info-panel[hidden],#rep251-modal-root .rep251-spin-next[hidden]{display:none!important;}
#rep251-modal-root .rep251-info-panel p{margin:0 0 10px;}
#rep251-modal-root .rep251-rule-table{border-top:1px solid #47606b;padding-top:8px;}
#rep251-modal-root .rep251-rule-row{display:flex;gap:8px;align-items:center;margin:6px 0;}
#rep251-modal-root .rep251-rule-row span:nth-child(2){flex:1;}
#rep251-modal-root .rep251-rule-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px;}
#rep251-modal-root .rep251-rule-row strong{font-size:13px;color:#f4f9ff;font-variant-numeric:tabular-nums;}
#rep251-modal-root .rep251-rule-foot{color:#adc4ce;margin-top:12px!important;}
#rep251-modal-root .rep251-spin-next{text-align:center;color:#b8cbd9;font-size:12px;margin:3px 0 11px;}
#rep251-modal-root #rep251-spin-timer{color:#f7d48a;font-variant-numeric:tabular-nums;font-size:14px;}
#rep251-modal-root .rep251-spin-button{width:100%;min-height:60px;border:2px solid #d8ffa7;border-radius:16px;
  color:#172819;background:linear-gradient(180deg,#c9ff94,#aeed76);box-shadow:inset 0 -5px 0 #79a94d;
  font-size:19px;font-weight:1000;letter-spacing:.65px;padding:12px 14px 17px;transition:filter .15s ease;}
#rep251-modal-root .rep251-spin-button:not(:disabled):hover{filter:brightness(1.06);}
#rep251-modal-root .rep251-spin-button:disabled{opacity:.55;cursor:default;}
#rep251-modal-root .rep251-wheel-error{font-size:12px;color:#ffafaa;text-align:center;margin:7px 0;}
#rep251-modal-root .rep251-wheel-error:empty{display:none;}
#rep251-modal-root .rep251-wheel-disclaimer{display:block;text-align:center;color:#96adbb;font-size:10px;font-weight:700;margin:10px 0 0;}
#rep251-modal-root .rep251-result-panel{margin:14px 0 0;border:2px solid #577b99;border-radius:18px;padding:18px 13px 14px;
  background:linear-gradient(150deg,#25425d,#17334a);text-align:center;animation:rep251-reveal .3s ease-out;}
#rep251-modal-root .rep251-result-gems{border-color:#b46e9a;background:linear-gradient(140deg,#53324f,#382a46);}
#rep251-modal-root .rep251-result-none{border-color:#64747b;background:#25323d;}
#rep251-modal-root .rep251-result-kicker{color:#c9e9fa;font-size:11px;font-weight:1000;letter-spacing:1.6px;}
#rep251-modal-root .rep251-result-value{display:flex;justify-content:center;align-items:center;gap:9px;margin:11px 0;}
#rep251-modal-root .rep251-result-value img{object-fit:contain;}
#rep251-modal-root .rep251-result-value strong{font-size:clamp(22px,6vw,30px);font-weight:1000;color:#fff;}
#rep251-modal-root .rep251-result-panel p{margin:0 auto 12px;font-size:13px;font-weight:800;color:#d1e5ed;max-width:310px;}
#rep251-modal-root .rep251-result-return{display:block;width:100%;border-radius:12px;border:1px solid #7b9ab0;background:#334e5e;color:#f4fafc;
  font-size:14px;font-weight:1000;padding:13px;}
@keyframes rep251-reveal{from{opacity:.1;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:385px){#rep251-modal-root{padding:7px;}#rep251-modal-root .rep251-panel{padding:12px 13px 18px;border-radius:20px;max-height:97dvh;}
 #rep251-modal-root .rep251-panel-header h2{font-size:21px;}#rep251-modal-root .rep251-wheel-stage{width:min(100%,300px);}
 #rep251-modal-root .rep251-wheel-intro{padding:10px 0 3px;}#rep251-modal-root .rep251-wheel-intro p{font-size:12px;}}
@media(prefers-reduced-motion:reduce){#app .rep251-hub-card,#app .rep251-daily-card,
 #rep251-modal-root .rep251-result-panel{transition:none!important;animation:none!important;}}

/* Winner state: only the result and return action remain, no stale "losowanie" CTA. */
#rep251-modal-root #rep251-spin-action[hidden]{display:none!important;}
#rep251-modal-root .rep251-result-xp{border-color:#75B3E2;box-shadow:inset 0 2px 0 rgba(255,217,118,.3);}
#rep251-modal-root .rep251-result-gems{position:relative;overflow:hidden;}
#rep251-modal-root .rep251-result-gems::before,#rep251-modal-root .rep251-result-gems::after{
  content:"";position:absolute;top:21%;width:6px;height:9px;border-radius:2px;background:#ffd4ec;
  opacity:.83;pointer-events:none;transform:rotate(28deg);box-shadow:11px 38px 0 #f4a1cf,19px -15px 0 #b98be9;}
#rep251-modal-root .rep251-result-gems::before{left:13%;}
#rep251-modal-root .rep251-result-gems::after{right:13%;transform:rotate(-22deg);background:#f7b9d8;}
@media(prefers-reduced-motion:no-preference){#rep251-modal-root .rep251-result-gems::before{animation:rep251-confetti 1.6s ease-out both;}
 #rep251-modal-root .rep251-result-gems::after{animation:rep251-confetti 1.7s ease-out .09s both;}}
@keyframes rep251-confetti{from{opacity:0;translate:0 -12px}30%{opacity:.85}to{opacity:.4;translate:0 12px}}


/* REP V25.3 — Six equal mobile navigation icons. Fix installed iPhone PWA's legacy 5-column override. */
@media (max-width:959px){
 html body>#bottom.bottom{
   display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
   grid-template-rows:1fr!important;grid-auto-flow:row!important;grid-auto-rows:0!important;
   align-items:stretch!important;justify-items:stretch!important;gap:2px!important;
   overflow:hidden!important;box-sizing:border-box!important;
 }
 html body>#bottom.bottom button{
   display:flex!important;align-items:center!important;justify-content:center!important;
   flex-direction:column!important;min-height:0!important;height:100%!important;
   width:100%!important;gap:0!important;padding:5px 0!important;
   margin:0!important;box-sizing:border-box!important;border-radius:13px!important;
 }
 html body>#bottom.bottom button img{
   width:clamp(23px,7.3vw,29px)!important;height:clamp(23px,7.3vw,29px)!important;
   max-width:100%!important;object-fit:contain!important;
 }
 html body>#bottom.bottom button span{display:none!important;}
 html body>#bottom.bottom button.active{border-radius:13px!important;}
}
@media (max-width:699px){
 html.rep-pwa-standalone body>#bottom.bottom{
   grid-template-columns:repeat(6,minmax(0,1fr))!important;
   grid-template-rows:1fr!important;grid-auto-rows:0!important;
   height:calc(65px + env(safe-area-inset-bottom,0px))!important;
   padding:6px 7px max(8px,env(safe-area-inset-bottom,0px))!important;
   gap:2px!important;overflow:hidden!important;
 }
 html.rep-pwa-standalone body>#bottom.bottom button span{display:none!important;}
 html.rep-pwa-standalone body>#bottom.bottom button img{
   width:clamp(23px,7.3vw,29px)!important;height:clamp(23px,7.3vw,29px)!important;
 }
}

/* Two horizontal, deliberately rectangular cards; supplied artwork on the LEFT. */
#app .rep251-hub{gap:12px;margin-top:18px;}
#app .rep251-hub-card{
  min-height:118px;display:grid;grid-template-columns:clamp(39px,10vw,61px) minmax(0,1fr);
  grid-template-rows:1fr;align-items:center;column-gap:5px;text-align:left;
  padding:12px 11px 15px;border-radius:18px;overflow:hidden;
}
#app .rep251-hub-card img{
  width:100%;height:auto;max-height:71px;aspect-ratio:1/1;margin:0;
  object-fit:contain;align-self:center;
}
#app .rep251-hub-copy{margin:0;padding:0 0 10px;gap:5px;min-width:0;align-self:center;}
#app .rep251-hub-copy strong{
  font-size:clamp(12px,3.45vw,19px);letter-spacing:0;line-height:1.08;
}
#app .rep251-hub-copy small{font-size:clamp(9px,2.5vw,11px);line-height:1.29;overflow-wrap:break-word;}
#app .rep251-hub-arrow{right:12px;bottom:8px;font-size:21px;}
#app .rep251-hub + .rep231-recent{margin-top:27px!important;}
@media(max-width:360px){
 #app .rep251-hub{gap:9px;}
 #app .rep251-hub-card{min-height:110px;grid-template-columns:37px minmax(0,1fr);column-gap:4px;padding:10px 8px 13px;border-radius:17px;}
 #app .rep251-hub-card img{max-height:53px;}
 #app .rep251-hub-copy strong{font-size:12px;}
 #app .rep251-hub-copy small{font-size:9px;line-height:1.27;}
 #app .rep251-hub-arrow{right:8px;bottom:5px;}
}
@media(min-width:700px){
 #app .rep251-hub-card{min-height:133px;grid-template-columns:80px minmax(0,1fr);padding:16px 21px;column-gap:13px;}
 #app .rep251-hub-card img{max-height:84px;}
 #app .rep251-hub-copy strong{font-size:20px;}
 #app .rep251-hub-copy small{font-size:13px;}
}

/* V25.3 — Wheel canvas always clipped to its circular rim, never extending beyond viewport when rotating. */
#rep251-modal-root{overflow:hidden!important;overscroll-behavior:none!important;}
#rep251-modal-root .rep251-panel{overflow-x:hidden!important;}
#rep251-modal-root .rep253-wheel-disc{
  position:absolute;inset:0;z-index:1;border-radius:50%;overflow:hidden;contain:paint;
}
#rep251-modal-root #rep251-wheel-canvas{width:100%;height:100%;border-radius:50%;}
#rep251-modal-root .rep251-wheel-hub{
  appearance:none;-webkit-appearance:none;cursor:pointer;padding:0;
  font-family:Nunito,system-ui,sans-serif;touch-action:manipulation;
}
#rep251-modal-root .rep251-wheel-hub:disabled{cursor:default;}
#rep251-modal-root .rep251-wheel-hub:not(:disabled):active{filter:brightness(.93);}
#rep251-modal-root .rep251-wheel-hub:focus-visible{outline:3px solid #c4ff98;outline-offset:5px;}

/* Keep the page fixed even when installed-PWA legacy styles demand overflow:auto !important. */
html.rep253-modal-locked,html.rep253-modal-locked body{
  overflow:hidden!important;overscroll-behavior:none!important;
}
html.rep253-modal-locked body{
  position:fixed!important;left:0!important;right:0!important;width:100%!important;
  touch-action:none!important;
}
#rep251-modal-root .rep251-panel{touch-action:pan-y;overscroll-behavior:contain;}

/* Once the result arrives, stop ALL page/panel movement; bring the prize above the fold. */
#rep251-modal-root .rep251-panel.rep253-reward-settled{
  overflow:hidden!important;touch-action:none!important;overscroll-behavior:none!important;
}
#rep251-modal-root .rep253-reward-settled .rep251-wheel-intro{display:none!important;}
#rep251-modal-root .rep253-reward-settled .rep251-wheel-stage{
  width:min(48vw,188px,24dvh)!important;margin:7px auto 9px!important;
}
#rep251-modal-root .rep253-reward-settled .rep251-info-panel,
#rep251-modal-root .rep253-reward-settled .rep251-info-trigger{display:none!important;}
#rep251-modal-root .rep253-reward-settled .rep251-spin-meta{justify-content:center!important;margin:0 auto 5px!important;}
#rep251-modal-root .rep253-reward-settled .rep251-spin-next{margin:2px auto 5px!important;}
#rep251-modal-root .rep253-reward-settled .rep251-result-panel{margin:9px 0 0!important;padding:13px 10px 11px!important;}
#rep251-modal-root .rep253-reward-settled .rep251-result-value{margin:7px 0!important;}
#rep251-modal-root .rep253-reward-settled .rep251-result-panel p{margin-bottom:9px!important;}
#rep251-modal-root .rep253-reward-settled .rep251-result-return{padding:10px!important;}
@media(max-height:620px){
 #rep251-modal-root .rep253-reward-settled .rep251-wheel-stage{width:min(38vw,125px,21dvh)!important;}
 #rep251-modal-root .rep253-reward-settled .rep251-panel-header{padding-bottom:6px!important;}
 #rep251-modal-root .rep253-reward-settled .rep251-result-panel{padding:8px!important;}
}
#rep251-modal-root button.rep251-wheel-hub{pointer-events:auto!important;}
/* Disabled REP remains fully opaque and legible after the spin. */
#rep251-modal-root button.rep251-wheel-hub:disabled{opacity:1!important;filter:none!important;}


/* SOURCE: rep-v25.4.css */
/* REP V25.4 — precise visual polish on existing component families.
   Respect existing button color roles; do not globally recolor or resize icons. */
:root{--rep254-control-radius:14px;--rep254-control-type:14px;--rep254-control-weight:900;--rep254-control-min:44px;--rep254-control-motion:cubic-bezier(.2,.8,.2,1)}
#app .rep251-hub{gap:10px!important;margin-top:15px!important;}
#app .rep251-hub-card{min-height:76px!important;padding:11px 12px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;border-radius:16px!important;}
#app .rep251-hub-card>img{flex:0 0 56px!important;width:56px!important;height:55px!important;object-fit:contain!important;margin:0!important;}
#app .rep251-hub-copy{flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:row!important;align-self:center!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;text-align:center!important;}
#app .rep251-hub-copy strong{font-size:clamp(12px,3.2vw,16px)!important;letter-spacing:.3px!important;line-height:1.1!important;font-weight:1000!important;white-space:nowrap;}
#app .rep251-hub-copy small{display:none!important;}
#app .rep251-hub-arrow{font-size:20px!important;opacity:.75;flex:0 0 11px;}
@media(max-width:359px){#app .rep251-hub{gap:7px!important;}#app .rep251-hub-card{padding:9px 7px!important;gap:4px!important;min-height:67px!important;}#app .rep251-hub-card>img{width:44px!important;height:44px!important;flex-basis:44px!important;}#app .rep251-hub-copy strong{font-size:11.5px!important;}}
/* Weekly navigation: four accessible weeks, swipe gesture is handled by JS. */
#app .rep254-week{touch-action:pan-y;overflow:hidden;}
#app .rep254-week-nav{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:5px;align-items:center;margin:0 0 17px;}
#app .rep254-week-nav button{width:37px;height:37px;background:#253e4b;border:1px solid #547282;border-bottom:3px solid #152c36;border-radius:11px;color:#e6f7ff;font-weight:1000;font-size:25px;display:grid;place-items:center;padding:0 0 3px;transition:transform .15s var(--rep254-control-motion);}
#app .rep254-week-nav button:not(:disabled):active{transform:translateY(2px);border-bottom-width:1px;}
#app .rep254-week-nav button:disabled{opacity:.30;cursor:default;}
#app .rep254-week-title{min-width:0;text-align:center;display:grid;gap:3px;}
#app .rep254-week-title h2{margin:0!important;font-size:clamp(15px,3.7vw,19px)!important;line-height:1.2!important;font-weight:1000!important;letter-spacing:-.2px;text-transform:none;}
#app .rep254-week-title span{font-size:12px;font-weight:900;color:#acd6e9;}
#app .rep254-week .rep231-days{animation:rep254-week-show .2s ease-out both;}
@keyframes rep254-week-show{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
/* Training history: one consistent 3D surface with pre-existing muscle icons. */
#app .rep254-history .rep-history-list{display:grid;gap:12px;}
#app .rep254-history-card{min-width:0;display:grid;grid-template-columns:58px minmax(0,1fr) 38px;align-items:center;gap:12px;background:#1a303a;border:2px solid #415f6d;border-bottom:5px solid #10242e;border-radius:17px;min-height:89px;padding:12px 10px 10px 12px;color:#e7f5fa;}
#app .rep254-history-card.is-active{border-color:#576777;border-bottom-color:#273441;}
#app .rep254-history-muscle{width:54px;height:54px;display:grid;place-items:center;border-radius:12px;background:#254653;border:1px solid #496c7c;}
#app .rep254-history-muscle img{width:40px;height:40px;object-fit:contain;}
#app .rep254-history-body{display:grid;min-width:0;gap:4px;}
#app .rep254-history-body strong{font-size:16px;font-weight:1000;line-height:1.2;overflow-wrap:anywhere;}
#app .rep254-history-body>span{font-size:12px;font-weight:800;color:#bed2de;line-height:1.3;}
#app .rep254-history-body small{font-size:11px;font-weight:900;color:#b9f38b;}
#app .rep254-history-card.is-active small{color:#f2bf7c;}
#app .rep254-history-open{width:36px;height:41px;border-radius:11px;border:1px solid #50748a;border-bottom:3px solid #0e2735;background:#2a4b5b;color:#d7f3ff;font-size:29px;font-weight:900;padding:0 0 3px;display:grid;place-items:center;}
#app .rep254-history-open:active{transform:translateY(2px);border-bottom-width:1px;}
/* Consistent sizing within existing button types — preserve state colors & special primary actions. */
#app :is(.btn:not(.rep231-history-card),.rep181-btn,.rep24-plan-import,.rep24-plan-share,.rep181-edit-toggle,.rep181-tool,.rep-lib-primary){font-weight:900!important;line-height:1.2!important;letter-spacing:.12px!important;}
#app :is(.btn,.rep181-btn,.rep24-plan-import,.rep24-plan-share){font-size:clamp(13px,3.3vw,15px)!important;min-height:var(--rep254-control-min);text-align:center!important;justify-content:center;align-items:center;}
#app :is(.rep24-plan-import,.rep24-plan-share){display:flex!important;padding:11px 14px!important;border-radius:var(--rep254-control-radius)!important;}
#app :is(.rep181-btn,.rep24-plan-import,.rep24-plan-share,.btn):focus-visible,#app .rep254-history-open:focus-visible,#app .rep254-week-nav button:focus-visible{outline:3px solid #b7f77e!important;outline-offset:3px!important;}
/* No global rewrite of avatars, tabs, money, or specialized icon-only controls. */
@media(prefers-reduced-motion:reduce){#app .rep254-week .rep231-days{animation:none;}#app .rep254-week-nav button{transition:none;}}

/* Primary full-width training buttons get a proper readable type size without increasing their height. */
#app :is(.rep-session-save,.rep-session-finish,.rep185-summary-reopen){font-size:clamp(15px,3.9vw,17px)!important;line-height:1.15!important;min-height:48px!important;letter-spacing:.2px!important;}
#app .rep181-btn.rep181-btn-primary{font-size:clamp(14px,3.5vw,16px)!important;}


/* SOURCE: rep-v25.4.5.css */
/* REP V25.4.5: targeted mobile UI correction; inherit REP colors and typography. */
/* START: two clean action surfaces with native illustrations; no chevrons. */
#app .rep251-hub-card{justify-content:flex-start!important;}
#app .rep251-hub-copy{justify-content:center!important;padding-right:1px!important;}
/* Week: only native horizontal swipe; keyboard remains accessible without visible controls. */
#app .rep254-week{touch-action:pan-y;overflow:hidden;outline-offset:3px;}
#app .rep2545-week-swipe{will-change:transform,opacity;}
#app .rep254-week-nav{display:block;margin:0 0 17px;}
#app .rep254-week-title{width:100%;margin:0 auto;text-align:center;}
#app .rep254-week:focus-visible{outline:2px solid #b8ff65;}
/* History: a single uninterrupted 3D rim; whole card is the target. */
#app .rep254-history .rep-history-list{gap:17px;overflow:visible;}
#app .rep254-history-card{appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:90px;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px;box-sizing:border-box;text-align:left;cursor:pointer;touch-action:manipulation;position:relative;overflow:visible;padding:12px 14px 12px 12px;border:2px solid #415f6d;border-radius:18px;background:#1a303a;box-shadow:0 5px 0 #0e2530;transition:transform 130ms cubic-bezier(.2,.8,.2,1),box-shadow 130ms cubic-bezier(.2,.8,.2,1);}
#app .rep254-history-card.is-active{border-color:#576777;box-shadow:0 5px 0 #263440;}
#app .rep254-history-card:active{transform:translateY(3px);box-shadow:0 2px 0 #0e2530;}
#app .rep254-history-card.is-active:active{box-shadow:0 2px 0 #263440;}
#app .rep254-history-card:focus-visible{outline:3px solid #b8ff65;outline-offset:4px;}
#app .rep254-history-body{display:grid;gap:4px;min-width:0;}
/* Plan creation: selectable existing REP muscle artwork, never new illustrations. */
#modal .rep2545-create-plan .rep181-modal-description{margin-bottom:14px;}
#modal .rep2545-muscle-fieldset{margin:0 0 17px;padding:0;border:0;min-width:0;}
#modal .rep2545-muscle-fieldset legend{font-size:13px;font-weight:900;color:#dce9ef;padding:0;margin:0 0 10px;}
#modal .rep2545-muscle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
#modal .rep2545-muscle-option{display:block;margin:0;min-width:0;cursor:pointer;position:relative;}
#modal .rep2545-muscle-option input{position:absolute;inset:0;width:100%;height:100%;margin:0!important;opacity:0;z-index:1;cursor:pointer;}
#modal .rep2545-muscle-choice{height:85px;padding:8px 4px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#1d303a;border:2px solid #405967;border-bottom:4px solid #102833;border-radius:14px;transition:transform 130ms ease,border-color 130ms ease,background 130ms ease;}
#modal .rep2545-muscle-choice img{width:38px;height:38px;object-fit:contain;flex:none;}
#modal .rep2545-muscle-choice strong{color:#e6f4fa;font-size:11px;font-weight:900;line-height:1.15;text-align:center;}
#modal .rep2545-muscle-option input:checked+.rep2545-muscle-choice{background:#254431;border-color:#a1e870;border-bottom-color:#598a3d;}
#modal .rep2545-muscle-option input:focus-visible+.rep2545-muscle-choice{outline:3px solid #d3ffab;outline-offset:2px;}
#modal .rep2545-muscle-option input:active+.rep2545-muscle-choice{transform:translateY(2px);border-bottom-width:2px;}
@media(max-width:350px){#modal .rep2545-muscle-grid{gap:6px;}#modal .rep2545-muscle-choice{height:78px;padding:6px 2px;}#modal .rep2545-muscle-choice strong{font-size:10px;}}
@media(prefers-reduced-motion:reduce){#app .rep254-history-card,#modal .rep2545-muscle-choice{transition:none!important;}#app .rep2545-week-swipe{will-change:auto;}}


/* SOURCE: rep-v25.4.6.css */
/* REP V25.4.6: narrowly scoped polish; maintain existing REP 3D tokens. */
/* Tight, readable action tiles; artwork and 3D borders are unchanged. */
#app .rep251-hub{gap:10px!important}
#app .rep251-hub-card{gap:8px!important;padding:12px 13px!important;min-height:84px!important;justify-content:space-between!important;}
#app .rep251-hub-card>img{flex:0 0 57px!important;width:57px!important;height:57px!important;}
#app .rep251-hub-copy{flex:1!important;justify-content:center!important;align-items:center!important;}
#app .rep251-hub-copy strong{font-size:clamp(15px,3.75vw,19px)!important;font-weight:1000!important;letter-spacing:.1px!important;line-height:1.05!important;}
@media(max-width:359px){#app .rep251-hub{gap:7px!important}#app .rep251-hub-card{gap:5px!important;padding:10px 8px!important;min-height:75px!important}#app .rep251-hub-card>img{flex-basis:47px!important;width:47px!important;height:47px!important}#app .rep251-hub-copy strong{font-size:clamp(13px,4.1vw,15px)!important}}
/* Week slides: genuine horizontal carousel with no mid-animation app render. */
#app .rep254-week{position:relative!important;overflow:hidden!important;touch-action:pan-y!important;overscroll-behavior-x:contain;}
#app .rep2545-week-swipe{position:relative;width:100%;opacity:1!important;will-change:transform;backface-visibility:hidden;}
#app .rep2546-week-entering{position:absolute!important;inset:0!important;pointer-events:none;}
@media(prefers-reduced-motion:reduce){#app .rep2545-week-swipe{will-change:auto}}
/* Native REP field/dropdown with no autofocus. */
#modal .rep2546-create-plan form{display:flex;flex-direction:column;gap:10px;}
#modal .rep2546-create-plan form>label{color:#dce9ef;font-size:14px;font-weight:900;margin-top:7px;}
#modal .rep2546-create-plan .rep2546-select{min-height:53px;width:100%;font-size:16px;color:#f4fafc;background-color:#12232c;border:2px solid #425e6a;border-radius:13px;padding:10px 14px;outline-offset:3px;}
#modal .rep2546-create-plan input.field{font-size:16px;min-height:53px;}
#modal .rep2546-create-plan button[type=submit]{margin-top:17px;width:100%;}
#app .rep2546-save-plan{display:flex;width:100%;margin:16px 0 10px;}
/* Existing REP alert dialog appearance, three appropriately-sized choices. */
#rep-dialog-root .rep2546-dialog-actions{display:flex;flex-direction:column;gap:9px;}
#rep-dialog-root .rep2546-dialog-actions .btn{width:100%;min-height:49px;font:900 14px/1.2 Nunito,system-ui,sans-serif;white-space:normal;}
#rep-dialog-root .rep2546-dialog-save{background:#befb85!important;color:#142317!important;border:2px solid #befb85!important;border-bottom:5px solid #79a84d!important;}
#rep-dialog-root .rep2546-dialog-discard{color:#f1cbd0!important;}
#rep-dialog-root .rep2546-dialog-continue{color:#f5f9fa!important;}


/* SOURCE: rep-v25.4.7.css */
/* REP V25.4.7 — iOS-native, no artificial JS step animations. */
#app .rep2547-week{touch-action:auto!important;overflow:hidden!important;}
#app .rep2547-week-viewport{
 display:flex;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;
 overflow-x:auto!important;overflow-y:hidden!important;
 overscroll-behavior-x:contain;
 scroll-snap-type:x mandatory;
 -webkit-overflow-scrolling:touch;
 touch-action:pan-x pan-y!important;
 scrollbar-width:none!important;
 scroll-padding-inline:0;
}
#app .rep2547-week-viewport::-webkit-scrollbar{display:none!important;}
#app .rep2547-week-slide{
 box-sizing:border-box;display:flex;flex:0 0 100%;width:100%;min-width:0;
 flex-direction:column;justify-content:flex-start;
 scroll-snap-align:start;scroll-snap-stop:always;
 backface-visibility:hidden;
}
#app .rep2547-week-slide .rep254-week-nav{
 display:flex!important;align-items:center;justify-content:center;
 min-height:66px;margin-bottom:14px;
}
#app .rep2547-week-slide .rep254-week-title{width:100%;max-width:100%;text-align:center;}
#app .rep2547-week-slide .rep231-days{animation:none!important;}
#app .rep2547-week-slide :is(.rep231-day,.rep231-day-dot){pointer-events:none;}
#app .rep2547-week:focus-visible{outline:2px solid #b8ff65;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){#app .rep2547-week-viewport{scroll-behavior:auto!important;}}


/* SOURCE: rep-v26.css */
/* REP V26 STABLE — shared design language. Feature cards retain their personalities. */
:root{--rep26-radius:17px;--rep26-edge:#4d626c;--rep26-ink:#e8f2f4;--rep26-lime:#aee977;--rep26-bg:#1b292f;--rep26-depth:3px}
#rep-dialog-root .rep-dialog-backdrop{position:fixed;inset:0;z-index:99999;display:flex;justify-content:center;align-items:center;padding:20px;background:rgba(4,10,15,.77);overscroll-behavior:contain}
#rep-dialog-root .rep-dialog{box-sizing:border-box;width:min(100%,420px);max-height:min(90dvh,700px);overflow:auto;background:#1b2a32;border:2px solid #49616b;border-radius:23px;padding:24px 20px 20px;color:#f4fafc;text-align:center;box-shadow:0 5px 0 #0c171d!important;font-family:Nunito,system-ui,sans-serif}
#rep-dialog-root .rep-dialog-glyph{width:58px;height:58px;margin:0 auto 15px;display:grid;place-items:center;background:#51343c;border:2px solid #84535b;border-radius:17px;color:#ffb8bb;font-size:28px;font-weight:1000;line-height:1}
#rep-dialog-root .rep-dialog-glyph.is-danger{background:#573139;color:#ffc3c6}
#rep-dialog-root .rep-dialog h2{font-size:23px;line-height:1.2;font-weight:1000;margin:0 0 12px;color:#f4fafc}
#rep-dialog-root .rep-dialog-text{font-size:14px;color:#bdced5;line-height:1.5;margin-bottom:19px}
#rep-dialog-root .rep-dialog-text p{margin:5px 0 9px}
#rep-dialog-root .rep-dialog-actions{display:flex;flex-direction:column;gap:10px;width:100%}
#rep-dialog-root .rep-dialog-actions button{box-sizing:border-box!important;display:flex;align-items:center;justify-content:center;width:100%;min-height:51px;padding:12px 10px!important;border:2px solid #506771!important;border-radius:13px!important;font:900 14px/1.2 Nunito,system-ui,sans-serif!important;background:#2a3d46!important;color:#f0f6f8!important;box-shadow:0 3px 0 #14232b!important;transform:none;transition:filter .13s ease,background-color .13s ease!important}
#rep-dialog-root .rep-dialog-actions button:active{filter:brightness(.91);box-shadow:0 2px 0 #14232b!important;transform:none!important}
#rep-dialog-root .rep-dialog-actions button:focus-visible{outline:2px solid #b4f48b;outline-offset:3px}
#rep-dialog-root .rep-dialog-actions .rep2546-dialog-save,#rep-dialog-root .rep-dialog-actions .rep26-confirm-save{background:#2b493a!important;border-color:#7cbb81!important;color:#bcf5a8!important;box-shadow:0 3px 0 #182c20!important}
#rep-dialog-root .rep-dialog-actions .rep2546-dialog-discard,#rep-dialog-root .rep-dialog-actions .rep26-confirm-danger{background:#603840!important;border-color:#9d5963!important;color:#ffd3d9!important;box-shadow:0 3px 0 #382128!important}
#rep-dialog-root .rep-dialog-actions .rep2546-dialog-continue{background:#2a3d46!important;border-color:#506771!important;color:#f0f6f8!important}
/* Native RTL carousel: old weeks physically lie to the LEFT of the current week. */
#app .rep2547-week-viewport{direction:ltr!important;column-gap:12px!important;scroll-padding-inline:0!important;scroll-snap-type:x mandatory;}
#app .rep2547-week-slide{direction:ltr;flex:0 0 100%!important;scroll-snap-align:start!important;min-width:100%!important;}
#app .rep2547-week-slide .rep254-week-nav{margin-inline:1px}
/* Stable center button: the wheel alone rotates. No transforms on hub pseudo-states. */
#rep251-modal-root #rep253-wheel-hub{pointer-events:auto!important;position:absolute!important;left:50%!important;top:50%!important;translate:-50% -50%!important;transform:none!important;transition:background-color .12s ease,filter .12s ease!important;touch-action:manipulation;will-change:auto;}
#rep251-modal-root #rep253-wheel-hub:not(:disabled):active{translate:-50% -50%!important;transform:none!important;filter:brightness(.88)!important}
#rep251-modal-root #rep253-wheel-hub:disabled{translate:-50% -50%!important;transform:none!important;filter:none!important;animation:none!important;cursor:default;}
#rep251-modal-root #rep253-wheel-hub:disabled *,#rep251-modal-root #rep253-wheel-hub:disabled:active{transform:none!important;animation:none!important;filter:none!important}
/* Mobile sheet: native keyboard only opens after actual focus. VisualViewport adjusts the sheet position. */
@media(max-width:699px){
  #modal.show{align-items:flex-end!important;overflow:hidden!important;}
  #modal .sheet{max-height:min(82dvh,calc(100dvh - 28px));padding-bottom:calc(22px + env(safe-area-inset-bottom));overscroll-behavior:contain;}
  html.rep26-keyboard-open #modal .sheet{max-height:calc(100dvh - var(--rep26-keyboard-bottom,0px) - 16px)!important;margin-bottom:var(--rep26-keyboard-bottom,0px)!important;}
  #modal .sheet input:focus,#modal .sheet textarea:focus{scroll-margin-block:15px;}
}
/* Progress: strongly differentiated content within the shared REP palette */
#app .rep26-progress{font-family:Nunito,system-ui,sans-serif;max-width:900px;margin-inline:auto;padding-bottom:18px;}
#app .rep26-progress-header{margin:5px 0 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
#app .rep26-progress-header h1{font-size:clamp(26px,6vw,34px);color:#f1f7f6;margin:0}
#app .rep26-progress-header p{color:#91aaa9;font-size:13px;margin:5px 0 0}
#app .rep26-progress-brand{display:grid;place-items:center;width:44px;height:44px;background:#233a30;border:1px solid #638f58;border-radius:14px;color:#bcf887;font-size:23px;flex:none}
#app .rep26-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:18px;}
#app .rep26-tabs button{font-size:clamp(10px,2.6vw,13px);font-weight:900;min-height:45px;padding:8px 3px;white-space:nowrap;border:1px solid #38505c;border-radius:12px;background:#1b2a31;color:#bbced3;}
#app .rep26-tabs button.is-current{border-color:#9cce78;background:#2e4335;color:#c6f7a4;}
#app .rep26-card{background:#17242b;border:1px solid #39505a;border-radius:18px;padding:16px;margin-bottom:13px;box-shadow:0 3px 0 #10191e;min-width:0}
#app .rep26-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
#app .rep26-section-head h2{margin:0;font-size:16px;font-weight:1000;color:#eff7f8;letter-spacing:.2px}
#app .rep26-section-head small{font-size:11px;white-space:nowrap;color:#91aab3}
#app .rep26-periods{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px;}
#app .rep26-periods button{padding:9px 12px;border:1px solid #3b515a;border-radius:11px;background:#1c2b33;color:#b7c9cf;font:850 12px Nunito,system-ui,sans-serif}
#app .rep26-periods button.is-active{background:#304939;border-color:#93c778;color:#d0fbb5}
#app .rep26-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
#app .rep26-metric{border:1px solid #354f55;border-radius:15px;background:#20323b;padding:14px;min-width:0}
#app .rep26-metric span{display:block;color:#a9bfc6;font-size:11px;font-weight:850;line-height:1.4;letter-spacing:.4px}
#app .rep26-metric strong{display:block;color:#f2fbf8;font-size:clamp(25px,7vw,35px);line-height:1.15;font-weight:1000;margin:9px 0 4px;font-variant-numeric:tabular-nums}
#app .rep26-metric em{display:block;color:#9eafb7;font-size:11px;font-style:normal}
#app .rep26-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
#app .rep26-calendar-day{aspect-ratio:1;max-height:53px;border-radius:9px;background:#25343b;border:1px solid #3a4a51;display:flex;align-items:center;justify-content:center;position:relative;color:#96abb1;font:800 11px Nunito,system-ui,sans-serif}
#app button.rep26-calendar-day{cursor:pointer;}
#app .rep26-calendar-day[data-level="1"]{background:#385a3d;border-color:#78a868;color:#ebffe0}
#app .rep26-calendar-day[data-level="2"]{background:#95d66e;border-color:#adf38c;color:#15311a}
#app .rep26-calendar-day.is-outside{opacity:.24}
#app .rep26-calendar-legend{margin-top:12px;font-size:11px;color:#a3bac1}
#app .rep26-compare{display:grid;grid-template-columns:1fr auto;row-gap:9px;align-items:center;font-size:13px}
#app .rep26-compare b{color:#e3f3ed;text-align:right;font-variant-numeric:tabular-nums}
#app .rep26-note{color:#93a8b0;font-size:12px;line-height:1.55}
#app .rep26-empty{padding:23px 12px;border-radius:13px;background:#1d2b32;text-align:center;color:#9db0b8;font-size:13px;line-height:1.5}
#app .rep26-exercise-select{width:100%;min-height:50px;background:#122028;border:2px solid #405b66;border-radius:12px;padding:10px;color:#f0f7f9;font-size:16px;margin-bottom:13px;}
#app .rep26-chart{width:100%;height:185px;display:block;overflow:visible}
#app .rep26-chart-labels{display:flex;justify-content:space-between;font-size:11px;color:#9ab0b9;margin-top:3px}
#app .rep26-best{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0;}
#app .rep26-best span{background:#233a31;border:1px solid #567d54;border-radius:10px;padding:9px 12px;color:#ddf6cf;font-size:12px;font-weight:900;}
#app .rep26-record-list{display:flex;flex-direction:column;gap:9px}
#app .rep26-record{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#21323b;border:1px solid #3e5660;border-radius:12px;padding:12px;}
#app .rep26-record strong{font-size:13px;color:#f2f9fc;display:block}
#app .rep26-record small{font-size:11px;color:#9aafb6;display:block;margin-top:3px}
#app .rep26-record b{white-space:nowrap;color:#c2f59a;font-size:15px}
@media(min-width:700px){#app .rep26-metrics{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(prefers-reduced-motion:reduce){#app .rep26-tabs *,#rep-dialog-root .rep-dialog *{transition:none!important}}

#app .rep26-history-filter{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#20343c;border:1px solid #405e67;border-radius:13px;padding:12px 14px;margin:10px 0 18px;font:800 13px Nunito,system-ui,sans-serif;color:#dcebef}
#app .rep26-history-filter button{font-size:11px;padding:8px 11px}


/* SOURCE: rep-v27.css */
/* REP V27 • REFINED • design tokens, not flattened module personalities */
:root{
 --rep27-ink:#f0f7f8;--rep27-muted:#adc0c8;--rep27-surface:#1c2a32;
 --rep27-stroke:#3e535e;--rep27-shadow:#101a21;--rep27-lime:#c0f38b;
 --rep27-blue:#8dc9f8;--rep27-purple:#c5a4ff;--rep27-rose:#ff9daa;
 --rep27-radius:19px;--rep27-press:120ms;--rep27-rail:165ms;
}
#app :is(.rep181-ex,.rep181-day,.rep254-history-card):focus-visible{outline:2px solid var(--rep27-lime);outline-offset:3px}
#app :is(.rep181-ex,.rep181-day,.rep26-record,.rep26-tabs button,.rep26-periods button){-webkit-tap-highlight-color:transparent}
/* PLANY: one card per exercise, bigger tap targets, no gratuitous REP stamps */
#app .rep181-ex-list{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;display:flex;flex-direction:column;gap:10px;overflow:visible!important}
#app .rep181-ex{position:relative;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;min-height:92px!important;padding:16px 13px!important;background:#1b262d!important;border:2px solid #3d515b!important;border-bottom-width:4px!important;border-radius:18px!important;box-shadow:0 2px 0 rgba(5,15,20,.35);transition:border-color var(--rep27-press),background-color var(--rep27-press)}
#app .rep181-ex:last-child{border-bottom-width:4px!important}
#app .rep181-ex-num{width:26px!important;align-self:center!important;color:#89a5ae!important;font:900 13px Nunito,sans-serif!important}
#app .rep181-ex-copy{min-width:0!important;flex:1 1 auto!important;display:grid!important;gap:6px!important;align-self:center!important;max-width:100%}
#app .rep181-ex-copy strong{font:950 clamp(15px,4.1vw,18px)/1.3 Nunito,sans-serif!important;color:#f0f7f9}
#app .rep181-ex-copy small{font:700 clamp(12px,3.4vw,14px)/1.3 Nunito,sans-serif!important;color:#adbec7!important}
#app .rep181-ex.is-editing{touch-action:none;cursor:grab}
#app .rep181-ex.is-editing .rep181-ex-copy{cursor:pointer}
#app .rep181-ex.is-editing .rep181-ex-copy:active{color:var(--rep27-lime)}
#app .rep181-ex.is-editing .rep181-ex-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;max-width:none!important;width:auto!important;min-width:0!important;border:0!important;padding:0!important;gap:7px!important;flex-wrap:nowrap!important}
#app .rep181-ex-actions button{width:43px!important;height:45px!important;min-width:43px!important;min-height:45px!important;border-radius:12px!important;border:2px solid #6e638a!important;border-bottom-width:4px!important;background:#342e43!important;box-shadow:none!important;display:grid;place-items:center}
#app .rep181-ex-actions button.rep27-delete{background:#493037!important;border-color:#9b5562!important}
#app .rep181-ex-actions button .rep-i{width:23px!important;height:23px!important}
#app .rep181-ex-actions button:active{filter:brightness(.84)}
#app .rep181-ex.rep27-being-dragged,#app .rep184-exercise-card.rep27-being-dragged{z-index:15;position:relative;cursor:grabbing;box-shadow:0 12px 30px rgba(0,0,0,.45)!important;border-color:var(--rep27-lime)!important;background:#283b38!important;transform:scale(1.012)!important}
#app .rep27-rail-active .rep181-ex-actions{opacity:.12;pointer-events:none}
#app .rep181-ex.is-editing:focus-visible{outline:2px solid var(--rep27-lime)!important}
#app .rep181-day{border-radius:20px!important;min-height:91px!important}
#app .rep181-plan-detail .rep181-add-ex,#app .rep181-plan-detail .rep181-start-btn{min-height:63px}
#app .rep181-modal{max-width:100%}
/* ACTIVE SESSION: retain liked cards, only introduce a shared reorder affordance */
#app .rep27-session-list{display:flex;flex-direction:column;gap:12px;min-width:0}
#app .rep27-session-list .rep184-exercise-card{margin:0;transition:border-color var(--rep27-press),background-color var(--rep27-press)}
#app .rep27-ex-dragzone{touch-action:none;cursor:grab;min-height:50px}
#app .rep27-ex-dragzone .exname{padding-left:1px}
#app .rep27-ex-dragzone::before{content:'⋮⋮';font:900 18px/1 Nunito,sans-serif;color:#91a5ad;letter-spacing:-3px;padding-right:8px;flex:none;opacity:.7}
#app .rep27-rail-active .rep27-ex-dragzone>button{opacity:.2;pointer-events:none}
/* PROGRES: deliberate color contrasts and a distinct visual rhythm */
#app .rep27-progress{--rep27-progress-blue:#8cbdfb;--rep27-progress-violet:#d6a4f5;--rep27-progress-gold:#f3d184}
#app .rep27-eyebrow{display:block;font:900 10px/1.5 Nunito,sans-serif;letter-spacing:2px;color:#c4abf2;margin-bottom:5px}
#app .rep27-progress-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:159px;border:2px solid #65846b;border-bottom-width:5px;border-radius:21px;padding:19px 17px;margin:5px 0 17px;background:linear-gradient(115deg,#304838,#233e35 55%,#1b3435);overflow:hidden}
#app .rep27-hero-copy{position:relative;z-index:2;min-width:0;flex:1}
#app .rep27-hero-label{display:block;letter-spacing:1.7px;color:#bdec9c;font:950 11px Nunito,sans-serif;margin-bottom:8px}
#app .rep27-hero-copy strong{display:block;color:#f7fff4;font:1000 clamp(19px,5vw,26px)/1.12 Nunito,sans-serif;max-width:265px;text-wrap:balance}
#app .rep27-hero-copy p{margin:8px 0 0;color:#c8dbc8;font:700 12px/1.45 Nunito,sans-serif;max-width:285px}
#app .rep27-hero-art{position:relative;width:93px;height:93px;flex:none;display:grid;place-items:center;border-radius:27px;background:linear-gradient(135deg,#567d67,#365c4b);border:2px solid #81a67e;box-shadow:0 6px 0 #1b352b;transform:rotate(-9deg)}
#app .rep27-hero-art span{color:#d6ffa8;font:1000 64px/1 Nunito,sans-serif;transform:rotate(9deg)}
#app .rep27-hero-orbit{position:absolute;inset:8px;border:1px solid #a6db97;border-radius:20px;opacity:.5}
#app .rep26-tabs{gap:8px!important;margin-bottom:11px!important}
#app .rep26-tabs button{min-height:47px!important;border:2px solid #3b535d!important;border-bottom-width:4px!important;border-radius:13px!important;background:#1e303a!important;color:#b6cbd3!important}
#app .rep26-tabs button.is-current{background:#3b354d!important;border-color:#8e76b0!important;color:#e4c7ff!important}
#app .rep27-universal-periods{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;margin-bottom:16px!important}
#app .rep27-universal-periods button{padding:10px 2px!important;min-height:43px;white-space:nowrap;font-size:12px!important}
#app .rep27-universal-periods button.is-active{background:#30453b!important;border-color:#91bf7d!important;color:#cafaad!important}
#app .rep26-metrics{gap:10px!important}
#app .rep26-metric{border:2px solid #52758e!important;border-bottom-width:4px!important;background:linear-gradient(135deg,#294258,#223848)!important;border-radius:18px!important;min-height:121px;padding:14px!important}
#app .rep26-metric:nth-child(2){background:linear-gradient(135deg,#3c3458,#2c2b44)!important;border-color:#74649b!important}
#app .rep26-metric:nth-child(3){background:linear-gradient(135deg,#384e3b,#273c30)!important;border-color:#6b926e!important}
#app .rep26-metric:nth-child(4){background:linear-gradient(135deg,#59462e,#463824)!important;border-color:#957651!important}
#app .rep26-metric strong{margin:9px 0 4px!important;color:#fff!important}
#app .rep26-metric span{color:#dce9ef!important}
#app .rep26-metric em{color:#b8cfd9!important}
#app .rep26-card{border:2px solid #465763!important;border-bottom-width:4px!important;border-radius:20px!important;background:#1a2831!important;padding:17px!important}
#app .rep26-card:has(.rep26-calendar){border-color:#506e68!important;background:linear-gradient(155deg,#1d3436,#1b2930 60%)!important}
#app .rep26-card:has(.rep26-compare){border-color:#6a5977!important;background:linear-gradient(155deg,#2a2a3d,#1b2830 65%)!important}
#app .rep26-card:has(.rep26-record-list){border-color:#8b715a!important}
#app .rep26-card:has(.rep26-chart){border-color:#567d8f!important}
#app .rep26-chart{overflow:hidden!important}
#app .rep26-record{width:100%;text-align:left;cursor:pointer;font-family:Nunito,system-ui,sans-serif;border:2px solid #4a5962!important;border-radius:14px!important}
#app .rep26-record:active{background:#293b43}
#app .rep26-empty{border:1px dashed #526e79;background:#1f3037;min-height:100px;display:grid;place-items:center}
#app .rep26-progress-header p{font-weight:700;color:#a9bdc5}
/* Quiet success handling, never suppress actionable errors */
#rep-toast-root .rep-toast.is-success{display:none!important}
#rep-toast-root .rep-toast.is-error{border-color:#ad6572!important}
/* Buttons and sheets: consistent tap feedback without geometric movement */
#app :is(.rep181-btn,.rep181-edit-toggle,.rep24-plan-import,.rep24-plan-share):active{filter:brightness(.9);transform:none!important}
#app :is(.rep181-btn,.rep181-edit-toggle,.rep24-plan-import,.rep24-plan-share):focus-visible{outline:2px solid var(--rep27-lime);outline-offset:3px}
@media(max-width:380px){#app .rep181-ex{padding:13px 10px!important;gap:8px!important}#app .rep181-ex-actions button{width:38px!important;min-width:38px!important}#app .rep27-hero-art{width:69px;height:69px;border-radius:18px}#app .rep27-hero-art span{font-size:45px}}
@media(prefers-reduced-motion:reduce){#app .rep181-ex,#app .rep184-exercise-card{transition:none!important;animation:none!important}}
#app .rep27-metric-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 13px}
#app .rep27-metric-choice button{border:2px solid #4b5d6c;border-bottom-width:4px;background:#233641;color:#bdcfd8;border-radius:12px;padding:10px 3px;min-height:45px;font:900 12px Nunito,system-ui,sans-serif}
#app .rep27-metric-choice button.is-active{background:#314a5a;border-color:#86b7e2;color:#d8efff}
#app .rep27-metric-choice button:focus-visible{outline:2px solid var(--rep27-lime);outline-offset:2px}


/* SOURCE: rep-v28.css */
/* REP V28: carefully scoped game-gallery, orange weekly streak, gesture fixes. */
:root{--rep28-orange:#db7839;--rep28-cream:#f9f0e0;--rep28-purple:#a78ad4;--rep28-shadow:#10212b}
#app .rep181-ex.is-editing,#app .rep184-exercise-card,#app .rep27-ex-dragzone{touch-action:pan-y!important;overscroll-behavior:contain}
#app .rep27-ex-dragzone::before{display:none!important;content:none!important}
#app .rep27-ex-dragzone{cursor:grab;display:flex;align-items:center;gap:8px;user-select:none;-webkit-user-select:none}
#app .rep27-ex-dragzone>div:first-child{min-width:0;flex:1}
#app .rep27-ex-dragzone .exname{margin-left:0!important;padding-left:0!important}
#app .rep27-ex-dragzone>.btn.danger{display:grid;place-items:center;flex:none;font:900 26px/1 Nunito,system-ui,sans-serif!important;min-width:48px;min-height:50px}
#app .rep27-being-dragged{touch-action:none!important}
#app .rep27-rail-active .rep27-ex-dragzone>button{opacity:.16;pointer-events:none}
/* Orange Duolingo-like single-color arcade strip, deliberately short, NOT a modal. */
#app .rep28-streak{display:flex;align-items:center;gap:12px;min-height:96px;margin:14px 0 24px;padding:13px 15px;border:2px solid #ffae73;border-bottom:5px solid #9d4d20;border-radius:19px;background:#ca652f;box-shadow:0 3px 0 #572f24;color:#fff;font-family:Nunito,system-ui,sans-serif}
#app .rep28-streak img{width:62px;height:62px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 1px rgba(53,24,5,.18))}
#app .rep28-streak>div{display:flex;min-width:0;flex-direction:column;gap:1px}
#app .rep28-streak small{font-size:10px;letter-spacing:1.2px;font-weight:1000;color:#fff}
#app .rep28-streak strong{font-size:clamp(18px,5vw,24px);font-weight:1000;line-height:1.18;color:#fff}
#app .rep28-streak p{margin:4px 0 0;font-size:clamp(11px,3vw,12px);line-height:1.28;font-weight:800;color:#fff}
.rep-profile-page .rep28-streak-mini{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin-top:10px;padding:6px 10px;border:1px solid #b7703a;border-bottom:3px solid #85421c;border-radius:12px;background:#542d1f;color:#fff;font:900 12px Nunito,system-ui,sans-serif}
.rep-profile-page .rep28-streak-mini img{object-fit:contain}
.rep-profile-page .rep28-streak-mini strong{font-size:21px;color:#fff}
.rep-profile-page .rep28-streak-mini span{font-size:11px;color:#ffe9d5}
/* Progress art direction: an actual player archive/gallery, not repeated KPI dashboard boxes. */
#app .rep28-progress{font-family:Nunito,system-ui,sans-serif;max-width:850px;margin:0 auto;padding:5px 0 30px;color:#f4f4f4}
#app .rep28-progress-head{border:0;padding:8px 0 15px;margin:0;display:block}
#app .rep28-progress-head>span{color:#c0a1eb;font:1000 11px/1.5 Nunito,sans-serif;letter-spacing:2.1px}
#app .rep28-progress-head h1{margin:4px 0 1px;font:1000 clamp(28px,7vw,39px)/1.12 Nunito,sans-serif;letter-spacing:-.7px;color:#fff}
#app .rep28-progress-head p{margin:6px 0 0;font:700 13px/1.45 Nunito,sans-serif;color:#a8b7bd}
#app .rep28-dot{color:#ffb25c}
#app .rep28-arcade-banner{position:relative;display:flex;align-items:center;min-height:170px;overflow:hidden;margin-bottom:18px;border:2px solid #b58659;border-bottom:5px solid #745037;border-radius:23px;background:#4b3345;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);isolation:isolate}
#app .rep28-arcade-banner::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 100% 10%,rgba(247,182,107,.18),transparent 50%),repeating-linear-gradient(135deg,transparent 0 14px,rgba(255,255,255,.025) 14px 16px);z-index:-1}
#app .rep28-arcade-copy{padding:21px 8px 20px 19px;flex:1;min-width:0;z-index:1}
#app .rep28-arcade-copy small{display:block;color:#ffda91;letter-spacing:1.1px;font-weight:1000;font-size:10px;margin-bottom:9px}
#app .rep28-arcade-copy strong{display:block;font-size:clamp(19px,5vw,27px);line-height:1.09;max-width:245px;font-weight:1000;text-wrap:balance;color:#fff}
#app .rep28-arcade-copy p{margin:10px 0 0;max-width:250px;font-size:12px;font-weight:750;color:#ffeada;line-height:1.34}
#app .rep28-arcade-banner>img{flex:none;width:clamp(100px,30vw,160px);height:clamp(125px,35vw,175px);object-fit:contain;object-position:center bottom;align-self:flex-end;margin-right:-4px;filter:drop-shadow(0 6px 0 rgba(0,0,0,.17))}
#app .rep28-progress-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px;margin:0 0 12px;border:2px solid #3e4b59;border-bottom-width:4px;border-radius:16px;background:#15232b}
#app .rep28-progress-tabs button{min-width:0;min-height:43px;border:0;border-radius:11px;background:transparent;color:#aebbc7;padding:10px 3px;font:1000 clamp(10px,2.8vw,12px) Nunito,sans-serif;letter-spacing:.25px;cursor:pointer}
#app .rep28-progress-tabs button.selected{background:#695184;color:#fff;box-shadow:inset 0 -3px 0 #4a3860}
#app .rep28-periods{display:flex;gap:7px;justify-content:flex-start;margin:0 0 17px;flex-wrap:wrap}
#app .rep28-periods button{min-width:61px;min-height:37px;padding:7px 13px;border:2px solid #3c5260;border-bottom-width:3px;border-radius:11px;background:#1b2a35;color:#b1c1c9;font:900 11px Nunito,sans-serif}
#app .rep28-periods button.selected{border-color:#d1ab79;color:#ffe6ba;background:#4e3b36}
#app .rep28-controls{display:grid;grid-template-columns:minmax(0,1fr) 133px;gap:8px;margin-bottom:14px}
#app .rep28-search{display:flex;align-items:center;min-width:0;gap:8px;padding:0 12px;border:2px solid #475b67;border-bottom-width:4px;border-radius:13px;background:#172730}
#app .rep28-search>span{font:900 25px/1 Nunito,sans-serif;color:#d5c0f2}
#app .rep28-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:#fff;font:750 14px Nunito,sans-serif;padding:12px 0;appearance:none;-webkit-appearance:none}
#app .rep28-search input::placeholder{color:#849ca6}
#app .rep28-controls select{min-width:0;max-width:100%;background:#25323f;color:#e3e5ee;border:2px solid #536477;border-bottom-width:4px;border-radius:13px;padding:9px 6px;font:850 12px Nunito,sans-serif}
#app .rep28-gallery-count{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:6px 0 12px}
#app .rep28-gallery-count strong{font-size:15px;color:#fff}
#app .rep28-gallery-count span{font-size:11px;color:#9bafba;font-weight:700}
#app .rep28-gallery-list{display:flex;flex-direction:column;gap:10px}
#app .rep28-ticket{display:flex;min-height:108px;align-items:stretch;position:relative;overflow:hidden;background:#1d2933;border:2px solid #475864;border-bottom-width:5px;border-radius:17px;transition:border-color .13s ease}
#app .rep28-ticket::before{content:'';position:absolute;top:0;bottom:0;width:5px;left:0;background:var(--ticket-accent);opacity:.9}
#app .rep28-ticket-open{display:flex;flex:1;gap:11px;align-items:center;padding:14px 44px 14px 16px;min-width:0;text-align:left;border:0;background:none;color:inherit;cursor:pointer}
#app .rep28-ticket-symbol{display:grid;place-items:center;flex:none;width:49px;height:52px;border:2px solid color-mix(in srgb,var(--ticket-accent),#202a30 35%);border-bottom-width:4px;border-radius:13px;background:color-mix(in srgb,var(--ticket-accent),#182531 78%);color:var(--ticket-accent);font-size:32px;font-weight:950}
#app .rep28-ticket-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
#app .rep28-ticket-copy small{font-size:10px;font-weight:850;color:var(--ticket-accent)}
#app .rep28-ticket-copy strong{font-size:clamp(14px,3.7vw,18px);line-height:1.22;font-weight:1000;color:#fff;overflow-wrap:anywhere}
#app .rep28-ticket-copy>span{font:900 14px Nunito,sans-serif;color:#fff}
#app .rep28-ticket-copy i{font-style:normal;color:#97adb7;font-weight:700;font-size:10px;margin-left:5px}
#app .rep28-ticket-arrow{font-size:28px;color:var(--ticket-accent)}
#app .rep28-pin{position:absolute;right:7px;top:8px;width:36px;height:36px;border:1px solid #425563;border-radius:9px;background:#253441;color:#7f94a1;font-size:23px;line-height:1;display:grid;place-items:center;padding:0}
#app .rep28-pin.is-pinned{color:#ffd48e;background:#514331;border-color:#9d8457}
#app .rep28-gallery-empty{border:2px dashed #48616d;padding:28px 20px;border-radius:16px;background:#1d3039;color:#b8c9d0;text-align:center;font-weight:800}
#app .rep28-load-more{width:100%;margin:14px 0 4px;border:2px solid #8e78a3;border-bottom:4px solid #594765;border-radius:13px;background:#332b42;color:#eadbff;padding:14px;font:1000 13px Nunito,sans-serif}
#app .rep28-back{border:0;background:none;font:1000 12px Nunito,sans-serif;color:#c2a5e9;padding:6px 0 15px}
#app .rep28-detail{border:2px solid #546978;border-bottom-width:5px;border-radius:18px;padding:16px;background:#1d2936}
#app .rep28-detail-head small{letter-spacing:1.2px;color:#d3b5ff;font:900 10px Nunito,sans-serif}
#app .rep28-detail-head h2{font-size:24px;color:#fff;margin:8px 0 4px;line-height:1.18}
#app .rep28-detail-head p{color:#a4bac5;font-size:12px;margin:0 0 17px}
#app .rep28-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 16px}
#app .rep28-metrics button{background:#2b3c4c;border:2px solid #536c80;border-bottom-width:4px;border-radius:11px;color:#ccdce8;padding:11px 1px;font:950 12px Nunito,sans-serif}
#app .rep28-metrics button.selected{color:#fff;background:#574778;border-color:#a085cb}
#app .rep28-hero-score{background:#3b3754;border:2px solid #a183bc;border-bottom-width:4px;border-radius:13px;padding:14px 16px;margin-bottom:15px}
#app .rep28-hero-score>span{display:block;color:#dbc5f9;font:950 10px Nunito,sans-serif;letter-spacing:1px}
#app .rep28-hero-score strong{display:block;font:1000 31px Nunito,sans-serif;color:#fff;margin-top:3px}
#app .rep28-hero-score small{font-size:14px}
#app .rep28-plot{margin-bottom:20px;max-width:100%;overflow:hidden}
#app .rep28-plot .rep26-chart{width:100%;min-height:168px;display:block}
#app .rep28-detail h3{font:1000 12px Nunito,sans-serif;letter-spacing:1px;color:#d5bfff;margin:12px 0}
#app .rep28-sessions{display:flex;flex-direction:column;gap:7px}
#app .rep28-sessions button{display:flex;gap:7px;align-items:center;justify-content:space-between;border:1px solid #4c6070;border-bottom-width:3px;border-radius:11px;background:#243442;color:#fff;padding:12px;text-align:left;font:800 12px Nunito,sans-serif}
#app .rep28-sessions button strong{color:#bde1ff}
#app .rep28-diary{border:2px solid #6d5b87;border-bottom-width:4px;border-radius:17px;padding:17px;background:#282b40}
#app .rep28-diary h2{font-size:19px;letter-spacing:.7px;margin:0 0 5px;color:#fff}
#app .rep28-diary>p{color:#c1b9d5;font-size:12px;margin:0 0 18px}
#app .rep28-diary-entry{width:100%;display:grid;grid-template-columns:1fr auto;gap:3px 8px;text-align:left;position:relative;background:#1c2938;border:2px solid #4a6276;border-bottom-width:4px;border-radius:13px;color:#fff;padding:12px 25px 12px 13px;margin:0 0 9px}
#app .rep28-diary-date{grid-column:1/-1;color:#c9adf7;font:900 10px Nunito,sans-serif}
#app .rep28-diary-entry strong{font-size:16px;min-width:0}
#app .rep28-diary-entry small{font-size:10px;color:#b9c7d1;align-self:center;text-align:right}
#app .rep28-diary-entry>span:last-child{position:absolute;right:7px;top:50%;transform:translateY(-50%);color:#c5a9f1;font-size:22px}
#app .rep28-score-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#303448;border:2px solid #81729a;border-bottom-width:5px;border-radius:17px;padding:12px 8px;margin-bottom:13px}
#app .rep28-score-strip>div{display:flex;flex-direction:column;align-items:center;gap:6px;border-right:1px solid #726985}
#app .rep28-score-strip>div:last-child{border-right:0}
#app .rep28-score-strip small{text-align:center;color:#d4c4ee;font:900 9px/1.3 Nunito,sans-serif;letter-spacing:.15px}
#app .rep28-score-strip strong{color:#fff;font:1000 25px Nunito,sans-serif}
#app .rep28-stat-calendar .rep26-card{border-color:#546f66!important}
#app .rep28-disclaimer{padding:9px;color:#aabac3;font:700 12px/1.4 Nunito,sans-serif}
#app .rep28-progress-footer{margin-top:21px;padding:13px 3px;border-top:1px dashed #4a606c;display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px}
#app .rep28-progress-footer span{font:900 10px Nunito,sans-serif;letter-spacing:.7px;color:#9fb0bb}
#app .rep28-progress-footer small{font:800 10px Nunito,sans-serif;color:#8da2ae}
#app .rep28-progress button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#app .rep28-progress button:focus-visible,#app .rep28-controls input:focus-visible,#app .rep28-controls select:focus-visible{outline:3px solid #d6b0fd;outline-offset:2px}
#app .rep28-progress button:active{filter:brightness(.86)}
@media(max-width:380px){#app .rep28-arcade-banner>img{width:95px}#app .rep28-arcade-copy{padding:14px 0 16px 12px}#app .rep28-arcade-copy strong{font-size:18px}#app .rep28-ticket-open{padding-left:11px;gap:8px}#app .rep28-ticket-symbol{width:41px;height:43px}#app .rep28-streak{gap:7px;padding:11px}#app .rep28-streak img{width:55px;height:55px}}
@media(prefers-reduced-motion:reduce){#app .rep28-progress *{animation:none!important;transition:none!important}}


/* SOURCE: rep-v28.1.css */
/* REP V28.3 — preserved streak/history rails, profile reverted to V28.
   Scoped additions only. Do not globally recolor existing quests, rewards or avatar geometry. */
:root{
 --rep281-rail-lime:#94db65;--rep281-rail-violet:#9270e2;
 --rep281-card-blue:#172b38;--rep281-ink:#f7faff;
 --rep281-move-fast:130ms;--rep281-move-med:210ms;
}
/* Full-width 3D base is a rounded SHADOW of the card, not a separate shortened pseudo-element. */
#app .rep28-streak{
 box-sizing:border-box!important;width:100%!important;
 border:2px solid #ffb37b!important;border-bottom-width:2px!important;
 box-shadow:0 5px 0 #823d22!important;
 margin-bottom:29px!important;overflow:hidden;
}
#app .rep-history-page .rep-history-feature{
 box-sizing:border-box!important;
 border:2px solid #ab8cf0!important;border-bottom-width:2px!important;
 box-shadow:0 5px 0 #34175f!important;
 overflow:hidden;
 margin-bottom:31px!important;
}
/* The editor remains the active full-screen experience, but its viewport ends above the nav. */
html.rep21-editor-open body > #bottom.bottom{
 z-index:182!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 visibility:visible!important;pointer-events:auto;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-backdrop{
 bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-dialog{
 height:100%!important;max-height:100%!important;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-body{
 padding-bottom:20px!important;
}
/* A selected tab stays legible even with the editor backdrop behind the bar. */
html.rep21-editor-open #bottom button[aria-label="Profil"]{color:#b8ff65!important}
/* =========================================
   REP PROGRESS / Arcade Record Room 28.1
   No XP or collectible rewards for self-entered scores.
   ========================================= */
#app .rep28-progress.rep281-record-room{max-width:780px;padding-top:3px}
#app .rep281-progress-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#app .rep281-progress-title>div{min-width:0}
#app .rep281-progress-title small{display:block;color:#b2f28a;font:1000 10px Nunito,sans-serif;letter-spacing:2.2px}
#app .rep281-progress-title h1{font:1000 clamp(29px,7.5vw,43px)/1.05 Nunito,sans-serif;letter-spacing:-1px;color:#fff;margin:4px 0 0;text-transform:uppercase}
#app .rep281-progress-title>span{display:grid;place-items:center;min-width:49px;height:51px;border:2px solid #5c8290;border-bottom:5px solid #294957;border-radius:13px;background:#233947;color:#b9ef91;font:1000 22px Nunito,sans-serif}
#app .rep281-progress-cabinet{
 position:relative;isolation:isolate;min-height:185px;display:flex;align-items:center;
 overflow:hidden;margin:8px 0 18px;padding:19px 14px 18px 19px;
 background:linear-gradient(145deg,#614099,#462f73 68%,#32254e);
 border:2px solid #ac82ff;border-bottom:3px solid #7250b0;
 box-shadow:0 5px 0 #2d1d4e;border-radius:21px;
}
#app .rep281-progress-cabinet:before{content:'';position:absolute;inset:0;z-index:-1;
 background:radial-gradient(circle at 75% 20%,#e2a4ff33,transparent 43%),linear-gradient(139deg,transparent 25%,#ffffff10 25% 28%,transparent 28% 65%,#ffffff09 65% 70%,transparent 70%)}
#app .rep281-progress-copy{position:relative;z-index:2;min-width:0;flex:1}
#app .rep281-progress-copy small{display:block;color:#e8ceff;font:1000 10px Nunito,sans-serif;letter-spacing:1.8px}
#app .rep281-progress-copy strong{display:block;color:white;max-width:280px;font:1000 clamp(24px,6.3vw,34px)/1.02 Nunito,sans-serif;letter-spacing:-.5px;text-wrap:balance;margin:7px 0 8px}
#app .rep281-progress-copy p{margin:0;color:#f0deff;font:800 12px/1.4 Nunito,sans-serif;max-width:220px}
#app .rep281-progress-cabinet img{flex:none;width:clamp(106px,30vw,157px);height:160px;align-self:flex-end;object-fit:contain;object-position:center bottom;margin:-5px -12px -22px -4px;filter:drop-shadow(0 6px 0 #21113370)}
#app .rep281-room-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0 16px}
#app .rep281-room-switch button{min-width:0;min-height:78px;display:flex;flex-direction:column;justify-content:center;gap:6px;
 text-align:left;padding:12px 8px 10px;border:2px solid #506d7a;border-bottom:5px solid #283b45;border-radius:14px;background:#1d3240;color:#b8ced7;
 font:1000 12px Nunito,sans-serif;transition:filter 120ms ease}
#app .rep281-room-switch button:nth-child(2){border-color:#647eb0;border-bottom-color:#394b79;background:#273952}
#app .rep281-room-switch button:nth-child(3){border-color:#ba9261;border-bottom-color:#78512f;background:#44372e}
#app .rep281-room-switch button.is-current{background:#3e553a;border-color:#c3f18e;border-bottom-color:#638b46;color:#fff}
#app .rep281-room-switch button small{font:1000 9px Nunito,sans-serif;color:inherit;opacity:.75}
#app .rep281-room-switch button span{display:block;overflow-wrap:anywhere}
#app .rep281-room-switch button:active{filter:brightness(.85)}
#app .rep281-record-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 11px}
#app .rep281-record-header strong{font:1000 16px Nunito,sans-serif;color:#fff}
#app .rep281-record-header span{font:800 11px Nunito,sans-serif;color:#a1b4bf}
#app .rep281-record-room .rep28-periods{margin-bottom:18px}
#app .rep281-record-room .rep28-periods button{border-radius:10px;font-weight:1000}
#app .rep281-record-room .rep28-controls{gap:9px}
#app .rep281-record-room .rep28-ticket{
 min-height:102px;background:#162832;border:2px solid #4e6771;border-bottom:5px solid #203e4a;border-radius:14px;
 box-shadow:none;isolation:isolate;
}
#app .rep281-record-room .rep28-ticket:before{width:6px;opacity:1}
#app .rep281-record-room .rep28-ticket-symbol{
 flex:0 0 50px;width:50px;height:55px;
 border-radius:13px;background:color-mix(in srgb,var(--ticket-accent),#142631 81%);
 font-weight:1000;
}
#app .rep281-record-room .rep28-ticket-copy>span{font-size:15px}
#app .rep281-record-room .rep28-ticket-copy i{display:block;margin:3px 0 0}
#app .rep281-record-room .rep28-detail{background:#182b35;border-color:#8a80b9;border-bottom-width:5px}
#app .rep281-record-room .rep28-hero-score{background:#503d79;border-color:#be9af4}
#app .rep281-record-room .rep28-diary{background:#172a3d;border-color:#6691bc}
#app .rep281-record-room .rep28-score-strip{background:#3c334e;border-color:#a17fc2}
#app .rep281-record-room .rep28-gallery-empty{
 padding:28px 18px;border:2px dashed #637f91;background:#192c37;
}
@media(max-width:360px){
 #app .rep281-room-switch{gap:5px}
 #app .rep281-room-switch button{font-size:10px;padding:9px 5px}
 #app .rep281-progress-cabinet img{width:95px}
}
@media(prefers-reduced-motion:reduce){
 #app .rep281-record-room *{animation:none!important;transition:none!important}
}

/* V28.1: avatar editor keeps the main tab rail visible and unobstructed.
   Override the older fullscreen-hide rule with a strictly more specific selector. */
html.rep21-editor-open:not(.rep-auth-locked) body > #bottom.bottom{
 display:grid!important;visibility:visible!important;pointer-events:auto!important;
 z-index:220!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
html.rep21-editor-open #rep-avatar-overlay{bottom:calc(var(--rep23-nav-height,81px) + env(safe-area-inset-bottom,0px))!important}
html.rep21-editor-open #rep-avatar-overlay .rep21-backdrop{bottom:0!important}
html.rep21-editor-open #rep-avatar-overlay .rep21-dialog{max-height:100%!important}
html.rep21-editor-open #bottom button[aria-label="Profil"]{opacity:1!important}

/* In editor mode, keep the same bottom navigation visible even at tablet widths,
   where the historical desktop layout makes the rail a relative-flow element. */
@media(min-width:700px){
 html.rep21-editor-open:not(.rep-auth-locked) body > #bottom.bottom{
  position:fixed!important;top:auto!important;bottom:0!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;margin:0!important;width:min(100%,575px)!important;height:81px!important;
  background:#101b21!important;border:1px solid #34474d!important;border-bottom:0!important;
  border-radius:18px 18px 0 0!important;
 }
}


/* SOURCE: rep-v28.4.css */
/* REP V28.4 — ONE compact player card, no placeholder artwork, no extra dashboards.
   Only the profile and avatar-editor selection tabs are affected. */
#app .rep284-profile{max-width:640px;margin:0 auto;padding-top:4px}
#app .rep284-card{box-sizing:border-box;width:100%;min-width:0;margin:0 0 24px;background:radial-gradient(ellipse 63% 49% at 50% 31%,#2f4f60 0%,#243d4b 40%,#182a35 92%);border:2px solid #506b7b;border-radius:24px;box-shadow:0 5px 0 #304955;overflow:hidden;color:#f5f9fa;isolation:isolate}
#app .rep284-card-heading{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 0;color:#b9ef92;font:1000 13px/1.1 Nunito,sans-serif;letter-spacing:1.5px}
#app .rep284-edit{display:flex;align-items:center;gap:7px;min-height:39px;padding:6px 11px;background:#263b47;border:2px solid #506b7b;border-bottom:4px solid #3a535f;border-radius:12px;color:#f5f9fa;font:1000 12px Nunito,sans-serif;cursor:pointer}
#app .rep284-edit img{width:23px;height:23px;object-fit:contain}
#app .rep284-edit:active{transform:translateY(2px);border-bottom-width:2px;margin-bottom:2px}
#app .rep284-edit:focus-visible{outline:3px solid #b9ef92;outline-offset:2px}
#app .rep284-stage{position:relative;height:278px;margin-top:-7px;overflow:hidden;background:transparent}
/* No duplicate floor line: the identity border is the single separator. */
#app .rep284-avatar{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:246px;height:246px;display:grid;place-items:center;z-index:1}
#app .rep284-avatar .rep-avatar-stack{width:246px!important;height:246px!important;margin:0!important;background:transparent!important;border-radius:0!important;overflow:visible!important}
#app .rep284-avatar canvas{display:block;width:100%;height:100%;object-fit:contain}
#app .rep284-identity{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:93px;padding:14px 17px;background:#192c38;border-top:1px solid #3c5662}
#app .rep284-identity-name{flex:1;min-width:0}
#app .rep284-identity-name h1{font:1000 clamp(22px,6vw,33px)/1.08 Nunito,sans-serif;letter-spacing:-.6px;color:#fff;overflow-wrap:anywhere;margin:0}
#app .rep284-title{display:inline-flex;align-items:center;margin-top:7px;font:1000 11px Nunito,sans-serif;letter-spacing:.5px;color:#ffdb94}
#app .rep284-identity-badges{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:none;max-width:45%}
#app .rep284-featured{height:54px;width:54px;object-fit:contain;flex:0 0 54px;filter:drop-shadow(0 2px 0 #0004)}
#app .rep284-level{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:61px;min-height:62px;border:2px solid #779b6c;border-bottom:4px solid #52754e;border-radius:14px;background:#2b4835;color:#fff}
#app .rep284-level small{font:1000 9px Nunito,sans-serif;letter-spacing:.5px;color:#c6f59b}
#app .rep284-level strong{font:1000 26px/.98 Nunito,sans-serif}
#app .rep284-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 15px 17px;background:#192c38}
#app .rep284-stats>div{min-width:0;min-height:71px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#233944;border:1px solid #4d6975;border-bottom:4px solid #34505d;border-radius:13px}
#app .rep284-stats strong{display:flex;align-items:center;justify-content:center;gap:4px;font:1000 24px Nunito,sans-serif;color:#fff}
#app .rep284-stats strong img{width:24px;height:24px;object-fit:contain}
#app .rep284-stats small{font:900 10px Nunito,sans-serif;letter-spacing:.35px;color:#b7ced6}
#app .rep284-profile>.rep20-social{margin-top:2px;margin-bottom:21px}
#app .rep284-profile>.rep20-collections{margin-top:22px;margin-bottom:27px}
#app .rep284-profile>.rep-own-lifts-heading{margin-top:22px}
#app .rep284-profile>.rep-logout-button{margin:25px 0 15px}
#rep-avatar-overlay .rep21-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px 6px!important;padding:4px 0 6px!important}
#rep-avatar-overlay .rep21-tabs button{min-height:43px!important;padding:4px!important;border-radius:10px!important;border-bottom-width:3px!important}
#rep-avatar-overlay .rep21-tabs img{height:28px!important;width:28px!important;object-fit:contain!important;filter:none!important;opacity:.72}
#rep-avatar-overlay .rep21-tabs button.is-current img{opacity:1}
#rep-avatar-overlay .rep284-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:8px}
#rep-avatar-overlay .rep284-choice{min-width:0;min-height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px;background:#203542;border:2px solid #4b6370;border-bottom:4px solid #324e5e;border-radius:15px;color:#eef7fb;font:1000 12px/1.3 Nunito,sans-serif;text-align:center}
#rep-avatar-overlay .rep284-choice.is-picked{background:#2e4951;border-color:#c2f48f;border-bottom-color:#638d5e}
#rep-avatar-overlay .rep284-choice-art{height:64px;width:76px;display:grid;place-items:center;color:#bbcbcf;font-size:33px}
#rep-avatar-overlay .rep284-choice-art img{max-width:66px;max-height:64px;width:100%;height:100%;object-fit:contain}
#rep-avatar-overlay .rep284-choice:focus-visible{outline:3px solid #c2f48f;outline-offset:3px}
#rep-avatar-overlay .rep284-choice-note{margin:12px 4px;color:#a6b8c1;font-size:12px}
@media(max-width:360px){#app .rep284-stage{height:253px}#app .rep284-avatar{width:225px;height:225px}#app .rep284-avatar .rep-avatar-stack{width:225px!important;height:225px!important}#app .rep284-identity{padding:12px}#app .rep284-featured{width:44px;height:44px;flex-basis:44px}#app .rep284-level{width:53px;min-height:57px}#app .rep284-stats{padding:0 10px 14px;gap:6px}#app .rep284-stats strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){#app .rep284-card *,#rep-avatar-overlay .rep284-choice{transition:none!important;animation:none!important}}

/* V28.4.1: original REP creator title, not a plain gold subtitle. */
#app .rep284-profile .rep201-creator-title.rep284-title{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:7px 0 0;padding:5px 10px;background:#48371b;border:1px solid #d5af58;border-radius:9px;color:#ffe6a2;box-shadow:0 3px 0 #2b2518;font:1000 11px/1.3 Nunito,sans-serif;letter-spacing:.75px;white-space:nowrap}
#app .rep284-profile .rep201-creator-title.rep284-title span{color:#ffd05c;font-size:15px;line-height:1}
#rep-avatar-overlay .rep284-choice-art:has(.rep201-creator-title){width:auto;max-width:100%;height:64px;padding:0 4px}
#rep-avatar-overlay .rep284-choice-art .rep201-creator-title{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;background:#48371b;border:1px solid #d5af58;border-radius:8px;box-shadow:0 3px 0 #2b2518;color:#ffe6a2;font:1000 10px/1.25 Nunito,sans-serif;white-space:nowrap}
#rep-avatar-overlay .rep284-choice-art .rep201-creator-title span{color:#ffd05c}


/* SOURCE: rep-v28.5.css */
/* REP V28.5 — narrowly scoped character-card polish.
   Flat arcade color blocks, portrait geometry shared with the editor, no changes to training/START. */
#app .rep284-card{
  background:#19313d!important;
  border-color:#587887!important;
  box-shadow:0 6px 0 #2e505c!important;
}
#app .rep284-card-heading{background:#214050;color:#c5f594}
#app .rep284-stage{
  height:320px;
  margin-top:0;
  background:#214050;
  overflow:hidden;
}
#app .rep284-avatar{
  --rep23-canvas-w:294px;
  --rep23-crop:.85;
  position:absolute;
  left:50%;bottom:0;
  width:var(--rep23-canvas-w)!important;
  height:calc(var(--rep23-canvas-w)*var(--rep23-crop))!important;
  display:block;
  transform:translateX(-50%);
}
/* The editor already clips the canonical 1:1 drawing to 85% canvas height.
   Reuse that exact crop here: same natural bust edge, no floating torso. */
#app .rep284-avatar .rep22-stage,
#app .rep284-avatar .rep23-portrait-clip{
  box-sizing:border-box!important;
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  margin:0!important;
  padding:0!important;
}
#app .rep284-avatar .rep22-stage-art{
  position:absolute!important;
  left:0!important;top:0!important;
  width:100%!important;
  height:var(--rep23-canvas-w)!important;
  max-height:none!important;
  max-width:none!important;
  margin:0!important;padding:0!important;
  transform:none!important;
  overflow:visible!important;
  background:transparent!important;
}
#app .rep284-avatar .rep-avatar-stack{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
}
#app .rep284-avatar canvas{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
#app .rep284-identity{background:#192f3c;min-height:98px;border-top:2px solid #5b7b88}
#app .rep284-stats{background:#192f3c}
#app .rep284-featured-button{
  box-sizing:border-box;display:grid;place-items:center;
  flex:0 0 64px;width:64px;height:66px;
  padding:3px;margin:0;
  background:#433d68;border:2px solid #9a88d0;border-bottom:5px solid #65538e;
  border-radius:15px;cursor:pointer;
  transition:filter 120ms ease;
}
#app .rep284-featured-button .rep284-featured{
  width:56px!important;height:56px!important;max-width:100%;max-height:100%;
  object-fit:contain;filter:none!important;flex:none!important;
}
#app .rep284-featured-button:active{filter:brightness(.85)}
#app .rep284-featured-button:focus-visible{outline:3px solid #d8bcff;outline-offset:3px}
#app .rep284-level{
  flex:none;width:64px;min-height:66px;
  background:#31583b;border-color:#98ce82;border-bottom-color:#477e4e;
}
#app .rep284-stats>div{
  border-width:2px;border-bottom-width:5px;
  min-height:76px;
}
#app .rep284-stats .rep284-stat-streak{
  background:#68422e;border-color:#be8652;border-bottom-color:#854b29;
}
#app .rep284-stats .rep284-stat-trainings{
  background:#294967;border-color:#6999cf;border-bottom-color:#355e83;
}
#app .rep284-stats .rep284-stat-emblems{
  background:#4d3d66;border-color:#9480c5;border-bottom-color:#624c85;
}
#app .rep284-stats small{color:#f3f5fa;font-size:10px;letter-spacing:.2px;white-space:nowrap}
#app .rep284-stats strong{color:#fff}
/* The editor covers the entire viewport behind the visible navigation bar.
   Its actual sheet stops at the measured nav top; no underlying screen can leak through. */
html.rep21-editor-open #rep-avatar-overlay:not(:empty){
  inset:0!important;
  bottom:0!important;
  background:#0b171f!important;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-backdrop{
  bottom:var(--rep285-nav-inset,calc(81px + env(safe-area-inset-bottom,0px)))!important;
  background:#0b171f!important;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-dialog{
  height:100%!important;
  max-height:100%!important;
  background:#0b171f!important;
}
html.rep21-editor-open #rep-avatar-overlay .rep21-body{
  padding-bottom:24px!important;
  background:#0b171f!important;
}
@media(max-width:360px){
  #app .rep284-stage{height:293px}
  #app .rep284-avatar{--rep23-canvas-w:264px}
  #app .rep284-featured-button{flex-basis:57px;width:57px;height:61px}
  #app .rep284-featured-button .rep284-featured{width:50px!important;height:50px!important}
  #app .rep284-level{width:57px;min-height:61px}
  #app .rep284-stats small{font-size:9px}
}
@media(min-width:460px){
  #app .rep284-stage{height:342px}
  #app .rep284-avatar{--rep23-canvas-w:308px}
}
@media(prefers-reduced-motion:reduce){
  #app .rep284-featured-button{transition:none!important}
}
/* Precisely matching heights: emblem and level touch the same visual rails. */
#app .rep284-level{box-sizing:border-box;height:66px;min-height:0!important}
@media(max-width:360px){#app .rep284-level{height:61px}}
/* Long handles keep a single clean line next to the level and optional emblem. */
#app .rep284-identity-name h1{
  font-size:clamp(18px,5.9vw,29px)!important;
  line-height:1.13!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
}


/* SOURCE: rep-v28.6.css */
/* REP V28.6 — focused profile proportions + shared 3D button rails.
   The product's special decorative cards, nav pins and game wheel are excluded. */
:root{
  --rep286-press-depth:4px;
  --rep286-button-rail:#162831;
  --rep286-button-border:#536b77;
  --rep286-card-ink:#eaf3f7;
}

/* Portrait: same 85% bottom crop as the character editor, slightly larger, feet of
   the visible bust flush with the scene divider. No artificial floor/decorations. */
#app .rep284-stage{height:333px}
#app .rep284-avatar{--rep23-canvas-w:324px;bottom:0}
#app .rep284-edit img{width:27px!important;height:27px!important;flex:none}

/* The equipped emblem is the artwork itself, not a second badge inside a box.
   Keep the click surface and its original onClick animation; remove visual chrome. */
#app button.rep284-featured-button{
  box-sizing:border-box!important;flex:0 0 76px!important;width:76px!important;
  height:66px!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;
  box-shadow:none!important;outline-offset:3px;
  display:grid!important;place-items:center;transform:none!important;
  transition:filter .12s ease!important;
}
#app button.rep284-featured-button img.rep284-featured{
  display:block!important;width:76px!important;height:76px!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;
  border:0!important;box-shadow:none!important;filter:none!important;
}
#app button.rep284-featured-button:active{filter:brightness(.88)!important;transform:none!important}
#app button.rep284-featured-button:focus-visible{outline:3px solid #c5f49a!important}
#app .rep284-identity-badges{gap:7px}

/* Exactly one shared solid color for all three figures, including equal rails. */
#app .rep284-stats>div,
#app .rep284-stats .rep284-stat-streak,
#app .rep284-stats .rep284-stat-trainings,
#app .rep284-stats .rep284-stat-emblems{
  background:#294454!important;
  border:2px solid #5b7786!important;
  border-bottom:5px solid #405e70!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
#app .rep284-stats strong{color:#fff!important}
#app .rep284-stats small{color:#e1ebf0!important}

/* Central REP system-button rail. One true rounded shadow, not thick bottom
   border + separate shadow on the same element. CSS variables preserve each
   action's semantic color; active press compresses the rail without layout shift. */
#app button.btn,
#app button.rep284-edit,
#app button.rep20-social-add,
#app button.profile-text-action,
#app button.rep-friend-btn,
#app button.rep181-btn,
#app button.rep181-edit-toggle,
#app button.rep181-tool,
#app button.rep-lib-primary,
#app button.rep-plans-new-day,
#app button.rep-ongoing-resume,
#app .rep181-ex-actions button,
#rep-avatar-overlay button.rep21-save,
#rep-avatar-overlay button.rep21-icon-button,
#rep-avatar-overlay button.rep21-item,
#rep-avatar-overlay button.rep284-choice,
#rep-dialog-root .rep-dialog-actions button{
  --rep286-rail:var(--rep286-button-rail);
  box-sizing:border-box!important;
  border-bottom-width:2px!important;
  box-shadow:0 var(--rep286-press-depth) 0 var(--rep286-rail)!important;
  transition:filter .13s ease,background-color .13s ease,border-color .13s ease,transform .13s ease,box-shadow .13s ease!important;
  margin-bottom:0!important;
}
/* Accessible, matching semantic rails (all have the same physical geometry). */
#app button.btn:not(.secondary):not(.danger),
#app button.rep20-social-add,
#app button.profile-text-action,
#app button.rep-friend-btn,
#app button.rep181-btn,
#app button.rep181-edit-toggle,
#app button.rep181-tool,
#app button.rep-lib-primary,
#app button.rep-plans-new-day,
#app button.rep-ongoing-resume,
#rep-avatar-overlay button.rep21-save{
  --rep286-rail:#6e9f3b;
}
#app button.btn.secondary,
#app button.profile-text-action,
#app button.rep-friend-btn.is-muted,
#app button.rep284-edit,
#app button.rep181-btn-outline,
#app button.rep181-edit-toggle,
#app button.rep181-tool,
#rep-avatar-overlay button.rep21-icon-button{
  --rep286-rail:#172c36;
}
#app button.btn.danger{--rep286-rail:#5a323a}
#app button.rep-friend-btn.is-primary{--rep286-rail:#6e9f3b}
#app .rep181-ex-actions button{--rep286-rail:#514363}
#app .rep181-ex-actions button.rep27-delete{--rep286-rail:#6a3944}
#rep-avatar-overlay button.rep21-item{--rep286-rail:#172b36}
#rep-avatar-overlay button.rep21-item.is-picked,
#rep-avatar-overlay button.rep284-choice.is-picked{--rep286-rail:#466b50}
#rep-avatar-overlay button.rep284-choice{--rep286-rail:#263d4a}
#rep-dialog-root .rep-dialog-actions button{--rep286-rail:#14232b}
#rep-dialog-root .rep-dialog-actions :is(.rep2546-dialog-save,.rep26-confirm-save){--rep286-rail:#182c20}
#rep-dialog-root .rep-dialog-actions :is(.rep2546-dialog-discard,.rep26-confirm-danger){--rep286-rail:#382128}

/* Do not move side-rail layouts or icon holders. Only compress the shadow on tap. */
#app button.btn:not(:disabled):active,
#app button.rep284-edit:not(:disabled):active,
#app button.rep20-social-add:not(:disabled):active,
#app button.profile-text-action:not(:disabled):active,
#app button.rep-friend-btn:not(:disabled):active,
#app button.rep181-btn:not(:disabled):active,
#app button.rep181-edit-toggle:not(:disabled):active,
#app button.rep181-tool:not(:disabled):active,
#app button.rep-lib-primary:not(:disabled):active,
#app button.rep-plans-new-day:not(:disabled):active,
#app button.rep-ongoing-resume:not(:disabled):active,
#app .rep181-ex-actions button:not(:disabled):active,
#rep-avatar-overlay button.rep21-save:not(:disabled):active,
#rep-avatar-overlay button.rep21-icon-button:not(:disabled):active,
#rep-avatar-overlay button.rep21-item:not(:disabled):active,
#rep-avatar-overlay button.rep284-choice:not(:disabled):active,
#rep-dialog-root .rep-dialog-actions button:not(:disabled):active{
  transform:translateY(2px)!important;
  box-shadow:0 2px 0 var(--rep286-rail)!important;
  margin-bottom:0!important;
}
#app button.btn:disabled,
#app button.rep284-edit:disabled,
#app .rep181-ex-actions button:disabled,
#rep-avatar-overlay button:disabled,
#rep-dialog-root .rep-dialog-actions button:disabled{
  transform:none!important;
  cursor:default!important;
}
@media(max-width:360px){
  #app .rep284-stage{height:300px}
  #app .rep284-avatar{--rep23-canvas-w:280px}
  #app button.rep284-featured-button{flex-basis:64px!important;width:64px!important;height:61px!important}
  #app button.rep284-featured-button img.rep284-featured{width:68px!important;height:68px!important}
}
@media(min-width:460px){
  #app .rep284-stage{height:359px}
  #app .rep284-avatar{--rep23-canvas-w:347px}
}
@media(prefers-reduced-motion:reduce){
  #app button.rep284-featured-button,
  #app button.btn,#app button.rep284-edit,#app button.rep20-social-add,
  #app button.profile-text-action,#app button.rep-friend-btn,
  #app button.rep181-btn,#app button.rep181-edit-toggle,#app button.rep181-tool,
  #app button.rep-lib-primary,#app button.rep-plans-new-day,
  #app button.rep-ongoing-resume,#app .rep181-ex-actions button,
  #rep-avatar-overlay button.rep21-save,#rep-avatar-overlay button.rep21-icon-button,
  #rep-avatar-overlay button.rep21-item,#rep-avatar-overlay button.rep284-choice,
  #rep-dialog-root .rep-dialog-actions button{transition:none!important}
}
/* Legacy #app .btn.secondary had a higher-specificity !important shadow reset.
   Explicitly override it rather than layering a pseudo-shadow on top. */
#app button.btn.secondary,
#app button.btn.danger,
#app button.btn.ghost{
  box-shadow:0 var(--rep286-press-depth) 0 var(--rep286-rail)!important;
}
#app button.btn.secondary:not(:disabled):active,
#app button.btn.danger:not(:disabled):active,
#app button.btn.ghost:not(:disabled):active{
  box-shadow:0 2px 0 var(--rep286-rail)!important;
}


/* SOURCE: rep-v29-foundation.css */
/* REP V29 — Product Complete / scoped polish and shared design primitives.
   Keep all original module personalities. Avoid old-style override stacking. */
:root{
  --rep29-surface:#18262e;
  --rep29-surface-raised:#20323c;
  --rep29-surface-soft:#253b46;
  --rep29-border:#425b68;
  --rep29-ink:#f1f7f9;
  --rep29-muted:#acbec8;
  --rep29-accent:#baf58e;
  --rep29-radius:16px;
  --rep29-hit:44px;
  --rep29-focus:2px solid #c0f48b;
  --rep29-fast:130ms;
  /* V28.6 remains the button implementation; this is its canonical token source. */
  --rep286-press-depth:4px;
}
:where(#app,#rep-avatar-overlay,#rep-dialog-root) :is(button,input,select,textarea):focus-visible{
  outline:var(--rep29-focus);outline-offset:3px;
}
:where(#app,#rep-avatar-overlay,#rep-dialog-root) button{-webkit-tap-highlight-color:transparent}
/* Do not change existing animation timing on good components. */
@media(prefers-reduced-motion:reduce){
  .rep29-recovery *, .rep29-progress *, .rep29-lib-filters * {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* PROFILE: less empty ceiling. Stage still clips the *same* 85% portrait as editor.
   Keep the existing avatar width and crop; do not add position transforms. */
#app .rep284-stage{height:296px!important;}
#app .rep284-stage .rep284-featured-button{
  position:absolute!important;right:16px!important;bottom:17px!important;
  z-index:4!important;width:62px!important;height:62px!important;min-width:62px!important;
  display:grid!important;place-items:center!important;touch-action:manipulation!important;
  border:0!important;padding:0!important;margin:0!important;
  background:transparent!important;box-shadow:none!important;
}
#app .rep284-stage .rep284-featured-button img.rep284-featured{
  width:62px!important;height:62px!important;max-width:62px!important;max-height:62px!important;
  object-fit:contain!important;filter:none!important;
}
#app .rep284-identity-badges{justify-content:flex-end!important}
@media(max-width:360px){
  #app .rep284-stage{height:264px!important}
  #app .rep284-stage .rep284-featured-button{right:12px!important;bottom:13px!important;width:55px!important;height:55px!important;min-width:55px!important}
  #app .rep284-stage .rep284-featured-button img.rep284-featured{width:55px!important;height:55px!important;max-width:55px!important;max-height:55px!important}
}
@media(min-width:460px){#app .rep284-stage{height:316px!important}}
/* PROGRESS: intentionally empty, data remains available to the training system. */
#app .rep29-progress{max-width:650px;margin:0 auto;min-height:56vh;padding:8px 0 28px}
#app .rep29-progress h1{font:1000 28px/1.2 Nunito,sans-serif;letter-spacing:-.6px;margin:6px 0 22px;color:#f4f8fa}
#app .rep29-progress-empty{
  min-height:245px;border:2px solid #354c57;border-radius:19px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;background:#182832;text-align:center;padding:28px 18px;
}
#app .rep29-progress-symbol{
  width:56px;height:56px;border:2px solid #415c69;border-radius:16px;
  display:grid;place-items:center;background:#243a45;color:#b2c5cf;
  font:1000 27px Nunito,sans-serif;
}
#app .rep29-progress-empty strong{font:900 16px/1.4 Nunito,sans-serif;color:#d7e6ec}
/* RECOVERY: an opt-in restoration action, not an automatic cloud overwrite. */
#app .rep29-recovery{
  margin:12px 0 18px;padding:16px 16px 18px;
  background:#243848;border:2px solid #5a7c91;border-radius:18px;
  display:grid;gap:7px;box-shadow:0 4px 0 #15242d;
}
#app .rep29-recovery-kicker{font:1000 10px Nunito,sans-serif;color:#9ed5ff;letter-spacing:1px}
#app .rep29-recovery strong{color:#fff;font:1000 17px/1.3 Nunito,sans-serif}
#app .rep29-recovery p{color:#c2d3dd;font:600 12px/1.5 Nunito,sans-serif;margin:0 0 4px}
#app .rep29-recovery-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:9px}
#app .rep29-recovery-actions .btn{min-height:44px;padding:9px 8px;font-size:12px}
@media(max-width:350px){#app .rep29-recovery-actions{grid-template-columns:1fr}}
/* EXERCISE LIBRARY: two calm rows of controls, no loss of functionality.
   Same UI in full page and the exercise picker. */
#app .rep-library-page .rep-lib-panel{
  background:var(--rep29-surface)!important;
  border-color:var(--rep29-border)!important;border-radius:18px!important;
  padding:14px 13px 16px!important;
}
.rep29-lib-filters{gap:11px!important;min-width:0}
.rep29-lib-searchline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;min-width:0}
.rep29-lib-searchline .rep-lib-search-wrap{min-width:0;margin:0!important;height:48px!important;background:#101d25!important;border:2px solid #425b67!important;border-radius:14px!important}
.rep29-lib-searchline .rep-lib-search{min-width:0!important;font:850 14px Nunito,sans-serif!important;letter-spacing:-.15px}
.rep29-lib-searchline .rep-lib-quick{display:flex!important;min-width:0;align-items:stretch!important}
.rep29-lib-searchline .rep-lib-quick button{
  min-height:48px!important;border-radius:13px!important;
  padding:7px 10px!important;background:#22343f!important;border:2px solid #45606e!important;
  color:#dfeaf0!important;font:900 11px Nunito,sans-serif!important;gap:5px!important;white-space:nowrap;
}
.rep29-lib-searchline .rep-lib-quick button.active{
  background:#304735!important;border-color:#a9db84!important;color:#c7f79d!important;
}
.rep29-lib-filters .rep-lib-muscles{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:7px!important;padding:1px 1px 7px!important;min-width:0;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.rep29-lib-filters .rep-lib-chip{
  flex:none!important;scroll-snap-align:start;border-radius:11px!important;
  min-height:39px!important;padding:8px 12px!important;
}
.rep29-lib-filters .rep-lib-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;align-items:end!important;padding:0!important}
.rep29-lib-filters .rep29-equipment{display:grid!important;grid-template-columns:1fr!important;min-width:0!important;font:850 11px Nunito,sans-serif!important;color:#a9c0cb!important}
.rep29-lib-filters .rep29-equipment .rep-lib-select{width:100%!important;min-width:0!important;max-width:none!important;min-height:43px!important;background:#223640!important}
.rep29-lib-filters .rep-lib-switch{margin:0!important;min-width:0;align-self:end;height:43px!important;display:flex!important;align-items:center!important;padding:3px!important}
.rep29-lib-filters .rep-lib-switch button{white-space:nowrap!important;height:33px!important;min-width:0!important;padding:5px 9px!important}
.rep29-lib-reset{justify-self:start;border:0;background:transparent;color:#b7cbda;font:850 12px Nunito,sans-serif;padding:4px 1px 6px;min-height:30px;display:inline-flex;align-items:center;gap:8px}
.rep29-lib-reset span{font-size:18px;line-height:1}
#app .rep-library-page .rep-lib-top{padding:3px 0 13px!important}
#app .rep-library-page .rep-lib-top h1{font:1000 29px/1.12 Nunito,sans-serif!important;letter-spacing:-.5px!important;margin:0 0 7px!important}
#app .rep-library-page .rep-lib-top p{font:600 12px/1.5 Nunito,sans-serif!important;color:#aebec7!important}
#app .rep-library-page .rep-lib-result-title{margin:8px 0 1px!important;padding:12px 0!important;border-bottom:1px solid #415661!important}
#app .rep-library-page .rep-lib-item-shell{gap:6px!important;border-color:#344a56!important}
#app .rep-library-page .rep-lib-item, #app .rep-library-page .rep-lib-family{min-height:76px!important;padding:12px 2px!important;gap:12px!important}
#app .rep-library-page .rep-lib-item-icon, #app .rep-library-page .rep-lib-family-mark{height:47px!important;width:47px!important;flex:0 0 47px!important;background:#283d47!important;border:1px solid #3f5865!important;border-radius:12px!important}
#app .rep-library-page .rep-lib-item strong, #app .rep-library-page .rep-lib-family strong{font:950 14px/1.32 Nunito,sans-serif!important;color:#f3f7f9!important}
#app .rep-library-page .rep-lib-item small, #app .rep-library-page .rep-lib-family small{font:650 11px/1.35 Nunito,sans-serif!important;color:#a8bcc6!important}
#app .rep-library-page .rep-lib-fav{width:43px;min-width:43px!important;height:48px;opacity:.7}
#app .rep-library-page .rep-lib-fav.is-on{opacity:1}
#app .rep-library-page .rep-lib-fav:focus-visible{outline:var(--rep29-focus);outline-offset:1px}
#app .rep-library-page .rep-lib-item:active{background:#253f45!important;border-radius:10px!important}
.rep-lib-picker .rep29-lib-filters{gap:9px!important}
.rep-lib-picker .rep29-lib-searchline .rep-lib-quick button{min-height:44px!important}
.rep-lib-picker .rep29-lib-filterbar{gap:7px!important}
@media(max-width:360px){
  .rep29-lib-searchline .rep-lib-quick button span{display:none}
  .rep29-lib-searchline .rep-lib-quick button{width:48px!important;justify-content:center!important;padding:8px!important}
  .rep29-lib-filters .rep-lib-switch button{padding:5px 7px!important;font-size:11px!important}
  #app .rep-library-page .rep-lib-panel{padding:12px 10px 15px!important}
}

.rep29-lib-reset[hidden]{display:none!important}

/* V29 final art-direction: meaningful surfaces instead of one giant framed list.
   Filter controls form one utility group; results live on the page canvas. */
#app .rep-library-page:has(.rep29-lib-filters) > .rep-lib-panel{
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;padding:0!important;
}
#app .rep-library-page .rep29-lib-filters{
  padding:14px!important;background:#17272f!important;
  border:1.5px solid #385360!important;border-radius:19px!important;
  gap:12px!important;
}
#app .rep-library-page #rep-lib-results-page{margin:20px 1px 0!important}
#app .rep-library-page .rep-lib-result-title{
  margin:0 0 5px!important;padding:2px 0 12px!important;
  border-bottom:2px solid #3d555f!important;
}
#app .rep-library-page .rep-lib-item-icon,
#app .rep-library-page .rep-lib-family-mark{
  background:transparent!important;border:0!important;border-radius:0!important;
  width:52px!important;height:56px!important;flex:0 0 52px!important;
  overflow:visible!important;
}
#app .rep-library-page .rep-lib-item-icon .rep-i,
#app .rep-library-page .rep-lib-family-mark .rep-i{
  width:55px!important;height:55px!important;max-width:none!important;object-fit:contain!important;
}
#app .rep-library-page .rep-lib-item-shell{border-bottom:1px solid #2f454f!important}
#app .rep-library-page .rep-lib-item,
#app .rep-library-page .rep-lib-family{padding:11px 2px!important;min-height:78px!important}
#app .rep-library-page .rep-lib-fav{opacity:.9}
#app .rep-library-page .rep-lib-top p{font-weight:700!important}
#app .rep29-progress{min-height:65vh}
#app .rep29-progress-empty{
  min-height:46vh;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;padding:12px 20px!important;
}
#app .rep29-progress-empty p{
  margin:0;color:#a9bcc5;font:800 16px/1.5 Nunito,sans-serif;
}
@media(max-width:360px){
  #app .rep-library-page .rep29-lib-filters{padding:11px!important}
}
/* The smallest filter, equipment, and segmented controls remain finger-sized. */
#app .rep-library-page .rep29-lib-filters .rep-lib-chip{min-height:44px!important}
#app .rep-library-page .rep29-lib-filters .rep-lib-select,
#app .rep-library-page .rep29-lib-filters .rep-lib-switch{min-height:44px!important;height:44px!important}
#app .rep-library-page .rep29-lib-filters .rep-lib-switch button{min-height:36px!important}

