.graph-identity-launch { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; min-width: 0; margin: 12px 0; }
.graph-identity-launch > button { flex: 0 1 280px; }
.graph-native-picker { display: grid; gap: 12px; }
.graph-native-picker:not([open]) { display: none; }
.graph-native-picker h2 { margin: 0; font-size: 24px; }
.graph-identity-editor-form { display: grid; gap: 12px; min-width: 0; }
.graph-shift-identity, .graph-shift-manual, .graph-batch-dates, .graph-batch-details { display: grid; gap: 8px; min-width: 0; }
.atlas-v49-shift-form > :is(.graph-shift-identity,.graph-batch-dates) { grid-column: 1 / -1; }
.graph-shift-identity [hidden], .graph-batch-dates [hidden] { display: none !important; }
.graph-shift-manual { grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); }
.graph-batch-dates { padding: 10px 12px; border: 1px solid #d9e7ed; border-radius: 12px; background: #f8fbfc; }
.graph-batch-dates > label { max-width: 260px; }
.graph-batch-details > p { margin: 0; }
.graph-batch-week, .graph-batch-preview { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.graph-batch-week > button { min-width: 42px; min-height: 42px; padding: 5px 8px; }
.graph-batch-week > button[aria-pressed="true"] { color: #174f5e; border-color: #62b8c3; background: #e4f5f7; }
.graph-batch-date { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; min-height: 36px; border: 1px solid #d2e4e9; border-radius: 8px; color: #3f685b; background: #fff; font-size: 13px; }
.graph-batch-date > input[type="checkbox"] { flex: none; inline-size: 18px; block-size: 18px; margin: 0; padding: 0; accent-color: #398c96; }
.graph-shift-context { margin: 0; padding: 9px 12px; border-radius: 10px; background: #eff7f4; color: #3f685b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.graph-shift-time-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; min-width: 0; }
.graph-shift-primary, .graph-shift-time-fields { align-items: end; }
.graph-legacy-shift-dialog .graph-identity-field, .graph-legacy-shift-dialog .graph-identity-field.atlas-date-host { display: grid; align-content: end; gap: 6px; min-height: 68px; }
.graph-legacy-shift-dialog .graph-identity-field > span:first-child { display: block; min-height: 18px; line-height: 18px; }
.graph-shift-primary-actions > button { width: 100%; min-height: 44px; }
.graph-shift-primary-actions > .graph-shift-remove { grid-column: 1 / -1; }
.graph-shift-primary > .graph-identity-field:only-child { grid-column: 1 / -1; }
.graph-employee-combobox { display: grid; gap: 6px; min-width: 0; }
.graph-employee-suggestions { display: grid; gap: 4px; max-height: 144px; overflow-y: auto; padding: 5px; border: 1px solid #cbded7; border-radius: 10px; background: #f4faf7; }
.graph-employee-suggestions > button { width: 100%; text-align: left; }
.graph-employee-selection { margin: 0; color: #60786f; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.graph-employee-manual-toggle { justify-self: start; max-width: 100%; padding: 7px 10px; }
.graph-shift-advanced { min-width: 0; padding: 10px 12px; border: 1px solid #d9e7ed; border-radius: 12px; background: #f8fbfc; }
.graph-shift-advanced > summary { min-height: 24px; cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.graph-shift-advanced[open] > summary { margin-bottom: 12px; }
.graph-shift-advanced > .graph-identity-field { margin-top: 10px; }
.graph-nurse-cell-add, .department-calendar [data-nurse-shift-add] { width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px; font-size: 11px; line-height: 1.4; white-space: normal; }
.graph-nurse-cell-add { margin-top: 5px; border: 1px dashed #bad6cc; background: #f2f8f5; color: #3d6c5e; }
form.shift-form[data-atomic-graph-editor="1"] { display: none !important; }
.schedule-work-roster { margin: 12px 0; padding: 14px; border: 1px solid #d6e7e6; border-radius: 16px; background: #f1f8f6; min-width: 0; }
.schedule-work-roster h3 { margin: 0 0 4px; font-size: 16px; }
.schedule-work-roster > p { margin: 0 0 10px; font-size: 12px; color: #5b7780; }
.schedule-work-intervals { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 8px; min-width: 0; }
.schedule-work-interval { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 9px 10px; background: white; border: 1px solid #dbe8e7; border-left: 4px solid var(--shift-color,#93cdb4); border-radius: 10px; min-width: 0; }
.schedule-work-interval strong,.schedule-work-interval small { min-width: 0; overflow-wrap: anywhere; }
.schedule-work-interval strong { font-size: 13px; }.schedule-work-interval small { grid-column: 1; font-size: 11px; color: #657c84; }
.schedule-work-interval time { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 12px; white-space: nowrap; }
.schedule-work-details > summary { min-height: 32px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 32px; }
.schedule-work-details[open] > summary { margin-bottom: 6px; }
@media(max-width:540px){.schedule-work-details > summary{min-height:44px;line-height:22px;padding:11px 0;box-sizing:border-box}}
.graph-identity-action { min-width: 0; min-height: 44px; max-width: 100%; box-sizing: border-box; padding: 10px 14px; font: inherit; font-size: 13px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.graph-identity-dialog { width: min(760px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 20px; color: #294456; border: 1px solid #d3e3eb; border-radius: 20px; background: #fff; overflow-y: auto; overflow-x: hidden; }
.graph-identity-dialog *, .graph-identity-launch * { box-sizing: border-box; }
.graph-identity-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 140px); align-items: start; gap: 12px; }
.graph-identity-heading h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.graph-identity-heading .atlas-v49-eyebrow { margin: 0; font-size: 10px; }
.graph-identity-hint, .graph-identity-status, .graph-identity-error { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.graph-identity-hint { color: #647b8a; }
.graph-identity-status { padding: 10px 12px; border-radius: 10px; background: #eff6fb; color: #325d77; }
.graph-identity-error { color: #9c3e4c; }
.graph-identity-error:empty { display: none; }
.graph-identity-controls, .graph-identity-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.graph-identity-account > small { grid-column: 1 / -1; }
.graph-identity-field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.graph-identity-dialog input:not([type="checkbox"]), .graph-identity-dialog select { width: 100%; min-width: 0; max-width: 100%; height: 44px; padding: 9px 11px; border: 1px solid #d2e0e9; border-radius: 10px; background: #fff; color: #294456; font: inherit; font-size: 13px; text-overflow: ellipsis; }
.graph-identity-list { display: grid; gap: 12px; min-width: 0; }
.graph-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 170px); align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #d9e7ed; border-radius: 14px; background: #f9fbfd; }
.graph-identity-person { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.graph-identity-person strong { font-size: 15px; }
.graph-identity-person small, .graph-identity-current { margin: 0; font-size: 12px; line-height: 1.5; color: #657b8b; }
.graph-identity-current.is-linked { color: #347254; }
.graph-identity-editor { grid-column: 1 / -1; display: grid; gap: 12px; min-width: 0; margin-top: 4px; padding-top: 12px; border-top: 1px solid #d9e7ed; }
.graph-identity-confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; min-width: 0; }
.graph-identity-confirm input { width: 20px; height: 20px; min-width: 20px; margin: 0; accent-color: #399779; }
.graph-identity-confirm span { min-width: 0; overflow-wrap: anywhere; }
.graph-identity-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.graph-identity-footer { display: flex; justify-content: flex-end; padding-top: 16px; }
.graph-identity-footer > button { width: min(180px, 100%); }
.graph-identity-dialog [hidden] { display: none !important; }
.graph-identity-empty { margin: 0; padding: 20px; border: 1px dashed #d0e0e8; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.graph-booking-failure-detail { display: block; margin: 6px 0 10px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.department-calendar .shift-chip[data-direct-shift-edit] { cursor: pointer; }
.department-calendar .shift-chip[data-direct-shift-edit]:focus-visible { outline: 3px solid #64acc9; outline-offset: 2px; }
@media (max-width: 540px) {
  .graph-identity-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 14px; border-radius: 16px; }
  .graph-identity-heading { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .graph-identity-heading h2 { font-size: 21px; overflow-wrap: normal; word-break: normal; }
  .graph-identity-heading > button { width: 100%; white-space: nowrap; overflow-wrap: normal; }
  .graph-identity-controls, .graph-identity-account { grid-template-columns: minmax(0, 1fr); }
  .graph-identity-row { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 10px; }
  .graph-identity-row > .graph-identity-action { width: 100%; }
  .graph-identity-launch > button { width: 100%; }
  .graph-shift-time-fields { gap: 10px; }
  .graph-shift-advanced { padding: 10px; }
  .graph-shift-advanced > summary { min-height: 32px; }
  .graph-nurse-cell-add, .department-calendar [data-nurse-shift-add] { min-height: 44px; }
}
