
/* Base */
.hpv1-planner{max-width:1100px;margin:0 auto;color:#eef4f2;font-size:15px}
.hpv1-planner h3{font-size:1.6rem; line-height:1.25; margin:0 0 14px;font-weight:800}
.hpv1-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr)); gap:14px 18px}
.hpv1-grid label{display:flex;flex-direction:column;font-weight:600; font-size:.98rem}
.hpv1-grid select,.hpv1-grid input{
  margin-top:6px;padding:8px 10px;font-size:.98rem;border-radius:10px;
  background:#0e2f2f;color:#eef4f2;border:1px solid rgba(255,255,255,.18)
}
.hpv1-grid select:focus,.hpv1-grid input:focus{
  outline:none;border-color:#d4b06a;box-shadow:0 0 0 2px rgba(212,176,106,.25)
}
.hpv1-grid label.hpv1-meatdays-wrapper{display:none}
.hpv1-grid label.hpv1-meatdays-wrapper.is-visible{display:flex}
.hpv1-grid label.hpv1-meatdays-wrapper{flex-direction:column; gap:6px}
.hpv1-btn{margin-top:16px;padding:12px 18px;border-radius:12px;border:none;background:#d4b06a;color:#102724;font-weight:800;cursor:pointer}
.hpv1-card{margin-top:18px;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.injuries-title{margin:16px 0 6px;font-size:1rem;font-weight:800}
.injuries-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:12px 14px;margin-top:8px}
.injury-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);font-size:.96rem}
.switch{position:relative;width:44px;height:24px;flex:0 0 44px}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;cursor:pointer;inset:0;background:rgba(255,255,255,.25);transition:.2s;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.switch input:checked + .slider{background:#d4b06a}
.switch input:checked + .slider:before{transform:translateX(20px)}
.hpv1-hint{margin-top:8px;font-size:.92rem;opacity:.85}

/* Tabs */
.hpv1-tabs{display:flex;gap:10px;margin:14px 0 8px}
.hpv1-tabs button{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);color:#eef4f2;padding:8px 12px;border-radius:10px;cursor:pointer}
.hpv1-tabs button.active{background:#0e2f2f;border-color:#3dd3c6}
.hpv1-tab{display:none}
.hpv1-tab.active{display:block}

/* Menu */
.hpv1-menu{margin-top:14px}
.hpv1-menu-table{width:100%;border-collapse:separate;border-spacing:0 8px}
.hpv1-menu-table th{text-align:left;font-weight:800;font-size:.96rem;padding:8px 10px;opacity:.9}
.hpv1-menu-table td{padding:10px 12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px}
.hpv1-menu .day-title{font-weight:800;margin:12px 0 6px}
.hpv1-menu .meal-name{font-weight:700}
.hpv1-subtle{opacity:.8;font-size:.92rem}

/* Recipes inline rows */
.hpv1-recipes{display:block}
.hpv1-recipes .day-row{display:flex;gap:12px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
.hpv1-recipe{min-width:260px;flex:0 0 260px;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:12px;background:rgba(255,255,255,.05)}
.hpv1-recipe h4{margin:0 0 6px 0}
.hpv1-recipe .meta{font-size:.9rem;opacity:.8;margin-bottom:6px}
.hpv1-recipe details{margin-top:6px}
.hpv1-recipe summary{cursor:pointer;font-weight:700}
.hpv1-badge{display:inline-block;background:#0e2f2f;border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:2px 8px;margin-right:6px;font-size:.85rem}
.day-title{font-weight:800;margin:12px 0 6px}

/* Responsive */
@media (max-width: 1024px){
  .hpv1-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}
  .injuries-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}
}
@media (max-width: 640px){
  .hpv1-grid{grid-template-columns:1fr}
  .injuries-grid{grid-template-columns:1fr}
  .hpv1-recipes .day-row{flex-wrap:wrap}
}


/* v1.4.0 menu uses recipe titles; training panel */
.hpv1-menu-day{margin:10px 0 14px}
.hpv1-menu-list{display:flex;gap:10px;flex-wrap:wrap}
.hpv1-menu-item{padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);font-weight:600}
.hpv1-menu-item .sub{display:block;opacity:.8;font-weight:400;font-size:.9rem}

.hpv1-training .hpv1-card{margin-top:8px}
.hpv1-training h4{margin:6px 0;font-size:1.05rem}
.hpv1-training ul{margin:6px 0 0 18px}
.hpv1-training li{margin:2px 0}



/* v1.5.0 actions & polish */
.hpv1-actions{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }

.hpv1-btn{ background:#d4b06a; color:#000; font-weight:800; }
.hpv1-btn.hpv1-reset{ background:#444; color:#fff; }
.hpv1-btn.hpv1-pdf{ background:#C0A268; color:#000; }

@media (max-width: 1024px){
  #hpv1-pdf { display:none; }
}

.hpv1-grid select, .hpv1-grid input {
  background:#0e2f2f; color:#eef4f2; border:1px solid rgba(255,255,255,.18);
}

.hpv1-tabs button.active{ background:#0e2f2f; border-color:#C0A268; }
.hpv1-card{ border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); }

