* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

header {
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #d2d2d7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 { font-size: 1.25rem; font-weight: 600; }

nav { display: flex; gap: 1rem; }

nav a {
  color: #1d1d1f;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

nav a:hover { background: #e8e8ed; }

nav a[aria-current="page"] {
  background: #e8e8ed;
  font-weight: 600;
}

main { max-width: 1100px; margin: 2rem auto; padding: 0 2rem; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.card h2 { margin-bottom: 1rem; font-size: 1.1rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e8e8ed; }
th { font-weight: 600; color: #6e6e73; font-size: 0.85rem; text-transform: uppercase; }

button, .btn {
  background: #007aff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover, .btn:hover { background: #0066d6; }

button.secondary { background: #e8e8ed; color: #1d1d1f; }
button.danger { background: #ff3b30; }

input, select, textarea {
  padding: 0.5rem;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
}

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; margin-bottom: 0.25rem; }

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  background: #34c759;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
}

.toast.error { background: #ff3b30; }

.hidden { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
