/* FitPlan — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff; --bg2: #f5f5f3; --bg3: #eeede9;
  --text: #1a1a18; --text2: #6b6b67; --text3: #9a9a96;
  --border: rgba(0,0,0,0.12); --border2: rgba(0,0,0,0.22);
  --r: 8px; --rl: 12px; --rxl: 16px;
  --g: #1D9E75; --gl: #E1F5EE; --gm: #5DCAA5; --gd: #0F6E56; --gdd: #085041;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#1c1c1a; --bg2:#262624; --bg3:#2e2e2c;
    --text:#f0efe9; --text2:#a0a09a; --text3:#6e6e6a;
    --border:rgba(255,255,255,0.1); --border2:rgba(255,255,255,0.18);
    --gl:#0a3d2b;
  }
}
html,body { min-height:100vh; background:var(--bg3); font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:var(--text); font-size:16px; line-height:1.6; }
.shell { min-height:100vh; display:flex; flex-direction:column; align-items:center; padding:2rem 1rem 4rem; }
.card { background:var(--bg); border-radius:var(--rxl); border:0.5px solid var(--border); width:100%; max-width:680px; padding:2rem; }
.logo { display:flex; align-items:center; gap:12px; margin-bottom:2.5rem; }
.logo-icon { width:42px; height:42px; background:var(--g); border-radius:12px; display:flex; align-items:center; justify-content:center; }
.logo-icon i { color:#fff; font-size:22px; }
.logo-name { font-size:22px; font-weight:600; letter-spacing:-0.5px; }
.logo-sub { font-size:11px; color:var(--text2); letter-spacing:1.8px; text-transform:uppercase; }
.progress-bar { display:flex; gap:6px; margin-bottom:2rem; }
.progress-step { flex:1; height:3px; background:var(--border); border-radius:2px; transition:background 0.35s; }
.progress-step.done { background:var(--g); }
.progress-step.active { background:var(--gm); }
.screen { display:none; }
.screen.active { display:block; }
.screen-title { font-size:22px; font-weight:600; margin-bottom:4px; }
.screen-sub { font-size:14px; color:var(--text2); margin-bottom:1.75rem; line-height:1.55; }
.field { margin-bottom:1.2rem; }
.field label { display:block; font-size:13px; font-weight:500; color:var(--text2); margin-bottom:6px; }
.field input,.field select { width:100%; padding:10px 13px; border:0.5px solid var(--border2); border-radius:var(--r); background:var(--bg); color:var(--text); font-size:15px; outline:none; transition:border-color 0.2s; }
.field input:focus,.field select:focus { border-color:var(--g); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.opt-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(138px,1fr)); gap:10px; margin-bottom:1.25rem; }
.opt { border:1.5px solid var(--border); border-radius:var(--r); padding:14px 12px; cursor:pointer; transition:border-color 0.2s,background 0.2s; text-align:center; user-select:none; }
.opt:hover,.opt.on { border-color:var(--g); background:var(--gl); }
.opt i { font-size:26px; color:var(--g); display:block; margin-bottom:8px; }
.opt-label { font-size:13px; font-weight:600; }
.opt-sub { font-size:11px; color:var(--text2); margin-top:3px; line-height:1.4; }
.btn { background:var(--g); color:#fff; border:none; border-radius:var(--r); padding:13px 28px; font-size:15px; font-weight:500; cursor:pointer; width:100%; margin-top:0.5rem; transition:background 0.2s; }
.btn:hover { background:var(--gd); }
.btn-sec { background:transparent; color:var(--text2); border:0.5px solid var(--border2); border-radius:var(--r); padding:11px 20px; font-size:14px; cursor:pointer; transition:background 0.2s; }
.btn-sec:hover { background:var(--bg2); }
.btn-row { display:flex; align-items:center; gap:10px; margin-top:1rem; }
.btn-row .btn-sec { flex:none; }
.btn-row .btn { flex:1; margin-top:0; }
.hero { background:var(--gd); border-radius:var(--rl); padding:1.5rem 1.75rem; margin-bottom:1.75rem; }
.hero h2 { font-size:20px; font-weight:600; margin-bottom:4px; color:#fff; }
.hero p { font-size:13px; color:rgba(255,255,255,0.78); }
.mgrid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:1.25rem 0; }
.mc { background:var(--bg2); border-radius:var(--r); padding:14px 10px; text-align:center; }
.mc-val { font-size:21px; font-weight:600; color:var(--g); }
.mc-lbl { font-size:11px; color:var(--text2); margin-top:3px; }
.cal-bar { display:flex; gap:3px; height:10px; border-radius:6px; overflow:hidden; margin:0.75rem 0; }
.cal-seg { height:100%; }
.legend { display:flex; gap:18px; font-size:12px; color:var(--text2); }
.legend span { display:flex; align-items:center; gap:5px; }
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0; }
.sh { font-size:16px; font-weight:600; margin:2rem 0 1rem; display:flex; align-items:center; gap:8px; padding-bottom:10px; border-bottom:0.5px solid var(--border); }
.sh i { color:var(--g); }
.tip { background:var(--gl); border-radius:var(--r); padding:13px 15px; margin:1rem 0; display:flex; gap:10px; }
.tip i { color:var(--g); font-size:18px; flex-shrink:0; margin-top:2px; }
.tip p { font-size:13px; color:var(--gdd); line-height:1.55; }
.day { border:0.5px solid var(--border); border-radius:var(--rl); margin-bottom:10px; overflow:hidden; }
.day-hdr { padding:13px 16px; background:var(--bg2); display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; }
.day-hdr:hover { background:var(--bg3); }
.day-name { font-size:14px; font-weight:500; display:flex; align-items:center; gap:8px; }
.day-tag { font-size:11px; color:var(--gd); background:var(--gl); padding:3px 12px; border-radius:20px; font-weight:500; }
.day-chev { font-size:16px; color:var(--text3); transition:transform 0.25s; }
.day-hdr.open .day-chev { transform:rotate(180deg); }
.day-body { padding:0 16px; max-height:0; overflow:hidden; transition:max-height 0.35s ease,padding 0.25s; }
.day-body.open { max-height:3000px; padding:12px 16px; }
.ex { display:flex; align-items:flex-start; gap:14px; padding:14px 0; border-bottom:0.5px solid var(--border); }
.ex:last-child { border-bottom:none; }
.ex-gif { width:90px; height:72px; border-radius:8px; background:var(--bg2); overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; position:relative; }
.ex-gif img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.ex-gif .gif-load { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:var(--bg2); }
.ex-gif .gif-load i { font-size:22px; color:var(--text3); }
.ex-gif .gif-err { display:none; align-items:center; justify-content:center; width:100%; height:100%; }
.ex-gif .gif-err i { font-size:28px; color:var(--text3); }
.ex-info { flex:1; min-width:0; }
.ex-name { font-size:14px; font-weight:600; margin-bottom:3px; text-transform:capitalize; }
.ex-meta { font-size:12px; color:var(--text2); margin-bottom:3px; }
.ex-detail { font-size:12px; color:var(--text3); margin-top:2px; display:flex; align-items:center; gap:4px; }
.ex-badge { display:inline-block; font-size:10px; font-weight:500; background:var(--gl); color:var(--gd); padding:2px 9px; border-radius:20px; margin-top:5px; text-transform:capitalize; }
.loading { text-align:center; padding:4rem 1rem; }
.spinner { width:38px; height:38px; border:3px solid var(--gl); border-top-color:var(--g); border-radius:50%; animation:spin 0.75s linear infinite; margin:0 auto 16px; }
@keyframes spin { to{transform:rotate(360deg)} }
.loading p { font-size:15px; font-weight:500; margin-bottom:5px; }
.loading span { font-size:13px; color:var(--text2); }
.loading-txt { font-size:12px; color:var(--text3); margin-top:8px; }
hr { border:none; border-top:0.5px solid var(--border); margin:1.5rem 0; }
.api-note { font-size:11px; color:var(--text3); text-align:center; margin-top:6px; }
@media(max-width:480px) {
  .card{padding:1.25rem;}
  .mgrid{grid-template-columns:repeat(2,1fr);}
  .field-row{grid-template-columns:1fr;}
}
  </style>
