.atac-detail { --mi-header: 50px; color:#333; font-family:var(--multisaid-font); }
[data-atac-browser] .atac-status { color:#435260; margin:12px 0; }
[data-atac-browser] > .atac-status { margin:32px auto; padding:0 24px; max-width:1200px; }
.atac-detail .mi-index { overflow-y:auto; }
.atac-detail .mi-index svg { flex:none; }
.atac-nav-group > h3 {
    margin:16px 16px 6px; color:#4f6472; font:600 12px/1.4 var(--multisaid-font); letter-spacing:.02em;
}
.atac-group-links { display:grid; gap:2px; }
.atac-detail .mi-hero { scroll-margin-top:50px; }
.atac-detail .mi-study-value, .atac-detail :is(code,dd,h1) { overflow-wrap:anywhere; }
.atac-detail .mi-qc > details { margin-top:16px; }
.atac-detail .atac-panel { margin-bottom:40px; scroll-margin-top:70px; min-width:0; }
.atac-detail .atac-panel:last-child { min-height:calc(100vh - 80px); }
.atac-panel > h2 { font-size:24px; line-height:1.3; font-weight:500; margin:0 0 20px; }
.atac-card { box-sizing:border-box; max-width:100%; min-width:0; padding:24px 28px; margin-bottom:16px; border:1px solid #ddd; border-radius:4px; }
.atac-card h3 { margin:0 0 16px; font-size:17px; font-weight:600; color:#303e48; }
.atac-card details { margin:16px 0 0; }
.atac-detail summary { cursor:pointer; font-weight:500; }
.atac-card .atac-note { font-size:14px; color:#4f606b; margin:12px 0; line-height:1.55; }
.atac-card > .atac-note:only-child { margin:0; }
.atac-card svg { display:block; width:100%; max-height:220px; background:#f7fafb; }
.atac-card svg text { fill:#42515a; font:12px var(--multisaid-font); }
.atac-card .mi-facts { margin-bottom:14px; }
.atac-controls { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; margin:12px 0; }
.atac-controls label { display:grid; gap:4px; max-width:100%; font-size:13px; color:#53616b; }
.atac-detail :is(.atac-controls input,.atac-controls select,.atac-controls button,.atac-status button,.atac-grid button) { font:inherit; border:1px solid #aebcc4; border-radius:4px; background:#fff; color:#274c63; padding:7px 10px; }
.atac-controls input { width:270px; max-width:100%; box-sizing:border-box; }
.atac-controls select { max-width:100%; }
.atac-detail button { cursor:pointer; }
.atac-detail button:disabled { opacity:.48; cursor:default; }
.atac-detail .atac-controls button:not([type=button]) { background:#316a97; color:white; border-color:#316a97; }
.atac-grid { max-width:100%; overflow:auto; max-height:540px; margin:16px 0 8px; }
.atac-grid table { min-width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.atac-grid :is(th,td) { white-space:nowrap; padding:7px 9px; font:normal 13px/1.4 var(--multisaid-font); color:#36434b; border-bottom:1px solid #e3e7e9; text-align:left; }
.atac-grid th { background:#f4f7f8; font-weight:600; position:sticky; top:0; }
.atac-grid button { padding:3px 6px; }
.atac-count { display:block; min-width:2.5em; text-align:right; padding:3px 7px; border-radius:2px; }
.atac-count.level-0 { background:#f4f7f9; }.atac-count.level-1 { background:#e1edf5; }.atac-count.level-2 { background:#c4ddeb; }.atac-count.level-3 { background:#a4c9e3; }.atac-count.level-4 { background:#76adcf; }.atac-count.level-5 { background:#337ab7; color:white; }
.atac-umap { width:100%; background:#f8fafb; }
.atac-umap canvas { display:block; width:100%; height:auto; }
.atac-legend { display:flex; align-items:center; gap:4px 14px; flex-wrap:wrap; font-size:13px; padding:8px 0; }
.atac-legend i { display:inline-block; border-radius:50%; width:9px; height:9px; margin-right:5px; }
.atac-legend .atac-note { margin:0; }
.atac-card .mi-facts { grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr)); }
@media(max-width:1199px){
    .atac-detail .mi-index { overflow:visible; }
    .atac-detail :is(.mi-hero,.atac-panel) { scroll-margin-top:134px; }
    .atac-nav-group { flex:none; }
    .atac-nav-group + .atac-nav-group { margin-left:16px; }
    .atac-nav-group > h3 { position:sticky; left:10px; width:max-content; margin:4px 10px 0; }
    .atac-group-links { display:flex; }
}
@media(max-width:600px){
    .atac-card { padding:16px; }
    .atac-controls label { width:100%; }
    .atac-controls :is(input,select) { width:100%; }
    .atac-detail .mi-inner h1 { font-size:30px; }
}

.atac-detail .atac-use { display:block; color:#705d39; font-size:12px; padding:4px 12px; }
@media(max-width:1199px){
    .atac-detail .mi-index { display:grid; grid-template-columns:minmax(0,1fr) auto; }
    .atac-detail .mi-back { grid-row:1; grid-column:1; }
    .atac-detail .atac-use { grid-row:1; grid-column:2; padding:3px 8px; }
    .atac-detail .mi-index nav { grid-column:1/-1; min-width:0; }
}
