/* ─── Left panel v2 — component list + full-height inspector ─────────────────
   Active only when #left-panel has .lp-v2 (see js/shared/left-panel/left-panel.js).
   Without it, every .lp2-only element is hidden and the old layout is untouched. */

#left-panel {
  --lp2-ink: #1e293b;
  --lp2-muted: #64748b;
  --lp2-dim: #94a3b8;
  --lp2-line: #e2e8f0;
  --lp2-line-2: #cbd5e1;
  --lp2-inset: #eef2f8;
  --lp2-blue: #2563eb;
  --lp2-blue-soft: #eaf1ff;
  --lp2-crit: #dc2626;
  --lp2-crit-soft: #fdecec;
  --lp2-warn: #b45309;
  --lp2-warn-dot: #f59e0b;
  --lp2-warn-soft: #fef3e2;
  --lp2-info-soft: #f1f5f9;
  --lp2-ok: #15803d;
  --lp2-ok-soft: #e8f7ee;
  --lp2-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
#left-panel:not(.lp-v2) .lp2-only { display: none !important; }
#left-panel.lp-v2 .lp2-hidden { display: none !important; }

/* ── Which view fills the panel ─────────────────────────────────────────── */
#left-panel.lp-v2 .inspector-section { display: none; }
#left-panel.lp-v2 .components-section {
  flex: 1 1 auto; max-height: none; min-height: 0; padding: 0;
  display: flex; flex-direction: column;
}
#left-panel.lp-v2 .components-section .section-body {
  flex: 1 1 auto; min-height: 0; max-height: none; display: flex; flex-direction: column;
}
#left-panel.lp-v2 .components-section .component-container { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#left-panel.lp-v2.lp2-inspecting .components-section { display: none; }
#left-panel.lp-v2.lp2-inspecting .inspector-section {
  display: flex; flex: 1 1 auto; min-height: 0; padding: 0; overflow: hidden;
}
#left-panel.lp-v2 .inspector-section > h2 { display: none; }
#left-panel.lp-v2 .inspector-section .section-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#left-panel.lp-v2 #inspector {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  padding: 0; margin: 0; background: #fff; color: var(--lp2-ink); font-size: 13.5px; line-height: 1.45;
}

/* ── Component list ─────────────────────────────────────────────────────── */
#left-panel.lp-v2 .lp2-search {
  display: flex; align-items: center; gap: 8px; margin: 10px 12px 6px;
  background: var(--lp2-inset); border: 1px solid transparent; border-radius: 8px; padding: 7px 10px;
  color: var(--lp2-dim); flex: none;
}
#left-panel.lp-v2 .lp2-search:focus-within { border-color: var(--lp2-blue); background: #fff; }
#left-panel.lp-v2 .lp2-search input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--lp2-ink);
}
#left-panel.lp-v2 .components-section .palette {
  display: flex; flex-direction: column; gap: 1px; padding: 2px 8px 8px; justify-items: stretch;
  height: auto; max-height: none; overflow: visible;
}
#left-panel.lp-v2 .palette > * { order: var(--lp2-order, 9000); flex: none; }
#left-panel.lp-v2 .lp2-group-h {
  display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 6px; padding: 7px 6px;
  background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left;
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lp2-muted);
}
#left-panel.lp-v2 .lp2-group-h:hover { background: var(--lp2-inset); }
#left-panel.lp-v2 .lp2-group-h .lp2-count { margin-left: auto; font-family: var(--lp2-mono); font-size: 11px; letter-spacing: 0; color: var(--lp2-dim); }
#left-panel.lp-v2 .lp2-chev { transition: transform .15s; flex: none; }
#left-panel.lp-v2 .lp2-group-h.lp2-collapsed .lp2-chev,
#left-panel.lp-v2 .lp2-sec[data-open="false"] .lp2-chev { transform: rotate(-90deg); }

