.planning-panel .workspace-card { margin-top: 18px; }
.planning-catalogs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.planning-catalogs h3 { margin: 0 0 12px; font-size: 17px; }
.planning-master-row { display: flex; gap: 8px; margin-bottom: 9px; }
.planning-master-row input { min-width: 0; flex: 1; }
.planning-master-row select { width: 145px; flex: 0 0 145px; }
.planning-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.planning-fields label, .planning-picker { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.planning-panel input:not([type=checkbox]), .planning-panel select { width: 100%; min-height: 42px; font: inherit; color: inherit; border: 1px solid #abcfc9; border-radius: 8px; padding: 9px 11px; background: #fff; }
.planning-panel :is(input, select, button):focus-visible { outline: 3px solid #e7b84a; outline-offset: 2px; }
.planning-row { padding: 16px; margin: 14px 0; border: 1px solid #d5e6e2; background: #f7fbfa; border-radius: 12px; }
.planning-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.planning-row-head strong { display: grid; place-items: center; width: 28px; height: 28px; background: #e3f2ed; border-radius: 50%; }
.planning-fields .planning-check { flex-direction: row; align-items: center; align-self: end; min-height: 42px; }
.planning-choice { border: 1px solid #d4e6e2; border-radius: 10px; margin: 0; padding: 14px; min-width: 0; }
.planning-choice legend { font-size: 14px; font-weight: 700; padding: 0 6px; }
.planning-choice label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 16px 6px 0; font-size: 14px; }
.planning-panel input[type=checkbox] { width: 19px; height: 19px; flex-shrink: 0; accent-color: #117c75; }
.planning-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.planning-picker { max-width: 440px; }
.planning-transport { border-top: 1px solid #d4e6e2; padding-top: 20px; }
.planning-transport summary { cursor: pointer; font-weight: 700; }
.planning-transport p, .planning-report p, .planning-empty { color: #506e71; font-size: 14px; line-height: 1.7; }
.planning-transport .planning-fields { margin-top: 16px; }
.planning-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin: 20px 0; }
.planning-messages { padding-left: 22px; max-height: 320px; overflow-y: auto; }
.planning-messages li { margin: 9px 0; line-height: 1.6; }
.planning-error { color: #a63230; }
.planning-warning { color: #805911; }
[data-pl-request-report]:not(:empty) { border-left: 4px solid #70b9a7; padding: 8px 20px; background: #fff; }
.planning-report h3 { margin-top: 22px; font-size: 16px; }
#shiftTableHost .shift-cell.is-request-fixed { box-shadow: inset 0 -3px #be9c37; }
/* Legacy storage columns stay in the DOM so old JSON rows remain positionally compatible. */
#staffBody td:nth-child(5), #staffBody td:nth-child(9),
.data-table:has(#staffBody) th:nth-child(5), .data-table:has(#staffBody) th:nth-child(9) { display: none; }
@media (max-width: 1100px) {
  .planning-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-catalogs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .planning-fields, .planning-profile-grid { grid-template-columns: 1fr; }
  .planning-actions .btn { width: 100%; }
  .planning-row { padding: 12px; }
  .planning-master-row { flex-wrap: wrap; }
  .planning-master-row input { flex-basis: 100%; }
}
