/* Track a ticket, both companies, in the reference layout (site.css part 14). The lookup form, the facts and the
   reply box each stand on a white panel at reading width; the correspondence is a run of white message cards. */
.page-track .track__label { display: block; font-size: .5em; line-height: 1.1; }
.page-track .track__panel { --stack: var(--s-4); max-width: 48rem; justify-items: stretch; }
.page-track .track__wrap { max-width: 56rem; }
.page-track .track__reply .form__note { margin: 0 0 var(--s-2); }
.page-track .track__facts { border-top: 0; }

/* The correspondence: each message a white card. The team's replies stand at the left edge under a navy bar with
   their name and the company; the visitor's are set in from the left, under a grey hairline, marked (you). A change
   of status is one quiet line between them, on the ground. Told apart by place, rule and name, not by colour alone. */
.thread { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.thread__item { max-width: 44rem; padding: 20px 24px 24px; border-radius: var(--r); background: var(--white); }
.thread__item--team { border-top: 4px solid var(--navy); }
.thread__item--visitor { margin-left: clamp(0px, 8cqw, 6rem); border-top: 1px solid var(--hairline); }
.thread__by { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0 0 var(--s-1); }
.thread__by time, .thread__item--status time { color: var(--muted); }
.thread__item--status { justify-self: start; max-width: none; padding: 6px 0; background: none; border-radius: 0; color: var(--muted); }
.thread__item--status p { margin: 0; }
.thread .prose { overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .thread__item { padding: 16px 18px 20px; }
  .thread__item--visitor { margin-left: var(--s-3); }
}

/* Save this link: the ticket's address in a field that selects whole, and the copy button beside it */
.page-track .track__save { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--hairline); }
.page-track .track__save-title { font-size: var(--fs-deck); line-height: var(--lh-head); font-weight: 700; }
.page-track .track__save-hint { max-width: var(--measure); color: var(--muted); }
.page-track .track__copy { display: flex; flex-wrap: wrap; gap: var(--s-1) 12px; margin-top: var(--s-1); }
.page-track .track__copy input {
  flex: 1 1 16rem; min-width: 0; min-height: var(--control); padding: 13px 14px 11px; margin: 0;
  border: 0; border-bottom: 2px solid var(--navy); border-radius: var(--r-s) var(--r-s) 0 0; background: var(--tint); color: var(--navy);
  font-variant-numeric: tabular-nums; text-overflow: ellipsis;
}
.page-track .track__copied { min-height: 1.5em; color: var(--muted); font-size: var(--fs-small); }
html:not(.js) .page-track [data-copy] { display: none; }
