/* ── Theme Mode Reset ── */
html, body { margin:0; padding:0; min-height:100vh; overflow-x:hidden; }
/* ============================================================
   RECOMP PRO — WordPress Plugin CSS
   All rules scoped inside body to avoid conflicts
   ============================================================ */

body {
  --bg:     #080b12;
  --bg2:    #0d1120;
  --card:   #111827;
  --card2:  #1a2234;
  --border: #1e2d45;
  --border2:#253550;
  --green:  #22d3a5;
  --blue:   #3b82f6;
  --purple: #8b5cf6;
  --orange: #f97316;
  --yellow: #eab308;
  --red:    #ef4444;
  --pink:   #ec4899;
  --teal:   #06b6d4;
  --lime:   #84cc16;
  --text:   #e2e8f0;
  --text2:  #94a3b8;
  --text3:  #4b6080;
  --radius: 16px;
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

/* Background glow */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 10% 0%, rgba(34,211,165,.05) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 90% 100%, rgba(59,130,246,.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Reset just inside our root */
body *, body *::before, body *::after {
  box-sizing: border-box;
}
body p { margin: 0; }
body button { cursor: pointer; }

/* HEADER */
body .rcp-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,11,18,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
body .logo-wrap { display: flex; align-items: center; gap: 10px; }
body .logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg,var(--green),var(--blue)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
body .logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; color: var(--text); }
body .logo-sub  { font-size: .55rem; color: var(--text3); letter-spacing: .15em; font-family: 'DM Mono', monospace; }
body .header-right { display: flex; align-items: center; gap: 8px; }
body .save-indicator { display: flex; align-items: center; gap: 5px; font-family: 'DM Mono', monospace; font-size: .64rem; color: var(--text3); transition: color .3s; }
body .save-indicator.saved { color: var(--green); }
body .save-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); transition: background .3s; }
body .save-indicator.saved .save-dot { background: var(--green); }
body .pill      { background: rgba(34,211,165,.1); border: 1px solid rgba(34,211,165,.25); color: var(--green); padding: 4px 12px; border-radius: 999px; font-family: 'DM Mono',monospace; font-size: .68rem; }
body .week-pill { background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); color: var(--purple); padding: 4px 12px; border-radius: 999px; font-family: 'DM Mono',monospace; font-size: .68rem; }

/* MAIN */
body .rcp-main { position: relative; z-index: 1; max-width: 1340px; margin: 0 auto; padding: 20px 22px; }

/* TABS */
body .tabs { display: flex; gap: 3px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 20px; width: fit-content; flex-wrap: wrap; }
body .tab { padding: 7px 15px; border-radius: 8px; border: none; background: none; color: var(--text2); font-family: 'Outfit',sans-serif; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .2s; white-space: nowrap; }
body .tab:hover { color: var(--text); background: var(--card2); }
body .tab.active { background: linear-gradient(135deg,rgba(34,211,165,.15),rgba(59,130,246,.1)); color: var(--green); border: 1px solid rgba(34,211,165,.2); }
body .tab-content { display: none; }
body .tab-content.active { display: block; animation: rcpFadeIn .22s ease; }
@keyframes rcpFadeIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

/* STATS */
body .stats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-bottom: 18px; }
@media(max-width:900px) { body .stats-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:500px) { body .stats-grid { grid-template-columns: repeat(2,1fr); } }
body .stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 17px; position: relative; overflow: hidden; }
body .stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
body .stat-card.g::after { background: var(--green); }
body .stat-card.b::after { background: var(--blue); }
body .stat-card.o::after { background: var(--orange); }
body .stat-card.y::after { background: var(--yellow); }
body .stat-card.p::after { background: var(--purple); }
body .sc-label { font-size: .6rem; color: var(--text3); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
body .sc-value { font-family: 'DM Mono',monospace; font-size: 1.45rem; font-weight: 500; line-height: 1; margin-bottom: 4px; }
body .sc-sub   { font-size: .66rem; font-family: 'DM Mono',monospace; color: var(--text3); }
body .sc-sub.up   { color: var(--red); }
body .sc-sub.down { color: var(--green); }
body .prog-track  { background: var(--bg2); border-radius: 999px; height: 4px; overflow: hidden; margin-top: 8px; }
body .prog-fill   { height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--green),var(--blue)); transition: width .8s cubic-bezier(.34,1.56,.64,1); }
body .prog-label  { font-family: 'DM Mono',monospace; font-size: .58rem; color: var(--text3); margin-top: 4px; }

