@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* Linqs — classes de référence. En production : traduites en utilitaires Tailwind
   (voir README, « Tailwind »). Toutes les valeurs viennent des tokens. */

html, body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 20px; margin: 0; -webkit-font-smoothing: antialiased; }
body { padding: 16px; }
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.lq-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.lq-stack { display: flex; flex-direction: column; gap: var(--space-2); }
.lq-muted { color: var(--ink-muted); }
.lq-subtle { color: var(--ink-subtle); }
.lq-mono { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.lq-num { font-variant-numeric: tabular-nums; text-align: right; }
.lq-caption { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.lq-icon { width: var(--icon-md); height: var(--icon-md); flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lq-icon.sm { width: var(--icon-sm); height: var(--icon-sm); }

/* Button */
.lq-btn { display: inline-flex; align-items: center; gap: 6px; height: var(--control-h); padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid transparent; font: 500 14px/20px var(--font-sans); cursor: pointer; background: transparent; color: var(--ink); white-space: nowrap; }
.lq-btn-primary { background: var(--accent); color: var(--on-accent); }
.lq-btn-primary:hover { background: var(--accent-hover); }
.lq-btn-secondary { background: var(--bg); border-color: var(--border-input); }
.lq-btn-secondary:hover, .lq-btn-ghost:hover { background: var(--bg-muted); }
.lq-btn-danger { background: var(--bg); border-color: var(--border-input); color: var(--danger); }
.lq-btn-sm { height: 28px; padding: 0 var(--space-2); font-size: 13px; }
.lq-btn-icon { width: var(--control-h); padding: 0; justify-content: center; }
.lq-btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Raccourci clavier intégré au bouton : la touche hérite de la couleur du bouton */
.lq-btn .lq-kbd { height: 18px; min-width: 18px; margin-left: 2px; padding: 0 4px; background: transparent; border-color: currentColor; border-bottom-width: 1px; color: inherit; opacity: .85; }
.lq-btn-sm .lq-kbd { height: 16px; min-width: 16px; font-size: 10px; }

/* Field */
.lq-field { display: flex; flex-direction: column; gap: var(--space-1); }
.lq-label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.lq-input { height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-input); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font-sans); min-width: 0; }
.lq-input::placeholder { color: var(--ink-subtle); }
.lq-input:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: var(--focus-ring); }
.lq-help { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.lq-help.error { color: var(--danger); }

/* KeyboardHint */
.lq-kbd { display: inline-flex; align-items: center; min-width: 20px; height: 20px; padding: 0 var(--space-1); justify-content: center; border-radius: var(--radius-sm); background: var(--bg-muted); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--ink-muted); font: 500 11px/16px var(--font-mono); }

/* StatusDot */
.lq-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.lq-dot { width: 8px; height: 8px; border-radius: var(--radius-full); flex: none; background: var(--neutral-dot); }
.lq-dot.ok { background: var(--success); }
.lq-dot.warn { background: var(--warning); }
.lq-dot.bad { background: transparent; box-shadow: inset 0 0 0 2px var(--danger); }
.lq-dot.bad::after { content: ""; display: block; width: 4px; height: 4px; margin: 2px; border-radius: var(--radius-full); background: var(--danger); }

/* Badge (utilisé par ProvenanceBadge, statuts de version) */
.lq-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 6px; border-radius: var(--radius-sm); font: 500 12px/16px var(--font-sans); background: var(--bg-muted); color: var(--ink-muted); white-space: nowrap; }
.lq-badge.ok { background: var(--success-soft); color: var(--success); }
.lq-badge.warn { background: var(--warning-soft); color: var(--warning); }
.lq-badge.bad { background: var(--danger-soft); color: var(--danger); }
.lq-badge.accent { background: var(--accent-soft); color: var(--accent); }
.lq-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); font: 600 11px/16px var(--font-sans); font-variant-numeric: tabular-nums; }

/* ProvenanceBadge */
.lq-prov { position: relative; display: inline-flex; }
.lq-prov-card { position: absolute; top: calc(100% + 6px); left: 0; width: 260px; padding: var(--space-3); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); font-size: 13px; line-height: 18px; z-index: var(--z-sticky); }
.lq-prov-card dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; margin: 0; }
.lq-prov-card dt { color: var(--ink-subtle); }
.lq-prov-card dd { margin: 0; }

/* Tabs */
.lq-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); }
.lq-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-2); background: none; border: 0; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.lq-tab:hover { color: var(--ink); }
.lq-tab[aria-selected="true"] { color: var(--ink); }
.lq-tab[aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-2); right: var(--space-2); bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.lq-tab .n { color: var(--ink-subtle); font-weight: 400; font-variant-numeric: tabular-nums; }

