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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  color: #1a1a2e;
}

.container {
  width: 100%;
  max-width: 640px;
}

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

.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a2e;
}

textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
  background: #fafafa;
  color: #1a1a2e;
}

textarea:focus {
  outline: none;
  border-color: #4a6cf7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

textarea::placeholder {
  color: #999;
}

.controls {
  margin-top: 1rem;
}

.g-signin2 {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.g-signin2 > div {
  margin: 0 auto;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-primary {
  background: #4a6cf7;
  color: #fff;
  border-color: #4a6cf7;
}

.btn-primary:hover {
  background: #3b5de7;
  border-color: #3b5de7;
}

.btn-muted {
  color: #999;
  border-color: #eee;
}

.btn-muted:hover {
  color: #666;
  background: #fafafa;
}

.status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  height: 1.2em;
}

#saving {
  color: #e6a817;
}

#saved {
  color: #22c55e;
}

#paste-feedback {
  color: #4a6cf7;
}

.preview-image {
  margin-top: 1rem;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 8px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
