/* The TV schedule sheet and its editor (see js/schedule.js). */

.k-reminder { --k: var(--spk-1); }
.k-watch { --k: var(--spk-2); }
.k-message { --k: var(--spk-3); }
.k-photos { --k: var(--spk-4); }
.k-board { --k: var(--spk-6); }
.k-power { --k: var(--spk-0); }
.k-dropin { --k: var(--spk-5); }
.k-calendar { --k: var(--series-1); }

.sc-sheet svg,
.sc-editor svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

dialog.sheet.tall.sc-sheet,
dialog.sheet.tall.sc-editor {
  padding-bottom: 0;
}
@media (min-width: 641px) {
  dialog.sheet.tall.sc-sheet {
    width: min(960px, calc(100% - 64px));
  }
  dialog.sheet.tall.sc-editor {
    width: min(1000px, calc(100% - 64px));
  }
}
.sc-sheet .sheet-head,
.sc-editor .sheet-head {
  z-index: 5;
}
.sc-sheet .sheet-head .sc-add {
  margin-right: 6px;
  padding: 0 14px 0 10px;
}
.sc-body {
  padding-bottom: 28px;
}

/* Day and Everything, under the title. */
.sc-tabs {
  margin: 4px 0 12px;
}

/* An item's icon in its kind's color: a rounded tile. */
.sc-gicon svg,
.sc-node svg,
.sc-pin-head svg {
  display: block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--k) 22%, var(--surface));
  color: var(--k);
  stroke-width: 2.2;
}

/* A TV's name can be one long word ("VIZIOCastDisplay7031"), which would run under a switch on a phone. */
.sc-meta {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sc-status {
  --s: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--s) var(--tint), transparent);
  color: var(--s);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.sc-status:has(svg) {
  padding-left: 7px;
}
.sc-status svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}
.sc-status[data-state='ok'] { --s: var(--ok); }
.sc-status[data-state='missed'] { --s: var(--danger); }
.sc-status[data-state='next'] { --s: var(--accent); }
.sc-status[data-state='offline'] { --s: var(--warn); }

/* ---------- which TVs ---------- */

/* Runs edge to edge and fades out at the sides, as the reply chips do, so a cut-off TV reads as "scroll for more". */
.sc-tvs {
  display: flex;
  gap: 8px;
  margin: 4px calc(-1 * var(--sheet-pad)) 0;
  padding: 4px var(--sheet-pad);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 40px), transparent);
}
.sc-tvs::-webkit-scrollbar {
  display: none;
}
.sc-tv-chip {
  display: grid;
  flex: none;
  grid-template-columns: auto;
  align-content: center;
  column-gap: 8px;
  min-height: 52px;
  padding: 6px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.sc-tv-chip:has(.sc-tv-dot) {
  grid-template-columns: 8px auto;
}
.sc-tv-chip small {
  grid-column: 2;
  font-size: 13px;
}
.sc-tv-chip:active {
  scale: 0.97;
}
.sc-tv-chip[aria-pressed='true'] {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}
.sc-tv-chip[aria-pressed='true'] small {
  color: var(--accent-ink);
}
.sc-tv-dot {
  grid-row: span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-2) 55%, transparent);
}
.sc-tv-dot[data-on='true'] {
  background: var(--ok);
}
.sc-tv-chip[aria-pressed='true'] .sc-tv-dot {
  background: var(--accent-ink);
}

/* ---------- Day ---------- */

.sc-week {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 14px -8px 0;
}
.sc-days {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-daybtn {
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 100%;
  padding: 8px 0 7px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) {
  .sc-daybtn:hover {
    background: var(--surface-2);
  }
}
.sc-daybtn > span:first-child {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-daybtn b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.sc-daybtn[data-today] b {
  color: var(--accent);
}
.sc-daybtn[aria-pressed='true'] {
  background: var(--surface-2);
  box-shadow: var(--ring);
}
.sc-dots {
  display: flex;
  gap: 2px;
  height: 5px;
  margin-top: 4px;
}
.sc-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--k);
}

.sc-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin: 20px 0 10px;
}
.sc-day-head h3 {
  margin: 0;
  font-size: 20px;
}
.sc-day-head h3 span {
  margin-left: 6px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 400;
}

