/* Visual styles directly derived from PR #431, commit d5a85b86. Scoped to protect other screens. */

.pr431 {
  color-scheme: light;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #f0f4f7;
  --surface-3: #e9eff5;
  --line: #cbd5df;
  --text: #172b3a;
  --muted: #526578;
  --brand: #006b93;
  --brand-soft: #e1f0f7;
  --warning: #805400;
  --warning-bg: #fff4d6;
  --pre: #fff0be;
  --pre-text: #705000;
  --per: #dcedff;
  --per-text: #164979;
  --post: #dff3e6;
  --post-text: #205b38;
  --gyn: #f0e5f7;
  --gyn-text: #66317a;
  --general: #fde6e9;
  --general-text: #8a2b3b;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.pr431 * {
  box-sizing: border-box;
}
.pr431 {
  margin: 0;
  padding: 16px;
  background: #f4f7f9;
  color: var(--text);
}
.pr431 button,
.pr431 input,
.pr431 select {
  font: inherit;
}
.pr431 button {
  cursor: pointer;
}
.pr431 .app {
  min-height: 820px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.pr431 .sidebar {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.pr431 .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
  color: #164979;
  font-weight: 650;
}
.pr431 .brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #dcedff;
  color: #164979;
}
.pr431 .nav-label {
  margin: 12px 8px 6px;
  color: #526578;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pr431 .nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.pr431 .nav-button[aria-current="page"] {
  background: var(--brand-soft);
  color: #233f58;
  font-weight: 600;
}
.pr431 .nav-icon {
  width: 18px;
  text-align: center;
  color: #315b7a;
}
.pr431 .pr431-main {
  min-width: 0;
  padding: 22px;
}
.pr431 .topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pr431 h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
}
.pr431 h2 {
  margin: 0;
  font-size: 16px;
}
.pr431 p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.pr431 .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.pr431 .notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #b8cddd;
  border-radius: 10px;
  background: #edf5fc;
  color: #234f72;
  font-size: 12px;
}
.pr431 .toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.pr431 .field {
  display: grid;
  gap: 5px;
  min-width: 125px;
}
.pr431 .field.search {
  min-width: 180px;
}
.pr431 label {
  color: #526578;
  font-size: 11px;
}
.pr431 select,
.pr431 input {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--text);
}
.pr431 .toolbar-spacer {
  flex: 1;
}
.pr431 .secondary {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--text);
}
.pr431 .tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.pr431 .tab {
  padding: 9px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.pr431 .tab[aria-selected="true"] {
  border-bottom-color: var(--brand);
  color: #006b93;
}
.pr431 .summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.pr431 .stat,
.pr431 .card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.pr431 .stat {
  padding: 11px 12px;
}
.pr431 .stat span {
  color: var(--muted);
  font-size: 12px;
}
.pr431 .stat strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}
.pr431 .planning {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.pr431 .matrix {
  min-width: 940px;
  display: grid;
  grid-template-columns: 155px repeat(6, minmax(120px, 1fr));
}
.pr431 .matrix > div {
  min-width: 0;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pr431 .head,
.pr431 .person {
  background: var(--surface-2);
}
.pr431 .head {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.pr431 .head strong,
.pr431 .person strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}
.pr431 .person span {
  color: var(--muted);
  font-size: 11px;
}
.pr431 .stage {
  width: 100%;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  padding: 7px;
  color: var(--text);
  text-align: left;
}
.pr431 .stage strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.pr431 .stage span {
  font-size: 10px;
  font-weight: 650;
}
.pr431 .pre {
  background: var(--pre);
}
.pr431 .pre span {
  color: var(--pre-text);
}
.pr431 .per {
  background: var(--per);
}
.pr431 .per span {
  color: var(--per-text);
}
.pr431 .post {
  background: var(--post);
}
.pr431 .post span {
  color: var(--post-text);
}
.pr431 .gyn {
  background: var(--gyn);
}
.pr431 .gyn span {
  color: var(--gyn-text);
}
.pr431 .general {
  background: var(--general);
}
.pr431 .general span {
  color: var(--general-text);
}
.pr431 .empty {
  place-items: center;
  border: 1px dashed #97aabb;
  background: transparent;
  color: #526578;
}
.pr431 .bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  margin-top: 12px;
}
.pr431 .legend,
.pr431 .detail {
  padding: 12px;
}
.pr431 .legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.pr431 .key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.pr431 .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.pr431 .detail p {
  font-size: 12px;
}
.pr431 .actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.pr431 .action {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
}
.pr431 .action.primary {
  border-color: #006b93;
  background: #006b93;
}
.pr431 .action.danger {
  border-color: #b83e50;
  color: #8a2b3b;
}
.pr431 .detail-status {
  color: var(--muted);
}
.pr431 .list {
  overflow: hidden;
}
.pr431 .list-row {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.25fr 0.8fr;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pr431 .list-row:last-child {
  border-bottom: 0;
}
.pr431 .list-row.heading {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}
.pr431 .module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pr431 .module-card {
  padding: 15px;
}
.pr431 .module-card p {
  font-size: 13px;
}
.pr431 .module-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.pr431 .mode-note {
  margin-top: 12px;
  padding: 11px;
  border-radius: 9px;
  background: #edf2f7;
  color: #40596d;
  font-size: 12px;
}
.pr431 .shade {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.78);
}
.pr431 .dialog {
  width: min(560px, 100%);
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 20px 55px #0009;
}
.pr431 .dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pr431 .dialog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 9px;
  margin-bottom: 10px;
}
.pr431 .result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}
.pr431 .result strong,
.pr431 .result small {
  display: block;
}
.pr431 .result small {
  color: var(--muted);
}
.pr431 .availability {
  color: #205b38;
  font-size: 11px;
  white-space: nowrap;
}
.pr431 [hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .pr431 {
    padding: 0;
  }
  .pr431 .app {
    grid-template-columns: 1fr;
    border-radius: 0;
  }
  .pr431 .sidebar {
    display: none;
  }
  .pr431 .pr431-main {
    padding: 14px;
  }
  .pr431 .topline,
  .pr431 .notice {
    align-items: flex-start;
    flex-direction: column;
  }
  .pr431 .summary,
  .pr431 .module-grid,
  .pr431 .bottom {
    grid-template-columns: 1fr;
  }
}

