:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #182332;
    background: #f6f8fa;
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1750a3; }

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

.site-header {
    background: white;
    border-bottom: 1px solid #d9e0e7;
}

.header-content {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

button.header-logout {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1750a3;
    text-decoration: underline;
}

.brand {
    color: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
}

main { padding-block: 2rem; }
h1, h2 { margin: 0 0 1rem; line-height: 1.2; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }

.table-container, .account-panel, dialog {
    background: white;
    border: 1px solid #d9e0e7;
    border-radius: 0.625rem;
}

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.75rem 1rem; }
thead { background: #edf2f6; }
tbody tr + tr { border-top: 1px solid #e4e9ee; }
.cost { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.skill-docs-link { font-size: 0.875rem; font-weight: normal; }
.skill-documentation section { margin-block: 1.75rem; }
.skill-documentation pre {
    overflow: auto;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d9e0e7;
    border-radius: 0.625rem;
}
.skill-documentation summary { cursor: pointer; }
.skill-documentation dt { margin-top: 0.5rem; }
.skill-documentation dd { margin-inline-start: 0; }

.account-panel, dialog { padding: 1.5rem; }
.account-panel { max-width: 34rem; }
dialog { width: min(100% - 2rem, 28rem); }
dialog::backdrop { background: rgb(19 31 45 / 55%); }

.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dialog-heading h2 { margin: 0; }
.fields { display: grid; gap: 0.5rem; }
.fields label:not(:first-child) { margin-top: 0.375rem; }
label, dt { font-weight: 600; }

input, button, select, textarea {
    font: inherit;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

input, select, textarea {
    width: 100%;
    color: inherit;
    border: 1px solid #a9b7c6;
    background: white;
}

button {
    border: 1px solid #1750a3;
    background: #1750a3;
    color: white;
    cursor: pointer;
}

button.secondary { border-color: #a9b7c6; background: white; color: #182332; }
.error { color: #a51d24; margin: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.balance { margin: 0.125rem 0 1.25rem; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.secret { font-family: ui-monospace, monospace; }
textarea { resize: vertical; }

.developer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.developer-heading h1 { margin: 0; }
.skill-form-dialog { width: min(100% - 2rem, 38rem); }
.field-hint { color: #435665; font-size: 0.875rem; margin: 0; }
