body {
    font-family: system-ui, sans-serif;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #1a1a1a;
    line-height: 1.5;
}

h1 {
    text-align: center;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    min-width: 0;
}

#parameters, #description {
    max-width: 760px;
    margin: 1em auto;
}

#results, #status_progress {
    width: 90%;
    margin: 1em auto;
}
@media (max-width: 800px) {
    #results, .progress {
        width: 100%;
    }
}


legend {
    font-weight: bold;
    padding: 0 .5rem;
}

input[type="text"], input[type="number"], input[type="file"] {
    padding: .4rem;
    border: 1px solid #bbb;
    border-radius: 4px;
}
.field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

.field label {
    margin: 0;
    flex: 0 0 230px;
    font-weight: 600;
}

.field input[type="file"] {
    flex: 1;
}

.field input[type="text"], .field input[type="number"] {
    width: 5em;
}

.field .preset {
    padding: .3rem .6rem;
    border: 1px solid #7373de;
    background: #fff;
    color: #7373de;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
}

.field .preset.active {
    background: #7373de;
    color: #fff;
}

.field::after {
    content: attr(data-tip);
    position: absolute;
    left: 1rem;
    bottom: 100%;
    margin-bottom: 6px;
    width: max-content;
    max-width: 300px;
    background: #1a1a1a;
    color: #fff;
    padding: .5rem .75rem;
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
}

.field:hover::after {
    opacity: 1;
}

details {
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

#run {
    display: block;
    /* width: 100%; */
    padding: 1rem;
    margin: 1em auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: #7373de;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#run:disabled {
    background: #999;
    cursor: not-allowed;
}

.cmd {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: .6rem .8rem;
    border-radius: 6px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    font-size: .85rem;
    display:none;
}

.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9rem;
}

th, td {
    border: 1px solid #ddd;
    padding: .4rem .6rem;
    text-align: left;
}

th {
    background: #f4f4f8;
}

td.seq {
    font-family: monospace;
    word-break: break-all;
    max-width: 320px;
}

.downloads, .dl {
    margin-bottom: 1rem;
}

button[class^="dl-"], button[id^="dl-"] {
    padding: .5rem 1rem;
    border: 1px solid #7373de;
    background: #fff;
    color: #7373de;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

button[id^="dl-"]:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.section {
    border-top: 1px solid #ddd;
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

#advanced-fields {
    margin-top: .6rem;
}

.progress { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.progress .bar { height: 100%; width: 0%; background: #7373de; border-radius: 3px; }

#jobs {
    margin: 1em auto;
    width: 80%
}

.job-status {
    margin: .5em 0;
}

#results {
    visibility: hidden;
    text-align: center;
}

#analyses, #events {
    margin: 1em auto;
    max-width: 100%;
}

.separator {
    visibility: hidden;
    display: block
}

#status, .status {
    color: gray;
    font: sans-serif;
    font-size: 90%;
}
