:root{--bg:#f5efe4;--bg-accent:#efe4d1;--surface:#fffcf857;--surface-strong:#fff9f0;--text:#1f1b16;--muted:#6f6558;--line:#4736230d;--brand:#d6633a;--brand-deep:#8f3d22;--brand-soft:#f0b18f;--success:#2f7d58;--shadow:0 6px 16px #5d38190a;--radius-lg:20px;--radius-md:16px;--radius-sm:12px;--font-sans:"Avenir Next", "Segoe UI", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark],:root[data-theme=dark]{--bg:#15120f;--bg-accent:#221b15;--surface:#28211bc7;--surface-strong:#2a221c;--text:#f6efe6;--muted:#b9ac9b;--line:#fff4e814;--brand:#ef7b52;--brand-deep:#ffc1a9;--brand-soft:#7c4e3a;--success:#6dc293;--shadow:0 10px 28px #00000047;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme]){--bg:#15120f;--bg-accent:#221b15;--surface:#28211bc7;--surface-strong:#2a221c;--text:#f6efe6;--muted:#b9ac9b;--line:#fff4e814;--brand:#ef7b52;--brand-deep:#ffc1a9;--brand-soft:#7c4e3a;--success:#6dc293;--shadow:0 10px 28px #00000047;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{font-size:16px}body{min-height:100vh;font-family:var(--font-sans);background:var(--bg);color:var(--text);margin:0}html[data-theme=dark] body,:root[data-theme=dark] body,body[data-theme=dark]{background:var(--bg)}@media (prefers-color-scheme:dark){:root:not([data-theme]) body{background:var(--bg)}}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.72}a{color:inherit;text-decoration:none}.page-shell{justify-content:center;align-items:flex-start;min-height:100vh;padding:16px 12px 24px;display:flex}.mobile-frame{background:0 0;flex-direction:column;width:min(100%,420px);min-height:calc(100vh - 32px);display:flex;overflow:visible}.screen{flex-direction:column;gap:16px;padding:10px;display:flex}.hero-card,.panel,.stat-card,.workout-card,.exercise-row,.signin-card{border-radius:var(--radius-lg);background:var(--surface);border:1px solid #0000}.hero-card{background:#fffcf76b;padding:20px}.hero-card h1,.signin-card h1{letter-spacing:-.04em;margin:0;font-size:clamp(2rem,8vw,3rem);line-height:.95}.muted{color:var(--muted);margin:0;line-height:1.5}.signin-card{margin-top:auto;padding:20px}.signin-form{flex-direction:column;gap:12px;margin-top:16px;display:flex}.text-input{width:100%;color:var(--text);background:#ffffffd1;border:1px solid #57452f14;border-radius:10px;padding:11px 12px}.text-area-input{resize:vertical;min-height:48px}.text-input:focus{outline-offset:2px;outline:2px solid #d6633a3d}.primary-button,.secondary-button,.tab-button{transition:transform .18s,background .18s,color .18s}.primary-button{background:var(--brand);color:#fffaf4;box-shadow:none;border-radius:10px;padding:12px 14px;font-weight:700}.secondary-button{color:var(--text);background:#ffffffad;border-radius:10px;padding:12px 14px;font-weight:700}.primary-button:active,.secondary-button:active,.tab-button:active{transform:scale(.98)}.or-divider{color:var(--muted);grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;font-size:.88rem;display:grid}.auth-message{color:var(--brand-deep);background:#ffffff9e;border-radius:16px;margin:0;padding:12px 14px;font-size:.92rem;line-height:1.45}.or-divider:before,.or-divider:after{content:"";background:var(--line);height:1px}.stack{flex-direction:column;gap:12px;display:flex}.toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.toolbar h2,.panel h3,.workout-card h3,.signin-card h2,.toolbar p,.panel p,.workout-card p{margin:0}.avatar-pill,.tag,.mini-pill{border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.avatar-pill{min-width:42px;height:42px;color:var(--brand-deep);background:#d6633a24;padding:0 14px;font-weight:800}.stats-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.stat-card{padding:16px}.stat-label{color:var(--muted);font-size:.88rem}.stat-value{letter-spacing:-.04em;margin-top:10px;font-size:1.7rem;font-weight:800}.panel{background:#fffbf747;padding:16px}.panel-header,.workout-header,.exercise-meta,.split-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.panel-header{margin-bottom:12px}.tag{color:var(--brand-deep);background:#d6633a12;padding:8px 11px;font-size:.78rem;font-weight:700}.tab-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.tab-button{color:var(--muted);background:0 0;border-radius:16px;padding:12px 10px;font-weight:700}.tab-button.active{color:var(--brand-deep);background:#d6633a1f}.input-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.workout-card{padding:16px}.workout-list{flex-direction:column;gap:12px;display:flex}.mini-pill{color:var(--success);white-space:nowrap;background:#2f7d5814;padding:7px 10px;font-size:.75rem;font-weight:700}.exercise-row{padding:14px 16px}.simple-frame{width:min(100%,560px)}.simple-screen{gap:16px}.site-header{justify-content:space-between;align-items:center;gap:12px;padding-bottom:4px;display:flex}.header-left,.header-actions{align-items:center;gap:10px;display:flex}.site-brand{color:var(--text);background:0 0;padding:0;display:flex}.site-brand-mark{letter-spacing:-.03em;margin:0;font-size:1.1rem;font-weight:800}.account-button,.ghost-button{color:var(--text);background:#ffffff94;border-radius:16px;padding:12px 14px;font-weight:700}.account-menu{z-index:20;position:relative}.account-avatar-button{background:0 0;justify-content:center;align-items:center;padding:0;display:inline-flex}.account-avatar{width:32px;height:32px;color:var(--brand-deep);background:#d6633a1a;border-radius:999px;justify-content:center;align-items:center;font-size:.82rem;font-weight:800;display:inline-flex}.account-dropdown{min-width:140px;box-shadow:var(--shadow);background:#fffcf8f0;border:1px solid #4736230f;border-radius:16px;padding:8px;position:absolute;top:calc(100% + 10px);right:0}.account-dropdown-item{width:100%;color:var(--text);text-align:left;background:0 0;border-radius:12px;padding:12px 14px;font-weight:700}.account-dropdown-item:hover{background:#d6633a14}.template-list,.exercise-list{flex-direction:column;gap:10px;display:flex}.template-card{border-radius:var(--radius-md);background:#ffffff75;border:1px solid #4736230d;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:12px 14px;display:flex}.template-main{width:100%;color:var(--text);text-align:left;background:0 0;flex:1;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.template-edit-button{color:var(--text);background:#fff9;border-radius:6px;padding:5px 7px;font-weight:700}.icon-button{width:22px;height:22px;color:var(--text);background:#fff9;border-radius:6px;place-items:center;font-size:.76rem;font-weight:700;line-height:1;display:grid}.template-remove-button{color:var(--brand-deep);background:#d6633a14;border-radius:6px;padding:5px 7px;font-weight:700}.workout-screen-header{grid-template-columns:36px minmax(0,1fr) auto;align-items:start;gap:6px;width:100%;display:grid}.detail-header-actions{justify-content:flex-end;min-width:0;display:flex}.workout-screen-title{flex-direction:column;align-items:flex-start;gap:4px;min-width:0;display:flex}.workout-screen-title h2{min-width:0;margin:0}.session-date-button{color:var(--muted);white-space:nowrap;text-align:left;appearance:none;background:0 0;border:0;min-width:0;padding:0;font-size:.8rem;font-weight:600}.detail-actions-stack{flex-direction:column;align-self:stretch;gap:10px;width:100%;display:flex}.detail-actions-stack>*{width:100%;display:block}.detail-single-action{width:100%}.danger-button{color:var(--brand-deep);background:#d6633a1a}.back-arrow{width:26px;height:26px;color:var(--text);background:#ffffff94;border-radius:6px;font-size:.88rem;font-weight:800}.detail-header,.detail-title{flex-direction:column;gap:10px;display:flex}.editor-panel{padding:16px}.editor-grid{grid-template-columns:1fr;gap:12px;display:grid}.editor-field{flex-direction:column;gap:8px;display:flex}.editor-field-full{grid-column:1/-1}.history-list{flex-direction:column;gap:8px;display:flex}.account-summary{align-items:center;gap:12px;display:flex}.theme-toggle{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;display:grid}.theme-toggle-button{color:var(--muted);background:#ffffff94;border-radius:10px;padding:10px 12px;font-weight:700}.theme-toggle-button.active{color:var(--brand-deep);background:#d6633a1f}.account-summary-avatar{width:42px;height:42px;color:var(--brand-deep);background:#d6633a1f;border-radius:999px;place-items:center;font-weight:800;display:grid}.account-summary-copy{flex-direction:column;gap:4px;display:flex}.account-summary-copy h3{margin:0}.month-calendar{flex-direction:column;gap:10px;display:flex}.month-calendar-header{grid-template-columns:36px 1fr 36px;align-items:center;gap:4px;display:grid}.month-calendar-title{text-align:center;font-weight:700}.calendar-arrow{width:24px;height:24px;color:var(--text);background:#ffffff94;border-radius:6px;font-size:.8rem;font-weight:800}.calendar-arrow:disabled{opacity:.4;cursor:default}.month-weekdays,.month-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.month-weekday{color:var(--muted);text-align:center;font-size:.74rem;font-weight:700}.month-day{aspect-ratio:1;color:var(--text);background:#57452f14;border:1px solid #0000;border-radius:6px;place-items:center;padding:0;font-weight:700;display:grid}.month-day-empty{background:0 0}.month-level-2{background:#d6633a61}.month-level-3{background:#d6633a99}.month-level-4{color:#fff;background:#d6633ad1}.month-day-today{border-color:#4736237a}.month-day-selected{background:#d6633a33;border-color:#d6633a80}.month-day:disabled{cursor:default}.history-item{width:100%;color:var(--text);text-align:left;background:0 0;padding:8px 0}.history-item+.history-item{border-top:1px solid #4736230d}.history-item-main{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.history-date{color:var(--muted);white-space:nowrap;font-size:.84rem;font-weight:700}.exercise-card{border-radius:var(--radius-lg);background:#fffbf73d;border:1px solid #4736230d;padding:14px}.exercise-card-header{justify-content:space-between;align-items:center;gap:4px;display:flex}.exercise-card-heading{flex-direction:column;flex:1;gap:3px;display:flex}.exercise-card-header h3{margin:0}.exercise-note{color:var(--text);font-size:.92rem;line-height:1.45}.exercise-note-input{min-height:42px}.exercise-subtext{color:var(--muted);font-size:.8rem;line-height:1.4}.set-table{background:#ffffff61;border:1px solid #57452f0f;border-radius:10px;flex-direction:column;margin-top:10px;display:flex;overflow:hidden}.set-table-header,.set-row{grid-template-columns:.9fr 1.3fr 1fr .9fr .7fr;align-items:center;gap:8px;padding:10px;display:grid}.set-table-header{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;background:#fff9f085;border-bottom:1px solid #57452f0f;font-size:.64rem;font-weight:800}.set-row+.set-row{border-top:1px solid #57452f0d}.set-index{font-weight:800}.set-cell{min-width:0}.set-index-cell{flex-direction:column;gap:2px;display:flex}.set-target{color:var(--muted);font-size:.64rem}.previous-set{color:var(--brand-deep);font-size:.72rem;font-weight:600}.previous-set-empty{color:var(--muted);font-weight:500}.compact-input{padding:8px}.spreadsheet-input{text-align:center;border-radius:8px;min-width:0}.checkbox-cell{justify-content:center;align-items:center;display:flex}.checkbox-cell input{width:13px;height:13px}@media (max-width:520px){.set-table-header,.set-row{grid-template-columns:.9fr 1.2fr .95fr .85fr .65fr;gap:6px;padding:10px}.set-table-header{font-size:.7rem}.previous-set,.set-target{font-size:.74rem}.spreadsheet-input{padding:9px 8px}}.exercise-row+.exercise-row{margin-top:10px}.exercise-name{font-weight:700}.exercise-detail{color:var(--muted);font-size:.92rem}.rep-target-list{flex-direction:column;gap:8px;display:flex}.rep-target-row{grid-template-columns:64px 1fr 1fr;align-items:end;gap:8px;display:grid}.rep-target-label{font-weight:700}.rep-target-field{flex-direction:column;gap:6px;display:flex}.rep-target-caption{color:var(--muted);font-size:.78rem;font-weight:700}.progress-chart{flex-direction:column;gap:10px;display:flex}.template-progress-list{flex-direction:column;gap:14px;display:flex}.template-progress-section{flex-direction:column;gap:10px;display:flex}.template-progress-section h4{margin:0}.progress-bar-row{grid-template-columns:60px 1fr 40px;align-items:center;gap:10px;display:grid}.progress-date,.progress-value{font-size:.84rem;font-weight:700}.progress-bar-track{background:#ffffff9e;border-radius:999px;height:10px;overflow:hidden}.progress-bar-fill{background:#d6633ab3;border-radius:999px;height:100%}.modal-backdrop{z-index:1000;background:#1f1b1638;justify-content:center;align-items:center;width:100vw;min-height:100dvh;padding:18px;display:flex;position:fixed;inset:0}.modal-card{background:#fffaf4fa;border-radius:16px;flex-direction:column;gap:12px;width:min(100%,340px);padding:16px;display:flex;box-shadow:0 20px 40px #1f1b161f}.modal-header{margin-bottom:0}.modal-copy{color:var(--muted);margin:0;line-height:1.45}.modal-actions{flex-direction:column;gap:10px;width:100%;margin-top:2px;display:flex}.modal-actions>*{width:100%}.bottom-nav{background:#fff7edd6;border-top:1px solid #634d3214;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:auto;padding:14px 16px 18px;display:grid}.nav-item{color:var(--muted);border-radius:18px;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;font-size:.78rem;font-weight:700;display:flex}.nav-item.active{color:var(--brand-deep);background:#d6633a1f}.empty-state{border-radius:var(--radius-md);color:var(--muted);background:#ffffffa3;padding:16px}html[data-theme=dark] .hero-card,html[data-theme=dark] .panel,html[data-theme=dark] .stat-card,html[data-theme=dark] .workout-card,html[data-theme=dark] .exercise-row,html[data-theme=dark] .signin-card,html[data-theme=dark] .template-card,html[data-theme=dark] .exercise-card,html[data-theme=dark] .set-table,html[data-theme=dark] .modal-card,html[data-theme=dark] .empty-state,:root[data-theme=dark] .hero-card,:root[data-theme=dark] .panel,:root[data-theme=dark] .stat-card,:root[data-theme=dark] .workout-card,:root[data-theme=dark] .exercise-row,:root[data-theme=dark] .signin-card,:root[data-theme=dark] .template-card,:root[data-theme=dark] .exercise-card,:root[data-theme=dark] .set-table,:root[data-theme=dark] .modal-card,:root[data-theme=dark] .empty-state,body[data-theme=dark] .hero-card,body[data-theme=dark] .panel,body[data-theme=dark] .stat-card,body[data-theme=dark] .workout-card,body[data-theme=dark] .exercise-row,body[data-theme=dark] .signin-card,body[data-theme=dark] .template-card,body[data-theme=dark] .exercise-card,body[data-theme=dark] .set-table,body[data-theme=dark] .modal-card,body[data-theme=dark] .empty-state{border-color:#fff4e812}html[data-theme=dark] .hero-card,:root[data-theme=dark] .hero-card,body[data-theme=dark] .hero-card,html[data-theme=dark] .signin-card,html[data-theme=dark] .panel,html[data-theme=dark] .exercise-card,html[data-theme=dark] .template-card,html[data-theme=dark] .set-table,html[data-theme=dark] .modal-card,html[data-theme=dark] .empty-state,:root[data-theme=dark] .signin-card,:root[data-theme=dark] .panel,:root[data-theme=dark] .exercise-card,:root[data-theme=dark] .template-card,:root[data-theme=dark] .set-table,:root[data-theme=dark] .modal-card,:root[data-theme=dark] .empty-state,body[data-theme=dark] .signin-card,body[data-theme=dark] .panel,body[data-theme=dark] .exercise-card,body[data-theme=dark] .template-card,body[data-theme=dark] .set-table,body[data-theme=dark] .modal-card,body[data-theme=dark] .empty-state{background:#221c17}html[data-theme=dark] .text-input,html[data-theme=dark] .account-button,html[data-theme=dark] .ghost-button,html[data-theme=dark] .secondary-button,html[data-theme=dark] .back-arrow,html[data-theme=dark] .calendar-arrow,html[data-theme=dark] .template-edit-button,html[data-theme=dark] .icon-button,html[data-theme=dark] .theme-toggle-button,:root[data-theme=dark] .text-input,:root[data-theme=dark] .account-button,:root[data-theme=dark] .ghost-button,:root[data-theme=dark] .secondary-button,:root[data-theme=dark] .back-arrow,:root[data-theme=dark] .calendar-arrow,:root[data-theme=dark] .template-edit-button,:root[data-theme=dark] .icon-button,:root[data-theme=dark] .theme-toggle-button,body[data-theme=dark] .text-input,body[data-theme=dark] .account-button,body[data-theme=dark] .ghost-button,body[data-theme=dark] .secondary-button,body[data-theme=dark] .back-arrow,body[data-theme=dark] .calendar-arrow,body[data-theme=dark] .template-edit-button,body[data-theme=dark] .icon-button,body[data-theme=dark] .theme-toggle-button{color:var(--text);background:#ffffff0f;border-color:#fff4e814}html[data-theme=dark] .text-input,:root[data-theme=dark] .text-input,body[data-theme=dark] .text-input{background:#ffffff0d}html[data-theme=dark] .primary-button,:root[data-theme=dark] .primary-button,body[data-theme=dark] .primary-button{color:#1f1712}html[data-theme=dark] .tag,html[data-theme=dark] .avatar-pill,html[data-theme=dark] .account-avatar,html[data-theme=dark] .mini-pill,html[data-theme=dark] .nav-item.active,html[data-theme=dark] .tab-button.active,html[data-theme=dark] .month-day-selected,html[data-theme=dark] .theme-toggle-button.active,:root[data-theme=dark] .tag,:root[data-theme=dark] .avatar-pill,:root[data-theme=dark] .account-avatar,:root[data-theme=dark] .mini-pill,:root[data-theme=dark] .nav-item.active,:root[data-theme=dark] .tab-button.active,:root[data-theme=dark] .month-day-selected,:root[data-theme=dark] .theme-toggle-button.active,body[data-theme=dark] .tag,body[data-theme=dark] .avatar-pill,body[data-theme=dark] .account-avatar,body[data-theme=dark] .mini-pill,body[data-theme=dark] .nav-item.active,body[data-theme=dark] .tab-button.active,body[data-theme=dark] .month-day-selected,body[data-theme=dark] .theme-toggle-button.active{background:#ef7b5233}html[data-theme=dark] .month-day,:root[data-theme=dark] .month-day,body[data-theme=dark] .month-day{background:#ffffff14}html[data-theme=dark] .month-level-2,:root[data-theme=dark] .month-level-2,body[data-theme=dark] .month-level-2{background:#ef7b526b}html[data-theme=dark] .month-level-3,:root[data-theme=dark] .month-level-3,body[data-theme=dark] .month-level-3{background:#ef7b529e}html[data-theme=dark] .month-level-4,:root[data-theme=dark] .month-level-4,body[data-theme=dark] .month-level-4{color:#1f1712;background:#ef7b52e0}html[data-theme=dark] .set-table-header,:root[data-theme=dark] .set-table-header,body[data-theme=dark] .set-table-header{background:#ffffff0a}html[data-theme=dark] .modal-backdrop,:root[data-theme=dark] .modal-backdrop,body[data-theme=dark] .modal-backdrop{background:#0000007a}@media (prefers-color-scheme:dark){:root:not([data-theme]) .hero-card,:root:not([data-theme]) .panel,:root:not([data-theme]) .stat-card,:root:not([data-theme]) .workout-card,:root:not([data-theme]) .exercise-row,:root:not([data-theme]) .signin-card,:root:not([data-theme]) .template-card,:root:not([data-theme]) .exercise-card,:root:not([data-theme]) .set-table,:root:not([data-theme]) .modal-card,:root:not([data-theme]) .empty-state{border-color:#fff4e812}:root:not([data-theme]) .hero-card,:root:not([data-theme]) .signin-card,:root:not([data-theme]) .panel,:root:not([data-theme]) .exercise-card,:root:not([data-theme]) .template-card,:root:not([data-theme]) .set-table,:root:not([data-theme]) .modal-card,:root:not([data-theme]) .empty-state{background:#221c17}:root:not([data-theme]) .text-input,:root:not([data-theme]) .account-button,:root:not([data-theme]) .ghost-button,:root:not([data-theme]) .secondary-button,:root:not([data-theme]) .back-arrow,:root:not([data-theme]) .calendar-arrow,:root:not([data-theme]) .template-edit-button,:root:not([data-theme]) .icon-button,:root:not([data-theme]) .theme-toggle-button{color:var(--text);background:#ffffff0f;border-color:#fff4e814}:root:not([data-theme]) .text-input{background:#ffffff0d}:root:not([data-theme]) .primary-button{color:#1f1712}:root:not([data-theme]) .tag,:root:not([data-theme]) .avatar-pill,:root:not([data-theme]) .account-avatar,:root:not([data-theme]) .mini-pill,:root:not([data-theme]) .nav-item.active,:root:not([data-theme]) .tab-button.active,:root:not([data-theme]) .month-day-selected,:root:not([data-theme]) .theme-toggle-button.active{background:#ef7b5233}:root:not([data-theme]) .month-day{background:#ffffff14}:root:not([data-theme]) .month-level-2{background:#ef7b526b}:root:not([data-theme]) .month-level-3{background:#ef7b529e}:root:not([data-theme]) .month-level-4{color:#1f1712;background:#ef7b52e0}:root:not([data-theme]) .set-table-header{background:#ffffff0a}:root:not([data-theme]) .modal-backdrop{background:#0000007a}}@media (min-width:768px){.page-shell{padding:36px 24px 48px}.mobile-frame{width:min(100%,640px);min-height:auto;display:flex}.screen{padding:28px}.bottom-nav{display:none}}@media (max-width:520px){.page-shell{padding:10px 8px 16px}.mobile-frame{width:100%;min-height:calc(100vh - 20px)}.screen{gap:12px;padding:8px}.site-brand-mark{font-size:1rem}.panel-header{margin-bottom:6px}.month-weekdays,.month-grid{gap:4px}.month-day{border-radius:5px;font-size:.78rem}.session-date-button{font-size:.74rem}.detail-actions-stack,.modal-actions{gap:10px}.workout-screen-header{grid-template-columns:36px minmax(0,1fr) auto;gap:6px}.modal-backdrop{padding:12px}.modal-card{gap:10px;padding:14px}.exercise-subtext,.history-date,.previous-set,.set-target{font-size:.72rem}.set-table-header,.set-row{grid-template-columns:.82fr 1.08fr .92fr .82fr .58fr;gap:6px;padding:8px}.set-table-header{font-size:.6rem}.spreadsheet-input{padding:8px 6px;font-size:.84rem}}
