.code-block { position: relative; box-sizing: border-box; width: 100%; max-width: 720px; margin: 25px 0; padding: 39px 20px 19px; overflow-x: auto; border: 1px solid rgba(46, 234, 255, .25); background: #05070c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); font: .82rem/1.9 "DM Mono", monospace; white-space: pre; }
.code-block::before { content: "Python · código"; position: absolute; top: 0; right: 0; left: 0; padding: 9px 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(18, 27, 41, .72); font: .59rem "DM Mono", monospace; letter-spacing: .07em; }
.code-block code { color: #dce6f1; font: inherit; }
.code-block:has(+ .code-output) { margin-bottom: 0; }
.code-output { display: flex; align-items: center; gap: 15px; box-sizing: border-box; width: 100%; max-width: 720px; min-height: 43px; margin: 0 0 25px; padding: 10px 20px; overflow-x: auto; border: 1px solid rgba(46, 234, 255, .25); border-top: 0; background: #000; color: #dce6f1; font: .82rem/1.7 "DM Mono", monospace; white-space: pre; }
.code-output-label { flex: 0 0 auto; color: var(--muted); font: .59rem "DM Mono", monospace; letter-spacing: .07em; }
.code-output code { color: #dce6f1; font: inherit; }
.py-comment { color: #718096; }
.py-guide-comment { color: #009d00; }
.lesson-content h2 code { display: inline-block; margin: 0 .08em; padding: .06em .16em; color: var(--cyan); background: rgba(46, 234, 255, .07); font: 500 .72em "DM Mono", monospace; letter-spacing: 0; line-height: 1.15; white-space: nowrap; }
.py-keyword { color: #ff9d2e; }
.py-function, .py-builtin { color: #2eeaff; }
.py-string { color: #a6e22e; }
.py-number { color: #c792ea; }
.py-boolean { color: #ff2e7b; }
.py-operator { color: #ff9d2e; }
.py-variable { color: #e8edf5; }
.python-reading { margin: 18px 0 0; padding: 13px 16px; border-left: 2px solid var(--orange); color: var(--muted); background: rgba(255, 157, 46, .045); font-size: .86rem; line-height: 1.65; }
.python-reading strong { color: #dbe5ef; }
@media (max-width: 760px) { .code-block { padding: 38px 15px 17px; font-size: .72rem; } .code-output { padding: 9px 15px; font-size: .72rem; } }
