/* =========================
   WORKOUT UI BASE
   CSS OFICIAL UNIFICADO
   ========================= */

/* RESET */
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#000;
  color:#fff;
}

/* TOKENS */
:root{
  --yellow:#FFD400;
  --bg:#000;

  --white03:rgba(255,255,255,.03);
  --white04:rgba(255,255,255,.04);
  --white05:rgba(255,255,255,.05);
  --white06:rgba(255,255,255,.06);
  --white08:rgba(255,255,255,.08);
  --white10:rgba(255,255,255,.10);
  --white12:rgba(255,255,255,.12);
  --white14:rgba(255,255,255,.14);
  --white15:rgba(255,255,255,.15);
  --white18:rgba(255,255,255,.18);
  --white20:rgba(255,255,255,.20);

  --muted:#bdbdbd;
  --muted2:#8f8f8f;
  --green:#32d74b;
  --red:#ff3b30;

  --container:1200px;

  --footer-main-height:58px;
  --footer-legal-height:34px;
  --footer-total-height:92px;

  --shadow-soft:0 18px 42px rgba(0,0,0,.30);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:18px;
}

/* BASE */
body{
  padding-bottom:var(--footer-total-height);
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

img{
  max-width:100%;
  display:block;
}

.hidden,
.is-hidden{
  display:none !important;
}

/* =========================
   PAGE SHELL OFICIAL
   ========================= */

.page-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.page-main,
main.page-main,
main.appMain,
.appMain{
  flex:1;
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:8px 20px calc(150px + env(safe-area-inset-bottom, 0px));
}

@media (min-width:900px){
  .page-main,
  main.page-main,
  main.appMain,
  .appMain{
    padding:8px 56px calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================
   HEADER OFICIAL ÚNICO
   Usa SEMPRE:
   <header class="page-header">
     <div class="page-header-box">
       <div class="brand-block">
         <h1 class="brand-title">WORKOUT</h1>
         <p class="brand-subtitle">Correr Lisboa Hybrid</p>
       </div>
       <div id="userBar" class="user-bar"></div>
     </div>
   </header>
   ========================= */

.page-header{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:18px 20px 10px;
}

.page-header-box{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  border:1px solid var(--white08);
  border-radius:22px;
  background:linear-gradient(180deg, var(--white03), rgba(255,255,255,.01));
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(8px);
}

.brand-block{
  min-width:0;
}

.brand-title{
  margin:0;
  color:var(--yellow);
  letter-spacing:3px;
  font-size:28px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}

.brand-subtitle{
  margin:8px 0 0;
  font-size:12px;
  color:#bcbcbc;
  text-transform:uppercase;
  line-height:1.2;
  letter-spacing:.14em;
}

#userBar,
.user-bar,
.appUserBar{
  margin-top:4px;
  font-size:13px;
  color:#d6d6d6;
  line-height:1.35;
  text-align:right;
  white-space:nowrap;
}

#userBar strong,
.user-bar strong,
.appUserBar strong{
  color:#fff;
}

/* COMPATIBILIDADE COM O HEADER ANTIGO */
.appHeader{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:18px 20px 10px;
}

.appHeaderInner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  border:1px solid var(--white08);
  border-radius:22px;
  background:linear-gradient(180deg, var(--white03), rgba(255,255,255,.01));
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(8px);
}

.appHeader h1{
  margin:0;
  color:var(--yellow);
  letter-spacing:3px;
  font-size:28px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
}

.appHeader p{
  margin:8px 0 0;
  font-size:12px;
  color:#bcbcbc;
  text-transform:uppercase;
  line-height:1.2;
  letter-spacing:.14em;
}

.logoLink{
  color:var(--yellow);
  text-decoration:none;
  display:inline-block;
}

.logoLink:hover{
  opacity:.92;
}

@media (min-width:900px){
  .page-header,
  .appHeader{
    padding:28px 56px 12px;
  }
}

@media (max-width:768px){
  .page-header-box,
  .appHeaderInner{
    flex-direction:column;
    align-items:flex-start;
  }

  #userBar,
  .user-bar,
  .appUserBar{
    text-align:left;
    white-space:normal;
    margin-top:8px;
  }
}

@media (max-width:640px){
  .page-header,
  .appHeader{
    padding:14px 14px 8px;
  }

  .page-main,
  main.page-main,
  main.appMain,
  .appMain{
    padding:8px 14px calc(150px + env(safe-area-inset-bottom, 0px));
  }

  .page-header-box,
  .appHeaderInner{
    border-radius:20px;
    padding:16px;
  }

  .brand-title,
  .appHeader h1{
    font-size:24px;
  }

  .brand-subtitle,
  .appHeader p{
    font-size:11px;
  }
}

/* =========================
   CONTAINER
   ========================= */

.container,
.appContainer,
main.appMain{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px 28px;
}

@media (min-width:900px){
  .container,
  .appContainer,
  main.appMain{
    padding:0 56px 28px;
  }
}

/* =========================
   GRID
   ========================= */

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

@media (max-width:760px){
  .grid-2,
  .grid-3{
    grid-template-columns:1fr;
  }
}

/* =========================
   HERO CARD
   ========================= */

.hero{
  position:relative;
  margin-top:10px;
  padding:26px;
  border-radius:30px;
  border:1px solid var(--white12);
  background:
    radial-gradient(circle at top left, rgba(255,212,0,.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.hero:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(255,212,0,.05), transparent 45%, rgba(255,255,255,.02));
}

.heroTop{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.heroTitle{
  margin:0;
  font-size:28px;
  line-height:1;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}

.heroSub{
  margin:10px 0 0;
  color:#d1d1d1;
  font-size:14px;
  line-height:1.35;
}

.heroMeta{
  text-align:right;
  font-size:14px;
  line-height:1.45;
  color:#ddd;
}

.heroMeta strong{
  color:#fff;
}

.heroActions{
  position:relative;
  margin-top:22px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

/* =========================
   CARD BASE
   ========================= */

.card{
  position:relative;
  border-radius:28px;
  border:1px solid var(--white12);
  background:rgba(255,255,255,.03);
  padding:22px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:radial-gradient(900px 260px at 18% 0%, rgba(255,212,0,.10), transparent 55%);
}

.cardTop{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.cardTitle{
  margin:0;
  font-size:17px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#fff;
}

.cardKicker{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:#d8d8d8;
  font-weight:800;
}

.cardDesc{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
  max-width:66ch;
}

.cardBody{
  position:relative;
}

.cardActions{
  position:relative;
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.cardSection{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}

/* =========================
   PANEL / INNER CARD
   ========================= */

.panel{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  padding:16px;
}

.panel + .panel{
  margin-top:14px;
}

/* =========================
   PILL / BADGES
   ========================= */

.pill,
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--white14);
  background:var(--white06);
  color:#ddd;
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.pillPrimary,
.badge.planned{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.10);
  color:#fff;
}

.badge.completed{
  border-color:rgba(50,215,75,.35);
  background:rgba(50,215,75,.10);
  color:#dfffe5;
}

.badge.skipped{
  border-color:rgba(255,59,48,.35);
  background:rgba(255,59,48,.10);
  color:#ffd6d3;
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.30);
  flex:0 0 auto;
}

.pillPrimary .dot{
  background:var(--yellow);
}

/* =========================
   BUTTONS OFICIAIS
   ========================= */

.btn,
.homeBtn{
  appearance:none;
  border:0;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease, opacity .12s ease;
}

.btn:active,
.homeBtn:active{
  transform:scale(.99);
}

.btn:disabled,
.homeBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btnPrimary,
.homePrimary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  height:58px;
  padding:0 20px;
  border-radius:18px;
  background:var(--yellow);
  color:#000;
  font-weight:900;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.btnGhost,
.homeOutline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  height:58px;
  padding:0 20px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  font-weight:900;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.homeOutline{
  border:2px solid rgba(255,212,0,.72);
  color:var(--yellow);
  background:transparent;
}

.homeOutline:hover,
.btnGhost:hover{
  background:rgba(255,255,255,.08);
}

.btnDanger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  height:58px;
  padding:0 20px;
  border-radius:18px;
  background:var(--red);
  color:#fff;
  font-weight:900;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.homeSoft,
.btnSoft{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:54px;
  padding:0 18px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.82);
  font-weight:800;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.45px;
}

.homeSoft:hover,
.btnSoft:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

.homeActions{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.detailActions{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.detailActionsRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btnSecondary{
  flex:1;
  min-width:180px;
  height:52px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.btnLink{
  flex:0 0 auto;
  height:52px;
  padding:0 18px;
  border-radius:16px;
  background:transparent;
  border:0;
  color:rgba(255,255,255,.65);
  font-weight:800;
  text-transform:uppercase;
}

.btnLink:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}

/* =========================
   FORM
   ========================= */

label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  color:#bdbdbd;
}

input,
select,
textarea{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid var(--white15);
  background:var(--white06);
  color:#fff;
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(255,212,0,.35);
}

textarea{
  min-height:120px;
  resize:vertical;
}

select{
  background:var(--white06) !important;
  color:#fff !important;
}

select option{
  background:#111 !important;
  color:#fff !important;
}

small{
  color:#8f8f8f;
}

/* =========================
   DETAILS / CODE BLOCK
   ========================= */

.details{
  white-space:pre-wrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
  line-height:1.45;
  color:#ddd;
  max-height:420px;
  overflow:auto;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.35);
}

.detailsNice{
  display:block;
  width:100%;
  color:#fff;
  font-size:13px;
  line-height:1.4;
}

.detailsNice .kv{
  color:#ddd;
  font-size:13px;
  line-height:1.45;
}

.detailsNice .kv strong{
  color:#fff;
}

.detailsNice .hr{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:12px 0;
  border-radius:999px;
}

.detailsNice .sectionTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:10px 0 8px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:11px;
  color:#cfcfcf;
}

.detailsNice .line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px;
  margin:8px 0;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.detailsNice .leftCol{
  flex:1;
  min-width:0;
}

.detailsNice .rightCol{
  flex:0 0 auto;
  font-weight:900;
  color:#fff;
  white-space:nowrap;
}

.detailsNice .mainName{
  font-weight:900;
  color:#fff;
  font-size:14px;
  line-height:1.2;
}

.detailsNice .subName{
  margin-top:4px;
  color:#bdbdbd;
  font-size:12px;
  line-height:1.3;
}

.detailsNice .tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  margin-right:6px;
}

.detailsNice .tag.run{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.12);
  color:#ffd400;
}

