/* Focus & Reply, Set Aside and Snoozed, plus the Inbox's Back from Snooze
   section and bottom trays. Headings and blank slates reuse the Feed's
   divider heading and blank-slate card (feed.css). */

/* Focus & Reply, measured from HEY's at 1512px: each thread is a sheet with
   its latest message on the left (clipped at 550px, See more…) and a "Reply
   here…" box on the right. */

.focus-reply__everyone { display: block; margin: 4.4px 0 0; font-size: 15.4px; line-height: 21.56px; text-align: center; }
.focus-reply__everyone a { display: inline-block; color: rgb(var(--ink-rgb) / 0.66); text-decoration: underline; text-underline-offset: 2px; }
.focus-reply__everyone a:hover { color: var(--color-ink); }
.focus-reply .feed-heading { margin-bottom: 27px; }
.focus-sheet__composer trix-toolbar[hidden], .everyone-reply__sheet trix-toolbar[hidden] { display: none; }

.focus-sheet {
  margin: 0 0 39.6px;
  padding: 55px 55px 12.375px;
  border-radius: 29.7px;
  background: var(--color-sheet);
  box-shadow: rgb(var(--warm-rgb) / 0.5) 0 0 33px 0;
}

.focus-sheet.posting--selected { box-shadow: 0 0 0 2px #3072dd, rgb(var(--warm-rgb) / 0.5) 0 0 33px 0; }

.focus-sheet__pills { display: flex; flex-wrap: wrap; gap: 5.5px; margin: 0 0 12.375px; }
.focus-sheet__pill {
  padding: 0.77px 7.7px;
  border: 1px solid rgb(41 152 80);
  border-radius: 15.4px;
  color: rgb(41 152 80);
  font-size: 15.4px;
  line-height: 21.56px;
}

.focus-sheet__title { margin: 0; font-size: 30.8px; line-height: 30.8px; font-weight: 700; overflow-wrap: anywhere; }
.focus-sheet__title a { color: inherit; text-decoration: none; }
.focus-sheet__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.focus-sheet__from { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }
.focus-sheet__avatar { position: relative; flex: none; width: 50px; height: 50px; }
.focus-sheet__avatar .avatar { --avatar-size: 49.5px; font-size: 17px; }
.focus-reply .focus-sheet__avatar .posting__select { position: absolute; inset: 0; width: 50px; height: 50px; margin: 0; }
.focus-sheet__who { display: flex; flex-direction: column; min-width: 0; }
.focus-sheet__name { color: inherit; font-size: 19.8px; line-height: 27.72px; font-weight: 700; text-decoration: none; }
.focus-sheet__name:hover { text-decoration: underline; }
.focus-sheet__to { color: rgb(var(--ink-rgb) / 0.66); font-size: 17.6px; line-height: 24.64px; }

.focus-sheet__columns { display: grid; grid-template-columns: 484px 466px; justify-content: space-between; align-items: start; }

.focus-sheet__body { position: relative; min-width: 0; padding-top: 10px; }
.focus-sheet__clip { max-height: 550px; padding-bottom: 55px; }
.focus-sheet__body.feed-item--expanded .focus-sheet__clip { max-height: none; }

.focus-sheet__expander { position: absolute; left: 0; bottom: 0; padding: 12.375px 0 6.19px; }
.focus-sheet__body.feed-item--expanded .focus-sheet__expander { position: static; }

.focus-sheet__more {
  padding: 4.62px 12.32px;
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  border-radius: 33px;
  background: var(--color-sheet);
  color: rgb(var(--ink-rgb) / 0.66);
  font: 500 15.4px/21.56px var(--font);
  cursor: pointer;
}

.focus-sheet__more[hidden] { display: none; }
.focus-sheet__more:hover { color: var(--color-ink); }
.focus-sheet__more:focus-visible { outline: none; box-shadow: 0 0 0 2px #a4d2ff; }

.focus-sheet__composer {
  position: sticky;
  top: calc(var(--header-height, 53px) + 11px);
  margin-top: 11px;
  padding: 13px 22px 22px;
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  border-radius: 22px;
  background: var(--color-sheet);
}

.focus-sheet__editor { min-height: 77px; padding: 11px 0; border: 0; border-radius: 3px; font-size: 19.8px; line-height: 27.72px; outline: none; }
.focus-sheet__editor:empty::before { color: rgb(var(--ink-rgb) / 0.6); }

.focus-sheet__send {
  margin-top: 0;
  padding: 5.94px 15.84px;
  border: 1px solid var(--color-accent);
  border-radius: 33px;
  background: var(--color-accent);
  color: #fff;
  font: 500 19.8px/27.72px var(--font);
  cursor: pointer;
}

.focus-sheet__send:hover { filter: brightness(0.97); }
.focus-sheet__send:focus-visible { outline: none; box-shadow: 0 0 0 2px #a4d2ff; }

/* Set Aside and Snoozed: a sheet with the title on the gradient rule */

.workflow-sheet__header { position: relative; }
.workflow-sheet__divider { position: relative; }
.workflow-sheet__divider::before { content: ""; position: absolute; inset: 22px 0 auto; height: 1px; background: var(--color-rule); }
.workflow-sheet__divider span { position: relative; padding: 0 11px; background: var(--color-sheet); }

.workflow-sheet__description { max-width: 40em; margin: 6.78px auto 24.75px; font-size: 19.8px; line-height: 27.72px; text-align: center; }

.workflow-postings { margin: 0 -55px; }

.workflow-entry { position: relative; display: flex; align-items: center; gap: 11px; padding: 0 55px; }
.workflow-entry .posting { flex: 1; min-width: 0; }
.workflow-entry .posting__body { border-radius: 11px; }
.workflow-entry .posting__body:hover { background: rgb(48 114 221 / 0.05); }
.workflow-entry:focus { outline: none; }
.workflow-entry:focus-visible .posting__body, .workflow-entry:focus-within .posting__body { box-shadow: 0 0 0 2px #a4d2ff; }
.workflow-entry__open { display: none; }
.workflow-entry__form { flex: none; margin: 0; }

.workflow-entry__button {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  height: 30.8px;
  padding: 3.96px 11px 3.96px 8.8px;
  border: 1px solid var(--popup-line);
  border-radius: 33px;
  background: var(--color-sheet);
  color: var(--color-ink);
  font: 500 15.4px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
}

.workflow-entry__button[hidden] { display: none; }
.workflow-entry__button:hover { background: var(--color-soft); }
.workflow-entry__button:focus-visible { outline: none; box-shadow: 0 0 0 2px #a4d2ff; }
.workflow-entry__icon { width: 16px; height: 16px; }

/* Snoozed: the date badge stands in for the time */
.workflow-entry--snooze .posting__time { display: none; }
.workflow-entry--snooze .posting__body { grid-template-columns: 45px 1fr; }
.workflow-entry__badge { flex: none; display: flex; justify-content: flex-end; min-width: 120px; }

/* "••• Options" in the sheet's top-right corner */
.workflow-options { position: absolute; top: -33px; right: -33px; }
.workflow-options > summary { list-style: none; }
.workflow-options > summary::-webkit-details-marker { display: none; }

.workflow-options__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 37px;
  padding: 5.28px 14.08px;
  border: 1px solid var(--popup-line);
  border-radius: 33px;
  color: var(--color-ink);
  font-size: 17.6px;
  line-height: 24.64px;
  font-weight: 500;
  cursor: pointer;
}

.workflow-options__pill:hover, .workflow-options[open] > .workflow-options__pill { background: var(--color-soft); }
.workflow-options__pill:focus-visible { outline: none; box-shadow: 0 0 0 2px #a4d2ff; }
.workflow-options__dots { letter-spacing: -1px; }
.workflow-options__menu { right: 0; }

/* Blank slates inside a sheet run edge to edge */
.workflow-blank { margin: 0 -55px; border-radius: 0; }

/* Snooze with nothing waiting, as HEY's */
.workflow-blank--snooze { margin: 7.1px -17.6px 24.75px; }

/* Inbox: Back from Snooze, above New for you */

.postings--back-from-snooze, .postings--new { flex: none; }
.back-from-snooze-entry { display: flex; align-items: center; gap: 11px; }
.back-from-snooze-entry .posting { flex: 1; min-width: 0; }
.back-from-snooze-entry .posting__time { display: none; }
/* The round button takes the date's place inside the row in the reference, so the
   hover wash covers the whole entry, button included, once */
.back-from-snooze-entry:hover { background: rgb(48 114 221 / 0.05); }
.back-from-snooze-entry .posting__body:hover, .back-from-snooze-entry .posting:has(.posting__select:hover) .posting__body { background: none; }
.back-from-snooze-entry > .snooze { flex: none; align-self: flex-start; margin: 9.9px 11px 0 0; }
.back-from-snooze-entry .snooze__menu { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; translate: none; }

/* The reference's round Snooze button on a back-from-snooze row, in the blue */
.snooze__round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 52.8px;
  color: var(--color-accent);
  list-style: none;
  cursor: pointer;
}
.snooze__round::-webkit-details-marker { display: none; }
/* A deeper tint of the row's own hover blue (5%), so the two read as one */
.snooze__round:hover, .snooze[open] > .snooze__round { background: rgb(48 114 221 / 0.12); }
.snooze__round:focus { outline: none; }
.snooze__round:focus-visible { box-shadow: 0 0 0 2px #a4d2ff; }
.snooze__round-icon { width: 21.8px; height: 21.8px; }

/* Inbox: the bottom trays, measured from HEY's. A fixed strip as wide as the
   sheet; trays sit side by side in its centre, 16.5px from its edges. */

.sheet:has(.trays) { padding-bottom: 93px; }

.trays { position: fixed; inset: auto 0 0; z-index: 7; text-align: center; pointer-events: none; }

.trays__scroller {
  display: flex;
  justify-content: center;
  width: min(1078px, 100%);
  margin: 0 auto;
  background: var(--color-paper);
  pointer-events: auto;
}

.tray { position: relative; margin: 16.5px 0; text-align: left; }
.tray__summary { position: relative; display: block; width: 330px; height: 60.5px; list-style: none; cursor: pointer; }
.tray__summary::-webkit-details-marker { display: none; }
.tray__summary:focus { outline: none; }
.tray__summary:focus-visible .tray-card:first-child { box-shadow: 0 0 0 2px #a4d2ff; }

/* Under the pile: the tray's icon, and its "Go to" pill (uncovered when open) */
.tray__link {
  position: absolute;
  top: 8.25px;
  left: 12px;
  z-index: 1;
  display: block;
  padding: 5.94px 15.84px 5.94px 33px;
  border-radius: 33px;
  color: inherit;
  text-decoration: none;
}

.tray__icon { position: absolute; left: 0; top: 40%; width: 26.4px; height: 26.4px; color: rgb(var(--ink-rgb) / 0.4); }
.tray[open] .tray__icon { color: var(--color-accent); }
/* The reference's glyphs fill their 26.4px box (Reply Later 26.4 x 25.3px of
   ink, Set Aside 24.1px square); ours sit inside a 24-unit grid with room
   around them, so they're drawn up to match, centred where the reference's are */
.tray--reply-later .tray__icon { scale: 1.333; translate: -1.33px 1.85px; }
.tray--set-aside .tray__icon { scale: 1.28; }

.tray__pill {
  display: inline-block;
  padding: 3.96px 10.56px;
  border: 1px solid var(--popup-line);
  border-radius: 33px;
  background: var(--color-sheet);
  color: var(--color-ink);
  font: 500 13.2px/18.48px var(--font);
  white-space: nowrap;
}

.tray__link:focus { outline: none; }
.tray__link:focus-visible .tray__pill { box-shadow: 0 0 0 2px #a4d2ff; }

.tray__postings { position: relative; display: block; width: 330px; height: 60.5px; }

/* A pile: each card further back is 1/30 smaller and 11px higher. A card's
   position is its place in the pile: up to eight, then "+ N more…" */
.tray-card:nth-child(1) { --position: 1; }
.tray-card:nth-child(2) { --position: 2; }
.tray-card:nth-child(3) { --position: 3; }
.tray-card:nth-child(4) { --position: 4; }
.tray-card:nth-child(5) { --position: 5; }
.tray-card:nth-child(6) { --position: 6; }
.tray-card:nth-child(7) { --position: 7; }
.tray-card:nth-child(8) { --position: 8; }
.tray-card:nth-child(9) { --position: 9; }
.tray-card {
  --scale: calc(1 - var(--position) / 30);
  --translate-y: calc((var(--position) - 1) * -11px);
  position: absolute;
  top: 0;
  left: 33px;
  z-index: calc(9 - var(--position));
  display: grid;
  grid-template-columns: 46.5px minmax(0, 1fr);
  align-items: center;
  width: 275px;
  height: 62px;
  margin: 0 5.5px;
  padding: 11px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--color-sheet);
  box-shadow: 0 0 10px rgb(var(--warm-rgb) / 0.4);
  font-size: 15.84px;
  transform: scale(var(--scale)) translateY(var(--translate-y));
  transition: transform 0.2s, box-shadow 0.2s;
}

.tray-card .avatar { --avatar-size: 35.2px; justify-self: center; font-size: 13px; }
.tray-card__text { display: flex; flex-direction: column; min-width: 0; }
.tray-card__title, .tray-card__sender { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15.4px; }
.tray-card__title { line-height: 20.02px; }
.tray-card__sender { color: rgb(var(--ink-rgb) / 0.66); line-height: 18.48px; }

.tray-card--overflow { display: none; grid-template-columns: 1fr; padding: 16.5px; color: var(--color-muted); text-align: center; }

/* Open: fanned upwards, each further card a little higher and more askew */
.tray[open] .tray-card {
  box-shadow: 0 0 10px rgb(var(--warm-rgb) / 0.5), 0 10px 20px rgb(var(--warm-rgb) / 0.6);
  transform: rotate(calc(var(--position) * 1.1deg)) translate(calc(var(--position) * -4px), calc(var(--position) * -66px));
  cursor: pointer;
}

.tray[open] .tray-card--overflow { display: grid; }
.tray[open] .tray-card:hover { box-shadow: 0 0 0 2px #a4d2ff, 0 10px 20px rgb(var(--warm-rgb) / 0.6); }

@media (prefers-reduced-motion: reduce) {
  .tray-card { transition: none; }
}

@media (max-width: 640px) {
  .focus-sheet { padding: 33px 16px 12px; }
  .focus-sheet__columns { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }

  .workflow-postings, .workflow-blank { margin-inline: -16px; }
  .workflow-entry { flex-wrap: wrap; padding: 0 16px; }
  .workflow-options { position: static; display: flex; justify-content: center; margin-bottom: 12.78px; }

  .tray__summary, .tray__postings { width: min(330px, 48vw); }
  .tray-card { width: min(275px, 40vw); }
  .tray__pill { display: none; }
}

/* Reply to Everyone, measured from HEY's: a plain centred title, a 1043px
   sheet for the reply, then the threads it goes to as white rounded rows. */

.everyone-reply { width: min(1043px, 100%); margin: 0 auto; padding-bottom: 66px; }
.everyone-reply__header { text-align: center; }
.everyone-reply__title { margin: 0; font-size: 44px; line-height: 44px; font-weight: 700; }
.everyone-reply__description { margin: 6.19px 0 0; font-size: 19.8px; line-height: 27.72px; }

.everyone-reply__sheet { margin: 24.75px 0 39.6px; padding: 55px; border-radius: 29.7px; background: var(--color-sheet); box-shadow: rgb(var(--warm-rgb) / 0.5) 0 0 33px 0; }
.everyone-reply__editor { min-height: 178px; margin-top: 15px; padding: 11px 0; border: 0; border-radius: 3px; font-size: 19.8px; line-height: 27.72px; outline: none; }
.everyone-reply__buttons { display: flex; align-items: center; gap: 6.19px; margin-top: 22px; }
.everyone-reply__send { padding: 5.94px 15.84px; border: 1px solid #3072dd; border-radius: 33px; background: #3072dd; color: #fff; font: 500 19.8px/27.72px var(--font); cursor: pointer; }
.everyone-reply__send:focus-visible { outline: none; box-shadow: 0 0 0 2px #a4d2ff; }
.everyone-reply__format { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: rgb(var(--ink-rgb) / 0.66); cursor: pointer; }
.everyone-reply__format svg { width: 22px; height: 22px; }
.everyone-reply__format[aria-pressed="true"] { box-shadow: 0 0 0 2px #a4d2ff; }

.everyone-reply__list-title { margin: 0; padding: 0 55px; font-size: 19.8px; line-height: 25.74px; font-weight: 700; text-align: center; }
.everyone-reply__threads { margin: 24.75px 0 0; padding: 0 55px; list-style: none; }
.everyone-reply__thread { display: flex; align-items: center; gap: 13.86px; margin: 12.375px 0; padding: 3.96px 13.86px 3.96px 26px; border-radius: 29.7px; background: var(--color-sheet); box-shadow: rgb(var(--warm-rgb) / 0.5) 0 0 33px 0; }
.everyone-reply__thread-title { flex: 1; min-width: 0; margin: 12px 0; font-size: 19.8px; line-height: 25.74px; font-weight: 700; overflow-wrap: anywhere; }
.everyone-reply__thread-title a { color: inherit; text-decoration: none; }
.everyone-reply__thread-to { color: rgb(var(--ink-rgb) / 0.66); font-weight: 400; }
.everyone-reply__skip { flex: none; padding: 4.62px 12.32px; border: 1px solid rgb(var(--ink-rgb) / 0.15); border-radius: 33px; background: var(--color-sheet); color: rgb(var(--ink-rgb) / 0.66); font: 500 15.4px/21.56px var(--font); cursor: pointer; }
.everyone-reply__skip::before { content: "⊗"; margin-right: 6px; }
.everyone-reply__skip:hover { color: var(--color-ink); }
