/* QuorumAI, full screen (chat.html): the grower's chats down the side, the conversation, and a
   panel for what it remembers and their notes. The page doesn't scroll: it fills the screen under the
   header, and each part scrolls on its own. Under 900px the chats are a drawer, and under 1280px the
   panel lies over the conversation. */

.hub-page--chat { overflow: hidden; background: var(--paper); }
.qc {
  position: fixed; left: 0; right: 0; top: var(--head-h, 3.6rem);
  /* --app-h: on an iPhone, the height left above the keyboard (chat.js) */
  height: calc(var(--app-h, 100dvh) - var(--head-h, 3.6rem));
  display: grid; grid-template-columns: 17.5rem minmax(0, 1fr);
}
.qc svg { flex: none; }
.qc-link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 750; color: var(--canopy-2); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.qc-link--danger { color: var(--earth); }
.qc-icon {
  display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
}
.qc-icon svg { width: 1.35rem; height: 1.35rem; }
@media (pointer: coarse) { .qc-icon { width: 44px; height: 44px; } }
.qc-icon:hover { background: var(--paper-2); color: var(--ink); }
.qc-icon:focus-visible, .qc-tool:focus-visible, .qc-act:focus-visible, .qc-item:focus-visible, .qc-start:focus-visible,
.qc-going__what:focus-visible, .qc-more__menu button:focus-visible, .qc-note summary:focus-visible, .qc-link:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* the hub's status line would sit on the question box: here it drops from under the bar */
.hub-page--chat .toast { top: calc(var(--head-h, 3.6rem) + 4.2rem); bottom: auto; translate: -50% -12px; }
.hub-page--chat .toast.is-on { translate: -50% 0; }

/* The chats, down the side ------------------------------------------------------------------------ */
.qc-side {
  grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 0.75rem; min-height: 0; padding: 0.8rem 0.8rem 0.75rem;
  background: var(--paper-2); border-right: 1px solid var(--rule);
}
.qc-side__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.6rem; }
.qc-side__back {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.55rem; border-radius: 10px;
  font-weight: 750; font-size: 0.9rem; color: var(--ink-2); text-decoration: none;
}
.qc-side__back svg { width: 1.15rem; height: 1.15rem; color: var(--leaf); --wash: var(--sap-2); }
.qc-side__back:hover { background: rgba(251, 247, 238, 0.7); color: var(--ink); }
.qc-side__close { display: none; }
.qc-new { width: 100%; }
.qc-find { position: relative; }
.qc-find > svg { position: absolute; left: 0.75rem; top: 50%; translate: 0 -50%; width: 1.05rem; height: 1.05rem; color: var(--ink-3); pointer-events: none; }
.qc-find__input {
  width: 100%; min-width: 0; padding: 0.55rem 0.85rem; border: 1.5px solid rgba(30, 43, 34, 0.28); border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 0.92rem;
}
.qc-find .qc-find__input { padding-left: 2.3rem; }
.qc-find__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.qc-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -0.35rem; padding: 0 0.35rem 0.5rem; }
.qc-list__group {
  margin: 0.85rem 0.55rem 0.3rem; font-family: var(--f-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.qc-list__group:first-child { margin-top: 0.2rem; }
.qc-list__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.12rem; }
.qc-item { display: grid; gap: 0.12rem; padding: 0.5rem 0.65rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.qc-item:hover { background: rgba(251, 247, 238, 0.75); }
.qc-item[aria-current] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.qc-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.qc-item__hit {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.8rem; line-height: 1.35; color: var(--ink-3);
}
/* a conversation from the Program Builder: its plan, under its name; and above it, the way back there */
.qc-item__plan { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; font-weight: 700; color: var(--canopy-2); }
/* kept with the account (qag-p5qu.4): one on the account, not on this browser yet */
.qc-item__there { font-size: 0.76rem; font-weight: 650; color: var(--ink-3); }
.qc-item[aria-busy="true"] { opacity: 0.6; }
/* a recovery copy: deleted on another device, with changes here the account never had */
.qc-away {
  display: grid; gap: 0.55rem; max-width: 46rem; margin: 0 auto 1rem; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--wattle-3); border-radius: 12px; background: var(--card); font-size: 0.9rem;
}
.qc-away__say, .qc-away__sure { margin: 0; }
.qc-away__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.qc-away__sure { flex: 1 1 100%; font-weight: 700; }
.qc-from {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; max-width: 46rem; margin: 0 auto 1rem; padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--rule); border-radius: 12px; background: var(--card); font-size: 0.88rem;
}
.qc-from svg { width: 1.1rem; height: 1.1rem; color: var(--leaf); }
.qc-from span { flex: 1 1 14rem; }
.qc-item mark { padding: 0 0.1em; border-radius: 3px; background: var(--wattle-2); color: inherit; }
.qc-list__none { margin: 0.4rem 0.55rem; font-size: 0.88rem; color: var(--ink-3); }
.qc-side__foot {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0; padding: 0.7rem 0.55rem 0; border-top: 1px solid var(--rule);
  font-size: 0.8rem;
}
.qc-side__foot a { color: var(--ink-2); font-weight: 650; }
/* the prototype flag, which would float over the question box, sits at the foot of the chats (chat.js) */
.qc-side .proto, .qc-side .proto.is-away {
  position: static; transform: none; translate: none; opacity: 1; width: auto; max-width: 100%; margin-top: -0.2rem;
  justify-content: flex-start; white-space: normal;
}

