/* Client-only appearance R1. Actual clean artwork + exact logo, no full-screen UI image. */
html[data-client-appearance]{background:#201a16;scrollbar-color:#8c8176 transparent}
body.adaptive-client[data-appearance]{position:relative;isolation:isolate;background:transparent!important;min-height:100svh;--ap-ink:#1d1b18;--ap-muted:#665f57;--ap-surface:rgba(250,247,241,.73);--ap-strong:#f3efe8;--ap-edge:rgba(255,255,255,.76);--ap-line:rgba(50,43,37,.18);--ap-field:rgba(255,255,255,.67);--ap-accent:#bd3a23;--ap-on-accent:#fff9f2;--ap-track:rgba(42,37,31,.22);--ap-image:url('assets/appearance/neutral-background.webp');--ap-end:#271b18}
body.adaptive-client[data-appearance=light]{--ap-image:url('assets/appearance/light-background.webp');--ap-end:#5a5652;--ap-strong:#f4f3ef;--ap-field:#ffffffa6}
body.adaptive-client[data-appearance=dark]{--ap-image:url('assets/appearance/dark-background.webp');--ap-end:#151515;--ap-ink:#f2f0e9;--ap-muted:#c1beb5;--ap-surface:rgba(37,38,35,.8);--ap-strong:#252623;--ap-edge:rgba(240,236,224,.21);--ap-line:rgba(240,236,224,.2);--ap-field:rgba(255,255,255,.075);--ap-track:rgba(240,236,224,.22);--ap-accent:#c83b24}
body.adaptive-client[data-appearance]{--ink:var(--ap-ink)!important;--muted:var(--ap-muted)!important;--surface:var(--ap-surface)!important;--surface-strong:var(--ap-strong)!important;--edge:var(--ap-edge)!important;--line:var(--ap-line)!important;--paper:var(--ap-strong)!important;--bg:var(--ap-end)!important;--blue:var(--ap-accent)!important;--blue-soft:var(--ap-field)!important;--image-accent:var(--ap-accent)!important;--image-on-accent:var(--ap-on-accent)!important;--image-progress:var(--ap-accent)!important;--image-track:var(--ap-track)!important;--image-text:var(--ap-accent)!important;--image-border:var(--ap-edge)!important;--image-soft:var(--ap-field)!important;color:var(--ink)}
#client-appearance-backdrop{position:absolute;inset:0;z-index:-5;pointer-events:none;overflow:hidden;background-color:var(--ap-end);background-image:var(--ap-image);background-size:100% auto;background-position:center top;background-repeat:no-repeat;min-height:100svh}
#client-appearance-backdrop:before{content:'';position:absolute;inset-inline:0;top:calc(410.2222vw - 80px);height:80px;background:linear-gradient(transparent,var(--ap-end))}
#client-appearance-backdrop:after{content:'';position:absolute;inset-inline:0;top:calc(410.2222vw - 20px);bottom:0;background-image:url('assets/appearance/grain.svg');opacity:.1;mix-blend-mode:soft-light}
body[data-appearance] .ad-atmosphere{display:none!important}
body[data-appearance] .support-view{--ink:var(--ap-ink)!important;--muted:var(--ap-muted)!important;--surface:var(--ap-surface)!important;--surface-strong:var(--ap-strong)!important;--support-paper:var(--ap-strong);--support-ink:var(--ink);--support-action:var(--ap-accent);--line:var(--ap-line)!important;--blue:var(--ap-accent)!important;background:none!important;color:var(--ink)}
body[data-appearance] [data-ap-surface]{background:var(--ap-surface)!important;border-color:var(--ap-edge)!important;--ink:var(--ap-ink)!important;--muted:var(--ap-muted)!important;--line:var(--ap-line)!important;--surface:var(--ap-surface)!important;--surface-strong:var(--ap-strong)!important;color:var(--ap-ink)!important;backdrop-filter:blur(18px) saturate(.85);-webkit-backdrop-filter:blur(18px) saturate(.85)}
body[data-appearance] [data-ap-surface=dark]{--ap-ink:#f3f0e9;--ap-muted:#d0c7bd;--ap-surface:rgba(53,46,40,.76);--ap-strong:#342d27;--ap-field:rgba(255,255,255,.08);--ap-line:rgba(245,239,228,.18);--ap-edge:rgba(250,246,235,.25)}
body[data-appearance] [data-ap-surface=dark]{--image-text:#f39e86!important}
body[data-appearance=dark]{--image-text:#f39e86!important}
body[data-appearance=dark] [data-ap-surface]{--ap-surface:rgba(37,38,35,.82);--ap-strong:#252623;--ap-ink:#f3f0e9;--ap-muted:#c9c6bd;--ap-line:rgba(245,239,228,.18);--ap-edge:rgba(250,246,235,.2)}
body[data-appearance] [data-ap-ink=dark]{color:var(--ap-auto-ink,#f4f0e9)!important;--ink:var(--ap-auto-ink,#f4f0e9)!important;--muted:var(--ap-auto-muted,#d0c7bd)!important}
body[data-appearance] [data-ap-ink=light]{color:var(--ap-auto-ink,#201d19)!important;--ink:var(--ap-auto-ink,#201d19)!important;--muted:var(--ap-auto-muted,#645d55)!important}
body[data-appearance] :is(input:not([type=radio]):not([type=checkbox]),textarea,select){background:var(--ap-field)!important;color:var(--ink)!important;border-color:var(--line)!important;caret-color:var(--ink);box-shadow:none}
body[data-appearance] :is(input,textarea)::placeholder{color:var(--muted);opacity:.9}
body[data-appearance] :is(.button.primary,.btn.primary,.cf-primary,.ad-resume,.lr-primary){background:var(--ap-accent)!important;color:var(--ap-on-accent)!important;border-color:transparent!important}
body[data-appearance] :is(.mobile-nav,.app-header){background:var(--ap-surface)!important;color:var(--ink);border-color:var(--edge)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
body[data-appearance] .mobile-nav{--ap-ink:#f6f1e8;--muted:#d1c8bd;--ap-surface:rgba(38,32,27,.9);--ink:#f6f1e8;color:#f6f1e8}
body[data-appearance=light] .mobile-nav{--ap-surface:rgba(243,242,236,.94);--ink:#201e1b;--muted:#585650;color:#201e1b}
body[data-appearance=dark] .mobile-nav{--ap-surface:rgba(20,21,19,.94)}
body[data-appearance] .mobile-nav button{color:var(--muted)!important}
body[data-appearance] .mobile-nav button.active{color:var(--ink)!important}
body[data-appearance] .mobile-nav button.active svg{background:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
body[data-appearance] .app-header{background:transparent!important;backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-appearance=dark] .app-header :is(button,a){color:var(--ap-ink)!important}
body[data-appearance] :is(.ad-week,.ad-care,.acc-account-grid>section){border-radius:20px;padding:16px;border:1px solid var(--ap-edge)}
body[data-appearance] .acc-account-grid .list-row{background:transparent!important;backdrop-filter:none;-webkit-backdrop-filter:none}
body[data-appearance] :is(.library-row,.sup-settings){border-radius:18px}
body[data-appearance] .row-icon{background:var(--ap-field)!important;color:var(--ink)!important}
body[data-appearance] [data-ap-surface=dark] :is(.missed,.missed-day,.calendar-cell.missed,.refinement-calendar-missed){color:#ffb6a9!important}
body[data-appearance] [data-ap-surface=dark] :is(.text-link,.section-title a,.ad-utility button),body[data-appearance=dark] :is(.text-link,.acc-account-head button){color:#f39e86!important}
body.adaptive-client[data-appearance] .planned-session.refinement-missed{background:var(--ap-surface)!important;color:var(--ink)!important;border-color:#bd8376!important}
body.adaptive-client[data-appearance] [data-ap-surface=dark] .missed-day :is(strong,.week-state-label){color:#ffb6a9!important}
body.adaptive-client[data-appearance] .ad-utility button{color:var(--ink)!important}
body.adaptive-client[data-appearance] .ad-utility button svg{color:var(--ap-accent)}
body[data-appearance] .lr-category{border-radius:18px}
body[data-appearance] .lr-category button{color:var(--muted)!important}
body[data-appearance] .lr-category button[aria-checked=true]{background:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
body[data-appearance] .lr-category button[aria-selected=true]{background:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
body[data-appearance=dark] .sup-shop-tabs .selected{color:#f39e86!important}
body[data-appearance] .care-message{background:var(--ap-surface)!important;border:1px solid var(--edge)!important;color:var(--ink)!important}
body[data-appearance] .care-message p{color:var(--ink)!important}body[data-appearance] .care-message small{color:var(--muted)!important}
body[data-appearance] .cf-native-composer{background:var(--ap-strong)!important;color:var(--ink)!important;border-top:1px solid var(--line)!important}
body[data-appearance] .cf-native-composer textarea{background:var(--ap-field)!important;color:var(--ink)!important}
body[data-appearance] .app-header svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-appearance=dark] .r3-meal-row>span:last-child{color:#f39e86!important}
body[data-appearance=dark] .cf-exercise-number{color:#f39e86!important}
body[data-appearance=dark] :is(.ap-error,.auth-error,.cf-error){color:#ffb8a9!important}
body[data-appearance] .lr-chart text{fill:var(--muted)!important}
body[data-appearance] :is(.lr-graph-note,.lr-sparse){color:var(--muted)!important}
body.adaptive-client[data-appearance] .client-feedback{--ink:var(--ap-ink)!important;--muted:var(--ap-muted)!important;--surface:var(--ap-surface)!important;--surface-strong:var(--ap-strong)!important;--line:var(--ap-line)!important;--edge:var(--ap-edge)!important;--image-text:var(--ap-accent)!important}
body.adaptive-client[data-appearance=dark] .client-feedback{--image-text:#f39e86!important}
body.adaptive-client[data-appearance] #luka-timer{background:transparent!important;border:0!important;box-shadow:none!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer{background:var(--ap-strong)!important;color:var(--ink)!important;border:1px solid var(--edge)!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer :is(h2,h3,output,strong){color:var(--ink)!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer :is(p,small,.lr-timer-target){color:var(--muted)!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer :is(.lr-timer-buttons button:not(.cf-primary),.cf-circle){background:var(--ap-field)!important;color:var(--ink)!important;border-color:var(--line)!important}
body.adaptive-client[data-appearance=dark] #luka-timer .lr-timer .lr-return{color:#f39e86!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer :is(.lr-timer-context,.lr-timer-caption){color:var(--muted)!important}
body.adaptive-client[data-appearance] #luka-timer .lr-timer>button{background:transparent!important;color:var(--image-text)!important}
body.adaptive-client[data-appearance=dark] #luka-timer .lr-timer>button{color:#f39e86!important}
body[data-appearance] .r2-search{background:var(--ap-field)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] .cf-tabs{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--edge)!important}
body[data-appearance] .cf-tabs button{color:var(--muted)!important}
body[data-appearance] .cf-tabs [aria-pressed=true]{background:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
body[data-appearance] .cf-choice{background:var(--surface)!important;border-color:var(--edge)!important}
body[data-appearance] .cf-choice button{color:var(--muted)!important}
body[data-appearance] .cf-choice :is(button.selected,[aria-pressed=true]){background:var(--ap-accent)!important;color:var(--ap-on-accent)!important}
body[data-appearance] :is(.button.secondary,.btn.secondary,.button.ghost,.btn.ghost){background:var(--ap-field)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] :is(#exercise-options,.r2-food-results:not(:empty)){background:var(--ap-strong)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] :is(#exercise-suggestions,#food-results:not(:empty)){background:var(--ap-strong)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] .tf-search-heading{background:var(--ap-strong)!important;color:var(--muted)!important;border-color:var(--line)!important}
body[data-appearance] #exercise-selection{color:var(--muted)!important}
body[data-appearance] #exercise-selection strong{color:var(--ink)!important}
body[data-appearance] :is(#exercise-options small,.tf-no-match p){color:var(--muted)!important}
body[data-appearance] .lr-latest small{color:var(--muted)!important}
body[data-appearance] :is(#exercise-options [role=option],.r2-food-result){color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] #exercise-options [aria-selected=true]{background:var(--ap-field)!important;box-shadow:inset 3px 0 var(--ap-accent)}
body[data-appearance] .tf-search-field{background:var(--ap-field)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-appearance] .tf-search-field button{color:var(--ink)!important;background:transparent!important}
body[data-appearance] :is(.r2-food-result:hover,.r2-food-result:focus-visible,#exercise-options [role=option]:hover){background:var(--ap-field)!important}
body.adaptive-client[data-appearance] button[data-ap-ink]{color:var(--ap-auto-ink)!important}
body[data-appearance] .r3-today [data-ap-ink] :is(strong,span,button){color:var(--ink)!important}
body[data-appearance] .r3-today [data-ap-ink] :is(small,.r3-date){color:var(--muted)!important}
body[data-appearance] .r3-today [data-ap-ink=dark]{--image-text:var(--ink)!important}
body.adaptive-client[data-appearance] .ad-big-date[data-ap-ink]{color:var(--ap-accent)!important;opacity:.3!important}
body.adaptive-client[data-appearance=dark] .ad-big-date[data-ap-ink]{opacity:.55!important}
body.adaptive-client[data-appearance=light] .ad-card-glass{background:rgba(245,244,238,.82)!important;border-color:rgba(255,255,255,.86)!important;color:#1c1b18!important}
body.adaptive-client[data-appearance=light] .ad-card-glass :is(h2,p,.ad-card-meta){color:#1c1b18!important}
body.adaptive-client[data-appearance=light] .ad-card-glass .ad-progress{background:#25241e30!important}
body.adaptive-client[data-appearance=dark] .ad-card-glass{background:rgba(18,19,17,.77)!important}
body[data-appearance] .cf-link,body[data-appearance] .cf-stages .current{color:var(--image-text)!important}
body[data-appearance=dark] :is(.r2-save-status,.cf-set-status.saved){color:#b7ddc5!important}
body[data-appearance=dark] .app-header .brand img,body[data-appearance=dark] .app-header .logo img{filter:brightness(0) invert(.94)!important}
body[data-appearance] dialog{background:var(--ap-strong)!important;color:var(--ink)!important;border:1px solid var(--edge)!important;box-shadow:0 24px 90px #0005}
body[data-appearance] dialog::backdrop{background:rgba(17,17,15,.48);backdrop-filter:blur(6px)}
body[data-appearance] dialog :is(.lr-timer,.cf-entry,.panel,.card,.lr-feedback,.lr-popup){background:var(--ap-surface)!important;color:var(--ink)!important}
body[data-appearance] :is(.ad-big-date,.ad-progress-fill){color:var(--ap-accent)}
body[data-appearance] .ad-greeting{justify-content:flex-start}
body[data-appearance] :focus-visible{outline:3px solid var(--ap-accent);outline-offset:4px}
.ap-settings{padding:18px;border-radius:22px;border:1px solid var(--edge);margin:18px 0 24px;background:var(--surface);color:var(--ink)}
.ap-section-title{margin-bottom:15px}.ap-section-title h2{font:700 17px/1.3 UI,Arial,sans-serif!important;letter-spacing:-.02em!important;margin:0}
.ap-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.ap-choice{display:block;position:relative;cursor:pointer;min-width:0;color:var(--ink)}
.ap-choice input{position:absolute;opacity:0;width:1px;height:1px}
.ap-swatch{display:block;height:96px;border:2px solid transparent;outline:1px solid var(--line);outline-offset:0;border-radius:15px;background-image:var(--ap-thumb);background-size:100% auto;background-position:center 30%;position:relative;overflow:hidden;box-shadow:0 3px 9px #0000000c;transition:outline-color .16s,border-color .16s}
.ap-swatch-line{position:absolute;left:13%;right:30%;top:21%;height:4px;border-radius:3px;background:rgba(130,122,110,.43)}
.ap-swatch-panel{position:absolute;left:12%;right:12%;height:40%;bottom:13%;border:1px solid #ffffff77;background:#ffffff36;border-radius:9px;backdrop-filter:blur(4px)}
.ap-check{position:absolute;right:6px;top:6px;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;background:var(--ap-accent);color:#fff;font:700 13px UI,Arial;opacity:0;transform:scale(.8);transition:opacity .16s,transform .16s}
.ap-choice.is-selected .ap-swatch{outline-color:var(--ap-accent);border-color:var(--ap-accent)}
.ap-choice.is-selected .ap-check{opacity:1;transform:scale(1)}
.ap-choice-name{display:block;text-align:center;font:650 14px/1.4 UI,Arial,sans-serif;margin-top:10px}
.ap-choice input:focus-visible+.ap-swatch{outline:3px solid var(--ap-accent);outline-offset:4px}
.ap-save-status{font-size:12px;line-height:1.4;margin-top:10px;min-height:0;color:var(--muted)}.ap-save-status:empty{display:none}.ap-error{color:#b22f25!important}.ap-retry{font:650 13px UI,Arial;min-height:44px;padding:8px 0;background:none;border:0;color:var(--ink);text-decoration:underline}
@media(min-width:700px){.ap-settings{max-width:640px;padding:22px}.ap-swatch{height:130px}.ap-choice-name{font-size:15px}}
@media(prefers-reduced-motion:reduce){.ap-swatch,.ap-check{transition:none}}
