/* Life OS — live display (portrait + landscape). Type scales with the stage through
   container units, so it stays readable from across a room on any screen size. */

#view-display {
  container-type: size;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#view-display.is-idle {
  cursor: none;
}

.stage {
  position: relative;
  container-type: size;
  container-name: stage;
}
#view-display[data-orient="portrait"] .stage {
  height: 100cqh;
  width: min(100cqw, 100cqh * 0.62);
}
#view-display[data-orient="landscape"] .stage {
  width: min(100cqw, 100cqh * 2.7);
  height: min(100cqh, 100cqw * 0.72);
}

.stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  transition: transform 4s ease-in-out;
}

/* soft scrim so text stays legible over the horizon and grid */
.stage-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(90% 60% at 50% 62%, rgba(4, 5, 16, 0.5), transparent 75%);
}

/* ------------------------------------------------------------------ shared parts */

.d-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4cqw;
}
.d-date {
  display: flex;
  flex-direction: column;
  text-align: start;
  line-height: 1.25;
}
.d-weekday {
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.d-fulldate {
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-3);
}
.d-clock {
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.d-clock small {
  margin-inline-start: 0.3em;
  font-size: 0.5em;
  font-weight: 700;
  color: var(--ink-3);
}

.d-hero {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
/* The 3D hero is positioned over this box; ring + icon below are the non-WebGL version. */
.d-slot {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.d-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  transition: opacity 0.6s ease;
}
.d-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.3;
}
.d-ring-fill {
  fill: none;
  stroke: rgb(var(--accent-rgb));
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 calc(4px * var(--glow)) rgba(var(--accent-rgb), 0.95));
  transition: stroke-dashoffset 1s linear;
}
.d-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 0 calc(16px * var(--glow)) rgba(var(--accent-rgb), 0.95)) drop-shadow(0 0 calc(44px * var(--glow)) rgba(var(--accent-rgb), 0.5));
}
.d-icon .icn {
  width: 44%;
  height: 44%;
  animation: d-float 6.5s ease-in-out infinite;
}
.d-icon .icn-emoji {
  font-size: 30cqmin;
}
#view-display[data-orient="landscape"] .d-icon .icn-emoji {
  font-size: 16cqmin;
}
html.fx-on .d-ring,
html.fx-on .d-icon {
  opacity: 0 !important;
}
@keyframes d-float {
  50% {
    transform: translateY(-4%) rotate(-2deg);
  }
}

.d-main {
  width: 100%;
  min-width: 0;
  display: grid;
}
.d-label {
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgb(var(--accent-rgb));
  text-shadow: 0 0 calc(14px * var(--glow)) rgba(var(--accent-rgb), 0.65);
}
.d-title {
  max-width: 100%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--accent-rgb), calc(0.6 * var(--glow))), 0 2px 0 rgba(0, 0, 0, 0.3);
}
html[dir="rtl"] .d-title,
.d-title[data-script="ar"] {
  line-height: 1.3;
}
.d-range {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.d-count {
  display: grid;
  gap: 0.5cqh;
  min-width: 0;
}
.d-count.is-off,
.d-progress.is-off {
  visibility: hidden;
}
.d-digits {
  display: flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow:
    0 0 calc(22px * var(--glow)) rgba(var(--accent-rgb), calc(0.8 * var(--glow))),
    0 0 calc(70px * var(--glow)) rgba(var(--accent-rgb), calc(0.4 * var(--glow)));
}
/* every digit sits in a fixed-width cell, so the countdown never jitters */
.dg {
  position: relative;
  display: inline-block;
  width: 1ch;
  text-align: center;
}
.dg-in {
  display: block;
}
.dg-in.is-in {
  animation: dg-in 0.34s var(--ease-out);
}
.dg-out {
  position: absolute;
  inset: 0;
  animation: dg-out 0.3s var(--ease) forwards;
}
.dg-sep {
  display: inline-block;
  width: 0.36ch;
  text-align: center;
  color: rgb(var(--accent-rgb));
  opacity: 0.85;
  transform: translateY(-0.07em);
}
@keyframes dg-in {
  from {
    opacity: 0;
    transform: translateY(0.2em) scale(0.96);
    filter: blur(3px);
  }
}
@keyframes dg-out {
  to {
    opacity: 0;
    transform: translateY(-0.2em) scale(0.96);
    filter: blur(3px);
  }
}
.d-count-label {
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}

.d-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}
.d-bar {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.d-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--accent2-rgb)), rgb(var(--accent-rgb)) 70%, #fff 130%);
  box-shadow: 0 0 calc(16px * var(--glow)) rgba(var(--accent-rgb), 0.85);
  transition: width 1s linear;
}
/* progress follows the direction chosen for every time axis */
#view-display[data-dir="rtl"] .d-bar i,
#view-display[data-dir="rtl"] .d-day-bar i {
  left: auto;
  right: 0;
}
#view-display[data-dir="rtl"] .d-bar i {
  background: linear-gradient(270deg, rgb(var(--accent2-rgb)), rgb(var(--accent-rgb)) 70%, #fff 130%);
}
.d-pct {
  min-width: 3.4ch;
  text-align: end;
  font-weight: 800;
  color: rgb(var(--accent-rgb));
  font-variant-numeric: tabular-nums;
}