/* The conversation --------------------------------------------------------------------------------- */
.qc-main { position: relative; grid-column: 2; grid-row: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
/* a visitor's look around (site.js): the ribbon, under the bar */
.qc-main:has(> .tour) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
/* the owner fence's question for QuorumAI's records (qag-p5qu.4), once, under the bar */
.qc-main:has(> .qc-own) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.qc-own {
  display: grid; gap: 0.4rem; padding: 0.7rem clamp(0.7rem, 2.4vw, 1.5rem);
  border-bottom: 1px solid var(--rule); background: var(--card); font-size: 0.9rem;
}
.qc-own__q { margin: 0; font-weight: 700; }
.qc-own__small { margin: 0; font-size: 0.84rem; color: var(--ink-2); }
.qc-own__acts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.qc-main > .tour { padding: 0.55rem 1rem; font-size: 0.92rem; }
.qc-bar {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
  padding: 0.55rem clamp(0.7rem, 2.4vw, 1.5rem); border-bottom: 1px solid var(--rule); background: var(--paper);
}
.qc-bar__side { display: none; margin-left: -0.35rem; }
.qc-bar__who { flex: 1; min-width: 0; display: grid; gap: 0.1rem; }
.qc-bar__title {
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.2;
}
.qc-bar__status { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.76rem; font-weight: 650; color: var(--ink-3); }
.qc-bar__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gum); }
/* what of this conversation is only on this browser (kept with the account, qag-p5qu.4) */
.qc-bar__kept { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; font-weight: 650; color: var(--wattle-3); }
.qc.is-live .qc-bar__dot { background: var(--sap); box-shadow: 0 0 0 3px rgba(155, 197, 61, 0.25); }
.qc.is-busy .qc-bar__dot { background: var(--wattle); box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.3); }
/* the models to choose from, where there's more than one (QUORUM_AI_MODELS): beside the status, never in it */
.qc-model { display: flex; align-items: center; gap: 0.35rem; min-width: 0; font-size: 0.76rem; font-weight: 650; color: var(--ink-3); }
.qc-model > span { white-space: nowrap; }
/* narrow (a phone, or the dock): the select alone, its words kept for screen readers */
.qc-bar__who:has(.qc-model) { container: qc-who / inline-size; }
@container qc-who (max-width: 15rem) {
  .qc-model > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
}
.qc-model__pick {
  min-width: 0; max-width: 100%; padding: 0.1rem 0.4rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--card); color: var(--ink); font: inherit; font-weight: 750;
}
@media (pointer: coarse) { .qc-model__pick { min-height: 2.25rem; } }
.qc-bar__tools { display: flex; align-items: center; gap: 0.3rem; }
.qc-tool {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.4rem 0.8rem;
  border: 1.5px solid transparent; border-radius: 999px; background: none; color: var(--ink-2);
  font: inherit; font-weight: 750; font-size: 0.88rem; cursor: pointer;
}
.qc-tool svg { width: 1.25rem; height: 1.25rem; --wash: var(--sap-2); }
.qc-tool:hover { background: var(--paper-2); color: var(--ink); }
.qc-tool[aria-expanded="true"] { background: var(--card); border-color: var(--ink); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.qc-tool.is-pinged svg { animation: qc-ping 0.9s var(--ease-grow); }
/* 44 px on a touch screen, the size for a thumb, with the icons alone too (below, and dock.css) */
@media (pointer: coarse) { .qc-tool { min-height: 44px; } }
@keyframes qc-ping { 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(0.95) rotate(4deg); } }

/* This chat: rename, download, delete */
.qc-more { position: relative; }
.qc-more[hidden] { display: none; }
.qc-more > summary { list-style: none; }
.qc-more > summary::-webkit-details-marker { display: none; }
.qc-more__menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 15; display: grid; gap: 0.1rem;
  width: max-content; min-width: 14rem; max-width: min(20rem, calc(100vw - 1.5rem)); padding: 0.4rem;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink), 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}
