body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #1a1f2c;
}
.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.topbar a { text-decoration: none; color: inherit; }
.topbar nav { display: flex; gap: 1rem; }
.card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 1rem;
}
.grid.two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem .5rem;
    vertical-align: top;
}
.button, button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    padding: .6rem .9rem;
    text-decoration: none;
    cursor: pointer;
}
.button.secondary { background: #6b7280; }
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
label {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-weight: 600;
}
input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}
textarea { min-height: 110px; }
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: .75rem;
    align-items: center;
}
.flash-wrap { margin: 1rem 0; }
.flash {
    padding: .8rem 1rem;
    border-radius: 10px;
    margin-bottom: .75rem;
}
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
pre { white-space: pre-wrap; margin: 0; }


.inline-form { display: inline; margin: 0; }
.user-pill {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    border-radius: 999px;
    padding: .4rem .8rem;
    font-size: .95rem;
}
.small { padding: .45rem .7rem; font-size: .95rem; }
.password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
}
.auth-card {
    max-width: 480px;
    margin: 2rem auto;
}
.auth-form { grid-template-columns: 1fr; }
.muted { color: #64748b; }
code {
    background: #e2e8f0;
    border-radius: 6px;
    padding: .15rem .35rem;
}
