:root {
    --border: #dcdfe4;
    --bg: #f5f6f8;
    --accent: #2b6cb0;
    --error: #c0392b;
    --success: #1e7e34;
    --warn: #b7791f;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    color: #1a1a1a;
}

body.centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #1a2733;
    color: white;
}
.topbar a { color: #cfe3f7; text-decoration: none; }

main {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
}

body.centered .card {
    min-width: 380px;
}

h1, h2, h3 { margin-top: 0; }

.muted { color: #667085; }
.small { font-size: 0.85em; }

.error { color: var(--error); font-weight: 600; }
.success { color: var(--success); font-weight: 600; }

label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1em;
    font-weight: 400;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
button:hover { opacity: 0.9; }

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

table.list {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
table.list th, table.list td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92em;
}

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: white;
}
.badge.ok { background: var(--success); }
.badge.warn { background: var(--warn); }

.inline-form { display: inline; margin: 0; }

.download-link {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.download-link:hover { opacity: 0.9; }

.btn-danger-link {
    background: none;
    color: var(--error);
    border: none;
    padding: 2px 6px;
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: underline;
}
.btn-danger-link:hover { opacity: 0.7; }

pre.raw {
    white-space: pre-wrap;
    background: #f0f2f4;
    padding: 12px;
    border-radius: 6px;
    max-height: 400px;
    overflow: auto;
    font-size: 0.85em;
}
