/* Approved Shiftplan 003 content, adapted to the inherited Shell 004.
 * Only this page/public-link shell and its live shared dialogs are styled.
 * Compact month previews are noninteractive; the 44px date opens full details.
 */
.shiftplan-page { min-width:0; color:#f4f5f6; }
.shiftplan-page h1 { font-size:30px; line-height:1.15; margin:0 0 6px; }
.shiftplan-page > .subtitle { margin:0 0 18px; font-size:13px; color:#a8abb0; }
.shiftplan-page :is(button,summary) { min-width:44px; min-height:44px; font-size:13px; box-shadow:none; }
.shiftplan-page button { border:1px solid #35383d; border-radius:8px; background:#191b1e; padding:8px 12px; }
.shiftplan-page button:hover { background:#292c30; }
.shiftplan-page button[aria-pressed=true] { border-color:#4b9cff; background:#222d3a; color:#fff; }
.shiftplan-page button.primary,body:has(.shiftplan-page) #dialog button.primary { background:#1568d4; border-color:#4b9cff; color:#fff; box-shadow:none; }
.shiftplan-page button.primary:hover,body:has(.shiftplan-page) #dialog button.primary:hover { background:#0f58b8; }
.shiftplan-page :is(button,summary,input):focus-visible,.shiftplan-page .calendar-scroll:focus-visible,body:has(.shiftplan-page) #dialog :focus-visible { outline:3px solid #6bb7ff; outline-offset:3px; }
.calendar-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; padding-bottom:16px; border-bottom:1px solid #292c30; }
.calendar-dates { display:grid; grid-template-columns:44px minmax(0,1fr) 44px auto; align-items:center; gap:8px; }
.calendar-dates > button { padding:8px; }
.calendar-period { text-align:center; font-size:14px; line-height:1.35; padding:0 5px; }
.calendar-views { display:flex; padding:3px; gap:2px; border:1px solid #35383d; border-radius:8px; }
.calendar-views button { border-color:transparent; background:transparent; padding:8px 12px; }
.calendar-workspace { display:grid; min-width:0; gap:12px; align-items:start; }
.calendar-workspace.month { grid-template-columns:minmax(322px,1fr) minmax(166px,.36fr); }
.calendar-scroll { min-width:0; max-width:100%; overflow-x:auto; border-radius:8px; scroll-margin-top:72px; }
.shiftplan-page .calendar-panel { min-width:322px; }
.shiftplan-page .week-head { border-radius:8px 8px 0 0; border-color:#35383d; background:#35383d; }
.shiftplan-page .week-head div { padding:8px 0; color:#a8abb0; background:#191b1e; font-size:11px; letter-spacing:0; text-transform:none; }
.shiftplan-page .calendar-grid { border-radius:0 0 8px 8px; border-color:#35383d; background:#35383d; box-shadow:none; }
.shiftplan-page .calendar-grid .day { min-height:94px; padding:0 3px 5px; background:#191b1e; opacity:1; }
.shiftplan-page .calendar-grid.week { grid-template-columns:repeat(7,minmax(0,1fr)); }
.shiftplan-page .calendar-grid.week .day { min-height:320px; }
.shiftplan-page .day.outside { color:#7b8088; background:#141619; }
.shiftplan-page .day.selected-day { box-shadow:inset 0 0 0 2px #4b9cff; }
.shiftplan-page .day.today { background:#1c2835; }
.shiftplan-page .day-number { display:block; width:100%; min-width:44px; min-height:44px; margin:0; padding:8px 0; border:0; background:transparent; color:inherit; font-size:12px; text-align:center; border-radius:4px; }
.shiftplan-page .day-number[aria-pressed=true] { background:transparent; color:#f4f5f6; }
.shiftplan-page .today .day-number { color:#8fc3ff; box-shadow:none; }
.shiftplan-page .day-number:focus-visible { outline-offset:-3px; }
.calendar-preview { display:grid; gap:4px; min-width:0; }
.shiftplan-page .calendar-preview .shift { display:block; min-height:26px; margin:0; padding:3px; border:0; border-radius:3px; font-size:10px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shiftplan-page .calendar-preview .shift small { font-size:9px; overflow:hidden; text-overflow:ellipsis; }
.shiftplan-page .calendar-preview .manual { box-shadow:inset 0 0 0 2px #4b9cff; }
.shiftplan-page .shift[class*='code-'] { background:var(--shift-bg,#28313a); color:var(--shift-fg,#f4f5f6); }
.shiftplan-page .shift.event { background:#30283d; border-color:#9b72cc; color:#ede3ff; }
.shiftplan-page .shift.manual { box-shadow:inset 0 0 0 2px #4b9cff; }
.shiftplan-page .code-JRP { --shift-bg:#dcebd5; --shift-fg:#08101b; }
.shiftplan-page .selected-detail { padding:12px; margin:0; border:1px solid #35383d; border-radius:8px; background:#191b1e; box-shadow:none; }
.shiftplan-page .selected-detail h2 { font-size:16px; line-height:1.4; }
.shiftplan-page .selected-detail .day-content { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; margin-top:12px; }
.shiftplan-page .day-content { min-width:0; }
.shiftplan-page .day-content > .shift { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:7px; margin:4px 0; min-height:44px; font-size:12px; border-radius:5px; text-align:left; overflow-wrap:anywhere; }
.shiftplan-page .day-content > .shift .shift-copy { flex:1 1 70px; min-width:0; }
.shiftplan-page .day-content > .shift[class*='code-'],.shiftplan-page .day-content > .shift.event { background:#222529; color:#f4f5f6; border:1px solid #45494f; }
.shiftplan-page .day-content .shift-code { background:var(--shift-bg,#45494f); color:var(--shift-fg,#fff); }
.shiftplan-page .day-content .event .shift-code { background:#9b72cc; color:#fff; }
.shiftplan-page .day-content .shift-code { display:grid; place-items:center; align-self:center; min-width:27px; min-height:27px; border:1px solid currentColor; border-radius:4px; font-weight:800; }
.shiftplan-page .shift-name { margin:0; font-weight:700; }
.shiftplan-page .member-label { font-size:11px; font-weight:400; }
.shiftplan-page .member-label strong { font-weight:500; }
.shiftplan-page .member-label small { font-size:10px; }
.shiftplan-page .day-content .shift > small { width:100%; font-size:10px; }
.shiftplan-page .day-content .compact { margin:8px 0; font-size:12px; color:#a8abb0; }
.shiftplan-page .agenda-list { gap:5px; }
.shiftplan-page .agenda-day { display:grid; grid-template-columns:30% minmax(0,1fr); gap:0; padding:0; border:1px solid #35383d; border-radius:8px; background:#191b1e; box-shadow:none; overflow:hidden; }
.shiftplan-page .agenda-day .day-number { height:100%; padding:7px; border-radius:0; border-right:1px solid #35383d; text-align:left; font-size:12px; line-height:1.3; }
.shiftplan-page .agenda-day .day-content { display:grid; grid-template-columns:minmax(0,1fr); align-content:center; gap:3px; padding:3px; }
.shiftplan-page .agenda-day .day-content > .shift { margin:0; }
.shiftplan-page .agenda-day .compact { padding:0 4px; }
.shiftplan-page .legend { display:flex; flex-wrap:wrap; gap:6px 12px; border:0; padding:0; margin:12px 0 0; background:transparent; font-size:11px; line-height:1.45; }
.shiftplan-page .legend span::before { width:10px; height:10px; margin-right:4px; }
.shiftplan-page .legend .event-key::before { background:#9b72cc; }
.shiftplan-page .legend .manual-key::before { background:transparent; border:2px solid #4b9cff; }
.shiftplan-page .roster-legend span:not([class])::before { display:none; }
.shiftplan-page .roster-scroll { max-width:100%; border:1px solid #35383d; border-radius:8px; background:#191b1e; box-shadow:none; scroll-margin-top:72px; }
.shiftplan-page .roster-table th,.shiftplan-page .roster-table td { min-width:52px; padding:3px; background:#191b1e; border-color:#35383d; }
.shiftplan-page .roster-table th:first-child { min-width:150px; max-width:180px; white-space:normal; }
.shiftplan-page .roster-table .weekend { background:#222529; }
.shiftplan-page .roster-table .roster-shift,.shiftplan-page .roster-table .roster-empty { width:44px; min-width:44px; min-height:44px; margin:1px 0; padding:5px 2px; text-align:center; font-size:12px; }
.shiftplan-page .roster-table .member-label { font-size:12px; }
.shiftplan-page > section > .compact { font-size:12px; margin:8px 0 12px; }
.shiftplan-page details.member-picker { margin:0 0 12px; }
.shiftplan-page details.member-picker > summary { min-height:44px; border-color:#35383d; background:#191b1e; padding:10px; font-size:13px; }
.shiftplan-page details.member-picker[open] > summary { border-color:#4b9cff; background:#222d3a; }
.shiftplan-page .member-menu { max-width:calc(100vw - 24px); background:#191b1e; border-color:#35383d; border-radius:8px; overflow-y:auto; max-height:60dvh; }
.shiftplan-page .member-menu .toolbar { flex-wrap:wrap; }
.shiftplan-page .member-menu button { min-width:44px; white-space:normal; }
.shiftplan-page .member-menu .member-scroll { max-height:36dvh; padding:4px; }
.shiftplan-page .member-menu h3 { font-size:13px; }
.shiftplan-page .member-checks .home-check { min-height:44px; width:100%; border-bottom:1px solid #292c30; }
.shiftplan-page .member-checks .member-label { font-size:13px; }
.shiftplan-page .member-checks .home-check > span:last-child { min-width:0; overflow-wrap:anywhere; }
body:has(.shiftplan-page) #dialog { padding:0; width:min(480px,calc(100vw - 24px)); max-height:min(90dvh,760px); margin:auto; border-radius:8px; overflow:hidden; }
body:has(.shiftplan-page) #dialog-form { display:flex; flex-direction:column; max-height:min(calc(90dvh - 2px),758px); }
body:has(.shiftplan-page) #dialog .dialog-heading { position:static; margin:0; padding:12px 16px; flex-shrink:0; }
body:has(.shiftplan-page) #dialog-title { font-size:21px; }
body:has(.shiftplan-page) #dialog-body { min-height:0; overflow-y:auto; padding:0 16px; }
body:has(.shiftplan-page) #dialog :is(button,input,select) { min-height:44px; min-width:44px; }
body:has(.shiftplan-page) #dialog :is(input,select) { max-width:100%; width:100%; }
body:has(.shiftplan-page) #dialog #dialog-close { width:44px; padding:0; }
body:has(.shiftplan-page) #dialog .cancel { color:#f4f5f6; background:#222529; border-color:#35383d; box-shadow:none; }
body:has(.shiftplan-page) #dialog .dialog-actions { position:static; flex-shrink:0; margin:0; padding:12px 16px; border-top:1px solid #35383d; gap:8px; flex-wrap:wrap; }
body:has(.shiftplan-page) #dialog .dialog-actions button { flex:1 1 0; padding:8px; }
body:has(.shiftplan-page) #dialog-error { margin:0; padding:8px 16px; overflow-wrap:anywhere; }
body:has(.shiftplan-page) #dialog-error:empty { display:none; }
body:has(.shiftplan-page) .calendar-read-field { display:grid; gap:7px; margin:14px 0; color:#a8abb0; font-size:14px; }
body:has(.shiftplan-page) .calendar-read-field output { display:block; padding:10px 12px; min-height:44px; border:1px solid #35383d; border-radius:8px; background:#141619; color:#f4f5f6; font-weight:600; overflow-wrap:anywhere; }
body:has(.shiftplan-page) #toast { bottom:12px; border-radius:8px; pointer-events:none; }
/* Logged-out access links have no private rail, scope selector or utilities. */
body.cis-public-calendar:not(:has(.login-page)) { background:#101214; padding-bottom:0; }
body.cis-public-calendar:not(:has(.login-page)) > header { height:60px; gap:10px; padding:0 18px; background:#101215; box-shadow:none; backdrop-filter:none; }
.cis-public-calendar:not(:has(.login-page)) > header .brand-lockup { width:118px; height:26px; }
.cis-public-calendar:not(:has(.login-page)) > header .brand { min-height:44px; }
.cis-public-calendar:not(:has(.login-page)) :is(.header-cis-control,#cis-name,#identity) { display:none; }
.cis-public-calendar:not(:has(.login-page)) #auth-button { margin-left:auto; min-height:44px; min-width:80px; font-size:13px; }
.cis-public-calendar:not(:has(.login-page)) > .shell { display:block; min-height:calc(100dvh - 60px); }
.cis-public-calendar:not(:has(.login-page)) > .shell > aside { display:none; }
.cis-public-calendar:not(:has(.login-page)) #main { padding:24px clamp(22px,2.5vw,38px); }
.cis-public-calendar:not(:has(.login-page)) #patch-version { margin-left:0; }
@media (max-width:1100px) and (min-width:701px) {
  .calendar-workspace.month { grid-template-columns:minmax(322px,1fr) minmax(166px,.42fr); }
  .shiftplan-page .selected-detail { padding:9px; }
}
@media (max-width:700px) {
  .shiftplan-page h1 { font-size:25px; }
  .shiftplan-page > .subtitle { margin-bottom:12px; font-size:12px; }
  .calendar-toolbar { gap:6px; padding-bottom:12px; margin-bottom:12px; }
  .calendar-dates { flex:1 0 100%; width:100%; gap:6px; }
  .calendar-period { font-size:12px; padding:0; }
  .calendar-workspace.month { grid-template-columns:minmax(0,1fr); }
  .calendar-workspace.week .calendar-panel,.calendar-workspace.day .calendar-panel { min-width:0; }
  .shiftplan-page .agenda-day { grid-template-columns:31% minmax(0,1fr); }
  .shiftplan-page:not(.shiftplan-multi) .agenda-day .member-label { display:none; }
  .shiftplan-page .agenda-day .day-content .shift-copy { flex-basis:60px; }
  .shiftplan-page .agenda-day .day-content .shift > small { width:auto; }
  .shiftplan-page .legend { font-size:10px; gap:4px 9px; }
  .shiftplan-page .member-menu { width:calc(100vw - 24px); }
  .shiftplan-page .roster-table th:first-child { min-width:108px; max-width:108px; }
  .cis-public-calendar:not(:has(.login-page)) > header { padding:0 12px; }
  .cis-public-calendar:not(:has(.login-page)) #main { padding:22px 12px 28px; }
}
