*,:before,:after{box-sizing:border-box}body{margin:0}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#e2e8f0;background:#0f1117;min-height:100vh;font-family:Inter,system-ui,sans-serif}.app{max-width:860px;margin:0 auto;padding:2rem 1.5rem}header{margin-bottom:2rem}header h1{color:#f8fafc;font-size:1.6rem;font-weight:700}.subtitle{color:#94a3b8;margin-top:.25rem;font-size:.9rem}.header-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.key-form{align-items:center;gap:.5rem;display:flex}.key-input{color:#e2e8f0;background:#1e293b;border:1px solid #2d3748;border-radius:6px;outline:none;width:220px;padding:.45rem .75rem;font-size:.85rem;transition:border-color .15s}.key-input:focus{border-color:#7c3aed}.key-input.key-set{border-color:#34d399}.key-btn{color:#e2e8f0;cursor:pointer;white-space:nowrap;background:#1e293b;border:1px solid #2d3748;border-radius:6px;padding:.45rem .9rem;font-size:.85rem;transition:border-color .15s,color .15s}.key-btn:hover{color:#a78bfa;border-color:#7c3aed}.panel{background:#1e293b;border:1px solid #2d3748;border-radius:8px;padding:2rem}.no-key{color:#94a3b8;font-size:.9rem}.run-form{flex-direction:column;gap:1.25rem;display:flex}.field{flex-direction:column;gap:.5rem;display:flex}.field label{color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem;font-weight:600}.field input,.field select{color:#e2e8f0;background:#0f1117;border:1px solid #2d3748;border-radius:6px;outline:none;padding:.5rem .75rem;font-size:.9rem;transition:border-color .15s}.field input:focus,.field select:focus{border-color:#7c3aed}.file-input-row{align-items:center;gap:.75rem;display:flex}.file-btn{color:#e2e8f0;cursor:pointer;white-space:nowrap;background:#0f1117;border:1px solid #2d3748;border-radius:6px;padding:.5rem .9rem;font-size:.9rem;transition:border-color .15s}.file-btn:hover{border-color:#7c3aed}.file-name{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.modal-backdrop{z-index:100;background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#1e293b;border:1px solid #2d3748;border-radius:10px;width:90%;max-width:400px;padding:1.5rem;box-shadow:0 20px 40px #00000080}.modal p{color:#e2e8f0;margin-bottom:1.25rem;font-size:.9rem;line-height:1.6}.modal-actions{justify-content:flex-end;gap:.75rem;display:flex}.modal-btn{cursor:pointer;border:none;border-radius:6px;padding:.5rem 1rem;font-size:.85rem;font-weight:600;transition:opacity .15s}.modal-btn:hover{opacity:.85}.modal-btn-danger{color:#fff;background:#dc2626}.modal-btn-cancel{color:#e2e8f0;background:#334155}.tooltip-wrap{vertical-align:middle;align-items:center;margin-left:.35rem;display:inline-flex;position:relative}.tooltip-trigger{color:#64748b;cursor:pointer;background:0 0;border:1px solid #475569;border-radius:50%;justify-content:center;align-items:center;width:1.1rem;height:1.1rem;padding:0;font-size:.65rem;font-weight:700;line-height:1;transition:border-color .15s,color .15s;display:inline-flex}.tooltip-trigger:hover,.tooltip-trigger[aria-expanded=true]{color:#a78bfa;border-color:#7c3aed}.tooltip-box{color:#cbd5e1;white-space:normal;text-transform:none;letter-spacing:0;z-index:10;pointer-events:none;background:#0f1117;border:1px solid #2d3748;border-radius:6px;width:240px;padding:.5rem .75rem;font-size:.78rem;font-weight:400;line-height:1.5;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);box-shadow:0 4px 12px #0006}.field-hint{text-transform:none;letter-spacing:0;color:#64748b;font-size:.75rem;font-weight:400}.field input[type=file]{cursor:pointer;padding:.4rem}.field-row{gap:1rem;display:flex}.field-row .field{flex:1}button[type=submit]{color:#fff;cursor:pointer;background:#7c3aed;border:none;border-radius:6px;align-self:flex-start;padding:.65rem 1.5rem;font-size:.9rem;font-weight:600;transition:background .15s}button[type=submit]:hover:not(:disabled){background:#6d28d9}button[type=submit]:disabled{opacity:.5;cursor:not-allowed}.link-btn{color:#7c3aed;cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:0;font-size:.85rem;text-decoration:underline}.link-btn:hover{color:#a78bfa}.run-status{border-top:1px solid #2d3748;margin-top:1.5rem;padding-top:1.5rem}.status-msg{color:#94a3b8;align-items:center;gap:.5rem;margin-bottom:1rem;font-size:.9rem;display:flex}.status-msg.error{color:#f87171}.status-msg.download-note{color:#64748b;font-size:.8rem;font-style:italic}.spinner{border:2px solid #7c3aed;border-top-color:#0000;border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.result-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.result-header h3{color:#f8fafc;font-size:1rem;font-weight:600}.download-btn{color:#a78bfa;cursor:pointer;background:#0f1117;border:1px solid #2d3748;border-radius:6px;padding:.4rem .9rem;font-size:.8rem;font-weight:600;transition:border-color .15s,color .15s}.download-btn:hover{color:#c4b5fd;border-color:#7c3aed}.acc-table{border-collapse:collapse;width:100%;margin-bottom:1rem;font-size:.85rem}.acc-table th{text-align:left;color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #2d3748;padding:.4rem .75rem;font-size:.75rem;font-weight:600}.acc-table td{border-bottom:1px solid #1a2437;padding:.45rem .75rem}.acc-table .totals-row td{color:#f8fafc;border-top:1px solid #2d3748;border-bottom:none;font-weight:700}.delta.pos{color:#34d399}.delta.neg{color:#f87171}.delta.neutral{color:#94a3b8}.task-detail{margin-top:.5rem}.task-list{flex-direction:column;gap:.5rem;max-height:400px;margin-top:.75rem;display:flex;overflow-y:auto}.task-item{background:#0f1117;border-left:3px solid #2d3748;border-radius:4px;padding:.6rem .75rem;font-size:.8rem}.task-item.both-correct{border-left-color:#34d399}.task-item.both-wrong{border-left-color:#f87171}.task-item.mixed{border-left-color:#f59e0b}.task-header{justify-content:space-between;align-items:center;margin-bottom:.35rem;display:flex}.task-kind{color:#94a3b8;text-transform:uppercase;font-size:.75rem;font-weight:600}.task-badges{gap:.25rem;display:flex}.badge{border-radius:3px;padding:.1rem .4rem;font-size:.7rem;font-weight:600}.badge.ok{color:#34d399;background:#064e3b}.badge.fail{color:#f87171;background:#450a0a}.task-q,.task-truth{color:#cbd5e1;margin-bottom:.2rem}.task-answers{color:#94a3b8;flex-direction:column;gap:.15rem;margin-top:.2rem;display:flex}.recovery-panel{margin-top:1.5rem}.recovery-heading{color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem;font-size:.9rem;font-weight:600}.recovery-section{border:1px solid #2d3748;border-radius:6px;margin-bottom:.5rem}.recovery-section summary{cursor:pointer;color:#94a3b8;-webkit-user-select:none;user-select:none;padding:.6rem .9rem;font-size:.9rem;list-style:none}.recovery-section summary::-webkit-details-marker{display:none}.recovery-section[open] summary{color:#e2e8f0;border-bottom:1px solid #2d3748}.recovery-body{flex-direction:column;gap:1rem;padding:1rem;display:flex}.recovery-hint{color:#64748b;font-size:.8rem}
