/* Incremental polish of the existing workflow. IDs scope overrides of the
   legacy inline tablet rules; hidden/disabled permission states stay intact. */
#announcerOperationalApp .topbar {
  gap: 14px !important;
  box-shadow: 0 1px 3px rgb(16 42 67 / 6%) !important;
}
#announcerOperationalApp .topbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0;
}
#announcerOperationalApp .topbar-actions > :is(button, select) {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
#announcerOperationalApp .topbar-actions #locationSelect {
  flex: 1 1 220px;
  max-width: 280px;
}
#announcerOperationalApp .topbar-actions #viewSelect {
  flex: 0 1 160px;
}
#announcerOperationalApp .topbar-actions .identity-pill {
  flex: 1 1 190px;
  min-width: 150px !important;
  max-width: 280px;
  justify-content: flex-start;
}
#announcerOperationalApp .topbar-actions .next-pill {
  flex: 1 0 100%;
  min-width: 0 !important;
  max-width: none;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 8px 12px !important;
}
#announcerOperationalApp .topbar :is(button, select):focus-visible,
#panelRoster :is(button, select, input, .roster-table-wrap):focus-visible {
  outline: 3px solid var(--fc-core-blue) !important;
  outline-offset: 3px;
}
#panelRoster > .card {
  min-width: 0;
  padding: 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgb(16 42 67 / 6%) !important;
}
#panelRoster h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  color: var(--text);
}
#panelRoster .roster-date-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#panelRoster .roster-date-controls h2 { margin-right: 10px; }
#panelRoster :is(.roster-date-controls, .roster-toolbar) :is(input, select, button) {
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
#panelRoster .blocks {
  gap: 10px !important;
  margin-top: 16px;
}
#panelRoster .blocks button {
  min-height: 44px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
#panelRoster .blocks button.active {
  background: var(--fc-core-blue) !important;
  color: white !important;
  border-color: var(--fc-core-blue) !important;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 18%) !important;
}
#panelRoster .roster-toolbar { gap: 10px 12px !important; }
#panelRoster .roster-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 0 100%;
}
#panelRoster #tagLegend {
  order: 10;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0 14px;
  margin: 0;
}
#panelRoster #tagLegend .legendItem { gap: 5px; white-space: nowrap; }
#panelRoster #tagLegend .legendText { font-size: 12px; }
#panelRoster .roster-toolbar > .spacer { display: none; }
#panelRoster .searchWrap { flex: 1 1 240px; max-width: 420px; min-width: 0; }
#panelRoster #rosterSearch { width: 100%; min-width: 0; }
#panelRoster .roster-sort-label { margin-left: auto; font-size: 13px; }
#panelRoster #sortBy { max-width: 100%; }
#panelRoster .roster-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior-x: contain;
}
#panelRoster .roster-table {
  width: 100% !important;
  min-width: 1090px !important;
  margin: 0;
}
#panelRoster .roster-table :is(th, td) {
  display: table-cell !important;
  padding: 12px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  vertical-align: middle;
}
#panelRoster .roster-table col { display: table-column !important; }
#panelRoster .roster-table th { font-size: 12px !important; font-weight: 750; }
#panelRoster .roster-table .rosterCell { overflow-wrap: anywhere; }
#panelRoster .roster-table .level.rosterCell {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
#panelRoster .typeLevelCell .primary {
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
#panelRoster #rosterSearch::placeholder { color: var(--muted); opacity: 1; }
body.light-mode #panelRoster #rosterDate { color-scheme: light; }
#panelRoster .roster-table .flagRow { gap: 5px; margin-top: 5px; }
#panelRoster .roster-table .attBtn {
  min-width: 40px !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
@media (max-width: 980px) {
  #announcerOperationalApp .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #announcerOperationalApp .topbar-actions #locationSelect {
    flex: 1 1 55%; max-width: none; min-width: 0 !important;
  }
  #announcerOperationalApp .topbar-actions #viewSelect {
    flex: 1 1 35%; min-width: 0 !important;
  }
  #announcerOperationalApp .topbar-actions .identity-pill {
    flex: 1 1 180px; max-width: none;
  }
}
@media (max-width: 600px) {
  #announcerOperationalApp .topbar-actions .identity-pill {
    flex: 1 1 180px;
  }
  #announcerOperationalApp .topbar-actions #uploadHtmlBtn {
    order: 4;
    flex: 0 0 112px;
  }
  #panelRoster > .card { padding: 12px !important; }
  #panelRoster .roster-date-controls h2 { flex-basis: 100%; }
  #panelRoster .time-block-toolbar > .spacer { display: none; }
  #panelRoster .time-block-toolbar { gap: 12px; }
  #panelRoster .searchWrap { flex-basis: 100%; max-width: none; }
  #panelRoster .roster-sort-label { margin-left: 0; }
  #panelRoster #tagLegend { gap: 8px 12px; }
}

/* 2026-09-15 main workspace layout: theme changes color, never geometry. */
#announcerOperationalApp .topbar {
  display: grid !important;
  grid-template-columns: minmax(240px, .5fr) minmax(0, 1.8fr) !important;
  align-items: center;
  gap: 24px !important;
  padding: 18px 24px !important;
}
#announcerOperationalApp .topbar-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "context utility"
    "status status";
  gap: 8px 12px !important;
  align-items: center;
}
#announcerOperationalApp .topbar-context {
  grid-area: context;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#announcerOperationalApp .topbar-utility {
  grid-area: utility;
  display: flex;
  align-items: center;
  gap: 6px;
}
#announcerOperationalApp .topbar-status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#announcerOperationalApp .topbar-actions #locationSelect {
  flex: 1 1 220px;
  min-width: 190px !important;
  max-width: 300px;
}
#announcerOperationalApp .topbar-actions #viewSelect {
  flex: 0 0 140px;
  min-width: 120px !important;
}
#announcerOperationalApp .topbar-actions .identity-pill {
  flex: 1 1 200px;
  min-width: 170px !important;
  max-width: 280px;
}
#announcerOperationalApp .topbar-actions .device-pill {
  flex: 0 0 auto;
  min-width: 102px;
}
#announcerOperationalApp .topbar-actions .next-pill {
  order: unset;
  flex: 1 1 240px;
  min-width: 0 !important;
  max-width: none;
}
#announcerOperationalApp .topbar-actions .time-pill,
#announcerOperationalApp .topbar-actions .last-pill {
  order: unset;
  flex: 0 0 auto;
  margin: 0;
}
#announcerOperationalApp .topbar-utility > button {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
}
#announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
  order: unset;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}
body.android-app #announcerOperationalApp .topbar-utility > button,
body.ios-app #announcerOperationalApp .topbar-utility > button,
body.mobile-pwa #announcerOperationalApp .topbar-utility > button {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

#panelRoster .time-block-card {
  padding: 16px 18px !important;
}
#panelRoster .time-block-toolbar {
  align-items: center;
  gap: 10px 14px !important;
}
#panelRoster .time-block-selection {
  display: flex;
  align-items: center;
  gap: 8px;
}
#panelRoster #selectedBlockIssueBtn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 6px 10px !important;
  white-space: nowrap;
}
#panelRoster .blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px !important;
  margin-top: 12px;
}
#panelRoster .block-option {
  position: relative;
}
#panelRoster .block-option > button[data-time] {
  position: relative;
  min-width: 132px;
  padding-inline: 18px 26px !important;
}
#panelRoster .block-option > button[data-time].has-issue::after {
  content: "!";
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--fc-alert-gold);
  color: #3c2700;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
#panelRoster .roster-card {
  padding: 16px 18px !important;
}
#panelRoster .roster-toolbar {
  align-items: center;
  gap: 10px !important;
}
#panelRoster #tagLegend {
  order: 5;
  padding: 0;
  flex: 0 1 auto;
}
#panelRoster .roster-heading {
  flex: 1 1 180px;
}
#panelRoster .searchWrap {
  order: 4;
  flex: 1 1 260px;
}
#panelRoster .roster-sort-label {
  order: 6;
}
#panelRoster #sortBy {
  order: 7;
  min-width: 185px;
}

