:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 2rem;
  background: #f5f7fb;
}

main {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(13, 38, 76, 0.1);
}

.lead {
  margin-top: 0.5rem;
  color: #4a5568;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #2d3748;
}

input,
select,
textarea {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  font-family: inherit;
}

.actions {
  display: flex;
  gap: 0.75rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease;
}

button[type='submit'] {
  background: #2563eb;
  color: white;
}

button#clear-key {
  background: #e2e8f0;
  color: #1a202c;
}

button:active {
  transform: translateY(1px);
}

.status {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-weight: 600;
  color: #2563eb;
}

.hint {
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 1.25rem;
}

.quick-actions {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.quick-actions h2 {
  margin-bottom: 0.5rem;
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.action-item {
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #f8fafc;
}

.action-item strong {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
}

.action-item span {
  display: block;
  color: #475569;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.action-item button {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
}

.new-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.new-action textarea {
  min-height: 80px;
}

select {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  background: #fff;
}



