/* v1.2.43: denser content within the original shared shell; no copied navigation. */
body[data-density="compact"]{--panel-gap:12px}
body[data-density="compact"] .content{padding:18px 20px}
body[data-density="compact"] .content>.panel,
body[data-density="compact"] .content>.workspace-page>.panel{padding:16px;margin-bottom:12px}
body[data-density="compact"] .content :is(.page-head,.panel-head){gap:12px;margin-bottom:12px}
body[data-density="compact"] .content :is(.page-head h1,.workspace-page h1){font-size:23px;line-height:1.25;margin:0 0 5px}
body[data-density="compact"] .content h2{font-size:18px;line-height:1.35}
body[data-density="compact"] .content :is(.page-head,.panel-head)>div>p{margin:5px 0 0;font-size:13px}
body[data-density="compact"] .content .filter-bar{gap:10px}
body[data-density="compact"] .content .table-wrap :is(th,td){padding:10px 12px}
body[data-density="compact"] .sidebar .nav-items>a{padding-top:8px;padding-bottom:8px}
.workspace-context-nav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid var(--line,#dce5ed)}
.workspace-context-nav>a{display:inline-flex;align-items:center;min-height:36px;padding:7px 11px;border:1px solid var(--line,#dce5ed);border-radius:8px;color:var(--text,#233e54);background:var(--panel,#fff);font-size:13px;font-weight:600;text-decoration:none}
.workspace-context-nav>a.active{color:var(--primary,#1261b4);border-color:var(--primary,#1261b4);background:#edf5ff}
.workspace-context-nav>a:focus-visible,.source-tool-card:focus-visible{outline:3px solid #168f9a;outline-offset:3px}
.source-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.source-tool-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line,#dce5ed);border-radius:10px;text-decoration:none;color:var(--text,#233e54);min-width:0;background:var(--panel,#fff)}
.source-tool-card:hover{border-color:var(--primary,#1261b4);background:#f6faff}
.source-tool-card strong{font-size:15px;line-height:1.35}.source-tool-card>span{font-size:13px;line-height:1.5;color:var(--muted,#61758a)}
.source-tool-card .source-tool-open{font-weight:600;color:var(--primary,#1261b4);margin-top:auto}
.source-center-head .card-actions{align-items:center;flex-wrap:wrap}.source-center-head form{margin:0}
@media(max-width:1100px){.source-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body[data-density="compact"] .content{padding:12px 10px 85px}.source-tool-grid{grid-template-columns:1fr}.workspace-context-nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:10px}.workspace-context-nav>a{flex:0 0 auto;white-space:nowrap;min-height:44px}.source-tool-card{padding:14px}.source-center-head{display:block}.source-center-head .card-actions{margin-top:12px}body[data-density="compact"] .content :is(.page-head h1,.workspace-page h1){font-size:21px}body[data-density="compact"] .content .table-wrap :is(th,td){padding:10px}}
@media print{.workspace-context-nav{display:none}}

/* Population source inputs: scoped to the existing admin workspace. */
body[data-page="population_sources"] .population-source-confirm{display:flex;align-items:flex-start;gap:9px;line-height:1.5;font-weight:500}
body[data-page="population_sources"] .population-source-confirm input[type="checkbox"]{width:17px;height:17px;flex:0 0 17px;margin:2px 0 0;min-height:0}
body[data-page="population_sources"] .panel code{overflow-wrap:anywhere}
body[data-page="population_sources"] .table-wrap details{max-width:24rem;overflow-wrap:anywhere}

/* v1.2.64: bounded population-upload controls, independent of global button display. */
form[data-population-upload] [hidden]{display:none!important}
form[data-population-upload] .full-width{grid-column:1/-1}
form[data-population-upload]>button{justify-self:start;min-height:40px}
form[data-population-upload] p[role="status"]{overflow-wrap:anywhere;margin:6px 0;color:#435269}
