/* LxrDev Licensing workspace — full visual system */

.lx-le {
    --lx-blue: #58a6ff;
    --lx-blue-2: #1f6feb;
    --lx-green: #3fb950;
    --lx-purple: #bc8cff;
    --lx-gold: #d4a017;
    --lx-radius: 18px;
    --lx-radius-sm: 12px;
    position: relative;
    margin-top: 0;
    padding: 0 2px 40px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
#leCryptoSection.section,
.section.lx-le {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    animation: none !important;
}
.lx-le::before {
    display: none !important;
    content: none !important;
}
.lx-le > * {
    position: relative;
    z-index: 1;
}

/* Hero — glows stay clipped inside the card */
.lx-le-hero.dh-hero {
    position: relative;
    isolation: isolate;
    margin-bottom: 18px;
    overflow: hidden !important;
    border: 1px solid rgba(48, 54, 61, 0.92) !important;
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.94) 100%) !important;
    box-shadow: 0 14px 32px rgba(1, 4, 9, 0.2) !important;
}
.lx-le-hero.dh-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.45), transparent 72%);
    pointer-events: none;
    z-index: 1;
}
.lx-le-hero.dh-hero::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 200px;
    height: 200px;
    pointer-events: none;
    opacity: 0.22;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.35), transparent 70%);
    z-index: 0;
}
.lx-le-hero .dh-hero-identity {
    align-items: flex-start;
}
.lx-le-hero .dh-hero-identity,
.lx-le-hero .page-title-section,
.lx-le-hero .lx-le-hero-actions {
    position: relative;
    z-index: 2;
}
.lx-le-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #9cd1ff;
    background:
        linear-gradient(180deg, rgba(56, 139, 253, 0.28), rgba(56, 139, 253, 0.08));
    border: 1px solid rgba(88, 166, 255, 0.32);
    box-shadow: 0 10px 24px rgba(9, 105, 218, 0.18);
}
.lx-le-hero h1 {
    font-size: 28px !important;
    line-height: 1.15;
    max-width: 16ch;
}
.lx-le-hero .dh-hero-meta {
    max-width: 46ch;
    line-height: 1.55;
}
.lx-le-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.lx-le-hero .dh-hero-top,
.lx-le .lx-le-head {
    flex-wrap: wrap;
}

/* Locked */
.lx-le-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 1px solid rgba(88, 166, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.88));
    border-radius: 22px;
    padding: 52px 28px;
    box-shadow: 0 18px 40px rgba(1, 4, 9, 0.2);
}
.lx-le-locked-ico {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.24);
    margin-bottom: 8px;
}
.lx-le-locked h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.lx-le-locked p {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 0 12px;
    line-height: 1.65;
}

/* Metrics */
.lx-le-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.lx-metric {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 96px;
    padding: 16px;
    border-radius: var(--lx-radius);
    border: 1px solid var(--border-default);
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.92), rgba(13, 17, 23, 0.72));
    overflow: hidden;
}
.lx-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--lx-tone, var(--border-emphasis));
}
.lx-metric.is-on { --lx-tone: var(--lx-green); }
.lx-metric.is-off { --lx-tone: #484f58; }
.lx-metric.is-blue { --lx-tone: var(--lx-blue); }
.lx-metric.is-purple { --lx-tone: var(--lx-purple); }
.lx-metric-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--lx-tone);
    background: color-mix(in srgb, var(--lx-tone) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--lx-tone) 28%, transparent);
}
.lx-metric span,
.lx-metric strong,
.lx-metric em {
    display: block;
}
.lx-metric span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.lx-metric strong {
    font-size: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.lx-metric em {
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-secondary);
}
.lx-metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lx-tone);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-tone) 18%, transparent);
    align-self: start;
    margin-top: 6px;
}

/* Tabs */
.lx-le-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    margin: 0 0 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 27, 34, 0.78);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}
.lx-le-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lx-le-tab svg {
    width: 15px;
    height: 15px;
    opacity: 0.75;
}
.lx-le-tab:hover:not(.is-off):not(.is-active),
.lx-le .lx-le-tab:hover:not(.is-off):not(.is-active) {
    color: #9cd1ff !important;
    background: rgba(56, 139, 253, 0.14) !important;
}
.lx-seg-btn:hover:not(.is-on) {
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.1);
}
.lx-pill:hover:not(.is-on) {
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.12);
}
.lx-le-tab.is-active {
    color: #fff;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    box-shadow: 0 8px 18px rgba(9, 105, 218, 0.28);
}
.lx-le-tab.is-active svg {
    opacity: 1;
}
.lx-le-tab.is-off {
    opacity: 0.38;
    cursor: not-allowed;
}

/* Panels */
.lx-le-panel {
    border: 1px solid rgba(48, 54, 61, 0.85);
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.94) 0%, rgba(13, 17, 23, 0.78) 100%);
    border-radius: 22px;
    padding: 28px 32px 32px;
    box-shadow: 0 16px 36px rgba(1, 4, 9, 0.16);
}
.lx-le-panel.hidden {
    display: none;
}
.lx-le-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.85);
}
.lx-le-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #79c0ff;
}
.lx-le-head h3,
.lx-le-head h3.le-panel-desc {
    margin: 0 0 4px;
    font-size: 20px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.lx-le-head p,
.lx-le .le-panel-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
    max-width: 62ch;
}
.lx-le .le-panel-toolbar,
.lx-le-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Package cards */
.lx-le-packs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.lx-pack {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.55);
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.lx-pack:hover {
    border-color: rgba(88, 166, 255, 0.35);
    background: rgba(22, 27, 34, 0.9);
    transform: translateY(-1px);
}
.lx-pack-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.22);
}
.lx-pack-body {
    min-width: 0;
}
.lx-pack-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.lx-pack-top h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
}
.lx-pack-period {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 2px 8px;
}
.lx-pack-plan {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-secondary);
}
.lx-pack-svcs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lx-svc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid var(--border-default);
    color: var(--text-tertiary);
}
.lx-svc i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    font-style: normal;
}
.lx-svc.is-on {
    color: #3fb950;
    background: rgba(31, 136, 61, 0.1);
    border-color: rgba(63, 185, 80, 0.28);
}
.lx-svc.is-off {
    color: var(--text-tertiary);
}
.lx-pack-go {
    appearance: none;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    color: #fff;
    border-radius: 10px;
    min-height: 36px;
    padding: 0 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(9, 105, 218, 0.22);
}
.lx-pack-go:hover {
    filter: brightness(1.06);
}
.lx-pack-go.is-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    box-shadow: none;
}
.lx-pack-go.is-ghost:hover {
    border-color: rgba(88, 166, 255, 0.4);
    color: #79c0ff;
    filter: none;
}

