:root {
  color-scheme: light;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fafc 100%);
}

.app-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #4f46e5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

.exercise-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

textarea {
  resize: vertical;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

.ghost-btn {
  background: transparent;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.activity-log .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.activity-log h2 {
  margin: 0;
  font-size: 1.2rem;
}

#entryCount {
  color: #6b7280;
  font-weight: 600;
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.log-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.log-item strong {
  display: block;
  font-size: 1rem;
}

.log-item .meta {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  color: #374151;
}

.log-item .meta span {
  font-size: 0.95rem;
}

.log-item p {
  margin: 0;
  color: #4b5563;
}

.remove-btn {
  justify-self: end;
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  padding: 36px 0;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
}

@media (max-width: 680px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