@media (max-width: 1180px) {
  #announcerOperationalApp .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  #announcerOperationalApp .topbar-actions {
    width: 100%;
  }
}
@media (max-width: 760px) {
  #announcerOperationalApp .topbar {
    padding: 14px !important;
  }
  #announcerOperationalApp .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "context"
      "utility"
      "status";
  }
  #announcerOperationalApp .topbar-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, .58fr);
  }
  #announcerOperationalApp .topbar-actions #locationSelect,
  #announcerOperationalApp .topbar-actions #viewSelect,
  #announcerOperationalApp .topbar-actions .identity-pill {
    min-width: 0 !important;
    width: 100%;
    max-width: none;
  }
  #announcerOperationalApp .topbar-actions .identity-pill {
    grid-column: 1 / -1;
  }
  #announcerOperationalApp .topbar-utility {
    justify-content: flex-start;
  }
  #announcerOperationalApp .topbar-status .time-pill,
  #announcerOperationalApp .topbar-status .last-pill {
    display: none;
  }
  #panelRoster .time-block-toolbar,
  #panelRoster .roster-toolbar {
    align-items: flex-start;
  }
  #panelRoster .time-block-selection {
    width: 100%;
    justify-content: space-between;
  }
  #panelRoster .block-option {
    flex: 1 1 calc(50% - 4px);
  }
  #panelRoster .block-option > button[data-time] {
    width: 100%;
    min-width: 0;
  }
  #panelRoster #tagLegend {
    flex-basis: 100%;
    order: 8;
  }
}
@media (max-width: 420px) {
  #announcerOperationalApp .topbar-context {
    grid-template-columns: 1fr;
  }
  #announcerOperationalApp .topbar-actions #viewSelect,
  #announcerOperationalApp .topbar-actions .identity-pill {
    grid-column: auto;
  }
  #announcerOperationalApp .topbar-utility {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #announcerOperationalApp .topbar-utility > button,
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
    width: 100% !important;
    min-width: 0 !important;
  }
  #panelRoster .time-block-selection {
    align-items: stretch;
    flex-direction: column;
  }
  #panelRoster #selectedBlockIssueBtn {
    width: 100%;
  }
}

/* Keep native-shell headers on the same grid contract as browser headers. */
body.android-app #announcerOperationalApp .topbar-actions,
body.ios-app #announcerOperationalApp .topbar-actions,
body.mobile-pwa #announcerOperationalApp .topbar-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "context utility"
    "status status" !important;
  gap: 8px 12px !important;
}
body.android-app #announcerOperationalApp .topbar-context,
body.ios-app #announcerOperationalApp .topbar-context,
body.mobile-pwa #announcerOperationalApp .topbar-context {
  grid-area: context;
  min-width: 0;
}
body.android-app #announcerOperationalApp .topbar-utility,
body.ios-app #announcerOperationalApp .topbar-utility,
body.mobile-pwa #announcerOperationalApp .topbar-utility {
  grid-area: utility;
  min-width: 0;
}
body.android-app #announcerOperationalApp .topbar-status,
body.ios-app #announcerOperationalApp .topbar-status,
body.mobile-pwa #announcerOperationalApp .topbar-status {
  grid-area: status;
  min-width: 0;
}
@media (max-width: 760px) {
  body.android-app #announcerOperationalApp .topbar-actions,
  body.ios-app #announcerOperationalApp .topbar-actions,
  body.mobile-pwa #announcerOperationalApp .topbar-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "context"
      "utility"
      "status" !important;
  }
}

/* Keep roster work controls together when the table is sparse or the viewport narrows. */
#panelRoster .roster-actions {
  order: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
#panelRoster .roster-actions .roster-sort-label {
  margin-left: 4px;
  white-space: nowrap;
}
#panelRoster .roster-actions #sortBy {
  min-width: 176px;
}
@media (max-width: 760px) {
  #panelRoster .roster-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  #panelRoster .roster-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
  #panelRoster .roster-actions #addSwimmerBtn { flex: 1 1 100%; }
  #panelRoster .roster-actions #sortBy { min-width: 0; flex: 1 1 160px; }
}

/* The roster toolbar has one work row and one reference row. */
#panelRoster .roster-heading { order: 1; flex: 0 0 auto; }
#panelRoster .searchWrap { order: 2; flex: 1 1 280px; }
#panelRoster .roster-actions { order: 3; flex: 0 0 auto; }
#panelRoster #tagLegend {
  order: 4;
  flex: 1 0 100%;
  padding: 2px 0 0;
}
@media (max-width: 760px) {
  #panelRoster .roster-heading { flex-basis: 100%; }
  #panelRoster .roster-actions { flex-basis: 100%; }
}

/* 2026-09-17 public workspace: a calm, tablet-first daily workflow. */
#announcerOperationalApp {
  --ops-radius: 14px;
  --ops-control-radius: 10px;
  --ops-panel-shadow: 0 8px 22px rgb(16 42 67 / 7%);
}
#announcerOperationalApp .topbar {
  border-radius: var(--ops-radius) !important;
  box-shadow: var(--ops-panel-shadow) !important;
}
#announcerOperationalApp .brand-lockup {
  align-self: center;
}
#announcerOperationalApp .brand-title {
  font-size: 19px;
  letter-spacing: -.025em;
}
#announcerOperationalApp .brand-powered {
  font-weight: 700;
}
#announcerOperationalApp .topbar-context > :is(select, button, span),
#announcerOperationalApp .topbar-utility > button {
  border-radius: var(--ops-control-radius) !important;
}
#announcerOperationalApp .topbar-context > select {
  font-weight: 750;
}
#announcerOperationalApp .identity-pill {
  text-align: left;
}
#announcerOperationalApp .identity-reminder {
  display: none;
}
#announcerOperationalApp .topbar-status {
  min-height: 32px;
}
#announcerOperationalApp .topbar-status .next-pill {
  min-height: 32px;
  padding-block: 6px !important;
}
#announcerOperationalApp .topbar-utility > button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
body.public-workspace #announcerOperationalApp :is(#speakerPanelBtn, #settingsBtn, #nextAnnouncementPill)[hidden] {
  display: none !important;
}
body.light-mode #announcerOperationalApp .topbar {
  background: #fff !important;
}
body.dark-mode #announcerOperationalApp .topbar {
  background: #0d1b2b !important;
  border-color: #29465f !important;
  box-shadow: none !important;
}

#panelRoster > .time-block-card,
#panelRoster > .roster-card,
#panelGuardTasks > .card {
  border-radius: var(--ops-radius) !important;
  box-shadow: var(--ops-panel-shadow) !important;
}
#panelRoster .time-block-card {
  background: var(--surface) !important;
}
#panelRoster .time-block-toolbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
#panelRoster .roster-date-controls h2 {
  font-size: 19px;
  letter-spacing: -.02em;
}
#panelRoster .roster-date-controls label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
#panelRoster .time-block-selection .pill {
  background: var(--chip) !important;
}
#panelRoster .blocks {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  width: 100%;
}
#panelRoster .block-option {
  min-width: 0;
}
#panelRoster .block-option > button[data-time] {
  min-width: 0;
  width: 100%;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
#panelRoster .blocks button:not(.active) {
  background: var(--btn) !important;
}
#panelRoster .roster-card {
  background: var(--surface) !important;
}
#panelRoster .roster-heading {
  align-items: center;
}
#panelRoster #rosterMeta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#panelRoster .searchWrap {
  min-height: 44px;
}
#panelRoster .searchInput {
  border-radius: var(--ops-control-radius) !important;
}
#panelRoster .roster-actions > :is(button, select) {
  border-radius: var(--ops-control-radius) !important;
}
#panelRoster #tagLegend {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 10px;
}
#panelRoster #tagLegend .legendItem {
  color: var(--muted);
}
#panelRoster .roster-table-wrap {
  margin-top: 4px;
  border-radius: var(--ops-control-radius);
  box-shadow: none;
}
#panelRoster .roster-table th {
  background: var(--surface-strong) !important;
}
#panelRoster .roster-table tbody tr {
  --roster-row-bg: var(--surface);
}
#panelRoster .roster-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent-soft) 56%, var(--surface)) !important;
}

