/* The home: three bands read outward from the person, you, the team and the brain, each
   named in a column of its own. Each block is a card; every row inside one is its link. */

:root {
  --tone-0: #34659a;
  --tone-1: #8a5a8a;
  --tone-2: #6a7f4f;
  --tone-3: #a0613a;
  --tone-4: #3f7f86;
  --tone-5: #7a6a3a;
  --level-0: color-mix(in srgb, var(--line) 55%, var(--sheet));
  --level-1: color-mix(in srgb, var(--out) 18%, var(--sheet));
  --level-2: color-mix(in srgb, var(--out) 40%, var(--sheet));
  --level-3: color-mix(in srgb, var(--out) 68%, var(--sheet));
  --level-4: var(--out);
}

.home {
  display: grid;
  gap: 1.4rem;
}

.home .top {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.home .top h1 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.home .top .date {
  font-size: var(--text-sm);
  color: var(--muted);
}

.home aside.connect-prompt {
  margin: 0;
}

/* When the brain has stopped, said above everything, since its own band is last. */
.home .halted {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  background: color-mix(in srgb, var(--bad) 7%, var(--sheet));
  border: 1px solid color-mix(in srgb, var(--bad) 25%, var(--sheet));
  border-radius: 10px;
}

.home .halted .banner.processing {
  flex: 1 1 24rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: var(--text-md);
}

.home .halted .banner.processing ul {
  font-size: var(--text-sm);
  color: var(--ink);
}

.home .halted form {
  margin: 0;
}

.home .halted button.connect {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

/* A band: its name above its blocks. */
.home .band {
  display: grid;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.home .band > h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.home h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
}

.home h3 > a {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted);
}

.home h3 .count {
  color: var(--warn);
}

/* The person's own home reads at the width of three people's grids. */
.home.mirror {
  max-width: 56rem;
  grid-template-columns: minmax(0, 1fr);
}

/* The person's assistant this week: three figures, and the week against the one before. */
.home .stats {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0;
}

.home .stats div {
  display: flex;
  flex-direction: column-reverse;
}

.home .stats dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.home .stats dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

.home .stats .up {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--good);
}

.home .this-week .connect {
  margin: 0;
  font-size: var(--text-md);
}

/* Each member's assistant over three months, side by side: a square a day, a column a week. */
.home .people {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
}

.home .use {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.home .use figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-sm);
}

.home .use figcaption b {
  font-weight: 500;
}

.home .use figcaption span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.home .use .months,
.home .use .squares {
  display: grid;
  grid-auto-columns: 11px;
  column-gap: 3px;
}

.home .use .months {
  grid-auto-flow: column;
  height: 14px;
  font-size: 10.5px;
  line-height: 14px;
  color: var(--muted);
}

.home .use .months span {
  grid-row: 1;
  white-space: nowrap;
}

.home .use .squares {
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  row-gap: 3px;
}

.home .use .squares i {
  border-radius: 2px;
  background: var(--level-0);
}

.home .use .squares i.level-1 { background: var(--level-1); }
.home .use .squares i.level-2 { background: var(--level-2); }
.home .use .squares i.level-3 { background: var(--level-3); }
.home .use .squares i.level-4 { background: var(--level-4); }

.home .use .squares i.later {
  visibility: hidden;
}

/* The pages assistants come back to: long rows stacked, each leading to its page. */
.home .relied-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}

.home .relied-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.home .relied-row:hover {
  border-color: color-mix(in srgb, var(--muted) 45%, var(--line));
}

.home .relied-row:hover .title {
  color: var(--out);
}

.home .relied-row .kind-mark {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--tone-0);
}

.home .relied-row .kind-mark.tone-1 { background: var(--tone-1); }
.home .relied-row .kind-mark.tone-2 { background: var(--tone-2); }
.home .relied-row .kind-mark.tone-3 { background: var(--tone-3); }
.home .relied-row .kind-mark.tone-4 { background: var(--tone-4); }
.home .relied-row .kind-mark.tone-5 { background: var(--tone-5); }

.home .relied-row .title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-md);
}

