:root {
  --bg: #f8f8f8;
  --card-bg: #ffffff;
  --text: #111;
  --text-muted: #777;
  --primary: #0066ff;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 40px 20px;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 960px;
  margin: auto;
}

h1, h2, h3 {
  margin-bottom: 1em;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.4em;
  color: var(--text-muted);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 20px;
}

.email-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.email-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
}

.email-header:hover {
  background: #eaeaea;
}

.email-content {
  padding: 20px;
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.email-content.open {
  display: block;
}

.email-number {
  font-size: 0.9em;
  color: var(--text-muted);
}

.email-subject {
  flex: 1;
  padding-left: 12px;
}

.badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

footer {
  margin-top: 60px;
  font-size: 0.85em;
  color: var(--text-muted);
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
