/* Car Mechanic Garage (shared: sim3d.css) */
.mg-setup { display: grid; gap: 12px; }
.mg-h { margin: 4px 0 0; font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-h small { font-size: 14px; opacity: .85; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.mg-job { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: inherit; font: 800 14px system-ui, sans-serif; cursor: pointer; min-height: 62px; }
.mg-job i { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; font-style: normal; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mg-job small { font-weight: 600; opacity: .8; font-size: 12px; }
.mg-job:hover:not(:disabled) { border-color: #38bdf8; }
.mg-job:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.mg-job.is-locked { opacity: .45; cursor: not-allowed; }
.mg-random { border-style: dashed; }
.mg-card { position: absolute; background: rgba(8, 16, 28, .82); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 8px 12px; font: 600 13px/1.4 system-ui, sans-serif; pointer-events: auto; }
.mg-jobcard { left: 10px; top: 10px; max-width: 42%; pointer-events: none; }
.mg-who { font-weight: 900; font-size: 14px; }
.mg-say { font-style: italic; margin: 2px 0 4px; }
.mg-pay { opacity: .9; }
.mg-part { right: 10px; top: 10px; width: 250px; }
.mg-title { font-weight: 900; font-size: 15px; margin-bottom: 6px; }
.mg-hint small { opacity: .8; }
.mg-cond { position: relative; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 6px; }
.mg-cond i { position: absolute; left: 0; top: 0; bottom: 0; }
.mg-cond span { position: relative; display: block; text-align: center; font: 800 12px/22px system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.mg-cond.is-unknown span { opacity: .8; font-weight: 600; }
.mg-block { margin: 4px 0; color: #fcd34d; }
.mg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-btns button, .mg-tools button { pointer-events: auto; border: 1px solid rgba(255, 255, 255, .25); background: rgba(30, 58, 95, .9); color: #fff; border-radius: 10px; padding: 7px 10px; font: 800 13px system-ui, sans-serif; cursor: pointer; min-height: 36px; }
.mg-btns button:hover, .mg-tools button:hover { background: rgba(37, 99, 235, .95); }
.mg-btns button:focus-visible, .mg-tools button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.mg-tools { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 70%; }
.mg-tools .mg-finish { background: rgba(21, 128, 61, .92); }
@container (max-width: 560px) {
  .mg-jobcard { top: 92px; max-width: 60%; font-size: 12px; }
  .mg-part { top: auto; bottom: 92px; right: 8px; left: 8px; width: auto; padding: 6px 10px; }
  .mg-tools { left: 8px; right: 8px; max-width: none; bottom: 8px; }
  .mg-tools button { padding: 6px 8px; font-size: 12px; }
}
