.ulf47-panel{box-sizing:border-box;border:1px solid #d4b772;border-radius:7px;background:#122d4c;color:#f9ebc7;padding:12px;margin:10px 0 14px;font:13px/1.4 system-ui,sans-serif;max-width:100%;overflow-wrap:anywhere}
.ulf47-panel *, .ulf47-market-filter *{box-sizing:border-box}
.ulf47-panel h2{font-size:18px!important;line-height:1.3!important;color:#ffe3a2!important;margin:7px 0!important}
.ulf47-panel p{color:#dbe7f4;margin:7px 0}
.ulf47-top{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;color:#ffe3a2;font-size:10px;letter-spacing:.07em;font-weight:900}
.ulf47-roles,.ulf47-checks,.ulf47-snapshot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.ulf47-role,.ulf47-snapshot>div{min-width:0;border:1px solid #7089a1;border-radius:5px;background:#0c223b;padding:8px}
.ulf47-role strong,.ulf47-role span,.ulf47-role small,.ulf47-snapshot strong,.ulf47-snapshot small{display:block;overflow-wrap:anywhere}
.ulf47-role strong{font-size:13px;color:white}.ulf47-role span{font-weight:bold;color:#e9cf90;font-size:11px}.ulf47-role small,.ulf47-snapshot small{font-size:11px;color:#c5d5e5}
.ulf47-snapshot strong{font-size:25px;color:#fff0b8}
.ulf47-panel summary{cursor:pointer;font-weight:bold}
.ulf47-panel button,.ulf47-market-filter button{min-height:44px;border-radius:4px;border:1px solid #eed7a5;background:#e5c77c;color:#142b48;font-weight:850;font-size:12px;padding:8px 10px;cursor:pointer}
.ulf47-panel button:focus-visible,.ulf47-market-filter button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ulf47-checks button{width:100%;white-space:normal}
.ulf47-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ulf47-foot button:last-child{background:transparent;color:#f5e5c6}
.ulf47-market-filter{background:#122c49;border:1px solid #d6b772;border-radius:5px;margin:9px 0;padding:9px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#f5e3b5}
.ulf47-market-filter button{margin-left:auto}
.ulf47-market-filter p{flex-basis:100%;margin:0;color:#d5e2ef;font-size:11px}
#ceo106Staff .ceo106-person[hidden]{display:none!important}
#ceo106Staff .ulf47-status{display:inline-block;margin-right:5px;padding:3px 5px;color:#dff5da;background:#24533c;font-weight:800;font-size:10px}
#ceo106Staff .ceo106-person[data-ulf47-status="unavailable"] .ulf47-status{background:#4b4a4a;color:#f0e6d4}
@media(max-width:560px){.ulf47-panel{padding:9px}.ulf47-roles,.ulf47-snapshot{grid-template-columns:minmax(0,1fr)}.ulf47-checks{grid-template-columns:minmax(0,1fr)}.ulf47-market-filter button{margin-left:0}}


/* V15.61: HR market only — compact mobile layout, consistent with the new
   department UI. No hiring, payroll, saves, or game-state changes. */
body.ulf26-department-page #ceo106Staff{
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:13px;line-height:1.45;
}
body.ulf26-department-page #ceo106Staff .ceo106-summary{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;
 margin:12px 0;
}
body.ulf26-department-page #ceo106Staff .ceo106-summary .stat{
 min-width:0;min-height:0;padding:10px 6px;text-align:center;
 border:1px solid #d1ad69;border-radius:6px;
}
body.ulf26-department-page #ceo106Staff .ceo106-summary .stat strong{
 display:block;font:800 clamp(14px,3.8vw,21px)/1.25 system-ui,sans-serif;
 overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
}
body.ulf26-department-page #ceo106Staff .ceo106-summary .stat span{
 display:block;font:650 11px/1.35 system-ui,sans-serif;
 margin-top:5px;overflow-wrap:anywhere;
}
body.ulf26-department-page #ceo106Staff .ceo106-depts,
body.ulf26-department-page #ceo106Staff .ceo106-filters{
 display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;
}
body.ulf26-department-page #ceo106Staff .ceo106-depts button,
body.ulf26-department-page #ceo106Staff .ceo106-filters button{
 flex:1 1 auto;min-width:0;min-height:44px;
 padding:9px 10px;border-radius:6px;
 font:750 12px/1.3 system-ui,sans-serif;white-space:normal;
}
body.ulf26-department-page #ceo106Staff .ceo106-depts button.active,
body.ulf26-department-page #ceo106Staff .ceo106-filters button.active{
 outline:2px solid #e4c17d;outline-offset:1px;
}
body.ulf26-department-page #ceo106Staff .ceo106-slotbar{
 display:flex;gap:4px;flex-wrap:nowrap;max-width:100%;margin:9px 0;
}
body.ulf26-department-page #ceo106Staff .ceo106-slotbar span{
 flex:1 1 0;min-width:0;padding:6px 2px;text-align:center;
 font:750 10px/1.3 system-ui,sans-serif;overflow-wrap:anywhere;
}
body.ulf26-department-page #ceo106Staff .ceo106-person{
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 min-width:0;overflow-wrap:anywhere;
}
body.ulf26-department-page #ceo106Staff .ceo106-actions{
 display:flex;flex-wrap:wrap;gap:7px;align-items:center;
}
body.ulf26-department-page #ceo106Staff .ceo106-actions button,
body.ulf26-department-page #ceo106Staff .ceo106-actions select{
 min-height:44px;font:700 12px system-ui,sans-serif;
}
@media(max-width:560px){
 body.ulf26-department-page #ceo106Staff{padding:10px}
 body.ulf26-department-page #ceo106Staff .ceo106-depts{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-depts button{
  width:100%;min-height:44px;padding:9px 5px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-filters{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-filters button{
  width:100%;min-height:44px;padding:9px 5px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-filters button:first-child{
  grid-column:1 / -1;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-summary .stat{
  padding:9px 3px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-summary .stat span{
  font-size:10px;
 }
 body.ulf26-department-page #ceo106Staff .ceo106-actions button{
  flex:1 1 110px;
 }
}

/* Legacy global .grid media rules use !important; keep only the three HR metrics compact. */