/* DataTable */
.lq-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: auto; }
.lq-toolbar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lq-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 var(--space-2); border: 1px dashed var(--border-input); border-radius: var(--radius-md); font-size: 13px; color: var(--ink-muted); background: none; }
.lq-chip.on { border-style: solid; background: var(--bg-selected); color: var(--ink); border-color: var(--accent); }
.lq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lq-table th { position: sticky; top: 0; z-index: var(--z-sticky); height: 32px; padding: 0 var(--space-3); text-align: left; background: var(--bg-subtle); border-bottom: 1px solid var(--border-strong); font: 500 12px/16px var(--font-sans); color: var(--ink-muted); white-space: nowrap; }
.lq-table td { height: var(--row-comfortable); padding: 0 var(--space-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.lq-table tr:hover td { background: var(--bg-muted); }
.lq-table tr[aria-selected="true"] td { background: var(--bg-selected); }
.lq-table tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.lq-table.compact { font-size: 13px; }
.lq-table.compact td { height: var(--row-compact); padding: 0 var(--space-2); }
.lq-table.compact th { padding: 0 var(--space-2); height: 28px; }
.lq-check { width: 14px; height: 14px; accent-color: var(--accent); }

/* InlineEdit */
.lq-inline { display: inline-flex; align-items: center; min-height: 26px; padding: 0 6px; margin: 0 -6px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: text; }
.lq-inline:hover { border-color: var(--border-strong); }
.lq-inline.editing { border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); background: var(--bg); }
.lq-inline input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; padding: 0; }
.lq-inline.saved { background: var(--success-soft); transition: background 600ms; }

/* EntityHeader */
.lq-entity { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-4); }
.lq-crumbs { display: flex; gap: 6px; font-size: 13px; color: var(--ink-subtle); }
.lq-crumbs a { color: var(--ink-muted); text-decoration: none; }
.lq-entity h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.lq-entity-meta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.lq-entity-actions { margin-left: auto; display: flex; gap: var(--space-2); }

/* Drawer */
.lq-drawer { width: var(--drawer-w); max-width: 100%; background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-drawer); display: flex; flex-direction: column; }
.lq-drawer-head { display: flex; align-items: center; gap: var(--space-2); height: var(--header-h); padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--border); }
.lq-drawer-head h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-drawer-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); overflow: auto; }
.lq-drawer-foot { margin-top: auto; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); display: flex; gap: var(--space-2); align-items: center; }
.lq-kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px var(--space-3); font-size: 13px; line-height: 18px; margin: 0; }
.lq-kv dt { color: var(--ink-muted); }
.lq-kv dd { margin: 0; }

/* DiffView */
.lq-diff { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; font-size: 13px; line-height: 18px; }
.lq-diff-row { display: grid; grid-template-columns: 24px 140px 1fr; gap: var(--space-2); padding: 6px var(--space-3); border-bottom: 1px solid var(--border); align-items: baseline; }
.lq-diff-row:last-child { border-bottom: 0; }
.lq-diff-row .sign { font-family: var(--font-mono); font-weight: 600; text-align: center; }
.lq-diff-row.add { background: var(--success-soft); }
.lq-diff-row.add .sign { color: var(--success); }
.lq-diff-row.del { background: var(--danger-soft); }
.lq-diff-row.del .sign { color: var(--danger); }
.lq-diff-row.mod .sign { color: var(--warning); }
.lq-diff-row .field { color: var(--ink-muted); }
.lq-diff del { color: var(--danger); text-decoration: line-through; }
.lq-diff ins { color: var(--success); text-decoration: none; font-weight: 500; }

/* ValidationQueueItem */
.lq-vq { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); align-items: start; }
.lq-vq[aria-selected="true"] { background: var(--bg-selected); box-shadow: inset 2px 0 0 var(--accent); }
.lq-vq-title { font-weight: 500; }
.lq-vq-meta { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
.lq-vq-actions { display: flex; gap: var(--space-1); }

/* CommandPalette */
.lq-overlay { background: var(--overlay); padding: 48px var(--space-4); display: flex; justify-content: center; }
.lq-palette { width: var(--palette-w); max-width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); overflow: hidden; }
.lq-palette-input { display: flex; align-items: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-4); border-bottom: 1px solid var(--border); }
.lq-palette-input input { flex: 1; border: 0; outline: 0; background: none; font: 400 16px/24px var(--font-sans); color: var(--ink); }
.lq-palette-input input::placeholder { color: var(--ink-subtle); }
.lq-palette-scopes { display: flex; gap: var(--space-1); padding: var(--space-2) var(--space-3) 0; }
.lq-palette-body { display: grid; grid-template-columns: 1fr 260px; min-height: 280px; }
.lq-palette-list { padding: var(--space-1) var(--space-2) var(--space-2); }
.lq-palette-group { padding: var(--space-2) var(--space-2) var(--space-1); font: 500 12px/16px var(--font-sans); color: var(--ink-subtle); }
.lq-palette-item { display: flex; align-items: center; gap: var(--space-2); height: var(--row-comfortable); padding: 0 var(--space-2); border-radius: var(--radius-md); font-size: 14px; }
.lq-palette-item .hint { margin-left: auto; color: var(--ink-subtle); font-size: 13px; }
.lq-palette-item[aria-selected="true"] { background: var(--bg-selected); }
.lq-palette-item .lq-icon { color: var(--ink-muted); }
.lq-palette-preview { background: var(--bg-subtle); border-left: 1px solid var(--border); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); font-size: 13px; }
.lq-palette-foot { display: flex; gap: var(--space-4); padding: var(--space-2) var(--space-4); border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-subtle); align-items: center; flex-wrap: wrap; }
.lq-palette-foot span { display: inline-flex; gap: 4px; align-items: center; }