.pr431 .workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.pr431 .eyebrow {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.pr431 .prototype-note {
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}
.pr431 .prototype-note strong {
  color: var(--text);
}
.pr431 .workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.pr431 .workflow span {
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--surface-2);
}
.pr431 .workflow .current {
  color: #233f58;
  background: var(--brand-soft);
}
.pr431 .workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.pr431 .workspace-toolbar .field {
  min-width: 155px;
}
.pr431 .workspace-toolbar input,
.pr431 .workspace-toolbar select {
  width: 100%;
  min-width: 0;
}
.pr431 .workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.pr431 .workspace-actions .action {
  padding: 8px 12px;
}
.pr431 .action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pr431 .action[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.pr431 .workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.pr431 .panel-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  min-width: 0;
}
.pr431 .panel-card h2 {
  margin-bottom: 8px;
}
.pr431 .panel-card h3 {
  font-size: 13px;
  margin: 18px 0 8px;
}
.pr431 .panel-card p,
.pr431 .hint {
  font-size: 12px;
}
.pr431 .hint {
  color: var(--muted);
  line-height: 1.5;
}
.pr431 .status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #dff3e6;
  color: #205b38;
  font-size: 11px;
  font-weight: 650;
}
.pr431 .status-pill.warn {
  color: #805400;
  background: #fff4d6;
}
.pr431 .status-pill.pending {
  color: #234f72;
  background: #e5effa;
}
.pr431 .status-pill.stop {
  color: #8a2b3b;
  background: #fde6e9;
}
.pr431 .scroll-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pr431 .work-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.pr431 .work-table th,
.pr431 .work-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pr431 .work-table th {
  color: var(--muted);
  font-size: 11px;
  background: var(--surface-2);
  font-weight: 500;
}
.pr431 .work-table tr:last-child td {
  border-bottom: 0;
}
.pr431 .work-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}
.pr431 .line-table {
  min-width: 1050px;
}
.pr431 .line-table th:first-child,
.pr431 .line-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: var(--surface);
}
.pr431 .line-table th:first-child {
  background: var(--surface-2);
}
.pr431 .line-table td {
  width: 14%;
  padding: 8px;
}
.pr431 .line-table tr.selected td {
  box-shadow:
    inset 0 2px #006b93,
    inset 0 -2px #006b93;
}
.pr431 .line-table .stage {
  min-height: 98px;
  padding: 9px;
}
.pr431 .line-table .stage strong {
  white-space: normal;
  line-height: 1.45;
}
.pr431 .line-table .stage small {
  color: var(--text);
  opacity: 0.85;
}
.pr431 .text-button {
  border: 0;
  padding: 6px 0;
  background: none;
  color: var(--brand);
  font-weight: 650;
  text-align: left;
}
.pr431 .checks {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.pr431 .checks li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pr431 .checks li:last-child {
  border-bottom: 0;
}
.pr431 .checks strong {
  white-space: nowrap;
}
.pr431 .form-stack {
  display: grid;
  gap: 12px;
}
.pr431 .form-stack label,
.pr431 .form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.pr431 .form-stack select {
  width: 100%;
}
.pr431 .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pr431 .form-grid input,
.pr431 .form-grid select {
  width: 100%;
  min-width: 0;
}
.pr431 .field input[type="number"],
.pr431 .work-table input[type="number"] {
  width: 80px;
}
.pr431 .work-table input[type="number"] {
  height: 33px;
}
.pr431 .section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
}
.pr431 .section-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 11px;
  background: none;
  color: var(--muted);
}
.pr431 .section-tabs button[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.pr431 .banner-result {
  margin-top: 12px;
  border-left: 3px solid var(--brand);
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}
.pr431 .rule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.pr431 .rule-row:last-child {
  border-bottom: 0;
}
.pr431 .rule-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0;
  accent-color: #006b93;
}
.pr431 .rule-row label {
  color: var(--text);
  font-size: 12px;
  flex: 1;
  line-height: 1.5;
}
.pr431 .rule-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.pr431 .rule-row .status-pill {
  margin-left: auto;
}
.pr431 .rotation-grid {
  min-width: 1200px;
}
.pr431 .rotation-grid th,
.pr431 .rotation-grid td {
  text-align: center;
  padding: 5px 2px;
  min-width: 32px;
}
.pr431 .rotation-grid th:first-child,
.pr431 .rotation-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 115px;
  width: 115px;
  text-align: left;
  padding: 8px;
  background: var(--surface);
}
.pr431 .rotation-grid th:last-child,
.pr431 .rotation-grid td:last-child {
  min-width: 125px;
  width: 125px;
  padding: 8px;
}
.pr431 .rotation-grid .week-start {
  border-left: 2px solid #97aabb;
}
.pr431 .rotation-grid th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.pr431 .rotation-grid .uelc-day {
  background: #fff4d6;
}
.pr431 .shift {
  width: 29px;
  height: 36px;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  padding: 0;
  color: #233f58;
  background: #edf2f7;
  font-size: 11px;
}
.pr431 .shift.J,
.pr431 .shift.J7,
.pr431 .shift.J10,
.pr431 .shift.J11 {
  background: #fff0be;
  color: #705000;
}
.pr431 .shift.N {
  background: #dcedff;
  color: #164979;
}
.pr431 .shift.R {
  background: transparent;
  border-color: #cbd5df;
  color: #637487;
}
.pr431 .shift.invalid {
  outline: 2px solid #b83e50;
  outline-offset: 1px;
}
.pr431 .shift:focus-visible,
.pr431 button:focus-visible {
  outline: 2px solid #006b93;
  outline-offset: 3px;
}
.pr431 .rotation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.pr431 .heat {
  border-radius: 3px;
  padding: 4px 0;
  background: #e0f2f6;
  color: #245969;
  font-size: 10px;
}
.pr431 .heat.busy {
  color: #805400;
  background: #fff4d6;
}
.pr431 .alert-list {
  padding-left: 18px;
  margin: 8px 0 0;
  color: #805400;
  line-height: 1.7;
  font-size: 12px;
}
.pr431 .rotation-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.pr431 #rotation-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.pr431 .assignment-chip {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.pr431 .assignment-chip:last-child {
  border-bottom: 0;
}
.pr431 .assignment-chip strong {
  color: var(--text);
}
.pr431 .assignment-chip span {
  color: var(--muted);
}
.pr431 .capacity-alert {
  color: #805400;
}
.pr431 .capacity-stop {
  color: #8a2b3b;
}
.pr431 .version-line {
  border-left: 2px solid var(--line);
  padding: 0 0 18px 15px;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.pr431 .version-line strong {
  display: block;
}
.pr431 .review-link {
  color: #164979;
}
@media (max-width: 1100px) {
  .pr431 .workspace-split {
    grid-template-columns: 1fr;
  }
  .pr431 .workspace-split > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 820px) {
  .pr431 .app > .sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pr431 .sidebar .brand,
  .pr431 .sidebar .nav-label,
  .pr431 .sidebar > .nav-button:not(.module-nav) {
    display: none;
  }
  .pr431 .sidebar .module-nav {
    width: auto;
    flex: 1 1 135px;
    font-size: 12px;
    min-height: 44px;
    justify-content: center;
  }
  .pr431 .workspace-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .pr431 .rotation-lower,
  .pr431 .form-grid,
  .pr431 .workspace-split > aside {
    grid-template-columns: 1fr;
  }
  .pr431 #rotation-team {
    grid-template-columns: 1fr;
  }
  .pr431 .workspace-toolbar .field {
    min-width: 0;
    flex: 1 1 140px;
  }
  .pr431 .workspace-toolbar select {
    max-width: 100%;
  }
  .pr431 .work-table:not(.line-table):not(.rotation-grid) {
    min-width: 650px;
  }
  .pr431 .section-tabs button {
    flex: 1 1 130px;
  }
}

