 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table{min-width:0!important;width:100%!important;table-layout:auto!important}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .table-scroll{max-height:none!important;overflow:visible!important;border:0!important}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table tbody{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))!important;padding:0 16px 16px!important;gap:12px}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px;padding:14px!important;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:12px;align-items:start}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td{grid-column:1/-1;width:100%!important;min-width:0!important;padding:0!important;background:transparent!important;border:0!important;color:var(--text);font:400 12px/1.6 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td::before{font:500 10px/1.4 system-ui!important;letter-spacing:.3px;margin-bottom:3px;color:var(--muted)}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td:first-child{font:650 13px/1.6 system-ui!important;padding-bottom:9px!important;border-bottom:1px solid var(--border)!important}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td:first-child::before{display:none}
 #overview #vekaletRows td:nth-child(3),#overview #vekaletRows td:nth-child(4){grid-column:auto;font-variant-numeric:tabular-nums}
 #overview #vekaletRows td:nth-child(5)::before,#overview :is(#vekaletRows,#missingMobileRows,#mebWarningRows,#mebComparisonRows) td:last-child::before{display:none}
 #overview #vekaletRows td:nth-child(6){padding-top:6px!important;border-top:1px solid var(--border)!important}
 #overview #vekalet-section .directory-table .action-group{display:flex!important;flex-direction:row!important;gap:8px!important}
 #overview #vekalet-section .directory-table .action-group .button{flex:1;min-width:0!important;min-height:44px!important;font-size:12px!important;white-space:normal!important}
 #overview #missingMobileRows td:nth-child(2),#overview #missingMobileRows td:nth-child(3){grid-column:auto}
 #overview #missingMobileRows td:last-child .button{width:100%;margin-top:3px}
 #overview #mebWarningRows td:last-child{display:flex!important;flex-wrap:wrap;gap:8px}
 #overview #mebWarningRows td:last-child .button{flex:1 1 120px;min-width:0;white-space:normal;min-height:44px;font-size:12px}
 #overview #mebComparisonRows td:nth-child(2),#overview #mebComparisonRows td:nth-child(3){grid-column:auto}
 #overview #mebComparisonRows td:last-child .button{width:100%}

/* Admin tools share the directory's spacing, typography and touch targets. */
#adminDirectoryActions{display:flex;flex-wrap:wrap;gap:9px;padding:0 16px 14px}
#adminDirectoryActions .button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;font:600 12px/1.4 system-ui;white-space:normal;text-align:center}
#adminDirectoryActions #topAdd{margin:0!important;padding:10px 14px!important}
#adminDirectoryActions #rehberMebSync{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--border)!important;box-shadow:none!important}
.contact-selection-tools{padding:0 16px 10px;font:500 12px/1.5 system-ui;color:var(--muted)}
.contact-selection-tools label{display:inline-flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
.contact-selection-tools input,.contact-card-select input{width:19px;height:19px;accent-color:var(--accent,#2563eb);cursor:pointer}
.contact-card-select{display:grid;place-items:center;width:36px;min-width:36px;height:40px;cursor:pointer;flex:none;margin:-3px -7px 0 0}
.field-caption{display:block;line-height:1.5}.field-caption em{display:inline!important;margin-left:3px;font-style:normal}
.modal-dialog,.access-dialog{color:var(--text,#253954)}
@media(max-width:790px){
 #overview #contacts-section>.panel-heading{display:flex!important;flex-wrap:nowrap;align-items:center;gap:9px}
 #overview #contacts-section>.panel-heading>div:first-child{flex:1;min-width:0}
 #overview #contacts-section>.panel-heading>.rehber-sync-actions{flex:none;min-width:0;width:auto!important;display:flex!important;margin:0!important}
 #adminDirectoryActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 13px;gap:8px}
 #adminDirectoryActions .button{width:100%!important;min-width:0!important;padding:10px 8px!important;font-size:12px!important}
 .contact-selection-tools{padding:0 12px 8px}
 .contact-card-select{width:44px;min-width:44px;height:44px;margin:-5px -9px 0 -3px}
 #overview #bulkBar{margin:0 12px 12px!important;padding:12px!important;gap:10px;border-radius:10px;position:sticky;top:64px;z-index:35;background:var(--surface,#fff);box-shadow:0 4px 16px #152b4d15}
 #bulkBar>div{display:flex;flex-wrap:wrap;gap:7px;width:100%}#bulkBar .button{flex:1;min-width:0;white-space:normal;font-size:12px}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-director-paste)>.panel-heading{padding:17px 15px!important;display:flex;flex-wrap:wrap;gap:12px}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-director-paste)>.panel-heading h2,#overview #meb-director-paste h3{font:700 19px/1.4 system-ui!important;letter-spacing:-.3px}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-director-paste)>.panel-heading p{font:400 12px/1.7 system-ui!important}
 #overview .rehber-sync-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 #overview #vekalet-section .rehber-sync-actions{width:100%}
 #overview #vekalet-section .rehber-sync-actions>.button{flex:1;min-width:0;font-size:12px}
 #overview #vekalet-section .table-tools{gap:12px!important;padding:0 12px 14px!important}
 #overview #vekalet-section .table-tools>label:not(.search-field){display:flex;flex-direction:column;gap:6px;width:100%;font:500 12px/1.5 system-ui;color:var(--muted)}
 #overview #vekalet-section select{width:100%!important;min-width:0!important;height:44px!important;padding:0 12px!important;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:400 16px/1.5 system-ui!important}
 #overview .director-command{margin-top:16px!important;border-radius:12px!important;overflow:hidden}
 #overview .director-command-head{padding:16px!important;gap:12px!important;align-items:stretch!important}
 #overview .director-command-title{min-width:0;gap:10px}
 #overview .director-command-title h2{font:700 19px/1.4 system-ui!important}
 #overview .director-command-title p{font:400 12px/1.7 system-ui!important}
 #overview .director-command-title>div{min-width:0}
 #overview .director-command #proShowWarnings{width:100%;font-size:12px;min-height:44px}
 #overview .director-command-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0 12px!important}
 #overview .dir-metric{min-width:0!important;padding:12px!important}
 #overview .dir-metric span,#overview .dir-metric small{white-space:normal;overflow-wrap:anywhere}
 #overview .director-command-foot{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px!important;line-height:1.7}
 #overview #proWarningStatus{flex:1 1 100%;min-width:0;overflow-wrap:anywhere;font-size:12px}
 #overview #proRefreshWarnings{min-height:44px;margin:0!important;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}
 #overview #meb-reports{padding:12px!important;border-radius:12px!important;margin-top:12px!important}
 #overview #meb-reports .meb-insights{padding:0!important}
 #overview .meb-insights-head{display:flex;flex-wrap:wrap;gap:9px}
 #overview .meb-insights-head h3{font:700 18px/1.5 system-ui!important}
 #overview .meb-insights-head .button{width:100%}
 #overview :is(#mebWarningSummary,#mebComparisonSection p,#meb-reports summary){font-size:12px!important;line-height:1.7;overflow-wrap:anywhere}
 #overview #mebComparisonSection h3{font-size:16px;line-height:1.5}
 #overview .director-metrics-disclosure>summary{white-space:normal!important;padding:12px 15px!important;line-height:1.6;font-size:12px}
 #overview #meb-director-paste .director-import-body{padding:0 15px 18px!important}
 #overview #meb-director-paste textarea{min-height:160px!important;max-width:100%;border:1px solid var(--border)!important;background:var(--surface);color:var(--text);font-size:16px!important}
 #overview #meb-director-paste label{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
 #overview #meb-director-paste .meb-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 #overview #meb-director-paste .meb-actions .button{width:100%;white-space:normal;min-height:44px;font-size:12px}
 #overview :is(#directorPasteStatus,#directorPreview){font-size:12px;line-height:1.7;overflow-wrap:anywhere;max-width:100%;min-width:0}
 #overview .admin-preview-table{display:block;width:100%!important;min-width:0!important}
 #overview .admin-preview-table thead{display:none}
 #overview .admin-preview-table tbody{display:grid;gap:10px}
 #overview .admin-preview-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
 #overview .admin-preview-table td{display:block;grid-column:1/-1;padding:0!important;white-space:normal;overflow-wrap:anywhere;font:400 12px/1.6 system-ui}
 #overview .admin-preview-table td::before{content:attr(data-label);display:block;font:550 10px/1.5 system-ui;color:var(--muted)}
 #overview .admin-preview-table td:first-child{font-weight:650}
 #overview .admin-preview-table td:nth-child(4),#overview .admin-preview-table td:nth-child(5){grid-column:auto}
 .modal-backdrop:not([hidden]){align-items:flex-start!important;padding-top:max(12px,env(safe-area-inset-top))!important}
 .modal-dialog{max-height:calc(var(--app-visual-height,100dvh) - 24px - env(safe-area-inset-top))!important;padding:18px 16px!important;border-radius:16px!important;font:400 14px/1.6 system-ui}
 .modal-top{position:sticky;top:-18px;z-index:2;background:var(--surface,#fff);padding-top:4px;padding-bottom:12px}
 .modal-top h2{font:700 21px/1.4 system-ui!important;letter-spacing:-.4px}
 .modal-top p{font:400 12px/1.7 system-ui;color:var(--muted)}
 .modal-top>.icon-button{min-width:44px!important;min-height:44px!important;font-size:22px}
 .modal-dialog .form-grid{gap:15px!important;grid-template-columns:minmax(0,1fr)!important}
 .modal-dialog .form-grid>label,.modal-dialog .full-label{min-width:0;font:550 12px/1.6 system-ui}
 .modal-dialog :is(input:not([type=hidden]),select){min-height:46px!important;height:auto;font:400 16px/1.5 system-ui!important}
 .modal-dialog textarea{font:400 16px/1.6 system-ui!important;min-height:80px}
 .modal-dialog .form-grid small{font:400 11px/1.6 system-ui;color:var(--muted)}
 .modal-actions{bottom:-18px!important;gap:10px;padding:12px 0!important;z-index:3;border-top:1px solid var(--border);margin-top:16px;background:var(--surface)!important}
 .modal-actions>.button{flex:1;min-width:0;font:600 13px/1.5 system-ui;min-height:44px}
 #categoryModal .full-label{display:flex;flex-direction:column;gap:8px}
}
@media(min-width:600px) and (max-width:790px){#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table tbody{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media print{#adminDirectoryActions,.contact-selection-tools{display:none!important}}

/* The administrative record lists use compact cards at every screen size. */
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table{display:block!important}
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td{display:block!important}
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td[data-label]::before{content:attr(data-label);display:block}
#overview #vekalet-section #vekaletRows td:nth-child(3),#overview #vekalet-section #vekaletRows td:nth-child(4){grid-column:auto!important}
#overview #missing-mobile-section #missingMobileRows td:nth-child(2),#overview #missing-mobile-section #missingMobileRows td:nth-child(3){grid-column:auto!important}
#overview #meb-reports #mebComparisonRows td:nth-child(2),#overview #meb-reports #mebComparisonRows td:nth-child(3){grid-column:auto!important}
#overview :is(#vekalet-section,#missing-mobile-section)>.panel-heading{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;padding:20px 20px 16px!important}
#overview :is(#vekalet-section,#missing-mobile-section)>.panel-heading>div:first-child{flex:1 1 280px;min-width:0}
#overview :is(#vekalet-section,#missing-mobile-section)>.panel-heading h2{font:700 20px/1.45 system-ui!important;letter-spacing:-.3px;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#overview :is(#vekalet-section,#missing-mobile-section) .section-kicker{display:none}
#overview :is(#vekalet-section,#missing-mobile-section)>.panel-heading p{font:400 12px/1.7 system-ui;max-width:520px;margin-top:6px}
#overview #vekalet-section .rehber-sync-actions{display:flex;gap:8px;flex-wrap:wrap}
#overview #vekalet-section .rehber-sync-actions .button{min-height:44px;font:600 12px/1.5 system-ui;border-radius:9px;white-space:normal}
#overview #vekalet-section .table-tools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,.6fr);gap:12px!important;padding:0 16px 16px!important;align-items:end}
#overview #vekalet-section .table-tools>.search-field{width:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important}
#overview #vekalet-section .table-tools>label:not(.search-field){display:flex;flex-direction:column;gap:6px;min-width:0;font:500 11px/1.5 system-ui;color:var(--muted)}
#overview #vekalet-section select{height:44px!important;min-height:44px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0 12px!important;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:400 13px/1.5 system-ui!important}
#overview #vekaletStatus{grid-column:1/-1;font:400 12px/1.5 system-ui;margin:0!important;color:var(--muted)}
#overview :is(#vekalet-section,#missing-mobile-section) .small-count{font:600 11px/1.5 system-ui;white-space:normal}
@media(max-width:599px){
 #overview #vekalet-section .table-tools{grid-template-columns:minmax(0,1fr)!important}
 #overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table tbody{grid-template-columns:minmax(0,1fr)!important;padding:0 12px 12px!important}
 #overview #vekalet-section select{font-size:16px!important}
}

#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) :is(#vekaletRows,#missingMobileRows,#mebWarningRows,#mebComparisonRows) td:first-child::before,
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) :is(#vekaletRows,#missingMobileRows,#mebWarningRows,#mebComparisonRows) td:last-child::before,
#overview #vekalet-section #vekaletRows td:nth-child(5)::before{display:none!important}
#overview :is(#vekalet-section,#missing-mobile-section,#meb-reports) .directory-table td[colspan]{padding:12px!important;border:0!important;color:var(--muted);font-weight:400!important}
