.phone-schedule-editor-toolbar { display:none; }
html .phone-schedule-actions-menu button[hidden] { display:none!important; }
html[data-phone-schedule-editing] {
  --phone-edit-bg:#0b1828;
  --phone-edit-field:#14263a;
  --phone-edit-ink:#f1f5f9;
  --phone-edit-muted:#b9c9dd;
  --phone-edit-line:#425a76;
  --phone-edit-draft-bg:#f8c65d;
  --phone-edit-draft-ink:#322108;
  --phone-edit-draft-line:#f5c254;
  --phone-edit-published-bg:#153f33;
  --phone-edit-published-ink:#b7f5d4;
  --phone-edit-color-scheme:dark;
}
html[data-phone-schedule-editing]:is([data-theme="light"],[data-visual-theme="pink"],[data-visual-theme="lilac"],[data-visual-theme="custom"]) {
  --phone-edit-bg:#ffffff;
  --phone-edit-field:#edf4fb;
  --phone-edit-ink:#142235;
  --phone-edit-muted:#465973;
  --phone-edit-line:#b0c5dc;
  --phone-edit-draft-bg:#fff0bb;
  --phone-edit-draft-ink:#623700;
  --phone-edit-draft-line:#bd7900;
  --phone-edit-published-bg:#d6f3e1;
  --phone-edit-published-ink:#14512f;
  --phone-edit-color-scheme:light;
}
html .phone-ref-schedule.is-editing .phone-schedule-topbar { display:block!important; }
html .phone-ref-schedule.is-editing .phone-schedule-tabs,
html .phone-ref-schedule.is-editing .phone-schedule-menu-wrap { display:none!important; }
html .phone-ref-schedule.is-editing .phone-schedule-editor-toolbar {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) 42px; gap:8px;
  position:relative; z-index:20; width:100%; min-width:0;
}
.phone-schedule-editor-toolbar :is(button,summary),
.phone-schedule-tool-dialog button {
  display:flex; align-items:center; justify-content:center; gap:6px;
  min-height:42px; padding:8px; border:1px solid var(--phone-edit-line);
  border-radius:8px; background:var(--phone-edit-field); color:var(--phone-edit-ink)!important;
  font:600 13px/1.2 Inter,Arial,sans-serif; letter-spacing:0; cursor:pointer;
}
.phone-schedule-editor-toolbar summary { list-style:none; height:44px; }
.phone-schedule-editor-toolbar summary::-webkit-details-marker { display:none; }
.phone-schedule-editor-toolbar :is(svg,[data-lucide-icon]), .phone-schedule-tool-dialog :is(svg,[data-lucide-icon]) {
  display:inline-flex; width:18px; height:18px; flex:0 0 18px; color:inherit!important;
}
.phone-schedule-editor-toolbar .phone-schedule-publish summary,
.phone-schedule-tool-dialog footer button { background:#0864cb; color:#fff!important; border-color:#187beb; }
.phone-schedule-editor-menu > div {
  position:absolute; top:50px; left:0; width:min(285px,100%); max-height:60dvh;
  overflow:auto; padding:6px; background:var(--phone-edit-bg); border:1px solid var(--phone-edit-line);
  border-radius:8px; box-shadow:0 8px 24px #0004;
}
.phone-schedule-editor-menu:not([open]) > div { display:none; }
.phone-schedule-editor-menu > div button { width:100%; justify-content:flex-start; border:0; background:transparent; text-align:left; }
.phone-schedule-editor-menu > div button:hover { background:var(--phone-edit-field); }
.phone-schedule-editor-toolbar button:disabled,.phone-schedule-tool-dialog button:disabled { opacity:.45; cursor:default; }
html .phone-ref-schedule .phone-team-edit-grid { width:100%; min-width:0; grid-template-columns:52px repeat(7,minmax(0,1fr)); }
html .phone-ref-schedule .phone-team-edit-grid .phone-team-cell { min-width:0; padding:5px 2px; min-height:76px; font-size:10px; }
html .phone-ref-schedule .phone-team-edit-grid .phone-team-cell.head { min-height:44px; }
html .phone-ref-schedule .phone-team-edit-grid .phone-edit-shift,
html .phone-ref-schedule .phone-team-edit-grid .phone-edit-event {
  border-radius:0; border-top:0; border-left:0; margin:0; width:100%; position:relative;
  background:transparent; color:var(--phone-edit-muted)!important; white-space:normal;
}
#dashboardSection .phone-ref-schedule.is-editing .phone-team-edit-grid :is(.phone-edit-shift,.phone-edit-event) {
  background:var(--phone-edit-bg)!important; color:var(--phone-edit-muted)!important; box-shadow:none!important;
}
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift > [data-lucide-icon] { color:var(--phone-edit-muted)!important; }
html .phone-ref-schedule .phone-edit-shift > [data-lucide-icon] { width:15px; height:15px; opacity:.8; }
#dashboardSection .phone-ref-schedule .phone-team-edit-grid .phone-edit-shift {
  display:flex!important; flex-direction:column; align-items:center!important; justify-content:center;
  gap:3px; padding:5px 0!important;
}
#dashboardSection .phone-ref-schedule .phone-edit-shift .phone-team-shift-chip {
  display:grid!important; grid-template-rows:14px 14px; align-content:center; gap:2px;
  width:calc(100% - 6px)!important; min-width:0; min-height:42px!important; padding:4px 0!important; font-size:9px; box-sizing:border-box;
}
html .phone-ref-schedule .phone-edit-shift .phone-team-shift-chip span { font-size:9px!important; white-space:nowrap; }
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift .phone-team-shift-chip {
  background:color-mix(in srgb,var(--phone-shift-color) 22%,var(--phone-edit-bg))!important;
  border:2px solid var(--phone-shift-color)!important; color:var(--phone-edit-ink)!important;
}
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift .phone-team-shift-chip :is(span,small) { color:var(--phone-edit-ink)!important; }
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift .phone-team-shift-chip.is-draft {
  border:2px dashed var(--phone-edit-draft-line)!important;
}
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift .phone-shift-publication {
  display:block; width:calc(100% - 2px); min-width:0; margin:0; padding:1px 0;
  font:700 8px/12px Inter,Arial,sans-serif!important; letter-spacing:0; white-space:nowrap;
  text-align:center; background:var(--phone-edit-published-bg)!important; color:var(--phone-edit-published-ink)!important;
}
#dashboardSection .phone-ref-schedule.is-editing .phone-edit-shift[data-phone-shift-status="draft"] .phone-shift-publication {
  background:var(--phone-edit-draft-bg)!important; color:var(--phone-edit-draft-ink)!important;
}
html .phone-ref-schedule .phone-edit-conflict { position:absolute; right:1px; top:1px; color:#d97706; }
html .phone-ref-schedule .phone-edit-conflict svg { width:12px; height:12px; }
html .phone-ref-schedule .phone-team-edit-grid .phone-edit-event { min-height:44px; overflow-wrap:anywhere; }
html .phone-ref-schedule .phone-team-member > strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; font-size:9px!important; }
.phone-schedule-edit-status { color:var(--phone-edit-ink); padding:16px 0; }
html .phone-ref-schedule.is-editing .phone-team-week-control strong { font-size:10px!important; white-space:normal!important; line-height:1.2!important; }
#managerScheduleEditor.is-phone-team-editor,
.phone-schedule-tool-overlay {
  position:fixed!important; inset:0!important; width:100%!important; height:100dvh!important;
  z-index:24000!important; padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important;
  background:#0009!important; transform:none!important; box-sizing:border-box; align-items:center; justify-content:center;
}
#managerScheduleEditor.is-phone-team-editor.open,.phone-schedule-tool-overlay { display:flex!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-editor-card,
.phone-schedule-tool-dialog {
  width:min(100%,430px)!important; max-width:100%!important; max-height:100%!important;
  overflow-y:auto!important; padding:16px!important; border-radius:8px!important;
  border:1px solid var(--phone-edit-line)!important; background:var(--phone-edit-bg)!important;
  color:var(--phone-edit-ink)!important; transform:none!important; box-sizing:border-box;
}
html #managerScheduleEditor.is-phone-team-editor :is(h3,label,span,p,strong) { color:var(--phone-edit-ink)!important; }
html #managerScheduleEditor.is-phone-team-editor h3 { font-size:19px!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-editor-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
html #managerScheduleEditor.is-phone-team-editor :is(.manager-schedule-hours-field,.manager-schedule-notes-field,.manager-schedule-timeoff-tools) { grid-column:1 / -1!important; }
html #managerScheduleEditor.is-phone-team-editor :is(input,textarea,button) {
  min-width:0!important; min-height:40px; font-size:14px!important; letter-spacing:0;
  color:var(--phone-edit-ink)!important; background:var(--phone-edit-field)!important; border:1px solid var(--phone-edit-line)!important;
}
html #managerScheduleEditor.is-phone-team-editor input { width:100%!important; box-sizing:border-box; padding:8px!important; color-scheme:var(--phone-edit-color-scheme); }
html #managerScheduleEditor.is-phone-team-editor :is(.primary,.manager-schedule-apply-day.active) { background:#0864cb!important; color:#fff!important; -webkit-text-fill-color:#fff!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-editor-hours { background:var(--phone-edit-field)!important; border-color:var(--phone-edit-line)!important; color:var(--phone-edit-ink)!important; box-shadow:none!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-editor-hours strong { color:var(--phone-edit-ink)!important; -webkit-text-fill-color:var(--phone-edit-ink)!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-editor-hours.is-invalid { border-color:#e25664!important; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-apply-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
html #managerScheduleEditor.is-phone-team-editor .manager-schedule-apply-day { padding:4px 1px; font-size:11px!important; }
.phone-shift-caption { margin:8px 0 16px; font-size:13px; line-height:1.4; }
.phone-schedule-date-field { display:grid; gap:6px; padding:8px; font-size:13px; color:var(--phone-edit-ink)!important; }
.phone-schedule-date-field input { width:100%; min-width:0; min-height:40px; padding:6px; border:1px solid var(--phone-edit-line); border-radius:6px; background:var(--phone-edit-field); color:var(--phone-edit-ink); font-size:14px; }
.phone-schedule-move-bar { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--phone-edit-ink); }
.phone-schedule-move-bar span { min-width:0; overflow-wrap:anywhere; }
.phone-shift-actions { position:relative; flex:0 0 40px; }
.phone-shift-actions summary { display:grid; place-items:center; width:40px; height:40px; list-style:none; border:1px solid var(--phone-edit-line); border-radius:6px; cursor:pointer; }
.phone-shift-actions summary::-webkit-details-marker { display:none; }
.phone-shift-actions svg { width:18px; height:18px; }
.phone-shift-actions > div { position:absolute; z-index:2; right:0; top:44px; width:215px; max-height:50dvh; overflow:auto; padding:6px; border:1px solid var(--phone-edit-line); border-radius:8px; background:var(--phone-edit-bg); box-shadow:0 8px 24px #0004; }
.phone-shift-actions:not([open]) > div { display:none; }
.phone-shift-actions > div button { width:100%; display:flex; align-items:center; gap:8px; text-align:left; margin:3px 0; padding:8px; }
.phone-shift-actions button:disabled { opacity:.45; }
html #managerScheduleEditor.is-phone-team-editor .phone-shift-notice { font-size:12px; line-height:1.4; padding:8px; border-left:3px solid var(--phone-edit-draft-line); color:var(--phone-edit-ink)!important; }
html #managerScheduleEditor.is-phone-team-editor .phone-shift-notice[hidden] { display:none!important; }
#dashboardSection .phone-ref-schedule.is-editing .phone-schedule-conflict-label { font-size:9px; color:var(--phone-edit-ink)!important; max-width:100%; overflow-wrap:anywhere; }
.phone-schedule-tool-dialog { display:flex; flex-direction:column; gap:12px; }
.phone-schedule-tool-dialog header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.phone-schedule-tool-dialog h2 { font-size:18px; margin:0; color:var(--phone-edit-ink)!important; }
.phone-schedule-tool-list { overflow:auto; min-height:0; }
.phone-schedule-tool-person { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 0; border-bottom:1px solid var(--phone-edit-line); }
.phone-schedule-tool-person strong { font-size:13px; color:var(--phone-edit-ink)!important; overflow-wrap:anywhere; }
.phone-schedule-tool-person > div { display:flex; gap:4px; flex-shrink:0; }
#phoneScheduleToolDialog[data-kind="color"] .phone-schedule-tool-person { display:block; }
.phone-schedule-tool-person .phone-schedule-swatches { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.phone-schedule-tool-dialog .phone-schedule-swatches button { width:34px; height:34px; min-height:34px; padding:0; background:var(--swatch); border-radius:50%; border:3px solid transparent; }
.phone-schedule-swatches button[aria-pressed="true"] { outline:2px solid var(--phone-edit-ink); outline-offset:2px; }
html[data-phone-schedule-editing] .manager-schedule-copy-overlay { z-index:24000; padding:12px; }
html[data-phone-schedule-editing] .manager-schedule-copy-panel { width:min(100%,430px); max-height:calc(100dvh - 32px); border-radius:8px; }
