.student-home {
  --home-navy: #10275d;
  --home-blue: #2c64ed;
  --home-blue-dark: #1748bd;
  --home-blue-soft: #edf4ff;
  --home-green: #147a55;
  --home-ink: #111c35;
  --home-muted: #5e6b82;
  --home-line: #dce4f0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 8px;
  color: var(--home-ink);
}

.student-home *,
.student-home *::before,
.student-home *::after { box-sizing: border-box; }
.student-home [data-editable] { overflow-wrap: anywhere; }
.student-home .home-benefits li [data-editable],
.student-home .home-benefits li [data-editable] span {
  color: inherit;
  font-size: inherit;
}
.student-home .home-task-card p [data-editable] { color: inherit; }

.student-home a,
.student-home button,
.student-home summary { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.student-home a:focus-visible,
.student-home button:focus-visible,
.student-home summary:focus-visible { outline: 3px solid rgba(44, 100, 237, .34); outline-offset: 3px; }

.home-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #cfd9ea;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 39, 93, .08);
}

.home-welcome-main {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  background: #f8fbff;
}

.home-kicker {
  margin: 0 0 8px;
  color: var(--home-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-welcome h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -.045em; }
.home-course-name { margin: 8px 0 0; color: var(--home-muted); font-size: 16px; font-weight: 650; }

.home-next-deadline {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 520px);
  margin-top: 26px;
  padding: 15px 17px;
  border: 1px solid #cfdbef;
  border-radius: 16px;
  background: #fff;
}
.home-icon-box { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: var(--home-blue-soft); color: var(--home-blue); }
.home-icon-box svg { width: 20px; height: 20px; }
.home-next-deadline div { min-width: 0; }
.home-next-deadline small { display: block; margin-bottom: 2px; color: var(--home-blue-dark); font-size: 11px; font-weight: 800; }
.home-next-deadline strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.home-next-deadline p { margin: 3px 0 0; color: var(--home-muted); font-size: 13px; }

