/* ═══════════════════════════════════════
   Kyles PT Tracker — Premium Dark
   Slate #2E343B · Mint #98F5C7
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --base:      #23282e;
  --surface:   #2e343b;
  --raised:    #363d45;
  --border:    #3d454e;
  --border-soft:#353c44;

  /* Mint accent */
  --mint:      #98f5c7;
  --mint-dim:  #6fd9a8;
  --mint-deep: #4fb783;
  --mint-glow: rgba(152,245,199,0.14);
  --mint-soft: rgba(152,245,199,0.08);

  /* Text */
  --text:      #e8ecf0;
  --text-mid:  #a6b0bb;
  --text-dim:  #6b7481;

  /* Accents */
  --blue:      #6ea8fe;
  --blue-glow: rgba(110,168,254,0.15);
  --red:       #f47174;
  --red-glow:  rgba(244,113,116,0.12);
  --amber:     #f0b45e;

  /* Shadows */
  --shadow:    0 2px 8px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.38);
  --radius:    16px;
  --radius-sm: 12px;

  /* Legacy variable aliases — map old names to new palette
     so any inline var() references still resolve correctly */
  --g7: var(--mint-deep);
  --g6: var(--mint);
  --g5: var(--mint-dim);
  --g4: var(--mint);
  --g1: var(--mint-glow);
  --g0: var(--mint-soft);
  --gr0: var(--base);
  --gr1: var(--raised);
  --gr2: var(--border);
  --gr3: var(--border);
  --gr4: var(--text-dim);
  --gr5: var(--text-mid);
  --gr6: var(--text-mid);
  --gr8: var(--text);
  --w: var(--surface);
  --r5: var(--red);
  --r0: var(--red-glow);
  --blue1: var(--blue-glow);
}

body {
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  background: var(--base);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.app { max-width: 480px; margin: 0 auto; padding: 20px 16px 100px; background: var(--base); min-height: 100vh; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--mint); text-decoration: none; }

/* ── Buttons ────────────────────────────── */

.btn { border: none; border-radius: var(--radius-sm); padding: 13px 20px; font-size: 14px; font-weight: 700; width: 100%; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(0.975); }
.btn-green { background: var(--mint); color: var(--base); box-shadow: 0 2px 12px var(--mint-glow); }
.btn-green:hover { background: var(--mint-dim); }
.btn-gray { background: var(--raised); color: var(--text); }
.btn-gray:hover { background: var(--border); }
.btn-blue { background: var(--blue-glow); color: var(--blue); }
.btn-blue:active { background: rgba(110,168,254,0.25); }
.btn-ghost { background: none; border: none; color: var(--mint); font-size: 14px; font-weight: 600; padding: 4px 0; width: auto; }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; border-radius: 8px; }
.btn-danger { background: none; border: none; color: var(--red); font-size: 12px; font-weight: 600; padding: 4px 8px; width: auto; }

/* ── Header ─────────────────────────────── */

.pg-header { text-align: center; margin-bottom: 24px; padding-top: 16px; }
.pg-header h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; color: var(--mint); }
.pg-header p { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ── Cards ──────────────────────────────── */

.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; cursor: pointer; user-select: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mint); opacity: 0.85; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--border); }
.card:active { transform: translateY(0); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-label { font-weight: 700; font-size: 16px; color: var(--text); display: block; }
.card-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; display: block; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 12px; background: var(--mint-glow); color: var(--mint); }
.card-actions { display: flex; gap: 6px; }
.card-actions button { background: var(--raised); border: none; font-size: 13px; padding: 0; width: 30px; height: 30px; border-radius: 8px; color: var(--text-mid); display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.card-actions button:hover { background: var(--mint-glow); color: var(--mint); }
.card-blue::before { background: var(--blue); }
.card-blue .card-tag { background: var(--blue-glow); color: var(--blue); }

/* ── Top bar ────────────────────────────── */

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 4px; }
.topbar-title { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.topbar-right { display: flex; gap: 6px; align-items: center; }

/* ── Progress ───────────────────────────── */

.progress-bar { height: 6px; background: var(--raised); border-radius: 4px; overflow: hidden; margin-bottom: 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--mint-dim), var(--mint)); border-radius: 4px; transition: width .4s ease; width: 0%; box-shadow: 0 0 10px var(--mint-glow); }
.progress-text { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }

