#youthWorkspace {
  display: none;
  min-width: 0;
}

body.view-youth main > *:not(#youthWorkspace) {
  display: none !important;
}

body.view-youth main > #youthWorkspace {
  display: block !important;
}

body.view-youth main {
  display: block;
  width: min(960px, calc(100% - 28px));
  margin-top: 14px;
}

.youth-shell {
  display: grid;
  gap: 14px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.youth-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 2px;
}

.youth-header h2 {
  margin: 1px 0 0;
}

.youth-header > div {
  min-width: 0;
}

.youth-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youth-header-main h2 {
  flex: 0 0 auto;
}

.youth-header .eyebrow {
  margin: 0;
}

.youth-back,
.youth-header-settings {
  min-height: 44px;
  border: 1px solid #dadddf;
  border-radius: 13px;
  padding: 9px 13px;
  background: #fff;
  color: #1769aa;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.youth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.youth-back > span[aria-hidden="true"] {
  font-size: 1.25rem;
  line-height: 1;
}

.youth-header-settings {
  color: #41464b;
}

.youth-session-state {
  border: 1px solid #d9e3ec;
  border-radius: 13px;
  background: #f6f9fc;
  color: #44515d;
  font-size: .78rem;
}

.youth-session-state summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

.youth-session-state summary::-webkit-details-marker,
.youth-issues summary::-webkit-details-marker {
  display: none;
}

.youth-session-state summary::after,
.youth-issues summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.youth-session-state[open] summary::after,
.youth-issues[open] summary::after {
  transform: rotate(225deg);
}

.youth-session-state summary > span {
  color: #6e6e73;
  font-weight: 620;
  text-align: right;
}

.youth-session-state > p {
  margin: 0;
  border-top: 1px solid #e2e9ef;
  padding: 10px 12px 12px;
  color: #666b70;
  line-height: 1.45;
}

.youth-session-state.loading,
.youth-session-state.saving {
  border-color: #d8e6f3;
  background: #f2f8fd;
  color: #1769aa;
}

.youth-session-state.error {
  border-color: #efcbc7;
  background: #fff5f3;
  color: #92322b;
}

.youth-session-note {
  margin: -8px 2px 0;
  color: #666b70;
  font-size: .78rem;
  line-height: 1.45;
}

.youth-back:focus-visible,
.youth-header-settings:focus-visible,
.youth-mode-navigation button:focus-visible,
.youth-session-state summary:focus-visible,
.youth-week-format select:focus-visible,
.youth-home-launch:focus-visible,
.youth-plan-lane:focus-visible,
.youth-teaching-slot:focus-visible,
.youth-teaching-manual select:focus-visible,
.youth-teaching-manual button:focus-visible,
.youth-plan-dialog button:focus-visible,
.youth-plan-dialog input:focus-visible,
.youth-plan-dialog select:focus-visible,
.youth-teaching-roster-notice button:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .24);
  outline-offset: 2px;
}

.youth-mode-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid #dfe3e6;
}

.youth-mode-navigation button {
  position: relative;
  min-height: 44px;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: #6b7075;
  font: inherit;
  font-size: .82rem;
  font-weight: 740;
  cursor: pointer;
}

.youth-mode-navigation button::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: '';
}

.youth-mode-navigation button:hover {
  color: #34393d;
}

.youth-mode-navigation button.active,
.youth-mode-navigation button[aria-pressed="true"] {
  color: #1769aa;
}

.youth-mode-navigation button.active::after,
.youth-mode-navigation button[aria-pressed="true"]::after {
  background: currentColor;
}

#youthScopePanel {
  display: grid;
  gap: 14px;
}

.youth-issues {
  border-color: #ead9b8;
  background: #fffaf1;
}

.youth-issues summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  color: #6d4e0a;
  cursor: pointer;
  list-style: none;
}

.youth-issues summary > span {
  color: #816d43;
  font-size: .76rem;
  font-weight: 680;
}