.qc-more__menu > button {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 0.92rem; text-align: left; cursor: pointer;
}
.qc-more__menu > button svg { width: 1.15rem; height: 1.15rem; --wash: var(--paper-3); }
.qc-more__menu > button:hover { background: var(--paper-2); }
.qc-more__menu > .is-danger { color: var(--earth); }
.qc-more__form { display: grid; gap: 0.55rem; padding: 0.45rem; font-size: 0.92rem; }
.qc-more__form p { margin: 0; }
.qc-more__form label { font-weight: 700; font-size: 0.85rem; }
.qc-more__form .input { padding: 0.55rem 0.75rem; font-size: 0.95rem; }
.qc-more__row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* The messages */
.qc-log {
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.9rem, 4vw, 2.5rem) 1.25rem;
}
.qc-log:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.qc-thread { display: grid; gap: 1.1rem; max-width: 46rem; margin: 0 auto; }
.qc-day {
  justify-self: center; margin: 0.2rem 0 -0.3rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.qc-msg { display: grid; gap: 0.35rem; min-width: 0; }
.qc-msg__body { min-width: 0; overflow-wrap: anywhere; }
.qc-msg__body > p { margin: 0; }
.qc-msg__body > p + p { margin-top: 0.7em; }
/* QuorumAI's short lists (ai-text.js) */
.qc-msg__body > .ai-list { margin: 0.7em 0 0; padding-left: 1.2em; list-style: disc; }
.qc-msg__body > .ai-list:first-child { margin-top: 0; }
.qc-msg__body > .ai-list li + li { margin-top: 0.25em; }
.qc-msg__body > .ai-list + p { margin-top: 0.7em; }
.qc-msg--me { justify-items: end; }
.qc-msg--me .qc-msg__body {
  max-width: min(85%, 36rem); padding: 0.75rem 1rem; white-space: pre-line;
  background: var(--wattle-2); border: 1.5px solid rgba(30, 43, 34, 0.18); border-radius: 18px 18px 5px 18px;
  font-weight: 600;
}
.qc-msg--ai { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.7rem; align-items: start; }
.qc-msg--ai > :not(.qc-msg__avatar) { grid-column: 2; }
.qc-msg__avatar {
  grid-row: 1 / span 4; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--canopy); color: var(--wattle);
}
.qc-msg__avatar svg { width: 1.3rem; height: 1.3rem; }
.qc-msg--ai .qc-msg__body {
  padding: 0.9rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 5px 18px 18px 18px;
  box-shadow: 0 1px 0 rgba(30, 43, 34, 0.06); line-height: 1.55;
}
.qc-msg--missed .qc-msg__body { border-style: dashed; border-color: rgba(30, 43, 34, 0.35); }
.qc-msg__body .chat__sources { margin-top: 0.9rem; }
.qc-msg__body .chat__steve {
  display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.65rem;
  border-top: 1.5px dashed rgba(30, 43, 34, 0.24); font-size: 0.92rem; font-weight: 650;
}
.qc-msg__body .chat__steve svg { width: 1.1rem; height: 1.1rem; margin-top: 0.12rem; color: var(--earth); }
.qc-msg__body .chat__steve a { color: var(--canopy-2); font-weight: 750; }
.qc-msg--typing .chat__typing { justify-self: start; }
.qc-mem {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0; padding: 0.45rem 0.75rem;
  border-radius: 10px; background: rgba(198, 222, 126, 0.4); font-size: 0.85rem; color: var(--ink-2);
}
.qc-mem svg { width: 1.1rem; height: 1.1rem; color: var(--leaf); --wash: var(--sap); }
.qc-mem--gone { background: var(--paper-2); }
/* what of the farm an answer went by (chat.js msgHtml): the plan, the walk, the sap test, what it remembers */
.qc-used { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.qc-by { margin: 0.45rem 0 0; font-size: 0.78rem; color: var(--ink-3); }
.qc-used svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.2rem; color: var(--earth); }
.qc-used a, .qc-used .qc-link { color: inherit; font-weight: inherit; }
.qc-mem--gone svg { color: var(--ink-3); --wash: none; }
.qc-acts { display: flex; flex-wrap: wrap; gap: 0.1rem; }
.qc-msg--ai .qc-acts { margin-left: -0.4rem; }
.qc-act {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; padding: 0.3rem 0.55rem;
  border: 0; border-radius: 8px; background: none; color: var(--ink-3);
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.qc-act svg { width: 1.05rem; height: 1.05rem; --wash: var(--paper-2); }
.qc-act:hover { background: var(--paper-2); color: var(--ink); }
.qc-act[hidden] { display: none; }
/* Your farm's offer (chat.js drawOffer, qag-fyl0): a field from the member's own words, kept only by their tap */
.qc-offer {
  display: grid; gap: 0.45rem; margin: 0.6rem 0 0; padding: 0.55rem 0.75rem;
  border-radius: 10px; background: rgba(198, 222, 126, 0.4); font-size: 0.85rem; color: var(--ink-2);
}
.qc-offer[hidden] { display: none; }
.qc-offer__say { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.qc-offer__say svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; color: var(--leaf); --wash: var(--sap); }
.qc-offer__go { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* What QuorumAI offers to remember (chat.js drawMem, qag-uxp9): a line each, its own button or what came of
   its tap, with Undo */
.qc-memo__lines { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.qc-memo__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.3rem 0.6rem; overflow-wrap: anywhere; }
.qc-memo__ask, .qc-memo__said { min-width: 0; }
.qc-memo__said { font-weight: 650; color: var(--ink); }
.qc-memo__said:focus { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.qc-memo__said .qc-link { font-weight: 750; }
/* A look at a walk's photos (chat.js drawSee and seenEl, qag-1b1a): the offer, each photo that'd go with
   Leave out, the copy that would go shown bigger, and a looked-at answer's mark with its thumbnails */
.qc-see {
  display: grid; gap: 0.5rem; margin: 0.6rem 0 0; padding: 0.6rem 0.75rem;
  border-radius: 10px; background: rgba(198, 222, 126, 0.4); font-size: 0.85rem; color: var(--ink-2);
}
.qc-see[hidden] { display: none; }
.qc-see__why { margin: 0; color: var(--ink-3); overflow-wrap: anywhere; }
.qc-see__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.qc-see__photo { display: grid; gap: 0.2rem; align-content: start; min-width: 0; }
.qc-see__big { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.qc-see__big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qc-see__big:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.qc-see__big.is-waiting { cursor: default; }
.qc-see__photo.is-out .qc-see__big { opacity: 0.35; }
.qc-see__photo.is-out .qc-see__cap { text-decoration: line-through; }
.qc-see__cap { font-size: 0.8rem; overflow-wrap: anywhere; }
.qc-see__out { justify-self: start; font-size: 0.8rem; }
/* Leave out is a photo's own consent: a thumb's height where it's tapped */
@media (max-width: 640px), (pointer: coarse) { .qc-see__out { display: inline-flex; align-items: center; min-height: 2.25rem; } }
.qc-see__note { font-size: 0.78rem; color: var(--ink-3); }
.qc-see__count { align-self: center; font-size: 0.8rem; color: var(--ink-3); }
.qc-see__none { margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.qc-see__dialog { width: min(92vw, 60rem); max-height: 92vh; padding: 0.8rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); }
.qc-see__dialog::backdrop { background: rgba(20, 24, 16, 0.65); }
.qc-see__fig { display: grid; gap: 0.45rem; margin: 0 0 0.6rem; }
.qc-see__fig img { display: block; max-width: 100%; max-height: 74vh; margin: 0 auto; border-radius: 6px; }
.qc-see__fig figcaption { font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.qc-seen { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--leaf); border-radius: 0 10px 10px 0; background: var(--paper-2); font-size: 0.88rem; }
.qc-seen__head { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.qc-seen__head svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; color: var(--leaf); }
.qc-seen__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.qc-seen__photo { display: grid; gap: 0.2rem; align-content: start; min-width: 0; }
.qc-seen__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.qc-seen__cap { font-size: 0.78rem; color: var(--ink-3); overflow-wrap: anywhere; }
/* asking for one field (chat.js drawAsks, qag-fyl0 part 3): the field's own question, and a box to keep it */
.qc-farm-ask__form { display: grid; gap: 0.45rem; }
.qc-farm-ask__for { color: var(--ink-3); font-size: 0.8rem; }
.qc-farm-ask__in { flex: 1 1 12rem; width: auto; min-width: 0; padding: 0.35rem 0.6rem; font-size: 0.9rem; }
/* notes and reminders an answer kept, or why not, and a date box still asking (chat.js drawWrote, qag-anb) */
.qc-wrote { display: grid; gap: 0.4rem; margin: 0.6rem 0 0; }
.qc-wrote [data-qc-wrote-lines] { display: grid; gap: 0.4rem; }
.qc-wrote [data-qc-wrote-lines]:empty { display: none; }
.qc-wrote__line {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.2rem 0.5rem; margin: 0; padding: 0.45rem 0.75rem;
  border-radius: 10px; background: rgba(198, 222, 126, 0.4); font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere;
}
.qc-wrote__line > span { flex: 1 1 14rem; min-width: 0; }
.qc-wrote__line svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; color: var(--leaf); --wash: var(--sap); }
.qc-wrote__line--not { background: var(--paper-2); }
.qc-wrote__line--not svg { color: var(--ink-3); --wash: none; }
.qc-askday { display: grid; gap: 0.45rem; padding: 0 0 0.2rem; }
.qc-askday .qc-wrote__line { background: var(--paper-2); }
.qc-askday__days, .qc-askday__go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; margin: 0; font-size: 0.85rem; }
.qc-askday__go label { font-weight: 700; }
.qc-askday__go .input { width: auto; min-width: 0; padding: 0.35rem 0.55rem; font-size: 0.9rem; }

/* a web lookup (chat.js, qag-2tfy): an answer's offer, and what one found, each in the page's own words */
.qc-look { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; margin: 0.35rem 0 0 -0.4rem; font-size: 0.82rem; color: var(--ink-3); }
.qc-look[hidden] { display: none; }
.qc-look__go { color: var(--canopy-2); border: 1.5px solid var(--rule); }
.qc-look__go:hover { border-color: var(--canopy-2); }
.qc-look__words { min-width: 0; overflow-wrap: anywhere; }
.qc-looked { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--wattle); border-radius: 0 10px 10px 0; background: var(--paper-2); font-size: 0.88rem; }
.qc-looked__head { display: flex; align-items: flex-start; gap: 0.45rem; margin: 0; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.qc-looked__head svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.2rem; color: var(--earth); }
.qc-looked__list { display: grid; gap: 0.6rem; margin: 0.5rem 0 0; padding-left: 1.4rem; }
.qc-looked__list p { margin: 0; overflow-wrap: anywhere; }
.qc-looked__src { margin-top: 0.15rem; font-size: 0.8rem; color: var(--ink-3); }
.qc-looked__src a { display: inline-block; min-height: 24px; padding-block: 2px; color: var(--canopy-2); font-weight: 700; }
.qc-looked__src q { font-style: italic; }

/* A new chat: a hello, and questions to start from */
.qc-hello { display: grid; justify-items: center; gap: 0.8rem; max-width: 42rem; margin: clamp(0.5rem, 7vh, 4.5rem) auto 1rem; text-align: center; }
.qc-hello__mark {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--canopy); color: var(--wattle); box-shadow: 0 0 0 6px rgba(242, 182, 50, 0.25);
}
.qc-hello__mark svg { width: 2rem; height: 2rem; }
.qc-hello__title { margin: 0.2rem 0 0; font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; text-wrap: balance; }
.qc-hello__lede { max-width: 36rem; margin: 0; color: var(--ink-2); text-wrap: pretty; }
.qc-starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; width: 100%; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.qc-start {
  display: grid; align-content: start; gap: 0.25rem; width: 100%; height: 100%; padding: 0.8rem 1rem; text-align: left;
  background: var(--card); border: 1.5px solid rgba(30, 43, 34, 0.2); border-radius: 14px; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 0.93rem; line-height: 1.35; cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.qc-start small { font-weight: 600; font-size: 0.8rem; color: var(--ink-3); }
.qc-start:hover { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); transform: translateY(-1px); }

