/* Coach Training (coach-training.js), Performance > Training. Light, in the Performance look. Prefix ctr-. The facility workout builder inside it uses
   track.css (tk-), the same builder athletes use. */
.ctr { display: flex; flex-direction: column; gap: 12px; max-width: 900px; color: #0b0f17; }
.ctr h2 { margin: 0; font: 800 17px/1.2 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; text-transform: none; letter-spacing: -.01em; }
.ctr-mut { margin: 0; color: #6b7280; font-size: 13px; }
.ctr-mut a { color: #1f4fe0; }
.ctr-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e6e8ec; border-radius: 16px; padding: 14px; }
.ctr-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctr-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #1f4fe0; color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.ctr-btn .ic { width: 16px; height: 16px; }
.ctr-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 700; color: #1f4fe0; cursor: pointer; text-decoration: none; }

.ctr-wk { display: flex; justify-content: space-between; align-items: center; }
.ctr-wk a { color: #0b0f17; text-decoration: none; font-size: 22px; padding: 2px 12px; }
.ctr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ctr-days a { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 0 9px; border-radius: 12px; color: #0b0f17; text-decoration: none; }
.ctr-days small { font-size: 11px; color: #6b7280; } .ctr-days b { font-size: 15px; }
.ctr-days a.now { box-shadow: inset 0 0 0 1.5px #1f4fe0; }
.ctr-days a.on { background: #0b0f17; color: #fff; } .ctr-days a.on small { color: #c3c9d3; }
.ctr-days i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #1f4fe0; }
.ctr-days a.on i { background: #fff; }

.ctr-asg { border-top: 1px solid #eef0f3; padding-top: 8px; }
.ctr-asg summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.ctr-asg summary::-webkit-details-marker { display: none; }
.ctr-asg summary small { display: block; color: #6b7280; font-size: 12.5px; }
.ctr-asg .ctr-link { margin-top: 6px; }
.ctr-pill { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff4e0; color: #b45309; }
.ctr-pill.ok { background: #e8f6ec; color: #16803c; }

.ctr-who { list-style: none; margin: 0; padding: 0; }
.ctr-who li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eef0f3; }
.ctr-who li:first-child { border-top: 0; }
.ctr-who li > a, .ctr-who li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 9px 0; color: inherit; text-decoration: none; }
.ctr-who li.ctr-no { padding: 9px 0; display: flex; } .ctr-who li.ctr-no b { flex: 1; font-weight: 600; color: #6b7280; }
.ctr-who span { color: #6b7280; font-size: 12.5px; }

.ctr-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctr-tbl th { font-size: 10.5px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: right; padding: 0 0 6px 8px; }
.ctr-tbl th:first-child, .ctr-tbl td:first-child { text-align: left; padding-left: 0; }
.ctr-tbl td { padding: 8px 0 8px 8px; border-top: 1px solid #eef0f3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctr-tbl td:first-child { white-space: normal; font-weight: 600; }
.ctr-jump td { background: #fff8eb; }
.ctr-flag { font-size: 11px; font-weight: 800; color: #b45309; }
.ctr-sum { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e6e8ec; border-radius: 12px; padding: 8px 0; text-align: center; font-size: 12px; color: #6b7280; }
.ctr-sum b { display: block; font-size: 17px; color: #0b0f17; } .ctr-sum div + div { border-left: 1px solid #e6e8ec; }
.ctr-pr { font-size: 9.5px; font-weight: 800; color: #16803c; background: #e8f6ec; border-radius: 5px; padding: 1px 4px; }
.ctr-note { background: #f6f8ff; border-radius: 12px; padding: 10px 12px; } .ctr-note small { color: #6b7280; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .ctr-note p { margin: 2px 0 0; }

.ctr-sheet { border: 0; border-radius: 18px; padding: 18px; width: min(460px, calc(100% - 24px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ctr-sheet::backdrop { background: rgba(11,15,23,.45); }
.ctr-form { display: flex; flex-direction: column; gap: 12px; }
.ctr-form h2 { margin: 0; font-size: 19px; font-weight: 800; }
.ctr-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #6b7280; }
.ctr-form input:not([type=checkbox]):not([type=radio]), .ctr-form select, .ctr-form textarea { padding: 10px 12px; border: 1px solid #e6e8ec; border-radius: 11px; font: inherit; font-size: 16px; color: #0b0f17; background: #fff; }
.ctr-form [hidden] { display: none !important; }
.ctr-seg { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3f6; border-radius: 11px; padding: 3px; }
.ctr-seg label { flex-direction: row; justify-content: center; padding: 7px; border-radius: 8px; color: #6b7280; cursor: pointer; }
.ctr-seg label:has(input:checked) { background: #fff; color: #0b0f17; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ctr-seg input, .ctr-wd input { position: absolute; opacity: 0; pointer-events: none; }
.ctr-form label.ctr-tog { flex-direction: row; align-items: center; gap: 8px; color: #0b0f17; }
.ctr-wd { display: flex; flex-wrap: wrap; gap: 6px; }
.ctr-wd label { flex-direction: row; padding: 6px 10px; border: 1px solid #e6e8ec; border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.ctr-wd label:has(input:checked) { background: #eef2ff; color: #1f4fe0; border-color: #c9d6ff; }
.ctr-err { margin: 0; color: #b42318; font-size: 13px; } .ctr-err:empty { display: none; }
.ctr-acts { display: flex; justify-content: flex-end; gap: 8px; }
