/* ============================================================
   ЛАБОРАТОРИЯ · ЭТАП 2 — стили экрана «ДОКУМЕНТЫ И ЧЕРНИЛА».
   Все селекторы с префиксом .lmxDc / #lmxDc / .lmxDcRep —
   на чужую вёрстку не влияют. Откат: удалить <link> из index.php.

   Классы .lmxRep__* (общая рамка отчёта) объявлены в lab_dna.css —
   этот файл подключать ПОСЛЕ него.
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   МИНИ-ИГРА
   ══════════════════════════════════════════════════════════════ */
#lmxDc{
  position:fixed; inset:0; z-index:100080;
  display:flex; align-items:center; justify-content:center;
  padding:18px; box-sizing:border-box;
  background:rgba(0,0,0,.9);
  -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px);
  font-family:var(--sans, system-ui, sans-serif);
  color:#f0e8d2;
}
.lmxDc__box{
  width:100%; max-width:1060px; max-height:94vh;
  display:flex; flex-direction:column; overflow:hidden;
  border:1px solid rgba(242,196,0,.38); border-radius:16px;
  background-image:
    var(--noir-grain, none),
    linear-gradient(180deg,#15130f 0%,#0c0b0a 100%);
  box-shadow:0 26px 70px rgba(0,0,0,.75);
}

/* ---------- шапка ---------- */
.lmxDc__head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  padding:15px 18px; border-bottom:1px solid rgba(242,196,0,.2);
  background:rgba(242,196,0,.05);
}
.lmxDc__kicker{ font-size:9.5px; font-weight:800; letter-spacing:.16em; color:rgba(242,196,0,.65); }
.lmxDc__title{
  margin-top:4px; font-family:var(--noir-display, inherit);
  font-size:24px; font-weight:700; letter-spacing:.08em; color:#f5f1e6; line-height:1;
}
.lmxDc__sub{ margin-top:6px; font-size:12px; color:rgba(240,232,210,.5); }
.lmxDc__close{
  flex:0 0 auto; width:34px; height:34px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(240,232,210,.16); background:rgba(255,255,255,.06);
  color:rgba(240,232,210,.65); font-size:15px;
}