/* The box, and what goes with a question */
.qc-foot { position: relative; padding: 0.5rem clamp(0.7rem, 4vw, 2.5rem) calc(0.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--paper); }
.qc-undo {
  grid-column: 2; grid-row: 1; align-self: end; justify-self: center; z-index: 24;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.9rem;
  width: min(46rem, calc(100% - 1.5rem)); margin: 0 0 calc(var(--qc-foot, 7rem) + 0.5rem); padding: 0.6rem 0.95rem; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 0.88rem; font-weight: 650; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.55);
}
.qc-undo[hidden] { display: none; }
.qc-undo .qc-link { color: var(--wattle-2); }
.qc-undo .qc-link[hidden] { display: none; }
.qc-ask { display: grid; gap: 0.4rem; max-width: 46rem; margin: 0 auto; }
.qc-going { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; margin: 0; font-size: 0.8rem; line-height: 1.35; color: var(--ink-3); }
.qc-going[hidden] { display: none; }
.qc-going__label { flex: none; font-weight: 700; }
.qc-going__what {
  min-width: 0; padding: 0; border: 0; background: none; text-align: left;
  color: var(--canopy-2); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer;
}
/* on a touch screen tapped by an area 44 px high that shows no bigger, inside the foot (qag-1hsf7) */
@media (pointer: coarse) {
  .qc-going__what { position: relative; }
  .qc-going__what::after { content: ""; position: absolute; inset: -5px -4px; }
}
.qc-ask__row { display: flex; align-items: flex-end; gap: 0.5rem; }
.qc-ask__q {
  flex: 1; min-width: 0; min-height: 3rem; max-height: 40vh; padding: 0.7rem 0.95rem; overflow-y: auto; resize: none;
  border-radius: 16px 14px 17px 13px; line-height: 1.45;
}
.qc-ask__go, .qc-ask__stop { flex: none; min-height: 3rem; }
.qc-ask__go[hidden], .qc-ask__stop[hidden] { display: none; }
.qc-ask__note { margin: 0; font-size: 0.78rem; color: var(--ink-3); text-align: center; text-wrap: balance; }