.d-next {
  --n-rgb: var(--accent-rgb);
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  text-align: start;
  border: 1px solid rgba(var(--n-rgb), 0.4);
  background: linear-gradient(90deg, rgba(var(--n-rgb), 0.16), rgba(var(--n-rgb), 0.03)), rgba(7, 9, 26, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 calc(26px * var(--glow)) rgba(var(--n-rgb), calc(0.14 * var(--glow)));
}
html[dir="rtl"] .d-next {
  background: linear-gradient(270deg, rgba(var(--n-rgb), 0.16), rgba(var(--n-rgb), 0.03)), rgba(7, 9, 26, 0.55);
}
.d-next.is-empty {
  border-style: dashed;
  border-color: var(--line-2);
  background: rgba(7, 9, 26, 0.4);
  box-shadow: none;
}
.d-next-label {
  flex: none;
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}
.d-next-icon {
  flex: none;
  display: grid;
  color: rgb(var(--n-rgb));
  filter: drop-shadow(0 0 8px rgba(var(--n-rgb), 0.85));
}
.d-next-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.d-next-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d-next-time {
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.d-next-in {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
  color: rgb(var(--n-rgb));
  font-variant-numeric: tabular-nums;
}
/* heads-up shortly before the next activity begins */
.d-next.is-soon {
  border-color: rgb(var(--n-rgb));
  animation: next-soon 1.7s ease-in-out infinite;
}
@keyframes next-soon {
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 calc(46px * var(--glow)) rgba(var(--n-rgb), 0.55);
    background-color: rgba(var(--n-rgb), 0.12);
  }
}

.d-day {
  width: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-4);
}
.d-day-bar {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
}
.d-day-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
  transition: width 1s linear;
}
.d-day-pct {
  min-width: 3.2ch;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ portrait */

#view-display[data-orient="portrait"] .stage-inner {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;
  justify-items: center;
  row-gap: 1.7cqh;
  padding: 3cqh 6.5cqw 2.6cqh;
  text-align: center;
}
[data-orient="portrait"] .d-weekday {
  font-size: clamp(11px, 3.2cqw, 28px);
}
[data-orient="portrait"] .d-fulldate {
  font-size: clamp(9px, 2.4cqw, 22px);
}
[data-orient="portrait"] .d-clock {
  font-size: clamp(15px, 5cqw, 46px);
}
[data-orient="portrait"] .d-slot {
  height: min(100%, 74cqw);
}
[data-orient="portrait"] .d-main {
  justify-items: center;
  row-gap: 0.7cqh;
}
[data-orient="portrait"] .d-label {
  font-size: clamp(9px, 2.6cqw, 24px);
}
[data-orient="portrait"] .d-title {
  font-size: clamp(26px, min(12.5cqw, 9cqh), 170px);
}
[data-orient="portrait"] .d-range {
  font-size: clamp(11px, 3.7cqw, 36px);
}
[data-orient="portrait"] .d-count {
  justify-items: center;
}
[data-orient="portrait"] .d-digits {
  font-size: clamp(34px, min(18cqw, 13cqh), 240px);
}
[data-orient="portrait"] .d-count-label {
  font-size: clamp(9px, 2.6cqw, 24px);
}
[data-orient="portrait"] .d-bar {
  height: clamp(5px, 1cqh, 12px);
}
[data-orient="portrait"] .d-pct {
  font-size: clamp(11px, 3.3cqw, 32px);
}
[data-orient="portrait"] .d-next {
  gap: 3cqw;
  padding: 1.6cqh 4cqw;
  border-radius: clamp(12px, 3.4cqw, 30px);
}
[data-orient="portrait"] .d-next-label {
  font-size: clamp(8px, 2.2cqw, 20px);
}
[data-orient="portrait"] .d-next-icon {
  --icn: clamp(18px, 5.6cqw, 52px);
}
[data-orient="portrait"] .d-next-title {
  font-size: clamp(13px, 4.2cqw, 40px);
}
[data-orient="portrait"] .d-next-time,
[data-orient="portrait"] .d-next-in {
  font-size: clamp(10px, 2.8cqw, 26px);
}
[data-orient="portrait"] .d-day {
  gap: 2.4cqw;
  font-size: clamp(8px, 2.1cqw, 18px);
}

