/* Public statistics and log only. Member workspace remains unchanged. */
body:is(.page-log,.page-stats) #content-scroll{display:block;overflow-y:auto;overflow-x:hidden;min-height:0}
body:is(.page-log,.page-stats) #content-scroll>main{display:block;height:auto;min-height:0;max-height:none;overflow:visible;padding-block:8px}
body:is(.page-log,.page-stats) #content-scroll>main>.panel{display:block;height:auto;min-height:0;max-height:none;overflow:visible;padding:10px 12px}
body:is(.page-log,.page-stats) .st-chartbody,body:is(.page-log,.page-stats) .st-scroll{max-height:none;height:auto;overflow:visible;min-height:0}
.ps-root{display:grid;gap:8px;min-width:0;font-size:13px;color:#26352d}
.ps-root p{margin:4px 0}
.ps-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;border:0;margin:0;padding:0}
.ps-nav a{background:#eeeee4;color:#26352d;border:1px solid #d5d7c8;border-radius:5px;text-decoration:none;padding:6px 12px;font-weight:650}
.ps-nav a.active{background:#263b30;color:white}
.ps-filters{justify-content:center;align-items:end;gap:6px 8px;padding:2px 0 5px}
.ps-heading{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap;min-width:0}
.ps-heading small,.ps-records small,.ps-heat-foot{font-size:11px;color:#526455}
.ps-box,.ps-external{background:#faf9f2;border:1px solid #d6d7c8;border-radius:6px;padding:7px 9px;min-width:0}
.ps-external{display:grid;gap:5px}
.ps-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ps-provider{display:flex;align-items:center;gap:5px 12px;flex-wrap:wrap;padding:6px 8px;border:1px solid #cddbe5;border-radius:4px;background:#e5edf3}
.ps-provider+ .ps-provider{background:#f5ecd4;border-color:#dfcfab}
.ps-provider a{font-size:12px;color:#345a42;font-weight:650;white-space:nowrap}
.ps-kpis>div{padding:5px 8px;justify-content:center;text-align:center}
.ps-kpis strong{font-size:clamp(16px,1.8vw,22px);white-space:nowrap}
.ps-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.ps-bars{display:grid;gap:3px;margin-top:5px}
.ps-bars .st-bar{grid-template-columns:75px minmax(0,1fr) 30px;font-size:12px}
.ps-bars .st-track{height:9px}
.ps-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ps-records>div{display:grid;gap:2px;align-content:start;background:#e8ecdf;border-radius:5px;padding:6px 9px;min-width:0;overflow-wrap:anywhere}
.ps-year{display:flex;align-items:center;gap:5px;margin:0;font-size:11px}
.ps-year label{display:flex;align-items:center;gap:4px;margin:0}
.ps-year select,.ps-year button{margin:0;padding:3px 7px;width:auto;min-height:0;font-size:12px}
.ps-heat{display:grid;grid-template-columns:22px repeat(var(--weeks),minmax(0,1fr));gap:3px;margin:7px 0 4px;max-width:100%;min-width:0}
.ps-week,.ps-weekdays{display:grid;grid-template-rows:14px repeat(7,12px);gap:3px;min-width:0}
.ps-weekdays{font-size:9px;line-height:12px;color:#526455}
.ps-month{font-size:10px;line-height:14px;color:#526455;white-space:nowrap;position:relative;z-index:1;pointer-events:none}
.ps-day{display:block;border-radius:2px;min-width:0;outline-offset:1px}
.ps-day:hover,.ps-day:focus-visible{outline:2px solid #243b30;z-index:2}
.ps-day.blank{background:transparent}
.ps-root .level-0{background:#e2e6da}.ps-root .level-1{background:#c5d5b6}.ps-root .level-2{background:#9db681}.ps-root .level-3{background:#6c925b}.ps-root .level-4{background:#365b3d}
.ps-heat-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 10px}
.ps-heat-foot span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.ps-heat-foot i{display:inline-block;width:11px;height:11px;border-radius:2px}
.ps-recent .st-table{margin-top:5px;max-width:100%;overflow-x:auto;overflow-y:hidden;max-height:none}
.ps-recent table{table-layout:auto}
.ps-recent .st-table td,.ps-recent .st-table th{padding:4px 7px;line-height:1.35}
.ps-recent .st-table td:last-child{white-space:normal;overflow-wrap:anywhere}
.ps-recent .st-table tr:nth-child(even){background:#f0f2e9}
.ps-pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:5px;font-size:11px;color:#526455}
.ps-pager[hidden],.ps-root tr[hidden]{display:none!important}
.ps-pager button{min-width:30px;padding:2px 7px;margin:0}
.ps-more summary{cursor:pointer;font-weight:650}
.ps-more[open]>.st-charts{margin-top:7px}
.ps-root a:focus-visible,.ps-root button:focus-visible{outline:2px solid #98763b;outline-offset:2px}
@media(min-width:850px) and (max-height:800px){.ps-root{gap:5px}.ps-box,.ps-external{padding:5px 8px}.ps-week,.ps-weekdays{grid-template-rows:12px repeat(7,9px);gap:2px}.ps-heat{gap:2px;margin:4px 0}.ps-bars{gap:1px}.ps-bars .st-bar{line-height:1.2}.ps-records>div{padding:4px 7px}}
@media(max-width:849px){.ps-duo,.ps-providers{grid-template-columns:1fr}.ps-records{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-heat{gap:2px;grid-template-columns:18px repeat(var(--weeks),minmax(0,1fr))}.ps-month{font-size:8px}.ps-kpis strong{white-space:normal}}
@media(max-width:560px){.ps-heat{grid-template-columns:repeat(27,minmax(0,1fr));gap:2px 2px;row-gap:8px}.ps-weekdays{display:none}.ps-week{grid-template-rows:12px repeat(7,9px);gap:2px}.ps-records{grid-template-columns:1fr}.ps-provider{gap:6px}.ps-root .st-bar{grid-template-columns:minmax(65px,1fr) minmax(30px,1.3fr) 32px}.ps-root .st-table{font-size:11px}}
@media(min-width:850px) and (max-height:800px){.ps-root{gap:4px}.ps-kpis>div{padding-block:4px}.ps-heat-foot{line-height:1.2}}

/* v0.8.1: same callsign switch, compact overview, separate paginated detail. */
.ps-root .ps-filters {display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:0;padding:0 0 3px;}
.ps-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:6px;min-width:0}
.ps-root .ps-switch{border:0;padding:0;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.ps-switch legend{font-size:11px;color:#526455;padding:0;margin:0 0 2px}
.ps-root .ps-switch label{position:relative;display:inline-flex;flex:0 0 auto;cursor:pointer;min-width:0;margin:0}
.ps-root .ps-switch input[type=radio]{position:absolute;width:1px;height:1px;min-width:0;max-width:1px;opacity:0;padding:0;margin:0}
.ps-switch span,.ps-categories a{display:block;border:1px solid #d5d7c8;background:#eeeee4;color:#26352d;padding:5px 12px;border-radius:4px;font-size:12px;font-weight:650;line-height:1.2;text-decoration:none}
.ps-switch input:checked+span,.ps-categories a.active{background:#263b30;color:white;border-color:#263b30}
.ps-switch input:focus-visible+span{outline:2px solid #98763b;outline-offset:2px}
.ps-filter-fields{display:flex;align-items:end;justify-content:flex-start;flex-wrap:wrap;gap:4px 7px;min-width:0}
.ps-root .ps-filter-fields label{min-width:0;flex:0 1 auto}
.ps-root .ps-filter-fields select,.ps-root .ps-filter-fields input{max-width:220px;width:auto;min-width:0;height:28px;padding-block:2px}
.ps-root .ps-filter-fields button,.ps-root .ps-filter-fields .st-reset{height:28px;padding-block:2px}
.ps-root .ps-nav a{padding:5px 10px;font-size:12px;line-height:1.2}
.ps-providers.ps-single{grid-template-columns:1fr}
.ps-provider.ps-provider-ol110sv{background:#f5ecd4;border-color:#dfcfab}
.ps-provider.ps-provider-ok1rsv{background:#e5edf3;border-color:#cddbe5}
.ps-root [data-page-row][hidden]{display:none!important}
.ps-categories{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.ps-categories a{padding:4px 7px}
.ps-detail-bars .st-bar{grid-template-columns:minmax(100px,1fr) minmax(30px,1.3fr) 40px;line-height:1.3}
.ps-detail-bars .st-bar>span:first-child{overflow-wrap:anywhere;min-width:0}
.ps-overview-chart .ps-bars{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.ps-overview-chart .st-bar{grid-template-columns:minmax(34px,1fr) minmax(12px,1.3fr) 23px;gap:4px;line-height:1.25}
.ps-overview-chart .st-bar>span:first-child{overflow-wrap:anywhere}
.ps-root .st-note{line-height:1.2;margin:0}
.ps-root .ps-pager{padding-top:3px}
@media(min-width:850px){.ps-root .ps-detail-bars{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.ps-root .ps-filter-fields input[name=st_call]{width:130px}.ps-root .ps-filter-fields input[type=date]{width:125px}.ps-root .ps-filter-fields select{width:190px}}
@media(min-width:850px) and (max-height:900px){
 body:is(.page-log,.page-stats) #content-scroll>main{padding-block:5px}
 body:is(.page-log,.page-stats) #content-scroll>main>.panel{padding:7px 10px}
 .ps-root{gap:4px;font-size:12px;line-height:1.25}
 .ps-box,.ps-external{padding:4px 7px}
 .ps-root .ps-kpis>div{padding:3px 6px;gap:1px}
 .ps-root .ps-kpis strong{font-size:17px;line-height:1.1}
 .ps-week,.ps-weekdays{grid-template-rows:11px repeat(7,8px);gap:2px}
 .ps-weekdays,.ps-month{line-height:10px}
 .ps-heat{gap:2px;margin:4px 0}
 .ps-records>div{padding:4px 7px;gap:1px}
 .ps-provider{padding:4px 6px}
 .ps-root .st-note{font-size:10px}
 .ps-recent .st-table td,.ps-recent .st-table th{padding:3px 6px;line-height:1.2}
}
@media(max-width:849px){.ps-root .ps-filter-fields label{flex:1 1 125px}.ps-root .ps-filter-fields input,.ps-root .ps-filter-fields select{width:100%;max-width:none}.ps-root .ps-toolbar{align-items:flex-start}.ps-overview-chart .ps-bars{grid-template-columns:1fr}}

/* v0.8.2: Log filters stay visible; one scrollable results region on desktop. */
.ps-log-results { display:grid; gap:inherit; min-width:0; }
@media (min-width:850px) and (min-height:600px) {
 body.page-log #content-scroll { display:flex; flex-direction:column; min-height:0; overflow:hidden; scrollbar-gutter:stable; }
 body.page-log #content-scroll > main { flex:1 1 0; display:flex; flex-direction:column; height:100%; min-height:0; max-height:100%; overflow:hidden; }
 body.page-log #content-scroll > main > .sectionhead { flex:0 0 auto; }
 body.page-log #content-scroll > main > .panel { flex:1 1 0; display:flex; flex-direction:column; min-height:0; max-height:none; overflow:hidden; }
 .page-log .ps-root { flex:1 1 0; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
 .page-log .ps-root > :not(.ps-log-results) { flex:0 0 auto; }
 .page-log .ps-log-results { flex:1 1 0; min-height:0; display:block; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; padding-right:4px; }
 .page-log .ps-log-results > * + * { margin-top:5px; }
 .page-log .ps-recent .st-table { overflow:visible; height:auto; max-height:none; }
 .page-log .ps-recent .st-table thead th { position:sticky; top:0; z-index:1; background:#e8ecdf; }
 .page-log .ps-log-results:focus-visible { outline:2px solid #98763b; outline-offset:-2px; }
}

/* v0.8.4: overview summary is structurally outside the scrolling table.
   Override generic shell and table rules only for the public log. */
@media (min-width:850px) and (min-height:600px) {
 body.page-log #content-scroll { display:flex!important; flex-direction:column; min-height:0!important; overflow:hidden!important; }
 body.page-log #content-scroll > main { display:flex!important; flex-direction:column; flex:1 1 0; height:100%!important; min-height:0!important; max-height:100%!important; overflow:hidden!important; }
 body.page-log #content-scroll > main > .sectionhead { flex:0 0 auto; }
 body.page-log #content-scroll > main > .panel { display:flex!important; flex-direction:column; flex:1 1 0; min-height:0!important; max-height:none!important; overflow:hidden!important; }
 body.page-log #content-scroll .ps-root.ps-log-fixed { display:flex!important; flex-direction:column; flex:1 1 0; min-height:0!important; overflow:hidden!important; }
 body.page-log #content-scroll .ps-log-fixed > :not(.ps-recent) { flex:0 0 auto; }
 body.page-log #content-scroll .ps-log-fixed > .ps-recent { display:flex!important; flex-direction:column; flex:1 1 0; min-height:0!important; max-height:none!important; overflow:hidden!important; }
 body.page-log #content-scroll .ps-log-fixed > .ps-recent > :not(.st-table) { flex:0 0 auto; }
 body.page-log #content-scroll .ps-log-fixed > .ps-recent > .st-table { display:block!important; flex:1 1 0; min-height:0!important; height:auto!important; max-height:none!important; overflow:auto!important; scrollbar-gutter:stable; overscroll-behavior:contain; }
 body.page-log .ps-log-fixed .ps-recent table { border-collapse:separate; border-spacing:0; }
 body.page-log .ps-log-fixed .ps-recent thead th { position:sticky; top:0; z-index:2; background:#e8ecdf; }
 body.page-log .ps-log-fixed .ps-recent > .st-table:focus-visible { outline:2px solid #98763b; outline-offset:-2px; }
}