/* Tables */
.lx-le .le-subsection-title {
    margin: 22px 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-le .le-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-default);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.45);
}
.lx-le .le-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lx-le .le-data-table th,
.lx-le .le-data-table td {
    padding: 13px 14px;
    text-align: start;
    vertical-align: middle;
    border-bottom: 1px solid rgba(48, 54, 61, 0.8);
}
.lx-le .le-data-table th {
    background: rgba(22, 27, 34, 0.95);
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lx-le .le-data-table tbody tr:hover {
    background: rgba(88, 166, 255, 0.045);
}
.lx-le .le-data-table tbody tr:last-child td {
    border-bottom: 0;
}
.lx-le .le-td-muted {
    color: var(--text-tertiary);
    text-align: center;
    padding: 36px 16px !important;
}
.lx-le .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.lx-le .badge.active {
    background: rgba(31, 136, 61, 0.14);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.28);
}
.lx-le .badge.inactive {
    background: rgba(207, 34, 46, 0.12);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.24);
}
.lx-le .badge.disabled {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
}
.lx-le .le-script-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 240px;
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(56, 139, 253, 0.1);
    color: #79c0ff;
    border: 1px solid rgba(56, 139, 253, 0.22);
    font-size: 12px;
    font-weight: 750;
}
.lx-le .le-store-tag {
    margin-inline-start: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 2px 6px;
}
.lx-le .le-mono,
.lx-le .le-ip-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #e6edf3;
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 4px 8px;
}
.lx-le .le-key-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lx-le .le-actions-cell .tax-actions,
.lx-le .tax-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lx-le .btn-icon {
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lx-le .btn-icon:hover {
    color: var(--text-primary);
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(56, 139, 253, 0.1);
}
.lx-le .btn-icon.edit:hover {
    color: #79c0ff;
}
.lx-le .btn-icon.del:hover {
    color: #f85149;
    border-color: rgba(248, 81, 73, 0.35);
    background: rgba(207, 34, 46, 0.1);
}

/* Forms */
.lx-le .le-form-row {
    margin: 0;
}
.lx-le .le-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-le .le-input,
.lx-le .le-input-wide,
.lx-le .le-textarea,
.lx-le select.le-input {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.85);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lx-le .le-textarea {
    min-height: 160px;
    resize: vertical;
}
.lx-le .le-textarea-code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.7;
    letter-spacing: 0.01em;
    direction: ltr;
    text-align: left;
    color: #d7dee8;
    background: #0b1017;
}
.lx-le .le-input:focus,
.lx-le .le-textarea:focus,
.lx-le select.le-input:focus {
    border-color: rgba(88, 166, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.14);
}
.lx-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Script files IDE */
.lx-ide {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    min-height: 620px;
    align-items: stretch;
}
.lx-ide-rail {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    background: rgba(13, 17, 23, 0.58);
    overflow: hidden;
}
.lx-ide-rail-top {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.88);
}
.lx-ide-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #79c0ff;
}
.lx-ide-files {
    display: grid;
    gap: 8px;
    padding: 12px;
    overflow: auto;
    flex: 1;
    align-content: start;
}
.lx-ide-files .lx-file {
    grid-template-columns: 1fr auto;
    padding: 10px;
}
.lx-ide-files .lx-empty {
    padding: 28px 12px;
}
.lx-ide-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    background: #0b1017;
    overflow: hidden;
}
.lx-ide-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) auto auto;
    gap: 14px;
    align-items: end;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.94);
}
.lx-ide-save {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.lx-ide-codewrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.lx-ide-codehead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-ide-codehead em {
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #8b949e;
}
.lx-ide-code {
    flex: 1;
    min-height: 420px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: none;
    padding: 14px 16px 20px;
    background: #0b1017 !important;
}
.lx-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.8);
}
.lx-seg-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
}
.lx-seg-btn.is-on {
    color: #fff;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    box-shadow: 0 6px 14px rgba(9, 105, 218, 0.22);
}

/* Encryption studios - both always visible */
.lx-enc-card {
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: rgba(13, 17, 23, 0.52);
    overflow: hidden;
    margin-top: 16px;
}
.lx-enc-card.is-lua {
    border-color: rgba(88, 166, 255, 0.22);
}
.lx-enc-card.is-js {
    border-color: rgba(188, 140, 255, 0.28);
}
.lx-enc-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.9);
}
.lx-enc-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.lx-enc-identity h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}
.lx-enc-identity p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.lx-enc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.lx-enc-panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}
.lx-enc-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #0b1017;
}
.lx-enc-pane + .lx-enc-pane {
    border-inline-start: 1px solid var(--border-default);
}
.lx-enc-pane-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-default);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: rgba(22, 27, 34, 0.72);
}
.lx-enc-pane-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.lx-enc-code {
    flex: 1;
    min-height: 320px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: none;
    padding: 14px 16px 18px;
    background: #0b1017 !important;
}
.lx-js-run {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.28) !important;
}
.lx-pills {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid var(--border-default);
}
.lx-pill {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    min-height: 30px;
    padding: 0 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.lx-pill.is-on {
    color: #fff;
    background: rgba(56, 139, 253, 0.28);
}
.lx-enc-card.is-js .lx-pill.is-on {
    background: rgba(163, 113, 247, 0.32);
}
.lx-lang {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 5px 9px;
    border: 1px solid var(--border-default);
}
.lx-lang.is-lua {
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.12);
    border-color: rgba(56, 139, 253, 0.28);
}
.lx-lang.is-js {
    color: #d2a8ff;
    background: rgba(163, 113, 247, 0.12);
    border-color: rgba(188, 140, 255, 0.28);
}
.lx-le .le-file-import {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px dashed rgba(88, 166, 255, 0.35);
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.06);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    width: fit-content;
}
.lx-le .le-file-import.is-js {
    border-color: rgba(188, 140, 255, 0.4);
    color: #d2a8ff;
    background: rgba(163, 113, 247, 0.08);
}
.lx-le .le-file-import input {
    display: none;
}
.lx-le .le-obf-stats {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
.lx-le-gate {
    margin: 20px;
    border: 1px dashed rgba(139, 148, 158, 0.35);
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(13, 17, 23, 0.35);
    line-height: 1.6;
}
.lx-enc-card.is-locked .lx-enc-top {
    opacity: 0.92;
}
#leTabJs,
#leTabLua {
    display: block !important;
}

