.lv { --lv-ink: var(--text); --lv-dim: var(--dim); --lv-faint: rgba(14, 26, 43, 0.36);
      --lv-red: #B3261E; --lv-amber: #8A5A00; --lv-green: #127A4E; --lv-blue: #2457B8; --lv-violet: #8E3AA8;
      --lv-teal: #15775C; --lv-bg: #FFFFFF; --lv-bg2: #F6F8FA;
      --lv-c-error: #E5534B; --lv-c-warn: #F0A63A; --lv-c-info: #5DBE9F; --lv-c-ok: #2FA67F; --lv-c-debug: #C3CAD3;
      display: block; min-width: 0; }
.lv-h { margin: 26px 0 10px; font: 600 14px/1.3 var(--font-display); color: var(--text); }
.lv-h:first-child { margin-top: 0; }
.lv-machines { display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
               background: var(--bg-soft); font-size: 12.5px; line-height: 1.45; }
.lv-machines[hidden] { display: none; }
.lv-mach { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.lv-mach-n { flex: none; font-weight: 600; color: var(--text); }
.lv-mach-d { min-width: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-mach-more { justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit;
                font-weight: 600; color: var(--t700); cursor: pointer; }
.lv-mach-more:hover { text-decoration: underline; }
.lv-mach-more:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.lv-err { margin: 0 0 10px; color: var(--red); }
.lv-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0 0 12px; padding: 0; list-style: none; }
.lv-steps-head { margin: 0; }
.lv-steps[hidden] { display: none; }
@media (max-width: 760px) {
  .lv-steps-head { gap: 6px; }
  .lv-steps-head .lv-step { flex: 0 0 auto; gap: 5px; padding: 3px 9px 3px 4px; background: var(--bg-soft); font-size: 12px;
    white-space: nowrap; }
  .lv-steps-head .lv-step + .lv-step::before { display: none; }
  .lv-steps-head .lv-dur { display: none; }
  .lv-steps-head .lv-step-pick { padding: 0; }
  .lv-steps-head .lv-step-go { gap: 5px; padding: 3px 9px 3px 4px; }
}
.lv-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 999px;
           font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); cursor: default; }
.lv-step + .lv-step::before { content: ""; width: 18px; height: 1px; margin: 0 4px 0 -12px; background: var(--line); }
.lv-step b { color: var(--text); font-weight: 600; }
.lv-dur { color: var(--dim); font-variant-numeric: tabular-nums; }
.lv-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--t500); }
.lv-done .lv-dot::after { content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lv-bad .lv-dot { background: var(--red); }
.lv-bad .lv-dot::after { content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m8 8 8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lv-bad .lv-dur { color: var(--red); }
.lv-cur .lv-dot { background: var(--amber); box-shadow: 0 0 0 0 rgba(150, 101, 10, 0.35); animation: lv-pulse 1.6s ease-out infinite; }
@keyframes lv-pulse { 70% { box-shadow: 0 0 0 7px rgba(150, 101, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(150, 101, 10, 0); } }
.lv-step:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.lv-step-pick { padding: 0; gap: 0; }
.lv-step + .lv-step-pick::before { margin: 0 4px 0 -4px; }
.lv-step-go { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; margin: 0; border: 0;
              border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer;
              transition: background 0.14s ease; }
.lv-step-go:hover { background: rgba(14, 26, 43, 0.05); }
.lv-step-go:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.lv-step-go:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.lv-step-go:active { background: rgba(14, 26, 43, 0.09); }
.lv-step-go.xp { cursor: pointer; text-decoration: none; }
.lv-step-go.xp:focus-visible { border-radius: 999px; }
.lv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.lv-top-l, .lv-top-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lv-span { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.lv-zone { padding: 2px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--muted);
           font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.lv-zone[hidden] { display: none; }
.lv-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-raised);
          box-shadow: var(--sh-1); }
.lv-sb { display: inline-grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 0; background: none;
         color: var(--text); cursor: pointer; transition: background-color 0.16s ease; }
.lv-sb + .lv-sb { border-left: 1px solid var(--line-soft); }
.lv-sb[hidden] { display: none; }
.lv-sb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
             stroke-linejoin: round; }
.lv-sb:hover { background: var(--bg-soft); }
.lv-sb:disabled { color: var(--lv-faint); cursor: default; background: none; }
.lv-sb:focus-visible { outline: 2px solid var(--t600); outline-offset: -2px; }
.lv-top.lv-off, .lv-hist.lv-off, .lv-bar.lv-off { opacity: 0.55; pointer-events: none; }
.lv-hist { position: relative; margin: 4px 0 10px; }
.lv-hist[hidden] { display: none; }
.lv-hist svg { display: block; overflow: visible; cursor: crosshair; user-select: none; touch-action: pan-y; }
.lv-hb-error { fill: var(--lv-c-error); }
.lv-hb-warn { fill: var(--lv-c-warn); }
.lv-hb-rest { fill: var(--lv-c-info); }
.lv-hist-axis { stroke: var(--line); stroke-width: 1; }
.lv-hist-n, .lv-hist-t { fill: var(--dim); font-family: var(--font-ui); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.lv-hist-sel { fill: var(--t500); opacity: 0.14; }
.lv-hist-drag { fill: var(--t500); opacity: 0.2; pointer-events: none; }
.lv-hist-tip { position: absolute; top: -4px; z-index: 3; padding: 4px 8px; border-radius: 7px; background: var(--text);
               color: #fff; font-family: var(--font-ui); font-size: 11.5px; line-height: 1.4; white-space: nowrap;
               pointer-events: none; transform: translateY(-100%); box-shadow: var(--sh-1); }
.lv-hist-tip[hidden] { display: none; }
.lv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.lv-dd[hidden] { display: none; }
.lv-find { position: relative; display: flex; align-items: center; gap: 2px; flex: 1 1 320px; min-width: 200px;
           height: 34px; padding: 0 4px 0 32px; border: 1px solid rgba(14, 26, 43, 0.2); border-radius: 10px; background: var(--bg);
           transition: border-color 0.16s ease, box-shadow 0.2s ease; }
.lv-find:hover { border-color: rgba(14, 26, 43, 0.34); }
.lv-find:focus-within { border-color: var(--t600); box-shadow: var(--focus-ring); }
.lv-find.lv-miss:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14); }
.lv-find > svg { position: absolute; left: 10px; top: 8.5px; width: 16px; height: 16px; fill: none; stroke: var(--dim);
                 stroke-width: 1.8; stroke-linecap: round; }
