:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #6b7785;
    --accent: #1b5fbf;
    --accent-dark: #164c99;
    --border: #dde2e8;
    --warn-bg: #fff4e0;
    --warn-text: #8a5300;
    --error: #b42318;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.app-header {
    background: var(--accent);
    color: #fff;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: baseline;
    gap: .75rem;
}
.app-title { font-weight: 600; font-size: 1.1rem; }
.app-subtitle { opacity: .8; font-size: .9rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

h1 { font-size: 1.5rem; margin: 0 0 .5rem; }

.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 500; }
.warning {
    background: var(--warn-bg);
    color: var(--warn-text);
    padding: .6rem .8rem;
    border-radius: 6px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.summary { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: .75rem; }
.summary .spacer { flex: 1; }

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: .5rem .9rem;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { background: #e6eaef; color: var(--text); }
.button.secondary:hover { background: #d7dde4; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.row-warning { background: var(--warn-bg); }
code { font-size: .85rem; word-break: break-all; }

details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--accent); }
ul.pages { columns: 2; padding-left: 1.2rem; font-size: .9rem; }

a { color: var(--accent); }
.button, .button:visited { color: #fff; }
.button.secondary, .button.secondary:visited { color: var(--text); }

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.success {
    background: #e8f5ec;
    border: 1px solid #b7dfc3;
    color: #1d5c34;
    padding: .6rem .8rem;
    border-radius: 6px;
}
