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

    :root {
      --bg:       #000000;
      --surface:  #111111;
      --surface2: #1a1a1a;
      --border:   #2d2d2d;
      --text:     #ffffff;
      --muted:    #999999;
      --accent:   #6e399e;
      --accent2:  #ff2712;
      --success:  #4ade80;
      --danger:   #ef4444;
      --radius:   12px;
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bot: env(safe-area-inset-bottom, 0px);
    }

    html, body { height: 100%; background: var(--bg); color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 16px; -webkit-tap-highlight-color: transparent; }

    .screen { display: none; flex-direction: column; height: 100%; overflow: hidden; }
    .screen.active { display: flex; }

    /* Header */
    .header { display: flex; align-items: center; justify-content: space-between;
      padding: calc(var(--safe-top) + 14px) 16px 14px;
      background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }
    .header-title  { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
    .header-sub    { font-size: 13px; color: var(--muted); margin-top: 2px; }
    .back-btn      { background: none; border: none; color: var(--accent2);
      font-size: 22px; cursor: pointer; padding: 4px 8px 4px 0; }

    /* Scroll body */
    .body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
      padding: 16px 16px calc(var(--safe-bot) + 80px); }
    .body.no-fab { padding-bottom: calc(var(--safe-bot) + 24px); }

    /* Cards */
    .card { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
    .card-label { font-size: 11px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .card-title { font-size: 18px; font-weight: 700; }
    .card-sub   { font-size: 13px; color: var(--muted); margin-top: 4px; }
    .card.tap   { cursor: pointer; }
    .card.tap:active { background: var(--surface2); }

    /* Session cards on week overview */
    .session-row  { display: flex; align-items: center; justify-content: space-between; }
    .session-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
    .badge        { display: inline-block; font-size: 11px; font-weight: 600;
      padding: 3px 8px; border-radius: 20px; }
    .badge-pending  { background: var(--surface2); color: var(--muted); }
    .badge-done     { background: #1a3a1a; color: var(--success); }
    .badge-progress { background: #1a2a1a; color: #86efac; }
    .badge-cond     { background: #1a2a3a; color: #60a5fa; }
    .badge-skipped  { background: #3a2a1a; color: #d9a441; }
    .arrow          { color: var(--muted); font-size: 20px; }

    /* Skipped whole session */
    .card.sess-skipped { opacity: .55; }
    .sess-skip-reason  { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 4px; }
    .sess-skip-btn     { background: none; border: none; color: var(--muted);
      font-size: 17px; cursor: pointer; padding: 4px 6px; flex-shrink: 0; line-height: 1; }
    .sess-skip-btn:active   { color: var(--accent); }
    .sess-skip-btn.skipped  { color: var(--accent); }
    .skip-reason-wrap  { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
    .skip-reason-chip  { background: var(--surface2); border: 1px solid var(--border);
      color: var(--text); border-radius: 10px; padding: 12px 14px; font-size: 15px;
      text-align: left; cursor: pointer; width: 100%; }
    .skip-reason-chip:active { border-color: var(--accent); color: var(--accent); }
    .skip-sess-btn { display: block; width: 100%; margin: 14px 0 4px; background: none;
      border: 1px solid var(--border); color: var(--muted); border-radius: var(--radius);
      padding: 13px; font-size: 14px; cursor: pointer; }
    .skip-sess-btn:active  { border-color: var(--danger); color: var(--danger); }
    .skip-sess-btn.skipped { border-color: var(--accent); color: var(--accent); }
    /* Per-piece skip inside a multi-block conditioning session (2026-10-18) */
    .cond-piece-skip-btn { background: none; border: 1px solid var(--border); color: var(--muted);
      border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
    .cond-piece-skip-btn:active  { border-color: var(--danger); color: var(--danger); }
    .cond-piece-skip-btn.skipped { border-color: var(--accent); color: var(--accent); }
    .cond-block-skipped { opacity: .6; }
    .cond-piece-plan { margin: 0 0 10px; padding: 8px 10px; }

    /* Exercise card (editable) */
    .ex-card { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
    .ex-card.skipped    { opacity: .4; }
    .ex-card.added-card { border-color: var(--accent); }
    .ex-card.saved-card { border-color: var(--success); }
    .ex-header  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
    .ex-name    { font-size: 16px; font-weight: 700; cursor: pointer; color: var(--text); flex: 1; }
    .ex-swap    { font-size: 11px; color: var(--muted); margin-left: 8px; flex-shrink: 0; cursor: pointer; padding-top: 2px; opacity: 0.8; }
    .ex-group   { font-size: 11px; font-weight: 600; color: var(--accent);
      margin-bottom: 6px; letter-spacing: .5px; }
    .ex-target  { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
    .ex-role    { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
      color: var(--muted); margin-bottom: 5px; opacity: .75; }
    .ex-rest    { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent);
      background: rgba(110,57,158,.15); border-radius: 10px; padding: 2px 8px; margin-top: 4px; }
    .ex-swap-note { font-size: 11px; color: var(--accent2); font-style: italic; margin-bottom: 8px; }

    /* Re-edit and delete buttons */
    .re-edit-btn { background: none; border: none; color: var(--muted);
      font-size: 13px; cursor: pointer; padding: 2px 6px; line-height: 1; }
    .re-edit-btn:active { color: var(--accent); }
    .sess-del-btn { background: none; border: none; color: var(--muted);
      font-size: 16px; cursor: pointer; padding: 4px 6px; flex-shrink: 0; }
    .sess-del-btn:active { color: var(--danger); }

    /* Drag-to-reorder */
    .drag-handle { color: #888888; font-size: 24px; cursor: grab;
      flex-shrink: 0; touch-action: none; user-select: none; -webkit-user-select: none;
      padding: 10px 12px; margin: -8px -4px; line-height: 1; font-style: normal; font-variant-emoji: text; }
    .drag-handle:active { cursor: grabbing; color: var(--muted); }
    .ex-lastperf { display: none; font-size: 12px; color: var(--muted);
      margin: 2px 0 6px; }
    .sortable-ghost  { opacity: 0.35; }
    .sortable-chosen { outline: 2px solid var(--accent) !important; border-radius: var(--radius); }

    /* Exercise card collapse/expand */
    .ex-header-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
    .ex-collapse-btn { background: none; border: none; color: var(--muted);
      font-size: 15px; cursor: pointer; padding: 4px 6px; line-height: 1;
      transition: transform 0.2s; flex-shrink: 0; }
    .ex-card.ex-collapsed .ex-collapse-btn { transform: rotate(-90deg); }
    .ex-card.ex-collapsed .ex-body { display: none; }
    .ex-card.ex-collapsed .ex-header { margin-bottom: 0; }

    /* Saved badge inline */
    .saved-badge { font-size: 11px; font-weight: 700; color: var(--success);
      background: #1a3a1a; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }

    /* Saved set rows (read-only) */
    .set-row-saved { display: flex; align-items: center; gap: 6px;
      padding: 6px 0; border-bottom: 1px solid var(--border); }
    .set-row-saved:last-child { border-bottom: none; }
    .set-row-saved .set-num { font-size: 11px; font-weight: 700; color: var(--muted);
      min-width: 24px; text-align: center; flex-shrink: 0; }
    .set-row-saved .set-vals { display: flex; gap: 6px; flex: 1; }
    .set-row-saved .set-val  { flex: 1; text-align: center; }
    .set-row-saved .set-val-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
    .set-row-saved .set-val-num   { font-size: 15px; font-weight: 700; color: var(--text); }

    /* Set rows (editable) */
    .sets-wrap { margin-bottom: 8px; }
    .set-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
    .set-num { font-size: 11px; font-weight: 700; color: var(--muted);
      min-width: 24px; text-align: center; }
    .set-fields { display: flex; gap: 6px; flex: 1; }
    .sf { flex: 1; }
    .sf label { display: block; font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 3px; }
    .sf input { width: 100%; background: var(--surface2); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-size: 16px; text-align: center;
      padding: 9px 2px; -webkit-appearance: none; }
    .sf input:focus { outline: none; border-color: var(--accent); }
    .set-del { background: none; border: none; color: var(--muted);
      font-size: 18px; cursor: pointer; padding: 4px 6px; flex-shrink: 0; }
    .set-del:active { color: var(--danger); }

    .add-set-btn { display: flex; align-items: center; justify-content: center;
      gap: 6px; width: 100%; padding: 10px; background: none;
      border: 1px dashed var(--border); border-radius: 8px;
      color: var(--muted); font-size: 13px; cursor: pointer; margin-bottom: 8px; }
    .add-set-btn:active { border-color: var(--accent); color: var(--accent); }

    /* Set column header */
    .set-col-header { display: flex; align-items: center; gap: 6px;
      margin-bottom: 4px; padding: 0 2px; }
    .set-col-num    { min-width: 28px; text-align: center; font-size: 11px;
      font-weight: 700; color: var(--muted); letter-spacing: .6px; flex-shrink: 0; }
    .set-col-fields { display: flex; gap: 6px; flex: 1; }
    .set-col-field  { flex: 1; text-align: center; font-size: 11px;
      font-weight: 700; color: var(--muted); letter-spacing: .6px; }
    .set-col-check  { width: 30px; text-align: center; font-size: 11px;
      font-weight: 700; color: var(--muted); letter-spacing: .3px; flex-shrink: 0; }
    .set-col-del    { width: 32px; flex-shrink: 0; }

    /* Set completion checkbox */
    .set-check { background: none; border: 1.5px solid var(--border);
      border-radius: 5px; width: 30px; height: 30px; cursor: pointer;
      color: transparent; font-size: 14px; font-weight: 800;
      flex-shrink: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
    .set-check:active { border-color: var(--success); }
    .set-check.checked { background: var(--success); border-color: var(--success); color: #000; }

    /* Checked set row highlight */
    .set-row.set-checked { background: rgba(74,222,128,.1); border-radius: 6px; }

    /* Rest countdown display */
    .rest-timer-display { font-size: 14px; font-weight: 700; color: var(--accent);
      padding: 4px 0 6px; display: none; }
    .rest-timer-display.urgent { color: var(--accent2); }
    .rest-timer-display.done   { color: var(--success); }

    /* Session timer in header */
    .session-timer-hdr { font-size: 14px; font-weight: 700; color: var(--muted);
      min-width: 52px; text-align: right; letter-spacing: .3px; }

    /* Notes input */
    .notes-input { width: 100%; background: var(--surface2); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-size: 14px;
      padding: 10px 12px; resize: none; height: 40px; }
    .notes-input:focus { outline: none; border-color: var(--border); }

    /* Measure type selector */
    /* Pain flag on exercise cards */
    .pain-flag-btn { background: none; border: 1px solid var(--border); border-radius: 6px;
      font-size: 11px; cursor: pointer; color: var(--muted); padding: 3px 7px;
      line-height: 1.4; display: flex; align-items: center; gap: 3px; transition: all .15s; }
    .pain-flag-btn.flagged { border-color: #ff2712; color: #ff2712; background: rgba(255,39,18,.1); }
    /* Pain prompt modal */
    .pain-prompt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7);
      z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
    .pain-prompt-box { background: var(--surface); border-radius: 16px 16px 0 0;
      padding: 24px 20px 32px; width: 100%; max-width: 480px; }
    .pain-prompt-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
    .pain-prompt-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
    .pain-prompt-btns { display: flex; gap: 10px; }
    .pain-prompt-btns button { flex: 1; padding: 12px; border-radius: 10px;
      font-size: 14px; font-weight: 600; cursor: pointer; }
    .pain-prompt-yes { background: var(--accent); border: none; color: #fff; }
    .pain-prompt-no  { background: none; border: 1px solid var(--border); color: var(--fg); }
    .measure-chip-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
    .measure-chip-label { font-size: 11px; color: var(--muted); flex-shrink: 0; }
    .measure-chip { font-size: 11px; padding: 3px 8px 3px 10px; border-radius: 20px;
      border: 1px solid var(--border); background: var(--surface2); color: var(--muted);
      cursor: pointer; appearance: none; -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 6px center;
      padding-right: 20px; }
    .measure-chip.non-reps { border-color: var(--accent2); color: var(--accent2); background-color: var(--surface2);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ff2712'/%3E%3C/svg%3E"); }

    /* Circuit training textarea */
    .circuit-desc { width: 100%; background: var(--surface2); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-size: 13px;
      padding: 10px 12px; resize: none; min-height: 80px; margin-bottom: 6px; }
    .circuit-desc:focus { outline: none; border-color: var(--accent); }

    /* Exercise footer */
    .ex-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
    .ex-footer-right { display: flex; gap: 8px; }
    .skip-btn { background: none; border: 1px solid var(--border);
      border-radius: 20px; color: var(--muted); font-size: 12px; padding: 5px 12px; cursor: pointer; }
    .skip-btn.skipped { background: var(--danger); border-color: var(--danger); color: white; }
    .remove-btn { background: none; border: 1px solid var(--border);
      border-radius: 20px; color: var(--muted); font-size: 12px; padding: 5px 12px; cursor: pointer; }
    .remove-btn:active { color: var(--danger); border-color: var(--danger); }
    .save-ex-btn { background: none; border: 1px solid var(--accent2);
      border-radius: 20px; color: var(--accent2); font-size: 13px; font-weight: 700;
      padding: 7px 18px; cursor: pointer; }
    .save-ex-btn:active { background: var(--accent2); color: #fff; }
    .save-ex-btn:disabled { border-color: var(--border); color: var(--muted); cursor: default; }

    /* Add exercise button */
    .add-ex-btn { display: flex; align-items: center; justify-content: center;
      gap: 8px; width: 100%; padding: 14px; background: none;
      border: 1px dashed var(--border); border-radius: var(--radius);
      color: var(--muted); font-size: 15px; cursor: pointer; margin-top: 4px; }
    .add-ex-btn:active { border-color: var(--accent); color: var(--accent); }

    /* Submit bar */
    .submit-bar { position: fixed; bottom: 0; left: 0; right: 0;
      padding: 12px 16px calc(var(--safe-bot) + 12px);
      background: var(--surface); border-top: 1px solid var(--border); }
    .btn { width: 100%; padding: 16px; background: var(--accent); color: #fff;
      font-size: 17px; font-weight: 700; border: none; border-radius: var(--radius); cursor: pointer; }
    .btn:active   { opacity: .85; }
    .btn:disabled { background: var(--border); color: var(--muted); cursor: default; }
    .btn.secondary { background: var(--surface2); color: var(--text); margin-top: 10px; }
    .btn.secondary:active { opacity: .75; }

    /* Sticky rest timer bar (sits above the submit bar) */
    .rest-sticky { position: fixed; left: 0; right: 0;
      bottom: calc(var(--safe-bot) + 84px); z-index: 40;
      display: flex; align-items: center; gap: 10px; padding: 10px 16px;
      background: var(--surface2); border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      font-size: 15px; font-variant-numeric: tabular-nums; }
    .rest-sticky.done { border-color: var(--success); }
    .rest-sticky-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rest-sticky.done .rest-sticky-text { color: var(--success); font-weight: 700; }
    .rest-sticky-btn { background: var(--surface); border: 1px solid var(--border);
      color: var(--text); border-radius: 8px; padding: 8px 14px; font-size: 14px;
      cursor: pointer; flex-shrink: 0; }
    .rest-sticky-btn:active { border-color: var(--accent); color: var(--accent); }

    /* RPE quick-pick chips */
    .rpe-chipbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 2px 4px; }
    .rpe-chip { background: var(--surface2); border: 1px solid var(--border); color: var(--text);
      border-radius: 16px; padding: 8px 13px; font-size: 14px; cursor: pointer; }
    .rpe-chip:active { border-color: var(--accent); color: var(--accent); }
    .rpe-chip-clear { color: var(--muted); }
    .rpe-chip-easy  { background: #1a2a3a; border-color: #2c4460; color: #60a5fa; font-weight: 600; }
    .pain-prompt-yes.danger { background: var(--danger); }

    /* Plate calculator + superset stripes */
    .lb-tap { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
    .ex-card.ss-a { border-left: 3px solid #4da3ff; }
    .ex-card.ss-b { border-left: 3px solid #ffb84d; }
    .ex-card.ss-c { border-left: 3px solid #7ce38b; }
    .ex-card.ss-d { border-left: 3px solid #c792ea; }

    /* Session recap on success screen */
    .success-recap { margin: 16px 0 4px; text-align: center; }
    .recap-line { font-size: 14px; color: var(--text); margin-bottom: 6px; }
    .recap-pr { font-size: 14px; color: var(--success); font-weight: 600; margin-top: 4px; }

    /* Week progress strip */
    .week-progress { margin: 2px 0 14px; }
    .week-progress-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
    .week-progress-track { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
    .week-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
    .today-card { border: 1px solid var(--accent) !important; }
    .today-chip { font-size: 9px; font-weight: 700; color: var(--accent);
      border: 1px solid var(--accent); border-radius: 4px; padding: 1px 4px;
      margin-left: 4px; letter-spacing: .5px; vertical-align: 1px; }
    .btn.success-state { background: #1a3a1a; color: var(--success); }

    /* Overall RPE / session notes row */
    .session-meta-row { display: flex; gap: 10px; margin-bottom: 16px; }
    .session-meta-row .sf { flex: 0 0 80px; }
    .session-meta-row .notes-wrap { flex: 1; }
    .session-meta-row .notes-wrap label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }

    /* Conditioning screen */
    .cond-plan { background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
    .cond-plan-label { font-size: 11px; color: var(--muted); margin-bottom: 4px;
      font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
    .cond-plan-val   { font-size: 15px; font-weight: 600; }
    .cond-plan-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }

    /* 2-col grid */
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
    .form-field label { display: block; font-size: 11px; color: var(--muted);
      margin-bottom: 4px; text-align: center; }
    .form-field input, .form-field select {
      width: 100%; background: var(--surface2); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-size: 16px;
      text-align: center; padding: 10px 4px; -webkit-appearance: none; }
    .form-field input:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
    .form-field.wide { grid-column: 1 / -1; }
    .form-field.wide input, .form-field.wide textarea { text-align: left; padding: 10px 12px; }
    .form-field textarea { width: 100%; background: var(--surface2);
      border: 1px solid var(--border); border-radius: 8px; color: var(--text);
      font-size: 14px; padding: 10px 12px; resize: none; height: 60px; }
    .form-field textarea:focus { outline: none; border-color: var(--border); }
    .form-section-label { font-size: 11px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
    select option { background: var(--surface2); color: var(--text); }

    /* Login */
    .login-wrap { flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center; padding: 32px 24px; }
    .login-logo { margin-bottom: 40px; text-align: center; }
    .login-logo svg { width: 260px; max-width: 80vw; height: auto; }
    .login-tag  { font-size: 14px; color: var(--muted); margin-bottom: 48px; display: none; }
    .field-wrap { width: 100%; margin-bottom: 14px; }
    .field-wrap label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
    .field-wrap input { width: 100%; background: var(--surface);
      border: 1px solid var(--border); border-radius: 10px;
      color: var(--text); font-size: 16px; padding: 14px; }
    .field-wrap input:focus { outline: none; border-color: var(--accent); }
    .login-error { color: var(--danger); font-size: 14px; margin-top: 12px; text-align: center; }
    .login-forgot { margin-top: 18px; text-align: center; }
    .login-forgot a { color: var(--muted); font-size: 14px; text-decoration: none; }
    .login-forgot a:active { color: var(--accent); }
    .setpw-heading { font-size: 20px; font-weight: 700; color: var(--text);
      margin-bottom: 8px; text-align: center; }
    .setpw-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px;
      text-align: center; max-width: 300px; }

    /* Movement pattern filter chips */
    .chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px;
      margin-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
      flex-shrink: 0; }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip { padding: 5px 11px; border: 1px solid var(--border); border-radius: 20px;
      font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
      white-space: nowrap; flex-shrink: 0; background: none; }
    .chip:active { background: var(--surface2); }
    .chip.chip-active { background: var(--accent); border-color: var(--accent); color: #fff; }

    /* Exercise search sheet */
    .sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6);
      z-index: 100; display: none; }
    .sheet-overlay.open { display: block; }
    .sheet { position: fixed; bottom: 0; left: 0; right: 0;
      background: var(--surface); border-radius: 20px 20px 0 0;
      padding: 20px 16px calc(var(--safe-bot) + 20px); z-index: 101;
      max-height: 72vh; display: flex; flex-direction: column;
      transform: translateY(100%); transition: transform .25s ease; }
    .sheet.open { transform: translateY(0); }

    /* Exercise history sheet */
    .hist-session { padding: 12px 4px; border-bottom: 1px solid var(--border); }
    .hist-session:last-child { border-bottom: none; }
    .hist-session-header { font-size: 12px; color: var(--muted); margin-bottom: 8px;
      font-weight: 600; letter-spacing: .3px; }
    .hist-set-row { display: flex; align-items: center; gap: 8px; padding: 5px 0;
      font-size: 14px; color: var(--text); }
    .hist-set-row .set-num { font-size: 11px; color: var(--muted); min-width: 24px;
      text-align: center; flex-shrink: 0; }
    .hist-set-row.top-set { color: var(--accent); font-weight: 700; }
    .hist-e1rm { font-size: 11px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
    .hist-set-row.top-set .hist-e1rm { color: var(--accent); }
    .hist-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; }
    .hist-notes { font-size: 12px; color: var(--muted); font-style: italic; padding: 6px 0 2px; border-top: 1px solid var(--border); margin-top: 4px; }
    .sess-day-chip { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 4px; padding: 1px 4px 1px 0; transition: opacity .15s; }
    .sess-day-chip:active { opacity: .6; }
    .day-edit-icon { font-size: 10px; opacity: .4; }
    .sheet-item-active { color: var(--accent); font-weight: 600; }
    .sheet-handle { width: 40px; height: 4px; background: var(--border);
      border-radius: 2px; margin: 0 auto 16px; }
    .sheet-title  { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
    .sheet-search { width: 100%; background: var(--surface2);
      border: 1px solid var(--border); border-radius: 10px;
      color: var(--text); font-size: 16px; padding: 12px 14px; margin-bottom: 12px;
      flex-shrink: 0; }
    .sheet-search:focus { outline: none; border-color: var(--accent); }
    .sheet-list { overflow-y: auto; flex: 1; }
    .sheet-item { padding: 13px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
    .sheet-item:last-child { border-bottom: none; }
    .sheet-item:active { color: var(--accent); }
    .sheet-item-name { font-size: 15px; font-weight: 600; }
    .sheet-item-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

    /* Pain sheet */
    .pain-sheet { position: fixed; bottom: 0; left: 0; right: 0;
      background: var(--surface); border-radius: 20px 20px 0 0;
      padding: 20px 16px calc(var(--safe-bot) + 20px); z-index: 101;
      max-height: 85vh; display: flex; flex-direction: column;
      transform: translateY(100%); transition: transform .25s ease; }
    .pain-sheet.open { transform: translateY(0); }

    /* Success screen */
    .success-wrap { flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
    .success-icon  { font-size: 64px; margin-bottom: 20px; }
    .success-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
    .success-sub   { font-size: 15px; color: var(--muted); margin-bottom: 40px; }

    /* Utility grid */
    .util-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
    .util-btn { padding: 13px; background: var(--surface);
      border: 1px solid var(--border); border-radius: var(--radius);
      color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
    .util-btn:active { background: var(--surface2); }
    .util-btn.util-dim { color: var(--muted); border-color: var(--border); cursor: default; }
    .util-btn .util-icon { font-size: 18px; display: block; margin-bottom: 4px; }

    /* History screen */
    .hist-week-header { font-size: 11px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; color: var(--muted); margin: 20px 0 10px;
      padding-bottom: 6px; border-bottom: 1px solid var(--border); }
    .hist-week-header:first-child { margin-top: 0; }
    .hist-sess-day  { font-size: 11px; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
    .hist-sess-type { font-size: 15px; font-weight: 700; }
    .hist-sess-rpe  { font-size: 12px; color: var(--muted); padding-top: 4px; }
    .hist-ready-strip { display: flex; gap: 12px; padding: 7px 10px;
      background: var(--surface2); border-radius: 8px; margin-bottom: 10px; flex-wrap: wrap; }
    .hist-ready-chip { font-size: 11px; color: var(--muted); }
    .hist-ready-chip span { color: var(--text); font-weight: 600; }
    .hist-ex-row { display: flex; align-items: baseline; gap: 8px;
      padding: 6px 0; border-bottom: 1px solid var(--border); }
    .hist-ex-row:last-of-type { border-bottom: none; }
    .hist-ex-name { font-size: 13px; font-weight: 600; color: var(--accent);
      cursor: pointer; flex-shrink: 0; max-width: 44%; }
    .hist-ex-sets { font-size: 12px; color: var(--muted); flex: 1; line-height: 1.6; }
    .hist-cond-row { display: flex; align-items: center; gap: 6px; padding: 7px 10px;
      background: var(--surface2); border-radius: 8px; margin-top: 6px;
      font-size: 12px; color: var(--muted); flex-wrap: wrap; }
    .hist-cond-row + .hist-cond-row { margin-top: 4px; }

    /* History accordion controls */
    .hist-controls { display: flex; gap: 10px; margin-bottom: 12px; }
    .hist-ctrl-btn { flex: 1; padding: 9px 6px; background: var(--surface2);
      border: 1px solid var(--border); border-radius: 8px;
      font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
    .hist-ctrl-btn:active { border-color: var(--accent); color: var(--accent); }

    /* Sticky day-chip index */
    .hist-day-index { position: sticky; top: 0; z-index: 10;
      background: var(--bg); display: flex; gap: 8px;
      overflow-x: auto; padding: 0 0 10px; margin-bottom: 4px;
      -webkit-overflow-scrolling: touch; }
    .hist-day-index::-webkit-scrollbar { display: none; }
    .hist-day-chip { background: var(--surface2); border: 1px solid var(--border);
      border-radius: 20px; padding: 6px 14px; font-size: 11px; font-weight: 600;
      color: var(--muted); white-space: nowrap; cursor: pointer; flex-shrink: 0; }
    .hist-day-chip:active, .hist-day-chip.active { background: var(--accent);
      border-color: var(--accent); color: #fff; }

    /* Day group */
    .hist-day-group { margin-bottom: 20px; scroll-margin-top: 48px; }
    .hist-day-header { font-size: 11px; font-weight: 700; letter-spacing: 1px;
      text-transform: uppercase; color: var(--muted); padding: 8px 0 6px;
      border-bottom: 1px solid var(--border); margin-bottom: 10px; }

    /* Collapsible session cards */
    .hist-sess-card { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
    .hist-sess-header { display: flex; align-items: flex-start;
      justify-content: space-between; padding: 14px 14px 10px; cursor: pointer; }
    .hist-sess-header:active { background: var(--surface2); }
    .hist-toggle-icon { font-size: 14px; color: var(--muted); flex-shrink: 0;
      padding-top: 2px; transition: transform 0.2s; }
    .hist-sess-card:not(.collapsed) .hist-toggle-icon { transform: rotate(180deg); }
    .hist-sess-body { padding: 0 14px 14px; }
    .hist-sess-card.collapsed .hist-sess-body { display: none; }

    /* Conditioning logged summary (in session body) */
    .cond-logged-summary { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 16px; }
    .cond-logged-header { display: flex; align-items: center;
      justify-content: space-between; margin-bottom: 12px;
      font-size: 14px; font-weight: 700; color: var(--success); }
    .cond-edit-btn { font-size: 12px; padding: 6px 16px; background: none;
      border: 1px solid var(--accent2); border-radius: 8px;
      color: var(--accent2); cursor: pointer; font-weight: 600; }
    .cond-edit-btn:active { background: var(--accent2); color: #fff; }
    .cond-logged-block { padding: 10px 0; border-bottom: 1px solid var(--border); }
    .cond-logged-block:last-child { border-bottom: none; padding-bottom: 0; }
    .cond-logged-modality { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
    .cond-logged-details { font-size: 12px; color: var(--muted); line-height: 1.6; }
    .cond-logged-notes { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 4px; }
    .cond-editing-banner { border-color: var(--accent) !important; color: var(--accent) !important;
      font-size: 12px !important; }

    /* Ad-hoc session card */
    .card.adhoc-card { border-style: dashed; border-color: var(--border); }
    .card.adhoc-card:active { background: var(--surface2); }

    /* Misc */
    .spinner  { text-align: center; padding: 48px; color: var(--muted); font-size: 14px; }
    .divider  { height: 1px; background: var(--border); margin: 16px 0; }
    .toast { position: fixed; top: calc(var(--safe-top) + 16px); left: 50%;
      transform: translateX(-50%); background: var(--surface2);
      border: 1px solid var(--border); border-radius: 20px;
      padding: 10px 20px; font-size: 14px; z-index: 300;
      white-space: nowrap; display: none; }
    .toast.show { display: block; }
    .info-card { background: var(--surface); border: 1px solid var(--accent);
      border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px;
      font-size: 13px; color: var(--accent); line-height: 1.5; }
    .week-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
    /* Inline readiness card */
    .sess-ready-card { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
    .sess-ready-title { font-size: 11px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
    .sess-ready-rows { display: flex; flex-direction: column; gap: 8px; }
    .sess-ready-row { display: flex; align-items: center; gap: 8px; }
    .sess-ready-label { font-size: 12px; color: var(--fg); width: 80px; flex-shrink: 0; }
    .sess-ready-pips { display: flex; gap: 5px; }
    .sess-ready-pip { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
      background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 600;
      cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .sess-ready-pip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
    .sess-ready-sleep { width: 70px; padding: 6px 8px; border-radius: 8px;
      border: 1px solid var(--border); background: var(--surface2); color: var(--fg);
      font-size: 13px; text-align: center; }
    .sess-ready-saved { font-size: 11px; color: var(--success); margin-top: 8px; display: none; }
    .sess-ready-btn { margin-top: 10px; padding: 7px 16px; border-radius: 8px;
      border: 1px solid var(--accent2); background: none; color: var(--accent2);
      font-size: 12px; font-weight: 600; cursor: pointer; }

    /* ── Tests feature ──────────────────────────────────── */
    .test-ex-select-btn { width:100%; background:var(--surface2);
      border:1px solid var(--border); border-radius:8px; color:var(--muted);
      font-size:15px; text-align:left; padding:11px 12px; cursor:pointer; }
    .test-ex-select-btn.selected { color:var(--text); border-color:var(--accent); }
    .test-e1rm-display { background:var(--surface2); border:1px solid var(--border);
      border-radius:8px; text-align:center; padding:11px 4px;
      font-size:16px; font-weight:700; color:var(--accent); }
    .test-ex-row { display:flex; align-items:center; justify-content:space-between;
      padding:14px 0; border-bottom:1px solid var(--border); cursor:pointer; }
    .test-ex-row:last-child { border-bottom:none; }
    .test-ex-row:active { opacity:.7; }
    .test-ex-name { font-size:15px; font-weight:700; }
    .test-ex-meta { font-size:12px; color:var(--muted); margin-top:3px; }
    .test-ex-best { font-size:15px; font-weight:700; color:var(--accent); text-align:right; }
    .test-ex-best-sub { font-size:11px; color:var(--muted); text-align:right; }
    .test-hist-row { padding:12px 0; border-bottom:1px solid var(--border); }
    .test-hist-row:last-child { border-bottom:none; }
    .test-hist-date { font-size:12px; color:var(--muted); margin-bottom:4px; }
    .test-hist-vals { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
    .test-hist-main { font-size:16px; font-weight:700; }
    .test-hist-sub { font-size:12px; color:var(--muted); }
    .test-pr-badge { font-size:10px; font-weight:700; background:#1a3a1a;
      color:var(--success); padding:2px 7px; border-radius:20px; margin-left:6px; }
    .form-section-label { font-size:11px; font-weight:600; letter-spacing:1px;
      text-transform:uppercase; color:var(--muted); margin-bottom:8px; margin-top:4px; }

    /* ── Offline banner ─────────────────────────── */
    .offline-banner { display:none; position:fixed; top:0; left:0; right:0;
      background:#b45309; color:#fff; font-size:13px; font-weight:600;
      text-align:center; padding:calc(var(--safe-top) + 8px) 16px 8px; z-index:500; }

    /* ── Trends screen ───────────────────────────────────────────── */
    .trends-section { margin-bottom: 16px; }
    .trends-section-hdr { display: flex; align-items: center; justify-content: space-between;
      padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
      cursor: pointer; user-select: none; -webkit-user-select: none; }
    .trends-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.07em; color: var(--muted); }
    .trends-section-chevron { font-size: 14px; color: var(--muted); transition: transform 0.2s; }
    .trends-section-chevron.collapsed { transform: rotate(-90deg); }
    .trends-section-body { }
    .trends-section-body.collapsed { display: none; }
    .trends-ctrl-bar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
    .trends-ctrl-btn { font-size: 12px; padding: 4px 10px; border-radius: 20px;
      border: 1px solid var(--border); background: var(--surface); color: var(--muted);
      cursor: pointer; }
    .trends-period-select { font-size: 12px; padding: 4px 8px; border-radius: 6px;
      border: 1px solid var(--border); background: var(--surface2); color: var(--fg);
      cursor: pointer; margin-bottom: 10px; }
    .ready-score-pip { display: inline-flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; border-radius: 50%; font-size: 13px; font-weight: 700;
      background: var(--surface); border: 2px solid var(--border); color: var(--fg); }
    .ready-score-pip.good  { border-color: #22c55e; color: #22c55e; }
    .ready-score-pip.ok    { border-color: #f59e0b; color: #f59e0b; }
    .ready-score-pip.low   { border-color: #ef4444; color: #ef4444; }
    .ready-last-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .ready-last-pill { font-size: 12px; background: var(--surface); border: 1px solid var(--border);
      border-radius: 20px; padding: 3px 10px; color: var(--muted); }
    .snap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
    .snap-card { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 14px 12px; }
    .snap-val { font-size: 22px; font-weight: 700; color: var(--fg); line-height: 1.15; }
    .snap-val.pos { color: #22c55e; }
    .snap-val.neg { color: #ef4444; }
    .snap-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
    .snap-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .trends-chart-box { background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 12px 10px 8px; margin-bottom: 10px; }
    .trends-chart-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
    .pr-row { display: flex; justify-content: space-between; align-items: baseline;
      padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); margin-bottom: 6px; gap: 8px; }
    .pr-name { font-size: 13px; color: var(--fg); flex: 1; min-width: 0;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pr-val  { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
    .pr-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
    .pain-flag { background: var(--surface); border-radius: var(--radius);
      padding: 10px 12px; margin-bottom: 6px; border-left: 3px solid #ef4444; }
    .pain-region { font-size: 14px; font-weight: 600; color: var(--fg); }
    .pain-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
    .ex-trend-select { width: 100%; margin-bottom: 10px; }
    .trends-stat-strip { display: flex; gap: 8px; margin-bottom: 10px; }
    .trends-stat-pill { flex: 1; background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 10px 8px; text-align: center; }
    .trends-stat-num { font-size: 20px; font-weight: 700; color: var(--fg); }
    .trends-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .horiz-bar-row { margin-bottom: 8px; }
    .horiz-bar-meta { display: flex; justify-content: space-between;
      font-size: 12px; margin-bottom: 3px; }
    .horiz-bar-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
    .horiz-bar-fill  { height: 100%; border-radius: 4px; transition: width 0.3s; }
    .adapt-legend    { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
    .adapt-legend-item { display: flex; align-items: center; gap: 4px;
      font-size: 10px; color: var(--muted); white-space: nowrap; }
    .adapt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

    /* ── Conditioning blocks ─────────────────────────────────────── */
    .cond-block { background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
    .cond-block-hdr { display: flex; align-items: center; margin-bottom: 10px; }
    .cond-block-num { font-size: 12px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.05em; color: var(--muted); }
    .dist-row { display: flex; gap: 4px; align-items: center; }
    .dist-row input  { flex: 1; min-width: 0; }
    .dist-row select { width: 64px; flex-shrink: 0; }

    /* ── Weekly Check-In ─────────────────────────────────────────── */
    .checkin-sheet { position: fixed; bottom: 0; left: 0; right: 0;
      background: var(--surface); border-radius: 20px 20px 0 0;
      padding: 20px 16px calc(var(--safe-bot) + 20px); z-index: 101;
      max-height: 92vh; display: flex; flex-direction: column;
      transform: translateY(100%); transition: transform .25s ease; }
    .checkin-sheet.open { transform: translateY(0); }
    .checkin-scroll { overflow-y: auto; flex: 1; padding-bottom: 8px; }
    .checkin-section { margin-bottom: 20px; }
    .checkin-section-title { font-size: 11px; font-weight: 700; letter-spacing: 1px;
      text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
      padding-bottom: 6px; border-bottom: 1px solid var(--border); }
    .day-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
    .day-chip { padding: 7px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
      border: 1.5px solid var(--border); background: none; color: var(--muted); cursor: default; }
    /* Normal training day — tappable */
    .day-chip.avail   { border-color: var(--success); color: var(--success);
      background: rgba(74,222,128,.1); cursor: pointer; }
    /* Training day being skipped this week */
    .day-chip.skipping { border-color: var(--accent2); color: var(--accent2);
      background: rgba(255,39,18,.1); cursor: pointer; text-decoration: line-through; }
    /* Legacy — kept for graceful fallback when available_days not set */
    .day-chip.unavail { border-color: var(--accent2); color: var(--accent2);
      background: rgba(255,39,18,.1); cursor: pointer; }
    .toggle-row { display: flex; align-items: center; justify-content: space-between;
      padding: 11px 0; border-bottom: 1px solid var(--border); }
    .toggle-row:last-child { border-bottom: none; }
    .toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }
    .toggle-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .toggle-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
    .toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
    .toggle-slider { position: absolute; inset: 0; background: var(--surface2);
      border-radius: 13px; cursor: pointer; border: 1.5px solid var(--border); transition: .2s; }
    .toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px;
      left: 3px; top: 2px; background: var(--muted); border-radius: 50%; transition: .2s; }
    .toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }
    .travel-sub { margin-top: 10px; padding: 12px; background: var(--surface2);
      border-radius: 10px; display: none; }
    .travel-sub.visible { display: block; }
    .travel-sub label { font-size: 12px; color: var(--muted); display: block;
      margin-bottom: 6px; font-weight: 600; letter-spacing: .5px; }
    .travel-sub select { width: 100%; background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; color: var(--text); font-size: 14px; padding: 10px 12px;
      -webkit-appearance: none; }
    .summary-tile { background: var(--surface2); border-radius: 10px; padding: 12px 14px;
      margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
    .summary-tile strong { color: var(--text); font-weight: 700; }
    .badge-checkin-due  { background: rgba(110,57,158,.15); color: var(--accent);
      border: 1px dashed var(--accent); }
    .badge-checkin-done { background: rgba(74,222,128,.1);  color: var(--success); }
    .card.checkin-card  { border-color: var(--accent); }

    /* Injury badge + open-injury cards */
    .util-count { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px;
      padding: 0 5px; border-radius: 9px; background: #ff2712; color: #fff;
      font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
    .inj-card { display: flex; align-items: center; justify-content: space-between;
      gap: 10px; padding: 12px; background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); margin-bottom: 8px; }
    .inj-region { font-size: 15px; font-weight: 700; }
    .inj-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .inj-actions { display: flex; gap: 6px; flex-shrink: 0; }
    .inj-btn { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
    .inj-btn-resolve { border-color: var(--success); color: var(--success); }

    /* Weekly check-in injury review */
    .ci-inj-wrap { margin: 4px 0 8px; }
    .ci-inj { padding: 10px 0; border-bottom: 1px solid var(--border); }
    .ci-inj:last-child { border-bottom: none; }
    .ci-inj-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
    .ci-inj-region { font-size: 14px; font-weight: 700; }
    .ci-inj-sub { font-size: 12px; color: var(--muted); }
    .ci-inj-btns { display: flex; gap: 6px; }
    .ci-inj-btn { flex: 1; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--surface2); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
    .ci-inj-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
    .ci-inj-btn.active[data-state="worse"] { background: #ff2712; border-color: #ff2712; }
    .ci-inj-btn.active[data-state="resolved"] { background: var(--success); border-color: var(--success); color: #06240f; }

/* ── Pain triage chips & rules card (2026-07-03) ─────────────────────────── */
.triage-q     { margin: 10px 0 2px; }
.triage-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.triage-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.triage-chip  { background: var(--surface2); border: 1px solid var(--border); color: var(--text);
                border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.triage-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pain-rules-card { background: var(--surface2); border: 1px solid var(--border);
                   border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px; }
.prc-title    { font-weight: 700; margin-bottom: 8px; }
.prc-list     { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.prc-list li  { margin: 6px 0; }
.ci-coachq-text { font-weight: 600; font-size: 14px; margin: 4px 0 10px; }

/* ── History week groups (2026-07-03) ────────────────────────────────────── */
.hist-week-toggle { display: flex; justify-content: space-between; align-items: center;
                    cursor: pointer; scroll-margin-top: 96px; }
.hist-week-group  { margin-bottom: 14px; }
.hist-week-group.hw-collapsed .hist-week-body { display: none; }
.hist-week-group.hw-collapsed .hist-week-toggle .hist-toggle-icon { transform: rotate(-90deg); }
.hist-week-toggle .hist-toggle-icon { transition: transform .15s ease; }
.hist-day-header  { font-size: 12px; color: var(--muted); font-weight: 600;
                    text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 6px; }

/* ── Daily Movement (movement.js) ─────────────────────────────────────────── */
.mv-card { padding: 12px 14px; }
.mv-card-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mv-gear { background: none; border: none; color: var(--muted); font-size: 18px; padding: 2px 4px; cursor: pointer; }
.mv-row { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; }
.mv-row-off .mv-row-title { color: var(--muted); }
.mv-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); background: none;
  color: var(--accent); font-size: 18px; line-height: 1; flex-shrink: 0; cursor: pointer; }
.mv-circle-done { background: var(--accent); color: #fff; }
.mv-circle-partial { color: var(--accent); }
.mv-circle-excused { border-color: var(--border); color: var(--muted); }
.mv-row-body { flex: 1; cursor: pointer; min-width: 0; }
.mv-row-title { font-size: 16px; font-weight: 700; }
.mv-row-sub { font-size: 13px; color: var(--text); margin-top: 2px; }
.mv-row-meta, .mv-muted { color: var(--muted); font-size: 12px; }
.mv-strip { display: flex; gap: 4px; padding: 2px 0 8px 46px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.mv-strip:last-child { border-bottom: none; }
.mv-strip-day { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--muted); padding: 2px 0; border-radius: 6px; }
.mv-strip-day.tap { cursor: pointer; }
.mv-strip-day.tap:active { background: var(--surface2); }
.mv-strip-today .mv-strip-l { color: var(--text); font-weight: 700; }
.mv-sym { font-size: 13px; line-height: 16px; }
.mv-sym-done, .mv-sym-partial { color: var(--accent); }
.mv-sym-missed, .mv-sym-today { color: var(--muted); }
.mv-sym-future, .mv-sym-off, .mv-sym-excused { color: #555; }
.mv-note { font-size: 12px; color: var(--muted); background: var(--surface2); border-radius: 8px; padding: 7px 10px; margin: 6px 0; }
.mv-coach-note { font-size: 13px; background: #1e1530; border: 1px solid var(--accent); border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; }
.mv-paused { font-size: 13px; color: #d9a441; background: #2a2010; border-radius: 8px; padding: 7px 10px; margin: 6px 0; }
.mv-paused a { color: var(--accent2); text-decoration: underline; cursor: pointer; }
.mv-sheet-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mv-lvl { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: var(--surface2); color: var(--muted); }
.mv-drill { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mv-drill-done .mv-drill-name { color: var(--muted); text-decoration: line-through; }
.mv-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border); background: none; color: #fff; font-size: 15px; flex-shrink: 0; cursor: pointer; }
.mv-drill-done .mv-check { background: var(--accent); border-color: var(--accent); }
.mv-drill-body { flex: 1; min-width: 0; }
.mv-drill-name { font-size: 15px; font-weight: 600; }
.mv-drill-dose { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mv-drill-cue { font-size: 13px; margin-top: 3px; }
.mv-drill-actions { display: flex; gap: 6px; margin-top: 6px; }
.mv-tag { color: var(--accent); }
.mv-mini { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 14px; padding: 4px 10px; font-size: 12px; cursor: pointer; margin-top: 6px; }
.mv-stepper { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.mv-stepper button { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
.mv-stepper span { font-size: 20px; font-weight: 700; min-width: 48px; text-align: center; }
.mv-stepper-sm { margin: 0; gap: 8px; }
.mv-stepper-sm button { padding: 4px 10px; }
.mv-stepper-sm span { font-size: 13px; min-width: 56px; }
.mv-notes { margin-top: 12px; min-height: 60px; font-size: 14px; resize: vertical; }
.mv-remove { color: var(--danger); }
.mv-sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mv-switch { width: 50px; height: 30px; border-radius: 15px; border: none; background: var(--border); position: relative; cursor: pointer; flex-shrink: 0; }
.mv-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.mv-switch.on { background: var(--accent); }
.mv-switch.on span { left: 23px; }
.mv-days { display: flex; gap: 6px; margin-bottom: 6px; }
.mv-daychip { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-weight: 600; cursor: pointer; }
.mv-daychip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mv-area { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.mv-area-off { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.mv-area-top { display: flex; align-items: center; justify-content: space-between; }
.mv-area-name { font-weight: 700; }
.mv-area-why { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mv-coach-tag { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 1px 6px; margin-left: 4px; }
.mv-x { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.mv-area-ctrls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.mv-area-drill { font-size: 13px; padding: 6px 0; cursor: pointer; }
.mv-slot { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-right: 4px; }
.mv-area-meta { font-size: 11px; color: var(--muted); }
.mv-add { background: var(--surface2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.mv-swap { padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.mv-swap-cur .mv-drill-name { color: var(--accent); }
.mv-swap-off { opacity: .45; }
.mv-habit-how { margin: 2px 0 8px; }
.mv-guide { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.mv-guide summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.mv-guide-item { background: var(--surface2); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.mv-guide-off { opacity: .55; }
.mv-guide-why { font-size: 12px; color: var(--warning, #e0a040); margin-top: 3px; }
.mv-levelup { font-size: 13px; background: #1a3a1a; color: var(--success); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.mv-levelup-btns { display: flex; gap: 6px; }
.mv-help ul { margin: 6px 0 0 18px; font-size: 13px; color: var(--muted); }
.mv-help li { margin-bottom: 6px; }
.mv-grid { display: flex; flex-direction: column; gap: 2px; }
.mv-grid-row { display: grid; grid-template-columns: 38px repeat(7, 1fr); align-items: center; text-align: center; }
.mv-grid-lbl { font-size: 10px; color: var(--muted); text-align: left; }
.mv-trend-area { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.mv-checkin-line { font-size: 13px; background: var(--surface2); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.util-btn .mv-dot { position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); }
.mv-rec { border-color: var(--accent); }
.mv-rec > div { font-size: 14px; margin-bottom: 4px; }
.mv-rec-areas { color: var(--text); }
.mv-rec-caution { color: #d9a441; }
.mv-rec-btns .btn { margin-top: 8px; padding: 12px; font-size: 14px; }
.mv-rec-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.mv-check-sm { width: 22px; height: 22px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.mv-check-sm.on { background: var(--accent); border-color: var(--accent); }
.mv-caution { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.mv-caution:last-child { border-bottom: none; }
.mv-caution-off { opacity: .7; }

/* Daily Movement — Phase 3 self-tests */
.mv-test-row { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 10px; }
.mv-test-icon { width: 34px; text-align: center; font-size: 20px; flex-shrink: 0; }
.mv-later { margin-top: 0; }
.mv-test-item { padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.mv-test-item-off { opacity: .55; }
.mv-test-item-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mv-test-res { font-size: 13px; margin-top: 2px; }
.mv-test-due { color: var(--accent); font-weight: 600; }
.mv-test-flag-tag { font-size: 10px; font-weight: 700; color: #d9a441; border: 1px solid #d9a441; border-radius: 10px; padding: 1px 6px; }
.mv-test-shows { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mv-test-steps { margin: 6px 0 8px 18px; padding: 0; font-size: 14px; }
.mv-test-steps li { margin-bottom: 5px; }
.mv-test-safety { font-size: 12px; color: #d9a441; margin: 4px 0; }
.mv-test-good { font-size: 13px; margin: 4px 0 10px; }
.mv-test-side { margin-bottom: 6px; }
.mv-num-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mv-num { width: 90px; font-size: 18px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); }
.mv-num-unit { font-size: 13px; color: var(--muted); }
.mv-num-row .mv-mini { margin-top: 0; }
.mv-unit-chips { margin-bottom: 4px; }
.mv-hurt { color: #d9a441; }
.mv-test-optout { text-align: center; margin: 10px 0 4px; font-size: 13px; }
.mv-link { color: var(--accent2); text-decoration: underline; cursor: pointer; }
.mv-test-saved { font-size: 16px; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.mv-test-change { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mv-test-flag { font-size: 13px; color: #d9a441; background: #2a2010; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.mv-offer { background: var(--surface2); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; font-size: 14px; }
.mv-area-test { font-size: 12px; color: var(--muted); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); cursor: pointer; }
.mv-tilt { text-align: center; }
.mv-tilt .mv-test-steps { text-align: left; }
.mv-tilt-title { font-weight: 700; margin-bottom: 4px; }
.mv-tilt-live { font-size: 56px; font-weight: 800; margin: 18px 0 6px; color: var(--accent); }
.mv-tilt-msg { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.mv-screen-dots { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.mv-screen-dot { display: flex; flex-direction: column; align-items: center; }
.mv-tilt-result { color: var(--success); }
.mv-tilt-diag { font-size: 10px; color: var(--muted); opacity: .7; margin: 0 0 10px; font-family: monospace; }
/* Self-tests phone run v2 (selftests.js): guard covers the whole app while measuring */
.mv-tilt-cta { margin: 4px 0 10px; text-align: center; }
.mv-tilt-cta .btn { margin-bottom: 4px; }
.mv-tilt-place { text-align: left; font-size: 14px; background: var(--surface2); border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; }
.mv-tilt-side-res { font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mv-speak-chips { justify-content: center; margin: 4px 0 10px; }
.mv-num-src { margin-left: 6px; font-size: 12px; }
.mv-guard { display: none; position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--text);
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bot) + 20px); touch-action: none; user-select: none; -webkit-user-select: none; }
.mv-guard.open { display: flex; }
.mv-guard-side { font-size: 34px; font-weight: 800; letter-spacing: .04em; }
.mv-guard-live { font-size: 96px; font-weight: 800; color: var(--accent); margin: 10px 0; }
.mv-guard-say { font-size: 20px; min-height: 2.6em; max-width: 26em; margin-bottom: 12px; }
.mv-guard-off .btn { margin: 4px 0; }
.mv-guard-stop { position: relative; overflow: hidden; margin-top: auto; width: 100%; max-width: 420px; padding: 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface2); font-weight: 700; }
.mv-guard-stop span { position: relative; }
.mv-guard-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); opacity: .35; }
.mv-guard-stop.holding .mv-guard-fill { width: 100%; transition: width 1s linear; }
/* Self-tests screen (selftests.js, redesign Phase 3): home, four-step test, bands, figures */
.mv-band { font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 7px; border: 1px solid; }
.mv-band-good { color: var(--success); border-color: var(--success); }
.mv-band-fine { color: var(--muted); border-color: var(--border); }
.mv-band-work { color: #d9a441; border-color: #d9a441; }
.mv-test-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mv-need { font-size: 11px; color: var(--muted); background: var(--surface2); border-radius: 8px; padding: 1px 6px; }
.mv-test-reason { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mv-test-item-due .mv-drill-name { color: var(--text); }
.mv-suggest-btns { margin-top: 6px; }
.mv-st-none { font-size: 12px; padding: 4px; }
.mv-st-group { border-bottom: 1px solid var(--border); }
.mv-st-group-hdr { padding: 10px 4px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.mv-st-chev { margin-left: auto; color: var(--muted); }
.mv-st-settings { padding: 4px 0 20px; }
.mv-st-steps { display: flex; gap: 4px; margin: 0 0 12px; overflow-x: auto; }
.mv-st-step { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.mv-st-step.on { color: var(--text); border-color: var(--accent); background: var(--accent); }
.mv-st-fig { background: var(--surface2); border-radius: 10px; padding: 6px; margin: 8px 0 12px; }
.mv-st-fig svg { display: block; width: 100%; height: auto; }
.mv-st-fig.small { margin: 0 0 8px; }
.mv-st-facts { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.mv-st-coach { font-size: 14px; border: 1px solid var(--accent); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.mv-st-watch { font-size: 13px; color: #d9a441; margin: 6px 0 10px; }
.mv-st-video { display: block; margin: 6px 0 10px; }
.mv-side-tabs { display: flex; gap: 6px; margin: 6px 0 8px; }
.mv-side-tab { flex: 1; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-weight: 600; }
.mv-side-tab.on { border-color: var(--accent); background: var(--accent); }
.mv-side-big { font-size: 26px; font-weight: 800; letter-spacing: .04em; margin: 6px 0 8px; }
.mv-hidden { display: none; }
.mv-side-next { margin-top: 8px; }
.mv-old-note { font-size: 12px; margin-top: 6px; }
/* Checklist tests (deep squat, build Phase 5) */
.mv-check-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.mv-check-item { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px; font-size: 15px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.mv-check-item.on { border-color: var(--accent); }
.mv-check-box { font-size: 22px; line-height: 1; }
.mv-check-num { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 12px; }
.mv-check-score { font-weight: 700; margin: 4px 0 10px; }
.mv-check-missed { margin: 8px 0; }

/* ── Benchmarks (benchmarks.js) ─────────────────────────────────────────── */
.bm-sec { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.bm-pin { padding: 12px 14px; cursor: pointer; }
.bm-pin:active { opacity: .8; }
.bm-pin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bm-pin-name { font-size: 15px; font-weight: 700; }
.bm-pin-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; }
.bm-pin-val { font-size: 20px; font-weight: 700; }
.bm-pin-meta { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.bm-spark { flex-shrink: 0; max-width: 100%; }
.bm-badge { font-size: 10px; font-weight: 700; color: var(--accent2); border: 1px solid var(--accent2); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.bm-pill { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 6px; vertical-align: 1px; }
.bm-pill-improved { background: rgba(74,222,128,.15); color: var(--success); }
.bm-pill-same { background: var(--surface2); color: var(--muted); }
.bm-pill-worse { background: rgba(239,68,68,.15); color: var(--danger); }
.bm-due { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px;
  border-radius: 10px; background: #2a2010; color: #d9a441; font-size: 13px; }
.bm-grp { border-bottom: 1px solid var(--border); }
.bm-grp-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-weight: 700; font-size: 15px; cursor: pointer; }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--border); }
.bm-row-body { flex: 1; min-width: 0; cursor: pointer; }
.bm-row-name { font-size: 15px; font-weight: 600; }
.bm-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bm-row-val { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.bm-star { background: none; border: none; color: var(--muted); font-size: 22px; padding: 4px 6px; cursor: pointer; line-height: 1; }
.bm-star.on { color: #f5c542; }
.bm-chev { color: var(--muted); font-size: 18px; padding: 0 6px; }
.bm-link { margin: 16px 0 4px; color: var(--accent2); font-size: 14px; font-weight: 600; cursor: pointer; }
.bm-settings { padding: 6px 14px; }
.bm-set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.bm-std { padding: 8px 14px 12px; }
.bm-seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.bm-seg button { background: var(--surface2); color: var(--text); border: none; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.bm-seg button.on { background: var(--accent); color: #fff; }
.bm-shows { font-size: 14px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.bm-caution { font-size: 13px; line-height: 1.5; border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.bm-caution-warn { background: #2a2010; color: #d9a441; }
.bm-caution-strong { background: rgba(239,68,68,.14); color: #fca5a5; }
.bm-caution-info { background: var(--surface2); color: var(--muted); }
.bm-caution-good { background: rgba(74,222,128,.12); color: var(--success); }
.bm-actions { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 4px; }
.bm-actions .btn { flex: 1; margin-top: 0; padding: 14px; }
.bm-actions .bm-pinbtn { flex: 0 0 auto; width: auto; padding: 14px 16px; }
.bm-res { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bm-res-main { flex: 1; min-width: 0; font-size: 14px; }
.bm-steps { padding: 0 4px 12px 22px; font-size: 14px; line-height: 1.55; }
.bm-steps li { margin-bottom: 6px; }
.bm-meta { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 14px 0; }
.bm-train { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 14px; font-size: 13px; line-height: 1.5; }
.bm-train-lbl { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.bm-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 6px; }
.bm-preview { font-size: 13px; color: var(--muted); margin: -4px 0 10px; line-height: 1.5; }
.bm-preview:empty { display: none; }
.bm-warn { color: #d9a441; }
.bm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; cursor: pointer; }
.bm-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.bm-howto { margin-top: 14px; font-size: 14px; }
.bm-howto summary { color: var(--accent2); cursor: pointer; margin-bottom: 8px; }
.bm-search { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; margin: 4px 0 4px; }
.bm-pick { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 15px; cursor: pointer; }
.bm-pick:active { background: var(--surface2); }
.bm-trend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.bm-caret { color: var(--muted); font-size: 18px; line-height: 1; transition: transform .2s; display: inline-block; }
.bm-caret.open { transform: rotate(90deg); }
.bm-sugg { padding: 12px 14px; border-color: var(--accent); }
.bm-sugg-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bm-sugg-btns .mv-mini { margin-top: 0; padding: 6px 12px; font-size: 13px; }
.bm-hide { margin: 0 0 0 6px; padding: 2px 8px; vertical-align: 1px; }
.bm-set-btn { background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; padding: 2px 7px; margin-left: 6px; cursor: pointer; line-height: 1.4; }
.bm-set-btn:active { background: var(--surface2); }

    /* Coach-only 📋 Review link (week header): icon only on narrow phones */
    @media (max-width: 430px) { #review-link .rl-txt { display: none; } #review-link { padding: 7px 10px !important; } }
