@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap";:root{--bg-primary: #0a0a0f;--bg-secondary: #111118;--bg-card: #161620;--bg-card-hover: #1c1c2a;--bg-input: #12121c;--border: #222233;--border-focus: #555577;--text-primary: #e8e8f0;--text-secondary: #777790;--text-muted: #44445a;--accent: #7c6bf0;--accent-soft: rgba(124, 107, 240, .1);--accent-border: rgba(124, 107, 240, .2);--green: #4ade80;--red: #f87171;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--shadow-sm: 0 2px 8px rgba(0, 0, 0, .15);--shadow-md: 0 8px 24px rgba(0, 0, 0, .25)}*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}html,body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg-primary);color:var(--text-primary);min-height:100vh;min-height:100dvh;overflow-x:hidden;-webkit-font-smoothing:antialiased}#root{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.login-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}.login-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:48px 36px;max-width:380px;width:100%;text-align:center}.login-card .logo{font-size:1.6rem;font-weight:800;letter-spacing:2px;color:var(--text-primary);margin-bottom:6px}.login-card .subtitle{color:var(--text-muted);font-size:.8rem;margin-bottom:32px;letter-spacing:.5px}.login-card input{width:100%;padding:13px 16px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.95rem;font-family:inherit;outline:none;transition:border-color .2s;margin-bottom:14px}.login-card input:focus{border-color:var(--accent)}.login-card input::placeholder{color:var(--text-muted)}.login-card button{width:100%;padding:13px;background:var(--accent);border:none;border-radius:var(--radius-sm);color:#fff;font-size:.95rem;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .2s,transform .1s}.login-card button:active{transform:scale(.98)}.login-card button:disabled{opacity:.4;cursor:not-allowed}.login-error{color:var(--red);font-size:.8rem;margin-bottom:10px}.app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:72px;overflow-x:hidden;width:100%}.app-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:var(--bg-secondary);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.app-header .brand{font-size:1rem;font-weight:800;letter-spacing:2px;color:var(--text-primary)}.app-header .user-info{display:flex;align-items:center;gap:10px}.app-header .username{color:var(--text-secondary);font-size:.8rem;font-weight:500}.app-header .logout-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);padding:5px 10px;font-size:.7rem;font-family:inherit;cursor:pointer;transition:all .2s}.app-header .logout-btn:hover{border-color:var(--text-secondary);color:var(--text-secondary)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--bg-secondary);border-top:1px solid var(--border);display:flex;justify-content:space-around;padding:6px 0;padding-bottom:max(6px,env(safe-area-inset-bottom));z-index:100}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:none;color:var(--text-muted);font-size:.7rem;font-family:inherit;font-weight:600;cursor:pointer;padding:10px 20px;border-radius:var(--radius-sm);transition:color .2s;text-transform:uppercase;letter-spacing:.5px}.bottom-nav button.active{color:var(--accent)}.bottom-nav button svg{width:24px;height:24px}.day-selector{display:flex;gap:6px;padding:14px 16px;overflow-x:auto;scrollbar-width:none}.day-selector::-webkit-scrollbar{display:none}.day-btn{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s;min-width:56px;font-family:inherit;position:relative}.day-btn .day-label{font-size:.7rem;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.day-btn .day-name{font-size:.6rem;font-weight:600;color:var(--text-muted)}.day-btn.active{border-color:var(--accent);background:var(--accent-soft)}.day-btn.active .day-label{color:var(--text-primary)}.day-btn.active .day-name{color:var(--accent)}.day-btn.today:after{content:"";position:absolute;top:4px;right:4px;width:4px;height:4px;border-radius:50%;background:var(--green)}.day-btn.rest{opacity:.3;cursor:default}.workout-header-bar{padding:8px 20px;display:flex;align-items:baseline;gap:10px}.workout-header-bar h2{font-size:1.3rem;font-weight:800;letter-spacing:-.5px;color:var(--text-primary)}.workout-header-bar .muscles{font-size:.75rem;color:var(--text-muted);font-weight:500}.workout-date-bar{padding:4px 20px 14px;display:flex;align-items:center;gap:10px}.workout-date-bar input[type=date]{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);padding:8px 12px;font-size:.8rem;font-family:inherit;outline:none;color-scheme:dark}.workout-date-bar input[type=date]:focus{border-color:var(--accent)}.save-btn{padding:8px 18px;background:var(--accent);border:none;border-radius:var(--radius-sm);color:#fff;font-size:.8rem;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .2s,transform .1s;margin-left:auto}.save-btn:active{transform:scale(.96)}.save-btn:disabled{opacity:.4}.save-feedback{font-size:.75rem;color:var(--green);font-weight:600;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.exercises-list{padding:0 16px;display:flex;flex-direction:column;gap:10px;overflow:hidden;width:100%}.finish-workout-bar{padding:20px 16px 10px;display:flex;flex-direction:column;align-items:center;gap:8px}.finish-btn{width:100%;padding:16px;background:var(--accent);border:none;border-radius:var(--radius-md);color:#fff;font-size:1rem;font-weight:700;font-family:inherit;cursor:pointer;transition:opacity .2s,transform .1s;letter-spacing:.5px}.finish-btn:active{transform:scale(.97)}.finish-btn:disabled{opacity:.4;cursor:not-allowed}.exercise-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;max-width:100%;transition:border-color .4s ease,box-shadow .4s ease,background .4s ease}.exercise-card.card-completed{border-color:#8b5cf666;box-shadow:0 0 12px #8b5cf626,inset 0 0 30px #8b5cf608;background:linear-gradient(135deg,var(--bg-card),rgba(139,92,246,.05))}.exercise-card-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;gap:12px}.exercise-info{flex:1;min-width:0;overflow:hidden}.exercise-name-row{font-size:.9rem;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:8px;overflow:hidden}.exercise-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exercise-number{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;font-size:.65rem;font-weight:800;flex-shrink:0;background:var(--accent-soft);color:var(--accent)}.exercise-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.meta-badge{display:inline-flex;align-items:center;padding:2px 7px;background:#ffffff0a;border-radius:4px;font-size:.65rem;font-weight:600;color:var(--text-secondary)}.variation-wrap{position:relative;flex-shrink:0}.variation-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:var(--radius-sm);color:var(--accent);cursor:pointer;transition:all .15s}.variation-btn:active{transform:scale(.9)}.variation-btn svg{width:15px;height:15px}.variation-dropdown{position:absolute;top:40px;right:0;width:280px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);z-index:50;padding:8px;animation:dropIn .15s ease}@keyframes dropIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.variation-dropdown-title{font-size:.65rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;padding:4px 8px 8px}.variation-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px;background:none;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer;font-family:inherit;text-align:left;transition:all .15s;color:var(--text-primary)}.variation-option:hover{background:#ffffff08}.variation-option.selected{border-color:var(--accent-border);background:var(--accent-soft)}.variation-radio{font-size:.6rem;color:var(--accent);position:absolute;right:18px}.variation-option{position:relative}.variation-name{font-size:.8rem;font-weight:600}.variation-obs{font-size:.65rem;color:var(--text-muted);font-style:italic}.exercise-obs{padding:0 16px 10px;font-size:.72rem;color:var(--text-muted);font-style:italic;line-height:1.4;word-break:break-word;overflow-wrap:anywhere}.prep-section{border-top:1px solid var(--border);padding:12px 16px}.working-weight-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ww-label{font-size:.75rem;font-weight:600;color:var(--text-secondary)}.ww-input-wrap{display:flex;align-items:center;gap:6px}.ww-input{width:65px;padding:7px 10px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.9rem;font-family:inherit;font-weight:700;outline:none;text-align:center}.ww-input:focus{border-color:var(--accent)}.ww-input::placeholder{color:var(--text-muted);font-weight:400}.ww-unit{font-size:.75rem;color:var(--text-muted);font-weight:500}.prep-rows{display:flex;flex-direction:column;gap:6px}.prep-row{display:flex;align-items:center;gap:8px}.prep-label{font-size:.68rem;font-weight:600;color:var(--text-muted);min-width:76px}.prep-pct{font-size:.6rem;color:var(--text-muted);font-weight:500;min-width:32px;text-align:right}.sets-section-label{font-size:.65rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.exercise-sets{border-top:1px solid var(--border);padding:12px 16px;display:flex;flex-direction:column;gap:8px}.set-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:var(--radius-sm)}.set-label{font-size:.7rem;font-weight:700;color:var(--text-muted);min-width:52px}.set-input-group{display:flex;align-items:center;gap:5px;flex:1}.set-input-group label{font-size:.65rem;color:var(--text-muted);font-weight:500}.set-input-group input{width:60px;padding:7px 8px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.85rem;font-family:inherit;font-weight:600;outline:none;text-align:center;transition:border-color .2s}.set-input-group input:focus{border-color:var(--accent)}.set-input-group input::placeholder{color:var(--text-muted);font-weight:400}.set-rir{font-size:.65rem;color:var(--text-secondary);font-weight:600;min-width:40px;text-align:right}.history-page{padding:20px}.history-page h2{font-size:1.2rem;font-weight:800;margin-bottom:16px}.history-list{display:flex;flex-direction:column;gap:6px}.history-item{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s}.history-item:active{transform:scale(.98)}.history-item .date{font-weight:600;font-size:.85rem}.history-item .day-tag{padding:3px 8px;border-radius:4px;font-size:.7rem;font-weight:700;color:var(--accent);background:var(--accent-soft)}.history-detail{padding:20px}.history-detail h2{font-size:1.2rem;font-weight:800;margin-bottom:4px}.history-detail .back-btn{display:inline-flex;align-items:center;gap:4px;background:none;border:none;color:var(--accent);font-size:.8rem;font-weight:600;font-family:inherit;cursor:pointer;margin-bottom:14px;padding:0}.history-exercise{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin-bottom:8px}.history-exercise h4{font-size:.85rem;font-weight:700;margin-bottom:6px;color:var(--text-primary)}.history-exercise .set-detail{display:flex;gap:14px;font-size:.75rem;color:var(--text-muted);padding:3px 0}.history-exercise .set-detail span{font-weight:600;color:var(--text-secondary)}.charts-page{padding:20px}.charts-page h2{font-size:1.2rem;font-weight:800;margin-bottom:16px}.chart-selector{margin-bottom:16px}.chart-selector select{width:100%;padding:11px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.85rem;font-family:inherit;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6' fill='%2344445a'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.chart-selector select:focus{border-color:var(--accent)}.chart-container{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px 10px;min-height:280px;display:flex;align-items:center;justify-content:center}.chart-placeholder{color:var(--text-muted);font-size:.85rem;text-align:center}.chart-legend{display:flex;gap:16px;justify-content:center;margin-top:12px;flex-wrap:wrap}.chart-legend-item{display:flex;align-items:center;gap:5px;font-size:.7rem;color:var(--text-secondary);font-weight:500}.chart-legend-dot{width:8px;height:8px;border-radius:50%}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.empty-state svg{width:48px;height:48px;color:var(--text-muted);margin-bottom:12px;opacity:.4}.empty-state p{color:var(--text-muted);font-size:.85rem;line-height:1.5}.loading{display:flex;align-items:center;justify-content:center;padding:40px}.spinner{width:28px;height:28px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}@media(min-width:768px){.app{max-width:540px;margin:0 auto}.login-card{padding:48px 44px}.bottom-nav{max-width:540px;left:50%;transform:translate(-50%);border-radius:var(--radius-md) var(--radius-md) 0 0}}.doubts-page{padding:0 16px 16px;display:flex;flex-direction:column;height:calc(100vh - 130px)}.doubts-loading{text-align:center;color:var(--text-muted);padding:40px}.profile-form-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:28px 20px;margin-top:8px}.profile-form-header{text-align:center;margin-bottom:24px}.profile-form-icon{font-size:2.5rem;display:block;margin-bottom:8px}.profile-form-header h2{font-size:1.2rem;color:var(--text-primary);margin:0 0 4px}.profile-form-header p{font-size:.8rem;color:var(--text-muted);margin:0}.profile-form{display:flex;flex-direction:column;gap:14px}.profile-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-field{display:flex;flex-direction:column;gap:4px}.profile-field label{font-size:.7rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px}.profile-field input,.profile-field select{padding:10px 12px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.9rem;font-family:inherit;outline:none}.profile-field input:focus,.profile-field select:focus{border-color:var(--accent)}.profile-field select{cursor:pointer}.profile-submit{margin-top:8px;padding:14px;background:var(--accent);border:none;border-radius:var(--radius-md);color:#fff;font-size:1rem;font-weight:700;font-family:inherit;cursor:pointer;transition:opacity .2s}.profile-submit:disabled{opacity:.5}.chat-container{flex:1;overflow-y:auto;display:flex;flex-direction:column}.chat-welcome{display:flex;flex-direction:column;align-items:center;padding:30px 0 20px;text-align:center}.chat-welcome-icon{font-size:3rem;margin-bottom:8px}.chat-welcome h2{color:var(--text-primary);font-size:1.2rem;margin:0 0 4px}.chat-welcome p{color:var(--text-muted);font-size:.85rem;margin:0 0 20px}.suggestion-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:400px}.suggestion-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;transition:border-color .2s,background .2s;font-family:inherit}.suggestion-card:hover,.suggestion-card:active{border-color:var(--accent);background:#8b5cf60f}.suggestion-icon{font-size:1.4rem}.suggestion-label{font-size:.72rem;font-weight:600;color:var(--text-secondary)}.chat-messages{display:flex;flex-direction:column;gap:10px;padding:12px 0}.chat-bubble{display:flex;gap:8px;max-width:88%;align-items:flex-start}.chat-bubble.user{align-self:flex-end;flex-direction:row-reverse}.chat-bubble.assistant{align-self:flex-start}.bubble-avatar{font-size:1.2rem;flex-shrink:0;margin-top:4px}.bubble-text{padding:10px 14px;border-radius:16px;font-size:.85rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.chat-bubble.user .bubble-text{background:var(--accent);color:#fff;border-bottom-right-radius:4px}.chat-bubble.assistant .bubble-text{background:var(--bg-card);border:1px solid var(--border);color:var(--text-primary);border-bottom-left-radius:4px}.bubble-text.typing{display:flex;gap:4px;align-items:center;padding:12px 18px}.bubble-text.typing .dot{width:7px;height:7px;background:var(--text-muted);border-radius:50%;animation:typingBounce 1.2s ease-in-out infinite}.bubble-text.typing .dot:nth-child(2){animation-delay:.15s}.bubble-text.typing .dot:nth-child(3){animation-delay:.3s}@keyframes typingBounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}.chat-input-bar{display:flex;gap:8px;padding:10px 0 2px;border-top:1px solid var(--border)}.chat-input-bar input{flex:1;padding:12px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:24px;color:var(--text-primary);font-size:.9rem;font-family:inherit;outline:none}.chat-input-bar input:focus{border-color:var(--accent)}.chat-input-bar input::placeholder{color:var(--text-muted)}.chat-input-bar button{width:44px;height:44px;border-radius:50%;background:var(--accent);border:none;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:opacity .2s}.chat-input-bar button:disabled{opacity:.3;cursor:not-allowed}.custom-select{position:relative;width:100%}.custom-select-trigger{width:100%;padding:10px 12px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:.9rem;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;outline:none;transition:border-color .2s}.custom-select.open .custom-select-trigger{border-color:var(--accent)}.custom-select-trigger .placeholder{color:var(--text-muted)}.custom-select-arrow{flex-shrink:0;color:var(--text-muted);transition:transform .2s}.custom-select.open .custom-select-arrow{transform:rotate(180deg)}.custom-select-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);max-height:200px;overflow-y:auto;z-index:100;box-shadow:0 8px 24px #0006;animation:selectFadeIn .15s ease}@keyframes selectFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.custom-select-option{padding:10px 14px;font-size:.85rem;color:var(--text-secondary);cursor:pointer;transition:background .15s,color .15s}.custom-select-option:hover{background:#8b5cf61a;color:var(--text-primary)}.custom-select-option.selected{background:#8b5cf626;color:var(--accent);font-weight:600}.chat-header-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 0 4px}.chat-header-title{font-weight:700;font-size:1rem;color:var(--text-primary)}.chat-edit-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:6px;border-radius:8px;display:flex;align-items:center;transition:color .2s,background .2s}.chat-edit-btn:hover,.chat-edit-btn:active{color:var(--accent);background:#8b5cf614}.edit-profile-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;display:flex;flex-direction:column;gap:10px;animation:selectFadeIn .2s ease}.edit-profile-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.edit-profile-save{padding:10px;background:var(--accent);border:none;border-radius:var(--radius-sm);color:#fff;font-size:.85rem;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .2s}.edit-profile-save:disabled{opacity:.5}.workout-selector-section{width:100%;margin-bottom:16px}.workout-selector-label{display:block;font-size:.85rem;font-weight:600;color:var(--text-muted);margin-bottom:8px;text-align:center;letter-spacing:.5px;text-transform:uppercase}.login-lottie{margin-bottom:-8px;display:flex;justify-content:center}
