#predictionsDashboard .prediction-history-panel:not(.imported-results-panel) .prediction-rationale-hidden{display:none!important}
#predictionsDashboard .prediction-history-panel:not(.imported-results-panel) .prediction-col-evaluated{width:6%;padding-left:4px;padding-right:4px;text-align:center;vertical-align:middle}
#predictionsDashboard .prediction-history-panel:not(.imported-results-panel) .prediction-col-evaluated.prediction-column-hidden{display:table-cell!important}

#predictionsDashboard .prediction-rationale-trigger{
    display:inline-grid;
    place-items:center;
    width:22px;
    height:22px;
    margin-left:6px;
    padding:0;
    border:1px solid rgba(93,177,255,.24);
    border-radius:50%;
    background:rgba(37,116,180,.08);
    color:#87cfff;
    font:900 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
    cursor:help;
    vertical-align:middle;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
#predictionsDashboard .prediction-rationale-trigger:hover,
#predictionsDashboard .prediction-rationale-trigger:focus-visible{
    outline:none;
    border-color:rgba(24,216,255,.62);
    background:rgba(24,216,255,.12);
    color:#d9fbff;
    transform:translateY(-1px);
}

.prediction-rationale-tooltip{
    position:fixed;
    z-index:16000;
    width:min(430px,calc(100vw - 24px));
    max-height:min(320px,calc(100vh - 24px));
    overflow:auto;
    padding:14px 16px;
    border:1px solid rgba(83,171,252,.26);
    border-radius:14px;
    background:linear-gradient(155deg,rgba(8,31,56,.99),rgba(3,14,28,.995));
    color:#d6e4f1;
    box-shadow:0 18px 50px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.035);
    font-size:12px;
    line-height:1.58;
    text-align:left;
    white-space:normal;
    overflow-wrap:anywhere;
}
.prediction-rationale-tooltip[hidden]{display:none!important}
.prediction-rationale-tooltip::before{
    content:"MOTIVAZIONE";
    display:block;
    margin-bottom:7px;
    color:#7dcff6;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em;
}

#predictionsDashboard .prediction-evaluated-open{
    min-width:54px;
    min-height:31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:5px 8px;
    border:1px solid rgba(24,216,255,.20);
    border-radius:10px;
    background:linear-gradient(145deg,rgba(10,55,87,.72),rgba(5,29,51,.82));
    color:#a9edff;
    font-size:9px;
    font-weight:900;
    letter-spacing:.035em;
    cursor:pointer;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
    transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
#predictionsDashboard .prediction-evaluated-open::before{
    content:"≡";
    color:#f1c768;
    font-size:13px;
    line-height:1;
}
#predictionsDashboard .prediction-evaluated-open:hover,
#predictionsDashboard .prediction-evaluated-open:focus-visible{
    outline:none;
    border-color:rgba(24,216,255,.48);
    background:linear-gradient(145deg,rgba(12,74,112,.86),rgba(6,38,66,.94));
    color:#e6fbff;
    transform:translateY(-1px);
}
#predictionsDashboard .prediction-evaluated-empty{
    color:#607a91;
    font-size:9px;
    font-weight:800;
}