/* =========================
   APP FOOTER OFICIAL
   Usa sempre #appFooter
   ========================= */

#appFooter{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:999;
  background:#000;
  border-top:1px solid rgba(255,255,255,.08);
}

#appFooter .appFooterShell{
  width:100%;
  max-width:720px;
  margin:0 auto;
}

#appFooter .appFooterMain{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  align-items:center;
  min-height:var(--footer-main-height);
}

#appFooter .appFooterMain a{
  min-width:0;
  padding:10px 4px 8px;
  text-align:center;
  color:rgba(255,255,255,.62);
  text-decoration:none;
  font-size:12px;
  line-height:1.1;
  font-weight:500;
  -webkit-tap-highlight-color:transparent;
}

#appFooter .appFooterMain a.active{
  color:var(--yellow);
  font-weight:800;
}

#appFooter .appFooterMain a span{
  display:inline-block;
}

#badgeToday{
  display:none;
  margin-left:4px;
  color:var(--yellow);
  font-weight:900;
}

#appFooter .appFooterLegal{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  min-height:var(--footer-legal-height);
  padding:6px 10px 8px;
  border-top:1px solid rgba(255,255,255,.06);
}

#appFooter .appFooterLegal a{
  color:rgba(255,255,255,.40);
  text-decoration:none;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

