* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
body { background: #0f172a; color: #f8fafc; height: 100vh; display: flex; flex-direction: column; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #1e293b; border-bottom: 1px solid #334155; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: white; }
.hero-logo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: white; border: 2px solid #334155; }
.logo { font-size: 1.25rem; font-weight: bold; }
.logo span { color: #3b82f6; }

.btn { padding: 0.6rem 1.2rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; font-size: 0.9rem; }
.btn-primary { background: #3b82f6; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-outline { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.center-box { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 1rem; align-items: center; color: #94a3b8; }
.workspace { display: flex; flex: 1; overflow: hidden; }

.sidebar { width: 340px; background: #1e293b; border-right: 1px solid #334155; display: flex; flex-direction: column; }
.sidebar-header { padding: 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; }
.email-list { list-style: none; overflow-y: auto; flex: 1; }
.email-item { padding: 1rem; border-bottom: 1px solid #334155; cursor: pointer; }
.email-item:hover, .email-item.active { background: #334155; }
.email-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-item p { font-size: 0.8rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.editor { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; }
.editor-box { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.meta-card { background: #1e293b; padding: 1rem; border-radius: 8px; border: 1px solid #334155; font-size: 0.9rem; }
.original-body { margin-top: 0.5rem; max-height: 90px; overflow-y: auto; color: #94a3b8; white-space: pre-wrap; }

.controls { display: flex; gap: 0.75rem; }
select, input { background: #1e293b; color: white; border: 1px solid #475569; padding: 0.6rem; border-radius: 6px; }
input { flex: 1; }

textarea { flex: 1; background: #1e293b; color: #f8fafc; border: 1px solid #475569; border-radius: 8px; padding: 1rem; font-size: 0.95rem; resize: none; line-height: 1.5; }
.actions { display: flex; justify-content: flex-end; gap: 1rem; }

.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: #10b981; color: white; padding: 0.75rem 1.5rem; border-radius: 6px; display: none; font-weight: 600; }
