:root {
    color: #172033;
    background: #f5f7fb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: #174ea6;
}

.container {
    width: min(70rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #d8deea;
}

.header-content,
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-content {
    min-height: 4rem;
}

.brand {
    color: #172033;
    font-size: 1.25rem;
    font-weight: 750;
    text-decoration: none;
}

main {
    padding-block: 2rem 4rem;
}

.narrow {
    max-width: 32rem;
    margin-inline: auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.field {
    margin-block: 1rem;
}

label {
    display: block;
    font-weight: 650;
    margin-bottom: 0.35rem;
}

input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid #78849a;
    border-radius: 0.35rem;
    font: inherit;
}

button,
.button {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    color: #fff;
    background: #174ea6;
    border: 2px solid #174ea6;
    border-radius: 0.35rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

button:disabled {
    color: #5c6575;
    background: #e1e5ec;
    border-color: #c7ceda;
    cursor: not-allowed;
}

.button-secondary {
    color: #174ea6;
    background: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="-1"]:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #172033;
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

.alert {
    padding: 1rem;
    border-left: 0.35rem solid;
    margin-block: 1rem;
    background: #fff;
}

.alert h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

.alert-error {
    border-color: #b3261e;
}

.alert-warning {
    border-color: #b26a00;
}

.alert-success {
    border-color: #087f4b;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #d8deea;
    border-radius: 0.6rem;
}

.eyebrow {
    margin: 0;
    color: #526078;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: #e1e5ec;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-active,
.status-trialing {
    color: #075c35;
    background: #d9f4e6;
}

.status-past_due,
.status-suspended,
.status-cancelled {
    color: #821b15;
    background: #fbe2df;
}

.help {
    color: #526078;
    font-size: 0.9rem;
}

.sync-card {
    margin-top: 2rem;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #d8deea;
    text-align: left;
}

@media (max-width: 35rem) {
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