/* ------------------------------------------------------------------ landscape */

#view-display[data-orient="landscape"] .stage-inner {
  grid-template-columns: minmax(0, 26fr) minmax(0, 32fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas:
    "top top top"
    "hero main count"
    "prog prog prog"
    "next next next"
    "day day day";
  align-items: center;
  column-gap: 3.4cqw;
  row-gap: 2.2cqh;
  padding: 3.6cqh 4.6cqw 3cqh;
}
[data-orient="landscape"] .d-top {
  grid-area: top;
}
[data-orient="landscape"] .d-hero {
  grid-area: hero;
}
[data-orient="landscape"] .d-main {
  grid-area: main;
  justify-items: start;
  row-gap: 1.2cqh;
  text-align: start;
}
[data-orient="landscape"] .d-title {
  width: 100%;
  text-align: left;
}
html[dir="rtl"] [data-orient="landscape"] .d-title {
  text-align: right;
}
[data-orient="landscape"] .d-count {
  grid-area: count;
  justify-items: end;
}
[data-orient="landscape"] .d-progress {
  grid-area: prog;
}
[data-orient="landscape"] .d-next {
  grid-area: next;
}
[data-orient="landscape"] .d-day {
  grid-area: day;
}
[data-orient="landscape"] .d-weekday {
  font-size: clamp(11px, min(1.55cqw, 3.4cqh), 32px);
}
[data-orient="landscape"] .d-fulldate {
  font-size: clamp(9px, min(1.15cqw, 2.6cqh), 24px);
}
[data-orient="landscape"] .d-clock {
  font-size: clamp(15px, min(2.5cqw, 5.4cqh), 54px);
}
[data-orient="landscape"] .d-slot {
  width: min(100%, 60cqh);
}
[data-orient="landscape"] .d-label {
  font-size: clamp(9px, min(1.3cqw, 3cqh), 28px);
}
[data-orient="landscape"] .d-title {
  font-size: clamp(26px, min(6.4cqw, 15cqh), 190px);
}
[data-orient="landscape"] .d-range {
  font-size: clamp(11px, min(2cqw, 4.6cqh), 44px);
}
[data-orient="landscape"] .d-digits {
  font-size: clamp(34px, min(8cqw, 20cqh), 280px);
}
[data-orient="landscape"] .d-count-label {
  font-size: clamp(9px, min(1.3cqw, 3cqh), 28px);
  padding-inline-end: 0.4em;
}
[data-orient="landscape"] .d-progress {
  gap: 1.6cqw;
}
[data-orient="landscape"] .d-bar {
  height: clamp(5px, 1.5cqh, 14px);
}
[data-orient="landscape"] .d-pct {
  font-size: clamp(11px, min(2cqw, 4.4cqh), 40px);
}
[data-orient="landscape"] .d-next {
  gap: 1.8cqw;
  padding: 2.2cqh 2.4cqw;
  border-radius: clamp(12px, 1.8cqw, 30px);
}
[data-orient="landscape"] .d-next-label {
  font-size: clamp(8px, min(1.15cqw, 2.6cqh), 22px);
}
[data-orient="landscape"] .d-next-icon {
  --icn: clamp(18px, min(3cqw, 6.4cqh), 60px);
}
[data-orient="landscape"] .d-next-text {
  flex-direction: row;
  align-items: baseline;
  gap: 1.6cqw;
}
[data-orient="landscape"] .d-next-title {
  font-size: clamp(13px, min(2.3cqw, 5cqh), 46px);
}
[data-orient="landscape"] .d-next-time,
[data-orient="landscape"] .d-next-in {
  font-size: clamp(10px, min(1.6cqw, 3.6cqh), 30px);
}
[data-orient="landscape"] .d-day {
  gap: 1.4cqw;
  font-size: clamp(8px, min(1cqw, 2.3cqh), 18px);
}

