/* ===========================================================================
   slb_ux.css - page layer of the document registry (slb_*), 2026-09-21
     slb_home.php (+ _search, _new, _manage, _function_search)
     slb_manage.php (+ slb_function_search, slb_function_people)
     slb_booknew.php  slb_report1.php  slb_datadic.php
     slb_comment.php  slb_addfiles.php  slb_backup.php  slb_bookopen.php
     slb_open.php                                       (popups / own tabs)
     slb_import.php (inside index.php)   slb_report.php (public archive search)
   Family of mail_ux & co: every rule hangs on an slx-* class that slb_ux.js
   adds, so without the script the pages are the originals.
   Typeface is inherited.  ASCII only.
   Revert: remove the "slb UX layer" blocks in the PHP files
           (or restore the .bak_20260921_144522 copies).
   =========================================================================== */
@media screen {

  html {
    --slx-surface: #ffffff;
    --slx-sunk:    #f3f5f9;
    --slx-track:   rgba(15, 27, 61, 0.14);
    --slx-ink:     #0f1b3d;
    --slx-ink2:    rgba(15, 27, 61, 0.64);
    --slx-ink3:    rgba(15, 27, 61, 0.44);
    --slx-stroke:  rgba(15, 27, 61, 0.10);
    --slx-stroke2: rgba(15, 27, 61, 0.22);
    --slx-accent:  #244186;
    --slx-accent-ink: #ffffff;
    --slx-sel:     #e9f0ff;
    --slx-hover:   #f6f8fc;
    --slx-new:     #fff7f2;
    --slx-shadow-s: 0 2px 8px rgba(15, 27, 61, 0.10);
    --slx-ok: #1f9d55;   --slx-ok-t: #dff3e6;   --slx-ok-i: #14683a;
    --slx-bad: #d64545;  --slx-bad-t: #fde3e3;  --slx-bad-i: #9b2222;
    --slx-warn: #c77700; --slx-warn-t: #fff1d6; --slx-warn-i: #8a5200;
    --slx-hot: #e2580c;  --slx-hot-t: #ffe6d6;  --slx-hot-i: #9a3a05;
    --slx-info-t: #e4ecfb; --slx-info-i: #244186;
    --slx-pin: #d9a200;
  }
  html[data-theme="dark"] {
    --slx-surface: #2b2b2b;
    --slx-sunk:    #232323;
    --slx-track:   #4a4a4a;
    --slx-ink:     #e6e6e6;
    --slx-ink2:    rgba(230, 230, 230, 0.68);
    --slx-ink3:    rgba(230, 230, 230, 0.46);
    --slx-stroke:  #3c3c3c;
    --slx-stroke2: #5a5a5a;
    --slx-accent:  #3a5ca8;
    --slx-sel:     #26344f;
    --slx-hover:   #323232;
    --slx-new:     #33291f;
    --slx-shadow-s: 0 2px 8px rgba(0, 0, 0, 0.45);
    --slx-ok: #2fb36a;   --slx-ok-t: rgba(47, 179, 106, 0.18);  --slx-ok-i: #8fe0b3;
    --slx-bad: #e05a5a;  --slx-bad-t: rgba(224, 90, 90, 0.18);  --slx-bad-i: #ffb1b1;
    --slx-warn: #e0a030; --slx-warn-t: rgba(224, 160, 48, 0.18); --slx-warn-i: #ffd591;
    --slx-hot: #f0853f;  --slx-hot-t: rgba(240, 133, 63, 0.18); --slx-hot-i: #ffc29b;
    --slx-info-t: rgba(90, 130, 220, 0.20); --slx-info-i: #b6ccff;
    --slx-pin: #f2c230;
  }

  .slx-hide { display: none !important; }
  .slx-on .slx-legacy { display: none !important; }

  /* ---- buttons ---- */
  .slx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--slx-ink) !important; background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 8px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background-color .12s, border-color .12s, box-shadow .12s; }
  .slx-btn:hover, .slx-btn:focus { border-color: var(--slx-accent); background: var(--slx-hover); outline: 0; }
  .slx-btn:focus-visible { box-shadow: 0 0 0 3px var(--slx-sel); }
  .slx-btn-pri, .slx-btn-pri:hover, .slx-btn-pri:focus { color: var(--slx-accent-ink) !important; background: var(--slx-accent); border-color: var(--slx-accent); }
  .slx-btn-pri:hover { filter: brightness(1.1); }
  .slx-btn-bad { color: var(--slx-bad-i) !important; border-color: var(--slx-bad); }
  .slx-btn-bad:hover, .slx-btn-bad:focus { border-color: var(--slx-bad); background: var(--slx-bad-t); }
  .slx-btn-ghost { border-color: transparent; background: transparent; color: var(--slx-ink2) !important; }
  .slx-btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
  .slx-btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
  .slx-btn[disabled], .slx-btn.slx-off { opacity: .55; cursor: default; pointer-events: none; }
  .slx-btn svg, .slx-ico svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .slx-btn.slx-is-on { color: var(--slx-accent-ink) !important; background: var(--slx-accent); border-color: var(--slx-accent); }

  /* ---- result / warning line ---- */
  .slx-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; color: var(--slx-ok-i); background: var(--slx-ok-t); border-radius: 10px; animation: slx-in .25s ease-out; }
  .slx-note.slx-bad { color: var(--slx-bad-i); background: var(--slx-bad-t); }
  .slx-note.slx-warn { color: var(--slx-warn-i); background: var(--slx-warn-t); }
  .slx-note i { flex: none; width: 22px; height: 22px; font-style: normal; font-size: 13px; line-height: 22px; text-align: center; color: #fff; background: var(--slx-ok); border-radius: 50%; }
  .slx-note.slx-bad i { background: var(--slx-bad); }
  .slx-note.slx-warn i { background: var(--slx-warn); }
  .slx-note span { flex: 1; }
  .slx-note a { font-weight: 700; color: inherit !important; text-decoration: underline; }
  @keyframes slx-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

  /* ---- pills ---- */
  .slx-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--slx-ink2); background: var(--slx-sunk); border-radius: 11px; }
  .slx-pill-info { color: var(--slx-info-i); background: var(--slx-info-t); }
  .slx-pill-ok   { color: var(--slx-ok-i);   background: var(--slx-ok-t); }
  .slx-pill-warn { color: var(--slx-warn-i); background: var(--slx-warn-t); }
  .slx-pill-hot  { color: var(--slx-hot-i);  background: var(--slx-hot-t); }
  .slx-pill-bad  { color: var(--slx-bad-i);  background: var(--slx-bad-t); }
  .slx-pill-new  { color: #fff; background: var(--slx-accent); }
  /* book type: one hue per type (slb_ux.js TYP, 8 = a type the school added), a dot in front so it never reads as a state pill;
     no green / orange / red, those mean done / urgent / late */
  .slx-ty::before { content: ""; flex: none; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
  .slx-ty-1 { color: #1d4fb8; background: #e3ecfc; }
  .slx-ty-2 { color: #6a35b8; background: #efe6fb; }
  .slx-ty-3 { color: #0b6f75; background: #dcf2f2; }
  .slx-ty-4 { color: #3d4a5c; background: #e7eaef; }
  .slx-ty-5 { color: #a3226f; background: #fae3f0; }
  .slx-ty-6 { color: #0a6a8f; background: #dcf0f8; }
  .slx-ty-7 { color: #5f6b12; background: #eef1d6; }
  .slx-ty-8 { color: #3b3fae; background: #e6e7fa; }
  html[data-theme="dark"] .slx-ty-1 { color: #a9c4ff; background: rgba(90, 130, 220, 0.22); }
  html[data-theme="dark"] .slx-ty-2 { color: #d2b6ff; background: rgba(150, 100, 230, 0.22); }
  html[data-theme="dark"] .slx-ty-3 { color: #8fe0e0; background: rgba(40, 170, 170, 0.20); }
  html[data-theme="dark"] .slx-ty-4 { color: #cfd6e0; background: rgba(150, 165, 185, 0.20); }
  html[data-theme="dark"] .slx-ty-5 { color: #ffaedb; background: rgba(220, 80, 160, 0.20); }
  html[data-theme="dark"] .slx-ty-6 { color: #95d8f2; background: rgba(40, 150, 200, 0.20); }
  html[data-theme="dark"] .slx-ty-7 { color: #d6e08a; background: rgba(150, 165, 40, 0.20); }
  html[data-theme="dark"] .slx-ty-8 { color: #b9bcff; background: rgba(100, 105, 230, 0.22); }

  /* =========================================================================
     navigation tabs + tool bar
     ========================================================================= */
  .slx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 4px; background: var(--slx-sunk); border-radius: 11px; }
  .slx-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--slx-ink2) !important; text-decoration: none !important; border-radius: 8px; }
  .slx-tabs a:hover { color: var(--slx-ink) !important; background: var(--slx-hover); }
  .slx-tabs a.slx-cur { color: var(--slx-ink) !important; background: var(--slx-surface); box-shadow: var(--slx-shadow-s); }
  .slx-tabs a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .slx-tabs a b { min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; color: #fff; background: var(--slx-bad); border-radius: 10px; }
  .slx-tabs .slx-tab-add { margin-left: auto; color: var(--slx-accent-ink) !important; background: var(--slx-accent); }
  .slx-tabs .slx-tab-add:hover { color: var(--slx-accent-ink) !important; background: var(--slx-accent); filter: brightness(1.1); }

  .slx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
  .slx-bar-grow { flex: 1 1 240px; min-width: 0; }
  .slx-bar-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
  .slx-search { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; }
  .slx-search input[type="text"] { flex: 1; min-width: 0; height: 38px; padding: 0 12px 0 36px; font: inherit; font-size: 14px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 9px; box-shadow: none; }
  .slx-search input[type="text"]:focus { border-color: var(--slx-accent); box-shadow: 0 0 0 3px var(--slx-sel); outline: 0; }
  .slx-search > svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; fill: none; stroke: var(--slx-ink3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
  .slx-search kbd { position: absolute; right: 86px; top: 9px; padding: 1px 6px; font: inherit; font-size: 11px; color: var(--slx-ink3); background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-radius: 5px; box-shadow: none; pointer-events: none; }
  .slx-search input[type="text"]:focus ~ kbd { display: none; }
  .slx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .slx-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--slx-ink2) !important; text-decoration: none !important; background: var(--slx-sunk); border: 1px solid transparent; border-radius: 16px; cursor: pointer; }
  .slx-chip b { margin-left: 6px; font-weight: 700; color: var(--slx-ink); }
  .slx-chip:hover { border-color: var(--slx-stroke2); }
  .slx-chip.slx-cur { color: var(--slx-accent-ink) !important; background: var(--slx-accent); }
  .slx-chip.slx-cur b { color: var(--slx-accent-ink); }
  .slx-bar select.form-control { height: 36px; width: auto; min-width: 128px; padding: 0 8px; font-size: 14px; border-radius: 8px; }
  .slx-bar form { margin: 0; }
  .slx-found { margin: 0 0 10px; font-size: 13.5px; color: var(--slx-ink2); }
  .slx-found b { color: var(--slx-ink); }
  .slx-found a { margin-left: 8px; font-weight: 600; }

  /* advanced search panel */
  .slx-panel { margin: 0 0 14px; padding: 14px 16px 6px; background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-radius: 12px; }
  .slx-panel > form > table, .slx-panel > table { width: 100% !important; margin: 0; background: transparent; }
  .slx-on .slx-panel table.table > tbody > tr > td { border: 0; background: transparent !important; padding: 5px 6px; vertical-align: middle; }
  .slx-on .slx-panel table.table > tbody > tr > td:first-child { width: 190px; color: var(--slx-ink2); font-weight: 600; white-space: nowrap; }
  .slx-panel big { font-size: 15px; }
  .slx-panel .slx-chip { background: var(--slx-surface); border-color: var(--slx-stroke); }
  .slx-on .slx-col .slx-panel table.table > tbody > tr > td:first-child { width: 84px; }
  .slx-col .slx-panel { padding: 8px 10px 2px; }

  /* =========================================================================
     book list (inbox + registry)
     ========================================================================= */
  .slx-selbar { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px 4px 14px; font-size: 13.5px; color: var(--slx-ink2); background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .slx-selbar label { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-weight: 400; cursor: pointer; }
  .slx-selbar input[type="checkbox"] { width: 17px; height: 17px; margin: 0; cursor: pointer; }
  .slx-selbar .slx-sel-n { margin-left: auto; font-weight: 600; color: var(--slx-ink); }
  .slx-selbar.slx-none .slx-sel-n, .slx-selbar.slx-none .slx-btn-bad { display: none; }
  .slx-selbar .slx-view { margin-left: 0; display: inline-flex; gap: 2px; padding: 2px; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 8px; }
  .slx-selbar.slx-none .slx-view { margin-left: auto; }
  .slx-view button { height: 26px; padding: 0 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--slx-ink2); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
  .slx-view button.slx-cur { color: var(--slx-accent-ink); background: var(--slx-accent); }

  .slx-list { margin: 0 0 14px; border: 1px solid var(--slx-stroke); border-radius: 0 0 12px 12px; overflow: hidden; background: var(--slx-surface); }
  .slx-list.slx-alone { border-radius: 12px; }
  .slx-card { position: relative; display: flex; align-items: flex-start; gap: 0; padding: 0; border-top: 1px solid var(--slx-stroke); transition: background-color .1s; animation: slx-in .22s ease-out backwards; }
  .slx-card:first-child { border-top: 0; }
  .slx-card:hover { background: var(--slx-hover); }
  .slx-card.slx-unread { background: var(--slx-new); }
  .slx-card.slx-unread:hover { background: var(--slx-hover); }
  .slx-card.slx-kb { box-shadow: inset 3px 0 0 var(--slx-accent); }
  .slx-card.slx-gone { display: none; }
  .slx-c-chk { flex: none; width: 46px; padding: 17px 0 0 15px; line-height: 0; }
  .slx-c-chk input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
  .slx-dot { display: inline-block; width: 10px; height: 10px; margin: 4px 0 0 3px; background: var(--slx-bad); border-radius: 50%; }
  .slx-c-main { flex: 1; min-width: 0; padding: 13px 12px 13px 0; }
  .slx-title { display: block; margin: 0 0 5px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--slx-ink) !important; text-decoration: none !important; overflow-wrap: anywhere; }
  .slx-unread .slx-title { font-weight: 700; }
  a.slx-title:hover { color: var(--slx-accent) !important; text-decoration: underline !important; }
  html[data-theme="dark"] a.slx-title:hover { color: #9db7f5 !important; }
  .slx-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 6px; }
  .slx-sum { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; line-height: 1.5; color: var(--slx-ink2); }
  .slx-sum span b { font-weight: 600; color: var(--slx-ink); }
  .slx-sum .slx-ago { color: var(--slx-ink3); }
  .slx-callout { margin: 7px 0 0; padding: 7px 11px; font-size: 13.5px; line-height: 1.5; color: var(--slx-warn-i); background: var(--slx-warn-t); border-radius: 8px; overflow-wrap: anywhere; }
  .slx-callout b { font-weight: 700; }
  .slx-callout font { color: inherit !important; }
  .slx-more { margin: 8px 0 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--slx-ink3); background: none; border: 0; cursor: pointer; }
  .slx-more:hover { color: var(--slx-accent); text-decoration: underline; }
  .slx-meta { display: none; margin: 8px 0 0; padding: 9px 12px; font-size: 13px; line-height: 1.55; background: var(--slx-sunk); border-radius: 8px; }
  .slx-card.slx-open .slx-meta, .slx-list.slx-full .slx-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; }
  .slx-list.slx-full .slx-more { display: none; }
  .slx-meta dt { margin: 0; font-weight: 400; color: var(--slx-ink3); white-space: nowrap; }
  .slx-meta dd { margin: 0; min-width: 0; color: var(--slx-ink); overflow-wrap: anywhere; }
  .slx-meta dd font { color: inherit; }
  .slx-c-act { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 5px; width: 138px; padding: 13px 14px 13px 0; }
  .slx-c-act .slx-btn { justify-content: flex-start; }
  .slx-list.slx-nochk .slx-c-chk { width: 16px; padding: 0; }
  .slx-c-act.slx-act-grid { display: grid; grid-template-columns: 1fr 1fr; width: 250px; align-content: start; }
  .slx-pinb { flex: none; width: 34px; height: 34px; margin: 9px 2px 0 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--slx-ink3) !important; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
  .slx-pinb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .slx-pinb:hover { color: var(--slx-pin) !important; background: var(--slx-sunk); }
  .slx-pinb.slx-pinned { color: var(--slx-pin) !important; }
  .slx-pinb.slx-pinned svg { fill: currentColor; }
  .slx-card.slx-ispin { box-shadow: inset 3px 0 0 var(--slx-pin); }

  .slx-prog { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--slx-ink2); max-width: 420px; }
  .slx-prog i { flex: 1; display: block; height: 8px; text-align: left; background: var(--slx-track); border-radius: 4px; overflow: hidden; }
  .slx-prog i u { display: block; float: left; height: 100%; margin: 0; background: var(--slx-ok); border-radius: 4px; text-decoration: none; }
  .slx-prog.slx-low i u { background: var(--slx-warn); }
  .slx-prog b { color: var(--slx-ink); font-weight: 600; white-space: nowrap; }

  .slx-empty { padding: 44px 20px; text-align: center; color: var(--slx-ink2); }
  .slx-empty svg { width: 44px; height: 44px; margin: 0 0 10px; fill: none; stroke: var(--slx-ink3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .slx-empty b { display: block; margin: 0 0 4px; font-size: 16px; color: var(--slx-ink); }
  .slx-keys { margin: 0 0 10px; font-size: 12px; color: var(--slx-ink3); text-align: right; }
  .slx-keys kbd { padding: 1px 5px; font: inherit; font-size: 11px; color: var(--slx-ink2); background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-radius: 4px; box-shadow: none; }

  /* =========================================================================
     head card (book in work) + steps
     ========================================================================= */
  .slx-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 14px 16px; background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-radius: 12px; }
  .slx-head-t { flex: 1 1 300px; min-width: 0; }
  .slx-head-t small { display: block; margin: 0 0 3px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--slx-ink3); }
  .slx-head-t h4 { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--slx-ink); overflow-wrap: anywhere; }
  .slx-head-t p { margin: 0; font-size: 13.5px; color: var(--slx-ink2); }
  .slx-steps { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: slx; }
  .slx-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--slx-ink3); counter-increment: slx; }
  .slx-steps li::before { content: counter(slx); width: 24px; height: 24px; font-size: 12.5px; line-height: 24px; text-align: center; color: var(--slx-ink2); background: var(--slx-sunk); border-radius: 50%; }
  .slx-steps li + li { margin-left: 4px; }
  .slx-steps li + li::before { margin-left: 22px; }
  .slx-steps li + li { background: linear-gradient(var(--slx-stroke2), var(--slx-stroke2)) no-repeat left center / 18px 2px; }
  .slx-steps li.slx-done { color: var(--slx-ok-i); }
  .slx-steps li.slx-done::before { content: "\2713"; color: #fff; background: var(--slx-ok); }
  .slx-steps li.slx-cur { color: var(--slx-ink); }
  .slx-steps li.slx-cur::before { color: var(--slx-accent-ink); background: var(--slx-accent); }

  /* =========================================================================
     recipients (send / forward)
     ========================================================================= */
  .slx-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .slx-col { min-width: 0; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 12px; overflow: hidden; }
  .slx-col-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--slx-stroke); }
  .slx-col-h h5 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; color: var(--slx-ink); }
  .slx-col-h h5 small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--slx-ink2); }
  .slx-col-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: var(--slx-sunk); border-bottom: 1px solid var(--slx-stroke); font-size: 13.5px; color: var(--slx-ink2); }
  .slx-col-tools label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
  .slx-col-tools input[type="checkbox"] { width: 17px; height: 17px; margin: 0; }
  .slx-col-tools input[type="text"] { flex: 1 1 140px; min-width: 0; height: 32px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 7px; }
  .slx-col-tools input[type="text"]:focus { border-color: var(--slx-accent); box-shadow: 0 0 0 3px var(--slx-sel); outline: 0; }
  .slx-people { max-height: 62vh; overflow-y: auto; }
  .slx-person { display: flex; align-items: flex-start; gap: 11px; padding: 9px 14px; border-top: 1px solid var(--slx-stroke); cursor: pointer; }
  .slx-person:first-child { border-top: 0; }
  .slx-person:hover { background: var(--slx-hover); }
  .slx-person.slx-picked { background: var(--slx-sel); }
  .slx-person.slx-gone { display: none; }
  .slx-person > input { flex: none; width: 17px; height: 17px; margin: 9px 0 0; cursor: pointer; }
  .slx-av { flex: none; width: 36px; height: 36px; font-size: 15px; font-weight: 700; line-height: 36px; text-align: center; color: var(--slx-info-i); background: var(--slx-info-t); border-radius: 50%; }
  .slx-p-t { flex: 1; min-width: 0; }
  .slx-p-t b { display: block; font-size: 14px; font-weight: 600; color: var(--slx-ink); }
  .slx-p-t b img { vertical-align: -3px; margin-left: 4px; }
  .slx-p-t small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--slx-ink2); }
  .slx-p-s { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 6px; }
  .slx-x { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--slx-ink3) !important; border-radius: 7px; }
  .slx-x:hover { color: var(--slx-bad-i) !important; background: var(--slx-bad-t); }
  .slx-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .slx-col-f { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--slx-surface); border-top: 1px solid var(--slx-stroke); }
  .slx-col-f .slx-grow { flex: 1; font-size: 13px; color: var(--slx-ink2); }
  .slx-col-f textarea { width: 100%; min-height: 58px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 8px; resize: vertical; }
  .slx-col-f textarea:focus { border-color: var(--slx-accent); box-shadow: 0 0 0 3px var(--slx-sel); outline: 0; }
  .slx-col-f > label { width: 100%; margin: 0; font-size: 13px; font-weight: 600; color: var(--slx-ink2); }
  .slx-col-empty { padding: 30px 16px; text-align: center; font-size: 13.5px; color: var(--slx-ink2); }

  /* =========================================================================
     forms (new / edit / follow-up / files)
     ========================================================================= */
  .slx-form { max-width: 900px; margin: 0 auto; }
  .slx-sec { margin: 0 0 14px; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 12px; }
  .slx-sec > h5 { margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 700; color: var(--slx-ink); border-bottom: 1px solid var(--slx-stroke); }
  .slx-sec > h5 small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--slx-ink2); }
  .slx-sec-b { padding: 8px 16px 12px; }
  .slx-f { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 7px 0; }
  .slx-f > label { margin: 0; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--slx-ink2); }
  .slx-f > label em { font-style: normal; color: var(--slx-bad); }
  .slx-f > label small { display: block; font-weight: 400; color: var(--slx-ink3); }
  .slx-f-c { min-width: 0; font-size: 14px; color: var(--slx-ink); }
  .slx-f-c input[type="text"], .slx-f-c textarea, .slx-f-c select.form-control { width: 100%; max-width: 100%; border-radius: 8px; }
  .slx-f-c textarea { min-height: 64px; resize: vertical; }
  .slx-f-c select.form-control-mini, .slx-panel select.form-control-mini { height: 36px; padding: 0 6px; border-radius: 8px; }
  .slx-f-c .slx-today { margin-left: 6px; }
  .slx-f.slx-err input[type="text"], .slx-f.slx-err textarea { border-color: var(--slx-bad); box-shadow: 0 0 0 3px var(--slx-bad-t); }
  .slx-errmsg { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--slx-bad-i); }
  .slx-f.slx-dim { opacity: .45; }
  .slx-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; margin: 0; font-size: 14px; font-weight: 400; color: var(--slx-ink); cursor: pointer; }
  .slx-check input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; }
  .slx-check-hint { margin: -6px 0 6px 27px; font-size: 13px; color: var(--slx-ink2); }
  .slx-check-hint summary { display: inline; cursor: pointer; color: var(--slx-accent); text-decoration: underline; }
  .slx-check-hint ul { margin: 4px 0 0; padding-left: 18px; }
  .slx-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 8px; }
  .slx-submit .slx-grow { flex: 1; font-size: 13px; color: var(--slx-ink3); }

  .slx-files { display: grid; gap: 8px; }
  .slx-file { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 12px; background: var(--slx-sunk); border: 1px dashed var(--slx-stroke2); border-radius: 10px; transition: border-color .12s, background-color .12s; }
  .slx-file.slx-drag { border-color: var(--slx-accent); background: var(--slx-sel); }
  .slx-file.slx-has { border-style: solid; background: var(--slx-surface); }
  .slx-file.slx-new { border-style: solid; border-color: var(--slx-ok); background: var(--slx-ok-t); }
  .slx-file-n { flex: none; width: 28px; height: 28px; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; color: var(--slx-ink2); background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 50%; }
  .slx-file-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--slx-ink2); }
  .slx-file-t b { display: block; font-size: 14px; font-weight: 600; color: var(--slx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .slx-file-t a { font-weight: 600; }
  .slx-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .slx-file-add { margin: 2px 0 0; }
  .slx-ext { flex: none; width: 40px; height: 40px; font-size: 11px; font-weight: 700; line-height: 40px; text-align: center; letter-spacing: .03em; text-transform: uppercase; color: var(--slx-info-i); background: var(--slx-info-t); border-radius: 9px; }
  .slx-ext-pdf { color: var(--slx-bad-i); background: var(--slx-bad-t); }
  .slx-ext-doc { color: var(--slx-info-i); background: var(--slx-info-t); }
  .slx-ext-xls { color: var(--slx-ok-i); background: var(--slx-ok-t); }
  .slx-ext-img { color: var(--slx-warn-i); background: var(--slx-warn-t); }

  /* =========================================================================
     info (who has read) + tables
     ========================================================================= */
  .slx-stat { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
  .slx-stat > div { flex: 1 1 130px; padding: 12px 14px; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 12px; }
  .slx-stat small { display: block; font-size: 12.5px; color: var(--slx-ink2); }
  .slx-stat b { display: block; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--slx-ink); }
  .slx-stat .slx-bad b { color: var(--slx-bad-i); }
  .slx-stat .slx-ok b { color: var(--slx-ok-i); }
  .slx-stat .slx-wide { flex: 2 1 240px; }
  .slx-stat .slx-prog { max-width: none; margin-top: 10px; }
  .slx-stat .slx-warn b { color: var(--slx-warn-i); }
  /* names added but not confirmed (2026-10-08) */
  .slx-prog .slx-pend { flex: none; padding: 1px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; color: var(--slx-warn-i); background: var(--slx-warn-t); }
  .slx-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 8px 0 0; font-size: 13.5px; }
  .slx-facts dt { margin: 0; font-weight: 400; color: var(--slx-ink3); }
  .slx-facts dd { margin: 0; color: var(--slx-ink); overflow-wrap: anywhere; }

  .slx-on table.slx-tbl { width: 100% !important; margin: 0 0 14px; border: 1px solid var(--slx-stroke); border-radius: 12px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; background: var(--slx-surface); }
  .slx-on table.slx-tbl > tbody > tr > td { padding: 9px 12px; border: 0; border-top: 1px solid var(--slx-stroke); background: transparent !important; vertical-align: middle; font-size: 13.5px; }
  .slx-on table.slx-tbl > tbody > tr.slx-th > td { border-top: 0; font-size: 12.5px; font-weight: 700; color: var(--slx-ink2); background: var(--slx-sunk) !important; white-space: nowrap; }
  .slx-on table.slx-tbl > tbody > tr.slx-th > td.slx-sortable { cursor: pointer; user-select: none; }
  .slx-on table.slx-tbl > tbody > tr.slx-th > td.slx-sortable:hover { color: var(--slx-ink); }
  .slx-on table.slx-tbl > tbody > tr:hover > td { background: var(--slx-hover) !important; }
  .slx-on table.slx-tbl > tbody > tr.slx-gone { display: none; }
  .slx-on table.slx-tbl img.slx-sign { max-width: 110px; max-height: 44px; width: auto; background: #fff; border-radius: 4px; }
  /* bar fills from the LEFT edge of a visible track; the number sits to its right */
  .slx-barrow { display: flex; align-items: center; gap: 10px; min-width: 190px; text-align: left; }
  .slx-barrow b { flex: none; width: 42px; font-weight: 600; text-align: right; white-space: nowrap; }
  .slx-bargraph { flex: 1; display: block; min-width: 120px; height: 9px; text-align: left; background: var(--slx-track); border-radius: 5px; overflow: hidden; }
  .slx-bargraph u { display: block; float: left; height: 100%; margin: 0; background: var(--slx-ok); border-radius: 5px; text-decoration: none; }
  .slx-bargraph.slx-low u { background: var(--slx-bad); }
  .slx-bargraph.slx-mid u { background: var(--slx-warn); }

  /* =========================================================================
     popups / own tabs
     ========================================================================= */
  body.slx-pop { padding: 18px 20px 28px; background: var(--slx-surface); color: var(--slx-ink); }
  body.slx-pop .slx-form { max-width: 760px; }
  body.slx-pop .slx-head, body.slx-pop .slx-note, .slx-on body.slx-pop table.slx-tbl { max-width: 760px; margin-left: auto; margin-right: auto; }
  .slx-signbox { max-width: 420px; margin: 8vh auto 0; padding: 22px 22px 18px; text-align: center; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 16px; box-shadow: var(--slx-shadow-s); }
  .slx-signbox h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--slx-ink); }
  .slx-signbox p { margin: 0 0 12px; font-size: 13.5px; color: var(--slx-ink2); }
  .slx-signbox .js-signature { display: inline-block; line-height: 0; background: #fff; border: 1px dashed var(--slx-stroke2); border-radius: 10px; overflow: hidden; }
  .slx-signbox .slx-submit { justify-content: center; margin-top: 14px; }
  .slx-opening { max-width: 420px; margin: 18vh auto 0; text-align: center; color: var(--slx-ink2); }
  .slx-opening b { display: block; margin: 0 0 6px; font-size: 17px; color: var(--slx-ink); }

  /* public archive (slb_report.php): one centred column */
  body.slx-arch .slx-head, body.slx-arch .slx-panel, body.slx-arch .slx-bar, body.slx-arch .slx-list, body.slx-arch .box-footer { max-width: 980px; margin-left: auto; margin-right: auto; }
  body.slx-arch .box-footer { padding: 0; border: 0; background: transparent; }
  .slx-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* import step 3: dropzone in the look of the file slots.  dropzone.min.css
     paints a white 150px box with a black border, and leaves every preview
     unthemed (white card, blur-on-hover, a black progress bar and a pulse
     that loops for ever).  Everything below repaints the widget with the slx
     tokens and lays the files out as a list, which suits pdf/doc names far
     better than 120px thumbnails. */
  .slx-on form.dropzone.slx-dz { min-height: 0; margin: 0 0 14px; padding: 20px 18px; text-align: center; color: var(--slx-ink2); background: var(--slx-sunk); border: 2px dashed var(--slx-stroke2); border-radius: 12px; transition: border-color .15s ease, background .15s ease; }
  .slx-on form.dropzone.slx-dz:hover, .slx-on form.dropzone.slx-dz.dz-drag-hover { border-style: dashed; border-color: var(--slx-accent); background: var(--slx-sel); }
  .slx-on form.dropzone.slx-dz.dz-drag-hover .dz-message { opacity: 1; }
  .slx-on form.dropzone.slx-dz .dz-message { margin: 4px 0; font-size: 14px; line-height: 1.7; }
  .slx-on form.dropzone.slx-dz .dz-message strong { font-size: 15.5px; color: var(--slx-ink); }
  .slx-dz-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 7px; color: var(--slx-accent); background: var(--slx-sel); border-radius: 50%; }
  .slx-dz-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .slx-dz-t { display: block; font-size: 14.5px; font-weight: 700; color: var(--slx-ink); }
  .slx-dz-s { display: block; max-width: 620px; margin: 3px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--slx-ink3); }

  /* once a file is dropped the box becomes the list of what was sent */
  .slx-on form.dropzone.slx-dz.dz-started { display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: left; border-style: solid; border-color: var(--slx-stroke); }
  .slx-on form.dropzone.slx-dz.dz-started:hover { background: var(--slx-sunk); border-color: var(--slx-stroke); }
  .slx-on form.dropzone.slx-dz .dz-preview { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; margin: 0; padding: 8px 12px; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 10px; }
  .slx-on form.dropzone.slx-dz .dz-preview.dz-image-preview { background: var(--slx-surface); }
  .slx-on form.dropzone.slx-dz .dz-preview.dz-success { border-color: var(--slx-ok); background: var(--slx-ok-t); }
  .slx-on form.dropzone.slx-dz .dz-preview.dz-error { border-color: var(--slx-bad); background: var(--slx-bad-t); }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-image { position: relative; flex: none; width: 36px; height: 36px; border-radius: 7px; background: var(--slx-sunk); }
  .slx-on form.dropzone.slx-dz .dz-preview.dz-file-preview .dz-image { background: var(--slx-sunk); }
  /* a document has no thumbnail: draw a small page instead of an empty grey box */
  .slx-on form.dropzone.slx-dz .dz-preview.dz-file-preview .dz-image:after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 18px; margin: -9px 0 0 -7px; background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 2px; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-image img { width: 36px; height: 36px; object-fit: cover; }
  .slx-on form.dropzone.slx-dz .dz-preview:hover .dz-image img { transform: none; filter: none; }
  /* the stock template prints the size before the name: turn the pair over */
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details { position: static; z-index: auto; display: flex; flex-direction: column-reverse; flex: 1 1 auto; opacity: 1; min-width: 0; max-width: 100%; padding: 0; font-size: 13px; line-height: 1.4; text-align: left; color: var(--slx-ink2); }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details .dz-filename { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--slx-ink); }
  .slx-on form.dropzone.slx-dz .dz-preview.dz-error .dz-details .dz-filename { color: var(--slx-bad-i); }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details .dz-filename span,
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details .dz-size span { padding: 0; background: none; border: 0; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details .dz-filename:hover span { background: none; border: 0; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-details .dz-size { margin: 1px 0 0; font-size: 11.5px; color: var(--slx-ink3); }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-remove { flex: none; font-size: 12px; color: var(--slx-accent); }
  /* the stock sheet pulses the bar for ever while a file waits its turn */
  .slx-on form.dropzone.slx-dz .dz-preview .dz-progress { top: auto; bottom: 0; left: 0; width: 100%; height: 3px; margin: 0; background: var(--slx-track); border-radius: 0 0 9px 9px; }
  .slx-on form.dropzone.slx-dz .dz-preview:not(.dz-processing) .dz-progress { animation: none; -webkit-animation: none; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-progress .dz-upload { background: var(--slx-accent); }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-success-mark,
  .slx-on form.dropzone.slx-dz .dz-preview .dz-error-mark { top: 50%; left: auto; right: 12px; margin: -13px 0 0 0; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-success-mark svg,
  .slx-on form.dropzone.slx-dz .dz-preview .dz-error-mark svg { width: 26px; height: 26px; }
  /* the reason the server gave was a tooltip that only showed on hover; the
     row is a flex line, so the message can simply sit in it and stay read */
  .slx-on form.dropzone.slx-dz .dz-preview .dz-error-message { position: static; flex: 0 1 auto; min-width: 0; max-width: 50%; margin: 0 34px 0 0; padding: 4px 11px; font-size: 12px; line-height: 1.45; white-space: normal; border-radius: 10px; color: #fff; background: var(--slx-bad); opacity: 1; pointer-events: auto; }
  .slx-on form.dropzone.slx-dz .dz-preview .dz-error-message:after { display: none; }

  /* datadic */
  .slx-dd-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

  /* =========================================================================
     narrow screens
     ========================================================================= */
  @media (max-width: 900px) {
    .slx-send { grid-template-columns: minmax(0, 1fr); }
    .slx-people { max-height: 50vh; }
  }
  @media (max-width: 700px) {
    .slx-card { flex-wrap: wrap; }
    .slx-c-main { flex: 1 1 0; padding-right: 4px; }
    .slx-c-act { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; width: auto; padding: 0 12px 12px 46px; }
    .slx-c-act .slx-btn { flex: 1 1 auto; justify-content: center; }
    .slx-c-act.slx-act-grid { display: flex; width: auto; }
    .slx-list.slx-nochk .slx-c-act { padding-left: 16px; }
    .slx-f { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .slx-f > label { padding-top: 0; }
    .slx-tabs .slx-tab-add { margin-left: 0; }
    .slx-search kbd, .slx-keys { display: none; }
    .slx-on .slx-panel table.table > tbody > tr > td { display: block; width: auto !important; }
    .slx-on .slx-panel table.table > tbody > tr > td:first-child { width: auto; padding-bottom: 0; }
    .slx-meta { grid-template-columns: minmax(0, 1fr) !important; }
    .slx-meta dt { margin-top: 4px; }
    body.slx-pop { padding: 12px 12px 22px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .slx-card, .slx-note { animation: none !important; }
}

/* slb_addfiles.php: file history printed by slb_sign_inc.php (slbsg_history_tis), 2026-09-23 */
@media screen {
  .slbsg-hist { width: 95%; max-width: 760px; margin: 14px auto 18px; padding: 12px 14px; border: 1px solid var(--slx-stroke2, #d9dde6); border-radius: 10px; background: var(--slx-surface, #fff); color: var(--slx-ink, #1f2328); }
  .slbsg-hist ol { margin: 8px 0 0; padding-left: 22px; }
  .slbsg-hist li { margin: 0 0 8px; line-height: 1.5; }
  .slbsg-hist small { color: var(--slx-ink2, #5d6570); }
  .slbsg-hist .slbsg-when { color: var(--slx-ink2, #5d6570); }
  .slx-file .slbsg-btn { margin-left: auto; }
  .slx-file .slbsg-btn + .slx-btn { margin-left: 0; }
}

/* slb_addfiles.php: lock panel printed by slb_sign_inc.php (slbsg_lock_panel_tis), 2026-09-23 */
@media screen {
  div.slbsg-lock { width: 95%; max-width: 760px; margin: 14px auto 0; padding: 12px 14px; border: 1px solid var(--slx-stroke2, #d9dde6); border-radius: 10px; background: var(--slx-surface, #fff); color: var(--slx-ink, #1f2328); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  div.slbsg-lock.slbsg-locked { border-color: #c0392b; }
  .slbsg-lock-t { flex: 1 1 280px; line-height: 1.5; }
  .slbsg-lock-t small { color: var(--slx-ink2, #5d6570); }
  .slbsg-lock form { margin: 0; }
  .slbsg-msg { flex: 1 1 100%; padding: 8px 10px; border-radius: 8px; background: #e7f5ec; color: #1b5e33; }
  .slbsg-msg.slbsg-bad { background: #fdecea; color: #8a1f14; }
}
html[data-theme="dark"] .slbsg-msg { background: #1d3527; color: #a6e3bd; }
html[data-theme="dark"] .slbsg-msg.slbsg-bad { background: #3b2020; color: #ffb4a8; }

/* slb_addfiles.php: "send this book on?" after an upload (slbsg_forward_prompt_tis), 2026-09-23 */
.slbsg-fw { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9999; background: rgba(10, 12, 16, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.slbsg-fw-c { background: var(--slx-surface, #fff); color: var(--slx-ink, #1f2328); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 420px; width: 100%; padding: 18px 18px 14px; }
.slbsg-fw-t { font-size: 17px; }
.slbsg-fw-c p { margin: 8px 0 14px; }
.slbsg-fw-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* ===== book route (slb_comment.php + slb_route_inc.php), 2026-09-23 =======================
   Server-rendered tree: root card (who registered the book) -> sends (who sent, when, how
   many) -> recipient cards / chips.  Lines are borders of the nested <li>; the way to the
   viewer (.slx-rt-on) is drawn in the accent colour and is always the first child.
   No motion.  Delete this block + the include in slb_comment.php to go back. */
@media screen {
  .slx-rt { --rt-line: var(--slx-track); --rt-on: var(--slx-accent); margin: 18px 0 8px; padding: 16px 18px 12px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 12px; font-size: 13.5px; text-align: left; }
  html[data-theme="dark"] .slx-rt { --rt-on: #7ea2ee; }
  body.slx-pop .slx-rt { max-width: 760px; margin-left: auto; margin-right: auto; }
  .slx-rt-top h5 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--slx-ink); }
  .slx-rt-top h5 small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--slx-ink3); }

  /* path strip: import -> ... -> you */
  .slx-rt-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0 0 12px; padding: 12px; list-style: none; background: var(--slx-sunk); border-radius: 10px; }
  .slx-rt-stop { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 12px 4px 4px; background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 22px; }
  .slx-rt-stop > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .slx-rt-stop small { font-size: 11px; color: var(--slx-ink3); }
  .slx-rt-stop b { max-width: 190px; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .slx-rt-stop em { font-style: normal; font-size: 11px; color: var(--slx-ink2); }
  .slx-rt-stop.slx-rt-me { border: 2px solid var(--rt-on); background: var(--slx-sel); }
  .slx-rt-step { position: relative; flex: 0 0 auto; min-width: 58px; height: 36px; padding: 0 10px 0 4px; }
  .slx-rt-step:before { content: ""; position: absolute; left: 2px; right: 8px; top: 26px; border-top: 2px solid var(--rt-on); }
  .slx-rt-step:after { content: ""; position: absolute; right: 2px; top: 22px; border: 5px solid transparent; border-left: 7px solid var(--rt-on); border-right: 0; }
  .slx-rt-step span { display: block; padding-top: 3px; font-size: 11px; line-height: 1.2; color: var(--slx-ink2); text-align: center; white-space: nowrap; }

  /* totals */
  .slx-rt-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
  .slx-rt-stats span { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; font-size: 12.5px; color: var(--slx-ink2); background: var(--slx-sunk); border-radius: 8px; }
  .slx-rt-stats b { font-size: 17px; font-weight: 700; color: var(--slx-ink); }

  /* tree lines */
  .slx-rt ul { margin: 0; padding: 0; list-style: none; }
  .slx-rt-tree li { list-style: none; }
  .slx-rt-tree ul { padding-left: 20px; }
  .slx-rt-tree ul > li { position: relative; padding: 8px 0 0 22px; }
  .slx-rt-tree ul > li:before { content: ""; position: absolute; left: 0; top: 0; height: 100%; border-left: 2px solid var(--rt-line); }
  .slx-rt-tree ul > li:last-child:before { height: 27px; }
  .slx-rt-tree ul > li:after { content: ""; position: absolute; left: 0; top: 27px; width: 18px; border-top: 2px solid var(--rt-line); }
  .slx-rt-tree ul > li.slx-rt-on:before { height: 27px; border-left-color: var(--rt-on); }
  .slx-rt-tree ul > li.slx-rt-on:not(:last-child) { background: linear-gradient(var(--rt-line), var(--rt-line)) 0 27px / 2px 100% no-repeat; }
  .slx-rt-tree ul > li.slx-rt-on:after { border-top-color: var(--rt-on); }
  .slx-rt-tree ul > li.slx-rt-ev { padding-top: 4px; }
  .slx-rt-tree ul > li.slx-rt-ev:after { top: 23px; }
  .slx-rt-tree ul > li.slx-rt-ev:last-child:before, .slx-rt-tree ul > li.slx-rt-ev.slx-rt-on:before { height: 23px; }
  .slx-rt-tree ul > li.slx-rt-ev.slx-rt-on:not(:last-child) { background-position: 0 23px; }
  .slx-rt-tree ul > li.slx-rt-leafs:after { top: 24px; }
  .slx-rt-tree ul > li.slx-rt-leafs:last-child:before { height: 24px; }

  /* cards */
  .slx-rt-card { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 8px 12px 8px 8px; background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 10px; }
  .slx-rt-on > .slx-rt-card { border-color: var(--rt-on); }
  .slx-rt-card.slx-rt-me { border: 2px solid var(--rt-on); background: var(--slx-sel); }
  .slx-rt-rootc { background: var(--slx-sunk); }
  .slx-rt-ct { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
  .slx-rt-ct b { font-weight: 600; overflow-wrap: anywhere; }
  .slx-rt-ct small { display: block; font-size: 12px; color: var(--slx-ink3); }
  .slx-rt-card > .slx-pill { flex: none; }

  /* avatars */
  .slx-rt-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1; color: #fff; background: #6b7a99; border-radius: 50%; }
  .slx-rt-av img { width: 100%; height: 100%; object-fit: cover; }
  .slx-rt-path .slx-rt-av, .slx-rt-chip .slx-rt-av { width: 26px; height: 26px; font-size: 12px; }
  .slx-rt-h0 { background: #4e6fb3; } .slx-rt-h1 { background: #3f8f7a; } .slx-rt-h2 { background: #a0674a; }
  .slx-rt-h3 { background: #7a5ba8; } .slx-rt-h4 { background: #3b8aa6; } .slx-rt-h5 { background: #9b5a78; }

  /* a send */
  .slx-rt-evh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 38px; padding: 2px 0; font-size: 12.5px; color: var(--slx-ink2); }
  .slx-rt-evh b { font-size: 13px; font-weight: 700; color: var(--slx-ink); }
  .slx-rt-on > .slx-rt-evh b { color: var(--rt-on); }
  .slx-rt-arrow { display: inline-block; width: 0; height: 0; margin: 0 -4px 0 -6px; border: 5px solid transparent; border-left: 7px solid var(--rt-line); border-right: 0; }
  .slx-rt-on > .slx-rt-evh .slx-rt-arrow { border-left-color: var(--rt-on); }
  .slx-rt-wait { padding: 1px 8px; color: var(--slx-warn-i); background: var(--slx-warn-t); border-radius: 9px; }
  .slx-rt-rd { color: var(--slx-ink3); }

  /* leaf recipients */
  .slx-rt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .slx-rt-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; height: 32px; padding: 0 10px 0 3px; font-size: 12.5px; background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 16px; cursor: default; }
  .slx-rt-cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .slx-rt-chip i { flex: none; width: 8px; height: 8px; background: var(--slx-ink3); border-radius: 50%; }
  .slx-rt-chip.slx-rt-read i { background: var(--slx-ok); }
  .slx-rt-chip.slx-rt-unread i { background: var(--slx-bad); }
  .slx-rt-chip.slx-rt-wait { padding: 0 10px 0 3px; color: var(--slx-ink); background: var(--slx-surface); border-radius: 16px; }
  .slx-rt-chip.slx-rt-wait i { background: var(--slx-warn); }
  .slx-rt-chip.slx-rt-others { padding: 0 12px; color: var(--slx-ink2); background: var(--slx-sunk); border-style: dashed; }
  .slx-rt-more { margin-top: 6px; }
  .slx-rt-more summary { display: inline-block; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--slx-accent); border-radius: 8px; cursor: pointer; list-style: none; }
  html[data-theme="dark"] .slx-rt-more summary { color: var(--rt-on); }
  .slx-rt-more summary::-webkit-details-marker { display: none; }
  .slx-rt-more summary:hover { background: var(--slx-hover); }
  .slx-rt-more[open] summary { display: none; }
  .slx-rt-tree ul > li.slx-rt-empty { padding: 10px 0 4px 22px; color: var(--slx-ink3); }

  .slx-rt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding-top: 10px; font-size: 12px; color: var(--slx-ink3); border-top: 1px solid var(--slx-stroke); }
  .slx-rt-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .slx-rt-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
  .slx-rt-l-read { background: var(--slx-ok); } .slx-rt-l-unread { background: var(--slx-bad); } .slx-rt-l-wait { background: var(--slx-warn); }
  .slx-rt-legend i.slx-rt-l-line { width: 18px; height: 0; border-radius: 0; border-top: 2px solid var(--rt-on); }

  @media (max-width: 560px) {
    .slx-rt { padding: 12px 10px; }
    .slx-rt-tree ul { padding-left: 8px; }
    .slx-rt-tree ul > li { padding-left: 14px; }
    .slx-rt-tree ul > li:after { width: 11px; }
    .slx-rt-card { flex-wrap: wrap; }
    .slx-rt-card > .slx-pill { margin-left: 46px; }
    .slx-rt-stop b { max-width: 140px; }
  }
}

/* send page without reloads (slb_ux.js sendLive), 2026-09-23 */
@media screen {
  .slx-person .slx-qadd { margin-left: auto; flex: none; align-self: center; height: 30px; padding: 0 10px; }
  .slx-person .slx-qadd svg { width: 14px; height: 14px; }
  .slx-person.slx-moving { opacity: .6; }
  .slx-send.slx-busy { cursor: progress; }
  .slx-send.slx-busy .slx-col-f .slx-btn-pri { opacity: .7; }

  /* in-page question box (2026-10-08) - replaces window.confirm, which the iPad / iPhone app WebView never shows */
  .slx-ask { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 16, 32, 0.45); }
  .slx-ask-box { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; padding: 18px 18px 14px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); }
  .slx-ask-box h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; line-height: 1.45; color: var(--slx-ink); }
  .slx-ask-box p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--slx-ink2); white-space: pre-line; }
  .slx-ask-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
  .slx-ask-bar .slx-btn { min-height: 40px; padding-left: 16px; padding-right: 16px; }
  .slx-btn-danger, .slx-btn-danger:hover, .slx-btn-danger:focus { color: #ffffff !important; background: var(--slx-bad); border-color: var(--slx-bad); }
  /* named signers of a book (2026-11-12): the panel of the circulation page, printed by slbsr_panel_tis() of
     slb_sign_inc.php.  Plain classes, not slx-on: the form works without the script (the list opens by the radio) */
  .slbsr { position: relative; margin: 0 0 14px; padding: 12px 14px; font-size: 14px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 12px; }
  .slbsr form { margin: 0; }
  .slbsr-ro { color: var(--slx-info-i); background: var(--slx-info-t); border-color: transparent; line-height: 1.6; }
  .slbsr-ro small { font-size: 12.5px; opacity: .85; }
  .slbsr-msg { margin: 0 0 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--slx-ok-i); background: var(--slx-ok-t); border-radius: 9px; }
  .slbsr-msg.slbsr-bad { color: var(--slx-bad-i); background: var(--slx-bad-t); }
  .slbsr-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; }
  .slbsr-h b { font-size: 15px; font-weight: 700; }
  .slbsr-now { padding: 2px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--slx-info-i); background: var(--slx-info-t); border-radius: 11px; }
  .slbsr-h small { flex: 1 0 100%; font-size: 12.5px; color: var(--slx-ink2); }
  .slbsr-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .slbsr-m > input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
  .slbsr-m > label { margin: 0; padding: 7px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--slx-ink2); background: var(--slx-sunk); border: 1px solid var(--slx-stroke); border-radius: 18px; cursor: pointer; }
  .slbsr-m > label:hover { color: var(--slx-ink); border-color: var(--slx-stroke2); }
  .slbsr-m > input[type="radio"]:checked + label { color: var(--slx-accent-ink); background: var(--slx-accent); border-color: var(--slx-accent); }
  .slbsr-m > input[type="radio"]:focus + label { outline: 2px solid var(--slx-accent); outline-offset: 2px; }
  .slbsr-pick { display: none; flex: 1 0 100%; min-width: 0; }
  #slbsr_m_only:checked ~ .slbsr-pick { display: block; }
  .slbsr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
  .slbsr-tools input[type="text"] { flex: 1 1 160px; min-width: 0; height: 32px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--slx-ink); background: var(--slx-surface); border: 1px solid var(--slx-stroke2); border-radius: 7px; }
  .slbsr-c { font-size: 13px; color: var(--slx-ink2); white-space: nowrap; }
  .slbsr-list { max-height: 264px; overflow: auto; background: var(--slx-surface); border: 1px solid var(--slx-stroke); border-radius: 9px; }
  .slbsr-p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 12px; font-weight: 400; border-bottom: 1px solid var(--slx-stroke); cursor: pointer; }
  .slbsr-p:last-child { border-bottom: 0; }
  .slbsr-p:hover { background: var(--slx-hover); }
  .slbsr-p.slbsr-on { background: var(--slx-sel); }
  .slbsr-p.slbsr-gone { display: none; }
  .slbsr-p input { flex: none; width: 17px; height: 17px; margin: 0; }
  .slbsr-n { flex: 1; min-width: 0; font-weight: 600; color: var(--slx-ink); }
  .slbsr-n small { display: block; overflow: hidden; font-size: 12.5px; font-weight: 400; color: var(--slx-ink2); white-space: nowrap; text-overflow: ellipsis; }
  .slbsr-t { flex: none; padding: 2px 8px; font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--slx-ok-i); background: var(--slx-ok-t); border-radius: 10px; }
  .slbsr-t.slbsr-tw { color: var(--slx-warn-i); background: var(--slx-warn-t); }
  .slbsr-pick > small { display: block; margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--slx-ink2); }
  .slbsr-sg { margin-left: auto; }
  .slbsr-ul { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--slx-warn-i); cursor: pointer; }
  .slbsr-ul input { width: 17px; height: 17px; margin: 0; }
  .slbsr-f { display: flex; justify-content: flex-end; margin: 10px 0 0; }
  @media (max-width: 560px) { .slbsr-m > label { flex: 1 1 auto; text-align: center; } .slbsr-f .slx-btn { width: 100%; } }
}

/* project evaluation chips of a book (svy_book_badge of svy_inc.php, 2026-11-21): slb_ux.js moves them into the pills of the card */
@media screen {
  .slx-pills a.slx-pill.slx-pill-svy { color: var(--slx-ink2); text-decoration: none; }
  .slx-pills a.slx-pill.slx-pill-svy:hover { text-decoration: underline; }
  .slx-pills a.slx-pill.slx-pill-svy.slx-pill-ok { color: var(--slx-ok-i); }
  .slx-pills a.slx-pill.slx-pill-svy.slx-pill-bad { color: var(--slx-bad-i); }
  .slx-pills a.slx-pill.slx-pill-svy.slx-pill-warn { color: var(--slx-warn-i); }
  .slx-pills a.slx-pill.slx-pill-svyw { color: var(--slx-info-i); background: transparent; border: 1px dashed currentColor; }
}
