/* Lucivion Client Portal — component styles. Every value comes from tokens.css; class prefix lx- */
/* Portal copy: a flat background precedes each color-mix call so older browsers keep a solid fallback. */
.lx, .lx * { box-sizing: border-box; }
.lx { font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: var(--ink); font-variant-numeric: tabular-nums; }
.lx :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.lx h1, .lx h2, .lx h3, .lx h4, .lx p { margin: 0; }
.lx i { font-style: normal; }
.lx-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-grey); }
.lx-note { font-size: 12px; line-height: 1.4; color: var(--neutral-grey); }

/* ---------- Shell: icon rail + header band + content area ---------- */
.lx-shell { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 100%; background: var(--canvas); }
.lx-rail { background: var(--primary-teal); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; }
.lx-rail__mark { height: 24px; width: auto; margin: 2px 0 14px; }
.lx-rail__spacer { flex: 1; }
.lx-ico { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--on-teal); opacity: .8; cursor: pointer; }
.lx-ico svg { width: 22px; height: 22px; }
.lx-ico:hover { background: rgba(255,255,255,.10); opacity: 1; }
.lx-ico.is-on { background: rgba(255,255,255,.14); opacity: 1; box-shadow: var(--edge-rail); }
.lx-ico.is-open { background: var(--teal-mid); color: var(--ink); opacity: 1; box-shadow: none; }
.lx-avatar { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--teal-mid); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lx-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 28px 0; }
.lx-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 14px; }
.lx-ident { display: flex; align-items: center; gap: 12px; }
.lx-tile { width: 40px; height: 40px; border-radius: var(--radius-control); display: grid; place-items: center; background: var(--teal-pale); color: var(--primary-teal); flex: none; }
.lx-tile svg { width: 22px; height: 22px; }
.lx-header h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ink); }
.lx-brandline { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.lx-meta { font-size: 12px; line-height: 1.5; color: var(--neutral-grey); text-align: right; }
.lx-meta b { color: var(--ink); font-weight: 600; }
.lx-content { padding: 18px 28px 28px; display: flex; flex-direction: column; gap: 14px; background: var(--canvas); }
.lx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.lx-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.lx-foot { font-size: 12px; color: var(--neutral-grey); max-width: 60rem; }

/* ---------- Tabs ---------- */
.lx-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: -1px; }
.lx-tab { font: inherit; font-size: 14px; font-weight: 500; color: var(--neutral-grey); background: transparent; border: 0; padding: 9px 16px; border-radius: 8px 8px 0 0; white-space: nowrap; cursor: pointer; }
.lx-tab:hover { color: var(--ink); background: var(--teal-pale); }
.lx-tab[aria-selected="true"] { background: var(--canvas); color: var(--ink); font-weight: 600; box-shadow: var(--edge-tab); }
.lx-tab[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; }

/* ---------- Breadcrumbs (sidebar layout only) ---------- */
.lx-crumbs { display: flex; gap: 6px; font-size: 12px; color: var(--neutral-grey); }
.lx-crumbs i { font-style: normal; opacity: .5; }
.lx-crumbs span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- Sidebar (alternative layout) ---------- */
.lx-side { background: var(--primary-teal); color: var(--on-teal); width: 228px; padding: 18px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.lx-side.is-collapsed { width: 64px; }
.lx-side__sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding: 12px 10px 4px; }
.lx-feat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-tag); font-size: 14px; font-weight: 500; color: var(--on-teal); opacity: .85; }
.lx-feat.is-on { background: rgba(255,255,255,.10); opacity: 1; font-weight: 600; }
.lx-subitem { display: block; padding: 6px 10px 6px 38px; border-radius: var(--radius-tag); font-size: 13px; color: var(--on-teal); opacity: .85; }
.lx-subitem[aria-current="page"] { opacity: 1; font-weight: 600; background: rgba(255,255,255,.14); box-shadow: var(--edge-rail); }

