/* ============================================================================
 * H38 Owner Home — Bold Numbers (2026-10-11)
 * ----------------------------------------------------------------------------
 * Ricky picked Direction 1 from the mockups. Design language:
 *
 * - LARGE URGENT NUMBERS. The key metric dominates every card.
 * - MEANINGFUL RED/GREEN STATUS. Urgent = red, good news = green.
 *   You can tell what needs you before you read a word.
 * - MINIMAL TEXT. Numbers do the talking.
 * - LARGE ACTION BUTTONS. Prominent, impossible to miss.
 *
 * This is deliberately the visual opposite of Minimal Clean: when an update
 * lands, the owner SEES it immediately.
 *
 * Philosophy: "The owner doesn't have a learning curve."
 * ========================================================================== */

/* ---------- Container ---------- */
.h38-owner-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0 48px;
  max-width: 720px;
}

/* ---------- Hero header (bold) ---------- */
.h38-owner-head {
  background: linear-gradient(160deg, #262626 0%, #171717 55%, #101010 100%);
  border: none;
  border-radius: 16px;
  padding: 20px 20px 18px;
  margin: 0;
  box-shadow: 0 14px 30px rgba(8, 15, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .07);
  position: static;
  overflow: visible;
  color: #fff;
}
.h38-owner-head::after { display: none; }
.h38-owner-head h1 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 2px;
}
.h38-owner-head p {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  margin: 0;
  font-weight: 500;
}
.h38-owner-head .h38-type-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: none;
  color: #1a1a1a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Section labels (loud) ---------- */
.h38-section-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 4px -8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.h38-section-label .h38-count {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  padding: 0 7px;
}
.h38-urgent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.18);
  animation: none;
}

/* ---------- Quick actions (bold grid) ---------- */
.h38-quick-hero {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.h38-quick-hero > strong {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.h38-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.h38-quick-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 4px;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  background: #fff;
  font-size: .74rem;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
  line-height: 1.3;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(26,26,26,.9);
}
.h38-quick-grid button span {
  font-size: 1.5rem;
  line-height: 1;
}
.h38-quick-grid button:hover {
  border-color: #1a1a1a;
  box-shadow: 3px 3px 0 rgba(26,26,26,.9);
  transform: translate(-1px,-1px);
}
.h38-quick-grid button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(26,26,26,.9); }

