/* Zona del profe: partituras adaptadas */
.pt-pestanas { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-chip { padding: 10px 18px; border: 0; border-radius: 999px; background: #fffaf0; color: var(--ink, #1d1410); font: inherit; font-weight: 800; cursor: pointer; }
.pt-chip.on { background: #c2561f; color: #fff; }
.pt-aviso { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff3cc; font-weight: 700; }
.pt-aviso.mal { background: #fde0d6; }
.pt-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.pt-filtros input, .pt-filtros select, .pt-form input[type=text], .pt-form select, .pt-form textarea { padding: 10px 12px; border-radius: 10px; border: 2px solid #e5d6c8; font: inherit; background: #fff; }
.pt-filtros input { flex: 1 1 200px; }
.pt-carpeta h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 900; }
.pt-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pt-tarjeta { text-align: left; padding: 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(60, 20, 0, .12); font: inherit; cursor: pointer; display: grid; gap: 6px; }
.pt-tarjeta:hover { background: #fff8ea; }
.pt-tarjeta b { font-size: 17px; }
.pt-etiquetas { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-etiqueta { padding: 2px 8px; border-radius: 999px; background: #ffe9a8; font-size: 12px; font-weight: 800; }
.pt-vacio { padding: 18px; border-radius: 14px; background: #fff; font-weight: 600; color: #6b5a50; }
.pt-pasos { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 14px; counter-reset: p; }
.pt-pasos li { counter-increment: p; padding: 6px 12px; border-radius: 999px; background: #f4ede6; color: #9a8a80; font-weight: 800; font-size: 14px; }
.pt-pasos li::before { content: counter(p) ". "; }
.pt-pasos li.on { background: #c2561f; color: #fff; }
.pt-pasos li.hecho { background: #d9efd2; color: #2c5a22; }
.pt-form { display: grid; gap: 12px; }
.pt-form label { display: grid; gap: 4px; font-weight: 800; }
.pt-form textarea { min-height: 80px; }
.pt-explica { padding: 12px 14px; border-radius: 12px; background: #fff8ea; font-weight: 600; line-height: 1.45; }
.pt-instrs { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-instrs label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.pt-instrs input { width: 18px; height: 18px; }
.pt-niveles { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-niveles label { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.pt-botones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pt-previa { max-width: 100%; max-height: 260px; border-radius: 10px; border: 2px solid #e5d6c8; }
.pt-papel { background: #fff; border-radius: 12px; padding: 8px; overflow-x: auto; box-shadow: inset 0 0 0 2px #e5d6c8; }
.pt-papel svg { max-width: 100%; height: auto; display: block; }
.pt-espera { padding: 18px; border-radius: 14px; background: #fff8ea; font-weight: 800; text-align: center; }
.pt-avisos { margin: 0; padding: 10px 14px 10px 30px; border-radius: 12px; background: #fde0d6; font-weight: 600; }
.pt-ayuda-boton { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; padding: 12px 18px; border: 0; border-radius: 999px; background: #2b7a8c; color: #fff; font: inherit; font-weight: 900; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); cursor: pointer; }
.pt-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 31; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 32px)); display: flex; flex-direction: column; border-radius: 16px; background: #fffaf0; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); overflow: hidden; }
.pt-chat[hidden] { display: none; }
.pt-chat header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #2b7a8c; color: #fff; }
.pt-chat header button { border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; }
.pt-chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pt-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; line-height: 1.4; white-space: pre-wrap; font-weight: 600; }
.pt-msg.yo { align-self: flex-end; background: #ffe9a8; }
.pt-msg.ia { align-self: flex-start; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pt-chat form { display: flex; gap: 6px; padding: 10px; border-top: 2px solid #e5d6c8; }
.pt-chat form input { flex: 1; min-width: 0; padding: 10px; border-radius: 10px; border: 2px solid #e5d6c8; font: inherit; }
@media print {
  body > main > :not(#pt-ver), .pt-ayuda-boton, .pt-chat, .pt-botones, .profe-head { display: none !important; }
  #pt-ver { box-shadow: none; background: #fff; }
  #pt-ver > :not(.pt-papel):not(h2):not(.pt-logo) { display: none !important; }
}
.pt-aviso, .pt-msg, .pt-chat, .pt-chat-msgs, .pt-chat form input, .pt-tarjeta, .pt-explica, .pt-vacio, .pt-avisos, .pt-espera, .pt-form, .pt-filtros input, .pt-filtros select { color: #1d1410; }
.pt-chat header, .pt-ayuda-boton, .pt-chat header button { color: #fff; }
.pt-archivo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; color: #1d1410; font-weight: 700; }
.pt-archivo .pt-previa { max-height: 90px; }
.pt-logo { display: block; width: 130px !important; height: auto !important; margin: 0 0 8px; }
.pt-form textarea { min-height: 150px; }
.pt-hoja { background: #fff; margin: 0 auto 12px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pt-hoja svg { width: 100%; height: auto; display: block; }
.pt-papel { padding: 0; background: none; box-shadow: none; }
@media print { .pt-hoja { margin: 0; box-shadow: none; break-after: page; } .pt-papel { overflow: visible; } }
.pt-repro { margin-bottom: 10px; } .pt-repro select { padding: 8px 10px; border-radius: 10px; border: 2px solid #e5d6c8; font: inherit; color: #1d1410; background: #fff; }
.pt-suena, .pt-suena * { fill: #d8682a !important; stroke: #d8682a !important; }
@media print { .pt-repro { display: none !important; } }
.pt-pestanas-partes { margin: 4px 0 10px; } .pt-pestanas-partes .pt-chip.on { background: #c2561f; color: #fff; }
@media print { .pt-pestanas-partes { display: none !important; } }
