/* =============================================================================
   Label Collator (.lc-*)
   -----------------------------------------------------------------------------
   The Evri Claims (.ec-*) visual language, verbatim in look, under its own
   prefix and its own file.

   WHY A SEPARATE FILE: the .ec-* rules live inside css/style.css, so every
   tweak there forces a bump of the GLOBAL style.css cache stamp and busts cache
   for the whole app. Newer modules (amazonListingPhotos.css, messageTemplates.css,
   supportCases.css) each ship their own stylesheet; this follows them. Same
   look, different address.

   DELIBERATELY NOT CARRIED OVER from .ec-*: .ec-notice, .ec-status.ok and
   .ec-head-badge.warn are all defined in style.css but never emitted by
   evriClaims.js. Dead on arrival — not reproduced here.

   Depends on css/motion.css for --t-spin / --t-shimmer / --e-linear /
   --e-in-out / --rms-skel-fill and the rms-spin / rms-shimmer keyframes, the
   same way .ec-* does.

   Mobile: every responsive rule is inside @media (max-width:1180px) at the
   bottom. Desktop rules above it are untouched by the mobile block.
============================================================================= */

/* ── shell ────────────────────────────────────────────────────────────────── */
.lc-page{padding:0}
.lc-wrap{max-width:1140px;margin:0 auto;padding:4px 2px 28px}