.lv-q { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0;
        font-family: var(--font-ui); font-size: 13px; color: var(--text); }
.lv-q::placeholder { color: rgba(14, 26, 43, 0.5); }
.lv-q::-webkit-search-cancel-button { display: none; }
.lv-count { padding: 0 6px; color: var(--dim); font-family: var(--font-ui); font-size: 12px; white-space: nowrap;
            font-variant-numeric: tabular-nums; }
.lv-miss .lv-count { color: var(--red); }

.lv-ib, .lv-tg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px;
                 border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); color: var(--text);
                 font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; cursor: pointer; box-shadow: var(--sh-1);
                 white-space: nowrap; transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.lv-find .lv-ib { width: 24px; height: 24px; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 6px; }
.lv-ib svg, .lv-tg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
                         stroke-linecap: round; stroke-linejoin: round; }
.lv-ib:hover, .lv-tg:hover { background: var(--bg-soft); }
.lv-ib:disabled { color: var(--lv-faint); cursor: default; background: none; }
.lv-act { width: 34px; padding: 0; }
.lv-ib[hidden] { display: none; }
.lv-tg[aria-pressed="true"] { background: var(--t50); border-color: var(--t300); color: var(--t800); }
.lv-ib:focus-visible, .lv-tg:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--t600); }
.lv-tg[hidden] { display: none; }
.lv-panel { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--lv-bg);
            box-shadow: 0 0 0 1px var(--line-soft), var(--sh-1); color: var(--lv-ink);
            font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; --lv-lh: 24px; }
.lv-thead { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 14px;
            border-bottom: 1px solid var(--line-soft); background: var(--lv-bg2);
            font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--muted); }
.lv-th-t { flex: 0 0 var(--lv-head, 0px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lv-th-c { flex: 1 1 auto; }
.lv-th-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lv-th-r .lv-ib { width: 30px; height: 30px; border-color: transparent; background: none; box-shadow: none; }
.lv-th-r .lv-ib:hover { background: rgba(14, 26, 43, 0.06); }
.lv-scroll { position: relative; overflow: auto; max-height: min(66vh, 720px); max-height: min(calc(var(--vh, 1vh) * 0.66), 720px);
             min-height: 72px; outline: none; overscroll-behavior: contain; padding: 4px 0;
             scrollbar-width: thin; scrollbar-color: rgba(14, 26, 43, 0.22) transparent; }
.lv-scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--t500); }
.lv-scroll::-webkit-scrollbar { width: 11px; height: 11px; }
.lv-scroll::-webkit-scrollbar-thumb { background: rgba(14, 26, 43, 0.18); border: 3px solid transparent; border-radius: 9px;
                                      background-clip: padding-box; }
