* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

header.app-header .brand img { width: 96px; height: auto; }

header.app-header .actions { display: flex; gap: 12px; align-items: center; }

button, .btn {
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: inherit;
}
button:hover, .btn:hover { background: var(--accent-hover); }
button.secondary, .btn.secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
}
button.secondary:hover, .btn.secondary:hover { background: var(--bg-active); }
button.danger, .btn.danger {
  background: var(--danger);
}
button.danger:hover, .btn.danger:hover { background: var(--danger-hover); }
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
}
button.ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

input[type="text"], input[type="url"], input[type="password"],
input[type="datetime-local"], input[type="date"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.muted { color: var(--text-secondary); font-size: 13px; }
