/* Página inicial — dashboard fiel à referência 1672 × 941. */
body.page-home {
  --home-ink: #071a3d;
  --home-copy: #38537e;
  --home-muted: #647695;
  --home-blue: #2668f6;
  --home-purple: #863bea;
  --home-green: #0d9c62;
  --home-orange: #e88400;
  --home-yellow: #f2b900;
  --home-line: #dfe7f2;
  --home-track: #e5ebf5;
  --home-card-shadow: 0 5px 14px rgba(31, 61, 118, 0.035);
}

body.page-home {
  min-height: 100vh;
  background: #f1f4fc;
  color: var(--home-ink);
}

body.page-home .home-dashboard {
  width: 100%;
  padding: 29px 0 81px;
}

body.page-home .home-dashboard__container {
  position: relative;
  width: min(1454px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

body.page-home .home-surface {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(215, 225, 239, 0.82);
  border-radius: 11px;
  box-shadow: var(--home-card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.page-home .home-welcome-card {
  position: relative;
  height: 150px;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 0%, rgba(227, 219, 189, 0.32) 0, transparent 29%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.98) 47%, rgba(248, 249, 250, 0.91) 75%, rgba(245, 247, 249, 0.96) 100%);
}

body.page-home .home-welcome-card__content {
  position: relative;
  z-index: 2;
  width: 64%;
  height: 100%;
  padding: 21px 18px 13px;
}

body.page-home .home-welcome-card h1 {
  margin: 0 0 7px;
  font-family: "Playfair Display", Georgia, serif;
  color: #080f20;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

body.page-home .home-welcome-card__content > p {
  margin: 0;
  color: #425a7e;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.48;
}

body.page-home .home-welcome-card__quote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 0;
  color: #1954ce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
}

body.page-home .home-welcome-card__quote i {
  color: #8aaaf7;
  font-size: 20px;
  font-style: normal;
}

body.page-home .home-welcome-card__quote cite {
  color: #174ba8;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

body.page-home .home-welcome-card__art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 46%;
  background-color: transparent;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.56) 13%, rgba(255, 255, 255, 0.02) 34%),
    url("../../img/home/welcome-study.webp"),
    radial-gradient(ellipse at 67% 78%, rgba(42, 70, 105, 0.14) 0, transparent 38%),
    linear-gradient(135deg, #fbfcfd 0%, #f0f3ef 100%);
  background-repeat: no-repeat;
  background-position: 0 0, right bottom, center, center;
  background-size: 100% 100%, auto 150px, 100% 100%, 100% 100%;
}

body.page-home .home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
  height: 122px;
}

body.page-home .home-kpi-card {
  position: relative;
  min-width: 0;
  height: 122px;
  padding: 18px 13px 16px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 9px;
}

body.page-home .home-kpi-card__icon {
  display: flex;
  justify-content: center;
  padding-top: 7px;
  font-size: 23px;
  color: var(--home-blue);
}

body.page-home .home-kpi-card__body { min-width: 0; }

body.page-home .home-kpi-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