.sc-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-entry,
.sc-now {
  display: grid;
  grid-template-columns: 52px 32px minmax(0, 1fr);
  column-gap: 12px;
}
.sc-time {
  display: grid;
  align-content: start;
  justify-items: end;
  padding-top: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.sc-time b {
  font-size: 17px;
}
.sc-time small {
  font-size: 12px;
  line-height: 1.3;
}
.sc-node {
  position: relative;
  padding-top: 8px;
}
.sc-node::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 15px;
  width: 2px;
  background: var(--line);
}
.sc-entry:first-child .sc-node::before {
  top: 24px;
}
.sc-entry:last-child .sc-node::before {
  bottom: auto;
  height: 24px;
}
.sc-node svg {
  position: relative;
  border-radius: 50%;
}
.sc-card {
  padding: 3px 0 10px;
}
.sc-card-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 14px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
@media (hover: hover) {
  .sc-card-main:hover {
    background: var(--surface-3);
    box-shadow: var(--ring-hover);
  }
}
.sc-card-main:active {
  scale: 0.99;
}
.sc-card-main strong {
  font-size: 17px;
  line-height: 1.3;
}
/* What's over and done steps back: an outline for a card, and quieter text that's still easy to read (faded
   text isn't, and these are still buttons). Only the icon fades. */
.sc-entry:is([data-state='ok'], [data-state='done']) .sc-card-main {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sc-entry:is([data-state='ok'], [data-state='done'], [data-state='paused']) :is(.sc-time, .sc-card-main strong) {
  color: var(--text-2);
}
.sc-entry:is([data-state='ok'], [data-state='done'], [data-state='paused']) .sc-node svg {
  opacity: 0.6;
}
.sc-entry[data-state='missed'] .sc-node svg {
  box-shadow: 0 0 0 2px var(--danger);
}
.sc-more-note {
  margin: 6px 2px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.sc-more-note[data-state='missed'] {
  color: var(--danger);
}
.sc-missed {
  display: grid;
  gap: 10px;
  margin-top: -14px;
  padding: 24px 14px 14px;
  border-radius: 0 0 14px 14px;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
}
.sc-missed p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.sc-missed .btn {
  justify-self: start;
}

.sc-now {
  position: relative;
  align-items: center;
  margin: 2px 0 12px;
}
.sc-now::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 64px;
  height: 2px;
  background: var(--text);
}
/* Now is in the text color, not the danger red, which in the same column rings what was missed. */
.sc-now .sc-time {
  padding: 0;
  color: var(--text);
}
.sc-now .sc-time small {
  color: inherit;
}
.sc-now-dot {
  position: relative;
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
}
.sc-now p {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-self: start;
  margin: 0;
  padding: 4px 12px 4px 4px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
}
.sc-now p b {
  color: var(--text);
}

.sc-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 40px 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}
.sc-empty > svg {
  width: 36px;
  height: 36px;
  color: var(--text-2);
}
.sc-empty p {
  margin: 4px 0 14px;
  color: var(--text-2);
}
.sc-empty strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

