.builder-heading,.custom-program-card,.builder-exercise-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.builder-heading{margin-bottom:22px}.builder-heading h2{margin:8px 0}.builder-heading p,.custom-program-card p{font-size:12px;line-height:1.8;color:var(--muted);margin-top:6px}.custom-program-list{margin:20px 0}.custom-program-card{border-top:1px solid var(--line);padding:20px 0}.custom-program-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:400px}.custom-program-actions button{min-height:44px}.archived-programs{margin:18px 0;color:var(--tone-181);font-size:12px}.archived-programs p{padding:10px 0}.builder-card input,.builder-card select{max-width:100%;min-width:0}.weekday-choices{display:flex;flex-wrap:wrap;gap:8px;border:1px solid var(--line);border-radius:12px;margin:20px 0;padding:12px}.weekday-choices legend{font-size:12px;color:var(--muted);padding:0 8px}.weekday-choices label{display:flex;align-items:center;gap:6px;min-height:44px;font-size:12px;padding:7px}.weekday-choices input{width:18px;height:18px}.builder-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;align-items:start}.builder-columns>div{min-width:0}.builder-columns h3{margin:16px 0}.library-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.library-filters label{font-size:11px;color:var(--muted)}.library-filters select{display:block;width:100%;margin-top:7px;min-height:44px}#exercise-results{max-height:560px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:14px}.library-exercise{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.library-exercise>div{min-width:0}.library-exercise strong{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.library-exercise p{font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}.library-exercise button{flex-shrink:0;min-width:64px;min-height:44px;font-size:11px;padding:8px}.library-count{font-size:11px;color:var(--tone-182)}.builder-exercise{padding:18px 0;border-bottom:1px solid var(--line)}.builder-exercise h3,.builder-exercise-heading strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.builder-exercise-heading>div{display:flex;gap:5px;align-items:center;flex-shrink:0}.builder-exercise-heading button{min-width:32px;min-height:44px;padding:5px;font-size:11px}.exercise-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.exercise-config label{font-size:11px;color:var(--muted)}.exercise-config input,.exercise-config select{display:block;width:100%;min-height:44px;margin-top:6px}.builder-save{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:20px 0 5px;margin-top:22px;background:var(--tone-1);font-size:12px}.custom-set-head,.custom-set-row{display:grid;grid-template-columns:35px 1fr 1fr;gap:12px;align-items:center}.custom-set-head{font-size:11px;color:var(--muted);margin:18px 0 9px}.custom-set-row{margin:10px 0}.custom-set-row input{min-height:44px}.custom-set-row>span{font-size:12px;color:var(--muted)}.custom-workout-date input{max-width:200px}.custom-history-log{border-top:1px solid var(--line);padding:16px 0;font-size:12px;color:var(--tone-183);line-height:1.8}.custom-history-log summary{cursor:pointer;min-height:44px}.custom-history-log p{padding:8px 0}.builder-card .field input,.builder-card .field select{width:100%}#personal-exercise-form select{width:100%}.builder-card [hidden]{display:none!important}
@media(max-width:940px){.builder-columns{grid-template-columns:1fr}.builder-heading,.custom-program-card{flex-direction:column}.custom-program-actions{justify-content:flex-start;max-width:none}.builder-heading>.primary,.builder-heading>.secondary{width:100%}#exercise-results{max-height:380px}.builder-exercise-heading{flex-direction:column;gap:8px}.builder-exercise-heading>div{width:100%;justify-content:flex-end}.builder-exercise-heading button{min-width:44px}.builder-save{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom));z-index:9;padding:12px 0;background:var(--tone-184);flex-wrap:wrap}.builder-save .primary{min-height:48px}.builder-card input,.builder-card select{font-size:16px!important}.custom-program-actions .primary,.custom-program-actions .secondary{flex:1}.weekday-choices{gap:4px}.weekday-choices label{font-size:11px;padding:4px}.custom-set-row,.custom-set-head{gap:8px;grid-template-columns:25px 1fr 1fr}.builder-card .tiny-note{line-height:1.8}.custom-workout-date input{min-width:150px}.builder-save span{font-size:11px}}
