/* Ask about the journey: the conversation, the evidence cards, the microphone and the question box. */
.page-ask { max-width: var(--page-w); }
.ask-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 14rem); }
.ask-bar { display: flex; align-items: center; gap: 0.75rem 1rem; padding-bottom: 0.75rem; flex-wrap: wrap; }
.ask-bar .status { flex: 1; color: var(--ink-soft); font-size: var(--step--1); min-width: 12rem; }
.stream { flex: 1; padding-bottom: 1.5rem; }
.column { width: 100%; max-width: 50rem; margin: 0 auto; }
.dock { position: sticky; bottom: 0; z-index: 10; background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-top: auto; }
.dock .column { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 1.1rem; align-items: center; }
.notice-list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.8125rem; color: var(--ink-soft); }
.notice-list li { margin-bottom: 0.25rem; overflow-wrap: anywhere; }

.empty { padding: 2.5rem 0 2rem; max-width: 36rem; }
.empty h2 { font-size: var(--step-2); margin: 0 0 0.5rem; }
.empty p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.empty ol { margin: 1rem 0 0; padding-left: 1.2rem; }
.empty li { margin-bottom: 0.35rem; }
.empty li.done { color: var(--ink-soft); text-decoration: line-through; }

.turn { margin-bottom: 2.25rem; }
.question { font-weight: 800; font-size: var(--step-1); margin: 0 0 0.75rem; padding-left: 0.9rem; border-left: 5px solid var(--sun); }
.rewritten { color: var(--ink-soft); font-size: var(--step--1); margin: -0.25rem 0 0.75rem 1.15rem; }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 6px var(--radius) 6px var(--radius); padding: 1.1rem 1.35rem 1.25rem; font-size: 1.1rem; line-height: 1.7; max-width: 46rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer.waiting { color: var(--ink-soft); font-size: var(--step-0); white-space: normal; }
.answer.waiting::after, .answer.streaming::after { content: ""; display: inline-block; width: 0.5rem; height: 1.05rem; margin-left: 0.25rem; background: var(--sun); vertical-align: -0.15rem; animation: blink 1s steps(2, start) infinite; }
.answer.failed { border-color: var(--bad); }
@keyframes blink { to { visibility: hidden; } }
.cite { display: inline-block; min-width: 1.45rem; height: 1.45rem; padding: 0 0.3rem; margin: 0 0.1rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 800 0.75rem/1.45rem var(--font-body); text-align: center; vertical-align: 0.12em; }
.cite:hover { background: var(--primary); }

.page-ask .notice { max-width: 46rem; margin-top: 0.75rem; }
.evidence-title { font-size: var(--step-1); margin: 1.5rem 0 0.6rem; }
.ev-list { display: grid; gap: 0.6rem; }
.ev { --tab: var(--kind-text); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--tab); border-radius: 4px var(--radius-small) var(--radius-small) 4px; padding: 0.7rem 0.95rem 0.75rem; max-width: 46rem; }
.ev.kind-spreadsheet { --tab: var(--kind-spreadsheet); }
.ev.kind-document { --tab: var(--kind-document); }
.ev.kind-pdf { --tab: var(--kind-pdf); }
.ev.kind-image { --tab: var(--kind-image); }
.ev.kind-video { --tab: var(--kind-video); }
.ev.kind-audio { --tab: var(--kind-audio); }
.ev.flash { animation: flash 1.4s ease-out; }
.ev.other { background: transparent; }
@keyframes flash { 0% { background: var(--sun-soft); } 100% { background: var(--surface); } }
.ev-head { display: flex; gap: 0.65rem; align-items: baseline; }
.ev-num { flex: none; min-width: 1.45rem; height: 1.45rem; padding: 0 0.3rem; border-radius: 999px; background: var(--ink); color: #fff; font: 800 0.75rem/1.45rem var(--font-body); text-align: center; }
.ev.other .ev-num { background: var(--ink-soft); }
.ev-title { font-weight: 800; overflow-wrap: anywhere; }
.ev-folder { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; overflow-wrap: anywhere; }
.ev-loc { margin: 0.35rem 0 0 2.1rem; font-size: 0.8125rem; color: var(--ink-soft); }
.ev-text { margin: 0.45rem 0 0 2.1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-text mark { background: var(--sun); color: var(--sun-ink); padding: 0 0.1em; border-radius: 2px; }
.ev-media { margin: 0.6rem 0 0 2.1rem; }
.ev-media img { max-width: 100%; max-height: 11rem; border-radius: 8px; display: block; }
.ev-media video { max-width: 100%; max-height: 14rem; border-radius: 8px; }
.ev-media audio { width: 100%; max-width: 24rem; }
.ev-foot { margin: 0.55rem 0 0 2.1rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; font-size: 0.8125rem; }
.ev-why { color: var(--ink-soft); }

.mic { --level: 0; position: relative; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; box-shadow: 0 0 0 calc(var(--level) * 1.6rem) rgba(255, 200, 61, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.12); transition: box-shadow 0.08s linear, background 0.15s; }
.mic svg { width: 2rem; height: 2rem; }
.mic.listening { background: var(--bad); color: #fff; box-shadow: 0 0 0 calc(var(--level) * 1.6rem) rgba(208, 59, 59, 0.3), inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.mic.thinking, .mic.unavailable { background: var(--line); color: var(--ink-soft); }
.compose { display: grid; gap: 0.4rem; min-width: 0; }
.compose .row { display: flex; gap: 0.5rem; align-items: stretch; }
.compose textarea { flex: 1; min-width: 0; resize: none; border: 2px solid var(--line-strong); border-radius: var(--radius-small); padding: 0.6rem 0.85rem; background: var(--surface-soft); max-height: 8rem; font-size: var(--step-1); line-height: 1.4; }
.compose textarea:focus { border-color: var(--primary); background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.hint { margin: 0; min-height: 1.3em; color: var(--ink-soft); font-size: var(--step--1); }
.hint.bad { color: var(--bad-ink); font-weight: 800; }
.options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; font-size: 0.8125rem; color: var(--ink-soft); }
.options select { border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.2rem 0.4rem; background: var(--surface); max-width: 18rem; }
.options label { display: inline-flex; align-items: center; gap: 0.35rem; }
.cloud-note { color: var(--ink); background: var(--sun-soft); padding: 0.15rem 0.5rem; border-radius: 6px; }


@media (max-width: 40rem) {
  .dock { padding: 0.7rem 0.8rem; }
  .dock .column { gap: 0.5rem 0.7rem; }
  .mic { width: 3.5rem; height: 3.5rem; }
  .mic svg { width: 1.6rem; height: 1.6rem; }
  .compose .row { flex-direction: column; }
  .compose textarea { min-height: 4.6rem; font-size: 1rem; }
  .empty { padding-top: 1.2rem; }
}
