.topbar.home-active { display: none; }
/* JLPTGO v8 home dashboard + compact dated question navigator */
.home-dashboard {
  display: grid;
  gap: 18px;
}
.home-heading h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .01em;
}
.home-heading p { margin: 0; color: #667085; font-weight: 600; }
.level-grid-home {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 22px;
}
.level-select-card {
  position: relative;
  min-height: 134px;
  padding: 22px 26px;
  border-radius: 14px;
  border: 1px solid #e3eaf4;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 30px rgba(15,23,42,.055);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.level-select-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(15,23,42,.08); }
.level-select-card b { display: block; margin-bottom: 10px; font-size: 42px; line-height: .9; font-weight: 1000; }
.level-select-card strong { display: block; color: #1f2937; font-size: 15px; }
.level-select-card span { display: block; margin-top: 6px; color: #667085; font-size: 13px; line-height: 1.5; }
.level-select-card em {
  position: absolute; top: 12px; right: 14px;
  padding: 5px 9px; border-radius: 999px;
  background: #086cff; color: #fff; font-size: 12px; font-style: normal; font-weight: 900;
}
.level-select-card:nth-child(1) b { color: #6d4cff; }
.level-select-card:nth-child(2) b { color: #086cff; }
.level-select-card:nth-child(3) b { color: #28a76f; }
.level-select-card:nth-child(4) b { color: #f59e0b; }
.level-select-card:nth-child(5) b { color: #f04452; }
.level-select-card.selected { border: 2px solid #086cff; box-shadow: 0 18px 40px rgba(8,108,255,.12); }
.level-select-card.disabled { opacity: .82; cursor: default; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
}
.home-main-card, .home-side-card {
  border: 1px solid #e3eaf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}
.home-main-card { padding: 0; overflow: hidden; }
.current-level-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #edf1f6;
}
.current-level-row h3 { margin: 0; font-size: 23px; }
.current-level-row span { color: #086cff; }
.today-plan-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  margin: 0;
  padding: 28px;
  background: linear-gradient(135deg, #086cff, #0057e7);
  color: #fff;
}
.today-plan-card h3 { margin: 0; font-size: 26px; }
.today-plan-card h3 small { font-size: 18px; opacity: .9; }
.today-plan-card p { margin: 12px 0 34px; opacity: .9; font-weight: 700; }
.today-plan-card strong { display: block; margin-bottom: 12px; font-size: 18px; }
.home-plan-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.home-plan-bar span { display: block; width: 40%; height: 100%; background: #fff; border-radius: inherit; }
.today-plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 900; }
.quick-start-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
}
.quick-start-home button {
  min-height: 92px;
  border-radius: 13px;
  border: 1px solid #e3eaf4;
  background: #fff;
  color: #111827;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  text-align: left;
  align-items: center;
  padding: 16px;
  font-weight: 900;
}
.quick-start-home button > :first-child, .quick-start-home button::first-letter { color: #086cff; }
.quick-start-home b { font-size: 17px; }
.quick-start-home span { grid-column: 2; color: #667085; font-size: 13px; font-weight: 700; }
.home-side-card { padding: 24px; }
.home-side-card h3 { margin: 0 0 18px; font-size: 22px; }
.home-side-card h3 small { color: #667085; font-size: 14px; }
.home-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid #edf1f6; color: #667085; font-weight: 700;
}
.home-stat-row b { color: #086cff; font-size: 23px; }
.mini-week-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 16px; height: 86px; padding: 18px 0; }
.mini-week-bars i { display: block; height: 28px; border-radius: 5px 5px 0 0; background: #e1e8f2; }
.mini-week-bars i:nth-child(2) { height: 42px; }
.mini-week-bars i:nth-child(3) { height: 58px; }
.mini-week-bars i:nth-child(4) { height: 36px; }
.mini-week-bars i:nth-child(5) { height: 40px; }
.mini-week-bars i:nth-child(6) { height: 34px; }
.mini-week-bars i:nth-child(7) { height: 52px; }
.mini-week-bars i.active { background: #086cff; }
.home-primary {
  width: 100%; min-height: 54px; margin-top: 10px; border: 0; border-radius: 12px;
  background: #086cff; color: #fff; font-size: 17px; font-weight: 950;
}

.answer-sheet {
  grid-template-columns: repeat(3, minmax(84px, 1fr)) !important;
  gap: 12px !important;
}
.sheet-btn.sheet-date-btn {
  width: 100% !important;
  height: 66px !important;
  border-radius: 12px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
}
.sheet-date-btn span { color: #667085; font-size: 12px; font-weight: 900; line-height: 1; }
.sheet-date-btn b { color: #111827; font-size: 17px; line-height: 1; }
.sheet-date-btn.current { background: #086cff !important; color: #fff !important; border-color: #086cff !important; }
.sheet-date-btn.current span, .sheet-date-btn.current b { color: #fff; }
.sheet-date-btn.answered:not(.current) { background: #f0fff6; border-color: #bbf7d0; }
.sheet-date-btn.wrong:not(.current) { background: #fff1f2; border-color: #fecdd3; }
.sheet-btn.sheet-ellipsis {
  width: 100% !important;
  height: 66px !important;
  border-radius: 12px !important;
  background: #f3f6fb;
  color: #667085;
  font-size: 24px;
}

@media (max-width: 1180px) {
  .level-grid-home { grid-template-columns: repeat(3, 1fr); }
  .home-layout { grid-template-columns: 1fr; }
  .home-side-card { order: -1; }
}
@media (max-width: 860px) {
  .home-dashboard { padding: 0 4px; }
  .home-heading { padding: 4px 4px 0; }
  .home-heading h2 { font-size: 22px; }
  .home-heading p { font-size: 13px; }
  .level-grid-home { grid-template-columns: 1fr 1fr; gap: 12px; }
  .level-select-card { min-height: 112px; padding: 16px; }
  .level-select-card b { font-size: 34px; }
  .home-layout { gap: 12px; }
  .current-level-row { padding: 16px; }
  .current-level-row h3 { font-size: 18px; }
  .today-plan-card { grid-template-columns: 1fr; padding: 20px; }
  .quick-start-home { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .quick-start-home button { min-height: 78px; padding: 12px; }
  .home-side-card { padding: 18px 16px; }
  .answer-sheet { grid-template-columns: repeat(2, minmax(92px, 1fr)) !important; }
}
@media (max-width: 430px) {
  .level-grid-home { grid-template-columns: 1fr; }
  .level-select-card { min-height: 100px; }
  .today-plan-card h3 { font-size: 22px; }
  .quick-start-home { grid-template-columns: 1fr; }
  .answer-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