#panelGuardTasks > .card {
  padding: 18px !important;
  background: var(--surface) !important;
}
#panelGuardTasks .guard-page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
#panelGuardTasks .guard-page-head h2 {
  font-size: 21px !important;
  letter-spacing: -.02em;
}
#panelGuardTasks .guard-meta {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}
#panelGuardTasks .guard-setup-row {
  display: grid !important;
  grid-template-columns: minmax(148px, .75fr) repeat(4, minmax(170px, 1fr));
  gap: 12px !important;
  margin: 16px 0 0;
  padding: 0;
}
#panelGuardTasks .guard-setup-row .spacer {
  display: none;
}
#panelGuardTasks .guard-setup-row > button {
  min-height: 42px;
}
#panelGuardTasks .guard-hint-text,
#panelGuardTasks .guard-manager-note {
  color: var(--muted) !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
#panelGuardTasks .guard-manager-note {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
#panelGuardTasks .guard-import-status {
  border-radius: var(--ops-control-radius);
}
#panelGuardTasks .guard-grid {
  gap: 12px;
}
#panelGuardTasks .guard-section {
  border-radius: var(--ops-radius);
  box-shadow: none !important;
}
#panelGuardTasks .guard-section h4 {
  font-size: 15px;
  letter-spacing: -.01em;
}
#panelGuardTasks .guard-task {
  border-radius: var(--ops-control-radius);
  box-shadow: none !important;
}
#panelGuardTasks .guard-task-main {
  font-size: 14px;
  line-height: 1.35;
}
#panelGuardTasks .guard-task-fields {
  gap: 8px;
}
#panelGuardTasks .guard-action input[type="text"],
#panelGuardTasks .guard-action button,
#panelGuardTasks .guard-add-row button,
#panelGuardTasks .guard-rotation-toolbar button {
  border-radius: var(--ops-control-radius) !important;
}
body.light-mode #panelGuardTasks .guard-section {
  background: #fff !important;
}
body.dark-mode #panelGuardTasks > .card,
body.dark-mode #panelGuardTasks .guard-section {
  background: #101d2d !important;
}
body.dark-mode #panelGuardTasks .guard-task {
  background: #13243a !important;
}

@media (max-width: 1180px) {
  #panelGuardTasks .guard-setup-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #panelGuardTasks .guard-setup-row > button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  #announcerOperationalApp .topbar {
    padding: 14px !important;
  }
  #announcerOperationalApp .brand-lockup img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  #announcerOperationalApp .brand-title {
    font-size: 18px;
  }
  #panelRoster .time-block-toolbar {
    padding-bottom: 12px;
  }
  #panelRoster .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #panelRoster #tagLegend {
    max-height: 88px;
    overflow: auto;
    padding-bottom: 2px;
  }
  #panelGuardTasks > .card {
    padding: 14px !important;
  }
  #panelGuardTasks .guard-setup-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #panelGuardTasks .guard-setup-row .field:first-child {
    grid-column: 1 / -1;
  }
  #panelGuardTasks .guard-meta {
    width: 100%;
  }
}
@media (max-width: 420px) {
  #panelRoster .blocks,
  #panelGuardTasks .guard-setup-row {
    grid-template-columns: 1fr;
  }
  #panelGuardTasks .guard-setup-row .field:first-child {
    grid-column: auto;
  }
  #panelRoster .roster-date-controls > :is(input, button) {
    flex: 1 1 auto;
  }
}

/* Empty days should explain themselves without leaving a stray narrow card. */
#panelRoster .blocks > .roster-empty-state,
#panelRoster .blocks > .source-availability {
  grid-column: 1 / -1;
  align-items: center;
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface));
  border: 1px dashed var(--line2);
  border-radius: var(--ops-control-radius);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 88px;
  padding: 16px;
  width: 100%;
}
#panelRoster .roster-empty-copy {
  display: grid;
  gap: 3px;
}
#panelRoster .roster-empty-copy strong {
  font-size: 15px;
}
#panelRoster .roster-empty-copy span {
  color: var(--muted);
  font-size: 13px;
}
body.public-workspace #uploadHtmlBtn:disabled {
  background: var(--btn) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
@media (max-width: 980px) {
  body.public-workspace #uploadHtmlBtn .desktop-upload-label {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: 0;
    position: static;
    white-space: normal;
    width: auto;
  }
}
@media (max-width: 600px) {
  #panelRoster .blocks > .roster-empty-state,
  #panelRoster .blocks > .source-availability {
    align-items: flex-start;
    flex-direction: column;
  }
  body.public-workspace #uploadHtmlBtn {
    gap: 7px;
  }
}


/* Public standalone keeps the complete operations console. The body class remains an
   access-mode hook only; it must never remove available work or context. */
body.public-workspace #announcerOperationalApp .topbar-status {
  display: flex;
}

/* Two-state attendance keeps the whole roster visible while making the next tap obvious. */
#panelRoster .roster-table .attWrap {
  gap: 8px;
  min-width: 148px;
}
#panelRoster .roster-table .attBtn {
  flex: 1 1 0;
  min-width: 68px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: -.01em;
  opacity: 1;
}
#panelRoster .roster-table .attBtn.here:not(.active) {
  background: color-mix(in srgb, var(--good) 10%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--good) 42%, var(--line)) !important;
  color: color-mix(in srgb, var(--good) 84%, var(--text)) !important;
}
#panelRoster .roster-table .attBtn.absent:not(.active) {
  background: color-mix(in srgb, var(--bad) 8%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--bad) 36%, var(--line)) !important;
  color: color-mix(in srgb, var(--bad) 84%, var(--text)) !important;
}
#panelRoster .roster-table .attBtn.active::after {
  content: 'Tap again to undo';
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-left: 5px;
  opacity: .82;
}
@media (max-width: 600px) {
  #panelRoster .roster-table .attWrap { min-width: 140px; }
  #panelRoster .roster-table .attBtn { min-width: 64px !important; font-size: 12px !important; }
  #panelRoster .roster-table .attBtn.active::after { display: none; }
}

/* 2026-09-17 roster work-surface pass: preserve operational density, reduce visual noise. */
#panelRoster .roster-card {
  padding: 0 !important;
  overflow: hidden;
}
#panelRoster .roster-toolbar {
  display: grid !important;
  grid-template-columns: minmax(190px, auto) minmax(260px, 1fr) auto;
  grid-template-areas:
    "heading search actions"
    "legend legend legend";
  align-items: center;
  column-gap: 18px !important;
  row-gap: 10px !important;
  padding: 20px 20px 0;
  margin: 0;
  border: 0;
  background: var(--surface) !important;
}
#panelRoster .roster-heading {
  grid-area: heading;
  flex: unset;
  gap: 10px;
}
#panelRoster .roster-heading h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
}
#panelRoster #rosterMeta {
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
#panelRoster .searchWrap {
  grid-area: search;
  max-width: 460px;
  width: 100%;
  justify-self: stretch;
}
#panelRoster .searchInput {
  min-height: 46px !important;
  background: color-mix(in srgb, var(--surface-strong) 76%, var(--surface)) !important;
  border-color: var(--line) !important;
  font-size: 14px !important;
}
#panelRoster .roster-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: 0;
}
#panelRoster .roster-actions .roster-sort-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
#panelRoster .roster-actions #sortBy {
  min-width: 178px;
  min-height: 46px !important;
  background: var(--surface) !important;
}
#panelRoster #tagLegend {
  grid-area: legend;
  order: unset;
  gap: 7px 12px;
  margin: 0;
  padding: 11px 0 14px;
  border-top: 1px solid var(--line);
}
#panelRoster #tagLegend .legendItem {
  color: var(--muted);
  font-size: 12px;
}
#panelRoster #tagLegend .flagBadge {
  transform: scale(.9);
  transform-origin: left center;
}
#panelRoster .roster-table-wrap {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}
#panelRoster .roster-table {
  min-width: 1140px !important;
}
#panelRoster .roster-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 16px !important;
  color: var(--muted) !important;
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--surface)) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .075em;
  text-transform: uppercase;
}
#panelRoster .roster-table td {
  padding: 15px 16px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
}
#panelRoster .roster-table tbody tr {
  --roster-row-bg: var(--surface);
  transition: background-color .16s ease;
}
#panelRoster .roster-table tbody tr:nth-child(even) {
  --roster-row-bg: color-mix(in srgb, var(--surface) 96%, var(--surface-strong));
}
#panelRoster .roster-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--roster-row-bg)) !important;
}
#panelRoster .roster-table tbody tr.row-here td {
  background: color-mix(in srgb, var(--good) 5%, var(--roster-row-bg)) !important;
}
#panelRoster .roster-table tbody tr.row-absent td {
  background: color-mix(in srgb, var(--bad) 4%, var(--roster-row-bg)) !important;
}
#panelRoster .roster-table .attWrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  gap: 7px;
  min-width: 176px;
}
#panelRoster .roster-table .attBtn {
  min-width: 78px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