/* An app's logo stands in for its kind's icon, in the same circle. */
.sc-node,
.sc-wicon {
  --logo: 32px;
}
.sc-logo {
  display: block;
  width: var(--logo, 32px);
  height: var(--logo, 32px);
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.sc-logo.dark {
  background: #000;
}
.sc-node .sc-logo {
  position: relative;
}
.sc-logo:not([hidden]) + svg {
  display: none;
}

/* ---------- Week and Month ---------- */

.sc-range {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px -8px 12px;
}
.sc-range h3 {
  flex: 1;
  margin: 0 4px;
  font-size: 20px;
  text-align: center;
}
.sc-range h3 span {
  margin-left: 6px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 400;
}

.sc-weekgrid {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Side by side where there's room; a list of days on a phone. */
@media (min-width: 880px) {
  .sc-weekgrid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
  .sc-wday {
    min-height: 220px;
  }
}
.sc-wday {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--ring);
}
.sc-wday[data-today] {
  box-shadow: 0 0 0 2px var(--accent);
}
.sc-wday-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}
@media (hover: hover) {
  .sc-wday-head:hover {
    background: var(--surface-3);
  }
}
.sc-wday-head span {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-wday-head b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.sc-wday[data-today] .sc-wday-head b {
  color: var(--accent);
}
.sc-wday ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-witem {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px 6px 6px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--k) 14%, var(--surface));
  box-shadow: inset 3px 0 0 var(--k);
  color: var(--text);
  font: inherit;
  text-align: left;
}
/* Over and done, as in Day: an outline instead of the fill, quieter text, a faded icon. */
.sc-witem:is([data-state='ok'], [data-state='done']) {
  background: transparent;
  box-shadow: inset 3px 0 0 var(--k), inset 0 0 0 1px var(--line);
  color: var(--text-2);
}
.sc-witem:is([data-state='ok'], [data-state='done']) .sc-wicon {
  opacity: 0.6;
}
.sc-witem[data-state='missed'] {
  box-shadow: inset 3px 0 0 var(--danger);
}
.sc-witem[data-state='missed'] .sc-wicon svg {
  color: var(--danger);
}
.sc-witem[data-state='offline'] .sc-wicon svg {
  color: var(--warn);
}
.sc-wicon {
  --logo: 24px;
  flex: none;
}
.sc-wicon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--k);
}
.sc-wtext {
  display: grid;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
.sc-wtext b {
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sc-wnone {
  margin: 0;
  padding: 2px 6px 6px;
  color: var(--text-2);
  font-size: 13px;
}

.sc-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.sc-mhead {
  padding: 4px 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.sc-mday {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 64px;
  padding: 6px 4px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) {
  .sc-mday:hover {
    background: var(--surface-3);
  }
}
.sc-mday b {
  padding-left: 2px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
/* Another month's days have no tile; their dates stay readable, as they open that day. */
.sc-mday[data-outside] {
  background: transparent;
  color: var(--text-2);
}
.sc-mday[data-today] {
  box-shadow: 0 0 0 2px var(--accent);
}
.sc-mday[data-today] b {
  color: var(--accent);
}
/* On a phone, a dot for each kind on the day, and a bar under a day with a one-off; with room, names. */
.sc-mkinds {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-left: 2px;
}
.sc-mkinds i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--k);
}
.sc-mday[data-event] b {
  box-shadow: inset 0 -3px 0 var(--accent);
}
.sc-mitems {
  display: none;
}
@media (min-width: 700px) {
  .sc-mday {
    min-height: 96px;
    padding: 8px 6px;
  }
  .sc-mkinds {
    display: none;
  }
  .sc-mday[data-event] b {
    box-shadow: none;
  }
  .sc-mitems {
    display: grid;
    gap: 2px;
  }
  .sc-mitems i {
    padding: 1px 6px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--k) 22%, transparent);
    box-shadow: inset 2px 0 0 var(--k);
    font-size: 12px;
    font-style: normal;
    line-height: 1.4;
  }
  .sc-mitems i span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sc-mitems em {
    color: var(--text-2);
    font-size: 11px;
    font-style: normal;
  }
}

.sc-credit {
  margin: 20px 0 0;
  font-size: 12px;
  text-align: center;
}
.sc-credit a {
  color: var(--text-2);
}

/* ---------- Everything ---------- */

