:root {
    color-scheme: dark;
    --rf-primary: #32c787;
    --rf-primary-hover: #43d796;
    --rf-primary-strong: #20a96e;
    --rf-primary-soft: rgba(50, 199, 135, .14);
    --rf-primary-border: rgba(50, 199, 135, .34);
    --rf-on-primary: #07150f;
    --rf-brand: #32c787;
    --rf-workout: #7c73ff;
    --rf-workout-soft: rgba(124, 115, 255, .15);
    --rf-nutrition: #f2a33a;
    --rf-nutrition-soft: rgba(242, 163, 58, .15);
    --rf-water: #42a5f5;
    --rf-water-soft: rgba(66, 165, 245, .15);
    --rf-measure: #6ea8fe;
    --rf-measure-soft: rgba(110, 168, 254, .15);
    --rf-ink: #f3f5f4;
    --rf-ink-soft: #cbd2cf;
    --rf-muted: #9aa4a0;
    --rf-muted-low: #737e79;
    --rf-border: #2a3038;
    --rf-border-strong: #3a424c;
    --rf-surface: #15181d;
    --rf-surface-raised: #1d2128;
    --rf-surface-soft: #101318;
    --rf-surface-interactive: #20252d;
    --rf-media-surface: #edf1ef;
    --rf-bg: #0b0d10;
    --rf-backdrop: rgba(2, 4, 6, .78);
    --rf-danger: #f05b65;
    --rf-danger-soft: rgba(240, 91, 101, .13);
    --rf-danger-border: rgba(240, 91, 101, .34);
    --rf-warning: #f4bd4f;
    --rf-warning-soft: rgba(244, 189, 79, .13);
    --rf-warning-border: rgba(244, 189, 79, .34);
    --rf-info: #72a7ff;
    --rf-info-soft: rgba(114, 167, 255, .14);
    --rf-info-border: rgba(114, 167, 255, .34);
    --rf-success: #32c787;
    --rf-success-soft: rgba(50, 199, 135, .14);
    --rf-success-border: rgba(50, 199, 135, .34);
    --rf-font-family: "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif;
    --rf-space-unit: 4px;
    --rf-space-2: 8px;
    --rf-space-3: 12px;
    --rf-space-4: 16px;
    --rf-control-height: 48px;
    --rf-radius-small: 12px;
    --rf-radius-medium: 16px;
    --rf-radius: 20px;
    --rf-radius-large: 28px;
    --rf-radius-pill: 999px;
    --rf-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .025);
    --rf-shadow-raised: 0 22px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .035);
    --rf-transition-fast: 150ms ease;
    --rf-transition: 220ms ease;
}

* { box-sizing: border-box; }
html { margin-top: 0 !important; background: var(--rf-bg); }
body.roform-standalone-app {
    min-width: 320px;
    margin: 0;
    background: var(--rf-bg);
    color: var(--rf-ink);
    font-family: var(--rf-font-family);
    -webkit-font-smoothing: antialiased;
}
body.roform-standalone-app.admin-bar { padding-top: 0; }
body.roform-standalone-app #wpadminbar { display: none; }
body.roform-standalone-app button,
body.roform-standalone-app input,
body.roform-standalone-app select,
body.roform-standalone-app textarea { font: inherit; }
body.roform-standalone-app button { -webkit-tap-highlight-color: transparent; }

