.lsc-lista { --lsc-ink: var(--lococo-ink, #1b2430); --lsc-muted: var(--lococo-muted, #5b6472); --lsc-line: var(--lococo-line, #d9dee7); --lsc-surface: var(--lococo-surface, #fff); --lsc-primary: var(--lococo-primary, #1f5eff); --lsc-ok: #14683a; --lsc-ok-bg: #e6f4ec; --lsc-warn: #8a5a00; --lsc-warn-bg: #fdf3dc; --lsc-bad: #9b2335; --lsc-bad-bg: #fbe8eb; --lsc-off: #4a5565; --lsc-off-bg: #eef1f5;
  box-sizing: border-box; display: grid; gap: 8px; min-width: 0; margin: 10px 0; padding: 10px 14px; border: 1px solid var(--lsc-line); border-radius: 10px; background: var(--lsc-surface); color: var(--lsc-ink); font-size: 13px; }
.lsc-lista *, .lsc-lista *::before, .lsc-lista *::after { box-sizing: border-box; }
.lsc-lista[data-tone="ok"] { border-color: #8ccaa6; }
.lsc-lista[data-tone="bad"] { border-color: #e3a3ae; }
.lsc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.lsc-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.lsc-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lsc-off-bg); color: var(--lsc-off); }
.lsc-chip[data-tone="ok"] { background: var(--lsc-ok-bg); color: var(--lsc-ok); }
.lsc-chip[data-tone="warn"] { background: var(--lsc-warn-bg); color: var(--lsc-warn); }
.lsc-chip[data-tone="bad"] { background: var(--lsc-bad-bg); color: var(--lsc-bad); }
.lsc-grid { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(220px, 2fr); gap: 10px 22px; align-items: start; min-width: 0; }
.lsc-field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.lsc-label { color: var(--lsc-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lsc-field strong { font-size: 16px; line-height: 1.25; }
.lsc-field small { color: var(--lsc-muted); font-size: 11px; line-height: 1.3; }
.lsc-price--missing strong { color: var(--lsc-bad); }
.lsc-seg { display: inline-flex; width: max-content; border: 1px solid var(--lsc-line); border-radius: 8px; overflow: hidden; }
.lsc-seg button { min-width: 56px; min-height: 36px; padding: 0 16px; border: 0; background: var(--lsc-surface); color: var(--lsc-ink); font: inherit; font-weight: 700; cursor: pointer; }
.lsc-seg button + button { border-left: 1px solid var(--lsc-line); }
.lsc-seg button[aria-pressed="true"][data-lc-set="1"] { background: var(--lsc-ok); color: #fff; }
.lsc-seg button[aria-pressed="true"][data-lc-set="0"] { background: var(--lsc-off); color: #fff; }
.lsc-seg button:disabled { opacity: .55; cursor: not-allowed; }
.lsc-seg button:focus-visible, .lsc-stock-controls :focus-visible, .lsc-link:focus-visible { outline: 2px solid var(--lococo-focus, #1f5eff); outline-offset: 1px; }
.lsc-stock-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.lsc-stock-controls select, .lsc-stock-controls input { min-height: 36px; padding: 0 8px; border: 1px solid var(--lsc-line); border-radius: 8px; background: var(--lsc-surface); color: var(--lsc-ink); font: inherit; }
.lsc-stock-controls select { min-width: 0; max-width: 100%; }
.lsc-stock-controls input { width: 84px; }
.lsc-stock-controls input[hidden], .lsc-stock-controls button[hidden] { display: none; }
.lsc-apply { min-height: 36px; padding: 0 12px; border: 1px solid var(--lsc-primary); border-radius: 8px; background: var(--lsc-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lsc-link { padding: 0; border: 0; background: none; color: var(--lsc-primary); font: inherit; font-weight: 700; text-align: left; cursor: pointer; text-decoration: underline; }
.lsc-note { margin: 0; min-height: 18px; font-size: 13px; line-height: 1.35; color: var(--lsc-muted); overflow-wrap: anywhere; }
.lsc-note[data-kind="ok"] { color: var(--lsc-ok); font-weight: 700; }
.lsc-note[data-kind="warn"], .lsc-note[data-kind="pending"] { color: var(--lsc-warn); font-weight: 600; }
.lsc-note[data-kind="error"] { color: var(--lsc-bad); font-weight: 600; }

.lsc-lista--compact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 6px 10px; font-size: 12px; background: transparent; }
.lsc-lista--compact .lsc-head { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lsc-lista--compact .lsc-head h3 { font-size: 12px; }
.lsc-lista--compact .lsc-chip { min-height: 20px; padding: 0 8px; font-size: 11px; white-space: nowrap; }
.lsc-lista--compact .lsc-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; flex: 1 1 auto; }
.lsc-lista--compact .lsc-field { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.lsc-lista--compact .lsc-label { font-size: 10px; white-space: nowrap; }
.lsc-lista--compact .lsc-field strong { font-size: 13px; white-space: nowrap; }
.lsc-lista--compact .lsc-seg button { min-height: 28px; min-width: 44px; padding: 0 10px; }
.lsc-lista--compact .lsc-stock-controls { flex-wrap: nowrap; }
.lsc-lista--compact .lsc-stock-controls select, .lsc-lista--compact .lsc-stock-controls input, .lsc-lista--compact .lsc-apply { min-height: 28px; font-size: 12px; }
.lsc-lista--compact .lsc-stock-controls select { width: auto; }
.lsc-lista--compact .lsc-stock-controls input { width: 64px; }
.lsc-lista--compact .lsc-note { flex: 1 0 100%; min-height: 0; font-size: 12px; }
.lsc-lista--compact .lsc-note:empty, .lsc-lista--compact .lsc-note:not(:has(*)):where([data-kind=""]) { display: none; }
.pw-row > .lsc-lista--compact { border-width: 1px 0 0; border-radius: 0; margin-top: 2px; }

@media (max-width: 760px) {
  .lsc-grid { grid-template-columns: 1fr 1fr; }
  .lsc-stock { grid-column: 1 / -1; }
  .lsc-lista--compact .lsc-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .lsc-lista--compact .lsc-stock { grid-column: 1 / -1; }
}
.lsc-publish { font-weight: 600; }

.lsc-name { display: grid; gap: 6px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--lsc-line); }
.lsc-name-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.lsc-name-state { color: var(--lsc-muted); font-size: 12px; overflow-wrap: anywhere; }
.lsc-name-preview { display: grid; gap: 2px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lsc-name-preview strong { font-size: 14px; line-height: 1.3; color: var(--lsc-ink); }
.lsc-name-preview span { color: var(--lsc-muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lsc-name-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lsc-lista--compact .lsc-name { flex: 0 1 auto; padding-top: 0; border-top: 0; }
.lsc-lista--compact .lsc-name .lsc-link { font-size: 12px; }
.lsc-lista--compact .lsc-name-state { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.lsc-lista.lsc-top { display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--lsc-line); border-radius: 0; background: transparent; }
.lsc-top-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; min-width: 0; }
.lsc-top-title { color: var(--lsc-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lsc-top .lsc-toggle { display: flex; align-items: center; justify-content: flex-end; }
.lsc-top .lsc-toggle .lsc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsc-top .lsc-seg button { min-height: 32px; min-width: 52px; padding: 0 12px; }
.lsc-top .lsc-stock { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; }
.lsc-top .lsc-stock .lsc-label { font-size: 11px; white-space: nowrap; }
.lsc-top .lsc-stock-controls { flex-wrap: nowrap; }
.lsc-top .lsc-stock-controls select { flex: 1 1 auto; min-width: 0; min-height: 32px; font-size: 13px; }
.lsc-top .lsc-stock-controls input { width: 64px; min-height: 32px; font-size: 13px; }
.lsc-top .lsc-apply { min-height: 32px; padding: 0 10px; font-size: 13px; }
.lsc-top .lsc-note { min-height: 0; font-size: 12px; }
.lsc-top .lsc-note:empty, .lsc-top .lsc-note[data-kind=""]:not(:has(*)) { display: none; }
.lsc-lista.lsc-rest { margin: 0; }
.lsc-rest .lsc-note:empty, .lsc-rest .lsc-note[data-kind=""]:not(:has(*)) { display: none; }
.lsc-hchip[data-tone="ok"] { background: #e6f4ec; color: #14683a; border-color: #bfe6d4; }
.lsc-hchip[data-tone="warn"] { background: #fdf3dc; color: #8a5a00; border-color: #f0d9ad; }
.lsc-hchip[data-tone="bad"] { background: #fbe8eb; color: #9b2335; border-color: #e3a3ae; }
.lsc-hchip[hidden] { display: none; }
@media (max-width: 760px) {
  .lsc-top .lsc-stock { grid-template-columns: 1fr; }
}

.lsc-price--gap strong { color: var(--lsc-warn); }
.lsc-field .lsc-gap { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--lsc-warn); }
.lsc-gap b { font-weight: 700; }
.lsc-pubprice { margin-left: 4px; font-weight: 700; }

.pfi-adminbar .lsc-lista.lsc-top.lsc-out, .lsc-lista.lsc-top.lsc-out { display: grid; flex: 1 1 100%; gap: 10px; margin: 4px 0 0; padding: 12px 14px; border: 2px solid var(--lococo-ink, #1b2430); border-radius: 12px; background: var(--lsc-surface); }
.lsc-lista.lsc-top.lsc-out[data-tone="ok"], .lsc-lista.lsc-top.lsc-out[data-tone="bad"] { border-color: var(--lococo-ink, #1b2430); }
.lsc-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.lsc-out-head h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lsc-ink); }
.lsc-out-head h3 span { color: var(--lsc-muted); }
.lsc-out-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lsc-off-bg); color: var(--lsc-off); }
.lsc-out-chip[data-tone="ok"] { background: var(--lsc-ok-bg); color: var(--lsc-ok); }
.lsc-out-chip[data-tone="warn"] { background: var(--lsc-warn-bg); color: var(--lsc-warn); }
.lsc-out-chip[data-tone="bad"] { background: var(--lsc-bad-bg); color: var(--lsc-bad); }
.lsc-out-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: start; min-width: 0; }
.lsc-orow { display: grid; gap: 6px; min-width: 0; align-content: start; }
.lsc-orow small { color: var(--lsc-muted); font-size: 11px; line-height: 1.35; }
.lsc-orow--cap { grid-column: 1 / -1; }
.lsc-out .lsc-toggle .lsc-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.lsc-out .lsc-seg { flex-wrap: wrap; border: 0; gap: 6px; overflow: visible; width: auto; }
.lsc-out .lsc-seg button { min-height: 34px; min-width: 48px; padding: 0 14px; border: 1px solid var(--lsc-line); border-radius: 8px; }
.lsc-out .lsc-seg button + button { border-left: 1px solid var(--lsc-line); }
.lsc-out .lsc-seg button[aria-pressed="true"] { background: var(--lococo-ink, #1b2430); border-color: var(--lococo-ink, #1b2430); color: #fff; }
.lsc-out .lsc-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lsc-out .lsc-stock-controls { flex-wrap: wrap; }
.lsc-how { display: grid; gap: 4px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--lsc-line); }
.lsc-how-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 13px; }
.lsc-how-price { font-weight: 700; }
.lsc-how-state { font-weight: 700; color: var(--lsc-ok); }
.lsc-forced { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--lococo-ink, #1b2430); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
@media (max-width: 760px) {
  .lsc-out-grid { grid-template-columns: minmax(0, 1fr); }
  .lsc-out .lsc-seg button { flex: 1 1 auto; }
}