.sc-today {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--ring);
}
.sc-today h3,
.sc-sheet .sc-group h3 {
  margin: 0;
}
.sc-today h3 {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}
.sc-stat {
  display: grid;
  align-content: start;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--text);
  font: inherit;
  text-align: left;
}
.sc-stat b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.sc-stat[data-state='missed'] b {
  color: var(--danger);
}
.sc-stat span {
  color: var(--text-2);
  font-size: 14px;
}
.sc-body > .sc-alert-row {
  margin: 0 0 12px;
}
.sc-alert-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--danger) 13%, transparent);
}
.sc-alert-row > svg {
  width: 22px;
  height: 22px;
  color: var(--danger);
}
.sc-alert-row p {
  margin: 1px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.sc-alert-row .btn {
  grid-column: 2;
  justify-self: start;
}

.sc-groups {
  display: grid;
  margin-top: 4px;
}
@media (min-width: 800px) {
  .sc-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 24px;
  }
}
.sc-group header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
}
.sc-sheet .sc-group h3 {
  flex: 1;
  font-size: 17px;
}
.sc-routines {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  list-style: none;
  overflow: hidden;
}
.sc-routine {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 14px;
}
.sc-routine + .sc-routine {
  border-top: 1px solid var(--line);
}
.sc-routine-main {
  display: grid;
  flex: 1;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) {
  .sc-routine-main:hover {
    background: var(--surface-3);
  }
}
.sc-big-time b {
  display: block;
  font-size: 26px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sc-big-time small {
  font-size: 13px;
}
.sc-routine-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}
/* Paused: quieter text, as faded text would be hard to read; its switch says it's off. */
.sc-routine[data-on='false'] .sc-routine-main {
  color: var(--text-2);
}
.sc-dow {
  display: flex;
  gap: 3px;
  margin-top: 7px;
}
.sc-dow i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 11px;
  font-style: normal;
}
/* A day it runs on is a filled, bold letter; the others are plain. */
.sc-dow i[data-on] {
  background: color-mix(in srgb, var(--k) 26%, transparent);
  color: var(--text);
  font-weight: 700;
}
.sc-once {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--k) 20%, transparent);
  font-size: 13px;
  font-weight: 700;
}
/* The app's switch, standing on its own. */
.sc-switch {
  flex: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 14px;
  appearance: none;
  background: var(--surface-3) radial-gradient(circle closest-side, var(--text-2) 92%, transparent) no-repeat 4px 50% / 20px 20px;
  box-shadow: inset 0 0 0 1px var(--field-border);
  cursor: pointer;
  transition-property: background-color, background-position, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.sc-switch:checked {
  background-color: var(--accent);
  background-image: radial-gradient(circle closest-side, var(--accent-ink) 92%, transparent);
  background-position: calc(100% - 4px) 50%;
  box-shadow: none;
}
.sc-none {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- the editor ---------- */

.sc-ed {
  display: grid;
  gap: 20px;
  padding-top: 4px;
}
@media (min-width: 840px) {
  .sc-ed {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 32px;
  }
  .sc-ed-preview {
    position: sticky;
    top: 72px;
    order: 2;
  }
}
.sc-ed-form {
  display: grid;
  gap: 22px;
  padding-bottom: 24px;
}
.sc-ed-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.sc-section {
  display: grid;
  gap: 14px;
}
fieldset.sc-section,
details.sc-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sc-section > legend {
  float: left;
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sc-field {
  display: grid;
  gap: 6px;
}
.sc-field > span,
.sc-seg legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.sc-seg legend {
  margin-bottom: 6px;
}
.sc-field em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 400;
}
.sc-section > small,
.sc-what > small {
  margin-top: -8px;
}
.sc-editor input.sc-big-input {
  font-size: 22px;
  font-weight: 700;
}
.sc-editor .sc-short {
  max-width: 200px;
}
.sc-editor input[type='time'],
.sc-editor input[type='date'],
.sc-editor input[type='number'] {
  width: 100%;
  min-height: 50px;
  padding: 9px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.sc-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sc-pic {
  justify-self: start;
}

/* What it is: five tiles, a strip that scrolls on a phone. */
.sc-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
}
.sc-kind,
.sc-tvopt,
.sc-daypick label {
  position: relative;
}
:is(.sc-kind, .sc-tvopt, .sc-daypick label) > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-kind > span {
  display: grid;
  justify-items: center;
  gap: 8px;
  height: 100%;
  padding: 14px 6px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition-property: background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.sc-kind svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--k) 22%, transparent);
  color: var(--k);
}
:is(.sc-kind, .sc-tvopt) > input:checked + span {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  box-shadow: 0 0 0 2px var(--accent);
}
:is(.sc-kind, .sc-tvopt, .sc-daypick label) > input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sc-daypick {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.sc-daypick span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: var(--ring);
  font-weight: 700;
  cursor: pointer;
}
.sc-daypick input:checked + span {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}
.sc-sub {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.sc-radios .radio {
  padding: 8px 0;
}

.sc-tvpick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sc-tvopt > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  cursor: pointer;
}
.sc-tvopt > input:disabled + span {
  opacity: 0.5;
  cursor: default;
}
.sc-tvopt svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  color: var(--text-2);
}
.sc-tvopt input:checked + span svg {
  color: var(--accent);
}
.sc-tvopt small {
  font-size: 13px;
}