/* PANELS */
body .entry-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
body .panel-header { padding: 14px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg,rgba(34,211,165,.04),transparent); }
body .panel-title { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
body .panel-icon  { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
body .today-date  { font-family: 'DM Mono',monospace; font-size: .7rem; color: var(--text3); }
body .panel-body  { padding: 18px 22px; }

/* INPUTS */
body .input-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 14px; }
@media(max-width:900px) { body .input-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { body .input-grid { grid-template-columns: 1fr; } }
body .input-group { display: flex; flex-direction: column; gap: 5px; }
body .input-label { font-size: .66rem; font-weight: 500; color: var(--text2); display: flex; align-items: center; gap: 4px; }
body .inp { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: 'DM Mono',monospace; font-size: .88rem; color: var(--text); transition: all .2s; -webkit-appearance: none; appearance: none; }
body .inp:focus { outline: none; border-color: var(--green); background: rgba(34,211,165,.04); box-shadow: 0 0 0 3px rgba(34,211,165,.08); }
body .inp::placeholder { color: var(--text3); font-size: .76rem; }

/* ENERGY / WORKOUT */
body .energy-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
body .energy-btn { flex: 1; min-width: 22px; padding: 7px 2px; border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg2); color: var(--text2); font-family: 'DM Mono',monospace; font-size: .7rem; cursor: pointer; text-align: center; transition: all .15s; }
body .energy-btn:hover { border-color: var(--green); color: var(--green); }
body .energy-btn.sel { background: rgba(34,211,165,.12); border-color: var(--green); color: var(--green); }
body .workout-row { display: flex; gap: 7px; margin-bottom: 18px; }
body .wbtn { flex: 1; padding: 9px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg2); color: var(--text2); font-family: 'Outfit',sans-serif; font-size: .77rem; font-weight: 500; cursor: pointer; text-align: center; transition: all .15s; }
body .wbtn.sel-yes   { border-color: var(--green);  background: rgba(34,211,165,.1);  color: var(--green); }
body .wbtn.sel-light { border-color: var(--yellow); background: rgba(234,179,8,.1);   color: var(--yellow); }
body .wbtn.sel-no    { border-color: var(--red);    background: rgba(239,68,68,.08);  color: var(--red); }