.home .relied-row .kind,
.home .relied-row .days {
  flex: none;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.home .relied-row .kind {
  width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .relied-row .days {
  width: 3.75rem;
  text-align: right;
}

.home .relied-row meter {
  flex: none;
  width: 3.5rem;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: var(--wash);
}

.home .relied-row meter::-webkit-meter-bar {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: var(--wash);
}

.home .relied-row meter::-webkit-meter-optimum-value,
.home .relied-row meter::-webkit-meter-suboptimum-value,
.home .relied-row meter::-webkit-meter-even-less-good-value {
  border-radius: 2px;
  background: var(--level-3);
}

.home .relied-row meter::-moz-meter-bar {
  border-radius: 2px;
  background: var(--level-3);
}

.home .relied-row .faces {
  flex: none;
  display: flex;
}

.home .relied-row .faces .avatar + .avatar {
  margin-left: -0.15rem;
  box-shadow: 0 0 0 1.5px var(--sheet);
}

@media (max-width: 640px) {
  .home .relied-row .kind,
  .home .relied-row meter {
    display: none;
  }
}

.home .card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}

.home .card .meta {
  padding: 0.8rem 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.home ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* A member's face: initials on a colour of their own. */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  flex: none;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--tone-0);
}

.avatar.tiny {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.42rem;
  letter-spacing: 0;
}

.avatar.large {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.8rem;
}

.avatar.tone-1 { background: var(--tone-1); }
.avatar.tone-2 { background: var(--tone-2); }
.avatar.tone-3 { background: var(--tone-3); }
.avatar.tone-4 { background: var(--tone-4); }
.avatar.tone-5 { background: var(--tone-5); }

/* Small bars, a day each, whose values show when pointed at. */
svg.bars {
  width: 6.5rem;
  height: 1.7rem;
  overflow: visible;
}

svg.bars rect {
  fill: var(--out);
}

svg.bars.person rect {
  fill: var(--in);
}

svg.bars rect.none {
  fill: var(--line);
}

svg.bars rect:hover {
  opacity: 0.75;
}

/* The pulse: a card with whether the brain keeps up, three small figures and Health. */
.home .heartbeat {
  display: flex;
  align-items: center;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
}

.home .heartbeat .state {
  flex: 1 1 18rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

.home .heartbeat .state i {
  align-self: center;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 15%, transparent);
}

.home .heartbeat .state.down i {
  background: var(--bad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 15%, transparent);
}

.home .heartbeat .state b {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}

.home .heartbeat .state.down b {
  color: var(--bad);
}

.home .heartbeat .figures {
  display: flex;
  margin: 0;
}

.home .heartbeat .figures div {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 1.1rem;
}

.home .heartbeat .figures div + div {
  border-left: 1px solid var(--line);
}

.home .heartbeat .figures dd {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
}

.home .heartbeat .figures dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Two blocks side by side in a band: who is on what beside the questions. */
.home .desk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

/* What waits on the person: a line each, one open at a time, answered in place. */
.home .for-you {
  margin-top: 1.6rem;
}

.home .for-you > h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
}

.home .for-you .rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home .for-you .rows > li + li {
  border-top: 1px solid var(--line);
}

.home .for-you .rows turbo-frame {
  display: block;
}

.home .for-you details.for-you-row > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto 1rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.home .for-you details.for-you-row > summary::-webkit-details-marker {
  display: none;
}

.home .for-you details.for-you-row > summary:hover {
  background: var(--wash);
}

.home .for-you .rows > li:first-child details.for-you-row > summary {
  border-radius: 10px 10px 0 0;
}

.home .for-you .mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--warn-wash);
  color: var(--warn);
}

.home .for-you .comment .mark {
  background: var(--wash);
  color: var(--muted);
}

.home .for-you .what {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.home .for-you .what .title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home .for-you details[open] .what .title {
  white-space: normal;
}

.home .for-you .what .meta {
  font-size: var(--text-xs);
  color: var(--muted);
}

.home .for-you .badge {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--wash);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.home .for-you .chevron {
  color: var(--muted);
  transition: transform 0.15s;
}

.home .for-you details[open] .chevron {
  transform: rotate(90deg);
}

.home .for-you .settled {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--good) 4%, var(--sheet));
  animation: settle 0.25s ease-out;
}

.home .for-you .settled .mark {
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
}

.home .for-you .settled .title {
  color: var(--muted);
  font-weight: 500;
}

.home .for-you .settled .meta {
  color: var(--good);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home .for-you .rows > li:first-child .settled {
  border-radius: 10px 10px 0 0;
}

.home .for-you .rows > li:last-child .settled {
  border-radius: 0 0 10px 10px;
}

.home .for-you .rows > li:only-child .settled {
  border-radius: 10px;
}

/* Reopen shows on hover or keyboard focus; always on a screen without hover. */
.home .for-you .settled .undo {
  opacity: 0;
  transition: opacity 0.15s;
}

.home .for-you .settled:hover .undo,
.home .for-you .settled:focus-within .undo {
  opacity: 1;
}

@media (hover: none) {
  .home .for-you .settled .undo {
    opacity: 1;
  }
}

.home .for-you .settled .reopen {
  padding: 0.2rem 0.4rem;
  color: var(--muted);
  font-size: var(--text-xs);
  cursor: pointer;
}

.home .for-you .settled .reopen:hover {
  color: var(--ink);
  text-decoration: underline;
}

@keyframes settle {
  from { background: color-mix(in srgb, var(--good) 14%, var(--sheet)); }
}

.home .for-you .body {
  padding: 0 1rem 1rem 3.5rem;
}

.home .for-you .why {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.home .for-you .why > :first-child {
  margin-top: 0;
}

.home .for-you .why ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.home .for-you .why li + li {
  margin-top: 0.2rem;
}

.home .for-you .why blockquote {
  margin: 0 0 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--mark);
  color: var(--muted);
}

.home .for-you .choices {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  max-width: 36rem;
}

.home .for-you .choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  text-align: left;
  font-size: var(--text-sm);
}