/* Script files workspace */
.lx-files-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.7fr);
    gap: 20px;
    align-items: stretch;
    min-height: 560px;
}
.lx-files-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    background: rgba(13, 17, 23, 0.5);
    overflow: hidden;
}
.lx-files-side-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.7);
}
.lx-files-side-label {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-files-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 14px;
    overflow: auto;
    flex: 1;
}
.lx-files-list .lx-file {
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
    align-items: center;
}
.lx-file-main {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    cursor: pointer;
}
.lx-files-list .lx-file.is-active {
    border-color: rgba(88, 166, 255, 0.45);
    background: rgba(56, 139, 253, 0.1);
}
.lx-files-editor {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 560px;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    background: #0b1017;
    overflow: hidden;
}
.lx-editor-bar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.92);
}
.lx-editor-fields {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.lx-editor-name {
    flex: 1;
    min-width: 180px;
}
.lx-editor-mode {
    min-width: 220px;
}
.lx-editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.lx-editor-code-label {
    padding: 10px 18px 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-files-editor .lx-code-fill {
    flex: 1;
    min-height: 380px;
    border: 0;
    border-radius: 0;
    background: #0b1017;
    box-shadow: none;
    resize: none;
    padding: 16px 18px 20px;
}
.lx-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.8);
}
.lx-seg-btn {
    appearance: none;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
}
.lx-seg-btn.is-on {
    color: #fff;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    box-shadow: 0 6px 14px rgba(9, 105, 218, 0.22);
}

/* Encryption studio */
.lx-enc-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.65);
    flex-wrap: wrap;
}
.lx-enc-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    min-height: 40px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lx-enc-tab.is-active {
    color: var(--text-primary);
    background: rgba(22, 27, 34, 0.95);
    box-shadow: 0 8px 18px rgba(1, 4, 9, 0.18);
}
.lx-enc-tab.is-off {
    opacity: 0.38;
    cursor: not-allowed;
}
.lx-studio-wide {
    border: 1px solid var(--border-default);
    border-radius: 18px;
    background: rgba(13, 17, 23, 0.45);
    overflow: hidden;
    min-width: 0;
}
.lx-studio-wide.hidden {
    display: none;
}
.lx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    min-height: 560px;
}
.lx-code-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #0b1017;
}
.lx-code-pane + .lx-split-run + .lx-code-pane {
    border-inline-start: 1px solid var(--border-default);
}
.lx-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(22, 27, 34, 0.92);
}
.lx-code-bar strong {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-code-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lx-code-fill {
    flex: 1;
    width: 100%;
    min-height: 420px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: none;
    padding: 16px 18px 20px;
    background: #0b1017 !important;
}
.lx-split-run {
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.9), rgba(13, 17, 23, 0.9));
    border-inline: 1px solid var(--border-default);
    padding: 12px 8px;
}
.lx-run-btn {
    appearance: none;
    width: 100%;
    max-width: 88px;
    min-height: 132px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(9, 105, 218, 0.28);
    writing-mode: horizontal-tb;
    padding: 12px 8px;
}
.lx-run-btn span {
    line-height: 1.3;
    max-width: 100%;
}
.lx-run-btn.is-js {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    box-shadow: 0 12px 24px rgba(109, 40, 217, 0.28);
}
.lx-run-btn:hover {
    filter: brightness(1.06);
}
.lx-pills {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.7);
    border: 1px solid var(--border-default);
}
.lx-pill {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    min-height: 30px;
    padding: 0 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.lx-pill.is-on {
    color: #fff;
    background: rgba(56, 139, 253, 0.28);
}
.lx-lang {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid var(--border-default);
}
.lx-lang.is-lua {
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.12);
    border-color: rgba(56, 139, 253, 0.28);
}
.lx-lang.is-js {
    color: #d2a8ff;
    background: rgba(163, 113, 247, 0.12);
    border-color: rgba(188, 140, 255, 0.28);
}
.lx-le .le-file-import {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px dashed rgba(88, 166, 255, 0.35);
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.06);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    width: fit-content;
}
.lx-le .le-file-import input {
    display: none;
}
.lx-le .le-file-import:hover {
    background: rgba(56, 139, 253, 0.12);
}
.lx-le .le-obf-stats {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
}
.lx-le-gate {
    margin: 24px;
    border: 1px dashed rgba(139, 148, 158, 0.35);
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(13, 17, 23, 0.35);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .lx-ide,
    .lx-enc-panes,
    .lx-files-grid,
    .lx-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .lx-enc-pane + .lx-enc-pane,
    .lx-code-pane + .lx-split-run + .lx-code-pane {
        border-inline-start: 0;
        border-top: 1px solid var(--border-default);
    }
    .lx-ide-toolbar {
        grid-template-columns: 1fr;
    }
    .lx-ide-save {
        justify-content: stretch;
    }
    .lx-ide-save .ds-btn {
        flex: 1;
    }
}
@media (max-width: 1100px) {
    .lx-le-stats,
    .lx-le-packs {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .lx-le-panel {
        padding: 20px 16px 22px;
    }
    .lx-le-stats,
    .lx-le-packs,
    .lx-pack {
        grid-template-columns: 1fr;
    }
    .lx-le-hero h1 {
        max-width: none;
        font-size: 24px !important;
    }
    .lx-le-tabs {
        width: 100%;
    }
    .lx-le-head,
    .lx-le-hero-top,
    .dh-hero-top,
    .lx-editor-bar,
    .lx-code-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
html.lang-ar .lx-le-head,
html.lang-ar .lx-pack,
html.lang-ar .lx-metric,
html.lang-ar .lx-le-locked {
    text-align: right;
}
html.lang-ar .lx-metric::before {
    inset: 0 0 0 auto;
}

/* Blocks + lists */
.lx-block + .lx-block {
    margin-top: 22px;
}
.lx-block-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.lx-block-head h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-block-head p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.lx-list {
    display: grid;
    gap: 10px;
}

/* License / file cards */
.lx-key,
.lx-file {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.78), rgba(13, 17, 23, 0.62));
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.lx-key:hover,
.lx-file:hover {
    border-color: rgba(88, 166, 255, 0.32);
    background: rgba(22, 27, 34, 0.94);
    transform: translateY(-1px);
}
.lx-key-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.22);
    flex-shrink: 0;
}
.lx-file .lx-key-mark {
    color: #d2a8ff;
    background: rgba(163, 113, 247, 0.12);
    border-color: rgba(188, 140, 255, 0.24);
}
.lx-key-body {
    min-width: 0;
}
.lx-key-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.lx-key-top h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.lx-key-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.lx-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.lx-meta em {
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.lx-key-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.lx-pack-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.lx-pack-go.is-ghost {
    background: transparent;
    color: var(--text-secondary);
}

/* Icon buttons */
.lx-ico,
.lx-le .lx-ico {
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.lx-ico:hover,
.lx-le .lx-ico:hover {
    color: #79c0ff;
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(56, 139, 253, 0.1);
    transform: translateY(-1px);
}
.lx-ico.is-edit:hover { color: #79c0ff; }
.lx-ico.is-warn:hover {
    color: #d29922;
    border-color: rgba(210, 153, 34, 0.4);
    background: rgba(210, 153, 34, 0.1);
}
.lx-ico.is-ok:hover {
    color: #3fb950;
    border-color: rgba(63, 185, 80, 0.4);
    background: rgba(31, 136, 61, 0.12);
}
.lx-ico.is-del:hover {
    color: #f85149;
    border-color: rgba(248, 81, 73, 0.35);
    background: rgba(207, 34, 46, 0.1);
}

/* Empty / loading */
.lx-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 36px 18px;
    border-radius: 16px;
    border: 1px dashed rgba(88, 166, 255, 0.22);
    background: rgba(13, 17, 23, 0.35);
    color: var(--text-secondary);
}
.lx-empty-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.1);
    border: 1px solid rgba(56, 139, 253, 0.2);
    margin-bottom: 4px;
}
.lx-empty p {
    margin: 0;
    max-width: 42ch;
    line-height: 1.6;
    font-size: 13px;
}
.lx-empty.is-error {
    border-color: rgba(248, 81, 73, 0.28);
    color: #f85149;
}
.lx-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(88, 166, 255, 0.2);
    border-top-color: #58a6ff;
    animation: lxspin 0.7s linear infinite;
}
@keyframes lxspin {
    to { transform: rotate(360deg); }
}

