:root{font-family:Segoe UI,Arial,sans-serif;color:#18283c;background:#f3f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#285bd5}button,input{font:inherit}button,.button{border:0;border-radius:10px;padding:12px 18px;background:#285bd5;color:white;cursor:pointer;text-decoration:none;display:inline-block;font-weight:600}button:disabled{opacity:.5;cursor:default}.secondary{background:#e8eef9;color:#244373}.danger{background:#fff0ef;color:#a32424}.wrap{max-width:1100px;margin:48px auto;padding:0 24px}.card{background:#fff;border:1px solid #dfe6f0;border-radius:20px;padding:32px;box-shadow:0 12px 36px #20345008}.auth-card{max-width:440px;margin:64px auto}.eyebrow{color:#285bd5;text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:700}h1{font-size:30px;margin:12px 0}h2{font-size:20px}p{line-height:1.6}.muted{color:#66758a}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.actions{display:flex;gap:10px;flex-wrap:wrap}label{display:grid;gap:8px;margin:18px 0;font-size:14px;font-weight:600}input{width:100%;padding:13px;border:1px solid #ccd6e5;border-radius:10px;background:#fafcff}input:focus{outline:2px solid #b4c9ff;border-color:#285bd5}.wide{width:100%;margin:8px 0}.message{padding:14px 16px;background:#edf4ff;color:#244373;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}.error{background:#fff0ef;color:#a32424}.status{display:inline-block;padding:6px 12px;border-radius:999px;background:#eef3fc;font-size:13px;font-weight:600}.approved{background:#e8f6ef;color:#166a44}.pending{background:#fff5df;color:#8b6000}.rejected{background:#fff0ef;color:#a32424}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:16px 12px;border-bottom:1px solid #e7edf5;font-size:14px}th{font-size:12px;color:#66758a}td button{padding:8px 12px;margin:3px}.empty{padding:30px;text-align:center;color:#66758a}.stats{display:flex;gap:12px;margin:20px 0}.stat{flex:1;background:#f6f8fc;padding:18px;border-radius:12px}.stat strong{display:block;font-size:26px;margin-bottom:4px}.log{max-height:160px;overflow:auto;font:12px Consolas,monospace;list-style:none;padding:0}.log li{padding:8px;border-bottom:1px solid #edf0f5}[hidden]{display:none!important}@media(max-width:650px){.wrap{margin:24px auto;padding:0 14px}.card{padding:22px}.auth-card{margin:28px 14px}.top{align-items:flex-start;flex-direction:column}.stats{flex-wrap:wrap}h1{font-size:25px}}

.login-dialog{width:min(500px,calc(100% - 24px));height:min(860px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dfe6f0;border-radius:20px;background:#f3f6fb;box-shadow:0 24px 90px #18283c40;overflow:hidden}.login-dialog::backdrop{background:#17283d88;backdrop-filter:blur(3px)}.close-login{display:block;margin:12px 16px 0 auto}.login-dialog iframe{display:block;border:0;width:100%;height:calc(100% - 58px);background:#f3f6fb}.embedded-login .auth-card{margin:16px auto;box-shadow:none}@media(max-width:500px){.embedded-login .auth-card{margin:12px}}

.login-logo{display:block;width:150px;max-width:55%;height:auto;object-fit:contain;margin:0 auto 22px}

.account-name{align-self:center;max-width:100%;overflow-wrap:anywhere;padding:10px 14px;border:1px solid #dfe6f0;border-radius:10px;background:#fff;color:#244373;font-weight:600;font-size:14px}
/* Rezultatet publike */
.site-header{max-width:1280px;margin:auto;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dfe6f0}.site-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#152941;font-size:23px;font-weight:800}.site-brand img{width:58px;height:48px;object-fit:contain}.site-brand small{display:block;font-size:12px;font-weight:400;color:#6c7c90;margin-top:3px}.election-wrap{max-width:1240px;margin:auto;padding:24px 32px}.page-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 30px}.page-tabs button{background:transparent;color:#64748b;font-size:14px}.page-tabs button.selected{color:#2449b3;background:#e6edff}.hero{display:grid;grid-template-columns:1.7fr 1fr;gap:45px;align-items:center;padding:32px 0 40px}.hero h1{font-size:clamp(30px,4vw,47px);line-height:1.15;letter-spacing:-1.6px;color:#152941;margin:15px 0 20px}.hero .muted{max-width:450px}.live-card{padding:28px 30px;border:1px solid #dae4f2;background:#fff;border-radius:18px;display:grid;gap:14px;box-shadow:0 8px 40px #20345006}.live-card .status{justify-self:start}.live-card>strong{font-size:38px;letter-spacing:-1px}.live-card>span:not(.status),.live-card small{color:#64748b;font-size:13px}progress{width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:#285bd5}progress::-webkit-progress-bar{background:#eaf0f8}progress::-webkit-progress-value{background:#285bd5}.overview-stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #dfe6f0;border-radius:16px;padding:25px 0}.overview-stats>div{display:grid;gap:8px;padding:0 26px;border-right:1px solid #e7edf5}.overview-stats>div:last-child{border:0}.overview-stats strong{font-size:28px;font-variant-numeric:tabular-nums}.overview-stats span{font-size:13px;color:#64748b}.section-space{margin-top:26px}.card h2{margin:8px 0}.party-total{display:grid;grid-template-columns:1fr auto;column-gap:20px;row-gap:12px;padding:20px 0;border-bottom:1px solid #edf1f7}.party-total:last-child{border:0}.party-title{display:flex;align-items:center;gap:14px}.party-logo{display:inline-grid;place-items:center;position:relative;width:48px;height:48px;flex-shrink:0;border-radius:12px;background:#edf2fb;color:#3d5f9a;font-size:15px;overflow:hidden}.party-logo img{position:absolute;width:100%;height:100%;object-fit:contain;background:#fff}.party-score{display:grid;justify-items:end;align-content:center;gap:3px;font-variant-numeric:tabular-nums}.party-score strong{font-size:23px}.party-score span{font-size:13px;color:#64748b}.vote-track{grid-column:1/-1;height:7px;background:#edf2f9;overflow:hidden;border-radius:9px}.vote-track>div{height:100%;background:#285bd5;border-radius:9px;transition:width .3s}.filters{display:flex;gap:8px;flex-wrap:wrap}select{font:inherit;font-size:14px;background:#fafcff;border:1px solid #ccd6e5;padding:12px;border-radius:10px;color:#244373;max-width:100%}.number-cell{font-variant-numeric:tabular-nums;text-align:right;font-weight:600}.cell-note{display:block;color:#708097;font-size:11px;margin-top:6px}.page-heading{margin:36px 0 28px}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.admin-grid .card{padding:25px}.admin-grid button{width:100%}.admin-grid p{font-size:12px}.entity-list{margin-top:20px;max-height:300px;overflow:auto}.entity-row{display:flex;align-items:center;gap:10px;border-top:1px solid #edf1f7;padding:12px 0;font-size:14px}.entity-row .party-logo{width:32px;height:32px;font-size:11px}.vote-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.vote-entry{border:1px solid #dfe6f0;border-radius:14px;padding:20px;margin:0}.vote-entry input{font-size:24px;font-weight:700;text-align:right;margin-top:10px;font-variant-numeric:tabular-nums}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #e7edf5;padding-top:22px;margin-top:24px}.form-footer p{font-size:13px;max-width:550px}.form-footer button{flex-shrink:0}.site-footer{display:flex;justify-content:space-between;gap:18px;color:#8391a3;font-size:12px;padding:30px 0;margin-top:20px}.election-wrap .table-wrap th{white-space:nowrap}.election-wrap td{vertical-align:middle}.election-wrap td select{min-width:155px}.election-wrap .top{margin-bottom:15px}#message{scroll-margin-top:20px}#partyForm input[type=file]{font-size:12px;padding:10px}
@media(max-width:950px){.admin-grid{grid-template-columns:1fr 1fr}.admin-grid>section:last-child{grid-column:1/-1}.site-header{padding:18px 22px}.hero{gap:24px}.overview-stats>div{padding:0 18px}}@media(max-width:650px){.site-header{align-items:flex-start;flex-direction:column;padding:18px}.site-header .actions{width:100%;align-items:center}.site-brand{font-size:21px}.election-wrap{padding:18px 14px}.hero{grid-template-columns:1fr;padding:12px 0 26px;gap:18px}.hero h1{letter-spacing:-.8px}.live-card{padding:24px}.overview-stats{grid-template-columns:1fr 1fr;gap:24px 0}.overview-stats>div:nth-child(2){border:0}.overview-stats strong{font-size:26px}.admin-grid,.vote-fields{grid-template-columns:1fr}.admin-grid>section:last-child{grid-column:auto}.form-footer,.site-footer{align-items:flex-start;flex-direction:column}.form-footer button{width:100%}.filters select{width:100%}.filters{width:100%}.card{padding:20px}.party-score strong{font-size:20px}.page-tabs{margin-bottom:20px;gap:3px}.page-tabs button{padding:10px;font-size:13px}}
/* Menutë e administratorit dhe formularët në telefon */
.entity-name{flex:1;min-width:0;overflow-wrap:anywhere}.entity-row{align-items:flex-start}.entity-actions{flex:none;width:44px}.entity-actions[open]{width:136px}.entity-actions summary{list-style:none;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;margin-left:auto;border:1px solid #dce5f0;border-radius:10px;background:#f7f9fd;font-size:25px;line-height:1;color:#244373}.entity-actions summary::-webkit-details-marker{display:none}.entity-actions summary:focus-visible{outline:3px solid #b4c9ff}.entity-menu{display:grid;gap:6px;padding-top:8px}.entity-menu button{min-height:44px;width:100%;padding:10px 14px;text-align:left}.entity-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px;border:1px solid #dfe6f0;border-radius:18px;color:#18283c}.entity-dialog::backdrop{background:#17283d88}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{margin:0}.dialog-heading button{min-width:44px;min-height:44px}.entity-dialog label{font-size:14px}.entity-dialog input,.entity-dialog select{font-size:16px;width:100%;min-height:44px}.entity-dialog .muted{font-size:13px}.dialog-footer{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-footer button{min-height:44px}.entity-list{max-height:400px}.entity-row>.entity-name{padding-top:12px}.page-tabs button{min-height:44px}
@media(max-width:650px){.entity-dialog{padding:20px}.dialog-footer{flex-wrap:wrap}.dialog-footer button{flex:1}.entity-list{max-height:360px}#adminPage .table-wrap{overflow:visible}#adminPage table,#adminPage tbody,#adminPage tr,#adminPage td{display:block;width:100%}#adminPage thead{display:none}#adminPage tbody tr{border:1px solid #e0e7f0;border-radius:12px;padding:10px;margin:12px 0;background:#fafcff}#adminPage td{display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;padding:9px 3px;border:0;overflow-wrap:anywhere}#adminPage td::before{content:attr(data-label);font-size:12px;font-weight:600;color:#6c7c90;align-self:center}#adminPage td select{min-width:0;width:100%;font-size:16px}#adminPage td:last-child{display:flex;flex-wrap:wrap}#adminPage td:last-child::before{width:100%}#adminPage td button{flex:1;min-height:44px;margin:2px;padding:10px;font-size:13px}.admin-grid .card{padding:20px}.site-header .actions .account-name{font-size:13px;padding:8px 10px}.hero{min-width:0}.site-footer{overflow-wrap:anywhere}}
/* Menu lundruese në një kartë; nuk ndryshon përmasat e rreshtit. */
.entity-actions,.entity-actions[open]{width:44px;height:44px}.entity-menu[popover]{position:fixed;inset:auto;margin:0;box-sizing:border-box;min-width:160px;max-width:calc(100vw - 16px);padding:6px;gap:2px;background:#fff;border:1px solid #dce5f0;border-radius:12px;box-shadow:0 12px 35px #17283d24;color:#244373;overflow:hidden}.entity-menu[popover]:not(:popover-open){display:none}.entity-menu[popover]:popover-open{display:grid}.entity-menu[popover] button{width:100%;margin:0;background:transparent;border:0;border-radius:7px;color:#244373;text-align:left;min-height:44px;padding:10px 14px}.entity-menu[popover] button:hover,.entity-menu[popover] button:focus-visible{background:#edf3fc}.entity-menu[popover] button.danger{color:#ad2828}.entity-menu[popover] button.danger:hover,.entity-menu[popover] button.danger:focus-visible{background:#fff0ef}
/* Krahasimi është përmbajtja e parë e home. */
.comparison-main{margin-top:0}.comparison-main .top{align-items:center;margin-bottom:4px}.comparison-main h1{font-size:clamp(24px,3vw,34px);line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere;margin:8px 0}.comparison-subtitle{font-size:14px;margin:0}.comparison-main .party-logo{border:2px solid var(--party-color,#285bd5);width:52px;height:52px}.comparison-main .vote-track{height:12px}.comparison-main .party-total{padding:18px 0}.comparison-main #completionNote{font-size:12px;margin-bottom:0}.hero{padding:24px 0;gap:24px;grid-template-columns:1fr 1fr}.hero h2{font-size:22px;margin:10px 0}.hero .muted{font-size:14px;margin-bottom:0}.live-card{padding:18px 22px;gap:8px}.live-card>strong{font-size:28px}.page-tabs{margin-bottom:18px}.site-brand{min-width:0}.site-brand>span{min-width:0}.site-brand strong{display:block;overflow-wrap:anywhere;font-size:22px;line-height:1.25}.site-settings{margin-bottom:20px}.site-settings form{display:flex;gap:16px;align-items:flex-end}.site-settings label{flex:1;margin:10px 0 0}.site-settings button{min-height:46px}.site-settings p{font-size:12px;margin-bottom:0}.party-swatch{width:14px;height:14px;min-width:14px;border-radius:50%;border:1px solid #18283c22;align-self:center}input[type=color]{width:100%;max-width:160px;height:46px;padding:4px;cursor:pointer}.entity-dialog input[type=color]{max-width:160px}.site-footer>span:first-child{overflow-wrap:anywhere}
@media(max-width:650px){.comparison-main .top{align-items:flex-start;flex-direction:row;gap:12px}.comparison-main .top>div{min-width:0}.comparison-main .top>button{padding:10px;font-size:12px;flex-shrink:0}.comparison-main h1{font-size:24px}.comparison-main .party-total{padding:14px 0}.comparison-main .party-title{gap:10px}.comparison-main .party-logo{width:44px;height:44px}.comparison-main .party-title strong{font-size:14px;overflow-wrap:anywhere}.comparison-main .party-score strong{font-size:20px}.comparison-main .vote-track{height:10px}.hero{grid-template-columns:1fr;padding:20px 0;gap:14px}.hero>div:first-child{display:none}.live-card{padding:18px}.site-settings form{flex-direction:column;align-items:stretch;gap:12px}.site-settings input{font-size:16px}.site-brand strong{font-size:20px}.site-header{gap:14px}.page-heading{margin:20px 0}.comparison-main .eyebrow{font-size:11px}}

/* Krahasimi: grafikoni kryesor vertikal + rezultati i fundit */
.compare-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:24px;align-items:stretch}
.main-chart{min-width:0}
.bar-chart{--chart-h:300px;display:flex;align-items:flex-end;gap:clamp(6px,1.4vw,16px);min-height:calc(var(--chart-h) + 120px);padding:4px 2px 0;overflow-x:auto;scrollbar-width:thin}
.bar-col{flex:1 1 0;min-width:52px;max-width:120px;display:grid;grid-template-rows:auto var(--chart-h) auto auto;justify-items:center;gap:8px;text-align:center}
.bar-value{display:grid;gap:1px;font-variant-numeric:tabular-nums;line-height:1.15}
.bar-value strong{font-size:17px;color:#152941}
.bar-value span{font-size:12px;color:#64748b}
.bar-col.leader .bar-value strong{color:var(--c)}
.bar-slot{position:relative;width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:2px solid #dfe6f0;background:linear-gradient(#edf1f7 1px,transparent 1px) 0 0/100% 25%}
.bar{width:min(70%,58px);background:var(--c,#285bd5);border-radius:8px 8px 2px 2px;transition:height .9s cubic-bezier(.2,.8,.2,1);box-shadow:inset 0 -8px 16px #0000001a}
.bar-delta{position:absolute;top:6px;left:50%;transform:translate(-50%,6px);padding:3px 8px;border-radius:999px;background:var(--c,#285bd5);color:#fff;font-size:12px;font-weight:700;white-space:nowrap;opacity:0;pointer-events:none}
.bar-delta.show{animation:delta-pop 5s ease forwards}
@keyframes delta-pop{0%{opacity:0;transform:translate(-50%,6px)}8%,75%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-6px)}}
.bar-logo .party-logo{width:44px;height:44px;font-size:13px;border:2px solid var(--c);border-radius:12px}
.bar-name{font-size:13px;font-weight:600;color:#244373;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%}
.latest-panel{position:relative;display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #dae4f2;border-radius:16px;background:#f8faff;min-width:0}
.latest-panel.flash{animation:panel-flash 1.6s ease}
@keyframes panel-flash{0%{box-shadow:0 0 0 0 #285bd566;border-color:#285bd5}100%{box-shadow:0 0 0 14px #285bd500;border-color:#dae4f2}}
.latest-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.new-badge{padding:4px 10px;border-radius:999px;background:#1f9d6b;color:#fff;font-size:12px;font-weight:700;animation:badge-pulse 1.6s ease-in-out infinite}
@keyframes badge-pulse{50%{opacity:.6}}
.latest-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.latest-body.enter{animation:latest-in .55s cubic-bezier(.2,.8,.2,1)}
@keyframes latest-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.latest-place strong{display:block;font-size:24px;letter-spacing:-.4px;color:#152941;overflow-wrap:anywhere}
.latest-code{display:inline-block;margin-top:6px;padding:4px 10px;border-radius:8px;background:#e6edff;color:#2449b3;font-weight:700;font-size:14px}
.latest-meta{display:flex;justify-content:space-between;gap:10px;color:#64748b;font-size:13px}
.latest-sum{font-weight:700;color:#244373}
.latest-chart .bar-chart{--chart-h:170px;min-height:calc(var(--chart-h) + 92px)}
.bar-chart.compact .bar-col{min-width:36px;gap:6px}
.bar-chart.compact .bar-value strong{font-size:14px}
.bar-chart.compact .bar-value span{font-size:11px}
.bar-chart.compact .bar-logo .party-logo{width:32px;height:32px;font-size:11px;border-radius:9px}
.bar-chart.compact .bar-name{display:none}
.bar-chart.compact .bar-delta{display:none}
.latest-panel .empty{margin:auto}
.toast{position:fixed;z-index:50;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translate(-50%,24px);width:min(460px,calc(100% - 24px));display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-radius:16px;background:#152941;color:#fff;box-shadow:0 18px 50px #15294155;opacity:0;transition:opacity .25s,transform .25s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 4px #3ddc9733}
.toast-text{flex:1;min-width:0;display:grid;gap:2px}
.toast-text strong{font-size:15px;overflow-wrap:anywhere}
.toast-text span{font-size:13px;color:#c6d3e6}
.toast button{flex:none;min-height:40px;padding:8px 14px;background:#fff;color:#152941}
.toast .toast-close{background:transparent;color:#c6d3e6;font-size:20px;padding:8px 10px}
@media(max-width:950px){.compare-grid{grid-template-columns:1fr 1fr}.bar-chart{--chart-h:220px}}
@media(max-width:760px){
 .compare-grid{grid-template-columns:1fr;gap:14px}
 .bar-chart{--chart-h:150px;min-height:calc(var(--chart-h) + 92px);gap:6px}
 .bar-col{min-width:38px;gap:5px}
 .bar-value strong{font-size:13px}.bar-value span{font-size:10.5px}
 .bar-logo .party-logo{width:30px;height:30px;font-size:10px;border-radius:8px}
 .bar-name{font-size:10.5px}
 .bar{width:min(76%,40px)}
 .latest-panel{padding:14px;gap:6px}
 .latest-place{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
 .latest-place strong{display:inline;font-size:19px}.latest-code{margin:0;font-size:13px}
 .latest-chart .bar-chart{--chart-h:96px;min-height:calc(var(--chart-h) + 64px)}
 .bar-chart.compact .bar-col{min-width:32px;gap:4px}
 .bar-chart.compact .bar-value span{display:none}
 .bar-chart.compact .bar-logo .party-logo{width:26px;height:26px}
}
@media(prefers-reduced-motion:reduce){.bar,.toast{transition:none}.bar-delta.show,.latest-body.enter,.latest-panel.flash,.new-badge{animation:none}.bar-delta.show{opacity:1}}
/* Rreshta fiks që shtyllat të rreshtohen edhe kur emri kalon në dy rreshta */
.bar-col{min-width:0;grid-template-rows:38px var(--chart-h) auto 2.5em}
.bar-chart.compact .bar-col{min-width:0;grid-template-rows:34px var(--chart-h) auto}
.bar-value{align-self:end}
@media(max-width:760px){
 .compare-card .top{flex-direction:row;align-items:center;margin-bottom:12px}
 .compare-card .top h2{font-size:20px;margin:4px 0 0}
 .compare-card #refresh{padding:9px 12px;font-size:13px}
 .bar-chart{--chart-h:130px;min-height:0;gap:4px}
 .bar-col{grid-template-rows:30px var(--chart-h) auto 2.4em;gap:4px}
 .bar-value strong{font-size:12px}.bar-value span{font-size:10px}
 .bar-name{font-size:10px}
 .latest-chart .bar-chart{--chart-h:78px;min-height:0}
 .bar-chart.compact .bar-col{grid-template-rows:18px var(--chart-h) auto}
 .bar-chart.compact .bar-value strong{font-size:11px}
 .bar-chart.compact .bar-logo .party-logo{width:24px;height:24px;font-size:9px;border-width:1.5px}
 .latest-meta{font-size:12px}
}
@media(max-width:380px){.bar-value span{display:none}.bar-col{grid-template-rows:18px var(--chart-h) auto 2.4em}.bar-logo .party-logo{width:26px;height:26px}}
@media(max-width:760px){.bar-delta{font-size:10px;padding:2px 5px;top:2px}}

/* Footer: © Elektiva · Developed by AmiSoft */
.site-footer{align-items:center;flex-wrap:wrap}
.credit{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;color:#64748b;font-size:13px}
.credit strong{color:#244373}
.credit-dot{display:inline-block;color:#285bd5;font-size:16px;line-height:1;animation:credit-dot 1.6s ease-in-out infinite}
.amisoft{position:relative;font-weight:800;text-decoration:none;background:linear-gradient(90deg,#285bd5,#7b4bd1,#d6453d,#285bd5);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:amisoft-shift 6s linear infinite,amisoft-pulse 2s ease-in-out infinite}
.amisoft::after{content:'';position:absolute;inset:-4px -8px;border-radius:999px;box-shadow:0 0 0 0 #285bd555;animation:amisoft-ring 2s ease-out infinite;pointer-events:none}
.amisoft:hover,.amisoft:focus-visible{filter:brightness(1.15)}
@keyframes amisoft-shift{to{background-position:300% 0}}
@keyframes amisoft-pulse{0%,100%{text-shadow:none;transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes amisoft-ring{0%{box-shadow:0 0 0 0 #285bd544}70%,100%{box-shadow:0 0 0 10px #285bd500}}
@keyframes credit-dot{50%{opacity:.35;transform:scale(.7)}}
.amisoft{display:inline-block}
@media(max-width:650px){.site-footer{flex-direction:column;align-items:center;text-align:center;gap:8px;padding:24px 0 96px}.credit{justify-content:center}}
@media(prefers-reduced-motion:reduce){.credit-dot,.amisoft,.amisoft::after{animation:none}}

/* Butoni i njoftimeve push */
.push-toggle{white-space:nowrap}
.push-toggle.on{background:#e7f6ef;color:#17784f}
@media(max-width:650px){.push-toggle{padding:10px 12px;font-size:13px}}

/* Koka kompakte: titulli dhe butonat në një rresht; skedat vetëm kur ka më shumë se një faqe */
.page-tabs[hidden]{display:none}
.push-label{margin-left:6px}
@media(max-width:650px){
 .site-header{flex-direction:row;align-items:center;flex-wrap:wrap;padding:12px 14px;gap:10px}
 .site-brand{flex:1 1 auto;min-width:0;gap:10px}
 .site-brand img{width:46px;height:auto}
 .site-brand strong{font-size:18px}
 .site-brand small{margin-top:1px}
 .site-header .actions{width:auto;flex:0 1 auto;margin-left:auto;gap:6px;justify-content:flex-end}
 .site-header .actions .button,.site-header .actions button{padding:9px 12px;font-size:13px;min-height:40px}
 .push-label{display:none}
 .election-wrap{padding-top:12px}
}
@media(max-width:650px){
 .site-header{flex-wrap:nowrap}
 .site-brand>span{min-width:0;overflow:hidden}
 .site-brand strong,.site-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:480px){.login-extra{display:none}.site-brand strong{font-size:17px}.site-brand img{width:40px}}
/* Koka kompakte edhe në PC: një rresht, më pak hapësirë vertikale */
.site-header{flex-direction:row;flex-wrap:nowrap;align-items:center;padding:12px 32px;gap:16px}
.site-brand{flex:1 1 auto;min-width:0;gap:12px}
.site-brand img{width:48px;height:40px}
.site-brand strong{font-size:20px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-header .actions{flex:0 0 auto;flex-wrap:nowrap;gap:8px}
.site-header .actions .button,.site-header .actions button{padding:9px 16px;min-height:40px}
.election-wrap{padding-top:16px}
@media(max-width:650px){.site-header{padding:10px 14px;gap:10px}.site-header .actions .button,.site-header .actions button{padding:9px 12px}.election-wrap{padding-top:12px}}
@media(max-width:650px){.site-brand strong{font-size:17px}.site-brand img{width:40px;height:34px}.site-brand small{font-size:11px}}@media(max-width:360px){.site-brand small{display:none}}
/* Butoni Kyçu: i vogël */
#loginLink{padding:7px 14px;font-size:13px;min-height:34px;border-radius:9px;line-height:20px}
.site-header .actions #loginLink{padding:7px 14px;min-height:34px}
.push-toggle{padding:7px 12px;font-size:13px;min-height:34px}
.site-header .actions .push-toggle{padding:7px 12px;min-height:34px}
/* Kyçu: font më i madh, padding më i vogël */
#loginLink,.site-header .actions #loginLink{font-size:15px;font-weight:700;padding:5px 12px;min-height:32px;line-height:22px}

/* Krahasimi: më i gjerë dhe kolonat mbushin gjithë hapësirën sipas numrit të partive */
.election-wrap{max-width:1480px}
.site-header{max-width:1544px}
.compare-grid{grid-template-columns:minmax(0,1fr) clamp(280px,26%,360px);gap:28px}
.bar-chart{gap:clamp(6px,1.2vw,18px);justify-content:space-between}
.bar-col{flex:1 1 0;max-width:none;min-width:0}
.bar{width:clamp(18px,62%,96px)}
.bar-name{max-width:16ch}
@media(max-width:950px){.compare-grid{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:760px){.compare-grid{grid-template-columns:1fr}.bar{width:min(76%,56px)}}
@media(max-width:760px){
 .bar-chart{justify-content:flex-start}
 .bar-col{min-width:44px}
 .bar-chart.compact .bar-col{min-width:30px}
 .bar-value strong{font-size:11.5px;letter-spacing:-.2px}
 .bar-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%;font-size:10px}
 .bar-col{grid-template-rows:30px var(--chart-h) auto 1.3em}
}
@media(max-width:760px){.bar-col{min-width:38px}}

/* Krahasimi pa titull: karta më e ngushtë, koka e rreshtuar me kartën */
.election-wrap{max-width:1240px;padding:16px 32px 24px}
.site-header{max-width:1240px;padding:12px 32px}
.compare-card{padding:28px}
.comparison-main.compare-card{margin-top:0}
.compare-grid{grid-template-columns:minmax(0,1fr) clamp(260px,28%,340px);gap:24px}
.bar-chart{--chart-h:270px}
.site-brand{cursor:pointer}
@media(min-width:651px){.site-brand img{width:60px;height:50px}.site-brand strong{font-size:26px}.site-brand small{font-size:13px}}
.latest-tools{display:flex;align-items:center;gap:8px}
.refresh-btn{width:34px;height:34px;min-height:34px;padding:0;border-radius:9px;font-size:18px;line-height:34px;display:grid;place-items:center}
:fullscreen body,:-webkit-full-screen body{background:#f3f6fb}
@media(max-width:950px){.bar-chart{--chart-h:220px}}
@media(max-width:760px){.compare-card{padding:16px}.bar-chart{--chart-h:150px}}
@media(max-width:650px){.election-wrap{padding:12px 14px 20px}.site-header{padding:10px 14px}}
@media(max-width:950px){.compare-grid{grid-template-columns:minmax(0,1fr) 280px}}@media(max-width:760px){.compare-grid{grid-template-columns:1fr;gap:14px}}
.bar-name{overflow-wrap:normal;word-break:normal}

/* Menuja e llogarisë në kokë */
.account-menu{position:relative}
.account-button{display:flex;align-items:center;gap:10px;padding:5px 10px 5px 5px;min-height:44px;border:1px solid #dfe6f0;border-radius:999px;background:#fff;color:#152941;font-weight:600;box-shadow:0 2px 8px #20345008;transition:border-color .15s,box-shadow .15s}
.account-button:hover,.account-button[aria-expanded="true"]{border-color:#c4d2ea;box-shadow:0 6px 18px #2034501a}
.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#285bd5,#7b4bd1);color:#fff;font-size:13px;font-weight:800;letter-spacing:.3px;flex:none}
.account-text{display:grid;text-align:left;line-height:1.15;min-width:0}
.account-name{font-size:14px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-text small{font-size:11px;font-weight:600;color:#6c7c90}
.account-button .chev{color:#6c7c90;transition:transform .2s}
.account-button[aria-expanded="true"] .chev{transform:rotate(180deg)}
.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:240px;padding:6px;background:#fff;border:1px solid #dfe6f0;border-radius:14px;box-shadow:0 18px 44px #15294124;display:grid;gap:2px;transform-origin:top right;animation:menu-in .16s ease-out}
.account-dropdown[hidden]{display:none}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px) scale(.98)}}
.account-dropdown button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;min-height:42px;border-radius:9px;background:transparent;color:#244373;font-size:14px;font-weight:600;text-align:left}
.account-dropdown button:hover,.account-dropdown button:focus-visible{background:#f1f5fc;outline:none}
.account-dropdown button.selected{background:#e8efff;color:#2449b3}
.account-dropdown button.selected::after{content:'';margin-left:auto;width:7px;height:7px;border-radius:50%;background:#285bd5}
.account-dropdown svg{flex:none;color:currentColor;opacity:.85}
.account-dropdown hr{border:0;border-top:1px solid #edf1f7;margin:4px 6px}
.account-dropdown .logout-item{color:#ad2828}
.account-dropdown .logout-item:hover,.account-dropdown .logout-item:focus-visible{background:#fff0ef}
@media(max-width:650px){
 .account-button{padding:3px;gap:0;min-height:40px}
 .account-text,.account-button .chev{display:none}
 .avatar{width:34px;height:34px}
 .account-dropdown{min-width:220px}
}
@media(prefers-reduced-motion:reduce){.account-dropdown{animation:none}}
.site-header .actions{align-items:center}
.site-header .actions .account-button .account-name,.account-button .account-name{border:0;padding:0;margin:0;background:none;box-shadow:none;border-radius:0;font-size:14px;font-weight:700;color:#152941;align-self:auto}
.account-button{min-height:42px}
.account-dropdown{min-width:260px}
.account-dropdown button span{white-space:nowrap}
.account-dropdown{min-width:200px}

/* Pull to refresh (vetëm në aplikacionin e instaluar) */
html.pwa,html.pwa body{overscroll-behavior-y:contain}
.ptr{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 8px);z-index:60;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#285bd5;box-shadow:0 6px 20px #15294126;opacity:0;transform:translate(-50%,-56px);pointer-events:none}
.ptr.anim{transition:transform .25s ease,opacity .25s ease}
.ptr.ready{color:#1f9d6b}
.ptr.spin svg{animation:ptr-spin .8s linear infinite}
@keyframes ptr-spin{to{transform:rotate(360deg)}}

/* Pa zoom kur hapet tastiera: iPhone zmadhon fushat me shkronja nën 16px */
input:not([type=file]):not([type=color]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
.vote-entry input{font-size:24px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea,button{touch-action:manipulation}

/* Aplikimi i raportuesit */
.apply-card{max-width:760px}
.apply-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.apply-grid .apply-station{grid-column:1/-1}
.apply-grid label{margin:12px 0}
.apply-station small{font-size:12px;font-weight:600}
.hint-ok{color:#17784f}
.small-btn{padding:7px 12px;font-size:14px;min-height:34px}
.requested{display:grid;gap:3px;margin-bottom:8px}
.req-chip{justify-self:start;padding:3px 9px;border-radius:7px;font-size:12px;font-weight:700}
.req-chip.ok{background:#e7f6ef;color:#17784f}
.req-chip.warn{background:#fff4e0;color:#9a5b00}
.requested small{font-size:11.5px;color:#64748b}
select.changed{border-color:#e08a1e;background:#fffaf2}
@media(max-width:650px){.apply-grid{grid-template-columns:1fr}}
#applyNav.is-here{display:none}
.apply-hint{grid-column:1/-1;margin:-4px 0 4px;font-size:12px;font-weight:600}

/* Historia e dërgimeve */
.history-tools{display:flex;gap:8px;flex-wrap:wrap}
.history-tools button{padding:9px 14px;font-size:14px}
.history-filter{display:flex;align-items:center;gap:12px;margin:14px 0}
.history-filter select{max-width:320px}
.history-list{display:grid;gap:10px;max-height:640px;overflow:auto;padding-right:4px}
.history-item{border:1px solid #e3e9f2;border-radius:14px;padding:14px 16px;background:#fbfcff;display:grid;gap:10px}
.history-item.current{border-color:#c8d7f5;background:#fff}
.history-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.history-place{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.history-place strong{font-size:16px;color:#152941}
.history-place span{color:#64748b;font-size:14px}
.history-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;color:#64748b;font-variant-numeric:tabular-nums}
.history-type{padding:2px 8px;border-radius:999px;font-weight:700;font-size:11.5px}
.history-type.first{background:#e8efff;color:#2449b3}
.history-type.fix{background:#fff4e0;color:#9a5b00}
.history-type.now{background:#e7f6ef;color:#17784f}
.history-votes{display:flex;flex-wrap:wrap;gap:6px}
.vote-chip{display:inline-flex;gap:6px;align-items:baseline;padding:4px 9px;border-radius:8px;background:#f1f5fb;font-size:13px;color:#244373}
.vote-chip b{font-variant-numeric:tabular-nums;color:#152941}
.vote-chip.total{background:#152941;color:#c6d3e6}.vote-chip.total b{color:#fff}
.history-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.history-who{margin:0;font-size:13.5px;color:#475569;overflow-wrap:anywhere}
.history-who strong{color:#152941}
@media(max-width:650px){.history-filter{flex-direction:column;align-items:stretch}.history-filter select{max-width:none}.history-item{padding:12px}}
html.restoring #homePage{visibility:hidden}

/* Mesazhet e statusit: pezull sipër faqes, pa e lëvizur përmbajtjen */
.election-wrap #message{position:fixed;z-index:70;top:calc(env(safe-area-inset-top) + 12px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100% - 24px));margin:0;padding:10px 16px;border-radius:12px;box-shadow:0 12px 32px #15294126;font-size:14px;cursor:pointer;animation:msg-in .2s ease-out}
@keyframes msg-in{from{opacity:0;transform:translate(-50%,-8px)}}
/* Më pak tekst: hero vetëm me kartën e progresit, pa shënimin poshtë grafikonit */
.hero{grid-template-columns:1fr;padding:16px 0}
#completionNote{display:none}
#adminPage{padding-top:4px}
.history-filter{margin:0 0 14px;flex-wrap:wrap}
.history-filter #clearHistory{margin-left:auto}
@media(max-width:650px){.history-filter #clearHistory{margin-left:0}}
@media(prefers-reduced-motion:reduce){.election-wrap #message{animation:none}}
/* Renditja e panelit: Përdoruesit, Historia, kartat, Titulli */
#adminPage>.card:first-child{margin-top:0}
.history-filter{justify-content:space-between}
.history-list{max-height:min(560px,70vh)}
.site-settings{margin-bottom:0}

/* Rezultati i dërguar dhe konfirmimi */
.sent-card{max-width:760px;display:grid;gap:16px}
.sent-head{display:flex;align-items:center;gap:14px}
.sent-head strong{display:block;font-size:20px;color:#152941}
.sent-head small{color:#64748b;font-size:13px}
.sent-check{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e7f6ef;color:#17784f;font-size:22px;font-weight:800;flex:none}
.sent-votes{display:grid;gap:2px;border:1px solid #e7edf5;border-radius:12px;padding:6px 12px;background:#fbfcff}
.sent-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf1f7}
.sent-row:last-child{border-bottom:0}
.sent-row .party-logo{width:32px;height:32px;font-size:11px}
.sent-row .party-title{gap:10px}
.sent-row b{font-size:18px;font-variant-numeric:tabular-nums;color:#152941}
.sent-row.total strong{color:#475569}
.sent-row.total b{font-size:20px}
.sent-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sent-deadline{margin:0;color:#9a5b00;font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}
.sent-deadline.locked{color:#64748b;font-weight:500}
.form-actions{display:flex;gap:10px;flex-shrink:0}
.send-dialog{width:min(460px,calc(100% - 24px))}
.send-dialog .sent-votes{max-height:50vh;overflow:auto;margin:12px 0}
@media(max-width:650px){.sent-foot{flex-direction:column;align-items:stretch}.sent-foot button{width:100%}.form-actions{width:100%}.form-actions button{flex:1}}

/* Hyrja: Google i pari, pastaj "ose" dhe formulari */
.google-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1px solid #dfe6f0;color:#152941;margin-top:8px}
.google-btn:hover{background:#f7f9fd}
.or-divider{display:flex;align-items:center;gap:12px;margin:16px 0 4px;color:#94a3b8;font-size:13px}
.or-divider::before,.or-divider::after{content:'';flex:1;height:1px;background:#e3e9f2}

.municipality-toolbar{display:flex;align-items:center;gap:20px;margin:0 0 18px}.municipality-toolbar label{min-width:220px;margin:0}.pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin:12px 0;flex-wrap:wrap}.pager button{padding:8px 14px}.municipality-toolbar select,#superPanel select,#adminMunicipality{max-width:100%;width:100%}#superPanel form{max-width:680px;margin:24px 0}#superMunicipalities .entity-row,#municipalAdminList .entity-row{flex-wrap:wrap}#globalRequests .entity-row{gap:12px}@media(max-width:600px){.municipality-toolbar{display:block}.municipality-toolbar label{min-width:0}.municipality-toolbar span{display:block;margin-top:8px}.pager{justify-content:center}#superPanel .entity-row button{flex:1}}

.check-label{display:flex;align-items:center;gap:10px}.check-label input[type=checkbox]{width:20px;height:20px;min-height:20px}#superMunicipalities input{min-width:0;flex:1 1 180px}

/* Reserve the chart footprint before the first result: no collapsed placeholder. */
.main-chart{min-height:378px}.site-header .actions{min-height:48px}.site-brand strong{min-height:28px}
html:not(.results-ready) #partyTotals{min-height:378px;display:grid;align-items:center}
@media(max-width:950px){.main-chart,html:not(.results-ready) #partyTotals{min-height:328px}}
@media(max-width:760px){.main-chart,html:not(.results-ready) #partyTotals{min-height:258px}}
.municipality-toolbar #electionField{min-width:130px}.municipality-toolbar #electionField select{width:100%}
.election-row{flex-wrap:wrap;align-items:center}.election-row .election-year{width:96px;flex:none}.election-row .election-title{flex:1;min-width:180px}.election-row .status{align-self:center}.election-row small{flex-basis:100%}
.election-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.election-form label{margin:0}.election-form label:first-child{width:110px}.election-form label:nth-child(2){flex:1;min-width:200px}.election-form .check-label{display:flex;align-items:center;gap:8px;min-height:46px}.election-form .check-label input{width:auto;min-height:0}
@media(max-width:600px){.municipality-toolbar{display:grid;grid-template-columns:1fr 110px;gap:12px}.municipality-toolbar #electionField{min-width:0}.municipality-toolbar span{grid-column:1/-1;margin-top:0}.election-row .election-title{min-width:0;flex-basis:100%}.election-form label:first-child,.election-form label:nth-child(2){width:100%;flex-basis:100%}}
.election-row .election-kind{width:auto;flex:none}.national-parties{border:1px solid #dfe6f0;border-radius:12px;padding:14px;margin:0 0 12px;background:#fafcff;display:grid;gap:8px}.national-party{flex-wrap:wrap;align-items:center}.national-party input:not([type]),.national-party input[type=text]{flex:1;min-width:140px}.national-party input[type=color],.national-party-form input[type=color]{width:56px;height:42px;padding:3px}.national-party input[type=file],.national-party-form input[type=file]{font-size:12px;max-width:220px}.national-party-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:6px 0 0!important}.national-party-form input:first-child{flex:1;min-width:160px}.party-note{background:#eef3ff;border-radius:10px;padding:12px;font-size:13px}

.official-toggle{align-self:flex-end;min-height:46px;white-space:nowrap}.official-toggle.active{background:#285bd5;color:#fff;border-color:#285bd5}@media(max-width:600px){.municipality-toolbar .official-toggle{grid-column:1/-1;width:100%}}
/* Emrat e partive/kandidatëve shfaqen të plotë nën grafik (pa prerje). */
.bar-chart .bar-name,.bar-chart .bar-name{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;text-overflow:clip;max-width:100%;overflow-wrap:break-word;word-break:normal;hyphens:auto}
.bar-chart .bar-col{height:auto}
.bar-chart:not(.compact) .bar-col{grid-template-rows:auto var(--chart-h) auto auto;align-content:start}
.bar-chart:not(.compact){align-items:flex-start}

/* Full election labels, including municipal runoff, remain readable on mobile. */
.municipality-toolbar #electionField{min-width:280px}#electionList .election-round{width:auto;max-width:100%;flex:none}
@media(max-width:600px){.municipality-toolbar #electionField{grid-column:1/-1;min-width:0}.election-form #electionRoundField{width:100%}}

.election-scope{flex-basis:100%;border:1px solid #dfe6f0;border-radius:12px;padding:12px 14px;margin:0 0 12px;background:#fafcff;display:grid;gap:10px}.election-scope legend{font-weight:700;padding:0 4px}.scope-list{display:flex;flex-wrap:wrap;gap:8px 16px}.scope-item{display:flex;align-items:center;gap:6px;margin:0;font-size:14px}.scope-item input{width:auto;min-height:0}

/* Compact public station list; each party result stays on one modal row. */
.station-summary-table{width:100%;min-width:0;table-layout:fixed}.station-summary-table th:nth-child(1){width:28%}.station-summary-table th:nth-child(2){width:22%}.station-summary-table th:nth-child(3){width:28%}.station-summary-table th:nth-child(4){width:22%}.station-summary-table td{overflow-wrap:anywhere}.station-summary-table .status{display:inline-flex;align-items:center;white-space:nowrap;gap:4px}.station-summary-table button{min-height:44px}.station-party-result{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e7edf5}.station-party-result .party-logo{width:38px;height:38px}.station-party-result>span{min-width:0;overflow-wrap:anywhere}.station-party-result strong,.station-result-total strong{font-variant-numeric:tabular-nums;white-space:nowrap}.station-result-total{display:flex;justify-content:space-between;gap:16px;padding-top:20px}.station-results-dialog{width:min(620px,calc(100% - 24px))}.station-results-dialog h2{font-size:22px}
@media(max-width:600px){.station-summary-table th,.station-summary-table td{padding:12px 4px;font-size:12px}.station-summary-table .status{padding:6px;font-size:11px}.station-summary-table .cell-note{font-size:10px}.station-summary-table button{padding:8px;font-size:12px}.station-results-dialog{padding:18px}.station-party-result{font-size:13px;gap:9px}.station-summary-table th{white-space:normal}}

/* One summary card: figures first, reporting progress underneath. */
.results-summary{margin-top:20px;padding:24px 28px}.results-summary .overview-stats{border:0;border-radius:0;padding:4px 0 24px;background:transparent}.results-summary .overview-stats>div:first-child{padding-left:0}.results-summary .overview-stats>div:last-child{padding-right:0}.summary-progress{display:grid;gap:12px;border-top:1px solid #e7edf5;padding-top:18px}.summary-progress .status{justify-self:start}.summary-progress small{font-size:12px;color:#64748b}.summary-progress progress{display:block;width:100%;height:9px;margin:0}@media(max-width:650px){.results-summary{padding:20px}.results-summary .overview-stats{gap:22px 0}.results-summary .overview-stats>div{padding:0 12px}.results-summary .overview-stats>div:nth-child(odd){padding-left:0}.results-summary .overview-stats>div:nth-child(even){padding-right:0}}

/* Compact municipality/election controls, kept side by side on phones. */
.municipality-toolbar{display:flex;align-items:flex-end;gap:12px;margin-bottom:12px}.municipality-toolbar>label{display:block;min-width:0;width:190px;margin:0;font-size:12px;line-height:1.3}.municipality-toolbar #electionField{min-width:0;width:290px;grid-column:auto}.municipality-toolbar label select{display:block;width:100%;min-width:0;height:40px;min-height:40px;margin-top:5px;padding:7px 26px 7px 10px;font-size:14px;line-height:1.2;border-radius:9px;text-overflow:ellipsis}.municipality-toolbar .official-toggle{min-height:40px;padding:8px 12px;font-size:12px}
@media(max-width:600px){.municipality-toolbar{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:end;gap:8px;margin-bottom:12px}.municipality-toolbar>label,.municipality-toolbar #electionField{width:100%;min-width:0;grid-column:auto;font-size:11px}.municipality-toolbar label select{height:40px;min-height:40px;font-size:12px;padding:7px 20px 7px 8px;margin-top:4px}.municipality-toolbar .official-toggle{grid-column:1/-1;width:auto;justify-self:end;min-height:32px;padding:6px 10px}}

/* Desktop: leave room for the summary/progress card within the viewport. */
@media(min-width:761px){
 .site-header{padding-top:8px;padding-bottom:8px}.election-wrap{padding-top:8px}.municipality-toolbar{margin-bottom:8px}
 .compare-card{padding:16px 20px}.compare-grid{gap:20px;align-items:start}
 .main-chart,html:not(.results-ready) #partyTotals{min-height:calc(clamp(140px,calc(100dvh - 500px),270px) + 108px)}
 .main-chart .bar-chart{--chart-h:clamp(140px,calc(100dvh - 500px),270px);min-height:0}
 .latest-panel{padding:14px;gap:7px}.latest-body{gap:6px}.latest-place strong{font-size:21px}.latest-code{margin-top:4px;padding:3px 8px}
 .latest-chart .bar-chart{--chart-h:clamp(80px,calc(100dvh - 600px),170px);min-height:0}.compare-card #completionNote{margin-top:8px}
 .results-summary{margin-top:12px;padding:16px 22px}.results-summary .overview-stats{padding:0 0 14px}.results-summary .overview-stats strong{font-size:26px}.summary-progress{padding-top:12px;gap:8px}
}

/* Zgjedhje të njëkohshme: menuja e raportuesit dhe checkbox-et e krijimit. */
.report-elections{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.report-elections[hidden]{display:none}.report-elections .election-tab{flex:1 1 auto;min-width:140px;background:#fff;color:#1d2b45;border:1px solid #d6deea;border-radius:12px;font-weight:700}.report-elections .election-tab.selected{background:#285bd5;color:#fff;border-color:#285bd5}
.election-kinds{flex-basis:100%;border:1px solid #dfe6f0;border-radius:12px;padding:10px 14px;margin:0;display:flex;flex-wrap:wrap;gap:6px 18px}.election-kinds legend{font-weight:700;padding:0 4px}.election-kinds .check-label{min-height:36px;margin:0}.election-kinds .check-label input{width:auto;min-height:0}.election-group{flex-basis:100%}.history-type.election{background:#eef3fd;color:#285bd5}

/* iPhone: bounded header controls and wider cards without page sideways overflow. */
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip}
@media(max-width:650px){
 .site-header{width:100%;max-width:100%;box-sizing:border-box;padding:10px max(8px,env(safe-area-inset-right)) 10px max(8px,env(safe-area-inset-left));gap:8px}
 .site-header .site-brand{flex:1 1 0;min-width:0;overflow:hidden;gap:7px}.site-header .site-brand img{flex:0 0 32px;width:32px;height:32px}.site-header .site-brand strong{font-size:14px}.site-header .site-brand small{font-size:10px}
 .site-header .actions{width:auto;min-width:0;flex:0 0 auto;gap:6px;margin-left:0}.site-header .actions .push-toggle{display:inline-flex;justify-content:center;align-items:center;flex:0 0 36px;width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px;padding:0;font-size:17px;overflow:hidden}.site-header .push-label{display:none}
 .site-header .actions #loginLink{flex:none;white-space:nowrap;min-height:36px;padding:7px 10px;font-size:13px;box-sizing:border-box}
 .election-wrap{width:100%;max-width:100%;box-sizing:border-box;padding:10px max(8px,env(safe-area-inset-right)) 20px max(8px,env(safe-area-inset-left));min-width:0}
 #homePage,.compare-grid,.main-chart,#partyTotals,.latest-body,.latest-chart{min-width:0;max-width:100%}.election-wrap .card{min-width:0;max-width:100%;box-sizing:border-box;padding:14px 10px}.compare-grid{gap:12px}.latest-panel{padding:12px 10px;box-sizing:border-box}.results-summary{padding:16px 12px!important}
 .bar-chart{min-width:0;max-width:100%}.bar-chart .bar-col{min-width:0}.latest-meta{flex-wrap:wrap}.municipality-toolbar{min-width:0;max-width:100%}.account-dropdown{max-width:calc(100vw - 16px);box-sizing:border-box}
}

@media(max-width:650px){.site-header{align-items:center}.site-header .site-brand{align-items:center}.site-header .site-brand>span{display:flex;align-items:center;min-height:36px}.site-header .site-brand small{display:none}.site-header .site-brand strong{min-height:0;line-height:1.2;margin:0;font-size:clamp(12px,3.3vw,16px)}.site-header .actions{min-height:36px;align-items:center}}

/* Public filters belong to Home, not the administration panel. */
body:has(#adminPage:not([hidden])) .municipality-toolbar{display:none}

/* Administration starts directly with its controls, without empty banners. */
#adminPage>.card:first-child{padding:12px 18px;margin-top:0}#adminPage>.card:first-child>label{margin:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}#adminMunicipality{width:auto;min-width:180px;max-width:100%;padding:8px 12px;min-height:40px}
#superPanel{padding:18px}#superPanel #electionForm{margin:0 0 16px;max-width:none}#electionList:empty{display:none}#adminPage>.section-space{margin-top:14px}
@media(max-width:650px){#adminPage>.card:first-child,#superPanel{padding:12px}#adminPage>.card:first-child>label{gap:6px}#adminMunicipality{flex:1;min-width:140px}}

@media(max-width:650px){#homePage .filters:has(#villageFilter){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;min-width:0}#homePage .filters #villageFilter,#homePage .filters #statusFilter{width:100%;min-width:0;max-width:100%;height:40px;min-height:40px;padding:7px 20px 7px 8px;font-size:12px;text-overflow:ellipsis}#homePage .top:has(#villageFilter){gap:12px;margin-bottom:14px}}

/* Municipality team: administrators first, scoped users second, global tools last. */
.team-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.team-heading h2{margin:3px 0!important}.team-admin-list{display:grid;gap:10px}.team-admin-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #dfe6f0;border-radius:12px;background:#fafcff}.team-admin-card .status{margin-top:8px}.team-empty{margin:4px 0 12px}.municipality-team #allRequests{margin-top:12px}.global-admin-tools>summary{cursor:pointer;font-weight:700;padding:2px 0;min-height:32px}.global-admin-body{padding-top:18px}.team-dialog{width:min(600px,calc(100% - 24px))}.team-dialog h2{font-size:20px}.team-dialog .message{font-size:13px}.team-dialog details{border-top:1px solid #e7edf5;padding-top:14px;margin-top:18px}.team-dialog summary{cursor:pointer;color:#a32424}.team-dialog #municipalAdminForm{margin-top:18px}.team-dialog label{margin:16px 0}.team-dialog .pager{font-size:12px}.team-dialog #teamReviewEmail{overflow-wrap:anywhere;font-size:14px}#teamGlobalDialog .entity-row{flex-wrap:wrap}
@media(max-width:650px){.team-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.team-admin-card{align-items:flex-start;flex-wrap:wrap;padding:12px}.team-dialog{padding:18px}.team-dialog .dialog-footer{flex-wrap:wrap}.team-dialog .dialog-footer button{flex:1}.team-heading h2{font-size:20px}}

.my-reporting{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e7edf5;margin-top:14px;padding-top:14px}.my-reporting .actions{gap:8px}@media(max-width:650px){.my-reporting{align-items:flex-start;flex-direction:column;gap:10px}}

/* One compact, paginated municipal team; member rows open the common editor. */
.team-table{table-layout:fixed;width:100%}.team-table th:first-child{width:42%}.team-table th:nth-child(2){width:21%}.team-table th:nth-child(3){width:20%}.team-table th:nth-child(4){width:17%}.team-table th,.team-table td{padding:9px 8px;overflow-wrap:anywhere}.team-table tbody tr{cursor:pointer;outline-offset:-2px}.team-table tbody tr:hover,.team-table tbody tr:focus-visible{background:#f3f6fb}.team-table .team-member-name{background:none;color:#183658;padding:0;margin:0;min-height:0;border:0;border-radius:0;text-align:left;font-size:14px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.team-table .cell-note{font-size:11px;margin-top:3px}.team-table .status{padding:4px 8px;font-size:11px}.team-pager{margin:12px 0 0;font-size:12px}.team-pager button{min-width:36px;min-height:36px;padding:6px}.municipality-team .team-heading{margin-bottom:8px}.municipality-team #municipalAdminList{display:none}
@media(max-width:650px){#adminPage .team-table{display:table;table-layout:fixed;width:100%}#adminPage .team-table thead{display:table-header-group}#adminPage .team-table tbody{display:table-row-group}#adminPage .team-table tr{display:table-row;width:auto;padding:0;margin:0;border:0;background:transparent}#adminPage .team-table th,#adminPage .team-table td{display:table-cell;width:auto;padding:9px 4px;border:0;border-bottom:1px solid #e7edf5;font-size:11px;vertical-align:middle}#adminPage .team-table td::before{display:none;content:none}#adminPage .team-table th:first-child{width:40%}#adminPage .team-table th:nth-child(2){width:21%}#adminPage .team-table th:nth-child(3){width:22%}#adminPage .team-table th:nth-child(4){width:17%}#adminPage .team-table td .team-member-name{min-height:0;margin:0;padding:0;font-size:12px;display:block}.team-table .cell-note{font-size:10px}.team-table .status{padding:4px 5px;font-size:10px;white-space:normal}.team-pager{justify-content:flex-end}}

/* Application: names, municipality/station, then role on every screen size. */
#applyForm .apply-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}#applyForm .apply-grid>label{min-width:0;margin:4px 0;gap:6px}#applyForm .apply-grid input,#applyForm .apply-grid select{min-width:0;width:100%;box-sizing:border-box}#applyForm .apply-role-field,#applyForm #stationHint{grid-column:1/-1}
@media(max-width:650px){#applyForm .apply-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 10px}#applyForm .apply-grid input,#applyForm .apply-grid select{font-size:16px;padding:10px 8px;min-height:44px}#applyForm .apply-grid select{text-overflow:ellipsis}#applyForm .apply-grid>label{font-size:12px;margin:0}#applyForm .form-footer{padding-top:14px;margin-top:16px}}

.application-actions{justify-content:space-between;flex-wrap:wrap;gap:10px}.application-actions #deleteMyApplication{font-size:13px}@media(max-width:650px){.application-actions{display:flex;flex-direction:column;align-items:stretch}.application-actions button{width:100%}}

#applyForm .apply-role-field{grid-column:auto}#applyForm #stationHint{grid-column:1/-1}

#applyForm .application-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px}#applyForm .application-actions button{width:auto;min-width:0;flex:0 1 auto}#applyForm .application-actions #applySubmit{margin-left:auto}@media(max-width:650px){#applyForm .application-actions button{font-size:12px;padding:10px 9px;min-height:44px}}

.team-dialog .team-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-dialog .team-review-grid label{min-width:0;margin:0}.team-dialog .team-review-grid select{min-width:0;max-width:100%;padding-left:10px;padding-right:24px}.team-dialog .team-review-grid{margin:16px 0}

html.auth-routing main{visibility:hidden}

.election-workflow{display:grid;gap:16px;margin:0}.election-workflow .election-year-field{max-width:130px;margin:0}.election-workflow fieldset{margin:0;padding:12px;border:1px solid #dce5f0;border-radius:12px}.election-workflow .election-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.election-workflow .check-label{margin:0;display:flex;align-items:center;gap:8px;font-size:14px}.election-workflow input[type=checkbox]{width:18px;height:18px;flex:none}.election-workflow .scope-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;max-height:260px;overflow:auto}.election-workflow #createRoundField{max-width:260px;margin:0}.workflow-footer{display:flex;justify-content:flex-end}.working-elections{display:grid;gap:12px;margin-top:20px}.working-election{border:1px solid #dce5f0;border-radius:12px;padding:14px}.working-election-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.working-election-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.municipality-settings{margin-top:20px;border-top:1px solid #e2e9f2;padding-top:12px}.municipality-settings>summary{cursor:pointer;font-size:14px}.municipality-settings>.entity-list{margin-top:12px}.national-parties{border:1px solid #dce5f0;border-radius:12px;padding:14px}.election-workflow [hidden]{display:none!important}#partyForm[inert]{opacity:.5}@media(max-width:650px){.election-workflow .election-kinds{grid-template-columns:1fr;gap:12px}.election-workflow .scope-list{grid-template-columns:repeat(2,minmax(0,1fr))}.working-election{padding:12px}.working-election-heading{align-items:flex-start}.workflow-footer button{width:100%}}

#partyFields{border:0;padding:0;margin:0;min-width:0;display:contents}

/* Entity lists occupy the remaining card height, regardless of form length. */
@media(min-width:651px){#adminPage .admin-grid>.card{display:flex;flex-direction:column;height:clamp(640px,85dvh,820px);min-height:0}#adminPage .admin-grid>.card>h2,#adminPage .admin-grid>.card>form,#adminPage .admin-grid>.card>.party-note{flex:none}#adminPage .admin-grid>.card>.entity-list{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding-bottom:4px}#adminPage .admin-grid .entity-row{flex-shrink:0}}

.party-election-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.party-election-tabs button{width:auto!important;flex:1}.party-election-tabs button.selected{background:#285bd5;color:white}

#reportPage .page-heading{margin:16px 0}#reportPage #reportTitle{font-size:clamp(18px,2.5vw,24px);font-weight:700;line-height:1.3;margin:0}#reportPage #reportInfo[hidden]{display:none}#reportPage #deadlineInfo{display:none}#reportPage .vote-fields{grid-template-columns:1fr;gap:10px}#reportPage .vote-entry{display:grid;grid-template-columns:minmax(0,1fr) clamp(84px,24vw,120px);align-items:center;gap:14px;padding:12px;margin:0}#reportPage .vote-entry .party-title{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}#reportPage .vote-entry .party-title strong{max-width:100%;font-size:15px;line-height:1.35;overflow-wrap:anywhere}#reportPage .vote-entry .party-logo{flex:none;width:40px;height:40px}#reportPage .vote-entry input{width:100%;min-width:0;margin:0;font-size:20px;padding:10px;min-height:48px;align-self:center}#reportPage #votesForm{padding:14px}#reportPage #votesForm .form-footer{margin-top:14px;justify-content:flex-end}#reportPage .sent-card{padding:18px}.sent-foot{align-items:center}@media(max-width:650px){#reportPage .vote-entry{gap:10px;padding:10px}#reportPage .vote-entry .party-title strong{font-size:14px}#reportPage .page-heading{margin:12px 0}#reportPage #votesForm{padding:10px}}

.combined-report-group{display:grid;gap:10px;min-width:0}.combined-group-title{font-size:18px;margin:4px 0 6px}.combined-group-title small{display:block;font-size:12px;font-weight:400;margin-top:3px}#sentVotes .combined-report-group+ .combined-report-group,#sendList .combined-report-group+ .combined-report-group{margin-top:18px;padding-top:14px;border-top:1px solid #dce5f0}

#reportPage #votesForm:has(#voteFields>.combined-report-group){background:transparent;border:0;box-shadow:none;padding:0}#reportPage #voteFields>.combined-report-group{background:#fff;border:1px solid #dfe6f0;border-radius:16px;padding:14px}#reportPage #voteFields:has(>.combined-report-group){gap:18px}#reportPage #voteFields>.combined-report-group>.combined-group-title{margin:0 0 4px}@media(max-width:650px){#reportPage #voteFields>.combined-report-group{padding:10px}}

.station-result-group+.station-result-group{margin-top:18px;padding-top:16px;border-top:1px solid #dce5f0}.station-result-group-title{font-size:16px;margin:0 0 10px}.station-results-dialog{width:min(640px,calc(100% - 24px))}

.team-dialog .team-review-grid .team-review-role{grid-column:1/-1}

.history-groups{display:grid;gap:12px}.history-vote-group{display:grid;gap:7px}.history-vote-group>strong{font-size:14px}

#historyList .history-item{display:grid;grid-template-columns:minmax(130px,160px) minmax(0,1fr) auto minmax(90px,125px) 50px;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;margin:0 0 7px}#historyList .history-place{display:block;min-width:0}#historyList .history-place strong{display:block;font-size:13px;white-space:nowrap}#historyList .history-place span{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#historyList .history-groups{display:flex;gap:14px;min-width:0;overflow-x:auto;align-items:center;scrollbar-width:thin}#historyList .history-vote-group{display:flex;align-items:center;gap:7px;flex:none;white-space:nowrap}#historyList .history-vote-group>strong{font-size:12px}#historyList .history-votes{flex-wrap:nowrap;gap:4px}#historyList .vote-chip{font-size:12px;padding:4px 6px;gap:4px;white-space:nowrap}#historyList .history-meta{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex-wrap:nowrap;font-size:11px;white-space:nowrap}#historyList .history-meta .election,#historyList .history-meta .now{display:none}#historyList .history-who{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;margin:0}#historyList .history-who>span{display:none}#historyList .history-who strong{font-size:12px}#historyList .history-item>button{padding:7px;min-height:40px;width:50px;margin:0;font-size:12px}#historyList .history-type{font-size:10px;padding:2px 6px}@media(max-width:650px){#historyList .history-item{grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;padding:10px}#historyList .history-place{grid-column:1;grid-row:1}#historyList .history-place strong,#historyList .history-place span{display:inline;font-size:12px}#historyList .history-place span{margin-left:5px;white-space:normal}#historyList .history-meta{grid-column:2;grid-row:1;font-size:10px}#historyList .history-item>button{grid-column:3;grid-row:1;width:44px;min-height:44px}#historyList .history-groups{grid-column:1/-1;grid-row:2;gap:12px;padding-bottom:3px}#historyList .history-who{display:none}#historyList .history-vote-group>strong{font-size:11px}#historyList .vote-chip{font-size:11px;padding:4px 5px}}

.history-mobile-top,.history-mobile-identity{display:none}#historyList .history-item{cursor:pointer}#historyList .history-item:focus-visible{outline:3px solid #9bb8ff;outline-offset:2px}.history-detail-dialog{width:min(620px,calc(100% - 24px));padding:24px;max-height:calc(100dvh - 28px);overflow-y:auto}.history-detail-dialog h2{font-size:20px;line-height:1.3}.history-detail-dialog #historyDetailInfo{line-height:1.5;margin:12px 0 18px}.history-detail-group{border:1px solid #e0e7f1;background:#fafcff;border-radius:14px;padding:16px;margin-top:14px}.history-detail-group h3{margin:0 0 10px;font-size:18px}.history-detail-vote,.history-detail-total{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #e7edf5}.history-detail-vote .party-title{min-width:0;gap:10px}.history-detail-vote .party-title strong{overflow-wrap:anywhere;font-size:14px}.history-detail-vote .party-logo{width:36px;height:36px;flex:none}.history-detail-vote>strong{flex:none;font-variant-numeric:tabular-nums}.history-detail-total{border:0;padding:16px 0 0;font-size:16px}@media(max-width:650px){#historyList .history-item{grid-template-columns:minmax(0,1fr) 52px;grid-template-rows:auto auto;padding:12px;gap:9px 10px;border:1px solid #dce5f0;border-radius:12px;background:#fff}#historyList .history-item>.history-place,#historyList .history-item>.history-groups,#historyList .history-item>.history-meta,#historyList .history-item>.history-who{display:none}#historyList .history-mobile-top{grid-row:1;grid-column:1;display:flex;align-items:center;gap:10px;min-width:0}#historyList .history-mobile-top time{color:#60718a;font-size:12px;white-space:nowrap}#historyList .history-mobile-top .history-type{font-size:11px;padding:4px 8px}#historyList .history-item>button{grid-row:1;grid-column:2;width:52px;min-height:40px;border-radius:9px;padding:8px;font-size:12px}#historyList .history-mobile-identity{display:flex;grid-row:2;grid-column:1/-1;align-items:center;gap:6px 10px;min-width:0;font-size:12px;line-height:1.4}#historyList .history-mobile-identity>strong:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#historyList .history-mobile-identity>span{color:#64748b}#historyList .history-mobile-identity>strong:last-child{white-space:nowrap;font-size:12px}.history-detail-dialog{padding:18px}.history-detail-dialog h2{font-size:18px}.history-detail-group{padding:12px}.history-detail-vote{padding:12px 0}}

@media(min-width:651px){#historyList .history-item{grid-template-columns:auto minmax(0,1fr) 52px;gap:20px;padding:10px 14px}#historyList .history-mobile-top{display:flex;align-items:center;gap:12px;white-space:nowrap}#historyList .history-mobile-top time{font-size:12px;color:#64748b;font-variant-numeric:tabular-nums}#historyList .history-mobile-top .history-type{font-size:11px}#historyList .history-mobile-identity{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,1fr) auto;align-items:center;gap:16px;font-size:13px;min-width:0}#historyList .history-mobile-identity>strong:first-child,#historyList .history-mobile-identity>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#historyList .history-mobile-identity>span{color:#64748b}#historyList .history-mobile-identity>strong:last-child{white-space:nowrap}#historyList .history-item>button{width:52px}}

:disabled,[aria-disabled="true"],[inert]{cursor:default!important}

#historyList .history-item{border:1.5px solid #b8cce8;border-left:4px solid #4978cb;border-radius:14px;background:linear-gradient(115deg,#ffffff 65%,#f7faff);box-shadow:0 3px 10px #214c8810;padding:12px 16px;margin-bottom:10px;transition:border-color .15s,box-shadow .15s}#historyList .history-item:hover{border-color:#779ed7;box-shadow:0 4px 14px #214c8819}#historyList .history-mobile-top time{font-size:13px;font-weight:500;color:#61738c}#historyList .history-mobile-top .history-type{font-size:12px;padding:5px 10px;line-height:1.25}#historyList .history-mobile-identity>strong:first-child{font-size:16px;font-weight:700;color:#172e4c}#historyList .history-mobile-identity>span{font-size:15px;font-weight:600;color:#536d8d}#historyList .history-mobile-identity>strong:last-child{font-size:13px;font-weight:700;background:#eaf1fc;color:#28549a;border:1px solid #d6e3f6;border-radius:8px;padding:6px 9px}#historyList .history-item>button{border:1px solid #f7d7d5;border-radius:9px;font-size:13px;min-height:40px}@media(max-width:650px){#historyList .history-item{padding:12px 13px;gap:12px 10px;grid-template-columns:minmax(0,1fr) 56px}#historyList .history-mobile-top{gap:10px}#historyList .history-item>button{width:56px;min-height:40px}#historyList .history-mobile-identity{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding-top:11px;border-top:1px solid #e1e9f5}#historyList .history-mobile-identity>strong:first-child{font-size:16px;line-height:1.4}#historyList .history-mobile-identity>span{font-size:14px}#historyList .history-mobile-identity>strong:last-child{font-size:12px;padding:6px 8px}}@media(max-width:380px){#historyList .history-mobile-identity{gap:6px}#historyList .history-mobile-identity>strong:first-child{font-size:15px}#historyList .history-mobile-identity>span{font-size:13px}#historyList .history-mobile-identity>strong:last-child{font-size:11px;padding:5px 6px}}

/* Rifreskimi pa dridhje: me sesion të ruajtur "Kyçu" fshihet derisa serveri ta konfirmojë llogarinë. */
html.has-session #loginLink{display:none!important}

/* Njoftimet: çelës me madhësi fikse (pa lëvizje të kokës kur ndryshon gjendja) + udhëzimi për iPhone. */
.site-header .actions .push-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;flex:none;white-space:nowrap;padding:6px 10px 6px 12px;min-height:34px}
.push-toggle .push-icon{font-size:15px;line-height:1}.push-toggle .push-switch{position:relative;flex:none;width:30px;height:18px;border-radius:9px;background:#c9d2e0;transition:background .2s}
.push-toggle .push-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.push-toggle.on{background:#fff;color:inherit}.push-toggle.on .push-switch{background:#1f9d6b}.push-toggle.on .push-switch::after{transform:translateX(12px)}.push-toggle.on.paused .push-switch{background:#e08a1e}.push-toggle.busy{opacity:.65}
@media(max-width:650px){.site-header .actions .push-toggle{flex:0 0 auto;width:auto;min-width:0;max-width:none;height:36px;min-height:36px;padding:0 8px;gap:6px;font-size:15px}.site-header .actions .push-toggle .push-label{display:none}}
@media(prefers-reduced-motion:reduce){.push-toggle .push-switch,.push-toggle .push-switch::after{transition:none}}
.ios-push-dialog{max-width:380px}.ios-push-dialog h2{margin:0 0 6px}.ios-steps{margin:14px 0 4px;padding:0;list-style:none;counter-reset:s;display:grid;gap:10px}.ios-steps li{counter-increment:s;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dfe6f0;border-radius:12px;background:#fafcff}.ios-steps li::before{content:counter(s);flex:none;width:24px;height:24px;border-radius:50%;background:#285bd5;color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}.ios-steps li>span:first-of-type{flex:1}

/* Logoja në kokë: e njëjta lartësi me butonin e llogarisë (avatarin), në PC dhe celular. */
.site-header .site-brand img{flex:0 0 auto;width:auto;height:54px;max-width:72px;object-fit:contain}
@media(max-width:650px){.site-header .site-brand img{flex:0 0 auto;width:auto;height:54px;max-width:72px}}

/* Titulli pak më lart dhe poshtë tij etiketa gri Njësia6.com (PC dhe celular). */
.site-header .site-brand>span{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-width:0;min-height:0}
.site-header .site-brand strong{line-height:1.15;margin:0;min-height:0;max-width:100%}
.site-header .site-brand small.brand-site{display:block;margin:0;color:#7b8798;font-size:13px;font-weight:600;line-height:1.2;letter-spacing:.2px}
@media(max-width:650px){.site-header .site-brand>span{display:flex;min-height:0}.site-header .site-brand small.brand-site{display:block;font-size:11px}}

/* Etiketa Njesia6.com: pak më e madhe dhe më e hapur horizontalisht. */
.site-header .site-brand small.brand-site{font-size:15px;letter-spacing:1.6px}
@media(max-width:650px){.site-header .site-brand small.brand-site{font-size:12.5px;letter-spacing:1.2px}}

/* Etiketa Njesia6.com me të njëjtin font si titulli (i trashë), vetëm më e vogël dhe gri. */
.site-header .site-brand small.brand-site{font-family:inherit;font-weight:800;font-size:15px;letter-spacing:.5px;color:#8592a5;line-height:1.15;text-transform:none}
@media(max-width:650px){.site-header .site-brand small.brand-site{font-size:12.5px;letter-spacing:.4px}}