/* HES-SO adaptations: variable PFP counts, complete curricula and outer journey navigation. */
.pr431 .app {
  grid-template-columns: minmax(0, 1fr);
}
.pr431 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  min-width: 0;
  border-radius: 16px;
}
.pr431 .pr431-main {
  min-width: 0;
}
.pr431 h1,
.pr431 h2,
.pr431 h3 {
  font-family: inherit;
  letter-spacing: normal;
  line-height: 1.3;
}
.pr431 h1 {
  margin-bottom: 0;
}
.pr431 button {
  font-weight: inherit;
}
.pr431 a {
  color: var(--brand);
}
.pr431 input[type="checkbox"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 5px 0 0;
}
.pr431 .line-table td {
  width: auto;
  min-width: 125px;
}
.pr431 .matrix {
  min-width: 1100px;
}
.pr431 .matrix > .edge {
  border-right: 0;
}
.pr431 .summary .stat {
  min-width: 0;
}
.pr431 .stage small {
  display: block;
  color: var(--text);
  opacity: 0.85;
}
.pr431 .work-table caption {
  padding: 12px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}
.pr431 .checks {
  list-style: none;
}
.pr431 .scope-note {
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.pr431 .rule-row label {
  min-width: 0;
}
.pr431 .rule-row input {
  flex-shrink: 0;
}
.pr431 .rule-row .status-pill {
  white-space: normal;
  flex-shrink: 0;
}
.pr431 .shift-tools {
  flex-wrap: wrap;
}
.pr431 .context-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .pr431 {
    padding: 8px;
  }
  .pr431 .app {
    display: block;
    min-height: 0;
  }
  .pr431 .sidebar {
    border: 0;
  }
  .pr431 .pr431-main {
    padding: 14px;
  }
  .pr431 .summary {
    grid-template-columns: 1fr;
  }
  .pr431 .bottom {
    grid-template-columns: 1fr;
  }
  .pr431 .app > .sidebar .module-nav {
    flex-basis: 130px;
  }
}

