:root {
  --bg: #f4f6f8; --surface: #fff; --border: #e2e5ea; --text: #1a1f26; --text-muted: #6b7280;
  --primary: #0f766e; --danger: #dc2626; --warning: #d97706; --success: #16a34a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 1.1rem; margin: 0; }
.page { padding: 24px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--border); background: #f0f2f5; color: var(--text); cursor: pointer; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-small { padding: 5px 10px; font-size: 0.78rem; }
.badge { padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 5px; color: var(--text-muted); }
input, select { width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--border); font-size: 0.92rem; }
.flash { padding: 10px 14px; border-radius: 7px; margin-bottom: 14px; font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--surface); border-radius: 10px; padding: 28px; width: 100%; max-width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.text-muted { color: var(--text-muted); }
.mono { font-family: 'Courier New', monospace; }
.hint { color: var(--text-muted); font-size: 0.8rem; }
