/* Coach file desk. Same black and gold as the marketing site. */

.coach-main { padding-bottom: 64px; min-width: 0; }
.narrow { width: min(440px, 100%); margin: 28px auto 0; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.panel h1 { font-size: clamp(28px, 8vw, 34px); overflow-wrap: anywhere; }
.field { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .file-pick {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}
.file-pick { color: var(--muted); }
button.btn { cursor: pointer; font: inherit; min-height: 44px; }
button.btn:disabled { opacity: 0.55; cursor: default; }
.note { min-height: 1.2em; margin: 12px 0 0; color: var(--gold); font-size: 14px; }
.quiet { color: var(--muted); font-size: 14px; }
.text-btn {
  margin-top: 14px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.top .text-btn { margin-top: 0; white-space: nowrap; flex: none; }
.text-btn:hover { color: var(--text); }

.desk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
.roster, .files { min-height: 0; min-width: 0; }
#desk > h1 { font-size: clamp(32px, 8vw, 40px); }
.athlete {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.athlete.on { border-color: var(--gold); color: var(--gold); }
.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.file > div { min-width: 0; }
.file b { display: block; }
.file span { color: var(--muted); font-size: 13px; }
.file-actions { display: flex; gap: 8px; flex-shrink: 0; }
.file-actions .btn { min-height: 36px; padding: 0 12px; }
.danger { border-color: #6e3030; color: #f0b4b4; }
.preview { margin-top: 16px; }
.preview-day { margin-top: 16px; }
.preview-day .kicker { margin-top: 14px; }
.lift-card {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.lift-card b { display: block; }
.set-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.set-row span:first-child { color: var(--text); font-weight: 650; }

/* Open phone upright is about 670px, wide enough for the roster beside the file. A closed phone is not. */
@media (min-width: 640px) {
  .desk { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); }
  .roster, .files { min-height: 420px; }
}

@media (max-width: 420px) {
  .panel { padding: 16px; }
  .narrow { margin-top: 16px; }
  .athlete, .file-actions .btn { min-height: 44px; }
}

@media (max-height: 430px) {
  .coach-main { padding-bottom: 24px; }
  .narrow { margin-top: 12px; }
  .roster, .files { min-height: 0; }
}