/* SAVE BTN */
body .btn-save-main { width: 100%; padding: 13px; background: linear-gradient(135deg,var(--green),#0dd4a8); color: #060f1a; border: none; border-radius: 12px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
body .btn-save-main:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(34,211,165,.3); }

/* MEAS ALERT */
body .meas-alert { background: linear-gradient(135deg,rgba(139,92,246,.15),rgba(6,182,212,.1)); border: 1px solid rgba(139,92,246,.3); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
body .meas-alert .t1 { font-weight: 600; font-size: .88rem; color: var(--purple); }
body .meas-alert .t2 { font-family: 'DM Mono',monospace; font-size: .7rem; color: var(--text2); margin-top: 2px; }

/* MODAL */
body .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 800; display: flex; align-items: center; justify-content: center; }
body .modal-box { background: var(--card); border: 1px solid var(--border2); border-radius: 22px; padding: 38px 32px; max-width: 420px; width: 90%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.6); position: relative; overflow: hidden; }
body .modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--orange),var(--yellow),var(--green)); }
body .modal-icon  { font-size: 3.2rem; margin-bottom: 16px; }
body .modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
body .modal-sub   { font-size: .84rem; color: var(--text2); line-height: 1.65; margin-bottom: 26px; }
body .modal-btn   { width: 100%; padding: 13px; border-radius: 12px; border: none; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .92rem; cursor: pointer; background: linear-gradient(135deg,var(--orange),#f59e0b); color: #000; margin-bottom: 8px; transition: all .2s; }
body .modal-btn-skip { width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: none; color: var(--text2); font-family: 'Outfit',sans-serif; font-size: .82rem; cursor: pointer; }

/* FOOD TRACKER */
body .food-macro-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
body .fmb-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; text-align: center; }
body .fmb-val { font-family: 'DM Mono',monospace; font-size: 1.35rem; font-weight: 500; margin-bottom: 3px; }
body .fmb-lbl { font-size: .6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
body .meal-tabs-wrap { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 16px; width: fit-content; flex-wrap: wrap; }
body .meal-tab { padding: 8px 18px; border-radius: 8px; border: 1.5px solid transparent; background: none; color: var(--text2); font-family: 'Outfit',sans-serif; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 7px; }
body .meal-tab.active { background: linear-gradient(135deg,rgba(249,115,22,.18),rgba(245,158,11,.1)); color: var(--orange); border-color: rgba(249,115,22,.3); }
body .meal-cal-badge { font-family: 'DM Mono',monospace; font-size: .62rem; background: rgba(249,115,22,.15); color: var(--orange); padding: 1px 7px; border-radius: 999px; }
body .food-tracker-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
@media(max-width:960px) { body .food-tracker-wrap { grid-template-columns: 1fr; } }
body .food-search-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
body .food-header { padding: 15px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg,rgba(249,115,22,.05),transparent); }
body .food-header-title { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
body .food-header-sub  { font-size: .68rem; color: var(--text3); font-family: 'DM Mono',monospace; }
body .food-search-box  { padding: 13px 18px; border-bottom: 1px solid var(--border); }
body .search-input-wrap { position: relative; }
body .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .95rem; pointer-events: none; }
body #foodSearch { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px 10px 36px; font-family: 'Outfit',sans-serif; font-size: .88rem; color: var(--text); transition: all .2s; }
body #foodSearch:focus { outline: none; border-color: var(--orange); }
body #foodSearch::placeholder { color: var(--text3); }
body .food-cats { display: flex; gap: 5px; flex-wrap: wrap; padding: 9px 18px 12px; }
body .cat-btn { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); font-size: .68rem; cursor: pointer; transition: all .15s; white-space: nowrap; }
body .cat-btn:hover, body .cat-btn.active { border-color: var(--orange); background: rgba(249,115,22,.12); color: var(--orange); }
body .food-results { max-height: 420px; overflow-y: auto; padding: 6px 8px; }
body .food-results::-webkit-scrollbar { width: 3px; }
body .food-results::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
body .food-item { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; cursor: pointer; transition: all .15s; border: 1px solid transparent; margin-bottom: 3px; }
body .food-item:hover { background: rgba(249,115,22,.06); border-color: rgba(249,115,22,.2); }
body .food-item-img { width: 42px; height: 42px; border-radius: 8px; background: var(--bg2); flex-shrink: 0; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
body .food-item-name { font-size: .82rem; font-weight: 600; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .food-item-alt  { font-size: .64rem; color: var(--text3); margin-bottom: 3px; }
body .food-item-macros { display: flex; gap: 5px; flex-wrap: wrap; }
body .macro-pill { font-family: 'DM Mono',monospace; font-size: .6rem; padding: 2px 6px; border-radius: 999px; }
body .mp-cal { background: rgba(249,115,22,.12); color: var(--orange); }
body .mp-p   { background: rgba(34,211,165,.1);  color: var(--green); }
body .mp-c   { background: rgba(234,179,8,.1);   color: var(--yellow); }
body .mp-f   { background: rgba(239,68,68,.08);  color: var(--red); }
body .food-detail-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 76px; height: fit-content; }
body .fd-placeholder { padding: 44px 22px; text-align: center; color: var(--text3); font-size: .8rem; line-height: 2; }
body .fd-placeholder .big { font-size: 2.2rem; margin-bottom: 10px; }
body .fd-content { display: none; }
body .fd-img-wrap { width: 100%; height: 150px; overflow: hidden; background: var(--bg2); }
body .fd-img-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
body .fd-info { padding: 14px 17px; }
body .fd-name { font-size: .98rem; font-weight: 700; margin-bottom: 2px; }
body .fd-name-alt { font-size: .68rem; color: var(--text3); margin-bottom: 11px; }
body .fd-macros-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-bottom: 11px; }
body .fd-macro-card  { background: var(--bg2); border-radius: 9px; padding: 9px; text-align: center; }
body .fd-mc-val   { font-family: 'DM Mono',monospace; font-size: 1.05rem; font-weight: 500; margin-bottom: 2px; }
body .fd-mc-label { font-size: .56rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
body .fd-calc { background: var(--bg2); border-radius: 9px; padding: 10px 12px; margin-bottom: 11px; }
body .fd-calc-title  { font-size: .6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; font-family: 'DM Mono',monospace; margin-bottom: 7px; }
body .fd-calc-row   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
body .fd-calc-label { font-size: .7rem; color: var(--text2); }
body .fd-calc-val   { font-family: 'DM Mono',monospace; font-size: .78rem; font-weight: 500; }
body .fd-meal-label { font-size: .66rem; color: var(--text2); margin-bottom: 5px; font-weight: 500; }
body .fd-meal-btns  { display: flex; gap: 5px; margin-bottom: 10px; }
body .fd-mbtn { flex: 1; padding: 7px 4px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg2); color: var(--text2); font-size: .72rem; font-weight: 600; cursor: pointer; text-align: center; transition: all .15s; }
body .fd-mbtn.active { border-color: var(--orange); background: rgba(249,115,22,.12); color: var(--orange); }
body .btn-add-food { width: 100%; padding: 11px; background: linear-gradient(135deg,var(--orange),#f59e0b); color: #000; border: none; border-radius: 10px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; }
body .btn-add-food:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,.3); }

