/* Reset count, Clear context and the chat history (Carlos, 2026-10-20; CONTRACT 4.8). Same skin as styles.css:
   ink text, violet only where something acts, the type scale 12 / 14 / 15 and the 4 / 8 / 12 / 16 rhythm.
   Every press target is at least 44px, with no iOS callout and no text selection. */

/* ---- the two-tap buttons: Reset count (Messages today tile) and Clear context (Chat with TutorBot) */
.u-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.c-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.u-act .btn, .c-act .btn { min-height: 44px; padding: 0 16px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.btn.asking { background: var(--bad); color: #fff; box-shadow: none; }
.u-note, .c-note { flex: 1 1 160px; min-width: 0; font-size: 14px; font-weight: 700; color: var(--mute); line-height: 1.35; }
.did { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: var(--good); }
.c-act + .did { margin: -4px 0 12px; }

/* ---- the day: Previous day, the date, Next day */
.dbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 8px; background: var(--sand); border-radius: var(--r-tile); }
.dnav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0; border-radius: 14px;
  background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform 120ms var(--ease-out), opacity 120ms var(--ease-out);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.dnav:active:not([disabled]) { transform: scale(0.97); }
.dnav[disabled] { opacity: 0.35; }
.dnav .dn-t { display: none; }
/* Its own name: styles.css already has a .chev (the disclosure rows' one), whose borders would add to these. */
.dchev { flex: none; width: 9px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; }
.dnav.prev .dchev { transform: translateX(2px) rotate(45deg); }
.dnav.next .dchev { transform: translateX(-2px) rotate(-135deg); }
.d-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.d-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.d-pick {
  min-height: 44px; max-width: 100%; padding: 0 12px; border: 0; border-radius: 99px;
  background: var(--card); color: var(--acc-text); font-size: 14px; font-weight: 700; text-align: center;
  box-shadow: inset 0 0 0 2px var(--line);
}
.d-pick::-webkit-date-and-time-value { text-align: center; }

/* ---- the days that have chat, to jump to */
.dchips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 8px 0 0; }
.dchips::-webkit-scrollbar { display: none; }
.dchip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px;
  background: var(--sand); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 120ms var(--ease-out);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.dchip:active { transform: scale(0.97); }
.dchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.d-line { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--mute); }
.card[aria-label="Chat with TutorBot"] > .thread { margin-top: 16px; }

/* ---- where context was cleared, inside the thread */
.cleared { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; font-weight: 800; }
.cleared::before, .cleared::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }

@media (min-width: 720px) {
  .dbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dnav { padding: 0 14px; }
  .dnav .dn-t { display: inline; }
}

@media (hover: hover) and (pointer: fine) {
  .dnav:not([disabled]):hover, .dchip:not([aria-pressed="true"]):hover { background: var(--soft); }
}