/* The app's own details and summary, chevron and all. */
details.sc-more {
  margin-top: 0;
  font-size: 16px;
}
.sc-more summary {
  padding: 0;
}
.sc-more summary > span {
  display: grid;
  flex: 1;
  gap: 2px;
}
.sc-more summary strong {
  font-size: 16px;
}
.sc-more > * + * {
  margin-top: 10px;
}
.sc-more > .sc-sub {
  margin-top: 18px;
}
.sc-notes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 13%, transparent);
  font-size: 14px;
  line-height: 1.45;
}
.sc-notes > svg {
  width: 20px;
  height: 20px;
  color: var(--warn);
}
.sc-notes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-ed-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 calc(-1 * var(--sheet-pad));
  padding: 12px var(--sheet-pad) max(12px, env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line);
}
.sc-ed-foot .btn {
  white-space: nowrap;
}
.sc-spacer {
  flex: 1;
  color: var(--danger);
  font-size: 14px;
}
/* On a phone, what's missing gets a line of its own above the buttons rather than a sliver beside them. */
@media (max-width: 540px) {
  .sc-ed-foot {
    flex-wrap: wrap;
  }
  .sc-spacer:not(:empty) {
    flex-basis: 100%;
    order: -1;
  }
  /* Kept for the next message, taking no room (and no gap) meanwhile. */
  .sc-spacer:empty {
    flex: 0 0 0;
    margin-right: -8px;
  }
  .sc-ed-foot .btn {
    flex: 1;
  }
  .sc-ed-foot .btn[data-delete] {
    flex: none;
  }
}

