/* ---------------------------------------------------------------------------
   Today
   ---------------------------------------------------------------------------
   The ring is the day; the strip beside it is what is left in each lane. Lanes
   are short lists of rows rather than cards: a day's work is read down a
   column, not across a grid. */
.today__head { display: flex; align-items: center; gap: 20px }
.today__head .stagestrip { flex: 1; min-width: 0 }
.today__ring .ring__mid { font-size: 15px }
.today__ring circle { stroke-linecap: round }
.today__lane { scroll-margin-top: 16px }
.today__lane .stage__head { margin-bottom: 12px }

/* The lane's way through to the full screen, and the add-task submit. */
.today__go {
  margin-left: auto; width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-btn-lg);
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; font-family: inherit;
}
.today__go:hover { border-color: var(--btn-edge-hover); background-color: var(--btn-wash) }
.today__go:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
.today__go .ms { font-size: 19px }
.today__all, .today__target, .today__targetfield { margin-left: auto }
.today__all + .today__go, .today__target + .today__go, .today__targetfield + .today__go { margin-left: 0 }
.today__all.is-armed { border-color: var(--ink); background: var(--ink); color: var(--on-ink) }
.today__target {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: inherit; min-height: 32px; font-variant-numeric: tabular-nums;
  /* A button, so it keeps a control's outline now the count has lost its fill. */
  padding: 0 12px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--card);
}
.today__target .ms { font-size: 15px }
.today__target:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
/* It can be set where it stands, so it shows the pencil under the cursor or
   on keyboard focus (faintly always on touch), as the deal card's parts do. */
.today__target::after {
  content: "edit"; font-family: "Material Symbols Outlined"; font-size: 15px; font-weight: 400; line-height: 1;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  color: var(--muted); opacity: 0; transition: opacity .15s ease;
}
.today__target:is(:hover, :focus-visible)::after { opacity: 1 }
@media (hover: none) { .today__target::after { opacity: .7 } }
/* The target being set: the number in the shared in-place box (inField), its tick and cross inside. */
.today__targetfield { flex: 0 0 auto }
.today__targetfield .today__targetinput { flex: 0 0 56px; width: 56px; text-align: center; font-variant-numeric: tabular-nums }

/* A lane with nothing left: a tick where the rows were, with its label beside it. */
.today__clear {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px;
  border: 1.5px dashed var(--line); border-radius: var(--r-card); color: var(--good);
}
.today__clear .ms { font-size: 24px }
.today__clear span:not(.ms) { font-size: 14px; font-weight: 500; color: var(--muted) }

