/* ── Label Studio (Oct 2026) ── */
.ls-entry { display: flex; gap: 16px; align-items: center; justify-content: space-between; border: 1px solid var(--teal); border-radius: 12px; background: var(--teal-soft); padding: 14px 18px; margin: 0 0 16px; }
.ls-entry h3 { margin: 2px 0 4px; font-size: 16px; }
.ls-entry p { margin: 0; font-size: 13.5px; line-height: 1.5; max-width: 760px; }
.ls-entry .eyebrow { color: #0b5f58; }
.ls-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(10, 20, 28, .55); display: grid; place-items: center; padding: 12px; }
.ls-card { width: min(1240px, 100%); height: min(92vh, 980px); background: var(--panel); color: var(--ink); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px 8px; border-bottom: 1px solid var(--line); }
.ls-head h2 { margin: 2px 0 6px; font-size: 20px; }
.ls-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px 1fr; }
.ls-form { overflow-y: auto; padding: 12px 16px 24px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.ls-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 0; display: grid; gap: 8px; }
.ls-form legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 4px; }
.ls-form label { display: grid; gap: 3px; font-size: 12.5px; font-weight: 700; }
.ls-form input:not([type=checkbox]), .ls-form select { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font: inherit; font-weight: 400; background: var(--panel); color: var(--ink); min-width: 0; }
.ls-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.ls-check { display: flex !important; align-items: center; gap: 6px; font-weight: 400 !important; min-height: 28px; }
.ls-check input { width: 16px; height: 16px; }
.ls-preview { overflow-y: auto; padding: 16px 20px 24px; background: var(--surface); }
.ls-canvas { background: repeating-conic-gradient(#e9eef1 0 25%, #f6f8f9 0 50%) 0 0 / 16px 16px; border-radius: 10px; padding: 18px; display: grid; place-items: center; }
.ls-canvas > svg { width: 100%; max-width: 760px; height: auto; box-shadow: 0 4px 18px rgba(0,0,0,.18); background: #fff; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.ls-msg { font-size: 13px; color: var(--muted); }
.ls-h { margin: 14px 0 6px; font-size: 14px; }
.ls-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ls-checklist li { display: flex; gap: 8px; align-items: baseline; }
.ls-checklist li > span:first-child { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; flex: none; }
.ls-checklist li.ok > span:first-child { background: var(--teal-soft); color: #0b5f58; }
.ls-checklist li.err > span:first-child { background: #fde2dd; color: #a3261a; }
.ls-checklist li.warn > span:first-child { background: #fde7c7; color: #7a3d00; }
.ls-checklist li.info > span:first-child { background: #e8eef9; color: #1e3a8a; }
.ls-fine { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
@media (max-width: 900px) {
  .ls-entry { flex-direction: column; align-items: flex-start; }
  .ls-card { height: 96vh; }
  .ls-body { grid-template-columns: 1fr; overflow-y: auto; }
  .ls-form { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .ls-preview { overflow: visible; }
}
:root[data-theme="dark"] .ls-entry .eyebrow { color: #8fe3d8; }
:root[data-theme="dark"] .ls-entry { background: #0f2f2c; }
/* ── Label Studio tab (Oct 2026 v2) ── */
.ls-card--embedded { width: 100%; height: auto; box-shadow: none; border: 1px solid var(--line); border-radius: 14px; overflow: visible; }
.ls-card--embedded .ls-body { display: grid; min-height: 640px; }
.ls-sub { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 820px; line-height: 1.5; }
.ls-new { font-size: 10px; font-weight: 800; background: #0e7c72; color: #fff; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.ls-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ls-tab { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; min-height: 40px; }
.ls-tab.active { color: var(--ink); border-bottom-color: #0e7c72; }
.ls-body--convert, .ls-body--markets, .ls-body--print { display: block !important; padding: 16px 20px 24px; background: var(--surface); }
.ls-body--design { grid-template-columns: 380px 1fr; }
.ls-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.ls-panel h3 { margin: 0 0 8px; font-size: 15px; }
.ls-panel p { font-size: 13.5px; line-height: 1.5; }
.ls-logo-row { display: flex; gap: 12px; align-items: center; }
.ls-logo-prev { width: 96px; height: 56px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; overflow: hidden; flex: none; }
.ls-logo-prev img { max-width: 92px; max-height: 52px; }
.ls-logo-prev span, .ls-ref span, .ls-empty { font-size: 12px; color: var(--muted); }
.ls-upload { display: inline-flex; align-items: center; cursor: pointer; min-height: 36px; }
.ls-convert { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ls-convert .ls-side { grid-column: 1 / -1; }
.ls-ref { margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; min-height: 140px; display: grid; place-items: center; background: #fff; padding: 8px; }
.ls-ref img { max-width: 100%; max-height: 320px; }
.ls-mk { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ls-mk legend { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; min-height: 34px; cursor: pointer; background: var(--surface); }
.ls-chip:has(input:checked) { background: var(--teal-soft); border-color: #0e7c72; }
.ls-conv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.ls-conv h4 { margin: 0 0 6px; font-size: 13.5px; }
.ls-conv ul, .ls-variant ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.ls-conv li.chg { font-weight: 700; color: #0b5f58; }
.ls-sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ls-sbs figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; display: grid; gap: 6px; align-content: start; min-height: 160px; }
.ls-sbs figcaption { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5c6b75; }
.ls-sbs img, .ls-sbs svg { width: 100%; height: auto; }
.ls-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 10px 0; }
.ls-partners label, .ls-form-flat label, .ls-convert label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.ls-partners input, .ls-form-flat input, .ls-form-flat select, .ls-form-flat textarea, .ls-convert select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 400; background: var(--panel); color: var(--ink); }
.ls-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ls-variant { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.ls-variant figcaption { font-weight: 800; font-size: 14px; }
.ls-variant figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.ls-vsvg svg { width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
.ls-variant details { font-size: 13px; } .ls-variant summary { cursor: pointer; font-weight: 700; }
.ls-print { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.ls-form-flat { display: grid; gap: 12px; margin-top: 10px; }
.ls-steps { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.ls-mini svg { width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
@media (max-width: 900px) {
  .ls-body--design, .ls-convert, .ls-print, .ls-sbs { grid-template-columns: 1fr; }
}
:root[data-theme="dark"] .ls-conv li.chg { color: #8fe3d8; }

/* RA approval gate */
.ls-approve { margin-top: 12px; }
.ls-approve-box { border: 1px solid var(--line, #d5dde2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.ls-approve-box legend { font-weight: 800; padding: 0 4px; }
.ls-warn-note { background: #fff6e8; border-left: 3px solid #d98a1c; color: #5b3200; padding: 8px 10px; border-radius: 6px; margin: 0 0 10px; font-size: 13px; }
.ls-ok-note { background: #e6f7f4; border-left: 3px solid #0e7c72; color: #0b4f49; padding: 8px 10px; border-radius: 6px; margin: 0 0 10px; font-size: 13px; }
:root[data-theme="dark"] .ls-warn-note { background: #3a2a14; color: #f8d6a3; }
:root[data-theme="dark"] .ls-ok-note { background: #10332f; color: #bff0e6; }
