.community-poll{border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:16px;color:var(--ink);text-align:left}
.community-poll header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.community-poll h2{font-size:18px;margin:0;line-height:1.3}
.community-poll h3{font-size:16px;line-height:1.45;margin:14px 0 8px;letter-spacing:0}
.poll-trial{font-size:11px;color:var(--muted);font-weight:400}
.poll-tabs{display:flex;gap:16px;border-bottom:1px solid var(--line);margin-top:8px}
.poll-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);padding:8px 0;min-height:36px;font:inherit;font-size:13px;cursor:pointer}
.poll-tabs button[aria-pressed=true]{border-bottom-color:var(--purple);color:var(--purple);font-weight:600}
.poll-meta{color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0 12px}
.poll-actions{display:flex;align-items:center;gap:16px;font-size:13px}
.poll-primary,.community-poll a.poll-primary{display:inline-flex;align-items:center;justify-content:center;background:var(--purple);color:var(--surface);border:1px solid var(--purple);border-radius:4px;padding:8px 16px;min-height:40px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}
.poll-primary:disabled{opacity:.45;cursor:default}
html[data-theme] body .community-poll a.poll-primary{color:var(--surface)}
.community-poll footer{border-top:1px solid var(--line);margin-top:14px;padding-top:10px;font-size:11px;color:var(--muted)}
.community-poll a:not(.poll-primary){color:var(--purple)}
.poll-widget-mobile{display:none}
.poll-preview-banner{padding:6px 12px;text-align:center;font-size:11px;background:#163b3b;color:#fff}
.poll-dialog{width:min(680px,calc(100vw - 32px));max-height:88dvh;padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);overflow:auto;margin:auto;box-sizing:border-box}
.poll-dialog::backdrop{background:#07191bb3}
.poll-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-20px;background:var(--surface);z-index:1;padding:4px 0 10px;border-bottom:1px solid var(--line)}
.poll-dialog>header h2{font-size:18px;margin:0}
.poll-dialog>header button{border:1px solid var(--line);border-radius:4px;background:none;color:var(--ink);width:36px;height:36px;cursor:pointer}
.poll-intro{margin:16px 0 12px}.poll-intro h3{font-size:20px;line-height:1.4;margin:7px 0}
.poll-choice-note{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 12px}
.poll-options{display:grid;gap:6px}.poll-options .poll-option{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:4px;background:var(--surface);cursor:pointer;min-width:0;margin:0;line-height:1.4}
[data-other-selected]:not(:empty){margin-top:6px}
@media(min-width:560px){.poll-dialog fieldset>.poll-options:not([data-other-selected]),.poll-detail fieldset>.poll-options:not([data-other-selected]){grid-template-columns:repeat(2,minmax(0,1fr))}}
.poll-option:has(input:checked){border-color:var(--purple);background:color-mix(in srgb,var(--purple) 7%,var(--surface))}
.poll-option input{width:16px;height:16px;flex:none;accent-color:var(--purple);margin:0}
.poll-option>span{flex:1;min-width:0}.poll-option strong{display:block;font-size:14px;overflow-wrap:anywhere}.poll-option small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.poll-option a{padding:6px;color:var(--purple);font-size:16px;min-width:30px;text-align:center}
.poll-dialog fieldset,.poll-detail fieldset{padding:0;margin:0;border:0;min-width:0}
.poll-other,.poll-existing{display:block;width:100%;text-align:left;font:inherit;font-size:13px;background:var(--bg);color:var(--purple);border:1px solid var(--line);border-radius:4px;padding:11px;margin-top:8px;cursor:pointer}
.poll-other-search{padding:12px 0}.poll-other-search label{font-size:13px;font-weight:500}.poll-other-search input[type=search]{display:block;width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:10px;font:inherit;margin-top:6px}
[data-other-results]{max-height:260px;overflow:auto}.poll-existing{margin:0}
.poll-submit-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;position:sticky;bottom:-20px;background:var(--surface);border-top:1px solid var(--line);padding:12px 0;margin-top:14px}
.poll-submit-row>button:not(.poll-primary){border:0;background:none;color:var(--purple);font:inherit;font-size:13px;cursor:pointer;min-height:36px}
[data-poll-status]{font-size:13px;color:var(--purple);line-height:1.5;margin:8px 0}
.poll-rules{border-top:1px solid var(--line);padding-top:10px;margin-top:12px;color:var(--muted);font-size:12px;line-height:1.6}.poll-rules summary{cursor:pointer}.poll-rules p{margin:8px 0}
.poll-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px;color:var(--purple)}
.poll-result{padding:12px 0;border-bottom:1px solid var(--line)}.poll-result>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}.poll-result strong{font-weight:600;overflow-wrap:anywhere}.poll-result span{white-space:nowrap;font-size:12px;color:var(--muted)}
.poll-result meter{width:100%;height:8px;margin-top:8px;appearance:none;background:var(--line);border:0;border-radius:2px;display:block}
.poll-result meter::-webkit-meter-bar{background:var(--line);border:0;height:8px;border-radius:2px}.poll-result meter::-webkit-meter-optimum-value{background:var(--purple)}.poll-result meter::-moz-meter-bar{background:var(--purple)}
.poll-results{margin-bottom:16px;font-size:14px}
.poll-shell{margin:24px auto 36px}.poll-history,.poll-detail{max-width:860px;margin:auto;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:24px}
.poll-history h1,.poll-detail h1{font-size:26px;line-height:1.3;margin:16px 0 10px}.poll-history>p{font-size:14px;color:var(--muted)}.poll-history>p.poll-trial{font-size:12px}
.poll-history article{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:18px 0}.poll-history article h2{font-size:18px;margin:6px 0;line-height:1.4}.poll-history article p,.poll-history article>a{font-size:13px}.poll-history article>a{white-space:nowrap;color:var(--purple)}
.poll-detail{max-width:680px}.poll-detail>h1{display:none}.poll-export{display:inline-block;margin-top:16px;font-size:12px;color:var(--purple)}
@media(max-width:900px){.poll-widget-desktop{display:none}.poll-widget-mobile{display:block;margin:0 0 16px}.community-poll h3{margin-top:10px}.community-poll footer{margin-top:10px;padding-top:8px}.poll-shell{margin:16px auto}.poll-history,.poll-detail{padding:16px}.poll-history article{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:480px){.poll-dialog{padding:14px;width:calc(100vw - 20px);max-height:92dvh}.poll-dialog>header{top:-14px}.poll-submit-row{bottom:-14px}.poll-intro h3{font-size:18px}.poll-option strong{font-size:13px}.poll-result>div{gap:6px}}

/* Keep catalog search and its matches in the same visible ballot area. */
.poll-options[hidden]{display:none}
.poll-other-search{scroll-margin-top:64px;padding:14px 0}
.poll-other-search [data-search-status]{font-weight:600;color:var(--ink);margin:10px 0}
.poll-other-search [data-other-results]{max-height: min(320px,40dvh);overscroll-behavior:contain;padding:2px}
.poll-other-search input[type=search]{border-color:var(--purple);border-width:2px}

/* Shared compact shell. Geometry must not depend on whether a poll is active. */
@media(min-width:901px){
 body.site-layout-compact .header-inner{height:50px}
 body.site-layout-compact .wordmark{font-size:26px}
 body.site-layout-compact .primary-nav>a,body.site-layout-compact .source-nav-trigger{font-size:14px}
 body.site-layout-compact .portal-shell{margin-top:12px}
 body.site-layout-compact .portal-content{grid-template-columns:minmax(0,1fr) 322px;gap:20px}
 body.site-layout-compact .portal-search{margin-bottom:12px}
 body.site-layout-compact .portal-search input[type=search],body.site-layout-compact .portal-search .filter-submit{height:40px;font-size:14px}
 body.site-layout-compact .home-briefing{padding:12px;gap:14px;margin-bottom:10px}
 body.site-layout-compact .home-briefing :is(h1,h2){font-size:22px;margin:5px 0 7px}
 body.site-layout-compact .home-briefing p{font-size:13px}
 body.site-layout-compact .featured-project{min-height:128px}
 body.site-layout-compact .featured-project-copy{padding:10px;gap:5px}
 body.site-layout-compact .featured-project-copy strong{font-size:20px}
 body.site-layout-compact .home-project{min-height:56px;padding:5px 0;gap:8px}
 body.site-layout-compact .home-project h3{font-size:14px}
 body.site-layout-compact .home-project p{font-size:12px}
 body.site-layout-compact .home-project-metrics{font-size:13px}
 body.site-layout-compact .home-provider h2{font-size:19px}
 body.site-layout-compact .home-ranking-meta{min-height:30px;padding:5px 0}
 body.site-layout-compact .portal-aside{gap:10px}
 body.site-layout-compact .portal-news{padding:12px}
 body.site-layout-compact .portal-news .panel-heading{margin-bottom:5px}
 body.site-layout-compact .portal-news h2{font-size:17px}
 body.site-layout-compact .portal-news .panel-heading a{min-height:28px}
 body.site-layout-compact .portal-news .news-preview-link{font-size:12px;padding:6px 0;line-height:1.4}
 body.site-layout-compact .community-poll{padding:12px}
 body.site-layout-compact .community-poll h2{font-size:17px}
 body.site-layout-compact .community-poll h3{font-size:14px;line-height:1.35;margin:10px 0 6px}
 body.site-layout-compact .poll-tabs{margin-top:4px}
 body.site-layout-compact .poll-tabs button{padding:5px 0;min-height:30px;font-size:12px}
 body.site-layout-compact .community-poll .poll-meta{font-size:11px;margin:5px 0 8px}
 body.site-layout-compact .community-poll footer{margin-top:8px;padding-top:7px}
}
@media(min-width:901px){
 body.site-layout-compact .portal-aside .news-headlines{height:208px;padding:8px 12px}
 body.site-layout-compact .portal-aside .news-headlines .panel-heading{height:30px}
 body.site-layout-compact .news-headlines [data-news-window]{max-height:162px}
 body.site-layout-compact .portal-aside .news-headlines .news-preview-link{height:27px;min-height:27px;padding:0;font-size:12px}
 body.site-layout-compact .community-poll{padding:10px 12px}
 body.site-layout-compact .community-poll h3{margin:6px 0 4px}
 body.site-layout-compact .community-poll .poll-primary{min-height:34px;padding:5px 12px;font-size:13px}
 body.site-layout-compact .community-poll footer{margin-top:5px;padding-top:5px}
 body.site-layout-compact .community-poll .poll-meta{margin:4px 0 6px;line-height:1.3}
}
@media(min-width:901px){
 body.site-layout-compact .portal-aside .news-headlines{height:176px}
 body.site-layout-compact .portal-aside .news-headlines .panel-heading{height:24px}
 body.site-layout-compact .news-headlines [data-news-window]{max-height:135px}
}

/* Selected concept: discovery first, compact editorial strip and readable rows. */
body.site-layout-compact .featured-slide{grid-template-columns:minmax(0,1fr) 136px;gap:16px;align-items:center}
body.site-layout-compact .featured-slide:not(:has(.news-source-visual)){grid-template-columns:1fr}
body.site-layout-compact .home-briefing .briefing-title{font-size:20px;line-height:1.3;margin:5px 0}
body.site-layout-compact .briefing-title a{color:var(--ink)}
body.site-layout-compact .briefing-copy>p{font-size:14px;line-height:1.45;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.site-layout-compact .news-source-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:104px;background:var(--bg);border-radius:4px;font-size:11px;color:var(--muted)}
body.site-layout-compact .news-source-visual img{object-fit:contain;border-radius:5px;background:#fff;padding:6px;width:72px;height:72px}
body.site-layout-compact .project-type-icon{position:relative}
body.site-layout-compact .model-brand{position:absolute;width:28px;height:28px;object-fit:contain;background:#fff;border-radius:4px}
body.site-layout-compact .brand-fallback{display:flex;align-items:center;justify-content:center}
@media(min-width:901px){
 body.site-layout-compact .home-briefing{padding:12px;margin-bottom:8px}
 body.site-layout-compact .home-project{grid-template-columns:32px minmax(100px,.8fr) minmax(0,1.2fr) auto;gap:10px}
 body.site-layout-compact .home-project h3{font-size:15px}
 body.site-layout-compact .home-project p{font-size:13px;line-height:1.4}
 body.site-layout-compact .home-rankings .home-project-page .home-project{min-height:66px}
 body.site-layout-compact .home-provider{padding:12px}
 body.site-layout-compact .home-providers{gap:16px}
}
@media(max-width:700px){
 body.site-layout-compact .featured-slide{grid-template-columns:minmax(0,1fr) 64px;gap:10px}
 body.site-layout-compact .news-source-visual{min-height:64px}
 body.site-layout-compact .news-source-visual img{width:48px;height:48px}
 body.site-layout-compact .home-briefing .briefing-title{font-size:18px}
}

.poll-deadline{margin:10px 0 12px}.poll-deadline-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.poll-deadline progress{display:block;width:100%;height:6px;margin:6px 0;border:0;border-radius:8px;overflow:hidden;background:var(--line);accent-color:#078780}.poll-deadline progress::-webkit-progress-bar{background:var(--line);border-radius:8px}.poll-deadline progress::-webkit-progress-value{background:#078780;border-radius:8px}.poll-deadline small{font-size:11px;color:var(--muted)}

@media(min-width:901px){
 body.site-layout-compact .detail-layout{grid-template-columns:minmax(0,1fr) 322px;gap:20px}
 body.site-layout-compact .detail-shell{margin-top:12px}
 body.site-layout-compact .portal-catalog .catalog-main{padding:12px}
 body.site-layout-compact .portal-catalog-heading h1{font-size:22px}
 body.site-layout-compact .portal-catalog-heading p{font-size:13px;margin:4px 0}
 body.site-layout-compact .catalog-toolbar{margin-top:12px;gap:8px}
 body.site-layout-compact .catalog-results-heading{min-height:34px}
 body.site-layout-compact .view-list .tool-card{padding:12px 0;gap:12px}
 body.site-layout-compact .view-list .project-type-icon{width:36px;height:44px}
 body.site-layout-compact .view-list .tool-rank{font-size:20px;width:24px}
 body.site-layout-compact .view-list .tool-content h3{font-size:15px;margin:3px 0}
 body.site-layout-compact .view-list .tool-summary{font-size:13px;line-height:1.4;margin:5px 0}
 body.site-layout-compact .view-list .tool-bottom{margin-top:7px;font-size:12px;gap:12px}
 body.site-layout-compact .view-list .tool-meta,body.site-layout-compact .view-list .tool-author{font-size:11px}
 body.site-layout-compact .view-list .tag{font-size:11px;padding:2px 7px}
 body.site-layout-compact .detail-aside>.community-poll{margin-bottom:10px}
}
@media(max-width:900px){
 .portal-aside>.poll-widget-desktop,.detail-aside>.poll-widget-desktop{display:block}
 .portal-home .portal-aside>.poll-widget-desktop{display:none}
}
