.voting-ui .site-header{background:var(--header-color);color:var(--header-text-color);padding-block:var(--header-padding);min-height:0}
.voting-ui .site-header .brand,.voting-ui .organization-name{color:var(--header-text-color);overflow-wrap:anywhere}
.voting-ui .brand-identity{gap:var(--logo-gap);max-width:100%}.voting-ui .brand-identity>div{min-width:0}
.voting-ui .brand-logo{height:auto;max-height:var(--logo-size);max-width:min(160px,35vw);object-fit:contain}
.voting-ui .logo-align-center{justify-content:center;align-items:center}.voting-ui .logo-align-center .brand-identity{justify-content:center}
.voting-ui .header-image{object-fit:contain}.voting-ui .header-image.fit-cover{object-fit:cover}.voting-ui .header-image.fit-auto{height:auto;max-height:none}
.voting-ui .event-banner{width:calc(100% - 32px);max-width:var(--banner-width);margin-top:var(--banner-space-top);margin-bottom:var(--banner-space-bottom);border-radius:var(--banner-radius)}
.voting-ui .event-banner picture img{width:100%;height:auto;max-height:var(--banner-height);object-fit:contain;object-position:var(--banner-x) var(--banner-y)}
.voting-ui .event-banner picture.fit-cover img{height:var(--banner-height);object-fit:cover}.voting-ui .event-banner picture.fit-auto img{height:auto;max-height:none}
.voting-ui .top-banner-image{width:100%;height:auto;max-height:var(--top-height);object-fit:contain;object-position:var(--top-x) var(--top-y)}
.voting-ui .top-banner-image.fit-cover{height:var(--top-height);object-fit:cover}.voting-ui .top-banner-image.fit-auto{max-height:none;height:auto}
.voting-ui .container.wide{max-width:var(--content-width);margin-block:20px}.voting-ui .panel{border-radius:var(--panel-radius);padding:var(--panel-padding)}
.voting-ui.shadow-none .panel,.voting-ui.shadow-none .event-banner,.voting-ui.shadow-none .candidate-card{box-shadow:none}
.voting-ui h1,.voting-ui h2,.voting-ui h3{color:var(--heading-color);overflow-wrap:anywhere}.voting-ui a:not(.brand):not(.button){color:var(--heading-color)}
.voting-ui .auth-panel{width:100%;max-width:500px;margin:24px auto}.voting-ui .auth-panel h1{font-size:clamp(1.5rem,4vw,2rem);margin-top:0}.voting-ui .auth-panel button{width:100%;min-height:48px}
.voting-ui input,.voting-ui select,.voting-ui textarea{max-width:100%;min-width:0}.voting-ui input[type=password]{min-height:48px}
.voting-ui .auth-panel .voter-password-label{margin:20px 0 12px;line-height:1.5}
.voting-ui .auth-panel [data-voter-password]{display:block;margin:0;line-height:1.5}
.voting-ui .banner-background-page{background:var(--background-color)}.voting-ui .banner-background-transparent{background:transparent;box-shadow:none}
.voting-ui .brand-logo,.voting-ui .header-image,.voting-ui .event-banner img,.voting-ui .event-banner picture{background:transparent}
.transparency-samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px}.transparency-samples[hidden]{display:none}.transparency-samples figure{margin:0;padding:12px;min-width:0;border:1px solid #8794a0;border-radius:8px}.transparency-samples img{display:block;width:100%;height:120px;object-fit:contain;background:transparent}.transparency-samples figcaption{text-align:center}.sample-white{background:#fff;color:#111}.sample-dark{background:#18232e;color:#fff}.sample-brand{background:var(--primary-color);color:var(--on-primary-color)}
.voting-ui button:not(.secondary):not(.danger):hover,.voting-ui .button:not(.secondary):hover{background:var(--button-hover-color)}
.voting-ui button:disabled{background:#e2e6ea;color:#52606d;cursor:not-allowed;border:1px solid #9da8b2}
.voting-ui button.danger{color:#ffffff}.voting-ui .alert.error{background:#fef3f2;color:#7a271a}.voting-ui .alert.success{background:#ecfdf3;color:#05603a}
.voting-ui .candidate-card.is-selected,.voting-ui .candidate-card:has(input:checked),.voting-ui .candidate-card:focus-within{border-color:var(--heading-color)}
.voting-ui .banner-content{overflow-wrap:anywhere}.voting-ui :focus-visible{outline:3px solid var(--heading-color);outline-offset:3px}
@media(max-width:600px){.voting-ui .event-banner{width:calc(100% - 20px)}.voting-ui .site-header{padding-inline:12px}.voting-ui .logo-mobile-compact .brand-logo{max-height:40px}.voting-ui .logo-mobile-hidden .brand-logo{display:none}.voting-ui .panel{padding:min(var(--panel-padding),20px)}.voting-ui .auth-panel{margin:16px auto}.voting-ui .event-banner picture.fit-cover img{height:min(var(--banner-height),200px)}}
.branding-palette-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.branding-palette{border:1px solid var(--border-color);padding:14px;border-radius:12px}.palette-swatches{display:flex;flex-wrap:wrap;gap:6px}.palette-swatches span{width:30px;height:30px;border:1px solid #999;border-radius:4px}
.branding-preview-frame{display:block;height:700px;border:1px solid #c5ced6;max-width:100%;margin:auto;background:white}.branding-preview-frame.device-desktop{width:1440px}.branding-preview-frame.device-tablet{width:768px}.branding-preview-frame.device-mobile{width:375px}
.branding-contrast-list>p{padding:8px;border-left:4px solid #18794e}.branding-contrast-list>p.is-warning{border-color:#b42318}.branding-preview-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.branding-preview-tools label{flex:1;min-width:140px}
