*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--hci-color-page);
    font-family: var(--hci-font-family);
    color: var(--hci-color-ink);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--hci-color-primary-600);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--hci-color-focus);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
}

h1:focus {
    outline: none;
}

.hci-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--hci-spacing-xs);
    min-height: 42px;
    padding: 11px 31px;
    border: 1px solid transparent;
    border-radius: var(--hci-radius-button);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.hci-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hci-button--primary {
    background: var(--hci-color-primary-500);
    color: var(--hci-color-surface);
}

.hci-button--primary:hover {
    background: var(--hci-color-primary-600);
}

.hci-button--primary:active {
    background: var(--hci-color-primary-800);
}

.hci-button--tertiary {
    background: transparent;
    color: var(--hci-color-primary-500);
}

.hci-button--tertiary:hover {
    background: var(--hci-color-primary-50);
}

.hci-button--tertiary:active {
    background: var(--hci-color-primary-100);
}

.hci-button:disabled {
    opacity: .55;
}

html:has(dialog.fuel-entry[open]) {
    overflow: hidden;
}

.card {
    padding: 32px;
    border: 1px solid var(--hci-color-border);
    border-radius: var(--hci-radius-card);
    background: var(--hci-color-surface);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    padding: 16px;
    background: #fff1f2;
    color: #9f1239;
}

#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 30vh 24px 24px;
    text-align: center;
    background: #ffffffed;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
