/* Excel Unfreeze. Site tokens from app.css, so light/dark mode just works. */
#xu { --xl: #1d6f42; --xl-soft: #e6f2ea; }
[data-theme="dark"] #xu { --xl: #6fcf97; --xl-soft: #17301f; }

.xu-file { margin-top: 0; scroll-margin-top: 90px; }
.xu-file .progress i { background: var(--xl); }
.xu-file-head { display: flex; align-items: center; gap: 12px; }
.xu-file-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--xl); color: #fff; font-weight: 700; font-size: 1.1rem; }
[data-theme="dark"] .xu-file-ico { color: #0f1f15; }
.xu-file-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.xu-file-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.xu-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
.xu-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); }
.xu-stat span { font-size: .8rem; color: var(--muted); }
.xu-stat b { font-size: 1.35rem; }
.xu-stat b.bad { color: var(--bad); } .xu-stat b.ok { color: var(--ok); }
@media (max-width: 560px) { .xu-stat b { font-size: 1.05rem; } .xu-stats { gap: 6px; } .xu-stat { padding: 10px; } }

.xu-h { font-size: 1rem; margin: 20px 0 8px; }
.xu-fixes { display: flex; flex-direction: column; gap: 6px; }
.xu-fix { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.xu-fix:hover:not(.off) { border-color: var(--xl); }
.xu-fix:has(input:checked) { border-color: var(--xl); background: var(--xl-soft); }
.xu-fix.off { cursor: default; opacity: .62; }
.xu-fix input { width: 18px; height: 18px; accent-color: var(--xl); }
.xu-fix-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.xu-count, .xu-badge { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.xu-count.found { background: var(--gold-soft); color: var(--gold); }
.xu-count.none { background: var(--surface-2); color: var(--muted); }
.xu-badge.safe { background: var(--ok-soft); color: var(--ok); }
.xu-badge.risk { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 560px) {
  .xu-fix { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; }
  .xu-badge { grid-column: 3; grid-row: 2; justify-self: end; }
  .xu-count { grid-column: 3; grid-row: 1; justify-self: end; }
}

.xu-warn { margin: 0; padding: 10px 14px 10px 30px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--text);
  font-size: .9rem; line-height: 1.7; }
.xu-warn.empty { background: var(--surface-2); color: var(--muted); list-style: none; padding-left: 14px; }
.xu-run { margin: 18px 0 8px; }
.xu-run .btn { padding: 12px; font-size: 1rem; background: var(--xl); }
[data-theme="dark"] .xu-run .btn { color: #0f1f15; }

.xu-done { margin-top: 16px; }
.xu-done-head { display: flex; gap: 12px; align-items: center; }
.xu-done-head .icon { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }
.xu-done-head div { display: flex; flex-direction: column; }
.xu-done-list { margin: 12px 0; padding: 0; list-style: none; line-height: 1.9; color: var(--ok); }
