/* Flight Ops Cockpit — company manuals (3.1.26). Theme tokens only; responsive.css stays last. */
#nav button[data-screen="manuals"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111820' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5'/%3E%3Cpath d='M9 7h7M9 10.5h5'/%3E%3C/svg%3E")}
.mn-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.mn-meta b { color: inherit; }
.mn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-actions .btn { min-height: 48px; padding: 10px 18px; font-weight: 900; }
.mn-progress { margin-top: 12px; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.mn-progress.hidden { display: none; }
.mn-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mn-bar i { display: block; height: 100%; width: 0; background: var(--gold, #b7923f); transition: width .2s; }
.mn-msg { margin-top: 10px; font-size: 13px; font-weight: 800; }
.mn-msg.warn { color: var(--warn, #b56d0a); }
.mn-msg.ok { color: var(--ok, #228a57); }
.mn-filter { width: 100%; min-height: 46px; margin-bottom: 8px; }
.mn-group { margin: 14px 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #8a6a1f); }
.mn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mn-row-text { display: grid; gap: 2px; min-width: 0; }
.mn-row-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-row-text small { color: var(--muted); font-size: 12px; }
.mn-state { font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--muted); white-space: nowrap; }
.mn-state.ok { background: rgba(34,138,87,.12); color: var(--ok, #228a57); }
.mn-state.bad { background: rgba(181,40,40,.12); color: var(--bad, #b52828); }
.mn-row-actions { display: flex; gap: 6px; }
.mn-row-actions .btn { min-height: 44px; padding: 8px 14px; font-weight: 900; }
.mn-x { min-width: 44px; padding: 8px 10px !important; }
.mn-empty { padding: 18px 4px; color: var(--muted); }
body.night-mode .mn-state { background: rgba(255,255,255,.06); }

/* 3.1.89 — the library as its folder tree */
.mn-tree-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.mn-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mn-crumb b { font-size: 16px; }
.mn-crumb small { color: var(--muted); font-size: 12px; }
.mn-tree-tools { display: flex; gap: 6px; }
.mn-tree-tools .btn { min-height: 40px; padding: 6px 12px; font-weight: 900; font-size: 12px; }
.mn-ico { display: inline-flex; flex: 0 0 auto; width: 22px; height: 22px; }
.mn-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--gold, #b7923f); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.mn-ico svg path:first-child { fill: rgba(183,146,63,.16); }
.mn-ico.doc svg { stroke: var(--muted); }
.mn-ico.doc svg path:first-child { fill: none; }
.mn-folder { border-top: 1px solid var(--line); }
.mn-folder > summary { list-style: none; display: grid; grid-template-columns: 18px 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mn-folder > summary::-webkit-details-marker { display: none; }
.mn-chev { font-size: 22px; font-weight: 900; line-height: 1; color: var(--muted); transition: transform .15s; text-align: center; }
.mn-folder[open] > summary .mn-chev { transform: rotate(90deg); }
.mn-fname { display: grid; gap: 2px; min-width: 0; }
.mn-fname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mn-fname small { color: var(--muted); font-size: 12px; }
.mn-fcount { font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; }
.mn-fcount.ok { background: rgba(34,138,87,.12); color: var(--ok, #228a57); }
.mn-fcount.warn { background: rgba(183,146,63,.16); color: var(--gold, #8a6a1f); }
.mn-fget { min-height: 40px !important; padding: 6px 12px !important; font-weight: 900; font-size: 12px; }
.mn-children { margin-left: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.mn-tree > .mn-row, .mn-children > .mn-row { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.mn-where { color: var(--gold, #8a6a1f); font-weight: 800; }
body.night-mode .mn-ico svg path:first-child { fill: rgba(183,146,63,.22); }
@media (max-width: 699px) {
  .mn-folder > summary { grid-template-columns: 18px 22px minmax(0, 1fr) auto; }
  .mn-folder > summary .mn-fcount { display: none; }
  .mn-children { margin-left: 4px; padding-left: 10px; }
  .mn-tree > .mn-row, .mn-children > .mn-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .mn-tree .mn-row .mn-state { grid-column: 3; grid-row: 1; }
}

.mn-viewer { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #2a2e33; }
body.mn-viewing { overflow: hidden; }
.mn-vbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: #07090a; color: #fff; flex-wrap: wrap; }
.mn-vbar .btn { min-height: 44px; padding: 8px 14px; font-weight: 900; }
.mn-vtitle { display: grid; min-width: 0; flex: 1 1 200px; }
.mn-vtitle b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff !important; }
.mn-vtitle small { color: #a9a39a; }
.mn-vpage { display: flex; align-items: center; gap: 6px; color: #e9e3d3; font-weight: 800; font-size: 13px; }
.mn-vpage input { width: 64px; min-height: 40px; text-align: center; }
.mn-vwarn { padding: 10px 14px; background: #b52828; color: #fff; font-weight: 900; font-size: 13px; }
.mn-vbody { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.mn-vpages { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min-content; padding: 0 8px; }
.mn-page { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex: 0 0 auto; }
.mn-page > span { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); color: #bbb; font-weight: 900; }
.mn-page canvas { display: block; position: relative; }
.mn-vpages .mn-empty { color: #ddd; }
@media (max-width: 699px) {
  .mn-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mn-row .mn-state { grid-column: 2; grid-row: 1; }
  .mn-row-actions { grid-column: 1 / -1; }
  .mn-row-actions .btn:not(.mn-x) { flex: 1 1 auto; }
  .mn-vtitle { flex-basis: 100%; order: -1; }
}
