.rf-coach-home-entry { margin-bottom: 20px; }
.rf-module-coach { width: 100%; min-height: 108px; flex-direction: row; align-items: center; gap: 14px; border-color: color-mix(in srgb, var(--rf-primary) 38%, var(--rf-border)); background: linear-gradient(135deg, #fff, var(--rf-primary-soft)); }
.rf-module-coach .rf-module-icon { margin-bottom: 0; background: #e5f5f2; color: #08786b; }
.rf-coach-badge {
    position: absolute;
    top: 13px;
    left: 48px;
    display: grid;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d92d20;
    box-shadow: 0 4px 12px rgba(180, 35, 24, .25);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.rf-coach-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.rf-coach-contexts { display: grid; gap: 11px; }
.rf-coach-context-card {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--rf-border);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--rf-shadow);
    color: var(--rf-ink);
    cursor: pointer;
    text-align: right;
}
.rf-coach-context-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 23px; }
.rf-coach-context-copy strong { display: block; margin-bottom: 6px; font-size: 14px; }
.rf-coach-context-copy small { display: block; color: var(--rf-muted); font-size: 10px; }
.rf-coach-context-badge { display: grid; min-width: 25px; height: 25px; padding: 0 7px; place-items: center; border-radius: 999px; background: #d92d20; color: #fff; font-size: 10px; font-weight: 800; }
.rf-coach-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--rf-border); border-radius: 16px; background: #fff; }
.rf-coach-workspace-head strong { display: block; margin-bottom: 4px; font-size: 13px; }
.rf-coach-workspace-head small { display: block; color: var(--rf-muted); font-size: 10px; }
.rf-coach-workspace-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; margin-bottom: 12px; }
.rf-coach-workspace-actions button { width: 100%; }
.rf-coach-invite-dialog label { display: grid; gap: 7px; margin: 14px 0; color: #3f4a44; font-size: 11px; font-weight: 700; }
.rf-coach-invite-dialog input,
.rf-coach-invite-result textarea { width: 100%; padding: 12px; border: 1px solid var(--rf-border); border-radius: 12px; background: #fff; color: var(--rf-ink); }
.rf-coach-invite-result { display: grid; gap: 9px; margin: 12px 0; }
.rf-coach-invite-result p { margin: 0; color: var(--rf-muted); font-size: 11px; line-height: 1.8; }
.rf-coach-invite-result textarea { resize: vertical; direction: rtl; line-height: 1.9; }
.rf-coach-invite-dialog > .rf-primary-button { width: 100%; }
.rf-coach-card-injuries { margin-top: 7px; color: #9a3412; font-size: 11px; font-weight: 800; line-height: 1.8; }
.rf-request-photo-viewer h2, .rf-request-photo-viewer p { margin: 0 0 10px; }
.rf-request-photo-viewer p { color: var(--rf-muted); font-size: 11px; line-height: 1.8; }
.rf-request-photo-viewer img { display: block; width: 100%; max-height: 68vh; object-fit: contain; border-radius: 18px; background: #eef2ef; }
.rf-coach-card-actions button.rf-danger-action { border-color: #efc4c0; color: var(--rf-danger); }
.rf-coach-stats article { padding: 15px 8px; border: 1px solid var(--rf-border); border-radius: 16px; background: #fff; text-align: center; }
.rf-coach-stats strong { display: block; margin-bottom: 6px; color: var(--rf-primary); font-size: 22px; }
.rf-coach-stats span { color: var(--rf-muted); font-size: 10px; line-height: 1.5; }
.rf-coach-section { margin-top: 22px; }
.rf-coach-search { margin-bottom: 11px; }
.rf-coach-fold { overflow: hidden; margin-top: 13px; border: 1px solid var(--rf-border); border-radius: 19px; background: #fff; box-shadow: var(--rf-shadow); }
.rf-coach-fold-toggle {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 43px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 0;
    background: #fff;
    color: var(--rf-ink);
    cursor: pointer;
    text-align: right;
}
.rf-coach-fold-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 21px; }
.rf-coach-fold-toggle strong { display: block; margin-bottom: 5px; font-size: 14px; }
.rf-coach-fold-toggle small { display: block; color: var(--rf-muted); font-size: 10px; line-height: 1.6; }
.rf-coach-fold-chevron { color: #9ca8a1; font-size: 25px; transition: transform .18s ease; }
.rf-coach-fold-toggle[aria-expanded="true"] .rf-coach-fold-chevron { transform: rotate(-90deg); }
.rf-coach-fold-content { padding: 14px; border-top: 1px solid var(--rf-border); background: #fbfcfb; }
.rf-coach-fold-action { margin-bottom: 11px; }
.rf-coach-fold-action button { width: 100%; }
.rf-coach-list { display: grid; gap: 10px; }
.rf-coach-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--rf-border);
    border-radius: 17px;
    background: #fff;
}
.rf-coach-card-copy { min-width: 0; }
.rf-coach-card-copy strong { display: block; overflow: hidden; margin-bottom: 6px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rf-coach-card-copy small { display: block; color: var(--rf-muted); font-size: 10px; line-height: 1.6; }
.rf-coach-card-note { overflow: hidden; max-width: 100%; margin-top: 7px; color: #45504a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rf-coach-card-body-profile { margin-top: 7px; color: #3158ad; font-size: 10px; font-weight: 700; }
.rf-coach-card-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.rf-coach-card-actions button { min-height: 37px; padding: 8px 11px; border: 0; border-radius: 11px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.rf-coach-card-actions button.rf-light-action { border: 1px solid var(--rf-border); background: #fff; color: var(--rf-ink); }
.rf-coach-card-actions button:disabled { opacity: .48; cursor: not-allowed; }
.rf-coach-empty { padding: 21px 14px; border: 1px dashed #cfd8d3; border-radius: 16px; color: var(--rf-muted); text-align: center; font-size: 12px; }
.rf-coach-empty.is-error { border-color: #efc4c0; background: #fff8f7; color: var(--rf-danger); }
.rf-template-list { display: grid; gap: 10px; }
.rf-template-card,
.rf-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--rf-border);
    border-radius: 17px;
    background: #fff;
}
.rf-history-card { display: grid; align-items: stretch; }
.rf-history-card .rf-coach-card-copy > strong { white-space: normal; line-height: 1.8; }
.rf-history-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; }
.rf-history-meta span { padding: 5px 8px; border-radius: 9px; background: #f3f6f4; color: var(--rf-muted); font-size: 10px; line-height: 1.6; }
.rf-history-request { display: grid; gap: 5px; margin-top: 10px; padding: 10px 11px; border: 1px solid #f0dcc5; border-radius: 12px; background: #fffaf3; color: #6d4c24; }
.rf-history-request b { font-size: 10px; }
.rf-history-request span { font-size: 10px; line-height: 1.7; }
.rf-history-archived { color: #8a5b12 !important; }
.rf-template-member-search { margin: 14px 0 10px; }
.rf-template-member-list { display: grid; gap: 9px; }
.rf-template-send-member { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 11px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.rf-history-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.rf-history-actions button { min-height: 37px; padding: 8px 11px; border: 0; border-radius: 11px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.rf-history-actions button.rf-light-action { border: 1px solid var(--rf-border); background: #fff; color: var(--rf-ink); }
.rf-history-actions button:disabled { opacity: .55; cursor: not-allowed; }
.rf-coach-measurements { display: grid; gap: 9px; margin-top: 22px; }
.rf-coach-measurements h3 { margin: 0 0 3px; font-size: 16px; }
.rf-coach-measurement-row { padding: 13px 14px; border: 1px solid var(--rf-border); border-radius: 15px; background: #fff; }
.rf-coach-measurement-row > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.rf-coach-measurement-summary { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--rf-muted); font-size: 10px; line-height: 1.8; }
.rf-coach-measurement-value { display: inline-flex; align-items: center; gap: 4px; }
.rf-coach-measurement-direction { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; font-size: 11px; line-height: 1; }
.rf-coach-measurement-direction.is-up { background: #eaf8f0; color: #106b3e; }
.rf-coach-measurement-direction.is-down { background: #fff0ef; color: #a72b23; }
.rf-coach-measurement-direction.is-steady { background: #f1f3f5; color: #606a73; }
.rf-picker-clear-filters { margin-top: 9px; }

.rf-builder-history { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--rf-border); border-radius: 17px; background: #fff; }
.rf-builder-history strong { display: block; margin-bottom: 5px; font-size: 13px; }
.rf-builder-history small { display: block; color: var(--rf-muted); font-size: 10px; }
.rf-builder-fields { display: grid; gap: 12px; padding: 17px; border: 1px solid var(--rf-border); border-radius: 19px; background: #fff; }
.rf-builder-fields label,
.rf-template-assign label,
.rf-day-title-label,
.rf-item-note { display: grid; gap: 7px; color: #3f4a44; font-size: 11px; font-weight: 700; }
.rf-builder-fields input,
.rf-builder-fields textarea,
.rf-template-assign select,
.rf-day-title-label input,
.rf-item-note input,
.rf-item-control select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--rf-border);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--rf-ink);
    font-weight: 400;
}
.rf-item-control input { width: 100%; padding: 11px 12px; border: 1px solid var(--rf-border); border-radius: 12px; outline: 0; background: #fff; color: var(--rf-ink); }
.rf-builder-fields textarea { resize: vertical; }
.rf-builder-fields input:focus,
.rf-builder-fields textarea:focus,
.rf-template-assign select:focus,
.rf-day-title-label input:focus,
.rf-item-note input:focus,
.rf-item-control select:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rf-primary) 12%, transparent); }
.rf-builder-fields input[readonly] { background: #f3f6f4; color: #4e5d55; cursor: default; }

.rf-template-assign { display: grid; gap: 10px; margin-top: 12px; padding: 15px; border: 1px solid #cfe2d7; border-radius: 17px; background: var(--rf-primary-soft); }
.rf-template-assign .rf-secondary-button { width: 100%; }
.rf-template-builder-notice { margin-bottom: 14px; padding: 14px 16px; border: 1px solid #cfe2d7; border-radius: 17px; background: var(--rf-primary-soft); }
.rf-template-builder-notice strong { display: block; margin-bottom: 5px; color: var(--rf-primary); font-size: 13px; }
.rf-template-builder-notice p { margin: 0; color: #455b50; font-size: 11px; line-height: 1.8; }
.rf-template-title-dialog label { display: grid; gap: 7px; margin-top: 15px; color: #3f4a44; font-size: 11px; font-weight: 700; }
.rf-template-title-dialog input { width: 100%; padding: 12px; border: 1px solid var(--rf-border); border-radius: 12px; outline: 0; background: #fff; color: var(--rf-ink); }
.rf-template-title-dialog input:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rf-primary) 12%, transparent); }
.rf-template-title-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 14px; }
.rf-template-title-actions button { width: 100%; }
.rf-builder-days { display: grid; gap: 14px; margin-top: 15px; }
.rf-day-card { overflow: hidden; border: 1px solid var(--rf-border); border-radius: 20px; background: #fff; box-shadow: var(--rf-shadow); }
.rf-day-head { display: flex; align-items: flex-end; gap: 10px; padding: 14px; background: #f8faf9; }
.rf-day-muscles { margin: 0; padding: 10px 14px; border-top: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; background: #fbfdfc; color: #42604f; font-size: 10px; line-height: 1.8; }
.rf-day-title-label { flex: 1; }
.rf-day-remove { flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid #f0c5c1; border-radius: 11px; background: #fff7f6; color: var(--rf-danger); cursor: pointer; }
.rf-day-items { display: grid; gap: 10px; padding: 12px; }
.rf-day-empty { padding: 18px; border: 1px dashed #d5ddd8; border-radius: 13px; color: var(--rf-muted); text-align: center; font-size: 11px; }
.rf-builder-item { padding: 13px; border: 1px solid var(--rf-border); border-radius: 15px; background: #fff; }
.rf-builder-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.rf-builder-item-head strong { font-size: 13px; line-height: 1.7; }
.rf-builder-item-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.rf-builder-item-identity strong { overflow: hidden; text-overflow: ellipsis; }
.rf-builder-item-preview { display: grid; flex: 0 0 58px; width: 58px; height: 52px; overflow: hidden; padding: 0; place-items: center; border: 0; border-radius: 10px; background: #f5f8f6; cursor: pointer; }
.rf-builder-item-preview img { width: 100%; height: 100%; object-fit: contain; }
.rf-item-remove { flex: 0 0 auto; padding: 5px 8px; border: 0; background: none; color: var(--rf-danger); cursor: pointer; font-size: 11px; }
.rf-item-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-item-control { display: grid; gap: 5px; color: var(--rf-muted); font-size: 10px; }
.rf-item-note { margin-top: 9px; }
.rf-day-add-exercise { width: calc(100% - 24px); margin: 0 12px 13px; min-height: 42px; border: 1px dashed var(--rf-primary); border-radius: 13px; background: var(--rf-primary-soft); color: var(--rf-primary); cursor: pointer; font-weight: 700; }
.rf-add-day { width: 100%; margin-top: 14px; }
.rf-builder-submit { display: grid; gap: 9px; margin-top: 14px; }
.rf-builder-submit button { width: 100%; }

.rf-picker-dialog { display: flex; width: 100%; min-height: 0; flex: 1; flex-direction: column; }
.rf-picker-toolbar { position: relative; z-index: 4; flex: 0 0 auto; padding: 64px 18px 12px; border-bottom: 1px solid var(--rf-border); background: #fff; box-shadow: 0 8px 20px rgba(24,32,28,.06); }
.rf-picker-toolbar .rf-detail h2 { margin: 0 0 12px; }
.rf-picker-results-scroll { min-height: 0; padding: 14px 18px calc(25px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; flex: 1; }
.rf-picker-search { display: grid; gap: 9px; background: #fff; }
.rf-picker-favorite-filter { min-height: 40px; padding: 8px 12px; border: 1px solid #e0d4a4; border-radius: 12px; background: #fffdf5; color: #796214; cursor: pointer; font-size: 11px; font-weight: 700; }
.rf-picker-favorite-filter.is-active { border-color: #d3ae28; background: #fff5c9; color: #675000; }
.rf-picker-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.rf-picker-filters select { min-width: 0; padding: 9px 7px; border: 1px solid var(--rf-border); border-radius: 11px; outline: 0; background: #fff; color: var(--rf-ink); font-size: 10px; }
.rf-picker-muscle-details { border: 1px solid var(--rf-border); border-radius: 13px; background: #fbfcfb; }
.rf-picker-muscle-details summary { padding: 11px 13px; color: var(--rf-ink); cursor: pointer; font-size: 11px; font-weight: 800; }
.rf-picker-muscle-map { padding: 0 10px 11px; }
.rf-muscle-map svg { display: block; width: 100%; max-height: 300px; }
.rf-muscle-silhouette { fill: #edf1ef; stroke: #d5ddd8; stroke-width: 2; }
.rf-muscle-zone { fill: rgba(21, 115, 71, .18); stroke: rgba(21, 115, 71, .38); stroke-width: 1.5; cursor: pointer; transition: fill .15s ease, stroke .15s ease; }
.rf-muscle-zone:hover, .rf-muscle-zone:focus, .rf-muscle-zone.is-selected { fill: var(--rf-primary); stroke: #fff; outline: none; }
.rf-muscle-map text { fill: var(--rf-muted); font-size: 11px; font-weight: 700; }
.rf-muscle-cardio { width: 100%; min-height: 38px; border: 1px solid #efc4c0; border-radius: 11px; background: #fff7f6; color: #b42318; cursor: pointer; font-weight: 800; }
.rf-muscle-cardio.is-selected { background: #b42318; color: #fff; }
.rf-picker-meta { margin: 4px 2px 10px; color: var(--rf-muted); font-size: 11px; }
.rf-picker-list { display: grid; min-height: 260px; align-content: start; gap: 8px; transition: opacity .15s ease; }
.rf-picker-list.is-loading { opacity: .48; pointer-events: none; }
.rf-picker-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--rf-border); border-radius: 14px; }
.rf-picker-preview { display: grid; place-items: center; width: 74px; height: 66px; overflow: hidden; padding: 0; border: 0; border-radius: 11px; background: #f5f8f6; color: #a5afa9; cursor: pointer; }
.rf-picker-preview img { width: 100%; height: 100%; object-fit: contain; }
.rf-picker-item strong { display: block; margin-bottom: 5px; font-size: 12px; }
.rf-picker-item small { display: block; color: var(--rf-muted); font-size: 9px; }
.rf-picker-actions { display: grid; justify-items: stretch; gap: 6px; }
.rf-picker-actions button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.rf-picker-actions button.rf-picker-favorite { min-width: 38px; padding: 4px; border: 1px solid #eadb9e; background: #fffdf5; color: #8e741c; font-size: 19px; }
.rf-picker-actions button.rf-picker-favorite.is-active { border-color: #dfbc37; background: #fff4bf; color: #6f5700; }
.rf-picker-actions button:disabled { opacity: .55; cursor: wait; }
.rf-picker-config {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 12px;
    border: 1px solid #cfe2d7;
    border-radius: 13px;
    background: var(--rf-primary-soft);
}
.rf-picker-config label { display: grid; gap: 6px; color: #3f4a44; font-size: 10px; font-weight: 700; }
.rf-picker-config select { width: 100%; padding: 10px; border: 1px solid var(--rf-border); border-radius: 10px; outline: 0; background: #fff; color: var(--rf-ink); }
.rf-picker-config-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.rf-picker-config-actions button { min-height: 39px; border: 0; border-radius: 10px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.rf-picker-config-actions button.rf-light-action { border: 1px solid var(--rf-border); background: #fff; color: var(--rf-ink); }
.rf-picker-more { width: 100%; margin-top: 10px; }
.rf-history-list { display: grid; gap: 9px; margin-top: 14px; }

@media (min-width: 720px) {
    .rf-builder-submit { grid-template-columns: 1fr 1.4fr; }
    .rf-coach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
    .rf-coach-workspace-actions { grid-template-columns: 1fr; }
    .rf-coach-card { align-items: stretch; flex-direction: column; }
    .rf-template-card,
    .rf-history-card { align-items: stretch; flex-direction: column; }
    .rf-coach-card-actions button { flex: 1; }
    .rf-history-actions button { flex: 1; }
    .rf-coach-stats strong { font-size: 18px; }
    .rf-picker-filters { grid-template-columns: 1fr; }
    .rf-picker-item { grid-template-columns: 64px minmax(0, 1fr); }
    .rf-picker-preview { width: 64px; height: 60px; }
    .rf-picker-actions { grid-column: 1 / -1; grid-template-columns: 42px 1fr; }
}

/* 0.22.0 dark theme adapters. */
.rf-module-coach { --rf-card-accent: var(--rf-primary); border-color: var(--rf-primary-border); background: linear-gradient(135deg, color-mix(in srgb, var(--rf-primary) 8%, var(--rf-surface-raised)), var(--rf-surface)); }
.rf-module-coach .rf-module-icon { border-color: var(--rf-primary-border); background: var(--rf-primary-soft) !important; color: var(--rf-primary) !important; }
.rf-module-coach .rf-module-icon::before { -webkit-mask-image: url("icons/ui-coach.svg"); mask-image: url("icons/ui-coach.svg"); }
.rf-coach-badge { border-color: var(--rf-surface); background: var(--rf-danger); }
.rf-coach-context-card,
.rf-coach-workspace-head,
.rf-coach-stats article,
.rf-coach-fold,
.rf-coach-fold-toggle,
.rf-coach-card,
.rf-template-card,
.rf-history-card,
.rf-coach-measurement-row,
.rf-builder-history,
.rf-builder-fields,
.rf-day-card,
.rf-builder-item,
.rf-picker-item { border-color: var(--rf-border); background: var(--rf-surface); color: var(--rf-ink); }
.rf-coach-context-card,
.rf-coach-fold,
.rf-day-card { box-shadow: var(--rf-shadow); }
.rf-coach-context-icon,
.rf-coach-fold-icon { border: 1px solid var(--rf-primary-border); background: var(--rf-primary-soft); }
.rf-coach-context-badge { background: var(--rf-danger); }
.rf-coach-invite-dialog label,
.rf-builder-fields label,
.rf-template-assign label,
.rf-day-title-label,
.rf-item-note,
.rf-template-title-dialog label,
.rf-picker-config label { color: var(--rf-ink-soft); }
.rf-coach-invite-dialog input,
.rf-coach-invite-result textarea,
.rf-builder-fields input,
.rf-builder-fields textarea,
.rf-template-assign select,
.rf-day-title-label input,
.rf-item-note input,
.rf-item-control input,
.rf-item-control select,
.rf-template-title-dialog input,
.rf-picker-filters select,
.rf-picker-config select { border-color: var(--rf-border); background: var(--rf-surface-raised); color: var(--rf-ink); }
.rf-coach-card-note,
.rf-template-builder-notice p { color: var(--rf-ink-soft); }
.rf-coach-card-injuries { color: #ff9b72; }
.rf-coach-card-body-profile { color: var(--rf-info); }
.rf-coach-card-actions button,
.rf-template-send-member,
.rf-history-actions button,
.rf-picker-actions button,
.rf-picker-config-actions button { background: var(--rf-primary); color: var(--rf-on-primary); }
.rf-coach-card-actions button.rf-light-action,
.rf-history-actions button.rf-light-action,
.rf-picker-config-actions button.rf-light-action { border-color: var(--rf-border-strong); background: var(--rf-surface-raised); color: var(--rf-ink); }
.rf-coach-card-actions button.rf-danger-action { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); color: var(--rf-danger); }
.rf-coach-fold-content { border-color: var(--rf-border); background: var(--rf-surface-soft); }
.rf-coach-empty { border-color: var(--rf-border-strong); }
.rf-coach-empty.is-error { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); }
.rf-history-meta span { background: var(--rf-surface-interactive); }
.rf-history-request { border-color: var(--rf-warning-border); background: var(--rf-warning-soft); color: #efd08b; }
.rf-history-archived { color: var(--rf-warning) !important; }
.rf-coach-measurement-direction.is-up { background: var(--rf-success-soft); color: var(--rf-success); }
.rf-coach-measurement-direction.is-down { background: var(--rf-danger-soft); color: var(--rf-danger); }
.rf-coach-measurement-direction.is-steady { background: var(--rf-surface-interactive); color: var(--rf-muted); }
.rf-builder-fields input[readonly] { background: var(--rf-surface-soft); color: var(--rf-muted); }
.rf-template-assign,
.rf-template-builder-notice,
.rf-picker-config { border-color: var(--rf-primary-border); background: var(--rf-primary-soft); }
.rf-day-head { background: var(--rf-surface-raised); }
.rf-day-muscles { border-color: var(--rf-border); background: var(--rf-surface-soft); color: var(--rf-ink-soft); }
.rf-day-remove { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); }
.rf-day-empty { border-color: var(--rf-border-strong); }
.rf-builder-item-preview,
.rf-picker-preview,
.rf-request-photo-viewer img { background: var(--rf-media-surface); }
.rf-day-add-exercise { border-color: var(--rf-primary-border); background: var(--rf-primary-soft); }
.rf-picker-toolbar { border-color: var(--rf-border); background: var(--rf-surface-raised); box-shadow: 0 12px 30px rgba(0, 0, 0, .26); }
.rf-picker-results-scroll { background: var(--rf-bg); }
.rf-picker-search { background: transparent; }
.rf-picker-favorite-filter,
.rf-picker-actions button.rf-picker-favorite { border-color: var(--rf-warning-border); background: var(--rf-warning-soft); color: var(--rf-warning); }
.rf-picker-favorite-filter.is-active,
.rf-picker-actions button.rf-picker-favorite.is-active { border-color: var(--rf-warning); background: color-mix(in srgb, var(--rf-warning) 22%, var(--rf-surface)); color: #ffe3a8; }
.rf-picker-muscle-details { border-color: var(--rf-border); background: var(--rf-surface-soft); }
.rf-muscle-silhouette { fill: var(--rf-surface-interactive); stroke: var(--rf-border-strong); }
.rf-muscle-zone { fill: rgba(50, 199, 135, .18); stroke: rgba(50, 199, 135, .5); }
.rf-muscle-zone:hover,
.rf-muscle-zone:focus,
.rf-muscle-zone.is-selected { fill: var(--rf-primary); stroke: var(--rf-on-primary); }
.rf-muscle-cardio { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); color: var(--rf-danger); }
.rf-muscle-cardio.is-selected { background: var(--rf-danger); color: #fff; }
.rf-picker-item { box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }

@media (hover: hover) and (pointer: fine) {
    .rf-coach-context-card:hover,
    .rf-coach-card:hover,
    .rf-template-card:hover,
    .rf-history-card:hover,
    .rf-picker-item:hover { border-color: var(--rf-primary-border); }
}
