
/* Alpha4.52: isolated Profile sections + Coach-led prompt intake */
.profile-section-dialog,.coach-intake-dialog{
  width:min(100%,620px);height:100dvh;max-width:none;max-height:none;margin:0 0 0 auto;padding:0;border:0;background:var(--deep-bg);color:var(--text);
}
.profile-section-dialog::backdrop,.coach-intake-dialog::backdrop{background:rgba(0,0,0,.72)}
.profile-section-shell,.coach-intake-shell{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:linear-gradient(180deg,var(--panel),var(--deep-bg))}
.coach-intake-shell{grid-template-rows:auto minmax(0,1fr) auto}
.profile-section-head,.coach-intake-head{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;
  min-height:64px;padding:calc(8px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));
  border-bottom:1px solid var(--gh-stroke-soft);background:rgba(5,12,20,.98);z-index:2
}
.profile-section-head h2{margin:0;font-size:20px}
.profile-section-head .eyebrow{margin:0 0 2px}
.profile-section-content{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:20px max(16px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.profile-section-page{display:grid;gap:18px;max-width:720px;margin:0 auto}
.profile-section-intro h3{font-size:24px;margin:3px 0 6px}
.profile-form-stack{display:grid;gap:14px}
.profile-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-segment-field{display:grid;gap:7px}
.profile-segment-field>span{font-size:12px;font-weight:800;color:var(--muted)}
.profile-segment-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.profile-segment-row button,.coach-answer-card,.coach-number-choice,.coach-time-choice{
  min-height:52px;border:1px solid var(--gh-stroke-soft);border-radius:13px;background:var(--panel-2);color:var(--text);font-weight:800
}
.profile-segment-row button.selected,.coach-answer-card.selected,.coach-number-choice.selected,.coach-time-choice.selected{
  border-color:rgba(var(--accent-rgb),.78);background:rgba(var(--accent-rgb),.15);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.22)
}
.profile-choice-list{display:grid;gap:8px}
.profile-choice-row{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:11px;min-height:56px;padding:10px 12px;border:1px solid var(--gh-stroke-soft);border-radius:13px;background:var(--panel-2)}
.profile-choice-row.selected{border-color:rgba(var(--accent-rgb),.65);background:rgba(var(--accent-rgb),.1)}
.profile-choice-row input{width:18px;height:18px}.profile-choice-row svg{width:20px;height:20px}
.profile-search-box{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:54px;padding:0 14px;border:1px solid var(--gh-stroke-soft);border-radius:14px;background:var(--panel-2)}
.profile-search-box svg{width:19px;height:19px;color:var(--accent)}
.profile-search-box input{width:100%;height:50px;background:transparent;border:0;color:var(--text);font-size:16px;outline:0}
.profile-search-results{display:grid;gap:7px}
.profile-search-result{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;min-height:60px;padding:9px 11px;border:1px solid var(--gh-stroke-soft);border-radius:13px;background:var(--panel-2);color:var(--text)}
.profile-search-result>span:first-child{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:rgba(var(--accent-rgb),.1);color:var(--accent)}
.profile-search-result svg{width:18px;height:18px}
.profile-search-result span:nth-child(2){display:grid;gap:2px;min-width:0}.profile-search-result small{color:var(--muted)}
.profile-search-result b{color:var(--accent);font-size:18px}.profile-search-result.selected{border-color:rgba(var(--accent-rgb),.6);background:rgba(var(--accent-rgb),.09)}
.profile-selected-chips{display:flex;gap:6px;flex-wrap:wrap}
.profile-selected-chips span{padding:7px 9px;border-radius:999px;background:rgba(var(--accent-rgb),.12);border:1px solid rgba(var(--accent-rgb),.28);font-size:11px;font-weight:800}
.profile-selection-empty{padding:14px;border:1px dashed var(--gh-stroke-soft);border-radius:12px;color:var(--muted);font-size:12px}
.profile-selected-stack{display:grid;gap:8px}
.profile-selected-injury{display:grid;gap:9px;padding:12px;border:1px solid var(--gh-stroke-soft);border-radius:13px;background:var(--panel-2)}
.profile-selected-injury>div:first-child{display:grid;gap:2px}.profile-selected-injury small{color:var(--muted)}
.profile-injury-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-injury-controls label{display:grid;gap:5px}.profile-injury-controls label>span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.profile-injury-controls select{min-height:42px}
.profile-custom-entry{border:1px solid var(--gh-stroke-soft);border-radius:12px;padding:10px 12px;background:var(--panel-2)}
.profile-custom-entry summary{font-weight:800}.profile-custom-grid{display:grid;gap:8px;margin-top:10px}

.coach-intake-brand{display:flex;align-items:center;justify-content:center;gap:8px}
.coach-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(var(--accent-rgb),.16);color:var(--accent);font-weight:950}
.coach-intake-progress{font-size:11px;color:var(--muted);font-weight:800}
.coach-intake-body{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:24px max(18px,env(safe-area-inset-right)) 28px max(18px,env(safe-area-inset-left));display:grid;align-items:start}
.coach-prompt{width:min(100%,560px);margin:4vh auto 0;display:grid;gap:14px}
.coach-prompt h2{font-size:30px;line-height:1.05;margin:0;letter-spacing:-.025em}
.coach-prompt-help{font-size:14px;line-height:1.45;color:var(--muted);margin:0}
.coach-answer{display:grid;gap:10px;margin-top:8px}
.coach-big-input{width:100%;min-height:64px;padding:0 16px;border-radius:15px;border:1px solid var(--gh-stroke-soft);background:var(--panel-2);color:var(--text);font-size:21px;font-weight:800;outline:0}
.coach-big-input:focus{border-color:rgba(var(--accent-rgb),.75);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.12)}
.coach-answer-stack{display:grid;gap:8px}
.coach-answer-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left;padding:0 15px;font-size:15px}
.coach-answer-card b{color:var(--accent);font-size:17px}
.coach-number-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.coach-number-pair label,.coach-number-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--gh-stroke-soft);border-radius:15px;background:var(--panel-2);overflow:hidden}
.coach-number-pair input,.coach-number-unit input{border:0;background:transparent}.coach-number-pair span,.coach-number-unit span{padding-right:14px;color:var(--muted);font-weight:800}
.coach-number-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.coach-number-choice,.coach-time-choice{font-size:20px}.coach-time-choice{display:grid;place-items:center;align-content:center}.coach-time-choice small{font-size:9px;color:var(--muted)}
.coach-review-card{display:grid;gap:8px;padding:16px;border:1px solid rgba(var(--accent-rgb),.35);border-radius:15px;background:rgba(var(--accent-rgb),.08)}
.coach-review-card strong{font-size:20px}.coach-review-card span{color:var(--muted);font-size:13px}
.coach-intake-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));border-top:1px solid var(--gh-stroke-soft);background:rgba(5,12,20,.985)}
.coach-intake-actions .primary{min-height:50px}
.coach-intake-actions .secondary{min-width:90px}

