/* The home page owns one scrollbar at the browser's right edge. */
html:has(.app-shell-student #student-home.student-home-inline-projects) {
  overflow-y: hidden !important;
  scrollbar-gutter: auto !important;
}

html body #root .app-shell-student:has(#student-home.student-home-inline-projects)
  > .s1-workspace-leading-layout-student {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

html body #root .app-shell-student:has(#student-home.student-home-inline-projects)
  > .s1-workspace-leading-layout-student > .workspace-panel {
  grid-column: 1 / -1;
}

html body #root .app-shell-student:has(#student-home.student-home-inline-projects)
  > .s1-workspace-leading-layout-student > .s1-workspace-back-row {
  left: max(24px, calc((100% - 1592px) / 2));
}

#student-home.student-home-inline-projects {
  scrollbar-gutter: stable;
  background: #f5f5f7;
}

/* The ongoing-project panel now shares the centered home content column. */
#student-home.student-home-inline-projects .student-home-layout-noside {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(1480px, calc(100% - 96px));
  margin-inline: auto;
}

#student-home.student-home-inline-projects .student-home-main-column {
  grid-template-rows: none !important;
  grid-auto-rows: max-content;
  gap: 28px !important;
}

#student-home.student-home-inline-projects .student-home-studio-hero {
  padding: 8px 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-home-studio-hero .student-hero-main {
  grid-template-areas: "title metrics" "actions metrics";
}

#student-home.student-home-inline-projects .student-home-studio-hero h2 {
  color: #1d1d1f;
  font-size: clamp(30px, 2.4vw, 42px) !important;
  font-weight: 650;
  letter-spacing: -0.025em;
}

#student-home.student-home-inline-projects .student-hero-actions .s1-button {
  min-height: 44px !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-hero-actions .s1-button-secondary {
  color: var(--s1-color-brand-active);
  border-color: #dfe3e9 !important;
  background: #fff !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-home-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-self: center !important;
}

#student-home.student-home-inline-projects .student-home-summary-grid > div {
  align-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 16px !important;
}

#student-home.student-home-inline-projects .student-home-summary-grid > div + div {
  border-left: 1px solid #d2d2d7 !important;
}

#student-home.student-home-inline-projects .student-home-summary-grid dt {
  color: #6e6e73 !important;
  font-size: 13px !important;
  font-weight: 500;
}

#student-home.student-home-inline-projects .student-home-summary-grid dd {
  margin-top: 8px;
  color: #1d1d1f !important;
  font-size: 30px !important;
  font-weight: 650;
  letter-spacing: -0.025em;
}

#student-home.student-home-inline-projects .student-home-continue-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-home-continue-panel > .student-section-heading {
  margin-bottom: 20px !important;
}

#student-home.student-home-inline-projects .student-section-heading h3 {
  color: #1d1d1f !important;
  font-size: 24px !important;
  font-weight: 650;
  letter-spacing: -0.02em;
}

#student-home.student-home-inline-projects .student-process-track {
  padding: 20px 24px !important;
  border: 1px solid #e7e7ea !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-process-track h3 {
  font-size: 20px !important;
}

#student-home.student-home-inline-projects .student-process-card {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  min-height: 64px !important;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f5f5f7 !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-process-card .student-flow-number {
  flex-shrink: 0;
  color: var(--s1-color-brand-active) !important;
  background: #e8effc !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-process-card h4 {
  align-self: center !important;
  margin: 0 !important;
  color: #1d1d1f !important;
  font-size: 16px !important;
  font-weight: 600;
}

#student-home.student-home-inline-projects .student-home-support-strip {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 16px 24px !important;
  min-height: 0 !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #eef0f4 !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-home-support-strip h3 {
  margin: 0 !important;
  color: #424245 !important;
  font-size: 16px !important;
  font-weight: 500;
}

#student-home.student-home-inline-projects .student-home-support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

#student-home.student-home-inline-projects .student-home-support-actions .s1-button {
  min-height: 40px !important;
  padding: 8px 16px !important;
  border: 1px solid #dce1e8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #424245 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

#student-home.student-home-inline-projects .student-home-support-actions .s1-button:last-child {
  border-color: #cfdef5 !important;
  color: var(--s1-color-brand-active) !important;
}

#student-home.student-home-inline-projects :is(.student-hero-actions, .student-home-support-actions) .s1-button-secondary:hover {
  background: #e8effa !important;
}

#student-home.student-home-inline-projects :is(.student-hero-actions, .student-home-support-actions, .student-ongoing-progress) .s1-button:focus-visible {
  outline: 3px solid var(--s1-color-brand-active);
  outline-offset: 3px;
}

#student-home.student-home-inline-projects .student-home-right-rail,
#student-home.student-home-inline-projects .student-home-continue-panel,
#student-home.student-home-inline-projects .student-ongoing-list {
  position: static !important;
  width: 100%;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  scrollbar-gutter: auto !important;
}

#student-home.student-home-inline-projects .student-ongoing-list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem !important;
  padding-right: 0 !important;
}

#student-home.student-home-inline-projects .student-ongoing-item {
  flex: 1 1 calc((100% - 48px) / 4);
  width: auto !important;
  min-width: 0 !important;
  grid-template-rows: 1fr auto !important;
  align-content: stretch !important;
  gap: 18px !important;
  padding: 20px !important;
  border: 1px solid #e7e7ea !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(29, 29, 31, 0.035) !important;
}

