/* CHOICES presentation only. Theme tokens are supplied by Native workspace;
   no global styles, new theme owner, fixed viewport or hidden data container. */
.choices-block { color:var(--workspace-text); background:var(--workspace-panel); border:1px solid var(--workspace-line); border-radius:12px; padding:16px; min-width:0; max-width:100%; display:grid; gap:12px; font:inherit; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.choices-block * { box-sizing:border-box; min-width:0; }
.choices-block [hidden] { display:none!important; }
.choices-block h3,.choices-block h4,.choices-block p { margin:0; }
.choices-block__header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.choices-block__identity { display:grid; gap:4px; }
.choices-block__eyebrow { font-size:12px; color:var(--workspace-blue); }
.choices-block__title { font-size:16px; line-height:1.35; font-weight:650; }
.choices-block__purpose { font-size:13px; color:var(--workspace-muted); }
.choices-block__pager { display:flex; flex:0 0 auto; align-items:center; gap:4px; }
.choices-block__counter { font-size:12px; color:var(--workspace-muted); white-space:nowrap; padding:0 4px; }
.choices-block__button { display:inline-flex; align-items:center; justify-content:center; gap:6px; font:inherit; color:var(--workspace-text); background:var(--workspace-raised); border:1px solid var(--workspace-line-bright); border-radius:8px; min-height:44px; padding:9px 12px; white-space:normal; cursor:pointer; }
.choices-block__button:disabled { opacity:.6; cursor:not-allowed; }
.choices-block__button--primary { color:var(--workspace-text); background:color-mix(in srgb,var(--workspace-blue) 16%,var(--workspace-panel)); border-color:var(--workspace-blue); }
.choices-block__button:not(:disabled):hover { background:var(--workspace-soft); }
.choices-block__pager-button { width:44px; padding:0; font-size:24px; border-color:transparent; background:transparent; }
.choices-block__button:focus-visible,.choices-block summary:focus-visible,.choices-block input:focus-visible,.choices-block textarea:focus-visible { outline:2px solid var(--workspace-blue); outline-offset:3px; }
.choices-block__question { display:grid; gap:12px; border-top:1px solid var(--workspace-line); padding-top:12px; }
.choices-block__question:focus { outline:2px solid var(--workspace-blue); outline-offset:5px; border-radius:4px; }
.choices-block__question-title { font-size:15px; font-weight:600; line-height:1.5; }
.choices-block__hint,.choices-block__boundary,.choices-block__status,.choices-block__muted { font-size:12px; color:var(--workspace-muted); }
.choices-block__inputs { border:0; padding:0; margin:0; display:grid; gap:8px; min-width:0; }
.choices-block__input-legend { padding:0 0 8px; font-size:12px; color:var(--workspace-muted); }
.choices-block__option-card { display:grid; border:1px solid var(--workspace-line); background:var(--workspace-raised); border-radius:8px; }
.choices-block__option { display:flex; gap:10px; align-items:flex-start; min-height:44px; padding:11px 12px; cursor:pointer; border-radius:8px; }
.choices-block__option:has(input:checked) { background:color-mix(in srgb,var(--workspace-blue) 9%,var(--workspace-panel)); box-shadow:inset 3px 0 var(--workspace-blue); }
.choices-block__option input { flex:0 0 auto; width:18px; height:18px; margin:2px 0 0; accent-color:var(--workspace-blue); }
.choices-block__option-label { line-height:1.5; white-space:pre-wrap; }
.choices-block__inputs:disabled .choices-block__option { cursor:default; }
.choices-block__field { display:grid; gap:6px; }
.choices-block__field-label { font-size:12px; color:var(--workspace-muted); }
.choices-block__field input,.choices-block__field textarea { display:block; width:100%; min-height:44px; max-width:100%; border:1px solid var(--workspace-line-bright); border-radius:8px; color:var(--workspace-text); background:var(--workspace-bg); padding:10px 12px; font:inherit; line-height:1.5; }
.choices-block__field textarea { resize:vertical; }
.choices-block__custom { padding:0 12px 4px; }
.choices-block__actions { display:flex; flex-wrap:wrap; gap:8px; }
.choices-block__known { display:grid; gap:6px; border-left:3px solid var(--workspace-green); padding:10px 12px; background:var(--workspace-raised); border-radius:0 8px 8px 0; }
.choices-block__known-label { color:var(--workspace-green); font-size:12px; }
.choices-block__answer { white-space:pre-wrap; }
.choices-block__condition { padding:12px; border:1px solid var(--workspace-line); border-radius:8px; color:var(--workspace-muted); font-size:13px; }
.choices-block__material { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:8px; padding:0 12px 12px; }
.choices-block__file-mark { color:var(--workspace-blue); font-size:24px; }
.choices-block__material-note { font-size:12px; color:var(--workspace-muted); }
.choices-block__material .choices-block__button { grid-column:2; justify-self:start; font-size:12px; text-align:left; }
.choices-block__status { min-height:18px; }
.choices-block__status[data-tone=error] { color:var(--workspace-red); }
.choices-block__history { border-top:1px solid var(--workspace-line); padding-top:8px; }
.choices-block__history summary { cursor:pointer; padding:10px 0; min-height:44px; font-size:13px; }
.choices-block__history-list { display:grid; gap:12px; list-style:none; padding:4px 0 0; margin:0; }
.choices-block__history-entry { display:grid; gap:6px; border-left:2px solid var(--workspace-line-bright); padding:4px 0 4px 12px; }
.choices-block__history-meta { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; color:var(--workspace-muted); }
.choices-block__history-technical { font-size:11px; color:var(--workspace-muted); }
.choices-block__history-technical p { overflow-wrap:anywhere; }
.choices-block__history .choices-block__history-technical summary { padding:4px 0; min-height:32px; font-size:11px; }
.choices-block__history-answer { font-size:13px; white-space:pre-wrap; }
.choices-block__boundary { padding-top:4px; }
@media(max-width:560px) {
  .choices-block { padding:12px; gap:10px; }
  .choices-block__header { flex-wrap:wrap; gap:8px; }
  .choices-block__identity { flex:1 1 140px; }
  .choices-block__pager { margin-left:auto; }
  .choices-block__actions { display:grid; grid-template-columns:minmax(0,1fr); }
  .choices-block__actions .choices-block__button { width:100%; }
  .choices-block__option { padding:11px 10px; }
}
@media(prefers-reduced-motion:reduce) { .choices-block,.choices-block * { scroll-behavior:auto; animation:none; transition:none; } }
@media(forced-colors:active) {
  .choices-block__option:has(input:checked) { outline:2px solid Highlight; }
  .choices-block__known { border-color:CanvasText; }
  .choices-block__button:disabled { opacity:1; color:GrayText; }
}

/* A compact Choices card names the configured question group first. Keep its
   source text visible; only this new type overrides the legacy hidden title. */
.semantic-message-block-shell[data-semantic-block-type="CHOICES"] { display:block; width:100%; min-width:0; margin-block:8px; }
.semantic-message-block-shell > .semantic-block--choices { display:grid; grid-template-columns:minmax(0,1fr); width:100%; min-width:0; margin:0; padding:12px; gap:8px; }
.semantic-block--choices > .semantic-block__head { display:flex; flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:6px 10px; }
.semantic-block--choices .semantic-block__title { display:block; min-width:0; font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.semantic-block--choices > .semantic-block__text { display:block; width:100%; min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.5; }
.semantic-block--choices > .semantic-block__interaction-summary { width:100%; min-width:0; }