@media(max-width:600px){
  .profile-section-dialog,.coach-intake-dialog{width:100%}
  .profile-section-intro h3{font-size:22px}
  .coach-prompt{margin-top:2vh}.coach-prompt h2{font-size:28px}
}

#view-profile .gh-profile-quick.coach{grid-column:1/-1!important;min-height:96px!important}


/* Alpha4.55 — reliable Coach height prompt */
.coach-height-pickers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.coach-height-pickers label{
  display:grid;
  gap:7px;
}
.coach-height-pickers label>span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
}
.coach-height-pickers select{
  width:100%;
  min-height:58px;
  border:1px solid var(--gh-stroke-soft);
  border-radius:15px;
  background:var(--panel-2);
  color:var(--text);
  padding:0 14px;
  font:inherit;
  font-size:18px;
  font-weight:800;
}


/* Alpha4.56 — setup choice + deeper manual injury detail */
.setup-choice-card{width:min(92vw,620px)!important}
.setup-choice-head{display:grid;gap:5px;margin-bottom:14px}
.setup-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.setup-choice-option{min-height:172px;text-align:left;border:1px solid var(--line);border-radius:17px;background:linear-gradient(145deg,var(--panel-2),var(--panel));color:var(--text);padding:16px;display:grid;align-content:start;gap:8px}
.setup-choice-option.coach{border-color:rgba(168,105,255,.32)}
.setup-choice-option.manual{border-color:rgba(47,140,255,.28)}
.setup-choice-option strong{font-size:16px}
.setup-choice-option small{color:var(--muted);line-height:1.35}
.setup-choice-option b{font-size:11px;color:#caa8ff;text-transform:uppercase;letter-spacing:.08em}
.setup-choice-icon{width:34px;height:34px;display:grid;place-items:center}
.setup-choice-icon svg{width:24px;height:24px}
.setup-choice-option.coach .setup-choice-icon{color:var(--gh-purple,#a869ff)}
.setup-choice-option.manual .setup-choice-icon{color:var(--gh-blue,#2f8cff)}
.setup-choice-later{width:100%;margin-top:10px}

.profile-selected-injury-copy{display:grid;gap:3px}
.profile-injury-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.injury-detail-card{width:min(94vw,720px)!important;max-height:min(88dvh,820px);overflow:auto}
.injury-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.injury-detail-stack{display:grid;gap:16px;margin-top:14px}
.injury-detail-stack fieldset{border:0;padding:0;margin:0;display:grid;gap:8px}
.injury-detail-stack legend{font-weight:800;margin-bottom:7px}
.injury-detail-radio-grid,.injury-detail-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.injury-detail-radio-grid label,.injury-detail-choice{min-height:46px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);display:flex;align-items:center;gap:9px;padding:10px 11px;color:var(--text)}
.injury-detail-radio-grid label.selected,.injury-detail-choice.selected{border-color:rgba(47,140,255,.55);background:rgba(47,140,255,.10)}
.injury-detail-radio-grid input,.injury-detail-choice input{accent-color:var(--gh-blue,#2f8cff)}
.injury-known-diagnosis{border-top:1px solid var(--line);padding-top:12px}
.injury-known-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
@media(max-width:560px){
  .setup-choice-grid{grid-template-columns:1fr}
  .setup-choice-option{min-height:132px}
  .injury-detail-radio-grid,.injury-detail-choice-grid{grid-template-columns:1fr}
}


/* Alpha4.57 — exact equipment inventory + injury participation strategy */
.profile-selected-equipment{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2)
}
.equipment-detail-card{width:min(94vw,720px)!important;max-height:min(88dvh,820px);overflow:auto}
.equipment-inline-unit{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px}
.equipment-range-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.injury-monitor-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
.injury-monitor-toggle input{width:22px;height:22px;accent-color:var(--gh-purple,#a869ff)}
@media(max-width:620px){
  .profile-selected-equipment{grid-template-columns:1fr}
  .equipment-range-grid{grid-template-columns:1fr 1fr}
}


/* Alpha4.58 field repair: equipment search hierarchy + readable injury choices */
.equipment-search-results{
  margin-top:10px;
}
.equipment-selected-panel{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.018);
  overflow:hidden;
}
.equipment-selected-panel>summary{
  min-height:50px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  font-size:15px;
  font-weight:800;
}
.equipment-selected-panel>summary b{
  color:var(--muted);
  font-size:14px;
}
.equipment-selected-panel .profile-selected-summary,
.equipment-selected-panel #coachEquipmentSelected{
  padding:0 10px 10px;
}
.equipment-type-fieldset{
  border:0;
  padding:0;
  margin:0;
}
.equipment-type-fieldset legend{
  margin-bottom:8px;
  font-size:15px;
  font-weight:800;
}
.equipment-type-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.equipment-type-choice-grid label{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel-2);
  font-size:15px;
  font-weight:750;
}
.equipment-type-choice-grid label.selected,
.equipment-type-choice-grid label:has(input:checked){
  border-color:rgba(47,140,255,.56);
  background:rgba(47,140,255,.10);
}
.equipment-type-choice-grid input{
  width:19px;
  height:19px;
  accent-color:var(--gh-blue,#2f8cff);
}

.injury-strategy-picker{
  grid-column:1/-1;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--panel-2);
}
.injury-strategy-picker>summary{
  min-height:58px;
  padding:10px 12px;
  display:grid;
  gap:4px;
  cursor:pointer;
}
.injury-strategy-picker>summary span{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.injury-strategy-picker>summary strong{
  font-size:15px;
  line-height:1.35;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.injury-strategy-options{
  display:grid;
  gap:8px;
  padding:0 8px 8px;
}
.injury-strategy-option{
  width:100%;
  min-height:64px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  padding:10px 11px;
  display:grid;
  gap:4px;
  text-align:left;
  white-space:normal;
}
.injury-strategy-option strong{
  font-size:15px;
  line-height:1.3;
}
.injury-strategy-option small{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.injury-strategy-option.selected{
  border-color:rgba(168,105,255,.55);
  background:rgba(168,105,255,.10);
}
.injury-availability-note{
  margin:9px 0 0;
  padding:9px 11px;
  border-radius:10px;
  font-size:14px;
  line-height:1.4;
}
.injury-availability-note.available{
  background:rgba(114,233,65,.07);
  border:1px solid rgba(114,233,65,.18);
}
.injury-availability-note.blocked{
  background:rgba(255,94,114,.08);
  border:1px solid rgba(255,94,114,.24);
}
.coach-detail-intro{
  margin:0;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(168,105,255,.08);
  border:1px solid rgba(168,105,255,.20);
  font-size:14px;
  line-height:1.45;
}
@media(max-width:560px){
  .equipment-type-choice-grid{grid-template-columns:1fr}
}