.home .for-you .choice:hover {
  border-color: var(--ink);
}

.home .for-you .choice .dot {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.home .for-you .choice .text {
  flex-grow: 1;
}

.home .for-you .choice.recommended {
  border-color: color-mix(in srgb, var(--good) 45%, var(--line));
}

.home .for-you .choice .tag {
  font-size: var(--text-xs);
  color: var(--good);
}

.home .for-you .words {
  margin: 0.5rem 0 0;
  display: flex;
  gap: 0.4rem;
  max-width: 36rem;
}

.home .for-you .words input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  font-size: var(--text-sm);
}

.home .for-you .acts {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.home .for-you .acts .spacer {
  flex-grow: 1;
}

.home .for-you form.inline {
  display: contents;
}

.home .for-you .quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.1rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
}

.home .for-you .quiet-button::-webkit-details-marker {
  display: none;
}

.home .for-you .quiet-button:hover,
.home .for-you details[open] > .quiet-button {
  border-color: color-mix(in srgb, var(--ink) 30%, var(--line));
}

.home .for-you .quiet-button.hand {
  padding-left: 0.35rem;
}

.home .for-you .faces {
  display: inline-flex;
}

.home .for-you .faces .avatar + .avatar {
  margin-left: -0.45rem;
}

.home .for-you .faces .avatar {
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.55rem;
  box-shadow: 0 0 0 2px var(--sheet);
}

.home .for-you .pop .panel .item .avatar {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6rem;
}

.home .for-you .pop {
  position: relative;
}

.home .for-you .pop .panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 15rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.home .for-you .pop.end .panel {
  left: auto;
  right: 0;
}

.home .for-you .pop .panel .meta {
  margin: 0.2rem 0.5rem 0.3rem;
  font-size: var(--text-xs);
  color: var(--muted);
}

.home .for-you .pop .panel label {
  display: grid;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem;
  font-size: var(--text-sm);
}

.home .for-you .pop form.panel {
  width: min(24rem, calc(100vw - 2rem));
}

.home .for-you .pop .panel label textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-md);
  line-height: 1.4;
  resize: vertical;
}

.home .for-you .pop .panel form:has(> .item),
.home .for-you .pop .panel form.button_to {
  display: contents;
}

.home .for-you .pop .panel .item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: var(--text-sm);
}

.home .for-you .pop .panel .item:hover {
  background: var(--wash);
}

.home .for-you .pop .panel .item .avatar + span {
  flex-grow: 1;
}

.home .for-you .pop .panel .item .meta {
  margin: 0;
}

.home .for-you .pop form.panel > .quiet-button {
  justify-self: end;
  margin: 0.2rem 0.4rem 0.3rem;
}

@media (max-width: 640px) {
  .home .for-you .body {
    padding-left: 1rem;
  }

  .home .for-you .badge {
    display: none;
  }

  .home .for-you details.for-you-row > summary {
    grid-template-columns: 1.75rem minmax(0, 1fr) 1rem;
  }
}

/* A matter's line, sent back by the actions on it: the For you line, quieter, with its
   state under the title. */
.home .work details.work-row > summary {
  grid-template-columns: 1.75rem minmax(0, 1fr) 1rem;
}

.home .work .work-row .mark {
  background: var(--wash);
  color: var(--muted);
}

.home .work .work-row.late .mark,
.home .work .work-row.late .state {
  color: var(--bad);
}

.home .work .work-row.late .mark {
  background: color-mix(in srgb, var(--bad) 10%, transparent);
}

.home .work .work-row.chase .mark {
  background: var(--warn-wash);
  color: var(--warn);
}

