/* ============================================================
   Home Module Styles
   ============================================================ */

/* Module-local token: white text on accent background (always white regardless of theme) */
:root {
  --home-on-accent: #fff;
}

/* ── Full-bleed container override ── */

.strata-content:has(.strata-module-container[data-module="home"]) {
  padding: 0;
  overflow: hidden;
}

.strata-module-container[data-module="home"] {
  max-width: none;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

/* ── Root layout ── */

[data-module="home"] .home-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
}

/* ── Fixed header ── */

[data-module="home"] .home-header {
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ── Greeting block ── */

[data-module="home"] .home-greeting-block {
  padding: 32px 40px 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

[data-module="home"] .home-greeting-block.home-visible {
  opacity: 1;
  transform: none;
}

[data-module="home"] .home-greeting-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

[data-module="home"] .home-greeting-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 10px;
}

[data-module="home"] .home-greeting-status {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 620px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

[data-module="home"] .home-greeting-status.home-visible {
  opacity: 1;
  transform: none;
}

[data-module="home"] .home-greeting-status strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Scroll area ── */

[data-module="home"] .home-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 40px;
}

/* ── Back button ── */

[data-module="home"] .home-back-btn {
  /* display managed by JS; base opacity/transform for entrance */
  align-items: center;
  gap: 7px;
  margin: 20px 40px 0;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.12s;
}

[data-module="home"] .home-back-btn.home-visible {
  opacity: 1;
  transform: none;
  display: flex;
}

[data-module="home"] .home-back-btn:hover {
  background: var(--panel-2);
}

/* ── Day view (two-column grid) ── */

[data-module="home"] .home-day-view {
  padding: 28px 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

[data-module="home"] .home-day-view.home-visible {
  opacity: 1;
  transform: none;
}

/* collapsing: driven by inline max-height set before rAF; !important lets
   the class override the inline max-height to animate to 0 */
[data-module="home"] .home-day-view.home-collapsing {
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1),
              transform 0.3s cubic-bezier(0.4,0,0.2,1),
              max-height 0.4s cubic-bezier(0.4,0,0.2,1),
              padding 0.4s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

[data-module="home"] .home-day-col-hdr {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* ── Timeline ── */

[data-module="home"] .home-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-module="home"] .home-tl-rule {
  position: absolute;
  /* Bisect the dots: time width 48 + dot margin-left 8 + dot radius 4 = 60. */
  left: 60px;
  top: 4px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

[data-module="home"] .home-tl-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 16px;
  cursor: pointer;
}

[data-module="home"] .home-tl-item:last-child {
  padding-bottom: 0;
}

[data-module="home"] .home-tl-time {
  width: 48px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding-top: 4px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

[data-module="home"] .home-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 5px 12px 0 8px;
  position: relative;
  z-index: 1;
}

[data-module="home"] .home-tl-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

[data-module="home"] .home-tl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

[data-module="home"] .home-tl-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

[data-module="home"] .home-tl-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 0;
}

/* ── Tasks list ── */

[data-module="home"] .home-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-module="home"] .home-task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}

[data-module="home"] .home-task-item:hover {
  background: var(--panel-2);
}

[data-module="home"] .home-task-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  margin-top: 1px;
}

[data-module="home"] .home-task-body {
  flex: 1;
  min-width: 0;
}

[data-module="home"] .home-task-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}

[data-module="home"] .home-task-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

[data-module="home"] .home-task-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

[data-module="home"] .home-task-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--border);
  color: var(--text-tertiary);
}

[data-module="home"] .home-task-badge.urgent {
  background: var(--warning-soft);
  color: var(--warning);
}

[data-module="home"] .home-task-overflow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

[data-module="home"] .home-task-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 0;
}

/* -- Day-view loading skeleton --
   While the day-view providers (tasks + meetings) are still reporting in, the
   timeline / tasks columns hold their real (empty) arrays, which would render
   the 'No meetings scheduled today.' / 'No tasks due this week.' empty copy.
   Showing that copy and then snapping to populated rows once a late provider
   (e.g. outlook-sync's Graph poll) fires is the empty-then-populate flash this
   block prevents. .home-day-loading on .home-root suppresses the empty copy and
   paints shimmer placeholder rows instead. The JS removes the class once the
   data has settled (or a fallback timeout elapses for a genuinely empty day). */

[data-module="home"] .home-day-loading .home-tl-empty,
[data-module="home"] .home-day-loading .home-task-empty {
  display: none;
}

[data-module="home"] .home-day-loading .home-timeline,
[data-module="home"] .home-day-loading .home-tasks-list {
  position: relative;
  min-height: 96px;
}

/* Skeleton placeholder rows for a loading column. ::before draws three stacked
   rounded bars (a repeating vertical gradient: a 20px token-tinted band then a
   12px transparent gap); ::after sweeps a moving highlight across them for the
   shimmer. No placeholder DOM and no hardcoded colors -- every value is a theme
   token, so both themes resolve correctly. */
