html {
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font-sans);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
}

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

a {
    color: var(--theme-primary);
    text-underline-offset: 0.15em;
    transition: color 120ms ease, opacity 120ms ease;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: var(--theme-surface);
}

th,
td {
    border: 1px solid var(--theme-border);
    padding: 0.72rem 0.85rem;
    vertical-align: top;
}

input,
select,
textarea,
button {
    border: 1px solid var(--theme-border);
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: var(--theme-surface);
    color: var(--theme-text);
}

button {
    background: var(--theme-primary);
    color: var(--theme-primary-contrast);
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid rgba(34, 82, 214, 0.42);
    outline-offset: 2px;
}

main,
article,
.theme-panel {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 1rem;
    box-shadow: var(--theme-shadow);
}

.module-page > header {
    display: grid;
    gap: 0.65rem;
}

.module-page > header h1,
.module-page > header h2,
.module-page > header h3,
.module-page h1,
.module-page h2,
.module-page h3 {
    margin: 0;
}

.module-page > header p {
    margin: 0;
    opacity: 0.82;
}
