/* Painel do professor: mesmo visual do app, em coluna mais larga */
.painel .pn { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.pn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pn-head h1 { font-size: 1.5rem; margin: 0; line-height: 1; }
.pn-head small { color: var(--muted); font-weight: 700; }
.pn-head .btn { margin-left: auto; }
.pn-auth { max-width: 420px; margin: 0 auto; }
.pn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); margin-bottom: 14px; }
.pn-tabs button { border: 0; padding: 10px; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.pn-tabs button.on { background: var(--accent); color: #fff; }
.btn.wide { width: 100%; }
.pn-err { color: #fb7185; font-weight: 700; min-height: 1.2em; }
.pn-hello { margin: 4px 0 12px; }
.pn-link h3 { margin-top: 0; }
.pn-copy { display: flex; gap: 8px; margin-top: 6px; }
.pn-copy input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .25); color: inherit; font: inherit; font-weight: 600; }
.pn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pn-stats .card { text-align: center; padding: 12px 6px; margin: 0; }
.pn-stats span { font-size: 1.4rem; display: block; } .pn-stats b { font-size: 1.6rem; display: block; } .pn-stats small { color: var(--muted); font-weight: 700; }
.pn-bar { display: flex; align-items: center; justify-content: space-between; }
.pn-stu { padding: 0; overflow: hidden; }
.pn-stu summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.pn-stu summary::-webkit-details-marker { display: none; }
.pn-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--accent), #ff5fa2); flex: 0 0 auto; }
.pn-who { flex: 1; min-width: 0; } .pn-who b { display: block; } .pn-who small { color: var(--muted); }
.pn-nums { display: flex; gap: 8px; font-weight: 800; font-size: .9rem; }
.pn-det { padding: 0 14px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pn-det .good { color: #4ade80; font-weight: 800; } .pn-det .warn { color: #fbbf24; font-weight: 800; }
.pn-recent { list-style: none; padding: 0; margin: 8px 0 0; }
.pn-recent li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin-bottom: 5px; align-items: center; }
.pn-recent li.ok b { color: #4ade80; } .pn-recent li.no b { color: #fb7185; }
.pn-recent small { color: var(--muted); }
@media (max-width: 480px) { .pn-nums { flex-direction: column; gap: 0; font-size: .8rem; } }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* Administrador */
.painel .pn.ad { max-width: 960px; }
.ad-stats { grid-template-columns: repeat(5, 1fr); }
.ad-tabs { grid-template-columns: repeat(4, 1fr); }
.ad-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ad-tools input, .ad-tools select { flex: 1; min-width: 160px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .25); color: inherit; font: inherit; font-weight: 600; }
.ad-tools select { flex: 0 0 auto; min-width: 0; }
.ad-tag { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: .8rem; white-space: nowrap; }
.ad-tag.on { background: #fde047; color: #1e1b4b; }
.btn.danger { background: #be123c; color: #fff; }
.ad-table { overflow-x: auto; padding: 0; }
.ad-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ad-table th, .ad-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.ad-table th { color: var(--muted); }
@media (max-width: 640px) { .ad-stats { grid-template-columns: repeat(3, 1fr); } .ad-tabs { grid-template-columns: repeat(2, 1fr); } }

/* Convites de cortesia */
.ad-invite h3 { margin-top: 0; }
.ad-invite-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; }
.ad-invite-row select { width: 100%; }
.ad-link { display: block; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); word-break: break-all; font-size: .85rem; }
.ad-ok { color: #a7f3d0; font-weight: 800; margin: 12px 0 0; }
.ad-inv { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ad-inv .pn-who { flex: 1 1 260px; min-width: 0; }
.ad-inv.used { opacity: .75; }
@media (max-width: 640px) { .ad-invite-row { grid-template-columns: 1fr; } }
