/* ── Follow-ups ───────────────────────────────────────────────────────────────
   A post with a comment section under it. What somebody wrote is a bubble with a
   face beside it, and something that happened is a quiet line across the thread,
   so a handoff is never mistaken for somebody talking. */

.fu-heading { margin-bottom: 16px; }

.fu-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fu-tabs button {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; padding: .5rem .85rem;
  border-radius: 999px; background: var(--card); color: var(--ink);
}
.fu-tabs button[aria-current="true"] { background: var(--tab-on); border-color: var(--tab-on); color: var(--tab-on-ink); }
.fu-tab-count { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .76rem; opacity: .8; }
.fu-tab-count:empty { display: none; }
.fu-tabs .fu-dot[hidden] { display: none; }
.fu-search { margin-bottom: 14px; max-width: 28rem; display: block; }
.fu-empty { padding: 1.5rem 0; }

/* ── A card in a list ──────────────────────────────────────────────────────── */
.fu-card {
  display: flex; flex-direction: column; gap: .4rem; width: 100%; text-align: left; margin-bottom: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem;
  color: var(--ink); white-space: normal; cursor: pointer;
}
.fu-card:hover { border-color: var(--accent); }
.fu-card.has-unread { border-left: 4px solid var(--accent); }
.fu-card-top { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.fu-card-top strong { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
.fu-new {
  font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
}
.fu-card-who { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .84rem; color: var(--muted); }
.fu-card-who b { color: var(--ink); font-weight: 600; }
.fu-due.is-late, .fu-late { color: var(--bad); font-weight: 600; }
.fu-latest {
  font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere;
}
.fu-gone { font-style: normal; font-weight: 400; color: var(--muted); }

.fu-progress { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.fu-progress-bar { flex: 1 1 8rem; max-width: 18rem; height: 7px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.fu-progress-bar > span { display: block; height: 100%; background: var(--good); border-radius: 999px; }
.fu-progress-words { font-variant-numeric: tabular-nums; }

/* ── Faces and names ───────────────────────────────────────────────────────── */
.fu-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem;
  border-radius: 50%; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: #fff;
}
.fu-shade-0 { background: #2C5A7A; } .fu-shade-1 { background: #B94B17; } .fu-shade-2 { background: #2E7D5B; }
.fu-shade-3 { background: #5C6B78; } .fu-shade-4 { background: #1E2E3C; }
.fu-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fu-chips:empty { display: none; }
.fu-chip {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; line-height: 1.2;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .55rem .18rem .2rem;
}
.fu-chip .fu-avatar { width: 1.5rem; height: 1.5rem; font-size: .6rem; }
.fu-chip.is-next { border-color: var(--accent); }
.fu-chip button { background: none; border: 0; padding: 0 .15rem; min-height: 0; min-width: 0; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.fu-chip button:hover { color: var(--bad); }

.fu-pick-list {
  display: flex; flex-direction: column; margin-top: .25rem; max-height: 15rem; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
.fu-pick-list[hidden] { display: none; }
.fu-pick-list > button {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; border: 0; border-radius: 0;
  background: transparent; padding: .42rem .6rem; font-size: .9rem; color: var(--ink);
}
.fu-pick-list > button:hover, .fu-pick-list > button:focus-visible { background: var(--sunken); }
.fu-pick-list em { font-style: normal; font-size: .78rem; color: var(--warn); margin-left: .3rem; }
.fu-pick-list p { padding: .4rem .6rem; margin: 0; }

/* ── The form ──────────────────────────────────────────────────────────────── */
.fu-form { max-width: 44rem; margin-left: auto; margin-right: auto; }
.fu-form h1 { margin-bottom: .2rem; }
.fu-optional { text-transform: none; letter-spacing: 0; font-family: inherit; opacity: .8; }
.fu-more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.fu-more > summary { cursor: pointer; font-weight: 500; }
.fu-file-button {
  display: inline-block; margin-top: .8rem; width: auto; cursor: pointer; font-family: inherit; text-transform: none; letter-spacing: 0;
  font-size: .85rem; font-weight: 500; padding: .45rem .8rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px;
}
.fu-file-button:hover { border-color: var(--accent); }
.fu-file-list { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .85rem; }
.fu-file-list:empty { display: none; }
.fu-form-foot { margin-top: 1.1rem; }

/* ── The post at the top of a thread ───────────────────────────────────────── */
.fu-post { margin-bottom: 1rem; }
.fu-post-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.fu-post-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fu-post-head time, .fu-bubble time, .fu-event time { font-size: .76rem; color: var(--muted); }
.fu-post h1 { font-size: 1.3rem; margin-bottom: .45rem; overflow-wrap: anywhere; }
.fu-words { margin: 0 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.fu-mention { color: var(--blueprint); font-weight: 600; }

.fu-facts { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: .9rem 0 .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.fu-facts dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.fu-facts dd { margin: 0; font-size: .92rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.fu-facts .fu-avatar { width: 1.5rem; height: 1.5rem; font-size: .6rem; }
.fu-fact-wide { flex: 1 1 100%; }
.fu-job { color: var(--accent); font-size: .92rem; text-align: left; }

.fu-people { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .8rem; }
.fu-people-label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); flex: 1 1 100%; }
.fu-add-person { color: var(--accent); margin-left: .25rem; }

.fu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.fu-status-pick { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.fu-status-pick select { width: auto; padding: .4rem .5rem; font-family: inherit; text-transform: none; letter-spacing: 0; }

/* ── The thread ────────────────────────────────────────────────────────────── */
.fu-lines { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.fu-comment { display: flex; gap: .6rem; align-items: flex-start; }
.fu-bubble { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: .55rem .8rem .5rem; }
.fu-said { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin-bottom: .2rem; font-size: .88rem; }
.fu-bubble .fu-words { margin-bottom: .35rem; }

.fu-event { display: flex; gap: .55rem; align-items: flex-start; padding: .15rem .4rem .15rem .55rem; font-size: .84rem; color: var(--muted); }
.fu-event-mark { flex: none; width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sunken); }
.fu-event-mark .icon { margin: 0; width: .85em; height: .85em; }
.fu-event > div { min-width: 0; overflow-wrap: anywhere; padding-top: .1rem; }
.fu-event-text { color: var(--ink); font-weight: 500; }
.fu-event-note { margin: .2rem 0 0; padding: .35rem .6rem; border-left: 3px solid var(--line); white-space: pre-wrap; color: var(--ink); font-size: .9rem; }
.fu-event-handoff .fu-event-mark { background: color-mix(in srgb, var(--accent) 20%, var(--card)); color: var(--accent); }
.fu-event-progress .fu-event-mark { background: color-mix(in srgb, var(--good) 20%, var(--card)); color: var(--good); }

.fu-new-line { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fu-new-line::before, .fu-new-line::after { content: ""; flex: 1; border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

.fu-files { list-style: none; margin: .35rem 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.fu-files li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.fu-file { color: var(--accent); text-align: left; overflow-wrap: anywhere; font-size: .86rem; }
.fu-file-off { font-size: .76rem; }
.fu-picture-wrap { flex: 1 1 100%; }
.fu-picture { display: block; max-width: min(100%, 26rem); max-height: 20rem; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: var(--sunken); }

.fu-reactions { display: flex; flex-wrap: wrap; gap: .25rem; }
.fu-reaction { display: inline-flex; align-items: center; gap: .2rem; min-height: 1.75rem; min-width: 2rem; justify-content: center; font-size: .82rem; line-height: 1.2; padding: .1rem .42rem; border-radius: 999px; background: var(--sunken); border: 1px solid transparent; }
.fu-reaction span { font-variant-numeric: tabular-nums; }
.fu-reaction.is-empty { background: transparent; opacity: .55; }
.fu-reaction.is-empty:hover, .fu-reaction.is-empty:focus-visible { opacity: 1; background: var(--sunken); }
.fu-reaction.is-mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }

/* ── Writing a comment ─────────────────────────────────────────────────────── */
.fu-composer { margin-bottom: 1.5rem; }
.fu-text-wrap { position: relative; }
.fu-composer label[for="fu-text"] { margin-top: 0; }
.fu-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; box-shadow: 0 8px 24px rgba(20, 32, 43, .18); }
.fu-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .6rem; font-size: .9rem; }
.fu-numbers[hidden] { display: none; }
.fu-numbers label { margin: 0; }
.fu-numbers input { width: 5.5rem; padding: .35rem .5rem; }
.fu-composer-foot { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.fu-composer-foot .fu-file-button { margin-top: 0; }
.fu-grow { flex: 1; }
.fu-composer .notice { margin-top: .6rem; }
/* Something refused reads as refused. */
.fu-form .notice.bad, .fu-composer .notice.bad, .fu-sheet .notice.bad {
  color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad) 8%, var(--card));
}
.fu-form .notice { margin-top: .9rem; }

.fu-sheet .sheet-card .row { margin-top: .9rem; }
.fu-sheet .notice { margin: .6rem 0 0; }
.fu-sheet-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .9rem; }

/* ── On the home page ──────────────────────────────────────────────────────── */
.fu-home-head { margin-bottom: 12px; }
.fu-home-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fu-home-count {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px;
  background: var(--sunken); border: 1px solid transparent; border-radius: 9px; white-space: normal; color: var(--ink);
}
.fu-home-count:hover { border-color: var(--accent); }
.fu-home-count strong { font: 600 22px Archivo, system-ui, sans-serif; line-height: 1.1; }
.fu-home-count span { font-size: 12px; line-height: 1.3; color: var(--muted); }
.fu-home-count .fu-dot { position: absolute; top: 9px; right: 9px; }
.fu-home-label {
  margin: 14px 0 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .68rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.fu-home-row { padding: 10px 0 !important; }
.fu-home-row > span:first-child { position: relative; }
.fu-home-row.is-unread > span:first-child { padding-left: 16px; }
.fu-home-row .fu-dot { position: absolute; left: 0; top: 7px; }
.fu-home-row > span:last-child { white-space: nowrap; flex: none; }
.fu-home-row span span { overflow-wrap: anywhere; }
.fu-home-all { display: block; margin-top: 10px; color: var(--accent); }
.fu-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ── The inbox ─────────────────────────────────────────────────────────────── */
#workspace-inbox {
  order: 3; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.4rem; height: 2.4rem; min-height: 0; padding: 0; margin-left: auto; border-radius: 9px; font-size: 1.15rem;
}
#workspace-inbox .icon { margin: 0; }
/* The company's name is pushed to the far side of the bar as well, and two things
   pushed the same way share the room between them: the inbox sat alone in the middle
   of the bar. It leads, and the name stays right beside it. */
#workspace-inbox + #who { margin-left: 0 !important; }
.fu-inbox-count {
  position: absolute; top: -3px; right: -3px; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--brand);
}
.fu-inbox-count[hidden] { display: none; }
/* On a computer it opens beside the button that opened it, rather than in the middle
   of the page. On a phone it comes up from the bottom, as every sheet there does. */
@media (min-width: 640px) {
  .fu-inbox-sheet { align-items: flex-start; justify-content: flex-end; padding: 4.6rem 1rem 1rem; background: rgba(11, 17, 22, .28); }
  .fu-inbox-sheet .sheet-card { max-width: 25rem; }
}
.fu-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.fu-inbox-head h2 { margin: 0; }
.fu-inbox-head [hidden] { display: none; }
.fu-inbox-row {
  display: flex; align-items: flex-start; gap: .55rem; width: 100%; text-align: left; white-space: normal;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .6rem .2rem; color: var(--ink);
}
.fu-inbox-row:hover { background: var(--sunken); }
.fu-inbox-row .fu-dot { margin-top: .4rem; }
.fu-inbox-row > span { min-width: 0; display: flex; flex-direction: column; gap: .05rem; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.fu-inbox-row strong { color: var(--ink); font-weight: 600; font-size: .9rem; }
.fu-inbox-words { color: var(--ink); }
.fu-inbox-row time { font-size: .74rem; }

@media (max-width: 560px) {
  .fu-tabs button { flex: 1 1 40%; justify-content: center; font-size: .82rem; padding: .5rem .4rem; }
  .fu-home-counts { gap: 6px; }
  .fu-home-count { padding: 8px 9px; }
  .fu-post h1 { font-size: 1.15rem; }
  .fu-actions > button { flex: 1 1 auto; }
  .fu-avatar { width: 1.75rem; height: 1.75rem; }
}
