.ls {
  --ls-line: #644779;
  --ls-muted: #c5afd8;
  max-width: 1680px;
  margin: auto;
  color: #f6f0ff;
  font: 14px/1.55 system-ui, sans-serif;
}
.ls * { box-sizing: border-box; }
.ls [hidden] { display: none !important; }
.ls-hero { padding: 28px 30px; margin-bottom: 22px; border: 1px solid #72528b; border-radius: 22px; background: radial-gradient(ellipse at top right, #453063, transparent 70%), #24172f; }
.ls-brand { display: flex; gap: 18px; align-items: center; }
.ls h1 { margin: 4px 0 !important; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.2; }
.ls h1 img[data-tool-icon] { display: none !important; }
.ls-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .14em; color: #d4aff6; }
.ls-hero p { margin: 16px 0 0; max-width: 860px; color: var(--ls-muted); }
.ls-desk { border: 1px solid var(--ls-line); border-radius: 18px; overflow: hidden; background: #191121; }
.ls-toolbar, .ls-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 20px; background: #2d1c39; }
.ls-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ls button, .ls-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 10px 13px; border: 1px solid #8a639d; border-radius: 8px; background: #392448; color: #f8f0ff; font: 600 12px/1.4 system-ui; cursor: pointer; }
.ls button:hover, .ls-button:hover { border-color: #c99bef; background: #503064; }
.ls .ls-primary { background: #8750bd; border-color: #c793ee; }
.ls .ls-danger { color: #ffbbca; }
.ls button:disabled { opacity: .45; cursor: default; }
.ls input, .ls select, .ls textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #79598d; border-radius: 8px; background: #1b1127; color: #f4edfa; font: inherit; }
.ls textarea { resize: vertical; }
.ls label { display: grid; gap: 7px; font-size: 12px; color: var(--ls-muted); }
.ls button:focus-visible, .ls input:focus-visible, .ls select:focus-visible, .ls textarea:focus-visible, .ls summary:focus-visible, .ls-button:focus-within { outline: 3px solid #e1b9ff; outline-offset: 2px; }
.ls-recording { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; padding: 18px 20px; }
.ls-recording label { flex: 1; min-width: 200px; }
.ls-recording > span { align-self: center; font-size: 11px; color: var(--ls-muted); }
.ls-metrics { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); border-block: 1px solid var(--ls-line); }
.ls-metrics > div { padding: 18px 24px; border-right: 1px solid #51365f; }
.ls-metrics > div:first-child { background: linear-gradient(110deg, #442756, #281a36); }
.ls-metrics strong { display: block; font-size: 28px; color: #d6adff; }
.ls-metrics span { display: block; color: var(--ls-muted); font-size: 11px; }
.ls h2 { margin: 0 !important; font-size: 17px; }
.ls h3 { margin: 0; font-size: 14px; }
.ls-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.ls-heading > label { min-width: 210px; }
.ls-timeline-section, .ls-events, .ls-inspector { padding: 22px; border-bottom: 1px solid var(--ls-line); }
.ls-timeline-section { background: linear-gradient(135deg, #261833, #191120); }
.ls-timeline { height: 190px; position: relative; margin: 12px 12px 0; border-bottom: 1px solid #74528b; background: repeating-linear-gradient(to top, transparent 0 39px, #69477b33 39px 40px); }
.ls-window-band { position: absolute; top: 0; bottom: 0; border: 1px dashed #a476ca; border-radius: 7px 7px 0 0; background: #9150be12; pointer-events: none; }
.ls-window-band.is-worst { background: #a873d52b; border-color: #d7a5ff; }
.ls .ls-mark { display: block !important; position: absolute; bottom: 26px; width: 10px; min-width: 10px; min-height: 6px; padding: 0; border-radius: 4px 4px 0 0; background: #6cd0c4; border-color: #8defde; transform: translateX(-50%); }
.ls .ls-mark.is-worst { background: #b37ae9; border-color: #e6b6ff; }
.ls .ls-mark.is-input { background: #bd9854; border-color: #e5bd7b; }
.ls .ls-mark.is-selected { outline: 3px solid #f3e9ff; outline-offset: 3px; z-index: 2; }
.ls-tick { position: absolute; bottom: 2px; font-size: 10px; color: var(--ls-muted); transform: translateX(-50%); }
.ls-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--ls-muted); }
.ls-legend span { display: inline-flex; gap: 7px; align-items: center; }
.ls-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.ls-purple { background: #b37ae9; }
.ls-teal { background: #6cd0c4; }
.ls-amber { background: #bd9854; }
.ls-help { color: var(--ls-muted); font-size: 11px; line-height: 1.65; margin: 10px 0 0; }
.ls-search { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ls-search input { max-width: 480px; }
.ls-search span, .ls-pagination { color: var(--ls-muted); font-size: 11px; }
.ls .ls-inline { display: flex; align-items: center; gap: 8px; }
.ls-table-wrap { overflow: auto; border: 1px solid #50335f; border-radius: 10px; }
.ls table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: 12px; }
.ls th { background: #30203c; padding: 12px 14px; font-size: 11px; color: #d7bde7; }
.ls td { border-top: 1px solid #4c325c; padding: 10px 14px; }
.ls td:nth-child(3) { max-width: 470px; overflow-wrap: anywhere; }
.ls tr.is-selected { background: #412651; }
.ls td button { min-height: 30px; padding: 4px 8px; background: transparent; color: #d9b2fd; }
.ls-pagination { display: flex; justify-content: end; align-items: center; gap: 12px; margin-top: 12px; }
.ls-inspector { background: #25182f; }
.ls-inspector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.ls-inspector form { display: grid; gap: 13px; align-content: start; min-width: 0; }
.ls-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ls-movement { padding: 16px; border: 1px solid #664678; border-radius: 12px; min-width: 0; background: #1a1125; height: auto; align-self: stretch; }
.ls-movement select { max-width: 240px; font-size: 11px; }
.ls-movement svg { display: block; width: 100%; height: 230px; border: 1px solid #533764; border-radius: 8px; background: #2b1b38; }
.ls-attachments { margin-top: 16px; border-top: 1px solid #664678; padding-top: 14px; }
.ls summary { cursor: pointer; font-weight: 650; }
.ls summary > span { margin-left: 8px; font-size: 11px; color: var(--ls-muted); font-weight: 400; }
.ls-attachments .ls-pair { padding-top: 14px; }
.ls-attachments img { width: 100%; max-height: 260px; object-fit: contain; background: #180f21; border-radius: 8px; }
.ls-source-summary { padding: 20px 22px; }
.ls-source-summary > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ls-group { background: #2a1b35; border: 1px solid #604174; border-radius: 9px; padding: 12px; overflow-wrap: anywhere; }
.ls-group strong { display: block; color: #e1bfff; font-size: 12px; }
.ls-group p { margin: 5px 0; color: var(--ls-muted); font-size: 11px; }
.ls-footer { border-top: 1px solid var(--ls-line); }
.ls-footer > p { flex: 1; min-width: 220px; font-size: 12px; margin: 0; }
.ls [data-error=true] { color: #ffb4c7; }
.ls-capture, .ls-guide { padding: 24px; margin-top: 24px; border: 1px solid #5d4071; border-radius: 16px; background: #21162c; }
.ls-capture p, .ls-guide p { color: var(--ls-muted); font-size: 12px; }
.ls-capture pre { max-height: 270px; overflow: auto; padding: 16px; font: 11px/1.7 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: #130d1b; }
.ls-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-left: 20px; }
.ls-guide a { color: #d3a4ff; }
.ls-focus { position: fixed !important; inset: 0; z-index: 9999; overflow: auto !important; border-radius: 0 !important; }
@media (max-width: 1000px) {
  .ls-movement select { max-width: 180px; }
  .ls-metrics > div { padding: 16px; }
}
@media (max-width: 760px) {
  .ls-hero { padding: 20px; }
  .ls-brand { gap: 12px; }
  .ls-brand img { width: 48px; height: 48px; }
  .ls-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-inspector-grid { grid-template-columns: 1fr; }
  .ls-timeline-section, .ls-events, .ls-inspector { padding: 16px; }
  .ls-heading > label { width: 100%; }
  .ls-pair { grid-template-columns: 1fr; }
  .ls-search { flex-wrap: wrap; }
  .ls-source-summary > div, .ls-guide ol { grid-template-columns: 1fr; }
  .ls-guide ol { gap: 14px; }
  .ls-movement select { max-width: 100%; }
}