/* MEAL LOG */
body .meal-log-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
body .meal-log-hd { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
body .meal-log-title { font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: 7px; }
body .meal-macros-row { font-family: 'DM Mono',monospace; font-size: .68rem; color: var(--text3); display: flex; gap: 10px; flex-wrap: wrap; }
body .meal-log-body { padding: 6px 10px; min-height: 46px; }
body .fl-item { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; border-bottom: 1px solid rgba(30,45,69,.4); gap: 8px; }
body .fl-item:last-child { border-bottom: none; }
body .fl-item-left  { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
body .fl-item-emoji { font-size: 1.2rem; flex-shrink: 0; }
body .fl-item-name  { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .fl-item-weight{ font-family: 'DM Mono',monospace; font-size: .65rem; color: var(--text3); }
body .fl-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body .fl-item-cals  { font-family: 'DM Mono',monospace; font-size: .78rem; color: var(--orange); font-weight: 500; }
body .fl-del { background: none; border: 1px solid var(--border); color: var(--text3); border-radius: 5px; padding: 2px 7px; font-size: .65rem; cursor: pointer; }
body .fl-del:hover { border-color: var(--red); color: var(--red); }
body .fl-empty { padding: 18px; text-align: center; font-size: .78rem; color: var(--text3); }
body .food-action-bar { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* BUTTONS */
body .btn-sm { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--card2); color: var(--text2); font-family: 'DM Mono',monospace; font-size: .68rem; cursor: pointer; transition: all .15s; }
body .btn-sm:hover { border-color: var(--green); color: var(--green); }
body .btn-sm.danger:hover { border-color: var(--red); color: var(--red); }

/* MEASUREMENTS */
body .measurements-gate { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; position: relative; }
body .measurements-gate::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,var(--purple),var(--teal),var(--lime)); }
body .meas-locked { padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
body .lock-icon { font-size: 2.2rem; opacity: .4; }
body .lock-countdown { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); color: var(--purple); padding: 6px 18px; border-radius: 999px; font-family: 'DM Mono',monospace; font-size: .74rem; }
body .meas-panel-header { padding: 15px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg,rgba(139,92,246,.06),transparent); }
body .meas-title { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
body .meas-badge { background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.3); color: var(--purple); padding: 3px 10px; border-radius: 999px; font-family: 'DM Mono',monospace; font-size: .65rem; }
body .meas-body { padding: 18px 22px; }
body .meas-section-title { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); font-family: 'DM Mono',monospace; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
body .meas-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
@media(max-width:900px) { body .meas-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:560px) { body .meas-grid { grid-template-columns: repeat(2,1fr); } }
body .meas-input-card { background: var(--bg2); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 11px 8px; display: flex; flex-direction: column; gap: 5px; transition: border-color .2s; }
body .meas-input-card:focus-within { border-color: var(--purple); }
body .mic-top   { display: flex; align-items: center; justify-content: space-between; }
body .mic-label { font-size: .62rem; font-weight: 500; color: var(--text2); }
body .mic-unit  { font-family: 'DM Mono',monospace; font-size: .56rem; color: var(--text3); }
body .mic-input { background: none; border: none; outline: none; font-family: 'DM Mono',monospace; font-size: 1.1rem; font-weight: 500; color: var(--text); width: 100%; padding: 0; }
body .mic-input::placeholder { color: var(--text3); font-size: .78rem; }
body .mic-prev { font-family: 'DM Mono',monospace; font-size: .58rem; color: var(--text3); }
body .chg-up { color: var(--red); font-weight: 600; }
body .chg-dn { color: var(--green); font-weight: 600; }
body .btn-save-meas { width: 100%; padding: 12px; background: linear-gradient(135deg,var(--purple),#6366f1); color: #fff; border: none; border-radius: 11px; font-family: 'Outfit',sans-serif; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; margin-top: 2px; }
body .btn-save-meas:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(139,92,246,.3); }

/* CHARTS */
body .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:800px) { body .charts-grid { grid-template-columns: 1fr; } }
body .chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
body .chart-card.span2 { grid-column: 1/-1; }
body .chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
body .chart-title { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 600; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }
body .cdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
body canvas { max-height: 210px; width: 100% !important; }
body .week-filters { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
body .filter-lbl { font-size: .68rem; color: var(--text3); font-weight: 500; }
body .wf-btn { padding: 5px 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--card); color: var(--text2); font-family: 'DM Mono',monospace; font-size: .68rem; cursor: pointer; transition: all .15s; }
body .wf-btn:hover { border-color: var(--border2); color: var(--text); }
body .wf-btn.active { border-color: var(--green); background: rgba(34,211,165,.08); color: var(--green); }