#panelRoster .roster-table .attBtn.here:not(.active) {
  background: color-mix(in srgb, var(--good) 8%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--good) 38%, var(--line)) !important;
  color: color-mix(in srgb, var(--good) 82%, var(--text)) !important;
}
#panelRoster .roster-table .attBtn.absent:not(.active) {
  background: color-mix(in srgb, var(--bad) 7%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--bad) 34%, var(--line)) !important;
  color: color-mix(in srgb, var(--bad) 82%, var(--text)) !important;
}
#panelRoster .roster-table .attBtn.here.active {
  background: var(--good) !important;
  border-color: var(--good) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--good) 28%, transparent) !important;
}
#panelRoster .roster-table .attBtn.absent.active {
  background: var(--bad) !important;
  border-color: var(--bad) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--bad) 24%, transparent) !important;
}
#panelRoster .roster-table .attBtn.active::after {
  content: 'Tap again to undo';
  display: block;
  margin: 3px 0 0;
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
  opacity: .9;
}
@media (max-width: 980px) {
  #panelRoster .roster-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "heading actions"
      "search search"
      "legend legend";
  }
  #panelRoster .searchWrap { max-width: none; }
}
@media (max-width: 600px) {
  #panelRoster .roster-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "search"
      "actions"
      "legend";
    padding: 16px 14px 0;
    row-gap: 12px !important;
  }
  #panelRoster .roster-heading h2 { font-size: 22px; }
  #panelRoster .roster-actions { justify-content: space-between; }
  #panelRoster .roster-actions #sortBy { flex: 1 1 auto; min-width: 0; }
  #panelRoster #tagLegend { max-height: 68px; overflow: hidden; }
  #panelRoster .roster-table { min-width: 1060px !important; }
  #panelRoster .roster-table th { padding: 12px 14px !important; }
  #panelRoster .roster-table td { padding: 13px 14px !important; }
  #panelRoster .roster-table .attWrap { min-width: 168px; }
  #panelRoster .roster-table .attBtn { min-width: 74px !important; }
}

/* The selected state is the undo affordance; do not crowd the row with helper copy. */
#panelRoster .roster-table .attBtn.active::after { display: none; }

/* 2026-09-18 tablet operations workspace refinement
   Command-band hierarchy: all existing controls stay explicit at every size. */
#announcerOperationalApp {
  --workspace-canvas: #f6f9fd;
  --workspace-surface: #ffffff;
  --workspace-ink: #102a43;
  --workspace-muted: #5d7792;
  --workspace-line: #d7e2ee;
  --workspace-line-strong: #bfd0e1;
  --workspace-blue: #216ee8;
  --workspace-blue-soft: #e9f1ff;
  --workspace-teal: #0e9f9a;
  --workspace-radius: 12px;
}

#announcerOperationalApp .topbar {
  display: grid !important;
  grid-template-columns: minmax(212px, .78fr) minmax(0, 2.22fr) !important;
  align-items: center;
  gap: 22px !important;
  padding: 18px 22px !important;
  border: 1px solid var(--workspace-line) !important;
  border-radius: 16px !important;
  background: var(--workspace-surface) !important;
  box-shadow: 0 7px 24px rgba(33, 62, 96, .07) !important;
}
#announcerOperationalApp .brand-lockup {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid var(--workspace-line);
}
#announcerOperationalApp .brand-lockup img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
}
#announcerOperationalApp .brand-title {
  color: var(--workspace-ink) !important;
  font-size: 21px !important;
  letter-spacing: -.028em;
}
#announcerOperationalApp .brand-powered {
  margin-top: 3px;
  color: var(--workspace-muted) !important;
  font-size: 12px !important;
  font-weight: 700;
}
#announcerOperationalApp .topbar-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "context utility" "status status" !important;
  align-items: center;
  gap: 11px 16px !important;
  min-width: 0;
}
#announcerOperationalApp .topbar-context {
  grid-area: context;
  display: grid !important;
  grid-template-columns: minmax(172px, 1.15fr) minmax(126px, .72fr) minmax(156px, 1fr) auto !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}
#announcerOperationalApp .topbar-context :is(select, .identity-pill, .device-pill) {
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  border-color: var(--workspace-line-strong) !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}
#announcerOperationalApp .topbar-context #locationSelect,
#announcerOperationalApp .topbar-context #viewSelect,
#announcerOperationalApp .topbar-context .identity-pill {
  width: 100% !important;
  max-width: none !important;
}
#announcerOperationalApp .topbar-context .identity-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#announcerOperationalApp .topbar-context .identity-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
#announcerOperationalApp .topbar-context .device-pill {
  display: inline-flex !important;
  align-items: center;
  padding-inline: 12px !important;
  color: var(--workspace-muted) !important;
  font-size: 12px !important;
}
#announcerOperationalApp .identity-reminder { display: none !important; }
#announcerOperationalApp .topbar-utility {
  grid-area: utility;
  display: grid !important;
  grid-template-columns: minmax(120px, auto) repeat(5, 44px) !important;
  gap: 7px !important;
  align-items: center;
}
#announcerOperationalApp .topbar-utility > button,
#announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid var(--workspace-line-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--workspace-ink) !important;
  box-shadow: none !important;
}
#announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
  width: 120px !important;
  min-width: 120px !important;
  display: inline-flex !important;
  justify-content: center;
  gap: 7px;
  background: var(--workspace-blue) !important;
  border-color: var(--workspace-blue) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}
#announcerOperationalApp .topbar-utility #uploadHtmlBtn .desktop-upload-label {
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap;
}
#announcerOperationalApp .topbar-utility > button:hover:not(:disabled) {
  border-color: #8eafd4 !important;
  background: #f3f8ff !important;
}
#announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick:hover:not(:disabled) {
  background: #175fce !important;
  border-color: #175fce !important;
}
#announcerOperationalApp .topbar-status {
  grid-area: status;
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto auto !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}
#announcerOperationalApp .topbar-status > * {
  min-height: 34px;
  padding: 6px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--workspace-muted) !important;
  font-size: 12px !important;
}
#announcerOperationalApp .topbar-status .next-pill {
  display: flex !important;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border-color: #c8ede9 !important;
  background: #f3fcfb !important;
  color: #276963 !important;
}
#announcerOperationalApp .topbar-status .next-pill strong { color: var(--workspace-teal) !important; }
#announcerOperationalApp .topbar-status .next-pill .tiny {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#announcerOperationalApp .topbar-status .time-pill,
#announcerOperationalApp .topbar-status .last-pill { white-space: nowrap; }

#panelRoster > .time-block-card,
#panelRoster > .roster-card {
  border-color: var(--workspace-line) !important;
  border-radius: var(--workspace-radius) !important;
  background: var(--workspace-surface) !important;
  box-shadow: none !important;
}
#panelRoster .time-block-card { padding: 18px 22px 20px !important; }
#panelRoster .time-block-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
}
#panelRoster .roster-date-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#panelRoster .roster-date-controls h2 { margin: 0 8px 0 0 !important; }
#panelRoster .roster-date-controls label,
#panelRoster .roster-sort-label {
  color: var(--workspace-muted) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase;
}
#panelRoster .roster-date-controls :is(input, button) { min-height: 42px !important; }
#panelRoster .time-block-selection { gap: 8px !important; }
#panelRoster .time-block-selection .pill {
  min-height: 38px;
  border-color: var(--workspace-line) !important;
  background: #f8fbff !important;
}
#panelRoster .blocks {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px !important;
  margin-top: 16px !important;
}
#panelRoster .block-option { min-width: 0 !important; }
#panelRoster .block-option > button[data-time] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 10px 22px 10px 12px !important;
  border-color: var(--workspace-line-strong) !important;
  border-radius: 9px !important;
  background: #fbfdff !important;
  color: var(--workspace-ink) !important;
  font-size: 14px !important;
  font-weight: 820 !important;
}
#panelRoster .block-option > button[data-time]:hover { border-color: #94b8e8 !important; background: #f4f8ff !important; }
#panelRoster .block-option > button[data-time].active,
#panelRoster .block-option > button[data-time][aria-pressed="true"] {
  border-color: var(--workspace-blue) !important;
  background: var(--workspace-blue-soft) !important;
  color: #1455bc !important;
  box-shadow: inset 0 0 0 1px var(--workspace-blue) !important;
}

