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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.app {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 1.4rem;
}

.user-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-copy {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-family: sans-serif;
}

.btn-copy:hover {
  background: rgba(255,255,255,0.2);
}

.btn-reset {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-family: sans-serif;
}

.btn-reset:hover {
  background: #e74c3c;
  color: white;
}

.error-bar {
  background: #e74c3c;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.identity-screen,
.bootstrap,
.members,
.proposals {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

h3 {
  margin-bottom: 0.5rem;
  color: #34495e;
}

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

input[type="text"],
input[type="password"],
input:not([type]) {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

input:focus {
  outline: none;
  border-color: #3498db;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-danger {
  background: #e74c3c;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.btn-danger:hover {
  background: #c0392b;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.member-table th,
.member-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.member-table th {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.key {
  font-family: monospace;
  font-size: 0.85rem;
}

.not-member-hint {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fef9e7;
  border-left: 3px solid #f39c12;
  border-radius: 4px;
  color: #7d6608;
  font-size: 0.9rem;
}

.introduce-form {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.proposal-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 3px solid #3498db;
}

.proposal-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
