.ah-header,.ah-footer{max-width:1100px;margin:auto;padding:1.1rem 1.4rem;display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;align-items:center}.ah-header nav{display:flex;gap:.9rem;flex-wrap:wrap}.ah-brand{font-weight:800;letter-spacing:.02em}.ah-main{max-width:1000px;margin:0 auto;padding:1.4rem 1rem 4rem}.ah-main *{box-sizing:border-box}.ah-main h1{font-size:clamp(2rem,5vw,3rem);line-height:1.1}.ah-main h2{font-size:1.35rem}.ah-eyebrow{font-weight:700;letter-spacing:.09em;text-transform:uppercase;font-size:.8rem}.ah-card{padding:1.3rem;background:var(--card-bg,#fff);color:var(--text-color,#16212f);border:1px solid #bfc9d4;border-radius:1.1rem;margin:1.2rem 0;box-shadow:0 4px 18px rgba(0,0,0,.04)}.ah-notice{padding:1rem;border-radius:.8rem;border:1px solid #9ca5b1;background:#edf3f7;color:#142435}.ah-card label{display:block;margin:.65rem 0;font-weight:600}.ah-card input,.ah-card select,.ah-card textarea{display:block;margin-top:.3rem;padding:.65rem;width:100%;min-height:2.5rem;font:inherit;border:1px solid #8092a3;border-radius:.5rem;background:#fff;color:#14212e}.ah-card input[type=checkbox]{width:auto;min-height:auto;display:inline;accent-color:#155a96}.ah-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.9rem}.ah-plate-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.ah-tags{display:flex;flex-wrap:wrap;gap:.55rem;margin:.5rem 0}.ah-tags label{margin:0;display:flex;gap:.4rem;align-items:center;border:1px solid #95a5b6;padding:.45rem .7rem;border-radius:30px;cursor:pointer}.ah-fieldset{border:1px solid #c0cad5;border-radius:.75rem;margin:1rem 0;padding:.6rem}.ah-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.ah-main button{padding:.65rem .95rem;border-radius:.55rem;border:1px solid #063e73;background:#07558f;color:#fff;font:inherit;font-weight:650;cursor:pointer}.ah-main button.ah-secondary{background:#fff;color:#063e73}.ah-main button.ah-danger{background:#fff;color:#a51929;border-color:#a51929}.ah-main button:focus-visible,.ah-main input:focus-visible,.ah-main select:focus-visible{outline:3px solid #ca711b;outline-offset:2px}.ah-main button:disabled{opacity:.5;cursor:not-allowed}.ah-scroll{overflow-x:auto}.ah-table{border-collapse:collapse;width:100%;min-width:680px}.ah-table th,.ah-table td{text-align:left;border-bottom:1px solid #d6dde6;padding:.5rem .3rem}.ah-table td input,.ah-table td select{width:100%;margin:0}.ah-table td:first-child{min-width:2rem}.ah-panel{margin:1rem 0;padding:.85rem;border-radius:.75rem;border:1px solid #b9c9d8;background:#f7f9fb;color:#1b2a36}.ah-panel summary{cursor:pointer;font-weight:650}.ah-review article,.ah-history article{border-left:3px solid #215b83;padding:.5rem .75rem;margin:.7rem 0;background:#f6f8fc;color:#1a2c3b}.ah-status{min-height:1.4rem}.ah-save-checkbox{font-weight:600}.ah-summary{font-weight:700}.ah-small{font-size:.87rem;color:#44596e}.ah-main a{color:#16548a}@media(prefers-color-scheme:dark){.ah-card{background:#152638;color:#f4f8fa;border-color:#64798c}.ah-panel,.ah-review article,.ah-history article{background:#283e52;color:#f4f8fa}.ah-notice{background:#293f51;color:#f4f8fa}.ah-small{color:#c0d0dd}.ah-main a{color:#95c7f6}}@media(max-width:520px){.ah-card{padding:.95rem}.ah-table{font-size:.86rem}}

.ah-main [hidden]{display:none!important}

/* Phase AH usability refresh: fast exercise selection and self-explanatory inputs. */
.ah-steps{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}
.ah-steps a{border:1px solid #7791a7;border-radius:999px;padding:.5rem .8rem;text-decoration:none;font-weight:700;background:#eaf3fb;color:#153d60}
.ah-help{padding:.8rem 1rem;border-left:4px solid #2172ac;background:#edf6ff;color:#21394d;border-radius:.45rem;line-height:1.5}
.ah-quick-picks,.ah-quick-amounts{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 1rem}
.ah-main button.ah-quick-pill{border:1px solid #6991b0;background:#eaf5ff;color:#103b5b;padding:.55rem .85rem;border-radius:999px;font-size:.92rem;min-height:42px}
.ah-main button.ah-quick-pill:hover{background:#cee8fa}
.ah-main button{min-height:42px}
.ah-voice-review{border:2px solid #3b779e;border-radius:.7rem;padding:1rem;margin:.8rem 0;background:#edf6ff;color:#142d44}
.ah-timed .ah-table th:nth-child(3),.ah-timed .ah-table th:nth-child(4),.ah-timed .ah-table th:nth-child(5),
.ah-timed .ah-table td:nth-child(3),.ah-timed .ah-table td:nth-child(4),.ah-timed .ah-table td:nth-child(5){display:none}
.ah-timed .ah-table{min-width:250px}
.ah-card input:disabled,.ah-card select:disabled{opacity:.65;background:#e5ebee}
@media(max-width:620px){
 .ah-scroll{overflow-x:visible}
 .ah-table{min-width:0}
 .ah-table thead{display:none}
 .ah-table,.ah-table tbody,.ah-table tr,.ah-table td{display:block;width:100%}
 .ah-table tr{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:1rem 0;border-bottom:2px solid #9daec0}
 .ah-table td{border:0;padding:.2rem}
 .ah-table td:first-child{grid-column:1/-1;font-weight:800}
 .ah-table td:nth-child(2)::before{content:"Reps or time";display:block;font-size:.8rem}
 .ah-table td:nth-child(3)::before{content:"Weight";display:block;font-size:.8rem}
 .ah-table td:nth-child(4)::before{content:"Unit";display:block;font-size:.8rem}
 .ah-table td:nth-child(5)::before{content:"Load basis";display:block;font-size:.8rem}
 .ah-table td:nth-child(6){grid-column:1/-1}
 .ah-timed .ah-table tr{grid-template-columns:1fr 1fr}
}
@media(prefers-color-scheme:dark){.ah-help,.ah-voice-review{background:#233f55;color:#f3f9fd;border-color:#77b5dc}}

/* Phase AH.2: touch-first gym-floor quick set logger; advanced UI remains available. */
.ah-floor{background:#f7fafc;color:#122137;border:2px solid #2563eb;border-radius:20px;padding:clamp(14px,3vw,26px);margin:22px auto;box-shadow:0 8px 26px rgba(0,0,0,.12)}
.ah-floor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.ah-floor-header h2{margin:2px 0 8px;font-size:clamp(1.45rem,3vw,2rem);color:#122137}.ah-floor-header p{margin:0 0 14px;color:#324155}
.ah-floor-finish{display:inline-flex;align-items:center;justify-content:center;padding:14px 16px;background:#152845;color:#fff!important;text-decoration:none;border-radius:12px;font-weight:700;min-height:48px}
.ah-floor .ah-grid{margin:10px 0}.ah-floor label{font-weight:650;color:#192b42}
.ah-floor input,.ah-floor select{min-height:48px;font-size:1rem;border:1px solid #9cacc3;border-radius:9px;padding:9px;max-width:100%}
.ah-floor-picks{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;max-height:168px;overflow:auto}
.ah-floor-picks button{border:1px solid #a4b6d6;background:#fff;color:#162b45;font-size:.95rem;font-weight:600;padding:10px 14px;min-height:46px;border-radius:26px;cursor:pointer}
.ah-floor-picks button[aria-pressed="true"]{background:#d9e9ff;border:2px solid #1252b4}
.ah-floor-active{background:#e2efff;border-radius:12px;font-size:1.13rem;font-weight:750;padding:14px;margin:10px 0 16px;min-height:50px}
.ah-floor-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ah-floor-stepper{display:flex;align-items:stretch;gap:5px;margin:7px 0}
.ah-floor-stepper input{min-width:0;flex:1;text-align:center;font-size:1.55rem;font-weight:750;height:60px}
.ah-floor-stepper button{min-width:52px;background:#e1e9f5;border:1px solid #90a8c8;color:#143154;border-radius:9px;font-size:1.5rem;font-weight:bold}
.ah-floor-presets{display:flex;gap:7px;margin:6px 0}.ah-floor-presets button{flex:1;min-height:40px;border:1px solid #96adcb;border-radius:8px;background:white;color:#1c3b5a;font-weight:700}
.ah-floor-settings{display:grid;grid-template-columns:minmax(100px,.35fr) minmax(0,1fr);gap:12px;margin:14px 0}.ah-floor-settings label{display:flex;flex-direction:column;gap:5px}
.ah-floor-log{background:#156947!important;color:#fff!important;width:100%;font-size:1.35rem!important;font-weight:800!important;min-height:72px!important;border-radius:15px!important;margin:8px 0}
.ah-floor-log:disabled{background:#8c9caa!important}.ah-floor-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;flex-wrap:wrap}.ah-floor-bottom p{margin:0;max-width:70%}.ah-floor-bottom button{min-height:44px}
.ah-floor-rest{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ah-floor-rest label{display:flex;align-items:center;gap:7px}.ah-floor-rest label input{min-height:unset}
.ah-floor-timed #ah-floor-weight-wrap,.ah-floor-timed .ah-floor-settings{display:none}.ah-floor-timed .ah-floor-entry{grid-template-columns:1fr}
.ah-advanced-wrap{border:1px solid #b5c4d4;border-radius:12px;margin:18px 0;padding:12px}.ah-advanced-wrap>summary{cursor:pointer;font-weight:700;padding:12px;min-height:48px}
@media(max-width:600px){.ah-floor-entry{grid-template-columns:1fr}.ah-floor-bottom p{max-width:100%}.ah-floor-picks{max-height:210px}.ah-floor-stepper button{min-width:58px}}

/* Workout review improvements: visible comparison, accessible individual corrections. */
.ah-floor-previous{border-left:4px solid #235b84;background:#eaf2fa;color:#18334a;border-radius:7px;padding:.8rem 1rem;margin:.65rem 0;line-height:1.5}
.ah-review-set{display:flex;gap:.6rem;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:.35rem 0;border-bottom:1px solid #c4d2dd}
.ah-review-set:last-of-type{border-bottom:0}
.ah-review-set span{flex:1;min-width:12rem}
.ah-main .ah-review-set button{font-size:.87rem;min-height:42px;background:#fff;color:#8c1e31;border:1px solid #8c1e31}
@media(prefers-color-scheme:dark){.ah-floor-previous{background:#263e54;color:#f3f9fd}.ah-review-set{border-color:#50687d}}

/* Quick Gym Mode: accessible per-side plate counts, including bar or plates only. */
.ah-floor-plate-tool{border:1px solid #6991b0;border-radius:14px;padding:1rem;margin:1rem 0;background:#f1f7fd;color:#17334a}
.ah-floor-plate-tool[hidden]{display:none}
.ah-floor-plate-tool h3{margin:.15rem 0 .45rem;font-size:1.12rem}
.ah-floor-plate-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:.8rem 0}
.ah-floor-plate-settings label{display:block;font-weight:650}
.ah-floor-plate-settings label[hidden]{display:none}
.ah-floor-plate-settings select,.ah-floor-plate-settings input{width:100%;min-height:44px;padding:.5rem}
.ah-floor-plate-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.7rem}
.ah-floor-plate-item{border:1px solid #adc3d7;border-radius:10px;padding:.6rem;background:#fff;color:#17334a}
.ah-floor-plate-item label{font-weight:650;display:block;margin:0 0 .3rem}
.ah-floor-plate-stepper{display:flex;align-items:center;gap:6px}
.ah-floor-plate-stepper input{width:66px;flex:1;min-width:0;text-align:center;font-size:1.1rem;min-height:44px}
.ah-main .ah-floor-plate-stepper button{min-width:44px;min-height:44px;padding:.35rem;font-size:1.15rem}
.ah-floor-plate-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.6rem;margin:1rem 0}
.ah-floor-plate-results>span{display:block;background:#fff;color:#17334a;border:1px solid #c2d1dd;border-radius:8px;padding:.6rem}
.ah-floor-plate-results .ah-floor-plate-record{border:2px solid #24724b;font-weight:700}
.ah-main .ah-floor-plate-apply{background:#176443;color:#fff;min-height:48px;width:100%}
@media(prefers-color-scheme:dark){.ah-floor-plate-tool{background:#233b50;color:#f4f8fa}}

/* Accessible multi-size plate calculator; large touch targets for novices. */
.ah-floor-first-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 4px}
.ah-main button.ah-floor-open-plates{background:#145d40;color:#fff;min-height:56px;font-size:1.1rem;padding:12px 20px}
.ah-floor-plate-explain{background:#e3f3ff;border-left:5px solid #2172ac;padding:12px 14px;font-size:1rem;line-height:1.5;color:#17334a;border-radius:6px}
.ah-floor-plate-item{display:flex;flex-direction:column;gap:7px}
.ah-floor-plate-item label{font-size:1.1rem}
.ah-floor-plate-stepper input{font-size:1.35rem;min-height:54px;font-weight:750}
.ah-main .ah-floor-plate-stepper button{min-width:52px;min-height:54px;font-size:1.6rem}
.ah-floor-plate-item input[aria-invalid="true"]{border:2px solid #c72c39;background:#fff0f0}
.ah-floor-plate-subtotal{font-size:.87rem;line-height:1.3;margin:.2rem 0;color:#35506a}
.ah-main .ah-floor-plate-clear{min-height:48px;margin:12px 0 2px}
.ah-floor-plate-record strong{font-size:1.5rem}
.ah-floor-plate-settings select{font-size:1rem}
@media(max-width:520px){.ah-floor-plate-counts{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.ah-floor-plate-tool{padding:.75rem}.ah-floor-plate-results{grid-template-columns:1fr 1fr}.ah-floor-plate-stepper{gap:3px}.ah-main .ah-floor-plate-stepper button{min-width:44px}}
@media(max-width:365px){.ah-floor-plate-counts,.ah-floor-plate-results{grid-template-columns:1fr}}

.ah-floor-plate-results .ah-floor-plate-record{grid-column:1/-1;order:-1;background:#e8fff1}
.ah-floor-plate-extra{margin-top:12px}
.ah-floor-plate-extra summary{cursor:pointer;min-height:44px;padding:10px;color:#17334a}

/* Read-only progress comparison. Data stays in the active browser tab. */
.ah-floor-comparison{border-left:4px solid #21714f;background:#e8f7ef;color:#173c2b;border-radius:7px;padding:.8rem 1rem;margin:.65rem 0;line-height:1.5}
@media(prefers-color-scheme:dark){.ah-floor-comparison{background:#183b31;color:#f1fff7}}