/* Toast */
.lq-toast { display: flex; align-items: center; gap: var(--space-3); width: 380px; max-width: 100%; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); font-size: 14px; }
.lq-toast .msg { flex: 1; min-width: 0; }
.lq-toast .lq-btn { color: var(--bg); }
.lq-toast .lq-btn:hover { background: rgba(127,127,127,.25); }

/* NotificationPanel */
.lq-notif { width: 380px; max-width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); overflow: hidden; }
.lq-notif-head { display: flex; align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); gap: var(--space-2); }
.lq-notif-head h2 { margin: 0; font-size: 14px; font-weight: 600; flex: 1; }
.lq-notif-item { display: grid; grid-template-columns: 16px 1fr auto; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.lq-notif-item.unread { background: var(--bg-subtle); }
.lq-notif-item .lq-icon { margin-top: 1px; color: var(--ink-muted); }
.lq-notif-item time { color: var(--ink-subtle); white-space: nowrap; }

/* AppShell */
.lq-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: var(--header-h) 1fr; height: 100%; min-height: 420px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.lq-sidebar { grid-row: 1 / 3; background: var(--bg-subtle); border-right: 1px solid var(--border); padding: var(--space-2); display: flex; flex-direction: column; gap: 1px; overflow: auto; }
.lq-org { display: flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-2); border-radius: var(--radius-md); font-weight: 600; margin-bottom: var(--space-2); }
.lq-org .mark { width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.lq-nav { display: flex; align-items: center; gap: var(--space-2); height: 30px; padding: 0 var(--space-2); border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font-size: 14px; }
.lq-nav:hover { background: var(--bg-muted); color: var(--ink); }
.lq-nav[aria-current="page"] { background: var(--bg-selected); color: var(--ink); font-weight: 500; }
.lq-nav .lq-count { margin-left: auto; }
.lq-nav-group { padding: var(--space-3) var(--space-2) var(--space-1); font-size: 12px; font-weight: 500; color: var(--ink-subtle); }
.lq-header { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4); border-bottom: 1px solid var(--border); }
.lq-search { display: flex; align-items: center; gap: var(--space-2); width: 320px; max-width: 100%; height: 32px; padding: 0 var(--space-2) 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink-subtle); background: var(--bg-subtle); font-size: 14px; }
.lq-search .lq-kbd { margin-left: auto; }
.lq-main { padding: var(--space-6); overflow: auto; }
/* Popover, Combobox, DatePicker */
.lq-popover { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); padding: 4px; color: var(--ink); }
.lq-popover-backdrop { position: fixed; inset: 0; z-index: 29; }
.lq-combo { position: relative; }
.lq-combo .lq-input { width: 100%; padding-right: 28px; box-sizing: border-box; }
.lq-combo-chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--ink-subtle); pointer-events: none; }
.lq-option { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.lq-option[aria-selected="true"] { background: var(--bg-muted); }
.lq-option .lq-option-meta { margin-left: auto; font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.lq-option-check { width: 16px; color: var(--accent); flex: none; }
.lq-option-create { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding-top: 4px; min-height: 36px; color: var(--accent); }
.lq-option-create b { color: var(--ink); font-weight: 600; }
.lq-option-create .lq-kbd { margin-left: auto; }
.lq-option-empty { padding: 8px; font-size: 13px; color: var(--ink-subtle); }
.lq-date-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-input); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font-sans); cursor: pointer; text-align: left; box-sizing: border-box; }
.lq-date-btn:focus-visible, .lq-date-btn[aria-expanded="true"] { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: var(--focus-ring); }
.lq-date-btn .lq-icon { color: var(--ink-subtle); }
.lq-cal-head { display: flex; align-items: center; gap: 4px; padding: 4px 4px 8px; }
.lq-cal-head strong { flex: 1; font-size: 14px; font-weight: 600; text-transform: capitalize; padding-left: 4px; }
.lq-cal { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; padding: 0 4px; }
.lq-cal-wd { height: 24px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--ink-subtle); }
.lq-day { position: relative; width: 34px; height: 32px; border: 0; border-radius: var(--radius-md); background: none; color: var(--ink); font: 400 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.lq-day:hover { background: var(--bg-muted); }
.lq-day:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.lq-day.out { color: var(--ink-subtle); }
.lq-day.today { box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.lq-day.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 9999px; background: var(--ink-subtle); }
.lq-day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.lq-day[aria-pressed="true"]::after { background: var(--on-accent); }
.lq-cal-foot { display: flex; gap: 4px; padding: 8px 4px 4px; margin-top: 6px; border-top: 1px solid var(--border); }
/* Description, notes épinglées, discussion */
.lq-textarea { width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font-sans); resize: vertical; box-sizing: border-box; }
.lq-textarea::placeholder { color: var(--ink-subtle); }
.lq-textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: var(--focus-ring); }
.lq-desc { display: flex; flex-direction: column; gap: 6px; }
.lq-desc-text { font-size: 14px; line-height: 21px; white-space: pre-wrap; color: var(--ink); max-width: 760px; }
.lq-desc-empty { font-size: 14px; color: var(--ink-subtle); }
.lq-pinned { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-subtle); }
.lq-pinned-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: 13px; line-height: 18px; }
.lq-pinned-item .lq-icon { width: 14px; height: 14px; margin-top: 2px; color: var(--ink-muted); }
.lq-thread { display: flex; flex-direction: column; }
.lq-comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.lq-comment + .lq-comment { border-top: 1px solid var(--border); }
.lq-avatar { width: 28px; height: 28px; border-radius: 9999px; background: var(--bg-muted); display: grid; place-items: center; font: 600 11px/1 var(--font-sans); color: var(--ink-muted); flex: none; }
.lq-avatar.me { background: var(--accent-soft); color: var(--accent); }
.lq-comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.lq-comment-head b { font-weight: 600; }
.lq-comment-head time, .lq-comment-head .edited { color: var(--ink-subtle); font-size: 12px; }
.lq-comment-body { margin-top: 2px; font-size: 14px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lq-mention { color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 0 3px; font-weight: 500; }
.lq-tag { display: inline; padding: 0 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--ink); font: 500 12px/18px var(--font-mono); cursor: pointer; }
.lq-tag:hover { border-color: var(--accent); color: var(--accent); }
.lq-comment-actions { display: flex; gap: 2px; margin-top: 4px; margin-left: -8px; flex-wrap: wrap; }
.lq-comment-actions .lq-btn { color: var(--ink-muted); font-weight: 500; }
.lq-comment-actions .lq-btn:hover { color: var(--ink); }
.lq-replies { margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--border); }
.lq-replies .lq-comment { padding: 8px 0; }
.lq-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--danger-soft); font-size: 13px; }
.lq-confirm span { flex: 1; }
.lq-composer { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lq-composer-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-subtle); }
.lq-composer-foot .lq-kbd { height: 18px; }
.lq-composer-foot .actions { margin-left: auto; display: flex; gap: 6px; }
/* Segmented control (choix exclusif court dans une ligne ou un panneau) */
.lq-seg { display: inline-flex; border: 1px solid var(--border-input); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.lq-seg button { height: 26px; padding: 0 10px; border: 0; background: none; font: 500 12px/1 var(--font-sans); color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.lq-seg button + button { border-left: 1px solid var(--border-input); }
.lq-seg button:hover { background: var(--bg-muted); color: var(--ink); }
.lq-seg button[aria-pressed="true"] { background: var(--bg-selected); color: var(--accent); }
/* Répartition stock / fabrication d'un sous-ensemble */
.lq-split-ctl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-muted); }
.lq-split-ctl b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lq-split-ctl button { width: 22px; height: 22px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; padding: 0; }
.lq-split-ctl button:hover { background: var(--bg-muted); }
.lq-split { display: flex; height: 4px; border-radius: 9999px; overflow: hidden; background: var(--bg-muted); }
.lq-split .stk { background: var(--success); }
.lq-split .mk { background: var(--accent); }
/* Liste déroulante « lien » : ouvrir le détail de la valeur (fabricant, emplacement…) */
.lq-combo-linked .lq-input { padding-right: 52px; }
.lq-combo-link { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-subtle); cursor: pointer; display: grid; place-items: center; }
.lq-combo-link:hover { background: var(--bg-muted); color: var(--accent); }
.lq-option-open { width: 24px; height: 24px; margin-left: 2px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-subtle); cursor: pointer; display: grid; place-items: center; flex: none; }
.lq-option-open:hover { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
