html,
body {
    font-family: Aptos, "Segoe UI", system-ui, sans-serif;
}

body {
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

.novel-muted-text {
    color: var(--mud-palette-text-secondary);
    line-height: 1.4;
}

.novel-data-table {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    overflow: hidden;
}

.novel-data-table .mud-table-head .mud-table-cell {
    background: color-mix(in srgb, var(--mud-palette-background-gray) 50%, var(--mud-palette-surface));
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
    white-space: nowrap;
}

.novel-data-table .mud-table-cell {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    color: var(--mud-palette-text-primary);
    vertical-align: middle;
}

.novel-data-table .mud-table-row:last-child .mud-table-cell {
    border-bottom: 0;
}

.novel-data-table .mud-table-row:hover .mud-table-cell {
    background: color-mix(in srgb, var(--mud-palette-primary) 3%, var(--mud-palette-surface));
}

.mud-button-root:focus-visible,
.mud-icon-button:focus-visible,
.mud-input-control:focus-within {
    outline: 3px solid color-mix(in srgb, var(--mud-palette-primary) 32%, transparent);
    outline-offset: 2px;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--mud-palette-success);
}

.invalid {
    outline: 1px solid var(--mud-palette-error);
}

.validation-message {
    color: var(--mud-palette-error);
}

.blazor-error-boundary {
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-contrast-text);
    padding: 1rem 1rem 1rem 1.25rem;
}

.blazor-error-boundary::after {
    content: "Novel Trace could not render this section.";
}
