:root {
    color-scheme: light;
    font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
    color: #172d48;
    background: var(--background);
    font-synthesis: none;
    --border: #b4c7dc;
    --surface: #ffffff;
    --muted: #47617d;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .25em; }
header, footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
}
header { border-bottom: 1px solid #deebf7; background: var(--surface); }
header a { font-size: .9rem; }
header .wordmark {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.05em;
}
.wordmark span { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.brand-mark { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.logo { max-height: 3.5rem; max-width: 12rem; }
main { flex: 1; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 5rem); }
section { max-width: 44rem; margin: auto; padding: clamp(1.5rem, 4vw, 3rem); }
.auth, .intro {
    border: 1px solid #deebf7;
    border-top: 4px solid var(--accent);
    border-radius: .75rem;
    background: var(--surface);
    box-shadow: 0 1rem 3rem #0767ce0a;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.045em; margin: 1rem 0 1.6rem; font-weight: 600; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }
p { line-height: 1.65; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; font-weight: 700; color: var(--accent); }
.lead { font-size: 1.2rem; max-width: 35ch; }
.resource { overflow-wrap: anywhere; font-size: .9rem; color: var(--muted); }
.providers { display: grid; gap: .75rem; margin: 2rem 0; }
button {
    font: inherit;
    font-weight: 600;
    background: var(--accent);
    color: #ffffff;
    border: 0;
    border-radius: .35rem;
    padding: 1rem 1.4rem;
    cursor: pointer;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}
.providers button { width: 100%; }
.providers img { width: 1.25rem; height: 1.25rem; }
button:hover { filter: brightness(.9); }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.secondary { background: transparent; color: var(--accent); outline: 1px solid currentColor; outline-offset: -1px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.note { font-size: .85rem; color: var(--muted); }
label { display: block; margin: 1.5rem 0 .5rem; }
input { font: inherit; padding: 1rem; border: 1px solid var(--border); border-radius: .25rem; width: 100%; background: var(--surface); color: #172d48; margin-bottom: 1rem; }
footer { font-size: .8rem; color: var(--muted); }
footer nav { display: flex; gap: 1rem; }
.operator { max-width: 90rem; padding-top: 0; }
.operator h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; text-align: left; }
th, td { padding: 1rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; white-space: pre-line; }
thead th { font-size: .75rem; letter-spacing: .05em; color: var(--accent); }
code { overflow-wrap: anywhere; }
li { margin: .5rem 0; }
.provider-settings { max-width: 48rem; margin: 1.5rem 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); }
.provider-settings h3 { margin-top: 0; }
.provider-settings label { margin-top: .75rem; }
.check { display: flex; align-items: center; gap: .75rem; }
.check input { width: auto; margin: 0; }
.setup-guide { margin: 2rem 0; padding: 0; max-width: 60rem; }
details { margin: 1.25rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details ol { padding-left: 1.5rem; }
details li { line-height: 1.7; margin: 1rem 0; }

@media (max-width: 600px) {
    header, footer { padding: 1.25rem; flex-wrap: wrap; }
    main { padding: 1rem; }
    section { padding: 1.25rem; }
    .wordmark span { display: none; }
    .actions button { width: 100%; }
    .operator { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    button:active { transform: none; }
}

:root{--accent:#0767ce;--background:#f4f9fe}
