/* SMART Plus+ GPS V12 — staff opt-in orange markers & invitation workflow */
.cmd-v8 .cmd-staff-gps-panel{border-color:#f4d7ad!important;background:linear-gradient(180deg,#fffdf9,#fff)!important}
.cmd-v8 .cmd-counter-orange{color:#aa661b;background:#ffedcf}
.cmd-v8 .cmd-staff-live-list{display:grid;gap:8px}
.cmd-v8 .cmd-live-staff-item{width:100%;appearance:none;border:1px solid #f0dec1;background:#fffaf1;display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;padding:10px;border-radius:10px;text-align:left;color:#65491e;cursor:pointer}
.cmd-v8 .cmd-live-staff-item:hover,.cmd-v8 .cmd-live-staff-item:focus-visible{border-color:#edaa4d;background:#fff3e0}
.cmd-v8 .cmd-live-staff-item b,.cmd-v8 .cmd-live-staff-item small{display:block;line-height:1.5}.cmd-v8 .cmd-live-staff-item b{font-size:11px;color:#6b4518}.cmd-v8 .cmd-live-staff-item small{font-size:9px;color:#876e4e}.cmd-v8 .cmd-live-open{font-size:9px;color:#a56816}
.cmd-live-dot{display:block;width:10px;height:10px;border-radius:50%;background:#ff9c32;box-shadow:0 0 0 4px #ff9c322e}
.cmd-v8 .cmd-staff-links{display:flex;align-items:center;margin-top:11px;border:1px solid #cce4d4;background:#edfaf2;border-radius:9px;padding:10px}
.cmd-v8 .cmd-staff-links a{font-size:10px;font-weight:700;color:#08724f;text-decoration:none;line-height:1.5}.cmd-v8 .cmd-staff-links a:hover{text-decoration:underline}
.cmd-live-staff-marker{background:none;border:0}
.cmd-live-staff-marker>span{position:absolute;display:block;border-radius:50%}
.cmd-live-staff-ring{inset:0;border:2px solid #ffb456;background:#ffa0302c;animation:staff-live-ripple 2s ease-in-out infinite}
.cmd-live-staff-core{inset:8px;background:#f18a17;border:2px solid white;box-shadow:0 1px 10px #512a079e}
@keyframes staff-live-ripple{0%{transform:scale(.65);opacity:.9}75%{transform:scale(1.45);opacity:.24}100%{transform:scale(1.6);opacity:0}}
.cmd-v8 .cmd-live-staff-mini{position:absolute;z-index:850;left:18px;top:190px;display:flex;align-items:center;gap:8px;border:1px solid #edb97170;border-radius:11px;background:#102f42ed;box-shadow:0 8px 20px #05283a66;padding:8px 11px;color:white;max-width:255px;font-size:10px;pointer-events:none}
.cmd-v8 .cmd-live-staff-mini b{font-size:10px;white-space:nowrap;color:#fff}.cmd-v8 .cmd-live-staff-mini strong{color:#ffbd66}.cmd-v8 .cmd-live-staff-mini small{font-size:8px;color:#cfe1e7}
.cmd-v8 .orange-beacon-mini{display:inline-block;width:10px;height:10px;flex:none;border-radius:50%;background:#ffa22c;box-shadow:0 0 0 4px #ffa22c35;animation:staff-beacon 2.2s infinite}
@keyframes staff-beacon{50%{box-shadow:0 0 0 8px #ffa22c11}}
.staff-action-group{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.staff-action-group .secondary-btn{white-space:nowrap;font-size:11px;padding:8px 9px}.staff-linked{padding:5px 8px;border-radius:99px;background:#e6f5ec;color:#127653;font-size:10px}
.staff-invite-help{padding:10px 12px;background:#f4fbf6;border:1px solid #d5e9db;border-radius:12px}.staff-invite-help>p{font-size:12px;line-height:1.75}.staff-link-copy{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.staff-link-copy a{color:#077950;font-weight:700;font-size:12px}
.staff-issued-code[hidden]{display:none}.staff-issued-code{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:15px;border:1px solid #f4d9a8;background:#fffaf1;border-radius:12px;margin-top:14px}
.staff-issued-code code{font-size:15px;font-weight:700;letter-spacing:1.5px;color:#77500b;word-break:break-all}.staff-issued-code small{font-size:10px;color:#8b7451;line-height:1.6}
@media(max-width:1100px){.cmd-v8 .cmd-live-staff-mini{left:11px;top:178px}}
@media(max-width:760px){.cmd-v8 .cmd-live-staff-mini{left:10px;top:150px;max-width:200px;flex-wrap:wrap;gap:4px}.cmd-v8 .cmd-live-staff-mini small{display:none}}
@media(max-width:480px){.cmd-v8 .cmd-live-staff-mini{top:128px;max-width:175px}}
@media(prefers-reduced-motion:reduce){.cmd-live-staff-ring,.cmd-v8 .orange-beacon-mini{animation:none}}

.staff-inline-small{display:block;color:#7a9b8b;font-size:10px;margin-top:3px}
.staff-link-copy{flex-wrap:wrap}

/* V20: markers and legend use a deterministic primary-department colour palette. */
.cmd-live-staff-ring{border-color:var(--dept-color,#ff9c32)!important;background:color-mix(in srgb,var(--dept-color,#ff9c32) 19%,transparent)!important}
.cmd-live-staff-core{background:var(--dept-color,#ff9c32)!important}
.cmd-live-dot{background:var(--dept-color,#ff9c32)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--dept-color,#ff9c32) 19%,transparent)!important}
.cmd-staff-dept-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;background:#f6faf8;border:1px solid #e0eae5;border-radius:10px;padding:10px;margin:8px 0 12px}
.cmd-staff-dept-legend .dept-legend-item{display:flex;align-items:center;gap:7px;min-width:0;font-size:10px;line-height:1.4;color:#436151}
.cmd-staff-dept-legend .dept-color-dot{width:10px;height:10px;flex:none;background:var(--dept-color,#9ba9a4);border:1px solid white;box-shadow:0 0 0 1px #a4b6ac;border-radius:50%}
@media(max-width:490px){.cmd-staff-dept-legend{grid-template-columns:1fr}}
