#aiit-ea-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.aiit-ea-header {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border-radius: 16px;
  margin-bottom: 32px;
}
.aiit-ea-logo { max-height: 100px; max-width: 320px; object-fit: contain; margin-bottom: 12px; }
.aiit-ea-header h2 { font-size: 2rem; color: #1e293b; margin: 0 0 8px; }
.aiit-ea-header p  { color: #64748b; font-size: 1.1rem; margin: 0; }

/* Layout */
.aiit-ea-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .aiit-ea-body { grid-template-columns: 1fr; } }

/* Card */
.aiit-ea-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.aiit-ea-card h3 { margin: 0 0 16px; color: #1e293b; font-size: 1.1rem; }

/* Textarea */
#aiit-ea-thoughts, #aiit-ea-context {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: .95rem;
  color: #374151;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .2s;
}
#aiit-ea-thoughts:focus, #aiit-ea-context:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Tones */
.aiit-ea-tones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aiit-ea-tone {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.aiit-ea-tone strong { color: #1e293b; font-size: .9rem; }
.aiit-ea-tone span   { color: #64748b; font-size: .78rem; }
.aiit-ea-tone:hover  { border-color: #93c5fd; background: #f0f9ff; }
.aiit-ea-tone.active { border-color: #3b82f6; background: #eff6ff; }

/* Context toggle */
.aiit-ea-context-toggle { display: flex; align-items: center; justify-content: space-between; }
.aiit-ea-context-toggle h3 { margin: 0; }
#aiit-ea-toggle-ctx {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}
#aiit-ea-ctx-wrap p { color: #64748b; font-size: .9rem; margin: 12px 0 8px; }

/* Generate button */
#aiit-ea-generate {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
#aiit-ea-generate:hover    { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
#aiit-ea-generate:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Output */
.aiit-ea-output-card { min-height: 300px; }
.aiit-ea-output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.aiit-ea-output-header h3 { margin: 0; }

#aiit-ea-copy {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: .85rem;
  color: #374151;
  transition: background .2s;
}
#aiit-ea-copy:hover { background: #e2e8f0; }

.aiit-ea-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: #94a3b8;
  text-align: center;
}
.aiit-ea-placeholder span { font-size: 48px; opacity: .4; margin-bottom: 12px; }
.aiit-ea-placeholder p    { font-size: 1rem; margin: 0 0 6px; }
.aiit-ea-placeholder small { font-size: .85rem; }

#aiit-ea-result pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: .95rem;
  color: #374151;
  line-height: 1.7;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin: 0;
}

/* Tips */
.aiit-ea-tips {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.aiit-ea-tips h4 { margin: 0 0 12px; color: #1e293b; }
.aiit-ea-tips ul { margin: 0; padding-left: 18px; color: #475569; font-size: .9rem; }
.aiit-ea-tips li { margin-bottom: 6px; }

/* Branding */
.aiit-ea-branding {
  text-align: center;
  font-size: .82rem;
  color: #94a3b8;
}
.aiit-ea-branding strong { color: #3b82f6; }