/* ---------- шаги ---------- */
.lmxDc__phases{
  display:flex; gap:8px; padding:11px 18px; flex-wrap:wrap;
  border-bottom:1px solid rgba(240,232,210,.08);
}
.lmxDc__phases span{
  padding:5px 11px; border-radius:6px;
  border:1px solid rgba(240,232,210,.14); background:rgba(0,0,0,.3);
  font-family:var(--noir-display, inherit);
  font-weight:700; font-size:10px; letter-spacing:.1em; color:rgba(240,232,210,.4);
}
.lmxDc__phases span.is-done{ border-color:rgba(120,220,150,.35); color:#7deba0; }
.lmxDc__phases span.is-on{
  border-color:rgba(242,196,0,.65); color:var(--yellow,#f2c400); background:rgba(242,196,0,.1);
}

/* ---------- тело ---------- */
.lmxDc__body{ flex:1 1 auto; min-height:0; display:flex; }
.lmxDc__stage{ flex:1 1 auto; min-width:0; overflow-y:auto; padding:16px 18px 18px; }
.lmxDc__logBox{
  flex:0 0 216px; overflow-y:auto;
  border-left:1px solid rgba(240,232,210,.08); background:rgba(0,0,0,.25);
  padding:14px;
}
.lmxDc__logHead{
  font-family:var(--noir-display, inherit); font-weight:700;
  font-size:9.5px; letter-spacing:.14em; color:var(--yellow,#f2c400); margin-bottom:10px;
}
.lmxDc__logRow{ padding:7px 0; border-bottom:1px solid rgba(240,232,210,.06); }
.lmxDc__logRow b{ display:block; font-size:11.5px; font-weight:600; color:#f5f1e6; }
.lmxDc__logRow i{ display:block; margin-top:2px; font-size:10.5px; font-style:normal; color:rgba(240,232,210,.4); }

.lmxDc__hint{ font-size:12px; line-height:1.55; color:rgba(240,232,210,.55); margin-bottom:14px; }

/* ---------- бланк ---------- */
.lmxDc__doc{
  position:relative; overflow:hidden;
  border:1px solid rgba(240,232,210,.16); border-radius:12px;
  background:#0d0f13;
  transition:border-color .2s ease;
}
.lmxDc__doc.is-tuned{ border-color:rgba(160,120,255,.6); }
.lmxDc__docSvg{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.lmxDc__docSvg text{ font-family:var(--noir-display, system-ui, sans-serif); }
.lmxDc__doc--work{
  flex:0 0 auto; width:min(48%,300px); aspect-ratio:3/4; min-width:230px;
  cursor:crosshair; touch-action:none;
}
.lmxDc__doc--side{ flex:0 0 auto; width:150px; aspect-ratio:3/4; }
.lmxDc__doc--card{ width:100%; max-width:260px; aspect-ratio:3/4; margin:0 auto 12px; }

/* УФ-слой, метки и пятно лампы */
.lmxDc__uvVeil{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  transition:opacity .15s ease, background .15s ease;
  mix-blend-mode:multiply;
}
.lmxDc__lamp{
  position:absolute; z-index:4; width:30%; aspect-ratio:1;
  transform:translate(-50%,-50%); pointer-events:none; opacity:.25;
  border-radius:50%;
  background:radial-gradient(circle, rgba(190,150,255,.55) 0%, rgba(150,110,255,.18) 55%, transparent 72%);
  transition:opacity .2s ease;
}
.lmxDc__lamp.is-on{ opacity:1; }
.lmxDc__marks{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.lmxDc__mark{
  position:absolute; width:22px; height:22px; margin:-11px 0 0 -11px;
  border-radius:50%; opacity:0; transform:scale(.6);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:800;
  border:1px solid rgba(150,255,190,.9); background:rgba(30,60,45,.85); color:#8ff0c8;
  box-shadow:0 0 12px rgba(120,255,190,.55);
  transition:opacity .25s ease, transform .25s ease;
}
.lmxDc__mark.is-found{ opacity:1; transform:scale(1); }

/* ---------- боковая колонка ---------- */
.lmxDc__workWrap{ display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.lmxDc__side{ flex:1 1 230px; min-width:210px; }
.lmxDc__sideHead{
  font-size:9px; font-weight:800; letter-spacing:.14em;
  color:rgba(240,232,210,.4); margin-bottom:6px;
}
.lmxDc__sideVal{ font-size:12.5px; color:#f5f1e6; margin-bottom:12px; line-height:1.4; }
.lmxDc__range{ width:100%; margin:2px 0 4px; accent-color:#a97bff; }
.lmxDc__scaleHint{
  display:flex; justify-content:space-between;
  font-size:9px; color:rgba(240,232,210,.3);
}
.lmxDc__bigVal{
  margin-top:4px; font-family:var(--noir-display, inherit);
  font-size:22px; font-weight:700; color:var(--yellow,#f2c400); letter-spacing:.04em;
}
.lmxDc__foundList{ margin-top:10px; max-height:130px; overflow-y:auto; }
.lmxDc__foundRow{ padding:6px 0; border-bottom:1px solid rgba(240,232,210,.06); }
.lmxDc__foundRow b{ display:block; font-size:11.5px; color:#8ff0c8; }
.lmxDc__foundRow i{ display:block; margin-top:2px; font-size:10px; font-style:normal; color:rgba(240,232,210,.4); }

.lmxDc__gauge{
  height:7px; border-radius:5px; overflow:hidden;
  background:rgba(0,0,0,.45); border:1px solid rgba(240,232,210,.12);
}
.lmxDc__gauge i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,#8a6f00,#f2c400);
  transition:width .35s ease;
}

/* ---------- бейджи вердиктов ---------- */
.lmxDc__badge{
  flex:0 0 auto; padding:3px 8px; border-radius:5px; font-style:normal;
  font-size:8.5px; font-weight:800; letter-spacing:.07em; white-space:nowrap;
}
.lmxDc__badge.is-ok{ border:1px solid rgba(125,235,160,.45); background:rgba(125,235,160,.1); color:#7deba0; }
.lmxDc__badge.is-bad{ border:1px solid rgba(220,90,90,.45); background:rgba(220,90,90,.1); color:#ffb0b0; }

/* ---------- фаза 2: чернила ---------- */
.lmxDc__inkWrap{ display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.lmxDc__inkCol{ flex:1 1 320px; min-width:280px; }
.lmxDc__ink{
  display:flex; align-items:center; gap:10px;
  padding:10px 11px; margin-bottom:9px; border-radius:10px;
  border:1px solid rgba(240,232,210,.1); background:rgba(0,0,0,.28);
}
.lmxDc__ink.is-bad{ border-color:rgba(220,90,90,.35); }
.lmxDc__inkDot{
  flex:0 0 auto; width:13px; height:13px; border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
}
.lmxDc__inkBody{ flex:1 1 auto; min-width:0; }
.lmxDc__inkBody b{ display:block; font-size:12px; color:#f5f1e6; }
.lmxDc__inkBody span{ display:block; margin:2px 0 6px; font-size:10.5px; color:rgba(240,232,210,.4); }

/* ---------- фаза 3: признаки и печать ---------- */
.lmxDc__checkWrap{ display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.lmxDc__checks{ flex:1 1 340px; min-width:290px; }
.lmxDc__check{
  display:flex; align-items:center; gap:10px;
  padding:10px 11px; margin-bottom:8px; border-radius:10px;
  border:1px solid rgba(240,232,210,.1); background:rgba(0,0,0,.28);
}
.lmxDc__check.is-bad{ border-color:rgba(220,90,90,.35); }
.lmxDc__check b{ flex:1 1 auto; min-width:0; font-size:12px; font-weight:600; color:#f5f1e6; }
.lmxDc__checkIco{
  flex:0 0 auto; width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:11px;
  border:1px solid rgba(240,232,210,.2); color:rgba(240,232,210,.4);
}
.lmxDc__check.is-done .lmxDc__checkIco{ border-color:rgba(125,235,160,.5); color:#7deba0; }
.lmxDc__check.is-bad .lmxDc__checkIco{ border-color:rgba(220,90,90,.5); color:#ffb0b0; }

.lmxDc__sealPair{
  flex:0 0 auto; display:flex; align-items:center; gap:12px;
}
.lmxDc__sealCell{ text-align:center; }
.lmxDc__seal{
  width:104px; height:104px; border-radius:10px; overflow:hidden;
  border:1px solid rgba(240,232,210,.16);
}
.lmxDc__stampSvg{ width:100%; height:100%; display:block; }
/* печать, вклеенная внутрь бланка — размер задаёт transform в SVG */
.lmxDc__stampInline{ overflow:visible; }
.lmxDc__stampSvg text{ font-family:var(--noir-display, system-ui, sans-serif); }
.lmxDc__sealCell span{
  display:block; margin-top:6px; font-size:10px; color:rgba(240,232,210,.45);
}
.lmxDc__sealEq{
  flex:0 0 auto; width:34px; height:26px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--noir-display, inherit); font-size:15px; font-weight:700;
  border:1px solid rgba(240,232,210,.2); background:rgba(0,0,0,.45);
  color:rgba(240,232,210,.45);
}
.lmxDc__sealEq.is-ok{ border-color:rgba(125,235,160,.5); background:rgba(125,235,160,.12); color:#7deba0; }
.lmxDc__sealEq.is-bad{ border-color:rgba(220,90,90,.5); background:rgba(220,90,90,.1); color:#ffb0b0; }

/* ---------- кнопки ---------- */
.lmxDc__acts{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.lmxDc__btn{
  padding:10px 16px; border-radius:9px; cursor:pointer;
  border:1px solid rgba(240,232,210,.2); background:rgba(255,255,255,.05);
  font-family:var(--noir-display, inherit); font-weight:700;
  font-size:11px; letter-spacing:.1em; color:#f0e8d2;
}
.lmxDc__btn:disabled{ opacity:.4; cursor:default; }
.lmxDc__btn--gold{
  background:linear-gradient(180deg,#f2c400,#c99f00); color:#100f0d; border-color:#f2c400;
}
.lmxDc__btn--mini{ flex:0 0 auto; padding:6px 11px; font-size:9.5px; }

/* ---------- итог и холостой вход ---------- */
.lmxDc__done,
.lmxDc__idle{ text-align:center; padding:20px 6px 6px; }
.lmxDc__doneIco,
.lmxDc__idleIco{ font-size:34px; }
.lmxDc__donePct{
  margin-top:8px; font-family:var(--noir-display, inherit);
  font-size:52px; font-weight:700; line-height:1; color:var(--yellow,#f2c400);
}
.lmxDc__doneLbl,
.lmxDc__idleTitle{
  margin-top:9px; font-family:var(--noir-display, inherit);
  font-size:13px; font-weight:700; letter-spacing:.13em; color:#f5f1e6;
}
.lmxDc__doneLbl.is-ok{ color:#7deba0; }
.lmxDc__doneLbl.is-bad{ color:#ffb0b0; }
.lmxDc__doneText,
.lmxDc__idleText{
  margin:12px auto 0; max-width:470px;
  font-size:12.5px; line-height:1.6; color:rgba(240,232,210,.55);
}
.lmxDc__idleText b{ color:#f5f1e6; }

/* ══════════════════════════════════════════════════════════════
   ОТЧЁТ ОБ ЭКСПЕРТИЗЕ
   (рамка .lmxRep__* — из lab_dna.css, здесь только своё)
   ══════════════════════════════════════════════════════════════ */
#lmxDcRep{
  position:fixed; inset:0; z-index:100085;
  overflow-y:auto; padding:20px; box-sizing:border-box;
  background:rgba(0,0,0,.92);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  font-family:var(--sans, system-ui, sans-serif); color:#f0e8d2;
}
#lmxDcRep .lmxRep__grid{
  grid-template-columns:repeat(12,minmax(0,1fr));
  align-items:stretch;
}
#lmxDcRep .lmxDcRep__cDoc { grid-column:1 / span 4;  grid-row:1 / span 2; }
#lmxDcRep .lmxDcRep__cInk { grid-column:5 / span 4;  grid-row:1; }
#lmxDcRep .lmxDcRep__cRes { grid-column:9 / span 4;  grid-row:1 / span 2; }
#lmxDcRep .lmxDcRep__cChk { grid-column:5 / span 4;  grid-row:2; }
#lmxDcRep .lmxDcRep__cSeal{ grid-column:5 / span 8;  grid-row:3; }

/* плёнка миниатюр под бланком */
.lmxDcRep__film{ display:flex; gap:6px; }
.lmxDcRep__frame{
  position:relative; flex:1 1 0; min-width:0; aspect-ratio:1;
  border-radius:7px; overflow:hidden;
  border:1px solid rgba(240,232,210,.14); background:#0d0f13;
}
.lmxDcRep__frame.is-on{ border-color:rgba(242,196,0,.7); }

/* чернила в отчёте */
.lmxDcRep__ink{
  display:flex; align-items:center; gap:10px;
  padding:9px 10px; margin-bottom:7px; border-radius:9px;
  border:1px solid rgba(240,232,210,.1); background:rgba(0,0,0,.28);
}
.lmxDcRep__ink.is-bad{ border-color:rgba(220,90,90,.35); }
.lmxDcRep__inkBody{ flex:1 1 auto; min-width:0; }
.lmxDcRep__inkBody b{ display:block; font-size:12px; color:#f5f1e6; }
.lmxDcRep__inkBody span{ display:block; margin-top:2px; font-size:10.5px; color:rgba(240,232,210,.4); }

/* результат */
.lmxDcRep__verdict{ display:flex; align-items:center; gap:10px; }
.lmxDcRep__vIco{
  flex:0 0 auto; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700;
}
.lmxDcRep__verdict.is-ok .lmxDcRep__vIco{ border:2px solid rgba(125,235,160,.6); color:#7deba0; }
.lmxDcRep__verdict.is-bad .lmxDcRep__vIco{ border:2px solid rgba(220,90,90,.6); color:#ffb0b0; }
.lmxDcRep__verdict b{
  font-family:var(--noir-display, inherit); font-size:18px; letter-spacing:.06em;
}
.lmxDcRep__verdict.is-ok b{ color:#7deba0; }
.lmxDcRep__verdict.is-bad b{ color:#ffb0b0; }
.lmxDcRep__vText{ margin:10px 0 16px; font-size:11.5px; line-height:1.6; color:rgba(240,232,210,.55); }
.lmxDcRep__trustRow{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:6px;
}
.lmxDcRep__trustRow span{ font-size:9.5px; font-weight:800; letter-spacing:.12em; color:rgba(240,232,210,.45); }
.lmxDcRep__trustRow b{ font-family:var(--noir-display, inherit); font-size:15px; color:var(--yellow,#f2c400); }
.lmxDcRep__detail{
  margin-top:14px; padding:11px 12px; border-radius:9px;
  border:1px solid rgba(240,232,210,.12); background:rgba(0,0,0,.3);
}
.lmxDcRep__detailHead{
  font-size:8.5px; font-weight:800; letter-spacing:.14em;
  color:rgba(240,232,210,.4); margin-bottom:7px;
}
.lmxDcRep__detail p{ margin:0 0 5px; font-size:11px; line-height:1.5; color:rgba(240,232,210,.6); }

/* признаки в отчёте */
.lmxDcRep__check{
  display:flex; align-items:center; gap:9px;
  padding:8px 0; border-bottom:1px solid rgba(240,232,210,.06);
}
.lmxDcRep__check b{ flex:1 1 auto; min-width:0; font-size:11.5px; font-weight:500; color:rgba(240,232,210,.75); }
.lmxDcRep__chkIco{
  flex:0 0 auto; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:10px;
}
.lmxDcRep__chkIco.is-ok{ background:rgba(125,235,160,.15); color:#7deba0; }
.lmxDcRep__chkIco.is-bad{ background:rgba(220,90,90,.15); color:#ffb0b0; }
.lmxDcRep__chkNote{ margin-top:11px; font-size:10.5px; color:rgba(240,232,210,.32); }

.lmxDcRep__sealNote{ margin-top:12px; font-size:10.5px; color:rgba(240,232,210,.35); text-align:center; }
.lmxDcRep__stamp{
  display:flex; gap:18px; flex-wrap:wrap; justify-content:center;
  margin-top:12px; padding-top:11px;
  border-top:1px solid rgba(240,232,210,.08);
  font-size:10.5px; color:rgba(240,232,210,.35);
}
.lmxDcRep__stamp b{ color:rgba(240,232,210,.6); }

#lmxDcRep .lmxDc__sealPair{ justify-content:center; }

/* ══════════════════════════════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════════════════════════════ */
@media (max-width:1250px){
  #lmxDcRep .lmxRep__grid{ grid-template-columns:repeat(6,minmax(0,1fr)); }
  #lmxDcRep .lmxDcRep__cDoc { grid-column:1 / span 3; grid-row:auto; }
  #lmxDcRep .lmxDcRep__cRes { grid-column:4 / span 3; grid-row:auto; }
  #lmxDcRep .lmxDcRep__cInk { grid-column:1 / span 3; grid-row:auto; }
  #lmxDcRep .lmxDcRep__cChk { grid-column:4 / span 3; grid-row:auto; }
  #lmxDcRep .lmxDcRep__cSeal{ grid-column:1 / span 6; grid-row:auto; }
}
@media (max-width:900px){
  .lmxDc__logBox{ display:none; }
}
@media (max-width:760px){
  #lmxDc{ padding:0; }
  .lmxDc__box{ max-width:none; max-height:100vh; height:100vh; border-radius:0; border:none; }
  .lmxDc__title{ font-size:20px; }
  .lmxDc__workWrap,
  .lmxDc__inkWrap,
  .lmxDc__checkWrap{ flex-direction:column; align-items:stretch; }
  .lmxDc__doc--work{ width:min(74vw,260px); min-width:0; margin:0 auto; }
  .lmxDc__doc--side{ margin:0 auto; }
  .lmxDc__side,
  .lmxDc__inkCol,
  .lmxDc__checks{ min-width:0; }
  .lmxDc__sealPair{ justify-content:center; }
  .lmxDc__seal{ width:84px; height:84px; }
  .lmxDc__acts .lmxDc__btn{ flex:1 1 150px; text-align:center; }

  #lmxDcRep{ padding:0; }
  #lmxDcRep .lmxRep__grid{ grid-template-columns:minmax(0,1fr); }
  #lmxDcRep .lmxDcRep__cDoc,
  #lmxDcRep .lmxDcRep__cInk,
  #lmxDcRep .lmxDcRep__cRes,
  #lmxDcRep .lmxDcRep__cChk,
  #lmxDcRep .lmxDcRep__cSeal{ grid-column:1 / -1; grid-row:auto; }
  .lmxDcRep__film{ flex-wrap:wrap; }
  .lmxDcRep__frame{ flex:0 0 calc(33.333% - 4px); }
}
