/* Finestra «Professore al lavoro» (js/professor.js). Nascosta in stampa. */
.pw { position: fixed; right: 14px; bottom: 14px; z-index: 60; width: min(360px, calc(100vw - 28px)); background: #1b2b26; color: #f3f0e6; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); overflow: hidden; font-family: var(--font-sans); font-size: 13px; line-height: 1.4; border: 1px solid #0d1713; }
.pw[hidden], .pw-pill[hidden] { display: none; }
.pw-bar { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; background: #0f1a16; }
.pw-name { font-weight: 600; font-size: 12px; white-space: nowrap; }
.pw-badge { font-size: 10px; padding: 1px 6px; border-radius: 9px; background: #8a6a45; color: #fff; white-space: nowrap; }
.pw-b { margin-left: auto; background: transparent; border: 1px solid rgba(243, 240, 230, .35); color: #f3f0e6; border-radius: 4px; padding: 1px 7px; font-size: 11px; cursor: pointer; line-height: 1.5; }
.pw-b + .pw-b { margin-left: 0; }
.pw-b:hover { background: rgba(243, 240, 230, .15); }
.pw-b:focus-visible, .pw-pill:focus-visible { outline: 2px solid #ffd166; outline-offset: 1px; }
.pw-body { position: relative; aspect-ratio: 16 / 10; container-type: size; background: #1d3029; }
.pw-board { position: absolute; left: 2.5%; right: 2.5%; top: 3%; bottom: 3%; background: radial-gradient(ellipse at 40% 30%, #2f4b42 0%, #284038 60%, #1d3029 100%); border: 2.4cqh solid #8a6a45; border-radius: 5px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .45); font-size: clamp(10px, 5.2cqh, 15px); overflow: hidden; }
.pw-title { position: absolute; left: 4%; right: 4%; top: 4%; font-weight: 600; border-bottom: 1px dashed rgba(243, 240, 230, .35); padding-bottom: .15em; text-shadow: 0 0 2px rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-title:empty { display: none; }
.pw-rows { position: absolute; left: 4%; right: 4%; top: 24%; bottom: 4%; overflow: hidden; }
.pw-row { margin: .22em 0; min-height: 1.3em; }
.pw-ink { display: inline-block; white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-style: italic; text-shadow: 0 0 1px rgba(255, 255, 255, .7), 0 0 7px rgba(255, 255, 255, .12); }
.pw-row.boxed .pw-ink { border: 1px solid rgba(243, 240, 230, .9); border-radius: .35em; padding: 0 .45em; }
.pw-canvas, .pw-poster { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pw-poster { left: auto; right: 2%; width: 26%; top: auto; bottom: 0; height: 56%; opacity: .95; }
.pw-cap { padding: 5px 10px; height: 3.9em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; background: #0f1a16; font-size: 12px; color: #d9d5c6; }
.pw-cap a { color: #ffd166; }
.pw-text { max-height: 40vh; overflow: auto; padding: 8px 12px; background: #fbfaf5; color: #222; border-top: 1px solid #0d1713; }
.pw-th { font-weight: 700; margin-top: .5em; }
.pw-tl { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.pw-foot { padding: 4px 10px 6px; font-size: 10.5px; background: #0f1a16; color: #a9b3ad; }
.pw-foot a { color: #ffd166; }
.pw-pill { position: fixed; right: 14px; bottom: 14px; z-index: 60; background: #0f1a16; color: #f3f0e6; border: 1px solid #8a6a45; border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .3); }
.pw-pill::before { content: "✎ "; }
@media (max-width: 720px) { .pw { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-width: 360px; } .pw-pill { right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .pw, .pw-pill { transition: none; } }
@media print { .pw, .pw-pill { display: none !important; } }