/* Composer */
.lx-composer-head {
    margin-bottom: 4px;
}
.lx-composer-head h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text-primary);
}
.lx-composer-head p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Studio extras */
.lx-studio-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.lx-studio-level {
    min-width: 180px;
}
.lx-studio-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.lx-studio:has(.lx-le-gate:not(.hidden)) {
    opacity: 0.88;
}

/* Modals */
.lx-le-modal {
    max-width: 560px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: #121820 !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 56px rgba(1, 4, 9, 0.5) !important;
}
.lx-guide-modal {
    max-width: 760px !important;
}
.lx-le-modal-head {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 14px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.lx-le-modal-head .lx-le-kicker {
    margin-bottom: 4px;
}
.lx-le-modal-head .modal-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}
.lx-le-modal-body {
    padding: 18px 20px 8px !important;
}
.lx-le-modal .le-modal-section {
    border-radius: 14px;
    padding: 16px;
    background: rgba(8, 12, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lx-le-modal .le-modal-section-title {
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #79c0ff;
    margin-bottom: 14px;
}
.lx-le-modal .form-group {
    margin-bottom: 14px;
}
.lx-le-modal .form-group.lx-le-modal-last,
.lx-le-modal-last {
    margin-bottom: 0;
}
.lx-le-modal label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 750;
    color: var(--text-secondary);
}
.lx-le-modal label small {
    color: var(--text-tertiary);
    font-weight: 500;
}
.lx-le-modal .le-input,
.lx-le-modal select.le-input,
.lx-le-modal .le-mono-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 18, 0.92);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.lx-le-modal .le-mono-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
}
.lx-le-modal .le-input:focus,
.lx-le-modal select.le-input:focus {
    outline: none;
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}
.lx-le-modal .le-field-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.lx-key-gen {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lx-key-gen .le-input {
    flex: 1;
}
.lx-le-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
}
.lx-le-modal-actions .ds-btn-primary {
    min-width: 140px;
}

/* Details cards */
.lx-detail {
    display: grid;
    gap: 12px;
}
.lx-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lx-detail-card {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.55);
}
.lx-detail-card span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}
.lx-detail-card strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}
.lx-detail-card em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-secondary);
}
.lx-detail-key {
    border-color: rgba(88, 166, 255, 0.28);
    background: rgba(56, 139, 253, 0.08);
}
.lx-detail-key code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    font-weight: 750;
    color: #e6edf3;
    word-break: break-all;
}
.lx-detail-ip {
    border-color: rgba(210, 153, 34, 0.28);
    background: rgba(210, 153, 34, 0.07);
}
.lx-detail-ip code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
    color: #79c0ff;
}
.lx-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* Guide */
.lx-guide-modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}
.lx-guide-body {
    padding: 18px 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.lx-guide-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.72);
    flex-wrap: wrap;
}
.lx-guide-tab,
#leLicenseGuideModal .lx-guide-tab {
    flex: 1;
    min-width: 110px;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    min-height: 38px;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.lx-guide-tab.is-active,
#leLicenseGuideModal .lx-guide-tab.is-active {
    color: #fff;
    background: linear-gradient(180deg, #1f6feb, #0969da);
    box-shadow: 0 8px 18px rgba(9, 105, 218, 0.24);
}
#leLicenseGuideModal button[onclick^="leCopyGuideCode"] {
    background: rgba(88, 166, 255, 0.1) !important;
    border: 1px solid rgba(88, 166, 255, 0.28) !important;
    color: #79c0ff !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
}

