/*
 * Isolated preview only: the V442 Today overview rendered as a compact,
 * recessed daily console. Progress classes still come from the V442 state
 * renderer; this layer does not calculate or store completion.
 */

html body #today > .today-v3-body {
  padding-top: 20px;
}

html body #today .today-day-overview {
  --today-console-navy: #102a37;
  --today-console-blue: #193a48;
  --today-console-metal: #607784;
  box-sizing: border-box;
  margin: 0 0 18px;
  border: 1px solid rgba(38, 108, 142, 0.3);
  border-radius: 20px;
  padding: 0 14px 11px;
  background: linear-gradient(180deg, #fbf5ec 0%, #f4e8d6 100%);
  box-shadow:
    0 3px 6px rgba(35, 62, 76, 0.12),
    0 11px 22px rgba(54, 72, 85, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

html body #today .today-day-overview > .today-v3-daylabel {
  min-height: 43px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(38, 108, 142, 0.18);
  padding: 8px 1px 6px;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
}

html body #today .today-day-overview > .today-v3-daylabel > span {
  color: var(--today-console-blue);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

html body #today .today-day-overview > .today-v3-daylabel > #todayAppProgressCount {
  display: grid;
  min-width: 56px;
  min-height: 30px;
  border: 1px solid rgba(32, 213, 239, 0.44);
  border-radius: 11px;
  padding: 0 9px;
  box-sizing: border-box;
  place-items: center;
  background: linear-gradient(155deg, #173c4d 0%, var(--today-console-navy) 72%);
  color: #fff7ea;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.045em;
  box-shadow:
    inset 0 0 0 1px rgba(32, 213, 239, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.09),
    inset 0 -3px 5px rgba(2, 12, 18, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 3px 6px rgba(25, 58, 72, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.46);
}

html body #today .today-day-overview > .today-v3-dayintro {
  max-width: none;
  margin: 7px 1px 7px;
  color: #253b47;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

html body #today .today-day-overview > .today-app-progress {
  min-height: 30px;
  margin: 0;
  border: 1px solid rgba(58, 88, 104, 0.23);
  border-radius: 13px;
  padding: 5px 7px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #dbe4e5 0%, #edf0ec 100%);
  box-shadow:
    inset 0 3px 6px rgba(35, 57, 68, 0.19),
    inset 0 -1px 0 rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.88);
}

html body #today .today-day-overview .today-app-progress-dots {
  display: grid;
  grid-template-columns: 18px 1fr 18px 1fr 18px 1fr 18px;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}

html body #today .today-day-overview .today-app-progress-dots > i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  border: 2px solid var(--today-console-metal);
  border-radius: 50%;
  box-sizing: border-box;
  place-items: center;
  background: #f8f0e3;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 2px 3px rgba(25, 58, 72, 0.11),
    0 2px 4px rgba(25, 58, 72, 0.22);
}

html body #today .today-day-overview .today-app-progress-dots > span {
  height: 5px;
  border-radius: 999px;
  background: #aebfc6;
  box-shadow:
    inset 0 2px 3px rgba(25, 58, 72, 0.21),
    inset 0 -1px 0 rgba(255, 255, 255, 0.62);
}

html body #today .today-day-overview .today-app-progress-dots > i.is-done {
  border-color: var(--today-console-blue);
  background: linear-gradient(145deg, var(--today-cyan), #236c8e 56%, var(--today-console-blue));
  color: #fffdf9;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 3px 6px rgba(25, 58, 72, 0.3);
}

html body #today .today-day-overview .today-app-progress-dots > i.is-done::after {
  content: "✓";
  color: currentColor;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

html body #today .today-day-overview .today-app-progress-dots > span.is-done {
  background: linear-gradient(90deg, var(--today-console-blue), var(--today-cyan));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 2px rgba(16, 42, 55, 0.22);
}

/* The V442 renderer marks a real completed count; this selects its next node. */
html body #today .today-day-overview .today-app-progress-dots > i:first-child:not(.is-done),
html body #today .today-day-overview .today-app-progress-dots > i.is-done + span:not(.is-done) + i:not(.is-done) {
  border-color: var(--today-cyan);
  box-shadow:
    0 0 0 2px #f8f0e3,
    0 0 0 4px rgba(32, 213, 239, 0.34),
    0 0 7px rgba(32, 213, 239, 0.2),
    inset 0 2px 3px rgba(25, 58, 72, 0.1);
}

@media (max-width: 360px) {
  html body #today .today-day-overview {
    border-radius: 18px;
    padding-right: 12px;
    padding-left: 12px;
  }

  html body #today .today-day-overview > .today-v3-daylabel {
    padding-right: 1px;
    padding-left: 1px;
  }
}