/* ------------------------------------------------------------------ transitions between activities */

.d-swap {
  transition: opacity 0.42s var(--ease), transform 0.46s var(--ease), filter 0.42s ease;
}
.stage.is-leaving .d-swap {
  opacity: 0;
  transform: translateY(-1.6cqh) scale(0.985);
  filter: blur(6px);
}
.stage.is-leaving .d-icon {
  transform: perspective(700px) rotateY(80deg) scale(0.7);
}
.stage.is-entering .d-swap {
  animation: d-enter 0.85s var(--ease-out) both;
}
.stage.is-entering .d-title {
  animation-delay: 0.06s;
}
.stage.is-entering .d-range {
  animation-delay: 0.12s;
}
.stage.is-entering .d-next {
  animation-delay: 0.2s;
}
.stage.is-entering .d-icon {
  animation-name: d-enter-icon;
}
@keyframes d-enter {
  from {
    opacity: 0;
    transform: translateY(2.2cqh) scale(1.02);
    filter: blur(8px);
  }
}
@keyframes d-enter-icon {
  from {
    opacity: 0;
    transform: perspective(700px) rotateY(-80deg) scale(0.7);
  }
}
.stage.is-switching .stage-inner {
  animation: d-switch 0.45s var(--ease-out);
}
@keyframes d-switch {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* ------------------------------------------------------------------ controls */

.d-controls {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}
.d-ctl {
  background: rgba(8, 10, 28, 0.6);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#view-display.is-idle .d-controls {
  opacity: 0;
  pointer-events: none;
}
/* the editor shortcut is only needed once the top bar is hidden */
html:not(.is-immersive) .d-ctl:first-child {
  display: none;
}

/* ------------------------------------------------------------------ note under the activity name */

.d-note {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  text-wrap: balance;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-shadow: 0 0 calc(18px * var(--glow)) rgba(var(--accent-rgb), 0.35);
}
[data-orient="portrait"] .d-note {
  font-size: clamp(12px, min(4.1cqw, 3cqh), 42px);
}
[data-orient="landscape"] .d-note {
  width: 100%;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: clamp(12px, min(1.9cqw, 4.4cqh), 44px);
  text-align: left;
}
html[dir="rtl"] [data-orient="landscape"] .d-note {
  text-align: right;
}
.d-next-time {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-orient="landscape"] .d-next-time {
  min-width: 0;
}

/* ------------------------------------------------------------------ multi-line note + link buttons */

.d-note {
  white-space: pre-line;
}
[data-orient="portrait"] .d-note {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
[data-orient="landscape"] .d-note {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
.d-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
[data-orient="portrait"] .d-links {
  justify-content: center;
  font-size: clamp(30px, min(9.5cqw, 6.4cqh), 84px);
}
[data-orient="landscape"] .d-links {
  flex-wrap: nowrap;
  gap: 0.32em;
  font-size: clamp(28px, min(3.3cqw, 8cqh), 80px);
}
.d-link {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  border-radius: 24%;
  border: 1px solid rgba(var(--accent-rgb), 0.9);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0.16));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0.08em 0 0 rgba(var(--accent-rgb), 0.3), 0 0 calc(18px * var(--glow)) rgba(var(--accent-rgb), calc(0.4 * var(--glow)));
  cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
}
.d-link:hover,
.d-link:focus-visible {
  transform: perspective(600px) translateZ(18px) translateY(-2px);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0.12em 0 0 rgba(var(--accent-rgb), 0.34), 0 0 calc(34px * var(--glow)) rgba(var(--accent-rgb), calc(0.7 * var(--glow)));
}

/* ------------------------------------------------------------------ "next" + the rest of today, side by side */

.d-bottom {
  width: 100%;
  min-width: 0;
  display: grid;
}
[data-orient="portrait"] .d-bottom {
  gap: 1.2cqh;
}
[data-orient="landscape"] .d-bottom {
  grid-area: next;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6cqw;
}
[data-orient="landscape"] .d-next {
  grid-area: auto;
}
/* both cards glow in the colour of what they announce */
.d-next:not(.is-empty) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 calc(34px * var(--glow)) rgba(var(--n-rgb), calc(0.4 * var(--glow))),
    0 0 calc(4px * var(--glow)) rgba(var(--n-rgb), 0.8);
}
.d-today {
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.05), rgba(var(--accent-rgb), 0.14)), rgba(7, 9, 26, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 calc(30px * var(--glow)) rgba(var(--accent-rgb), calc(0.3 * var(--glow))),
    0 0 calc(4px * var(--glow)) rgba(var(--accent-rgb), 0.6);
}
.d-today.is-empty {
  border-style: dashed;
  border-color: var(--line-2);
  box-shadow: none;
}
.d-today-label {
  flex: none;
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}
.d-today-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.d-today-item {
  --n-rgb: var(--accent-rgb);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  border: 1px solid rgba(var(--n-rgb), 0.7);
  background: rgba(var(--n-rgb), 0.16);
  box-shadow: 0 0 calc(14px * var(--glow)) rgba(var(--n-rgb), calc(0.35 * var(--glow)));
}
.d-today-icon {
  display: grid;
  flex: none;
  color: rgb(var(--n-rgb));
}
.d-today-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.d-today-time {
  flex: none;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.d-today-none {
  font-weight: 600;
  color: var(--ink-3);
}
[data-orient="portrait"] .d-today {
  gap: 2.6cqw;
  padding: 1.2cqh 4cqw;
  border-radius: clamp(12px, 3.4cqw, 30px);
}
[data-orient="portrait"] .d-today-label {
  font-size: clamp(8px, 2.2cqw, 20px);
}
[data-orient="portrait"] .d-today-list {
  gap: 1cqh 1.6cqw;
  max-height: 11cqh;
}
[data-orient="portrait"] .d-today-item {
  gap: 1.4cqw;
  padding: 0.5cqh 2.2cqw;
  font-size: clamp(10px, 2.9cqw, 26px);
  max-width: 100%;
}
[data-orient="portrait"] .d-today-icon {
  --icn: clamp(12px, 3.4cqw, 30px);
}
[data-orient="portrait"] .d-today-none {
  font-size: clamp(10px, 2.9cqw, 26px);
}
[data-orient="landscape"] .d-today {
  gap: 1.4cqw;
  padding: 1.6cqh 1.8cqw;
  border-radius: clamp(12px, 1.8cqw, 30px);
}
[data-orient="landscape"] .d-today-label {
  font-size: clamp(8px, min(1.15cqw, 2.6cqh), 22px);
}
[data-orient="landscape"] .d-today-list {
  gap: 0.8cqh 0.8cqw;
  max-height: 11cqh;
}
[data-orient="landscape"] .d-today-item {
  gap: 0.6cqw;
  padding: 0.6cqh 1cqw;
  font-size: clamp(10px, min(1.25cqw, 2.9cqh), 26px);
  max-width: 100%;
}
[data-orient="landscape"] .d-today-icon {
  --icn: clamp(12px, min(1.5cqw, 3.4cqh), 30px);
}
[data-orient="landscape"] .d-today-none {
  font-size: clamp(10px, min(1.4cqw, 3.2cqh), 26px);
}

/* the "later today" chips: all three always fit */
[data-orient="portrait"] .d-today-list,
[data-orient="landscape"] .d-today-list {
  max-height: none;
}
[data-orient="landscape"] .d-today-list {
  gap: 0.6cqh 0.6cqw;
}
[data-orient="landscape"] .d-today-item {
  padding: 0.35cqh 0.9cqw;
  font-size: clamp(10px, min(1.05cqw, 2.4cqh), 22px);
}
[data-orient="landscape"] .d-today {
  padding: 1.2cqh 1.6cqw;
}
[data-orient="portrait"] .d-today-item {
  padding: 0.35cqh 2cqw;
  font-size: clamp(10px, 2.6cqw, 24px);
}