#student-home.student-home-inline-projects .student-ongoing-item.is-current {
  border-color: rgba(47, 111, 237, 0.4) !important;
}

#student-home.student-home-inline-projects .student-ongoing-item:hover {
  box-shadow: 0 6px 20px rgba(29, 29, 31, 0.07) !important;
}

#student-home.student-home-inline-projects .student-ongoing-meta {
  grid-template-columns: minmax(0, 1fr) !important;
  margin-top: 12px !important;
  gap: 6px !important;
}

#student-home.student-home-inline-projects .student-ongoing-meta > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
}

#student-home.student-home-inline-projects .student-ongoing-meta dd {
  margin: 0;
  color: #6e6e73 !important;
  font-size: 13px !important;
  font-weight: 500;
}

#student-home.student-home-inline-projects .student-ongoing-meta > div:first-child dd {
  color: #424245 !important;
  font-size: 14px !important;
}

#student-home.student-home-inline-projects .student-ongoing-meta dt {
  color: #6e6e73 !important;
  font-size: 12px !important;
  font-weight: 500;
}

#student-home.student-home-inline-projects .student-ongoing-progress {
  padding-top: 0 !important;
  border-top: 0 !important;
  align-items: center !important;
}

#student-home.student-home-inline-projects .student-ongoing-progress-summary {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

#student-home.student-home-inline-projects .student-ongoing-progress-summary > strong {
  grid-column: 2;
  grid-row: 1;
}

#student-home.student-home-inline-projects .student-ongoing-progress-track {
  grid-column: 1 !important;
  grid-row: 1;
  height: 6px !important;
}

#student-home.student-home-inline-projects .student-ongoing-progress > .s1-button {
  border-radius: 10px !important;
  color: var(--s1-color-brand-active) !important;
  background: #edf3ff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* The three existing service views share one personal-center navigation. */
html body #root .student-page-view:has(> .student-center-header) {
  gap: 20px;
}

.student-center-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 20px;
  border-bottom: 1px solid #dfe3e9;
}

.student-center-header h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
}

.student-center-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e3e5e9;
  border-radius: 14px;
  background: #eceef2;
}

.student-center-navigation button {
  min-height: 40px;
  padding: 9px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #54565c;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.student-center-navigation button[aria-current="page"] {
  background: #fff;
  color: var(--s1-color-brand-active);
  box-shadow: 0 2px 5px rgba(29, 29, 31, 0.08);
}

.student-center-navigation button:hover {
  color: var(--s1-color-brand-active);
}

.student-center-navigation button:focus-visible {
  outline: 3px solid var(--s1-color-brand-active);
  outline-offset: 2px;
}

html body #root .student-page-view:has(> .student-center-header) > .student-page-header {
  padding: 0 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #root .student-page-view:has(> .student-center-header) > .student-page-header .eyebrow {
  display: none;
}

html body #root .student-page-view:has(> .student-center-header) > .student-page-header h2 {
  color: #424245 !important;
  font-size: 20px !important;
}

#student-home.student-home-inline-projects .student-ongoing-progress > .s1-button:hover {
  background: #e0ebff !important;
}

#student-home.student-home-inline-projects .student-ongoing-item.is-current .student-ongoing-progress > .s1-button {
  color: #fff !important;
  background: var(--s1-color-brand-active) !important;
}

/* A final single project uses the row instead of leaving empty columns. */
#student-home.student-home-inline-projects .student-ongoing-item:nth-child(4n + 1):last-child {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 28px !important;
}

#student-home.student-home-inline-projects .student-ongoing-item:nth-child(4n + 1):last-child .student-ongoing-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 28px !important;
}

#student-home.student-home-inline-projects .student-ongoing-groups {
  display: grid;
  gap: 24px;
  min-width: 0;
}

#student-home.student-home-inline-projects .student-ongoing-group {
  min-width: 0;
}

#student-home.student-home-inline-projects .student-ongoing-group + .student-ongoing-group {
  padding-top: 0;
  border-top: 0;
}

#student-home.student-home-inline-projects .student-ongoing-group-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

#student-home.student-home-inline-projects .student-ongoing-group-heading h4 {
  margin: 0;
  color: #424245;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

#student-home.student-home-inline-projects .student-ongoing-item h5 {
  margin: 0;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#student-home.student-home-inline-projects .student-ongoing-group-empty {
  margin: 0;
  color: var(--s1-color-text-muted);
  font-size: 0.875rem;
}

/* Keep cards readable when the desktop browser window is narrower. */
@media (max-width: 1599px) {
  #student-home.student-home-inline-projects .student-ongoing-item {
    flex-basis: calc((100% - 16px) / 2);
  }

  #student-home.student-home-inline-projects .student-ongoing-item:nth-child(2n + 1):last-child {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 28px !important;
  }

  #student-home.student-home-inline-projects .student-ongoing-item:nth-child(2n + 1):last-child .student-ongoing-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 28px !important;
  }
}

@media (max-width: 1320px) {
  #student-home.student-home-inline-projects .student-home-studio-hero .student-hero-main {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "title" "actions" "metrics";
  }
}
