/* Candidate materials extend the existing appearance picker. */
html[data-lf-glass=obsidian] #lf-soft-bg{opacity:.16!important}

/* User background and reading preferences are independent of the selected material. */
#lfg-appearance .lfg-reading{border-bottom:1px solid var(--lfg-line);padding:0 0 16px;margin-bottom:16px}
#lfg-appearance .lfg-reading .lfg-motion{padding-top:0}
#lfg-appearance .lfg-text-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#lfg-appearance .lfg-text-options{display:flex;gap:6px}
#lfg-appearance .lfg-text-options button{min-width:64px}
html[data-lf-scenery=off] body #app,html[data-lf-scenery=off] .app-shell{background:var(--lfg-bg,#1b1b1e)!important}
html[data-lf-scenery=off] #lf-soft-bg{display:none!important}
html[data-lf-scenery=off] #app .scenery{background:var(--lfg-bg,#1b1b1e)!important}
html[data-lf-scenery=off] #app .lf-vista-picture{background-image:none!important;background-color:var(--lfg-solid,#1f1f22)!important}
html[data-lf-text=large] body{font-size:17px;line-height:1.6}
html[data-lf-text=large] :is(button,input,select,textarea,label){font-size:16px!important;line-height:1.5}
html[data-lf-text=large] :is(p,.small,.lf-sub){font-size:15px!important;line-height:1.6}
html[data-lf-text=large] small{font-size:13px!important;line-height:1.5}
html[data-lf-text=large] #lfg-appearance{font-size:16px}
html[data-lf-text=large] #lfg-appearance :is(summary,.lfg-presets b){font-size:16px}
html[data-lf-text=large] #lfg-appearance :is(small,[role=status],.lfg-scenes span){font-size:13px}
html[data-lf-text=large] #app .lf-vista-toolbar{display:flex;gap:8px}
html[data-lf-text=large] #app .lf-vista-toolbar .lf-vista-pill:first-child{min-width:0;flex:1}
html[data-lf-text=large] #app .lf-vista-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-lf-text=large] #app .lf-vista-pill svg{flex-shrink:0}
html[data-lf-text=large] #app .lf-vista-palette{flex:0 0 44px}
html[data-lf-text=large] #app .lf-vista-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-lf-text=large] #app .lf-vista-grid .lf-cap{font-size:14px!important;line-height:1.5;white-space:normal}
html[data-lf-text=large] #app .nutrition-context{grid-template-columns:minmax(0,1fr) auto;gap:6px}
html[data-lf-text=large] #app .nutrition-context button{min-width:0;white-space:normal}
html[data-lf-text=large] #app .intake-goal-actions{flex-wrap:wrap}
@media(max-width:350px){
 html[data-lf-text=large] #app .lf-vista-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html[data-lf-text=large] #app .coach-work-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-lf-text=large] #app .set-table{overflow-x:auto}
}

html[data-lf-text=large] #app .lf-vista-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-lf-text=large] #app .lf-vista-grid button>span:last-child{font-size:14px!important;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
@media(max-width:350px){html[data-lf-text=large] #app .lf-vista-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

#lfg-appearance .lfg-motion input{appearance:none!important;-webkit-appearance:none!important;position:relative;flex:0 0 44px;width:44px;height:28px;min-height:28px!important;margin:0;border:1px solid var(--lfg-line);border-radius:999px!important;background:#45444a!important;cursor:pointer}
#lfg-appearance .lfg-motion input:before{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff}
#lfg-appearance .lfg-motion input:checked{background:var(--lfg-accent,#d9b87c)!important}
#lfg-appearance .lfg-motion input:checked:before{left:20px;background:#242019}
#lfg-appearance .lfg-motion input:focus-visible{outline:2px solid var(--lfg-accent,#d9b87c);outline-offset:3px}

#lfg-appearance{position:fixed;inset:0;margin:auto!important;max-width:calc(100% - 24px);box-sizing:border-box}

@media(max-width:350px){html[data-lf-text=large] #app .training-work-actions .secondary{font-size:15px!important;padding:12px 10px!important;gap:6px}html[data-lf-text=large] #app .training-work-actions .secondary svg{width:14px;flex-shrink:0}html[data-lf-text=large] #app #head .context button{font-size:14px!important}}
