:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1f2937;
  background: #f7f7f8;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f7f7f8; color: #1f2937; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.shell { padding: 1rem 0; }
.site-header { background: #111827; color: #fff; }
.site-header .shell { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { color: white; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; gap: 1rem; }
.site-nav a { color: #d1d5db; }
.site-nav a:hover { color: white; }
.page { padding: 2rem 0 3rem; }
.site-footer { background: #e5e7eb; color: #374151; border-top: 1px solid #d1d5db; }
.site-footer .shell { padding: 1rem 0; }

.card, .panel { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.alert { padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.success { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn { display: inline-block; border: 1px solid #d1d5db; background: #fff; color: #111827; padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; }
.btn.primary { background: #2563eb; color: white; border-color: #2563eb; }
input, select, textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d1d5db; border-radius: 8px; }
form > div { margin-bottom: 0.8rem; }
label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.field-error { color: #991b1b; font-size: 0.85rem; margin-top: 0.25rem; }

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #e5e7eb; }
table th { font-weight: 600; color: #374151; }
.actions { display: flex; gap: 0.5rem; }
.actions form { display: inline; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 0.8rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
