.abt-posting-panel .abt-upload-slot {
    display: block;
    margin: 0 0 8px;
}

.abt-posting-panel .abt-upload-slot label {
    display: block;
    font-weight: bold;
    margin: 0 0 3px;
}

.abt-posting-panel .abt-upload-slot input {
    display: block;
    margin: 0 0 6px;
    max-width: 100%;
}

.abt-posting-panel .abt-upload-slot input[type="radio"] {
    display: inline-block;
    margin: 0 5px 0 0;
}

.abt-posting-panel .abt-upload-slot label:last-child {
    display: inline-flex;
    font-weight: normal;
}

.abt-posting-panel.abt-dark-theme {
    color: #d9e2ea;
}

.abt-file-hint {
    color: #53616d;
    display: block;
    margin-top: 4px;
}

.abt-existing-files {
    display: grid;
    gap: 6px;
}

.abt-existing-file {
    align-items: center;
    background: #f3f6f8;
    border: 1px solid #d7dee4;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    max-width: 640px;
    padding: 6px 8px;
}

.abt-existing-file-marked {
    background: #fff1f1;
    border-color: #d98a8a;
}

.abt-delete-state {
    color: #a82a2a;
    font-weight: bold;
}

.abt-delete-file {
    color: #a82a2a;
    font-weight: bold;
}

.abt-admin-actions {
    border-top: 1px solid #d7dee4;
    margin-top: 12px;
    padding-top: 10px;
}

.abt-player {
    border: 1px solid #c7d0d7;
    border-radius: 6px;
    margin: 14px 0;
    padding: 12px;
    background: #f7f9fb;
}

.abt-player.abt-dark-theme {
    background: #1c2229;
    border-color: #3b4652;
    color: #d9e2ea;
}

.abt-player [hidden] {
    display: none !important;
}

.abt-header {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.abt-header h3 {
    margin: 0;
}

.abt-header span {
    color: #53616d;
    font-size: 0.9em;
}

.abt-dark-theme .abt-header span,
.abt-dark-theme .abt-vote-count,
.abt-dark-theme .abt-results-total,
.abt-posting-panel.abt-dark-theme .abt-file-hint {
    color: #aebbc7;
}

.abt-description,
.abt-question,
.abt-vote-count {
    margin: 8px 0;
}

.abt-vote-count {
    color: #53616d;
    font-weight: bold;
}

.abt-status {
    margin: 10px 0;
}

.abt-progress {
    display: grid;
    gap: 5px;
    margin: 8px 0;
}

.abt-progress-row {
    background: #dfe7ee;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.abt-dark-theme .abt-progress-row {
    background: #303a44;
}

.abt-progress-row span {
    background: #2f7dbd;
    display: block;
    height: 100%;
    width: 0;
}

.abt-controls,
.abt-switches,
.abt-loop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.abt-controls .abt-load {
    background: #c73030;
    background-image: none;
    border-color: #9f2424;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    color: #fff;
    font-weight: bold;
    padding-left: 14px;
    padding-right: 14px;
}

.abt-controls .abt-load:hover,
.abt-controls .abt-load:focus {
    background: #ad2828;
    background-image: none;
    border-color: #841d1d;
    color: #fff;
}

.abt-controls .abt-load:disabled {
    box-shadow: none;
    opacity: 0.7;
}

.abt-controls .button:not(.abt-load),
.abt-switches .button,
.abt-loop .button {
    background: #24834a;
    background-image: none;
    border-color: #1d683b;
    color: #fff;
    font-weight: bold;
    text-shadow: none;
}

.abt-controls .button:not(.abt-load):hover,
.abt-controls .button:not(.abt-load):focus,
.abt-switches .button:hover,
.abt-switches .button:focus,
.abt-loop .button:hover,
.abt-loop .button:focus {
    background: #1d6f3e;
    background-image: none;
    border-color: #165631;
    color: #fff;
}

.abt-switches .button.active {
    background: #145a32;
    background-image: none;
    border-color: #0f4325;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.abt-loop label {
    align-items: center;
    border: 1px solid #1d683b;
    border-radius: 4px;
    color: #145a32;
    display: inline-flex;
    font-weight: bold;
    gap: 4px;
    padding: 3px 8px;
}

.abt-dark-theme .abt-loop label {
    background: #18231d;
    color: #8fd3aa;
}

.abt-switches .active {
    font-weight: bold;
}

.abt-timeline {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    margin: 10px 0;
}

.abt-seek-wrap {
    display: block;
    height: 22px;
    position: relative;
}

.abt-seek-wrap::before {
    background: #dfe7ee;
    border-radius: 4px;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.abt-dark-theme .abt-seek-wrap::before {
    background: #303a44;
}

.abt-loop-range {
    background: rgba(37, 116, 184, 0.34);
    border: 1px solid rgba(30, 95, 152, 0.45);
    border-radius: 4px;
    height: 8px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.abt-loop-range.active {
    background: rgba(37, 116, 184, 0.52);
}

.abt-seek-wrap input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 22px;
    margin: 0;
    position: relative;
    width: 100%;
}

.abt-seek-wrap input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 8px;
}

.abt-seek-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #2574b8;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    height: 16px;
    margin-top: -4px;
    width: 16px;
}