.pr431 .action.primary {
  color: #fff;
}

/* Explicit duration variants keep the PR431 day/night/rest palette. */
.pr431 .shift.J8,
.pr431 .shift.J10 {
  background: #fff0be;
  color: #654800;
  border-color: #c69d2b;
}
.pr431 .shift.N8,
.pr431 .shift.N10 {
  background: #dce5ff;
  color: #263d78;
  border-color: #7a91cf;
}
.pr431 .shift.R {
  background: #eef1f4;
  color: #526578;
  border-color: #bbc7d1;
}
.pr431 .shift.F8 {
  background: #dff3e6;
  color: #205b38;
  border-color: #7aaf8c;
}
.pr431 .shift-tools .shift {
  width: auto;
  min-width: 85px;
  height: auto;
  padding: 9px 12px;
}
.pr431 .shift-tools [aria-pressed="true"] {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.pr431 .semester-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 220px;
}
.pr431 .semester-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.pr431 .field-rules input[type="number"] {
  width: 95px;
}
.pr431 .field-rules {
  min-width: 940px;
}
.pr431 .field-rules td {
  vertical-align: top;
}
.pr431 textarea {
  font: inherit;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px;
  width: 100%;
}

.pr431 .field-rules td:last-child label {display:block;margin-bottom:8px;min-width:160px}
.pr431 .field-rules td:last-child select {display:block;margin-top:4px}