#panelRoster .roster-card { padding: 0 !important; overflow: hidden; }
#panelRoster .roster-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 1fr) auto !important;
  grid-template-areas: "heading search actions" "legend legend legend" !important;
  align-items: center !important;
  gap: 12px 18px !important;
  padding: 18px 22px 0 !important;
}
#panelRoster .roster-heading h2 { color: var(--workspace-ink) !important; }
#panelRoster .searchWrap { max-width: none !important; }
#panelRoster .searchInput {
  min-height: 44px !important;
  border-color: var(--workspace-line-strong) !important;
  background: #fbfdff !important;
}
#panelRoster .roster-actions { display: flex !important; align-items: center; gap: 8px !important; }
#panelRoster .roster-actions #sortBy { min-height: 44px !important; border-color: var(--workspace-line-strong) !important; }
#panelRoster #tagLegend {
  padding: 0 0 14px !important;
  border-top: 1px solid var(--workspace-line) !important;
  padding-top: 12px !important;
}
#panelRoster .roster-table-wrap { border-top: 1px solid var(--workspace-line) !important; }
#panelRoster .roster-table th {
  padding: 13px 16px !important;
  background: #f1f6fc !important;
  color: #516f8d !important;
}
#panelRoster .roster-table td { padding: 14px 16px !important; }
#panelRoster .roster-table tbody tr:hover td { background: #f7fbff !important; }

body.dark-mode #announcerOperationalApp {
  --workspace-canvas: #0d1a2a;
  --workspace-surface: #102238;
  --workspace-ink: #edf5ff;
  --workspace-muted: #a8bfd5;
  --workspace-line: #29435e;
  --workspace-line-strong: #385574;
  --workspace-blue: #5b9dff;
  --workspace-blue-soft: #18375f;
  --workspace-teal: #55d4c8;
}
body.dark-mode #announcerOperationalApp .topbar,
body.dark-mode #panelRoster > .time-block-card,
body.dark-mode #panelRoster > .roster-card { background: var(--workspace-surface) !important; }
body.dark-mode #announcerOperationalApp .topbar-utility > button,
body.dark-mode #announcerOperationalApp .topbar-context :is(select, .identity-pill, .device-pill),
body.dark-mode #panelRoster .block-option > button[data-time],
body.dark-mode #panelRoster .searchInput { background: #132a44 !important; color: var(--workspace-ink) !important; }
body.dark-mode #announcerOperationalApp .topbar-status .next-pill { background: #113c42 !important; border-color: #24656a !important; color: #b8ece6 !important; }
body.dark-mode #announcerOperationalApp .topbar-status > * { color: var(--workspace-muted) !important; }
body.dark-mode #panelRoster .roster-table th { background: #172f4a !important; color: #c2d3e6 !important; }
body.dark-mode #panelRoster .roster-table tbody tr:hover td { background: #142d48 !important; }

@media (max-width: 1180px) {
  #announcerOperationalApp .topbar { grid-template-columns: 1fr !important; gap: 14px !important; }
  #announcerOperationalApp .brand-lockup { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--workspace-line); }
  #announcerOperationalApp .topbar-actions { grid-template-columns: minmax(0, 1fr) auto !important; }
  #announcerOperationalApp .topbar-context { grid-template-columns: minmax(180px, 1.25fr) minmax(128px, .7fr) minmax(160px, 1fr) auto !important; }
}
@media (max-width: 860px) {
  #announcerOperationalApp .topbar-actions { grid-template-columns: 1fr !important; grid-template-areas: "context" "utility" "status" !important; }
  #announcerOperationalApp .topbar-context { grid-template-columns: minmax(0, 1.2fr) minmax(126px, .75fr) minmax(0, 1fr) auto !important; }
  #announcerOperationalApp .topbar-utility { grid-template-columns: minmax(132px, auto) repeat(5, 44px) !important; justify-content: start; }
  #announcerOperationalApp .topbar-status { grid-template-columns: minmax(0, 1fr) auto auto !important; }
}
@media (max-width: 680px) {
  #announcerOperationalApp .topbar { padding: 14px !important; border-radius: 13px !important; }
  #announcerOperationalApp .brand-powered { display: none; }
  #announcerOperationalApp .topbar-context { grid-template-columns: minmax(0, 1fr) minmax(120px, .68fr) !important; }
  #announcerOperationalApp .topbar-context .identity-pill { grid-column: 1 / -1; }
  #announcerOperationalApp .topbar-context .device-pill { display: none !important; }
  #announcerOperationalApp .topbar-utility { grid-template-columns: minmax(0, 1fr) repeat(5, 44px) !important; }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick { width: auto !important; min-width: 0 !important; }
  #announcerOperationalApp .topbar-status { grid-template-columns: 1fr auto !important; }
  #announcerOperationalApp .topbar-status .last-pill { display: none !important; }
  #panelRoster .time-block-card { padding: 16px !important; }
  #panelRoster .time-block-toolbar { grid-template-columns: 1fr !important; align-items: stretch !important; }
  #panelRoster .time-block-selection { justify-content: space-between; }
  #panelRoster .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #panelRoster .roster-toolbar { grid-template-columns: 1fr auto !important; grid-template-areas: "heading actions" "search search" "legend legend" !important; padding: 16px 16px 0 !important; }
}
@media (max-width: 440px) {
  #announcerOperationalApp .topbar-context { grid-template-columns: 1fr !important; }
  #announcerOperationalApp .topbar-context #viewSelect,
  #announcerOperationalApp .topbar-context .identity-pill { grid-column: auto; }
  #announcerOperationalApp .topbar-utility { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #announcerOperationalApp .topbar-utility > button,
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick { width: 100% !important; min-width: 0 !important; }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick { grid-column: span 3; }
  #announcerOperationalApp .topbar-status { grid-template-columns: 1fr !important; }
  #announcerOperationalApp .topbar-status .time-pill { display: none !important; }
  #panelRoster .roster-toolbar { grid-template-columns: 1fr !important; grid-template-areas: "heading" "search" "actions" "legend" !important; }
  #panelRoster .roster-actions { justify-content: space-between; }
  #panelRoster .roster-actions #sortBy { min-width: 0 !important; flex: 1; }
}


/* 2026-09-19 responsive repair: one command surface at each size.
   This wins over older overlapping tablet grids that clipped controls. */
#announcerOperationalApp,
#announcerOperationalApp * { min-width: 0; }
@media (max-width: 860px) {
  body { padding: 10px !important; }
  #announcerOperationalApp .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  #announcerOperationalApp .brand-lockup {
    border-right: 0 !important;
    border-bottom: 1px solid var(--workspace-border, var(--line)) !important;
    padding: 0 0 12px !important;
  }
  #announcerOperationalApp .topbar-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "context" "utility" "status" !important;
    gap: 10px !important;
  }
  #announcerOperationalApp .topbar-context {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(116px, .75fr) minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }
  #announcerOperationalApp .topbar-context :is(select, .identity-pill, .device-pill) {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
  }
  #announcerOperationalApp .topbar-utility {
    display: grid !important;
    grid-template-columns: minmax(132px, 1fr) repeat(5, 48px) !important;
    gap: 8px !important;
  }
  #announcerOperationalApp .topbar-utility > button,
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
    width: auto !important;
    min-width: 132px !important;
  }
  #announcerOperationalApp .topbar-status {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
  }
  #announcerOperationalApp .topbar-status .next-pill { min-height: 44px !important; }
  #panelRoster .blocks {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  #panelRoster .blocks button {
    flex: 0 0 124px !important;
    min-width: 124px !important;
    min-height: 48px !important;
    scroll-snap-align: start;
  }
  #panelGuardTasks .guard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #panelGuardTasks .guard-section { height: auto !important; min-height: 0 !important; max-height: none !important; }
}
@media (max-width: 620px) {
  body { padding: 6px !important; }
  #announcerOperationalApp .topbar { padding: 12px !important; border-radius: 14px !important; }
  #announcerOperationalApp .brand-powered,
  #announcerOperationalApp .topbar-context .device-pill,
  #announcerOperationalApp .topbar-status .time-pill,
  #announcerOperationalApp .topbar-status .last-pill { display: none !important; }
  #announcerOperationalApp .topbar-context {
    grid-template-columns: minmax(0, 1fr) minmax(118px, .72fr) !important;
  }
  #announcerOperationalApp .topbar-context .identity-pill { grid-column: 1 / -1; }
  #announcerOperationalApp .topbar-utility {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #announcerOperationalApp .topbar-utility > button,
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
  }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick { grid-column: span 3; }
  #announcerOperationalApp .topbar-status { grid-template-columns: minmax(0, 1fr) !important; }
  #panelRoster > .card { padding: 12px !important; }
  #panelRoster .roster-date-controls,
  #panelRoster .roster-toolbar { align-items: stretch !important; }
  #panelRoster .roster-date-controls h2,
  #panelRoster .searchWrap { flex-basis: 100% !important; }
  #panelRoster .blocks button { flex-basis: 112px !important; min-width: 112px !important; }
  #panelGuardTasks .guard-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #panelGuardTasks .guard-setup-row { grid-template-columns: minmax(0, 1fr) !important; }
  #panelGuardTasks .guard-section { overflow: visible !important; }
}

