* { box-sizing: border-box; }
body {
    font-family: Segoe UI, Tahoma, sans-serif;
    background: #f4f6f8;
    color: #222;
    margin: 0;
}
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.container.narrow { max-width: 420px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid .full { grid-column: 1 / -1; }
label { display: block; margin: 8px 0 4px; font-weight: 600; }
input, textarea, button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd3da;
    border-radius: 8px;
    font: inherit;
}
button {
    margin-top: 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
}
button.danger { background: #dc2626; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.filters { margin-bottom: 12px; }
.filters a {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 999px;
    text-decoration: none;
    color: #333;
}
.filters a.active { background: #2563eb; color: #fff; }
.badge { background: #e5e7eb; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.alert { padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.alert.success { background: #dcfce7; }
.alert.error { background: #fee2e2; }
.messages .msg { padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.messages .msg.user { background: #eff6ff; }
.messages .msg.admin { background: #ecfdf5; }
pre { white-space: pre-wrap; background: #f8fafc; padding: 10px; border-radius: 8px; }
