:root {
  color-scheme: light;
  --paper: #faf9f7;
  --surface: #fff;
  --ink: #24221f;
  --muted: #77736c;
  --line: #e8e5df;
  --yellow: #ffd331;
  --yellow-soft: #fff0b8;
  --green: #e7f3df;
  --danger: #c83c37;
  --danger-soft: #fde9e7;
  --sidebar-width: 222px;
  font-family: "Golos Text", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body.ypm-panel {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #b59200;
  outline-offset: 3px;
}
.ypm-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.visually-hidden,
.ypm-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ypm-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: var(--yellow);
  z-index: 100;
}

.ypm-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 26px 14px 18px;
  border-right: 1px solid var(--line);
  background: #f6f5f2;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.ypm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-left: 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  color: #171613;
}
.ypm-brand-mark {
  width: 15px;
  height: 29px;
  background: var(--yellow);
  transform: skew(-19deg);
  display: inline-block;
}
.ypm-brand-caption {
  margin: 8px 0 0 10px;
  font-size: 13px;
  color: #625e58;
}
.ypm-workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 10px;
  margin: 20px 0;
  border-block: 1px solid #dedbd5;
  font-size: 15px;
  font-weight: 600;
}
.ypm-release {
  margin: -8px 0 14px;
  padding: 9px 10px;
  border-left: 3px solid #a4631b;
  background: #fff5e6;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ypm-release strong,
.ypm-release span {
  display: block;
}
.ypm-release--production {
  border-color: #3d6d4e;
  background: #edf5ef;
}
.ypm-release--staging,
.ypm-release--development {
  border-color: #3f5e9a;
  background: #edf2fa;
}
.ypm-navigation {
  display: grid;
  gap: 5px;
}
.ypm-navigation a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.ypm-navigation a:hover {
  background: #edeae4;
}
.ypm-navigation a.is-active {
  background: var(--yellow-soft);
  color: #252115;
  font-weight: 600;
}
.ypm-account {
  margin-top: auto;
  padding: 36px 6px 0;
}
.session-expiry {
  margin-bottom: 12px;
  font-size: 11px;
  color: #514b42;
}
.session-expiry-warning {
  margin: 6px 0;
  padding: 7px;
  background: #fff0d6;
  color: #56370e;
  line-height: 1.4;
}
.ypm-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ypm-profile strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.ypm-profile small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.ypm-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e7e3dc;
  font-size: 13px;
  font-weight: 500;
}
.ypm-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 12px;
  color: #68635b;
}
.ypm-account-actions form {
  margin: 0;
}
.ypm-account-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 4px;
  color: inherit;
  background: none;
}
.ypm-account-actions .icon {
  width: 14px;
  height: 14px;
}
.ypm-account-actions a:hover,
.ypm-account-actions button:hover {
  color: #171613;
}