/* ── Warmup ─────────────────────────────── */

.warmup-block { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; cursor: pointer; width: 100%; user-select: none; text-align: left; font-family: inherit; color: inherit; box-shadow: var(--shadow); transition: opacity .2s ease; }
.warmup-block.done { opacity: .5; }
.warmup-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--mint); text-transform: uppercase; }
.chk-circle { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--base); font-weight: 700; flex-shrink: 0; transition: all .2s ease; }
.chk-circle.on { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 10px var(--mint-glow); }
.warmup-item { font-size: 13px; color: var(--text-mid); margin: 3px 0; line-height: 1.4; }

/* ── Exercise card (session) ────────────── */

.ex-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); transition: opacity .2s ease; }
.ex-card.all-done { opacity: .55; }
.ex-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ex-top-left { flex: 1; min-width: 0; }
.ex-name { font-size: 14.5px; font-weight: 700; color: var(--text); display: block; }
.ex-note { font-size: 11px; color: var(--mint); font-weight: 500; margin-top: 3px; display: block; }
.info-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--raised); color: var(--text-mid); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: 6px; transition: all .2s ease; }
.info-btn:hover { background: var(--mint-glow); color: var(--mint); }

/* ── Set row (logging) — pill style ─────── */

.set-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--base); border-radius: var(--radius-sm); margin-bottom: 8px; border: 1px solid transparent; transition: border-color .2s ease, background .2s ease; }
.set-row:last-child { margin-bottom: 0; }
.set-row.done { border-color: var(--mint-dim); background: var(--mint-soft); }
.set-label { font-size: 12px; font-weight: 700; color: var(--text-mid); min-width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--raised); border-radius: 8px; transition: all .2s ease; }
.set-row.done .set-label { background: var(--mint); color: var(--base); }
.set-target { font-size: 11px; color: var(--text-dim); margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.set-field { display: flex; align-items: baseline; gap: 3px; background: var(--surface); padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); transition: border-color .2s ease; }
.set-field:focus-within { border-color: var(--mint-dim); }
.set-input { width: 42px; padding: 0; border: none; background: none; font-size: 15px; font-weight: 700; font-family: inherit; color: var(--text); text-align: right; }
.set-input:focus { outline: none; }
.set-input::placeholder { color: var(--text-dim); font-size: 13px; font-weight: 400; }
.set-unit { font-size: 11px; color: var(--text-dim); flex-shrink: 0; font-weight: 600; }
.set-check { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: transparent; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s ease; }
.set-check.on { background: var(--mint); border-color: var(--mint); color: var(--base); box-shadow: 0 0 10px var(--mint-glow); }

/* Cardio variant — blue accent */
.ex-card.cardio { border-left: 3px solid var(--blue); }
.set-row.cardio.done { border-color: var(--blue); background: rgba(110,168,254,0.06); }
.set-row.cardio.done .set-label { background: var(--blue); color: #fff; }
.set-field.cardio:focus-within { border-color: var(--blue); }
.set-check.cardio.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 10px var(--blue-glow); }
.ex-badge-cardio { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 6px; background: var(--blue-glow); color: var(--blue); margin-left: 8px; }

/* ── Tabs ───────────────────────────────── */

.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface); border-radius: var(--radius-sm); padding: 4px; border: 1px solid var(--border-soft); }
.tab { flex: 1; padding: 9px; text-align: center; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-mid); background: none; border: none; transition: all .2s ease; }
.tab.active { background: var(--mint); color: var(--base); }

/* ── Log entries ────────────────────────── */