/* The panel: memory, or notes ------------------------------------------------------------------------ */
.qc-panel { grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); border-left: 1px solid var(--rule); }
.qc-panel[hidden] { display: none; }
.qc-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.7rem 0.55rem 1.2rem; border-bottom: 1px solid var(--rule);
}
.qc-panel__title { flex: 1; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; }
/* the other panel, from this one: the bar's buttons can be under it */
.qc-panel__other {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.4rem; padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: none; color: var(--ink-2);
  font: inherit; font-weight: 750; font-size: 0.85rem; cursor: pointer;
}
.qc-panel__other svg { width: 1.1rem; height: 1.1rem; --wash: var(--sap-2); }
.qc-panel__other:hover { border-color: var(--ink); color: var(--ink); }
.qc-panel__other:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qc-panel__title:focus { outline: none; }
.qc-panel__title:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.qc-panel__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 0.9rem; padding: 1rem 1.2rem 1.6rem; }
.qc-panel__lede { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.qc-panel__h3 { margin: 0.6rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; }
.qc-panel__none, .qc-panel__off, .qc-panel__small { margin: 0; font-size: 0.86rem; color: var(--ink-3); }
.qc-panel__off { padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--paper-2); color: var(--ink-2); }
.qc-switch { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.qc-switch input {
  position: relative; flex: none; width: 2.7rem; height: 1.55rem; margin: 0; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper-3); cursor: pointer; appearance: none; -webkit-appearance: none; transition: background-color 0.2s ease;
}
.qc-switch input::after {
  content: ""; position: absolute; top: 50%; left: 0.14rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--ink); border-radius: 50%;
  background: #fffdf8; translate: 0 -50%; transition: left 0.2s var(--ease-grow);
}
.qc-switch input:checked { background: var(--leaf); }
.qc-switch input:checked::after { left: calc(100% - 1.3rem); }
.qc-switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qc-facts { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.qc-facts.is-off, .qc-crop.is-off { opacity: 0.55; }
.qc-fact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.5rem; align-items: center;
  padding: 0.6rem 0.4rem 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: 12px; background: #fffdf8;
}
.qc-fact__text { margin: 0; font-weight: 650; font-size: 0.93rem; overflow-wrap: anywhere; }
.qc-fact__when { grid-column: 1; margin: 0; font-size: 0.76rem; color: var(--ink-3); }
.qc-fact__acts { grid-column: 2; grid-row: 1 / span 2; display: flex; }
.qc-fact__acts .qc-act { min-width: 2.2rem; justify-content: center; }
/* what it remembers, by kind; a pinned one always goes with a question (chat.js memoryHtml) */
.qc-facts__head { font-size: 1rem; }
/* past a dozen, each kind and each block's season folded to its heading and how many (qag-w35m) */
.qc-facts__all { display: grid; gap: 0.7rem; }
.qc-facts__group > summary { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; list-style: none; border-radius: 6px; }
.qc-facts__group > summary::-webkit-details-marker { display: none; }
.qc-facts__group > summary::before { content: ""; width: 0.5rem; height: 0.5rem; border: solid var(--ink-3); border-width: 0 2px 2px 0; rotate: -45deg; transition: rotate 0.15s; flex: none; }
.qc-facts__group[open] > summary::before { rotate: 45deg; }
.qc-facts__group > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qc-facts__group { border-top: 1px solid var(--rule); }
.qc-facts__group > summary .qc-facts__head { margin: 0; padding: 0; border: 0; }
.qc-facts__group[open] > .qc-facts { margin-top: 0.35rem; }
.qc-facts__n { margin-left: 0.25rem; font-size: 0.82rem; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .qc-facts__group > summary::before { transition: none; } }
.qc-fact__acts [data-qc-fact="pin"][aria-pressed="true"] { color: var(--canopy); background: rgba(198, 222, 126, 0.45); }
.qc-fact.is-pinned { box-shadow: inset 3px 0 0 var(--canopy); }
.qc-kind { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.45rem; font-size: 0.86rem; font-weight: 650; color: var(--ink-2); }
.qc-kind__pick { min-height: 2.25rem; padding: 0.3rem 0.5rem; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); font: inherit; color: var(--ink); }
.qc-fact__form { grid-column: 1 / -1; }
/* Your farm (chat.js farmHtml, qag-fyl0): a row a field, its label over its value, as a fact is laid out */
.qc-farm { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.qc-farm.is-off { opacity: 0.55; }
.qc-farm__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1rem 0.5rem;
  padding: 0.5rem 0.4rem 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card);
}
.qc-farm__label { grid-column: 1; margin: 0; font-size: 0.76rem; font-weight: 750; letter-spacing: 0.02em; color: var(--ink-3); }
.qc-farm__v { grid-column: 1; margin: 0; font-weight: 650; font-size: 0.93rem; overflow-wrap: anywhere; }
.qc-farm__v.is-none { font-weight: 500; color: var(--ink-3); }
.qc-farm__row .qc-fact__acts { grid-column: 2; grid-row: 1 / span 3; }
.qc-farm__row .qc-fact__acts .qc-act { gap: 0.3rem; }
/* Your farm's offers from the farm audit (chat.js auditHtml, qag-fyl0 part 4): one card, a row a field, each
   kept only by the member's tap */