/* ── header ───────────────────────────────────────────────────────────────── */
.lc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:4px 0 18px}
.lc-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0588b6;margin-bottom:4px}
.lc-title{margin:0;font-size:24px;font-weight:900;color:#0f172a;letter-spacing:-.01em}
.lc-sub{margin:4px 0 0;font-size:13.5px;color:#64748b;max-width:560px}
.lc-head-badge{flex:none;padding:9px 15px;border-radius:999px;font-size:12.5px;font-weight:800;white-space:nowrap}
.lc-head-badge.ok{background:#dcfce7;color:#15803d}
.lc-head-badge.warn{background:#fef3c7;color:#b45309}
.lc-head-badge.off{background:#e2e8f0;color:#475569}

/* ── layout ───────────────────────────────────────────────────────────────── */
.lc-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}

/* ── card / panel ─────────────────────────────────────────────────────────── */
.lc-card{background:#fff;border:1.5px solid #e8eef5;border-radius:18px;padding:20px 20px 22px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.lc-card-head{display:flex;align-items:center;gap:10px;margin:0 0 16px}
.lc-card-head h3{margin:0;font-size:15.5px;font-weight:800;color:#0f172a}
.lc-card-ico{font-size:18px}
.lc-pill{margin-left:auto;background:#eef6ff;color:#0369a1;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.03em;text-transform:uppercase}
.lc-muted{color:#94a3b8}
.lc-verify{margin-top:18px}

/* ── dropzone ─────────────────────────────────────────────────────────────── */
.lc-drop{border:2px dashed #cbd5e1;border-radius:14px;padding:22px 16px;text-align:center;cursor:pointer;transition:border-color .12s,background .12s}
.lc-drop:hover{border-color:#0588b6;background:#f8fbfe}
.lc-drop.drag{border-color:#0588b6;background:#eff8fd}
.lc-drop.has-file{border-style:solid;border-color:#bae6fd;background:#f8fbfe}
.lc-drop-ico{font-size:26px;margin-bottom:6px}
.lc-drop-title{font-size:13.5px;font-weight:800;color:#0f172a}
.lc-drop-hint{font-size:11.5px;color:#94a3b8;margin-top:3px}
.lc-drop + .lc-drop{margin-top:14px}

/* ── file chip ────────────────────────────────────────────────────────────── */
.lc-chip{display:flex;align-items:center;gap:10px;background:#f1f5f9;border-radius:10px;padding:8px 11px;margin-top:9px}
.lc-chip-ico{font-size:15px}
.lc-chip-meta{min-width:0;flex:1}
.lc-chip-name{font-size:12.5px;font-weight:700;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lc-chip-size{font-size:11px;color:#94a3b8}
.lc-chip-x{background:none;border:0;color:#94a3b8;font-size:16px;cursor:pointer;padding:0 4px}
.lc-chip-x:hover{color:#b91c1c}
.lc-files-empty{font-size:12.5px;color:#94a3b8;text-align:center;padding:6px 0}

/* ── primary button ───────────────────────────────────────────────────────── */
.lc-btn{margin-top:18px;width:100%;background:linear-gradient(135deg,#03658e,#0588b6);color:#fff;border:0;padding:16px;border-radius:14px;font-size:15.5px;font-weight:900;letter-spacing:.02em;cursor:pointer;box-shadow:0 12px 26px rgba(3,101,142,.26);transition:transform .12s,box-shadow .12s,opacity .12s;display:flex;align-items:center;justify-content:center;gap:10px}
.lc-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 16px 32px rgba(3,101,142,.32)}
.lc-btn:active:not(:disabled){transform:translateY(0)}
.lc-btn:disabled{background:#cbd5e1;box-shadow:none;cursor:not-allowed;opacity:.85}
.lc-btn.loading{cursor:progress}
.lc-btn.loading .lc-btn-label::before{content:"";display:inline-block;width:15px;height:15px;margin-right:9px;vertical-align:-2px;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:rms-spin var(--t-spin) var(--e-linear) infinite}
.lc-btn-foot{margin-top:9px;font-size:11.5px;text-align:center}

/* ── secondary buttons ────────────────────────────────────────────────────── */
.lc-ghost{margin-left:auto;background:#eef6ff;color:#0369a1;border:0;border-radius:9px;padding:7px 13px;font-size:12.5px;font-weight:700;cursor:pointer;transition:background .12s}
.lc-ghost:hover{background:#dbeafe}
.lc-ghost-primary{background:#03658e;color:#fff}
.lc-ghost-primary:hover{background:#0588b6}
.lc-linkbtn{background:#eef6ff;color:#0369a1;border:0;border-radius:8px;padding:6px 11px;font-size:12px;font-weight:700;cursor:pointer;transition:background .12s}
.lc-linkbtn:hover{background:#dbeafe}
.lc-linkbtn.danger{background:#fef2f2;color:#b91c1c}
.lc-linkbtn.danger:hover{background:#fee2e2}

/* ── verification rows ────────────────────────────────────────────────────── */
.lc-row{display:grid;grid-template-columns:1fr 34px 1fr auto;gap:12px;align-items:center;padding:12px 10px;border-bottom:1px solid #f1f5f9}
.lc-row:last-child{border-bottom:0}
.lc-row.is-excluded{opacity:.45}
.lc-row.is-warn{background:#fffdf5}
.lc-row.is-unpaired{background:#fff8f8}
.lc-side{display:flex;align-items:center;gap:10px;min-width:0}
.lc-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.lc-thumb{border:1.5px solid #e8eef5;border-radius:8px;background:#fff;width:86px;height:auto;display:block}
.lc-thumb.label{width:64px}
.lc-side-meta{min-width:0}
.lc-order{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;font-weight:700;color:#0f172a;background:#f1f5f9;border-radius:6px;padding:2px 7px;display:inline-block}
.lc-side-note{font-size:11px;color:#94a3b8;margin-top:4px}
.lc-arrow{text-align:center;font-size:16px;color:#cbd5e1;font-weight:900}
.lc-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.lc-select{border:1.5px solid #e2e8f0;border-radius:9px;padding:6px 9px;font-size:12.5px;color:#334155;background:#fff;max-width:190px}

/* ── status pills ─────────────────────────────────────────────────────────── */
.lc-status{display:inline-block;padding:3px 11px;border-radius:999px;font-size:11.5px;font-weight:800}
.lc-status.fail{background:#fee2e2;color:#b91c1c}
.lc-status.warn{background:#fef3c7;color:#b45309}
.lc-status.paired{background:#dcfce7;color:#15803d}
.lc-status.none{background:#e2e8f0;color:#475569}

/* ── banners ──────────────────────────────────────────────────────────────── */
.lc-banner{border-radius:14px;padding:13px 16px;font-size:13px;margin-bottom:16px;line-height:1.5;border:1.5px solid}
.lc-banner.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}
.lc-banner.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.lc-banner.info{background:#eff8fd;border-color:#bae6fd;color:#075985}
.lc-banner.stale{background:#f5f3ff;border-color:#ddd6fe;color:#5b21b6}
.lc-banner b{font-weight:900}
.lc-banner-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lc-banner-row .lc-linkbtn{margin-left:auto}
.lc-confirm{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12.5px;font-weight:700}
.lc-confirm input{width:16px;height:16px}

/* ── empty state ──────────────────────────────────────────────────────────── */
.lc-empty,.lc-error-card{text-align:center;padding:30px 16px;color:#64748b}
.lc-empty-ico{font-size:40px;margin-bottom:8px}

/* ── loading / skeleton ───────────────────────────────────────────────────── */
.lc-skel-head,.lc-skel-card{background:var(--rms-skel-fill);background-size:400% 100%;animation:rms-shimmer var(--t-shimmer) var(--e-in-out) infinite;border-radius:16px}
.lc-skel-head{height:60px;margin-bottom:18px}
.lc-skel-card{height:300px}

/* Staged progress — analyse is slow enough that a frozen button reads as a hang */
.lc-progress{margin-top:16px}
.lc-steps{display:flex;flex-direction:column;gap:8px}
.lc-step{display:flex;align-items:center;gap:10px;font-size:12.5px;color:#94a3b8}
.lc-step .dot{width:9px;height:9px;border-radius:50%;background:#e2e8f0;flex:none}
.lc-step.done{color:#15803d}
.lc-step.done .dot{background:#15803d}
.lc-step.active{color:#0369a1;font-weight:800}
.lc-step.active .dot{background:#0588b6;animation:rms-spin var(--t-spin) var(--e-linear) infinite}
.lc-bar{height:6px;border-radius:999px;background:#eef2f7;overflow:hidden;margin-top:12px}
.lc-bar span{display:block;height:100%;background:linear-gradient(135deg,#03658e,#0588b6);transition:width .3s}
/* Elapsed clock + reassurance. A live job on the production box runs for
   minutes, so the screen has to keep saying so — a bar that has not moved for
   40 seconds reads as broken otherwise. */
.lc-progress-foot{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:10px}
.lc-progress-clock{font-size:12.5px;font-weight:800;color:#0369a1;font-variant-numeric:tabular-nums;flex:none}
.lc-progress-foot .lc-muted{font-size:12px;line-height:1.45}
@media (max-width:1180px){.lc-progress-foot{gap:6px}}

/* ── success / preview ────────────────────────────────────────────────────── */
.lc-success{background:#f0fdf4;border:1.5px solid #bbf7d0;border-radius:16px;padding:16px 18px;margin-bottom:16px}
.lc-success-inner{display:flex;align-items:center;gap:14px}
.lc-success-ico{width:38px;height:38px;border-radius:50%;background:#15803d;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;flex:none}
.lc-success-text h3{margin:0;font-size:15px;font-weight:900;color:#14532d}
.lc-success-text p{margin:3px 0 0;font-size:12.5px;color:#3f6212}
.lc-preview{width:100%;height:640px;border:1.5px solid #e8eef5;border-radius:14px;background:#f8fafc}

/* ── toast ────────────────────────────────────────────────────────────────── */
.lc-toast-box{position:fixed;right:22px;bottom:22px;z-index:100000;display:flex;flex-direction:column;gap:10px}
.lc-toast{display:flex;align-items:center;gap:11px;background:#06253f;color:#fff;padding:13px 18px;border-radius:13px;box-shadow:0 16px 40px rgba(6,37,63,.34);font-size:13.5px;font-weight:700;transform:translateX(120%);opacity:0;transition:transform .3s cubic-bezier(.2,.9,.3,1.2),opacity .3s;max-width:360px}
.lc-toast.show{transform:translateX(0);opacity:1}
.lc-toast.success{background:#15803d}
.lc-toast.error{background:#b91c1c}
.lc-toast.info{background:#06253f}
.lc-toast span{font-size:15px}

/* ── dark mode ────────────────────────────────────────────────────────────── */
body.dark .lc-card,body[data-theme="dark"] .lc-card{background:#0f1b2d;border-color:#1e2d44}
body.dark .lc-title,body[data-theme="dark"] .lc-title{color:#f1f5f9}
body.dark .lc-thumb,body[data-theme="dark"] .lc-thumb{border-color:#1e2d44}
body.dark .lc-select,body[data-theme="dark"] .lc-select{background:#0b1524;border-color:#1e2d44;color:#e2e8f0}
body.dark .lc-order,body[data-theme="dark"] .lc-order{background:#0b1524;color:#e2e8f0}

/* ── header right column + diagnostics disclosure (Part 3, D3) ────────────── */
.lc-head-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.lc-diag{font-size:12px}
.lc-diag>summary{cursor:pointer;color:#0369a1;font-weight:700;list-style:none;padding:4px 10px;border-radius:8px;background:#eef6ff;user-select:none}
.lc-diag>summary::-webkit-details-marker{display:none}
.lc-diag>summary::before{content:"🩺 ";}
.lc-diag>summary:hover{background:#dbeafe}
.lc-diag-body{margin-top:8px;background:#fff;border:1.5px solid #e8eef5;border-radius:12px;padding:12px 14px;min-width:270px;box-shadow:0 10px 30px rgba(15,23,42,.05)}

/* ── tabs (Collate / History) ─────────────────────────────────────────────── */
.lc-tabs{display:flex;gap:6px;margin:0 0 16px;border-bottom:1.5px solid #e8eef5}
.lc-tab{background:none;border:0;border-bottom:2.5px solid transparent;margin-bottom:-1.5px;padding:9px 14px;font-size:13.5px;font-weight:700;color:#64748b;cursor:pointer;transition:color .12s,border-color .12s}
.lc-tab:hover{color:#0369a1}
.lc-tab.active{color:#03658e;border-bottom-color:#0588b6}

/* ── history table ────────────────────────────────────────────────────────── */
.lc-tablewrap{overflow-x:auto}
.lc-htable{width:100%;border-collapse:collapse;font-size:13px}
.lc-htable th{text-align:left;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#94a3b8;padding:8px 10px;border-bottom:1.5px solid #eef2f7;white-space:nowrap}
.lc-htable td{padding:10px;border-bottom:1px solid #f1f5f9;color:#334155;vertical-align:middle}
.lc-htable tr:last-child td{border-bottom:0}
.lc-hrow:hover td{background:#f5faff}
.lc-hactions{white-space:nowrap;text-align:right}
.lc-hactions .lc-linkbtn+.lc-linkbtn{margin-left:6px}
.lc-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px;font-size:12.5px}
.lc-pager .lc-linkbtn:disabled{opacity:.45;cursor:not-allowed}

/* ── search ───────────────────────────────────────────────────────────────── */
.lc-searchrow{display:flex;gap:8px}
.lc-input{flex:1;border:1.5px solid #e2e8f0;border-radius:10px;padding:10px 12px;font-size:13.5px;color:#0f172a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.lc-input:focus{outline:none;border-color:#0588b6;box-shadow:0 0 0 3px rgba(5,136,182,.12)}
.lc-hit{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}
.lc-hit:last-child{border-bottom:0}
.lc-hit-actions{display:flex;gap:8px;white-space:nowrap}
.lc-detail-actions{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}

/* ── already-printed warning list ─────────────────────────────────────────── */
.lc-warnlist{margin:8px 0 10px;padding-left:18px}
.lc-warnlist li{margin:3px 0}

/* dark mode for the Part 3 surfaces */
body.dark .lc-diag-body,body[data-theme="dark"] .lc-diag-body{background:#0f1b2d;border-color:#1e2d44}
body.dark .lc-input,body[data-theme="dark"] .lc-input{background:#0b1524;border-color:#1e2d44;color:#e2e8f0}
body.dark .lc-tabs,body[data-theme="dark"] .lc-tabs{border-bottom-color:#1e2d44}

/* =============================================================================
   MOBILE — every rule below is inside the 1180px gate. Desktop is untouched.
   Pattern follows public/modules/easyShip.js:145-155 (stack, label with
   data-l), adapted: the verification grid is the thing that must survive, so
   it collapses to one column with the thumbnails kept large enough to read.
============================================================================= */
@media (max-width: 1180px) {
  .lc-wrap{padding:4px 10px 24px}
  .lc-head{flex-direction:column;align-items:flex-start;gap:10px}
  .lc-head-badge{align-self:flex-start}
  .lc-grid{grid-template-columns:1fr}

  /* Verification row: slip block over label block, arrow turns downward. */
  .lc-row{grid-template-columns:1fr;gap:10px;padding:14px 8px;border-bottom:1.5px solid #e8eef5;border-radius:14px;margin:10px 0;border:1.5px solid #e8eef5}
  .lc-row .lc-arrow{text-align:left;transform:rotate(90deg);width:20px}
  .lc-side::before{content:attr(data-l);display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:4px}
  .lc-side{flex-direction:column;align-items:flex-start;gap:8px}

  /* Thumbnails must stay legible on a phone — bigger here, not smaller. */
  .lc-thumb{width:132px}
  .lc-thumb.label{width:104px}

  .lc-row-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .lc-select{max-width:100%;width:100%}
  .lc-preview{height:420px}
  .lc-toast-box{right:12px;left:12px;bottom:12px}
  .lc-toast{max-width:none}
  .lc-btn{padding:18px;font-size:16px}
  .lc-banner-row .lc-linkbtn{margin-left:0;width:100%}

  /* --- Part 3 surfaces --- */
  .lc-head-right{align-items:flex-start;width:100%}
  .lc-diag-body{min-width:0;width:100%}

  .lc-tabs{gap:0}
  .lc-tab{flex:1;text-align:center;padding:11px 8px}

  /* The batch list becomes CARDS, not a horizontally-scrolling table: a 7-column
     table at 375px is unusable, and the whole point of this view is to find a
     batch quickly at the bench. Each cell carries its own label via data-l. */
  .lc-tablewrap{overflow-x:visible}
  .lc-htable,.lc-htable tbody,.lc-htable tr,.lc-htable td{display:block;width:100%}
  .lc-htable thead{display:none}
  .lc-htable tr{border:1.5px solid #e8eef5;border-radius:14px;padding:10px 12px;margin:0 0 10px}
  .lc-htable td{border:0;padding:4px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}
  .lc-htable td::before{content:attr(data-l);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;flex:none}
  .lc-htable td:empty{display:none}
  .lc-hactions{justify-content:flex-start;flex-wrap:wrap;gap:8px;padding-top:8px !important;border-top:1px solid #f1f5f9 !important;margin-top:4px}
  .lc-hactions::before{display:none}
  .lc-hactions .lc-linkbtn+.lc-linkbtn{margin-left:0}

  .lc-searchrow{flex-direction:column}
  .lc-searchrow .lc-ghost{width:100%;margin-left:0}
  .lc-hit{flex-direction:column;align-items:flex-start;gap:8px}
  .lc-hit-actions{width:100%;flex-wrap:wrap}
  .lc-detail-actions .lc-ghost{flex:1;margin-left:0;text-align:center}
  .lc-pager{gap:10px}
}

/* ── B1/B2: full-size page viewer ──────────────────────────────────────────
   On a real batch the only evidence for an exception was a ~60px thumbnail,
   and a PDF went out with 100 slips and 99 labels because two addresses could
   not be compared. Any thumbnail opens here, and a paired row opens BOTH
   sides together — comparing them is the actual task. */
.lc-viewer{position:fixed;inset:0;z-index:9000;background:rgba(15,23,42,.82);
  display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}
.lc-viewer-inner{background:#fff;border-radius:16px;max-width:min(1200px,96vw);max-height:94vh;
  display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 64px rgba(0,0,0,.4)}
.lc-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 16px;border-bottom:1px solid #e2e8f0;font-size:13px;font-weight:800;color:#0f172a;flex:none}
.lc-viewer-x{border:0;background:#eef2f7;color:#0f172a;width:30px;height:30px;border-radius:50%;
  font-size:19px;line-height:1;cursor:pointer;flex:none}
.lc-viewer-x:hover{background:#e2e8f0}
.lc-viewer-body{display:flex;gap:14px;padding:14px;overflow:auto;align-items:flex-start}
.lc-viewer-pane{margin:0;flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px}
.lc-viewer-pane figcaption{font-size:11.5px;font-weight:800;color:#475569;text-align:center}
/* Sized so the Destination block and SKU row are legible without zooming
   further — label artwork is 1463x2195. */
.lc-viewer-pane img{width:100%;height:auto;max-height:78vh;object-fit:contain;
  border:1px solid #e2e8f0;border-radius:8px;background:#fff}

/* ── B3: the destination, as text ─────────────────────────────────────────
   Customer data on the operator's own screen. Never logged. */
.lc-dest{display:flex;flex-direction:column;gap:1px;margin-top:5px;font-size:11.5px;line-height:1.35}
.lc-dest.muted{color:#64748b}
.lc-dest.empty{font-size:11px;color:#94a3b8;font-style:italic;margin-top:5px}
.lc-dest-name{font-weight:700;color:#0f172a}
.lc-dest-pc{font-weight:800;color:#0369a1;letter-spacing:.4px}

/* ── B4: a SUGGESTED pairing. Suggested, never applied. ─────────────────── */
.lc-suggest{border:1.5px dashed #f59e0b;background:#fffbeb;border-radius:12px;padding:12px 14px;margin:0 0 14px}
.lc-suggest-head{font-weight:800;font-size:13px;color:#92400e;margin-bottom:4px}
.lc-suggest-body{font-size:12.5px;color:#78350f;line-height:1.5;margin-bottom:10px}
.lc-suggest-pair{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;
  background:#fff;border-radius:8px;padding:10px 12px;margin-bottom:10px}

/* ── B5: an order with no label must be decided ───────────────────────────── */
.lc-decide{grid-column:1/-1;border-top:1px dashed #e2e8f0;margin-top:10px;padding-top:10px;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lc-decide-q{font-size:12.5px;color:#0f172a;flex:1 1 220px}
.lc-decide-note{font-size:11.5px;color:#64748b;flex:1 1 100%}
.lc-decide-note.warn{color:#b45309;font-weight:700}

/* ── B6: reviewing a postcode-only match ──────────────────────────────────── */
.lc-review{grid-column:1/-1;border-top:1px dashed #e2e8f0;margin-top:10px;padding-top:10px;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lc-review-q{font-size:12.5px;color:#0f172a;flex:1 1 220px}

.lc-orphan{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.lc-btn.tiny{width:auto;padding:6px 12px;font-size:12px;border-radius:8px;flex:none}
.lc-btn.tiny.ok{background:#15803d}
.lc-btn.tiny.danger{background:#b91c1c}
.lc-btn-foot.warn{color:#b45309;font-weight:700}
.lc-thumb{cursor:zoom-in}

@media (max-width:1180px){
  /* Stack the two panes so each is full width — comparing on a phone means
     scrolling between them, not squinting at two half-width images. */
  .lc-viewer{padding:8px}
  .lc-viewer-inner{max-width:100vw;max-height:96vh;border-radius:12px}
  .lc-viewer-body{flex-direction:column;gap:10px;padding:10px}
  .lc-viewer-pane img{max-height:none}
  .lc-suggest-pair{flex-direction:column;align-items:stretch;gap:6px}
  .lc-decide,.lc-review{flex-direction:column;align-items:stretch}
  .lc-btn.tiny{width:100%}
}

/* ── the build control: STICKY, and it says why it is disabled ─────────────
   It used to be the last thing inside the verify card. On a 100-order batch
   with two exceptions that put it 98% down a 535 KB page — the operator could
   not find it, and ticking the reprint acknowledgement looked like it did
   nothing because the control it unblocks was off-screen. */
.lc-actionbar{position:sticky;bottom:0;z-index:40;margin:18px 0 0;
  background:rgba(255,255,255,.97);backdrop-filter:blur(6px);
  border:1.5px solid #e8eef5;border-radius:16px;box-shadow:0 -6px 24px rgba(15,23,42,.10)}
.lc-actionbar-inner{display:flex;align-items:center;gap:16px;padding:12px 16px}
.lc-actionbar-why{flex:1 1 auto;min-width:0;font-size:12.5px;line-height:1.45}
.lc-actionbar-why .ok{color:#15803d;font-weight:800}
.lc-actionbar-why .warn{color:#b45309;font-weight:700}
.lc-actionbar .lc-btn{margin-top:0;width:auto;flex:none;padding:13px 22px;font-size:14.5px}
.lc-actionbar.ready{border-color:#bbf7d0}

@media (max-width:1180px){
  /* Full-width bar pinned to the bottom of the viewport: on a phone the
     operator scrolls a long way, and the button has to stay under the thumb. */
  .lc-actionbar{margin:14px -2px 0;border-radius:14px 14px 0 0;border-bottom:0}
  .lc-actionbar-inner{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px}
  .lc-actionbar .lc-btn{width:100%;padding:14px}
  .lc-actionbar-why{text-align:center}
}
