/* Espace professeur — complète style.css */
body.prof .brand { text-decoration: none; color: var(--txt); }
.brand small { font-family: var(--font); font-size: .75rem; color: var(--mute); text-transform: none; }
.pnav { display: flex; flex-wrap: wrap; gap: 6px; }
.pnav button { background: var(--panel); border: 1px solid var(--line); color: var(--mute); border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
.pnav button.active { background: var(--gold); color: #1a1033; border-color: var(--gold); }
.pmain { max-width: 1150px; margin: 0 auto; padding: 10px 20px 60px; }
.phead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.phead h1 { margin: 0; font-size: 1.6rem; color: var(--gold); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 8px; }
.phead .row-btns { margin: 0; }
a.btn { text-decoration: none; display: inline-block; }
.muted { color: var(--mute); }
.small { font-size: .82rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ccard { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; color: var(--txt); display: flex; flex-direction: column; gap: 10px; transition: transform .1s, border-color .15s; }
.ccard:hover { transform: translateY(-3px); border-color: var(--gold); }
.ccard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ccard-top b { font-family: var(--display); font-size: 1.2rem; }
.ccard-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; font-weight: 700; }
.tag.ok { background: #145c3f; color: #b7ffde; }
.tag.off { background: #4a1424; color: #ffc2cf; }
.tag.wait { background: #5c4a14; color: #ffe9a8; }
.tag.mine { background: var(--panel2); }
.empty-card { grid-column: 1 / -1; text-align: center; background: var(--panel); border: 2px dashed var(--line); border-radius: 18px; padding: 30px; }
.empty-card .big { font-size: 3rem; }
.codebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.codebar code.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 900; color: var(--gold); letter-spacing: 2px; background: var(--bg2); padding: 4px 10px; border-radius: 8px; }
.ptabs { margin: 0 0 14px; max-width: 520px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { flex: 1; min-width: 200px; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--txt); }
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ptable th { text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--mute); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 8px 10px; border-bottom: 1px solid #2c2558; vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td.who { display: flex; align-items: center; gap: 14px; min-width: 210px; padding-left: 16px; }
.ptable td.acts { white-space: nowrap; text-align: right; }
.ptable .iconbtn { width: 32px; height: 32px; font-size: .9rem; }
.ptable.small td { font-size: .8rem; padding: 5px 8px; }
.rate { font-weight: 900; padding: 2px 8px; border-radius: 6px; }
.rate.good, .fill.good { background: #145c3f; color: #b7ffde; }
.rate.mid, .fill.mid { background: #5c4a14; color: #ffe9a8; }
.rate.low, .fill.low { background: #5c1428; color: #ffc2cf; }
.skills { display: flex; flex-direction: column; gap: 10px; }
.skill .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.skill .track { height: 14px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.skill .fill { height: 100%; border-radius: 99px; }
.skill .fill.good { background: linear-gradient(90deg, #1f7a55, var(--green)); }
.skill .fill.mid { background: linear-gradient(90deg, #a87b10, var(--gold)); }
.skill .fill.low { background: linear-gradient(90deg, var(--red2), var(--red)); }
.alert { background: #4a1424; border: 1px solid var(--red); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; }
.alert.ok { background: #10402d; border-color: var(--green); }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.pcard h3 { margin-top: 0; }
.pcard.danger { border-color: #7a2050; }
.pcard summary { cursor: pointer; font-weight: 800; color: var(--mute); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.statgrid div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.statgrid span { font-size: 1.4rem; display: block; }
.statgrid b { font-family: var(--display); font-size: 1.3rem; color: var(--gold); display: block; }
.statgrid small { color: var(--mute); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inline-form input:not([type=checkbox]) { flex: 1; min-width: 160px; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--txt); }
.field.inline { flex-direction: row; align-items: center; margin: 0; }
.qlist { display: flex; flex-direction: column; gap: 10px; }
.qitem { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.qitem.inactive { opacity: .55; }
.qitem-top { display: flex; flex-wrap: wrap; gap: 6px; }
.qitem-text { font-weight: 800; white-space: pre-line; overflow-wrap: anywhere; }
.qitem .row-btns { justify-content: flex-start; }
.modal-card textarea, .modal-card select, .modal-card input:not([type=checkbox]):not([type=radio]):not([type=file]) { width: 100%; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--txt); font: inherit; }
.modal-card { text-align: left; }
.modal-card h2 { text-align: center; }
.modal-card .modal-ico { text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.qchoice { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.qchoice input[type=radio] { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.qpreview { background: var(--bg2); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.qpreview .qtext { font-size: 1.1rem; margin: 4px 0; }
pre.sample { background: var(--bg2); border-radius: 10px; padding: 10px; font-size: .75rem; overflow-x: auto; white-space: pre; }
.sd-head { display: flex; gap: 22px; align-items: center; padding: 16px 10px 0 18px; }
.sd-head h2 { text-align: left; margin: 0; }
.badge-line { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-line .badge { width: 38px; aspect-ratio: 1; }
@media (max-width: 700px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .pnav button { padding: 6px 8px; font-size: .8rem; }
}
.tplcheck { font-weight: 800; color: var(--gold); margin: 6px 0 10px; }
.tplzone { background: var(--bg2); }
.tplzone textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
.tplhelp summary { cursor: pointer; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.tplhelp ul { padding-left: 18px; }
.sample-q { border-top: 1px solid var(--line); padding: 8px 0; }
.sample-q:first-of-type { border-top: 0; }
.row-btns.left { justify-content: flex-start; }
.lvlpick { display: flex; flex-wrap: wrap; gap: 6px; }
.lvlpick .lvl { border: 2px solid var(--line); background: var(--bg2); color: var(--mute); border-radius: 10px; padding: 7px 12px; font-weight: 800; cursor: pointer; }
.lvlpick .lvl.on { border-color: var(--gold); background: #3b2f12; color: var(--gold); }