body.page-home .home-kpi-card h2 {
  overflow: hidden;
  margin: 0;
  color: #405577;
  font: 700 12px/1.25 Inter, system-ui, sans-serif;
  letter-spacing: -0.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-kpi-card__value {
  display: block;
  min-height: 31px;
  margin-top: 9px;
  color: #06132d;
  font: 700 25px/1.08 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

body.page-home .home-kpi-card__value small {
  color: #263a5b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

body.page-home .home-kpi-card p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #60718e;
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-kpi-badge {
  display: inline-flex;
  min-height: 22px;
  max-width: 72px;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.page-home .home-kpi-badge--pending { background: #fff0d9; color: #ad5e00; }
body.page-home .home-kpi-badge--success { background: #e5f5e8; color: #13743c; }

body.page-home .home-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--home-track);
}

body.page-home .home-progress > span {
  display: block;
  width: var(--home-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width 0.42s ease;
}

body.page-home .home-kpi-card__meter {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--home-blue);
}

body.page-home .home-kpi-card--today .home-kpi-card__icon { color: var(--home-orange); }
body.page-home .home-kpi-badge--today { background: #fff0d9; color: #ad5e00; }
body.page-home .home-kpi-card--streak .home-kpi-card__icon { color: #119449; }
body.page-home .home-kpi-card--streak .home-kpi-card__meter { color: var(--home-green); }
body.page-home .home-kpi-card--week .home-kpi-card__icon,
body.page-home .home-kpi-card--week .home-kpi-card__meter { color: var(--home-purple); }
body.page-home .home-kpi-card--month .home-kpi-card__icon,
body.page-home .home-kpi-card--month .home-kpi-card__meter { color: var(--home-blue); }
body.page-home .home-kpi-card--favorites .home-kpi-card__icon { color: var(--home-yellow); }

body.page-home .home-shortcuts {
  height: 154px;
  padding: 17px 17px 18px;
}

body.page-home .home-shortcuts > h2,
body.page-home .home-progress-panel > h2,
body.page-home .home-readings-panel h2 {
  margin: 0;
  color: var(--home-ink);
  font: 800 13px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

body.page-home .home-shortcuts > h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

body.page-home .home-shortcuts > h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #dbe4f0;
}

body.page-home .home-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

body.page-home .home-shortcut {
  min-width: 0;
  height: 75px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--home-ink);
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body.page-home .home-shortcut:hover {
  border-color: #b7c9e6;
  box-shadow: 0 7px 17px rgba(34, 68, 127, 0.08);
  transform: translateY(-1px);
}

body.page-home .home-shortcut:focus-visible {
  outline: 2px solid rgba(38, 104, 246, 0.48);
  outline-offset: 2px;
}

body.page-home .home-shortcut > i {
  width: 25px;
  flex: 0 0 25px;
  color: var(--home-blue);
  font-size: 25px;
  text-align: center;
}

body.page-home .home-shortcut > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.page-home .home-shortcut strong,
body.page-home .home-shortcut small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-shortcut strong { color: var(--home-ink); font-size: 12px; font-weight: 800; }
body.page-home .home-shortcut small { color: #536a8f; font-size: 9.5px; font-weight: 500; }
body.page-home .home-shortcut--study > i { color: #8742dd; }
body.page-home .home-shortcut--bible > i { color: #c86b10; }
body.page-home .home-shortcut--reading > i { color: #269061; }
body.page-home .home-shortcut--search > i { color: #0793b3; }
body.page-home .home-shortcut--references > i { color: #3352c4; }
body.page-home .home-shortcut--topics > i { color: #112c72; }
body.page-home .home-shortcut--graph > i { color: #dd2779; }

body.page-home .home-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.99fr) minmax(0, 1fr);
  gap: 15px;
  height: 307px;
  transform: translateY(-4px);
}

body.page-home .home-progress-panel,
body.page-home .home-readings-panel {
  min-width: 0;
  height: 307px;
  padding: 16px;
}

body.page-home .home-progress-panel {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 20px 17px;
}

body.page-home .home-progress-panel__content {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 17px;
}

body.page-home .home-progress-ring {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #4c80ed 0deg var(--home-ring-progress, 0deg), #e9eef6 var(--home-ring-progress, 0deg) 360deg);
  box-shadow: inset 0 0 0 1px rgba(43, 89, 174, 0.025);
  margin-left: 10px;
}

body.page-home .home-progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
}

body.page-home .home-progress-ring > span {
  grid-area: 1 / 1;
  position: relative;
  color: #3473ed;
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

body.page-home .home-progress-ring strong { font-size: 28px; font-weight: 800; letter-spacing: -0.06em; }
body.page-home .home-progress-ring small { font-size: 17px; font-weight: 800; }
body.page-home .home-progress-panel__details { min-width: 0; }

body.page-home .home-progress-panel__area,
body.page-home .home-daily-goal__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-home .home-progress-panel__area h3 {
  overflow: hidden;
  margin: 0;
  color: #08132d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-phase-badge {
  flex: 0 0 auto;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 8px;
  background: #e6f0ff;
  color: #2663d7;
  font-size: 9.5px;
  font-weight: 800;
}

body.page-home .home-area-meter { height: 4px; margin-top: 15px; color: #4f82f0; }

body.page-home .home-progress-panel__count {
  margin: 14px 0 24px;
  color: #5b7092;
  font-size: 10px;
}

body.page-home .home-progress-panel__count strong { color: #2a599e; font-weight: 800; }
body.page-home .home-daily-goal__heading { color: #0b1731; font-size: 11.5px; }
body.page-home .home-daily-goal__heading > strong,
body.page-home .home-daily-goal__heading b { font-weight: 800; }
body.page-home .home-daily-goal__heading i { margin-left: 3px; color: var(--home-green); font-size: 10px; }
body.page-home .home-daily-goal__meter { height: 5px; margin-top: 11px; color: #0ea269; }

body.page-home .home-daily-goal > p {
  margin: 10px 0 0;
  color: #05934e;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

body.page-home .home-study-button {
  width: fit-content;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border: 1px solid #bfd0e9;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: #2863d9;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

body.page-home .home-study-button:hover { border-color: #8faee0; background: #f5f8ff; }
body.page-home .home-study-button i { font-size: 9px; }

body.page-home .home-readings-panel { display: flex; flex-direction: column; }

body.page-home .home-readings-panel__header {
  min-height: 23px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.page-home .home-readings-panel__header a {
  color: #2764e6;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

body.page-home .home-readings-list { margin: 0; padding: 0; list-style: none; }

body.page-home .home-readings-list > li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e1e8f1;
}

body.page-home .home-readings-list > li:first-child { border-top: 0; }

body.page-home .home-reading-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e8f6ef;
  color: #17a260;
  font-size: 12px;
}

body.page-home .home-reading-copy { min-width: 0; display: grid; gap: 2px; }

body.page-home .home-reading-copy strong,
body.page-home .home-reading-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-reading-copy strong {
  color: #081831;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
}

body.page-home .home-reading-copy small,
body.page-home .home-readings-list time {
  color: #586f91;
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.2;
}

body.page-home .home-readings-list time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.page-home .home-readings-empty {
  margin: auto;
  color: var(--home-muted);
  font-size: 12px;
  text-align: center;
}

body.page-home .home-dashboard.is-loading .home-loading-slot {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  color: transparent !important;
  background: #e9eef6;
}

body.page-home .home-dashboard.is-loading .home-loading-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.75) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: home-dashboard-shimmer 1.35s infinite;
}

@keyframes home-dashboard-shimmer { to { transform: translateX(100%); } }

/* Ajuste calibrado contra a referência desktop de 1672 × 941.
   Importante: esta página não altera mais nenhum estilo do menu compartilhado. */
@media (min-width: 1500px) {
  body.page-home .home-dashboard__container { left: 7px; }
  body.page-home .home-kpi-grid { transform: translateY(1px); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .home-dashboard.is-loading .home-loading-slot::after { animation: none; }
  body.page-home .home-progress > span,
  body.page-home .home-shortcut { transition: none; }
}

@media (min-width: 1280px) and (max-height: 900px) {
  body.page-home .home-dashboard { padding-top: 18px; }
  body.page-home .home-dashboard__container { gap: 14px; }
}

@media (max-width: 1279px) {
  body.page-home .home-dashboard { padding-top: 20px; }
  body.page-home .home-dashboard__container { gap: 14px; }
  body.page-home .home-kpi-grid { height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.page-home .home-shortcuts { height: auto; }
  body.page-home .home-shortcuts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.page-home .home-summary-grid,
  body.page-home .home-progress-panel,
  body.page-home .home-readings-panel { height: auto; min-height: 308px; }
}

@media (max-width: 900px) {
  body.page-home .home-welcome-card__content { width: 72%; }
  body.page-home .home-welcome-card__art { width: 43%; opacity: 0.62; }
  body.page-home .home-shortcuts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-home .home-summary-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body.page-home .home-dashboard { padding: 12px 0 calc(var(--app-bottom-nav-height) + 18px); }
  body.page-home .home-dashboard__container { width: min(100% - 24px, 680px); gap: 12px; }
  body.page-home .home-welcome-card { height: auto; min-height: 176px; }
  body.page-home .home-welcome-card__content { width: 100%; padding: 17px; }
  body.page-home .home-welcome-card__art { inset: auto 0 0 auto; width: 54%; height: 76px; opacity: 0.25; }
  body.page-home .home-welcome-card h1 { font-size: 20px; }
  body.page-home .home-welcome-card__quote { align-items: flex-start; margin-top: 15px; }
  body.page-home .home-welcome-card__quote cite { white-space: normal; }
  body.page-home .home-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.page-home .home-kpi-card { height: 118px; padding: 15px 11px 12px; }
  body.page-home .home-shortcuts { padding: 15px 12px; }
  body.page-home .home-shortcuts__grid { gap: 10px; }
  body.page-home .home-shortcut { height: 68px; padding: 0 11px; gap: 10px; }
  body.page-home .home-shortcut > i { font-size: 21px; }
  body.page-home .home-progress-panel,
  body.page-home .home-readings-panel { padding: 14px; min-height: 0; }
  body.page-home .home-progress-panel__content { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  body.page-home .home-progress-ring { width: 106px; height: 106px; }
  body.page-home .home-progress-ring::before { width: 90px; height: 90px; }
  body.page-home .home-progress-ring strong { font-size: 23px; }
  body.page-home .home-progress-panel__count { margin-bottom: 15px; }
  body.page-home .home-study-button { margin-top: 18px; }
}

@media (max-width: 440px) {
  body.page-home .home-dashboard__container { width: calc(100% - 20px); }
  body.page-home .home-kpi-card { grid-template-columns: 23px minmax(0, 1fr); column-gap: 7px; }
  body.page-home .home-kpi-card__icon { font-size: 19px; }
  body.page-home .home-kpi-card h2 { font-size: 10.5px; }
  body.page-home .home-kpi-card__value { font-size: 22px; }
  body.page-home .home-kpi-badge { display: none; }
  body.page-home .home-shortcuts__grid { grid-template-columns: minmax(0, 1fr); }
  body.page-home .home-shortcut strong { font-size: 11.5px; }
  body.page-home .home-progress-panel__content { grid-template-columns: minmax(0, 1fr); }
  body.page-home .home-progress-ring { margin: 0 auto; }
  body.page-home .home-readings-list > li { grid-template-columns: 28px minmax(0, 1fr); }
  body.page-home .home-readings-list time { grid-column: 2; margin-top: -8px; padding-bottom: 7px; }
}
    
/* Fase 6.4 · valores iniciais antes do cálculo do progresso */
body.page-home .home-progress-initial { --home-progress: 0%; }
body.page-home .home-ring-progress-initial { --home-ring-progress: 0deg; }
