/* The heads' talks: the Tutor's and the Bookkeeper's chat, its page beside it (Kai's look, kai.css; the page read only).
   The computer: the talk with its box on the left, the page on the right, each scrolling as a chat does.
   The phone: Talk and Page side by side, one screen wide each: a swipe (or the two tabs) goes from one to the other. */
.hd-tabs { padding: 0 14px; margin: 4px 0 8px; }
.hd-swipe { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hd-swipe::-webkit-scrollbar { display: none; }
.hd-panel { flex: 0 0 100%; min-width: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-align: start; padding: 0 14px 12px; -webkit-overflow-scrolling: touch; }
.hd-talk .kai-talk { overflow: visible; min-height: 100%; padding: 4px 0; }
.hd-him .b { border-left: 2px solid var(--kai-edge); }
.hd-page { gap: 10px; }
.hd-ph { display: flex; flex-direction: column; gap: 2px; }
.hd-v { font-size: 12.5px; color: var(--kai-faint); }
.kq-cap.c-ok { color: #8ce99a; }
.hd-text { font-size: 14.5px; line-height: 1.5; }
.hd-foot { flex: none; }
/* HQ: one row for each head's talk */
.hq-heads { grid-area: heads; margin-bottom: 10px; padding: 4px 14px; gap: 0; }
.hd-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; color: #e9ebef; text-decoration: none; }
.hd-row + .hd-row { border-top: 1px solid var(--kai-line); }
.hd-row b { font: 600 14.5px var(--font); }
.hd-row span { flex: 1; min-width: 0; font-size: 13px; color: var(--kai-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-row em { font-style: normal; color: var(--kai-faint); font-size: 18px; }
.hd-row .dk-new { position: static; margin: 0; flex: none; }
@media (min-width: 761px) {
  #head.on { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "talk page" "foot page"; }
  #head .bw-head { grid-area: head; }
  .hd-tabs { display: none; }
  .hd-swipe { display: contents; }
  .hd-talk { grid-area: talk; margin: 0 0 0 14px; border: 1px solid var(--kai-edge); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--kai-card); padding: 0 12px; }
  .hd-pagep { grid-area: page; padding: 0 14px 14px; }
  .hd-foot { grid-area: foot; margin: 0 0 14px 14px; border: 1px solid var(--kai-edge); border-top-color: var(--kai-line); border-radius: 0 0 12px 12px; }
}
@media (max-width: 760px) {
  .hd-foot { border-top: 1px solid var(--kai-line); background: var(--panel); }
}
