/* STROBIA Verse Linux Terminal 2.0 — isolated styling; preserves VLAN CSS.
   Created & Developed by Hussein Jaber. */

.lx2[hidden] {
    display: none !important;
}

.lx2 {
    margin-top: 18px;
}

.lx2-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 24px;
}

.lx2-intro h2 {
    font-size: clamp(27px, 3.8vw, 45px);
    margin: 9px 0 6px;
    letter-spacing: -1.7px;
    line-height: 1.13;
}

.lx2-intro h2 span {
    background: linear-gradient(100deg, #34d399, #22d3ee, #a855f7);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.lx2-intro p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--sv-muted);
    font-size: 14px;
    line-height: 1.75;
}

.lx2-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    border: 1px solid #34d39952;
    background: #34d39910;
    color: var(--sv-text);
    border-radius: 99px;
    padding: 9px 13px;
    white-space: nowrap;
}

.lx2-status-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399a3;
}

.lx2-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    margin-bottom: 17px;
    border: 1px solid var(--sv-line);
    border-radius: 15px;
    background: var(--sv-card);
}

.lx2-top-metric {
    display: grid;
    gap: 3px;
    min-width: 140px;
    flex: 1;
    padding: 5px 12px;
    border-right: 1px solid var(--sv-line);
}

.lx2-top-metric small {
    font-size: 10px;
    color: var(--sv-muted);
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: 1px;
}

.lx2-top-metric strong {
    font-size: 14px;
    color: var(--sv-text);
    font-family: Consolas, 'Courier New', monospace;
    overflow-wrap: anywhere;
}

.lx2-course-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    padding: 9px 13px;
    font-weight: 750;
    font-size: 12px;
    border: 1px solid #34d39970;
    background: #34d39912;
    color: var(--sv-text);
}

.lx2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(305px, .8fr);
    align-items: start;
    gap: 18px;
}

.lx2-main {
    padding: 17px;
    background: linear-gradient(150deg, var(--sv-card), var(--sv-bg-2));
}

.lx2-window {
    background: #050d15;
    color: #d6f9ee;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #385066;
    box-shadow: 0 20px 60px #00000024;
}

.lx2-window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #0c1a27;
    border-bottom: 1px solid #213d4a;
}

.lx2-window-bar strong {
    color: #b6d9d4;
    font-size: 12px;
    font-weight: 700;
    flex: 1;
}

.lx2-window-bar>span {
    color: #6fabb3;
    font-size: 9px;
    letter-spacing: 1.4px;
    font-weight: 800;
}

.lx2-dots {
    display: flex;
    gap: 5px;
}

.lx2-dots i {
    width: 8px;
    height: 8px;
    background: #fb7185;
    border-radius: 50%;
}

.lx2-dots i:nth-child(2) {
    background: #fbbf24;
}

.lx2-dots i:nth-child(3) {
    background: #34d399;
}