.todo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden;
}
.todo__row {
  display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; min-height: 60px;
  transition: opacity .2s ease;
}
.todo__row + .todo__row, .todo__more { border-top: 1px solid var(--hair) }
.todo__open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border: none; border-radius: 16px; background: none; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left; min-height: 48px;
}
.todo__open:hover { background: var(--page) }
.todo__open:focus-visible, .todo__check:focus-visible, .todo__more:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 1px;
}
.todo__mark {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--page); font-size: 12px; font-weight: var(--weight-strong); color: var(--text);
}
.todo__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.todo__primary, .todo__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.todo__primary { font-size: 14px }
.todo__sub { font-size: 12.5px; color: var(--muted) }
/* A chase's deal, beside its company: which of the account's deals it is. */
.todo__deal { margin-left: 8px; font-size: 13px; color: var(--muted) }
.todo__meta { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto }
.todo__meta .pill { display: inline-flex; align-items: center; gap: 4px }
.todo__meta .pill .ms { font-size: 14px }
.todo__phone { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums }
.todo__phone .ms, .todo__nophone { font-size: 17px }
.todo__nophone { color: var(--muted) }
.todo__flag { color: #8A5A00; font-size: 19px }

/* Tasks: a box to tick, then the task. */
.todo__row--task { padding-left: 14px }
.todo__check {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--card); display: grid; place-items: center; cursor: pointer; color: transparent;
  position: relative;
}
/* The box is small; the hit area is not. */
.todo__check::after { content: ""; position: absolute; inset: -9px }
.todo__check .ms { font-size: 18px }
.todo__check:hover { border-color: var(--ink) }
.todo__check[aria-checked="true"] { background: var(--good); border-color: var(--good); color: #FFF }
.todo__glyph { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: var(--muted) }
.todo__glyph .ms { font-size: 20px }
.todo__glyph--chase { color: #8A5A00 }

/* Worked: still there, so the list does not jump, but plainly finished. */
.todo__row.is-done { opacity: .5 }
.todo__row.is-done .todo__primary { text-decoration: line-through }

.todo__more {
  display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 48px;
  border: none; background: none; cursor: pointer; font-family: inherit; color: var(--muted);
  font-size: 13px; font-weight: var(--weight-strong);
}
.todo__more:hover { color: var(--text); background: var(--page) }

@media (max-width: 767px) {
  .today__head .today__ring { display: none }
  .todo__row { flex-wrap: wrap; padding-right: 10px }
  .todo__open { flex-basis: 100% }
  .todo__row > .btn, .todo__row > .todo__meta { margin-left: 58px; margin-bottom: 6px }
  .todo__row--task > .todo__open { flex-basis: calc(100% - 40px) }
  .todo__row--task > .todo__meta { margin-left: 38px }
  .todo__row--task > .todo__meta:empty { display: none }
}

/* ---------------------------------------------------------------------------
   Questions for you (app/today-facts.js), opened from the day calendar
   --------------------------------------------------------------------------- */
.modal.factmodal { width: min(640px, calc(var(--vw) * .92)) }
.factask { min-width: 0 }
.factask__top { display: flex; align-items: center; gap: 12px; min-height: var(--control-h); margin-bottom: 16px }
.factask__top h2 { flex: 1 1 auto; min-width: 0 }
.factask__close { margin-left: 4px }
/* The dialog's name stays small: the question under it is what is read. */
.factask__top h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-wrap: balance }
/* "‹ 2 of 5 ›": the arrows sit either side of where you are. */
.factask__pager { display: flex; align-items: center; gap: 4px; flex: none }
.factask__n { min-width: 52px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.factask__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; animation: factask-in .18s ease-out }
.factask__fact { min-width: 0 }
/* The question in words, then the line it is about as the figure. */
.factask__ask { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--muted); text-wrap: balance }
.factask__ask--q { margin: 0; font-size: 22px; font-weight: var(--weight-strong); line-height: 1.25; color: var(--text) }
.factask__stat { display: block; font-size: 28px; font-weight: var(--weight-strong); line-height: 1.2; letter-spacing: -.01em; color: var(--text); text-wrap: balance }
.factask__context { margin: 4px 0 0; font-size: 15px; color: var(--muted); text-wrap: pretty }
/* Where it came from, kept small under a hairline so the fact leads: a
   small face, who and which message, their words in muted type with the
   line's own words picked out in ink on a coral wash. */
.factask__src { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--hair) }
.factask__from { display: contents }
.factask__marks, .factask__from > .factask__mark { grid-row: 1 / span 2; align-self: start; margin-top: 1px }
.factask__marks { position: relative; width: 24px; height: 24px }
.factask__mark { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 9.5px; font-weight: 600; letter-spacing: .02em }
.factask__mark .markimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit }
.factask__marks > .factask__mark--face { position: absolute; right: -5px; bottom: -5px; width: 14px; height: 14px; font-size: 6px; box-shadow: 0 0 0 1.5px var(--card) }
.factask__line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; grid-column: 2; min-width: 0; min-height: 24px; font-size: 12.5px; font-weight: 500; color: var(--muted) }
.factask__who { display: inline-flex; gap: 6px; min-width: 0 }
.factask__who b { font-size: 13px; font-weight: 600; color: var(--text) }
.factask__via { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap }
.factask__via::before, .factask__when::before { content: "·"; margin-right: 6px }
.factask__via .ms { font-size: 15px; color: inherit }
.factask__quote { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty }
.factask__quote strong { font-weight: 600; color: var(--text); padding: 0 2px; border-radius: 4px; background: color-mix(in srgb, var(--coral) 22%, transparent) }
.factask__acts { display: flex; flex-wrap: wrap; gap: 8px }
.factask__form { max-width: 520px }
.factask__form .factask__acts { margin-top: 16px }
/* A question: its words over a full-width row, the answer field and its
   buttons at one height and pill shape, as a field beside a button. */
.factask__body--ask { grid-template-columns: minmax(0, 1fr); gap: 16px }
.factask__answer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.factask__answer .input { flex: 1 1 260px; min-width: 0; height: var(--control-h); border-radius: var(--r-btn); padding: 0 16px }
@keyframes factask-in { from { opacity: 0; transform: translateY(4px) } }
@media (prefers-reduced-motion: reduce) { .factask__body { animation: none } }

@media (max-width: 767px) {
  .factask__body { gap: 16px }
  .factask__stat { font-size: 24px }
  .factask .btn, .factask .iconbtn { min-height: 44px }
  .factask .iconbtn { width: 44px; flex-basis: 44px }
  .factask__answer .input { height: 44px; flex-basis: 100% }
}
