/* Preferencias personales: el tamaño no reduce las zonas de interacción. */
:root{font-family:var(--user-font,system-ui,sans-serif)}
.brand-label{font-family:system-ui,sans-serif}
html[data-text-size=large]{--reading-size:18px;--secondary-size:16px;--heading-size:23px}
html[data-text-size=largest]{--reading-size:20px;--secondary-size:18px;--heading-size:25px}
html:is([data-text-size=large],[data-text-size=largest]) body :is(main,dialog){font-size:var(--reading-size)}
html:is([data-text-size=large],[data-text-size=largest]) body :is(main,dialog) :is(p,label,button,.button,input,textarea,select,summary,td,.bubble,.notice){font-size:var(--reading-size)!important;line-height:1.5}
html:is([data-text-size=large],[data-text-size=largest]) body :is(main,dialog) :is(small,.muted,.mini-note,.badge,.eyebrow,.form-status,.palette-choice b,.hero-caption,.hero-invitation){font-size:var(--secondary-size)!important;line-height:1.5}
html:is([data-text-size=large],[data-text-size=largest]) body :is(main,dialog) :is(h2,h3){font-size:var(--heading-size)!important;line-height:1.3}
html:is([data-text-size=large],[data-text-size=largest]) .rail a{font-size:16px}
html[data-text-size=largest] .account-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-density=compact] body :is(.account-panel,.account-place,.panel,.card,.account-shortcut){padding:16px}
html[data-density=compact] body :is(.account-shortcuts,.account-places,.grid,.stack,.form-grid,form){gap:12px}
html[data-density=compact] .account-shortcut{min-height:135px}
html[data-density=compact] .row{padding-block:10px}
html[data-motion=reduce] *,html[data-motion=reduce] *::before,html[data-motion=reduce] *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
html[data-motion=reduce] body :is(.metal-matte,.primary,.icon-btn,.service-tile):is(:hover,:active){transform:none!important}
/* B · panel contextual. Los controles heredan los colores de la pantalla. */
#appearance{position:fixed;inset:12px 12px 12px auto;width:410px;height:calc(100dvh - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:0;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:-12px 0 48px #10182024;overflow:hidden;font-family:system-ui,-apple-system,sans-serif}
#appearance[open]{display:flex;flex-direction:column}
#appearance::backdrop{background:transparent}
body.appearance-open{overflow:hidden}
#appearance .dialog-head{position:static;flex:none;background:var(--surface);padding:20px 22px 12px;gap:16px;border:0}
#appearance .dialog-head h2{font-size:25px;line-height:1.2;letter-spacing:-.5px}
#appearance .dialog-head .icon-btn{flex:none}
.appearance-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--muted);display:block;margin-bottom:7px}
.appearance-intro{flex:none;padding:0 22px 16px}
#appearance .appearance-intro p{font-size:14px;color:var(--muted);line-height:1.45;margin:0}
#appearance .appearance-expand{display:none}
.appearance-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--soft);border:1px solid var(--line);border-radius:13px;margin:0 22px 18px;padding:4px;flex:none}
#appearance .appearance-tabs button{min-height:42px;min-width:0;border:0;border-radius:9px;padding:8px 4px;color:var(--muted);background:transparent;font-size:13px;line-height:1.2;overflow-wrap:anywhere;transition:background .16s ease,color .16s ease}
#appearance .appearance-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px #0000000d;font-weight:750}
#appearance .appearance-content{display:block;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 18px 24px 22px}
#appearance [role=tabpanel]{outline-offset:-2px;min-width:0}
#appearance [role=tabpanel]>h3,#appearance legend{font-size:16px;font-weight:750;margin:0 0 12px;padding:0;line-height:1.4}
#appearance fieldset{border:0;min-width:0;margin:0 0 18px;padding:0}
#appearance .appearance-help{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 0 18px}
.appearance-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
#appearance .appearance-modes button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px}
#appearance .appearance-modes button>span{font-size:22px;line-height:1}
#appearance .appearance-modes button[aria-pressed=true]{background:var(--selected);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);font-weight:700}
#appearance .palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#appearance .palette-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;padding:10px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);min-width:0}
#appearance .palette-choice[aria-pressed=true]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:var(--selected)}
#appearance .palette-choice b{font-size:max(14px,var(--secondary-size,14px));line-height:1.3;overflow-wrap:anywhere;padding-inline:2px}
#appearance .palette-choice small{display:block;font-size:12px;color:var(--muted);line-height:1.45;padding-inline:2px}
.palette-thumbnail{display:block;height:116px;border:1px solid #0002;border-radius:9px;overflow:hidden;background:var(--thumb-bg)}
.thumb-top{display:flex;align-items:center;gap:7px;padding:8px;background:var(--thumb-surface);border-bottom:1px solid #0001}
.thumb-top i{width:8px;height:8px;background:var(--thumb-brand);border-radius:50%}.thumb-top i:last-child{margin-left:auto;background:var(--thumb-accent)}.thumb-top b{height:4px;width:28px;background:var(--thumb-brand);border-radius:2px}
.thumb-content{display:grid;gap:6px;padding:11px}.thumb-heading{height:6px;width:70%;background:var(--thumb-brand);border-radius:2px}.thumb-line{height:3px;width:90%;background:var(--thumb-brand);opacity:.5;border-radius:2px}.thumb-action{height:12px;width:45%;background:var(--thumb-brand);border-radius:4px}
.thumb-cards{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px}.thumb-cards i{height:22px;background:var(--thumb-surface);border:1px solid #0001;border-radius:4px}
.appearance-fonts,.appearance-densities{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.appearance-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.appearance-choice{position:relative;display:block;min-width:0;cursor:pointer}
.appearance-choice input,.appearance-switch input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.appearance-choice-face{position:relative;display:flex;flex-direction:column;gap:12px;align-items:flex-start;height:100%;border:1px solid var(--line);border-radius:14px;background:linear-gradient(var(--mat-top),var(--mat-bottom));box-shadow:inset 0 1px #ffffff88,0 3px 9px #10182008;padding:16px 12px;transition:border-color .16s ease,box-shadow .16s ease}
.font-choice .appearance-choice-face{padding:12px;gap:8px}
.appearance-choice input:checked+.appearance-choice-face{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:var(--selected)}
.appearance-choice input:focus-visible+.appearance-choice-face,.appearance-switch input:focus-visible+.switch-track{outline:3px solid var(--brand);outline-offset:3px}
.choice-tick{position:absolute;top:8px;right:8px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:var(--on-brand);font:700 12px/1 system-ui;opacity:0}
.appearance-choice input:checked+.appearance-choice-face .choice-tick,.palette-choice[aria-pressed=true] .choice-tick{opacity:1}
.choice-label{font-size:max(13px,var(--secondary-size,13px));line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.font-sample{display:grid;gap:5px;line-height:1.2}.font-sample>span{font-size:34px;font-weight:500}
#appearance .font-sample small{font-size:14px!important;color:var(--ink);font-weight:400;letter-spacing:0}
.font-system{font-family:var(--font-system)}.font-humanist{font-family:var(--font-humanist)}.font-classic{font-family:var(--font-classic)}.font-mono{font-family:var(--font-mono)}
#appearance .size-choice .appearance-choice-face{align-items:center;justify-content:end;text-align:center;padding:17px 6px 12px;gap:10px}
.size-sample{line-height:1;display:flex;align-items:end;justify-content:center;height:36px;font-family:var(--user-font)}.size-normal{font-size:21px}.size-large{font-size:28px}.size-largest{font-size:36px}
.density-sample{display:grid;width:100%;height:75px;align-content:center}.density-comfortable{gap:14px}.density-compact{gap:5px}.density-sample>span{display:flex;gap:8px;align-items:center}.density-sample i{width:12px;height:12px;border-radius:4px;background:var(--brand);opacity:.65}.density-sample b{width:70%;height:4px;background:var(--muted);opacity:.55;border-radius:3px}
.appearance-motion{padding-top:20px;border-top:1px solid var(--line)}
.appearance-switch{display:flex;gap:14px;min-height:48px;align-items:center;justify-content:space-between;position:relative;cursor:pointer;font-size:15px;font-weight:650}
.switch-track{display:block;flex:none;width:46px;height:28px;border-radius:99px;background:var(--muted);padding:4px;transition:background .16s ease}.switch-track::after{content:"";display:block;width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px #0003;transition:transform .16s ease}
.appearance-switch input:checked+.switch-track{background:var(--brand)}.appearance-switch input:checked+.switch-track::after{background:var(--on-brand);transform:translateX(18px)}
#appearance .appearance-footer{flex:none;background:var(--surface);border-top:1px solid var(--line);padding:12px 20px 18px}
#appearance #appearance-status{font-size:12px;line-height:1.4;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}
.appearance-footer-actions{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;align-items:center}
#appearance .appearance-footer-actions button{font-size:13px;padding:11px 9px;min-height:44px}
#appearance .appearance-restore{background:none;border:0;color:var(--muted);border-radius:8px;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){.appearance-choice:hover .appearance-choice-face,#appearance .palette-choice:hover{border-color:var(--brand)}}
/* Reserve page space only when the remaining desktop canvas is wide enough. */
@media(min-width:1440px){body.appearance-open{padding-right:434px}}
@media(max-width:899px){
 #appearance{inset:auto 8px 8px;width:calc(100vw - 16px);max-width:none;height:62dvh;max-height:calc(100dvh - 16px);border-radius:24px;transition:height .2s ease}
 #appearance[data-expanded=true]{height:calc(100dvh - 16px)}
 #appearance .dialog-head{padding:16px 20px 8px}
 #appearance .dialog-head h2{font-size:23px}
 #appearance .appearance-eyebrow{display:none}
 .appearance-intro{padding:0 20px 10px;display:flex;align-items:center;gap:10px;justify-content:space-between}
 #appearance .appearance-intro p{font-size:12px;max-width:190px}
 #appearance .appearance-expand{display:flex;gap:5px;align-items:center;justify-content:center;flex:none;border:1px solid var(--line);border-radius:9px;min-height:44px;width:123px;padding:6px;background:var(--soft);color:var(--ink);font-size:12px;line-height:1.25}
 .appearance-tabs{margin:0 20px 14px}.appearance-tabs button{min-height:40px}
 #appearance .appearance-content{padding:2px 16px 20px 20px}
 #appearance .appearance-footer{padding:10px 16px max(12px,env(safe-area-inset-bottom))}
 .font-sample>span{font-size:31px}.appearance-choice-face{padding:12px 10px;gap:10px}
 html[data-text-size=largest] #appearance .appearance-footer-actions{grid-template-columns:1fr 1fr}
 html[data-text-size=largest] #appearance .appearance-restore{grid-column:1/-1;justify-self:start;min-height:36px;padding:4px}
 html:is([data-text-size=large],[data-text-size=largest]) #appearance .appearance-intro{flex-wrap:wrap}
 html:is([data-text-size=large],[data-text-size=largest]) #appearance .appearance-intro p{display:none}
 html:is([data-text-size=large],[data-text-size=largest]) #appearance .appearance-expand{width:auto;min-height:40px;padding:5px 8px}
 html:is([data-text-size=large],[data-text-size=largest]) #appearance #appearance-status{font-size:14px!important}
}
@media(max-width:360px){
 #appearance .appearance-intro{padding-inline:16px}#appearance .appearance-intro p{font-size:11px}
 .appearance-tabs{margin-inline:16px}#appearance .appearance-content{padding-inline:16px}
 .appearance-fonts,.appearance-densities,#appearance .palette-grid{gap:8px}.font-sample>span{font-size:29px}#appearance .font-sample small{font-size:12px!important}
 html[data-text-size=largest] #appearance .appearance-fonts,html[data-text-size=largest] #appearance .palette-grid{grid-template-columns:1fr}
 html[data-text-size=largest] #appearance .appearance-tabs{grid-template-columns:1fr 1fr}
 html[data-text-size=largest] #appearance .appearance-tabs button:last-child{grid-column:1/-1}
 #appearance .appearance-footer-actions{gap:5px}#appearance .appearance-footer-actions button{padding-inline:6px}
}
@media(max-height:560px){#appearance{height:calc(100dvh - 16px)}#appearance .appearance-intro{display:none}#appearance .appearance-footer{padding-block:8px}}
@media(max-width:650px){html[data-text-size=largest] body :is(.home-shortcuts,.service-grid,.grid.products){grid-template-columns:1fr}html[data-text-size=largest] body .community-card{grid-template-columns:1fr}html[data-text-size=largest] body .community-media{height:150px}}