/* HISTORY TABLE */
body .log-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
body .log-header { padding: 13px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
body .log-title { font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: 7px; }
body .log-actions { display: flex; gap: 7px; }
body .table-scroll { overflow-x: auto; }
body table { width: 100%; border-collapse: collapse; }
body thead th { padding: 8px 12px; text-align: left; font-family: 'DM Mono',monospace; font-size: .6rem; color: var(--text3); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--border); background: var(--bg2); white-space: nowrap; }
body tbody td { padding: 10px 12px; font-family: 'DM Mono',monospace; font-size: .76rem; border-bottom: 1px solid rgba(30,45,69,.5); white-space: nowrap; }
body tbody tr:last-child td { border-bottom: none; }
body .badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: .62rem; }
body .badge-green  { background: rgba(34,211,165,.1);  color: var(--green);  border: 1px solid rgba(34,211,165,.2); }
body .badge-yellow { background: rgba(234,179,8,.1);   color: var(--yellow); border: 1px solid rgba(234,179,8,.2); }
body .badge-red    { background: rgba(239,68,68,.08);  color: var(--red);    border: 1px solid rgba(239,68,68,.15); }
body .badge-purple { background: rgba(139,92,246,.1);  color: var(--purple); border: 1px solid rgba(139,92,246,.2); }
body .del-btn { padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border); background: none; color: var(--text3); font-family: 'DM Mono',monospace; font-size: .6rem; cursor: pointer; }
body .del-btn:hover { border-color: var(--red); color: var(--red); }
body .empty-msg { padding: 44px; text-align: center; color: var(--text3); font-size: .82rem; line-height: 2; }
body .empty-msg .big { font-size: 2rem; margin-bottom: 10px; }
body .meas-week-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }

/* TOAST */
body .recomp-toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 999; display: flex; flex-direction: column; gap: 7px; }
body .toast { background: var(--card2); border: 1px solid var(--green); color: var(--text); padding: 11px 16px; border-radius: 11px; font-family: 'Outfit',sans-serif; font-size: .8rem; font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,.4); display: flex; align-items: center; gap: 8px; transform: translateX(120%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); max-width: 280px; }
body .toast.show { transform: translateX(0); }
body .toast.err { border-color: var(--red); }