/* 2026-09-19 responsive operations workspace: one deliberate cascade.
   Tablet keeps a horizontal roster table; phone switches to complete vertical roster entries. */
#announcerOperationalApp .topbar-utility { display:flex !important; align-items:center; gap:8px !important; }
#announcerOperationalApp .topbar-utility > :is(button, details) { flex:0 0 auto; }
#announcerOperationalApp .topbar-utility #speakerPanelBtn { width:auto !important; min-width:118px !important; display:inline-flex !important; align-items:center; justify-content:center; gap:7px; }
#announcerOperationalApp .topbar-more { display:contents; }
#announcerOperationalApp .topbar-more > summary { display:none; }
#announcerOperationalApp .topbar-more-menu { display:contents; }
#announcerOperationalApp .topbar-more-menu > button { width:44px !important; min-width:44px !important; height:44px !important; }
#announcerOperationalApp .utility-label { font:inherit; }
#panelRoster .roster-mobile-list { display:none; }
#panelRoster #mobileSessionPicker { display:none; }
#panelRoster .roster-table-wrap { overflow:auto !important; scrollbar-gutter:stable both-edges; }
@media (min-width:600px) and (max-width:1179px) {
  /* Tablet data stays horizontal: the first two columns remain anchored while the detail rail scrolls. */
  #panelRoster .roster-table { min-width:1040px !important; }
  #panelRoster .roster-table th:nth-child(1), #panelRoster .roster-table td:nth-child(1) { position:sticky; left:0; z-index:3; background:var(--workspace-surface, #fff) !important; }
  #panelRoster .roster-table th:nth-child(2), #panelRoster .roster-table td:nth-child(2) { position:sticky; left:160px; z-index:2; background:var(--workspace-surface, #fff) !important; box-shadow:8px 0 10px rgba(16,42,67,.05); }
  #panelRoster .roster-table th:nth-child(1), #panelRoster .roster-table th:nth-child(2) { z-index:4; background:#f1f6fc !important; }
  body.dark-mode #panelRoster .roster-table th:nth-child(1), body.dark-mode #panelRoster .roster-table th:nth-child(2) { background:#172f4a !important; }
  #panelRoster .blocks { display:flex !important; flex-wrap:nowrap !important; overflow-x:auto !important; gap:8px !important; }
  #panelRoster .block-option { flex:0 0 118px; }
  #panelRoster .roster-toolbar { grid-template-columns:minmax(180px,auto) minmax(220px,1fr) auto !important; }
}
@media (max-width:599px) {
  body { padding:8px !important; }
  #announcerOperationalApp .topbar { padding:14px !important; gap:12px !important; }
  #announcerOperationalApp .brand-lockup { padding-bottom:10px !important; }
  #announcerOperationalApp .topbar-context { grid-template-columns:1fr !important; gap:8px !important; }
  #announcerOperationalApp .topbar-context .identity-pill { grid-column:auto !important; }
  #announcerOperationalApp .topbar-utility { display:grid !important; grid-template-columns:1fr 1fr auto !important; gap:8px !important; position:relative; }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick, #announcerOperationalApp .topbar-utility #speakerPanelBtn { width:100% !important; min-width:0 !important; height:48px !important; }
  #announcerOperationalApp .topbar-more { display:block; position:relative; }
  #announcerOperationalApp .topbar-more > summary { display:flex; align-items:center; justify-content:center; min-width:72px; min-height:48px; padding:0 12px; border:1px solid var(--workspace-line-strong); border-radius:10px; color:var(--workspace-ink); font-size:13px; font-weight:800; cursor:pointer; list-style:none; }
  #announcerOperationalApp .topbar-more > summary::-webkit-details-marker { display:none; }
  #announcerOperationalApp .topbar-more-menu { display:none; }
  #announcerOperationalApp .topbar-more[open] .topbar-more-menu { display:grid; grid-template-columns:1fr 1fr; gap:8px; position:absolute; right:0; top:56px; z-index:100; width:238px; padding:10px; background:var(--workspace-surface); border:1px solid var(--workspace-line); border-radius:12px; box-shadow:0 14px 32px rgba(16,42,67,.16); }
  #announcerOperationalApp .topbar-more-menu > button { width:100% !important; min-width:0 !important; height:44px !important; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
  #announcerOperationalApp .topbar-status { grid-template-columns:1fr !important; }
  #announcerOperationalApp .topbar-status .time-pill, #announcerOperationalApp .topbar-status .last-pill { display:none !important; }
  #panelRoster .time-block-card { padding:16px !important; }
  #panelRoster .time-block-toolbar { grid-template-columns:1fr !important; }
  #panelRoster .roster-date-controls { display:grid !important; grid-template-columns:auto 1fr auto; }
  #panelRoster .roster-date-controls h2 { grid-column:1 / -1; }
  #panelRoster #mobileSessionPicker { display:inline-flex !important; min-height:46px !important; align-items:center; justify-content:center; }
  #panelRoster .blocks { display:none !important; margin-top:10px !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; overflow:visible !important; }
  #panelRoster.session-picker-open .blocks { display:grid !important; }
  #panelRoster .block-option { min-width:0 !important; }
  #panelRoster .block-option > button[data-time] { min-height:52px !important; }
  #panelRoster .roster-toolbar { display:grid !important; grid-template-columns:1fr auto !important; grid-template-areas:"heading actions" "search search" "legend legend" !important; gap:10px !important; padding:16px 16px 0 !important; }
  #panelRoster .roster-actions { min-width:0; }
  #panelRoster .roster-actions .roster-sort-label, #panelRoster .roster-actions #addSwimmerBtn { display:none !important; }
  #panelRoster .roster-actions #sortBy { min-width:0 !important; width:110px !important; }
  #panelRoster #tagLegend { max-height:40px !important; overflow-x:auto !important; flex-wrap:nowrap !important; white-space:nowrap; }
  #panelRoster #bulkAttendanceActions { padding:12px 16px 0; }
  #panelRoster #bulkAttendanceActions .miniBtn { min-height:46px !important; }
  #panelRoster .roster-progress { margin:12px 16px !important; display:grid !important; gap:10px; }
  #panelRoster .roster-filter-group { display:flex !important; overflow-x:auto; gap:7px; }
  #panelRoster .roster-filter { flex:0 0 auto; min-height:42px !important; }
  #panelRoster .roster-table-wrap { display:none !important; }
  #panelRoster .roster-mobile-list { display:grid; gap:10px; padding:12px 16px 16px; }
  #panelRoster .roster-mobile-entry { display:grid; gap:8px; padding:14px; border:1px solid var(--workspace-line); border-radius:12px; background:var(--workspace-surface); }
  #panelRoster .roster-mobile-entry.roster-entry-present { border-color:#a7d796; background:#fbfff9; }
  #panelRoster .roster-mobile-entry.roster-entry-absent { border-color:#efb5b5; background:#fffafa; }
  #panelRoster .roster-mobile-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
  #panelRoster .roster-mobile-heading strong { color:var(--workspace-ink); font-size:16px; }
  #panelRoster .roster-mobile-heading .flagRow { justify-content:flex-end; }
  #panelRoster .roster-mobile-details { white-space:pre-line; margin:0; color:var(--workspace-muted); font-size:13px; line-height:1.5; }
  #panelRoster .roster-mobile-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:stretch; }
  #panelRoster .roster-mobile-actions .attWrap { display:contents; }
  #panelRoster .roster-mobile-actions .attBtn, #panelRoster .roster-mobile-actions .guardian-callout { min-width:0 !important; min-height:48px !important; }
  #panelRoster .roster-mobile-actions .guardian-callout { grid-column:1 / -1; }
  body.dark-mode #panelRoster .roster-mobile-entry { background:#102238; border-color:#385574; }
  body.dark-mode #panelRoster .roster-mobile-entry.roster-entry-present { background:#103128; }
  body.dark-mode #panelRoster .roster-mobile-entry.roster-entry-absent { background:#351c24; }
  #panelGuardTasks .guard-grid { display:flex !important; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px !important; }
  #panelGuardTasks .guard-section { flex:0 0 calc(100% - 18px); scroll-snap-align:start; min-height:0 !important; }
  #panelChemReadings .chem-grid { display:flex !important; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px !important; }
  #panelChemReadings .chem-card { flex:0 0 calc(100% - 12px); scroll-snap-align:start; }
}

