.brief-desktop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.brief-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  padding: 5px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--copy);
  font-size: .75rem;
}
.brief-bar time { margin-left: 5px; font-variant-numeric: tabular-nums; }
.brief-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 358px;
  padding: 38px clamp(24px, 12%, 132px) 65px;
  background: linear-gradient(148deg, var(--bg), color-mix(in oklab, var(--paper), var(--alf) 7%));
}
.brief-wallpaper, .brief-wallpaper::before, .brief-wallpaper::after {
  position: absolute;
  pointer-events: none;
}
.brief-wallpaper { z-index: -1; inset: 0; overflow: hidden; }
.brief-wallpaper::before, .brief-wallpaper::after {
  content: "";
  width: 125%;
  height: 220%;
  border: 1px solid color-mix(in oklab, var(--alf) 14%, transparent);
  border-radius: 48%;
  transform: rotate(-23deg);
}
.brief-wallpaper::before {
  left: -37%;
  top: -144%;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
}
.brief-wallpaper::after {
  left: 12%;
  top: 26%;
  background: color-mix(in oklab, var(--alf) 4%, transparent);
}
.brief-window {
  width: min(100%, 450px);
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.brief-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 4px 8px 4px 16px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--copy);
  font-size: .8125rem;
}
.brief-chrome > svg { color: var(--alf); }
.brief-chrome button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-height: 32px;
  padding: 2px 9px 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--raise);
  color: var(--ink);
  font-size: .75rem;
}
.brief-chrome button:hover, .brief-figure:enabled:hover { border-color: var(--alf); }
.brief-paper { padding: 20px clamp(16px, 4vw, 28px) 18px; }
.brief-paper h3 { width: fit-content; margin: 0; font: 400 1.8rem/1.2 var(--serif); }
.brief-copy {
  max-width: 36ch;
  min-height: 3.1em;
  margin-top: 9px;
  color: var(--copy);
  font-size: .95rem;
  line-height: 1.55;
}
.brief-run, .brief-receipt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: var(--alf);
  font-size: .75rem;
}
.brief-run i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.brief-receipt { color: var(--ok); }
.brief-run time, .brief-receipt time {
  margin-left: auto;
  color: var(--muted);
  font: .72rem var(--mono);
}
.brief-companion {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: calc(100% - 32px);
}
.brief-figure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 50px;
  min-width: 50px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raise);
  box-shadow: var(--shadow);
}
.brief-figure:enabled { padding-right: 12px; }
.brief-figure span { font-size: .8125rem; font-weight: 550; }
.brief-figure:disabled { cursor: default; }
.brief-figure:disabled span { display: none; }
.brief-speech {
  max-width: 23ch;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  background: var(--raise);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: .875rem;
}
.brief-replay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 8px;
  padding-inline: 9px;
  color: var(--alf);
  font-size: .8125rem;
}
.brief-replay:hover { background: var(--alf-soft); }
/* The finished edition (the app's morning-brief.css, condensed). Colour says one thing each: a section's icon is
   its page's, a dot is the event's calendar, a ring is the todo's area, red is danger or a missed date, amber
   waits for you. */
.brief-window:has(.brief-ed:not([hidden])) { width: min(100%, 560px); }
.brief-ed { container: brief / inline-size; margin-top: 14px; }
.brief-ed > * + * { margin-top: 18px; }
.b-advice { display: grid; gap: 3px; padding: 10px 14px 11px; border-inline-start: 3px solid var(--alf); border-radius: 0 8px 8px 0; background: color-mix(in oklab, var(--alf-soft) 65%, var(--paper)); font-size: .9375rem; line-height: 1.45; }
.b-advice b { color: var(--alf); font-size: .75rem; font-weight: 650; }
.b-day { display: grid; gap: 18px; }
.b-sec h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 650; }
.b-sec h4 svg { color: var(--k-solid); }
.b-time li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: baseline; font-size: .875rem; }
.b-time time { font: 550 .75rem var(--mono); }
.b-time li > span { position: relative; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); }
.b-time li > span::after { content: ""; position: absolute; left: -4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--k-solid); box-shadow: 0 0 0 2px var(--bg); }
.b-tasks li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 6px 0; font-size: .875rem; }
.b-tasks li + li { border-top: 1px solid var(--line-soft); }
.b-tasks li > span { position: relative; padding-inline-start: 18px; }
.b-tasks li > span::before { content: ""; position: absolute; left: 0; top: .3em; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid var(--k-solid); }
.b-tasks small { margin-inline-start: 6px; color: var(--k-text); font-size: .6875rem; }
.b-tasks em { color: var(--copy); font-size: .75rem; font-style: normal; }
.b-tasks em.late { color: var(--now); font-weight: 600; }
.b-mail li { display: grid; gap: 4px; padding: 8px 0; color: var(--copy); font-size: .875rem; line-height: 1.45; }
.b-mail li + li { border-top: 1px solid var(--line-soft); }
.b-mail li:is([data-kind="risk"], [data-kind="decide"]) p > span { color: var(--ink); }
.b-mail small { display: block; margin-top: 1px; color: var(--muted); font-size: .75rem; }
.b-tag { justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--k-fill); color: var(--k-text); font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.b-tag svg { width: 12px; height: 12px; stroke-width: 1.8; }
@container brief (min-width: 460px) {
  .b-day { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
  .b-day > .b-sec + .b-sec { padding-inline-start: 18px; border-inline-start: 1px solid var(--line-soft); }
  .b-mail { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; }
  .b-mail li { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
}
@media (max-width: 700px) {
  .brief-screen { min-height: 325px; padding: 20px 16px 82px; }
}
@media (prefers-reduced-motion: no-preference) {
  .brief-window, .brief-speech { animation: brief-enter 220ms var(--ease); }
  @keyframes brief-enter { from { opacity: 0; transform: translateY(3px); } }
}
