/* Organized by product feature for straightforward maintenance. */
/* Coach calendar, charts, lessons and readout components. */

.week-strip{
    display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin-top:16px;
  }
  .coach-day{
    position:relative; min-width:0; padding:9px 3px 8px; border-radius:12px;
    background:rgba(13,18,26,.68); border:1px solid var(--border); color:var(--text);
    text-align:center; cursor:pointer;
  }
  .coach-day.active{
    border-color:var(--accent); box-shadow:0 0 0 1px rgba(32,200,255,.18);
    background:rgba(32,200,255,.08);
  }
  .coach-day.training-complete{background:rgba(32,200,255,.07)}
  .coach-day-name{font-size:11px; font-weight:850}
  .coach-day-date{font-size:10px; color:var(--muted); margin-top:3px}
  .coach-day-signals{
    min-height:13px; margin-top:5px; display:flex; justify-content:center; gap:4px;
    font-size:9px;
  }
  .signal-food{color:var(--accent2)}
  .signal-train{color:var(--accent)}
  .signal-rest{color:var(--muted)}
  .coach-metrics{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px;
  }
  .coach-metric{
    background:linear-gradient(180deg,rgba(31,39,53,.92),rgba(24,30,41,.92));
    border:1px solid var(--border); border-radius:16px; padding:12px;
  }
  .coach-metric-label{
    color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:1px;
  }
  .coach-metric-value{font-size:23px; font-weight:880; margin-top:3px}
  .coach-metric-note{font-size:11px; color:var(--muted); margin-top:3px}
  .coach-grid{display:grid; grid-template-columns:1fr; gap:14px}
  .average-grid{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0 12px;
  }
  .average-chip{
    padding:9px; border-radius:12px; background:var(--panel2); border:1px solid var(--border);
  }
  .average-chip strong{display:block; font-size:17px}
  .average-chip span{font-size:10px; color:var(--muted)}
  .chart-shell{
    position:relative; border-radius:15px; background:rgba(10,14,20,.55);
    border:1px solid rgba(255,255,255,.05); padding:8px; overflow:hidden;
  }
  .mini-chart{display:block; width:100%; height:auto; min-height:190px}
  .chart-empty{
    position:absolute; inset:0; display:grid; place-items:center; padding:25px;
    color:var(--muted); font-size:12px; text-align:center; pointer-events:none;
  }
  .chart-legend{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
  .legend-item{font-size:11px; color:var(--muted); display:flex; align-items:center; gap:5px}
  .legend-dot{width:8px; height:8px; border-radius:50%}
  .lift-toggle{display:flex; gap:7px; flex-wrap:wrap; margin:8px 0 12px}
  .lift-btn{
    padding:7px 10px; background:var(--panel3); color:var(--text);
    border:1px solid var(--border); border-radius:10px;
  }
  .lift-btn.active{
    background:rgba(32,200,255,.13); color:var(--accent);
    border-color:rgba(32,200,255,.28);
  }
  .trend-summary{
    display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:8px;
  }
  .trend-number{font-size:27px; font-weight:900}
  .trend-change{font-size:12px; color:var(--muted); text-align:right}
  .coach-readout{
    display:grid; grid-template-columns:1fr; gap:9px; margin-top:10px;
  }
  .readout-row{
    display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start;
    padding:10px; border-radius:13px; background:var(--panel2); border:1px solid var(--border);
  }
  .readout-icon{
    width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
    background:#0e141d; font-size:17px;
  }
  .readout-row strong{display:block; font-size:13px; margin-bottom:2px}
  .readout-row span{font-size:12px; color:var(--muted); line-height:1.4}

  .burt-card{
    position:relative; overflow:hidden;
    background:
      radial-gradient(circle at 78% 18%, rgba(22,140,255,.15), transparent 32%),
      radial-gradient(circle at 15% 84%, rgba(32,200,255,.11), transparent 28%),
      linear-gradient(160deg, rgba(22,29,39,.98), rgba(15,20,28,.98));
  }
  .burt-layout{
    display:grid; grid-template-columns:1fr; gap:14px; align-items:center;
  }
  .burt-mascot-wrap{
    display:flex; align-items:center; justify-content:center;
  }
  .burt-mascot{
    width:min(100%,250px); height:auto; filter:drop-shadow(0 14px 28px rgba(0,0,0,.28));
  }
  .burt-headline{
    display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;
  }
  .burt-title{
    font-size:20px; font-weight:900; margin:0;
  }
  .burt-sub{
    color:var(--muted); font-size:12px; line-height:1.45;
  }
  .burt-badge{
    padding:7px 10px; border-radius:999px;
    background:rgba(32,200,255,.1); color:var(--accent);
    border:1px solid rgba(32,200,255,.22); font-size:11px; font-weight:850;
    letter-spacing:.7px; text-transform:uppercase;
  }
  .fact-card{
    background:rgba(10,14,20,.5); border:1px solid rgba(255,255,255,.06);
    border-radius:16px; padding:14px;
  }
  .fact-meta{
    display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px;
  }
  .fact-pill{
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 9px; border-radius:999px;
    background:var(--panel2); border:1px solid var(--border);
    color:var(--muted); font-size:11px;
  }
  .fact-pill strong{color:var(--text)}
  .fact-title{
    font-size:18px; font-weight:850; line-height:1.2; margin:0 0 8px;
  }
  .fact-body{
    font-size:14px; line-height:1.55; color:#d9e2ef; margin:0 0 10px;
  }
  .fact-takeaway{
    padding:10px 12px; border-radius:12px;
    background:rgba(32,200,255,.08); border:1px solid rgba(32,200,255,.14);
    font-size:13px; line-height:1.45; color:#dff2e8;
  }
  .burt-actions{
    display:flex; flex-wrap:wrap; gap:8px; margin-top:12px;
  }
  .burt-mini{
    color:var(--muted); font-size:11px; margin-top:10px;
  }
  @media(min-width:800px){
    .burt-layout{grid-template-columns:260px 1fr}
  }


  .schedule-tools{
    display:grid; grid-template-columns:1fr; gap:10px; margin-top:11px;
    padding:11px; border-radius:14px; background:rgba(10,14,20,.42);
    border:1px solid rgba(255,255,255,.05);
  }
  .schedule-actions{display:flex; flex-wrap:wrap; gap:8px; align-items:end}
  .schedule-status{
    padding:10px 12px; border-radius:12px; background:rgba(32,200,255,.07);
    border:1px solid rgba(32,200,255,.14); color:#dceee6;
    font-size:12px; line-height:1.45;
  }
  .schedule-status.prestart{
    background:rgba(22,140,255,.07); border-color:rgba(22,140,255,.18); color:#dbe4ff;
  }
  .schedule-status.finished{
    background:rgba(255,122,26,.07); border-color:rgba(255,122,26,.18); color:#f5e5bf;
  }
  .date-lock-note{font-size:10px;color:var(--muted);margin-top:5px}
  .today-marker{
    display:inline-flex; align-items:center; gap:5px; margin-left:6px;
    padding:3px 7px; border-radius:999px; background:rgba(22,140,255,.12);
    color:var(--accent2); border:1px solid rgba(22,140,255,.18); font-size:10px; font-weight:800;
  }
  .coach-day.today::after{
    content:""; position:absolute; top:5px; right:5px; width:5px; height:5px;
    border-radius:50%; background:var(--accent2); box-shadow:0 0 9px rgba(22,140,255,.75);
  }
  .burt-context{
    margin:9px 0 10px; padding:9px 11px; border-radius:12px;
    background:rgba(22,140,255,.07); border:1px solid rgba(22,140,255,.15);
    color:#dce4ff; font-size:12px; line-height:1.4;
  }
  .phase-coach{
    margin:0 0 10px; padding:10px 12px; border-radius:12px;
    background:rgba(255,122,26,.07); border:1px solid rgba(255,122,26,.14);
    color:#f3e4bf; font-size:12px; line-height:1.45;
  }
  .burt-favourite.active{
    background:rgba(255,125,145,.12); color:#ff6f2c; border-color:rgba(255,125,145,.26);
  }
  .mini-lesson{
    margin-top:11px; border:1px solid var(--border); border-radius:13px;
    background:rgba(12,17,24,.48); overflow:hidden;
  }
  .mini-lesson summary{
    cursor:pointer; list-style:none; padding:10px 12px; font-weight:800;
    display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .mini-lesson summary::-webkit-details-marker{display:none}
  .mini-lesson summary::after{content:"＋";color:var(--accent)}
  .mini-lesson[open] summary::after{content:"−"}
  .mini-lesson-body{padding:0 12px 12px; font-size:12px; line-height:1.55; color:#d3dcea}
  .mini-lesson-body strong{color:var(--text)}
  .lesson-block{padding:9px 0;border-top:1px solid rgba(255,255,255,.055)}
  .lesson-block:first-child{border-top:0}
  .coach-quote{color:#f5e5bf;font-style:italic}
  .lesson-block{
    margin-top:8px; padding:9px 10px; border-radius:10px;
    background:var(--panel2); border:1px solid rgba(255,255,255,.04);
  }

  .header-top{
    display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  }

  .cf-weekly-review{margin-bottom:12px;padding:13px;border:1px solid rgba(32,200,255,.2);border-radius:15px;background:linear-gradient(145deg,rgba(32,200,255,.08),rgba(22,140,255,.035))}
  .cf-weekly-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .cf-weekly-review-head>div{display:grid;gap:3px}.cf-weekly-review-head span{font-size:10px;font-weight:850;letter-spacing:.14em;color:var(--accent)}
  .cf-weekly-review-head strong{font-size:19px}.cf-weekly-review-head>b{font-size:30px;color:var(--accent);line-height:1}.cf-weekly-review-head b small{font-size:11px;color:var(--muted)}
  .cf-weekly-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
  .cf-weekly-review-grid>div{display:grid;gap:2px;padding:10px;border-radius:11px;background:rgba(7,12,18,.45);border:1px solid rgba(255,255,255,.055)}
  .cf-weekly-review-grid span,.cf-weekly-review-grid small{font-size:10px;color:var(--muted)}.cf-weekly-review-grid strong{font-size:16px}
  .cf-progression-guide{margin-top:10px;border-top:1px solid rgba(255,255,255,.07)}.cf-progression-guide summary{cursor:pointer;padding:11px 0 2px;font-weight:800;color:#dce9f7}
  .cf-progression-guide article{display:grid;gap:3px;padding:9px 0;border-top:1px solid rgba(255,255,255,.055)}.cf-progression-guide article span{font-size:12px}.cf-progression-guide article small{font-size:10px;color:var(--muted)}


.cf-coach-details>summary{cursor:pointer;font-weight:700;padding:8px 0;color:var(--text)}
.cf-coach-details[open]>summary{margin-bottom:16px}
.cf-coach-details>.coach-metrics{margin-top:12px}
.cf-food-portion{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cf-food-portion input{width:76px;min-width:0}
.cf-social-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
.cf-connection-row small{overflow-wrap:anywhere}
@media(max-width:600px){.cf-weekly-review-head b{font-size:22px}.cf-coach-details{padding:12px}.cf-connection-row{gap:8px}.cf-connection-row button{max-width:44%;white-space:normal}}

/* Optional learning section in the established Coach card. */
.cf-coach-learning>summary{font-size:16px;font-weight:700;padding:4px 0;cursor:pointer;min-height:44px}
.cf-coach-learning .burt-layout{display:block!important;margin-top:16px}
.cf-coach-learning .burt-mascot-wrap{max-width:150px!important;float:right;margin:0 0 14px 16px!important}
.cf-coach-learning .cyborg-coach-stage{aspect-ratio:1!important}
.cf-coach-learning .v132-coach-video{object-fit:cover!important;object-position:center 20%!important}
.cf-coach-learning .cyborg-coach-status,.cf-coach-learning .cyborg-coach-aura{display:none}
.cf-coach-learning .fact-meta,.cf-coach-learning .burt-context,.cf-coach-learning .phase-coach,.cf-coach-learning .burt-mini{display:none}
.cf-coach-learning .fact-card{padding:0!important;border:0!important;background:transparent!important}
.cf-coach-learning .burt-actions{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cf-coach-learning .burt-actions button{min-height:44px}
.cf-coach-learning #randomBurtFactBtn{display:none}
.cf-coach-learning .burt-badge{font-size:11px;padding:4px 8px}
.cf-coach-learning .burt-sub{font-size:12px;margin-bottom:14px}
@media(max-width:360px){.cf-coach-learning .burt-mascot-wrap{max-width:100px!important}}

/* Saved insights open in place below the two primary actions. */
.cf-coach-learning .burt-saved{grid-column:1/-1;border:1px solid var(--border);border-radius:8px}
.cf-coach-learning .burt-saved>summary{padding:12px;cursor:pointer;font-weight:600;min-height:44px}
#burtSavedList{display:grid;gap:8px;padding:0 12px 12px;color:var(--muted);font-size:14px}
#burtSavedList button{text-align:left;white-space:normal;width:100%}
.burt-source{font-size:12px;margin:8px 0 12px}