.roform-app {
    min-height: 100svh;
    background:
        radial-gradient(circle at 105% -8%, rgba(50, 199, 135, .11), transparent 32rem),
        radial-gradient(circle at -12% 48%, rgba(124, 115, 255, .08), transparent 30rem),
        var(--rf-bg);
    direction: rtl;
    isolation: isolate;
}
.roform-app [hidden] { display: none !important; }
.rf-connectivity {
    position: fixed;
    z-index: 240;
    top: max(var(--rf-space-2), env(safe-area-inset-top));
    right: var(--rf-space-3);
    left: var(--rf-space-3);
    display: flex;
    width: min(calc(100% - 24px), 620px);
    min-height: 44px;
    margin: 0 auto;
    padding: 9px var(--rf-space-3);
    border: 1px solid color-mix(in srgb, var(--rf-info) 25%, var(--rf-border));
    border-radius: var(--rf-radius-medium);
    background: var(--rf-info-soft);
    box-shadow: var(--rf-shadow-raised);
    color: var(--rf-info);
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.rf-connectivity.is-offline,
.rf-connectivity.is-pending { border-color: color-mix(in srgb, var(--rf-warning) 25%, var(--rf-border)); background: var(--rf-warning-soft); color: var(--rf-warning); }
.rf-connectivity.is-conflict { border-color: color-mix(in srgb, var(--rf-danger) 25%, var(--rf-border)); background: var(--rf-danger-soft); color: var(--rf-danger); }
.rf-connectivity.is-syncing,
.rf-connectivity.is-update { border-color: color-mix(in srgb, var(--rf-success) 25%, var(--rf-border)); background: var(--rf-success-soft); color: var(--rf-success); }
.rf-connectivity > button,
.rf-sync-conflict-actions button { padding: 6px 9px; border: 1px solid currentColor; border-radius: var(--rf-radius-small); background: var(--rf-surface); color: inherit; cursor: pointer; font: inherit; }
.rf-sync-conflict-actions { display: flex; gap: var(--rf-space-2); }
.rf-pwa-install { width: 100%; margin: var(--rf-space-4) 0 10px; }
.rf-offline-pending-label { color: var(--rf-warning) !important; font-weight: 800; }
.is-roform-offline [data-request-program],
.is-roform-offline [data-gym-select] { opacity: .62; }
@media (max-width: 520px) {
    .rf-connectivity { flex-wrap: wrap; }
    .rf-sync-conflict-actions { width: 100%; justify-content: center; }
}
.rf-app-loading,
.rf-auth-gate {
    width: min(100% - 32px, 430px);
    min-height: 70svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.rf-app-loading p { margin-top: 14px; color: var(--rf-muted); }
.rf-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dce8e1;
    border-top-color: var(--rf-primary);
    border-radius: 50%;
    animation: rf-spin .8s linear infinite;
}
@keyframes rf-spin { to { transform: rotate(360deg); } }
.rf-auth-gate h1 { margin: 16px 0 8px; font-size: 24px; }
.rf-auth-gate p { margin: 0 0 22px; color: var(--rf-muted); line-height: 1.9; }
.rf-auth-gate > .rf-text-button { margin-top: 10px; text-decoration: none; }
.rf-app-login { width: 100%; margin: 4px 0 12px; padding: 20px; border: 1px solid var(--rf-border); border-radius: 20px; background: var(--rf-surface); box-shadow: var(--rf-shadow); text-align: right; }
.rf-app-login label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.rf-app-login input { width: 100%; min-height: 50px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--rf-border); border-radius: 13px; background: #fff; font-size: 16px; text-align: left; }
.rf-app-login .rf-primary-button { width: 100%; }
.rf-app-login-status { min-height: 24px; margin: 10px 0 0 !important; font-size: 13px; text-align: center; }
.rf-app-login-status.is-error { color: var(--rf-danger); }
.rf-app-login-status.is-success { color: var(--rf-primary); }
.rf-app-login-status.is-pending { color: #9a6700; }
.rf-app-login-pending { width: 100%; padding: 16px; border: 1px solid #f0d58a; border-radius: 16px; background: #fff9e8; }
.rf-app-login-pending p { margin: 0 !important; color: #775900; }
.rf-auth-gate .rf-app-login-hint { margin: 14px 0 4px; font-size: 12px; }
.rf-empty-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: var(--rf-primary-soft);
    color: var(--rf-primary);
    font-size: 38px;
}

.rf-shell { min-height: 100svh; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.rf-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 10px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(229, 234, 231, .82);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    direction: ltr;
}
.rf-header > * { direction: rtl; }
.rf-brand { display: flex; min-width: 0; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 9px; border: 1px solid var(--rf-border); border-radius: 16px; background-color: #fff; background-position: center; background-size: cover; box-shadow: 0 5px 16px rgba(24, 32, 28, .06); }
.rf-brand small { display: block; margin-bottom: 3px; color: var(--rf-muted); font-size: 11px; }
.rf-brand strong { display: block; overflow: hidden; max-width: 210px; color: var(--rf-ink); font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rf-logo-wrap {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--rf-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}
.rf-logo-wrap img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rf-gym-picker select {
    max-width: 145px;
    padding: 9px 10px;
    border: 1px solid var(--rf-border);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--rf-ink);
    font-size: 12px;
}

.rf-content { width: min(100%, 980px); margin: 0 auto; }
.rf-view { padding: 20px 16px 32px; }
.rf-view.is-active { animation: rf-view-in .18s ease-out; }
@keyframes rf-view-in { from { opacity: .25; transform: translateY(5px); } }

.rf-hero {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: 28px;
    background-color: var(--rf-primary);
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--rf-primary) 24%, transparent);
    color: #fff;
}
.rf-hero::after {
    position: absolute;
    inset: auto -35px -65px auto;
    width: 180px;
    height: 180px;
    border: 30px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: '';
}
.rf-hero-copy { position: relative; z-index: 1; }
.rf-hero p { margin: 0 0 7px; opacity: .85; font-size: 14px; }
.rf-hero h1 { margin: 0 0 20px; font-size: clamp(23px, 6vw, 32px); }
.rf-membership-badge {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 12px;
}
.rf-membership-badge.is-pending { background: rgba(122, 78, 0, .45); }
.rf-membership-badge.is-expired { background: rgba(120, 20, 20, .42); }

.rf-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 27px 2px 14px; }
.rf-section-heading h2 { margin: 0 0 5px; font-size: 18px; }
.rf-section-heading p { margin: 0; color: var(--rf-muted); font-size: 12px; }
.rf-text-button { padding: 7px; border: 0; background: none; color: var(--rf-primary); cursor: pointer; font-weight: 700; }

.rf-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rf-module-card {
    position: relative;
    display: flex;
    min-height: 142px;
    padding: 17px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    box-shadow: var(--rf-shadow);
    color: var(--rf-ink);
    cursor: pointer;
    text-align: right;
    flex-direction: column;
    align-items: flex-start;
}
.rf-module-card:active { transform: scale(.985); }
.rf-module-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 14px; border-radius: 14px; font-size: 24px; }
.rf-module-card strong { display: block; margin-bottom: 6px; font-size: 15px; }
.rf-module-card small { display: block; color: var(--rf-muted); font-size: 11px; line-height: 1.6; }
.rf-notification-badge { position: absolute; top: 12px; left: 13px; display: grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-size: 10px; font-weight: 800; }
.rf-module-program .rf-module-icon { background: #e9f6ef; color: #157347; }
.rf-module-nutrition .rf-module-icon { background: #fff3dc; color: #9a6000; }
.rf-module-measure .rf-module-icon { background: #eaf0ff; color: #3158ad; }
.rf-module-exercise .rf-module-icon { background: #f2eaff; color: #7140a5; }
.rf-chevron { position: absolute; top: 18px; left: 16px; color: #a5afa9; font-size: 25px; }
.rf-home-program { margin-top: 4px; }

.rf-page-title { display: flex; align-items: center; gap: 13px; margin: 3px 0 20px; }
.rf-page-title > button {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rf-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.rf-page-title h1 { margin: 0 0 5px; font-size: 23px; }
.rf-page-title p { margin: 0; color: var(--rf-muted); font-size: 12px; }
.rf-primary-button,
.rf-secondary-button,
.rf-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}
.rf-primary-button { border: 0; background: var(--rf-primary); color: #fff; }
.rf-secondary-button { border: 1px solid var(--rf-border); background: #fff; color: var(--rf-ink); }
.rf-danger-button { width: 100%; margin-top: 24px; border: 1px solid #f0c5c1; background: #fff7f6; color: var(--rf-danger); }
.rf-primary-button:disabled { opacity: .52; cursor: not-allowed; }
.rf-program-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rf-program-actions .rf-primary-button,
.rf-program-actions .rf-secondary-button { width: 100%; }
.rf-inline-status { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 13px; }
.rf-inline-status.is-error { background: #fff1f0; color: var(--rf-danger); }
.rf-program-request-pending { border: 1px solid #f1d99b; background: #fff9e8; color: #755600; font-weight: 700; line-height: 1.9; }

.rf-program-list { display: grid; gap: 16px; margin-top: 18px; }
.rf-program-group h2 { margin: 0 2px 10px; font-size: 15px; }
.rf-program-card {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 7px;
    border: 1px solid var(--rf-border);
    border-radius: 18px;
    background: #fff;
    color: var(--rf-ink);
    text-align: right;
}
.rf-program-card.is-new { border-color: #8ec9a7; box-shadow: 0 8px 26px rgba(21, 115, 71, .1); }
.rf-program-card-main { min-width: 0; flex: 1; padding: 10px; border: 0; background: transparent; color: var(--rf-ink); cursor: pointer; text-align: right; }
.rf-program-card-title { display: flex; align-items: center; gap: 8px; color: var(--rf-ink) !important; }
.rf-program-card strong { display: block; min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.rf-program-card-meta { display: block; margin-top: 8px; color: var(--rf-muted); font-size: 12px; }
.rf-program-new { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--rf-primary); color: #fff; font-size: 9px; }
.rf-program-delete { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid #f0c5c1; border-radius: 11px; background: #fff8f7; color: var(--rf-danger); cursor: pointer; font-size: 15px; line-height: 1; }
.rf-program-delete:disabled { opacity: .5; cursor: not-allowed; }
.rf-program-archive-dialog { text-align: center; }
.rf-program-archive-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 17px; background: #fff1f0; font-size: 24px; }
.rf-program-archive-dialog h2 { margin: 0 0 9px; font-size: 20px; }
.rf-program-archive-dialog > p { margin: 0 0 17px; color: var(--rf-muted); font-size: 11px; line-height: 1.9; }
.rf-program-archive-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rf-program-archive-actions .rf-danger-button { width: auto; margin-top: 0; }
.rf-empty-card { padding: 28px 18px; border: 1px dashed #cfd8d3; border-radius: 18px; background: #fff; text-align: center; }
.rf-empty-card h3 { margin: 0 0 8px; }
.rf-empty-card p { margin: 0; color: var(--rf-muted); line-height: 1.8; }

.rf-active-program-head { margin-bottom: 14px; padding: 16px; border: 1px solid var(--rf-border); border-radius: 18px; background: #fff; }
.rf-active-program-head > p { margin: 0 0 13px; color: #45504a; font-size: 12px; line-height: 1.9; }
.rf-cycle-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rf-cycle-summary strong { color: var(--rf-primary); font-size: 16px; }
.rf-cycle-summary small { color: var(--rf-muted); font-size: 11px; }
.rf-cycle-celebration { display: grid; justify-items: center; gap: 9px; margin-bottom: 15px; padding: 22px 17px; border: 1px solid #b9dfc9; border-radius: 20px; background: var(--rf-primary-soft); text-align: center; }
.rf-cycle-celebration > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rf-primary); color: #fff; font-size: 26px; }
.rf-cycle-celebration strong { color: var(--rf-primary); font-size: 16px; }
.rf-cycle-celebration p { margin: 0 0 5px; color: #425149; font-size: 11px; line-height: 1.8; }
.rf-workout-days { display: grid; gap: 12px; }
.rf-workout-day { overflow: hidden; border: 1px solid var(--rf-border); border-radius: 19px; background: #fff; box-shadow: var(--rf-shadow); }
.rf-workout-day.is-completed { border-color: #9fd3b5; background: #fbfffc; }
.rf-workout-day.is-next { border-color: var(--rf-primary); }
.rf-workout-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px; border: 0; background: transparent; color: var(--rf-ink); cursor: pointer; text-align: right; }
.rf-workout-day-head > span:first-child { min-width: 0; }
.rf-workout-day-head strong { display: block; overflow: hidden; margin-bottom: 5px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.rf-workout-day-head small { color: var(--rf-muted); font-size: 10px; }
.rf-workout-day-head .rf-workout-day-muscles { display: block; margin-top: 5px; color: #42604f; white-space: normal; line-height: 1.7; }
.rf-workout-day-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #f0f3f1; color: #66716b; font-size: 10px; }
.rf-workout-day.is-completed .rf-workout-day-badge { background: var(--rf-primary-soft); color: var(--rf-primary); }
.rf-workout-day.is-next .rf-workout-day-badge { background: var(--rf-primary); color: #fff; }
.rf-workout-day-body { padding: 0 12px 13px; border-top: 1px solid var(--rf-border); }
.rf-workout-exercises { display: grid; }
.rf-workout-exercise-wrap { border-bottom: 1px solid var(--rf-border); }
.rf-workout-exercise { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 3px; border: 0; border-bottom: 1px solid var(--rf-border); background: transparent; color: var(--rf-ink); text-align: right; }
.rf-workout-exercise.is-detail-clickable { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.rf-workout-exercise.is-detail-clickable:hover { background: color-mix(in srgb, var(--rf-primary) 4%, transparent); }
.rf-workout-exercise-wrap > .rf-workout-exercise:last-child { border-bottom: 0; }
.rf-workout-exercise-media { position: relative; display: grid; flex: 0 0 58px; place-items: center; width: 58px; height: 58px; overflow: hidden; border: 1px solid var(--rf-border); border-radius: 13px; background: color-mix(in srgb, var(--rf-primary) 5%, #fff); }
.rf-workout-exercise-media > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rf-workout-exercise-number { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 11px; font-weight: 700; }
.rf-workout-exercise-copy { min-width: 0; flex: 1; }
.rf-workout-exercise-copy strong { display: block; margin-bottom: 5px; font-size: 13px; }
.rf-workout-exercise-copy small { display: block; color: var(--rf-muted); font-size: 10px; }
.rf-workout-exercise-copy em { display: block; margin-top: 6px; color: #705c25; font-size: 10px; font-style: normal; line-height: 1.7; }
.rf-workout-exercise-copy em.rf-workout-exercise-record { color: var(--rf-primary); font-weight: 800; }
.rf-workout-exercise-actions { display: grid; flex: 0 0 auto; gap: 6px; }
.rf-workout-exercise-open, .rf-workout-record-open { min-width: 65px; padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: 9px; font-weight: 800; }
.rf-workout-exercise-open { border: 1px solid var(--rf-border); background: #fff; color: var(--rf-primary); }
.rf-workout-record-open { border: 0; background: var(--rf-primary); color: #fff; }
.rf-strength-dialog h2 { margin: 0 0 7px; font-size: 20px; }
.rf-strength-dialog > p { margin: 0 0 13px; color: var(--rf-muted); font-size: 11px; line-height: 1.9; }
.rf-strength-best { margin: 0 0 13px; padding: 10px 12px; border-radius: 12px; background: var(--rf-primary-soft); color: #176d46; font-size: 11px; font-weight: 800; }
.rf-strength-best.is-empty { color: var(--rf-muted); font-weight: 400; }
.rf-strength-form { display: grid; gap: 11px; }
.rf-strength-fields { display: grid; grid-template-columns: 1fr; gap: 9px; }
.rf-strength-fields label { display: grid; gap: 6px; color: #47564e; font-size: 10px; font-weight: 700; }
.rf-strength-fields input { min-width: 0; width: 100%; padding: 11px 10px; border: 1px solid var(--rf-border); border-radius: 11px; outline: 0; background: #fff; color: var(--rf-ink); font-size: 11px; }
.rf-strength-fields input:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rf-primary) 10%, transparent); }
.rf-strength-save { width: 100%; min-height: 43px; border: 0; border-radius: 12px; background: var(--rf-primary); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.rf-strength-save:disabled { opacity: .55; cursor: wait; }
.rf-strength-history { margin-top: 16px; border-top: 1px solid #dce8df; padding-top: 12px; }
.rf-strength-history h3 { margin: 0; color: #426456; font-size: 12px; }
.rf-strength-history-list { display: grid; gap: 7px; margin-top: 9px; }
.rf-strength-history-row { padding: 9px 10px; border-radius: 10px; background: #f6f8f7; }
.rf-strength-history-row, .rf-strength-history-list > small { color: var(--rf-muted); font-size: 10px; line-height: 1.7; }
.rf-complete-workout { width: 100%; min-height: 47px; margin-top: 12px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--rf-primary); color: #fff; cursor: pointer; font-weight: 700; }
.rf-complete-workout:disabled { background: #e7ebe9; color: #89928d; cursor: not-allowed; }
.rf-complete-workout.is-done { background: var(--rf-primary-soft); color: var(--rf-primary); }
.rf-workout-complete-dialog { padding: 4px 2px 2px; text-align: center; }
.rf-workout-complete-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 18px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 27px; font-weight: 800; }
.rf-workout-complete-dialog h2 { margin: 0 0 8px; font-size: 21px; }
.rf-workout-complete-dialog > p { max-width: 430px; margin: 0 auto 18px; color: var(--rf-muted); font-size: 11px; line-height: 1.9; }
.rf-workout-complete-form { display: grid; gap: 12px; text-align: right; }
.rf-workout-complete-form label { display: grid; gap: 7px; color: #3f4a44; font-size: 11px; font-weight: 700; }
.rf-workout-complete-form input { width: 100%; padding: 13px; border: 1px solid var(--rf-border); border-radius: 14px; outline: 0; background: #fff; color: var(--rf-ink); }
.rf-workout-complete-form input:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rf-primary) 11%, transparent); }
.rf-workout-complete-form .rf-primary-button { width: 100%; }

.rf-exercise-tools { position: sticky; z-index: 10; top: 78px; padding: 10px 0 12px; background: var(--rf-bg); }
.rf-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--rf-border); border-radius: 16px; background: #fff; }
.rf-search span { color: var(--rf-muted); font-size: 23px; }
.rf-search input { width: 100%; min-height: 49px; border: 0; outline: 0; background: transparent; color: var(--rf-ink); }
.rf-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.rf-filters select { min-width: 0; padding: 11px 9px; border: 1px solid var(--rf-border); border-radius: 13px; outline: 0; background: #fff; color: var(--rf-ink); font-size: 12px; }
.rf-results-meta { margin: 8px 2px 12px; color: var(--rf-muted); font-size: 12px; }
.rf-exercise-grid { display: grid; min-height: 360px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 11px; transition: opacity .15s ease; }
.rf-exercise-grid.is-loading { opacity: .48; pointer-events: none; }
.rf-exercise-card { overflow: hidden; padding: 0; border: 1px solid var(--rf-border); border-radius: 17px; background: #fff; color: var(--rf-ink); cursor: pointer; text-align: right; content-visibility: auto; contain-intrinsic-size: 230px; }
.rf-exercise-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--rf-border); background-color: color-mix(in srgb, var(--rf-primary) 5%, #fff); background-position: center; background-size: cover; }
.rf-exercise-media > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.rf-exercise-brand { position: absolute; z-index: 3; top: 8px; right: 8px; left: 8px; height: 28px; color: var(--rf-primary); pointer-events: none; }
.rf-exercise-brand img { position: absolute; top: 0; right: 0; width: 26px; height: 26px; padding: 2px; border: 1px solid rgba(255,255,255,.82); border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(24,32,28,.12); object-fit: contain; }
.rf-exercise-brand small { position: absolute; top: 0; left: 0; overflow: hidden; max-width: calc(100% - 40px); padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,.86); box-shadow: 0 3px 12px rgba(24,32,28,.09); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(5px); }
.rf-exercise-brand.is-compact { top: 4px; left: 4px; gap: 3px; padding: 3px 5px; border-radius: 7px; }
.rf-exercise-brand.is-compact img { flex-basis: 17px; width: 17px; height: 17px; border-radius: 5px; }
.rf-exercise-brand.is-compact small { max-width: 70px; font-size: 7px; }
.rf-exercise-placeholder { color: #a5afa9; font-size: 30px; }
.rf-exercise-copy { display: block; padding: 12px; }
.rf-exercise-copy strong { display: -webkit-box; min-height: 42px; overflow: hidden; font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rf-exercise-copy small { display: block; overflow: hidden; margin-top: 5px; color: var(--rf-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rf-list-status { padding: 18px 4px; color: var(--rf-muted); text-align: center; }
.rf-load-more { width: 100%; }

.rf-coming-card { margin-top: 54px; padding: 34px 22px; border: 1px solid var(--rf-border); border-radius: 24px; background: #fff; box-shadow: var(--rf-shadow); text-align: center; }
.rf-coming-card > span { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 22px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 33px; }
.rf-coming-card h2 { margin: 0 0 10px; }
.rf-coming-card p { margin: 0 0 19px; color: var(--rf-muted); line-height: 1.9; }
.rf-coming-card strong { color: var(--rf-primary); font-size: 12px; }

.rf-profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--rf-border); border-radius: 20px; background: #fff; }
.rf-avatar { display: grid; flex: 0 0 60px; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--rf-primary); color: #fff; font-size: 24px; font-weight: 800; }
.rf-profile-card h2 { margin: 0 0 7px; font-size: 18px; }
.rf-profile-card p { margin: 0; color: var(--rf-muted); font-size: 12px; text-align: right; }
.rf-subtitle { margin: 26px 2px 12px; font-size: 17px; }
.rf-membership-list { display: grid; gap: 10px; }
.rf-membership-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--rf-border); border-radius: 16px; background: #fff; }
.rf-membership-item strong { display: block; margin-bottom: 5px; font-size: 14px; }
.rf-membership-item small { color: var(--rf-muted); }
.rf-status-dot { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #fff3dc; color: #865300; font-size: 10px; }
.rf-status-dot.is-active { background: var(--rf-primary-soft); color: var(--rf-primary); }

.rf-bottom-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 7px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}
.rf-bottom-nav button { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: #8a948f; cursor: pointer; flex-direction: column; }
.rf-bottom-nav span { font-size: 21px; line-height: 1; }
.rf-bottom-nav small { font-size: 10px; }
.rf-bottom-nav button.is-active { color: var(--rf-primary); font-weight: 700; }
.rf-nav-notification { position: absolute; top: 2px; right: calc(50% - 20px); display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-size: 8px; }

.rf-toast {
    position: fixed;
    z-index: 130;
    right: 50%;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: min(calc(100% - 32px), 430px);
    padding: 13px 16px;
    transform: translateX(50%);
    border-radius: 14px;
    background: #173b28;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.rf-toast.is-error { background: #84251d; }
.rf-noscript { margin: 30px; padding: 16px; border-radius: 14px; background: #fff1f0; color: var(--rf-danger); text-align: center; }

.rf-dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 40px; background: rgba(13, 20, 16, .52); }
.rf-dialog { position: relative; display: flex; width: min(100%, 620px); max-height: 92svh; overflow: hidden; border-radius: 28px 28px 0 0; background: #fff; flex-direction: column; }
.rf-dialog > [data-dialog-content] { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 68px 18px calc(25px + env(safe-area-inset-bottom)); scrollbar-gutter: stable; }
.rf-dialog[data-dialog-mode="exercise-picker"] > [data-dialog-content] { display: flex; overflow: hidden; padding: 0; flex: 1; }
.rf-dialog[data-dialog-mode="exercise-picker"] { height: min(92svh, 760px); }
.rf-dialog[data-dialog-mode="nutrition-picker"] { height: min(92svh, 760px); }
.rf-dialog[data-dialog-mode="nutrition-picker"] > [data-dialog-content] { display: flex; overflow: hidden; padding: 0; flex: 1; }
.rf-dialog-close { position: absolute; z-index: 30; top: 14px; left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dfe5e1; border-radius: 13px; background: rgba(237,241,239,.96); box-shadow: 0 4px 14px rgba(24,32,28,.1); color: var(--rf-ink); cursor: pointer; font-size: 26px; backdrop-filter: blur(8px); }
.rf-body-profile-step h2, .rf-body-profile-step p { margin-top: 0; }
.rf-body-profile-step > p { color: var(--rf-muted); font-size: 12px; line-height: 1.9; }
.rf-body-profile-step-form { display: grid; gap: 12px; }
.rf-body-profile-step-form input { width: 100%; padding: 12px; border: 1px solid var(--rf-border); border-radius: 12px; outline: 0; }
.rf-body-profile-step-form > .rf-primary-button { width: 100%; }
.rf-body-profile-saved { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 11px; }
.rf-program-request-pending { display: grid; gap: 5px; }
.rf-program-request-pending strong { color: inherit; font-size: 12px; line-height: 1.8; }
.rf-program-request-pending small { color: #66716b; font-size: 10px; }
.rf-program-request-dialog { display: grid; gap: 14px; }
.rf-program-request-dialog h2, .rf-program-request-dialog p { margin: 0; }
.rf-program-request-dialog > p { color: var(--rf-muted); font-size: 12px; line-height: 1.8; }
.rf-program-health-declaration { display: grid; gap: 9px; padding: 13px; border: 1px solid #ead9a9; border-radius: 15px; background: #fffaf0; }
.rf-program-health-declaration > strong { color: #705713; font-size: 12px; }
.rf-program-health-declaration > p { color: #5e5848; font-size: 10px; line-height: 1.9; }
.rf-program-health-declaration > label { display: flex; align-items: flex-start; gap: 8px; color: #443f31; font-size: 10px; font-weight: 800; line-height: 1.8; }
.rf-program-health-declaration input { flex: 0 0 auto; margin-top: 3px; }
.rf-program-request-injuries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--rf-border); border-radius: 16px; }
.rf-program-request-injuries legend { padding: 0 7px; color: var(--rf-ink); font-size: 12px; font-weight: 800; }
.rf-request-check { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; background: #f5f8f6; font-size: 11px; font-weight: 700; }
.rf-request-field, .rf-request-photo { display: grid; gap: 7px; color: var(--rf-ink); font-size: 11px; font-weight: 800; }
.rf-request-field textarea, .rf-request-photo input { width: 100%; border: 1px solid var(--rf-border); border-radius: 12px; padding: 11px; background: #fff; color: var(--rf-ink); font: inherit; }
.rf-request-photo { padding: 13px; border-radius: 15px; background: #f5f8f6; }
.rf-request-photo small { color: var(--rf-muted); font-weight: 500; line-height: 1.8; }
.rf-program-request-dialog > .rf-primary-button { width: 100%; }
.rf-detail-media { position: relative; display: grid; place-items: center; min-height: 220px; margin-top: 4px; overflow: hidden; border: 1px solid var(--rf-border); border-radius: 20px; background-color: color-mix(in srgb, var(--rf-primary) 5%, #fff); background-position: center; background-size: cover; }
.rf-detail-media > img { position: relative; z-index: 1; width: 100%; max-height: 350px; object-fit: contain; mix-blend-mode: multiply; }
.rf-detail h2 { margin: 18px 0 8px; font-size: 22px; }
.rf-detail-en { margin: 0 0 14px; color: var(--rf-muted); font-size: 12px; }
.rf-detail-loading { margin: 18px 0 0; color: var(--rf-muted); font-size: 11px; }
.rf-tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 20px; }
.rf-tag { padding: 6px 9px; border-radius: 999px; background: var(--rf-primary-soft); color: var(--rf-primary); font-size: 10px; }
.rf-detail h3 { margin: 22px 0 10px; font-size: 16px; }
.rf-step-list { margin: 0; padding: 0 22px 0 0; }
.rf-step-list li { margin-bottom: 10px; padding-right: 4px; line-height: 1.9; }
.rf-program-detail-day { margin-top: 14px; padding: 15px; border: 1px solid var(--rf-border); border-radius: 16px; }
.rf-program-detail-day h3 { margin: 0 0 11px; }
.rf-program-item { padding: 10px 0; border-top: 1px solid var(--rf-border); }
.rf-program-item:first-of-type { border-top: 0; }
.rf-program-item strong { display: block; }
.rf-program-item small { color: var(--rf-muted); }

.rf-toast { position: fixed; z-index: 150; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; max-width: 460px; margin: auto; padding: 13px 16px; border-radius: 14px; background: #17231d; box-shadow: 0 10px 30px rgba(0,0,0,.2); color: #fff; text-align: center; }
.rf-toast.is-error { background: #8f251e; }
.rf-noscript { padding: 25px; text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

@media (min-width: 720px) {
    .rf-view { padding: 28px 24px 44px; }
    .rf-module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rf-exercise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rf-header { padding-right: max(24px, calc((100vw - 980px) / 2 + 24px)); padding-left: max(24px, calc((100vw - 980px) / 2 + 24px)); }
    .rf-dialog-backdrop { align-items: center; padding: 24px; }
    .rf-dialog { border-radius: 28px; }
    .rf-bottom-nav { right: 50%; bottom: 16px; left: auto; width: 470px; min-height: 62px; transform: translateX(50%); border: 1px solid var(--rf-border); border-radius: 22px; box-shadow: var(--rf-shadow); }
}

@media (max-width: 390px) {
    .rf-module-grid { grid-template-columns: 1fr; }
    .rf-module-card { min-height: 100px; flex-direction: row; align-items: center; gap: 13px; }
    .rf-module-icon { margin-bottom: 0; }
    .rf-exercise-grid { grid-template-columns: 1fr 1fr; }
    .rf-program-actions { grid-template-columns: 1fr; }
}

/* Dark-first presentation layer — 0.22.0. Domain and offline behavior stay unchanged. */
html,
body.roform-standalone-app { background: var(--rf-bg); }
body.roform-standalone-app { color: var(--rf-ink); }
body.roform-standalone-app ::selection { background: rgba(50, 199, 135, .34); color: var(--rf-ink); }
body.roform-standalone-app input,
body.roform-standalone-app select,
body.roform-standalone-app textarea { color-scheme: dark; caret-color: var(--rf-primary); }
body.roform-standalone-app input::placeholder,
body.roform-standalone-app textarea::placeholder { color: var(--rf-muted-low); opacity: 1; }
.roform-app { scrollbar-color: var(--rf-border-strong) var(--rf-bg); }
.roform-app button,
.roform-app a,
.roform-app input,
.roform-app select,
.roform-app textarea { transition: border-color var(--rf-transition-fast), background-color var(--rf-transition-fast), color var(--rf-transition-fast), box-shadow var(--rf-transition-fast), transform var(--rf-transition-fast), opacity var(--rf-transition-fast); }
.roform-app button:focus-visible,
.roform-app a:focus-visible,
.roform-app input:focus-visible,
.roform-app select:focus-visible,
.roform-app textarea:focus-visible,
.roform-app summary:focus-visible {
    outline: 3px solid rgba(50, 199, 135, .34);
    outline-offset: 2px;
}
.roform-app input[type="checkbox"],
.roform-app input[type="radio"] { accent-color: var(--rf-primary); }

.rf-connectivity {
    border-color: var(--rf-info-border);
    background: color-mix(in srgb, var(--rf-info) 14%, var(--rf-surface-raised));
    color: #a9c7ff;
}
.rf-connectivity.is-offline,
.rf-connectivity.is-pending { border-color: var(--rf-warning-border); background: color-mix(in srgb, var(--rf-warning) 13%, var(--rf-surface-raised)); color: #ffd782; }
.rf-connectivity.is-conflict { border-color: var(--rf-danger-border); background: color-mix(in srgb, var(--rf-danger) 13%, var(--rf-surface-raised)); color: #ff9ca3; }
.rf-connectivity.is-syncing,
.rf-connectivity.is-update { border-color: var(--rf-success-border); background: color-mix(in srgb, var(--rf-success) 13%, var(--rf-surface-raised)); color: #83e2b8; }
.rf-connectivity > button,
.rf-sync-conflict-actions button { border-color: currentColor; background: rgba(11, 13, 16, .42); }

.rf-spinner { border-color: var(--rf-border-strong); border-top-color: var(--rf-primary); }
.rf-app-loading,
.rf-auth-gate { min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom)); }
.rf-app-login,
.rf-app-login input,
.rf-app-login-pending,
.rf-brand,
.rf-gym-picker select,
.rf-page-title > button,
.rf-secondary-button,
.rf-program-card,
.rf-empty-card,
.rf-active-program-head,
.rf-workout-day,
.rf-strength-fields input,
.rf-workout-complete-form input,
.rf-search,
.rf-filters select,
.rf-exercise-card,
.rf-coming-card,
.rf-profile-card,
.rf-membership-item,
.rf-dialog,
.rf-body-profile-step-form input,
.rf-request-field textarea,
.rf-request-photo input { background: var(--rf-surface); color: var(--rf-ink); }
.rf-app-login,
.rf-brand,
.rf-program-card,
.rf-workout-day,
.rf-exercise-card,
.rf-coming-card,
.rf-profile-card { box-shadow: var(--rf-shadow); }
.rf-app-login-pending { border-color: var(--rf-warning-border); background: var(--rf-warning-soft); }
.rf-app-login-pending p,
.rf-app-login-status.is-pending { color: var(--rf-warning); }
.rf-app-login-status.is-success { color: var(--rf-success); }
.rf-empty-icon { border: 1px solid var(--rf-primary-border); background: var(--rf-primary-soft); }

.rf-shell { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.rf-header {
    min-height: calc(72px + env(safe-area-inset-top));
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom-color: rgba(42, 48, 56, .82);
    background: rgba(11, 13, 16, .86);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}
@supports (backdrop-filter: blur(1px)) {
    .rf-header { backdrop-filter: blur(18px) saturate(125%); }
}
.rf-brand { border-color: var(--rf-border); background-color: rgba(29, 33, 40, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
.rf-brand strong { color: var(--rf-ink); }
.rf-logo-wrap { background: var(--rf-brand); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px color-mix(in srgb, var(--rf-brand) 24%, transparent); }
.rf-logo-wrap img { background: var(--rf-media-surface); }
.rf-gym-picker select { min-height: 44px; }

.rf-view { padding-top: 22px; }
.rf-view.is-active { animation-duration: var(--rf-transition); }
.rf-hero {
    min-height: 188px;
    border: 1px solid rgba(255, 255, 255, .08);
    background-color: var(--rf-brand);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .34), 0 12px 34px color-mix(in srgb, var(--rf-brand) 16%, transparent);
}
.rf-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(110deg, rgba(5, 8, 10, .88) 0%, rgba(7, 10, 12, .62) 55%, rgba(7, 10, 12, .22) 100%);
    content: '';
}
.rf-hero::after { z-index: 0; border-color: rgba(255, 255, 255, .07); }
.rf-hero-copy { z-index: 1; }
.rf-membership-badge { border-color: rgba(255, 255, 255, .18); background: rgba(11, 13, 16, .42); backdrop-filter: blur(8px); }
.rf-membership-badge.is-pending { background: rgba(84, 60, 5, .7); }
.rf-membership-badge.is-expired { background: rgba(88, 23, 29, .72); }

.rf-text-button { color: var(--rf-primary); }
.rf-module-card {
    --rf-card-accent: var(--rf-primary);
    overflow: hidden;
    border-color: var(--rf-border);
    background: linear-gradient(150deg, color-mix(in srgb, var(--rf-card-accent) 7%, var(--rf-surface-raised)), var(--rf-surface));
    color: var(--rf-ink);
}
.rf-module-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rf-card-accent), transparent);
    content: '';
    opacity: .76;
}
.rf-module-program { --rf-card-accent: var(--rf-workout); }
.rf-module-nutrition { --rf-card-accent: var(--rf-nutrition); }
.rf-module-measure { --rf-card-accent: var(--rf-measure); }
.rf-module-exercise { --rf-card-accent: var(--rf-primary); }
.rf-module-icon {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--rf-card-accent) 30%, transparent);
    background: color-mix(in srgb, var(--rf-card-accent) 15%, transparent) !important;
    color: var(--rf-card-accent) !important;
    font-size: 0;
}
.rf-module-icon::before,
.rf-bottom-nav button > span::before {
    display: block;
    width: 23px;
    height: 23px;
    background: currentColor;
    content: '';
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}
.rf-module-program .rf-module-icon::before,
.rf-bottom-nav [data-nav="programs"] > span::before { -webkit-mask-image: url("icons/ui-program.svg"); mask-image: url("icons/ui-program.svg"); }
.rf-module-nutrition .rf-module-icon::before { -webkit-mask-image: url("icons/ui-nutrition.svg"); mask-image: url("icons/ui-nutrition.svg"); }
.rf-module-measure .rf-module-icon::before { -webkit-mask-image: url("icons/ui-measurements.svg"); mask-image: url("icons/ui-measurements.svg"); }
.rf-module-exercise .rf-module-icon::before,
.rf-bottom-nav [data-nav="exercises"] > span::before { -webkit-mask-image: url("icons/ui-exercise.svg"); mask-image: url("icons/ui-exercise.svg"); }
.rf-bottom-nav [data-nav="home"] > span::before { -webkit-mask-image: url("icons/ui-home.svg"); mask-image: url("icons/ui-home.svg"); }
.rf-bottom-nav [data-nav="profile"] > span::before { -webkit-mask-image: url("icons/ui-profile.svg"); mask-image: url("icons/ui-profile.svg"); }
.rf-module-card small { color: var(--rf-muted); }
.rf-chevron { color: var(--rf-muted-low); }
.rf-notification-badge,
.rf-nav-notification { border-color: var(--rf-surface); background: var(--rf-danger); color: #fff; }

.rf-page-title > button { color: var(--rf-ink); }
.rf-primary-button,
.rf-strength-save,
.rf-workout-record-open,
.rf-complete-workout {
    background: var(--rf-primary);
    box-shadow: 0 10px 24px rgba(50, 199, 135, .17);
    color: var(--rf-on-primary);
}
.rf-primary-button:disabled { box-shadow: none; }
.rf-secondary-button { border-color: var(--rf-border-strong); }
.rf-danger-button,
.rf-program-delete,
.rf-danger-outline { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); color: var(--rf-danger); }
.rf-inline-status { border: 1px solid var(--rf-primary-border); background: var(--rf-primary-soft); color: #81deb4; }
.rf-inline-status.is-error { border-color: var(--rf-danger-border); background: var(--rf-danger-soft); color: #ff9ca3; }
.rf-program-request-pending { border-color: var(--rf-warning-border); background: var(--rf-warning-soft); color: #f7cf78; }

.rf-program-card.is-new { border-color: var(--rf-primary-border); box-shadow: 0 10px 28px rgba(50, 199, 135, .1); }
.rf-program-new { background: var(--rf-primary); color: var(--rf-on-primary); }
.rf-program-archive-icon { background: var(--rf-danger-soft); }
.rf-empty-card { border-color: var(--rf-border-strong); }
.rf-active-program-head > p,
.rf-cycle-celebration p { color: var(--rf-ink-soft); }
.rf-cycle-celebration { border-color: var(--rf-success-border); background: var(--rf-success-soft); }
.rf-cycle-celebration > span { background: var(--rf-primary); color: var(--rf-on-primary); }
.rf-workout-day.is-completed { border-color: var(--rf-success-border); background: color-mix(in srgb, var(--rf-success) 4%, var(--rf-surface)); }
.rf-workout-day.is-next { border-color: var(--rf-primary-border); box-shadow: 0 0 0 1px rgba(50, 199, 135, .08), var(--rf-shadow); }
.rf-workout-day-head .rf-workout-day-muscles { color: #a9b8b1; }
.rf-workout-day-badge { background: var(--rf-surface-interactive); color: var(--rf-muted); }
.rf-workout-day.is-next .rf-workout-day-badge { background: var(--rf-primary); color: var(--rf-on-primary); }
.rf-workout-exercise.is-detail-clickable:hover { background: var(--rf-primary-soft); }
.rf-workout-exercise-copy em { color: #d8b66c; }
.rf-workout-exercise-copy em.rf-workout-exercise-record { color: var(--rf-primary); }
.rf-workout-exercise-open { background: var(--rf-surface-raised); }
.rf-strength-best { border: 1px solid var(--rf-primary-border); color: #81deb4; }
.rf-strength-fields label,
.rf-workout-complete-form label { color: var(--rf-ink-soft); }
.rf-strength-history { border-top-color: var(--rf-border); }
.rf-strength-history h3 { color: var(--rf-ink-soft); }
.rf-strength-history-row { background: var(--rf-surface-soft); }
.rf-complete-workout:disabled { background: var(--rf-surface-interactive); color: var(--rf-muted-low); }
.rf-complete-workout.is-done { border: 1px solid var(--rf-success-border); background: var(--rf-success-soft); color: var(--rf-success); }

.rf-exercise-tools { background: color-mix(in srgb, var(--rf-bg) 92%, transparent); backdrop-filter: blur(10px); }
.rf-search:focus-within,
.rf-filters select:focus,
.rf-gym-picker select:focus,
.rf-strength-fields input:focus,
.rf-workout-complete-form input:focus { border-color: var(--rf-primary); box-shadow: 0 0 0 3px rgba(50, 199, 135, .12); }
.rf-exercise-card { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.rf-exercise-media,
.rf-workout-exercise-media,
.rf-detail-media { background-color: var(--rf-media-surface); }
.rf-exercise-placeholder { color: #74817b; }
.rf-exercise-brand { color: #176c4a; }
.rf-coming-card > span { border: 1px solid var(--rf-primary-border); }
.rf-avatar { background: linear-gradient(145deg, var(--rf-primary), var(--rf-primary-strong)); color: var(--rf-on-primary); }
.rf-status-dot { background: var(--rf-warning-soft); color: var(--rf-warning); }

.rf-bottom-nav {
    min-height: 74px;
    border-top-color: rgba(58, 66, 76, .82);
    background: rgba(15, 18, 22, .9);
    box-shadow: 0 -16px 38px rgba(0, 0, 0, .26);
}
@supports (backdrop-filter: blur(1px)) {
    .rf-bottom-nav { backdrop-filter: blur(20px) saturate(130%); }
}
.rf-bottom-nav button { min-height: 52px; color: var(--rf-muted-low); }
.rf-bottom-nav button > span { display: grid; width: 25px; height: 25px; place-items: center; font-size: 0; }
.rf-bottom-nav button.is-active { color: var(--rf-primary); }
.rf-bottom-nav button.is-active::after {
    position: absolute;
    right: 50%;
    bottom: -1px;
    width: 24px;
    height: 3px;
    transform: translateX(50%);
    border-radius: var(--rf-radius-pill);
    background: var(--rf-primary);
    box-shadow: 0 0 16px rgba(50, 199, 135, .72);
    content: '';
}

.rf-toast { border: 1px solid var(--rf-success-border); background: #173c2c; box-shadow: var(--rf-shadow-raised); }
.rf-toast.is-error { border-color: var(--rf-danger-border); background: #4a2025; }
.rf-noscript { background: var(--rf-danger-soft); }
.rf-dialog-backdrop { background: var(--rf-backdrop); backdrop-filter: blur(8px); }
.rf-dialog { border: 1px solid var(--rf-border); background: var(--rf-surface-raised); box-shadow: var(--rf-shadow-raised); }
.rf-dialog-close { border-color: var(--rf-border-strong); background: rgba(32, 37, 45, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.rf-body-profile-saved { border: 1px solid var(--rf-primary-border); }
.rf-program-request-pending small { color: var(--rf-muted); }
.rf-program-health-declaration { border-color: var(--rf-warning-border); background: var(--rf-warning-soft); }
.rf-program-health-declaration > strong { color: var(--rf-warning); }
.rf-program-health-declaration > p,
.rf-program-health-declaration > label { color: var(--rf-ink-soft); }
.rf-program-request-injuries { border-color: var(--rf-border); }
.rf-request-check,
.rf-request-photo { background: var(--rf-surface-soft); }
.rf-tag { border: 1px solid var(--rf-primary-border); }
.rf-program-detail-day { background: var(--rf-surface); }

@media (hover: hover) and (pointer: fine) {
    .rf-module-card:hover,
    .rf-program-card:hover,
    .rf-exercise-card:hover,
    .rf-membership-item:hover { border-color: color-mix(in srgb, var(--rf-primary) 38%, var(--rf-border)); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .34); }
    .rf-primary-button:hover,
    .rf-strength-save:hover,
    .rf-workout-record-open:hover,
    .rf-complete-workout:hover { background: var(--rf-primary-hover); }
    .rf-secondary-button:hover,
    .rf-page-title > button:hover { border-color: var(--rf-border-strong); background: var(--rf-surface-interactive); }
}

@media (min-width: 720px) {
    .rf-bottom-nav { bottom: max(16px, env(safe-area-inset-bottom)); border-color: var(--rf-border); background: rgba(21, 24, 29, .92); box-shadow: var(--rf-shadow-raised); }
}

@media (pointer: coarse) {
    .roform-app button,
    .roform-app select,
    .roform-app input:not([type="checkbox"]):not([type="radio"]):not([type="color"]) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .roform-app *,
    .roform-app *::before,
    .roform-app *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
