.placement-shell { width: min(1440px, 100%); height: 100dvh; margin: 0 auto; padding: 14px 18px; display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; }
.placement-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
.placement-status { display: flex; gap: 22px; padding: 10px 12px; background: var(--gray-50); border-left: 4px solid var(--green); }
.demo-time-control { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: .78rem; }
.demo-time-control select { min-height: 40px; width: auto; padding: 5px 8px; }
.reset-demo { min-height: 40px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font-weight: 800; }
.warning-text { color: var(--orange); font-weight: 800; }
.placement-layout { min-height: 0; display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--gray-300); }
.live-tabs { display: none; }
.duty-pane { overflow: auto; border-right: 1px solid var(--gray-300); }
.pane-head { padding: 12px; border-bottom: 1px solid var(--gray-100); }
.pane-head h2 { font-size: 1.15rem; }
.duty-person { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--gray-100); background: var(--white); color: var(--ink); text-align: left; }
.duty-person:hover { background: var(--gray-50); }
.duty-person span, .duty-person strong { display: block; }
.duty-person span { color: var(--gray-600); font-size: .8rem; }
.duty-person strong { margin-bottom: 3px; color: var(--ink); font-size: .92rem; }
.duty-person small { display: block; margin-top: 3px; color: var(--blue-dark); }
.off-duty-heading { padding: 9px 12px; border-top: 2px solid var(--gray-300); background: var(--gray-50); color: var(--gray-600); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.off-duty-person { opacity: .82; }
.status-pin { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--green); }
.status-pin.away-pin { background: var(--orange); }
.status-pin.off-pin { background: var(--gray-600); }
.status-pin.uncovered-pin { background: var(--white); border: 2px solid var(--orange); }
.uncovered-row { color: var(--orange); }
.placement-map-pane { min-width: 0; display: flex; flex-direction: column; }
.placement-map-pane .floor-map { min-height: 0; }
.placement-right { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.live-issues { border-top: 1px solid var(--gray-300); }
.issues-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.issues-empty { padding: 9px 12px; color: var(--gray-600); font-size: .8rem; }
.issue-key { display: inline-block; width: 10px; height: 10px; margin-right: 4px; }
.medical-key { background: var(--red); }
.poi-key { background: var(--orange); border-radius: 50%; }
.door-key { background: var(--blue); }
.urgent-text { color: var(--red); font-weight: 850; }
.unmapped-posts { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border-top: 1px solid var(--gray-300); overflow-x: auto; color: var(--gray-600); font-size: .76rem; }
.unmapped-posts strong { flex: 0 0 auto; color: var(--orange); }
.unmapped-posts button { flex: 0 0 auto; min-height: 32px; padding: 4px 8px; border: 1px solid var(--orange); background: var(--white); color: var(--orange); font-size: .72rem; font-weight: 800; }
.room-empty { display: block; margin-top: 8px; }
.issue-list { display: flex; gap: 8px; padding: 7px 12px; overflow-x: auto; }
.active-issue { min-width: 230px; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; padding: 8px; border-left: 4px solid var(--blue); background: var(--gray-50); font-size: .75rem; }
.active-issue.medical { border-left-color: var(--red); }
.active-issue.poi { border-left-color: var(--orange); }
.active-issue span { grid-column: 1; color: var(--gray-600); }
.active-issue button { grid-column: 2; grid-row: 1 / 3; min-height: 36px; border: 1px solid var(--blue); background: var(--white); color: var(--blue); font-weight: 800; }

@media (max-width: 760px) {
  .placement-shell { height: auto; min-height: 100dvh; padding: 10px; }
  .placement-header { align-items: flex-start; }
  .placement-header .header-actions a:last-child { display: none; }
  .placement-status { gap: 6px 12px; flex-wrap: wrap; font-size: .78rem; }
  .demo-time-control { margin-left: 0; }
  .live-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .live-tab { min-height: 48px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy); font-weight: 850; }
  .live-tab.active { border-color: var(--blue); background: var(--blue); color: var(--white); }
  .placement-layout { display: block; min-height: 560px; }
  .duty-pane { max-height: none; border-right: 0; }
  .placement-right { display: block; }
  .placement-map-pane { min-height: 520px; }
  .live-issues { min-height: 260px; border-top: 0; }
  .issue-list { display: block; }
  .active-issue { margin-bottom: 8px; }
  [data-live-pane] { display: none; }
  [data-live-pane].phone-active { display: block; }
  .placement-map-pane.phone-active { display: flex; }
}