#appFooter .appFooterLegal a:hover{
  color:var(--yellow);
}

@media (max-width:640px){
  #appFooter .appFooterMain a{
    font-size:11px;
    padding:11px 4px 9px;
  }

  #appFooter .appFooterLegal{
    gap:10px;
    padding-left:8px;
    padding-right:8px;
  }

  #appFooter .appFooterLegal a{
    font-size:9px;
  }
}

/* =========================
   PAGE: HOME
   ========================= */

.page-home .appMain{
  min-height:calc(100vh - var(--footer-total-height) - 110px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:24px;
  padding-bottom:calc(var(--footer-total-height) + 32px);
}

/* =========================
   PAGE: GENERATOR
   ========================= */

.page-generator .container{
  padding-bottom:28px;
}

.page-generator .progress{
  margin-top:10px;
  height:4px;
  background:#222;
  border-radius:4px;
  overflow:hidden;
  margin-bottom:8px;
}

.page-generator .progress-bar{
  height:100%;
  width:0%;
  background:var(--yellow);
  transition:width .25s ease;
}

.page-generator .progress-text{
  font-size:12px;
  color:#aaa;
}

.page-generator .step{
  display:none;
}

.page-generator .step.active{
  display:block;
}

.page-generator .step h2{
  text-align:left;
  margin:18px 0 14px;
  font-size:28px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}

.page-generator .grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.page-generator .grid-5{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

@media (max-width:900px){
  .page-generator .grid-5{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:560px){
  .page-generator .grid-2{
    grid-template-columns:1fr;
  }

  .page-generator .grid-5{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.page-generator .btn{
  height:76px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:22px;
  font-size:18px;
  font-weight:900;
  color:#fff;
  cursor:pointer;
}

.page-generator .btn.active{
  background:var(--yellow);
  border-color:rgba(255,212,0,.35);
  color:#000;
  transform:scale(1.02);
}

.page-generator .step[data-step="6"] .btn{
  width:100%;
  height:72px;
  background:var(--yellow);
  color:#000;
  border:0;
}

.page-generator .stepHelp{
  margin-top:16px;
  width:100%;
  max-width:720px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.page-generator .painRow{
  display:flex;
  align-items:center;
  gap:12px;
  width:fit-content;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#ddd;
  cursor:pointer;
}

.page-generator .painRow input{
  margin:0;
  width:18px;
  height:18px;
  accent-color:var(--yellow);
}

.page-generator .helpHint{
  font-size:12px;
  color:rgba(255,255,255,.65);
}

.page-generator #backBtn,
.page-generator .back{
  margin-top:20px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.75);
  font-size:13px;
  cursor:pointer;
  width:fit-content;
}

.page-generator #backBtn::before,
.page-generator .back::before{
  content:"←";
  font-weight:900;
  opacity:.9;
}

.page-generator #backBtn:hover,
.page-generator .back:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

/* =========================
   PAGE: PROFILE
   ========================= */

.page-profile section{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
}

/* =========================
   PAGE: PLANS
   ========================= */

.page-plans .bgHero{
  position:fixed;
  inset:0;
  z-index:-10;
}

.page-plans .bgHero img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.20;
}

.page-plans .bgHero:after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
}

.page-plans .plansIntro{
  margin-top:40px;
  text-align:center;
}

.page-plans .plansIntro h2{
  margin:0;
  font-size:32px;
  font-weight:900;
  text-transform:uppercase;
  line-height:1.1;
}

.page-plans .plansIntro p{
  margin:12px auto 0;
  max-width:60ch;
  color:rgba(255,255,255,.75);
  font-size:13px;
  line-height:1.45;
}

.page-plans .planCard{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  padding:18px;
}

.page-plans .planCard.featured{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.10);
}

.page-plans .planPrice{
  color:var(--yellow);
  font-weight:900;
  font-size:18px;
}

.page-plans .leadModal{
  position:fixed;
  inset:0;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(0,0,0,.70);
  padding:16px;
  z-index:999;
}

.page-plans .leadModal.isOpen{
  display:flex;
}

.page-plans .leadSheet{
  width:100%;
  max-width:520px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.90);
  padding:18px;
}

/* =========================
   PAGE: HISTORY
   ========================= */

.page-history .historyWrap{
  margin-top:14px;
}

.page-history .historyCard{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  overflow:hidden;
}

.page-history .historyHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,212,0,.08), rgba(255,255,255,.02));
}

