:root{--safe-top: env(safe-area-inset-top, 0);--safe-bottom: env(safe-area-inset-bottom, 0);--safe-left: env(safe-area-inset-left, 0);--safe-right: env(safe-area-inset-right, 0);--touch-min: 44px;--page-padding: 16px;--bottom-bar-height: 72px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{font-size:16px;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#1a1a1a;color:#e0e0e0;min-height:100dvh;min-height:100vh;padding-left:var(--safe-left);padding-right:var(--safe-right);padding-top:var(--safe-top);overflow-x:hidden}#root{min-height:100dvh;min-height:100vh;padding-bottom:calc(var(--bottom-bar-height) + var(--safe-bottom) + 16px)}a{color:#7ab;text-decoration:none}button{cursor:pointer;min-height:var(--touch-min);min-width:var(--touch-min);padding:10px 14px;border:1px solid #444;border-radius:8px;background:#333;color:#fff;font-size:1rem;touch-action:manipulation}button:hover{background:#444}button:active{background:#555}input,textarea,select{padding:12px;min-height:var(--touch-min);border:1px solid #444;border-radius:8px;background:#2a2a2a;color:#e0e0e0;font-size:16px;touch-action:manipulation}input:focus,textarea:focus,select:focus{outline:2px solid #5a9;outline-offset:2px}.app-page{padding:var(--page-padding);padding-left:calc(var(--page-padding) + var(--safe-left));padding-right:calc(var(--page-padding) + var(--safe-right));max-width:100%;margin:0 auto}@media (min-width: 480px){.app-page{max-width:420px;margin-left:auto;margin-right:auto}}@media (min-width: 768px){.app-page{max-width:520px;--page-padding: 20px}}.sets-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 calc(-1 * var(--page-padding));padding:0 var(--page-padding)}.sets-table-wrap table{min-width:420px}.sets-table-wrap th,.sets-table-wrap td{padding:10px 6px;font-size:15px}.sets-table-wrap input[type=number],.sets-table-wrap input[type=text]{min-height:40px;width:100%;max-width:70px;padding:8px}.sets-table-wrap input[type=checkbox]{min-width:24px;min-height:24px;accent-color:#5a9}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:flex-end;justify-content:center;z-index:1000;padding:0}@media (min-width: 480px){.modal-overlay{align-items:center;padding:16px}}.modal-content{background:#252525;border:1px solid #444;width:100%;max-height:85vh;overflow:auto;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}@media (min-width: 480px){.modal-content{max-width:90vw;border-radius:12px;padding:20px;max-height:90vh}}.toast-mobile{bottom:calc(var(--bottom-bar-height) + var(--safe-bottom) + 16px);left:50%;transform:translate(-50%);max-width:calc(100vw - 32px)}.report-page{margin-top:20px}.report-header{margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #333}.report-date{font-size:1.25rem;font-weight:600;color:#fff;margin:0 0 4px}.report-week-id{font-size:.85rem;color:#888;margin:0}.report-card{background:#252525;border:1px solid #444;border-radius:12px;padding:16px;margin-bottom:12px}.report-card-title{font-size:.9rem;font-weight:600;color:#aaa;text-transform:uppercase;letter-spacing:.04em;margin:0 0 12px}.report-totals-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}@media (min-width: 380px){.report-totals-grid{grid-template-columns:repeat(4,1fr)}}.report-total-item{display:flex;flex-direction:column;align-items:center;gap:2px}.report-total-value{font-size:1.75rem;font-weight:700;color:#fff;line-height:1.1}.report-total-unit{font-size:.8rem;color:#888}.report-total-label{font-size:.75rem;color:#888;text-transform:uppercase;letter-spacing:.03em}.report-progression-value{font-size:1.25rem;font-weight:600;margin:0}.report-progression-value.positive{color:#6c9}.report-progression-value.negative{color:#e96}.report-bars{display:flex;flex-direction:column;gap:10px}.report-bar-row{display:grid;grid-template-columns:90px 1fr 56px;align-items:center;gap:10px}.report-bar-label{font-size:.9rem;color:#ccc}.report-bar-track{height:20px;background:#1a1a1a;border-radius:6px;overflow:hidden}.report-bar-fill{height:100%;border-radius:6px;min-width:2px;transition:width .25s ease}.report-bar-push{background:linear-gradient(90deg,#5a9,#7bc)}.report-bar-pull{background:linear-gradient(90deg,#a67,#c89)}.report-bar-day{background:linear-gradient(90deg,#468,#6a9)}.report-bar-muscle{background:linear-gradient(90deg,#676,#8a8)}.report-bar-num{font-size:.9rem;font-weight:600;color:#ddd;text-align:right}.report-ratio-verdict,.report-spike-alert{font-size:.85rem;margin:10px 0 0;color:#aaa}.report-spike-alert{color:#f96}.report-ai{padding-top:8px;padding-bottom:8px}.report-ai-toggle{width:100%;text-align:left;background:transparent;border:none;color:#888;font-size:.9rem;min-height:36px;padding:8px 0}.report-ai-toggle:hover{color:#aaa}.report-ai-content{margin-top:8px;padding-top:12px;border-top:1px solid #333}.report-ai-pre{white-space:pre-wrap;font-size:11px;color:#999;overflow:auto;max-height:180px;margin:0 0 12px}.report-ai-actions{display:flex;flex-wrap:wrap;gap:8px}.report-ai-actions button{min-height:36px;padding:6px 12px;font-size:.85rem}.compare-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;margin-top:16px}@media (max-width: 700px){.compare-grid{grid-template-columns:1fr}.compare-grid .report-delta-col{order:-1}}.report-delta-col{background:#1e2a1e;border-color:#3a4a3a}.report-delta-col .report-card-title{color:#8c8}