/* A reminder's background: tiles of each look, as the TV shows it (see remind.css). */
.sc-looks > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sc-look {
  position: relative;
}
.sc-look > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-look > span {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: var(--look-bg, #0e1015);
  color: #f2f4f8;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--ring);
}
.sc-look svg {
  width: 26px;
  height: 26px;
  color: var(--look-ink, #ffd54a);
}
.sc-look > input:checked + span {
  box-shadow: 0 0 0 3px var(--accent);
}
.sc-look > input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[data-look='medication'] { --look-bg: linear-gradient(160deg, #11455a, #0a2235 70%); --look-ink: #6fd3ff; }
[data-look='meal'] { --look-bg: linear-gradient(160deg, #6a3216, #2b150b 70%); --look-ink: #ffae66; }
[data-look='sleep'] { --look-bg: radial-gradient(circle at 78% 18%, #2a2266, transparent 35%), linear-gradient(180deg, #141238, #08081a); --look-ink: #c3a6ff; }
[data-look='appointment'] { --look-bg: linear-gradient(160deg, #22336b, #0f1530 70%); --look-ink: #8fb0ff; }
[data-look='exercise'] { --look-bg: linear-gradient(160deg, #18513a, #0a2018 70%); --look-ink: #8be58b; }
[data-look='water'] { --look-bg: linear-gradient(160deg, #0f4a6e, #071a2a 70%); --look-ink: #6fc8ff; }
[data-look='call'] { --look-bg: linear-gradient(160deg, #5c1d48, #200a18 70%); --look-ink: #ff8fc7; }

/* An app: tiles with logos for the streaming apps the TV has, a list for the rest. */
.sc-apps {
  display: grid;
  gap: 10px;
}
.sc-apps legend,
.sc-looks legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.sc-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.sc-app {
  position: relative;
}
.sc-app > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-app > span {
  --logo: 40px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.sc-app > input:checked + span {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  box-shadow: 0 0 0 2px var(--accent);
}
.sc-app > input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sc-app .sc-credit {
  margin: 0;
}
.sc-note {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

/* Photos: the albums, the chosen one's photos, and adding to it. */
.sc-albums legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.sc-albums > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.sc-album {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px 8px 10px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-album > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-album:has(input:checked),
.sc-album[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--accent);
}
.sc-album:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sc-album strong {
  display: block;
  font-size: 15px;
}
.sc-album small {
  font-size: 13px;
}
.sc-album-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--surface-3);
  object-fit: cover;
}
.sc-album-art svg {
  width: 28px;
  height: 28px;
  color: var(--text-2);
}
.sc-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.sc-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-3);
}
.sc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-photo .icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
}
.sc-photo .icon-btn svg {
  width: 16px;
  height: 16px;
}
.sc-photo-add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px dashed var(--field-border);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sc-photo-add svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 760px) {
  .sc-kinds {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Show now, beside Save; and Stop, under something on now. */
.sc-now-btn svg {
  fill: currentColor;
  stroke: none;
}
.sc-stop {
  margin-top: 8px;
}
.sc-stop svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

/* A message: its words, larger; and a photo chosen from the account's. */
.sc-editor textarea.sc-big-text {
  font-size: 19px;
}
.sc-pick legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.sc-pick legend em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 400;
}
.sc-pick .sc-photo {
  cursor: pointer;
}
.sc-pick .sc-photo > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-pick .sc-photo:has(input:checked) {
  box-shadow: 0 0 0 3px var(--accent);
}
.sc-pick .sc-photo:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sc-photo-none {
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

/* A radio item's station: found, chosen, each with its logo, name, and where it's from and how it sounds. */
.sc-station {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sc-station > span:last-child {
  display: grid;
  min-width: 0;
}
.sc-station strong,
.sc-station small {
  overflow: hidden;
  text-align: left; /* a name that reads right to left too, under the rest (see stationField) */
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-station small {
  color: var(--text-2);
  font-size: 13px;
}
.sc-station-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
span.sc-station-logo {
  background: var(--surface-2);
}
.sc-station-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--ring);
}
.sc-stations .radio {
  align-items: center;
}
.tvp-radio-logo {
  width: 14cqw;
  height: 14cqw;
  border-radius: 2.5cqw;
  background: #fff;
  object-fit: contain;
}

/* A board's place: typed, found, chosen. */
.sc-place {
  display: grid;
  gap: 6px;
}
.sc-place > label {
  font-size: 15px;
  font-weight: 700;
}
.sc-place-row {
  display: flex;
  gap: 8px;
}
.sc-place-row input {
  flex: 1;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
[data-look='message'] { --look-bg: linear-gradient(160deg, #4a2652, #1a0f22 70%); --look-ink: #ff8fc7; }

/* ---------- the TV, drawn small ---------- */

.sc-ed-preview {
  display: grid;
  gap: 10px;
}
.sc-preview-tvs {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.sc-preview-tvs .chip {
  min-height: 34px;
  padding: 5px 14px;
  font-size: 14px;
}
.sc-preview-tvs .chip[aria-pressed='true'] {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}
.tvp {
  padding: 6px;
  border-radius: 14px;
  background: #050608;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 14px 30px rgb(0 0 0 / 0.3);
  container-type: inline-size;
}
.tvp-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0e1015;
  color: #f2f4f8;
  font-family: var(--font);
  line-height: 1.25;
}
.tvp-screen:is([data-scene='show'], [data-scene='channel']) {
  background:
    radial-gradient(120% 70% at 75% 115%, #26503a 0 34%, transparent 34.5%),
    radial-gradient(90% 60% at 12% 112%, #33664a 0 40%, transparent 40.5%),
    radial-gradient(circle at 64% 44%, #ffe2a0 0 6%, transparent 6.5%),
    linear-gradient(#f2a65a, #c4577a 58%, #4a3a78);
}
.tvp-screen[data-scene='app'] {
  background: #15171c;
}
.tvp-screen[data-scene='off'] {
  background: #000;
}
.tvp-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 0.8cqw;
  width: 64%;
  padding: 2.8cqw 3.2cqw;
  border-radius: 1.8cqw;
  background: rgb(22 24 30 / 0.95);
  box-shadow: 0 1cqw 4cqw rgb(0 0 0 / 0.5);
  font-size: 2.8cqw;
  translate: -50% -50%;
}
.tvp-popup b {
  font-size: 3.8cqw;
}
.tvp-popup span {
  color: #c4c9d3;
}
.tvp-popup i,
.tvp-card i {
  justify-self: end;
  margin-top: 0.8cqw;
  padding: 0.7cqw 2.6cqw;
  border-radius: 1cqw;
  background: #8fb0ff;
  color: #0a1433;
  font-style: normal;
  font-weight: 700;
}
.tvp-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6cqw;
  padding: 6cqw 8cqw;
  text-align: center;
}
.tvp-screen[data-scene='readout'][data-look]:not([data-look='plain']) {
  background: var(--look-bg);
}
.tvp-screen[data-look]:not([data-look='plain']) .tvp-card svg {
  color: var(--look-ink);
}
.tvp-card svg {
  width: 9cqw;
  height: 9cqw;
  color: #ffd54a;
}
.tvp-card b {
  font-size: 7cqw;
  line-height: 1.1;
  text-wrap: balance;
}
.tvp-card span {
  max-width: 90%;
  color: #abb1bd;
  font-size: 3.4cqw;
  text-wrap: balance;
}
.tvp-card i {
  justify-self: center;
  font-size: 2.8cqw;
}
.tvp-clock {
  position: absolute;
  top: 3cqw;
  right: 4cqw;
  color: #abb1bd;
  font-size: 2.6cqw;
}
.tvp-bug {
  position: absolute;
  top: 4cqw;
  right: 4cqw;
  padding: 0.6cqw 1.6cqw;
  border-radius: 1cqw;
  background: rgb(0 0 0 / 0.5);
  font-size: 3cqw;
  font-weight: 700;
}
.tvp-lower {
  position: absolute;
  bottom: 5cqw;
  left: 4cqw;
  display: grid;
  padding: 1.4cqw 2.6cqw;
  border-radius: 1.2cqw;
  background: rgb(0 0 0 / 0.55);
}
.tvp-lower b {
  font-size: 4cqw;
}
.tvp-lower span {
  color: #d5d9e0;
  font-size: 2.8cqw;
}
.tvp-app {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2cqw;
}
.tvp-logo {
  --logo: 14cqw;
}
/* A message, drawn small: from whom, then its words; its photo beside them. */
.tvp-message .tvp-msg-words {
  display: grid;
  justify-items: center;
  gap: 1.2cqw;
}
.tvp-message em {
  color: #ffc2e2;
  font-size: 3cqw;
  font-style: normal;
  font-weight: 700;
}
.tvp-message b {
  font-size: 5.2cqw;
}
.tvp-message.with-photo {
  grid-auto-flow: column;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 4cqw;
  text-align: left;
}
.tvp-message.with-photo .tvp-msg-words {
  justify-items: start;
}
.tvp-msg-photo {
  width: 100%;
  border-radius: 1.4cqw;
}
/* The board, drawn small: the time and day; beside it a photo and the list for later. */
.tvp-screen[data-scene='board'] {
  background: radial-gradient(circle at 15% 10%, #1b2440, transparent 55%), linear-gradient(160deg, #111727, #07090f);
}
.tvp-board {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4cqw;
  padding: 5cqw;
}
.tvp-b-when {
  display: grid;
  gap: 0.8cqw;
}
.tvp-b-when em {
  color: #9fb4e8;
  font-size: 3cqw;
  font-style: normal;
  font-weight: 700;
}
.tvp-b-when b {
  font-size: 13cqw;
  line-height: 1;
}
.tvp-b-when b small {
  margin-left: 1cqw;
  color: #abb1bd;
  font-size: 4cqw;
}
/* The board's clock face, and its flip cards, each with its line across the middle. */
.tvp-b-dial svg {
  display: block;
  width: 20cqw;
  height: 20cqw;
  fill: rgb(255 255 255 / 0.06);
  stroke: #f2f4f8;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.tvp-b-dial circle {
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 1.5;
}
.tvp-b-dial .hand {
  stroke-width: 6;
}
.tvp-b-flip {
  display: flex;
  align-items: baseline;
  gap: 1cqw;
}
.tvp-b-flip span {
  padding: 0.6cqw 1.2cqw;
  border-radius: 1cqw;
  background: linear-gradient(#262b36 49%, #0b0e14 49% 51%, #1d212a 51%);
  font-size: 10cqw;
}
.tvp-b-when > span {
  color: #d5d9e0;
  font-size: 3.4cqw;
}
.tvp-b-when .tvp-b-sky {
  color: #ffd54a;
  font-size: 2.6cqw;
}
.tvp-b-when i {
  margin-top: 1cqw;
  padding: 1cqw 1.6cqw;
  border-left: 0.6cqw solid #ff8fc7;
  border-radius: 0.8cqw;
  background: rgb(255 255 255 / 0.07);
  font-size: 2.6cqw;
  font-style: normal;
  font-weight: 700;
}
.tvp-b-side {
  display: grid;
  gap: 2cqw;
  width: 34cqw;
}
.tvp-b-side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1.4cqw;
  object-fit: cover;
}
.tvp-b-list {
  display: grid;
  gap: 1cqw;
}
.tvp-b-list em {
  color: #9fb4e8;
  font-size: 2.2cqw;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}
.tvp-b-list span {
  height: 1.6cqw;
  border-radius: 0.8cqw;
  background: rgb(255 255 255 / 0.14);
}
.tvp-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.tvp-photo-cap {
  position: absolute;
  bottom: 4cqw;
  left: 4cqw;
  padding: 0.6cqw 1.6cqw;
  border-radius: 1cqw;
  background: rgb(0 0 0 / 0.55);
  font-size: 2.8cqw;
  font-weight: 700;
}
.tvp-alert {
  position: absolute;
  top: 3cqw;
  left: 3cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.6cqw 1.6cqw 0.6cqw 1.2cqw;
  border-radius: 999px;
  background: #fff;
  color: #0e1015;
  font-size: 2.6cqw;
  font-weight: 700;
}
.tvp-alert svg {
  width: 3cqw;
  height: 3cqw;
}
.tvp-app b {
  padding: 3cqw 6cqw;
  border-radius: 3cqw;
  background: #262a33;
  font-size: 5.5cqw;
}
.tvp-app span {
  color: #abb1bd;
  font-size: 3cqw;
}
.tvp-caption {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

/* Describing an item in words, under the title: Claude fills it in, and the editor opens with it. */
.sc-describe {
  margin: 4px 0 8px;
}
.sc-describe-box {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: var(--bg);
}
.sc-describe-box textarea {
  flex: 1;
  min-width: 0;
  /* A line and its padding fit inside, so one line shows no scrollbar. */
  min-height: 42px;
  max-height: 30vh;
  padding: 8px 4px 8px 10px;
  line-height: 1.35;
  /* Transparent rather than none: schedule.js sizes the box as scrollHeight plus a 1px border each side. */
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 16px;
  resize: none;
}
.sc-describe-box .btn {
  flex: none;
  min-height: 40px;
}
@supports selector(:has(*)) {
  .sc-describe-box textarea:focus-visible {
    outline: none;
  }
  .sc-describe-box:has(textarea:focus-visible) {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }
}
.sc-describe-status {
  margin: 6px 4px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.sc-describe-status:empty {
  display: none;
}
.sc-describe-status.problem {
  color: var(--danger);
}

/* In the editor: what a description made, and how many more it made. */
#sc-ed-title small {
  color: var(--text-2);
  font-size: 0.7em;
  font-weight: 400;
}
.sc-described {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) var(--tint), transparent);
  font-size: 15px;
  line-height: 1.45;
}
.sc-described svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
}

/* ---------- forced colors (Windows high contrast) ---------- */
/* As in app.css: backgrounds and shadows are taken away, so what they drew gets a real border, and what's
   chosen or on is marked with the system's highlight color. Without this the switches disappear. */

@media (forced-colors: active) {
  .sc-tv-chip,
  .sc-card-main,
  .sc-witem,
  .sc-mday:not([data-outside]) {
    border: 1px solid ButtonText;
  }
  .sc-switch {
    border: 2px solid ButtonText;
  }
  .sc-switch:checked,
  .sc-tv-chip[aria-pressed='true'],
  .sc-daybtn[aria-pressed='true'],
  .sc-dow i[data-on] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  /* Their own colors would show on the highlight, as it lets colors through. */
  :is(.sc-tv-chip[aria-pressed='true'], .sc-daybtn[aria-pressed='true']) :is(span, small, b) {
    color: inherit;
  }
  :is(.sc-tv-chip[aria-pressed='true'], .sc-daybtn[aria-pressed='true']) :is(.sc-tv-dot, .sc-dots i) {
    background: HighlightText;
  }
  .sc-wday[data-today],
  .sc-mday[data-today] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