.page-history .historyHeader h2{
  margin:0;
  font-size:16px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.page-history .historySub{
  margin:2px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.65);
}

.page-history .historyList{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.page-history .hItem{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  padding:12px 12px 10px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.page-history .hMain{
  flex:1;
  min-width:0;
}

.page-history .hRight{
  width:72px;
  text-align:right;
  font-weight:900;
  color:rgba(255,255,255,.85);
  font-variant-numeric:tabular-nums;
}

.page-history .hTop{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.page-history .hType{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
}

.page-history .hType.amrap{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.10);
}

.page-history .hDate{
  font-size:12px;
  color:rgba(255,255,255,.65);
  white-space:nowrap;
}

.page-history .hMeta{
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:rgba(255,255,255,.78);
}

.page-history .hChip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.80);
}

.page-history .hChip strong{
  color:#fff;
  margin-left:6px;
}

.page-history .hEmpty{
  padding:18px;
  color:rgba(255,255,255,.65);
  font-size:13px;
}

/* =========================
   PAGE: WORKOUT
   ========================= */

.page-workout .container{
  max-width:1400px;
}

.page-workout .title{
  font-size:18px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  margin:0 0 10px;
}

.page-workout .topRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.page-workout .pillBtn{
  cursor:pointer;
  color:#bbb;
}

