.roster-page { grid-template-columns: minmax(0,1fr); min-width: 0; gap: 12px; }
.roster-heading h2 { margin: 0 0 4px; font-size: 25px; }
.roster-heading p { margin: 0; color: #52655f; font-size: 14px; }
.roster-toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.roster-toolbar-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 10px 16px; }
.roster-toolbar button,.roster-resource-paging button { min-height: 44px; max-width: 100%; padding: 7px 12px; font-size: 13px; }
.roster-period-navigation,.roster-view-switches { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,auto); align-items: stretch; gap: 4px; max-width: 100%; }
.roster-utilities { border-top: 1px solid var(--line); padding-top: 10px; }
.roster-toolbar > p { margin: 0; }
.roster-toolbar > p:empty,.roster-resource-paging:empty { display: none; }
.roster-resource-paging { display: grid; gap: 8px; }
.roster-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,135px),1fr)); align-items: end; gap: 10px; margin: 0; }
.roster-controls label { min-width: 0; max-width: 100%; font-size: 13px; color: var(--ink); }
.roster-controls input,.roster-controls select { max-width: 100%; min-height: 44px; padding: 7px 9px; font-size: 13px; }
.roster-controls > details { grid-column: 1 / -1; }
.roster-controls .check { flex-basis: auto; align-self: end; min-height: 44px; }
.roster-controls .check input { min-height: 0; }
.roster-resource-filters { flex: 1 0 100%; min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: end; gap: 12px; background: white; }
.roster-resource-filters legend { padding: 0 4px; font-size: 13px; color: var(--ink); }
.roster-resource-filters [role="tablist"] { align-self: end; gap: 6px; padding-bottom: 1px; }
.roster-resource-filters [role="tab"] { min-height: 35px; padding: 7px 12px; }
.roster-resource-filters [role="tab"][aria-selected="true"] { background: var(--site-sidebar-highlight,#e5eff8); border-color: var(--green); color: var(--pine); }
.roster-resource-filters [role="tabpanel"] { display: grid; grid-template-columns: minmax(0,260px) minmax(0,300px); gap: 10px; align-items: end; margin: 0; }
.roster-resource-filters [role="tabpanel"][hidden] { display: none; }
.roster-resource-filters [role="tabpanel"]>p { grid-column: 1 / -1; margin: 0; }
.roster-resource-filters label { width: 100%; min-width: 0; }
.roster-resource-filters input,.roster-resource-filters select { width: 100%; max-width: 100%; }
.roster-evidence-controls { flex: 1 0 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: white; }
.roster-evidence-controls[open] { padding-bottom: 10px; }
.roster-evidence-controls summary { cursor: pointer; font-weight: 650; padding-block: 11px; min-height: 44px; overflow-wrap: anywhere; }
.roster-evidence-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.roster-evidence-fields > label { flex: 0 1 160px; }
.roster-evidence-controls p { margin: 10px 0 0; }
.roster-filter-summary { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink); }
@media(max-width:680px) {
  .roster-toolbar-navigation > div { width: 100%; grid-auto-columns: minmax(0,1fr); }
  .roster-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .roster-controls > button[type="submit"] { width: 100%; }
  .roster-evidence-fields > label { flex: 1 1 125px; }
  .roster-resource-filters { grid-template-columns: minmax(0,1fr); }
  .roster-resource-filters [role="tabpanel"] { grid-template-columns: minmax(0,1fr); }
}
.roster-view-switches button.active { background: var(--site-sidebar-highlight,#e5eff8); border-color: var(--green); color: var(--pine); }
.roster-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.roster-colour-key { border-inline-start: 5px solid; border-radius: 3px; padding: 2px 7px; font-size: 12px; }
.roster-count { margin: 0; color: #52655f; font-size: 13px; }
.roster-page>.flow:empty { display: none; }
.roster-page>p:empty { display: none; }
.roster-grid { min-width: 0; max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.roster-grid table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 1070px; }
.roster-grid th,.roster-grid td { width: 132px; min-width: 132px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; white-space: normal; }
.roster-grid th { background: var(--site-sidebar-highlight,#e5eff8); color: var(--ink); text-align: left; padding: 10px 8px; font-size: 13px; }
.roster-grid th:first-child,.roster-grid td:first-child { width: 143px; min-width: 143px; position: sticky; left: 0; z-index: 1; }
.roster-grid th:first-child { z-index: 2; }
.roster-grid td:first-child { background: var(--paper); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.roster-grid tr:last-child td { border-bottom: 0; }
.roster-grid tr>:last-child { border-right: 0; }
.roster-grid th.roster-today { background: var(--site-sidebar-highlight,#e5eff8); color: var(--pine); box-shadow: inset 0 3px var(--green); }
.roster-grid td.roster-today { background: #f0f6fd; box-shadow: inset 1px 0 #9dbbd3,inset -1px 0 #9dbbd3; }
.roster-today-label { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; color: var(--green); }
.roster-grid[data-roster-days="14"] table { min-width: 2000px; }
.roster-grid[data-roster-days="31"] table { min-width: 4250px; }
.roster-grid[data-roster-days="28"] table { min-width: 3839px; }
.roster-grid[data-roster-days="29"] table { min-width: 3971px; }
.roster-grid[data-roster-days="30"] table { min-width: 4103px; }
.roster-grid[data-roster-days="1"] table { min-width: 0; }
.roster-grid[data-roster-days="1"] th:not(:first-child),.roster-grid[data-roster-days="1"] td:not(:first-child) { width: auto; }
.roster-day { display: grid; align-content: start; gap: 5px; min-height: 57px; }
.roster-day .roster-shift { width: 100%; display: grid; gap: 2px; text-align: left; padding: 6px 7px; border: 1px solid #c9e4d6; border-inline-start-width: 5px; border-radius: 6px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; font-weight: 400; line-height: 1.4; }
.roster-day .roster-shift strong { font-size: 14px; font-weight: 650; }
.roster-day .roster-time { font-size: 13px; font-weight: 500; }
.roster-day .roster-shift small { font-size: 12px; color: #395a50; font-weight: 400; }
.roster-day .roster-status-chip { justify-self: start; border-radius: 4px; padding: 1px 4px; background: #ffffffa6; color: #395a50; font-size: 11px; }
.roster-colours-standard .roster-state-draft { background: #fff4da; border-color: #eed9a1; }
.roster-colours-standard .roster-state-open { background: #f0eef9; border-color: #dad3ee; }
.roster-colours-strong .roster-day .roster-shift { border-inline-start-width: 10px; }
.roster-day .roster-add { justify-self: start; padding: 0 7px; min-height: 20px; line-height: 20px; border: 0; border-radius: 8px; background: #f0f4f1; color: #356355; font-size: 14px; }
.roster-day .roster-add:hover { background: #d9f1e5; }
@media(max-width:680px), (pointer:coarse) {
  .roster-day .roster-add { min-width: 44px; min-height: 44px; }
}
.roster-resource-link { padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; font-weight: 600; color: inherit; }
.roster-resource-link:hover { background: transparent; text-decoration: underline; }
.roster-day .roster-edit { justify-self: start; padding: 2px 7px; border: 1px solid #dce6e0; border-radius: 5px; font-size: 11px; font-weight: 500; color: #356355; }
.roster-grid:focus-visible { outline: 3px solid #145d8c; outline-offset: 2px; }

/* Explicit roster display choices only; native sizes and all colour rules unchanged. */
.roster-display-settings { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.roster-display-settings > summary, .roster-display-disclosure > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.roster-display-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 14px; margin: 12px 0; }
.roster-display-fields label { min-width: 0; }
.roster-display-settings select, .roster-display-settings button { min-height: 44px; max-width: 100%; }
.roster-display-disclosure { min-width: 0; margin: 10px 0; }
.roster-display-disclosure dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.roster-page.roster-display-font-large { --roster-display-text: 16px; --roster-display-strong: 17px; --roster-display-small: 15px; --roster-display-chip: 14px; --roster-display-detail: 18px; }
.roster-page.roster-display-font-larger { --roster-display-text: 18px; --roster-display-strong: 19px; --roster-display-small: 17px; --roster-display-chip: 16px; --roster-display-detail: 20px; }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-day .roster-shift,
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-day .roster-time { font-size: var(--roster-display-text); }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-day .roster-shift strong { font-size: var(--roster-display-strong); }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-day .roster-shift small { font-size: var(--roster-display-small); }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-day .roster-status-chip { font-size: var(--roster-display-chip); }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-card { font-size: var(--roster-display-detail); overflow-wrap: anywhere; }
.roster-page:is(.roster-display-font-large,.roster-display-font-larger) .roster-card h3 { font-size: calc(var(--roster-display-detail) + 1px); }

/* Existing authorized planned intervals only; no actual-work or status styling. */
.roster-planned-segments { display: grid; gap: 3px; min-width: 0; max-width: 100%; }
.roster-planned-segments small { white-space: normal; overflow-wrap: anywhere; color: inherit; }

/* Visible native participant-search choices; no popup or alternate selection model. */
.roster-participant-search { min-width: 0; }
.roster-participant-results { display: grid; gap: 6px; max-height: 18rem; overflow: auto; list-style: none; margin: 0; padding: 0; }
.roster-participant-results li { min-width: 0; }
.roster-participant-results button { width: 100%; min-height: 44px; text-align: left; white-space: normal; overflow-wrap: anywhere; }

/* Pair roster text with its own pale card, surface or action fill. */
@media (forced-colors: none) {
  .roster-colours-standard .roster-day .roster-shift:is(.roster-state-draft,.roster-state-open) { color: #17251f; }
  .roster-day .roster-shift > strong,
  .roster-day .roster-shift > .roster-time { color: inherit; }
  .roster-grid .roster-resource-link { background: var(--site-surface,#ffffff); color: var(--site-on-surface,#202c40); }
  .roster-day .roster-edit { color: var(--site-on-action,#ffffff); }
}

/* Canonical System palettes only; saved Custom and unknown identities stay native. */
@media (forced-colors: none) {
  .roster-page.roster-colours-standard .roster-day .roster-shift.roster-palette-system-daily,
  .roster-page.roster-colours-standard .roster-legend .roster-colour-key.roster-palette-system-daily { background: #dbeafe; color: #000000; }
  .roster-page.roster-colours-standard .roster-day .roster-shift.roster-palette-system-community,
  .roster-page.roster-colours-standard .roster-legend .roster-colour-key.roster-palette-system-community { background: #d1fae5; color: #000000; }
}

/* Read-only submission reminder; keep native type borders and completion marks. */
.roster-timesheet-overdue-badge { display: inline-block; max-width: 100%; border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; font-weight: 700; white-space: normal; }
@media (forced-colors: none) {
  .roster-page:is(.roster-colours-standard,.roster-colours-strong,.roster-colours-plain) .roster-day .roster-shift.roster-timesheet-overdue,
  .roster-page:is(.roster-colours-standard,.roster-colours-strong,.roster-colours-plain) .roster-card.roster-shift.roster-timesheet-overdue { background: #fde68a; color: #000000; }
  .roster-page .roster-shift.roster-timesheet-overdue :is(h3,p,dt,dd,small,.roster-time,.roster-status-chip) { color: #000000; }
}


/* Multi-select is a separate transient tool; completion and note icons never edit status. */
.roster-action-bar { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px 20px; }
.roster-action-bar .roster-page-actions { flex: 1 1 500px; margin: 0; }
.roster-multi-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 6px; margin-inline-start: auto; }
.roster-multi-tools .roster-tool-button { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 64px; min-height: 48px; padding: 6px 9px; font-size: 12px; line-height: 1.2; }
.roster-tool-button svg,.roster-note-status svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.roster-multi-tools .roster-tool-button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
.roster-selection-count { border: 1px solid currentColor; border-radius: 6px; padding: 6px 8px; font-size: 13px; white-space: nowrap; }
.roster-multi-tools [hidden],.roster-select-group[hidden],.roster-list-select[hidden] { display: none; }
.roster-multi-notice { margin: 0; font-size: 13px; }
.roster-multi-notice:empty { display: none; }
.roster-resource-heading { display: grid; gap: 8px; }
.roster-grid .roster-select-group { display: block; min-height: 44px; max-width: 100%; margin-top: 7px; padding: 5px 8px; font-size: 12px; white-space: normal; }
.roster-list-select { min-height: 44px; width: fit-content; margin-bottom: 6px; }
.roster-page .roster-shift.roster-selectable { cursor: pointer; }
.roster-page .roster-shift.roster-is-selected { outline: 3px solid var(--site-primary,#1764e8); outline-offset: -3px; box-shadow: 0 0 0 2px var(--site-surface,#ffffff); }
.roster-page .roster-list-select[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
.roster-completion-mark { display: grid; place-items: center; justify-self: end; align-self: end; margin-inline-start: auto; width: 22px; height: 22px; inline-size: 22px; block-size: 22px; min-width: 22px; min-height: 22px; font-size: 21px; font-weight: 800; line-height: 1; }
.roster-note-status { display: grid; place-items: center; justify-self: start; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 4px; background: var(--site-surface,#ffffff); }
@media (forced-colors: none) {
  .roster-completion-mark { color: #1d4ed8; background: #ffffff; border-radius: 50%; }
  .roster-note-status { background: #ffffff; }
  .roster-note-recorded { color: #147d3c; }
  .roster-note-missing { color: #b91c1c; }
  .roster-note-not_due { color: #526174; }
}
.roster-tool-button:focus-visible,.roster-select-group:focus-visible,.roster-list-select:focus-visible { outline: 3px solid var(--site-primary,#1764e8); outline-offset: 3px; }
@media(max-width:680px) {
  .roster-action-bar { display: grid; grid-template-columns: minmax(0,1fr); }
  .roster-multi-tools { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; margin-inline-start: 0; justify-content: start; width: 100%; }
  .roster-multi-tools .roster-tool-button { min-width: 0; padding: 6px 4px; white-space: normal; }
  .roster-selection-count { order: 1; grid-column: 1 / -1; white-space: normal; }
}

/* Checked Source roster: compact icon controls; mapped right-side drawers only. */
.roster-parity-icon { display:inline-grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:6px; background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); }
.roster-parity-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.roster-parity-icon:focus-visible { outline:3px solid var(--site-primary,var(--green)); outline-offset:3px; }
.roster-parity-drawer { position:fixed; inset:0 0 0 auto; width:min(500px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0; padding:0; border:0; border-inline-start:1px solid var(--line); border-radius:0; overflow:hidden; background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); }
.roster-parity-drawer[open] { display:flex; flex-direction:column; }
.roster-parity-drawer::backdrop { background:#10182759; }
.roster-parity-drawer-heading { display:flex; align-items:center; justify-content:space-between; flex:0 0 auto; gap:8px; padding:14px 16px; border-bottom:1px solid var(--line); }
.roster-parity-drawer-heading h2 { margin:0; font-size:20px; }
.roster-parity-drawer-body { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px 16px; }
.roster-parity-drawer > .actions { flex:0 0 auto; padding:12px 16px; margin:0; border-top:1px solid var(--line); }
@media(forced-colors:active) { .roster-parity-icon,.roster-parity-drawer { border-color:CanvasText; } .roster-parity-drawer::backdrop { background:transparent; } }

.roster-parity-preference-section { border-bottom:1px solid var(--line); padding:8px 0; }
.roster-parity-preference-section > summary { min-height:44px; display:flex; align-items:center; font-weight:650; cursor:pointer; }
.roster-parity-switch { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:5px 0; margin:0; font-size:14px; }
.roster-parity-switch input[role="switch"] { flex:0 0 40px; width:40px; min-width:40px; height:24px; min-height:24px; margin:0; padding:2px; appearance:none; border:1px solid var(--muted); border-radius:999px; background:var(--paper); }
.roster-parity-switch input[role="switch"]::before { content:''; display:block; width:18px; height:18px; border-radius:50%; background:var(--muted); }
.roster-parity-switch input[role="switch"]:checked { background:var(--site-primary,var(--green)); border-color:var(--site-primary,var(--green)); }
.roster-parity-switch input[role="switch"]:checked::before { transform:translateX(16px); background:var(--site-on-action,#fff); }
.roster-parity-switch input[role="switch"]:focus-visible { outline:3px solid var(--site-primary,var(--green)); outline-offset:3px; }
@media(forced-colors:active) { .roster-parity-switch input[role="switch"] { appearance:auto; } .roster-parity-switch input[role="switch"]::before { content:none; } }

.roster-parity-glyphs { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; }
.roster-parity-glyph { display:inline-flex; align-items:center; justify-content:center; min-width:16px; min-height:16px; vertical-align:middle; }
.roster-parity-glyph svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.roster-parity-glyph svg.roster-parity-filled { fill:currentColor; }
@media(forced-colors:none) { .roster-parity-glyph-danger { color:#b91c1c; } .roster-parity-glyph-success { color:#147d3c; } .roster-parity-glyph-verified { color:#1d4ed8; } }

.roster-parity-toolbar { display:grid; gap:10px; margin:0; padding:0; }
.roster-parity-top { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.roster-parity-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.roster-parity-title h2 { margin:0; font-size:24px; line-height:1.25; }
.roster-parity-top-icons,.roster-parity-filter-row,.roster-parity-navigation { display:flex; align-items:end; gap:5px; min-width:0; }
.roster-parity-top-icons { align-items:center; justify-content:end; }
.roster-parity-top-icons label,.roster-parity-filter-row label,.roster-parity-navigation label { margin:0; min-width:0; }
.roster-parity-top-icons label>span,.roster-parity-filter-row label>span,.roster-parity-navigation label>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.roster-parity-toolbar :is(input,select) { min-height:44px; height:44px; padding:7px 10px; font-size:14px; }
.roster-parity-schedule { width:110px; }
.roster-parity-axis { width:170px; }
.roster-parity-search { flex:0 1 220px; }
.roster-parity-period { flex:0 1 250px; }
.roster-parity-all { min-width:48px; height:44px; min-height:44px; padding:7px; border:1px solid var(--line); background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); }
.roster-parity-info { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:0 7px; font-size:14px; white-space:nowrap; }
.roster-parity-info svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; }
.roster-parity-publish { display:inline-flex; gap:4px; width:auto; min-width:50px; }
.roster-parity-publish svg { width:18px; }
@media(max-width:1050px) { .roster-parity-top { align-items:start; } .roster-parity-top-icons { flex-wrap:wrap; } }
@media(max-width:680px) { .roster-parity-top { flex-direction:column; align-items:stretch; gap:6px; } .roster-parity-top-icons { justify-content:start; } .roster-parity-filter-row,.roster-parity-navigation { overflow-x:auto; padding:2px 1px 5px; } .roster-parity-axis { flex:0 0 130px; } .roster-parity-search { flex:0 0 150px; } .roster-parity-period { flex:0 0 165px; } }

.roster-parity-icon[aria-pressed="true"],.roster-parity-all[aria-pressed="true"] { border-color:var(--site-primary,var(--green)); color:var(--site-primary,var(--green)); background:var(--site-sidebar-highlight,#eff5ff); }

.roster-parity-filter-fields,.roster-parity-quick-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.roster-parity-filter-fields select[multiple] { min-height:100px; }
.roster-parity-quick-fields h3 { margin:8px 0 0; }

.roster-parity-grid { margin:0; border-radius:0; }
.roster-parity-resource { min-height:44px; position:relative; }
.roster-parity-resource .roster-parity-icon { width:28px; min-width:28px; height:28px; min-height:28px; padding:4px; }
.roster-parity-resource-hand { display:flex; align-items:center; gap:4px; font-size:12px; min-height:14px; padding:2px 0; background:transparent; }
.roster-parity-resource-hand svg,.roster-parity-header-hand { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; }
.roster-parity-header-hand { vertical-align:middle; margin-inline-start:5px; }
.roster-parity-day { display:grid; align-content:start; gap:5px; min-height:44px; }
.roster-parity-day > .roster-parity-icon { width:24px; min-width:24px; height:24px; min-height:24px; padding:4px; opacity:0; border:0; background:transparent; }
.roster-parity-day:hover > .roster-parity-icon,.roster-parity-day:focus-within > .roster-parity-icon { opacity:1; }
.roster-parity-card { position:relative; display:grid; gap:2px; align-content:start; min-width:0; width:100%; padding:6px 8px 20px; text-align:left; line-height:1.3; color:#000; border-radius:4px; }
.roster-parity-card :is(strong,span,small) { color:inherit; }
.roster-parity-card-name > .roster-parity-glyphs { margin-inline-end:4px; }
@media(forced-colors:none) {
  .roster-parity-card .roster-parity-card-name .roster-parity-glyph { background:#fff; border-radius:2px; box-shadow:0 0 0 1px #fff; }
  .roster-parity-card .roster-parity-card-name .roster-parity-glyph-success { color:#147d3c; }
  .roster-parity-card .roster-parity-card-name .roster-parity-glyph-danger { color:#b91c1c; }
}
@media(forced-colors:active) {
  .roster-parity-card .roster-parity-card-name .roster-parity-glyph { color:CanvasText; background-color:Canvas; }
}
@media(forced-colors:none) {
  .roster-parity-card .roster-parity-glyph-danger { color:#b91c1c; }
  .roster-parity-card .roster-parity-glyph-success { color:#147d3c; }
  .roster-parity-card .roster-parity-glyph-verified { color:#1d4ed8; }
  .roster-parity-card :is(.roster-parity-glyph-danger,.roster-parity-glyph-success,.roster-parity-glyph-verified),.roster-parity-card .roster-parity-completion > .roster-parity-glyph { background:#fff; border-radius:2px; box-shadow:0 0 0 1px #fff; }
}
@media(forced-colors:active) {
  .roster-parity-card :is(.roster-parity-glyph-danger,.roster-parity-glyph-success,.roster-parity-glyph-verified),.roster-parity-card .roster-parity-completion > .roster-parity-glyph { color:CanvasText; background-color:Canvas; }
}
.roster-parity-card-time { display:block; }
.roster-parity-card.roster-parity-explicit-foreground > :is(.roster-parity-card-time,.roster-parity-card-name) { color:var(--roster-parity-card-foreground); }
@media(forced-colors:active) {
  .roster-parity-card.roster-parity-explicit-foreground > :is(.roster-parity-card-time,.roster-parity-card-name) { color:CanvasText; background-color:Canvas; }
}
.roster-parity-completion { position:absolute; inset:auto 4px 3px auto; }
.roster-parity-native-verified { position:absolute; inset:auto auto 3px 4px; }
.roster-parity-note-compact { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.roster-parity-note-expanded { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(hover:none) { .roster-parity-day > .roster-parity-icon { opacity:1; } }

.roster-parity-billables { min-width:0; } .roster-parity-billables > summary { cursor:pointer; min-height:24px; } .roster-parity-billables > small { display:block; }
.roster-parity-card[role="button"]:focus-visible { outline:3px solid var(--site-primary,var(--green)); outline-offset:2px; }

.roster-parity-day-colour { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; padding:8px 0; }
.roster-parity-day-colour input[type="color"] { width:100%; min-height:44px; height:44px; }
@media(forced-colors:active) { .roster-parity-card { color:CanvasText; } }

.roster-parity-card.roster-parity-conflict { border:2px dashed #b91c1c; }
.roster-parity-grid th.roster-today .roster-today-label { color:inherit; }
.roster-parity-leave > svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; }

/* Authorised scheduled wall-time diagrams. No extra picker or selection buttons. */
.roster-parity-timeline { min-width:0; max-width:100%; overflow:auto; position:relative; border:1px solid var(--line); background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); }
.roster-parity-timeline:focus-visible { outline:3px solid var(--site-primary,var(--green)); outline-offset:2px; }
.roster-timeline-status:not(.roster-timeline-status-visible) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.roster-timeline-status-visible { margin:0; padding:10px; border-bottom:1px solid var(--line); }
.roster-timeline-gantt-canvas { min-width:1130px; }
.roster-timeline-gantt-row { display:grid; grid-template-columns:170px minmax(0,1fr); border-bottom:1px solid var(--line); }
.roster-timeline-resource { position:sticky; left:0; z-index:2; min-width:0; padding:6px; background:var(--site-surface,#fff); border-inline-end:1px solid var(--line); overflow-wrap:anywhere; }
.roster-timeline-resource-action { min-height:28px; margin:0; padding:0; border:0; background:transparent; color:inherit; text-align:left; white-space:normal; }
.roster-timeline-gantt-header { position:sticky; top:0; z-index:3; min-height:32px; background:var(--site-surface,#fff); }
.roster-timeline-hours { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); align-items:center; min-width:0; }
.roster-timeline-hours > span { min-width:0; padding:5px 1px; border-inline-end:1px solid var(--line); text-align:center; font-size:11px; }
.roster-timeline-gantt-track { position:relative; min-width:0; background-image:linear-gradient(to right,var(--line) 1px,transparent 1px); background-size:calc(100% / 24) 100%; }
.roster-timeline-gantt-strip { position:absolute; min-width:0; overflow:hidden; padding:1px; }
.roster-timeline-gantt-strip > .roster-parity-card { height:100%; min-height:0; overflow:hidden; padding:2px 5px; }
.roster-timeline-time { display:block; min-height:0; max-width:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; font-weight:700; line-height:1.2; text-align:left; white-space:nowrap; }
.roster-timeline-time:hover { text-decoration:underline; }
.roster-timeline-time:focus-visible,.roster-timeline-resource-action:focus-visible { outline:2px solid var(--site-primary,var(--green)); outline-offset:1px; }
.roster-timeline-overlap-canvas { min-width:calc(50px + var(--roster-timeline-days) * 150px); }
.roster-timeline-overlap-heading,.roster-timeline-overlap-body { display:grid; grid-template-columns:50px repeat(var(--roster-timeline-days),minmax(0,1fr)); }
.roster-timeline-overlap-heading { position:sticky; top:0; z-index:3; min-height:32px; background:var(--site-surface,#fff); }
.roster-timeline-overlap-heading > span { padding:6px 3px; border-inline-end:1px solid var(--line); text-align:center; font-size:12px; }
.roster-timeline-ruler { position:sticky; left:0; z-index:2; background:var(--site-surface,#fff); border-inline-end:1px solid var(--line); }
.roster-timeline-ruler > span { position:absolute; inset-inline-start:2px; max-width:46px; font-size:10px; line-height:1; }
.roster-timeline-overlap-track { position:relative; min-width:0; border-inline-end:1px solid var(--line); background-image:linear-gradient(to bottom,var(--line) 1px,transparent 1px); background-size:100% 30px; touch-action:auto; }
.roster-timeline-overlap-slot { position:absolute; min-width:0; padding:1px; overflow:hidden; }
.roster-timeline-overlap-slot > .roster-parity-card { height:100%; min-height:0; overflow:hidden; padding:3px 5px; }
.roster-timeline-create-ghost { position:absolute; inset-inline:0; pointer-events:none; border:2px dashed var(--site-primary,var(--green)); background:var(--site-sidebar-highlight,#eff5ff); opacity:.75; }
.roster-timeline-folds { min-width:0; max-width:100%; }
.roster-timeline-clock-fold { min-width:0; padding:8px; border-block:1px solid var(--line); }
.roster-timeline-clock-fold > p { margin:0 0 4px; }
.roster-timeline-clock-fold > small { display:block; overflow-wrap:anywhere; }
.roster-timeline-clock-fold > .roster-parity-card { max-width:340px; margin-top:6px; }
@media(forced-colors:active) { .roster-parity-timeline,.roster-timeline-create-ghost { border-color:CanvasText; } .roster-timeline-time,.roster-timeline-resource-action { color:CanvasText; } }

.rpr-overlay{position:fixed;inset:0;z-index:1220;display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto;background:rgb(15 23 42 / .4)}
.rpr-dialog{box-sizing:border-box;width:min(720px,100%);max-height:calc(100dvh - 24px);overflow:auto;padding:18px;border:1px solid var(--line,#e5eaf2);border-radius:9px;background:var(--site-surface,#fff);color:var(--site-on-surface,var(--ink,#202c40));box-shadow:0 12px 40px rgb(15 23 42 / .2)}
.rpr-dialog h2{font-size:1.15rem;margin:0 0 10px}.rpr-tab{font-size:.875rem;font-weight:600;border-bottom:2px solid var(--green,#1764e8);padding-bottom:8px}
.rpr-form{display:grid;gap:10px}.rpr-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rpr-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:.875rem}
.rpr-field>input,.rpr-field>select{box-sizing:border-box;width:100%;min-height:44px;padding:8px;border:1px solid var(--line,#cbd5e1);border-radius:5px;color:inherit;background:var(--site-surface,#fff);font:inherit}
.rpr-field:has(>input[type=checkbox]){flex-direction:row;align-items:center;min-height:44px;gap:8px}.rpr-field>input[type=checkbox]{width:20px;min-height:20px}.rpr-field:has(>input[type=checkbox])>span{order:1}
.rpr-copy,.rpr-days{display:flex;flex-wrap:wrap;gap:10px;border:1px solid var(--line,#e5eaf2);border-radius:5px}.rpr-copy legend,.rpr-days legend,.rpr-assigned legend{font-weight:600;font-size:.875rem}
.rpr-assigned{border:1px solid var(--line,#e5eaf2);border-radius:5px}.rpr-note{font-size:.8rem;color:var(--muted,#64748b);margin:4px 0}.rpr-feedback{font-size:.875rem}.rpr-feedback:empty{display:none}
.rpr-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-top:12px}.rpr-dialog button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--line,#d5dce6);border-radius:5px;background:var(--site-surface,#fff);color:inherit;cursor:pointer}
.rpr-dialog button.rpr-primary{background:var(--green,#1764e8);color:var(--site-on-action,#fff);border-color:currentColor}.rpr-dialog :is(button,input,select):focus-visible{outline:3px solid var(--green,#1764e8);outline-offset:2px}.rpr-dialog :disabled{cursor:default;opacity:.55}.rpr-occurrences{max-height:40dvh;overflow:auto;font-size:.875rem;line-height:1.6}
@media(max-width:520px){.rpr-grid{grid-template-columns:1fr}.rpr-dialog{padding:12px}.rpr-actions button{flex:1 0 auto}}
@media(forced-colors:active){.rpr-dialog,.rpr-dialog :is(button,input,select){border:1px solid CanvasText}.rpr-dialog button.rpr-primary{background:Highlight;color:HighlightText}.rpr-overlay{background:transparent}}

/* Shift editor: Source-shaped sections; existing themes retain their colours. */
.rpe-overlay{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgb(15 23 42 / .4);overflow:auto}
.rpe-overlay-secondary{z-index:1210}
.rpe-dialog{box-sizing:border-box;width:min(1080px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--site-surface,#fff);color:var(--site-on-surface,var(--ink,#202c40));border:1px solid var(--line,#e5eaf2);border-radius:10px;box-shadow:0 12px 45px rgb(15 23 42 / .2);padding:20px}
.rpe-dialog-small{width:min(520px,100%)}
.rpe-dialog h2{font-size:1.15rem;margin:0 0 12px}
.rpe-form{display:grid;gap:12px}
.rpe-section{min-width:0;margin:0;padding:12px;border:1px solid var(--line,#e5eaf2);border-radius:6px}
.rpe-section legend{font-weight:600;padding:0 5px}
.rpe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rpe-field{display:flex;flex-direction:column;gap:5px;min-width:0;margin-bottom:8px;font-size:.875rem}
.rpe-field>input,.rpe-field>select,.rpe-field>textarea{box-sizing:border-box;width:100%;min-height:44px;color:inherit;background:var(--site-surface,#fff);border:1px solid var(--line,#ccd5e0);border-radius:5px;padding:8px;font:inherit}
.rpe-field>textarea{min-height:78px;resize:vertical}
.rpe-field>input[type=checkbox]{width:20px;min-height:20px;align-self:flex-start}
.rpe-field:has(>input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}
.rpe-field:has(>input[type=checkbox])>span{order:1}
.rpe-flags{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.rpe-note{font-size:.8rem;color:var(--muted,#64748b);margin:4px 0 8px}
.rpe-feedback{margin:0;font-size:.875rem}
.rpe-feedback:empty{display:none}
.rpe-footer{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;border-top:1px solid var(--line,#e5eaf2);padding-top:12px}
.rpe-dialog button{min-height:44px;min-width:44px;padding:8px 12px;margin:3px;border:1px solid var(--line,#d5dce6);border-radius:5px;background:var(--site-surface,#fff);color:inherit;cursor:pointer}
.rpe-dialog button.rpe-primary{background:var(--green,#1764e8);color:var(--site-on-action,#fff);border-color:var(--site-on-action,#fff)}
.rpe-dialog button.rpe-danger{color:var(--danger,#b42318)}
.rpe-dialog :is(button,input,select,textarea):focus-visible{outline:3px solid var(--green,#1764e8);outline-offset:2px}
.rpe-dialog button:disabled{cursor:default;opacity:.55}
.rpe-review{display:grid;grid-template-columns:minmax(80px,1fr) 2fr;gap:8px}
.rpe-review dt{font-weight:600}.rpe-review dd{margin:0;overflow-wrap:anywhere}
.rpe-billables{display:grid;gap:8px}
@media(max-width:680px){.rpe-overlay{padding:6px}.rpe-dialog{padding:12px;max-height:calc(100dvh - 12px)}.rpe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rpe-footer{position:sticky;bottom:-12px;background:var(--site-surface,#fff);padding-bottom:10px}.rpe-footer button{flex:1 0 auto}}
@media(max-width:390px){.rpe-grid{grid-template-columns:1fr}}
@media(forced-colors:active){.rpe-dialog,.rpe-dialog :is(input,select,textarea,button){border:1px solid CanvasText}.rpe-dialog button.rpe-primary{background:Highlight;color:HighlightText}.rpe-overlay{background:transparent}}

.roster-parity-bulk-dialog{width:min(31rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border:1px solid var(--line,#cdd6df);border-radius:8px;padding:1.15rem;background:var(--site-surface,#fff);color:var(--ink,#142b44)}
.roster-parity-bulk-dialog::backdrop{background:#10203066}
.roster-parity-bulk-dialog h2{margin:0 0 1rem;font-size:1.1rem}
.roster-parity-bulk-body{display:grid;gap:.8rem}
.roster-parity-bulk-body label{display:grid;gap:.35rem}
.roster-parity-bulk-body :is(select,input,textarea){width:100%;min-height:44px;font:inherit;color:inherit}
.roster-parity-bulk-body textarea{min-height:6rem}
.roster-parity-bulk-body :is(p,ul){margin:0;overflow-wrap:anywhere}
.roster-parity-bulk-body ul{padding-left:1.3rem;max-height:15rem;overflow:auto}
.roster-parity-bulk-footer{display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.roster-parity-bulk-footer button{min-width:44px;min-height:44px;border:1px solid #fff}
.roster-parity-bulk-dialog :focus-visible{outline:3px solid currentColor;outline-offset:3px}
@media(prefers-contrast:more){.roster-parity-bulk-dialog{border:2px solid currentColor}.roster-parity-bulk-footer button{border:2px solid currentColor}}
@media(max-width:390px){.roster-parity-bulk-dialog{padding:.8rem}.roster-parity-bulk-footer button{flex:1 1 auto}}

/* The grid follows the compact toolbar directly; secondary tools are overlays. */
.roster-parity-page { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; min-width:0; }
.roster-parity-page > :empty { display:none; }
.roster-parity-page > .note:empty { display:none; }
.roster-parity-page .roster-parity-toolbar { margin:0; }
.roster-parity-footer { display:grid; gap:6px; padding-top:8px; }
.roster-parity-footer p { margin:0; }
.roster-parity-footer .actions { margin:0; }
.roster-parity-module-icons { display:flex; flex-wrap:wrap; gap:6px; padding:8px 0; }
.roster-parity-popup { box-sizing:border-box; max-width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:16px; overflow:auto; border:1px solid var(--line); border-radius:7px; background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); }
.roster-parity-popup::backdrop { background:rgb(15 23 42 / .35); }
.roster-parity-popup > h2 { margin:0 0 10px; font-size:20px; }
.roster-parity-popup-body { display:grid; gap:6px; }
.roster-parity-popup-body > button { min-width:44px; min-height:44px; }
.roster-parity-overlap-picker { margin:0; padding:0; border:1px solid var(--line); border-radius:5px; background:var(--site-surface,#fff); color:var(--site-on-surface,var(--ink)); position:relative; }
.roster-parity-overlap-picker > summary { display:flex; align-items:center; min-height:42px; padding:6px 10px; cursor:pointer; font-size:14px; list-style:none; }
.roster-parity-overlap-picker > summary::after { content:'⌄'; margin-inline-start:auto; }
.roster-parity-overlap-picker[open] > summary { border-bottom:1px solid var(--line); }
.roster-parity-overlap-picker > label { margin:8px; }
.roster-parity-resource-options { display:grid; max-height:260px; overflow:auto; padding:8px; gap:3px; }
.roster-parity-resource-options > label { display:flex; align-items:center; gap:7px; min-height:44px; margin:0; }
.roster-parity-resource-options > label input { width:20px; height:20px; }
.roster-parity-overlap-picker :focus-visible { outline:3px solid var(--site-primary,var(--green)); outline-offset:2px; }
@media(max-width:680px) {
  .roster-parity-page { gap:6px; }
  .roster-parity-top { flex-wrap:wrap; gap:6px; }
  .roster-parity-title h2 { font-size:20px; }
  .roster-parity-top-icons { justify-content:flex-start; flex-wrap:wrap; }
  .roster-parity-filter-row,.roster-parity-navigation { flex-wrap:wrap; }
  .roster-parity-filter-row .roster-parity-search { flex:1; min-width:120px; }
  .roster-parity-navigation .roster-parity-period { flex:1; min-width:110px; }
}
@media(forced-colors:active) {
  .roster-parity-popup,.roster-parity-overlap-picker { border-color:CanvasText; background:Canvas; color:CanvasText; }
}

.roster-parity-page .roster-parity-card :is(strong,small) { font-size:inherit; color:inherit; }
.roster-parity-page .roster-parity-card.roster-parity-minimal:not(.roster-timesheet-overdue) { background:var(--site-surface,#fff); color:var(--site-on-surface,#000); }
.roster-parity-page .roster-parity-card { border-width:1px; border-style:solid; border-block-color:var(--line); border-inline-end-color:var(--line); border-inline-start-width:5px; }
.roster-parity-page .roster-parity-card.roster-is-selected { outline:2px solid var(--site-primary,var(--green)); outline-offset:-2px; }
@media(pointer:coarse) { .roster-parity-resource .roster-parity-icon,.roster-parity-day > .roster-parity-icon { min-width:44px; min-height:44px; width:44px; height:44px; } }

.rpe-icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rpe-dialog button.rpe-icon-token{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;background:var(--site-surface,#fff);color:var(--site-on-surface,var(--ink,#202c40))}
.rpe-icon-token svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rpe-icon-token[aria-pressed=true]{outline:2px solid var(--green,#1764e8);outline-offset:1px}
.rpe-icon-token span{font-size:.75rem}
@media(max-width:390px){.rpe-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){.rpe-icon-token[aria-pressed=true]{outline-color:Highlight}}

.roster-parity-page.roster-page.roster-colours-standard .roster-day .roster-shift.roster-parity-minimal:not(.roster-timesheet-overdue) { background:var(--site-surface,#fff); color:var(--site-on-surface,#000); }
.roster-parity-pinned svg { width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8; }

.roster-parity-custom-icons { display:flex;flex-wrap:wrap;gap:4px; }
.roster-parity-custom-icons svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8; }

.roster-parity-primary-field { min-width:0; display:grid;gap:5px; }
.roster-parity-primary-field > label { margin:0; }
.roster-parity-multi-picker { border:1px solid var(--line);border-radius:5px;margin:0;padding:0; }
.roster-parity-multi-picker > summary { display:flex;align-items:center;min-height:44px;padding:7px 10px;list-style:none;cursor:pointer;overflow-wrap:anywhere; }
.roster-parity-multi-picker > summary::after { content:"⌄";margin-inline-start:auto; }
.roster-parity-multi-picker > label { margin:7px; }
.roster-parity-multi-options { display:grid;max-height:230px;overflow:auto;padding:7px;gap:3px; }
.roster-parity-multi-options > label { display:flex;gap:7px;align-items:center;margin:0;min-height:44px; }
.roster-parity-multi-options input { width:20px;height:20px; }

.roster-parity-read-details { display:grid;grid-template-columns:minmax(70px,1fr) 2fr;gap:8px; }
.roster-parity-read-details dd { margin:0;overflow-wrap:anywhere; }

.rph-history-overlay{position:fixed;inset:0;z-index:1230;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;background:rgb(15 23 42 / .4)}
.rph-history-dialog{box-sizing:border-box;width:min(1080px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--site-border,#d6e0ec);border-radius:8px;background:var(--site-surface,#fff);color:var(--site-text,#21334b);box-shadow:0 16px 48px rgb(15 23 42 / .2);font:inherit}
.rph-history-dialog *{box-sizing:border-box}
.rph-history-header,.rph-history-controls,.rph-history-paging{display:flex;align-items:center;justify-content:space-between;gap:16px}
.rph-history-header h2{margin:0;font-size:1.35rem;font-weight:600}
.rph-history-dialog button,.rph-history-dialog input,.rph-history-dialog select{font:inherit;color:inherit}
.rph-history-dialog button{min-height:36px;padding:6px 12px;border:1px solid var(--site-border,#c8d6e8);border-radius:4px;background:var(--site-surface,#fff);cursor:pointer}
.rph-history-dialog button:disabled{cursor:default;opacity:.55}
.rph-history-dialog :is(button,input,select):focus-visible{outline:2px solid var(--site-primary,#1670c5);outline-offset:2px}
.rph-history-dialog .rph-history-x{font-size:1.5rem;line-height:1;padding:4px 10px;border-color:transparent}
.rph-history-controls{margin-top:20px;flex-wrap:wrap}
.rph-history-controls label{display:flex;align-items:center;gap:8px;font-size:.9rem}
.rph-history-controls input,.rph-history-controls select{min-height:36px;max-width:100%;padding:6px 8px;border:1px solid var(--site-border,#c8d6e8);border-radius:4px;background:var(--site-surface,#fff)}
.rph-history-controls input{width:250px}
.rph-history-feedback{min-height:1.25em;margin:10px 0;font-size:.9rem}
.rph-history-feedback[role=alert]{color:var(--site-danger,#a52929)}
.rph-history-table-wrap{max-width:100%;overflow-x:auto}
.rph-history-table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}
.rph-history-table th,.rph-history-table td{padding:11px 10px;border-bottom:1px solid var(--site-border,#dce4ef);vertical-align:top}
.rph-history-table th{background:var(--site-surface-muted,#f5f8fc);font-weight:600;white-space:nowrap}
.rph-history-table td{overflow-wrap:anywhere}
.rph-history-table td:first-child{min-width:180px}
.rph-history-table .rph-history-user{min-width:180px;font-family:inherit}
.rph-history-table td:last-child{min-width:220px}
.rph-history-table .rph-history-state{text-align:center;padding:24px 10px;color:var(--site-text-muted,#54677e)}
.rph-history-dialog .rph-history-date-sort{padding:0;border:0;min-height:24px;background:transparent;font-weight:600;text-align:left}
.rph-history-table th[aria-sort=descending] .rph-history-date-sort::after{content:' ▼';font-size:.7em}
.rph-history-table th[aria-sort=ascending] .rph-history-date-sort::after{content:' ▲';font-size:.7em}
.rph-history-paging{margin-top:14px;flex-wrap:wrap}
.rph-history-range{margin:0;font-size:.85rem}
.rph-history-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.rph-history-pagination button[aria-current=page]{background:var(--site-primary,#1670c5);border-color:var(--site-primary,#1670c5);color:#fff;opacity:1}
.rph-history-gap{padding:0 5px}
.rph-history-coverage{margin:16px 0 0;color:var(--site-text-muted,#54677e);font-size:.8rem;line-height:1.5}
.rph-history-footer{display:flex;justify-content:flex-end;margin-top:18px;padding-top:14px;border-top:1px solid var(--site-border,#dce4ef)}
@media(max-width:680px){.rph-history-overlay{padding:6px}.rph-history-dialog{padding:12px;max-height:calc(100dvh - 12px)}.rph-history-controls{gap:10px}.rph-history-controls label:last-child{width:100%}.rph-history-controls input{width:100%;min-width:0}.rph-history-paging{align-items:flex-start}.rph-history-pagination{width:100%}.rph-history-pagination button{padding:6px 9px}}
@media(forced-colors:active){.rph-history-overlay{background:transparent}.rph-history-dialog,.rph-history-dialog :is(button,input,select){border:1px solid CanvasText}.rph-history-pagination button[aria-current=page]{background:Highlight;color:HighlightText}}

.rpe-notes-area{min-width:0}
.rpe-notes-area>.rpe-note:empty{display:none}

.roster-parity-module-icons { display:grid;gap:3px; }
.roster-parity-module { display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:7px;text-align:left;background:transparent;color:inherit;border:0; }
.roster-parity-module svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8; }

.rpc-scope{margin:10px 0;padding:10px;border:1px solid var(--line,#e5eaf2);border-radius:5px;color:var(--site-on-surface,var(--ink,#202c40))}.rpc-scope legend{font-weight:600}.rpc-feedback{margin:4px 0;font-size:.875rem}.rpc-feedback:empty{display:none}.rpc-field{display:flex;flex-direction:column;gap:4px;margin:8px 0}.rpc-field select{min-height:44px;max-width:100%;padding:8px;color:inherit;background:var(--site-surface,#fff);border:1px solid var(--line,#cbd5e1);border-radius:5px}.rpc-members{margin-top:8px;padding:8px;border:1px solid var(--line,#e5eaf2);max-height:220px;overflow:auto}.rpc-member{display:flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem}.rpc-member input{width:20px;min-height:20px;flex:none}.rpc-review{max-width:100%;overflow:auto}.rpc-review h3{font-size:1rem}.rpc-review table{min-width:540px;font-size:.8rem}.rpc-review td,.rpc-review th{text-align:left;vertical-align:top;padding:6px}.rpc-scope :is(input,select):focus-visible{outline:3px solid var(--green,#1764e8);outline-offset:2px}@media(forced-colors:active){.rpc-scope,.rpc-members,.rpc-field select{border:1px solid CanvasText}}

.rqv-backdrop{position:fixed;inset:0;z-index:10070;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(20,32,51,.38);box-sizing:border-box}
.rqv-dialog{display:flex;flex-direction:column;width:min(900px,100%);max-height:80vh;max-height:80dvh;min-width:0;overflow:hidden;border:1px solid var(--line,#e5eaf2);border-radius:10px;background:var(--site-surface,#fff);color:var(--site-on-surface,var(--ink,#202c40));box-shadow:0 20px 60px rgba(0,0,0,.24)}
.rqv-header,.rqv-footer{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:12px 16px;background:var(--site-surface,#fff)}
.rqv-header{border-bottom:1px solid var(--line,#e5eaf2)}
.rqv-footer{justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line,#e5eaf2)}
.rqv-body{padding:0 16px 14px;overflow:auto;overscroll-behavior:contain;min-height:0}
.rqv-dialog button,.rqv-dialog select{box-sizing:border-box;min-width:44px;min-height:44px;border:1px solid var(--line,#e5eaf2);border-radius:6px;padding:8px 12px;font:inherit;background:var(--site-surface,#fff);color:var(--site-on-surface,var(--ink,#202c40))}
.rqv-dialog button{cursor:pointer}.rqv-dialog button:disabled,.rqv-dialog select:disabled{cursor:default;opacity:.6}
.rqv-dialog button:focus-visible,.rqv-dialog select:focus-visible,.rqv-dialog input:focus-visible,.rqv-dialog:focus-visible{outline:3px solid var(--green,#1764e8);outline-offset:2px}
.rqv-dialog .rqv-primary{background:var(--green,#1764e8);color:var(--site-on-action,#fff);border-color:#fff}
.rqv-header .rqv-shift-link{border-color:transparent;color:var(--green,#1764e8);font-size:1.1em;font-weight:700;padding-left:0}
.rqv-dismiss{margin-inline-start:auto;font-size:1.5em!important;line-height:1}
.rqv-cancelled{font-size:.9em;font-weight:600}
.rqv-section{padding:14px 0;border-bottom:1px solid var(--line,#e5eaf2)}
.rqv-section h3{margin:0 0 10px;font-size:1em}
.rqv-values{display:grid;grid-template-columns:minmax(110px,180px) minmax(0,1fr);gap:7px 14px;margin:0}
.rqv-values dt{font-weight:600}.rqv-values dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.rqv-manager{display:flex;flex-wrap:wrap;gap:12px 24px}.rqv-manager h3{flex-basis:100%}
.rqv-manager label{display:flex;flex-direction:column;gap:6px;min-width:150px}
.rqv-manager .rqv-check{flex-direction:row;align-items:center;gap:10px;min-height:44px}
.rqv-check input{width:20px;height:20px;margin:0}
.rqv-message{margin:12px 0 0;min-height:1.4em;overflow-wrap:anywhere}.rqv-error{color:var(--danger,#a32020)}
.rqv-body>[data-quick-view-action]{margin:10px 8px 0 0}
@media(max-width:540px){.rqv-backdrop{padding:8px}.rqv-header,.rqv-footer{padding:10px 12px}.rqv-body{padding:0 12px 12px}.rqv-values{grid-template-columns:minmax(90px,35%) minmax(0,1fr)}.rqv-footer{gap:6px}.rqv-footer button{flex:1 1 auto;padding:8px}}
@media(forced-colors:active){.rqv-dialog,.rqv-dialog button,.rqv-dialog select{border-color:ButtonText}.rqv-dialog .rqv-primary{background:Highlight;color:HighlightText}.rqv-error{color:CanvasText}}

.rpe-chain-decision{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0}
.rpe-chain-decision input{width:24px;height:24px;flex:none}

/* Keep the desktop period controls at the right edge of the compact toolbar. */
@media(min-width:681px) { .roster-parity-navigation { justify-content:flex-end; } }
