/* 365 R3 material language, two modes. Layouts and athletic typography retained. */
body[data-appearance]{--r-glass:rgba(255,255,255,.14);--r-field:rgba(255,255,255,.23);--r-edge:rgba(255,255,255,.66);--r-shadow:0 7px 24px #30292009;--ap-surface:var(--r-glass);--ap-field:var(--r-field)}
body[data-appearance=dark]{--r-glass:rgba(255,255,255,.055);--r-field:rgba(255,255,255,.065);--r-edge:rgba(255,255,255,.20);--r-shadow:0 7px 24px #0000000a;--ap-surface:var(--r-glass);--ap-field:var(--r-field)}
body[data-appearance] [data-ap-surface=dark]{--r-glass:rgba(35,31,28,.23);--r-field:rgba(255,255,255,.08);--ap-surface:var(--r-glass);--ap-field:var(--r-field)}
body[data-appearance] :is([data-ap-surface],.card,.glass,.ap-settings,.ap-choice,.state-panel,.practice-card,.r3-plan,.cf-entry,.cf-panel,.r2-recommended,.care-confirmation,.ad-week,.ad-care,.acc-account-grid>section,.refinement-tool,.ad-quick-actions>button,.proposal-weekly,.ap-choices,.lr-category,.support-settings,.r1-prescribed){background:var(--r-glass)!important;border:1px solid var(--r-edge)!important;box-shadow:var(--r-shadow);backdrop-filter:blur(13px) saturate(.9);-webkit-backdrop-filter:blur(13px) saturate(.9)}
body[data-appearance] :is(input:not([type=checkbox],[type=radio],[type=range]),textarea,select){background:var(--r-field)!important;border-color:var(--r-edge)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body[data-appearance] .ap-choices{grid-template-columns:repeat(2,minmax(0,1fr));background:transparent!important;border:0!important;box-shadow:none;backdrop-filter:none;padding:0}
body[data-appearance] .ap-choice{border-radius:18px;padding:10px;min-height:142px}.ap-choice.is-selected{outline:2px solid var(--ap-accent);outline-offset:2px}
body[data-appearance] #toast{color:#fff!important;background:#252320!important}body[data-appearance=dark] #toast{color:#24211e!important;background:#f4f0e9!important}
.r1-set-table .r3-set-row{padding-block:8px!important;gap:8px!important}.r1-set-table .r4-all-values{gap:10px!important}.r1-set-table .r4-all-values input{min-height:44px!important;height:44px!important;padding:9px 10px!important;font-size:17px!important;text-align:center}.r1-field-target{font-size:11px!important;line-height:1.35!important;margin-top:5px!important}.r1-set-number{font-size:12px!important;padding-top:13px!important}.r1-set-number .r3-row-status{display:block;font-size:10px!important;line-height:1.2;margin-top:6px}.r1-prescribed{padding:14px 16px!important;margin-block:14px!important}.r1-prescribed p{margin-top:6px!important}
.proposal-rpe{display:block!important;padding:14px 0 10px!important;border-bottom:0!important}.proposal-rpe>span{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.proposal-rpe>span strong{font-size:14px}.proposal-rpe>span small{font-size:11px}.proposal-rpe .planner-rpe-options{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px!important;width:100%}.proposal-rpe .planner-rpe-options button{width:auto!important;min-width:0!important;min-height:38px!important;height:38px!important;padding:0!important;border:1px solid var(--r-edge)!important;border-radius:9px;background:var(--r-field)!important;color:inherit!important;font-size:13px!important;font-weight:650;backdrop-filter:blur(8px)}
.proposal-rpe .planner-rpe-options button[aria-pressed=true]{background:var(--ap-accent)!important;color:#fff!important;border-color:var(--ap-accent)!important}
.proposal-pain{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 15px}.proposal-pain>strong{font:600 13px/1.4 DM,Arial,sans-serif;max-width:210px}.proposal-pain>div{display:flex;gap:5px}.proposal-pain button{min-height:38px;min-width:47px;padding:8px 10px;border:1px solid var(--r-edge);border-radius:10px;background:var(--r-field);color:inherit;font-size:13px;font-weight:600}.proposal-pain button[aria-pressed=true]{background:var(--ap-accent);border-color:var(--ap-accent);color:white}.planner-client-report{margin-top:12px!important}
.r3-exercise-save{margin-top:2px!important;min-height:48px!important}.refinement-exercise-tools{gap:9px!important;margin-block:14px!important}.refinement-tool{min-height:62px!important;padding:12px!important}.r2-recommended{padding:12px 14px!important;margin-top:10px!important}
#luka-timer{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;display:none!important;max-width:none!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;inset:0!important;margin:0!important;align-items:center;justify-content:center}#luka-timer[open]{display:flex!important}#luka-timer::backdrop{background:#14120e55;backdrop-filter:blur(3px)}#luka-timer .proposal-stopwatch{width:min(344px,calc(100vw - 36px));max-height:calc(100dvh - 48px);overflow:auto;margin:0!important;padding:20px!important;border-radius:25px!important;background:rgba(246,243,237,.76)!important;border:1px solid #ffffffb3!important;backdrop-filter:blur(24px);color:#201d19!important;box-shadow:0 18px 60px #17120e26}body[data-appearance=dark] #luka-timer .proposal-stopwatch{background:rgba(36,35,33,.84)!important;color:#f4f0e9!important;border-color:#ffffff35!important}.proposal-stopwatch header{align-items:flex-start!important}.proposal-stopwatch h2{font:600 17px/1.25 DM,Arial,sans-serif!important;letter-spacing:0!important;margin-top:4px}.proposal-stopwatch header small{font-size:10px;letter-spacing:.12em}.proposal-stopwatch output{display:block!important;font:400 64px/1.1 DM,Arial,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:-3px;margin:22px 0 20px!important;text-align:center}.proposal-stopwatch .lr-timer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.proposal-stopwatch .cf-link{display:block;width:100%;margin:10px 0 0!important;font-size:13px!important}.proposal-stopwatch .cf-circle{width:34px;height:34px;min-height:34px;padding:0;color:inherit!important}.proposal-time-set{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px}.proposal-time-set select{width:80px}
@media(max-width:365px){.proposal-rpe .planner-rpe-options{gap:3px!important}.proposal-rpe .planner-rpe-options button{font-size:12px!important}.proposal-pain>strong{max-width:180px}}
@media(prefers-reduced-transparency:reduce){body[data-appearance]{--r-glass:rgba(245,242,236,.92);--r-field:rgba(255,255,255,.85)}body[data-appearance=dark]{--r-glass:rgba(32,32,30,.94);--r-field:rgba(45,45,42,.94)}}

/* R1.1: one invariant set-row grid. State belongs to the label, not a filled block. */
body.adaptive-client[data-appearance] .client-feedback .r1-set-table :is(.r3-set-head,.r3-set-row){gap:10px!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-set-row{padding:8px 0!important;margin:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;border-radius:0!important;border-inline:0!important;align-items:start!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-logged{padding:0!important;margin:0!important;min-width:0!important;background:transparent!important;box-shadow:none!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r4-all-values{gap:10px!important;margin:0!important;padding:0!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r1-set-number{padding-top:12px!important;min-width:0!important;line-height:18px!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-row-status{display:flex!important;align-items:center!important;gap:2px!important;margin:3px 0 0!important;padding:0!important;min-height:12px!important;height:12px!important;line-height:12px!important;white-space:nowrap!important;width:40px!important;max-width:40px!important;font-size:9px!important;background:transparent!important;border:0!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-row-status[data-initial-unlogged=true]{display:none!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-row-status .cf-icon{display:inline-flex!important;width:10px!important;height:10px!important;min-width:10px!important;margin:0!important;flex:none!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-row-status .cf-icon svg{width:10px!important;height:10px!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-row-status small{display:inline!important;margin:0!important;padding:0!important;font-size:9px!important;line-height:12px!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r1-field-target{font-size:11px!important;line-height:1.35!important;margin-top:5px!important}
body.adaptive-client[data-appearance] .client-feedback .r1-set-table .r3-set-row.r4-invalid{border-bottom-color:var(--red,#a5392b)!important}
