/* Device preferences use real spacing and typography, never page zoom or geometric stretching. */
:root{--ui-page-width:1520px;--ui-card-space:28px;--ui-content-space:clamp(24px,3.1vw,48px);--ui-grid-gap:24px;--ui-control-height:48px}
:root[data-ui-density=compact]{--ui-card-space:20px;--ui-content-space:clamp(20px,2.2vw,32px);--ui-grid-gap:16px;--ui-control-height:44px}
:root[data-ui-width=focused]{--ui-page-width:1120px}
.content{max-width:var(--ui-page-width);padding-inline:var(--ui-content-space)}
.content.narrow{max-width:1040px}
:root[data-ui-width=focused] .content.narrow{max-width:850px}
.card{padding:var(--ui-card-space)}
.action-grid,.project-grid,.community-grid{gap:var(--ui-grid-gap)}
.home-columns,.publication-layout,.review-layout{gap:var(--ui-grid-gap)}
.btn{min-height:var(--ui-control-height);padding:13px 20px}
.btn.small{min-height:44px;padding:10px 14px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select{min-height:var(--ui-control-height)}
textarea{line-height:1.6}
.settings-row{gap:24px;padding-block:24px}
.settings-row select{max-width:100%;min-width:0}
:root[data-ui-density=compact] .settings-row{padding-block:17px}
:root[data-ui-density=compact] .btn{padding:10px 16px}
:root[data-ui-density=comfortable] .project-card{padding:18px;gap:16px}
:root[data-ui-density=comfortable] .community-card{padding:26px;gap:20px}
:root[data-ui-density=comfortable] .community-page{gap:26px}
:root[data-ui-text=large] body{font-size:18px}
:root[data-ui-text=large] :is(.page-heading p,.project-info p,.project-about p,.community-bio,.community-intro p,.settings-row p,.field-help,.check-row,.quick-task p,.review-task p){font-size:16px;line-height:1.65}
:root[data-ui-text=large] :is(input,textarea,select,.btn,.settings-row label){font-size:17px}
:root[data-ui-text=large] .community-pill{font-size:14px}
:root[data-ui-text=large] .page-heading h1{font-size:clamp(32px,3.3vw,48px)}
.device-preferences{margin-block:26px;scroll-margin-top:24px}
.device-preferences-heading{display:grid;gap:10px;padding-bottom:8px}
.device-preferences-heading h2{font-size:24px;line-height:1.25}
.device-preferences-heading p{font-size:14px;line-height:1.6;color:var(--muted);max-width:68ch}
.device-preference-row label{display:block;font-size:16px;font-weight:600;line-height:1.4;margin-bottom:6px}
.device-preference-row p{color:var(--muted)}
.device-preference-row select{width:190px;flex:0 0 190px;min-height:48px}
.device-preferences-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:20px;flex-wrap:wrap}
.device-preferences-footer>span{font-size:13px;color:var(--muted)}
.device-preferences :is(select,button):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
:root[data-ui-glass=subtle] :is(.topbar,.bottom-nav){background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 0 1px 0 var(--border)}
:root[data-ui-glass=subtle] .btn.primary{background:var(--silver);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 0 1px #fff5}
:root[data-ui-motion=reduced]{scroll-behavior:auto}
:root[data-ui-motion=reduced] *, :root[data-ui-motion=reduced] *:before, :root[data-ui-motion=reduced] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
:root[data-ui-motion=reduced] :is(.content.view-enter,.content.view-enter>*,.legal-page.view-enter>*,.onboarding.view-enter>*){opacity:1!important;transform:none!important}
:root[data-ui-motion=reduced] [data-progress-ready=false] .progress-track span.on:after,:root[data-ui-motion=reduced] [data-progress-ready=false] .progress-track span.partial:after{transform:scaleX(1)}
:root[data-ui-motion=reduced] [data-progress-ready=false] .score-ring{--display-score:var(--score)}
@media(min-width:1450px){:root[data-ui-width=wide] .home-columns{grid-template-columns:minmax(0,1fr) 340px}:root[data-ui-width=wide] .publication-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1100px){.home-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 :root{--ui-card-space:22px;--ui-content-space:18px;--ui-grid-gap:16px}
 :root[data-ui-density=compact]{--ui-card-space:16px;--ui-content-space:16px;--ui-grid-gap:12px}
 .content,.content.narrow{max-width:100%;padding-inline:var(--ui-content-space);padding-top:18px}
 .topbar{padding-inline:var(--ui-content-space)}
 .page-heading{gap:16px;margin-bottom:28px}
 .page-heading h1{font-size:32px;line-height:1.15}
 .page-heading p{font-size:15px;line-height:1.6}
 :root[data-ui-density=compact] .page-heading{margin-bottom:20px}
 :root[data-ui-density=comfortable] .project-card{padding:14px;gap:12px}
 :root[data-ui-density=comfortable] .community-card{padding:22px}
 .action-card{padding:21px 16px;min-height:216px}
 .action-card h2{font-size:21px}
 .action-card p{font-size:13px;line-height:1.5}
 .settings-row{flex-wrap:wrap;gap:14px;align-items:flex-start}
 .settings-row>div{min-width:0}
 .device-preference-row>div{flex:1 1 220px}
 .device-preference-row select{flex:1 1 190px;width:100%;max-width:100%}
 .device-preferences-heading h2{font-size:23px}
 .device-preferences-footer{gap:12px;padding-top:18px}
 .device-preferences-footer .btn{min-height:46px;padding-inline:0}
 :root[data-ui-text=large] .action-card h2{font-size:22px}
 :root[data-ui-text=large] .action-card{min-height:240px}
 :root[data-ui-text=large] .action-card p{font-size:14px}
 :root[data-ui-text=large] .action-label{font-size:12px}
}
@media(max-width:360px){.action-card{padding-inline:12px}.action-card h2{font-size:19px}.device-preferences{padding:18px}}
/* Supporter page describes implemented benefits before presenting checkout. */
.pro-community{max-width:100%;margin-inline:auto}.pro-community .pro-hero{padding-block:20px 34px}.pro-community .pro-render{width:110px;height:110px}.pro-community .pro-hero p{max-width:45ch;margin:16px auto;line-height:1.65}.pro-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:26px}.pro-value-grid .card{display:flex;flex-direction:column;gap:14px;min-width:0}.pro-value-grid h2{font-size:19px;line-height:1.35}.pro-value-grid p{font-size:14px;line-height:1.7;color:var(--muted)}.pro-value-icon{color:var(--accent);display:block}.pro-value-icon .icon{width:27px;height:27px}.pro-checkout{max-width:720px;margin:auto}.pro-checkout h2{font-size:25px;line-height:1.3;margin-bottom:12px}.pro-checkout p{line-height:1.7}.pro-price{display:flex;align-items:baseline;gap:14px;margin-block:22px 12px}.pro-price strong{font-size:44px;letter-spacing:-1.5px}.pro-price>span,.pro-free-note{color:var(--muted);font-size:13px}.pro-free-note{margin-top:18px}.pro-payment-status{margin-top:20px;color:var(--accent)}.pro-active{margin-top:14px}.presentation-review{margin-block:8px}
@media(max-width:800px){.pro-value-grid{grid-template-columns:minmax(0,1fr)}.pro-value-grid .card{gap:10px}.pro-community .pro-hero{padding-top:10px}.pro-community .pro-hero p{font-size:16px}.pro-checkout h2{font-size:23px}}