.abt-seek-wrap input[type="range"]::-moz-range-track {
    background: transparent;
    height: 8px;
}

.abt-seek-wrap input[type="range"]::-moz-range-thumb {
    background: #2574b8;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    height: 12px;
    width: 12px;
}

.abt-vote {
    border-top: 1px solid #d7dee4;
    margin-top: 12px;
    padding-top: 12px;
}

.abt-dark-theme .abt-vote,
.abt-dark-theme .abt-results,
.abt-dark-theme .abt-admin-actions {
    border-top-color: #3b4652;
}

.abt-closed-reveal {
    border-top: 1px solid #d7dee4;
    margin-top: 10px;
    padding-top: 10px;
}

.abt-correct-answer {
    font-weight: bold;
}

.abt-share-actions {
    margin-top: 12px;
}

.abt-share-result {
    background: #2574b8;
    background-image: none;
    border-color: #1d5d94;
    color: #fff;
    font-weight: bold;
    padding: 7px 16px;
    text-shadow: none;
}

.abt-share-result:hover,
.abt-share-result:focus {
    background: #1d5d94;
    background-image: none;
    border-color: #174b78;
    color: #fff;
}

.abt-vote label {
    display: block;
    margin: 0 0 6px;
}

.abt-vote .button1 {
    background: #d45b18;
    background-image: none;
    border-color: #a94612;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    color: #fff;
    font-weight: bold;
    padding: 6px 18px;
    text-shadow: none;
}

.abt-vote .button1:hover,
.abt-vote .button1:focus {
    background: #b94e14;
    background-image: none;
    border-color: #8f3b0e;
    color: #fff;
}

.abt-login-message {
    background: #fff8e5;
    border: 1px solid #e0c36f;
    border-radius: 4px;
    margin: 8px 0;
    padding: 8px;
}

.abt-dark-theme .abt-login-message {
    background: #2b2718;
    border-color: #6b5a2b;
    color: #eadca9;
}

.abt-login-message a {
    display: inline-block;
    margin-left: 6px;
}

.abt-my-choice {
    font-weight: bold;
    margin: 0 0 8px;
}

.abt-results-total {
    color: #53616d;
    margin: 0 0 10px;
}

.abt-results {
    border-top: 1px solid #d7dee4;
    margin-top: 12px;
    padding-top: 12px;
}

.abt-result-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(70px, 160px) 1fr auto;
    margin: 6px 0;
}

.abt-result-row.selected {
    font-weight: bold;
}

.abt-result-bar {
    background: #dfe7ee;
    border-radius: 4px;
    overflow: hidden;
}

.abt-dark-theme .abt-result-bar {
    background: #303a44;
}

.abt-posting-panel.abt-dark-theme .abt-existing-file {
    background: #1c2229;
    border-color: #3b4652;
}

.abt-posting-panel.abt-dark-theme .abt-existing-file-marked {
    background: #332020;
    border-color: #7a4141;
}

.abt-posting-panel.abt-dark-theme .abt-delete-state,
.abt-posting-panel.abt-dark-theme .abt-delete-file {
    color: #ff9c9c;
}

.abt-result-bar span {
    background: #2f7dbd;
    display: block;
    height: 100%;
    min-height: 18px;
}

.abt-result-count {
    min-width: 78px;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .abt-header,
    .abt-timeline,
    .abt-result-row {
        display: block;
    }

    .abt-timeline input {
        width: 100%;
    }
}
