.assignment-board {
  --board-line: var(--line);
  display: grid;
  grid-template-columns: clamp(185px,18vw,250px) minmax(0,1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--board-line);
  border-radius: 16px;
  background: #fff;
}
.assignment-board h2 {font-size: 19px; letter-spacing: -.035em; margin: 0;}
.assignment-board h3 {margin:0; font-size:12px; letter-spacing:.01em; font-weight:650;}
.waiting-column {background:var(--surface); border-right:1px solid var(--board-line); min-width:0;}
.waiting-column header,.floor-heading {display:flex; justify-content:space-between; align-items:center; gap:8px; padding:17px 16px;}
.waiting-column header {border-bottom:1px solid var(--board-line);}
.board-count {border-radius:12px; background:var(--highlight); color:var(--nav); font-weight:700; font-size:12px; padding:2px 9px;}
.waiting-list {padding:6px 12px 14px; overflow:auto; max-height:550px;}
.waiting-list h3,.bed-ward h3 {display:flex;align-items:center;justify-content:space-between;gap:6px;}
.waiting-list h3 {color:var(--muted); margin:12px 3px 8px;}
.waiting-list h3 span,.bed-ward h3 span {color:#51675d; font-size:11px; font-weight:500;}
.waiting-card {width:100%; min-height:56px; border:1px solid var(--board-line); background:white; border-radius:9px; padding:7px; display:flex; gap:9px; align-items:center; text-align:left; color:var(--ink); margin:0 0 5px; cursor:pointer;}
.waiting-card:hover,.bed-tile:hover {border-color:var(--accent); box-shadow:0 0 0 1px var(--accent);}
.patient-portrait {display:inline-block; width:36px; height:36px; flex:none; border-radius:50%; background-color:#d6e1d5; background-image:url('/patient-portraits.webp'); background-size:400% 400%; background-position:var(--px) var(--py); box-shadow:inset 0 0 0 1px #153b2918;}
.waiting-identity {display:grid; gap:3px; min-width:0;}
.waiting-identity strong {font-size:13px; overflow-wrap:anywhere; line-height:1.12;}
.waiting-identity small {font-size:11px; color:var(--muted);}
.waiting-identity .waiting-meta {font-size:10px;color:#586b62;}
.board-grip {margin-left:auto; font-size:18px; color:#738678;}
.assignment-board [draggable=true] {cursor:grab;}
.assignment-board [draggable=true]:active {cursor:grabbing;}
.assignment-board [draggable=true] .patient-portrait,.board-grip {touch-action:none;}
.assignment-board .move-source {outline:3px solid #155f49;outline-offset:-2px;}
.board-floor {min-width:0;}
.floor-heading {padding:12px 17px 8px;}
.floor-heading p {font-size:11px;color:var(--muted);margin:3px 0 0;}
.move-guide {margin:3px 16px 10px; padding:7px 9px; border-radius:6px; color:var(--ink);background:var(--tint); display:flex;gap:8px;align-items:center; font-size:12px;line-height:1.35;scroll-margin-top:65px;}
.move-guide svg {vertical-align:middle;}
.move-guide button {margin-left:auto;background:white;border:1px solid #acbdaf;border-radius:5px;padding:3px 6px;cursor:pointer;}
.floor-zones {display:grid;grid-template-columns:1fr 1fr; gap:10px 12px; padding:9px 12px 12px;margin:0 10px 12px;border:1px solid var(--line);border-radius:8px;background-color:var(--surface);background-image:radial-gradient(var(--line) .6px,transparent .6px);background-size:8px 8px;}
.board-corridor {display:flex;align-items:center;gap:9px;grid-column:1/-1;color:#53685a;font-size:10px;font-weight:600;line-height:15px;}
.board-corridor i {height:1px;border-top:1px dashed #a4b4a4;flex:1;}
.bed-ward {min-width:0;}
.bed-ward:nth-child(-n+2) {grid-column:1/-1;}
.bed-ward h3 {margin:0 0 4px; color:var(--ink);}
.bed-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
.bed-ward:nth-child(-n+2) .bed-grid {grid-template-columns:repeat(8,minmax(0,1fr));}
.bed-tile {display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:2px;min-height:48px;padding:5px 6px;min-width:0;border:1px solid #c9daca;background:#f5f9f2;color:#305b3d;border-radius:6px;text-align:left;cursor:pointer;}
.bed-code {display:flex;gap:4px;align-items:center;font-size:10px;font-weight:700;letter-spacing:.02em;}
.bed-code i {width:5px;height:5px;border-radius:50%;background:#559361;}
.bed-occupant {display:flex;align-items:center;gap:4px;min-width:0;font-size:10px;line-height:1.13;min-height:18px;}
.bed-occupant>span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bed-occupant .patient-portrait {width:23px;height:23px;}
.tile-occupied {background:#e8f1f3;color:#244b55;border-color:#b0c9ce;}
.tile-occupied .bed-code i {background:#527d89;}
.tile-cleaning {background:#f8efd9;color:#78551f;border-color:#d9cAA7;}
.tile-cleaning .bed-code i {background:#ac8132;}
.tile-blocked {background:#eaecea;color:#4f5851;border-color:#c5cdc7;}
.tile-blocked .bed-code i {background:#737c75;}
.moving-patient .can-drop {background:#e4f4e4;border:1.5px dashed #3f8156;}
.moving-patient .drop-hover {background:#c4e7cd;outline:3px solid #176047;outline-offset:-2px;}
.board-floating {position:fixed;left:0;top:0;z-index:100;pointer-events:none;display:flex;align-items:center;gap:8px;border-radius:30px;background:white;color:#17482c;padding:5px 12px 5px 5px;box-shadow:0 4px 18px #142c2533;font-size:13px;}
.board-attention {margin-bottom:16px;}
.assignment-board :focus-visible {outline:3px solid #276b9d;outline-offset:1px;}
.bed-stage,.turnover-link {font-size:11px;line-height:1.2;overflow-wrap:anywhere;}
.tile-occupied .bed-occupant {font-weight:650;}
.bed-stage {color:#335465;}
.bed-stage.pending-closeout {font-weight:650;color:#6a4519;}
.turnover-link {font-weight:650;}
.shift-notice {display:flex;align-items:center;gap:10px;padding:9px 14px;margin-bottom:12px;border:1px solid #d2dfd4;border-left:3px solid #4d765b;border-radius:10px;background:#fff;}
.shift-notice-icon {display:grid;place-items:center;background:#e8f0e8;color:#365c43;border-radius:50%;width:30px;height:30px;flex:none;}
.shift-notice-text {display:grid;gap:3px;min-width:0;}
.shift-notice-text strong {font-size:14px;}
.shift-notice-text small {font-size:12px;color:#53675b;}
.shift-notice-actions {margin-left:auto;display:flex;gap:5px;align-items:center;flex-wrap:wrap;}
.task-disclosure,.board-measures {border:1px solid #d4dfd6;border-radius:10px;padding:12px 15px;background:#fff;}
.task-disclosure summary,.board-measures summary {cursor:pointer;font-weight:650;}
.task-disclosure summary span {color:#53675b;margin-left:.4em;}
.task-disclosure[open] summary,.board-measures[open] summary {margin-bottom:12px;}
.departure-checks {border:0;padding:0;margin:0;display:grid;gap:8px;}
.departure-checks legend {font-size:13px;font-weight:650;margin-bottom:8px;}
.departure-checks label {cursor:pointer;background:#f4f7f4;padding:10px;border:1px solid #dbe4db;border-radius:6px;display:flex;align-items:center;gap:8px;}
.departure-checks input {width:18px;height:18px;flex:none;}
@media(max-width:600px) {
  .shift-notice {display:grid;grid-template-columns:auto 1fr;}
  .shift-notice-actions {grid-column:2;justify-self:start;margin-left:0;}
}
.pod-sign {grid-column:1/-1;font-size:10px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:#50675a;}
.bed-tile {position:relative;}
.bed-tile:after {content:"";position:absolute;right:6px;bottom:-1px;width:8px;height:6px;background:inherit;border:1px solid #a7b9a9;border-bottom-color:transparent;border-radius:8px 0 0 0;pointer-events:none;}
.board-entry {grid-column:1/-1;display:flex;align-items:center;justify-content:space-around;border-top:2px solid #bacbbd;padding-top:6px;color:#4f665a;font-size:10px;}
@media(min-width:761px) {
  .floor-zones {grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto auto 1fr auto;column-gap:14px;}
  .bed-ward:first-child {grid-column:1;grid-row:1/4;border-right:2px double #b8caba;padding-right:10px;}
  .bed-ward:nth-child(2),.bed-ward:nth-child(3),.bed-ward:nth-child(4) {grid-column:2;}
  .bed-ward:first-child .bed-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .bed-ward:not(:first-child) .bed-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .bed-ward h3 {min-height:18px;}
  .bed-occupant {font-size:11px;}
}
@media(max-width:1120px) and (min-width:761px) {
  .assignment-board {grid-template-columns:175px minmax(0,1fr);}
  .floor-zones {padding-inline:10px;gap:8px;}
  .waiting-list {padding-inline:7px;}
  .bed-tile {padding:4px;}
  .bed-occupant {gap:2px;}
}
@media(max-width:760px) {
  .assignment-board {display:flex;flex-direction:column;}
  .waiting-column {border-right:0;border-bottom:1px solid var(--board-line);}
  .waiting-column header {padding:10px 12px;}
  .waiting-list {display:flex;overflow-x:auto;align-items:center;gap:6px;padding:8px;max-height:none;}
  .waiting-list h3 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .waiting-card {width:160px;flex:none;margin:0;}
  .floor-heading {padding:12px;}
  .move-guide {margin:0 10px 10px;}
  .floor-zones {display:block;padding:0 10px 12px;}
  .bed-ward {margin-bottom:10px;}
  .bed-ward:nth-child(-n+2) .bed-grid,.bed-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .bed-tile {min-height:49px;}
}
@media(max-width:500px) {
  .bed-ward .bed-grid,.bed-ward:nth-child(-n+2) .bed-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  .bed-occupant {font-size:11px;}
  .bed-occupant>span:last-child {white-space:normal;overflow-wrap:anywhere;}
}