.home-workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.home-primary-button,
.home-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--home-blue);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.home-primary-button { background: var(--home-blue); color: #fff; box-shadow: 0 8px 18px rgba(44, 100, 237, .18); }
.home-primary-button:hover { background: var(--home-blue-dark); border-color: var(--home-blue-dark); transform: translateY(-1px); }
.home-secondary-button { background: #fff; color: var(--home-blue-dark); }
.home-secondary-button:hover { background: var(--home-blue-soft); transform: translateY(-1px); }
.home-secondary-button.is-disabled { border-color: #d8deea; background: #f2f4f8; color: #7a8598; cursor: not-allowed; }
.home-primary-button svg, .home-secondary-button svg { width: 17px; height: 17px; }

.home-benefits { padding: 30px; border-left: 1px solid #dce4f0; background: var(--home-navy); color: #fff; }
.home-benefits-heading { display: flex; align-items: center; gap: 12px; }
.home-benefits-heading .home-icon-box { background: rgba(255,255,255,.12); color: #a9c5ff; }
.home-benefits-heading small { color: #a9c5ff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.home-benefits-heading h2 { margin: 2px 0 0; font-size: 18px; line-height: 1.3; }
.home-benefits ul { display: grid; gap: 0; margin: 20px 0 18px; padding: 0; list-style: none; }
.home-benefits li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.home-benefits li span { color: #d7e2fa; font-size: 13px; }
.home-benefits li strong { color: #fff; font-size: 15px; }
.home-benefits li small { grid-column: 1 / -1; color: #9fb0d1; font-size: 11px; }
.home-benefit-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #fff; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
.home-benefit-link:hover { color: #bcd0ff; }
.home-benefit-link svg { width: 15px; height: 15px; }

.home-panel { margin-top: 24px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--home-line); border-radius: 22px; background: #fff; box-shadow: 0 9px 26px rgba(16, 39, 93, .055); }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -.035em; }
.home-section-heading p:not(.home-kicker) { margin: 5px 0 0; color: var(--home-muted); font-size: 13px; }
.home-section-heading > a,
.home-heading-links a { color: var(--home-blue-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.home-section-heading > a:hover,
.home-heading-links a:hover { color: var(--home-blue); text-decoration: underline; text-underline-offset: 4px; }
.home-heading-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }

.home-task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-task-card { display: flex; min-width: 0; flex-direction: column; min-height: 190px; padding: 20px; border: 1px solid #d8e2f1; border-top: 4px solid var(--home-blue); border-radius: 17px; background: #fbfdff; }
.home-task-card.team { border-top-color: #7154c7; }
.home-task-copy { min-width: 0; }
.home-task-scope { display: inline-flex; align-items: center; gap: 6px; color: var(--home-blue-dark); font-size: 11px; font-weight: 850; }
.home-task-card.team .home-task-scope { color: #6043b4; }
.home-task-scope svg { width: 14px; height: 14px; }
.home-task-card h3 { margin: 12px 0 14px; overflow-wrap: anywhere; font-size: 17px; line-height: 1.4; }
.home-task-card p { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; color: var(--home-muted); font-size: 12px; }
.home-task-card p strong { padding: 4px 8px; border-radius: 999px; background: #e8f0ff; color: var(--home-blue-dark); font-size: 11px; }
.home-task-card > a,
.home-task-unavailable { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding-top: 15px; color: var(--home-blue-dark); font-size: 13px; font-weight: 850; text-decoration: none; }
.home-task-card > a:hover { color: var(--home-blue); }
.home-task-unavailable { color: #7a6242; }
.home-task-unavailable svg { width: 15px; height: 15px; }

.home-empty-state { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 20px; border: 1px dashed #cbd6e6; border-radius: 16px; background: #f8fafc; }
.home-empty-state > svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--home-green); }
.home-empty-state strong { display: block; font-size: 14px; }
.home-empty-state p { margin: 4px 0 0; color: var(--home-muted); font-size: 12px; }
.home-empty-state > a { margin-left: auto; color: var(--home-blue-dark); font-size: 13px; font-weight: 800; }

.home-schedule { overflow: hidden; }
.home-schedule #schedule-deck { min-width: 0; }
.home-schedule .week-deck { margin: 0; }
.home-schedule .week-navigation { border-radius: 15px 15px 0 0; }
.home-schedule .week-card { max-width: 100%; }
.home-schedule .schedule-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }

.home-notice-list { display: grid; gap: 9px; }
.home-notice-item { overflow: hidden; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; }
.home-notice-item summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 12px 15px; cursor: pointer; list-style: none; }
.home-notice-item summary::-webkit-details-marker { display: none; }
.home-notice-item summary:hover { background: #f8fbff; }
.home-notice-item summary strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.home-notice-item time { color: var(--home-muted); font-size: 12px; }
.home-notice-type { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #eef2f7; color: #536177; font-size: 11px; font-weight: 800; }
.home-notice-type.important { background: #fff0e7; color: #a34113; }
.home-notice-type svg { width: 13px; height: 13px; }
.home-notice-chevron { width: 17px; height: 17px; color: #758198; }
.home-notice-item[open] .home-notice-chevron { transform: rotate(180deg); }
.home-notice-item > p { margin: 0; padding: 16px 18px 18px; border-top: 1px solid #e6ebf3; color: #465269; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 900px) {
  .home-welcome { grid-template-columns: 1fr; }
  .home-benefits { border-top: 1px solid #dce4f0; border-left: 0; }
  .home-benefits ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home-benefits li { display: block; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; }
  .home-benefits li span, .home-benefits li strong, .home-benefits li small { display: block; }
  .home-benefits li strong { margin: 5px 0; }
  .home-task-list { grid-template-columns: 1fr; }
  .home-task-card { min-height: 160px; }
}

@media (max-width: 640px) {
  .student-home { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .home-welcome { border-radius: 20px; }
  .home-welcome-main, .home-benefits, .home-panel { padding: 20px; }
  .home-welcome h1 { font-size: 28px; }
  .home-next-deadline { align-items: flex-start; }
  .home-next-deadline strong { white-space: normal; }
  .home-workspace-actions { display: grid; grid-template-columns: 1fr 1fr; order: 5; }
  .home-primary-button, .home-secondary-button { width: 100%; padding: 0 12px; }
  .home-benefits ul { grid-template-columns: 1fr; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-heading-links { justify-content: flex-start; }
  .home-notice-item summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .home-notice-item time { grid-column: 2; }
  .home-notice-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .home-empty-state { align-items: flex-start; flex-wrap: wrap; }
  .home-empty-state > a { width: 100%; margin-left: 38px; }
}

@media (max-width: 430px) {
  .home-workspace-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .student-home *, .student-home *::before, .student-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