.ypm-main {
  margin-left: var(--sidebar-width);
  padding: 28px 30px;
  max-width: 1900px;
}
.ypm-registration-chart {
  min-width: 0;
  min-height: 125px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 8px #1f162607;
}
.ypm-registration-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ypm-registration-chart-heading h2,
.ypm-admin #content .ypm-registration-chart-heading h2 {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
.ypm-registration-chart-heading > span {
  padding: 2px 5px;
  border: 1px solid #e4e2e7;
  border-radius: 6px;
  color: #625c69;
  font-size: 10px;
  white-space: nowrap;
}
.ypm-registration-chart > svg {
  display: block;
  width: 100%;
  height: 75px;
  margin-top: 6px;
}
.ypm-registration-chart-grid {
  fill: none;
  stroke: #eeeaf0;
  stroke-width: 1;
}
.ypm-registration-chart > small {
  color: #77717e;
  font-size: 10px;
}
.page-crumb {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}
.page-crumb span {
  color: var(--muted);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.12;
}
.page-heading p {
  margin: 11px 0 0;
  color: #77716a;
  font-size: 15px;
}
.button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.button-dark {
  color: #fff;
  background: #24221f;
  border-color: #24221f;
}
.button-dark:hover {
  color: #fff;
  background: #444039;
}
.button-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: #d8d4cc;
}
.button-outline:hover {
  background: #f4f2ed;
  border-color: #bbb4a7;
}
.button-small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 7px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}
.dashboard-primary,
.dashboard-secondary {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
  align-items: start;
  margin-bottom: 2px;
}
.dashboard-filters > div {
  min-width: 0;
}
.dashboard-filters select,
.search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dcd8d1;
  border-radius: 8px;
  background: transparent;
  padding: 8px 30px 8px 11px;
  font-size: 12px;
  text-overflow: ellipsis;
}
.dashboard-filters .search-field {
  position: relative;
}
.search-field > .icon {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 18px;
  height: 18px;
  color: #8c877f;
  pointer-events: none;
}
.search-field input {
  padding-left: 34px;
  padding-right: 10px;
}
.filter-submit {
  min-height: 40px;
  font-size: 12px;
  padding: 8px 18px;
  justify-self: start;
}
.dashboard-filters > .quiet-link {
  align-self: center;
}
.dashboard-filters > .filter-hint,
.dashboard-filters > .form-errors {
  grid-column: 1 / -1;
}
.filter-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 16px 14px 15px;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.3;
  min-height: 31px;
}
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #efede8;
  flex-shrink: 0;
}
.metric-icon .icon {
  width: 17px;
  height: 17px;
}
.metric-icon.yellow {
  background: #fff0b8;
}
.metric-icon.green {
  background: #d2eac5;
}
.metric-value {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.metric-empty {
  font-size: 19px;
  letter-spacing: -0.5px;
  line-height: 1.6;
}
.metric-share {
  font-weight: 400;
  font-size: 11px;
  background: #f0eeea;
  color: #68635b;
  padding: 4px 6px;
  border-radius: 20px;
  letter-spacing: 0;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 20px;
}
.panel-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 650;
  line-height: 1.3;
}
.panel-heading h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.count-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #f0eeea;
  color: #656059;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.count-yellow {
  background: #ffe282;
  color: #4d3d06;
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #635e56;
  flex-shrink: 0;
}
.quiet-link:hover {
  color: #171613;
  text-decoration: underline;
}
.quiet-link .icon {
  width: 15px;
  height: 15px;
}
.distribution-panel {
  padding: 16px;
}
.distribution-legend {
  display: flex;
  gap: 8px 17px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 10px;
}
.distribution-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.distribution-legend b {
  font-weight: 500;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cccac6;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.active,
.segment.active {
  background: #ffda50;
}
.status-dot.complete,
.segment.complete {
  background: #9acb87;
}
.status-dot.blocked,
.segment.blocked {
  background: var(--danger);
}
.segment.blocked {
  color: #fff;
}
.distribution-bar {
  display: flex;
  min-height: 29px;
  border-radius: 6px;
  overflow: hidden;
  background: #eeece8;
  gap: 2px;
}
.segment {
  flex-basis: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #302c24;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.segment.waiting {
  background: #e4e1dc;
}
.status-dot.unknown,
.segment.unknown {
  background: #cec9d4;
}
.distribution-empty {
  padding: 8px 0;
  color: #8b857a;
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.students-panel {
  padding: 20px 18px 12px;
}
.table-scroll {
  overflow-x: auto;
}
.student-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.student-table th {
  font-weight: 400;
  color: #77716a;
  padding: 0 8px 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.student-table td {
  padding: 17px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.student-table th:first-child,
.student-table td:first-child {
  padding-left: 0;
}
.student-table tr:last-child td {
  border-bottom: 0;
}
.student-person {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 155px;
}
.student-person strong {
  display: block;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.4;
  max-width: 180px;
}
.student-person small {
  display: block;
  color: #8b857b;
  font-size: 10px;
  margin-top: 4px;
  max-width: 160px;
}
.student-person:hover strong {
  text-decoration: underline;
}
.student-person .ypm-avatar {
  width: 32px;
  height: 32px;
}
.tone-yellow {
  background: #fff0b8;
}
.tone-lavender {
  background: #eae2f9;
}
.tone-green {
  background: #e1efd8;
}
.tone-stone {
  background: #ede9e3;
}
.nowrap {
  white-space: nowrap;
}
.course-position {
  min-width: 130px;
}
.course-position strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.course-position small {
  display: block;
  color: #7d766d;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
}
.progress-cell {
  min-width: 97px;
}
.progress-cell strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
.progress-track,
.course-progress {
  display: block;
  width: 86px;
  height: 5px;
  margin-top: 7px;
  background: #edeae5;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}
.course-progress {
  appearance: none;
  color: #e8bb00;
}
.course-progress::-webkit-progress-bar {
  background: #edeae5;
  border-radius: 10px;
}
.course-progress::-webkit-progress-value {
  background: #efc320;
  border-radius: 10px;
}
.course-progress::-moz-progress-bar {
  background: #efc320;
  border-radius: 10px;
}
.muted {
  color: #817b72;
  font-size: 11px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f0eeea;
  color: #6d665b;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.status-pill.active {
  background: #fff1c7;
  color: #5f4800;
}
.status-pill.complete {
  background: #e7f3df;
  color: #325426;
}
.status-pill.blocked {
  background: var(--danger-soft);
  color: #a02824;
}
.status-pill:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.table-note {
  margin: 14px 0 0;
  color: #898277;
  font-size: 11px;
}
.empty-state {
  padding: 35px 10px 40px;
  text-align: center;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f4f1ea;
  color: #70685c;
  margin-bottom: 13px;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.empty-state p {
  max-width: 330px;
  margin: 0 auto 20px;
  color: #8b8377;
  font-size: 12px;
}
.review-panel {
  padding: 20px 16px;
}
.review-panel h2 {
  font-size: 19px;
}
.review-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.review-item:last-of-type {
  padding-bottom: 0;
}
.review-thumb {
  background: #f0ede7;
  color: #857e72;
  min-height: 60px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  grid-row: span 2;
}
.review-thumb img {
  width: 64px;
  height: 70px;
  object-fit: cover;
}
.review-details strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.review-details small {
  display: block;
  font-size: 11px;
  color: #7f776d;
  margin-top: 3px;
}
.review-reason {
  display: inline-block;
  padding: 3px 6px;
  margin-top: 7px;
  font-size: 10px;
  border-radius: 4px;
  background: #fff1c7;
  color: #715609;
}
.review-item .button {
  justify-self: end;
}
.review-empty {
  display: flex;
  gap: 13px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.review-empty strong {
  font-size: 13px;
  font-weight: 500;
}
.review-empty p {
  color: #857e73;
  font-size: 12px;
  margin: 5px 0 0;
}
.review-all {
  margin: 20px 0 0;
}
.notification-panel {
  scroll-margin-top: 24px;
}
.notification-panel .panel-heading {
  margin-bottom: 22px;
}
.channel-options {
  padding: 0;
  border: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 10px;
  min-width: 0;
}
.channel-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ded9cf;
  padding: 12px 9px;
  border-radius: 9px;
  min-height: 53px;
  cursor: pointer;
  font-size: 12px;
}
.channel-option:has(input:checked) {
  border-color: #c4a42b;
  background: #fffcf1;
  box-shadow: 0 0 0 1px #f6e7a4;
}
.channel-option input {
  accent-color: #332c12;
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.channel-option .icon {
  width: 18px;
  height: 18px;
}
.channel-option small {
  display: block;
  font-size: 10px;
  color: #7a7265;
}
.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
}
.max-mark {
  color: #fff;
  background: #5564d9;
}
.notification-recipients {
  margin-bottom: 14px;
}
.notification-recipients label {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  color: #7a7368;
}
.notification-recipients select {
  width: 100%;
  min-height: 39px;
  border: 1px solid #e0dbd2;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  font-size: 12px;
}
.notification-panel textarea {
  resize: vertical;
  width: 100%;
  min-height: 110px;
  border: 1px solid #ded9cf;
  background: #fdfcfa;
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.notification-panel textarea::placeholder {
  color: #9a9286;
}
.notification-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #8c8375;
  margin: 8px 0 19px;
}
.notification-hint .icon {
  width: 13px;
  height: 13px;
}
.notification-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.notification-actions > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #70685b;
  line-height: 1.5;
}
.notification-actions .icon {
  width: 17px;
  height: 17px;
}
.dashboard-footer {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  color: #8c8477;
  font-size: 11px;
  margin-top: 23px;
  padding: 0 3px;
}
.dashboard-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-footer .icon {
  width: 15px;
  height: 15px;
}
.form-errors,
.errorlist {
  color: #a6332c;
  font-size: 12px;
}
.form-errors {
  width: 100%;
}
.preview-card {
  max-width: 740px;
  padding: 28px;
}
.preview-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.preview-message {
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.preview-actions form {
  margin: 0;
}
.preview-card p {
  color: #726a5e;
}

.ypm-login-main {
  min-height: 100svh;
  margin: 0;
  padding: 40px 20px;
  display: grid;
  place-content: center;
}
.login-card {
  width: min(420px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
}
.login-card .ypm-brand {
  margin: 0 0 30px;
}
.login-card h1 {
  margin: 0 0 9px;
  font-size: 25px;
  letter-spacing: -0.8px;
}
.login-card .login-subtitle {
  color: #8a8174;
  margin: 0 0 27px;
  font-size: 12px;
}
.login-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
}
.login-card input:not([type="hidden"]) {
  width: 100%;
  border: 1px solid #d9d3c8;
  border-radius: 8px;
  padding: 11px 12px;
}
.login-card .login-field {
  margin-bottom: 19px;
}
.login-card button {
  width: 100%;
  margin-top: 7px;
}
.login-card .errorlist {
  margin: 6px 0;
  padding-left: 18px;
}
.login-note {
  margin-top: 20px;
  text-align: center;
  color: #948a7b;
  font-size: 11px;
}

@media (min-width: 1720px) {
  .ypm-main {
    padding-inline: 42px;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
  }
  .metric-label {
    font-size: 13px;
  }
  .review-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .review-thumb img {
    width: 72px;
  }
  .student-table,
  .status-pill {
    font-size: 12px;
  }
  .student-person strong {
    font-size: 14px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar-width: 194px;
  }
  .ypm-sidebar {
    padding-inline: 10px;
  }
  .ypm-main {
    padding: 25px 22px;
  }
  .ypm-navigation a {
    padding-inline: 10px;
    gap: 11px;
    font-size: 13px;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .metric-label {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }
  .ypm-sidebar {
    position: static;
    width: 100%;
    padding: 12px 12px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    overflow: visible;
  }
  .ypm-brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
    margin: 0;
    gap: 8px;
  }
  .ypm-brand-mark {
    width: 11px;
    height: 22px;
  }
  .ypm-brand-caption,
  .ypm-workspace,
  .ypm-profile {
    display: none;
  }
  .ypm-release {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    padding: 5px 8px;
  }
  .ypm-release strong,
  .ypm-release span {
    display: inline;
    margin-right: 8px;
  }
  .ypm-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .ypm-navigation a {
    justify-content: flex-start;
    gap: 6px;
    min-height: 44px;
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.2;
  }
  .ypm-admin .ypm-navigation a {
    font-size: 11px;
  }
  .ypm-navigation .icon {
    width: 18px;
    height: 18px;
  }
  .ypm-account {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }
  .session-expiry {
    margin: 0;
    text-align: right;
    font-size: 10px;
  }
  .session-expiry-warning {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    margin: 0;
    text-align: left;
  }
  .ypm-account-actions {
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    font-size: 12px;
  }
  .ypm-account-actions a,
  .ypm-account-actions button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .ypm-main {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 250px;
  }
  .page-crumb {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 14px 10px;
  }
  .metric-value {
    padding-left: 0;
    font-size: 30px;
  }
  .metric-empty {
    font-size: 18px;
  }
  .dashboard-secondary {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 17px 14px;
  }
  .panel h2 {
    font-size: 18px;
  }
  .student-table {
    min-width: 650px;
  }
  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }
  .distribution-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 9px;
    gap: 10px;
  }
  .ypm-login-main {
    margin-left: 0;
    padding: 30px 15px;
  }
  .login-card {
    padding: 28px;
    width: min(420px, calc(100vw - 30px));
  }
  .login-card .ypm-brand {
    font-size: 34px;
    gap: 10px;
  }
}
@media (max-width: 350px) {
  .ypm-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.dashboard-primary {
  grid-template-columns: minmax(0, 1fr);
}
.panel {
  min-width: 0;
}

.button:disabled {
  background: #ebe7de;
  border-color: #ebe7de;
  color: #7b7366;
  cursor: not-allowed;
}

.dashboard-primary {
  container-type: inline-size;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
}
.analytics-grid .panel h2 {
  font-size: 19px;
}
.panel-description {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  margin: 0 0 18px;
  color: #625e58;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-key {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.received {
  background: #ffd331;
}
.accepted {
  background: #52856d;
}
.activity-chart {
  display: flex;
  gap: 4px;
  height: 170px;
}
.activity-day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.activity-columns {
  height: 146px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 35px,
    #f1f0ec 35px,
    #f1f0ec 36px
  );
}
.activity-column {
  width: 39%;
  max-width: 15px;
  border-radius: 3px 3px 0 0;
}
.chart-date {
  font-size: 9px;
  text-align: center;
  padding-top: 8px;
  color: #77736c;
  white-space: nowrap;
}
.chart-empty {
  height: 170px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  border-block: 1px dashed var(--line);
}
.chart-data {
  margin-top: 18px;
  font-size: 11px;
}
.chart-data summary {
  cursor: pointer;
  width: fit-content;
  color: #514b41;
}
.chart-data[open] summary {
  margin-bottom: 12px;
}
.chart-note {
  margin: 15px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #77736c;
}
.progress-histogram {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.histogram-bin {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.histogram-count {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.histogram-track {
  height: 126px;
  background: #f5f4f0;
  display: flex;
  align-items: end;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.histogram-track span {
  display: block;
  width: 100%;
  background: #ffd331;
}
.histogram-bin:last-child .histogram-track span {
  background: #52856d;
}
.histogram-label {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  margin-top: 9px;
}
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.analytics-table th,
.analytics-table td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
}
.analytics-table thead th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.analytics-table tbody th {
  font-weight: 500;
}
.analytics-table tbody tr:last-child > * {
  border-bottom: 0;
}
.analytics-table a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.group-table {
  min-width: 480px;
}
.group-table td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.group-table td:nth-child(3) {
  width: 34%;
}
.group-status-bar {
  display: flex;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  min-width: 100px;
}
.group-status-bar .segment {
  flex: none;
}
.attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.attention-row:last-child {
  padding-bottom: 0;
}
.attention-row strong {
  font-weight: 500;
  font-size: 12px;
  display: block;
}
.attention-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
}
.attention-row b {
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.attention-row:hover strong {
  text-decoration: underline;
}
@container (max-width: 680px) {
  .analytics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.visually-hidden,
.ypm-skip:not(:focus) {
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}
.activity-day:first-child .chart-date {
  text-align: left;
}
.activity-day:last-child .chart-date {
  text-align: right;
}
.attention-blocked strong,
.attention-blocked b {
  color: #a02824;
}
.access-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.access-item:last-child {
  padding-bottom: 0;
}
.access-person {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.access-person:hover {
  text-decoration: underline;
}
.access-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.access-item p {
  font-size: 12px;
  margin: 10px 0;
  padding-left: 10px;
  border-left: 3px solid var(--danger);
  overflow-wrap: anywhere;
}
.access-date {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.export-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.export-toolbar b {
  display: inline-block;
  margin-left: 5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.export-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .export-actions {
    width: 100%;
  }
  .export-actions button {
    flex: 1;
  }
}
.distribution-legend .distribution-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 3px;
}
.distribution-filter:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.registry-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.export-column-picker {
  margin-top: 12px;
  font-size: 12px;
}
.export-column-picker summary {
  cursor: pointer;
  font-weight: 600;
}
.export-column-picker fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  border: 1px solid var(--line);
  margin: 10px 0;
  padding: 10px;
}
.export-column-picker fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.registry-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-panel .panel-description {
  margin-bottom: 15px;
}
@media (max-width: 760px) {
  .registry-pagination > div {
    flex-wrap: wrap;
  }
}

.student-card-heading h1 {
  font-size: clamp(27px, 2.7vw, 40px);
  overflow-wrap: anywhere;
}
.student-card-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.student-card-summary,
.student-card-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.student-facts {
  margin: 0;
}
.student-facts > div + div {
  margin-top: 15px;
}
.student-facts dt,
.fact-label {
  display: block;
  color: #68635b;
  font-size: 12px;
}
.student-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.registration-pending {
  color: #805c00;
}
.consent-summary {
  font-weight: 600;
}
.student-course + .student-course {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.student-course-heading,
.history-entry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.student-course h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.student-course-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 12px;
}
.student-course-progress strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin-top: 3px;
}
.student-course-progress small {
  color: #68635b;
}
.student-course > .course-progress {
  width: 100%;
  height: 7px;
}
.course-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.course-dates > div + div {
  margin-top: 0;
}
.student-access-issue {
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  padding: 12px 14px;
  margin: 18px 0;
}
.student-access-issue p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 5px 0 0;
}
.student-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.student-history li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.history-title {
  font-weight: 600;
}
.history-course {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.history-date {
  color: #68635b;
  font-size: 12px;
  margin: 8px 0;
}
.history-result {
  margin: 6px 0;
}
.history-reason {
  color: #8c2a26;
  margin: 10px 0;
}
.history-state {
  font-size: 12px;
  background: #eeeae4;
  padding: 4px 10px;
  border-radius: 6px;
}
.history-state.review {
  background: var(--yellow-soft);
}
.history-state.accepted {
  background: var(--green);
}
.history-state.rejected {
  background: var(--danger-soft);
  color: #8c2a26;
}
.history-empty {
  color: #68635b;
}
@media (max-width: 1100px) {
  .student-card-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-card-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .student-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .student-card-summary,
  .student-course-progress,
  .course-dates {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-card-layout {
    gap: 20px;
  }
  .student-course-progress strong {
    font-size: 20px;
  }
}

.learning-data > strong,
.learning-data > small,
.learning-data details small {
  display: block;
}
.learning-data > small {
  margin-top: 3px;
}
.learning-data details {
  margin-top: 4px;
}
.learning-data summary {
  cursor: pointer;
}

.worklist-scroll {
  overflow-x: auto;
}
.worklist-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.worklist-table th,
.worklist-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border, #e6e3dc);
}
.worklist-table small {
  display: block;
  margin-top: 5px;
}
.worklist-overdue {
  display: block;
  color: #9d321b;
}
.worklist-form {
  max-width: 760px;
}
.worklist-form input,
.worklist-form select,
.worklist-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
}
.worklist-form input[type="hidden"] {
  display: none;
}
.worklist-form small {
  display: block;
  margin-top: 4px;
}
.worklist-form .errorlist,
.worklist-form .errorlist li {
  color: #9d321b;
}
.worklist-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}
.filter-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.filter-grid select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d9d8d4;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.filter-grid .errorlist {
  color: #a32121;
  font-size: 13px;
}
@media (max-width: 600px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.registry-curator {
  display: block;
  max-width: 240px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted, #666);
  overflow-wrap: anywhere;
}