.page-workout .pillOn{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.10);
  color:#fff;
}

.page-workout .pillOn .dot{
  background:var(--yellow);
}

.page-workout .timerTop{
  text-align:center;
  font-size:28px;
  font-weight:900;
  padding:14px 10px;
  border-radius:18px;
  background:rgba(255,212,0,.10);
  border:1px solid rgba(255,212,0,.25);
  margin-bottom:14px;
}

.page-workout .item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  margin-bottom:10px;
  cursor:pointer;
  position:relative;
}

.page-workout .item.run{
  border-left:4px solid var(--yellow);
}

.page-workout .item.active{
  background:rgba(255,212,0,.14);
  border-color:rgba(255,212,0,.35);
}

.page-workout .item.done{
  border-color:rgba(50,215,75,.35);
  background:rgba(50,215,75,.08);
}

.page-workout .item.done:after{
  content:"✓";
  position:absolute;
  right:12px;
  top:12px;
  width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(50,215,75,.18);
  border:1px solid rgba(50,215,75,.35);
  color:var(--green);
  font-weight:900;
}

.page-workout .itemHead{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
  padding-right:28px;
}

.page-workout .itemSub{
  margin-top:6px;
  font-size:12px;
  color:#bbb;
}

.page-workout .videoSlot{
  margin-top:10px;
  display:none;
}

.page-workout .vimeoWrap{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.page-workout .vimeoWrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.page-workout .workoutBar{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(var(--footer-total-height) + 8px);
  padding:10px 12px;
  z-index:998;
}

.page-workout .workoutBarInner{
  width:min(720px, calc(100% - 24px));
  margin:0 auto;
  display:flex;
  gap:12px;
  background:rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:10px;
  backdrop-filter:blur(10px);
}

.page-workout .resumeBanner{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:1000;
  padding:12px;
  background:rgba(0,0,0,.78);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
}

.page-workout .resumeInner{
  width:min(720px, calc(100% - 24px));
  margin:0 auto;
}

.page-workout .resumeInner p{
  margin:0;
  color:#ddd;
  font-size:12px;
  line-height:1.3;
}

.page-workout .resumeActions{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.page-workout .resumeActions button{
  height:36px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.page-workout .resumeActions .primary{
  background:var(--yellow);
  color:#000;
  border-color:rgba(255,212,0,.35);
}