:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

form {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1rem;
}

.form-group {
    margin: 0.5rem 0;
}

.form-group label {
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.form-group button {
    margin-top: 1.25rem;
}

.form-control {
    box-sizing: border-box;
    padding: 0.5rem;
    width: 100%;
}

.form-control:invalid {
    border-color: red;
}

textarea {
    resize: vertical;
}

hr {
    border: 1px solid #ddd;
    margin: 2rem 0;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
}

details[open] summary::before {
    content: "−";
}

details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

summary {
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

summary::before {
    content: "+";
    position: absolute;
}

summary h2 {
    font-size: inherit;
    margin-left: 1rem;
}

dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 8rem);
    margin: 2rem auto;
    max-width: calc(var(--max-width) + 2rem);
    overflow: hidden;
    padding: 2rem 1rem;
    width: calc(100% - 4rem);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.thh-content-provider {
    height: 100%;
    overflow-y: scroll;
    padding: 0 1rem;
}

#embed-code {
    text-wrap: auto;
}