#left-panel.lp-v2 .components-section .palette-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  width: 100%; min-height: 0; height: auto; padding: 6px 8px; margin: 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none;
  cursor: grab; text-align: left; aspect-ratio: auto; min-width: 0; font-size: 13px; line-height: 1.3;
}
#left-panel.lp-v2 .components-section .palette-item::before,
#left-panel.lp-v2 .components-section .palette-item::after { content: none !important; display: none !important; }
#left-panel.lp-v2 .components-section .palette-item:hover,
#left-panel.lp-v2 .components-section .palette-item:focus-visible { background: var(--lp2-blue-soft); border-color: #d6e3ff; transform: none; }
#left-panel.lp-v2 .components-section .palette-item .icon { width: 28px; height: 28px; margin: 0; }
#left-panel.lp-v2 .lp2-text { display: flex; flex-direction: column; min-width: 0; }
#left-panel.lp-v2 .lp2-cname { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--lp2-ink); }
#left-panel.lp-v2 .lp2-crole { font-size: 12px; line-height: 1.3; color: var(--lp2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#left-panel.lp-v2 .lp2-grip { color: var(--lp2-dim); font-size: 13px; opacity: 0; transition: opacity .15s; }
#left-panel.lp-v2 .palette-item:hover .lp2-grip { opacity: 1; }
#left-panel.lp-v2 .lp2-empty { margin: 8px 16px; color: var(--lp2-muted); font-size: 13px; }
#left-panel.lp-v2 .lp2-foot {
  flex: none; margin: 0; padding: 10px 14px; border-top: 1px solid var(--lp2-line); font-size: 12px; color: var(--lp2-muted);
}

/* ── Inspector ──────────────────────────────────────────────────────────── */
#left-panel.lp-v2 #inspector,
#left-panel.lp-v2 #inspector button,
#left-panel.lp-v2 #inspector input,
#left-panel.lp-v2 #inspector textarea { font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; }

#left-panel.lp-v2 .lp2-head { flex: none; padding: 12px 16px 12px; border-bottom: 1px solid var(--lp2-line); display: grid; gap: 6px; }
#left-panel.lp-v2 .lp2-headrow { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
#left-panel.lp-v2 .lp2-back {
  display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 4px 8px 4px 4px; border: 0; border-radius: 6px;
  background: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--lp2-muted);
}
#left-panel.lp-v2 .lp2-back:hover { background: var(--lp2-inset); color: var(--lp2-ink); }
#left-panel.lp-v2 .lp2-back:focus-visible,
#left-panel.lp-v2 .lp2-add-desc:focus-visible,
#left-panel.lp-v2 .lp2-sec-h:focus-visible,
#left-panel.lp-v2 .lp2-delete:focus-visible { outline: 2px solid var(--lp2-blue); outline-offset: 1px; }
#left-panel.lp-v2 .lp2-typechip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--lp2-inset); font-size: 11.5px; font-weight: 600; color: #334155; letter-spacing: 0.01em;
}
#left-panel.lp-v2 .lp2-typechip i { width: 8px; height: 8px; border-radius: 2px; display: block; }
#left-panel.lp-v2 input.lp2-name {
  width: calc(100% + 16px); margin: 0 -8px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--lp2-ink);
}
#left-panel.lp-v2 input.lp2-name:hover { border-color: var(--lp2-line); }
#left-panel.lp-v2 input.lp2-name:focus { outline: 0; border-color: var(--lp2-blue); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
#left-panel.lp-v2 .lp2-add-desc {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; margin-left: -6px;
  border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--lp2-muted);
}
#left-panel.lp-v2 .lp2-add-desc:hover { background: var(--lp2-inset); color: var(--lp2-blue); }
#left-panel.lp-v2 .lp2-desc {
  width: 100%; min-height: 52px; resize: none; padding: 8px 10px; border: 1px solid var(--lp2-line); border-radius: 8px;
  background: #fff; font-size: 13px; line-height: 1.45; color: var(--lp2-ink);
}
#left-panel.lp-v2 .lp2-desc:focus { outline: 0; border-color: var(--lp2-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
#left-panel.lp-v2 .lp2-desc::placeholder { color: var(--lp2-dim); }

#left-panel.lp-v2 .lp2-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 0 16px; }

/* Sections */
#left-panel.lp-v2 .lp2-sec { border-bottom: 1px solid #eef2f6; }
#left-panel.lp-v2 .lp2-sec-h {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 16px 8px; border: 0; background: none; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp2-muted); text-align: left;
}
#left-panel.lp-v2 .lp2-sec-h:hover { color: var(--lp2-ink); }
#left-panel.lp-v2 .lp2-sec[data-open="false"] .lp2-sec-h { padding-bottom: 12px; }
#left-panel.lp-v2 .lp2-sec[data-open="false"] .lp2-sec-b { display: none; }
#left-panel.lp-v2 .lp2-sec-b { display: grid; gap: 2px; padding: 0 16px 12px; }

