:root {
  --home-ink: #183047;
  --home-muted: #6d7f90;
  --home-blue: #245f91;
  --home-blue-dark: #173e62;
  --home-sky: #eaf3fa;
  --home-line: #e3ebf2;
  --home-warm: #f8f5ef;
}

.local-preview-note { margin-left: auto; color: #526b81; text-align: right; }
.local-preview-note strong { display: block; color: #294b69; font-size: 11px; }
.local-preview-note span { display: block; margin-top: 2px; font-size: 9px; }

.home-b {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, .78fr);
  gap: 18px;
  padding: 20px 27px 0;
}

.home-focus {
  grid-column: 1 / -1;
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px;
  overflow: hidden;
  position: relative;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, #6fa7cd55 0, #6fa7cd00 34%),
    linear-gradient(135deg, var(--home-blue-dark), #2f6f9e);
  box-shadow: 0 16px 38px #173e621c;
}

.home-focus::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -78px;
  bottom: -145px;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
}

.home-focus-copy { position: relative; z-index: 1; max-width: 660px; }
.home-date { display: block; margin-bottom: 10px; color: #d8e9f5; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-focus h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -.045em; }
.home-focus p { margin: 11px 0 0; color: #e2edf5; font-size: 15px; line-height: 1.5; }
.home-primary-action {
  position: relative;
  z-index: 1;
  min-width: 228px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: var(--home-blue-dark);
  background: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px #0c2c4833;
  transition: transform .16s ease, box-shadow .16s ease;
}
.home-primary-action:hover { transform: translateY(-2px); box-shadow: 0 11px 28px #0c2c4845; }
.home-primary-action:focus-visible, .home-text-link:focus-visible, .home-quick-capture summary:focus-visible { outline: 3px solid #efb95e; outline-offset: 3px; }

.home-main-column, .home-side-column { display: grid; align-content: start; gap: 18px; }
.home-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  box-shadow: 0 9px 26px #173e620b;
}
.home-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.home-card h2 { margin: 6px 0 16px; color: var(--home-ink); font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.home-text-link { margin-top: 3px; color: var(--home-blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-text-link:hover { text-decoration: underline; }

.home-tasks { min-height: 292px; }
.home-task-list { display: grid; gap: 5px; }
.home-task-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
}
.home-task-status {
  width: 16px;
  color: #2d9b62;
  font: 700 18px/15px system-ui;
  text-align: center;
}
.home-task-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  padding: 0;
  border: 1.5px solid #afbfcd;
  border-radius: 7px;
  background: #fff;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.home-task-check:hover { border-color: var(--home-blue); background: var(--home-sky); }
.home-task-row strong { display: block; color: var(--home-ink); font-size: 13px; line-height: 1.35; }
.home-task-row small { display: block; margin-top: 3px; color: var(--home-muted); font-size: 11px; line-height: 1.35; }
.home-task-row.done strong, .home-task-row.done small { color: #9aa7b2; }
.home-task-row.calendar { grid-template-columns: 42px minmax(0, 1fr); }
.home-task-row.calendar .home-task-check { width: auto; min-width: 21px; padding: 0 5px; border: 0; background: var(--home-sky); color: var(--home-blue); cursor: default; font-size: 9px; }
.home-empty { padding: 26px 0 18px; color: var(--home-muted); font-size: 13px; line-height: 1.5; }
.home-more-note { margin: 8px 0 0 34px; color: var(--home-muted); font-size: 11px; }

.home-week-goals { background: var(--home-warm); border-color: #eee7db; box-shadow: none; }
.home-week-goals .goals-list { gap: 2px; }
.home-week-goals .goal-row { min-height: 34px; align-items: center; padding: 7px 0; border-top: 1px solid #eae3d8; }
.home-week-goals .goal-row:first-child { border-top: 0; }

.home-pulse-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-pulse-stats a { min-width: 0; padding: 12px 9px; color: inherit; background: #f5f8fb; border-radius: 12px; text-align: center; text-decoration: none; }
.home-pulse-stats a:hover { background: var(--home-sky); }
.home-pulse-stats strong { display: block; color: var(--home-blue); font-size: 24px; line-height: 1; }
.home-pulse-stats span { display: block; overflow: hidden; margin-top: 6px; color: var(--home-muted); font-size: 10px; text-overflow: ellipsis; }
.home-overview-details { margin-top: 13px; border-top: 1px solid var(--home-line); padding-top: 12px; }
.home-overview-details > summary { color: var(--home-muted); cursor: pointer; font-size: 11px; font-weight: 800; list-style-position: inside; }
.home-overview-details .overview-heading { margin-top: 14px; }
.home-overview-details h3 { margin: 0; color: var(--home-ink); font-size: 13px; }
.home-overview-details .stats { gap: 5px; margin: 12px 0 0; }
.home-overview-details .stat { padding: 9px 5px; border-radius: 10px; text-align: center; }
.home-overview-details .stat span { font-size: 19px; }
.home-overview-details .stat small { font-size: 9px; }

.home-recent .mini-card { padding: 10px 0; border: 0; border-top: 1px solid #edf1f5; border-radius: 0; }
.home-recent .mini-card:first-child { border-top: 0; }
.home-recent .mini-card:hover { background: transparent; }
.home-recent .mini-pill { background: var(--home-sky); }

.home-quick-capture { overflow: hidden; background: #fff; border: 1px solid var(--home-line); border-radius: 18px; box-shadow: 0 9px 26px #173e620b; }
.home-quick-capture > summary { display: flex; align-items: center; gap: 13px; padding: 18px 20px; cursor: pointer; list-style: none; }
.home-quick-capture > summary::-webkit-details-marker { display: none; }
.home-quick-capture > summary:hover { background: #f8fafc; }
.home-capture-plus { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--home-blue); border-radius: 11px; font-size: 23px; line-height: 1; }
.home-quick-capture summary strong { display: block; color: var(--home-ink); font-size: 13px; }
.home-quick-capture summary small { display: block; margin-top: 3px; color: var(--home-muted); font-size: 10px; }
.home-quick-capture form { padding: 2px 20px 20px; border-top: 1px solid var(--home-line); }
.home-quick-capture form label { margin: 13px 0 0; font-size: 11px; }
.home-quick-capture form label span { color: var(--home-muted); font-weight: 400; }
.home-quick-capture form input { padding: 9px 10px; margin-top: 5px; font-size: 13px; }
.home-quick-capture form .button { width: 100%; margin-top: 14px; }

@media (max-width: 1100px) {
  .home-b { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); padding: 18px 15px 0; gap: 14px; }
  .home-focus { padding: 26px; }
  .home-primary-action { min-width: 205px; }
}

@media (max-width: 850px) {
  .home-b { grid-template-columns: 1fr; padding: 17px 0 0; }
  .home-focus { grid-column: auto; }
  .home-side-column { grid-template-columns: 1fr 1fr; }
  .home-quick-capture { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .local-preview-note { display: none; }
  .home-b { padding: 14px 2px 0; gap: 11px; }
  .home-focus { min-height: 0; align-items: stretch; flex-direction: column; gap: 22px; padding: 24px 21px; border-radius: 19px; }
  .home-focus h2 { font-size: 29px; }
  .home-primary-action { min-width: 0; width: 100%; }
  .home-side-column { grid-template-columns: 1fr; gap: 11px; }
  .home-quick-capture { grid-column: auto; }
  .home-card { padding: 19px; border-radius: 17px; }
  .home-tasks { min-height: 0; }
}