/* ---------- Filters and inputs ---------- */
.lx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lx-chip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; border: 0; border-radius: var(--radius-control); padding: 5px 10px; background: var(--surface); color: var(--ink); white-space: nowrap; cursor: pointer; }
.lx-chip em { font-style: normal; color: var(--neutral-grey); }
.lx-chip::after { content: "▾"; font-size: 11px; color: var(--neutral-grey); }
.lx-chip[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--primary-teal); }
.lx-chip[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.lx-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.lx-seg { display: inline-flex; background: var(--teal-pale); border-radius: var(--radius-pill); padding: 3px; }
.lx-seg button { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--neutral-grey); padding: 5px 12px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.lx-seg button[aria-selected="true"] { background: var(--primary-teal); color: var(--on-teal); }
.lx-seg button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.lx-seg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lx-search { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: var(--radius-control); padding: 5px 10px; color: var(--neutral-grey); background: var(--surface); min-width: 180px; max-width: 280px; flex: 1; }
.lx-search:focus-within { border-color: var(--teal-mid); box-shadow: var(--shadow-focus-glow); }
.lx-search input { font: inherit; font-size: 13px; border: 0; outline: 0; background: transparent; color: var(--ink); width: 100%; }
.lx-search.is-error { border-color: var(--negative); }
.lx-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.lx-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-teal); }
.lx-switch { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12px; color: var(--ink); background: transparent; border: 0; padding: 4px 6px; border-radius: var(--radius-control); cursor: pointer; }
.lx-switch__track { position: relative; width: 32px; height: 18px; border-radius: var(--radius-pill); background: var(--neutral); transition: background var(--motion-base); flex: none; }
.lx-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--motion-base); }
.lx-switch[aria-checked="true"] .lx-switch__track { background: var(--primary-teal); }
.lx-switch[aria-checked="true"] .lx-switch__track::after { transform: translateX(14px); }
.lx-switch[data-mixed="true"] .lx-switch__track { background: var(--teal-mid); }

/* ---------- Buttons ---------- */
.lx-btn { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: var(--radius-control); padding: 9px 16px; background: var(--primary-teal); color: var(--on-teal); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.lx-btn svg { width: 16px; height: 16px; }
.lx-btn:hover { filter: brightness(.9); }
.lx-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.lx-btn--ghost { background: transparent; color: var(--teal-text); box-shadow: inset 0 0 0 1.5px var(--teal-mid); padding: 7px 12px; }
.lx-btn--ghost:hover { background: var(--teal-pale); filter: none; }
.lx-btn--link { background: none; color: var(--teal-text); padding: 0; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.lx-btn--link:hover { filter: none; }
.lx-iconbtn { border: 0; background: transparent; color: var(--neutral-grey); width: 30px; height: 30px; border-radius: var(--radius-control); display: inline-grid; place-items: center; cursor: pointer; }
.lx-iconbtn:hover { background: var(--teal-pale); color: var(--ink); }
.lx-iconbtn svg { width: 18px; height: 18px; }

/* ---------- Feedback ---------- */
.lx-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill); color: var(--ink); background: rgba(156, 154, 152, 0.18); background: color-mix(in srgb, var(--c, var(--neutral)) 18%, transparent); white-space: nowrap; }
.lx-pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--neutral)); }
.lx-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: var(--radius-tag); background: var(--teal-pale); color: var(--ink); white-space: nowrap; }
.lx-tag b { font-weight: 700; color: var(--teal-text); }
.lx-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 2px 8px; }
.lx-badge--env { background: var(--negative); color: #FFFFFF; }
.lx-badge--example { color: var(--teal-text); box-shadow: inset 0 0 0 1px var(--teal-mid); }
.lx-badge--open { background: var(--primary-teal); color: var(--on-teal); }
.lx-badge--ai { gap: 4px; color: var(--teal-text); background: var(--teal-pale); letter-spacing: 0; text-transform: none; font-weight: 600; }
.lx-tt { position: absolute; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: var(--shadow-popover); padding: 6px 10px; font-size: 12px; max-width: 260px; }
.lx-tt .t { color: var(--neutral-grey); margin-bottom: 2px; }
.lx-tt .l { display: flex; align-items: center; gap: 6px; }
.lx-tt i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lx-toast { background: var(--ink); color: var(--surface); font-size: 13px; padding: 10px 16px; border-radius: var(--radius-control); box-shadow: var(--shadow-popover); width: fit-content; max-width: 90%; }
.lx-empty { font-size: 13px; color: var(--neutral-grey); padding: 10px 12px; }
.lx-error { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 80px; font-size: 12px; color: var(--neutral-grey); }
.lx-error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--negative); }
.lx-skeleton { display: block; height: 12px; border-radius: var(--radius-tag); background: linear-gradient(90deg, var(--teal-pale), var(--canvas), var(--teal-pale)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .lx-skeleton { animation: lx-shimmer 1.4s linear infinite; } }
@keyframes lx-shimmer { to { background-position: -200% 0; } }

/* ---------- Containers ---------- */
.lx-card { position: relative; background: var(--surface); border-radius: var(--radius-card); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lx-card__head { display: flex; align-items: flex-start; gap: 8px; }
.lx-card__head > :first-child { flex: 1; min-width: 0; }
.lx-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.35; }
.lx-card.is-folded { gap: 0; }
.lx-card.is-folded > :not(.lx-card__head) { display: none; }
.lx-fold svg { transition: transform var(--motion-base); }
.lx-card.is-folded .lx-fold svg { transform: rotate(-90deg); }
.lx-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lx-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; }
.lx-pop { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-popover); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.lx-pop__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lx-pop__head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.lx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.lx-ptile { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; padding: 12px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; min-height: 104px; }
.lx-ptile:hover { border-color: var(--teal-mid); box-shadow: var(--shadow-focus-glow); }
.lx-ptile[aria-current="page"] { border-color: var(--primary-teal); box-shadow: inset 0 0 0 1px var(--primary-teal); }
.lx-ptile .tile { width: 36px; height: 36px; border-radius: var(--radius-control); display: grid; place-items: center; background: var(--teal-pale); color: var(--primary-teal); }
.lx-ptile .tile svg { width: 20px; height: 20px; }
.lx-ptile .nm { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.3; }
.lx-ptile .ty { font-size: 12px; color: var(--neutral-grey); margin-top: -6px; }
.lx-ptile .lx-badge { position: absolute; top: 10px; right: 10px; }

