/* The shared bottom bar uses the full phone viewport; keep page content below
   the status area whether the administrator banner is visible or hidden. */
@media (max-width: 759px) {
  body { padding-top: env(safe-area-inset-top, 0px); }
}

.banner {
  background: #eef5ed; border-bottom: 2px solid #6f876f;
  color: #244c29; text-align: center; font-weight: 700;
  padding: 10px 16px; font-size: 13px; letter-spacing: 0.02em;
}
.scheduling-shell { max-width: 1180px; margin: 0 auto; padding: 20px; }
.scheduling-header { display: flex; justify-content: space-between; align-items: flex-start; margin: 4px 0 16px; gap: 12px; flex-wrap: wrap; }
.scheduling-header h1 { margin: 4px 0 0; font-size: 22px; }
.scheduling-shell .app-scheduling-navigation { width: 100%; margin-top: 0; }
nav.tabs { display: flex; gap: 4px; margin-bottom: 0; }
nav.tabs button,
nav.tabs a {
  flex: 1; padding: 12px; border: 1px solid #d7ded7; background: #fff;
  font-weight: 700; font-size: 14px; color: #5c6b5e; cursor: pointer;
  border-radius: 10px 10px 0 0; border-bottom: none;
}
nav.tabs button.active { color: #2c5a29; border-color: #3E7A3A; }
nav.tabs a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; }
section.view { display: none; padding: 20px; background: #fff; border: 1px solid #d7ded7; border-radius: 0 10px 10px 10px; }
section.view.active { display: block; }
.people-grid { display: grid; gap: 10px; }
.team-group { border: 1px solid #aeb9ae; background: #fff; }
.team-group-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid #d7ded7; background: #f2f5f2;
}
.team-group-heading h3 { margin: 0; color: #17324d; font-size: 17px; }
.team-group-heading span { color: #5c6b5e; font-size: 13px; font-weight: 700; }
.team-people { display: grid; gap: 10px; padding: 10px; }
.fixed-card { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.fixed-card .person-head, .fixed-card > strong, .fixed-card > small, .fixed-card .inline-check { grid-column: 1 / -1; }
.fixed-card label { display: grid; gap: 4px; }
.inline-check { display: flex !important; align-items: center; gap: 8px; }
.person-card { border: 1px solid #d7ded7; border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.person-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.person-head small { font-weight: 400; color: #5c6b5e; }
.row-label { font-size: 12px; color: #5c6b5e; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
select { font-size: 14px; padding: 6px 8px; border: 1px solid #d7ded7; border-radius: 6px; background: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid #d7ded7; background: #f2f5f2; cursor: pointer; user-select: none; }
.chip.on { background: #3E7A3A; border-color: #3E7A3A; color: #fff; }
.chip.read-only { cursor: default; user-select: text; }
.pack-approval-note { margin: 0; }
.sunday-block { border: 1px solid #d7ded7; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.sunday-block h4 { margin: 0 0 10px; font-size: 15px; }
.slot-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid #d7ded7; font-size: 14px; }
.slot-row:first-of-type { border-top: none; }
.slot-pos { font-weight: 600; }
.flag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.flag.repeat { background: #fdf1e6; color: #b5651d; }
.flag.norest { background: #fff1cf; color: #69430b; }
.note { font-size: 13px; color: #5c6b5e; background: #f2f5f2; border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.scheduling-signin-card {
  width: min(100%, 520px); margin: 34px auto 0; border: 1px solid #aeb9ae;
  border-radius: 12px; background: #fff; padding: 24px; box-shadow: 0 12px 32px rgba(23, 50, 77, .08);
}
.scheduling-signin-card .eyebrow { margin: 0 0 5px; color: #2c5a29; }
.scheduling-signin-card h2 { margin: 0 0 8px; color: #17324d; font-size: 24px; }
.scheduling-signin-card > p:not(.eyebrow):not(.scheduling-signin-error) { margin: 0 0 18px; color: #566756; line-height: 1.45; }
.scheduling-invite-needed {
  display: grid; gap: 5px; border-left: 5px solid #b5651d; background: #fffaf3;
  color: #70400f; padding: 12px 14px; line-height: 1.4;
}
.scheduling-invite-needed[hidden] { display: none; }
.scheduling-invite-needed span { font-size: 13px; }
.scheduling-invite-needed button,
.scheduling-invite-needed a {
  min-height: 44px; box-sizing: border-box; border: 2px solid #2c5a29; border-radius: 6px;
  padding: 9px 13px; font-size: 14px; font-weight: 850; text-align: center;
}
.scheduling-invite-needed button { background: #2c5a29; color: #fff; cursor: pointer; }
.scheduling-invite-needed button:disabled { opacity: .62; cursor: wait; }
.scheduling-invite-needed a { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #2c5a29; text-decoration: none; }
.scheduling-invite-needed a[hidden] { display: none; }
.scheduling-invite-needed small { color: #70400f; line-height: 1.4; }
.scheduling-signin-form { display: grid; gap: 14px; }
.scheduling-signin-form label { display: grid; gap: 6px; color: #1c2b1e; font-size: 14px; font-weight: 800; }
.scheduling-signin-form input {
  width: 100%; min-height: 48px; box-sizing: border-box; border: 2px solid #728579;
  border-radius: 6px; background: #fff; color: #1c2b1e; padding: 9px 11px; font: inherit;
}
.scheduling-signin-form input:focus { border-color: #1d69a7; outline: 3px solid rgba(29, 105, 167, .2); }
.scheduling-signin-form button {
  min-height: 48px; border: 2px solid #2c5a29; border-radius: 6px; background: #2c5a29;
  color: #fff; padding: 9px 14px; font-size: 16px; font-weight: 850; cursor: pointer;
}
.scheduling-signin-form button:disabled { opacity: .62; cursor: wait; }
.scheduling-signin-card .scheduling-signin-help { margin: 14px 0 0 !important; font-size: 12px; }
.scheduling-signin-error {
  margin: 14px 0 0; border-left: 5px solid #a4302a; background: #fbeceb;
  color: #7d211d; padding: 10px 12px; font-size: 13px; font-weight: 800;
}
.scheduling-signin-error[hidden] { display: none; }
#scheduling-load-retry { min-height: 44px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: #5c6b5e; margin-bottom: 10px; }
.unavailable-panel { border: 2px solid #b5651d; border-radius: 10px; background: #fffaf3; padding: 14px; margin: 18px 0 22px; }
.unavailable-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.unavailable-heading .eyebrow { margin: 0 0 3px; color: #70400f; }
.unavailable-heading h3 { margin: 0; }
.unavailable-heading > span { border-radius: 999px; background: #fdf1e6; color: #70400f; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.unavailable-by-sunday { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.unavailable-sunday { border: 1px solid #d8c3a9; border-radius: 8px; background: #fff; padding: 11px; }
.unavailable-sunday-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.unavailable-sunday-heading > span { flex: 0 0 auto; color: #69430b; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.unavailable-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.unavailable-names span { border-radius: 999px; background: #fff1cf; color: #69430b; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.unavailable-none { margin: 8px 0 0; color: #5c6b5e; font-size: 12px; }
.callout-repair-panel { border: 2px solid #9f4a31; border-radius: 10px; background: #fff8f4; padding: 14px; margin: 18px 0 22px; }
.callout-repair-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.callout-repair-heading .eyebrow { margin: 0 0 3px; color: #7b3422; }
.callout-repair-heading h3 { margin: 0; }
.callout-repair-heading > button { min-height: 40px; border: 2px solid #7b3422; border-radius: 7px; background: #fff; color: #7b3422; padding: 7px 11px; font-size: 12px; font-weight: 850; cursor: pointer; }
.callout-repair-heading > button:disabled { cursor: wait; }
.callouts-needing-repair { display: grid; gap: 8px; }
.callout-repair-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr) auto; align-items: center; gap: 12px; border: 1px solid #d6a08f; border-radius: 9px; background: #fff; padding: 11px 12px; }
.callout-repair-person, .callout-repair-assignment { display: grid; gap: 3px; }
.callout-repair-person span, .callout-repair-assignment span { color: #5c6b5e; font-size: 12px; }
.callout-repair-status { border-radius: 999px; background: #f7e6df; color: #7b3422; padding: 6px 9px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.callout-repair-none { margin: 0; color: #5c6b5e; font-size: 13px; }
.toast { position: fixed; z-index: 60; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; background: #1c2b1e; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; transition: all 0.2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.master-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.master-picker { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px; border: 1px solid #c5d0c6; border-radius: 10px; background: #f4f7f3; }
.master-week-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.master-week-picker button { min-height: 46px; border: 2px solid #738378; border-radius: 8px; background: #fff; color: #25352a; font-weight: 850; cursor: pointer; }
.master-week-picker button[aria-pressed="true"] { border-color: #2c5a29; background: #2c5a29; color: #fff; }
.master-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.master-summary span { border-radius: 999px; background: #edf3ec; color: #344a38; padding: 6px 10px; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.published-schedule-mirror { margin: 16px 0 6px; }
.published-schedule-mirror-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.published-schedule-mirror-heading h3 { margin: 0; color: #17251d; font-size: 20px; }
.published-schedule-mirror-heading .eyebrow { margin: 0 0 3px; }
.published-schedule-read-only { flex: 0 0 auto; border: 1px solid #849286; border-radius: 999px; background: #f3f6f3; color: #435148; padding: 5px 9px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.published-schedule-explainer { margin: 0 0 12px; color: #4c5d50; font-size: 13px; line-height: 1.45; }
.published-schedule-scroll-hint { display: none; margin: -5px 0 10px; color: #526157; font-size: 12px; font-weight: 750; }
.published-schedule-paper { border: 1px solid #c7cec8; background: #fff; padding: 24px 26px 22px; box-shadow: 0 8px 24px rgba(24, 38, 29, .08); }
.published-schedule-paper-title { display: grid; grid-template-columns: 46% 29% 25%; align-items: end; margin: 0 0 6px; font-family: Arial, Helvetica, sans-serif; color: #090b0a; }
.published-schedule-paper-title strong { grid-column: 1 / -1; justify-self: center; font-size: 28px; line-height: 1.1; }
.published-schedule-paper-title time { grid-column: 3; justify-self: start; margin-top: 8px; font-size: 18px; font-weight: 800; }
.published-schedule-table-wrap { overflow-x: auto; outline: none; }
.published-schedule-table-wrap:focus-visible { outline: 3px solid rgba(29, 105, 167, .28); outline-offset: 3px; }
.published-schedule-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; color: #090b0a; font-family: Arial, Helvetica, sans-serif; }
.published-position-column { width: 46%; }
.published-employee-column { width: 29%; }
.published-time-column { width: 25%; }
.published-schedule-table th { border-bottom: 2px solid #111; padding: 2px 6px 5px; text-align: left; font-size: 16px; line-height: 1.1; }
.published-schedule-table td { padding: 3px 6px; vertical-align: top; font-size: 15px; line-height: 1.2; }
.published-schedule-table td:last-child { white-space: nowrap; }
.published-schedule-table .owner-adjustment-row td { background: #edf7ec; }
.published-schedule-table .owner-adjustment-row td:first-child { box-shadow: inset 4px 0 #3e7a3a; }
.owner-adjustment-badge { display: inline-flex; margin-left: 7px; border-radius: 999px; background: #2c5a29; color: #fff; padding: 3px 6px 2px; font-size: 8px; font-weight: 900; letter-spacing: .04em; line-height: 1; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.published-schedule-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.published-schedule-counts span { border-radius: 999px; background: #edf3ec; color: #344a38; padding: 6px 10px; font-size: 12px; }
.published-schedule-adjustments { margin-top: 10px; border-left: 5px solid #3e7a3a; background: #f2f8f1; padding: 10px 12px; color: #25412a; font-size: 12px; }
.published-schedule-adjustments ul { margin: 5px 0 0; padding-left: 18px; }
.published-schedule-adjustments li + li { margin-top: 3px; }
.published-schedule-adjustments li span { color: #5c6b5e; }
.published-schedule-live-changes { margin-top: 10px; border-left: 5px solid #3e7a3a; background: #f2f8f1; padding: 10px 12px; color: #25412a; font-size: 12px; }
.published-schedule-live-changes p { margin: 4px 0 0; line-height: 1.45; }
.published-schedule-live-changes ul { margin: 5px 0 0; padding-left: 18px; }
.published-schedule-live-changes li + li { margin-top: 3px; }
.published-schedule-live-changes li span { color: #5c6b5e; }
.published-schedule-current-changes { margin-top: 10px; border-left: 5px solid #b45309; background: #fff7ed; padding: 10px 12px; color: #7c2d12; font-size: 12px; }
.published-schedule-current-changes ul { margin: 5px 0 0; padding-left: 18px; }
.published-schedule-current-changes li + li { margin-top: 3px; }
.published-schedule-read-only.mismatch { border-color: rgba(180, 83, 9, 0.34); background: #fff7ed; color: #9a3412; }
.published-schedule-read-only.adjusted { border-color: rgba(62, 122, 58, 0.42); background: #f2f8f1; color: #2c5a29; }
.published-schedule-source { margin: 8px 0 0; color: #647067; font-size: 11px; }
.master-dispatch-details { margin-top: 14px; border: 1px solid #cfd8cf; border-radius: 10px; background: #f7f9f7; padding: 0 14px 14px; }
.master-dispatch-details > summary { min-height: 48px; display: flex; align-items: center; color: #2c5a29; font-size: 13px; font-weight: 850; cursor: pointer; }
.master-dispatch-details > summary::marker { color: #2c5a29; }
.master-dispatch-details .master-board-heading { margin-top: 3px; }
.master-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 10px; }
.master-board-heading > div { display: grid; gap: 3px; }
.master-board-heading > div > strong { color: #1c2b1e; font-size: 16px; }
.master-board-heading > div > span { color: #5c6b5e; font-size: 12px; }
.master-board-heading button,
.master-builder-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; box-sizing: border-box; border: 2px solid #2c5a29; border-radius: 8px; background: #fff; color: #2c5a29; padding: 8px 12px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.master-builder-actions { display: inline-flex; align-items: stretch; justify-content: flex-end; gap: 8px; }
.master-assignment-board { display: grid; gap: 9px; }
.master-assignment-card {
  display: grid; grid-template-columns: 132px minmax(180px, .9fr) minmax(250px, 1.25fr) 118px;
  gap: 14px; align-items: center; min-height: 92px; border: 1px solid #cfd8cf; border-radius: 14px;
  background: #fff; padding: 14px 15px; box-shadow: 0 4px 12px rgba(28, 43, 30, .04);
}
.master-assignment-card.pilot { border-color: #c7cbe1; background: #f8f8ff; }
.master-assignment-card.navigator { border-color: #c5dce7; background: #f4fafc; }
.master-assignment-card.vital { border-color: #dfbd7a; border-left: 5px solid #b7781a; background: #fffaf0; }
.master-assignment-card.flex { border-color: #e1cfad; background: #fffcf7; }
.master-assignment-card.roaming { border-color: #c7d9c9; background: #f5faf5; }
.master-assignment-card.is-gap { border-style: dashed; }
.master-card-time { color: #214d27; font-size: 13px; font-weight: 900; line-height: 1.25; }
.master-card-post, .master-card-person { display: grid; gap: 4px; min-width: 0; }
.master-card-post strong, .master-card-person strong { color: #17251d; font-size: 14px; line-height: 1.3; }
.master-card-post small, .master-card-person small { color: #5c6b5e; font-size: 11px; line-height: 1.35; }
.master-card-person { border: 1px solid #cfd8cf; border-radius: 9px; background: #fff; padding: 10px 11px; }
.master-card-person.unfilled { border-color: #d9a95d; background: #fff4da; }
.master-card-status { justify-self: end; border-radius: 999px; padding: 6px 9px; font-size: 9px; font-weight: 900; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.master-card-status.primary, .master-card-status.selected { background: #e6f2e4; color: #2c5a29; }
.master-card-status.cover { background: #e7eef8; color: #244e7a; }
.master-card-status.protected { background: #eee9f8; color: #5b4681; }
.master-card-status.slack { background: #edf1ed; color: #526157; }
.master-card-status.gap { background: #fff0cf; color: #69430b; }
.schedule-status { border: 1px solid #77877c; border-radius: 999px; background: #f2f5f2; color: #35483a; font-size: 12px; font-weight: 800; padding: 5px 9px; }
.schedule-status.draft { border-color: #1d69a7; color: #1d69a7; }
.schedule-status.published { border-color: #3e7a3a; background: #3e7a3a; color: #fff; }
.schedule-warning { border: 1px solid #d5a04c; border-left: 5px solid #b7781a; border-radius: 8px; padding: 12px 14px; margin-top: 12px; color: #4a310c; background: #fff4da; }
.schedule-warning strong { color: inherit; }
.schedule-warning ul { margin: 6px 0 0; padding-left: 20px; }
.publish-readiness { display: grid; gap: 2px; margin-top: 12px; border-radius: 8px; padding: 11px 13px; }
.publish-readiness span { font-size: 13px; }
.publish-readiness.attention { border: 1px solid #d5a04c; background: #fff4da; color: #4a310c; }
.publish-readiness.working { border: 1px solid #8ba0ae; background: #eef3f6; color: #233d4c; }
.publish-readiness.ready, .publish-readiness.published { border: 1px solid #72a36f; background: #edf7ec; color: #214d27; }
.master-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.saved-draft-lock { align-self: center; margin-right: auto; color: #425347; font-size: 12px; font-weight: 750; }
.master-actions button, .rollback-panel button, .time-off-panel button, .time-off-row button { min-height: 44px; border: 2px solid #17324d; background: #fff; color: #17324d; font-weight: 800; padding: 8px 14px; cursor: pointer; }
.master-actions .primary-action { background: #1d69a7; border-color: #1d69a7; color: #fff; }
.master-actions button:disabled { opacity: 1; border-color: #89968d; background: #dfe5e1; color: #435148; cursor: not-allowed; }
.master-off-list { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; border-top: 2px solid #d8c3a9; background: #fffaf3; padding: 10px 12px; color: #70400f; font-size: 13px; }
.master-off-list strong { flex: 0 0 auto; }
.rollback-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #a4302a; padding: 14px; }
.time-off-panel { display: grid; grid-template-columns: minmax(220px, auto) auto; align-items: end; justify-content: start; gap: 8px 12px; margin: 18px 0; }
.time-off-panel label { display: grid; gap: 5px; }
.time-off-panel .field-label { color: #425347; font-size: 13px; font-weight: 800; }
.time-off-panel input { min-height: 48px; border: 2px solid #728579; border-radius: 4px; background: #fff; padding: 6px 9px; font-size: 16px; cursor: pointer; }
.time-off-panel input:focus { border-color: #1d69a7; outline: 3px solid rgba(29, 105, 167, .2); }
.time-off-help { grid-column: 1 / -1; margin: 0; color: #566756; font-size: 13px; }
.time-off-confirmation {
  grid-column: 1 / -1; margin: 2px 0 0; border-left: 5px solid #3e7a3a;
  background: #f2f8f1; color: #17324d; padding: 11px 13px; font-size: 14px; font-weight: 800;
}
.time-off-confirmation[hidden] { display: none; }
.time-off-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #d7ded7; padding: 10px 0; }
.time-off-date { display: grid; gap: 3px; }
.time-off-date strong { color: #17324d; }
.time-off-date small { color: #566756; font-size: 12px; font-weight: 700; }
.my-duty { grid-template-columns: 1fr auto auto auto; align-items: center; margin-bottom: 8px; }
.my-duty-date { color: #17324d; font-weight: 800; }
.my-duty-post { color: #1c2b1e; }
.my-duty-time { color: #425347; font-weight: 700; white-space: nowrap; }
.current-sunday-duty { border: 2px solid #3e7a3a; background: #f6fbf5; box-shadow: inset 5px 0 #3e7a3a; }
.my-duty.has-open-callout { border-color: #9f4a31; background: #fff8f4; box-shadow: inset 5px 0 #9f4a31; }
.my-duty .post-order-link { color: #1d69a7; font-weight: 800; white-space: nowrap; }
.my-duty-callout { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; border-top: 1px solid #d7ded7; padding-top: 10px; }
.my-duty-callout > span { color: #566756; font-size: 12px; }
.my-duty-callout > strong { color: #7b3422; }
.my-duty-callout button { min-height: 44px; border: 2px solid #17324d; border-radius: 7px; background: #fff; color: #17324d; padding: 8px 12px; font-weight: 850; cursor: pointer; }
.my-duty-callout.open button { border-color: #2c5a29; color: #2c5a29; }
.my-duty-callout button:disabled { cursor: wait; }
.assignment-callout-confirmation { margin: 10px 0 16px; border-left: 5px solid #3e7a3a; background: #f2f8f1; color: #17324d; padding: 11px 13px; font-size: 14px; font-weight: 800; }
.assignment-callout-confirmation.is-error { border-color: #a4302a; background: #fbeceb; color: #7d211d; }
.assignment-callout-confirmation[hidden] { display: none; }
.schedule-source { margin: 18px 0 8px; color: #566756; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-source:first-child { margin-top: 0; }

.schedule-quick-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 8px;
  margin: 0 0 18px;
}
.schedule-quick-actions:not(:has(.special-events-entry:not([hidden]), .shift-marketplace-entry:not([hidden]), .time-off-entry:not([hidden]))) { display: none; }
.shift-marketplace-entry,
.special-events-entry { min-width: 0; }
.shift-marketplace-entry[hidden],
.special-events-entry[hidden] { display: none; }
.shift-marketplace-entry button,
.special-events-entry button {
  width: 100%; min-height: 48px; box-sizing: border-box; border: 2px solid #2c5a29; border-radius: 8px;
  background: #2c5a29; color: #fff; padding: 9px 6px; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer;
}
.shift-marketplace-entry button:focus-visible,
.special-events-entry button:focus-visible { outline: 3px solid #17324d; outline-offset: 2px; }
.marketplace-back,
.marketplace-card-action button {
  min-height: 48px; box-sizing: border-box; border: 2px solid #2c5a29; border-radius: 8px;
  background: #2c5a29; color: #fff; padding: 9px 14px; font: inherit; font-weight: 850; cursor: pointer;
}
.marketplace-back { margin: 0 0 14px; background: #fff; color: #2c5a29; }
.marketplace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.marketplace-heading .eyebrow { margin: 0 0 3px; color: #2c5a29; }
.marketplace-heading h2 { margin: 0; color: #17324d; font-size: 24px; }
.marketplace-source { margin: 6px 0 0; color: #566756; font-size: 13px; font-weight: 750; line-height: 1.4; }
.marketplace-pilot-badge,
.marketplace-language,
.marketplace-count,
.marketplace-offer-state {
  display: inline-flex; align-items: center; min-height: 28px; box-sizing: border-box;
  border-radius: 999px; background: #e6f2e4; color: #285f35; padding: 5px 10px;
  font-size: 11px; font-weight: 900; letter-spacing: .03em;
}
.marketplace-pilot-badge { flex: 0 0 auto; text-transform: uppercase; }
.marketplace-explainer { margin: 14px 0; border-left: 5px solid #3e7a3a; border-radius: 8px; background: #f2f8f1; color: #25412a; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.marketplace-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.marketplace-filters button {
  min-height: 48px; border: 2px solid #7b8d7d; border-radius: 9px; background: #fff;
  color: #425347; font: inherit; font-weight: 850; cursor: pointer;
}
.marketplace-filters button.active { border-color: #2c5a29; background: #2c5a29; color: #fff; }
.marketplace-status { margin: 0 0 16px; border-left: 5px solid #3e7a3a; border-radius: 8px; background: #f2f8f1; color: #17324d; padding: 11px 13px; font-size: 14px; font-weight: 800; }
.marketplace-status.is-error { border-color: #a4302a; background: #fbeceb; color: #7d211d; }
.marketplace-status[hidden] { display: none; }
.marketplace-section { margin-top: 18px; border: 1px solid #cfd8cf; border-radius: 12px; background: #f7f9f7; padding: 14px; }
.marketplace-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.marketplace-section-heading .eyebrow { margin: 0 0 2px; color: #2c5a29; }
.marketplace-section-heading h3 { margin: 0; color: #17324d; font-size: 19px; }
.marketplace-count { min-width: 28px; justify-content: center; padding-inline: 8px; }
.marketplace-card-list { display: grid; gap: 10px; }
.marketplace-card {
  display: grid; gap: 7px; min-width: 0; border: 1px solid #b8c8b9; border-radius: 11px;
  background: #fff; padding: 14px; box-shadow: 0 4px 12px rgba(28, 43, 30, .05);
}
.marketplace-card.is-eligible { border: 2px solid #3e7a3a; box-shadow: inset 4px 0 #3e7a3a; }
.marketplace-card.is-ineligible { border-color: #cbd3cc; background: #f5f7f5; }
.marketplace-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.marketplace-card > strong { color: #17251d; font-size: 17px; line-height: 1.3; }
.marketplace-date { min-width: 0; color: #566756; font-size: 12px; font-weight: 750; text-align: right; }
.marketplace-time { color: #285f35; font-size: 14px; font-weight: 900; }
.marketplace-owner { color: #566756; font-size: 13px; }
.marketplace-card-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; border-top: 1px solid #d7ded7; padding-top: 11px; }
.marketplace-card-action > span { color: #425347; font-size: 12px; line-height: 1.4; }
.marketplace-card-action button { flex: 0 0 auto; }
.marketplace-card-action button[data-marketplace-action="withdraw"] { background: #fff; color: #2c5a29; }
.marketplace-card-action button:disabled { border-color: #89968d; background: #dfe5e1; color: #435148; cursor: not-allowed; }
.marketplace-card-action button[aria-busy="true"] { cursor: wait; }
.marketplace-trade-dialog { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border: 2px solid #2c5a29; border-radius: 14px; color: #17324d; background: #f7f9f7; }
.marketplace-trade-dialog::backdrop { background: #10271a88; }
.marketplace-trade-dialog select { display: block; width: 100%; min-width: 0; margin: 12px 0; }
.marketplace-trade-dialog p { line-height: 1.5; }
.marketplace-trade-dialog .marketplace-card-action { flex-wrap: wrap; }
.marketplace-empty { margin: 0; border: 1px dashed #aeb9ae; border-radius: 9px; background: #fff; color: #566756; padding: 14px; font-size: 13px; }
.marketplace-recent { margin-top: 18px; border: 1px solid #cfd8cf; border-radius: 10px; background: #fff; }
.marketplace-recent[hidden] { display: none; }
.marketplace-recent summary { min-height: 48px; display: flex; align-items: center; box-sizing: border-box; color: #2c5a29; padding: 10px 14px; font-size: 13px; font-weight: 850; cursor: pointer; }
.marketplace-recent ul { display: grid; gap: 8px; margin: 0; padding: 0 14px 14px; list-style: none; }
.marketplace-recent li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #d7ded7; padding-top: 8px; color: #425347; font-size: 12px; line-height: 1.4; }
.marketplace-recent time { flex: 0 0 auto; color: #66756a; }

.special-events-heading .eyebrow,
.special-event-create-heading .eyebrow,
.special-events-section-heading .eyebrow { margin: 0 0 3px; color: #2c5a29; }
.special-events-back,
.special-event-create-submit,
.special-event-member-action button,
.special-event-confirmed-add button,
.special-event-volunteer-actions button,
.special-event-manager-controls button,
.special-event-message-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box;
  border: 2px solid #2c5a29; border-radius: 8px; background: #2c5a29; color: #fff;
  padding: 9px 14px; font: inherit; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer;
}
.special-events-back { margin: 0 0 14px; background: #fff; color: #2c5a29; }
.special-events-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.special-events-heading h2 { margin: 0; color: #17324d; font-size: 24px; }
.special-events-intro { margin: 6px 0 0; color: #566756; font-size: 13px; font-weight: 750; line-height: 1.4; }
.special-events-pilot-badge,
.special-events-count,
.special-event-audience,
.special-event-publication,
.special-event-volunteer-status,
.special-event-volunteer-source,
.special-event-my-status {
  display: inline-flex; align-items: center; min-height: 28px; box-sizing: border-box;
  border-radius: 999px; background: #e6f2e4; color: #285f35; padding: 5px 10px;
  font-size: 11px; font-weight: 900; letter-spacing: .03em;
}
.special-events-pilot-badge { flex: 0 0 auto; text-transform: uppercase; }
.special-events-status { margin: 14px 0 0; border-left: 5px solid #3e7a3a; border-radius: 8px; background: #f2f8f1; color: #17324d; padding: 11px 13px; font-size: 14px; font-weight: 800; }
.special-events-status.is-error { border-color: #a4302a; background: #fbeceb; color: #7d211d; }
.special-events-status[hidden] { display: none; }
.special-event-create { margin-top: 18px; border: 2px solid #3e7a3a; border-radius: 12px; background: #f2f8f1; padding: 15px; }
.special-event-create[hidden] { display: none; }
.special-event-create-heading h3 { margin: 0; color: #17324d; font-size: 19px; }
.special-event-create-heading p:not(.eyebrow) { margin: 5px 0 0; color: #425347; font-size: 13px; line-height: 1.45; }
.special-event-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.special-event-field { display: grid; align-content: start; gap: 5px; min-width: 0; color: #253b2a; font-size: 13px; font-weight: 850; }
.special-event-field-wide { grid-column: 1 / -1; }
.special-event-field input,
.special-event-field select {
  width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; border: 2px solid #728579;
  border-radius: 7px; background: #fff; color: #17251d; padding: 8px 10px; font: inherit;
}
.special-event-field input:focus,
.special-event-field select:focus { border-color: #2c5a29; outline: 3px solid rgba(62, 122, 58, .2); }
.special-event-field small { color: #566756; font-size: 11px; font-weight: 700; line-height: 1.35; }
.special-event-create-submit { margin-top: 14px; }
.special-event-create-submit:disabled,
.special-event-member-action button:disabled,
.special-event-confirmed-add button:disabled,
.special-event-volunteer-actions button:disabled,
.special-event-manager-controls button:disabled { border-color: #89968d; background: #dfe5e1; color: #435148; cursor: wait; }
.special-events-section { margin-top: 18px; border: 1px solid #cfd8cf; border-radius: 12px; background: #f7f9f7; padding: 14px; }
.special-events-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.special-events-section-heading h3 { margin: 0; color: #17324d; font-size: 19px; }
.special-events-count { min-width: 28px; justify-content: center; padding-inline: 8px; }
.special-events-list { display: grid; gap: 12px; }
.special-events-empty { margin: 0; border: 1px dashed #aeb9ae; border-radius: 9px; background: #fff; color: #566756; padding: 14px; font-size: 13px; }
.special-event-card { display: grid; gap: 12px; min-width: 0; border: 1px solid #b8c8b9; border-radius: 11px; background: #fff; padding: 14px; box-shadow: 0 4px 12px rgba(28, 43, 30, .05); }
.special-event-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.special-event-card-heading > div { display: grid; gap: 6px; min-width: 0; }
.special-event-card-heading h4 { margin: 0; color: #17251d; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.special-event-publication { flex: 0 0 auto; background: #edf1ed; color: #526157; }
.special-event-publication.published { background: #2c5a29; color: #fff; }
.special-event-when { display: grid; gap: 3px; border-left: 5px solid #3e7a3a; background: #f2f8f1; padding: 10px 12px; color: #285f35; }
.special-event-when strong { color: #17324d; font-size: 15px; }
.special-event-when > span { font-size: 14px; font-weight: 850; }
.special-event-when .special-event-location { color: #425347; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.special-event-goal { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; color: #425347; font-size: 12px; }
.special-event-goal strong { color: #25412a; font-size: 13px; }
.special-event-goal small { grid-column: 1 / -1; color: #566756; font-size: 11px; line-height: 1.4; }
.special-event-member-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #d7ded7; padding-top: 11px; color: #425347; font-size: 12px; }
.special-event-member-action button.quiet,
.special-event-volunteer-actions button.quiet,
.special-event-manager-controls button.quiet,
.special-event-message-link { background: #fff; color: #2c5a29; }
.special-event-my-status.pending,
.special-event-volunteer-status.pending { background: #edf3ec; color: #425347; }
.special-event-my-status.standby,
.special-event-volunteer-status.standby { background: #eaf2ed; color: #365a40; }
.special-event-volunteers { display: grid; gap: 8px; border-top: 1px solid #d7ded7; padding-top: 11px; }
.special-event-volunteer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.special-event-volunteer > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.special-event-volunteer > span:first-child strong { overflow-wrap: anywhere; }
.special-event-volunteer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.special-event-volunteer-actions button { min-height: 44px; padding: 7px 10px; font-size: 12px; }
.special-event-volunteer-source { background: #edf3ec; color: #425347; }
.special-event-volunteer-empty { margin: 0; border-top: 1px solid #d7ded7; padding-top: 11px; color: #566756; font-size: 12px; }
.special-event-confirmed-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 10px; border-top: 1px solid #d7ded7; padding-top: 11px; }
.special-event-confirmed-add label { display: grid; gap: 5px; min-width: 0; color: #253b2a; font-size: 12px; font-weight: 850; }
.special-event-confirmed-add select { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; border: 2px solid #728579; border-radius: 7px; background: #fff; color: #17251d; padding: 8px 10px; font: inherit; }
.special-event-confirmed-add select:focus { border-color: #2c5a29; outline: 3px solid rgba(62, 122, 58, .2); }
.special-event-confirmed-add > small { grid-column: 1 / -1; color: #566756; font-size: 11px; font-weight: 700; line-height: 1.4; }
.special-event-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.special-event-manager-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.special-event-published-note { color: #285f35; font-size: 12px; font-weight: 850; }
.special-event-message-link { margin-left: auto; }
.special-event-schedule-duty { grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr) auto auto auto; align-items: center; margin-bottom: 8px; border: 2px solid #3e7a3a; background: #f6fbf5; box-shadow: inset 5px 0 #3e7a3a; }
.special-event-schedule-location { min-width: 0; color: #425347; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.special-event-schedule-duty .special-event-message-link { min-height: 44px; white-space: nowrap; }

body.member-schedule-view #scheduling-admin-banner,
body.member-schedule-view .scheduling-header .header-actions,
body.member-schedule-view nav.tabs { display: none; }
body.marketplace-view nav.tabs { display: none; }
body.special-events-view nav.tabs { display: none; }
body.member-schedule-view .scheduling-header { margin-bottom: 12px; }
body.member-schedule-view .scheduling-header h1 { font-size: 26px; }
body.member-schedule-view section.view { border-radius: 12px; }
body.member-schedule-view #mine > h2 { display: none; }

html[data-theme="dark"] .scheduling-shell .my-duty-date,
html[data-theme="dark"] .scheduling-shell .my-duty-post,
html[data-theme="dark"] .scheduling-shell .time-off-date strong,
html[data-theme="dark"] .scheduling-shell .time-off-confirmation { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .my-duty-time,
html[data-theme="dark"] .scheduling-shell .time-off-date small { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .time-off-confirmation {
  border-color: var(--church-green); background: var(--theme-surface-strong);
}
html[data-theme="dark"] .scheduling-shell .unavailable-panel,
html[data-theme="dark"] .scheduling-shell .unavailable-sunday {
  border-color: var(--theme-border); background: var(--theme-surface);
}
html[data-theme="dark"] .scheduling-shell .unavailable-heading .eyebrow,
html[data-theme="dark"] .scheduling-shell .unavailable-none { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .unavailable-heading > span,
html[data-theme="dark"] .scheduling-shell .unavailable-names span {
  background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .unavailable-sunday-heading > span { color: #ffe0a0; }
html[data-theme="dark"] .scheduling-shell .callout-repair-panel,
html[data-theme="dark"] .scheduling-shell .callout-repair-card {
  border-color: var(--theme-border); background: var(--theme-surface);
}
html[data-theme="dark"] .scheduling-shell .callout-repair-heading .eyebrow,
html[data-theme="dark"] .scheduling-shell .callout-repair-none,
html[data-theme="dark"] .scheduling-shell .callout-repair-person span,
html[data-theme="dark"] .scheduling-shell .callout-repair-assignment span { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .callout-repair-heading > button,
html[data-theme="dark"] .scheduling-shell .callout-repair-status { background: #563326; color: #ffd9cc; }
html[data-theme="dark"] .scheduling-shell .master-off-list { border-color: var(--theme-border); background: var(--theme-surface); color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .master-picker,
html[data-theme="dark"] .scheduling-shell .master-week-picker button,
html[data-theme="dark"] .scheduling-shell .master-summary span,
html[data-theme="dark"] .scheduling-shell .schedule-status {
  border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .master-board-heading > div > strong,
html[data-theme="dark"] .scheduling-shell .master-card-post strong,
html[data-theme="dark"] .scheduling-shell .master-card-person strong { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .master-board-heading > div > span,
html[data-theme="dark"] .scheduling-shell .master-card-post small,
html[data-theme="dark"] .scheduling-shell .master-card-person small { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .master-board-heading button,
html[data-theme="dark"] .scheduling-shell .master-builder-link {
  border-color: #8fbd8a; background: var(--theme-surface-strong); color: #e5f4e3;
}
html[data-theme="dark"] .scheduling-shell .master-assignment-card,
html[data-theme="dark"] .scheduling-shell .master-card-person {
  border-color: var(--theme-border); background: var(--theme-surface-strong); box-shadow: none;
}
html[data-theme="dark"] .scheduling-shell .master-assignment-card.pilot { border-color: #68739a; background: #242839; }
html[data-theme="dark"] .scheduling-shell .master-assignment-card.navigator { border-color: #5c8295; background: #1f3038; }
html[data-theme="dark"] .scheduling-shell .master-assignment-card.vital { border-color: #b9862f; background: #382f20; }
html[data-theme="dark"] .scheduling-shell .master-assignment-card.flex { border-color: #947950; background: #312b22; }
html[data-theme="dark"] .scheduling-shell .master-assignment-card.roaming { border-color: #58795f; background: #223027; }
html[data-theme="dark"] .scheduling-shell .master-card-time { color: #b9ddb5; }
html[data-theme="dark"] .scheduling-shell .master-card-person.unfilled { border-color: #d5a04c; background: #3a301f; }
html[data-theme="dark"] .scheduling-shell .master-card-status.primary,
html[data-theme="dark"] .scheduling-shell .master-card-status.selected { background: #314b33; color: #dff2dc; }
html[data-theme="dark"] .scheduling-shell .master-card-status.cover { background: #283d54; color: #e0ecfa; }
html[data-theme="dark"] .scheduling-shell .master-card-status.protected { background: #3e3652; color: #eee6ff; }
html[data-theme="dark"] .scheduling-shell .master-card-status.slack { background: #343d36; color: #e0e7e1; }
html[data-theme="dark"] .scheduling-shell .master-card-status.gap { background: #5a431f; color: #ffe5a4; }
html[data-theme="dark"] .scheduling-shell .master-week-picker button[aria-pressed="true"] { border-color: #8fbd8a; background: #356a36; color: #fff; }
html[data-theme="dark"] .scheduling-shell .schedule-warning,
html[data-theme="dark"] .scheduling-shell .publish-readiness.attention {
  border-color: #d5a04c; background: #3a301f; color: #ffe7ad;
}
html[data-theme="dark"] .scheduling-shell .publish-readiness.working { border-color: #6f8797; background: #25343d; color: #e4eff5; }
html[data-theme="dark"] .scheduling-shell .publish-readiness.ready,
html[data-theme="dark"] .scheduling-shell .publish-readiness.published { border-color: #72a36f; background: #263c28; color: #e3f4e1; }
html[data-theme="dark"] .scheduling-shell .master-actions button:disabled { border-color: #5e6b63; background: #303934; color: #d9e0dc; }
html[data-theme="dark"] .scheduling-shell .saved-draft-lock { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .my-duty.has-open-callout { border-color: #ce7358; background: #352823; box-shadow: inset 5px 0 #ce7358; }
html[data-theme="dark"] .scheduling-shell .my-duty-callout { border-color: var(--theme-border); }
html[data-theme="dark"] .scheduling-shell .my-duty-callout > span { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .my-duty-callout > strong { color: #ffd9cc; }
html[data-theme="dark"] .scheduling-shell .my-duty-callout button { border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .assignment-callout-confirmation { border-color: var(--church-green); background: var(--theme-surface-strong); color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .assignment-callout-confirmation.is-error { border-color: #ff8178; background: rgba(164, 48, 42, .22); color: #ffd2ce; }
html[data-theme="dark"] .scheduling-shell .marketplace-explainer,
html[data-theme="dark"] .scheduling-shell .marketplace-status {
  border-color: var(--church-green); background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .marketplace-heading h2,
html[data-theme="dark"] .scheduling-shell .marketplace-section-heading h3,
html[data-theme="dark"] .scheduling-shell .marketplace-card > strong { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .marketplace-source,
html[data-theme="dark"] .scheduling-shell .marketplace-date,
html[data-theme="dark"] .scheduling-shell .marketplace-owner,
html[data-theme="dark"] .scheduling-shell .marketplace-card-action > span,
html[data-theme="dark"] .scheduling-shell .marketplace-empty,
html[data-theme="dark"] .scheduling-shell .marketplace-recent li,
html[data-theme="dark"] .scheduling-shell .marketplace-recent time { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .marketplace-back,
html[data-theme="dark"] .scheduling-shell .marketplace-filters button,
html[data-theme="dark"] .scheduling-shell .marketplace-card-action button[data-marketplace-action="withdraw"] {
  border-color: #8fbd8a; background: var(--theme-surface-strong); color: #e5f4e3;
}
html[data-theme="dark"] .scheduling-shell .marketplace-filters button.active,
html[data-theme="dark"] .scheduling-shell .marketplace-card-action button:not(:disabled):not([data-marketplace-action="withdraw"]),
html[data-theme="dark"] .scheduling-shell .shift-marketplace-entry button,
html[data-theme="dark"] .scheduling-shell .special-events-entry button { border-color: #8fbd8a; background: #356a36; color: #fff; }
html[data-theme="dark"] .scheduling-shell .marketplace-section,
html[data-theme="dark"] .scheduling-shell .marketplace-card,
html[data-theme="dark"] .scheduling-shell .marketplace-empty,
html[data-theme="dark"] .scheduling-shell .marketplace-recent { border-color: var(--theme-border); background: var(--theme-surface); box-shadow: none; }
html[data-theme="dark"] .scheduling-shell .marketplace-card.is-ineligible { background: var(--theme-surface-strong); }
html[data-theme="dark"] .scheduling-shell .marketplace-card-action,
html[data-theme="dark"] .scheduling-shell .marketplace-recent li { border-color: var(--theme-border); }
html[data-theme="dark"] .scheduling-shell .marketplace-language,
html[data-theme="dark"] .scheduling-shell .marketplace-count,
html[data-theme="dark"] .scheduling-shell .marketplace-pilot-badge,
html[data-theme="dark"] .scheduling-shell .marketplace-offer-state { background: #314b33; color: #dff2dc; }
html[data-theme="dark"] .scheduling-shell .marketplace-status.is-error { border-color: #ff8178; background: rgba(164, 48, 42, .22); color: #ffd2ce; }
html[data-theme="dark"] .scheduling-shell .special-events-status,
html[data-theme="dark"] .scheduling-shell .special-event-create,
html[data-theme="dark"] .scheduling-shell .special-event-when {
  border-color: var(--church-green); background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .special-events-heading h2,
html[data-theme="dark"] .scheduling-shell .special-event-create-heading h3,
html[data-theme="dark"] .scheduling-shell .special-events-section-heading h3,
html[data-theme="dark"] .scheduling-shell .special-event-card-heading h4,
html[data-theme="dark"] .scheduling-shell .special-event-when strong,
html[data-theme="dark"] .scheduling-shell .special-event-field { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .special-events-intro,
html[data-theme="dark"] .scheduling-shell .special-event-create-heading p:not(.eyebrow),
html[data-theme="dark"] .scheduling-shell .special-event-field small,
html[data-theme="dark"] .scheduling-shell .special-events-empty,
html[data-theme="dark"] .scheduling-shell .special-event-goal,
html[data-theme="dark"] .scheduling-shell .special-event-goal small,
html[data-theme="dark"] .scheduling-shell .special-event-member-action,
html[data-theme="dark"] .scheduling-shell .special-event-confirmed-add label,
html[data-theme="dark"] .scheduling-shell .special-event-confirmed-add > small,
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-empty,
html[data-theme="dark"] .scheduling-shell .special-event-schedule-location { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .special-event-field input,
html[data-theme="dark"] .scheduling-shell .special-event-field select,
html[data-theme="dark"] .scheduling-shell .special-event-confirmed-add select,
html[data-theme="dark"] .scheduling-shell .special-events-section,
html[data-theme="dark"] .scheduling-shell .special-events-empty,
html[data-theme="dark"] .scheduling-shell .special-event-card {
  border-color: var(--theme-border); background: var(--theme-surface); color: var(--theme-text); box-shadow: none;
}
html[data-theme="dark"] .scheduling-shell .special-events-back,
html[data-theme="dark"] .scheduling-shell .special-event-member-action button.quiet,
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-actions button.quiet,
html[data-theme="dark"] .scheduling-shell .special-event-manager-controls button.quiet,
html[data-theme="dark"] .scheduling-shell .special-event-message-link { border-color: #8fbd8a; background: var(--theme-surface-strong); color: #e5f4e3; }
html[data-theme="dark"] .scheduling-shell .special-event-create-submit,
html[data-theme="dark"] .scheduling-shell .special-event-member-action button:not(.quiet),
html[data-theme="dark"] .scheduling-shell .special-event-confirmed-add button:not(:disabled),
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-actions button:not(.quiet),
html[data-theme="dark"] .scheduling-shell .special-event-manager-controls button:not(.quiet) { border-color: #8fbd8a; background: #356a36; color: #fff; }
html[data-theme="dark"] .scheduling-shell .special-event-audience,
html[data-theme="dark"] .scheduling-shell .special-events-count,
html[data-theme="dark"] .scheduling-shell .special-events-pilot-badge,
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-status,
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-source,
html[data-theme="dark"] .scheduling-shell .special-event-my-status { background: #314b33; color: #dff2dc; }
html[data-theme="dark"] .scheduling-shell .special-event-publication { background: #343d36; color: #e0e7e1; }
html[data-theme="dark"] .scheduling-shell .special-event-publication.published { background: #356a36; color: #fff; }
html[data-theme="dark"] .scheduling-shell .special-events-status.is-error { border-color: #ff8178; background: rgba(164, 48, 42, .22); color: #ffd2ce; }
html[data-theme="dark"] .scheduling-shell .special-event-member-action,
html[data-theme="dark"] .scheduling-shell .special-event-confirmed-add,
html[data-theme="dark"] .scheduling-shell .special-event-volunteers,
html[data-theme="dark"] .scheduling-shell .special-event-volunteer-empty { border-color: var(--theme-border); }
html[data-theme="dark"] .scheduling-shell .special-event-schedule-duty { border-color: var(--church-green); background: var(--theme-surface-strong); box-shadow: inset 5px 0 var(--church-green); }
html[data-theme="dark"] .scheduling-shell .scheduling-signin-card {
  border-color: var(--theme-border); background: var(--theme-surface); box-shadow: none;
}
html[data-theme="dark"] .scheduling-shell .scheduling-signin-card h2,
html[data-theme="dark"] .scheduling-shell .scheduling-signin-form label { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .scheduling-signin-card > p:not(.eyebrow):not(.scheduling-signin-error) { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .scheduling-signin-form input {
  border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .scheduling-signin-error {
  border-color: #ff8178; background: rgba(164, 48, 42, .22); color: #ffd2ce;
}
html[data-theme="dark"] .scheduling-shell .scheduling-invite-needed {
  border-color: #e4a65d; background: rgba(181, 101, 29, .18); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .scheduling-invite-needed a {
  border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text);
}
html[data-theme="dark"] .scheduling-shell .scheduling-invite-needed small { color: var(--theme-muted); }

@media (max-width: 700px) {
  .scheduling-shell { padding: 12px; }
  nav.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  nav.tabs button, nav.tabs a { border: 1px solid #d7ded7; border-radius: 0; min-height: 52px; }
  section.view { padding: 14px; border-radius: 0; }
  .fixed-card { grid-template-columns: 1fr; }
  .fixed-card > * { grid-column: 1 !important; }
  .slot-row, .master-heading, .rollback-panel, .time-off-panel { align-items: stretch; flex-direction: column; }
  .slot-row > span:last-child { width: 100%; }
  .slot-row select { max-width: 100%; }
  .master-actions { display: grid; }
  .master-week-picker { grid-template-columns: 1fr 1fr; }
  .published-schedule-mirror-heading { align-items: flex-start; }
  .published-schedule-scroll-hint { display: block; }
  .published-schedule-paper { padding: 18px 14px; }
  .published-schedule-paper-title { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; }
  .published-schedule-paper-title time { grid-column: 2; justify-self: end; }
  .published-schedule-adjustments li span { display: block; margin-top: 2px; }
  .master-board-heading { align-items: stretch; flex-direction: column; }
  .master-builder-actions { display: grid; grid-template-columns: 1fr; }
  .master-board-heading button, .master-builder-link { width: 100%; }
  .master-assignment-card { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .master-card-time { font-size: 14px; }
  .master-card-post strong, .master-card-person strong { font-size: 16px; }
  .master-card-post small, .master-card-person small { font-size: 13px; }
  .master-card-person { min-height: 48px; }
  .master-card-status { justify-self: start; font-size: 10px; }
  .master-off-list { align-items: flex-start; flex-direction: column; }
  .my-duty { grid-template-columns: 1fr; }
  .my-duty-callout { align-items: stretch; flex-direction: column; }
  .my-duty-callout button { width: 100%; }
  .marketplace-heading { align-items: flex-start; }
  .marketplace-card-action { align-items: stretch; flex-direction: column; }
  .marketplace-card-action button { width: 100%; }
  .marketplace-recent li { flex-direction: column; gap: 3px; }
  .special-events-heading { align-items: flex-start; }
  .special-event-create-grid { grid-template-columns: 1fr; }
  .special-event-field-wide { grid-column: auto; }
  .special-event-create-submit { width: 100%; }
  .special-event-card-heading { align-items: flex-start; }
  .special-event-goal { grid-template-columns: 1fr; }
  .special-event-goal small { grid-column: auto; }
  .special-event-member-action,
  .special-event-volunteer { align-items: stretch; grid-template-columns: 1fr; }
  .special-event-confirmed-add { align-items: stretch; grid-template-columns: 1fr; }
  .special-event-confirmed-add > small { grid-column: auto; }
  .special-event-member-action { flex-direction: column; }
  .special-event-member-action button,
  .special-event-confirmed-add button,
  .special-event-volunteer-actions,
  .special-event-volunteer-actions button,
  .special-event-manager-controls,
  .special-event-manager-controls button,
  .special-event-message-link { width: 100%; }
  .special-event-message-link { margin-left: 0; }
  .special-event-schedule-duty { grid-template-columns: 1fr; }
  .time-off-panel { grid-template-columns: 1fr; }
  .time-off-panel button { width: 100%; }
  .time-off-row { gap: 12px; }
  .time-off-row button { flex: 0 0 auto; }
  .unavailable-heading { align-items: flex-start; flex-direction: column; }
  .unavailable-by-sunday { grid-template-columns: 1fr; }
  .callout-repair-heading { align-items: flex-start; flex-direction: column; }
  .callout-repair-card { grid-template-columns: 1fr; }
  .callout-repair-status { justify-self: start; }
  .scheduling-signin-card { margin-top: 18px; padding: 18px; }
}

.special-event-edit { flex-basis: 100%; width: 100%; min-width: 0; }
.special-event-edit summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.special-event-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.special-event-edit-fields label { display: grid; gap: 6px; min-width: 0; }
.special-event-edit-fields input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; padding: 10px; border: 1px solid #9eafa0; border-radius: 6px; background: white; }
@media (max-width: 420px) { .special-event-edit-fields { grid-template-columns: minmax(0, 1fr); } }
.marketplace-trade-dialog button, #marketplace-refresh {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #2c5a29;
  border-radius: 8px;
  background: #2c5a29;
  color: white;
  font: inherit;
  font-weight: 700;
}

/* Compact Special Events entry and rows. */
#special-events [hidden] { display: none !important; }
#special-events { padding: 12px; }
.special-events-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.special-events-actions button { min-height: 44px; padding: 12px 6px; border: 1px solid #2c5a29; border-radius: 8px; background: #2c5a29; color: white; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.special-events-actions button[aria-pressed="true"] { outline: 2px solid #17324d; outline-offset: 2px; }
#special-events .special-events-section { margin-top: 12px; padding: 0; border: 0; }
#special-events .special-events-list { display: block; }
#special-events .special-event-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 8px; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 9px 0; border: 0; border-bottom: 1px solid #d5dfd5; border-radius: 0; background: transparent; color: #17324d; text-align: left; font-size: 14px; }
.special-event-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.special-event-row-date, .special-event-row-status { font-size: 12px; font-weight: 500; }
#special-events .special-events-back, #special-events-list-back { min-height: 44px; padding: 6px 10px; font-size: 15px; }
#special-events .special-event-create { padding: 14px; margin: 12px 0; }
#special-events .special-event-create input, #special-events .special-event-create select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
#special-events .special-event-field { min-width: 0; }
#special-events .special-events-status { padding: 8px 10px; margin: 8px 0; font-size: 14px; }
#special-events-heading.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Marketplace: two actions and compact expandable shifts. */
#marketplace [hidden] { display: none !important; }
#marketplace { padding: 12px; }
.marketplace-title-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.marketplace-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.marketplace-actions button { min-height: 44px; padding: 10px 6px; background: #2c5a29; border: 1px solid #2c5a29; border-radius: 8px; color: white; font: inherit; font-size: 15px; font-weight: 700; }
.marketplace-actions button[aria-pressed="true"] { outline: 2px solid #17324d; outline-offset: 2px; }
#marketplace .marketplace-section { padding: 0; border: 0; margin-top: 12px; }
#marketplace .marketplace-section-heading { display: none; }
#marketplace .marketplace-card-list { display: block; }
#marketplace .marketplace-card { display: block; border: 0; border-bottom: 1px solid #d5dfd5; border-radius: 0; margin: 0; padding: 0; background: transparent; box-shadow: none; }
#marketplace .marketplace-card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.marketplace-row-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.marketplace-row-status { font-size: 12px; }
.marketplace-row-time { grid-column: 1 / -1; font-size: 13px; }
.marketplace-row-body { display: grid; gap: 8px; padding: 4px 0 12px; font-size: 14px; }
#marketplace .marketplace-back { min-height: 44px; padding: 6px 10px; font-size: 15px; }

#marketplace .marketplace-row-body button { min-height: 44px; padding: 10px; border: 1px solid #2c5a29; border-radius: 8px; background: #2c5a29; color: white; font: inherit; font-weight: 700; }
#marketplace .marketplace-row-body button:disabled { background: #e8eee8; color: #526252; border-color: #c7d2c7; }

#marketplace-refresh { min-height: 44px; padding: 6px 12px; font-size: 14px; }

.special-event-swipe { position: relative; overflow: hidden; }
#special-events .special-event-swipe .special-event-row { position: relative; z-index: 1; background: #f6f8f6; touch-action: pan-y; transition: transform 160ms ease; }
#special-events .special-event-swipe.delete-revealed .special-event-row { transform: translateX(-80px); }
#special-events .special-event-swipe-delete { position: absolute; inset: 0 0 0 auto; width: 80px; min-height: 44px; margin: 0; padding: 8px; border: 0; border-radius: 0; background: #b42318; color: white; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { #special-events .special-event-swipe .special-event-row { transition: none; } }

.special-event-share { width: 100%; }
.special-event-share summary { padding: 12px; cursor: pointer; font-weight: 700; }
.special-event-share-people { max-height: 240px; overflow-y: auto; }
.special-event-share-people label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.special-event-share-people input { width: 20px; height: 20px; }

/* Personal scheduling follows the device appearance, including newer compact rows. */
.app-navigation-brand .theme-logo-light { display: none; }
html[data-theme="light"] .app-navigation-brand .theme-logo-dark { display: none; }
html[data-theme="light"] .app-navigation-brand .theme-logo-light { display: block; }
.scheduling-shell :is(#mine, #marketplace, #special-events) :is(button, select, input:not([type="checkbox"]):not([type="radio"]), summary) { min-height: 44px; }
.scheduling-shell .assignment-note summary { padding-block: 11px; cursor: pointer; }
.scheduling-shell .my-duty .post-order-link { display: inline-flex; align-items: center; min-height: 44px; }
.scheduling-shell :is(button, a, summary, input, select, textarea):focus-visible { outline: 3px solid var(--theme-text, #14251c); outline-offset: 3px; }
.scheduling-shell .time-off-panel :disabled,
.scheduling-shell .time-off-row button:disabled { cursor: wait; opacity: .65; }
.scheduling-shell .time-off-confirmation.is-error { border-color: #a4302a; background: #fbeceb; color: #7d211d; }
.scheduling-shell :is(.time-off-confirmation, .assignment-callout-confirmation, .special-events-status) { scroll-margin-block: 24px 110px; }
#scheduling-loading-status { line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
#scheduling-load-retry { min-width: 44px; padding: 10px 16px; }
.special-event-edit-fields input { min-height: 44px; color: var(--theme-text, #17251d); }
.marketplace-trade-dialog { border-color: var(--theme-border, #c8d0ca); background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); }
.marketplace-trade-dialog select { min-height: 44px; border-color: var(--theme-border, #c8d0ca); background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); }
html[data-theme="dark"] .scheduling-shell :is(.time-off-panel .field-label, .time-off-help, .special-event-location, .special-event-published-note) { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell :is(.time-off-panel button, .time-off-row button, #special-events-list-back, #marketplace-refresh) { border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .time-off-confirmation.is-error { border-color: #ff8178; background: #3c2424; color: #ffd2ce; }
html[data-theme="dark"] .scheduling-shell .my-duty .post-order-link { color: #a9d6ff; }
html[data-theme="dark"] .scheduling-shell #special-events .special-event-row { border-color: var(--theme-border); color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell #special-events .special-event-swipe .special-event-row { background: var(--theme-surface); }
html[data-theme="dark"] .scheduling-shell .special-event-edit-fields :is(label, input) { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .special-event-edit-fields input { border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme="dark"] .scheduling-shell :is(.special-events-actions, .marketplace-actions) button[aria-pressed="true"] { outline-color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell #marketplace .marketplace-card { border-color: var(--theme-border); }
html[data-theme="dark"] .scheduling-shell #marketplace .marketplace-row-body button:disabled { border-color: var(--theme-border); background: var(--theme-surface-strong); color: var(--theme-muted); }
html[data-theme="dark"] :is(.app-mobile-page-context, .app-mobile-page-context a, .scheduling-header .eyebrow) { color: var(--theme-muted); }
html[data-theme="dark"] .app-admin-utility { color: var(--theme-text); }
html[data-theme="dark"] .scheduling-shell .app-bottom-navigation { border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme="dark"] .scheduling-shell .app-bottom-navigation-item { color: var(--theme-muted); }
html[data-theme="dark"] .scheduling-shell .app-bottom-navigation-item.active { color: var(--theme-text); }

#scheduling-read-only{font-size:.75rem;font-weight:500;color:var(--theme-muted)}
.scheduling-read-only :is(.time-off-panel,[data-remove-time-off],.my-duty-callout button,[data-marketplace-action],.marketplace-row-body>button,[data-special-event-action],.special-event-edit,.special-event-share,.special-event-confirmed-add,.member-schedule-intro){display:none!important}

/* Signup notes and coordinator-controlled event messaging. */
.special-event-create-messaging-note { margin: 8px 0 0; color: var(--theme-muted, #566756); font-size: 13px; line-height: 1.4; }
.special-event-note-field { display: grid; gap: 5px; min-width: 0; margin-bottom: 10px; color: var(--theme-text, #253b2a); font-size: 13px; font-weight: 700; }
.special-event-note-field textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 64px; resize: vertical; border: 1px solid var(--theme-border, #728579); border-radius: 7px; background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); padding: 9px; font: inherit; }
.special-event-note-field small { color: var(--theme-muted, #566756); font-size: 12px; font-weight: 400; }
.special-event-volunteer-note { flex-basis: 100%; margin: 0; color: var(--theme-text, #425347); font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.special-event-volunteer-response > .special-event-volunteer-note { margin-bottom: 10px; }
.special-event-messaging { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; min-width: 0; border-top: 1px solid var(--theme-border, #d7ded7); padding-top: 11px; }
.special-event-messaging-status { flex-basis: 100%; margin: 0; color: var(--theme-muted, #425347); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.special-event-messaging button { min-height: 44px; border: 1px solid var(--theme-border, #728579); border-radius: 7px; background: var(--theme-surface, #fff); color: var(--theme-text, #2c5a29); padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.special-event-messaging button:disabled { opacity: .65; cursor: wait; }
.special-event-messaging-schedule { flex-basis: 100%; min-width: 0; }
.special-event-messaging-schedule summary { min-height: 44px; box-sizing: border-box; padding: 12px 0; color: var(--theme-text, #2c5a29); font-size: 13px; font-weight: 700; cursor: pointer; }
.special-event-messaging-schedule label { display: grid; gap: 5px; min-width: 0; color: var(--theme-text, #253b2a); font-size: 13px; font-weight: 700; }
.special-event-messaging-schedule input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid var(--theme-border, #728579); border-radius: 7px; background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); padding: 9px; font: inherit; }
.special-event-messaging-schedule small { display: block; margin: 5px 0 8px; color: var(--theme-muted, #566756); font-size: 12px; overflow-wrap: anywhere; }
.special-event-messaging :is(button, input, summary):focus-visible,
.special-event-note-field textarea:focus-visible { outline: 3px solid var(--theme-accent, #2c5a29); outline-offset: 2px; }

/* Future events: compact session grouping using the existing event form. */
.special-event-session-group { border: 1px solid var(--line, #d5dfd5); border-radius: 12px; overflow: hidden; }
.special-event-session-group > summary { padding: 14px 16px; cursor: pointer; color: var(--ink, #173020); }
.special-event-session-group > summary span { margin-left: 12px; font-size: .85em; }
.special-event-session-list { padding: 0 8px 8px; }
.special-event-session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.special-event-parent-name, .special-event-shared-message-note { font-size: .85em; margin: 4px 0 10px; }

.special-event-session-time { display: block; white-space: normal; font-size: .8em; font-weight: 400; }
html[data-theme="dark"] .special-event-session-group { border-color: var(--theme-border); }
html[data-theme="dark"] .special-event-session-group > summary { color: var(--theme-text); }

.personal-event-sessions h3 { margin:10px 0 4px; }
.personal-event-sessions > p { margin:0 0 12px; }
#special-events .personal-event-session { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; margin:0; background:transparent; color:inherit; text-align:left; border:0; border-bottom:1px solid #d5dfd5; border-radius:0; }
.personal-event-session > span:first-child { display:grid; gap:3px; }
.personal-event-session small { opacity:.8; }
html[data-theme="dark"] #special-events .personal-event-session { border-color:var(--theme-border); }

.special-event-home-reminder-note { margin: 6px 0 0; color: var(--theme-muted, #566756); font-size: 12px; line-height: 1.4; }

.special-event-my-summary { margin-bottom: 12px; border: 1px solid var(--theme-border, #cdd8cd); border-radius: 10px; padding: 8px 10px; }
.special-event-my-summary > summary { cursor: pointer; color: var(--theme-accent, #2c5a29); font-weight: 800; }
.special-event-my-summary .personal-event-session { margin-top: 5px; padding: 7px; }
.special-event-change-note { display: grid; gap: 3px; margin: 6px 0; padding: 8px 10px; border-left: 3px solid #aa955f; background: var(--theme-surface, #faf7ef); color: var(--theme-text, #253b2a); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }

/* Event information and volunteer requests use the existing Detail theme. */
.special-event-description-field { grid-column: 1 / -1; }
.special-event-description-field textarea {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 120px; resize: vertical;
  padding: 12px; border: 1px solid var(--theme-border, #728579); border-radius: 7px;
  background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); font: inherit; line-height: 1.5;
}
.special-event-description-field small { color: var(--theme-muted, #566756); font-size: 12px; font-weight: 400; line-height: 1.4; }
.special-event-description { min-width: 0; border-top: 1px solid var(--theme-border, #d7ded7); padding: 14px 0 4px; }
.special-event-description h5, .special-event-help h5 { margin: 0; font-size: 16px; color: var(--theme-text, #17251d); }
.special-event-description p, .special-event-help-preview p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--theme-text, #17251d); }
.special-event-help { min-width: 0; scroll-margin-top: 24px; border: 1px solid var(--theme-border, #cdd8cd); border-radius: 10px; padding: 14px; background: var(--theme-surface, #fff); color: var(--theme-text, #17251d); }
.special-event-help-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.special-event-help-intro, .special-event-help-recipients p { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: var(--theme-muted, #566756); }
.special-event-help fieldset { min-width: 0; padding: 0; border: 0; margin: 0 0 14px; }
.special-event-help legend { padding: 0; font-size: 13px; font-weight: 700; }
.special-event-help-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 12px 0; border-bottom: 1px solid var(--theme-border, #d7ded7); cursor: pointer; }
.special-event-help-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--theme-accent, #2c5a29); }
.special-event-help-choice > span { color: var(--theme-text, #17251d); display: grid; gap: 4px; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.special-event-help-choice small { color: var(--theme-muted, #566756); }
.special-event-help-recipients summary { padding: 12px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.special-event-help-recipients fieldset { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.special-event-help-preview { margin: 12px 0; border-left: 3px solid var(--theme-accent, #2c5a29); padding: 12px; background: var(--theme-surface-strong, #f0f5ef); }
.special-event-help-preview p { font-size: 14px; }
.special-event-help-preview small, .special-event-help-delivery-note { color: var(--theme-muted, #566756); font-size: 12px; line-height: 1.5; }
.special-event-help-delivery-note { margin: 10px 0 0; }
.special-event-help-status { margin: 10px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.special-event-help-status.is-error { font-weight: 700; }
.special-event-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.special-event-help button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--theme-accent, #2c5a29); border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #fff; background: var(--theme-accent, #2c5a29); }
.special-event-help button.quiet { background: var(--theme-surface, #fff); color: var(--theme-text, #2c5a29); border-color: var(--theme-border, #728579); }
.special-event-help button:disabled { opacity: .55; cursor: default; }
.special-event-description-field textarea:focus-visible, .special-event-help :is(button, input, textarea, summary):focus-visible { outline: 3px solid var(--theme-accent, #2c5a29); outline-offset: 2px; }
@media (max-width: 420px) { .special-event-help { padding: 12px; } .special-event-help-actions button { flex: 1 1 100%; } }
.special-event-edit-conflict { margin: 12px 0; padding: 12px; border: 1px solid var(--theme-border, #728579); border-radius: 7px; background: var(--theme-surface-strong, #f0f5ef); color: var(--theme-text, #17251d); font-size: 13px; line-height: 1.5; }
.special-event-edit-conflict p { margin: 6px 0; }

.special-event-help-choice > span :is(strong, span) { color: var(--theme-text, #17251d); }

.special-event-preview-link { color: var(--theme-text, #17251d); font-weight: 700; text-decoration: underline; }

/* iPhone: readable input text avoids focus zoom; native date controls must not
   add horizontal padding to their declared width. Keep user pinch zoom enabled. */
#special-events :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
#special-events :is(.special-event-field, .special-event-edit-fields > label) { min-width: 0; }
#special-events input:is([type="date"], [type="time"], [type="datetime-local"]) {
  display: block;
  width: 100%;
  padding-inline: 0;
}
#special-events input:is([type="date"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value {
  min-width: 0;
  margin-inline: 10px;
  text-align: start;
}

@supports (-webkit-touch-callout: none) {
  #special-events input:is([type="date"], [type="time"], [type="datetime-local"]) {
    width: -webkit-fill-available;
    width: stretch;
  }
}

#special-event-create-form > h3:focus { outline: none; }

/* Phone time-off entry and date selection. Marketplace styles remain dormant. */
.time-off-entry[hidden], #time-off-end-wrap[hidden] { display:none!important; }
.time-off-entry button { width:100%; min-height:48px; border:2px solid #2c5a29; border-radius:8px; background:#2c5a29; color:#fff; padding:9px 6px; font:inherit; font-weight:850; cursor:pointer; }
.time-off-dialog { box-sizing:border-box; width:min(540px,100%); max-width:100%; max-height:92dvh; margin:auto auto 0; padding:16px; border:1px solid var(--theme-border); border-radius:16px 16px 0 0; background:var(--theme-surface); color:var(--theme-text); overflow:auto; }
.time-off-dialog::backdrop { background:rgb(0 0 0 / 65%); }
.time-off-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.time-off-dialog header h2 { margin:0; color:var(--theme-text); }
.time-off-dialog header button { min-width:48px; }
.time-off-dialog .time-off-panel { display:grid; grid-template-columns:1fr; padding:0; border:0; background:transparent; }
.time-off-dialog .time-off-panel label { display:grid; gap:6px; color:var(--theme-text); }
.time-off-dialog :is(input,select,button) { box-sizing:border-box; min-height:48px; font:inherit; border:1px solid var(--theme-border); border-radius:8px; padding:10px; background:var(--theme-surface-strong); color:var(--theme-text); }
.time-off-dialog :is(input,select) { width:100%; min-width:0; color-scheme:inherit; }
.time-off-dialog :is(p,strong,small,.time-off-help,.time-off-row,.time-off-confirmation) { color:var(--theme-text)!important; }
.time-off-dialog .time-off-row { background:transparent; }
.time-off-dialog #add-time-off { background:#285f3b; color:#fff; font-weight:800; }
.time-off-dialog :focus-visible,.time-off-entry button:focus-visible { outline:3px solid #4f9b59; outline-offset:2px; }
.time-off-dialog #my-time-off { max-height:none; }
.time-off-dialog li { overflow-wrap:anywhere; }
@media(min-width:700px) { .time-off-dialog { margin:auto; border-radius:16px; } }

/* Compact shared Special Events view; preserve existing theme tokens. */
html body.special-events-view #scheduling-admin-banner,
html body.special-events-view [data-quick-coverage-entry] { display: none !important; }
html body.special-events-view .scheduling-shell { padding-top: 12px; }
html body.special-events-view .scheduling-header { margin: 0 0 10px; }
html body.special-events-view .scheduling-header .eyebrow { display: none; }
html body.special-events-view .scheduling-header h1 { margin: 0; font-size: 24px; line-height: 1.2; }
html body.special-events-view #special-events { padding: 12px; min-height: 0; }
html body.special-events-view #special-events .special-events-back { margin: 0 0 8px; }
html body.special-events-view #special-events .special-events-actions { margin: 0 0 10px; gap: 8px; }
html body.special-events-view #special-events .special-events-actions button { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.special-events-list-heading { margin: 8px 0 4px; font-size: 15px; }
.special-events-past { margin-top: 12px; border-top: 1px solid var(--theme-border, #d5dfd5); }
.special-events-past > summary { min-height: 44px; padding: 10px 0; box-sizing: border-box; cursor: pointer; font-weight: 700; }
.special-events-past > summary span { margin-left: 6px; color: var(--theme-muted, #566756); font-weight: 400; }
html body.special-events-view #special-events .special-event-row-title { white-space: normal; overflow-wrap: anywhere; }
html body.special-events-view #special-events .special-event-session-time { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; }
html body.special-events-view #special-events .special-event-session-group { margin: 6px 0; padding: 0 8px; }
.special-event-history-note { margin: 0; color: var(--theme-muted, #566756); font-size: 13px; }
html body.special-events-view #special-events .special-events-empty { margin: 8px 0; padding: 0; min-height: 0; }
@media (max-width: 759px) {
  html body.special-events-view .scheduling-shell { padding: 10px 12px; }
  html body.special-events-view #special-events .special-event-row { grid-template-columns: 44px minmax(0,1fr) auto 8px; gap: 6px; }
}

html body.special-events-view #special-events .special-events-actions { display: flex; flex-wrap: wrap; }
html body.special-events-view #special-events .special-events-actions button { flex: 0 1 auto; }
.special-event-row-coverage { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--theme-muted, #566756); }
@media (max-width: 759px) { html body.special-events-view #special-events .special-events-actions button { flex: 1 1 120px; } }

.time-off-scope { display:flex; gap:12px; grid-column:1/-1; }
.time-off-scope label { display:flex; align-items:center; gap:7px; min-height:44px; }
.time-off-scope input { width:18px; min-height:0; margin:0; }
.time-off-hours { display:grid; grid-template-columns:1fr 1fr; gap:8px; grid-column:1/-1; }
.time-off-hours[hidden] { display:none; }
.time-off-hours label { min-width:0; }
.time-off-row-actions { display:flex; gap:6px; }
.time-off-coverage-row { display:grid; gap:3px; padding:8px 0; border-bottom:1px solid var(--theme-border,#d7ded7); }
.time-off-leader-alerts { margin:8px 0 12px; padding:10px 12px; background:var(--theme-surface,#fff); border:1px solid var(--theme-border,#d7ded7); border-radius:8px; }
.time-off-leader-alerts summary { font-weight:700; min-height:44px; }
.time-off-duty-warning { grid-column:1/-1; color:var(--theme-text,#17251d); font-weight:700; }
.time-off-coverage-row small { color:var(--theme-muted,#566756); }

.time-off-scope[hidden] { display:none; }

#time-off-dialog .time-off-scope label { display:flex; flex-direction:row; align-items:center; gap:7px; margin:0; min-height:44px; }
#time-off-dialog .time-off-scope input { flex:0 0 18px; width:18px; height:18px; min-height:18px; padding:0; }
#time-off-dialog .time-off-confirmation { margin:8px 0; padding:8px 10px; background:var(--theme-surface-strong); }
#time-off-dialog #my-time-off h3 { margin:12px 0 6px; }