[data-module="home"] .home-day-loading .home-timeline::before,
[data-module="home"] .home-day-loading .home-tasks-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 92px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--panel-2) 0,
    var(--panel-2) 20px,
    transparent 20px,
    transparent 32px
  );
  border-radius: 8px;
  pointer-events: none;
}

[data-module="home"] .home-day-loading .home-timeline::after,
[data-module="home"] .home-day-loading .home-tasks-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 92px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-strong) 50%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 60% 100%;
  background-position: -60% 0;
  /* clip the sweep to the bar shapes so the highlight only rides the bars */
  -webkit-mask-image: repeating-linear-gradient(
    to bottom,
    var(--text-primary) 0,
    var(--text-primary) 20px,
    transparent 20px,
    transparent 32px
  );
  mask-image: repeating-linear-gradient(
    to bottom,
    var(--text-primary) 0,
    var(--text-primary) 20px,
    transparent 20px,
    transparent 32px
  );
  animation: home-skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes home-skeleton-shimmer {
  from { background-position: -60% 0; }
  to { background-position: 160% 0; }
}

/* == Onboarding checklist (Slice 6) == */
/* Calm, token-driven, compact. Sits just under the greeting, above My Day. */

[data-module="home"] .home-onboarding {
  padding: 0 40px 4px;
}

[data-module="home"] .home-ob-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

[data-module="home"] .home-ob-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

[data-module="home"] .home-ob-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

[data-module="home"] .home-ob-progress {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

[data-module="home"] .home-ob-dismiss {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  touch-action: manipulation;
}

[data-module="home"] .home-ob-dismiss:hover {
  background: var(--panel-2);
  color: var(--text-secondary);
}

[data-module="home"] .home-ob-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-module="home"] .home-ob-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--text-secondary);
}

/* Only affordance steps are <button>s; make those clearly clickable. */
[data-module="home"] button.home-ob-step {
  cursor: pointer;
  touch-action: manipulation;
}

[data-module="home"] button.home-ob-step:hover {
  background: var(--panel-2);
}

[data-module="home"] .home-ob-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  color: var(--success);
  background: transparent;
}

[data-module="home"] .home-ob-step.is-done .home-ob-check {
  border-color: var(--success);
  background: var(--success-soft);
}

[data-module="home"] .home-ob-check-glyph {
  display: block;
}

[data-module="home"] .home-ob-label {
  font-size: 13px;
  color: var(--text-primary);
}

[data-module="home"] .home-ob-step.is-done .home-ob-label {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

[data-module="home"] .home-ob-optional {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

/* Optional quick-tour footer (P2-8). Quiet, secondary; sits near Dismiss. */
[data-module="home"] .home-ob-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

[data-module="home"] .home-ob-tour {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
}

[data-module="home"] .home-ob-tour:hover {
  background: var(--panel-2);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  [data-module="home"] .home-day-loading .home-timeline::after,
  [data-module="home"] .home-day-loading .home-tasks-list::after {
    animation: none;
  }
}

/* ── New user state ── */

[data-module="home"] .home-new-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

[data-module="home"] .home-new-user.home-visible {
  opacity: 1;
  transform: none;
}

[data-module="home"] .home-nu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  margin-top: 20px;
}

[data-module="home"] .home-nu-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

[data-module="home"] .home-nu-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

[data-module="home"] .home-nu-primary {
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--home-on-accent);
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

[data-module="home"] .home-nu-primary:hover {
  opacity: 0.88;
}

[data-module="home"] .home-nu-secondary {
  padding: 9px 20px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

[data-module="home"] .home-nu-secondary:hover {
  background: var(--panel);
}

/* ── "Where you left off" trigger row ── */

[data-module="home"] .home-wlo-trigger {
  margin: 8px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.4,0,0.2,1),
              background 0.12s;
}

[data-module="home"] .home-wlo-trigger.home-visible {
  opacity: 1;
  transform: none;
}

[data-module="home"] .home-wlo-trigger:hover {
  background: var(--panel-2);
}

[data-module="home"] .home-wlo-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-module="home"] .home-wlo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-module="home"] .home-wlo-icon {
  color: var(--text-tertiary);
  display: inline-flex;
}

[data-module="home"] .home-wlo-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

[data-module="home"] .home-wlo-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

[data-module="home"] .home-wlo-chev {
  color: var(--text-tertiary);
  display: inline-flex;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-module="home"] .home-wlo-trigger[aria-expanded="true"] .home-wlo-chev {
  transform: rotate(180deg);
}

/* ── Pulse wrap ── */

[data-module="home"] .home-pulse-wrap {
  padding: 16px 40px 32px;
  /* max-height, overflow, opacity managed by JS */
}

/* ── Pulse table ── */

