.resource-report,
.resource-report-button{
    width:auto;
    min-width:0;
    margin:0 6px 0 0;
    padding:7px 0;
    border:0;
    background:transparent;
    color:#8e9aa5;
    font:inherit;
    font-size:11px;
    font-weight:400;
    line-height:1;
    text-align:center;
    text-decoration:none;
    white-space:nowrap;
    opacity:.62;
    cursor:pointer;
    transition:color .18s ease,opacity .18s ease;
}
.resource-report:hover:not(:disabled),
.resource-report-button:hover:not(:disabled){
    color:#bf7777;
    opacity:1;
}
.resource-report:disabled,
.resource-report-button:disabled{
    color:#77818a;
    opacity:.48;
    cursor:default;
}
html[data-theme="light"] .resource-report,
html[data-theme="light"] .resource-report-button{color:#8493a0}
html[data-theme="light"] .resource-report:hover:not(:disabled),
html[data-theme="light"] .resource-report-button:hover:not(:disabled){color:#bf6b6b}

.resource-report-dialog{
    position:fixed;
    inset:0;
    margin:auto;
    width:360px;
    max-width:calc(100% - 32px);
    padding:24px;
    background:#202225;
    color:#d8dce1;
    border:1px solid #3a3e43;
    border-radius:10px;
    font:14px "Microsoft YaHei",sans-serif;
}
.resource-report-dialog::backdrop{background:#0008}
.resource-report-dialog h2{font-size:18px;margin-bottom:12px}
.resource-report-dialog p{font-size:13px;color:#959da5;line-height:1.6}
.resource-report-dialog fieldset{border:0;padding:14px 0;display:grid;gap:12px}
.resource-report-dialog input{accent-color:#75b7df}
.report-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.report-actions button{font:inherit;font-size:13px;padding:8px 13px;color:#cbd3da;background:#2d3237;border:1px solid #414951;border-radius:5px;cursor:pointer}
.report-actions button[type=submit]{background:#31516a;border-color:#476c86;color:#e1eef7}
.resource-report-dialog .report-error{color:#d89e96}
.report-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html[data-theme="light"] .resource-report-dialog{background:var(--bg-card);color:var(--text-primary);border-color:var(--border-normal);box-shadow:var(--shadow-large)}
html[data-theme="light"] .resource-report-dialog p{color:var(--text-muted)}
html[data-theme="light"] .report-actions button{background:var(--bg-input);border-color:var(--border-normal);color:var(--text-secondary)}
html[data-theme="light"] .report-actions button[type=submit]{background:var(--accent);border-color:var(--accent);color:#fff}

@media(max-width:600px){
    .resource-report,
    .resource-report-button{margin-right:2px;font-size:10px}
}

/* The per-resource report follows the main download action. */
.resource-item .resource-report,
.resource-item .resource-report-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin:0 0 0 2px;
    padding:7px 2px;
}
.resource-report-icon{
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 auto;
}
@media(max-width:600px){
    .resource-item .resource-report,
    .resource-item .resource-report-button{
        gap:3px;
        margin-left:0;
        padding-inline:0;
    }
    .resource-report-icon{width:14px;height:14px}
}