/* ---------- Data display ---------- */
.lx-table-wrap { overflow-x: auto; border-radius: var(--radius-tag); }
.lx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lx-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--neutral-grey); padding: 6px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.lx-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lx-table tbody tr:last-child td { border-bottom: 0; }
.lx-table tbody tr:hover td { background: var(--teal-pale); }
.lx-table .num { text-align: right; white-space: nowrap; }
.lx-table td.rep { color: var(--neutral-grey); }
.lx-table tr.grp td { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); padding-top: 12px; border-bottom: 0; }
.lx-table tr.is-selected td { background: var(--teal-pale); }
.lx-sort { font: inherit; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.lx-sort .ar { font-size: 11px; opacity: 0; }
th[aria-sort] .lx-sort .ar { opacity: 1; }
.lx-sub { display: block; font-size: 12px; color: var(--neutral-grey); margin-top: 2px; }
.lx-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13px; }
.lx-kv dt { color: var(--neutral-grey); }
.lx-kv dd { margin: 0; color: var(--ink); }
.lx-profile { display: flex; align-items: center; gap: 14px; }
.lx-profile__av { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-pale); color: var(--primary-teal); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.lx-profile h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

/* ---------- Solution: KPI strip ---------- */
.lx-kpis { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius-card); overflow: hidden; }
.lx-kpi { position: relative; padding: 12px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; font: inherit; background: transparent; border: 0; color: var(--ink); }
.lx-kpi + .lx-kpi { border-left: 1px solid var(--border); }
.lx-kpi__name { font-size: 13px; color: var(--neutral-grey); }
.lx-kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ink); }
.lx-kpi__pct { font-size: 12px; color: var(--neutral-grey); margin-left: 6px; font-family: var(--font-body); font-weight: 400; }
.lx-kpi[data-sev]::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
button.lx-kpi { cursor: pointer; transition: background var(--motion-fast); }
button.lx-kpi:hover { background: var(--teal-pale); }
button.lx-kpi[aria-pressed="true"] { background: var(--teal-pale); box-shadow: var(--edge-selected); }
button.lx-kpi[aria-pressed="true"] .lx-kpi__name { color: var(--teal-text); font-weight: 600; }
.lx-kpis__group { padding: 12px 0 0; }
.lx-kpis__group > .lx-label { padding: 0 20px; }
.lx-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink); white-space: nowrap; }
.lx-delta::before { font-size: 11px; }
.lx-delta.up::before { content: "▲"; color: var(--negative); }
.lx-delta.down::before { content: "▼"; color: var(--positive); }
.lx-delta.flat::before { content: "●"; color: var(--neutral); }
.lx-delta.good-up.up::before { color: var(--positive); }
.lx-delta.good-up.down::before { color: var(--negative); }
.lx-delta .vs { color: var(--neutral-grey); }

