.linux-lesson .rl-hero-layout { grid-template-columns:1.2fr 1fr; }
.lx-hero-card { width:100%; max-width:420px; justify-self:end; border-radius:18px; background:linear-gradient(135deg,#14243b,#262047); padding:24px; color:#f1f5fd; box-shadow:0 20px 40px -25px #17243d99; }
.lx-terminal-bar { display:flex; align-items:center; gap:15px; font-size:9px; letter-spacing:.1em; color:#b5c4e0; }
.lx-terminal-bar>span:first-child { color:#9baaf2; letter-spacing:3px; white-space:nowrap; }
.lx-hero-card>p { margin:24px 0; font:13px/1.8 ui-monospace,monospace; overflow-wrap:anywhere; }
.lx-prompt-symbol { color:#9be4cf; }
.lx-hero-card>strong { display:block; font:800 clamp(24px,3vw,34px)/1.5 ui-monospace,monospace; letter-spacing:2px; text-align:center; white-space:nowrap; }
.lx-hero-card>strong span { color:#b8c3f9; }
.lx-hero-roles { display:grid; grid-template-columns:repeat(3,1fr); text-align:center; color:#b5c4e0; font-size:11px; gap:10px; margin:5px 0 20px; }
.lx-hero-foot { border-top:1px solid #ffffff25; padding-top:14px; font-size:12px; line-height:1.8; color:#c8d3e8; }
.lx-code { background:#172337; color:#e4ecff; border-radius:13px; padding:20px; margin:24px 0; font:13px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; tab-size:4; }
.linux-lesson .rl-section p code,.linux-lesson .rl-details code { padding:2px 5px; border-radius:4px; color:var(--rl-accent); background:var(--rl-soft); font-size:.94em; overflow-wrap:anywhere; }
.linux-lesson .rl-formula { overflow-wrap:anywhere; }
.lx-definitions { margin:24px 0; }
.lx-definitions>div { padding:15px 0; border-bottom:1px solid var(--rl-line); }
.lx-definitions dt { font-size:14px; font-weight:800; color:var(--rl-accent); }
.lx-definitions dd { font-size:14px; line-height:1.9; color:var(--rl-muted); margin:5px 0 0; }
.lx-table-wrap { border:1px solid var(--rl-line); border-radius:13px; overflow-x:auto; margin:24px 0; background:var(--rl-paper); }
.lx-table { width:100%; min-width:570px; border-collapse:collapse; text-align:left; font-size:13px; line-height:1.8; }
.lx-table caption { text-align:left; padding:14px; font-size:12px; color:var(--rl-muted); }
.lx-table td,.lx-table th { border-top:1px solid var(--rl-line); padding:12px 14px; vertical-align:top; }
.lx-table thead th { font-size:11px; color:var(--rl-muted); }
.lx-table code { color:var(--rl-accent); }
.lx-tips { list-style:disc; padding-left:22px; color:var(--rl-muted); font-size:14px; line-height:1.9; }
.lx-tips li { margin:12px 0; }
.lx-tips strong { color:var(--rl-text); }
.lx-terminal { border:1px solid var(--rl-line); border-radius:16px; overflow:hidden; background:#142136; color:#e4ecff; margin:24px 0; }
.lx-terminal-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 18px; background:#20314b; font-size:10px; letter-spacing:.05em; }
.lx-terminal-top button { background:#30496b; color:#e4ecff; border:1px solid #597397; border-radius:7px; padding:7px 10px; font-size:11px; letter-spacing:0; }
.lx-terminal-output { max-height:330px; min-height:160px; overflow:auto; padding:18px; font:13px/1.8 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; white-space:pre-wrap; }
.lx-terminal-output>div { margin-bottom:8px; }
.lx-log-command { color:#99e6ce; font-weight:700; }
.lx-log-error { color:#fdb7bd; }
.lx-terminal-form { padding:15px 18px; border-top:1px solid #40526c; }
.lx-terminal-form label { display:block; font-size:11px; color:#c8d4e7; margin-bottom:10px; }
.lx-terminal-cwd { margin-left:8px; color:#a5b4fc; overflow-wrap:anywhere; }
.lx-terminal-input-row { display:flex; align-items:center; gap:10px; }
.lx-terminal-input-row>span { color:#99e6ce; font:700 15px ui-monospace,monospace; }
.lx-terminal-input-row input { min-width:0; width:100%; flex:1; border:1px solid #5c7191; background:#0f1a2b; color:#f1f5fd; border-radius:8px; padding:11px; font:13px ui-monospace,monospace; }
.lx-terminal-input-row input::placeholder { color:#a5b3ca; }
.lx-terminal-input-row button { border:0; background:linear-gradient(to right,#1447e6,#7008e7); color:#fff; border-radius:8px; padding:11px 14px; font-size:12px; font-weight:750; white-space:nowrap; }
.lx-command-chips { display:flex; flex-wrap:wrap; gap:7px; padding:0 18px; }
.lx-command-chips button { border:1px solid #516783; border-radius:7px; background:#20314b; color:#e4ecff; padding:6px 9px; font:11px ui-monospace,monospace; }
.lx-terminal>p { margin:14px 18px 18px; color:#c0cce0; font-size:12px; line-height:1.8; }
.lx-permissions { padding:24px; background:var(--rl-paper); border:1px solid var(--rl-line); border-radius:16px; margin:24px 0; }
.lx-permission-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.lx-permission-grid fieldset { border:1px solid var(--rl-line); border-radius:12px; padding:14px; min-width:0; }
.lx-permission-grid legend { padding:0 5px; font-size:13px; font-weight:800; color:var(--rl-accent); }
.lx-permission-grid label { display:flex; gap:9px; align-items:flex-start; font-size:12px; margin:12px 0; }
.lx-permission-grid input { accent-color:var(--rl-accent); flex-shrink:0; width:17px; height:17px; margin-top:2px; }
.lx-mode-presets { display:flex; gap:8px; flex-wrap:wrap; margin:20px 0; }
.lx-mode-presets button { padding:7px 13px; background:var(--rl-bg); border:1px solid var(--rl-line); border-radius:8px; font-size:13px; font-weight:750; }
.lx-mode-presets button[aria-pressed="true"] { color:var(--rl-accent); border-color:var(--rl-accent); background:var(--rl-soft); }
.lx-object-label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px; margin-bottom:18px; }
.lx-object-label select { background:var(--rl-bg); color:var(--rl-text); border:1px solid var(--rl-line); border-radius:8px; padding:8px 12px; }
.lx-permission-output { border-radius:13px; padding:20px; background:var(--rl-soft); }
.lx-permission-output>strong { display:block; color:var(--rl-accent); font-size:34px; }
.lx-permission-output>code { display:block; font-size:17px; overflow-wrap:anywhere; margin:8px 0; }
.lx-permission-output ul { list-style:none; padding:0; margin:16px 0; font-size:13px; line-height:1.9; }
.lx-permission-output li+li { margin-top:8px; }
.lx-permission-output p { color:var(--rl-muted); font-size:12px; line-height:1.8; margin:12px 0 0; }
.linux-lesson .rl-question-equation { font-size:21px; line-height:1.6; letter-spacing:-.02em; }
.linux-lesson .rl-player-equation { font-size:15px; }
.linux-lesson .rl-player-result strong { font-size:22px; }
.lx-exercise-switch { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:24px 0; }
.lx-practice { padding:26px; margin:36px 0 24px; border:1px solid var(--rl-line); border-radius:18px; background:var(--rl-paper); scroll-margin-top:90px; }
.lx-practice-heading h3 { font-size:26px; line-height:1.35; margin:10px 0 14px; }
.lx-practice-heading p { font-size:14px; line-height:1.9; color:var(--rl-muted); margin:0 0 24px; }
.lx-practice .rl-trainer-top strong { display:block; font-size:15px; margin-top:5px; }
.lx-task-stats { display:flex; flex-wrap:wrap; gap:10px 22px; font-size:12px; color:var(--rl-muted); margin:20px 0; }
.lx-task-stats strong { color:var(--rl-text); margin-right:4px; }
.lx-task-intro { padding:22px 0 8px; }
.lx-task-intro h4 { font-size:22px; font-weight:800; margin:10px 0; line-height:1.4; }
.lx-task-intro>p { font-size:14px; line-height:1.9; margin:12px 0; }
.lx-task-intro>.lx-task-scope { font-size:12px; color:var(--rl-muted); }
.lx-task-trees { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0 24px; }
.lx-task-panel { padding:16px; border:1px solid var(--rl-line); border-radius:12px; background:var(--rl-bg); min-width:0; }
.lx-task-panel h4 { margin:0 0 12px; font-size:13px; font-weight:800; color:var(--rl-accent); }
.lx-task-panel p { margin:12px 0 0; font-size:11px; color:var(--rl-muted); line-height:1.8; }
.lx-task-tree { font:12px/1.9 ui-monospace,Consolas,monospace; margin:0; white-space:pre; overflow:auto; max-height:320px; }
.lx-task-checklist h4 { font-size:16px; font-weight:800; margin:0 0 15px; }
.lx-task-checklist ul { list-style:none; padding:0; margin:0; }
.lx-task-checklist li { display:flex; gap:10px; margin:12px 0; }
.lx-task-checklist li>span { flex-shrink:0; color:var(--rl-muted); font-size:18px; }
.lx-task-checklist li.is-done>span { color:var(--rl-accent); }
.lx-task-checklist strong { display:block; font-size:13px; line-height:1.7; font-weight:650; }
.lx-task-checklist div>span { display:block; color:var(--rl-muted); font-size:12px; line-height:1.8; }
.lx-practice .lx-terminal-output { max-height:260px; min-height:100px; }
.lx-task-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:20px 0 12px; }
.lx-task-solution>p { font-size:13px; color:var(--rl-muted); line-height:1.9; }
.lx-practice .rl-trainer-navigation { margin-top:22px; }
.lx-practice .rl-complete h4 { font-size:18px; font-weight:800; margin:0 0 8px; }
#lx-task-number { scroll-margin-top:100px; }
@media(max-width:900px) { .lx-task-trees { grid-template-columns:1fr; } }
@media(max-width:680px) { .lx-practice { padding:16px; } .lx-practice-heading h3 { font-size:22px; } .lx-task-actions button { width:100%; } }
@media(max-width:900px) { .linux-lesson .rl-hero-layout { grid-template-columns:1fr 1fr; gap:24px; } .lx-permission-grid { grid-template-columns:1fr; } }
@media(max-width:680px) {
    .linux-lesson .rl-hero-layout { grid-template-columns:1fr; }
    .lx-hero-card { justify-self:center; max-width:380px; padding:20px; }
    .lx-code { padding:16px; font-size:12px; }
    .lx-permissions { padding:16px; }
    .lx-terminal-input-row { flex-wrap:wrap; }
    .lx-terminal-input-row input { flex-basis:calc(100% - 30px); }
    .lx-terminal-input-row button { width:100%; }
    .linux-lesson .rl-question-equation { font-size:18px; }
}
