:root {
    font: 16px/1.5 system-ui, -apple-system, sans-serif;
    color: #243148;
    background: #f3f5f8;
    --accent: #2759c9;
    --border: #dce2ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px max(24px, calc((100% - 1180px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    font-size: 23px;
    font-weight: 750;
    color: #243148;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

main {
    max-width: 1180px;
    margin: auto;
    padding: 35px 24px;
}

h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 8px 0 12px;
}

h2 {
    font-size: 19px;
    margin: 0 0 18px;
}

p {
    margin: 8px 0 16px;
}

.intro {
    max-width: 760px;
    margin-bottom: 22px;
}

.columns {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.card,
#token-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.section-head h2 {
    margin: 0;
}

.hint {
    font-size: 13px;
    color: #6d788a;
}

button,
select,
input,
textarea {
    font: inherit;
}

button {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 13px;
    background: white;
    cursor: pointer;
    color: #243148;
}

button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

button:disabled {
    opacity: .5;
    cursor: default;
}

.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.primary:hover {
    background: #1946a5;
    color: white;
}

a {
    color: var(--accent);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: #243148;
    padding: 9px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #9cb7f6;
    outline-offset: 1px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 15px 0 6px;
}

label input {
    margin-top: 6px;
}

textarea {
    font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
    min-height: 340px;
    resize: vertical;
    margin-top: 12px;
    tab-size: 4;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

details {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 18px;
}

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

form button {
    margin-top: 14px;
}

#projects {
    display: grid;
    gap: 8px;
}

#projects button {
    text-align: left;
    overflow-wrap: anywhere;
}

#projects .selected {
    background: #eef3ff;
    border-color: #93ade5;
}

.builds {
    margin-top: 22px;
}

.job {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.job:first-child {
    margin-top: 20px;
}

.job-info {
    flex: 1;
    min-width: 0;
}

.job code {
    font-size: 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.badge {
    border-radius: 20px;
    font-size: 12px;
    font-weight: 650;
    padding: 4px 10px;
    background: #edf1f7;
    white-space: nowrap;
}

.good {
    background: #e6f5ed;
    color: #186440;
}

.bad {
    background: #fbe9e8;
    color: #a33630;
}

.pending {
    background: #fff2d9;
    color: #895d10;
}

#message:not(:empty) {
    background: #e8effe;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

#message.error {
    background: #fbe9e8;
    color: #932d28;
}

#report-panel {
    margin-top: 22px;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    background: #f5f7fa;
    padding: 14px;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

td {
    overflow-wrap: anywhere;
}

#token-panel {
    margin-bottom: 22px;
}

#token-panel input {
    font-family: monospace;
    margin-bottom: 12px;
}

footer {
    max-width: 1180px;
    padding: 24px;
    margin: auto;
    color: #7b8796;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

@media(max-width:800px) {
    .columns {
        grid-template-columns: 1fr;
    }

    header {
        padding: 16px 20px;
    }

    h1 {
        font-size: 26px;
    }

    main {
        padding: 24px 16px;
    }

    .card {
        padding: 18px;
    }

    .job {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .actions {
        width: 100%;
    }

    nav {
        gap: 8px;
    }

    .section-head {
        flex-wrap: wrap;
    }
}

#revision {
    overflow-wrap: anywhere;
}
