body[data-current-view="home"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-current-view="home"] .main-sidebar {
  display: none;
}

body[data-current-view="home"] .app-content {
  width: 100%;
  min-width: 0;
}

body[data-current-view="home"] .home-view {
  width: min(1180px, 100%);
  padding: 22px 30px 34px;
}

body[data-current-view="home"] .home-heading {
  align-items: center;
  margin-bottom: 16px;
}

body[data-current-view="home"] .home-heading h1 {
  margin-top: 2px;
  font-size: 26px;
}

.student-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(128px, 1fr)) minmax(92px, 0.72fr);
  gap: 10px;
  min-height: 416px;
}

.student-dashboard button {
  font: inherit;
  letter-spacing: 0;
}

.dashboard-current,
.dashboard-module,
.dashboard-utility {
  box-sizing: border-box;
  border: 1px solid #c9d9d3;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(28, 61, 54, 0.08);
}

.dashboard-current {
  position: relative;
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 28px;
  background: #174f44 url("assets/boyang-home-hero.webp") right center / auto 100% no-repeat;
  color: #fff;
  overflow: hidden;
}

.dashboard-current::before {
  content: "";
  position: absolute;
  inset: 0 44% 0 0;
  z-index: 0;
  background: rgba(13, 67, 56, 0.96);
}

.dashboard-current > * {
  position: relative;
  z-index: 1;
}

.dashboard-current__topline,
.dashboard-progress > div,
.dashboard-current__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-current__topline {
  color: #cde2dc;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-current h2 {
  max-width: 54%;
  margin: 18px 0 4px;
  font-size: 27px;
  line-height: 1.25;
}

.dashboard-current > p {
  margin: 0;
  color: #d7e8e3;
  font-size: 13px;
}

.dashboard-current > p strong {
  color: #fff;
  font-size: 17px;
}

.dashboard-current blockquote {
  max-width: 52%;
  margin: 18px 0 auto;
  padding-left: 12px;
  border-left: 3px solid #f3ba49;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.dashboard-progress {
  display: grid;
  gap: 6px;
  width: 52%;
  margin-top: 16px;
}

.dashboard-progress span,
.dashboard-progress strong {
  font-size: 12px;
}

.dashboard-progress progress {
  width: 100%;
  height: 7px;
  accent-color: #f3ba49;
}

.dashboard-current__actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.dashboard-current__actions button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-primary {
  border: 0;
  background: #fff;
  color: #126651;
}

.dashboard-secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(12, 49, 42, 0.28);
  color: #fff;
}

.dashboard-module,
.dashboard-utility {
  display: grid;
  align-items: center;
  min-width: 0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-module:hover,
.dashboard-utility:hover {
  border-color: #75ad9e;
  box-shadow: 0 10px 24px rgba(28, 61, 54, 0.14);
  transform: translateY(-1px);
}

.dashboard-module:focus-visible,
.dashboard-utility:focus-visible,
.dashboard-current__actions button:focus-visible {
  outline: 3px solid rgba(30, 139, 112, 0.28);
  outline-offset: 2px;
}

.dashboard-module {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
}

.dashboard-module--word { grid-column: 7 / 10; grid-row: 1; background: #e8f6f1; }
.dashboard-module--grammar { grid-column: 10 / 13; grid-row: 1; background: #fff3df; }
.dashboard-module--training { grid-column: 7 / 10; grid-row: 2; background: #eaf2fb; }
.dashboard-module--review { grid-column: 10 / 13; grid-row: 2; background: #f4eefb; }

.dashboard-module i,
.dashboard-utility i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #176b58;
  font-style: normal;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(33, 96, 80, 0.12);
}

.dashboard-module span,
.dashboard-utility span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-module strong {
  color: #18364d;
  font-size: 20px;
}

.dashboard-module small,
.dashboard-utility small {
  color: #617486;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-utility {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 16px;
  background: #fff;
}

.dashboard-utility--vst { grid-column: 1 / 4; grid-row: 3; }
.dashboard-utility--book { grid-column: 4 / 7; grid-row: 3; }
.dashboard-utility--library { grid-column: 7 / 10; grid-row: 3; }
.dashboard-utility--report { grid-column: 10 / 13; grid-row: 3; }

.dashboard-utility i {
  width: 38px;
  height: 38px;
}

.dashboard-utility strong {
  color: #243f54;
  font-size: 16px;
}

@media (orientation: landscape) and (max-height: 620px) {
  body[data-current-view="home"] .home-view {
    padding: 8px 16px 12px !important;
  }

  body[data-current-view="home"] .home-heading {
    min-height: 35px;
    margin-bottom: 6px;
  }

  body[data-current-view="home"] .home-heading span,
  body[data-current-view="home"] .home-heading time {
    display: none;
  }

  body[data-current-view="home"] .home-heading h1 {
    margin: 0;
    font-size: 21px;
  }

  .student-dashboard {
    grid-template-rows: repeat(2, minmax(101px, 1fr)) 63px;
    gap: 6px;
    min-height: 350px;
  }

  .dashboard-current {
    padding: 15px 20px;
  }

  .dashboard-current h2 {
    margin-top: 9px;
    font-size: 22px;
  }

  .dashboard-current blockquote {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .dashboard-progress {
    margin-top: 8px;
  }

  .dashboard-current__actions {
    margin-top: 8px;
  }

  .dashboard-current__actions button {
    min-height: 36px;
  }

  .dashboard-module {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
  }

  .dashboard-module i {
    width: 38px;
    height: 38px;
  }

  .dashboard-module strong {
    font-size: 17px;
  }

  .dashboard-utility {
    padding: 8px 12px;
  }

  .dashboard-utility small {
    display: none;
  }

  body[data-current-view="home"] .feedback-fab {
    top: 76px !important;
    right: 10px !important;
    bottom: auto !important;
  }
}
