:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #d9e0e7;
  --text: #18212b;
  --muted: #667085;
  --blue: #1d4ed8;
  --green: #047857;
  --red: #b42318;
  --amber: #b45309;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI, Arial, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 38px;
}

.nav, .actions, .row-actions, .filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a, .button, button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 11px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 32px;
}

.page-wide {
  max-width: 1780px;
}

.panel, .auth-box {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-box, .narrow {
  max-width: 420px;
  margin: 30px auto;
}

h1, h2 {
  margin: 0 0 14px;
  letter-spacing: 0;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }

.muted, .empty { color: var(--muted); }