/* ---------- Action cards: BOLD NUMBERS ---------- */
.h38-action-card {
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9);
  position: static;
  overflow: visible;
}
.h38-action-card::before { display: none; }
/* Urgent: red everything */
.h38-action-card.h38-action-urgent {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 4px 4px 0 #dc2626;
}
.h38-action-head,
.h38-action-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.h38-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  background: #1a1a1a;
  color: #fff;
  box-shadow: none;
}
.h38-action-urgent .h38-action-icon { background: #dc2626; color: #fff; }
.h38-action-text { flex: 1; min-width: 0; }
.h38-action-text strong {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #1a1a1a;
}
.h38-action-urgent .h38-action-text strong { color: #dc2626; }
.h38-action-text small {
  display: block;
  font-size: .85rem;
  color: #4b5563;
  line-height: 1.4;
  font-weight: 500;
}
/* THE big number */
.h38-action-number {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 2px;
}
.h38-action-urgent .h38-action-number { color: #dc2626; }
.h38-action-sub {
  font-size: .92rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.4;
}
.h38-action-urgent .h38-action-sub { color: #7f1d1d; }

/* Action buttons — LARGE, impossible to miss */
.h38-action-buttons {
  display: flex;
  gap: 10px;
}
.h38-action-main {
  flex: 1;
  min-height: 56px;
  font-size: 1.02rem;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(26,26,26,.35);
  cursor: pointer;
  letter-spacing: 0;
}
.h38-action-urgent .h38-action-main {
  background: #dc2626;
  border-color: #991b1b;
  box-shadow: 3px 3px 0 rgba(220,38,38,.35);
}
.h38-action-main:hover { filter: brightness(1.08); }
.h38-action-main:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.h38-action-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.h38-action-ai:hover { background: #f3f4f6; }

/* ---------- Type heroes (bold number versions) ---------- */
.h38-schedule-hero,
.h38-project-hero,
.h38-route-hero {
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9);
}
.h38-route-hero { border-color: #16a34a; box-shadow: 4px 4px 0 #16a34a; }
.h38-schedule-hero .h38-schedule-top,
.h38-project-hero .h38-project-top,
.h38-route-hero .h38-route-top {
  padding: 18px 18px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.h38-schedule-hero .h38-schedule-icon,
.h38-project-hero .h38-project-icon,
.h38-route-hero .h38-route-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.h38-route-hero .h38-route-icon { background: #16a34a; }
/* Big hero number */
.h38-hero-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
  margin-left: auto;
  flex-shrink: 0;
}
.h38-route-hero .h38-hero-number { color: #16a34a; }
.h38-schedule-hero strong,
.h38-project-hero strong,
.h38-route-hero strong {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.h38-schedule-hero small,
.h38-project-hero small,
.h38-route-hero small {
  color: #4b5563;
  font-size: .85rem;
  font-weight: 500;
}
.h38-schedule-hero .h38-schedule-stops,
.h38-route-hero .h38-route-stops {
  display: flex;
  gap: 8px;
  padding: 8px 18px 12px;
  overflow-x: auto;
}
.h38-schedule-hero .h38-stop,
.h38-route-hero .h38-stop {
  flex-shrink: 0;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .78rem;
  min-width: 110px;
  color: #374151;
}
.h38-schedule-hero .h38-stop b,
.h38-route-hero .h38-stop b { display: block; font-size: .85rem; font-weight: 800; color: #1a1a1a; }
.h38-schedule-hero .h38-stop span,
.h38-route-hero .h38-stop span { color: #6b7280; font-weight: 500; }
.h38-schedule-hero .h38-schedule-actions,
.h38-project-hero .h38-project-actions,
.h38-route-hero .h38-route-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}
.h38-schedule-hero .h38-schedule-go,
.h38-project-hero .h38-project-go,
.h38-route-hero .h38-route-go {
  flex: 1;
  min-height: 56px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(26,26,26,.35);
}
.h38-route-hero .h38-route-go {
  background: #16a34a;
  border-color: #14532d;
  box-shadow: 3px 3px 0 rgba(22,163,74,.35);
}
.h38-route-hero .h38-route-opt {
  background: #fff;
  border: 2px solid #1a1a1a !important;
  color: #1a1a1a;
  min-height: 56px;
  border-radius: 12px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}
.h38-project-hero .h38-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 18px 12px;
}
.h38-project-hero .h38-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}
.h38-project-hero .h38-project-main b { display: block; font-size: .9rem; font-weight: 700; color: #1a1a1a; }
.h38-project-hero .h38-project-status { font-size: .78rem; color: #6b7280; font-weight: 500; }
.h38-project-hero .h38-project-materials {
  flex-shrink: 0;
  font-size: .76rem;
  font-weight: 800;
  background: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: 999px;
  padding: 4px 10px;
  color: #dc2626;
}

/* ---------- Progress bar (bold) ---------- */
.h38-progress-wrap { margin-top: 10px; }
.h38-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.h38-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  border: 2px solid #1a1a1a;
}
.h38-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #16a34a;
  transition: width .5s ease;
  min-width: 8px;
}

/* ---------- Seasonal banner (bold) ---------- */
.h38-season-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 16px;
  background: #fffbeb;
  border: 2px solid #1a1a1a;
  box-shadow: 3px 3px 0 rgba(26,26,26,.9);
}
.h38-season-banner .h38-season-icon { font-size: 1.8rem; }
.h38-season-banner strong { display: block; color: #1a1a1a; font-size: 1rem; font-weight: 800; }
.h38-season-banner small { color: #4b5563; font-size: .85rem; line-height: 1.4; font-weight: 500; }

/* ---------- Tasks summary (bold number) ---------- */
.h38-tasks-summary {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9);
}
.h38-tasks-summary .h38-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.h38-tasks-summary .h38-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.h38-tasks-count {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.h38-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid #f3f4f6;
}
.h38-task-row:last-child { border-bottom: 0; padding-bottom: 0; }
.h38-task-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  flex-shrink: 0;
}
.h38-task-row strong { font-size: .92rem; font-weight: 600; display: block; color: #1a1a1a; }
.h38-task-row small { color: #6b7280; font-size: .8rem; font-weight: 500; }

/* ---------- Schedule snapshot (bold) ---------- */
.h38-schedule-card {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9);
}
.h38-schedule-card h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: #1a1a1a; }
.h38-sched-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 2px solid #f3f4f6;
}
.h38-sched-row:last-child { border-bottom: 0; }
.h38-sched-time {
  min-width: 70px;
  font-weight: 800;
  color: #1a1a1a;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.h38-sched-title { font-size: .9rem; color: #1a1a1a; font-weight: 500; }

/* ---------- All clear (green, bold) ---------- */
.h38-all-clear {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 2px solid #16a34a;
  box-shadow: 4px 4px 0 #16a34a;
}
.h38-all-clear-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.h38-all-clear-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #16a34a;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  box-shadow: none;
  color: #fff;
}
.h38-all-clear-inner strong { font-size: 1.6rem; font-weight: 800; color: #14532d; letter-spacing: -.02em; }
.h38-all-clear-inner p { color: #4b5563; font-size: .92rem; margin: 0 0 16px; font-weight: 500; }
.h38-all-clear-cta {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 12px;
  border: 2px solid #14532d;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(22,163,74,.4);
}

/* ---------- Kit activity feed (bold numbers) ---------- */
.h38-kit-feed {
  background: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 rgba(26,26,26,.35);
  color: #fff;
}
.h38-kit-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.h38-kit-feed-title { display: flex; align-items: center; gap: 12px; }
.h38-kit-feed-count {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}
.h38-kit-feed-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.h38-kit-feed-head h2 small {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.h38-kit-feed-ask {
  border: 2px solid #fff;
  background: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  flex-shrink: 0;
}
.h38-kit-feed-ask:hover { background: rgba(255,255,255,.12); }
.h38-kit-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.h38-kit-feed-row:last-child { border-bottom: 0; }
.h38-kit-feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.h38-kit-feed-body { flex: 1; min-width: 0; }
.h38-kit-feed-body strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}
.h38-kit-feed-body small {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.h38-kit-feed-review {
  border: 2px solid #4ade80;
  background: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #4ade80;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}
.h38-kit-feed-review:hover { background: rgba(74,222,128,.14); }
.h38-kit-feed-empty {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  margin: 8px 0 0;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Quick Start hero (bold) ---------- */
.h38-qs-hero { margin: 0; }
.h38-qs-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  background: #fef08a;
  padding: 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9);
}
.h38-qs-emoji { font-size: 2rem; }
.h38-qs-text { flex: 1; }
.h38-qs-text strong { display: block; font-size: 1.05rem; font-weight: 800; color: #1a1a1a; }
.h38-qs-text small { display: block; font-size: .84rem; color: #4b5563; margin-top: 2px; font-weight: 500; }
.h38-qs-arrow { font-size: 1.6rem; color: #1a1a1a; font-weight: 800; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .h38-owner-home { gap: 18px; }
  .h38-owner-head { padding: 18px 18px 16px; border-radius: 14px; }
  .h38-owner-head h1 { font-size: 1.45rem; }
  .h38-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .h38-quick-grid button { min-height: 78px; font-size: .68rem; }
  .h38-quick-grid button span { font-size: 1.35rem; }
  .h38-action-card { padding: 18px 16px; }
  .h38-action-number { font-size: 3rem; }
  .h38-action-buttons { flex-direction: column; }
  .h38-action-main, .h38-action-ai { width: 100%; justify-content: center; }
  .h38-hero-number { font-size: 2.4rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .h38-owner-home { max-width: 680px; margin: 0 auto; }
  .h38-quick-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cascade wins vs office-polish.css ----------
 * office-polish.css uses `body.h38-auth-authorized #mainContent .card{...!important}`
 * which would flatten the Bold Numbers cards back to plain white. These
 * higher-specificity overrides restore the intended design. */
body.h38-auth-authorized #mainContent .card.h38-kit-feed {
  background: #1a1a1a !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 rgba(26,26,26,.35) !important;
}
body.h38-auth-authorized #mainContent .card.h38-action-card {
  border: 2px solid #1a1a1a !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 rgba(26,26,26,.9) !important;
  background: #fff !important;
}
body.h38-auth-authorized #mainContent .card.h38-action-card.h38-action-urgent {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  box-shadow: 4px 4px 0 #dc2626 !important;
}
body.h38-auth-authorized #mainContent button.h38-kit-feed-ask {
  border: 2px solid #fff !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
body.h38-auth-authorized #mainContent button.h38-kit-feed-review {
  border: 2px solid #4ade80 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #4ade80 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ---------- First-screen frames (opening-bounce fix v2, 2026-10-26) ----------
 * Every late-arriving first-screen card lands in a frame whose height is
 * reserved from the first paint and NEVER shrinks while the view lives.
 * Filling swaps the skeleton for the card inside the same reserved box, so
 * nothing below a frame can move when its data lands. Heights are
 * structural — each card's own layout budget at that breakpoint, measured
 * on the live H38 tenant — not learned from previous sessions: v1 learned
 * heights encoded a previous day's content and dropped the reservation on
 * fill, and the home still rode up or down by hundreds of pixels when the
 * fresh card differed from the guess. A filled frame keeps its reservation
 * as a floor (taller content may grow it; shorter content leaves the
 * difference as space inside the frame, never as movement). The platform
 * frame's reservation is additionally locked to the stack's real height
 * by H38FirstScreen.lockPlatform() once both stack cards have filled. */
.h38-first-slot {
  border-radius: 14px;
  margin: 0;
  background: linear-gradient(100deg, rgba(23, 42, 63, .05), rgba(23, 42, 63, .11), rgba(23, 42, 63, .05));
  background-size: 200% 100%;
  animation: h38-first-slot-pulse 1.6s ease-in-out infinite;
}
.h38-first-slot--mileage { min-height: 313px; }
.h38-first-slot--profitability { min-height: 160px; }
.h38-first-slot--platform { min-height: 1400px; }
@media (max-width: 760px) {
  .h38-first-slot--mileage { min-height: 403px; }
  .h38-first-slot--phoneToday { min-height: 568px; }
}
.h38-first-slot.is-filled {
  background: none;
  animation: none;
  border-radius: 0;
}
.h38-first-slot.is-released { display: none; }

/* ---------- Late top-card frames (desktop, 2026-10-26) ----------
 * The time clock, the customer-ready workspace and the access context
 * strip attach after the home paints, anchored under the screen header.
 * Their frames sit in the owner home's HTML in their settled order; each
 * module fills its frame instead of inserting into the flow. Heights are
 * each card's measured budget at desktop widths (the three together
 * measured ~707px of post-paint shift on the H38 tenant before this fix).
 * Frames render only at desktop widths (owner-home.js); a frame whose
 * card never arrives is collapsed by the render's backstop timer. */
.h38-home-frame {
  border-radius: 14px;
  margin: 0;
  background: linear-gradient(100deg, rgba(23, 42, 63, .05), rgba(23, 42, 63, .11), rgba(23, 42, 63, .05));
  background-size: 200% 100%;
  animation: h38-first-slot-pulse 1.6s ease-in-out infinite;
}
.h38-home-frame--time { min-height: 113px; }
.h38-home-frame--ready { min-height: 720px; }
.h38-home-frame--access { min-height: 76px; }
.h38-home-frame.is-filled {
  background: none;
  animation: none;
  border-radius: 0;
}
.h38-home-frame.is-released { display: none; }
@media (max-width: 760px) {
  /* Phone: the framed cards are secondary detail (the phone digest's
   * toggle territory), never first-screen content. Zero-height clipped
   * frames mean a card can land early, late, or in the wrong order and
   * still move nothing; expanding the phone details expands the frames
   * with everything else the toggle reveals. */
  .h38-home-frame {
    min-height: 0;
    height: 0;
    overflow: hidden;
    animation: none;
    background: none;
  }
  #mainContent[data-h38-phone-details='1'] .h38-home-frame {
    height: auto;
    overflow: visible;
  }
}

/* ---------- Kit feed reserve (2026-10-26) ----------
 * The "While You Were Away" feed fills this box after the home paints;
 * reserving its settled height keeps the home body from growing under the
 * quick actions when the feed lands. */
.h38-kit-feed-slot { min-height: 144px; }
@media (max-width: 760px) {
  .h38-kit-feed-slot { min-height: 153px; }
}

@keyframes h38-first-slot-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .h38-first-slot, .h38-home-frame { animation: none; }
}
