/* t360: header button + send dialog also on mobile; in-page panel stays desktop-only. */
@media (max-width: 767px) {
  .lbm-in-panel { display: none !important; }
  .lbm-in-hdr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    width: 100%;
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
  }
  .lbm-in-dlg {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
    font-size: 16px;
    color: #111827;
    box-sizing: border-box;
    overflow: auto;
  }
  .lbm-in-dlg::backdrop { background: rgba(17,24,39,.45); }
  .lbm-in-dlg h3 { margin: 0 0 8px; font-size: 18px; }
  .lbm-in-dlg label { display: block; font-weight: 600; margin: 12px 0 4px; }
  .lbm-in-dlg input, .lbm-in-dlg select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #9ca3af; border-radius: 8px; font: inherit; box-sizing: border-box; }
  .lbm-in-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 8px 0 0; padding: 10px 14px; min-height: 44px; border-radius: 8px; border: 1px solid #c8102e; background: #c8102e; color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
  .lbm-in-btn:disabled { opacity: .5; cursor: not-allowed; }
  .lbm-in-sec { background: #fff; color: #111827; border-color: #d1d5db; }
  .lbm-in-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .lbm-in-end { justify-content: flex-end; }
  .lbm-in-ch { border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 12px 12px; margin: 12px 0 0; }
  .lbm-in-ch legend { font-weight: 700; padding: 0 4px; }
  .lbm-in-chrow { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .lbm-in-dlg .lbm-in-chk { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 600; }
  .lbm-in-dlg .lbm-in-chk input { width: 18px; height: 18px; }
  .lbm-in-muted { color: #4b5563; font-size: 13px; }
  .lbm-in-ok { color: #166534; font-weight: 600; }
  .lbm-in-pending { color: #92400e; font-weight: 600; }
  .lbm-in-st { margin: 6px 0 0; font-weight: 600; }
  .lbm-in-st-ok { color: #166534; }
  .lbm-in-st-bad { color: #b91c1c; }
  .lbm-in-msg { min-height: 20px; margin-top: 10px; font-weight: 600; }
  .lbm-in-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 768px) {
  .lbm-in-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border: 1px solid #eceef1; padding: 18px 20px; font-size: 14px; color: #111827; }
  .lbm-in-panel h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
  .lbm-in-panel p { margin: 6px 0; }
  .lbm-in-muted { color: #4b5563; font-size: 13px; }
  .lbm-in-ok { color: #166534; font-weight: 600; }
  .lbm-in-pending { color: #92400e; font-weight: 600; }
  .lbm-in-mode { display: inline-block; background: #f3f4f6; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: #374151; }
  .lbm-in-btn { display: inline-flex; align-items: center; gap: 6px; margin: 8px 8px 0 0; padding: 8px 14px; border-radius: 8px; border: 1px solid #c8102e; background: #c8102e; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
  .lbm-in-btn:disabled { opacity: .5; cursor: not-allowed; }
  .lbm-in-sec { background: #fff; color: #111827; border-color: #d1d5db; }
  .lbm-in-btn:focus-visible, .lbm-in-hdr:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
  .lbm-in-hdr { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #111827; font-size: 13px; font-weight: 500; cursor: pointer; margin-right: 8px; }
  .lbm-in-review { border: 1px solid #fcd34d; background: #fffbeb; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
  .lbm-in-review ul { list-style: none; padding: 0; margin: 6px 0; }
  .lbm-in-review li { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
  .lbm-in-review s { color: #6b7280; }
  .lbm-in-dlg { width: min(560px, 92vw); border: 0; border-radius: 14px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); font-size: 14px; color: #111827; }
  .lbm-in-dlg::backdrop { background: rgba(17,24,39,.45); }
  .lbm-in-dlg h3 { margin: 0 0 8px; font-size: 18px; }
  .lbm-in-dlg label { display: block; font-weight: 600; margin: 12px 0 4px; }
  .lbm-in-dlg input, .lbm-in-dlg select { width: 100%; padding: 8px 10px; border: 1px solid #9ca3af; border-radius: 8px; font: inherit; }
  .lbm-in-url { font-family: ui-monospace, monospace; font-size: 12px; }
  .lbm-in-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .lbm-in-end { justify-content: flex-end; }
  .lbm-in-ch { border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 12px 12px; margin: 12px 0 0; }
  .lbm-in-ch legend { font-weight: 700; padding: 0 4px; }
  .lbm-in-chrow { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; margin-top: 8px; }
  .lbm-in-dlg .lbm-in-chk { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 600; }
  .lbm-in-dlg .lbm-in-chk input { width: 18px; height: 18px; }
  .lbm-in-dlg input:disabled { background: #f3f4f6; color: #6b7280; }
  .lbm-in-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lbm-in-st { margin: 6px 0 0; font-weight: 600; }
  .lbm-in-st-ok { color: #166534; }
  .lbm-in-st-bad { color: #b91c1c; }
  .lbm-in-msg { min-height: 20px; margin-top: 10px; font-weight: 600; }
}

.lbm-in-hdr-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.lbm-in-hdr-icon svg { display: block; width: 16px; height: 16px; }

/* t509: dossier print chooser removed; header Imprimer is unchanged. */
