* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #f3f2f2; font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #181818; }
.card { width: min(560px, 92vw); background: #fff; border-radius: 10px; padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); }
h1 { font-size: 20px; margin: 0 0 4px; }
.muted { color: #6b6b6b; margin: 0 0 18px; font-size: 13px; word-break: break-all; }
.bar { height: 10px; background: #e5e5e5; border-radius: 5px; overflow: hidden; }
.fill { height: 100%; background: #0176d3; transition: width .4s ease;
  background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%);
  background-size: 20px 20px; animation: stripes 1s linear infinite; }
.fill.complete { background-color: #2e844a; animation: none; background-image: none; }
.fill.failed { background-color: #ba0517; animation: none; background-image: none; }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 20px 0; } }
#msg { color: #444; margin: 12px 0 0; }
.ok { color: #2e844a; font-weight: 600; margin: 16px 0 0; }
.error { background: #fdecea; color: #8c0b12; border-radius: 6px; padding: 10px 12px; margin-top: 16px; }
details { margin-top: 14px; font-size: 13px; color: #6b4c00; }
details ul { padding-left: 18px; }
#actions { margin-top: 20px; display: flex; gap: 16px; align-items: center; }
.btn { background: #0176d3; color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 6px; font-weight: 600; }
.btn:hover { background: #014486; }
.btn.secondary { background: #fff; color: #0176d3; border: 1px solid #0176d3; margin-left: 8px; }
.btn.secondary:hover { background: #eef4ff; }
[hidden] { display: none !important; }
.btn.disabled, .btn.disabled:hover { background: #a8b8c8; cursor: not-allowed; pointer-events: none; }
.link { color: #0176d3; }
