.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}
.home-dashboard > * { min-width: 0; }
.home-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-heading h1, .home-heading h2 { margin: 0; }
.home-heading time, .home-reading small { color: #52685e; font-size: 13px; }
.home-practice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--green);
  color: white;
}
.home-practice h2 { position: relative; font-size: clamp(23px, 5vw, 33px); line-height: 1.25; }
.home-practice p { position: relative; margin: 8px 0 20px; color: #e0e9df; font-size: 14px; }
.home-arabic-mark {
  position: absolute; right: -8px; top: 40%; transform: translateY(-50%) rotate(-8deg);
  font: 112px/1 'Noto Naskh Arabic', serif; color: #ffffff10; pointer-events: none;
}
.home-main-button, .home-shortcuts button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 12px; font-weight: 750; font-size: 14px;
}
.home-main-button { position: relative; background: var(--lime); color: var(--green); gap: 20px; }
.home-shortcuts { display: flex; gap: 10px; }
.home-shortcuts button { flex: 1; border: 1px solid var(--line); background: white; color: var(--green); }
.home-shortcuts svg, .home-main-button svg, .home-reading svg { flex: none; }
.home-dashboard .goal-card { margin: 0; padding: 18px; }
.home-dashboard h2:not(.home-practice h2) { font-size: 18px; }
.home-dashboard .goal-grid { margin-top: 10px; gap: 18px; }
.home-dashboard .goal-grid strong { font-size: 15px; }
.home-dashboard .goal-grid .progress { margin-top: 8px; }
.home-dashboard .goal-grid .hint { color: #52685e; font-size: 12px; }
.home-dashboard #editDailyGoal, .home-heading button {
  min-height: 44px; padding: 4px 0 4px 8px; color: var(--green); background: transparent; font-weight: 700; font-size: 13px;
}
.home-reading {
  display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid #dedacb;
  background: #f1eee4; color: #283e32; text-align: left; border-radius: 18px; padding: 15px 18px;
}
.home-reading-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: #e7e2d1; border-radius: 12px; }
.home-reading > span:not(.home-reading-icon) { min-width: 0; overflow-wrap: anywhere; }
.home-reading strong, .home-reading small { display: block; }
.home-reading strong { font-size: 15px; margin-top: 3px; }
.home-reading > svg { margin-left: auto; width: 18px; }
.home-recent { width: 100%; max-width: 540px; }
.home-recent-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.home-recent-word {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 3px 12px;
}
.home-recent-word + .home-recent-word { border-top: 1px solid var(--line); }
.home-recent-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 3px;
  min-height: 54px;
  padding: 7px 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.home-recent-open .arabic {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.32;
}
.home-recent-meaning {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
  color: #52685e;
}
.home-recent-word .speak-button { width: 44px; height: 44px; }
@media (min-width: 720px) {
  .home-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px 16px; }
  .home-dashboard > .home-heading, .home-practice, .home-recent { grid-column: 1 / -1; }
  .home-shortcuts { grid-column: 1 / -1; }
  .home-reading { min-height: 100%; }
}
@media (max-width: 450px) {
  .home-practice { padding: 17px; }
  .home-practice p { margin-bottom: 15px; }
  .home-main-button { width: 100%; justify-content: space-between; gap: 9px; padding-inline: 12px; }
  .home-main-button svg { width: 18px; }
  .home-shortcuts button { font-size: 13px; padding-inline: 8px; gap: 6px; }
  .home-dashboard .goal-grid .row { display: grid; gap: 3px; }
}