.lv-scroll::-webkit-scrollbar-corner { background: transparent; }
.lv-canvas { position: relative; min-width: 100%; }
.lv-win { position: absolute; top: 0; left: 0; right: 0; padding-bottom: 0; }
.lv-probe { position: absolute; top: 0; left: -20000px; visibility: hidden; white-space: pre; pointer-events: none; }
.lv-panel ::selection { background: rgba(61, 189, 151, 0.26); }
.lv-row { display: grid; grid-template-columns: 18px var(--lv-tw, 0) var(--lv-sw, 0) minmax(0, 1fr);
          align-items: start; min-height: 24px; padding: 2px 14px; }
.lv-row:hover { background: rgba(14, 26, 43, 0.025); }
.lv-d { position: relative; height: 20px; }
.lv-d::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 2px;
                background: var(--lv-c-info); }
.lv-error .lv-d::before { background: var(--lv-c-error); }
.lv-warn .lv-d::before { background: var(--lv-c-warn); }
.lv-ok .lv-d::before { background: var(--lv-c-ok); }
.lv-debug .lv-d::before { background: var(--lv-c-debug); }
.lv-json .lv-d::before { display: none; }
.lv-t, .lv-s { overflow: hidden; white-space: nowrap; user-select: none; }
.lv-t { padding-right: 1.6ch; color: var(--lv-dim); font-variant-numeric: tabular-nums; }
.lv-s { padding-right: 1ch; color: var(--muted); text-overflow: ellipsis; }
.lv-no-t .lv-t, .lv-no-s .lv-s { padding: 0; }
.lv-s.lv-benchmark { color: #0B7285; }
.lv-s.lv-policy { color: #9A5B2E; }
.lv-x { white-space: pre; }
.lv-wrap .lv-x { white-space: pre-wrap; word-break: break-all; }
.lv-error { background: #FFF6F5; }
.lv-error:hover { background: #FFEFED; }
.lv-error .lv-x { color: var(--lv-red); }
.lv-ok .lv-x { color: var(--lv-green); }
.lv-dim { color: var(--lv-dim); }
.lv-k { color: var(--lv-blue); }
.lv-v { color: var(--lv-ink); }
.lv-ev { color: var(--lv-teal); font-weight: 600; }
.lv-num { color: var(--lv-amber); }
.lv-good { color: var(--lv-green); }
.lv-bad { color: var(--lv-red); }
.lv-jk { color: var(--lv-blue); }
.lv-js { color: var(--lv-green); }
.lv-jb { color: var(--lv-violet); }
.lv-json .lv-x { box-shadow: inset 2px 0 0 rgba(18, 122, 78, 0.28); padding-left: 12px; }
.lv-json { background: rgba(18, 122, 78, 0.03); }

.lv-hit { background: rgba(240, 166, 58, 0.32); color: inherit; border-radius: 2px; }
.lv-hit.lv-cur { background: #F0A63A; color: #fff; box-shadow: 0 0 0 1px #F0A63A; }
.lv-fold { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 18px; margin: 0 4px 0 -2px;
           padding: 0; border: 0; border-radius: 4px; background: none; color: var(--lv-dim); vertical-align: top; cursor: pointer; }
.lv-fold svg, .lv-sec svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
                            stroke-linejoin: round; transition: transform 0.14s ease; }
.lv-fold[aria-expanded="true"] svg, .lv-sec[aria-expanded="true"] svg { transform: rotate(90deg); }
.lv-fold:hover { background: rgba(14, 26, 43, 0.07); color: var(--lv-ink); }
.lv-more { margin-left: 10px; padding: 0 7px; border: 0; border-radius: 6px; background: var(--bg-soft);
           color: var(--muted); font: 11px/18px var(--font-ui); cursor: pointer; vertical-align: top; }
.lv-more:hover { background: rgba(14, 26, 43, 0.09); color: var(--lv-ink); }
.lv-sec { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; background: var(--lv-bg2);
          border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
          font-family: var(--font-ui); font-size: 12px; color: var(--lv-ink); cursor: pointer; user-select: none; }
.lv-sec:first-child { border-top: 0; }
.lv-sec b { font-weight: 600; letter-spacing: 0.01em; }
.lv-sec-m { color: var(--lv-dim); font-variant-numeric: tabular-nums; }
.lv-sec:hover { background: #EEF2F5; }
.lv-older { display: flex; justify-content: center; padding: 6px; border-bottom: 1px solid var(--line-soft); background: var(--lv-bg2); }
.lv-older[hidden] { display: none; }
.lv-older-btn { height: 26px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised);
                color: var(--text); font: 500 12px var(--font-ui); cursor: pointer; }
.lv-older-btn:hover { background: var(--bg-soft); }
.lv-older-btn:disabled { opacity: 0.6; cursor: default; }
.lv-stream { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; color: var(--t700);
             font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; }
.lv-stream[hidden] { display: none; }
.lv-stream::before, .lv-stream::after { content: ""; flex: 1 1 auto; border-top: 1px dashed var(--line); }
.lv-stream svg { width: 15px; height: 15px; margin-right: -4px; fill: none; stroke: currentColor; stroke-width: 1.8;
                 stroke-linecap: round; stroke-linejoin: round; }
.lv-stream.lv-paused { color: var(--muted); }
.lv-resume { height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-raised);
             color: var(--text); font: 500 12px var(--font-ui); cursor: pointer; }
.lv-resume:hover { background: var(--bg-soft); }
.lv-panel[data-state="loading"] .lv-stream, .lv-panel[data-state="error"] .lv-stream { display: none; }
.lv-latest { position: absolute; left: 50%; bottom: 46px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
             height: 30px; padding: 0 13px 0 10px; transform: translateX(-50%); border: 0; border-radius: 999px;
             background: var(--t500); color: #fff; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
             box-shadow: 0 8px 22px -8px rgba(14, 26, 43, 0.45); cursor: pointer; animation: lv-rise 0.18s var(--ease-out); }
.lv-latest:hover { background: var(--t500-hover); }
.lv-latest svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lv-latest[hidden] { display: none; }
@keyframes lv-rise { from { opacity: 0; transform: translate(-50%, 6px); } }

.lv-toast { position: absolute; top: 48px; right: 12px; z-index: 3; padding: 4px 10px; border-radius: 8px;
            background: var(--text); color: #fff; font: 12px/1.5 var(--font-ui); opacity: 0; pointer-events: none; }
.lv-toast.lv-on { animation: lv-toast 1.8s ease forwards; }
@keyframes lv-toast { 10%, 75% { opacity: 1; } 100% { opacity: 0; } }
.lv-note { display: none; }
.lv-panel[data-state="loading"] .lv-scroll, .lv-panel[data-state="empty"] .lv-scroll,
.lv-panel[data-state="error"] .lv-scroll { display: none; }
.lv-panel[data-state="loading"] .lv-note { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 18px; }
.lv-panel[data-state="empty"] .lv-note, .lv-panel[data-state="error"] .lv-note {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px;
  padding: 20px; text-align: center; font-family: var(--font-ui); font-size: 13px; color: var(--lv-dim); }
.lv-note p { margin: 0; max-width: 520px; }
.lv-note-err { color: var(--lv-red); }
.lv-skel { display: block; height: 10px; border-radius: 5px;
           background: linear-gradient(90deg, rgba(14, 26, 43, 0.05) 0%, rgba(14, 26, 43, 0.1) 50%, rgba(14, 26, 43, 0.05) 100%) 0 0 / 200% 100%;
           animation: lv-shimmer 1.3s linear infinite; }
@keyframes lv-shimmer { to { background-position: -200% 0; } }
.lv-retry { height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-raised);
            color: var(--text); font: 500 12.5px var(--font-ui); cursor: pointer; }
.lv-retry:hover { background: var(--bg-soft); }
.lv-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-family: var(--font-ui); font-size: 12px; color: var(--dim);
           font-variant-numeric: tabular-nums; }
.lv-f-err { color: var(--red); }
.lv-f-warn { color: var(--amber); }
@media (max-width: 640px) {
  .lv-panel { font-size: 11.5px; line-height: 18px; --lv-lh: 22px; }
  .lv-row { min-height: 22px; padding: 2px 10px; }
  .lv-d { height: 18px; }
  .lv-d::before { top: 5px; }
  .lv-thead { padding-left: 10px; }
  .lv-th-c { display: none; }
  .lv-find { flex-basis: 100%; }
  .lv-tg span { display: none; }
  .lv-tg { width: 34px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lv-skel, .lv-cur .lv-dot, .lv-latest, .lv-toast.lv-on { animation: none; }
  .lv-toast.lv-on { opacity: 1; }
}
