* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
  padding-bottom: 80px;
}

.container { max-width: 800px; margin: 0 auto; padding: 16px; }

/* Nav */
nav {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; }
nav a.active { font-weight: bold; border-bottom: 2px solid #4caf50; }

/* Forms */
input, select, button, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}
button {
  background: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button.secondary { background: #666; }
button.danger { background: #d32f2f; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.form-group input, .form-group select { width: 100%; }

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Lists */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.list-item:last-child { border-bottom: none; }

/* Drag and drop */
.drag-handle {
  cursor: grab;
  padding: 8px;
  color: #999;
  font-size: 18px;
  touch-action: none;
}
.dragging { opacity: 0.5; background: #e3f2fd; }
.drop-target { border-top: 3px solid #4caf50; }

/* Session */
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.timer {
  font-size: 20px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.exercise-block { margin-bottom: 16px; }
.exercise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}
.exercise-header h3 { font-size: 16px; }
.exercise-body {
  background: #fff;
  padding: 12px;
  border-radius: 0 0 6px 6px;
}
.prev-summary {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.set-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.set-table th, .set-table td { padding: 6px; text-align: center; }
.set-table th { font-weight: 600; color: #666; font-size: 12px; text-transform: uppercase; }
.set-table input { width: 60px; text-align: center; padding: 6px; }
.set-table .actions { width: 40px; }
.set-table button { padding: 4px 8px; font-size: 12px; }

/* Auth */
.auth-box { max-width: 360px; margin: 60px auto; }

/* Dashboard */
.dashboard-section h2 { font-size: 18px; margin-bottom: 8px; }
.workout-card { cursor: pointer; }
.workout-card h3 { font-size: 16px; margin-bottom: 4px; }
.workout-card p { font-size: 13px; color: #666; }

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 8px; }
  .set-table input { width: 50px; }
  nav a { margin-left: 10px; font-size: 13px; }
}
