/* SMP mobile-first visual refinement v8.1.19.
   Intentionally limited to handheld widths; no schema or business-state changes. */
@media (max-width: 767px) {
  body .smp-app { --smp-mobile-gap: 11px; font-size: 14px; }
  body .smp-app, body .smp-app *, body .smp-app *::before, body .smp-app *::after { box-sizing: border-box; }
  body .smp-app .smp-main {min-width:0!important; padding:10px 10px calc(100px + env(safe-area-inset-bottom,0px))!important;}
  body .smp-app .smp-toolbar {min-height:56px!important; padding:10px 12px!important; margin-bottom:10px!important; border-radius:17px!important; gap:8px!important;}
  body .smp-app .smp-toolbar h1 {font-size:21px!important;line-height:1.15!important;margin:0!important;}
  body .smp-app .smp-toolbar-eyebrow {font-size:9px!important;letter-spacing:.07em!important;}
  body .smp-app .smp-toolbar-actions {gap:5px!important;flex:0 0 auto!important;}
  body .smp-app .smp-toolbar-actions .smp-icon-button, body .smp-app .smp-toolbar-actions .smp-account-logout, body .smp-app .smp-toolbar-actions .smp-primary {width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:7px!important;border-radius:11px!important;}
  body .smp-app .smp-page {min-width:0!important;}
  body .smp-app .smp-card,body .smp-app .smp-hero {padding:15px!important;border-radius:19px!important;margin-bottom:10px!important;min-width:0!important;}
  body .smp-app .smp-hero-copy h2 {font-size:23px!important;line-height:1.15!important;margin:3px 0 6px!important;}
  body .smp-app .smp-hero-copy p {font-size:13px!important;line-height:1.45!important;margin:0 0 10px!important;max-width:46ch!important;}
  body .smp-app .smp-eyebrow {font-size:10px!important;line-height:1.25!important;}
  body .smp-app .smp-work-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important;}
  body .smp-app .smp-work-actions button {min-width:0!important;width:100%!important;min-height:51px!important;padding:9px 7px!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important;text-align:center!important;border-radius:12px!important;}
  body .smp-app .smp-big-search {min-width:0!important;min-height:48px!important;border-radius:13px!important;}
  body .smp-app .smp-big-search input {font-size:16px!important;min-width:0!important;min-height:46px!important;}
  body .smp-app .smp-section-head {gap:9px!important;margin-bottom:11px!important;}
  body .smp-app .smp-section-head h2,body .smp-app .smp-section-head h3 {font-size:21px!important;line-height:1.18!important;margin:3px 0!important;}
  body .smp-app .smp-section-head p {font-size:13px!important;line-height:1.4!important;margin:5px 0 0!important;}
  body .smp-app .smp-filterbar {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;}
  body .smp-app .smp-filterbar .smp-search-control {grid-column:1/-1!important;min-height:47px!important;}
  body .smp-app .smp-filterbar select {min-width:0!important;width:100%!important;min-height:44px!important;font-size:12px!important;padding-left:10px!important;}
  body .smp-app .smp-filterbar .smp-filter-toggle {grid-column:1/-1!important;min-height:42px!important;padding:8px 12px!important;}
  body .smp-app .smp-filter-presets {display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;gap:7px!important;padding:3px 0 8px!important;scrollbar-width:none;}
  body .smp-app .smp-filter-presets button {flex:0 0 auto!important;min-height:35px!important;padding:7px 11px!important;white-space:nowrap!important;font-size:12px!important;}
  body .smp-app .smp-segmented button {min-height:35px!important;}
  body .smp-app .smp-stat-grid {gap:8px!important;}
  body .smp-app .smp-stat-grid>* {min-width:0!important;padding:12px!important;}
  body .smp-app .smp-dashboard-grid {gap:10px!important;}
  body .smp-app .smp-live-results {min-width:0!important;}
  body .smp-app .smp-human-row,body .smp-app .smp-assignment-row,body .smp-app .smp-live-results>*,body .smp-app .smp-person-result {min-width:0!important;max-width:100%!important;overflow-wrap:break-word!important;}
  body .smp-app .smp-form input,body .smp-app .smp-form select,body .smp-app .smp-form textarea {font-size:16px!important;max-width:100%!important;}
  body .smp-app .smp-drawer .smp-drawer-head {padding:12px 14px!important;min-height:auto!important;}
  body .smp-app .smp-drawer .smp-drawer-head h2 {font-size:20px!important;line-height:1.2!important;overflow-wrap:anywhere!important;}
  body .smp-app .smp-drawer .smp-drawer-body {padding:12px 12px calc(30px + env(safe-area-inset-bottom,0px))!important;overflow-x:hidden!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-context,body .smp-app .smp-candidate-picker-drawer .smp-candidate-explain {font-size:12px!important;line-height:1.35!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-first {padding:11px!important;gap:8px!important;margin-bottom:8px!important;border-radius:14px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-row {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;flex-wrap:nowrap!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-main-search {min-width:0!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-main-search input {min-height:46px!important;height:46px!important;font-size:16px!important;padding-left:36px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-main-search>span {left:10px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-row .smp-primary {min-height:46px!important;min-width:0!important;width:auto!important;max-width:123px!important;padding:0 10px!important;font-size:12px!important;white-space:normal!important;line-height:1.15!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-tools {gap:6px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-tools button {min-height:35px!important;padding:6px 10px!important;font-size:12px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-result {padding:12px!important;border-radius:15px!important;gap:10px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-heading strong {font-size:16px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-facts {gap:8px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-actions {gap:8px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-mobile-candidate-actions button {min-height:44px!important;padding:8px 6px!important;}
  body .smp-app .smp-candidate-picker-drawer .smp-candidate-results-head {margin:7px 0!important;}
  body .smp-app input:focus {scroll-margin-bottom:160px;}
}
@media(max-width:359px){
 body .smp-app .smp-work-actions {gap:6px!important;}
 body .smp-app .smp-work-actions button {font-size:11px!important;}
 body .smp-app .smp-candidate-picker-drawer .smp-candidate-search-row .smp-primary {max-width:98px!important;font-size:11px!important;}
}