.youth-issues ul {
  display: grid;
  gap: 6px;
  margin: 0;
  border-top: 1px solid #f0dfbb;
  padding: 11px 18px 14px 34px;
  color: #5f533b;
  line-height: 1.4;
}

.youth-board {
  display: grid;
  gap: 10px;
}

.youth-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.youth-board-heading > span {
  flex: 0 0 auto;
  color: #6e6e73;
  font-size: .82rem;
  font-weight: 760;
}

.youth-month {
  overflow: hidden;
  border: 1px solid #e1e4e7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .035);
}

.youth-month > h3 {
  padding: 11px 14px;
  border-bottom: 1px solid #e7e9eb;
  background: #f6f8fa;
}

.youth-month-rows {
  display: grid;
}

.youth-wednesday-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid #eceef0;
}

.youth-wednesday-row:last-child {
  border-bottom: 0;
}

.youth-wednesday-row.block {
  background: #fff5f3;
}

.youth-wednesday-row.warn {
  background: #fffaf1;
}

.youth-wednesday-date time strong,
.youth-wednesday-date time small {
  display: block;
}

.youth-date-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.youth-wednesday-date time strong {
  font-size: .92rem;
}

.youth-wednesday-date time small {
  margin-top: 1px;
  color: #74777b;
  font-size: .72rem;
}

.youth-next-label {
  border-radius: 999px;
  padding: 4px 7px;
  background: #e8f2fc;
  color: #1769aa;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.youth-past-label {
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef0f2;
  color: #6c7175;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.youth-week-format {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 0;
}

.youth-week-format select {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  padding: 4px 0;
  background-image: none;
  background-color: transparent;
  color: #70757a;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.youth-week-format select:hover {
  color: #3f454a;
}

.youth-week-format select:disabled {
  cursor: wait;
  opacity: .62;
}

