/* Weekly report styles are scoped so the existing workspace stays unchanged. */
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar > * {
  flex-shrink: 0;
}
.report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  background: linear-gradient(115deg, var(--navy), #345474);
  border-radius: var(--radius);
  color: #fff;
  margin-bottom: 24px;
}
.report-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9cde4;
  font-size: 11px;
}
.report-kicker .icon {
  width: 15px;
  height: 15px;
}
.report-hero h2 {
  font-size: 25px;
  margin: 12px 0;
}
.report-hero p {
  color: #c4d1e0;
  font-size: 12px;
  line-height: 1.9;
}
.report-seal {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid #ffffff2b;
  border-radius: 9px;
  font-size: 11px;
  white-space: nowrap;
  color: #d1dfef;
}
.report-seal .icon {
  width: 18px;
  height: 18px;
}
.report-empty {
  margin-bottom: 24px;
}
.report-empty .empty-state p {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}
.report-trends,
.report-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
  margin-bottom: 23px;
}
.report-chart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 225px;
  padding: 10px 0 5px;
}
.report-chart-column {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #74859c;
  font-size: 11px;
}
.report-chart-value {
  color: #4e6686;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.report-bar-track {
  display: flex;
  align-items: end;
  flex: 1;
  width: 100%;
  max-width: 35px;
  background: #f5f7fb;
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid #dbe3ee;
}
.report-bar-track > span {
  display: block;
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: #a6beda;
}
.task-trend .is-today .report-bar-track > span {
  background: #537bb0;
}
.habit-trend .report-bar-track > span {
  background: #a4c6b8;
}
.habit-trend .is-today .report-bar-track > span {
  background: #4a937b;
}
.report-chart-column small {
  font-size: 9px;
  color: #8c9aae;
}
.report-chart-column.is-today .report-chart-date {
  font-weight: 600;
  color: var(--navy);
}
.report-chart-note {
  font-size: 11px;
  color: #8494a8;
  text-align: center;
  margin-top: 15px;
}
.report-section {
  margin-bottom: 23px;
}
.report-habits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.report-habit-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.report-habit-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.report-habit-heading h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.report-habit-heading strong {
  font-size: 20px;
  color: #4c8e7a;
  white-space: nowrap;
  font-weight: 600;
}
.report-habit-card > p {
  font-size: 11px;
  color: #7a8ba2;
  margin: 3px 0 13px;
}
.report-habit-progress > span {
  background: #76aa96;
}
.report-habit-days {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 18px;
}
.report-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.report-day > small {
  font-size: 9px;
  color: #8192a9;
}
.report-day > span {
  width: min(29px, 100%);
  height: 29px;
  display: grid;
  place-items: center;
  background: #f0f3f8;
  color: #8e9db1;
  border-radius: 8px;
}
.report-day.checked > span {
  background: #e7f3ed;
  color: #568d74;
}
.report-day .icon {
  width: 14px;
  height: 14px;
}
.report-day.not-started > span {
  background: transparent;
  color: #a8b4c4;
  border: 1px dashed #dfe5ee;
}
.report-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: #8394aa;
  margin: 18px 0 0;
}
.report-legend > .icon {
  width: 13px;
  height: 13px;
  color: #568d74;
  margin-right: -13px;
}
.report-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.report-goals > .goal-card.compact {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.report-review-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.report-review-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 5px;
  background: #f7f9fc;
  border: 1px solid #edf0f6;
  border-radius: 10px;
  font-size: 12px;
  color: #7c8da5;
}
.report-review-day.reviewed {
  background: #eff6f2;
  border-color: #e3eee7;
  color: #52856d;
}
.review-day-mark {
  display: grid;
  place-items: center;
  height: 26px;
  color: #b3bfce;
}
.report-review-day.reviewed .review-day-mark {
  color: #63977b;
}
.report-review-day small {
  font-size: 10px;
}
.report-summary {
  background: #f0f4fa;
  border-color: #e0e8f3;
}
.report-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.report-summary li {
  position: relative;
  padding: 15px 0 15px 19px;
  border-bottom: 1px solid #e1e8f2;
  font-size: 13px;
  color: #5e7491;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.report-summary li:last-child {
  border-bottom: 0;
}
.report-summary li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 26px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7f9cbd;
}
.report-suggestions ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: report-tips;
}
.report-suggestions li {
  position: relative;
  padding: 0 0 18px 35px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  counter-increment: report-tips;
}
.report-suggestions li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.report-suggestions li::before {
  content: counter(report-tips, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  background: #eef3f9;
  border-radius: 6px;
  color: #7790af;
  font-size: 10px;
  padding: 3px 5px;
}
.report-suggestions p {
  color: #6c7f98;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.report-suggestions .text-link {
  margin-top: 7px;
  color: #597fae;
}
.report-method {
  color: #778ba6;
}
.report-method > summary {
  cursor: pointer;
  font-size: 12px;
  color: #536e90;
}
.report-method > ul {
  font-size: 11px;
  line-height: 2;
  padding-left: 20px;
  margin: 17px 0 0;
}
.report-method li + li {
  margin-top: 8px;
}
@media (max-width: 1200px) {
  .report-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-seal {
    padding: 10px 12px;
    font-size: 10px;
  }
  .report-hero {
    padding: 27px;
  }
  .report-habit-days {
    gap: 5px;
  }
}
@media (max-width: 960px) {
  .report-hero {
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }
  .report-trends,
  .report-insights {
    grid-template-columns: 1fr;
  }
  .report-habits {
    grid-template-columns: 1fr;
  }
  .report-review-days {
    gap: 7px;
  }
  .report-review-day {
    padding: 12px 2px;
    font-size: 10px;
  }
  .report-review-day small {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .report-hero {
    padding: 24px;
    border-radius: 13px;
  }
  .report-hero h2 {
    font-size: 21px;
  }
  .report-hero p {
    font-size: 11px;
  }
  .report-kicker {
    font-size: 10px;
  }
  .report-seal {
    font-size: 10px;
  }
  .report-trends,
  .report-insights {
    gap: 18px;
    margin-bottom: 18px;
  }
  .report-section {
    margin-bottom: 18px;
  }
  .report-chart {
    gap: 8px;
    height: 210px;
  }
  .report-chart-value {
    font-size: 10px;
  }
  .report-bar-track {
    max-width: 29px;
  }
  .report-chart-date {
    font-size: 10px;
  }
  .report-goals {
    grid-template-columns: 1fr;
  }
  .report-habit-card {
    padding: 17px;
  }
  .report-habit-days {
    gap: 5px;
  }
  .report-day > span {
    width: min(28px, 100%);
    height: 28px;
  }
  .report-review-days {
    gap: 5px;
  }
  .report-review-day {
    padding: 12px 0;
    font-size: 9px;
  }
  .report-review-day small {
    font-size: 8px;
  }
  .report-review-day .icon {
    width: 16px;
    height: 16px;
  }
  .report-legend {
    gap: 14px;
    font-size: 9px;
  }
  .report-summary li {
    font-size: 12px;
  }
}
