/* Commands, model and effort in the session dialog (cmd-view.js): the menu that a "/" opens
   in the answer box, Compact beside Send, the two small selects of model and effort in the
   head, and the model and effort of a row. Dense: small controls, small gaps. The tokens
   (colours, fonts, the button heights) are those of home.css. */

/* The menu stands above the field, inside the answer box, over the end of the conversation. */
.composer[data-composer] { position: relative; }
.cmd-menu:empty { display: none; }
.cmd-menu { position: absolute; z-index: 40; left: 0; right: 0; bottom: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(10, 14, 22, .25); padding: 3px; }
.cmd-list { display: flex; flex-direction: column; max-height: 232px; overflow: auto; overscroll-behavior: contain; }
.cmd { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: baseline; text-align: left; width: 100%; border: 0; border-radius: 6px; background: none; color: var(--ink); padding: 3px 7px; font-size: .82rem; cursor: pointer; }
.cmd b { font-family: var(--f-mono); font-weight: 600; font-size: .8rem; }
.cmd-hint { color: var(--muted); font-family: var(--f-mono); font-size: .72rem; overflow-wrap: anywhere; }
.cmd-desc { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
.cmd[aria-selected="true"], .cmd:hover { background: var(--accent-soft); }
.cmd-none { margin: 0; padding: 5px 8px; color: var(--muted); font-size: .8rem; }

/* Compact: a small quiet button beside Send, and its line while it runs. */
.act.cmp { min-height: var(--btn-sm, 26px); padding: 1px 8px; font-size: .74rem; font-weight: 500; color: var(--muted); }
.cmp-state { display: inline-flex; align-items: center; gap: 5px; }

/* Model and effort in the head: two small selects and the line of a change that waits. */
.run-pick { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.run-sel { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: .72rem; padding: 0 4px; min-height: 22px; max-width: 12rem; }
.run-sel:disabled { opacity: .6; }
.run-line { font-size: .72rem; color: var(--muted); }
.chip.cmp-n { font-variant-numeric: tabular-nums; }

/* The label of a message ("Claude, 30.11. 08:20") at the start of its first line, small and
   muted as the label above a block, with a small gap before the words (dialog-view.js). */
.who.lead { margin-right: 6px; white-space: nowrap; }

/* The row of the work list: the model and the effort of its session, small, beside the title. */
.srow .rw { margin-left: 6px; font-family: var(--f-mono); font-size: .66rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }

/* The phone layout (the query is NARROW_QUERY of cmd-model.js): the selects are touched with
   a finger, and Compact leaves the bar of the answer box; the "/" menu offers it first. */
@media (max-width: 559px) {
  .run-sel { min-height: 32px; font-size: .8rem; }
  .act.cmp { display: none; }
  .cmd { padding: 7px 8px; }
  .cmd-list { max-height: 40vh; }
}