.youth-plan-lanes {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.youth-plan-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 1px solid #dde1e5;
  border-radius: 11px;
  padding: 6px 10px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.youth-plan-lane:hover {
  border-color: #bfcbd5;
  background: #fafcfd;
}

.youth-plan-lane:disabled {
  cursor: wait;
  opacity: .62;
}

.youth-lane-copy {
  min-width: 0;
}

.youth-lane-copy small,
.youth-lane-copy strong {
  display: block;
}

.youth-lane-copy small {
  margin-bottom: 1px;
  color: #6e6e73;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.youth-lane-copy strong {
  overflow: hidden;
  font-size: .94rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.youth-slot-meta > span {
  border-radius: 999px;
  padding: 3px 6px;
  background: #f0f2f4;
  color: #63676b;
  font-size: .68rem;
  font-weight: 740;
}

.youth-slot-meta > .gym {
  background: #eaf5ee;
  color: #28704a;
}

.youth-slot-meta > .prompt {
  background: #fff1d5;
  color: #7b5700;
}

.youth-row-state {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f2f4;
  color: #686c70;
  font-size: .7rem;
  font-weight: 800;
}

.youth-wednesday-row.block .youth-row-state {
  background: #f9ddda;
  color: #9d3029;
}

.youth-wednesday-row.warn .youth-row-state {
  background: #ffedc8;
  color: #7b5700;
}

.youth-plan-lane.ready .youth-row-state {
  background: #dff1e6;
  color: #246c45;
}

.youth-plan-lane.planned .youth-row-state {
  background: #e5f0fb;
  color: #285f8d;
}

.youth-plan-lane.tentative .youth-row-state {
  background: #fff0cf;
  color: #775500;
}

.youth-empty {
  margin: 0;
  padding: 18px;
  color: #6e6e73;
}

.youth-teaching-board .youth-board-heading > div {
  min-width: 0;
}

.youth-teaching-board .youth-board-heading .eyebrow {
  margin: 0 0 2px;
}

.youth-teaching-manual,
.youth-teaching-setup-notice,
.youth-teaching-roster-notice,
.youth-teaching-unavailable {
  margin: 0;
  border-color: #dce4ea;
  padding: 12px 14px;
  background: #f8fafb;
  color: #61676c;
  font-size: .78rem;
  line-height: 1.45;
}

.youth-teaching-manual strong {
  color: #41484d;
}

.youth-teaching-manual {
  display: grid;
  gap: 10px;
}

.youth-teaching-manual-heading,
.youth-teaching-manual-heading strong,
.youth-teaching-manual-heading span {
  display: block;
}

.youth-teaching-manual-heading span {
  margin-top: 1px;
}

.youth-teaching-manual-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 8px 12px;
  border-top: 1px solid #e2e7eb;
  padding-top: 10px;
}

.youth-teaching-manual-row > strong {
  align-self: center;
  font-size: .82rem;
}

.youth-teaching-manual-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.youth-teaching-manual-controls label,
.youth-teaching-manual-unit {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.youth-teaching-manual-controls label > span,
.youth-teaching-manual-unit > small {
  color: #6d7378;
  font-size: .66rem;
  font-weight: 720;
}

.youth-teaching-manual-unit > span {
  min-height: 40px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 10px 2px;
  color: #41484d;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-teaching-manual-controls select,
.youth-teaching-manual-controls button {
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #cfd8df;
  border-radius: 10px;
  background: #fff;
  color: #343a3f;
  font: inherit;
  font-size: .78rem;
}

.youth-teaching-manual-controls select {
  width: 100%;
  min-width: 0;
  padding: 7px 28px 7px 9px;
}

.youth-teaching-manual-controls button {
  padding: 7px 11px;
  color: #1769aa;
  font-weight: 760;
  cursor: pointer;
}

.youth-teaching-manual-controls button:disabled,
.youth-teaching-manual-controls select:disabled {
  cursor: wait;
  opacity: .62;
}

.youth-teaching-manual-complete {
  grid-column: 1 / -1;
  align-self: center;
  color: #6d7378;
  font-size: .76rem;
}

.youth-teaching-setup-notice strong,
.youth-teaching-roster-notice strong {
  color: #41484d;
}

.youth-teaching-roster-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.youth-teaching-roster-notice > span,
.youth-teaching-roster-notice strong,
.youth-teaching-roster-notice small {
  display: block;
}

.youth-teaching-roster-notice small {
  margin-top: 2px;
  color: #61676c;
  font-size: inherit;
}

.youth-teaching-roster-notice button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid #c9d7e2;
  border-radius: 10px;
  padding: 8px 11px;
  background: #fff;
  color: #1769aa;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.youth-teaching-roster-notice button:disabled {
  cursor: wait;
  opacity: .65;
}

.youth-teaching-unavailable {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.youth-teaching-unavailable h2,
.youth-teaching-unavailable p {
  margin: 0;
}

.youth-teaching-unavailable h2 {
  color: #30363a;
  font-size: 1rem;
}

.youth-teaching-sunday {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 78px;
  padding: 13px 17px;
  border-bottom: 1px solid #eceef0;
}

.youth-teaching-sunday:last-child {
  border-bottom: 0;
}

.youth-teaching-sunday.is-past {
  background: #fafbfc;
}

.youth-teaching-date {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.youth-teaching-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
}

.youth-teaching-format {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: #686d72;
  font-size: .7rem;
  font-weight: 720;
}

.youth-teaching-format > span {
  color: #8a8e92;
  font-size: .64rem;
  font-weight: 780;
  letter-spacing: .03em;
}

.youth-teaching-format select {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 2px;
  background-image: none;
  background-color: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.youth-teaching-format.is-override select {
  color: #1769aa;
}

.youth-teaching-format select:disabled {
  cursor: default;
  opacity: .72;
}

.youth-teaching-date time strong,
.youth-teaching-date time small {
  display: block;
}

.youth-teaching-date time strong {
  font-size: .92rem;
}

.youth-teaching-date time small {
  margin-top: 3px;
  color: #74777b;
  font-size: .72rem;
}

.youth-teaching-slots {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.youth-teaching-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  border: 1px solid #dde1e5;
  border-radius: 13px;
  padding: 9px 11px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.youth-teaching-slot:hover {
  border-color: #bfcbd5;
  background: #fafcfd;
}

.youth-teaching-slot:disabled {
  cursor: wait;
  opacity: .62;
}

.youth-teaching-slot-copy {
  display: block;
  min-width: 0;
}

.youth-teaching-slot-copy > small,
.youth-teaching-slot-copy > strong,
.youth-teaching-slot-copy > span {
  display: block;
}

.youth-teaching-slot-copy > small {
  margin-bottom: 2px;
  color: #6e6e73;
  font-size: .66rem;
  font-weight: 760;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.youth-teaching-slot-copy > strong {
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-teaching-slot-copy > span {
  overflow: hidden;
  margin-top: 3px;
  color: #545b60;
  font-size: .76rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-teaching-slot-copy > .youth-teaching-setup {
  color: #7b5700;
  font-weight: 690;
}

.youth-teaching-slot-copy > .youth-teaching-owner {
  color: #72777b;
  font-size: .7rem;
}

.youth-teaching-slot.asked .youth-row-state {
  background: #e5f0fb;
  color: #285f8d;
}

.youth-teaching-slot.confirmed .youth-row-state,
.youth-teaching-slot.prepared .youth-row-state {
  background: #dff1e6;
  color: #246c45;
}

.youth-teaching-slot.reassignment_needed .youth-row-state {
  background: #f9ddda;
  color: #9d3029;
}

.youth-teaching-slot.completed,
.youth-teaching-slot.canceled {
  background: #f8f9fa;
  color: #62676b;
}

.youth-teaching-slot.completed .youth-row-state,
.youth-teaching-slot.canceled .youth-row-state {
  background: #e8eaec;
  color: #62676b;
}

.youth-teaching-suppressed {
  display: grid;
  gap: 3px;
  min-height: 54px;
  align-content: center;
  border: 1px solid #e2e5e8;
  border-radius: 13px;
  padding: 10px 12px;
  background: #f7f8fa;
  color: #4d5358;
}

.youth-teaching-suppressed strong {
  font-size: .88rem;
}

.youth-teaching-suppressed span {
  color: #73787c;
  font-size: .74rem;
}

.youth-teaching-suppression-stack,
.youth-teaching-suppressed-teams {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.youth-teaching-suppressed-teams {
  border-left: 3px solid #d39b31;
  padding-left: 10px;
}

.youth-teaching-suppressed-teams > p {
  margin: 0 2px;
  color: #665125;
  font-size: .74rem;
  line-height: 1.4;
}

.youth-teaching-suppressed-teams > p strong,
.youth-teaching-suppressed-teams > p span {
  display: block;
}

.youth-teaching-candidate-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ead9b8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fffaf1;
  color: #665125;
  font-size: .78rem;
  line-height: 1.4;
}

.youth-teaching-candidate-notice span,
.youth-teaching-candidate-notice strong,
.youth-teaching-candidate-notice small {
  display: block;
}

.youth-teaching-candidate-notice small {
  margin-top: 2px;
  font-size: inherit;
}

.youth-teaching-candidate-notice button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid #d6bc87;
  border-radius: 10px;
  padding: 8px 11px;
  background: #fff;
  color: #73540f;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.youth-plan-dialog.youth-teaching-dialog {
  width: min(640px, calc(100% - 28px));
}

.youth-plan-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(90dvh, 860px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.youth-plan-dialog::backdrop {
  background: rgba(20, 24, 28, .46);
  backdrop-filter: blur(2px);
}

.youth-plan-dialog > form {
  display: grid;
  gap: 16px;
  max-height: min(90dvh, 860px);
  overflow-y: auto;
  padding: 22px;
}

.youth-plan-dialog[aria-busy="true"] > form {
  cursor: wait;
}

.youth-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.youth-dialog-header h2 {
  margin: 2px 0 4px;
}

.youth-dialog-header p:last-child {
  color: #6e6e73;
}

.youth-dialog-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eef0f2;
  color: #4e5357;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.youth-fixed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e0e3e6;
  border-radius: 14px;
  background: #e0e3e6;
}

.youth-fixed-fields > div {
  min-width: 0;
  padding: 10px 12px;
  background: #f7f8fa;
}

.youth-fixed-fields dt {
  color: #6e6e73;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.youth-fixed-fields dd {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: .86rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-derived-note {
  margin: -7px 2px 0;
  color: #6e6e73;
  font-size: .74rem;
  line-height: 1.4;
}

.youth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.youth-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.youth-field > span,
.youth-secondary-areas legend,
.youth-gym-claim legend {
  color: #4c5156;
  font-size: .76rem;
  font-weight: 760;
}

.youth-field input,
.youth-field select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #ced3d8;
  border-radius: 11px;
  padding: 9px 10px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
}

.youth-field-wide {
  grid-column: 1 / -1;
}

.youth-secondary-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
}

.youth-secondary-areas legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.youth-secondary-areas label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #4f5459;
  font-size: .8rem;
}

.youth-secondary-areas input,
.youth-gym-claim input {
  width: 18px;
  height: 18px;
}

.youth-gym-claim {
  display: grid;
  gap: 6px;
  border: 1px solid #d8e8de;
  border-radius: 14px;
  padding: 12px;
  background: #f5faf7;
}

.youth-gym-claim label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: .86rem;
  font-weight: 720;
}

.youth-gym-claim p {
  margin: 0 0 0 26px;
  color: #5c6861;
  font-size: .74rem;
  line-height: 1.35;
}

.youth-plan-dialog .youth-session-note {
  margin: 0;
  border-left: 3px solid #cbd9e5;
  padding-left: 10px;
}

.youth-form-status {
  min-height: 20px;
  color: #4f646f;
  font-size: .8rem;
  line-height: 1.4;
}

.youth-form-status.is-error {
  color: #9b3029;
  font-weight: 680;
}

.youth-reload-conflict {
  justify-self: start;
  min-height: 40px;
  border: 1px solid #d6a59f;
  border-radius: 10px;
  padding: 8px 11px;
  background: #fff7f5;
  color: #8e302a;
  font: inherit;
  font-size: .8rem;
  font-weight: 760;
  cursor: pointer;
}

.youth-dialog-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  position: sticky;
  bottom: -22px;
  margin: 0 -22px -22px;
  border-top: 1px solid #e2e4e7;
  padding: 13px 22px calc(13px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.youth-dialog-actions button {
  min-height: 44px;
  border: 1px solid #cfd4d8;
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  color: #3e4449;
  font: inherit;
  font-size: .82rem;
  font-weight: 760;
  cursor: pointer;
}

.youth-dialog-actions .youth-save-plan {
  border-color: #1769aa;
  background: #1769aa;
  color: #fff;
}

.youth-dialog-actions .youth-delete-plan {
  border-color: transparent;
  color: #a23b34;
}

.youth-dialog-actions .youth-settings-link {
  color: #1769aa;
}

.youth-teaching-dialog .youth-dialog-actions {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.youth-projection-error {
  display: grid;
  gap: 10px;
  border-color: #efcbc7;
  padding: 20px;
  background: #fff7f5;
}

.youth-projection-error p {
  margin: 0;
  color: #65514f;
  line-height: 1.45;
}

.youth-projection-error button {
  justify-self: start;
  min-height: 44px;
  border: 1px solid #c9d7e2;
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  color: #1769aa;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.youth-home-entry {
  margin: 0;
}

.youth-home-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  border: 1px solid #d6e5f0;
  border-radius: 20px;
  padding: 15px 17px;
  background: #f5faff;
  color: #1d1d1f;
  text-align: left;
  cursor: pointer;
}

.youth-home-launch > span:first-child,
.youth-home-launch > span:first-child > strong,
.youth-home-launch > span:first-child > small,
.youth-home-progress > strong {
  display: block;
  min-width: 0;
}

.youth-home-launch > span:first-child > strong {
  font-size: 1.04rem;
}

.youth-home-launch > span:first-child > small {
  overflow: hidden;
  margin-top: 4px;
  color: #6e6e73;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youth-home-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1769aa;
  font-size: .78rem;
}

.youth-home-progress > span {
  font-size: 1.45rem;
}

@media (max-width: 700px) {
  .youth-shell,
  #youthScopePanel {
    gap: 14px;
  }

  .youth-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .youth-header-main {
    gap: 8px;
  }

  .youth-teaching-manual-row {
    grid-template-columns: 1fr;
  }

  .youth-teaching-manual-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youth-teaching-manual-controls select {
    font-size: 1rem;
  }

  .youth-teaching-dialog select {
    font-size: 1rem;
  }

  .youth-teaching-manual-controls button {
    grid-column: 1 / -1;
  }

  .youth-wednesday-row {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 12px;
  }

  .youth-teaching-sunday {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
  }

  .youth-row-state {
    align-self: start;
  }

  .youth-plan-dialog {
    width: min(720px, calc(100% - 18px));
    max-height: 94dvh;
    border-radius: 18px;
  }

  .youth-plan-dialog > form {
    max-height: 94dvh;
    padding: 18px;
  }

  .youth-dialog-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .youth-dialog-actions > span {
    display: none;
  }

  .youth-dialog-actions button {
    width: 100%;
  }

  .youth-teaching-dialog .youth-dialog-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youth-teaching-dialog .youth-delete-plan {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
  }
}

@media (max-width: 420px) {
  .youth-header {
    gap: 7px;
  }

  .youth-header-main h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .youth-header .eyebrow {
    font-size: .63rem;
  }

  .youth-back,
  .youth-header-settings {
    min-height: 44px;
    padding: 8px 10px;
    font-size: .76rem;
  }

  .youth-back .youth-button-label,
  .youth-header-settings .youth-button-label {
    display: none;
  }

  .youth-wednesday-row {
    grid-template-columns: 1fr;
  }

  .youth-mode-navigation {
    width: 100%;
  }

  .youth-mode-navigation button {
    flex: 0 1 auto;
    font-size: .8rem;
  }

  .youth-teaching-manual-controls {
    grid-template-columns: 1fr;
  }

  .youth-teaching-manual-controls button,
  .youth-teaching-manual-complete {
    grid-column: auto;
  }

  .youth-teaching-board .youth-board-heading {
    align-items: end;
  }

  .youth-teaching-board .youth-board-heading > span {
    max-width: 42%;
    text-align: right;
  }

  .youth-teaching-sunday {
    grid-template-columns: 1fr;
  }

  .youth-teaching-date {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 10px;
    width: 100%;
    max-width: none;
  }

  .youth-teaching-formats {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-self: end;
    gap: 0;
  }

  .youth-teaching-roster-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .youth-teaching-roster-notice button {
    align-self: flex-start;
  }

  .youth-teaching-candidate-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .youth-teaching-candidate-notice button {
    align-self: flex-start;
  }

  .youth-teaching-slot-copy > strong,
  .youth-teaching-slot-copy > span {
    white-space: normal;
  }

  .youth-wednesday-date {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, .9fr);
    align-items: start;
    gap: 4px 8px;
  }

  .youth-date-heading {
    padding-top: 2px;
  }

  .youth-week-format {
    margin-top: 0;
    justify-self: end;
  }

  .youth-week-format select {
    font-size: 1rem;
  }

  .youth-wednesday-date .youth-slot-meta {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .youth-fixed-fields,
  .youth-form-grid {
    grid-template-columns: 1fr;
  }

  .youth-field-wide {
    grid-column: auto;
  }

  .youth-secondary-areas {
    grid-template-columns: 1fr 1fr;
  }

  .youth-home-launch {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .youth-home-progress > strong {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .youth-home-launch,
  .youth-back {
    scroll-behavior: auto;
  }

  .youth-session-state summary::after,
  .youth-issues summary::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .youth-mode-navigation button.active::after,
  .youth-mode-navigation button[aria-pressed="true"]::after {
    background: Highlight;
  }
}
