  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');
  :root{
    --bg:#0D0D0D;
    --surface:#181818;
    --surface2:#242424;
    --text:#F0EDE8;
    --muted:#6B6560;
    --radius:16px;
    --accent:#F04E23;
    --accent-glow: rgba(240,78,35,.22);
    --accent-subtle: rgba(240,78,35,.10);
    --prog:#F04E23;
    --bg-deep:#0B0B0B;
    --phase-prep:#F2B33D;
    --phase-exec:#F04E23;
    --phase-rest:#D9483D;
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }
  *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
  html,body{height:100%;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;overflow:hidden;}
  .screen{position:absolute;inset:0;display:flex;flex-direction:column;transition:opacity .3s,transform .3s;background:var(--bg);}
  /* Dark scrollbar */
  ::-webkit-scrollbar{width:3px;}
  ::-webkit-scrollbar-track{background:transparent;}
  ::-webkit-scrollbar-thumb{background:var(--surface2);border-radius:4px;}
  .screen.hidden{opacity:0;pointer-events:none;transform:translateY(20px);}
  #home{padding:24px 20px 100px;gap:16px;overflow-y:auto;}
  .home-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
  .logo{font-family:'Bebas Neue',sans-serif;font-size:26px;letter-spacing:3px;}
  .logo-img{height:44px;width:auto;display:block;object-fit:contain;}
  .logo span{color:var(--accent);}
  .btn-icon{width:40px;height:40px;border-radius:50%;border:1px solid var(--surface2);background:var(--surface);color:var(--text);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s;padding:0;}
  .btn-icon:active{background:var(--surface2);}
  .btn-icon img{width:60%;height:60%;object-fit:contain;display:block;}
  .section-label{font-size:11px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:var(--text);margin-bottom:8px;}
  .preset-list{display:flex;flex-direction:column;gap:8px;}
  /* ---- NEW CARD DESIGN ---- */
  .preset-card{
    border-radius:20px;
    cursor:pointer;
    border:none;
    position:relative;
    overflow:hidden;
    transition:all .35s cubic-bezier(.4,0,.2,1);
    background:var(--surface);
    isolation:isolate;
  }
  /* Blob de gradiente colorido */
  .preset-card::before{
    content:'';
    position:absolute;inset:0;
    background:
      radial-gradient(circle at 88% 0%, var(--c,#F04E23) 0%, transparent 60%),
      radial-gradient(circle at 0% 110%, rgba(0,0,0,.9) 0%, transparent 65%);
    opacity:.32;
    filter:blur(18px) saturate(1.25);
    transition:opacity .35s;
    z-index:0;
    pointer-events:none;
  }
  /* Grain sutil */
  .preset-card::after{
    content:'';
    position:absolute;inset:0;
    background-image:var(--grain);
    background-size:140px 140px;
    opacity:.18;
    mix-blend-mode:overlay;
    z-index:0;
    pointer-events:none;
  }
  /* Collapsed state */
  .preset-card:not(.selected){
    padding:14px 16px;
    background:#111111;
    border:1px solid rgba(255,255,255,.06);
  }
  .preset-card:not(.selected)::before{opacity:.16;filter:blur(14px) saturate(1.1);}
  /* Expanded / selected state */
  .preset-card.selected{
    padding:20px 20px 22px;
    background:#1C1C1C;
    overflow:visible;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 14px 40px rgba(0,0,0,.6);
  }
  .preset-card.selected::before{opacity:.45;filter:blur(26px) saturate(1.35);}
  /* Color band — always visible on left edge */
  .card-color-band{
    position:absolute;left:0;top:0;bottom:0;width:5px;
    background:var(--c,#aaa);
    border-radius:5px 0 0 5px;
    transition:width .35s cubic-bezier(.4,0,.2,1);
  }
  .preset-card.selected .card-color-band{width:8px;}

  /* Collapsed layout: single row */
  .card-collapsed-row{
    display:flex;align-items:center;gap:12px;
    transition:opacity .2s;
  }
  .preset-card.selected .card-collapsed-row{display:none;}

  .card-dot{
    width:10px;height:10px;border-radius:50%;
    background:var(--c,#aaa);flex-shrink:0;
  }
  .drag-handle{
    font-size:18px;color:var(--muted);flex-shrink:0;cursor:grab;
    opacity:.45;user-select:none;touch-action:none;padding:2px 0;
    line-height:1;
  }
  .drag-handle:active{cursor:grabbing;opacity:.8;}
  .card-collapsed-name{
    font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:1px;
    color:var(--accent);flex:1;
  }
  .card-collapsed-meta{
    font-size:11px;color:var(--text);letter-spacing:.5px;
    display:flex;align-items:center;gap:4px;flex-shrink:0;
  }
  .meta-icon{width:20px;height:20px;object-fit:contain;opacity:.7;flex-shrink:0;}
  .meta-sep{opacity:.35;margin:0 1px;}

  /* Expanded layout */
  .card-expanded{display:none;flex-direction:column;gap:6px;}
  .preset-card.selected .card-expanded{display:flex;}

  .card-exp-badge{
    display:inline-flex;align-items:center;gap:4px;
    font-size:11px;font-weight:600;letter-spacing:1.5px;
    padding:3px 10px;border-radius:20px;
    background:var(--surface2);color:var(--text);
    width:fit-content;margin-bottom:2px;
    text-transform:uppercase;
  }
  .card-exp-name{
    font-family:'Bebas Neue',sans-serif;
    font-size:36px;letter-spacing:1px;line-height:1;
    color:var(--accent);
  }
  .card-exp-pills{
    display:flex;flex-direction:column;gap:8px;margin-top:8px;
  }
  .card-exp-pill-row{
    display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  }
  .card-exp-pill{
    display:inline-flex;align-items:center;
    font-size:12px;color:var(--text);
    font-weight:500;white-space:nowrap;
  }
  .card-exp-obs{
    margin-top:8px;font-size:14px;
    color:rgba(240,237,232,.78);line-height:1.65;
    font-style:italic;
    letter-spacing:.1px;
  }
  .card-exp-actions{
    position:absolute;right:14px;top:14px;
    display:flex;gap:6px;
  }
  .preset-card:not(.selected) .card-exp-actions{display:none;}
  .btn-fav{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:none;
    background:var(--surface2);font-size:14px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:transform .15s;color:var(--muted);}
  .btn-fav.active{color:#FFD060;}
  .btn-fav:active{transform:scale(1.3);}
  .btn-dup{flex-shrink:0;width:28px;height:28px;border-radius:8px;
    background:var(--surface2);border:none;color:var(--muted);font-size:16px;
    display:flex;align-items:center;justify-content:center;cursor:pointer;}
  .btn-dup:active{background:#2e2e2e;}
  .btn-edit{flex-shrink:0;width:28px;height:28px;border-radius:8px;
    border:none;background:var(--surface2);font-size:13px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;color:var(--muted);}
  .btn-edit:active{background:#2e2e2e;}
  .preset-mode-badge{display:none;}/* replaced by card-exp-badge */
  .btn-delete-edit{margin-top:8px;width:100%;padding:14px;border-radius:12px;border:1px solid rgba(255,80,80,.35);background:rgba(255,80,80,.06);color:#ff6b6b;font-family:'Bebas Neue',sans-serif;font-size:16px;letter-spacing:2px;cursor:pointer;transition:background .2s;}
  .btn-delete-edit:active{background:rgba(255,80,80,.18);}
  /* ---- BTN TREINAR (pill CTA no card expandido) ---- */
  .btn-treinar{
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 22px 11px 18px;
    border-radius:50px;
    border:none;
    font-family:'Bebas Neue',sans-serif;
    font-size:17px;letter-spacing:2px;
    cursor:pointer;
    background:var(--accent);
    color:#fff;
    box-shadow:0 4px 22px var(--accent-glow), 0 0 0 0 var(--accent-glow);
    transition:transform .15s,box-shadow .15s;
    align-self:flex-end;
    margin-right:-6px;
    opacity:0;
    transform:translateY(8px);
    pointer-events:none;
  }
  .btn-treinar.visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
    transition:opacity .3s ease .18s, transform .3s cubic-bezier(.34,1.56,.64,1) .18s, box-shadow .15s;
  }
  .btn-treinar:active{transform:scale(.94) !important;box-shadow:0 2px 10px var(--accent-glow);}
  .btn-treinar svg{width:14px;height:14px;fill:currentColor;flex-shrink:0;}
  #edit{padding:24px 20px 32px;gap:14px;overflow-y:auto;}
  .edit-header{display:flex;align-items:center;gap:12px;}
  .edit-title{font-family:'Bebas Neue',sans-serif;font-size:24px;letter-spacing:2px;}
  .field-group{display:flex;flex-direction:column;gap:6px;}
  .field-label{font-size:12px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;}
  .field-input{background:var(--surface);border:1px solid var(--surface2);border-radius:12px;padding:12px 16px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--text);width:100%;}
  .field-input:focus{outline:none;border-color:var(--accent);}
  .field-textarea{background:var(--surface);border:1px solid var(--surface2);border-radius:12px;padding:12px 16px;font-family:'DM Sans',sans-serif;font-size:13px;color:var(--text);width:100%;resize:none;min-height:72px;line-height:1.5;}
  .field-textarea:focus{outline:none;border-color:var(--accent);}
  .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .mode-toggle{display:grid;grid-template-columns:1fr 1fr;background:var(--surface2);border-radius:12px;padding:3px;}
  .mode-btn{padding:9px;border:none;background:transparent;border-radius:10px;font-family:'DM Sans',sans-serif;font-size:13px;color:var(--muted);cursor:pointer;transition:all .2s;font-weight:500;}
  .mode-btn.active{background:var(--surface2);color:var(--text);box-shadow:0 1px 6px rgba(0,0,0,.6);}
  .circuit-exercises{display:flex;flex-direction:column;gap:8px;}
  .exercise-row{display:flex;align-items:center;gap:10px;}
  .btn-yt-link{flex-shrink:0;width:34px;height:34px;background:rgba(255,0,0,.12);border:1.5px solid rgba(255,0,0,.35);border-radius:8px;color:#FF4444;font-size:15px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;}
  .btn-yt-link.has-video{background:rgba(255,0,0,.25);border-color:#FF4444;}
  .btn-yt-link:active{background:rgba(255,0,0,.35);}
  /* ==== VIDEO MODE (vídeo do exercício) ==== */
  /* Vídeo nativo: sem moldura de card, ocupa a própria célula do grid */
  .yt-embed-wrap{position:relative;width:100%;height:100%;background:#000;overflow:hidden;display:none;}
  .yt-embed-wrap.visible{display:block;}
  .yt-embed-wrap iframe{position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:100%;min-height:100%;transform:translate(-50%,-50%) scale(1.16);border:none;display:block;pointer-events:none;}
  /* Camada de toque: único controle do usuário sobre o vídeo (play/pausa) */
  .yt-tap-layer{position:absolute;inset:0;z-index:2;cursor:pointer;display:flex;align-items:center;justify-content:center;background:transparent;}
  .yt-pause-badge{width:60px;height:60px;border-radius:50%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.85);transition:opacity .2s,transform .2s;pointer-events:none;}
  .yt-tap-layer.is-paused .yt-pause-badge{opacity:1;transform:scale(1);}
  .yt-pause-badge svg{width:24px;height:24px;fill:#fff;}
  /* Nome do exercício sobreposto no topo do vídeo (substitui o cabeçalho externo em modo vídeo) */
  .yt-exname-overlay{position:absolute;top:0;left:0;right:0;z-index:3;padding:14px 16px 26px;text-align:center;font-family:'Bebas Neue',sans-serif;font-size:17px;letter-spacing:1.5px;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.85);pointer-events:none;background:linear-gradient(rgba(0,0,0,.55),transparent);}

  /* Layout em grade quando há vídeo: pequena faixa de fase, vídeo ~60% (com nome do exercício embutido), 40% cronômetro+controles */
  .exec-with-video.has-video{
    display:grid!important;
    grid-template-areas:"phase" "video" "bottom";
    grid-template-rows:auto 6fr 4fr;
    grid-template-columns:1fr;
    width:100%;height:100%;gap:0;padding:0!important;overflow:hidden;
  }
  .exec-with-video.has-video .exec-main-col{display:contents!important;}
  .vt-top-wrap{grid-area:phase;display:flex;flex-direction:column;align-items:center;text-align:center;}
  .exec-with-video.has-video .vt-top-wrap{padding:8px 16px 2px;gap:0;}
  .exec-with-video.has-video .auto-prep-title,
  .exec-with-video.has-video .auto-exercise-name,
  .exec-with-video.has-video #circuitExLabel,
  .exec-with-video.has-video #brainPrepExName,
  .exec-with-video.has-video #brainExecExName,
  .exec-with-video.has-video #brainPrepProgress{display:none!important;}
  .exec-with-video.has-video .phase-label{font-size:15px;}
  .exec-with-video.has-video .yt-embed-wrap{grid-area:video;}
  .exec-with-video.has-video .ring-wrap,
  .exec-with-video.has-video .vt-gauge-wrap{display:none;}
  .exec-with-video.has-video .gauge-wrap{display:block;}
  .vt-bottom-wrap{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;}
  .exec-with-video.has-video .vt-bottom-wrap{
    grid-area:bottom;display:flex;flex-direction:column;align-items:stretch;
    justify-content:space-between;gap:2px;padding:8px 16px 12px;min-height:0;overflow:hidden;
  }
  .vt-gauge-wrap{display:flex;align-items:center;justify-content:center;min-width:0;}
  .exec-with-video.has-video .vt-footer-row{display:contents;}
  /* Nº de exercício/série: cantos superiores da área do cronômetro (não da tela toda) */
  .exec-with-video.has-video .progress-row{
    flex:0 0 auto;flex-direction:row!important;align-items:center;justify-content:space-between;
    width:100%;gap:8px;order:1;
  }
  .exec-with-video.has-video .gauge-wrap{
    flex:0 1 auto;width:min(88vw,340px);max-width:96%;aspect-ratio:2/1.05;margin:4px auto;order:2;
  }
  .exec-with-video.has-video .controls{order:3;flex:0 0 auto;justify-content:center;margin-top:0;}
  .exec-with-video.has-video .progress-chip{padding:5px 9px;gap:5px;}
  .exec-with-video.has-video .progress-chip img{width:15px;height:15px;}
  .exec-with-video.has-video .progress-count{font-size:12px;}
  .exec-with-video.has-video .controls{gap:8px;}
  .exec-with-video.has-video .btn-ctrl{width:34px;height:34px;border-radius:10px;}
  .exec-with-video.has-video .btn-ctrl svg{width:14px;height:14px;}
  .exec-with-video.has-video .btn-ctrl .ctrl-label{display:none;}
  .exec-with-video.has-video .btn-playpause{width:46px;height:46px;}
  .exec-with-video.has-video .btn-playpause svg{width:18px;height:18px;}
  .exec-with-video.has-video .auto-big-label,
  .exec-with-video.has-video .btn-auto-done{display:none;}

  /* Cronômetro semicircular (velocímetro) — visível apenas em modo vídeo, agora com mais espaço (~40% da tela) */
  .gauge-wrap{position:relative;width:min(54vw,240px);max-height:100%;aspect-ratio:2/1.05;display:none;}
  .gauge-wrap svg{width:100%;height:100%;overflow:visible;}
  .gauge-bg{fill:none;stroke:#1A1A1A;stroke-width:9;}
  .gauge-fg{fill:none;stroke-width:9;stroke-linecap:round;stroke-dasharray:157;transition:stroke .35s,stroke-dashoffset .95s linear;}
  .gauge-center{position:absolute;left:0;right:0;bottom:2px;display:flex;flex-direction:column;align-items:center;}
  .gauge-time{font-family:'Bebas Neue',sans-serif;font-size:clamp(24px,7vw,38px);line-height:1;font-variant-numeric:tabular-nums;}

  /* ===== TELA DE TREINO EM PAISAGEM (LANDSCAPE) =====
     SEM VÍDEO: 50% informações (esq.) / 50% cronômetro (dir.)
     COM VÍDEO: 30% informações (esq.) / 70% vídeo (dir.)
     O cronômetro é sempre o meio-círculo (padronizado em todos os modos).
     Todo o dimensionamento usa clamp()/vh para se adaptar ao tamanho da tela. */
  @media (orientation:landscape){
    /* ---------- SEM VÍDEO ---------- */
    /* Timer padrão: meio-círculo (o anel completo só é usado no retrato) */
    .ring-screen:not(.has-video) .ring-wrap,
    .ring-screen:not(.has-video) .vt-gauge-wrap{display:none!important;}
    .ring-screen:not(.has-video) .gauge-wrap{display:block!important;}
    /* vt-bottom-wrap "some" (fica só como agrupador lógico) para o gauge poder
       ocupar sozinho a coluna direita, e o rodapé (progresso+controles) ficar na esquerda */
    .ring-screen:not(.has-video) .vt-bottom-wrap{display:contents;}

    .ring-screen:not(.has-video) .exec-main-col{
      display:grid!important;
      grid-template-columns:1fr 1fr;
      align-items:center;
      column-gap:clamp(10px,3vw,32px);
      width:100%;height:100%;
      padding:clamp(6px,2vh,20px) clamp(16px,4vw,32px);
      overflow:hidden;
      min-height:0;
    }
    .ring-screen:not(.has-video) .vt-top-wrap,
    .ring-screen:not(.has-video) .vt-footer-row,
    .ring-screen:not(.has-video) .auto-big-label,
    .ring-screen:not(.has-video) #autoExecTypeDisplay,
    .ring-screen:not(.has-video) .btn-auto-done{
      grid-column:1;min-width:0;width:100%;
    }
    .ring-screen:not(.has-video) .gauge-wrap{
      grid-column:2;justify-self:center;align-self:center;
      width:min(58vh,46vw,480px)!important;max-width:100%;
    }

    /* #timer, #brainPrep e #brainExec: 2 linhas (topo / rodapé) */
    #timerMain:not(.has-video) .exec-main-col,#brainPrepCenter:not(.has-video) .exec-main-col,#brainExecCenter:not(.has-video) .exec-main-col{
      grid-template-rows:auto auto;
      grid-template-areas:"top ring" "bottom ring";
      row-gap:clamp(6px,1.5vh,16px);
    }
    #timerMain:not(.has-video) .vt-top-wrap,#brainPrepCenter:not(.has-video) .vt-top-wrap,#brainExecCenter:not(.has-video) .vt-top-wrap{grid-area:top;}
    #timerMain:not(.has-video) .gauge-wrap,#brainPrepCenter:not(.has-video) .gauge-wrap,#brainExecCenter:not(.has-video) .gauge-wrap{grid-area:ring;}
    #timerMain:not(.has-video) .vt-footer-row,#brainPrepCenter:not(.has-video) .vt-footer-row,#brainExecCenter:not(.has-video) .vt-footer-row{grid-area:bottom;}

    /* #autoExecCenter: 5 linhas (topo / aviso / chip do tipo / botão concluir / rodapé) */
    #autoExecCenter .exec-main-col{
      grid-template-rows:repeat(5,auto);
      grid-template-areas:"top ring" "big ring" "typed ring" "done ring" "bottom ring";
      row-gap:clamp(4px,1.2vh,10px);
    }
    #autoExecCenter .vt-top-wrap{grid-area:top;}
    #autoExecCenter .gauge-wrap{grid-area:ring;}
    #autoExecCenter .auto-big-label{grid-area:big;margin-top:0;}
    #autoExecTypeDisplay{grid-area:typed;}
    #autoExecCenter .btn-auto-done{grid-area:done;width:100%;height:clamp(38px,7vh,56px);font-size:clamp(13px,2.2vh,18px);}
    #autoExecCenter .vt-footer-row{grid-area:bottom;}

    /* Escala de fontes/controles para garantir que tudo caiba sem cortes */
    .ring-screen:not(.has-video) .phase-label{font-size:clamp(20px,3.4vh,34px)!important;justify-content:center;}
    .ring-screen:not(.has-video) .circuit-exercise-label,
    .ring-screen:not(.has-video) .auto-exercise-name{font-size:clamp(18px,3vh,28px)!important;}
    /* Números do meio-círculo maiores, aproveitando o espaço da coluna inteira */
    .ring-screen:not(.has-video) .gauge-time{font-size:clamp(56px,15vh,120px)!important;}
    .ring-screen:not(.has-video) .progress-row{gap:clamp(10px,2.4vw,26px);}
    .ring-screen:not(.has-video) .progress-chip{padding:clamp(8px,1.6vh,12px) clamp(14px,2.4vw,20px)!important;}
    .ring-screen:not(.has-video) .progress-chip img{width:clamp(20px,3vh,28px)!important;height:clamp(20px,3vh,28px)!important;}
    .ring-screen:not(.has-video) .progress-count{font-size:clamp(16px,2.6vh,22px)!important;}
    .ring-screen:not(.has-video) .controls{gap:clamp(10px,2vw,18px);}
    .ring-screen:not(.has-video) .btn-ctrl{width:clamp(44px,8vh,64px);height:clamp(44px,8vh,64px);}
    .ring-screen:not(.has-video) .btn-playpause{width:clamp(58px,10vh,92px);height:clamp(58px,10vh,92px);}

    /* ---------- COM VÍDEO ---------- */
    .exec-with-video.has-video{
      grid-template-columns:40% 60%!important;
      grid-template-rows:auto 1fr!important;
      grid-template-areas:"phase video" "bottom video"!important;
      row-gap:0!important;
    }
    .exec-with-video.has-video .vt-top-wrap{padding:clamp(6px,1.5vh,12px) 10px 2px!important;}
    .exec-with-video.has-video .phase-label{font-size:clamp(14px,2.4vh,20px)!important;justify-content:center;}
    .exec-with-video.has-video .vt-bottom-wrap{padding:4px 10px 10px!important;gap:2px!important;}
    .exec-with-video.has-video .gauge-wrap{width:min(88%,260px)!important;margin:2px auto!important;}
    .exec-with-video.has-video .gauge-time{font-size:clamp(20px,5.5vh,38px)!important;}
    .exec-with-video.has-video .progress-chip{padding:4px 8px!important;gap:4px!important;}
    .exec-with-video.has-video .progress-chip img{width:13px!important;height:13px!important;}
    .exec-with-video.has-video .progress-count{font-size:11px!important;}
    .exec-with-video.has-video .controls{gap:6px!important;}
    .exec-with-video.has-video .btn-ctrl{width:28px!important;height:28px!important;border-radius:8px!important;}
    .exec-with-video.has-video .btn-ctrl svg{width:12px!important;height:12px!important;}
    .exec-with-video.has-video .btn-playpause{width:38px!important;height:38px!important;}
    .exec-with-video.has-video .btn-playpause svg{width:15px!important;height:15px!important;}
    /* A coluna de vídeo na horizontal tem uma proporção bem diferente do 16:9,
       então o zoom de recorte precisa ser maior que no retrato para não sobrar tarja preta */
    .exec-with-video.has-video .yt-embed-wrap iframe{transform:translate(-50%,-50%) scale(1.9)!important;}
  }
  .exercise-letter{font-family:'Bebas Neue',sans-serif;font-size:22px;width:28px;text-align:center;}
  .exercise-row{transition:opacity .2s;}
  .exercise-row.dragging-ex{opacity:0.3;}
  .ex-drag-handle{font-size:16px;color:var(--muted);flex-shrink:0;cursor:grab;opacity:.4;user-select:none;touch-action:none;padding:2px 0;line-height:1;width:20px;text-align:center;}
  .ex-drag-handle:active{cursor:grabbing;opacity:.75;}
  .color-picker{display:flex;gap:10px;flex-wrap:wrap;padding:4px 0;}
  .color-swatch{width:34px;height:34px;border-radius:50%;cursor:pointer;border:3px solid transparent;transition:transform .15s,border-color .15s;flex-shrink:0;}
  .color-swatch.selected{border-color:var(--accent);transform:scale(1.2);box-shadow:0 0 0 1px var(--surface);}
  .btn-save{height:52px;border-radius:26px;border:none;background:var(--accent);color:#fff;font-family:'Bebas Neue',sans-serif;font-size:20px;letter-spacing:2px;cursor:pointer;margin-top:4px;width:100%;box-shadow:0 4px 20px var(--accent-glow);}
  /* ===== TELA DE TREINO — REDESIGN ===== */
  #timer{flex-direction:column!important;align-items:stretch;padding:0;background:var(--bg-deep);}
  .timer-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:22px 20px 28px;position:relative;isolation:isolate;}
  /* grain de fundo no cronômetro (glow removido a pedido) */
  .timer-main::after{
    content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
    background-image:var(--grain);background-size:140px 140px;
    opacity:.1;mix-blend-mode:overlay;
  }
  .timer-main .exec-main-col{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:14px;width:100%;flex:1;}

  /* --- Cabeçalho de estado --- */
  .timer-top{width:100%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
  .phase-label{font-family:'Bebas Neue',sans-serif;font-size:29px;letter-spacing:3px;transition:color .35s;display:flex;align-items:center;gap:9px;}
  .phase-label img.phase-icon{width:29px;height:29px;object-fit:contain;flex-shrink:0;opacity:.92;}

  /* --- Identificação do exercício (cor do programa) --- */
  .circuit-exercise-label{
    font-family:'Bebas Neue',sans-serif;font-size:22px;font-weight:700;letter-spacing:2px;
    text-align:center;line-height:1.15;
    transition:color .35s;
  }

  /* --- Cronômetro circular --- */
  .ring-wrap{position:relative;width:min(72vw,300px);aspect-ratio:1;flex-shrink:0;font-size:clamp(16px,4.4vw,24px);}
  .ring-wrap svg{width:100%;height:100%;transform:rotate(-90deg);}
  .ring-bg{fill:none;stroke:#1A1A1A;stroke-width:10;}
  .ring-fg{fill:none;stroke-width:10;stroke-linecap:round;transition:stroke .35s,stroke-dashoffset .95s linear;}
  .ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
  .time-display{font-family:'Bebas Neue',sans-serif;font-size:3.5em;line-height:1;letter-spacing:1px;transition:color .35s;font-variant-numeric:tabular-nums;}
  .time-sub{font-size:.5em;color:var(--muted);letter-spacing:.2em;text-transform:uppercase;margin-top:.3em;font-weight:500;white-space:nowrap;}

  /* --- Progresso do treino (somente ícones + contadores) --- */
  .progress-row{display:flex;align-items:center;justify-content:center;gap:22px;flex-shrink:0;}
  .progress-chip{display:flex;align-items:center;gap:9px;padding:8px 16px;border-radius:22px;background:var(--surface);}
  .progress-chip img{width:22px;height:22px;object-fit:contain;flex-shrink:0;}
  .progress-count{font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:.5px;color:var(--text);}
  .progress-count .pc-muted{color:var(--muted);}

  /* --- Legacy dots (mantidos para compatibilidade, ocultos no novo layout) --- */
  .dots{display:none;}
  .round-dots{display:none;}
  .dot{width:10px;height:10px;border-radius:50%;background:var(--surface2);}
  .dot.done{background:var(--accent);}
  .dot.active{background:var(--accent);transform:scale(1.4);}
  .round-dot{width:12px;height:12px;border-radius:50%;border:2px solid var(--muted);}
  .round-dot.done{border-color:var(--accent);background:var(--accent);}
  .round-dot.active{border-color:var(--accent);background:transparent;transform:scale(1.3);}

  /* --- Navegação inferior --- */
  .controls{display:flex;gap:14px;align-items:center;justify-content:center;width:100%;flex-shrink:0;}
  .btn-ctrl{
    width:54px;height:54px;
    border-radius:18px;
    border:1.5px solid var(--surface2);
    background:var(--surface);
    color:var(--text);
    font-size:0;
    cursor:pointer;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    transition:background .15s,border-color .15s,transform .12s;
    position:relative;
    flex-shrink:0;
  }
  .btn-ctrl:active{background:var(--surface2);transform:scale(.93);}
  .btn-ctrl svg{width:21px;height:21px;fill:currentColor;}
  .btn-ctrl .ctrl-label{font-family:'DM Sans',sans-serif;font-size:9px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);line-height:1;}
  .btn-playpause{
    width:78px;height:78px;
    border-radius:50%;
    border:none;
    font-size:0;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .2s,transform .15s,box-shadow .2s;
    box-shadow:0 6px 24px var(--accent-glow);
    flex-shrink:0;
  }
  .btn-playpause:active{transform:scale(.92);box-shadow:0 3px 14px rgba(0,0,0,.25);}
  .btn-playpause svg{width:30px;height:30px;fill:currentColor;}
  .flash{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .2s;z-index:99;}
  .flash.on{opacity:.18;transition:opacity 0s;}
  #finish{align-items:center;justify-content:center;gap:18px;text-align:center;padding:32px 24px;}
  .finish-icon{font-size:64px;}
  .finish-title{font-family:'Bebas Neue',sans-serif;font-size:44px;letter-spacing:4px;color:var(--accent);}
  .finish-sub{font-size:13px;color:var(--muted);}
  .finish-btns{display:flex;flex-direction:column;gap:12px;width:100%;max-width:280px;}
  .btn-finish{height:52px;border-radius:26px;border:none;background:var(--surface2);color:var(--text);font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;}
  .btn-finish.primary{background:var(--accent);color:#fff;box-shadow:0 4px 20px var(--accent-glow);}
  .btn-finish.outline{background:transparent;border:1px solid var(--surface2);color:var(--muted);}
  .toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:var(--surface2);color:var(--text);padding:10px 20px;border-radius:24px;font-size:13px;white-space:nowrap;opacity:0;transition:opacity .3s;z-index:500;pointer-events:none;}
  .toast.show{opacity:1;}
  /* ---- AUTO MODE STYLES ---- */
  .auto-screen{padding:28px 20px 40px;align-items:center;justify-content:flex-start;gap:0;overflow-y:auto;}
  .auto-header{width:100%;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-shrink:0;}
  .auto-header.centered{justify-content:center;}
  .auto-phase-label{font-family:'Bebas Neue',sans-serif;font-size:26px;letter-spacing:3px;color:var(--accent);display:flex;align-items:center;gap:7px;}
  .auto-series-badge{font-size:12px;color:var(--muted);background:var(--surface);padding:5px 12px;border-radius:20px;}
  .auto-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100%;}
  .auto-prep-title{font-family:'Bebas Neue',sans-serif;font-size:26px;letter-spacing:2px;text-align:center;line-height:1.1;}
  .auto-prep-title.exercise-name-variant{font-size:29px;font-weight:700;}
  .auto-prep-sub{font-size:13px;color:var(--muted);text-align:center;}
  .auto-exercise-name{font-family:'Bebas Neue',sans-serif;font-size:22px;font-weight:700;letter-spacing:2px;text-align:center;}
  .auto-big-label{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:3px;color:var(--muted);margin-top:6px;}
  .auto-overflow-label{font-size:12px;color:var(--muted);letter-spacing:1px;margin-top:4px;opacity:0;transition:opacity .4s;}
  .auto-overflow-label.visible{opacity:1;}
  .btn-auto-done{width:100%;max-width:320px;height:72px;border-radius:36px;border:none;background:var(--accent);color:#fff;font-family:'Bebas Neue',sans-serif;font-size:24px;letter-spacing:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 4px 28px var(--accent-glow);transition:transform .15s,box-shadow .15s;flex-shrink:0;}
  .btn-auto-done:active{transform:scale(.96);box-shadow:0 2px 14px var(--accent-glow);}
  .reps-grid{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px;}
  .btn-reps{width:100%;padding:14px 20px;border-radius:14px;border:1px solid var(--surface2);background:var(--surface);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:14px;transition:border-color .15s,background .15s;}
  .btn-reps:active{background:var(--surface2);}
  .btn-reps .reps-icon{display:flex;align-items:flex-end;gap:4px;width:44px;height:32px;flex-shrink:0;}
  .btn-reps .reps-icon .bar{flex:1;height:100%;border-radius:4px;background:#2A2A2A;}
  .btn-reps .reps-icon .bar.on{background:linear-gradient(180deg,#F8A23C 0%,#F04E23 100%);}
  .btn-reps .reps-range{font-family:'Bebas Neue',sans-serif;font-size:20px;letter-spacing:1px;color:var(--text);}
  .btn-reps .reps-desc{font-size:11px;color:var(--muted);margin-top:1px;}
  .intensity-grid{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px;}
  .btn-intensity{width:100%;padding:14px 20px;border-radius:14px;border:1px solid var(--surface2);background:var(--surface);color:var(--text);font-family:'DM Sans',sans-serif;font-size:15px;cursor:pointer;display:flex;align-items:center;gap:14px;transition:border-color .15s,background .15s;}
  .btn-intensity:active{background:var(--surface2);}
  .btn-intensity .int-icon{display:flex;align-items:flex-end;gap:4px;width:44px;height:32px;flex-shrink:0;}
  .btn-intensity .int-icon .bar{flex:1;border-radius:4px;background:#2A2A2A;}
  .btn-intensity .int-icon .bar.on{background:linear-gradient(180deg,#F8A23C 0%,#F04E23 100%);}
  .btn-intensity .int-icon .bar:nth-child(1){height:40%;}
  .btn-intensity .int-icon .bar:nth-child(2){height:55%;}
  .btn-intensity .int-icon .bar:nth-child(3){height:70%;}
  .btn-intensity .int-icon .bar:nth-child(4){height:85%;}
  .btn-intensity .int-icon .bar:nth-child(5){height:100%;}
  .btn-intensity .int-label{font-size:15px;color:var(--text);}
  .auto-rest-title{font-family:'Bebas Neue',sans-serif;font-size:28px;letter-spacing:4px;color:var(--accent);margin-bottom:8px;display:flex;align-items:center;gap:8px;}
  .continue-grid{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px;}
  .btn-continue{width:100%;height:64px;border-radius:32px;border:1px solid var(--surface2);background:var(--surface);color:var(--text);font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:background .15s;}
  .btn-continue:active{background:var(--surface2);}
  .btn-continue.primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 4px 24px var(--accent-glow);}
  .btn-continue.secondary{background:var(--surface2);border-color:var(--surface2);}
  .btn-continue.danger{background:transparent;color:var(--muted);border-color:var(--surface2);}
  /* ---- CALENDAR STYLES ---- */
  #calendarScreen{padding:0;background:var(--bg);}
  .cal-header{padding:20px 20px 0;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
  .cal-month-nav{display:flex;align-items:center;gap:10px;}
  .cal-month-label{font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:2px;min-width:140px;text-align:center;}
  /* Big date hero */
  .cal-hero{padding:0 20px 12px;flex-shrink:0;}
  .cal-hero-day{font-family:'Bebas Neue',sans-serif;font-size:96px;line-height:.9;color:var(--accent);letter-spacing:-2px;}
  .cal-hero-meta{display:flex;align-items:flex-end;justify-content:space-between;margin-top:8px;}
  .cal-hero-month{font-family:'Bebas Neue',sans-serif;font-size:28px;letter-spacing:3px;color:var(--text);line-height:1;}
  .cal-hero-year{font-size:18px;color:var(--muted);font-weight:300;letter-spacing:1px;line-height:1.2;}
  .cal-hero-weekday{font-family:'Bebas Neue',sans-serif;font-size:28px;letter-spacing:3px;color:var(--muted);}
  .cal-divider{border:none;border-top:1px solid var(--surface2);margin:0 20px 12px;}
  .cal-body{flex:1;overflow-y:auto;padding:0 12px 32px;}
  .cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;padding:0 0 6px;}
  .cal-weekdays span{font-size:9px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;}
  .cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;}
  .cal-day{aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--surface2);cursor:default;position:relative;border:2px solid var(--surface2);}
  .cal-day.has-num{color:var(--muted);border-color:var(--surface2);}
  .cal-day.future{color:var(--surface2);border-color:var(--surface2);}
  .cal-day.today{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:700;}
  .cal-day.done{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600;cursor:pointer;box-shadow:0 0 10px var(--accent-glow);}
  .cal-day.done.today{background:var(--accent);border-color:var(--accent);}
  .cal-day.done:active{opacity:.8;}
  .cal-day.empty{border:none;pointer-events:none;}
  .cal-day-detail{background:var(--surface);border-radius:16px;padding:16px;margin-top:8px;display:none;}
  .cal-day-detail.open{display:block;}
  .cal-detail-date{font-size:12px;color:var(--muted);margin-bottom:6px;}
  .cal-detail-name{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:2px;color:var(--accent);}
  .cal-detail-obs{font-size:13px;color:var(--muted);margin-top:6px;font-style:italic;}
  .cal-legend{padding:8px 16px;font-size:11px;color:var(--muted);text-align:center;}
  .cal-day-detail-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
  /* ---- PODER BRAVO (card colapsável do calendário, mesmo conceito dos cards da home) ---- */
  .cal-stat-card{background:var(--surface);border-radius:16px;margin:4px 4px 0;overflow:hidden;border:1px solid rgba(255,255,255,.05);}
  .cal-stat-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:14px 16px;background:transparent;border:none;cursor:pointer;text-align:left;}
  .cal-stat-chips{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
  .cal-stat-chip{display:flex;align-items:center;gap:7px;}
  .cal-stat-chip img{width:18px;height:18px;object-fit:contain;flex-shrink:0;opacity:.85;}
  .cal-stat-chip-value{font-family:'Bebas Neue',sans-serif;font-size:20px;color:var(--text);letter-spacing:.5px;}
  .cal-stat-chip-label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;}
  .cal-stat-chevron{font-size:13px;color:var(--accent);transition:transform .25s ease;flex-shrink:0;}
  .cal-stat-toggle.open .cal-stat-chevron{transform:rotate(180deg);}
  .cal-stat-body{max-height:0;overflow:hidden;transition:max-height .3s ease;}
  .cal-stat-body.open{max-height:700px;}
  .cal-stat-section{padding:0 16px 16px;}
  .cal-stat-section-title{font-family:'Bebas Neue',sans-serif;font-size:12px;letter-spacing:2px;color:var(--accent);display:flex;align-items:center;gap:6px;margin:0 0 12px;border-top:1px solid var(--surface2);padding-top:14px;}
  .cal-stat-section-title img{width:14px;height:14px;object-fit:contain;}
  .cal-poder-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 10px;}
  .cal-poder-item{text-align:center;}
  .cal-poder-value{font-family:'Bebas Neue',sans-serif;font-size:26px;color:var(--text);letter-spacing:1px;line-height:1;}
  .cal-poder-label{font-size:9.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-top:4px;}
  .cal-detail-poder{display:flex;align-items:center;gap:6px;margin-top:6px;}
  .cal-detail-poder img{width:15px;height:15px;object-fit:contain;}
  .cal-detail-poder .cdp-label{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px;}
  .cal-detail-poder .cdp-value{font-family:'Bebas Neue',sans-serif;font-size:15px;color:var(--accent);letter-spacing:1px;}
  .btn-del-workout{font-size:12px;padding:5px 12px;border-radius:10px;border:1px solid rgba(200,50,50,.35);background:transparent;color:#c03030;cursor:pointer;font-family:'DM Sans',sans-serif;transition:background .2s;}
  .btn-del-workout:active{background:rgba(200,50,50,.1);}
  /* Mark workout modal */
  .mark-obs-input{background:var(--surface2);border:1px solid var(--surface2);border-radius:12px;padding:12px 16px;font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);width:100%;resize:none;min-height:60px;}
  .mark-obs-input:focus{outline:none;border-color:var(--accent);}
  .modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;z-index:300;opacity:0;pointer-events:none;transition:opacity .25s;}
  .modal-overlay.open{opacity:1;pointer-events:all;}
  .modal-sheet{width:100%;background:var(--surface);border-radius:24px 24px 0 0;padding:24px 20px 44px;transform:translateY(100%);transition:transform .3s;display:flex;flex-direction:column;gap:16px;max-height:92vh;overflow-y:auto;border-top:1px solid var(--surface2);}
  .modal-overlay.open .modal-sheet{transform:translateY(0);}
  .modal-title{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:2px;}
  .modal-row{display:flex;justify-content:space-between;align-items:center;}
  .toggle{width:48px;height:26px;border-radius:13px;background:var(--surface2);position:relative;cursor:pointer;border:none;transition:background .2s;flex-shrink:0;}
  .toggle.on{background:var(--accent);}
  .toggle::after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:3px;transition:transform .2s;}
  .toggle.on::after{transform:translateX(22px);}
  .divider{border:none;border-top:1px solid var(--surface2);margin:4px 0;}
  .btn-connect{width:100%;height:48px;border-radius:24px;border:1px solid var(--surface2);background:transparent;color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;}
  .hint{font-size:11px;color:var(--muted);margin-top:6px;}
  /* ---- HAMBURGER MENU ---- */
  .menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:600;opacity:0;pointer-events:none;transition:opacity .25s;}
  .menu-overlay.open{opacity:1;pointer-events:all;}
  .menu-drawer{position:fixed;top:0;right:0;bottom:0;width:280px;background:var(--surface);z-index:601;transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;padding:0;}
  .menu-overlay.open .menu-drawer{transform:translateX(0);}
  .menu-drawer-header{padding:52px 24px 24px;border-bottom:1px solid var(--surface2);}
  .menu-drawer-logo{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:3px;color:var(--text);}
  .menu-drawer-body{flex:1;overflow-y:auto;padding:12px 0;}
  .menu-section-label{font-size:10px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--muted);padding:16px 24px 6px;}
  .menu-item{display:flex;align-items:center;gap:12px;padding:13px 24px;cursor:pointer;border:none;background:transparent;width:100%;text-align:left;color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px;transition:background .15s;}
  .menu-item:active{background:var(--surface2);}
  .menu-item-icon{font-size:16px;width:22px;text-align:center;flex-shrink:0;}
  .menu-item-icon-img{width:18px;height:18px;object-fit:contain;flex-shrink:0;}
  .menu-item-icon-svg{width:18px;height:18px;flex-shrink:0;color:var(--accent);}
  .menu-item-icon-svg svg{width:18px;height:18px;fill:currentColor;display:block;}
  .menu-item-tag{font-size:10px;color:var(--muted);background:var(--surface2);padding:2px 7px;border-radius:6px;margin-left:auto;white-space:nowrap;flex-shrink:0;}
  .menu-item-tag-live{color:var(--accent);}
  .menu-divider{border:none;border-top:1px solid var(--surface2);margin:8px 0;}
  .menu-accordion-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 24px 6px;background:transparent;border:none;cursor:pointer;text-align:left;}
  .menu-accordion-toggle .menu-section-label{padding:0;}
  .menu-accordion-chevron{font-size:15px;color:var(--accent);transition:transform .25s ease;flex-shrink:0;}
  .menu-accordion-toggle.open .menu-accordion-chevron{transform:rotate(180deg);}
  .menu-accordion-body{max-height:0;overflow:hidden;transition:max-height .3s ease;}
  .menu-accordion-body.open{max-height:600px;}
  /* ---- REGISTRATION PROMPT ---- */
  .reg-prompt-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);display:flex;align-items:flex-end;z-index:700;opacity:0;pointer-events:none;transition:opacity .25s;}
  .reg-prompt-overlay.open{opacity:1;pointer-events:all;}
  .reg-prompt-sheet{width:100%;background:#1A1A1A;border-radius:24px 24px 0 0;padding:28px 24px 48px;transform:translateY(100%);transition:transform .3s;display:flex;flex-direction:column;gap:16px;border-top:1px solid var(--surface2);}
  .reg-prompt-overlay.open .reg-prompt-sheet{transform:translateY(0);}
  .reg-prompt-emoji{font-size:36px;margin-bottom:4px;}
  .reg-prompt-title{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:2px;line-height:1.1;}
  .reg-prompt-text{font-size:14px;color:var(--muted);line-height:1.6;}
  .btn-reg-primary{height:52px;border-radius:26px;border:none;background:var(--accent);color:#fff;font-family:'Bebas Neue',sans-serif;font-size:18px;letter-spacing:2px;cursor:pointer;width:100%;}
  .btn-reg-skip{height:44px;border-radius:22px;border:1px solid var(--surface2);background:transparent;color:var(--muted);font-family:'DM Sans',sans-serif;font-size:13px;cursor:pointer;width:100%;}
  /* ---- REGISTER SCREEN ---- */
  #registerScreen{padding:28px 20px 48px;gap:20px;overflow-y:auto;}
  .reg-header{display:flex;align-items:center;gap:12px;flex-shrink:0;}
  .reg-title{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:2px;}
  .reg-label{font-size:11px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;}
  .reg-required{color:var(--accent);margin-left:2px;}
  .reg-input{background:var(--surface);border:1px solid var(--surface2);border-radius:12px;padding:13px 16px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--text);width:100%;}
  .reg-input:focus{outline:none;border-color:var(--accent);}
  .reg-gender{display:flex;gap:8px;}
  .btn-gender{flex:1;padding:11px 8px;border-radius:12px;border:1px solid var(--surface2);background:var(--surface);color:var(--muted);font-family:'DM Sans',sans-serif;font-size:13px;cursor:pointer;transition:all .2s;}
  .btn-gender.selected{border-color:var(--accent);color:var(--accent);background:rgba(240,78,35,.06);}
  .reg-disclaimer{font-size:12px;color:var(--muted);text-align:center;line-height:1.5;}
  /* ---- ABOUT SCREEN ---- */
  #aboutScreen{padding:28px 20px 60px;gap:0;overflow-y:auto;}
  .about-header{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-bottom:32px;}
  .about-title-main{font-family:'Bebas Neue',sans-serif;font-size:22px;letter-spacing:2px;}
  .about-logo-big{font-family:'Bebas Neue',sans-serif;font-size:44px;letter-spacing:6px;color:var(--accent);line-height:1;margin-bottom:4px;}
  .about-tagline{font-size:13px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-bottom:32px;}
  .about-body{font-size:15px;color:var(--muted);line-height:1.75;margin-bottom:32px;}
  .about-divider{border:none;border-top:1px solid var(--surface2);margin:28px 0;}
  .about-dev{font-size:13px;color:var(--muted);line-height:1.7;}
  .about-dev strong{color:var(--text);font-weight:500;}
  .about-badge{display:inline-block;margin-top:12px;font-size:11px;color:var(--muted);background:var(--surface2);padding:5px 14px;border-radius:20px;letter-spacing:.5px;}

  /* ---- PROGRAMA PREMIUM ---- */
  #premiumIntro{padding:0 24px;align-items:flex-start;justify-content:center;gap:18px;}
  .prem-star{font-size:34px;line-height:1;margin-bottom:4px;}
  .prem-intro-title{font-family:'Bebas Neue',sans-serif;font-size:34px;letter-spacing:2px;color:var(--text);}
  .prem-intro-text{font-size:15px;color:var(--muted);line-height:1.75;}
  .prem-intro-actions{width:100%;display:flex;flex-direction:column;gap:12px;margin-top:8px;}

  #premiumQuestion{padding:20px 20px 28px;}
  .prem-header{display:flex;align-items:center;gap:12px;flex-shrink:0;}
  .prem-progress-txt{margin-left:auto;font-size:11px;color:var(--muted);letter-spacing:1px;font-variant-numeric:tabular-nums;}
  .prem-progress-track{height:3px;border-radius:2px;background:var(--surface2);margin-top:16px;flex-shrink:0;overflow:hidden;}
  .prem-progress-fill{height:100%;background:var(--accent);border-radius:2px;transition:width .35s ease;}
  .prem-body{flex:1;display:flex;flex-direction:column;justify-content:center;gap:22px;overflow-y:auto;padding:36px 0;opacity:0;transform:translateY(10px);transition:opacity .28s ease,transform .28s ease;}
  .prem-body.in{opacity:1;transform:translateY(0);}
  .prem-q-title{font-family:'Bebas Neue',sans-serif;font-size:23px;letter-spacing:1px;line-height:1.25;color:var(--text);}
  .prem-q-subtitle{font-size:14px;color:var(--muted);line-height:1.6;margin-top:6px;}
  .prem-input{background:var(--surface);border:1px solid var(--surface2);border-radius:12px;padding:13px 16px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--text);width:100%;}
  .prem-input:focus{outline:none;border-color:var(--accent);}
  .prem-textarea{background:var(--surface);border:1px solid var(--surface2);border-radius:14px;padding:16px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--text);width:100%;resize:none;min-height:120px;line-height:1.6;}
  .prem-textarea:focus{outline:none;border-color:var(--accent);}
  .prem-unit-wrap{position:relative;}
  .prem-unit-wrap .prem-input{padding-right:48px;}
  .prem-unit-label{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);pointer-events:none;}
  .prem-options{display:flex;flex-direction:column;gap:10px;}
  .prem-opt-btn{width:100%;padding:15px 18px;border-radius:14px;border:1px solid var(--surface2);background:var(--surface);color:var(--text);font-family:'DM Sans',sans-serif;font-size:15px;text-align:left;cursor:pointer;transition:all .2s;}
  .prem-opt-btn.selected{border-color:var(--accent);color:var(--accent);background:rgba(240,78,35,.06);}
  .prem-dual{display:flex;flex-direction:column;gap:16px;}
  .prem-dual-field{display:flex;flex-direction:column;gap:6px;}
  .prem-footer{flex-shrink:0;display:flex;flex-direction:column;gap:10px;}
  .prem-skip{background:transparent;border:none;color:var(--muted);font-family:'DM Sans',sans-serif;font-size:13px;cursor:pointer;text-align:center;padding:4px;}

  #premiumDone{padding:0 28px;align-items:flex-start;justify-content:center;gap:16px;}
  .prem-done-emoji{font-size:38px;}
  .prem-done-title{font-family:'Bebas Neue',sans-serif;font-size:30px;letter-spacing:2px;color:var(--accent);}
  .prem-done-text{font-size:15px;color:var(--muted);line-height:1.75;}
  .prem-done-actions{width:100%;margin-top:8px;}

  /* ---- PHASE ICON (timer phase label) ---- */
  .phase-label-wrap{display:flex;align-items:center;gap:7px;}
  .phase-icon{width:29px;height:29px;object-fit:contain;flex-shrink:0;opacity:.85;filter:var(--phase-icon-filter,none);}

  /* ---- PILL ICONS (card metadata) ---- */
  .pill-icon{width:21px;height:21px;object-fit:contain;vertical-align:middle;margin-right:4px;opacity:.8;position:relative;top:-1px;}
  .card-exp-pill img.pill-icon{filter:var(--pill-icon-filter,none);}
  .card-exp-pill img.pill-icon[src*="ic_preparacao"]{transform:scale(1.35);}

  /* Auto phase label em telas auto */
  .auto-phase-wrap{display:flex;align-items:center;gap:7px;}
  .auto-phase-icon{width:31px;height:31px;object-fit:contain;flex-shrink:0;opacity:.85;}

  /* ---- BRAVO PLAY: ícones de tipo de exercício clicáveis ---- */
  .auto-extype-btn{
    width:100%;aspect-ratio:1;border-radius:14px;
    border:2px solid transparent;
    background:transparent;
    cursor:pointer;
    padding:0;overflow:hidden;position:relative;
    transition:border-color .18s,background .18s,transform .15s,opacity .18s;
    opacity:.55;
  }
  .auto-extype-btn img{width:100%;height:100%;object-fit:cover;display:block;}
  .auto-extype-btn.selected{
    opacity:1;
    transform:scale(1.08);
  }
  .auto-extype-btn.selected .extype-check-prep{display:flex;}
  .extype-check-prep{
    display:none;position:absolute;inset:0;align-items:center;justify-content:center;
    font-size:26px;font-weight:900;color:#fff;
    text-shadow:0 1px 4px rgba(0,0,0,.6);
    pointer-events:none;background:rgba(0,0,0,.18);
  }
  /* Quando nenhum selecionado, todos com opacidade normal */
  .auto-extype-grid.none-selected .auto-extype-btn{opacity:1;}

  /* ---- BRAVO PLAY: ícone selecionado na tela de execução ---- */
  #autoExecTypeDisplay{
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
  }
  #autoExecTypeDisplay.visible{ display:flex; }

  /* chip inline (portrait) */
  #autoExecTypeChip{
    display:flex;align-items:center;gap:10px;
    padding:7px 16px 7px 10px;
    border-radius:14px;
    width:fit-content;
  }
  #autoExecTypeChip img{ width:34px;height:34px;border-radius:8px;object-fit:cover;flex-shrink:0; }
  #autoExecTypeChip .exec-type-label{
    font-family:'Bebas Neue',sans-serif;font-size:17px;letter-spacing:1.5px;white-space:nowrap;
  }

  /* Chip do tipo de exercício: agora visível em retrato E paisagem (ver regras de grid mais abaixo) */