.lx2 .lx2-output {
    min-height: 425px;
    max-height: 570px;
    padding: 18px;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: radial-gradient(ellipse at 80% 8%, #06313b4a, transparent 55%), #06101b;
}

.lx2-output>div+div {
    margin-top: 5px;
}

.lx2-output .lx2-typed {
    color: #b8ffdf;
}

.lx2-output .lx2-banner {
    color: #51eed6;
    font-weight: 800;
    letter-spacing: .4px;
}

.lx2-output .sv2-terminal-result {
    color: #a7d9fb;
}

.lx2-output .sv2-terminal-error {
    color: #fda4af;
}

.lx2 .lx2-form {
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
    background: #091522;
    border-top: 1px solid #2b445a;
}

.lx2 .lx2-form .sv2-terminal-prompt {
    max-width: 55%;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.lx2 .lx2-form input {
    min-width: 105px;
    flex: 1 1 130px;
    caret-color: #34d399;
}

.lx2 .lx2-form button {
    padding: 10px 17px;
}

.lx2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 4px;
}

.lx2 .lx2-reset {
    border-color: #fb718548;
    color: var(--sv-text);
}

.lx2 .lx2-reset:hover {
    border-color: #fb7185;
}

.lx2-footnote {
    border-top: 1px solid var(--sv-line);
    padding-top: 12px;
    margin-top: 12px;
    color: var(--sv-muted);
    font-size: 11px;
    line-height: 1.75;
}

.lx2-footnote code {
    color: var(--sv-mint);
}

.lx2-sidebar {
    display: grid;
    gap: 17px;
    min-width: 0;
}

.lx2 .lx2-side-card {
    padding: 20px;
}

.lx2-side-card h3 {
    font-size: 18px;
    margin: 5px 0 12px;
    letter-spacing: -.3px;
}

.lx2-side-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.lx2-side-heading>span:last-child {
    font-size: 10px;
    color: var(--sv-mint);
    font-weight: 750;
}

.lx2-missions {
    display: grid;
    gap: 8px;
}

.lx2-mission {
    text-align: left;
    padding: 13px;
    width: 100%;
    display: grid;
    gap: 4px;
    color: var(--sv-text);
    border: 1px solid var(--sv-line);
    border-radius: 11px;
    background: var(--sv-bg-2);
    transition: border-color .2s, transform .2s;
}

.lx2-mission:hover {
    transform: translateY(-2px);
    border-color: #22d3ee88;
}

.lx2-mission.chosen {
    border-color: #22d3ee;
    background: linear-gradient(110deg, #22d3ee17, #34d39909);
}

.lx2-mission.solved {
    border-color: #34d39966;
}

.lx2-mission>span:first-child {
    color: var(--sv-cyan);
    letter-spacing: 1px;
    font-size: 9px;
    font-weight: 800;
}

.lx2-mission strong {
    font-size: 13px;
}

.lx2-mission-indicator {
    color: var(--sv-muted);
    font-size: 10px;
}

.lx2-mission.solved .lx2-mission-indicator {
    color: var(--sv-mint);
    font-weight: 750;
}

.lx2-mission-help {
    border-left: 3px solid #22d3ee;
    padding: 11px 12px;
    margin-top: 12px;
    border-radius: 5px;
    background: #22d3ee0b;
    color: var(--sv-muted);
    font-size: 11px;
    line-height: 1.7;
}

.lx2-inspector-tabs {
    display: flex;
    gap: 6px;
    margin: 5px 0 10px;
    flex-wrap: wrap;
}

.lx2-tab {
    background: var(--sv-bg-2);
    border: 1px solid var(--sv-line);
    border-radius: 8px;
    padding: 7px 11px;
    color: var(--sv-muted);
    font-size: 11px;
    font-weight: 800;
}

.lx2-tab.active {
    background: #34d39915;
    border-color: #34d39978;
    color: var(--sv-text);
}

.lx2-inspector {
    min-height: 145px;
    padding: 10px 11px;
    border: 1px solid var(--sv-line);
    border-radius: 10px;
    background: var(--sv-bg-2);
    max-width: 100%;
    overflow-x: auto;
}

.lx2-inspector p {
    color: var(--sv-muted);
    font-size: 12px;
}

.lx2-inspector-caption {
    color: var(--sv-cyan);
    font-size: 10px;
    font-family: Consolas, monospace;
    padding: 0 0 8px;
    overflow-wrap: anywhere;
}

.lx2-inspector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--sv-line);
    font-size: 11px;
    min-width: 0;
}

.lx2-inspector-row span {
    overflow-wrap: anywhere;
    min-width: 0;
}

.lx2-inspector-row code {
    color: var(--sv-mint);
    font-size: 10px;
    white-space: nowrap;
}

.lx2-service-status {
    font-size: 10px;
    color: #fb7185;
}

.lx2-service-status.on {
    color: var(--sv-mint);
}

.lx2-reference .sv2-command-example {
    gap: 14px;
    align-items: start;
}

.lx2-reference .sv2-command-example code {
    font-size: 10px;
    overflow-wrap: anywhere;
    max-width: 57%;
}

.lx2-reference .sv2-command-example span {
    font-size: 10px;
}

.lx2.light-theme .lx2-output,
.light-theme .lx2-output {
    color: #d6f9ee;
}

@media (max-width: 1020px) {
    .lx2-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .lx2-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lx2-sidebar>.lx2-side-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 690px) {
    .lx2-intro {
        align-items: flex-start;
        flex-direction: column;
    }
    .lx2-status-tag {
        white-space: normal;
    }
    .lx2-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .lx2-sidebar>.lx2-side-card:last-child {
        grid-column: auto;
    }
    .lx2 .lx2-output {
        min-height: 300px;
        max-height: 420px;
        font-size: 11px;
        padding: 13px;
    }
    .lx2-top-metric {
        min-width: 100px;
    }
    .lx2 .lx2-form {
        align-items: stretch;
    }
    .lx2 .lx2-form .sv2-terminal-prompt {
        font-size: 11px;
        max-width: 100%;
    }
    .lx2 .lx2-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lx2-mission {
        transition: none;
    }
}


/* STROBIA 4.4 — mission-account sync state (works in dark/light themes) */

.sv2 .lx2-account-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(52, 211, 153, .3);
    border-radius: 12px;
    background: rgba(52, 211, 153, .055);
    color: var(--sv-muted);
    font-size: 12px;
    line-height: 1.6;
}

.sv2 .lx2-account-status a {
    color: var(--sv-mint);
    font-weight: 750;
    text-decoration: underline;
}

.sv2 .lx2-account-status button {
    background: transparent;
    border: 1px solid var(--sv-mint);
    border-radius: 9px;
    padding: 6px 10px;
    color: var(--sv-text);
    font-weight: 750;
}