/* Live tools: Foundation, Layers, Catalog, Security Lab, homes, renders */
.lt-wait { display: flex; align-items: center; gap: 10px; padding: 24px 4px; color: var(--muted); font-size: 14px; }
.lt-bad { display: grid; gap: 6px; } .lt-bad b { color: var(--text); } .lt-bad .row-a { justify-content: flex-start; }
.lt-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.lt-back:hover { color: var(--text); } .lt-back svg { width: 15px; height: 15px; }
.lt-link { color: inherit; } .lt-link:hover b { color: var(--amber-ink); }
a.ag-c.lt-link svg { color: var(--faint); }
.lt-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--r); border: 1px solid var(--line2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.lt-tag.ok { color: var(--ok); border-color: rgba(var(--ok-a),.4); } .lt-tag.hi { color: var(--amber-ink); border-color: rgba(var(--amber-a),.5); } .lt-tag.muted { color: var(--faint); }
.lt-mono { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lt-id { display: block; color: var(--faint); font-size: 10.5px; }
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; }
.lt-inl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lt-inl .in { height: 34px; padding: 5px 10px; }
.lt-block { display: grid; gap: 5px; margin: 14px 0 8px; } .lt-block .in { width: 100%; }
.lt-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.lt-inline .in { height: 34px; padding: 5px 10px; min-width: 0; }
.ag-c .lt-inline { margin: 0; flex-wrap: nowrap; }
.lt-q { height: 34px; padding: 5px 10px; flex: 1; min-width: 160px; }
.lt-qty { width: 72px; height: 30px; padding: 4px 8px; }
.lt-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.lt-chk input { accent-color: var(--amber); }
.lt-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }
.lt-pager .btn:disabled { opacity: .45; cursor: default; }
.lt-tabs { margin-bottom: 18px; }
.lt-scroll { overflow-x: auto; }
.lt-tab td { vertical-align: top; } .lt-tab td small { display: block; color: var(--muted); font-size: 12.5px; }
.lt-tab td.lt-acts, .lt-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.lt-click { cursor: pointer; } .lt-click:hover td { background: var(--hover); }
.lt-place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.lt-place span { display: inline-flex; align-items: center; gap: 5px; } .lt-place i { font-style: normal; color: var(--faint); }
.lt-od { white-space: nowrap; } .lt-od .btn { margin-left: 8px; }
.lt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lt-cols h3 em { font-style: normal; margin-left: 6px; }
.lt-layer { padding: 9px 12px; }
.lt-pad { padding: 8px 12px; }
.lt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-color { height: 40px; padding: 4px; width: 100%; cursor: pointer; }
.lt-map { display: grid; gap: 8px; max-height: 40vh; overflow-y: auto; }
.lt-map .lt-inl { justify-content: space-between; } .lt-map .in { width: 60%; }
#genSheet:has(#ltF) { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* thumbnails: library art is white, so tone it to the text color */
.lt-th { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.lt-th img { width: 75%; height: 75%; object-fit: contain; }
.lt-th.tone img { filter: brightness(0) invert(.93); }
:root[data-theme="light"] .lt-th.tone img { filter: brightness(0); }
.lt-th.lg { width: 52px; height: 52px; } .lt-th.sm { width: 22px; height: 22px; }
.lt-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.lt-lib { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.lt-lib:hover { border-color: rgba(var(--amber-a),.5); }
.lt-lib .grow { flex: 1; min-width: 0; } .lt-lib small { display: block; color: var(--muted); font-size: 12px; }
.lt-sw { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1px solid var(--line2); }
.lt-libh { align-items: center; } .lt-libh > span { min-width: 200px; }
.lt-cat { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.lt-cat-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lt-cat-h .grow { flex: 1; min-width: 120px; } .lt-cat-h small { display: block; color: var(--muted); font-size: 12px; }
.lt-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 10px 12px; }
.lt-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r); background: var(--bg2); font-size: 13.5px; }
.lt-item .grow { flex: 1; min-width: 0; } .lt-item b { font-weight: 600; } .lt-item small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-imgs { display: flex; gap: 8px; }

/* security lab */
.lt-aud { margin: -10px 0 16px; }
.lt-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.lt-fac { max-height: 70vh; overflow-y: auto; }
.lt-facr { padding: 10px 8px; border-radius: var(--r); }
.lt-facr.on { background: var(--hover); box-shadow: inset 2px 0 0 var(--amber); }
.lt-na { font-size: 12px; letter-spacing: 1px; color: var(--faint); }
.lt-score h2 { font-size: 20px; letter-spacing: -.01em; }
.lt-score > small { color: var(--muted); }
.lt-cap { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.lt-srow { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.lt-stars { display: inline-flex; gap: 2px; color: var(--faint); } .lt-stars svg { width: 17px; height: 17px; }
.lt-left { justify-content: flex-start; margin: 4px 0 12px; }
.lt-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lt-metric { display: grid; gap: 2px; padding: 9px 10px; border-radius: var(--r); background: var(--bg2); font-size: 13px; }
.lt-metric em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* homes */
.lt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.lt-big { font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.lt-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mc.lt-dis { opacity: .55; cursor: not-allowed; }
a.mc.lt-link:hover { border-color: rgba(var(--amber-a),.5); }

/* renders */
.lt-render { align-items: flex-start; flex-wrap: wrap; }
.lt-steps { display: flex; gap: 6px; list-style: none; margin-top: 8px; flex-wrap: wrap; }
.lt-steps li { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: var(--r); border: 1px solid var(--line2); color: var(--faint); }
.lt-steps li.on { color: var(--ink); background: var(--amber); border-color: var(--amber); }

/* menus: disabled entries, like the core sidebar */
.tools-pop a.lt-dis, .r-row.lt-dis { opacity: .5; cursor: not-allowed; }

/* asset viewer sheet */
.lt-vsheet { width: min(1100px, 100%); height: min(760px, calc(100dvh - 32px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.lt-vh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lt-vh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-vh .x { position: static; }
.lt-vb { flex: 1; min-height: 0; background: var(--canvas); }
.lt-vb iframe { width: 100%; height: 100%; border: 0; display: block; }
.lt-vb .lt-wait { padding: 24px; }

@media (max-width: 760px) {
  .lt-cols, .lt-sec, .lt-grid2, .lt-metrics { grid-template-columns: 1fr; }
  .lt-od { white-space: normal; }
  .lt-map .in { width: 55%; }
}