.log-entry { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.log-entry:hover { transform: translateY(-1px); border-color: var(--border); }
.log-date { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.log-name { font-size: 14px; font-weight: 700; color: var(--text); }
.log-stats { font-size: 12px; color: var(--mint); font-weight: 600; margin-top: 2px; }
.log-incomplete { color: var(--red); }

/* ── Detail log ─────────────────────────── */

.detail-ex { margin-bottom: 14px; }
.detail-ex-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.detail-set { font-size: 12px; color: var(--text-mid); padding: 4px 0; display: flex; gap: 12px; }
.detail-set.done { color: var(--mint); font-weight: 600; }
.detail-set.missed { color: var(--text-dim); }

/* ── Login ──────────────────────────────── */

.login-box { max-width: 340px; margin: 70px auto 0; text-align: center; }
.login-box h1 { font-size: 26px; font-weight: 800; color: var(--mint); margin-bottom: 6px; letter-spacing: 0.5px; }
.login-box p { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.login-box .form-group { margin-bottom: 14px; text-align: left; }
.login-err { color: var(--red); font-size: 13px; margin-bottom: 12px; min-height: 18px; }

/* ── Modal ──────────────────────────────── */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal { background: var(--surface); border-radius: 20px 20px 0 0; padding: 22px 18px 32px; width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; animation: slideUp .25s ease; border-top: 1px solid var(--border); }
.modal h2 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 16px; }

/* ── Forms ──────────────────────────────── */

.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .3px; margin-bottom: 6px; display: block; }
.form-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--base); transition: border-color .2s ease; }
.form-input:focus { outline: none; border-color: var(--mint-dim); }
.form-input::placeholder { color: var(--text-dim); }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.ex-edit-item { background: var(--base); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; position: relative; }
.ex-edit-item .del-btn { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--red); font-size: 18px; padding: 0 4px; line-height: 1; }
.add-ex-btn { width: 100%; padding: 11px; border: 1.5px dashed var(--mint-dim); border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint); font-size: 13px; font-weight: 600; margin-bottom: 16px; font-family: inherit; transition: all .2s ease; }
.add-ex-btn:hover { background: var(--mint-glow); }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions button { flex: 1; }

/* ── Exercise info ──────────────────────── */

.info-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.info-meta { font-size: 12px; color: var(--mint); font-weight: 600; margin-bottom: 14px; }
.info-meta span { display: inline-block; background: var(--mint-glow); padding: 3px 10px; border-radius: 6px; margin: 0 4px 4px 0; }

.anim-viewer { position: relative; width: 100%; max-width: 320px; margin: 0 auto 16px; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--raised); border: 1px solid var(--border); }
.anim-viewer img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .15s ease; }
.anim-viewer img.hf { opacity: 0; }
.anim-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; pointer-events: none; }

.info-steps { margin-bottom: 16px; }
.info-steps h3 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: .3px; }
.info-step { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 8px; padding-left: 22px; position: relative; }
.info-step .sn { position: absolute; left: 0; top: 0; font-weight: 800; color: var(--mint); font-size: 12px; }
.info-close { width: 100%; padding: 12px; background: var(--raised); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text); font-family: inherit; }

.info-loading { text-align: center; padding: 40px 0; color: var(--text-dim); font-size: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--mint); border-radius: 50%; animation: spin .6s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.info-empty { font-size: 13px; color: var(--text-dim); padding: 20px 0; text-align: center; line-height: 1.5; }

/* ── Dashboard ──────────────────────────── */

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--mint); display: block; line-height: 1.2; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.5px; margin-top: 4px; display: block; text-transform: uppercase; }
.stat-card.wide { grid-column: span 2; }

.dash-section { margin-bottom: 24px; }
.dash-section-title { font-size: 11px; font-weight: 700; color: var(--mint); margin-bottom: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

.chart-container { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; overflow-x: auto; box-shadow: var(--shadow); }
.chart-label { font-size: 12px; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; }
.chart-canvas { width: 100%; height: 180px; display: block; }

.pb-list { display: flex; flex-direction: column; gap: 6px; }
.pb-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.pb-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-val { font-size: 14px; font-weight: 800; color: var(--mint); flex-shrink: 0; margin-left: 10px; }
.pb-reps { font-size: 11px; color: var(--text-dim); margin-left: 4px; font-weight: 500; }

.ex-select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--base); margin-bottom: 12px; }
.ex-select:focus { outline: none; border-color: var(--mint-dim); }

/* ── Reorder Arrows ─────────────────────── */

.ex-edit-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ex-reorder { display: flex; gap: 4px; }
.reorder-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--raised); color: var(--text-mid); font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; }
.reorder-btn:active { background: var(--border); }
.reorder-btn:disabled { opacity: 0.3; cursor: default; }

