/* What the input line and the chat of this module look like. It belongs to the module and not to
   the toolkit: nothing here concerns any other view. */

/* --- the line in the topbar ------------------------------------------------------------- */

.prompt-bar
{
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 34rem;
}

/* the look of the field is the one of every field of the platform - only its width is its own */
.prompt-input { width: 100%; }

/* The short answer hangs UNDER the line and does not push anything: a strip that grows would move
   the whole page under the hand that is still typing. */
.prompt-answer
{
    position: absolute;
    top: calc(100% + var(--s1));
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: baseline;
    gap: var(--s2);
    padding: var(--s2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 18%));
    font-size: var(--fs-sm);
}

/* The lid under the strip: it catches a click anywhere else so the answer goes away the way a
   popover does. It lies UNDER the strip and over everything else, and it is invisible.

   It begins BELOW the topbar (2026-08-26). Covering the whole window, it swallowed the first
   click on everything up there - and the microphone and the speaker of another module live
   exactly there: one click closed the strip, and only the second one reached the symbol. The
   page below is what a click is supposed to be caught on; the bar above belongs to whoever put
   something into it. */
.prompt-catch
{
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
}

.prompt-said { flex: 1 1 auto; min-width: 0; }

.prompt-more { white-space: nowrap; }

.prompt-close
{
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--fs-md);
    line-height: 1;
}

/* --- the chat page --------------------------------------------------------------------- */

/* The bubbles and the field are the conversation of the toolkit (ChatView, 2026-09-30); what stands
   here is what only this page shows around it. */

.prompt-tools { font-size: var(--fs-xs); }

/* how full the context is: a bar and the figure beside it, in a line that is there anyway */
.prompt-context
{
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--fs-xs);
    white-space: nowrap;
}

.prompt-gauge
{
    display: inline-block;
    width: 4rem;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-alt, var(--border));
    overflow: hidden;
}

.prompt-gauge-fill
{
    display: block;
    height: 100%;
    background: var(--accent);
}