/* Rows */
#left-panel.lp-v2 .lp2-field {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 48%); align-items: center; gap: 10px;
  min-height: 40px; margin: 0 -8px; padding: 4px 8px; border-radius: 8px; transition: background-color .3s, box-shadow .3s;
}
#left-panel.lp-v2 .lp2-field.lp2-pulse { background: var(--lp2-blue-soft); box-shadow: 0 0 0 2px var(--lp2-blue); }
#left-panel.lp-v2 .lp2-label {
  display: flex; align-items: center; gap: 6px; min-width: 0; cursor: default;
  font-size: 13px; font-weight: 450; color: #334155;
}
#left-panel.lp-v2 .lp2-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#left-panel.lp-v2 .lp2-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lp2-warn-dot); flex: none; }
#left-panel.lp-v2 .lp2-field.lp2-flag .lp2-dot { display: inline-block; }
#left-panel.lp-v2 .lp2-sec.lp2-has-flag .lp2-sec-dot { display: inline-block; margin-left: 2px; }
#left-panel.lp-v2 .lp2-ctl { display: flex; justify-content: flex-end; min-width: 0; }

/* Number input */
#left-panel.lp-v2 .lp2-num {
  display: flex; align-items: center; width: 100%; height: 32px; border: 1px solid var(--lp2-line-2); border-radius: 8px;
  background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
#left-panel.lp-v2 .lp2-num:hover { border-color: #94a3b8; }
#left-panel.lp-v2 .lp2-num:focus-within { border-color: var(--lp2-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
#left-panel.lp-v2 .lp2-num input {
  width: 100%; min-width: 0; height: 100%; padding: 0 10px; border: 0; outline: 0; background: transparent; text-align: right;
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--lp2-ink);
  -moz-appearance: textfield; appearance: textfield;
}
#left-panel.lp-v2 .lp2-num input::-webkit-outer-spin-button,
#left-panel.lp-v2 .lp2-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#left-panel.lp-v2 .lp2-unit {
  align-self: stretch; display: flex; align-items: center; padding: 0 10px; border-left: 1px solid var(--lp2-line);
  background: #f8fafc; color: var(--lp2-muted); font-size: 12px; font-weight: 500;
}

/* Dropdown trigger */
#left-panel.lp-v2 .lp2-dd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 10px;
  border: 1px solid var(--lp2-line-2); border-radius: 8px; background: #fff; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 500; color: var(--lp2-ink); transition: border-color .15s, box-shadow .15s;
}
#left-panel.lp-v2 .lp2-dd:hover { border-color: #94a3b8; }
#left-panel.lp-v2 .lp2-dd:focus-visible,
#left-panel.lp-v2 .lp2-dd.is-open { outline: 0; border-color: var(--lp2-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
#left-panel.lp-v2 .lp2-dd-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#left-panel.lp-v2 .lp2-dd-val.is-empty { color: var(--lp2-dim); font-weight: 400; }
#left-panel.lp-v2 .lp2-dd-caret { flex: none; color: var(--lp2-muted); transition: transform .15s; }
#left-panel.lp-v2 .lp2-dd.is-open .lp2-dd-caret { transform: rotate(180deg); }

/* Toggle */
#left-panel.lp-v2 .lp2-tgl { position: relative; width: 36px; height: 20px; flex: none; }
#left-panel.lp-v2 .lp2-tgl input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
#left-panel.lp-v2 .lp2-tgl span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
#left-panel.lp-v2 .lp2-tgl span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .15s;
}
#left-panel.lp-v2 .lp2-tgl:hover span { background: #b8c3d3; }
#left-panel.lp-v2 .lp2-tgl input:checked + span { background: var(--lp2-blue); }
#left-panel.lp-v2 .lp2-tgl input:checked + span::after { transform: translateX(16px); }
#left-panel.lp-v2 .lp2-tgl input:focus-visible + span { outline: 2px solid var(--lp2-blue); outline-offset: 2px; }

#left-panel.lp-v2 .lp2-note { margin: 14px 16px 0; font-size: 12px; color: var(--lp2-dim); }
#left-panel.lp-v2 .lp2-delete {
  display: block; width: calc(100% - 32px); height: 34px; margin: 12px 16px 0; border: 1px solid #f3d0d0; border-radius: 8px;
  background: #fff; color: #b91c1c; cursor: pointer; font-size: 13px; font-weight: 500;
}
#left-panel.lp-v2 .lp2-delete:hover { background: var(--lp2-crit-soft); border-color: #eab0b0; }

