/* The toolbar's ⋯ "More" menu (site/apps/toolbar.js) for every viewer that uses overflowBar: one copy, imported by each
   app.css (after ../viewer.css where an app uses it). */
.ul-more[hidden],.ul-more-pop[hidden]{display:none!important}
.ul-more{flex:0 0 auto;min-width:44px;min-height:44px;justify-content:center}
.ul-more-pop{position:fixed;z-index:70;display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:210px;max-width:calc(100vw - 16px);max-height:calc(100vh - 24px);overflow:auto;padding:6px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.ul-more-pop>button,.ul-more-pop>label,.ul-more-pop>a{width:100%;justify-content:flex-start;min-height:44px;gap:10px;padding:0 12px;white-space:nowrap}
.ul-more-pop button span,.ul-more-pop label span{display:inline!important}
.ul-more-pop>[role=group],.ul-more-pop>div{display:flex;flex-wrap:wrap;gap:4px;border:0;margin:0;padding:2px 0}
.ul-more-pop>[role=group]>button{min-height:44px;flex:1 1 auto}
/* Simple shell (ops/UX-SIMPLE.md), one copy for every viewer that links this file: before a file the toolbar is hidden
   (the drop card is the only thing to do); the link box folds under one quiet line; the answer block (.ul-ans: the key
   numbers big and plain, then one next step); "Details" / "Adjust" foldouts (.ul-fold); a tap hint that goes away (.ul-tip). */
.ul-app:not(.ul-loaded) :is(.ul-bar,.ul-side){display:none!important}
.ul-app:not(.ul-loaded) .ul-body{grid-template-columns:minmax(0,1fr)!important}
.ul-sample{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.2}
.ul-sample small{font-size:12px;font-weight:400;color:var(--muted);max-width:260px;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}   /* wraps to 2 lines (polish REGISTER §1), no mid-name ellipsis */
.ul-link{max-width:440px;margin:0 auto}
.ul-link>summary{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;cursor:pointer;list-style:none;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.ul-link>summary::-webkit-details-marker{display:none}
.ul-link[open]>summary{display:none}
.ul-ans{display:flex;flex-direction:column;gap:2px;margin:0 0 10px}
.ul-ans-k{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.ul-ans-v{font-size:26px;font-weight:750;line-height:1.15;color:var(--ink);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ul-ans-v.ul-hl{color:var(--accent-text)}
.ul-ans-s{font-size:13.5px;color:var(--muted)}
.ul-ans-s.ok{color:var(--ok)}
.ul-ans-s.warn{color:var(--warn)}
.ul-ans+.ul-ans{margin-top:4px}
.ul-next{width:100%;margin:6px 0 2px;min-height:46px;justify-content:center}
.ul-fold{border-top:1px solid var(--line);margin-top:10px}
.ul-fold>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600;font-size:14px;list-style:none;gap:6px}
.ul-fold>summary::-webkit-details-marker{display:none}
.ul-fold>summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin:0 4px 0 2px;transition:transform .15s}
.ul-fold[open]>summary::before{transform:rotate(45deg)}
.ul-tip{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:6;max-width:min(92%,420px);background:var(--ink);color:var(--bg);font-size:13.5px;line-height:1.35;padding:8px 14px;border-radius:999px;text-align:center;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.ul-tip[hidden]{display:none}
/* Answer bar of the file apps (mail, DICOM, PDF tables, e-invoice, drawing compare, sticker, RAL; appui.js answerHTML):
   one row on top of the result with the answer in plain words, the one next step (.ul-go) and a "More" menu
   (details.ul-more-d, placed by appui.js wireMore) holding every other action. */
.ul-answer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--card)}
.ul-answer[hidden]{display:none}
.ul-answer-t{flex:1 1 260px;min-width:0;margin:0;font:650 20px/1.25 var(--sans);color:var(--ink)}
.ul-answer-t small{display:block;margin-top:3px;font:400 14px/1.4 var(--sans);color:var(--muted)}
.ul-answer-t .ok{color:var(--ok)}
.ul-answer-t .bad{color:var(--warn)}
.ul-answer-go{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ul-go{min-height:44px;font-weight:650}
.ul-more-d{position:relative}
.ul-more-d>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:14px;font-weight:600;user-select:none}
.ul-more-d>summary::-webkit-details-marker{display:none}
.ul-more-d>summary:hover{background:var(--bg2)}
.ul-more-d[open]>summary{background:var(--accent-bg);color:var(--accent-text)}
.ul-more-d .ul-more-pop>button,.ul-more-d .ul-more-pop>label,.ul-more-d .ul-more-pop>a{display:flex;align-items:center;border:0;background:transparent;border-radius:8px;text-align:left;color:var(--ink);text-decoration:none;font-size:14px}
.ul-more-d .ul-more-pop>:hover{background:var(--bg2)}
.ul-more-d .ul-more-pop>[hidden]{display:none}
.ul-more-d .ul-more-pop hr{border:0;border-top:1px solid var(--line);margin:4px 0;width:100%}
@media (max-width:600px){.ul-answer{padding:10px 12px}.ul-answer-t{font-size:18px;flex-basis:100%}.ul-answer-go{flex:1 1 100%}.ul-answer-go .ul-go{flex:1 1 auto}}
