/*
 * Owner-only Today proof: approved production card plates on the exact V16
 * structure. The supplied plates are the sole interior artwork; live app
 * content remains above them and the original card buttons remain interactive.
 */

html body #today .today-home-card-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 7px 0 20px;
  overflow: visible;
}

/*
 * The V442 cascade fixes card geometry and materials with !important. These
 * Today-only declarations use matching priority to establish a 15:7 plate
 * interior without affecting another route or component.
 */
html body #today .today-home-card-stack > .today-home-unified-card.recovery,
html body #today .today-home-card-stack > .today-home-unified-card.nonneg,
html body #today .today-home-card-stack > .today-home-unified-card.checkin,
html body #today .today-home-card-stack > .today-home-unified-card.evening {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 94%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 15 / 7;
  justify-self: center;
  margin-inline: auto !important;
  border: 0 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: visible;
  background: #eee2d4 !important;
  box-shadow:
    0 0 0 2px #eee2d4,
    -1px -1px 0 4px #fffaf4,
    1px 2px 0 4px #d6c4b3,
    0 7px 7px 4px rgba(59, 48, 40, 0.22),
    0 14px 22px 5px rgba(50, 42, 35, 0.15) !important;
  color: #25292d;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

/* Remove the rejected V442 blend panel so only the approved plate is visible. */
html body #today .today-home-card-stack > .today-home-unified-card.recovery::after,
html body #today .today-home-card-stack > .today-home-unified-card.nonneg::after,
html body #today .today-home-card-stack > .today-home-unified-card.checkin::after,
html body #today .today-home-card-stack > .today-home-unified-card.evening::after {
  content: none !important;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-visual {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

/* No legacy overlays, masks or tonal panels may cover the approved artwork. */
html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-visual::before,
html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-visual::after {
  content: none !important;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-approved-card-plate,
html body #today .today-home-card-stack > .today-home-unified-card .today-approved-card-plate > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible;
  filter: none !important;
  transform: none !important;
  pointer-events: none;
  user-select: none;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-content {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  min-width: 0;
  padding: 0;
  pointer-events: none;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-content::after {
  content: none !important;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-icon {
  position: absolute;
  top: 12px;
  left: 13px;
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid #efe4d7;
  border-radius: 50%;
  box-sizing: border-box;
  place-items: center;
  background: linear-gradient(145deg, #263038 0%, #111920 62%, #090f14 100%);
  color: var(--today-cyan);
  box-shadow:
    inset 0 0 0 1px rgba(32, 213, 239, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 1px 0 rgba(255, 250, 244, 0.9),
    0 4px 7px rgba(22, 20, 18, 0.33);
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-app-card-status {
  position: absolute;
  top: 17px;
  left: 64px;
  display: inline-flex;
  min-height: 25px;
  margin: 0;
  padding: 6px 9px 5px;
  border: 1px solid rgba(33, 62, 75, 0.26) !important;
  border-radius: 999px;
  box-sizing: border-box;
  align-items: center;
  background: rgba(247, 238, 226, 0.96) !important;
  color: #193a48 !important;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 5px rgba(35, 30, 26, 0.18);
}

html body #today .today-home-card-stack > .today-home-unified-card .today-app-card-status.is-done {
  border-color: #236b83 !important;
  background: linear-gradient(145deg, #50dcec, #257894 60%, #193a48) !important;
  color: #fffaf4 !important;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy,
html body #today .today-home-card-stack > .today-home-unified-card.checkin.is-checked-in .today-home-card-copy {
  position: absolute;
  top: 75px;
  left: 14px;
  display: grid;
  width: calc(58.5% - 18px);
  min-width: 0;
  margin: 0;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy small {
  display: none;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy strong,
html body #today .today-home-card-stack > .today-home-unified-card.recovery .today-home-card-copy strong,
html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy strong,
html body #today .today-home-card-stack > .today-home-unified-card.checkin .today-home-card-copy strong,
html body #today .today-home-card-stack > .today-home-unified-card.evening .today-home-card-copy strong {
  color: #25292d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(21px, 5.8vw, 26px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy strong,
html body #today .today-home-card-stack > .today-home-unified-card.evening .today-home-card-copy strong {
  font-size: clamp(20px, 5.05vw, 23px);
  letter-spacing: -0.035em;
}

html body #today .today-home-card-stack > .today-home-unified-card.recovery .today-home-card-copy strong {
  max-width: 100%;
  font-size: clamp(18px, 5.05vw, 20px);
  letter-spacing: -0.075em;
  white-space: nowrap;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy > span,
html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy > span,
html body #today .today-home-card-stack > .today-home-unified-card.checkin .today-home-card-copy > span {
  max-width: 100%;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #38434a !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 3.35vw, 14px);
  font-style: normal;
  /* Overrides the inline V376 Today-copy rule's font-weight: 700 !important. */
  font-weight: 600 !important;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy {
  top: 74px;
  width: calc(61% - 18px);
}

html body #today .today-home-card-stack > .today-home-unified-card.recovery .today-home-card-copy > span {
  max-width: calc(100% - clamp(12px, 3.2vw, 14px));
  min-width: 0;
  justify-self: start;
  white-space: normal;
}

html body #today .today-home-card-stack > .today-home-unified-card.evening .today-home-card-copy {
  width: calc(61% - 18px);
}

html body #today .today-home-card-stack > .today-home-unified-card.checkin .today-checkin-home-response {
  max-width: 100%;
  margin-top: 3px;
  color: #38434a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-shadow: none;
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-nonneg-progress-studs {
  position: absolute;
  left: 14px;
  bottom: 9px;
  display: grid;
  grid-template-columns: repeat(3, 13px);
  gap: 6px;
  width: auto;
  height: 13px;
  margin: 0;
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-nonneg-progress-studs > i {
  position: relative;
  display: grid;
  width: 13px;
  height: 13px;
  border: 1px solid #617984;
  border-radius: 50%;
  box-sizing: border-box;
  place-items: center;
  background: #eee4d8;
  box-shadow: inset 0 2px 3px rgba(25, 58, 72, 0.18), 0 1px 0 #fffaf4;
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-nonneg-progress-studs > i.is-done {
  border-color: var(--today-cyan);
  background: linear-gradient(145deg, var(--today-cyan), #236c8e 60%, #193a48);
}

html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-nonneg-progress-studs > i.is-done::after {
  content: "✓";
  color: #fffaf4;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
}

html body #today .today-home-card-stack > .today-home-unified-card .today-card-action-disc {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(46, 70, 80, 0.46);
  border-radius: 50%;
  box-sizing: border-box;
  place-items: center;
  background: linear-gradient(145deg, #fffaf4 0%, #eadcca 100%);
  color: #193a48;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -2px 3px rgba(25, 58, 72, 0.1),
    0 4px 8px rgba(22, 19, 17, 0.3);
  pointer-events: none;
}

html body #today .today-home-card-stack > .today-home-unified-card:focus-visible {
  outline: 3px solid #193a48;
  outline-offset: 8px;
  filter: drop-shadow(0 0 3px rgba(32, 213, 239, 0.45));
}

html body #today .today-home-card-stack > .today-home-unified-card:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 2px #eee2d4,
    -1px -1px 0 4px #fffaf4,
    1px 2px 0 4px #d6c4b3,
    0 4px 5px 4px rgba(59, 48, 40, 0.2),
    0 9px 15px 5px rgba(50, 42, 35, 0.13) !important;
}

@media (max-width: 360px) {
  html body #today .today-home-card-stack > .today-home-unified-card.recovery,
  html body #today .today-home-card-stack > .today-home-unified-card.nonneg,
  html body #today .today-home-card-stack > .today-home-unified-card.checkin,
  html body #today .today-home-card-stack > .today-home-unified-card.evening {
    width: 95%;
  }

  html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-icon {
    top: 10px;
    left: 11px;
    width: 40px;
    height: 40px;
  }

  html body #today .today-home-card-stack > .today-home-unified-card .today-app-card-status {
    top: 14px;
    left: 58px;
  }

  html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy,
  html body #today .today-home-card-stack > .today-home-unified-card.checkin.is-checked-in .today-home-card-copy {
    top: 70px;
    left: 12px;
    width: calc(59% - 16px);
  }

  html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy {
    top: 69px;
    width: calc(63% - 16px);
  }

  html body #today .today-home-card-stack > .today-home-unified-card.evening .today-home-card-copy {
    width: calc(63% - 16px);
  }

  html body #today .today-home-card-stack > .today-home-unified-card .today-home-card-copy > span,
  html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-home-card-copy > span,
  html body #today .today-home-card-stack > .today-home-unified-card.checkin .today-home-card-copy > span {
    font-size: 12px;
  }

  html body #today .today-home-card-stack > .today-home-unified-card.nonneg .today-nonneg-progress-studs {
    left: 12px;
    bottom: 7px;
  }

  html body #today .today-home-card-stack > .today-home-unified-card .today-card-action-disc {
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 800px) {
  html body #today .today-home-card-stack > .today-home-unified-card.recovery,
  html body #today .today-home-card-stack > .today-home-unified-card.nonneg,
  html body #today .today-home-card-stack > .today-home-unified-card.checkin,
  html body #today .today-home-card-stack > .today-home-unified-card.evening {
    width: min(72%, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #today .today-home-card-stack > .today-home-unified-card.recovery,
  html body #today .today-home-card-stack > .today-home-unified-card.nonneg,
  html body #today .today-home-card-stack > .today-home-unified-card.checkin,
  html body #today .today-home-card-stack > .today-home-unified-card.evening {
    transition: none;
  }

  html body #today .today-home-card-stack > .today-home-unified-card:active {
    transform: none;
  }
}