[data-module="home"] .home-pulse-table {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

[data-module="home"] .home-pulse-head {
  display: grid;
  grid-template-columns: 1fr 220px 160px 120px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

[data-module="home"] .home-pulse-hcell {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
}

[data-module="home"] .home-pulse-rows {
  display: flex;
  flex-direction: column;
}

[data-module="home"] .home-pulse-row {
  display: grid;
  grid-template-columns: 1fr 220px 160px 120px;
  padding: 15px 20px;
  align-items: center;
  cursor: pointer;
  transition: background 0.1s;
}

[data-module="home"] .home-pulse-row + .home-pulse-row {
  border-top: 1px solid var(--border);
}

[data-module="home"] .home-pulse-row:hover {
  background: var(--row-hover);
}

[data-module="home"] .home-pulse-proj {
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-module="home"] .home-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

[data-module="home"] .home-pulse-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

[data-module="home"] .home-pulse-code {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

[data-module="home"] .home-pulse-dl-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

[data-module="home"] .home-pulse-dl-when {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

[data-module="home"] .home-pulse-mod {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-module="home"] .home-pulse-mod-chip {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-module="home"] .home-pulse-mod-chip::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
}

[data-module="home"] .home-pulse-mod-label {
  font-size: 12px;
  color: var(--text-secondary);
}

[data-module="home"] .home-pulse-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

[data-module="home"] .home-pulse-empty {
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Open button ── */

[data-module="home"] .home-open-btn {
  padding: 4px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}

[data-module="home"] .home-open-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  [data-module="home"] .home-greeting-block,
  [data-module="home"] .home-greeting-status,
  [data-module="home"] .home-day-view,
  [data-module="home"] .home-new-user,
  [data-module="home"] .home-wlo-trigger,
  [data-module="home"] .home-back-btn {
    transition: none;
    opacity: 1;
    transform: none;
  }

  [data-module="home"] .home-day-view.home-collapsing {
    transition: none;
  }

  [data-module="home"] .home-pulse-wrap {
    transition: none;
  }
}

/* ── Responsive: tablet ── */

@media (max-width: 768px) {
  [data-module="home"] .home-greeting-block {
    padding: 24px 24px 16px;
  }

  [data-module="home"] .home-greeting-name {
    font-size: 22px;
  }

  [data-module="home"] .home-day-view {
    padding: 20px 24px 18px;
    gap: 16px;
  }

  [data-module="home"] .home-wlo-trigger {
    margin-left: 24px;
    margin-right: 24px;
  }

  [data-module="home"] .home-pulse-wrap {
    padding: 12px 24px 24px;
  }

  [data-module="home"] .home-back-btn {
    margin-left: 24px;
    margin-right: 24px;
  }

  /* Slice 6 (P2-9): tablet touch targets (project minimum 40px). */
  [data-module="home"] .home-ob-dismiss {
    min-width: 40px;
    min-height: 40px;
  }
  [data-module="home"] .home-ob-step {
    min-height: 40px;
  }
  [data-module="home"] .home-ob-tour {
    min-height: 40px;
  }
}

/* ── Responsive: phone ── */

/* Slice 6 (P2-9 / P2 touch-target): the 44px phone touch minimums must cover
   the FULL phone band. Strata's phone breakpoint is max-width:640px (see
   platform/styles.css, mobile.css), so anchor the 44px targets there -- a
   540px cutoff left 541-640px with only the 40px tablet minimum. Layout
   tweaks stay at 540px below. */
@media (max-width: 640px) {
  [data-module="home"] .home-ob-dismiss {
    min-width: 44px;
    min-height: 44px;
  }
  [data-module="home"] .home-ob-step {
    min-height: 44px;
  }
  [data-module="home"] .home-ob-tour {
    min-height: 44px;
  }
}

@media (max-width: 540px) {
  [data-module="home"] .home-greeting-block {
    padding: 20px 16px 14px;
  }

  [data-module="home"] .home-greeting-name {
    font-size: 20px;
  }

  [data-module="home"] .home-greeting-date {
    font-size: 10px;
  }

  [data-module="home"] .home-day-view {
    padding: 16px 16px 14px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  [data-module="home"] .home-wlo-trigger {
    margin-left: 16px;
    margin-right: 16px;
  }

  [data-module="home"] .home-pulse-wrap {
    padding: 10px 16px 20px;
  }

  [data-module="home"] .home-pulse-head,
  [data-module="home"] .home-pulse-row {
    grid-template-columns: 1fr 1fr;
  }

  [data-module="home"] .home-pulse-head .home-pulse-hcell:nth-child(3),
  [data-module="home"] .home-pulse-head .home-pulse-hcell:nth-child(4),
  [data-module="home"] .home-pulse-row > div:nth-child(3),
  [data-module="home"] .home-pulse-row > div:nth-child(4) {
    display: none;
  }

  [data-module="home"] .home-back-btn {
    margin-left: 16px;
    margin-right: 16px;
  }

  /* Slice 7: narrow the onboarding checklist gutter to match the mobile content
     gutter (greeting drops to 16px here); keep comfortable card padding. The
     44px touch targets for dismiss / steps / tour already land at <=640px. */
  [data-module="home"] .home-onboarding {
    padding: 0 16px 4px;
  }
  [data-module="home"] .home-ob-card {
    padding: 14px 14px;
  }
}