/* Keep tablet controls deliberate: Upload, Announce, then an overflow menu. */
@media (min-width:600px) and (max-width:860px) {
  #announcerOperationalApp .topbar-utility {
    display:grid !important;
    grid-template-columns:minmax(150px, 1fr) minmax(128px, .8fr) auto !important;
    position:relative;
  }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick,
  #announcerOperationalApp .topbar-utility #speakerPanelBtn {
    width:100% !important;
    min-width:0 !important;
    height:48px !important;
  }
  #announcerOperationalApp .topbar-more { display:block !important; position:relative; }
  #announcerOperationalApp .topbar-more > summary {
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-width:76px;
    min-height:48px;
    padding:0 12px;
    border:1px solid var(--workspace-line-strong);
    border-radius:10px;
    color:var(--workspace-ink);
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    list-style:none;
  }
  #announcerOperationalApp .topbar-more > summary::-webkit-details-marker { display:none; }
  #announcerOperationalApp .topbar-more-menu { display:none !important; }
  #announcerOperationalApp .topbar-more[open] .topbar-more-menu {
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px;
    position:absolute;
    right:0;
    top:56px;
    z-index:100;
    width:238px;
    padding:10px;
    background:var(--workspace-surface);
    border:1px solid var(--workspace-line);
    border-radius:12px;
    box-shadow:0 14px 32px rgba(16,42,67,.16);
  }
  #announcerOperationalApp .topbar-more-menu > button {
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
}

/* The legacy speaker order was for the old icon rail; keep the three responsive actions in their visual order. */
@media (max-width:860px) {
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick,
  #announcerOperationalApp .topbar-utility #speakerPanelBtn,
  #announcerOperationalApp .topbar-utility .topbar-more { order:0 !important; }
}

/* Phone: keep every roster detail readable instead of clipping controls into a desktop row. */
@media (max-width:599px) {
  #panelRoster .roster-toolbar {
    grid-template-columns:1fr !important;
    grid-template-areas:"heading" "search" "actions" "legend" !important;
  }
  #panelRoster .roster-actions { justify-self:start; }
  #panelRoster .roster-actions #sortBy { width:156px !important; }
  #panelRoster #tagLegend {
    max-height:none !important;
    overflow:visible !important;
    flex-wrap:wrap !important;
    white-space:normal !important;
    gap:7px !important;
  }
  #panelRoster #selectedBlockIssueBtn:disabled { display:none !important; }
}

@media (max-width:599px) {
  #panelRoster .roster-mobile-heading { display:grid !important; grid-template-columns:1fr; }
  #panelRoster .roster-mobile-heading .flagRow { justify-content:flex-start; }
}

/* 2026-09-19 desktop workbench: schedule rail + dominant roster canvas. */
@media (min-width:1180px) {
  body { background:#f5f8fc !important; }
  #announcerOperationalApp.wrap { width:min(calc(100% - 48px), 1560px) !important; }
  #announcerOperationalApp .topbar {
    position:sticky !important;
    top:12px;
    z-index:40;
    grid-template-columns:minmax(230px, .82fr) minmax(0, 2.4fr) !important;
    gap:22px !important;
    min-height:84px;
    padding:14px 20px !important;
    border:1px solid #d9e5f2 !important;
    border-radius:16px !important;
    box-shadow:0 10px 28px rgba(16,42,67,.06) !important;
  }
  #announcerOperationalApp .brand-lockup { border-right:1px solid #dce7f2 !important; padding-right:22px !important; }
  #announcerOperationalApp .topbar-actions { grid-template-columns:minmax(0,1fr) auto !important; grid-template-areas:"context utility" "status utility" !important; row-gap:7px !important; }
  #announcerOperationalApp .topbar-context { gap:8px !important; }
  #announcerOperationalApp .topbar-status { grid-area:status; min-height:28px; }
  #announcerOperationalApp .topbar-status .next-pill { padding:6px 10px !important; min-height:30px !important; background:#edfafa !important; border-color:#c9efeb !important; }
  #announcerOperationalApp .topbar-utility { grid-area:utility; align-self:center; }
  #announcerOperationalApp .topbar-utility #uploadHtmlBtn.desktop-upload-quick { min-width:122px !important; }
  #announcerOperationalApp .topbar-utility #speakerPanelBtn { min-width:132px !important; background:#125ce6; border-color:#125ce6; color:#fff; }

  #panelRoster {
    display:grid;
    grid-template-columns:248px minmax(0, 1fr);
    grid-template-rows:auto auto;
    align-items:start;
    gap:18px 24px;
    margin-top:24px;
  }
  #panelRoster .time-block-card {
    grid-column:1;
    grid-row:1 / span 2;
    position:sticky;
    top:116px;
    margin:0 !important;
    padding:0 0 16px !important;
    overflow:hidden;
    border:1px solid #d9e5f2 !important;
    border-radius:16px !important;
    box-shadow:0 8px 24px rgba(16,42,67,.05) !important;
  }
  #panelRoster .time-block-toolbar { display:block !important; padding:18px 16px 12px !important; }
  #panelRoster .roster-date-controls { display:grid !important; grid-template-columns:1fr auto; gap:8px !important; align-items:center; }
  #panelRoster .roster-date-controls h2 { grid-column:1 / -1; margin:0 0 4px !important; font-size:22px !important; }
  #panelRoster .roster-date-controls label { font-size:11px !important; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
  #panelRoster .roster-date-controls .dateInput { grid-column:1 / -1; width:100% !important; min-height:44px; }
  #panelRoster .roster-date-controls #setDateBtn { grid-column:1 / -1; width:100%; min-height:42px; }
  #panelRoster .time-block-selection { display:grid !important; grid-template-columns:1fr; gap:7px; margin-top:14px; }
  #panelRoster .time-block-selection .pill, #panelRoster .time-block-selection button { width:100%; min-height:40px; }
  #panelRoster .blocks { display:flex !important; flex-direction:column; gap:2px !important; max-height:calc(100vh - 348px); overflow-y:auto !important; padding:2px 8px 0 !important; }
  #panelRoster .block-option { width:100%; }
  #panelRoster .block-option > button[data-time] { width:100%; min-height:42px !important; justify-content:space-between; border-color:transparent !important; border-radius:9px !important; background:transparent !important; text-align:left; }
  #panelRoster .block-option > button[data-time]:hover { background:#eef5ff !important; border-color:#d5e5ff !important; }
  #panelRoster .block-option > button[data-time].active { background:#e7f0ff !important; border-color:#b9d1ff !important; box-shadow:inset 3px 0 0 #246bff !important; color:#124aa8 !important; }
  #panelRoster #deckDateWarning { grid-column:2; margin:0 !important; }
  #panelRoster .roster-card {
    grid-column:2;
    grid-row:2;
    margin:0 !important;
    min-height:620px;
    padding:0 0 18px !important;
    overflow:hidden;
    border:1px solid #d9e5f2 !important;
    border-radius:16px !important;
    box-shadow:0 10px 28px rgba(16,42,67,.06) !important;
  }
  #panelRoster .roster-toolbar { display:grid !important; grid-template-columns:minmax(175px,auto) minmax(280px,1fr) auto; grid-template-areas:"heading search actions" "legend legend legend" "bulk bulk bulk" !important; align-items:center !important; gap:12px 16px !important; padding:22px 22px 14px !important; border-bottom:1px solid #e2ebf4; }
  #panelRoster .roster-heading { grid-area:heading; }
  #panelRoster .roster-heading h2 { margin:0 !important; font-size:28px !important; }
  #panelRoster .searchWrap { grid-area:search; max-width:none !important; }
  #panelRoster .roster-actions { grid-area:actions; justify-content:flex-end; }
  #panelRoster #tagLegend { grid-area:legend; display:flex !important; flex-wrap:wrap; gap:8px 12px; margin:0; padding:0; }
  #panelRoster #bulkAttendanceActions { grid-area:bulk; margin:0; padding-top:2px; }
  #panelRoster .roster-progress { margin:14px 22px !important; min-height:60px; padding:10px 14px !important; border-radius:12px !important; background:#f1f6ff !important; border-color:#cbdcff !important; }
  #panelRoster .roster-table-wrap { margin:0 22px; border:1px solid #dce7f2; border-radius:12px; }
  #panelRoster .roster-table th { position:sticky; top:0; z-index:1; background:#edf4fb !important; }
  #panelRoster .roster-table tbody tr:nth-child(even) td { background:#fbfdff; }
  #panelRoster .roster-table td { padding-top:14px !important; padding-bottom:14px !important; }
  body.dark-mode #announcerOperationalApp .topbar,
  body.dark-mode #panelRoster .time-block-card,
  body.dark-mode #panelRoster .roster-card { border-color:#385574 !important; box-shadow:0 10px 28px rgba(0,0,0,.2) !important; }
  body.dark-mode #announcerOperationalApp .brand-lockup { border-color:#385574 !important; }
  body.dark-mode #panelRoster .block-option > button[data-time]:hover { background:#173656 !important; border-color:#385574 !important; }
  body.dark-mode #panelRoster .block-option > button[data-time].active { background:#163e70 !important; border-color:#397bda !important; color:#d8ebff !important; }
  body.dark-mode #panelRoster .roster-toolbar { border-color:#385574; }
  body.dark-mode #panelRoster .roster-progress { background:#142d48 !important; border-color:#385574 !important; }
  body.dark-mode #panelRoster .roster-table-wrap { border-color:#385574; }
}