/* ---------- Solution: charts ---------- */
.lx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.lx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lx-legend i { width: 10px; height: 10px; border-radius: var(--radius-mark); display: inline-block; }
.lx-chart { position: relative; }
.lx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-chart .grid { stroke: var(--border); }
.lx-chart .tick { fill: var(--neutral-grey); font-size: 11px; font-family: var(--font-body); }
.lx-chart .vlabel { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.lx-chart .elabel { font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.lx-hbars { display: flex; flex-direction: column; gap: 6px; }
.lx-hbar { display: grid; grid-template-columns: minmax(0, 9rem) 1fr 2em; align-items: center; gap: 8px; font-size: 12px; }
.lx-hbar .l { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-hbar .w { display: block; min-width: 0; }
.lx-hbar .b { display: block; height: 12px; border-radius: var(--radius-mark); background: var(--teal-mid); min-width: 3px; }
.lx-hbar .n { font-weight: 700; text-align: right; }
.lx-cols { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; height: 170px; padding: 0 8px 22px; border-bottom: 1px solid var(--border); }
.lx-col { flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.lx-col .n { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.lx-col .b { width: 100%; border-radius: 4px 4px 0 0; background: var(--teal-mid); display: flex; flex-direction: column-reverse; gap: 2px; overflow: hidden; }
.lx-col .b.cur { background: var(--primary-teal); }
.lx-col .b i { display: block; width: 100%; }
.lx-col .m { position: absolute; bottom: -22px; font-size: 12px; color: var(--neutral-grey); white-space: nowrap; }
.lx-stack { display: flex; height: 22px; border-radius: var(--radius-tag); overflow: hidden; gap: 2px; }
.lx-stack i { display: block; height: 100%; font-style: normal; }
.lx-split { display: flex; flex-direction: column; }
.lx-split__row { display: grid; grid-template-columns: 12px 1fr minmax(60px, 40%) 2.4em 3em; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lx-split__row:last-child { border-bottom: 0; }
.lx-split__row .sw { width: 10px; height: 10px; border-radius: 2px; }
.lx-mini { display: block; height: 6px; border-radius: 3px; background: rgba(156, 154, 152, 0.25); background: color-mix(in srgb, var(--neutral) 25%, transparent); overflow: hidden; }
.lx-mini i { display: block; height: 100%; background: var(--teal-mid); }
.lx-split__row .n { font-weight: 700; text-align: right; }
.lx-split__row .p { color: var(--neutral-grey); text-align: right; font-size: 12px; }
.lx-share { display: flex; align-items: center; gap: 8px; }
.lx-share .lx-mini { flex: 1; min-width: 60px; max-width: 220px; height: 8px; }
.lx-rank { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--primary-teal); color: var(--on-teal); flex: none; }
.lx-rank.none { background: transparent; }
.lx-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--teal-mid); display: inline-block; }
.lx-dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.lx-matrix td.m, .lx-matrix th.m { text-align: center; width: 3.2rem; }
.lx-matrix .cur { background: var(--teal-pale); }
.lx-flag { background: rgba(217, 69, 59, 0.09); background: color-mix(in srgb, var(--negative) 9%, transparent); box-shadow: inset 3px 0 0 var(--negative); }

/* ---------- Solution: AI summary, refresh and export ---------- */
.lx-ai { box-shadow: inset 3px 0 0 var(--primary-teal); }
.lx-ai__text { font-size: 14px; line-height: 1.6; }
.lx-ai__text p + p { margin-top: 8px; }
.lx-ai__disclaimer { font-size: 12px; color: var(--neutral-grey); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.lx-refresh { font-size: 12px; color: var(--neutral-grey); display: inline-flex; align-items: center; gap: 6px; }
.lx-refresh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); }
.lx-refresh.is-stale::before { background: var(--accent-orange); }

/* ---------- Portal extensions (24 Oct 26): elements the first release did not cover ---------- */
.lx-badge--generated { color: var(--teal-text); box-shadow: inset 0 0 0 1px var(--teal-mid); }
.lx-badge--user { color: var(--ink); box-shadow: inset 0 0 0 1px var(--neutral); }
.lx-block__head { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.lx-block__title { font-size: 13px; font-weight: 600; color: var(--ink); }
.lx-block__state { font-size: 12px; color: var(--neutral-grey); }
.lx-block__title { flex: 0 1 auto; min-width: 0; }
.lx-block__state { flex: 1 1 auto; min-width: 0; }
.lx-block__fold { flex: none; margin-left: auto; }
.lx-card.is-folded.lx-block > :not(.lx-block__head):not(.lx-block__reason) { display: none; }
.lx-card.is-folded.lx-block > .lx-block__head, .lx-card.is-folded.lx-block > .lx-block__reason { display: flex; }
.lx-block__reason { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--neutral-grey); }
.lx-block__reason::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral); flex: none; }
.lx-btn--menu::after { content: "\25BE"; font-size: 11px; color: var(--neutral-grey); }
.lx-menu { padding: 6px; gap: 0; min-width: 180px; }
.lx-menu--account { width: 220px; }
.lx-menu__item { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 7px 10px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.lx-menu__item:hover { background: var(--teal-pale); }
.lx-menu__item[disabled], .lx-menu__item[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: transparent; }
.lx-menu__sep { display: block; height: 1px; background: var(--border); margin: 4px 0; }
.lx-menu__id { font-size: 12px; color: var(--neutral-grey); padding: 6px 10px 8px; }
.lx-dialog { max-width: 28rem; padding: 20px; gap: 16px; }
.lx-dialog__msg { font-size: 14px; line-height: 1.5; color: var(--ink); }
.lx-dialog__actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
dialog.lx-dialog::backdrop, .lx-scrim { background: var(--scrim); }
.lx-scrim { position: fixed; inset: 0; }
.lx-scrim-demo { background: var(--scrim); padding: 24px; border-radius: var(--radius-card); }
.lx-btn--destructive { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--neutral-grey); padding: 7px 12px; }
.lx-btn--destructive:hover { background: var(--canvas); filter: none; }
.lx-contents { position: sticky; top: 16px; display: grid; gap: 2px; align-content: start; }
.lx-contents .lx-label { margin-bottom: 4px; }
.lx-contents a { font-size: 13px; color: var(--teal-text); padding: 4px 0; text-decoration: none; }
.lx-contents a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lx-qr { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--radius-card); }
.lx-qr img, .lx-qr__img { width: 200px; height: 200px; display: block; }
.lx-qr__img { background: var(--canvas); border-radius: var(--radius-tag); }
.lx-qr code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.lx-msg { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); margin: 0 0 12px; }
.lx-msg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral); flex: none; }
.lx-msg--error::before { background: var(--negative); }
.lx-msg--ok::before { background: var(--positive); }
.lx-multi { min-width: 220px; max-width: 320px; gap: 8px; }
.lx-multi__actions { display: flex; gap: 12px; }
.lx-info { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--neutral-grey); color: var(--neutral-grey); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; cursor: help; }
.lx-info:hover, .lx-info:focus-visible { background: var(--teal-pale); }
.lx-shade-0 { background: transparent; }
.lx-shade-1 { background: rgba(156,154,152,0.08); }
.lx-shade-2 { background: rgba(156,154,152,0.18); }
.lx-shade-3 { background: rgba(156,154,152,0.30); }
.lx-shade-4 { background: rgba(156,154,152,0.44); }
.lx-legend i.lx-shade-0 { box-shadow: inset 0 0 0 1px var(--border); }
.lx-scroll { scrollbar-width: thin; scrollbar-color: var(--neutral) transparent; }
.lx-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.lx-table--banded tbody tr:nth-child(even) td { background: rgba(37,36,35,0.025); }
.lx-tip { position: relative; }
.lx-tip:is(:hover, :focus-visible)::after { content: attr(aria-label); position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: var(--shadow-popover); padding: 6px 10px; font-size: 12px; font-weight: 400; z-index: 30; pointer-events: none; }
.lx-ico.lx-ico--letter { font-size: 15px; font-weight: 700; font-family: var(--font-display); }
.series-5 { color: var(--series-5); }
.series-6 { color: var(--series-6); }

/* CSP-safe modifiers: the portal blocks inline style attributes, so use these instead of style="--n|--cols|--c". */
.lx-kpis--n1 { --n: 1; }
.lx-kpis--n2 { --n: 2; }
.lx-kpis--n3 { --n: 3; }
.lx-kpis--n4 { --n: 4; }
.lx-kpis--n5 { --n: 5; }
.lx-kpis--n6 { --n: 6; }
.lx-grid--cols-1 { --cols: 1; }
.lx-grid--cols-2 { --cols: 2; }
.lx-grid--cols-3 { --cols: 3; }
.lx-c--risk-1 { --c: var(--risk-1); }
.lx-c--risk-2 { --c: var(--risk-2); }
.lx-c--risk-3 { --c: var(--risk-3); }
.lx-c--risk-4 { --c: var(--risk-4); }
.lx-c--positive { --c: var(--positive); }
.lx-c--negative { --c: var(--negative); }
.lx-c--neutral { --c: var(--neutral); }
