.lm-panel {
  --lm-surface: #0d1523;
  --lm-line: #2c3b50;
  --lm-muted: #a4b4c5;
  --lm-blue: #7de8ed;
  --lm-violet: #b19cff;
  --lm-gold: #f5bd73;
  --lm-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color: #ecf3fa;
  font-family: inherit;
  line-height: 1.45;
  container-type: inline-size;
}
.lm-panel *, .lm-panel *::before, .lm-panel *::after { box-sizing: border-box; }
.lm-panel [hidden] { display: none !important; }
.lm-panel button, .lm-panel select { color: inherit; font: inherit; cursor: pointer; }
.lm-panel button:focus-visible, .lm-panel select:focus-visible {
  outline: 2px solid var(--lm-gold);
  outline-offset: 3px;
}
.lm-panel svg:not(.lm-blueprint) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lm-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.lm-intro h2 { font: inherit; font-weight: 640; letter-spacing: -.045em; line-height: 1.08; font-size: clamp(1.8rem, 4cqi, 3.45rem); color: #f0f5fa; margin: 0; }
.lm-intro p { color: var(--lm-muted); font-size: 1rem; max-width: 64ch; margin: .6rem 0 0; }
.lm-presets { flex: none; padding: 3px; background: #111a27; border: 1px solid var(--lm-line); border-radius: 6px; display: inline-flex; }
.lm-presets button {
  border: 0;
  background: transparent;
  border-radius: 3px;
  min-height: 38px;
  padding: 6px 12px;
  font-size: .875rem;
  white-space: nowrap;
  color: #bac7d4;
}
.lm-presets button:hover, .lm-presets button[aria-pressed="true"] { color: white; background: #2c3849; }
.lm-bench { background: var(--lm-surface); border: 1px solid var(--lm-line); border-radius: 10px; overflow: hidden; }
.lm-switches { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--lm-line); }
.lm-switches button {
  display: flex; align-items: center; gap: .45rem; justify-content: center; position: relative;
  border: 0; border-right: 1px solid var(--lm-line); background: #101a28;
  color: #a5b2c2; font-size: .875rem; min-height: 53px; padding: .55rem .3rem;
}
.lm-switches button:last-child { border: 0; }
.lm-switches button i { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 3px; opacity: .7; }
.lm-switches button[aria-pressed="true"] { background: #15262f; color: #bdedf0; }
.lm-switches button[aria-pressed="true"] i { color: #0b202b; background: var(--lm-blue); border-color: var(--lm-blue); opacity: 1; }
.lm-switches button[aria-pressed="true"] i::after {
  content: ""; display: block; width: 6px; height: 4px; margin: 2px 1px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg);
}
.lm-switches button:hover { background: #263647; }
.lm-switches small { display: block; color: var(--lm-violet); font: .75rem/1.25 var(--lm-mono); }
.lm-switches button:focus-visible { outline-offset: -4px; }
.lm-instrument { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0,1.85fr); }
.lm-input { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 22px; border-right: 1px solid var(--lm-line); min-width: 0; background: #111b2a; }
.lm-request-head label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; color: var(--lm-muted); font: .8rem/1.45 var(--lm-mono); }
.lm-request-head select { color-scheme: dark; border: 1px solid #4b5c70; color: #ebf2f9; background: #142131; min-height: 38px; border-radius: 4px; padding: .35rem .35rem .35rem .6rem; font-family: inherit; font-size: .84rem; max-width: 100%; }
.lm-drawing {
  position: relative; margin: 12px -3px 10px; height: clamp(116px, 15vw, 156px); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #203644c7, transparent 70%), repeating-linear-gradient(90deg, transparent 0 17px, #8093a914 17px 18px), repeating-linear-gradient(0deg, transparent 0 17px, #8093a914 17px 18px);
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}
.lm-blueprint { width: min(100%, 276px); height: 100%; overflow: visible; fill: none; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; transform: rotate(-3deg); }
.lm-dimensions { stroke: #70889b; stroke-width: .68; stroke-dasharray: 4 3; }
.lm-body { fill: #142e3c; stroke: #a7dce5; }
.lm-undercarriage { stroke: #709ba8; fill: #142737; }
.lm-cab { stroke: #ebe8db; fill: #24383c; }
.lm-wirecar { fill: #193248; stroke: #89dfe9; }
.lm-wheels { fill: #102032; stroke: #b9ced2; }
.lm-panel[data-motion="true"][data-running="true"] .lm-blueprint {
  animation: lm-drawing-pass 1.65s ease-in-out infinite alternate;
}
.lm-panel[data-motion="true"][data-running="true"] .lm-drawing::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 16%; border-right: 1px solid var(--lm-blue);
  background: linear-gradient(90deg, transparent, #7de8ed1f); animation: lm-scan 1.5s linear infinite;
}
.lm-lane { color: #eff5f9; font-size: clamp(1.05rem, 2cqi, 1.45rem); line-height: 1.2; font-weight: 620; }
.lm-line-meta { color: var(--lm-muted); font-size: .875rem; margin-top: 4px; }
.lm-source-toggle { background: transparent; border: 0; color: var(--lm-blue) !important; align-self: start; min-height: 40px; padding: 5px 0; text-align: left; margin-top: 4px; font-size: .875rem !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #365c69; }
.lm-source { margin: 6px 0 0; color: #cfdae4; font-size: .925rem; padding: 2px 0 2px 12px; border-left: 2px solid var(--lm-blue); }
.lm-pipeline { min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 15px; }
.lm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lm-bar > span:first-child { font-size: 1rem; font-weight: 580; color: #e7f0f7; }
.lm-count, .lm-sheet-mode, .lm-status { color: var(--lm-muted); font: .78rem/1.4 var(--lm-mono); }
.lm-track { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-stage {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid #3e4d63; border-radius: 4px;
  background: #162032; padding: 6px 10px; font-size: .805rem !important; color: #cbd7de !important;
}
.lm-stage i { width: 6px; height: 6px; border: 1px solid #90a4b7; transform: rotate(45deg); }
.lm-stage:hover, .lm-stage[aria-pressed="true"] { border-color: var(--lm-blue); color: var(--lm-blue) !important; }
.lm-stage[data-phase="done"] i { background: var(--lm-blue); border-color: var(--lm-blue); }
.lm-stage[data-phase="active"] { border-color: var(--lm-gold); color: var(--lm-gold) !important; }
.lm-stage[data-phase="active"] i { background: var(--lm-gold); border-color: var(--lm-gold); }
.lm-preview { flex: 1; border-left: 2px solid var(--lm-violet); background: #131e30; padding: 14px 16px 16px; }
.lm-sheet-head { display: flex; align-items: center; gap: 9px; }
.lm-sheet-icon { color: var(--lm-violet); }
.lm-sheet-icon:empty { display: none; }
.lm-sheet-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; font-weight: 600; color: #f1f4fa; }
.lm-sheet-mode { color: #c2b9e7; font-size: .76rem; }
.lm-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 15px; margin: 14px 0 0; }
.lm-field { min-width: 0; border-top: 1px solid #2b384b; padding: 6px 0 0; }
.lm-field dt { color: var(--lm-muted); font: .76rem/1.4 var(--lm-mono); }
.lm-field dd { color: #e8edf5; font-size: .925rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.lm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.lm-run { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; min-height: 42px; background: var(--lm-blue); color: #102532 !important; border: 0; border-radius: 4px; font-size: .925rem !important; font-weight: 660 !important; }
.lm-run:hover { background: #baeff4; }
.lm-run:disabled { opacity: .65; cursor: default; }
.lm-run svg { width: 16px !important; height: 16px !important; fill: currentColor !important; }
@keyframes lm-drawing-pass { to { transform: rotate(-3deg) translateY(-2px); } }
@keyframes lm-scan { from { transform: translateX(-110%); } to { transform: translateX(690%); } }
@container (max-width: 860px) {
  .lm-switches { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lm-switches button:nth-child(-n+3) { border-bottom: 1px solid var(--lm-line); }
  .lm-switches button:nth-child(3n) { border-right: 0; }
  .lm-input, .lm-pipeline { padding: 16px; }
}
@container (max-width: 640px) {
  .lm-intro { align-items: start; flex-direction: column; gap: 12px; }
  .lm-instrument { grid-template-columns: 1fr; }
  .lm-input { border-right: 0; border-bottom: 1px solid var(--lm-line); }
  .lm-drawing { height: 109px; margin: 6px 0; }
  .lm-switches button { min-height: 48px; }
  .lm-switches button svg { width: 16px !important; height: 16px !important; }
}
@container (max-width: 380px) {
  .lm-switches { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lm-switches button:nth-child(-n+4) { border-bottom: 1px solid var(--lm-line); }
  .lm-switches button:nth-child(odd) { border-right: 1px solid var(--lm-line); }
  .lm-switches button:nth-child(even) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-panel .lm-blueprint, .lm-panel .lm-drawing::after { animation: none !important; }
}

.lm-book { border-top:1px solid var(--lm-line); background:#0b1725; padding:clamp(16px,2.5cqi,30px); color:#e6eff7; }
.lm-book-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.lm-book-head h3 { font-weight:640;font-size:clamp(1.25rem,2cqi,1.65rem);letter-spacing:-.025em; }
.lm-book-head p,.lm-reference,.lm-lineage p { color:var(--lm-muted); font-size:.925rem; margin:5px 0 0; }
.lm-book button,.lm-book select { min-height:40px;color:#d7e4ef;background:#152234;border:1px solid #415267;border-radius:4px;padding:6px 10px;font-size:.875rem; }
.lm-book button:hover { border-color:#9dc2cc; }
.lm-book button[aria-pressed="true"] { color:var(--lm-blue);background:#17303b;border-color:#65989e; }
.lm-book button:disabled { opacity:.5;cursor:default; }
.lm-reset-book { flex:none; }
.lm-workloads,.lm-compare-actions { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.lm-book-mix { display:flex; gap:6px; align-items:stretch;margin-bottom:14px; }
.lm-mix-part { display:flex;align-items:baseline;gap:6px;flex:1 1 var(--share);border-top:3px solid var(--lm-blue);padding:6px 0 0;line-height:1.3; }
.lm-mix-part[data-sample="1"] { border-color:var(--lm-violet); }
.lm-mix-part span { color:var(--lm-muted);font-size:.85rem; }
.lm-book-metrics { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:9px; }
.lm-book button.lm-book-metric { display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;gap:4px;padding:10px; }
.lm-book-metric span { color:#bfd1dc;font-size:.8rem; }
.lm-book-metric strong { font:600 clamp(.97rem,1.65cqi,1.34rem)/1.2 var(--lm-mono); }
.lm-equation { border-left:2px solid var(--lm-violet);padding:9px 13px;background:#162235; }
.lm-equation div { color:var(--lm-muted);font: .82rem/1.7 var(--lm-mono); }
.lm-equation strong,.lm-analyses h4,.lm-lineage label { font:600 1rem/1.4 inherit; }
.lm-equation .lm-equation-total { color:#e2d7ff; }
.lm-analyses { display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:19px; }
.lm-lineage label { display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap; }
.lm-lineage select { color-scheme:dark; }
.lm-lineage ol { list-style:none;border-left:1px solid #527a86;margin:10px 0 0 5px;padding:0 0 0 14px; }
.lm-lineage li { position:relative;display:flex;flex-wrap:wrap;gap:4px 7px;align-items:baseline;margin:5px 0; }
.lm-lineage li::before { content:"";width:6px;height:6px;position:absolute;left:-18px;top:.48em;transform:rotate(45deg);background:#89d7d7; }
.lm-lineage li[data-included="false"]::before { background:#667489; }
.lm-lineage li span,.lm-deltas { color:var(--lm-muted);font-size:.86rem; }
.lm-lineage li strong,.lm-delta strong { font-size:.85rem; }
.lm-deltas { border-top:1px solid var(--lm-line);margin-top:10px;padding-top:8px; }
.lm-delta { display:flex;gap:10px;padding:2px 0; }
.lm-delta strong { color:var(--lm-gold); }
.lm-delta[data-added="true"] strong { color:var(--lm-blue); }
.lm-compare-actions { margin:10px 0 0; }
@container (max-width:680px) {
  .lm-book-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lm-analyses { grid-template-columns:1fr;gap:18px; }
}
@container (max-width:400px) {
  .lm-book-head { flex-wrap:wrap;gap:9px; }
  .lm-book-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lm-mix-part { align-items:flex-start; }
}