/* Dropdown menu (rendered in <body>) */
.lp2-dd-menu {
  position: fixed; z-index: 100000; margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; animation: lp2DdIn .12s ease-out;
}
.lp2-dd-opt { display: grid; gap: 1px; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: #1e293b; }
.lp2-dd-opt.is-active { background: #f1f5f9; }
.lp2-dd-opt.is-selected { background: #eff6ff; }
.lp2-dd-opt.is-selected .lp2-dd-label { color: #1d4ed8; font-weight: 600; }
.lp2-dd-label { font-size: 13px; font-weight: 500; }
.lp2-dd-hint { font-size: 11.5px; color: #64748b; line-height: 1.35; }
@keyframes lp2DdIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #left-panel.lp-v2 *, .lp2-dd-menu { transition: none !important; animation: none !important; }
}

#left-panel.lp-v2 .components-section,
#left-panel.lp-v2 .components-section button,
#left-panel.lp-v2 .components-section input { font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; }

/* Override the legacy `.inspector label` (column flex) and input rules. */
#left-panel.lp-v2 #inspector label.lp2-label {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; padding: 0; text-align: left;
  font-size: 13px; font-weight: 450; color: #334155;
}
#left-panel.lp-v2 #inspector label.lp2-tgl { display: block; padding: 0; gap: 0; }
#left-panel.lp-v2 #inspector .lp2-num input { padding: 0 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; font-weight: 500; }
#left-panel.lp-v2 #inspector textarea.lp2-desc { padding: 8px 10px; font-size: 13px; }
#left-panel.lp-v2 #inspector input.lp2-name { padding: 5px 8px; font-size: 16px; font-weight: 600; border-color: transparent; background: transparent; }
#left-panel.lp-v2 #inspector input.lp2-name:hover { border-color: var(--lp2-line); }
#left-panel.lp-v2 #inspector input.lp2-name:focus { border-color: var(--lp2-blue); background: #fff; }

/* ── Readable text: no truncation, near-black ───────────────────────────── */
#left-panel.lp-v2 { --lp2-ink: #0f172a; --lp2-muted: #334155; }
#left-panel.lp-v2 #inspector label.lp2-label { color: #0f172a; font-weight: 500; align-items: flex-start; }
#left-panel.lp-v2 .lp2-label > span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
#left-panel.lp-v2 .lp2-label .lp2-dot { margin-top: 5px; }
#left-panel.lp-v2 .lp2-sec-h { color: #0f172a; }
#left-panel.lp-v2 .lp2-dd { color: #0f172a; }
#left-panel.lp-v2 .lp2-dd-val { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; padding: 6px 0; }
#left-panel.lp-v2 .lp2-dd { height: auto; min-height: 32px; }
#left-panel.lp-v2 .lp2-field.lp2-stack { grid-template-columns: 1fr; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
#left-panel.lp-v2 .lp2-field.lp2-stack .lp2-ctl { justify-content: stretch; }
#left-panel.lp-v2 .lp2-num input, #left-panel.lp-v2 #inspector .lp2-num input { color: #0f172a; }
#left-panel.lp-v2 .lp2-unit { color: #334155; }
#left-panel.lp-v2 .lp2-back, #left-panel.lp-v2 .lp2-add-desc { color: #334155; }
#left-panel.lp-v2 .lp2-typechip { color: #0f172a; }
#left-panel.lp-v2 .lp2-note { color: #475569; }
#left-panel.lp-v2 .lp2-cname { color: #0f172a; }
#left-panel.lp-v2 .lp2-crole { color: #334155; white-space: normal; overflow: visible; text-overflow: clip; }
#left-panel.lp-v2 .components-section .palette-item { align-items: start; }
#left-panel.lp-v2 .components-section .palette-item .icon { margin-top: 2px; }
#left-panel.lp-v2 .lp2-group-h { color: #0f172a; }
#left-panel.lp-v2 .lp2-group-h .lp2-count { color: #475569; }
#left-panel.lp-v2 .lp2-foot { color: #334155; }
#left-panel.lp-v2 .lp2-search input::placeholder { color: #64748b; }
.lp2-dd-hint { color: #334155; }

/* Learn: "About this block" */
#left-panel.lp-v2 .lp2-about { margin: 12px 16px 4px; padding: 12px; border-radius: 10px; background: #f5f8ff; border: 1px solid #e0e9ff; display: grid; gap: 8px; }
#left-panel.lp-v2 .lp2-about p { margin: 0; font-size: 13px; line-height: 1.5; color: #0f172a; }
#left-panel.lp-v2 .lp2-about-role { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #1d4ed8; }
#left-panel.lp-v2 .lp2-about-why strong { font-weight: 600; }
#left-panel.lp-v2 .lp2-about-pairs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #334155; }
#left-panel.lp-v2 .lp2-about-pairs em { font-style: normal; font-weight: 500; color: #0f172a; background: #fff; border: 1px solid #dbe4f3; border-radius: 999px; padding: 2px 8px; }

/* Learn mode forces both sections visible with !important (style.css,
   "left panel identical to Practice"); match it so one view shows at a time. */
body.learn-mode-active #left-panel.lp-v2 .inspector-section { display: none !important; }
body.learn-mode-active #left-panel.lp-v2.lp2-inspecting .components-section { display: none !important; }
body.learn-mode-active #left-panel.lp-v2.lp2-inspecting .inspector-section { display: flex !important; }

#left-panel.lp-v2 .lp2-add-desc[hidden], #left-panel.lp-v2 .lp2-desc[hidden] { display: none !important; }

/* The head scrolls with the settings so a long description never squeezes them. */
#left-panel.lp-v2 #inspector { overflow-y: auto; }
#left-panel.lp-v2 .lp2-body { overflow: visible; flex: none; }
#left-panel.lp-v2 #inspector textarea.lp2-desc { overflow: hidden; }

/* ── Evaluate mode ───────────────────────────────────────────────────────
   style.css sizes the old palette/inspector split with !important; match it.
   The muted grey palette styling there is replaced by the readable list. */
body.evaluation-mode #left-panel.lp-v2 .components-section { flex: 1 1 auto !important; min-height: 0; }
body.evaluation-mode #left-panel.lp-v2 .inspector-section { display: none !important; }
body.evaluation-mode #left-panel.lp-v2.lp2-inspecting .components-section { display: none !important; }
body.evaluation-mode #left-panel.lp-v2.lp2-inspecting .inspector-section { display: flex !important; flex: 1 1 auto !important; }
#left-panel.lp-v2 .palette-item .icon,
body.evaluation-mode #left-panel.lp-v2 .palette-item:hover .icon { filter: brightness(0) saturate(0) opacity(0.85); }
#left-panel.lp-v2 .palette-item:hover .icon { filter: brightness(0) saturate(100%) invert(27%) sepia(80%) saturate(800%) hue-rotate(220deg) brightness(95%); }
body.evaluation-mode #left-panel.lp-v2 .palette-item:hover { background: var(--lp2-blue-soft) !important; }

#left-panel.lp-v2 .lp2-desc-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: #334155; }
#left-panel.lp-v2 .lp2-cc { white-space: nowrap; font-variant-numeric: tabular-nums; }
#left-panel.lp-v2 .lp2-cc[data-level="low"] { color: #b91c1c; }
#left-panel.lp-v2 .lp2-cc[data-level="mid"] { color: #b45309; }
#left-panel.lp-v2 .lp2-cc[data-level="ok"] { color: #15803d; }
#left-panel.lp-v2 .lp2-fixed-note {
  margin: 14px 16px 0; padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 12.5px; line-height: 1.5; color: #334155;
}
#left-panel.lp-v2 #inspector input.lp2-name[readonly], #left-panel.lp-v2 #inspector textarea.lp2-desc[readonly] { background: #f8fafc; cursor: default; }


/* Evaluate: name, description, delete. */
#left-panel.lp-v2 .lp2-simple { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
#left-panel.lp-v2 .lp2-simple .lp2-flabel { font-size: 12.5px; font-weight: 600; color: var(--lp2-ink); }
#left-panel.lp-v2 .lp2-simple .lp2-flabel + .lp2-name,
#left-panel.lp-v2 .lp2-simple .lp2-flabel + .lp2-desc { margin-bottom: 8px; }
#left-panel.lp-v2 .lp2-simple .lp2-flabel:not(:first-child) { margin-top: 2px; }
#left-panel.lp-v2 #inspector input.lp2-name.lp2-name--boxed {
  width: 100%; margin: 0; padding: 8px 10px; border: 1px solid var(--lp2-line); border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: 0;
}
#left-panel.lp-v2 .lp2-simple .lp2-desc { margin-bottom: 0; }
#left-panel.lp-v2 .lp2-simple .lp2-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--lp2-muted); }
#left-panel.lp-v2 .lp2-simple .lp2-delete { margin: 6px 0 0; width: 100%; }