/* ── Autocomplete ───────────────────────── */

.ac-wrap { position: relative; }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--raised); border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; max-height: 200px; overflow-y: auto; z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.ac-item { padding: 11px 13px; font-size: 13px; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.ac-item:last-child { border-bottom: none; }
.ac-item:active, .ac-item:hover { background: var(--mint-glow); }
.ac-item .ac-muscles { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── Superset ──────────────────────────── */

.superset-group { border: 1.5px solid var(--mint-dim); border-radius: var(--radius); padding: 6px; margin-bottom: 12px; margin-top: 14px; position: relative; background: var(--mint-soft); }
.superset-badge { position: absolute; top: -9px; left: 14px; background: var(--mint-dim); color: var(--base); font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 6px; z-index: 1; }
.superset-group .ex-card { margin-bottom: 6px; }
.superset-group .ex-card:last-child { margin-bottom: 0; }

.ss-toggle { font-size: 11px; font-weight: 600; color: var(--mint); background: var(--mint-soft); border: 1px solid var(--mint-glow); border-radius: 6px; padding: 4px 8px; margin-left: 6px; cursor: pointer; }
.ss-toggle.active { background: var(--mint); color: var(--base); border-color: var(--mint); }

/* ── Exercise Note Bubble ──────────────── */

.note-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--raised); color: var(--text-mid); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-left: 6px; transition: all .2s ease; position: relative; }
.note-btn.has-note { color: var(--mint); background: var(--mint-glow); }
.note-btn:active { background: var(--border); }

/* ── Measurements ──────────────────────── */

.meas-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; position: relative; box-shadow: var(--shadow); }
.meas-date { font-size: 12px; font-weight: 700; color: var(--text); }
.meas-vals { font-size: 12px; color: var(--text-mid); margin-top: 4px; line-height: 1.6; }
.meas-vals strong { color: var(--text); font-weight: 600; }
.meas-del { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--red); font-size: 14px; padding: 4px; cursor: pointer; }
.meas-chart { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }

/* ── Volume Breakdown ──────────────────── */

.vol-bar-wrap { margin-bottom: 8px; }
.vol-bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.vol-bar-name { font-weight: 600; color: var(--text); }
.vol-bar-val { color: var(--text-dim); }
.vol-bar { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.vol-bar-fill { height: 100%; background: linear-gradient(90deg, var(--mint-dim), var(--mint)); border-radius: 4px; transition: width .4s ease; box-shadow: 0 0 8px var(--mint-glow); }

/* ── Deload Banner ─────────────────────── */

.deload-banner { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
.deload-banner.recommended { background: var(--red-glow); border: 1px solid rgba(244,113,116,0.3); color: #f4a1a3; }
.deload-banner.upcoming { background: rgba(240,180,94,0.12); border: 1px solid rgba(240,180,94,0.3); color: var(--amber); }
.deload-banner.watch { background: var(--blue-glow); border: 1px solid rgba(110,168,254,0.3); color: var(--blue); }
.deload-banner strong { font-weight: 700; }

/* ── Offline Indicator ─────────────────── */

.offline-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--red); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 5px; z-index: 200; display: none; }
.offline-bar.show { display: block; }

/* ── Session Note Input ────────────────── */

.session-note-area { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; box-shadow: var(--shadow); }
.session-note-area textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; color: var(--text); resize: vertical; min-height: 60px; background: var(--base); }
.session-note-area textarea:focus { outline: none; border-color: var(--mint-dim); }

/* ── Level / XP Bar ─────────────────────── */

.level-display { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.level-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.level-badge { font-size: 13px; font-weight: 800; color: var(--base); background: var(--mint); padding: 3px 12px; border-radius: 8px; letter-spacing: 0.3px; }
.level-xp { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.level-bank { font-size: 11px; color: var(--text-dim); }
.level-progress { height: 10px; background: var(--base); border-radius: 6px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.level-fill { height: 100%; background: linear-gradient(90deg, var(--mint-dim), var(--mint)); border-radius: 6px; transition: width .4s ease; box-shadow: 0 0 12px var(--mint-glow); }

/* ── Session Exercise Buttons ──────────── */

.ex-top-btns { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }

/* ── Utility ────────────────────────────── */

.hidden { display: none; }
