/* Cuore rossoblù — a compact sports desk, independent of the exam renderer. */
.pl-mount,.pl-dialog{--pl-ink:#091c3c;--pl-blue:#102c5c;--pl-red:#db2947;--pl-muted:#63728a;font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,sans-serif;font-style:normal;line-height:1.4;letter-spacing:normal;color:var(--pl-ink);box-sizing:border-box}
.pl-mount *,.pl-dialog *{box-sizing:border-box}
.pl-mount{position:sticky;top:8px;z-index:25;max-width:1280px;margin:0 auto 20px}
.pl-banner{position:relative;width:100%;min-height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:10px 22px;border:1px solid #253c62;border-radius:17px;background:radial-gradient(ellipse at 0 50%,#4e1d4166,transparent 45%),linear-gradient(105deg,#0c1831,#132e59);color:#fff;box-shadow:0 8px 22px #091c3c20;cursor:pointer;overflow:hidden;text-align:left;font:inherit}
.pl-banner:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--pl-red)}
.pl-banner:hover{border-color:#6f83a5;box-shadow:0 8px 24px #091c3c30}
.pl-banner:focus-visible,.pl-dialog button:focus-visible,.pl-dialog a:focus-visible{outline:3px solid #5ebeff;outline-offset:3px}
.pl-brand{display:flex;align-items:center;gap:12px;min-width:0}
.pl-brand img{width:37px;height:43px;object-fit:contain;filter:drop-shadow(0 2px 5px #0003)}
.pl-brand b{display:block;font-size:10px;letter-spacing:.16em;font-weight:750;color:#e6c5d0}
.pl-brand small{display:block;margin-top:2px;font-size:13px;font-weight:600;color:#fff}
.pl-fixture{display:flex;align-items:center;justify-content:center;gap:18px;white-space:nowrap}
.pl-team-code{font-size:13px;letter-spacing:.07em;font-weight:750;color:#f3f5fa}
.pl-compact-score{display:flex;align-items:center;gap:14px;font-size:29px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.pl-dash{color:#8192ac;font-weight:400;font-size:.72em}
.pl-banner-meta{display:grid;justify-items:end;gap:5px;min-width:0}
.pl-state{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:9px;line-height:1.3;letter-spacing:.1em;font-weight:750;color:#cbd6e6;text-transform:uppercase}
.pl-live{color:#ffb1bf}.pl-live:before{content:"";width:6px;height:6px;border-radius:50%;background:#ff607b;box-shadow:0 0 0 4px #ff607b1c}
.pl-open{color:#aebeD4;font-size:10px}.pl-open>span{margin-left:7px;color:#fff;font-size:15px}
body.exam-mode .pl-mount{top:0;max-width:1540px;margin-bottom:10px}
body.exam-mode .pl-banner{min-height:48px;padding:5px 18px;border-radius:10px;gap:12px}
body.exam-mode .pl-brand img{width:28px;height:34px}body.exam-mode .pl-brand small{display:none}
body.exam-mode .pl-compact-score{font-size:25px}body.exam-mode .pl-open{display:none}
body.exam-mode .exam-stage{min-height:calc(100dvh - 100px)}
.pl-dialog{padding:0;border:1px solid #dce3ed;border-radius:25px;width:min(740px,calc(100vw - 32px));max-width:740px;max-height:calc(100dvh - 32px);background:#f6f8fc;box-shadow:0 28px 100px #07173170;overflow:hidden}
.pl-dialog[open]{display:flex;flex-direction:column}
.pl-dialog::backdrop{background:#071731a6;backdrop-filter:blur(6px)}
.pl-dialog button{font:inherit;cursor:pointer}
.pl-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:26px 30px 23px;background:#fff;border-bottom:1px solid #e7ebf2;flex-shrink:0}
.pl-dialog-header small{font-size:9px;font-weight:750;letter-spacing:.17em;color:#7c8799}
.pl-dialog h2{font:750 25px/1.2 Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:-.055em;color:#10254b;margin:5px 0 0}
.pl-dialog h2>span{display:block;color:#9c3850;font-size:12px;font-weight:500;letter-spacing:0;margin-top:6px}
.pl-close{width:40px;height:40px;border:1px solid #e1e6ee;border-radius:50%;color:#48607c;background:#f6f8fc;font-size:16px}
.pl-close:hover{background:#edf1f8}
.pl-tabs{display:flex;gap:26px;padding:0 30px;background:#fff;flex-shrink:0}
.pl-tabs button{position:relative;min-height:49px;border:0;padding:0 2px;color:#68758b;background:none;font-size:12px;font-weight:650}
.pl-tabs button.active{color:#152c52}.pl-tabs button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:var(--pl-red)}
.pl-exam-note{display:none;margin:0;padding:8px 30px;background:#fff4e7;color:#755021;font-size:11px}
body.exam-mode .pl-exam-note{display:block}
.pl-dialog-content{padding:24px 30px;overflow:auto;overscroll-behavior:contain;min-height:140px}
.pl-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;border:1px solid #263e64;border-radius:18px;background:radial-gradient(ellipse at 9% 100%,#95314b60,transparent 62%),linear-gradient(120deg,#0a1933,#163760);padding:18px 24px 14px}
.pl-hero:before{content:"";position:absolute;inset:-100px -100px -100px 50%;background:repeating-linear-gradient(125deg,transparent,transparent 45px,#fff03 45px,#fff03 46px);z-index:-1;transform:rotate(-10deg)}
.pl-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#b0bfd5;font-size:9px;letter-spacing:.1em;text-transform:uppercase}
.pl-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:15px;margin-top:24px}
.pl-teams>div{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}
.pl-teams img{width:57px;height:65px;object-fit:contain;filter:drop-shadow(0 3px 6px #0003)}
.pl-teams b{font-size:12px;letter-spacing:.04em;text-align:center;overflow-wrap:anywhere;font-weight:650}
.pl-big-score{display:flex;align-items:center;gap:18px;font-size:57px;line-height:1;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums;padding-bottom:22px}
.pl-hero>p{margin:18px 0 0;padding-top:13px;border-top:1px solid #ffffff17;font-size:10px;color:#c0ccdd;text-align:center}
.pl-monogram{width:57px;height:65px;display:grid;place-items:center;border:1px solid #ffffff32;border-radius:14px;background:#ffffff0c;font-size:15px;font-weight:750;letter-spacing:.03em}
.pl-section{margin-top:23px}.pl-section:first-child{margin-top:0}
.pl-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.pl-section-heading h3{margin:0;font:700 13px/1.4 Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:-.015em;color:#1b3053}
.pl-section-heading>span{font-size:10px;color:#7b879a}
.pl-goals{list-style:none;margin:0;padding:0;border:1px solid #e2e7f0;border-radius:14px;background:#fff;overflow:hidden}
.pl-goal{display:flex;align-items:center;gap:14px;padding:14px 17px;border-bottom:1px solid #edf0f5}.pl-goal:last-child{border:0}
.pl-goal-minute{display:grid;place-items:center;width:40px;min-height:32px;border-radius:9px;background:#fcf0f3;color:#a52f4a;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;flex-shrink:0}
.pl-goal.pl-away .pl-goal-minute{background:#edf2f9;color:#324f78}
.pl-goal>div{min-width:0}.pl-goal b{display:block;font-size:12px;font-weight:650}.pl-goal small{display:block;margin-top:3px;font-size:9px;color:#7c8799;letter-spacing:.03em}
.pl-ball{margin-left:auto;font-size:14px;filter:grayscale(1);opacity:.65}
.pl-next{margin-top:22px;border-left:3px solid var(--pl-red);padding:1px 0 1px 14px}
.pl-next>span{font-size:8px;font-weight:750;letter-spacing:.14em;color:#8f4d60}.pl-next>b{display:block;margin-top:5px;font-size:12px}.pl-next b>span{color:#8c9ab1;margin:0 5px}.pl-next>small{display:block;margin-top:3px;font-size:10px;color:var(--pl-muted)}
.pl-results{border:1px solid #e2e7f0;background:#fff;border-radius:14px;overflow:hidden}
.pl-results button{display:flex;align-items:center;gap:12px;padding:15px;width:100%;border:0;border-bottom:1px solid #edf0f5;text-align:left;background:#fff;color:var(--pl-ink)}
.pl-results button:last-child{border-bottom:0}.pl-results button:hover{background:#f4f7fc}
.pl-outcome{display:grid;place-items:center;width:25px;height:27px;border-radius:7px;font-size:10px;font-weight:750;flex-shrink:0}
.pl-win{color:#257659;background:#eaf5ef}.pl-loss{color:#aa3f55;background:#fcf0f3}.pl-draw{color:#686a80;background:#f0f1f7}
.pl-result-teams{min-width:0;flex:1}.pl-result-teams b{display:block;font-size:10px;letter-spacing:.01em}.pl-result-teams b>span{color:#8d9bb0}.pl-result-teams small{display:block;font-size:9px;margin-top:4px;color:#77869d}
.pl-results button>strong{font-size:18px;min-width:45px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.pl-results .pl-dash{padding:0 4px}
.pl-result-arrow{color:#8092ac;font-size:20px}
.pl-standing{display:flex;align-items:center;gap:22px;padding:24px;background:linear-gradient(120deg,#0b1d3c,#183760);color:#fff;border-radius:16px}
.pl-rank strong,.pl-points strong{display:block;font-size:44px;line-height:1;letter-spacing:-.06em;font-weight:650;font-variant-numeric:tabular-nums}
.pl-rank sup{font-size:20px;vertical-align:top;margin-left:3px}.pl-rank>span,.pl-points>span{display:block;color:#b7c5db;margin-top:6px;font-size:8px;letter-spacing:.12em}
.pl-standing-team{display:flex;align-items:center;gap:12px;flex:1}.pl-standing-team img{object-fit:contain;width:40px;height:50px}.pl-standing-team b{font-size:13px;letter-spacing:.06em}.pl-standing-team small{display:block;margin-top:5px;color:#b7c5db;font-size:9px}.pl-points{text-align:right}
.pl-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #e2e7f0;border-radius:14px;background:#fff;margin-top:16px;overflow:hidden}
.pl-stats>div{padding:18px 10px;text-align:center;border:1px solid #f0f2f7}.pl-stats b{display:block;font-size:23px;font-weight:650;color:#1c355c}.pl-stats small{display:block;font-size:10px;color:var(--pl-muted);margin-top:4px}
.pl-note,.pl-empty{font-size:11px;line-height:1.6;color:var(--pl-muted)}.pl-empty{padding:20px;border:1px dashed #d2dce9;border-radius:12px;background:#fff}
.pl-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 30px;border-top:1px solid #e2e7f0;background:#fff;flex-shrink:0;font-size:9px;line-height:1.5;color:#7e899b}
.pl-dialog-footer>a{color:#3b5476;text-decoration:none;white-space:nowrap}.pl-dialog-footer>a:hover{text-decoration:underline}
@media(max-width:640px){
 .pl-mount{top:6px;margin-bottom:16px}.pl-banner{min-height:59px;border-radius:13px;padding:8px 12px;gap:8px;grid-template-columns:auto 1fr auto}
 .pl-brand{gap:0}.pl-brand img{width:29px;height:35px}.pl-brand>span{display:none}.pl-fixture{gap:11px}.pl-team-code{font-size:11px}.pl-compact-score{font-size:26px;gap:10px}.pl-banner-meta{max-width:100px}.pl-state{font-size:8px;letter-spacing:.04em}.pl-open{font-size:8px}.pl-open>span{margin-left:2px}
 body.exam-mode .pl-banner{min-height:46px;padding:5px 11px}body.exam-mode .pl-mount{margin-bottom:0}body.exam-mode .pl-brand b{display:none}
 .pl-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.pl-dialog-header{padding:20px}.pl-dialog h2{font-size:24px}.pl-tabs{padding:0 20px;gap:28px}.pl-dialog-content{padding:18px}.pl-hero{padding:16px}.pl-hero-top{font-size:8px}.pl-teams{gap:10px}.pl-teams img,.pl-monogram{width:46px;height:53px}.pl-teams b{font-size:10px}.pl-big-score{font-size:43px;gap:12px}.pl-dialog-footer{padding:12px 18px;font-size:8px;gap:8px}.pl-standing{padding:20px 16px;gap:14px}.pl-standing-team{gap:9px}.pl-standing-team img{width:31px;height:42px}.pl-standing-team b{font-size:11px}.pl-rank strong,.pl-points strong{font-size:36px}.pl-exam-note{padding:8px 18px;font-size:10px}
}
@media(max-width:370px){.pl-open{display:none}.pl-state{max-width:85px;text-align:right}.pl-fixture{gap:8px}.pl-compact-score{font-size:24px}.pl-teams{gap:6px}.pl-big-score{font-size:38px}.pl-dialog-content{padding:14px}.pl-result-teams b{font-size:9px}}
@media(max-height:480px) and (orientation:landscape){.pl-dialog-header{padding:12px 22px}.pl-dialog h2{font-size:19px}.pl-dialog h2>span{display:none}.pl-tabs button{min-height:38px}.pl-dialog-content{padding:16px 22px}.pl-exam-note{padding:5px 22px}.pl-dialog-footer{padding:8px 22px}}
@media(prefers-reduced-motion:reduce){.pl-mount *,.pl-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Reserve a separate strip in the full-screen book as well. */
body.manual-reading .pl-mount{position:fixed;inset:0 0 auto;z-index:15010;max-width:none;margin:0;height:48px}
body.manual-reading .pl-banner{min-height:48px;height:48px;padding:5px 18px;border-radius:0;gap:12px}
body.manual-reading .pl-brand img{width:28px;height:34px}body.manual-reading .pl-brand small,body.manual-reading .pl-open{display:none}
body.manual-reading .pl-compact-score{font-size:25px}
html body.manual-reading #view-manual.active{inset:48px 0 0!important;height:calc(100vh - 48px)!important;height:calc(100dvh - 48px)!important}

/* r139: school notices and sporting score occupy separate measured rows. */
#pl-status-rail{box-sizing:border-box;position:sticky;top:8px;z-index:10030;display:flex;flex-direction:column;gap:8px;max-width:1280px;margin:0 auto 16px;--pl-score-height:36px}
#pl-status-rail[hidden],#pl-status-rail [hidden]{display:none!important}
#pl-status-rail .pl-priority-notices{display:flex;flex-direction:column;gap:8px;max-height:max(60px,calc(45dvh - var(--pl-score-height) - 8px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;padding:2px 3px}
#pl-status-rail #potenza-live{position:relative;inset:auto;z-index:auto;max-width:none;width:100%;height:auto;margin:0;flex-shrink:0}
#pl-status-rail #potenza-live[hidden]{display:none!important}
body.quiz-in-progress #potenza-live:not(.pl-live-match),body.exam-mode #potenza-live:not(.pl-live-match){display:none!important}
#potenza-live.pl-compact .pl-banner{min-height:36px;height:36px;padding:3px 13px;border-radius:10px;gap:12px;box-shadow:0 3px 9px #091c3c12}
#potenza-live.pl-compact .pl-brand{gap:8px}#potenza-live.pl-compact .pl-brand img{width:22px;height:27px}
#potenza-live.pl-compact .pl-brand b{font-size:8px;letter-spacing:.08em}#potenza-live.pl-compact .pl-brand small,#potenza-live.pl-compact .pl-open{display:none}
#potenza-live.pl-compact .pl-team-code{font-size:10px}#potenza-live.pl-compact .pl-compact-score{font-size:20px;gap:9px}#potenza-live.pl-compact .pl-state{font-size:8px}
#pl-status-rail :is(#cloudExamBanner,#cloudPrivateMessage,#quizSafetyNotice,#cloudInstallReminder,.theory-daily-announcement){position:relative!important;inset:auto!important;left:auto!important;top:auto!important;bottom:auto!important;right:auto!important;transform:none!important;width:100%!important;max-width:none!important;z-index:auto!important;margin:0!important;flex-shrink:0;animation:none!important;box-sizing:border-box}
#pl-status-rail #cloudExamBanner{align-self:center}
body.pl-status-layout.cloud-exam-banner-visible #app .main-content .topbar{padding-top:0}
body.exam-mode #pl-status-rail{top:0;max-width:1540px;margin-bottom:10px}
body.manual-reading #pl-status-rail{position:fixed;inset:0 0 auto;z-index:15010;max-width:none;margin:0;background:#edf3f9;padding:0 4px}
html body.manual-reading #view-manual.active{inset:var(--pl-status-height,36px) 0 0!important;height:calc(100vh - var(--pl-status-height,36px))!important;height:calc(100dvh - var(--pl-status-height,36px))!important}
body.mean-welcome-active #pl-status-rail{visibility:hidden!important;pointer-events:none!important}
@media(max-width:640px){#pl-status-rail{top:4px;gap:6px;margin-bottom:12px}#potenza-live.pl-compact .pl-banner{min-height:32px;height:32px;padding:2px 10px;border-radius:9px;gap:8px}#potenza-live.pl-compact .pl-brand img{width:20px;height:25px}#potenza-live.pl-compact .pl-compact-score{font-size:19px;gap:8px}#potenza-live.pl-compact .pl-fixture{gap:10px}#pl-status-rail .pl-priority-notices{gap:6px;padding:1px 2px}body.exam-mode #pl-status-rail{margin-bottom:0}}

body.theory-graduate #pl-status-rail,body.theory-graduate #potenza-dialog{display:none!important}
body.sidebar-menu-open #pl-status-rail{visibility:hidden!important;pointer-events:none!important}

@media(prefers-reduced-motion:no-preference){
 .pl-dialog[open]{animation:pl-enter 250ms cubic-bezier(.22,.8,.25,1) both}
 .pl-dialog[open].pl-closing{animation:pl-leave 160ms ease-in both}
 .pl-dialog[open]::backdrop{animation:pl-backdrop 220ms ease-out both}
}
@keyframes pl-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pl-leave{to{opacity:0;transform:translateY(6px) scale(.99)}}
@keyframes pl-backdrop{from{background-color:transparent}to{background-color:#071731a6}}