@media (max-width: 760px) {
    .lx-key,
    .lx-file,
    .lx-detail-grid {
        grid-template-columns: 1fr;
    }
    .lx-key-actions,
    .lx-pack-actions {
        justify-content: flex-start;
    }
    .lx-studio-toolbar,
    .lx-studio-foot,
    .lx-key-gen,
    .lx-le-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .lx-le-modal-actions .ds-btn,
    .lx-key-gen .ds-btn {
        width: 100%;
    }
}
.lx-loader-modal {
    max-width: 760px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lx-loader-body {
    overflow-y: auto;
    flex: 1;
}
.lx-loader-lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary, #8b9bb4);
}
.lx-loader-idbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.28);
    background: rgba(31, 111, 235, 0.08);
}
.lx-loader-idbox span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #58a6ff;
}
.lx-loader-idbox code {
    flex: 1;
    min-width: 140px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    color: #e6edf3;
    word-break: break-all;
}
.lx-loader-hint {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary, #8b9bb4);
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #2d3748);
    background: var(--bg-elevated, #0f1318);
}
.lx-loader-hint code {
    font-family: ui-monospace, Consolas, monospace;
    color: #ffa657;
}
.lx-loader-prewrap {
    position: relative;
}
.lx-loader-prewrap pre {
    margin: 0;
    background: #060b10;
    border: 1px solid #1e2d3d;
    border-radius: 12px;
    padding: 20px 16px 16px;
    font-size: 12px;
    font-family: ui-monospace, 'Courier New', monospace;
    color: #a8d8ff;
    direction: ltr;
    text-align: left;
    line-height: 1.75;
    overflow-x: auto;
    white-space: pre;
    max-height: 48vh;
}
.lx-loader-copy {
    position: absolute;
    top: 10px;
    left: 10px;
}
html.lang-ar .lx-key,
html.lang-ar .lx-file,
html.lang-ar .lx-empty,
html.lang-ar .lx-le-modal,
html.lang-ar .lx-detail-card,
html.lang-ar .lx-live-card,
html.lang-ar .lx-log-stat {
    text-align: right;
}

/* Runtime logs */
.lx-log-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.lx-log-stat {
    position: relative;
    overflow: hidden;
    padding: 16px 16px 14px;
    border-radius: 16px;
    border: 1px solid var(--border-color, #2d3748);
    background:
        linear-gradient(180deg, rgba(22, 27, 34, 0.82), rgba(13, 17, 23, 0.64));
}
.lx-log-stat span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary, #8b9bb4);
}
.lx-log-stat strong {
    display: block;
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary, #e6edf3);
}
.lx-log-stat em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary, #8b9bb4);
}
.lx-log-stat.is-live strong {
    color: #3fb950;
}
.lx-log-stat.is-live.has-active::after {
    content: "";
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
    animation: lx-live-pulse 1.8s ease-out infinite;
}
.lx-log-stat.is-ok strong { color: #58a6ff; }
.lx-log-stat.is-fail strong { color: #f85149; }
@keyframes lx-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(63, 185, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}
.lx-live-list {
    display: grid;
    gap: 10px;
}
.lx-live-card {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(63, 185, 80, 0.22);
    background:
        linear-gradient(180deg, rgba(22, 42, 28, 0.55), rgba(13, 17, 23, 0.7));
}
.lx-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.16);
}
.lx-live-body {
    min-width: 0;
}
.lx-live-body h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary, #e6edf3);
}
.lx-live-body p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary, #8b9bb4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lx-live-ip {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: #79c0ff;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
}
.lx-log-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.lx-log-toolbar .le-input {
    flex: 1;
    min-width: 180px;
}
.lx-log-toolbar select.le-input {
    flex: 0 0 160px;
}
.lx-log-tablewrap {
    overflow: auto;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 16px;
    background: rgba(13, 17, 23, 0.55);
}
.lx-log-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}
.lx-log-table th,
.lx-log-table td {
    padding: 11px 14px;
    text-align: start;
    font-size: 13px;
    border-bottom: 1px solid rgba(45, 55, 72, 0.7);
    vertical-align: middle;
}
.lx-log-table th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary, #8b9bb4);
    background: rgba(22, 27, 34, 0.88);
    position: sticky;
    top: 0;
    z-index: 1;
}
.lx-log-table tbody tr:hover td {
    background: rgba(88, 166, 255, 0.04);
}
.lx-log-table tbody tr:last-child td {
    border-bottom: none;
}
.lx-log-time,
.lx-log-res,
.lx-log-client {
    white-space: nowrap;
    color: var(--text-secondary, #8b9bb4);
    font-size: 12px;
}
.lx-log-script {
    font-weight: 800;
    color: var(--text-primary, #e6edf3);
}
.lx-log-ip {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: #79c0ff;
}
.lx-log-ok,
.lx-log-fail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.lx-log-ok {
    background: rgba(31, 136, 61, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: #3fb950;
}
.lx-log-fail {
    background: rgba(207, 34, 46, 0.12);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}
.lx-log-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-secondary, #8b9bb4);
}
.lx-log-empty.is-error {
    color: #f85149;
}
@media (max-width: 980px) {
    .lx-log-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .lx-log-stats {
        grid-template-columns: 1fr;
    }
    .lx-live-card {
        grid-template-columns: 14px 1fr;
    }
    .lx-live-ip {
        grid-column: 2;
        justify-self: start;
    }
}

/* ══════════════════════════════════════════════
   Script files — board + composer
   ══════════════════════════════════════════════ */
.lx-files-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lx-files-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    background: rgba(13, 17, 23, 0.55);
}
.lx-files-bar-label {
    min-width: 0;
}
.lx-files-bar-label p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.lx-files-bar .le-input {
    max-width: 360px;
    min-width: 220px;
}
.lx-files-board {
    display: grid;
    gap: 10px;
}
.lx-files-board .lx-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(48, 54, 61, 0.95);
    background: rgba(13, 17, 23, 0.58);
    transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.lx-files-board .lx-file:hover {
    border-color: rgba(88, 166, 255, 0.42);
    background: rgba(56, 139, 253, 0.08);
    transform: none;
    box-shadow: 0 10px 24px rgba(9, 105, 218, 0.08);
}
.lx-files-board .lx-file.is-active {
    border-color: rgba(88, 166, 255, 0.55);
    background: rgba(56, 139, 253, 0.12);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.18);
}
.lx-file-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}
.lx-file-mark.is-lua {
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.14);
    border-color: rgba(56, 139, 253, 0.28);
}
.lx-file-mark.is-js {
    color: #d2a8ff;
    background: rgba(163, 113, 247, 0.14);
    border-color: rgba(188, 140, 255, 0.28);
}
.lx-file-mark.is-file {
    color: #8b949e;
    background: rgba(139, 148, 158, 0.1);
    border-color: var(--border-default);
}
.lx-files-board .lx-file-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 0;
    cursor: pointer;
}
.lx-files-board .lx-key-top {
    margin-bottom: 0;
}
.lx-files-board .lx-key-top h4 {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lx-file-sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
}
.lx-files-board .lx-key-actions {
    opacity: 0.92;
    min-width: 0;
}
.lx-files-board .lx-file:hover .lx-key-actions {
    opacity: 1;
}
.lx-files-board .badge.disabled {
    background: rgba(88, 166, 255, 0.08);
    color: #9cd1ff;
    border-color: rgba(88, 166, 255, 0.22);
}
.lx-files-board .lx-empty {
    margin: 0;
}

