/* Installed Coach 1.6.2 form relationships; scoped to the new form/card UI. */
.coach-form, .coach-machine-card { min-width: 0; }
.coach-form [hidden], .coach-machine-card [hidden] { display: none !important; }
.coach-form .coach-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.coach-photo-controls .coach-photo-preview { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; background: #e2e8f0; margin: 0 auto 14px; border: 3px solid #e2e8f0; }
.coach-form .coach-photo-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.coach-form .coach-photo-button { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #1f2937; padding: 11px 6px; min-height: 44px; font-size: 15px; font-weight: 800; margin: 0 0 12px; overflow-wrap: break-word; }
.coach-form .coach-form-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.coach-form .coach-submit, .coach-form .coach-cancel, .coach-machine-card .coach-submit, .coach-machine-card .coach-cancel { border: 0; border-radius: 10px; min-height: 44px; padding: 12px 10px; font-size: 17px; font-weight: 800; }
.coach-form .coach-submit, .coach-machine-card .coach-submit { color: #fff; background: #2563eb; }
.coach-form .coach-cancel, .coach-machine-card .coach-cancel { color: #1f2937; background: #e5e7eb; }
.coach-form#client-form input.coach-name-input { width: 100%; min-width: 0; height: 48px; border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px 12px; font-size: 18px; color: #1f2937; background: #fff; }
.coach-person-profile { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.coach-person-profile .coach-photo-preview { width: 130px; height: 130px; margin-bottom: 12px; }
.coach-person-profile .coach-field { display: block; font-size: 13px; font-weight: 800; color: #475569; margin: 12px 0 5px; }
.coach-person-profile#client-form .coach-field > input, .coach-person-profile#client-form .coach-field > textarea { display: block; width: 100%; min-width: 0; margin-top: 5px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; padding: 11px 12px; font-size: 17px; font-weight: 400; color: #0f172a; }
.coach-person-profile#client-form .coach-field > textarea { min-height: 150px; resize: vertical; font-family: inherit; line-height: 1.4; }
.coach-person-profile .coach-call { margin-top: 7px; }
.coach-form .coach-full { width: 100%; margin-top: 14px; }
.coach-form .coach-archive-button { width: 100%; border: 2px solid #b91c1c; border-radius: 10px; background: #fff; color: #b91c1c; padding: 14px; font-size: 17px; font-weight: 900; margin-top: 12px; }
.coach-machine-card.machine-card { height: 202px; min-height: 202px; padding: 4px; border-radius: 12px; background: #fff; text-align: center; }
.coach-machine-card .coach-machine-open { display: block; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: transparent; }
.coach-machine-card .coach-machine-open .machine-photo { display: block; width: 100%; height: 139px; min-height: 139px; object-fit: cover; margin: 0 0 5px; border-radius: 9px; background: #e2e8f0; }
.coach-machine-card .coach-machine-label { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; min-height: 50px; padding: 0 3px; margin: 0; border: 0; background: transparent; font-size: 23px; font-weight: 800; line-height: 1.08; white-space: normal; overflow: hidden; overflow-wrap: break-word; }
.coach-machine-card .coach-machine-label-text { display: block; width: 100%; max-width: 100%; min-width: 0; font-weight: 800; line-height: 1.08; white-space: normal; overflow-wrap: break-word; word-break: normal; }
.coach-machine-card.is-editing { height: 243px; min-height: 243px; overflow: visible; }
.coach-machine-card.is-editing .coach-machine-label { display: none; }
.coach-machine-card .coach-machine-rename { width: 100%; min-width: 0; margin: 0; height: 94px; padding: 4px; }
.coach-machine-card.is-editing form[data-machine-name] .coach-machine-name-input { display: block; width: 100%; min-width: 0; height: 45px; border: 2px solid #2563eb; border-radius: 8px; padding: 5px 8px; font-size: 20px; font-weight: 800; text-align: left; background: #fff; color: #1f2937; }
.coach-machine-card .coach-rename-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 5px; }
.coach-machine-card .coach-rename-actions > button { height: 34px; min-height: 34px; padding: 0 5px; border-radius: 8px; font-size: 16px; font-weight: 900; }
.coach-machine-picker#machine-picker-form .coach-picker-search { width: 100%; min-width: 0; height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: #fff; font-size: 16px; }
.coach-machine-picker .coach-picker-list { max-height: 56vh; overflow-y: auto; }
.coach-machine-picker .coach-picker-group-title { margin: 0 0 8px; color: #334155; font-size: 17px; }
.coach-machine-picker .coach-picker-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.coach-machine-picker .coach-picker-item { position: relative; display: block; min-width: 0; margin: 0; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 5px; overflow: hidden; font-weight: 800; }
.coach-machine-picker .coach-picker-item img { display: block; width: 100%; height: 112px; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.coach-machine-picker .coach-picker-item span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 7px 3px 3px; text-align: center; font-size: 16px; line-height: 1.12; overflow-wrap: break-word; }
.coach-machine-picker .coach-picker-item input[type=checkbox] { position: absolute; right: 9px; top: 9px; width: 24px; height: 24px; margin: 0; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.coach-machine-picker .coach-picker-empty { margin: 0; padding: 22px 14px; text-align: center; color: #64748b; font-weight: 700; }
@media(max-width:430px) {
 .coach-machine-card.machine-card { height: 198px; min-height: 198px; }
 .coach-machine-card .coach-machine-open .machine-photo { height: 136px; min-height: 136px; }
 .coach-machine-card .coach-machine-label { height: 49px; min-height: 49px; }
 .coach-machine-card.machine-card.is-editing { height: 239px; min-height: 239px; }
}