/* 2026-09-19 viewport-fit correction: the desktop rail may never clip roster work.
   Full-width columns scale and wrap before a table can escape its work surface. */
@media (min-width:1180px) {
  #announcerOperationalApp.wrap {
    width:calc(100% - 48px) !important;
    max-width:none !important;
  }
  #panelRoster .roster-card,
  #panelRoster .roster-table-wrap { min-width:0 !important; }
  #panelRoster .roster-table {
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
  }
  #panelRoster .roster-table col:nth-child(1) { width:17% !important; }
  #panelRoster .roster-table col:nth-child(2) { width:19% !important; }
  #panelRoster .roster-table col:nth-child(3) { width:7% !important; }
  #panelRoster .roster-table col:nth-child(4) { width:11% !important; }
  #panelRoster .roster-table col:nth-child(5) { width:11% !important; }
  #panelRoster .roster-table col:nth-child(6) { width:16% !important; }
  #panelRoster .roster-table col:nth-child(7) { width:8% !important; }
  #panelRoster .roster-table col:nth-child(8) { width:11% !important; }
  #panelRoster .roster-table :is(th, td) {
    min-width:0 !important;
    overflow-wrap:anywhere;
  }
  #panelRoster .roster-table .attWrap {
    width:100%;
    min-width:0 !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  #panelRoster .roster-table .attBtn {
    min-width:0 !important;
    padding:0 6px !important;
    font-size:12px !important;
  }
  #panelRoster .roster-table .guardian-callout {
    width:100%;
    min-width:0 !important;
    padding-left:8px !important;
    padding-right:8px !important;
    white-space:normal;
  }
}

/* 2026-09-19 compact desktop time command bar.  Desktop operators choose a
   session above the roster; tablet and phone retain their existing pickers. */
#panelRoster .desktop-session-label,
#panelRoster .desktop-session-select { display:none; }

@media (min-width:1180px) {
  #panelRoster {
    display:block !important;
    margin-top:20px !important;
  }
  #panelRoster .time-block-card {
    position:static !important;
    margin:0 0 14px !important;
    padding:14px 18px !important;
    overflow:visible !important;
  }
  #panelRoster .time-block-toolbar {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }
  #panelRoster .roster-date-controls {
    display:flex !important;
    align-items:center !important;
    flex:1 1 auto;
    gap:8px !important;
  }
  #panelRoster .roster-date-controls h2 {
    margin:0 12px 0 0 !important;
    font-size:20px !important;
    white-space:nowrap;
  }
  #panelRoster .roster-date-controls .dateInput { width:150px !important; }
  #panelRoster .desktop-session-label { display:block; margin-left:6px; white-space:nowrap; }
  #panelRoster .desktop-session-select {
    display:block !important;
    width:clamp(156px, 16vw, 220px) !important;
    min-height:42px !important;
    border:1px solid var(--workspace-line-strong) !important;
    border-radius:9px !important;
    background:var(--workspace-surface) !important;
    color:var(--workspace-ink) !important;
    font:inherit !important;
    font-weight:750 !important;
    padding-inline:12px !important;
  }
  #panelRoster .time-block-selection { width:auto !important; }
  #panelRoster .time-block-selection > .pill,
  #panelRoster #mobileSessionPicker,
  #panelRoster .blocks.has-time-buttons { display:none !important; }
  #panelRoster #selectedBlockIssueBtn { min-width:120px; }
  #panelRoster #deckDateWarning { margin:0 0 14px !important; }
  #panelRoster .roster-card {
    min-height:0 !important;
    margin:0 !important;
    padding:0 0 18px !important;
  }
  #panelRoster .roster-toolbar { padding:18px 22px 12px !important; }
  #panelRoster .roster-table-wrap { margin:0 22px !important; }
}
@media (min-width:1180px) {
  #panelRoster .time-block-toolbar > .spacer { display:none !important; }
  #panelRoster .roster-date-controls { flex-wrap:nowrap !important; min-width:0 !important; }
  #panelRoster .roster-date-controls #setDateBtn { width:auto !important; min-width:56px !important; }
  #panelRoster .roster-date-controls #blockHint { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

/* 2026-09-19 compact attendance controls: preserve readable phone labels while
   the horizontal roster table uses fixed icon targets that cannot wrap. */
#panelRoster .roster-table .attWrap {
  display:inline-flex !important;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap !important;
  width:max-content !important;
  min-width:0 !important;
  gap:6px !important;
}
#panelRoster .roster-table .attBtn {
  flex:0 0 40px !important;
  display:inline-grid !important;
  width:40px !important;
  min-width:40px !important;
  max-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 !important;
  place-items:center;
  white-space:nowrap !important;
  line-height:1 !important;
}
#panelRoster .roster-table .attendance-icon {
  display:block;
  font-size:19px;
  font-weight:800;
  line-height:1;
}
#panelRoster .roster-table .attendance-label { display:none !important; }
#panelRoster .roster-table .attBtn::after { display:none !important; }
#panelRoster .roster-mobile-actions .attBtn {
  white-space:nowrap !important;
}
#panelRoster .roster-mobile-actions .attendance-icon {
  display:inline-block;
  margin-right:6px;
  font-weight:800;
}


/* Keep roster action cells compact: context stays available via the accessible
   label and tooltip, while the fixed table never breaks important controls. */
#panelRoster .roster-table .guardian-callout {
  display:inline-grid !important;
  place-items:center;
  width:40px !important;
  min-width:40px !important;
  max-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 !important;
  white-space:nowrap !important;
}
#panelRoster .roster-table .guardian-callout-icon { font-size:18px; line-height:1; }
#panelRoster .roster-table .guardian-callout-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
