:root{font-family:Arial,sans-serif;color:#0b1c38;background:#fafbfc}*{box-sizing:border-box}body{margin:0}.page{min-height:100vh;padding:22px 24px}.heading{display:flex;align-items:center;justify-content:space-between}.heading h1{margin:0 0 16px;font-size:28px}.status{padding:9px 13px;border-radius:7px;background:#eef1f4;color:#566273;font-weight:700}.status.active{background:#e7f6ed;color:#087541}.status.ended{background:#fff4e7;color:#b45d00}.status.pending{background:#eaf2ff;color:#1768bd}.filters{display:flex;gap:16px;margin-bottom:16px}.filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#536170}.filters input,.filters select{width:210px;height:38px;padding:7px 10px;border:1px solid #d7dde5;border-radius:7px;background:#fff;font-size:14px}.filters .poll-select select{width:340px;height:34px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.stats article,.panel{border:1px solid #dfe4e9;border-radius:10px;background:#fff;box-shadow:0 2px 7px #14253d0d}.stats article{display:flex;align-items:center;gap:16px;padding:16px}.stats i{display:grid;place-items:center;width:55px;height:55px;border-radius:50%;font-size:24px;font-style:normal}.stats strong{display:block;font-size:28px}.stats span{color:#4f5c6d}.blue{color:#1768bd;background:#e7f1fd}.green{color:#0b8345;background:#e5f6ed}.orange{color:#db7100;background:#fff3dd}.purple{color:#6334cb;background:#f0ebff}.charts{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}.panel{padding:16px;min-height:260px}.panel h2{margin:0 0 15px;font-size:17px}.ranking{display:grid;align-content:start;gap:6px}.rank-row{display:grid;grid-template-columns:26px minmax(100px,180px) 1fr 55px;align-items:center;gap:8px}.rank-row>b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1768bd;color:#fff;font-size:12px}.rank-row>div{height:14px;background:#edf1f4}.rank-row i{display:block;height:100%;background:#1768bd}.rank-row strong{text-align:right}.meal-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.meal-cards article{position:relative;display:flex;flex-direction:column;gap:10px;min-height:160px;padding:14px;border:1px solid #dfe4e9;border-radius:8px}.meal-cards img,.meal-image-empty{width:100%;height:105px;object-fit:cover;border-radius:6px}.meal-image-empty{display:grid;place-items:center;background:#edf4ef;color:#087541;font-size:26px}.meal-cards span{align-self:flex-start;padding:4px 7px;border-radius:4px;background:#078842;color:#fff;font-size:11px;font-weight:bold}.meal-cards strong{flex:1}.meal-cards b{font-size:22px;color:#087541}.meal-cards small{color:#657183}.branch-panel{grid-column:1/-1;min-height:250px}.branch-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px;font-size:11px}.branch-legend span{display:flex;align-items:center;gap:5px}.branch-legend i{width:9px;height:9px}.branch-chart{display:flex;align-items:flex-end;justify-content:center;gap:54px;height:185px;padding:20px 20px 25px;border-bottom:1px solid #ccd4dc;background:repeating-linear-gradient(0deg,transparent 0,transparent 39px,#e8edf1 40px)}.branch-chart .branch-group{position:relative;display:flex;align-items:flex-end;height:100%;min-width:54px}.branch-chart .branch-group>div{display:flex;align-items:flex-end;gap:4px;height:100%}.branch-chart .branch-group i{position:relative;display:block;width:18px;margin:0}.branch-chart .branch-group i span{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-style:normal;font-size:10px}.branch-chart label{position:absolute;bottom:-23px;width:100%;text-align:center;font-size:11px}.empty-state{margin:80px 0;text-align:center;color:#667385;font-size:15px}@media(max-width:950px){.stats{grid-template-columns:repeat(2,1fr)}.charts{grid-template-columns:1fr}.branch-panel{grid-column:auto}.filters{flex-wrap:wrap}}@media(max-width:620px){.page{padding:16px;min-width:0}.heading{align-items:flex-start;gap:10px}.heading h1{font-size:22px}.filters label,.filters input,.filters .poll-select select{width:100%}.filters{display:grid}.stats{grid-template-columns:1fr}.meal-cards{grid-template-columns:1fr}.rank-row{grid-template-columns:26px 100px 1fr 45px}.branch-chart{gap:20px;overflow:auto;justify-content:flex-start}}
.daily-panel{grid-column:1/-1;min-width:0}.daily-note{color:#657183;font-size:13px}.daily-chart{display:flex;gap:20px;overflow-x:auto;padding:12px 0}.daily-group{flex:1 0 auto;margin:0}.daily-columns{display:flex;justify-content:center;gap:10px;padding:0 12px}.daily-column{width:90px;text-align:center;font-size:12px}.daily-track{height:180px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #ccd4dc;background:repeating-linear-gradient(0deg,transparent 0,transparent 44px,#e8edf1 45px)}.daily-track i{position:relative;display:block;width:38px;min-height:1px;font-style:normal}.daily-track b{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-bottom:4px;color:#0b1c38}.daily-column>span{display:block;padding-top:8px;overflow-wrap:anywhere}.daily-group h3{text-align:center;font-size:13px;font-weight:bold;margin:12px 0 0}
.daily-panel{position:relative}.daily-mode{position:absolute;top:12px;right:12px;display:flex;border:1px solid #c9d5cd;border-radius:5px;overflow:hidden}.daily-mode button{border:0;border-radius:0;padding:6px 11px;background:#fff;color:#087541;font-size:13px;font-weight:600;line-height:1.25}.daily-mode button+button{border-left:1px solid #c9d5cd}.daily-mode button.active{background:#087541;color:#fff}.daily-legend{display:flex;flex-wrap:wrap;gap:4px 10px;margin:2px 0 3px;font-size:10px}.daily-legend span{display:flex;align-items:center;gap:4px;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-legend i{width:10px;height:10px;flex:none}.daily-stack{height:180px;width:42px;margin:auto;display:flex;flex-direction:column-reverse;border:1px solid #ccd4dc;background:repeating-linear-gradient(0deg,transparent 0,transparent 44px,#e8edf1 45px)}.daily-stack i{position:relative;display:block;min-height:0;font-style:normal}.daily-stack b{position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);font-size:9px;color:#0b1c38;white-space:nowrap}.daily-percent h3{margin-top:12px}
.consensus-card{flex:1;min-width:0;padding:8px;border:1px solid #dfe4e9;border-top:4px solid #f2a311;border-radius:7px;background:#fff}.consensus-card h3{margin:0 0 7px;font-size:11px}.consensus-card>b{display:block;font-size:26px;line-height:1;color:#dc8600}.consensus-card>div{height:8px;margin:8px 0;background:#edf1f4;border-radius:5px;overflow:hidden}.consensus-card>div i{display:block;height:100%;background:#f2a311;border-radius:5px}.consensus-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.consensus-card small{display:block;margin-top:3px;color:#657183;font-size:10px}.consensus-card.medium{border-top-color:#1768bd}.consensus-card.medium>b{color:#1768bd}.consensus-card.medium>div i{background:#1768bd}.consensus-card.high{border-top-color:#078842}.consensus-card.high>b{color:#078842}.consensus-card.high>div i{background:#078842}
/* Fit the dashboard to the available desktop/iframe viewport. */
@media(min-width:800px){
    .page{height:100vh;min-height:0;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
    .heading{flex:none}.heading h1{margin:0;font-size:22px}.status{padding:6px 10px;font-size:12px}
    .filters{flex:none;flex-wrap:nowrap;gap:12px;margin:0}.filters label{min-width:0}.filters .poll-select{flex:1}.filters .poll-select select{width:100%}.filters input{width:170px}.filters label>input,.filters label>select{margin-top:0}
    #summaryContent{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
    .stats{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.stats article{padding:8px 12px;gap:10px}.stats i{width:36px;height:36px;font-size:18px}.stats strong{font-size:22px}.stats span{font-size:12px}
    .charts{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,.85fr) minmax(0,1.15fr);gap:10px}
    .charts>.panel{grid-column:auto;min-width:0;min-height:0;margin:0;padding:10px;display:flex;flex-direction:column}
    .panel h2{flex:none;margin:0 0 8px;font-size:15px}
    .ranking{flex:1;min-height:0;grid-auto-rows:minmax(0,24px);align-content:start;gap:4px}
    .rank-row{min-height:0;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 45px;gap:5px;font-size:11px}
    .rank-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row>b{width:18px;height:18px;font-size:10px}.rank-row>div{height:10px}
    .meal-cards{flex:1;min-height:0;gap:8px}.meal-cards article{min-width:0;min-height:0;padding:8px;gap:4px}
    .meal-cards img,.meal-image-empty{flex:1;min-height:0;height:0;max-height:90px}.meal-cards strong{flex:none;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meal-cards b{font-size:18px}.meal-cards small{font-size:10px}.meal-cards span{padding:2px 5px;font-size:10px}
    .branch-legend{flex:none;gap:3px 8px;margin-bottom:3px;font-size:10px}.branch-legend span{min-width:0;max-width:32%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.branch-legend i{flex:none}
    .branch-chart{flex:1;min-height:0;height:auto;gap:8px;padding:18px 4px 28px;overflow:visible}
    .branch-chart .branch-group{flex:1;min-width:0}.branch-chart .branch-group>div{width:100%;gap:2px;justify-content:center}.branch-chart .branch-group i{flex:1;min-width:0;max-width:18px}.branch-chart .branch-group i span{font-size:9px}.branch-chart label{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .daily-note{flex:none;font-size:10px;margin:0 0 4px}.daily-chart{flex:1;min-height:0;gap:6px;overflow:visible;padding:16px 0 0}
    .daily-group{flex:1;min-width:0;display:flex;flex-direction:column}.daily-columns{flex:1;min-height:0;gap:3px;padding:0 2px}
    .daily-column{flex:1;min-width:0;width:auto;display:flex;flex-direction:column;font-size:9px}.daily-track{flex:1;min-height:0;height:auto}.daily-track i{width:65%;max-width:38px}.daily-track b{font-size:9px}
    .daily-column>span{flex:none;padding-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-group h3{flex:none;font-size:10px;margin:6px 0 0;white-space:nowrap}
    .daily-mode{top:10px;right:10px}.daily-mode button{padding:5px 9px;font-size:11px}.daily-legend{font-size:9px;gap:2px 6px;margin:1px 0}.daily-stack{flex:1;height:auto;width:30px}.daily-stack b{font-size:8px}.daily-percent h3{margin-top:6px}
    .consensus-card{padding:6px}.consensus-card>b{font-size:21px}.consensus-card strong{font-size:10px}.consensus-card small{font-size:9px}
}
/* Top meals: photo cards matching the summary design. */
.meal-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.meal-cards article{padding:3px;gap:0;min-width:0;background:#fff;border-color:#e0e5e9;border-radius:7px;overflow:hidden}
.meal-photo{position:relative;min-height:0;height:140px;overflow:hidden;border-radius:5px 5px 0 0}
.meal-photo img,.meal-photo .meal-image-empty{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;background:#f7f9fa;border-radius:0}
.meal-photo .meal-image-empty{display:grid;place-items:center}
.meal-cards .meal-top{position:absolute;top:5px;left:5px;padding:4px 8px;border-radius:4px;background:#078842;color:white;font-size:20px;line-height:1.2}
.meal-info{flex:none;padding:7px 5px 5px;display:flex;flex-direction:column;gap:5px;min-width:0}
.meal-info strong{display:block;flex:none;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meal-votes{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.meal-votes b{font-size:20px;line-height:1.2;color:#079447}.meal-votes small{font-size:10px;color:#657183}
.meal-suggestion{padding:5px 4px;border-radius:4px;background:#e5f5eb;color:#078842;font-size:9px;font-weight:600;line-height:1.3}
.meal-suggestion i{margin-right:2px}
@media(min-width:800px){.meal-photo{flex:1;height:0;min-height:0}.meal-cards article{padding:3px;gap:0}.meal-info{gap:4px;padding:5px}.meal-suggestion{font-size:clamp(8px,.75vw,10px)}}
@media(max-width:620px){.meal-cards{grid-template-columns:1fr}.meal-photo{height:180px}}

.stats article:nth-child(3) i{color:#e39100;background:#fff4d8}.stats article:nth-child(4) i{color:#7140ce;background:#f1eaff}.stats article:nth-child(3) strong{color:#e06f00}.stats article:nth-child(4) strong{color:#6334cb}