.prediction-evaluated-modal[hidden]{display:none!important}
.prediction-evaluated-modal{
    position:fixed;
    inset:0;
    z-index:15000;
    display:grid;
    place-items:center;
    padding:22px;
}
.prediction-evaluated-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,7,18,.80);
    backdrop-filter:blur(8px);
}
.prediction-evaluated-dialog{
    position:relative;
    width:min(920px,100%);
    max-height:min(820px,calc(100vh - 36px));
    overflow:auto;
    border:1px solid rgba(91,177,247,.25);
    border-radius:24px;
    background:
        radial-gradient(circle at 88% 7%,rgba(240,179,61,.11),transparent 18rem),
        radial-gradient(circle at 8% 0%,rgba(24,216,255,.10),transparent 19rem),
        linear-gradient(155deg,rgba(8,32,58,.995),rgba(3,13,27,.998));
    box-shadow:0 38px 120px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.035);
}
.prediction-evaluated-close{
    position:sticky;
    float:right;
    top:14px;
    z-index:4;
    width:38px;
    height:38px;
    margin:14px 14px 0 0;
    display:grid;
    place-items:center;
    border:1px solid rgba(129,181,226,.18);
    border-radius:11px;
    background:rgba(3,16,30,.84);
    color:#b9cde0;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}
.prediction-evaluated-close:hover,
.prediction-evaluated-close:focus-visible{outline:none;border-color:rgba(24,216,255,.42);color:#fff}
.prediction-evaluated-content{padding:34px clamp(20px,4vw,46px) 40px}
.prediction-evaluated-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:10px;
    padding:6px 10px;
    border:1px solid rgba(24,216,255,.16);
    border-radius:999px;
    background:rgba(24,216,255,.055);
    color:#8feeff;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em;
}
.prediction-evaluated-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:#18d8ff;box-shadow:0 0 10px rgba(24,216,255,.6)}
.prediction-evaluated-dialog h2{margin:0;color:#f7fbff;font-size:clamp(28px,4vw,42px);line-height:1.04;letter-spacing:-.035em}
.prediction-evaluated-context{margin:9px 0 0;color:#92abc1;font-size:12px;line-height:1.55}
.prediction-evaluated-context strong{color:#d9e8f5;font-weight:850}

.prediction-evaluated-section{margin-top:26px}
.prediction-evaluated-section-title{display:flex;align-items:center;gap:10px;margin-bottom:11px;color:#c6d8e7;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.prediction-evaluated-section-title::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,rgba(90,160,215,.20),transparent)}
.prediction-evaluated-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.prediction-evaluated-metric{
    min-width:0;
    padding:15px;
    border:1px solid rgba(91,170,244,.13);
    border-radius:15px;
    background:rgba(5,24,45,.58);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.prediction-evaluated-metric span{display:block;margin-bottom:6px;color:#819bb2;font-size:9px;font-weight:850;letter-spacing:.075em;text-transform:uppercase}
.prediction-evaluated-metric strong{display:block;color:#edf8ff;font-size:21px;font-weight:950;line-height:1.05;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.prediction-evaluated-metric.is-positive{border-color:rgba(75,224,173,.24);background:rgba(75,224,173,.055)}
.prediction-evaluated-metric.is-positive strong{color:#8ff1c8}
.prediction-evaluated-metric.is-negative{border-color:rgba(230,112,112,.23);background:rgba(230,112,112,.05)}
.prediction-evaluated-metric.is-negative strong{color:#f0a1a1}
.prediction-evaluated-metric.is-gold{border-color:rgba(240,179,61,.22);background:rgba(240,179,61,.055)}
.prediction-evaluated-metric.is-gold strong{color:#f5d27d}

.prediction-evaluated-source-grid{display:grid;grid-template-columns:minmax(150px,.34fr) minmax(0,.66fr);gap:10px}
.prediction-evaluated-source-card{min-width:0;padding:15px;border:1px solid rgba(91,170,244,.13);border-radius:15px;background:rgba(5,24,45,.58)}
.prediction-evaluated-source-card span{display:block;margin-bottom:7px;color:#819bb2;font-size:9px;font-weight:850;letter-spacing:.075em;text-transform:uppercase}
.prediction-evaluated-quality{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid rgba(240,179,61,.24);border-radius:999px;background:rgba(240,179,61,.07);color:#f3d58e;font-size:11px;font-weight:900}
.prediction-evaluated-quality.is-high{border-color:rgba(75,224,173,.28);background:rgba(75,224,173,.07);color:#9af1cf}
.prediction-evaluated-quality.is-low{border-color:rgba(230,112,112,.25);background:rgba(230,112,112,.06);color:#efaaaa}
.prediction-evaluated-source-link{display:inline-block;max-width:100%;color:#89def8;font-size:11px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;text-decoration:none}
.prediction-evaluated-source-link:hover{text-decoration:underline;color:#c9f5ff}
.prediction-evaluated-file{display:block;color:#d1deea;font:700 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.prediction-evaluated-extra-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.prediction-evaluated-extra-list li{display:grid;grid-template-columns:minmax(100px,.28fr) minmax(0,.72fr);gap:12px;padding:10px 12px;border:1px solid rgba(91,170,244,.10);border-radius:11px;background:rgba(5,24,45,.42);font-size:11px}
.prediction-evaluated-extra-list b{color:#8fa9c0}.prediction-evaluated-extra-list span{color:#d4e1ed;overflow-wrap:anywhere}
.prediction-evaluated-raw{margin-top:18px}
.prediction-evaluated-raw summary{color:#708da6;font-size:10px;font-weight:800;cursor:pointer}
.prediction-evaluated-raw pre{margin:10px 0 0;padding:12px;border:1px solid rgba(91,170,244,.10);border-radius:10px;background:rgba(0,9,20,.45);color:#9bb0c3;font:600 10px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.prediction-evaluated-modal-open{overflow:hidden}

@media(max-width:760px){
    #predictionsDashboard .prediction-history-panel:not(.imported-results-panel) .prediction-col-evaluated{width:52px}
    .prediction-evaluated-modal{padding:8px}
    .prediction-evaluated-dialog{max-height:calc(100vh - 16px);border-radius:18px}
    .prediction-evaluated-content{padding:26px 16px 30px}
    .prediction-evaluated-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .prediction-evaluated-source-grid{grid-template-columns:1fr}
}
@media(max-width:460px){.prediction-evaluated-metrics{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#predictionsDashboard .prediction-rationale-trigger,#predictionsDashboard .prediction-evaluated-open{transition:none}}
@media print{
    .prediction-rationale-trigger,.prediction-evaluated-open,.prediction-evaluated-modal,.prediction-rationale-tooltip{display:none!important}
}
