* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    transition: background var(--transition-speed) var(--transition-easing),
    color var(--transition-speed) var(--transition-easing);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
select {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0.75rem;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed) var(--transition-easing);
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input::placeholder {
    color: var(--text-light);
}

.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

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

section {
    background: var(--bg-primary);
    padding: 1rem;
    header {
        font-size: var(--text-xl);
        font-weight: var(--font-weight-semibold);
        line-height: 1.2;
        color: var(--text-primary);
        margin-bottom: var(--space-4);
        border-bottom: 2px solid var(--border-color);
        padding-bottom: var(--space-2);
    }

    content {
        div:has(label) {
            margin-bottom: .5rem;
        }
    }
}
section:has(custom-panel) {
    background: var(--bg-body) !important;
}
div:has(custom-panel) {
    background: var(--bg-body) !important;
}

label,
.label,
legend {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

a.button.cancel {
    background : #9b4215;
    color: var(--white);
}

.actions {
    display: flex;
    justify-content: flex-end;
}