.staff-main[data-staff-map-open] { width: min(100%, 1080px); }
.staff-main[data-staff-map-open] > :not(#staff-panel) { display: none; }
.staff-main[data-staff-map-open] > #staff-panel { padding-top: 0; }
.staff-map-back { margin-bottom: .85rem; min-height: 44px; }
.mm-update-link { margin-bottom: .75rem; min-height: 44px; }
.mm-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin: .6rem 0 .9rem; }
.mm-context > strong { font-size: 1.16rem; overflow-wrap: anywhere; }
.mm-filters, .mm-zoom, .mm-buttons { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.mm-filters .input { min-height: 42px; margin: .23rem 0 0; max-width: 220px; padding: .45rem .55rem; }
.mm-report { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .45rem 1rem; padding: .65rem .8rem; margin-bottom: .75rem; border-block: 1px solid var(--line2); }
.mm-reported { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.mm-reported > strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.mm-trade-legend { display: flex; flex-wrap: wrap; gap: .28rem .7rem; color: var(--muted); font-size: .82rem; }
.mm-trade-legend span { white-space: nowrap; }
.mm-trade-legend strong { color: var(--ink); margin-left: .1rem; font-variant-numeric: tabular-nums; }
.mm-trade-legend i { display: inline-block; background: var(--mm-trade); width: .55rem; height: .55rem; border-radius: 50%; margin-right: .32rem; }
.mm-report-time { color: var(--muted); font-size: .8rem; margin: 0; }
.mm-report-time:empty { display: none; }
.mm-report-time > span { white-space: nowrap; }
.mm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: .85rem; align-items: start; }
.mm-figure, .mm-area-panel, .mm-empty { min-width: 0; background: var(--solid); border: 1px solid var(--line2); border-radius: 13px; }
.mm-figure { overflow: hidden; }
.mm-figure-head { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem .65rem; }
.mm-sheet { min-width: 0; }
.mm-sheet strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.mm-sheet span { display: block; color: var(--muted); font-size: .78rem; }
.mm-zoom { flex: none; align-items: center; }
.mm-zoom .btn { box-shadow: none; min-width: 44px; min-height: 44px; padding: .3rem .48rem; }
.mm-zoom .mm-fit { font-size: .76rem; }
.mm-scroll { overflow: auto; overscroll-behavior: contain; max-height: min(64vh, 46rem); background: #dce3e5; scrollbar-color: #86929c #dce3e5; }
.mm-scroll:focus-visible { outline-offset: -3px; }
.mm-plan { width: min(calc(100% * var(--mm-scale, 1)), calc(min(64vh, 46rem) * var(--mm-paper-ratio) * var(--mm-scale, 1))); position: relative; margin: auto; }
.mm-plan img { display: block; width: 100%; height: auto; }
.mm-placing { cursor: crosshair; }
.mm-pin, .mm-placement-pin { position: absolute; left: var(--mm-x); top: var(--mm-y); transform: translate(-50%, -50%); }
.mm-pin { border: 0; background: transparent; min-width: 44px; min-height: 44px; padding: .18rem; display: flex; align-items: center; flex-direction: column; justify-content: center; color: #142a40; z-index: 1; }
.mm-pin[data-mm-edge="left"] { transform: translate(0, -50%); }
.mm-pin[data-mm-edge="right"] { transform: translate(-100%, -50%); }
.mm-pin:is(:hover,:focus-visible,[aria-pressed="true"]) { z-index: 2; }
.mm-pin-label { display: flex; align-items: center; gap: .38rem; min-height: 30px; max-width: 10rem; padding: .16rem .36rem .16rem .5rem; border: 1px solid #6f8596; border-radius: 7px; background: #fffdf5; font-size: .72rem; text-align: left; white-space: nowrap; transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease; }
.mm-pin-name { overflow: hidden; text-overflow: ellipsis; }
.mm-pin-label strong { min-width: 1.3em; font-variant-numeric: tabular-nums; text-align: right; }
.mm-pin[aria-pressed="true"] .mm-pin-label { background: #f8d890; border-color: #845400; transform: scale(1.05); }
.mm-workers { position: absolute; top: calc(50% + 15px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 10px); justify-content: center; gap: 2px; margin-top: .23rem; }
.mm-workers i { position: relative; width: 10px; height: 13px; }
.mm-workers i::before, .mm-workers i::after { content: ""; position: absolute; background: var(--mm-trade); box-shadow: 0 0 0 1px #fffdf5; }
.mm-workers i::before { top: 0; left: 2px; width: 6px; height: 6px; border-radius: 5px 5px 2px 2px; }
.mm-workers i::after { bottom: 0; left: 0; width: 10px; height: 6px; border-radius: 5px 5px 1px 1px; }
.mm-pin-updated .mm-workers { animation: mm-count-update 270ms ease-out both; }
@keyframes mm-count-update { from { transform: translate(-50%, -4px); opacity: .65; } to { transform: translate(-50%, 0); opacity: 1; } }
.mm-placement-pin { z-index: 3; display: block; width: 20px; height: 20px; border: 3px solid #744600; background: #ffdc92; border-radius: 50%; pointer-events: none; }
.mm-areas { display: flex; align-items: center; flex-wrap: wrap; gap: .36rem; padding: .55rem .65rem; }
.mm-areas .btn { min-height: 44px; gap: .6rem; min-width: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.mm-areas .btn[aria-pressed="true"] { border-color: var(--gold); }
.mm-area-panel { padding: .9rem; }
.mm-area-panel h3, .mm-empty h3 { font: 800 1.16rem/1.25 var(--ui); margin: 0 0 .4rem; letter-spacing: -.015em; overflow-wrap: anywhere; }
.mm-area-panel .muted, .mm-empty p { color: var(--muted); font-size: .86rem; margin: .25rem 0 .65rem; }
.mm-area-count { font-size: .9rem; margin: .2rem 0; }
.mm-area-count strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.mm-area-panel form { display: grid; gap: .65rem; }
.mm-area-panel .btn { justify-self: start; min-height: 44px; }
.mm-area-panel > .mm-buttons { margin-top: .6rem; }
.mm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mm-fields .input { width: 100%; min-height: 44px; }
.mm-custom-trades:empty { display: none; }
.mm-custom-trade { display: grid; gap: .35rem; margin-bottom: .45rem; }
.mm-linked { padding: .5rem; border: 1px solid var(--line2); border-radius: 7px; min-width: 0; }
.mm-linked label { display: flex; gap: .55rem; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.mm-shared { margin: .35rem 0 .7rem; padding-left: 1.15rem; overflow-wrap: anywhere; }
.mm-read-count { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem; border-bottom: 1px solid var(--line); padding: .4rem 0; font-size: .86rem; overflow-wrap: anywhere; }
.mm-coordinates summary, .mm-manager summary { cursor: pointer; font-size: .85rem; font-weight: 750; }
.mm-coordinates[open] summary { margin-bottom: .4rem; }
.mm-empty { padding: 1.4rem; grid-column: 1 / -1; }
.mm-empty-icon { margin-bottom: .45rem; color: var(--gold); }
.mm-manager { border-top: 1px solid var(--line); margin-top: .85rem; padding: .65rem 0; }
.mm-management { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1.4rem; padding-top: .8rem; }
.mm-management form { width: min(100%, 24rem); min-width: 0; }
.mm-management .input { margin: .25rem 0 0; }
.mm-management input[type=file] { width: 100%; }
.mm-management .mm-buttons { margin-top: .45rem; }
.mm-page { max-width: 6.5rem; }
.mm-page[hidden] { display: none; }
.mm-buttons .btn { min-height: 44px; }
.mm-unplaced { margin: .5rem 0 0 1.1rem; padding: 0; }
.mm-notice { margin: .25rem 0 .55rem; min-height: 1.2rem; color: var(--muted); font-size: .85rem; }
.mm-notice:empty { display: none; }
.mm-image-error:not([hidden]) { margin: .55rem; }
@media (max-width: 980px) {
  .mm-layout { grid-template-columns: minmax(0, 1fr); }
  .mm-report { grid-template-columns: 1fr; gap: .28rem; }
}
@media (max-width: 460px) {
  .mm-pin-label { max-width: 7.8rem; padding-inline: .28rem; gap: .22rem; }
  .mm-filters .input { max-width: 158px; }
  .mm-figure-head { padding-inline: .45rem; }
  .mm-zoom { gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-pin-label { transition-duration: 320ms; }
  .mm-pin-updated .mm-workers { animation-duration: 540ms; }
}
