/* TechStone Field — modules/help.css — the Ask tab (Help): Assistant · Manual · Search, the report flow, and the
 * "your request is kept" block on a coming-soon face (phase P7, 24 Sep 2026). Brand Light tokens from app.css only.
 *
 * The house rules hold here too (test/field-app-css.test.js reads this file): no sideways scrolling, inputs 16px,
 * targets 44px or more, white-space:nowrap nowhere (the "Soon" tag is a .chip, which may), L0 never scrolls — the
 * turn list clips and the Assistant counts what it could not show.
 */

/* ------------------------------------------------------------------ the L0 frame */
.ask { gap: 10px; }
.ask .seg { flex: 0 0 auto; }

/* composer: input, mic, go */
.ask-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.ask-bar .ask-in {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-solid, var(--mineral));
  border-radius: 12px;
  background: var(--card);
  font: 400 16px/1.3 var(--f-body);
  color: var(--ink, var(--basalt));
}
.ask-bar .ask-in:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px rgba(180, 122, 60, .25); }
.ask-mic, .ask-go {
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1.5px solid var(--btn-rule);
  background: var(--card);
  color: var(--ink, var(--basalt));
  cursor: pointer;
  padding: 0;
}
.ask-go { background: var(--copper-solid, var(--basalt)); border-color: var(--copper-solid, var(--basalt)); color: var(--offwhite); }
.ask-mic {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  color: var(--copper-deep);
}
.ask-mic.rec { background: var(--copper); border-color: var(--copper-deep); color: var(--basalt); animation: askpulse 1.2s ease-in-out infinite; }
.ask-mic.off { color: var(--mineral); border-style: dashed; }
@keyframes askpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 122, 60, .45); } 50% { box-shadow: 0 0 0 7px rgba(180, 122, 60, 0); } }

.ask-hint { flex: 0 0 auto; min-height: 20px; font: 500 14px/1.35 var(--f-body); color: var(--ink-soft); }
.ask-hint:empty { min-height: 0; }
.ask-hint.is-warn { color: var(--warn); }
.ask-hint.is-rec { color: var(--copper-deep); font-variant-numeric: tabular-nums; }

/* the turns: newest first, clipped (never scrolled) at L0 */
.ask-turns {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.ask-more {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 600 15px/1.3 var(--f-body);
  color: var(--copper-ink);
  text-decoration: none;
}

.ask-empty { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.ask-empty-t { font: 600 17px/1.3 var(--f-head); }
.ask-empty-b { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ a turn */
.turn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.turn.clamped { flex: 0 1 auto; max-height: 100%; overflow: hidden; }
.turn-q { display: flex; flex-direction: column; gap: 2px; }
.turn-via { font: 600 12px/1.3 var(--f-body); color: var(--ink-soft); letter-spacing: .02em; }
.turn-text { font: 500 15px/1.35 var(--f-body); }
.turn-r { font-size: 15px; }
.turn-err { color: var(--bad); }
.turn-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.turn-acts .btn { flex: 1 1 120px; }
.turn-open {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font: 600 14px/1.2 var(--f-body);
  color: var(--copper-ink);
  text-decoration: none;
}
.turn-open .ic { width: 16px; height: 16px; }
.ask-clamp2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.turn-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.turn-wait .btn { margin-left: auto; }
.ask-dots { display: inline-flex; gap: 4px; }
.ask-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); animation: askdot 1.2s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .2s; }
.ask-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes askdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.nan-inline { padding: 4px 0; text-align: left; }
.nan-inline .nan-t { font-size: 15px; margin-bottom: 2px; }
.nan-inline .nan-b { font-size: 14px; }

/* jump chips: a command as a tappable target (44px), with a "Soon" tag when its module is not built yet */
.jchips { display: flex; flex-wrap: wrap; gap: 8px; }
.jchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1.5px solid var(--btn-rule);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink, var(--basalt));
  font: 600 14px/1.25 var(--f-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.jchip:active { background: var(--ground, var(--offwhite)); }
.jchip .chip { height: 20px; font-size: 12px; }

/* the answer */
.ans-text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.ans-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.ans-src { font-size: 13px; color: var(--ink-soft); }

/* the draft card */
.ask-draft {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 4px solid var(--copper);
  background: #FCFAF6;
}
.ask-draft-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 15px/1.3 var(--f-head); color: var(--copper-deep); }
.ask-draft-k .ic { width: 20px; height: 20px; }
.ask-draft-rows { display: flex; flex-direction: column; gap: 6px; }
.ask-draft-rows .kv-v { font-size: 15px; }
.ask-draft-unk { padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.ask-draft-unk-t { font-weight: 600; }
.ask-draft-unk ul { margin: 4px 0 0; padding-left: 18px; }
.ask-draft-note { font-size: 13px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ Manual and Search decks */
.man-deck, .srch-deck { flex: 1 1 auto; min-height: 0; }
.man-row, .res-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink, var(--basalt));
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.man-ic { flex: 0 0 auto; color: var(--copper); display: inline-flex; }
.man-main, .res-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.man-t, .res-t { font: 600 15px/1.3 var(--f-body); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.man-s, .res-s { font: 400 13px/1.3 var(--f-body); color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.srch-state { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.srch-state:empty { display: none; }
.ask-bar input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ------------------------------------------------------------------ guide face (L1) */
.g-sum { font-size: 16px; }
.g-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rule-soft); }
.g-h { font-size: 17px; }
.g-steps, .g-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------------ report flow and requests (L1)
 * Scoped to .ask-rep so these never restyle another module's form fields. */
.ask-rep .field .field-l { font: 600 14px/1.3 var(--f-body); color: var(--ink, var(--basalt)); }
.ask-rep .field textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1.5px solid var(--grey-solid, var(--mineral)); border-radius: 10px; background: var(--card); font: 400 16px/1.4 var(--f-body); resize: vertical; }
.ask-rep .field textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px rgba(180, 122, 60, .25); }
.ask-rep .field input[type="file"] { min-height: 48px; font-size: 16px; }
.req-list { display: flex; flex-direction: column; gap: 8px; }
.req-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink, var(--basalt));
  text-decoration: none;
}
.req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.req-id { font: 600 14px/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.req-t { font-size: 15px; }
.req-s { font-size: 13px; color: var(--ink-soft); }
.req-ev { padding: 8px 0; border-top: 1px solid var(--rule-soft); }

/* the record sheet from Search: stacked, full-width actions */
.ask-sheet-stack { flex-direction: column; }
.ask-sheet-stack .btn { flex: 0 0 auto; width: 100%; }

/* ------------------------------------------------------------------ "your request is kept" on a coming-soon face */
.soon-req {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  background: var(--card);
}
.soon-req-k { font: 600 12px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--copper-ink); }
.soon-req-t { font: 600 17px/1.3 var(--f-head); }
.soon-req-b { font-size: 14px; color: var(--ink-soft); }
.tabstub .soon-req { flex: 0 0 auto; }

@media (min-width: 768px) {
  .turn-acts .btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-mic.rec, .ask-dots i { animation: none; }
}

/* dark overrides (generated 12 Oct 2026) */
html[data-theme='dark'] .ask-draft{background:var(--card,#FCFAF6)}