/* Editor sheets — script composer + encryption studio */
.lx-sheet {
    z-index: 11010;
    background: rgba(2, 6, 12, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.lx-sheet-open #leCryptoSection.lx-le {
    z-index: 11000;
}
.lx-sheet.modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.lx-sheet-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.lx-sheet-window {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(720px, calc(100vw - 56px));
    height: min(560px, calc(100vh - 96px));
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #10151c;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 64px rgba(1, 4, 9, 0.55);
    transform: none;
}
.lx-enc-sheet .lx-sheet-window {
    width: min(920px, calc(100vw - 56px));
    height: min(580px, calc(100vh - 88px));
}
.lx-sheet-window.is-lua {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(56, 139, 253, 0.08),
        0 28px 64px rgba(1, 4, 9, 0.55);
}
.lx-sheet-window.is-js {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(163, 113, 247, 0.1),
        0 28px 64px rgba(1, 4, 9, 0.55);
}
.lx-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 17, 23, 0.72);
    flex-shrink: 0;
}
.lx-sheet-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.lx-sheet-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
    background: #30363d;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}
.lx-sheet-dots i:nth-child(1) { background: #f85149; }
.lx-sheet-dots i:nth-child(2) { background: #d29922; }
.lx-sheet-dots i:nth-child(3) { background: #3fb950; }
.lx-sheet-head-copy {
    min-width: 0;
    flex: 1;
}
.lx-sheet-kicker {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #79c0ff;
}
.lx-sheet-head h4 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.lx-sheet-x {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 27, 34, 0.9);
    color: #8b949e;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.lx-sheet-x:hover {
    color: #ffa198;
    border-color: rgba(248, 81, 73, 0.28);
    background: rgba(207, 34, 46, 0.12);
}
.lx-sheet-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 17, 23, 0.4);
    flex-shrink: 0;
}
.lx-sheet-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    padding: 0 12px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 12, 18, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.lx-sheet-name:focus-within {
    border-color: rgba(88, 166, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}
.lx-sheet-name-ico {
    color: #79c0ff;
    display: grid;
    place-items: center;
}
.lx-sheet-name-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    outline: none;
}
.lx-sheet-storage {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lx-sheet-storage .le-field-label {
    margin: 0;
}
.lx-sheet-editor,
.lx-code-window {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: #0b1118;
}
.lx-code-tabbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    min-height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: #0c1219;
    flex-shrink: 0;
}
.lx-code-tab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #8b949e;
    border-bottom: 2px solid transparent;
}
.lx-code-tab.is-on {
    color: #e6edf3;
    border-bottom-color: #58a6ff;
    background: rgba(88, 166, 255, 0.06);
}
.lx-sheet-window.is-js .lx-code-tab.is-on {
    border-bottom-color: #bc8cff;
    background: rgba(188, 140, 255, 0.08);
}
.lx-code-tabbar em {
    margin-inline-start: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e7681;
}
.lx-code-count {
    font-style: normal;
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: #6e7681;
    margin-inline-start: 12px;
    white-space: nowrap;
}
.lx-code-count.is-hot {
    color: #d29922;
}
.lx-code-count.is-max {
    color: #f85149;
}
.lx-code-tab-actions {
    margin-inline-start: auto;
    display: flex;
    gap: 6px;
}
.lx-code-tab-actions .ds-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}
.lx-code-stage {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    background: #0b1118;
}
.lx-code-window.is-out .lx-code-stage {
    grid-template-columns: minmax(0, 1fr);
}
.lx-gutter {
    margin: 0;
    padding: 16px 8px 24px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    background: #0b1118;
    color: #4d5663;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0;
    text-align: right;
    overflow: hidden;
    user-select: none;
    white-space: normal;
    tab-size: 4;
}
.lx-gutter i {
    display: block;
    font-style: normal;
    line-height: 1.7;
}
.lx-hl-pane {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #0b1118;
}
.lx-hl-view {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 16px 16px 24px 14px;
    overflow: auto;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: transparent;
    color: #d7dee8;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.7;
    letter-spacing: 0.01em;
    tab-size: 4;
    scrollbar-width: none;
}
.lx-hl-view::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.lx-tok-kw { color: #c678dd; font-weight: 600; }
.lx-tok-fn { color: #61afef; }
.lx-tok-str { color: #98c379; }
.lx-tok-cmt { color: #7d8590; }
.lx-tok-num { color: #d19a66; }
.lx-tok-id { color: #d7dee8; }
.lx-tok-op { color: #56b6c2; }
.lx-sheet-code,
.lx-le .lx-sheet-code.le-textarea-code {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: none !important;
    padding: 16px 16px 24px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: transparent !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
    font-size: 13px !important;
    font-weight: 450 !important;
    line-height: 1.7 !important;
    letter-spacing: 0.01em !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    tab-size: 4;
    caret-color: #79c0ff;
}
.lx-sheet-foot,
.lx-sheet-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 17, 23, 0.72);
    flex-shrink: 0;
}
.lx-sheet-foot {
    justify-content: flex-end;
}
.lx-sheet-tools {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lx-sheet-run {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    min-width: 0;
}
.lx-sheet-run .ds-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}
.lx-sheet-stats {
    margin: 0 !important;
    min-height: 0;
    flex: 1;
    min-width: 0;
    color: #8b949e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lx-sheet-stats:empty {
    display: none;
}
.lx-enc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    flex: 1;
}
.lx-code-window + .lx-code-window {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.045);
}
body.lx-sheet-open {
    overflow: hidden;
}
.lx-enc-card {
    margin-top: 16px;
}
.lx-enc-card:not(.is-open) .lx-enc-top {
    border-bottom: 0;
}
.lx-enc-card.is-locked .lx-enc-toggle {
    display: none;
}
.lx-enc-card.is-lua {
    border-color: rgba(88, 166, 255, 0.22);
    background: rgba(13, 17, 23, 0.58);
}
.lx-enc-card.is-js {
    border-color: rgba(188, 140, 255, 0.26);
    background: rgba(13, 17, 23, 0.58);
}
.lx-enc-card.is-lua:hover {
    border-color: rgba(88, 166, 255, 0.42);
}
.lx-enc-card.is-js:hover {
    border-color: rgba(188, 140, 255, 0.44);
}

.lx-enc-progress {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    background: rgba(7, 11, 16, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lx-enc-progress[hidden] {
    display: none !important;
}
.lx-enc-progress-card {
    width: min(360px, calc(100% - 40px));
    padding: 28px 26px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #121820;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 18px 40px rgba(1, 4, 9, 0.4);
    text-align: center;
}
.lx-enc-progress-card.is-js {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(163, 113, 247, 0.08),
        0 18px 40px rgba(1, 4, 9, 0.4);
}
.lx-enc-progress-orb {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: #58a6ff;
    animation: lx-enc-spin 0.85s linear infinite;
}
.lx-enc-progress-card.is-js .lx-enc-progress-orb {
    border-color: rgba(255, 255, 255, 0.06);
    border-top-color: #bc8cff;
}
@keyframes lx-enc-spin {
    to { transform: rotate(360deg); }
}
.lx-enc-progress-kicker {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #79c0ff;
}
.lx-enc-progress-card.is-js .lx-enc-progress-kicker {
    color: #d2a8ff;
}
.lx-enc-progress-title {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.lx-enc-progress-step {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
    min-height: 20px;
}
.lx-enc-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    overflow: hidden;
}
.lx-enc-progress-track i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6feb, #79c0ff);
    box-shadow: none;
    transition: width 0.18s ease;
}
.lx-enc-progress-card.is-js .lx-enc-progress-track i {
    background: linear-gradient(90deg, #7c3aed, #d2a8ff);
    box-shadow: none;
}
.lx-enc-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}
.lx-enc-progress-meta strong {
    font-size: 13px;
    color: #e6edf3;
}
.lx-enc-progress-meta span {
    font-size: 12px;
    color: #8b949e;
}

@media (max-width: 1100px) {
    .lx-le-hero .dh-hero-top,
    .lx-le .lx-le-head {
        flex-direction: column;
        align-items: stretch;
    }
    .lx-le-hero-actions,
    .lx-le .le-panel-toolbar {
        justify-content: flex-start;
    }
    .lx-files-board .lx-file {
        grid-template-columns: auto 1fr;
    }
    .lx-files-board .lx-key-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .lx-enc-split {
        grid-template-columns: 1fr;
    }
    .lx-code-window + .lx-code-window {
        border-inline-start: 0;
        border-top: 1px solid #1b2230;
    }
    .lx-sheet-window,
    .lx-enc-sheet .lx-sheet-window {
        width: min(680px, calc(100vw - 24px));
        height: min(520px, calc(100vh - 56px));
        border-radius: 14px;
    }
}
@media (max-width: 860px) {
    .lx-composer-fields,
    .lx-files-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .lx-files-bar .le-input {
        max-width: none;
        min-width: 0;
    }
    .lx-files-board .lx-file {
        grid-template-columns: auto 1fr;
    }
    .lx-files-board .lx-key-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .lx-enc-workspace-bar,
    .lx-enc-top {
        flex-direction: column;
        align-items: stretch;
    }
    .lx-enc-toggle,
    .lx-enc-top .ds-btn {
        width: 100%;
    }
}

/* Licensing chrome + controls */
.lx-sheet-code::placeholder,
.lx-le .le-textarea-code::placeholder {
    color: #5b6573 !important;
    -webkit-text-fill-color: #5b6573;
    font-style: normal;
    opacity: 1;
}
.lx-sheet-code::selection,
.lx-le .le-textarea-code::selection {
    background: rgba(56, 139, 253, 0.32);
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.lx-le-overlay .modal-close,
.lx-sheet-x {
    width: 30px;
    height: 30px;
    border: 0 !important;
    border-radius: 8px;
    background: transparent;
    color: #8b949e;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
    outline: none;
}
.lx-le-overlay .modal-close:hover,
.lx-sheet-x:hover {
    color: #ffa198;
    background: rgba(207, 34, 46, 0.14);
    border: 0 !important;
    transform: none;
}

.lx-le .ds-btn,
.lx-le-overlay .ds-btn,
.lx-sheet .ds-btn {
    appearance: none;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    border: 0 !important;
    outline: none;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.lx-le .ds-btn:focus-visible,
.lx-le-overlay .ds-btn:focus-visible,
.lx-sheet .ds-btn:focus-visible,
.lx-le-tab:focus-visible,
.lx-pill:focus-visible,
.lx-seg-btn:focus-visible {
    outline: 2px solid rgba(56, 139, 253, 0.7);
    outline-offset: 2px;
}
.lx-le .ds-btn-primary,
.lx-le-overlay .ds-btn-primary,
.lx-sheet .ds-btn-primary {
    color: #fff;
    background: #1f6feb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.lx-le .ds-btn-primary:hover:not(:disabled),
.lx-le-overlay .ds-btn-primary:hover:not(:disabled),
.lx-sheet .ds-btn-primary:hover:not(:disabled) {
    background: #388bfd;
    filter: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.lx-le .ds-btn-primary:active:not(:disabled),
.lx-le-overlay .ds-btn-primary:active:not(:disabled),
.lx-sheet .ds-btn-primary:active:not(:disabled) {
    background: #0969da;
    box-shadow: none;
}
.lx-le .ds-btn-ghost,
.lx-le-overlay .ds-btn-ghost,
.lx-sheet .ds-btn-ghost {
    color: #e6edf3;
    background: #21262d;
    box-shadow: none;
}
.lx-le .ds-btn-ghost:hover:not(:disabled),
.lx-le-overlay .ds-btn-ghost:hover:not(:disabled),
.lx-sheet .ds-btn-ghost:hover:not(:disabled) {
    color: #fff;
    background: #2a3139;
    border: 0 !important;
}
.lx-le .ds-btn-danger-ghost,
.lx-le-overlay .ds-btn-danger-ghost {
    color: #ffa198;
    background: rgba(207, 34, 46, 0.12);
    box-shadow: none;
}
.lx-le .ds-btn-danger-ghost:hover:not(:disabled),
.lx-le-overlay .ds-btn-danger-ghost:hover:not(:disabled) {
    color: #ffdcd7;
    background: rgba(207, 34, 46, 0.2);
    border: 0 !important;
}
.lx-le .lx-js-run,
.lx-sheet .lx-js-run {
    color: #fff !important;
    background: #8b5cf6 !important;
    border: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.lx-le .lx-js-run:hover:not(:disabled),
.lx-sheet .lx-js-run:hover:not(:disabled) {
    background: #a371f7 !important;
    border: 0 !important;
}
.lx-le-hero-actions .ds-btn,
.lx-le-locked .ds-btn {
    min-height: 38px;
    padding: 0 16px;
}
.lx-code-tab-actions .ds-btn,
.lx-sheet-tools .ds-btn,
.lx-key-gen .ds-btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 7px;
}
.lx-sheet-run .ds-btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}
.lx-sheet-run .ds-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}
.lx-sheet-foot .ds-btn,
.lx-le-modal-actions .ds-btn {
    min-width: 104px;
}

.lx-le .lx-seg,
.lx-sheet .lx-seg {
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    border: 0;
    background: #161b22;
    box-shadow: none;
}
.lx-le .lx-seg-btn,
.lx-sheet .lx-seg-btn {
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8b949e;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.lx-seg-btn:hover:not(.is-on) {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.06);
}
.lx-le .lx-seg-btn.is-on,
.lx-sheet .lx-seg-btn.is-on {
    color: #fff;
    background: #1f6feb;
    box-shadow: none;
}

.lx-le .lx-pills,
.lx-sheet .lx-pills {
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    border: 0;
    background: #161b22;
}
.lx-le .lx-pill,
.lx-sheet .lx-pill {
    min-height: 28px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8b949e;
    outline: none;
}
.lx-pill:hover:not(.is-on) {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.06);
}
.lx-le .lx-pill.is-on,
.lx-sheet .lx-pill.is-on {
    color: #fff;
    background: #1f6feb;
    box-shadow: none;
}
.lx-enc-card.is-js .lx-pill.is-on,
.lx-sheet-window.is-js .lx-pill.is-on {
    background: #8b5cf6;
    box-shadow: none;
}

.lx-le .le-file-import,
.lx-sheet .le-file-import {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    border: 0 !important;
    color: #9cd1ff;
    background: rgba(56, 139, 253, 0.14);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}
.lx-le .le-file-import:hover,
.lx-sheet .le-file-import:hover {
    color: #fff;
    background: rgba(56, 139, 253, 0.24);
    border: 0 !important;
}
.lx-le .le-file-import.is-js,
.lx-sheet .le-file-import.is-js {
    color: #d2a8ff;
    background: rgba(139, 92, 246, 0.16);
    border: 0 !important;
}
.lx-le .le-file-import.is-js:hover,
.lx-sheet .le-file-import.is-js:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.26);
}

.lx-le-tab {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 0 !important;
    outline: none;
}
.lx-le-tab:hover:not(.is-off):not(.is-active),
.lx-le .lx-le-tab:hover:not(.is-off):not(.is-active) {
    color: #e6edf3 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 0 !important;
}
.lx-le-tab.is-active {
    color: #fff;
    background: #1f6feb;
    border: 0 !important;
    box-shadow: none;
}

.lx-pack-go {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #1f6feb;
    border: 0;
    box-shadow: none;
}
.lx-pack-go:hover {
    filter: none;
    background: #388bfd;
}
.lx-pack-go.is-ghost {
    background: #21262d;
    color: #e6edf3;
    border: 0;
    box-shadow: none;
}
.lx-pack-go.is-ghost:hover {
    color: #fff;
    background: #2a3139;
    filter: none;
}

.lx-ico,
.lx-le .lx-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0 !important;
    background: #21262d;
    color: #8b949e;
    box-shadow: none;
    transform: none;
    outline: none;
}
.lx-ico:hover,
.lx-le .lx-ico:hover {
    color: #79c0ff;
    background: rgba(56, 139, 253, 0.14);
    border: 0 !important;
    transform: none;
}
.lx-ico.is-warn:hover {
    color: #e3b341;
    border-color: rgba(210, 153, 34, 0.32);
    background: rgba(210, 153, 34, 0.1);
}
.lx-ico.is-ok:hover {
    color: #56d364;
    border-color: rgba(63, 185, 80, 0.32);
    background: rgba(31, 136, 61, 0.12);
}
.lx-ico.is-del:hover {
    color: #ffa198;
    border-color: rgba(248, 81, 73, 0.28);
    background: rgba(207, 34, 46, 0.12);
}

.lx-lang {
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lx-enc-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 17, 23, 0.58);
}
.lx-enc-card.is-lua {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.06);
}
.lx-enc-card.is-js {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 1px rgba(163, 113, 247, 0.08);
}
.lx-enc-card.is-lua:hover {
    border-color: rgba(88, 166, 255, 0.22);
}
.lx-enc-card.is-js:hover {
    border-color: rgba(188, 140, 255, 0.24);
}
