body{background:#f5f5f5;min-height:100vh;margin:0;font-family:system-ui,sans-serif}:root{--accent:#2563eb;--accent-dark:#1d4ed8;--ok:#16a34a;--warn:#ea8c1e;--same:#a78bfa;--text:#1f2430;--text-muted:#6b7280;--border:#e5e7eb;--surface:#fff;--surface-muted:#f8fafc}header{background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1.1rem 2rem;display:flex}header h1{color:var(--text);margin:0;font-size:1.25rem;font-weight:600}.header-actions{align-items:center;gap:.6rem;display:flex}.plan-btn{color:var(--text-muted);border:1px solid var(--border);background:0 0;padding:.5rem .9rem;font-size:.8rem}.plan-btn:hover{background:var(--surface-muted);color:var(--text)}main{box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:1.25rem;width:100%;max-width:960px;margin:0 auto;padding:2rem 1.5rem 4rem;display:flex}button{cursor:pointer;border:none;border-radius:8px;font-family:inherit;font-size:.9rem;font-weight:500;transition:background-color .15s,color .15s,border-color .15s}#signin-btn{background:var(--accent);color:#fff;padding:.6rem 1.1rem}#signin-btn:hover{background:var(--accent-dark)}#signin-btn.signed-in{background:var(--surface);color:var(--ok);border:1px solid var(--ok)}.controls-row{align-items:center;gap:.75rem;display:flex}.timer{align-items:center;gap:.35rem;display:flex}.timer-display{font-variant-numeric:tabular-nums;color:var(--text);letter-spacing:.02em;min-width:3.2rem;font-size:1rem;font-weight:600}.timer-btn{color:var(--text-muted);border:1px solid var(--border);background:0 0;border-radius:6px;padding:.25rem .5rem;font-size:.78rem;line-height:1}.timer-btn:hover{background:var(--surface-muted);color:var(--text)}.category-select{border:1px solid var(--border);background:var(--surface);color:var(--text);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");background-position:right 1rem center;background-repeat:no-repeat;border-radius:8px;padding:.65rem 2.5rem .65rem 1rem;font-family:inherit;font-size:.95rem}.category-select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb26}.lift-card{background:var(--surface);border:1px solid var(--border);box-sizing:border-box;border-radius:14px;width:100%;padding:1.5rem;box-shadow:0 1px 2px #1018280a,0 4px 12px #1018280a}.lift-card h2{color:var(--text);margin:0 0 1.1rem;font-size:1.1rem;font-weight:600}.lift-table{border-collapse:collapse;width:100%}.lift-table th{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);text-align:center;padding:0 .4rem .5rem;font-size:.72rem;font-weight:600}.lift-table .col-exercise{text-align:left;min-width:9.5rem}.lift-table .col-trend{width:3.6rem}.lift-table tbody tr{border-top:1px solid var(--border)}.lift-table td{text-align:center;vertical-align:middle;padding:.5rem .25rem}.lift-table td.col-exercise{text-align:left;color:var(--text);font-size:.92rem;font-weight:500}.lift-table td.col-exercise a{color:var(--text);border-bottom:1px dashed var(--accent);text-decoration:none}.lift-table td.col-exercise a:hover{color:var(--accent)}.sparkline-btn{background:0 0;border-radius:6px;padding:2px}.sparkline-btn:hover{background:var(--surface-muted)}.sparkline{display:block}.sparkline-empty{width:56px;height:28px}.number-field{border:1px solid var(--border);background:var(--surface-muted);border-radius:7px;align-items:center;display:inline-flex;overflow:hidden}.band-select{border:1px solid var(--border);background:var(--surface-muted);width:4.2rem;color:var(--text);border-radius:7px;padding:.35rem .3rem;font-family:inherit;font-size:.85rem}.number-field input{text-align:center;width:2.1rem;color:var(--text);background:0 0;border:none;padding:.35rem 0;font-family:inherit;font-size:.85rem}.number-field input::placeholder{color:#b6bcc6}.number-field input:focus{outline:none}.number-field .stepper-btn{color:var(--text-muted);background:0 0;border-radius:0;width:1.15rem;height:1.8rem;padding:0;font-size:.85rem;line-height:1}.number-field .stepper-btn:hover{background:var(--border);color:var(--text)}.number-field.diff-same{border-color:var(--same);background:#a78bfa0f}.number-field.diff-less{border-color:var(--warn);background:#ea8c1e0f}.number-field.diff-more{border-color:var(--ok);background:#16a34a0f}.lift-card-actions{justify-content:flex-end;gap:.6rem;margin-top:1.25rem;display:flex}.btn-primary{background:var(--accent);color:#fff;padding:.65rem 1.3rem}.btn-primary:hover{background:var(--accent-dark)}.btn-secondary{color:var(--text-muted);border:1px solid var(--border);background:0 0;padding:.65rem 1.1rem}.btn-secondary:hover{background:var(--surface-muted);color:var(--text)}.status{color:var(--text-muted);margin:0;font-size:.85rem}.modal-overlay{z-index:100;background:#0f172a73;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal-card{background:var(--surface);box-sizing:border-box;border-radius:14px;width:100%;max-width:600px;padding:1.5rem;box-shadow:0 8px 30px #1018282e}.modal-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.modal-header h3{color:var(--text);margin:0;font-size:1.05rem;font-weight:600}.modal-close{color:var(--text-muted);background:0 0;border-radius:6px;padding:.1rem .4rem;font-size:1.4rem;line-height:1}.modal-close:hover{background:var(--surface-muted);color:var(--text)}.modal-empty{color:var(--text-muted);font-size:.9rem}.modal-subtitle{color:var(--text-muted);margin:0 0 .75rem;font-size:.78rem}.plan-text{resize:vertical;box-sizing:border-box;border:1px solid var(--border);width:100%;height:280px;color:var(--text);background:var(--surface-muted);border-radius:8px;padding:.75rem;font-family:ui-monospace,monospace;font-size:.85rem}.trend-chart{cursor:crosshair;width:100%}.trend-tooltip{color:var(--text);min-height:1.2em;margin-top:.5rem;font-size:.85rem}.trend-detail-table{border-collapse:collapse;margin-top:.5rem}.trend-detail-table th,.trend-detail-table td{border:1px solid var(--border);text-align:center;color:var(--text);padding:.3rem .6rem;font-size:.8rem;font-weight:400}.trend-detail-table thead th,.trend-detail-table tbody th{color:var(--text-muted);background:var(--surface-muted);font-weight:600}