.qc-audit { margin: 0 0 0.6rem; }
.qc-audit__rows { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.qc-audit__row { display: grid; gap: 0.25rem; min-width: 0; padding: 0.5rem 0.65rem; border-radius: 8px; background: var(--card); overflow-wrap: anywhere; }
.qc-audit__v, .qc-audit__said { margin: 0; font-weight: 650; font-size: 0.9rem; color: var(--ink); }
.qc-audit__note { margin: 0; font-size: 0.78rem; color: var(--ink-3); }
.qc-audit__said:focus, .qc-audit .qc-offer__say:focus { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.qc-add { display: grid; gap: 0.35rem; justify-items: start; }
.qc-add label { font-weight: 700; font-size: 0.88rem; }
.qc-add__row { display: flex; gap: 0.4rem; width: 100%; }
.qc-add__row .input { flex: 1; min-width: 0; padding: 0.55rem 0.8rem; font-size: 0.93rem; }
/* which of the farm's record goes with the crop (chat.js memoryHtml, crop-now.js cropWords' from) */
.qc-from { display: grid; gap: 0.15rem; margin: -0.2rem 0 0; padding: 0 0 0 0.2rem; border: 0; }
.qc-from legend { margin-bottom: 0.2rem; padding: 0; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.qc-from label { display: flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; font-size: 0.92rem; }
.qc-from input { width: 1.1rem; height: 1.1rem; accent-color: var(--canopy); }
.qc-from:disabled { opacity: 0.55; }
.qc-crop { margin: 0; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--paper); font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }

/* Asking the team: the way there, under the chats, and the member's own requests (chat.js requestsHtml) */
.qc-side__ask {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 2.75rem; margin: 0 0 0.6rem; padding: 0.5rem 0.65rem;
  border: 1.5px dashed var(--rule); border-radius: 12px; background: none; color: var(--ink-2);
  font: inherit; font-weight: 700; font-size: 0.86rem; line-height: 1.3; text-align: left; cursor: pointer;
}
.qc-side__ask[hidden] { display: none; }
/* set aside on this browser (qag-p5qu.4): what someone signed in here said wasn't theirs */
.qc-aside { display: grid; gap: 0.3rem; margin: 0 0 0.6rem; padding: 0.55rem 0.65rem; border: 1.5px dashed var(--rule); border-radius: 12px; font-size: 0.84rem; color: var(--ink-2); }
.qc-aside[hidden] { display: none; }
.qc-aside__say, .qc-aside__sure { margin: 0; }
.qc-aside__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; }
.qc-aside__sure { flex: 1 1 100%; font-weight: 700; color: var(--ink); }
.qc-aside__list { display: grid; gap: 0.4rem; margin: 0 0 0.9rem; padding: 0; list-style: none; }
.qc-aside__chat { padding: 0.5rem 0.65rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.qc-aside__chat summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.qc-aside__when { font-weight: 600; font-size: 0.78rem; color: var(--ink-3); }
.qc-aside__msg { margin: 0.45rem 0 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.qc-side__ask svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--canopy-2); }
.qc-side__ask:hover, .qc-side__ask[aria-expanded="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); }
.qc-side__ask:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qc-team { gap: 0.5rem; }
.qc-team__box { width: 100%; min-height: 6.5rem; padding: 0.6rem 0.8rem; resize: vertical; font-size: 0.93rem; line-height: 1.45; }
.qc-team__said { margin: 0; font-size: 0.86rem; font-weight: 650; color: var(--ink-2); }
.qc-team__said:empty { display: none; }
.qc-requests { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.qc-request { display: grid; gap: 0.2rem; padding: 0.65rem 0.8rem; border: 1px solid var(--rule); border-radius: 12px; background: #fffdf8; }
.qc-request__text { margin: 0; font-weight: 650; font-size: 0.93rem; white-space: pre-line; overflow-wrap: anywhere; }
.qc-request__when { margin: 0; font-size: 0.78rem; color: var(--ink-3); }
.qc-request__status { font-weight: 750; color: var(--ink-2); }
.qc-request.is-planned .qc-request__status, .qc-request.is-done .qc-request__status { color: var(--canopy-2); }
.qc-request__note { margin: 0.2rem 0 0; padding: 0.45rem 0.65rem; border-radius: 10px; background: var(--paper-2); font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.qc-request__note span { font-weight: 750; }
.qc-request__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; margin: 0.15rem 0 0; font-size: 0.86rem; }
/* each a finger's width tall, at least (WCAG 2.2's 24 px) */
.qc-request__acts .qc-link { min-height: 1.5rem; padding: 0.15rem 0.1rem; }
.qc-team [aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.qc-panel__h3[tabindex="-1"]:focus { outline: none; }
.qc-panel__h3[tabindex="-1"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.qc-notes__tools { display: flex; gap: 0.5rem; }
.qc-notes__tools .qc-find__input { flex: 1; }
.qc-notes { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.qc-note { border: 1px solid var(--rule); border-radius: 12px; background: #fffdf8; }
.qc-note summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; padding: 0.65rem 0.8rem;
  border-radius: 12px; list-style: none; cursor: pointer;
}
.qc-note summary::-webkit-details-marker { display: none; }
.qc-note summary:hover { background: rgba(239, 228, 204, 0.45); }
.qc-note__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; font-size: 0.93rem; }
.qc-note__when { font-size: 0.76rem; color: var(--ink-3); }
.qc-note__peek {
  grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.82rem; line-height: 1.4; color: var(--ink-3);
}
.qc-note__peek:empty { display: none; }
.qc-note__reads { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 750; color: var(--leaf); }
.qc-note__reads svg { width: 0.95rem; height: 0.95rem; }
.qc-note details[open] .qc-note__peek { display: none; }
.qc-note__edit { display: grid; gap: 0.55rem; padding: 0.1rem 0.8rem 0.8rem; }
.qc-note__edit > label:not(.qc-check) { display: grid; gap: 0.25rem; font-weight: 700; font-size: 0.82rem; }
.qc-note__edit .input { padding: 0.5rem 0.7rem; font-size: 0.93rem; }
.qc-note__edit textarea.input { min-height: 8rem; line-height: 1.45; resize: vertical; }
.qc-note__edit .chat__sources { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.qc-note__edit .chat__sources svg { width: 1rem; height: 1rem; }
.qc-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.qc-check input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--leaf); }
.qc-note__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; margin: 0; font-size: 0.85rem; }
.qc-note__acts a { font-weight: 750; color: var(--canopy-2); }

/* Your reminders, at the top of the Notes panel (chat.js remindersHtml, qag-anb) */
.qc-rems { display: grid; gap: 0.6rem; }
.qc-rems__h { margin-top: 0; padding-top: 0; border-top: 0; }
.qc-rems__tools { margin: 0; }
.qc-rems__list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.qc-rem { display: grid; gap: 0.3rem; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: #fffdf8; }
.qc-rem__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.75rem; }
.qc-rem__done { display: flex; align-items: flex-start; gap: 0.55rem; flex: 1 1 12rem; min-width: 0; font-weight: 700; font-size: 0.92rem; cursor: pointer; overflow-wrap: anywhere; }
.qc-rem__done input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.1rem 0 0; accent-color: var(--leaf); }
.qc-rem.is-done .qc-rem__what { color: var(--ink-3); text-decoration: line-through; }
.qc-rem__due { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.qc-rem__due.is-past { color: var(--earth); }
.qc-rem__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0 0 0 1.75rem; font-size: 0.82rem; }
.qc-rem__acts:empty { display: none; }
.qc-rem__mine { font-size: 0.76rem; font-weight: 750; color: var(--ink-3); }
.qc-rem__edit { display: grid; gap: 0.55rem; }
.qc-rem__edit > label:not(.qc-check) { display: grid; gap: 0.25rem; font-weight: 700; font-size: 0.82rem; }
.qc-rem__edit .input { padding: 0.5rem 0.7rem; font-size: 0.93rem; }
.qc-rem__go { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.qc-rems__done summary { width: fit-content; font-weight: 750; font-size: 0.85rem; color: var(--canopy-2); cursor: pointer; }
.qc-rems__done[open] summary { margin-bottom: 0.45rem; }
.qc-rems__done summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Screen sizes ------------------------------------------------------------------------------------------ */
@media (min-width: 1280px) {
  .qc.has-panel { grid-template-columns: 17.5rem minmax(0, 1fr) 23rem; }
  .qc-panel { grid-column: 3; }
}
@media (max-width: 1279px) {
  /* over the conversation, from the right: placed across the whole grid, its box is the page's */
  .qc-panel {
    grid-column: 1 / -1; position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(26rem, 100%);
    box-shadow: -18px 0 40px -24px rgba(0, 0, 0, 0.45);
  }
}
@media (max-width: 899px) {
  .qc { grid-template-columns: minmax(0, 1fr); }
  .qc-main, .qc-undo { grid-column: 1; }
  .qc-side {
    position: absolute; top: 0; bottom: 0; left: 0; z-index: 30; width: min(20rem, 86vw);
    box-shadow: 18px 0 40px -24px rgba(0, 0, 0, 0.5);
    transform: translateX(-104%); visibility: hidden; transition: transform 0.28s var(--ease-grow), visibility 0s linear 0.28s;
  }
  .qc.is-side-open .qc-side { transform: none; visibility: visible; transition: transform 0.28s var(--ease-grow), visibility 0s; }
  .qc-side__close, .qc-bar__side { display: inline-grid; }
  .qc-scrim { position: absolute; inset: 0; z-index: 25; background: rgba(30, 43, 34, 0.38); }
  .qc-scrim[hidden] { display: none; }
}
@media (max-width: 640px) {
  .qc-tool { padding: 0.4rem; min-width: 2.6rem; justify-content: center; }
  /* the icons alone: each button is named by its aria-label */
  .qc-tool__label { display: none; }
  @media (pointer: coarse) { .qc-tool { min-width: 44px; } }
  .qc-msg--ai { grid-template-columns: minmax(0, 1fr); }
  .qc-msg--ai > :not(.qc-msg__avatar) { grid-column: 1; }
  .qc-msg__avatar { display: none; }
  .qc-msg--me .qc-msg__body { max-width: 92%; }
  .qc-msg--ai .qc-msg__body { padding: 0.8rem 0.9rem; }
  .qc-msg--ai .qc-acts { margin-left: -0.3rem; }
  .qc-starts { grid-template-columns: minmax(0, 1fr); }
  .qc-hello__lede { font-size: 0.95rem; }
  .qc-ask__go { padding-inline: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qc-side, .qc-start, .qc-switch input, .qc-switch input::after { transition: none !important; }
  .qc-tool.is-pinged svg { animation: none; }
}

/* On paper: the conversation alone ----------------------------------------------------------------------- */
@media print {
  .hub-page--chat { overflow: visible; }
  .qc { position: static; display: block; height: auto; }
  .qc-side, .qc-scrim, .qc-bar__side, .qc-bar__tools, .qc-foot, .qc-panel, .qc-acts, .qc-msg--typing { display: none !important; }
  .qc-log { overflow: visible; padding: 0; }
}