.home .work .next {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home .work .facts {
  margin: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* The live work: a row per piece of work, a square a day. */
.home .live-work .card {
  padding: 0.8rem 1rem 0.7rem;
}

.home .board {
  display: grid;
  gap: 0.25rem;
}

.home .board .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(10, 1.4rem);
  gap: 0.25rem;
  align-items: center;
}

.home .board .day-name {
  display: grid;
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
}

.home .board .day-name b {
  font-weight: 500;
}

.home .board .what {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin-left: -0.5rem;
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  border-radius: var(--radius);
  color: var(--ink);
}

.home .board .what:hover {
  background: var(--wash);
  text-decoration: none;
}

.home .board .title {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 0.3rem;
  font-size: var(--text-md);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .asked {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--warn-wash);
  color: var(--warn);
  font-size: 0.55rem;
  font-weight: 700;
}

.home .board .square {
  display: block;
  height: 1.4rem;
  border-radius: 4px;
  background: var(--level-0);
}

.home .board .square.level-1 { background: var(--level-1); }
.home .board .square.level-2 { background: var(--level-2); }
.home .board .square.level-3 { background: var(--level-3); }
.home .board .square.level-4 { background: var(--level-4); }

.home .board a.square:hover {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* The team, beside the questions, a wide bar a day for each member */
.home .team svg.bars {
  width: 13rem;
  height: 3.4rem;
}

.home .team .member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.5rem 1rem;
  color: var(--ink);
}

.home .team .member + .member {
  border-top: 1px solid var(--line);
}

.home .team .member:hover {
  background: var(--wash);
  text-decoration: none;
}

.home .team .card {
  overflow: hidden;
}

.home .team .who {
  display: grid;
  min-width: 0;
}

.home .team .name {
  font-size: var(--text-md);
  font-weight: 500;
}

.home .team .week,
.home .team .on {
  font-size: var(--text-xs);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .arrivals .card {
  padding: 0.9rem 1.1rem 0.6rem;
}

/* Until the frame lands, the card keeps about the room it will take. */
.home .arrivals .loading {
  min-height: 9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.home .arrivals .summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.home .arrivals .summary p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.home .arrivals .summary b {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

svg.bars.arrivals {
  width: 11rem;
  height: 2rem;
}

svg.bars rect.quiet {
  fill: color-mix(in srgb, var(--out) 35%, var(--sheet));
}

/* A block a kind: its count, then its latest pages. */
.home .arrivals .kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.home .arrivals .kind {
  padding: 0.7rem 1rem 0.3rem 0;
  min-width: 0;
}

.home .arrivals .kind + .kind {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.home .arrivals h3 {
  margin: 0 0 0.3rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
}

.home .arrivals h3 b {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.home .arrivals li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-inline: -0.4rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--text-sm);
}

.home .arrivals li a:hover {
  background: var(--wash);
  text-decoration: none;
}

.home .arrivals li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .arrivals em.thin {
  font-style: normal;
  font-size: var(--text-xs);
  white-space: nowrap;
  color: var(--warn);
  background: var(--warn-wash);
  border-radius: 999px;
  padding: 0 0.5rem;
}

@media (max-width: 1000px) {
  .home .desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .home .arrivals .kind + .kind {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .home .board .row {
    grid-template-columns: minmax(0, 1fr) repeat(10, 0.9rem);
    gap: 0.15rem;
  }

  .home .board .square {
    height: 1rem;
    border-radius: 3px;
  }

  .home .board .day-name b {
    display: none;
  }
}

/* Open a prompt in the person's assistant, or copy it; the menu holds the other ways. */
.assistant-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  font-size: var(--text-sm);
}

.assistant-split .main,
.assistant-split .more > summary {
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  cursor: pointer;
}

.assistant-split .main {
  border: 0;
  font-family: inherit;
  font-size: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

.assistant-split .more > summary {
  list-style: none;
  height: 100%;
  padding: 0 0.55rem;
  font-size: var(--text-md);
  border-left: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.assistant-split .more > summary::-webkit-details-marker {
  display: none;
}

.assistant-split .main:hover,
.assistant-split .more > summary:hover {
  text-decoration: none;
  opacity: 0.88;
}

.assistant-split.quiet .main,
.assistant-split.quiet .more > summary {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 400;
}

.assistant-split.quiet .more > summary {
  border-left: 0;
}

.assistant-split .menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 13rem;
  display: grid;
  padding: 0.3rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.08);
}

.assistant-split .menu a,
.assistant-split .menu button {
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-align: left;
  font-weight: 400;
}

.assistant-split .menu a:hover,
.assistant-split .menu button:hover {
  background: var(--wash);
  text-decoration: none;
}

.assistant-split .main,
.assistant-split .menu a,
.assistant-split .menu button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.assistant-split .menu button .icon {
  order: -1;
}

.assistant-split .main .icon,
.assistant-split .menu a .icon {
  opacity: 0.75;
}

.assistant-split .menu .choose {
  margin: 0.3rem 0 0;
  padding: 0.45rem 0.6rem 0.3rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

.assistant-split .prompt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: pre-wrap;
}

/* No assistant connected: the buttons become the way to connect one. */
.assistant-connect {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-sm);
  font-weight: 500;
}

.assistant-connect:hover {
  text-decoration: none;
  opacity: 0.88;
}

.assistant-connect.quiet {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 400;
}
