.avatar-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #6366f1);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.avatar-upload-actions { flex: 1; }
.avatar-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.avatar-sub  { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.save-bar {
  position: sticky;
  bottom: 0;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  display: none;
}

.save-bar.visible { display: flex; }

.section-anchor { scroll-margin-top: 80px; }

.danger-zone-action {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.danger-zone-action:last-child { border-bottom: none; }

.danger-zone-text { flex: 1; }
.danger-zone-title { font-size: 13.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.danger-zone-desc  { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.toggle-setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.toggle-setting-row:last-child { border-bottom: none; }

.toggle-sm {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-sm.on { background: var(--accent); border-color: var(--accent-dim); }

.toggle-sm::after {
  content: '';
  position: absolute;
  left: 2px; top: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.toggle-sm.on::after { transform: translateX(16px); }

.toggle-setting-text { flex: 1; }
.toggle-setting-label { font-size: 13.5px; font-weight: 500; color: var(--text-primary); }
.toggle-setting-desc  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.member-row:last-child { border-bottom: none; }

.member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.member-info { flex: 1; }
.member-name { font-size: 13.5px; color: var(--text-primary); font-weight: 500; }
.member-email { font-size: 12px; color: var(--text-muted); }

.member-role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.role-admin  { background: rgba(13,148,136,0.1);   border-color: rgba(13,148,136,0.25); color: var(--accent); }
.role-member { background: var(--bg-overlay);       border-color: var(--border);          color: var(--text-muted); }
.role-viewer { background: rgba(88,166,255,0.07);   border-color: var(--blue-border);     color: var(--blue); }

.planned-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.planned-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.09);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.planned-badge.small {
  padding: 1px 7px;
}

.planned-list {
  display: grid;
  gap: 12px;
}

.planned-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.planned-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.planned-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.planned-item-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
