/* V51 "quotes" workstream (F01 + A01 offer facts / choice explanation, F02 + A02 image publication permission, F04 guided brief,
   A04 modeling approval boundary). Every rule is scoped under a .v51q-* class; existing tokens only (no new palette), logical
   properties only (RTL / LTR mirror), no fixed height on anything that holds text; Light / Dark / System follow the tokens. */

/* --- F01 / A01: offer facts, highlight chips, the in-card disclosure, the group summary --- */
.v51q-facts { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 2px 10px; margin: 8px 0; font-size: 0.85rem; }
.v51q-facts dt { color: var(--pb-text-secondary, inherit); opacity: 0.85; }
.v51q-facts dd { margin: 0; min-inline-size: 0; overflow-wrap: anywhere; }
.v51q-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0; padding: 0; }
.v51q-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--pb-selection-border, var(--border-color)); background: var(--pb-action-soft-bg, transparent); color: var(--pb-text-primary, inherit); font-size: 0.8rem; font-weight: 600; }
.v51q-noprice { margin: 6px 0; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--border-color); color: var(--pb-text-primary, inherit); }
.v51q-why { margin-block: 8px 0; border-block-start: 1px solid var(--pb-divider, var(--border-color)); padding-block-start: 6px; font-size: 0.85rem; }
.v51q-why > summary { cursor: pointer; min-block-size: var(--pb44-target, 48px); display: flex; align-items: center; color: var(--pb-action-text, var(--pb-color-link)); text-decoration: underline; }
.v51q-why > summary:focus-visible { outline: 2px solid var(--pb-focus, currentColor); outline-offset: 2px; }
.v51q-why ul { margin: 4px 0 0; padding-inline-start: 18px; }
.v51q-evidence { margin-block: 6px 0; }
.v51q-unranked { grid-column: 1 / -1; margin: 8px 0 0; font-weight: 600; border-block-start: 1px solid var(--pb-divider, var(--border-color)); padding-block-start: 8px; }
.v51q-choice { margin: 10px 0 14px; padding: 10px 14px; border: 1px solid var(--pb-divider, var(--border-color)); border-radius: 10px; font-size: 0.9rem; }
.v51q-choice__title { margin: 0 0 6px; font-size: 1rem; }
.v51q-choice__groups { margin: 0 0 6px; padding-inline-start: 18px; }
.v51q-choice p { margin: 4px 0; }
.v51q-choice__limit { opacity: 0.85; }

/* --- F02 / A02: the customer's image publication permission and the printer-side state --- */
.v51q-img { margin-block: 0; }
.v51q-img__state { font-weight: 600; }
.v51q-img form { display: inline-block; margin-block: 6px 0; }
.v51q-img-note { margin: 6px 0; font-size: 0.85rem; }

/* --- F04: guided / direct filling on the SAME form (display only) --- */
.v51q-brief { margin-block: 0 16px; }
.v51q-brief__modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.v51q-brief__modes .pb-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pb-selection-border, currentColor); }
.v51q-brief__steps { margin: 6px 0 0; padding-inline-start: 20px; }
.v51q-hint { margin: 0 0 10px; padding: 6px 10px; border-inline-start: 3px solid var(--pb-selection-border, var(--border-color)); font-size: 0.85rem; }
[data-v51q-brief-mode="direct"] .v51q-hint,
[data-v51q-brief-mode="direct"] .v51q-brief__steps { display: none; }

/* --- A04: the modeling approval boundary and the agreed-terms lineage --- */
.v51q-lineage dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 12px; margin: 6px 0; }
.v51q-lineage dd { margin: 0; min-inline-size: 0; overflow-wrap: anywhere; }
.v51q-boundary ul { margin: 6px 0 0; padding-inline-start: 18px; }
