/* LoadFlow, user reports towards DPManager (COP-300): the two buttons, the three modals of GUI/support.js.
   Everything prefixed lfs- so nothing here touches a page's own styles. */
/* Bottom dock (2026-10-01): inside a header slot the bar is in the flow; otherwise it sits at the bottom right on a
   pale blue panel (the same as the gatekeeper counts and the connection badges in common.css), and the body reserves
   that room at the bottom, so the last row of a table is never under it. No strip at the top any more. */
.lfs-bar { position: fixed; bottom: .5rem; right: 1rem; z-index: 50; display: flex; gap: 8px; padding: 5px; border-radius: 28px;
  background: #dbe8f6; border: 1px solid #7c9fc9; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.lfs-bar.lfs-bar-inline { position: static; padding: 0; background: none; border: 0; box-shadow: none; }
body.lfs-has-bar { padding-bottom: calc(56px + 1.5rem) !important; }
.lfs-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #bbb; background: #fff; color: #333;
  font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; }
.lfs-btn:hover { background: #f0f0f0; }
.lfs-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #c62828; color: #fff;
  font-size: 11px; line-height: 18px; }
.lfs-modal { display: none; position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.45); align-items: center; justify-content: center; }
.lfs-modal.lfs-open { display: flex; }
.lfs-dialog { background: #fff; color: #222; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 15px; text-align: left; }
.lfs-dialog.lfs-wide { width: min(760px, calc(100vw - 24px)); }
.lfs-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #ddd; }
.lfs-head h2 { margin: 0; font-size: 18px; }
.lfs-body { padding: 12px 16px; overflow-y: auto; }
.lfs-body label { display: block; font-weight: 600; margin-top: 10px; }
.lfs-body textarea, .lfs-body select, .lfs-body input[type=file] { width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; }
.lfs-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #ddd; }
#lfsIntroModal .lfs-foot { justify-content: space-between; }
.lfs-x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #555; }
.lfs-primary, .lfs-secondary { padding: 7px 14px; border-radius: 5px; font: inherit; cursor: pointer; }
.lfs-primary { border: 1px solid #1565c0; background: #1565c0; color: #fff; }
.lfs-primary:disabled { opacity: .6; cursor: default; }
.lfs-secondary { border: 1px solid #999; background: #fff; color: #333; }
.lfs-small { padding: 4px 10px; font-size: 13px; margin-top: 6px; }
.lfs-link { border: 0; background: transparent; color: #1565c0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.lfs-help { font-size: 12px; color: #666; margin-top: 3px; }
.lfs-muted { color: #777; font-size: 12px; }
.lfs-error { color: #c62828; }
.lfs-tip { margin-top: 10px; padding: 8px 10px; background: #e3f2fd; border-radius: 5px; font-size: 13px; }
.lfs-tray { list-style: none; padding: 0; margin: 6px 0 0; }
.lfs-tray li { padding: 2px 0; }
.lfs-remove { border: 1px solid #c62828; background: #fff; color: #c62828; border-radius: 4px; cursor: pointer; }
.lfs-context summary, .lfs-tick, .lfs-tick input { cursor: pointer; }
.lfs-context pre { font-size: 11px; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow-y: auto; background: #f5f5f5; padding: 6px; }
.lfs-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lfs-row { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px;
  background: #fff; color: inherit; font: inherit; cursor: pointer; }
.lfs-row:hover { border-color: #1565c0; }
.lfs-row-title { font-weight: 600; }
.lfs-row-meta { font-size: 12px; color: #666; }
.lfs-pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #c62828; color: #fff; font-size: 11px; }
.lfs-thread-title { font-weight: 600; margin: 8px 0; }
.lfs-messages { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; margin-bottom: 10px; }
.lfs-msg { max-width: 85%; border: 1px solid #ddd; border-radius: 10px; padding: 8px 12px; }
.lfs-mine { align-self: flex-end; background: #e3f2fd; }
.lfs-staff { align-self: flex-start; background: #fafafa; }
.lfs-msg-body { white-space: pre-wrap; word-break: break-word; }
.lfs-msg-meta { font-size: 11px; color: #777; margin-top: 4px; }
.lfs-pending { font-size: 12px; color: #666; }
.lfs-thread-files { font-size: 13px; margin-bottom: 10px; }
.lfs-intro ul { padding-left: 18px; }
.lfs-intro li { margin-bottom: 6px; }
.lfs-tick { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.lfs-toasts { position: fixed; right: 12px; bottom: 80px; z-index: 9900; display: flex; flex-direction: column; gap: 6px; }
.lfs-toast { padding: 10px 14px; border-radius: 6px; color: #fff; background: #1565c0; box-shadow: 0 2px 8px rgba(0,0,0,.3); max-width: 360px; font-size: 14px; }
.lfs-toast-success { background: #2e7d32; }
.lfs-toast-danger { background: #c62828; }
.lfs-toast-warn { background: #ef6c00; }
.lfs-howto { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; margin-bottom: 8px; border: 1px solid #888;
  border-radius: 5px; background: #fff; color: #333; font: inherit; font-size: 14px; cursor: pointer; }
.lfs-howto:hover { background: #f0f0f0; }
@media (pointer: coarse) { .lfs-howto { min-height: 44px; } }
.lfs-replica { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.lfs-replica-item { display: flex; align-items: center; gap: 12px; }
.lfs-replica-item > :first-child { pointer-events: none; cursor: default; flex: none; }
.lfs-intro li > i { width: 18px; text-align: center; }
