/* vragen.css -- the Questions screen (vragen.js): a card per question in the form of a decision point on a claude-report (#0000-3526):
   one reading column, what it is about always open, the options as blocks with what happens and what is needed afterwards. Tokens from core.css. */

.vr-card { font-family: var(--font-ui); width: 860px; max-width: calc(100vw - 16px); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.vr-head { display: flex; align-items: center; gap: 12px; }
.vr-h { margin: 0; flex: 1; font-size: calc(var(--ui-fs) * 20 / 13); font-weight: 600; color: var(--text-strong); }
.vr-x { background: none; border: 0; color: var(--text-dim); font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm); cursor: pointer; }
.vr-x:hover { background: var(--hover); color: var(--text); }
.vr-note { margin: 0; color: var(--text-dim); max-width: 70ch; line-height: 1.5; }
.vr-keys { margin: 4px 0 0; color: var(--text-muted); font-size: calc(var(--ui-fs) * 12 / 13); }
.vr-none { text-align: center; color: var(--text-muted); margin: 24px 0; }
.vr-attn { color: var(--attn); }

.vr-list { display: flex; flex-direction: column; gap: 10px; }
.vr-part { margin: 14px 0 0; padding-bottom: 4px; border-bottom: 2px solid var(--text-strong); font-size: calc(var(--ui-fs) * 15 / 13); font-weight: 600; color: var(--text-strong); }
.vr-part:first-child { margin-top: 4px; }

/* a decision point */
.vr-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 8px; }
.vr-row.vr-sel { border-color: var(--focus); border-left-color: var(--focus); }
.vr-row.vr-bug { border-left-color: var(--danger); }
.vr-row.vr-busy { opacity: .5; pointer-events: none; }
.vr-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: var(--text-dim); font-family: var(--font-code); font-size: calc(var(--ui-fs) * 12 / 13); }
.vr-row.vr-cur .vr-id { font-weight: 600; color: var(--text); }
.vr-prio { font-weight: 600; }
.vr-p0 { color: var(--danger-tx); }
.vr-p1 { color: var(--attn); }
.vr-now { color: var(--attn); text-transform: uppercase; letter-spacing: .06em; font-size: calc(var(--ui-fs) * 10 / 13); }
.vr-q { margin: 0; font-size: calc(var(--ui-fs) * 15 / 13); font-weight: 600; line-height: 1.3; color: var(--text-strong); overflow-wrap: anywhere; }
.vr-label { margin: 2px 0 -4px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-size: calc(var(--ui-fs) * 10 / 13); }
.vr-ctx { margin: 0; color: var(--text); line-height: 1.5; max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.vr-prop { margin: 0; padding: 6px 12px; border-left: 3px solid var(--rule); color: var(--text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18em; overflow: auto; }
.vr-cons { margin: 0; color: var(--text-dim); line-height: 1.45; max-width: 72ch; font-size: calc(var(--ui-fs) * 12 / 13); }
.vr-cons::before { content: "Consequences: "; color: var(--text-muted); }
.vr-ask { margin: 2px 0 0; font-weight: 600; color: var(--text-strong); line-height: 1.4; max-width: 72ch; }

/* the options: a block each, the name in bold, what happens, and what is needed from him afterwards */
.vr-act { display: grid; gap: 6px; }
.vr-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 40px; padding: 8px 12px; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.vr-opt:hover { border-color: var(--accent-hi); background: var(--hover); }
.vr-opt-top { display: flex; gap: 8px; align-items: baseline; }
.vr-opt-name { font-weight: 600; color: var(--text-strong); }
.vr-rec { color: var(--accent-hi); text-transform: uppercase; letter-spacing: .06em; font-size: calc(var(--ui-fs) * 10 / 13); font-weight: 600; }
.vr-opt-what { line-height: 1.45; overflow-wrap: anywhere; }
.vr-opt-after { color: var(--text-dim); font-size: calc(var(--ui-fs) * 12 / 13); }
.vr-ownrow { display: flex; gap: 6px; align-items: stretch; }
.vr-own { flex: 1; min-height: 36px; box-sizing: border-box; padding: 7px 9px; font: inherit; resize: vertical; color: var(--text); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.vr-send { min-width: 72px; }
.vr-err { color: var(--danger-tx); font-size: calc(var(--ui-fs) * 12 / 13); }
.vr-err:empty { display: none; }
.vr-x:focus-visible, .vr-opt:focus-visible, .vr-send:focus-visible, .vr-own:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

@media (max-width: 700px) {
  .vr-row { padding: 10px; }
  .vr-ownrow { flex-direction: column; }
  .vr-send { min-height: 40px; }
}
