/* osir.co.uk: Cyber Essentials / IT audit log books */
.lb-start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.lb-start-grid > .t-card + .t-card { margin-top: 0; }
.lb-recent { display: grid; gap: 8px; margin-top: 12px; }
.lb-recent-item { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.lb-recent-item:hover { border-color: var(--brand-1); }
.lb-file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lb-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.lb-bar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lb-bar h2 { font-size: 18px; font-weight: 800; }
.lb-bar .t-small { margin-top: 2px; }
.lb-bar .t-actions { margin-top: 0; }
.lb-progress { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; width: min(260px, 60vw); }
.lb-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s var(--ease); }
.lb-panel { margin-top: 12px; }

.lb-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.lb-nav { position: sticky; top: calc(var(--header-h) + 96px); display: grid; gap: 2px; padding: 8px; max-height: calc(100vh - var(--header-h) - 110px); overflow-y: auto; }
.lb-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.lb-nav-item:hover { background: var(--surface-2); }
.lb-nav-item.is-active { background: color-mix(in srgb, var(--brand-1) 12%, transparent); color: var(--text); }
.lb-nav-item b { display: block; font-size: 14px; font-weight: 650; }
.lb-nav-item small { display: block; font-size: 12px; color: var(--muted); }
.lb-nav-item.is-extra b { font-weight: 500; }
.lb-nav-report { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; font-weight: 750; color: var(--brand-1); }
.lb-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.lb-dot.d-ok { background: #0ca30c; }
.lb-dot.d-warn { background: #d99000; }
.lb-dot.d-bad { background: #d03b3b; }
.lb-nav-select { display: none; }

.lb-main { min-width: 0; }
.lb-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lb-q { margin-top: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); border-left: 4px solid var(--border-strong); scroll-margin-top: 140px; }
.lb-q.s-ok { border-left-color: #0ca30c; }
.lb-q.s-warn, .lb-q.s-review { border-left-color: #d99000; }
.lb-q.s-fail, .lb-q.s-autofail { border-left-color: #d03b3b; }
.lb-q.lb-flash { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 40%, transparent); }
.lb-q-head { display: flex; align-items: flex-start; gap: 10px; }
.lb-qid { flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 2px; min-width: 52px; }
.lb-qt { flex: 1; font-weight: 650; font-size: 15.5px; }
.lb-q-status { flex: none; }
.lb-help { margin: 6px 0 0 62px; font-size: 13.5px; color: var(--muted); }
.lb-tip { margin: 6px 0 0 62px; font-size: 13.5px; }
.lb-tip summary { cursor: pointer; color: var(--brand-1); font-weight: 650; }
.lb-tip p { margin-top: 6px; color: var(--text-2); }
.lb-yn, .lb-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 62px; }
.lb-choice { flex-direction: column; align-items: flex-start; }
.lb-opt { display: inline-flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-solid); cursor: pointer; font-size: 14.5px; }
.lb-opt input { margin-top: 3px; accent-color: var(--brand-1); }
.lb-opt:has(input:checked) { border-color: var(--brand-1); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-1) 20%, transparent); }
.lb-text { margin: 10px 0 0 62px; width: calc(100% - 62px); }
.lb-notes { margin: 10px 0 0 62px; }
.lb-notes summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--muted); }
.lb-notes textarea { margin-top: 6px; min-height: 70px; }
.lb-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

.lb-report h2 { font-size: 22px; font-weight: 800; }
.lb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lb-tile { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); border-top: 4px solid var(--border-strong); }
.lb-tile.t-ok { border-top-color: #0ca30c; }
.lb-tile.t-warn { border-top-color: #d99000; }
.lb-tile.t-bad { border-top-color: #d03b3b; }
.lb-tile span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lb-tile b { display: block; font-size: 24px; font-weight: 850; }
.lb-rh { font-size: 16px; font-weight: 800; margin-top: 22px; }
.lb-rlist { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 8px; }
.lb-rlist li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.lb-ritem { display: flex; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
button.lb-ritem:hover span:last-child { text-decoration: underline; }
.lb-rlist p { margin: 4px 0 0 62px; }
.lb-report .barlist { margin-top: 10px; list-style: none; padding: 0; }
.lb-disclaimer { margin-top: 20px; }
.lb-print { display: none; }

@media (max-width: 900px) {
  .lb-start-grid, .lb-layout { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
  .lb-nav-select { display: block; margin-top: 12px; }
  .lb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lb-help, .lb-tip, .lb-yn, .lb-choice, .lb-notes, .lb-rlist p { margin-left: 0; }
  .lb-text { margin-left: 0; width: 100%; }
  .lb-q-head { flex-wrap: wrap; }
  .lb-qid { min-width: 0; }
  .lb-bar { position: static; }
}

@media print {
  body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .ambient, .tool-hero, .tool-info, .related, .skip, #lb-start, #lb-app, .t-toast { display: none !important; }
  .lb-print { display: block !important; font-size: 10.5pt; }
  .lb-print h1 { font-size: 18pt; margin-bottom: 8px; }
  .lb-print .lb-report { break-after: page; }
  .lb-print .t-verdict { border: 1px solid #999; }
  .lb-p-sec { font-size: 14pt; margin: 18px 0 6px; border-bottom: 2px solid #333; break-after: avoid; }
  .lb-p-q { padding: 6px 0; border-bottom: 1px solid #ddd; break-inside: avoid; }
  .lb-p-head { display: flex; justify-content: space-between; gap: 12px; }
  .lb-p-st { flex: none; font-size: 9pt; font-weight: 700; }
  .lb-p-st.st-fail, .lb-p-st.st-autofail { color: #b91c1c; }
  .lb-p-st.st-warn, .lb-p-st.st-review { color: #a16207; }
  .lb-p-st.st-ok { color: #15803d; }
  .lb-p-a { margin-top: 3px; white-space: pre-wrap; }
  .lb-p-n { margin-top: 3px; white-space: pre-wrap; color: #444; font-size: 9.5pt; }
}
