/* Personal-home additions inherit every theme and avoid backdrop effects. */
.my-work-heading { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px; }
.my-work-heading > div { min-width:0; }
.my-work-heading > [data-home-nav="inbox"] { min-height:44px;align-self:start;margin-top:22px;padding-inline:14px; }
.home-today-status { display:flex; align-items:center; gap:9px 12px; flex-wrap:wrap; margin:-8px 0 20px; font-size:12px; color:var(--muted); }
.home-today-status strong { color:var(--ink); font-size:12px; font-weight:600; }
.home-status-mark { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--muted); }
.home-today-status.working .home-status-mark { background:var(--good); box-shadow:0 0 0 4px color-mix(in srgb,var(--good) 12%,transparent); }
.home-today-status.holiday .home-status-mark { background:var(--accent); }
.home-today-status.scheduled .home-status-mark { background:var(--warn); }
.home-week { padding:22px 0 14px; }
.home-upcoming-details > summary { padding:14px 0;cursor:pointer;font-size:14px;font-weight:600;line-height:1.5;color:var(--ink); }
.home-upcoming-details[open] > summary { border-bottom:1px solid var(--line);margin-bottom:4px; }
.home-upcoming-details .my-work-shift:last-child { border-bottom:0; }
.home-week-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
#appShell #myworkView .home-week-heading h3 { margin:0 0 5px; font-size:16px; }
.home-week-heading span,.home-muted { color:var(--muted); font-size:12px; line-height:1.6; }
.home-week-nav { display:flex; align-items:center; gap:5px; }
#myworkView .home-week-nav button { min-width:34px; height:34px; min-height:34px; padding:5px 10px; border-radius:6px; box-shadow:none; }
.home-week-scroll { overflow-x:auto; scrollbar-width:thin; scroll-snap-type:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.home-week-days { display:grid; grid-template-columns:repeat(7,minmax(95px,1fr)); gap:7px; padding:1px 1px 8px; }
#appShell #myworkView .home-day { position:relative; display:flex; align-items:center; flex-direction:column; justify-content:center; gap:6px; height:104px; padding:12px 5px; border:1px solid var(--line); border-radius:8px; background:var(--panel-solid); color:var(--ink); box-shadow:none; scroll-snap-align:center; font-weight:400; }
#myworkView .home-day > span { font-size:11px; color:var(--muted); }
#myworkView .home-day > strong { font-size:23px; font-weight:600; line-height:1.2; }
#myworkView .home-day > small { font-size:10px; line-height:1.3; white-space:nowrap; }
#appShell #myworkView .home-day[aria-pressed="true"] { background:var(--ink); color:var(--panel-solid); border-color:var(--ink); }
#myworkView .home-day[aria-pressed="true"] > span { color:inherit; opacity:.75; }
#appShell #myworkView .home-day.is-today:not([aria-pressed="true"]) { border-color:color-mix(in srgb,var(--accent) 50%,var(--line)); }
.home-day-mark { display:block; width:16px; height:3px; border-radius:2px; background:transparent; }
.home-day-mark.shift { background:var(--accent); }
.home-day-mark.holiday { background:var(--warn); }
.home-day-detail { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.home-day-detail > div { min-width:0; }
.home-day-detail strong { font-size:12px; }
.home-day-detail p { color:var(--muted); margin:5px 0 0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.home-day-detail button { flex-shrink:0; }
.home-attention { margin:0 0 18px; padding:16px 18px; background:color-mix(in srgb,var(--warn) 7%,var(--panel-solid)); border-left:3px solid var(--warn); }
.home-attention > header { display:flex; align-items:center; gap:10px; }
#appShell #myworkView .home-attention h3 { margin:0; font-size:14px; }
.home-attention > header > span { font-size:11px; color:var(--muted); }
.home-attention > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; }
.home-attention strong { display:block; font-size:12px; }
.home-attention small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.home-changes { border-block:1px solid var(--line); padding:14px 0; margin-bottom:16px; }
.home-changes summary { cursor:pointer; font-size:14px; font-weight:600; }
.home-changes summary span { display:inline-flex; margin-left:8px; padding:3px 6px; border-radius:5px; background:var(--soft); color:var(--muted); font-size:11px; }
.home-change-row { padding:12px 0; border-bottom:1px solid var(--line); }
.home-change-row strong { font-size:12px; }
.home-change-row p { font-size:12px; line-height:1.5; color:var(--muted); margin:5px 0; }
.home-change-row .home-change-new { color:var(--ink); }
.home-manager { padding:0 0 18px; }
.home-manager > div { display:flex; flex-wrap:wrap; gap:8px; padding-top:12px; }
.home-hours,.home-team,.home-handover { margin-top:20px; }
.home-hours-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px 0; }
.home-hours-values > div { display:flex; flex-direction:column; gap:8px; min-width:0; }
.home-hours-values span { color:var(--muted); font-size:11px; }
.home-hours-values strong { font-size:21px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.home-hours-values small { color:var(--muted); font-size:10px; line-height:1.5; }
.home-hours-values strong.is-over { color:var(--danger); }
.home-hours-progress { display:block; width:100%; height:4px; appearance:none; border:0; background:var(--soft); accent-color:var(--accent); }
.home-hours-progress::-webkit-progress-bar { background:var(--soft); }
.home-hours-progress::-webkit-progress-value { background:var(--accent); }
.home-hours-progress::-moz-progress-bar { background:var(--accent); }
.home-team-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; }
.home-team-list.is-expanded { max-height:280px; overflow-y:auto; scrollbar-width:thin; overscroll-behavior:contain; }
.home-team > button { margin-top:10px; }
.home-team-row { display:flex; align-items:center; gap:9px; padding:9px 0; border-bottom:1px solid var(--line); min-width:0; }
.home-avatar { display:grid; place-items:center; flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:var(--soft); color:var(--ink); font-size:9px; font-weight:600; }
.home-team-row > div { flex:1; min-width:0; }
.home-team-row strong { font-size:12px; overflow-wrap:anywhere; }
.home-team-row small { display:block; margin-top:3px; font-size:10px; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.home-team-row time { font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.home-handover article { padding:14px 0; border-bottom:1px solid var(--line); }
.home-handover article header { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.home-handover article strong { font-size:12px; overflow-wrap:anywhere; }
.home-handover :is(time,small) { font-size:10px; color:var(--muted); }
.home-handover article p { margin:8px 0; font-size:12px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.home-handover > button { margin-top:12px; }
#homeHolidayDialog { width:min(560px,calc(100vw - 28px)); }
#homeHolidayDialog .dialog-body { min-width:0; }
@media(max-width:760px) {
  .home-team-list { grid-template-columns:minmax(0,1fr); }
  .home-today-status > span:last-child { flex-basis:100%; margin-left:19px; }
  .home-week-days { grid-template-columns:repeat(7,96px); }
  .home-week-heading { align-items:start; }
  .home-week-heading > div:first-child { flex:1 1 150px; }
  .home-hours-values { gap:8px; }
  .home-hours-values strong { font-size:19px; }
  .home-attention { padding:14px; }
}
@media print { .home-week-nav,.home-attention button,#homeHolidayDialog { display:none !important; } }
